diff --git a/dist/TrayArrowDown-D26Art6z.chunk.mjs b/dist/TrayArrowDown-D26Art6z.chunk.mjs deleted file mode 100644 index 4dfeeeaeb907e..0000000000000 --- a/dist/TrayArrowDown-D26Art6z.chunk.mjs +++ /dev/null @@ -1,77 +0,0 @@ -import{V as getCanonicalLocale,ad as getLanguage,C as _export_sfc,n as defineComponent,ae as useCssVars,L as computed,af as purify,j as createElementBlock,o as openBlock,e as createBaseVNode,D as normalizeClass,r as resolveComponent,p as renderSlot,c as createBlock,k as createCommentVNode,E as normalizeStyle,h as toDisplayString,m as mergeProps,ag as register,F as mergeModels,G as useModel,ah as t,M as createElementId,a2 as getDefaultExportFromCjs,ai as inject,w as withCtx,g as createTextVNode,u as unref,a1 as resolveDynamicComponent,K as useAttrs,J as useTemplateRef,X as withDirectives,Z as vShow,O as getCurrentUser,I as watch,H as ref$1,b as cancelableClient,z as v$1,v as createSlots,f as createVNode,aj as t46,T as onMounted,a7 as nextTick,ak as getCurrentScope,al as onScopeDispose,am as getCurrentInstance,an as hasInjectionContext,ao as effectScope,W as toRef$1,ap as readonly,aq as customRef,ar as shallowRef,as as toValue,a8 as watchEffect,at as reactive,au as onUnmounted,av as pushScopeId,aw as popScopeId,P as Fragment,Y as withKeys,ax as withScopeId,$ as normalizeProps,a0 as guardReactiveProps,ay as isRTL$1,az as t4,aA as h$2,aB as Comment,aC as Text,l as loadState$1,aD as t14,aE as t21,aF as t48,aG as t22,aH as useSlots,x as NcLoadingIcon,aI as t34,aJ as t19,aK as Transition,s as withModifiers,aL as toHandlers,Q as renderList,aM as t15,aN as w$1,a6 as f$2,aO as t2,a5 as commonjsGlobal,A as process$1,a3 as Buffer,aP as t3,d as _$1,aQ as t11,aR as t10,aS as resolveDirective,ab as unsubscribe,a9 as subscribe,aT as t17,aU as t27,aV as t6,aW as t33,aX as isRef,aY as Teleport,aZ as render,a_ as onBeforeUpdate,a$ as t40,b0 as t35,b1 as t16,b2 as t5,b3 as t36,b4 as t39,b5 as t9,b6 as t8,b7 as h$3,b8 as t43,b9 as t38,ba as t24,bb as t30,bc as t12,bd as t32,be as t0,bf as t47,q as getGettextBuilder,_ as _export_sfc$1}from"./_plugin-vue_export-helper-TkuKx9Bs.chunk.mjs";const appName="nextcloud-ui",appVersion="1.0.0";function getFirstDay(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const Me=new Intl.Locale(getCanonicalLocale()),xe=Me.getWeekInfo?.()??Me.weekInfo;return xe?xe.firstDay%7:1}function getDayNames(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const Me=getCanonicalLocale();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(Me,{weekday:"long"})]}function getDayNamesMin(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const Me=getCanonicalLocale();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(Me,{weekday:"narrow"})]}function formatRelativeTime(Me=Date.now(),xe={}){const Ke={ignoreSeconds:!1,language:getLanguage(),relativeTime:"long",...xe},ze=new Date(Me),We=new Intl.RelativeTimeFormat([Ke.language,getLanguage()],{numeric:"auto",style:Ke.relativeTime}),De=(ze.getTime()-Date.now())/1e3;if(Math.abs(De)<59.5)return Ke.ignoreSeconds||We.format(Math.round(De),"second");const vt=De/60;if(Math.abs(vt)<=59)return We.format(Math.round(vt),"minute");const Je=vt/60;if(Math.abs(Je)<23.5)return We.format(Math.round(Je),"hour");const Ct=Je/24;if(Math.abs(Ct)<6.5)return We.format(Math.round(Ct),"day");if(Math.abs(Ct)<27.5){const $t=Ct/7;return We.format(Math.round($t),"week")}const yt=Ct/30,Ft=Math.abs(yt)<11?{month:Ke.relativeTime,day:"numeric"}:{year:Ke.relativeTime==="narrow"?"2-digit":"numeric",month:Ke.relativeTime};return new Intl.DateTimeFormat([Ke.language,getLanguage()],Ft).format(ze)}var mdiAlertCircle="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",mdiArrowRight="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",mdiCalendarBlank="M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1",mdiCheck="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",mdiChevronDown="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",mdiChevronLeft="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",mdiChevronRight="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",mdiChevronUp="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",mdiClock="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",mdiClose="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",mdiEye="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",mdiEyeOff="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",mdiUndo="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z";const _hoisted_1$j=["aria-hidden","aria-label"],_hoisted_2$h={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_hoisted_3$d=["d"],_hoisted_4$c=["innerHTML"],_sfc_main$n=defineComponent({__name:"NcIconSvgWrapper",props:{directional:{type:Boolean},inline:{type:Boolean},svg:{default:""},name:{default:void 0},path:{default:""},size:{default:20}},setup(Me){useCssVars(We=>({"0c3ef411":Ke.value}));const xe=Me,Ke=computed(()=>typeof xe.size=="number"?`${xe.size}px`:xe.size),ze=computed(()=>{if(!xe.svg||xe.path)return;const We=purify.sanitize(xe.svg),De=new DOMParser().parseFromString(We,"image/svg+xml");return De.querySelector("parsererror")?"":(De.documentElement.id&&De.documentElement.removeAttribute("id"),De.documentElement.outerHTML)});return(We,De)=>(openBlock(),createElementBlock("span",{"aria-hidden":We.name?void 0:"true","aria-label":We.name||void 0,class:normalizeClass(["icon-vue",{"icon-vue--directional":We.directional,"icon-vue--inline":We.inline}]),role:"img"},[ze.value?(openBlock(),createElementBlock("span",{key:1,innerHTML:ze.value},null,8,_hoisted_4$c)):(openBlock(),createElementBlock("svg",_hoisted_2$h,[createBaseVNode("path",{d:We.path},null,8,_hoisted_3$d)]))],10,_hoisted_1$j))}}),NcIconSvgWrapper=_export_sfc(_sfc_main$n,[["__scopeId","data-v-5a43cff9"]]),NC_ACTIONS_IS_SEMANTIC_MENU=Symbol.for("NcActions:isSemanticMenu"),NC_ACTIONS_CLOSE_MENU=Symbol.for("NcActions:closeMenu"),ActionGlobalMixin={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?.()[0].children?.trim?.()||""}}},ActionTextMixin={mixins:[ActionGlobalMixin],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:NC_ACTIONS_CLOSE_MENU}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(Me){this.$emit("click",Me),this.closeAfterClick&&this.closeMenu(!1)}}},_sfc_main$m={name:"NcActionButton",components:{NcIconSvgWrapper},mixins:[ActionTextMixin],inject:{isInSemanticMenu:{from:NC_ACTIONS_IS_SEMANTIC_MENU,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:Me=>["button","checkbox","radio","reset","submit"].includes(Me)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck,mdiChevronRight}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const Me={};return this.isInSemanticMenu?(Me.role="menuitem",this.type==="radio"?(Me.role="menuitemradio",Me["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(Me.role="menuitemcheckbox",Me["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(Me["aria-pressed"]=this.modelValue?"true":"false"),Me}},methods:{handleClick(Me){this.onClick(Me),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}},_hoisted_1$i=["role"],_hoisted_2$g=["aria-label","disabled","title","type"],_hoisted_3$c={class:"action-button__longtext-wrapper"},_hoisted_4$b={key:0,class:"action-button__name"},_hoisted_5$5=["textContent"],_hoisted_6$5={key:2,class:"action-button__text"},_hoisted_7$2=["textContent"],_hoisted_8$1={key:2,class:"action-button__pressed-icon material-design-icon"};function _sfc_render$c(Me,xe,Ke,ze,We,De){const vt=resolveComponent("NcIconSvgWrapper");return openBlock(),createElementBlock("li",{class:normalizeClass(["action",{"action--disabled":Ke.disabled}]),role:De.isInSemanticMenu&&"presentation"},[createBaseVNode("button",mergeProps({"aria-label":Me.ariaLabel,class:["action-button button-vue",{"action-button--active":De.isChecked,focusable:De.isFocusable}],disabled:Ke.disabled,title:Me.title,type:De.nativeType},De.buttonAttributes,{onClick:xe[0]||(xe[0]=(...Je)=>De.handleClick&&De.handleClick(...Je))}),[renderSlot(Me.$slots,"icon",{},()=>[createBaseVNode("span",{class:normalizeClass([[Me.isIconUrl?"action-button__icon--url":Me.icon],"action-button__icon"]),style:normalizeStyle({backgroundImage:Me.isIconUrl?`url(${Me.icon})`:null}),"aria-hidden":"true"},null,6)],!0),createBaseVNode("span",_hoisted_3$c,[Me.name?(openBlock(),createElementBlock("strong",_hoisted_4$b,toDisplayString(Me.name),1)):createCommentVNode("",!0),Me.isLongText?(openBlock(),createElementBlock("span",{key:1,class:"action-button__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_5$5)):(openBlock(),createElementBlock("span",_hoisted_6$5,toDisplayString(Me.text),1)),Ke.description?(openBlock(),createElementBlock("span",{key:3,class:"action-button__description",textContent:toDisplayString(Ke.description)},null,8,_hoisted_7$2)):createCommentVNode("",!0)]),Ke.isMenu?(openBlock(),createBlock(vt,{key:0,class:"action-button__menu-icon",directional:"",path:ze.mdiChevronRight},null,8,["path"])):De.isChecked?(openBlock(),createBlock(vt,{key:1,path:ze.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):De.isChecked===!1?(openBlock(),createElementBlock("span",_hoisted_8$1)):createCommentVNode("",!0),createCommentVNode("",!0)],16,_hoisted_2$g)],10,_hoisted_1$i)}const NcActionButton=_export_sfc(_sfc_main$m,[["render",_sfc_render$c],["__scopeId","data-v-330b5e3e"]]);register(),register();const _hoisted_1$h=["for"],_hoisted_2$f=["id","type","value","min","max"],_sfc_main$l=defineComponent({inheritAttrs:!1,__name:"NcDateTimePickerNative",props:mergeModels({class:{default:void 0},id:{default:()=>createElementId()},inputClass:{default:""},type:{default:"date"},label:{default:()=>t("Please choose a date")},min:{default:null},max:{default:null},hideLabel:{type:Boolean}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(Me){const xe=useModel(Me,"modelValue"),Ke=Me,ze=computed(()=>xe.value?Je(xe.value):""),We=computed(()=>Ke.max?Je(Ke.max):void 0),De=computed(()=>Ke.min?Je(Ke.min):void 0);function vt(yt){const Ft=yt.getFullYear().toString().padStart(4,"0"),$t=(yt.getMonth()+1).toString().padStart(2,"0"),Rt=yt.getDate().toString().padStart(2,"0"),qt=yt.getHours().toString().padStart(2,"0"),Pt=yt.getMinutes().toString().padStart(2,"0");return{yyyy:Ft,MM:$t,dd:Rt,hh:qt,mm:Pt}}function Je(yt){const{yyyy:Ft,MM:$t,dd:Rt,hh:qt,mm:Pt}=vt(yt);if(Ke.type==="datetime-local")return`${Ft}-${$t}-${Rt}T${qt}:${Pt}`;if(Ke.type==="date")return`${Ft}-${$t}-${Rt}`;if(Ke.type==="month")return`${Ft}-${$t}`;if(Ke.type==="time")return`${qt}:${Pt}`;if(Ke.type==="week"){const Nt=new Date(Number.parseInt(Ft),0,1),zt=Math.floor((yt.getTime()-Nt.getTime())/(1440*60*1e3)),Gt=Math.ceil(zt/7);return`${Ft}-W${Gt}`}return""}function Ct(yt){const Ft=yt.target;if(!Ft||isNaN(Ft.valueAsNumber))xe.value=null;else if(Ke.type==="time"){const $t=Ft.value,{yyyy:Rt,MM:qt,dd:Pt}=vt(xe.value||new Date);xe.value=new Date(`${Rt}-${qt}-${Pt}T${$t}`)}else if(Ke.type==="month"){const $t=(new Date(Ft.value).getMonth()+1).toString().padStart(2,"0"),{yyyy:Rt,dd:qt,hh:Pt,mm:Nt}=vt(xe.value||new Date);xe.value=new Date(`${Rt}-${$t}-${qt}T${Pt}:${Nt}`)}else{const $t=new Date(Ft.valueAsNumber).getTimezoneOffset()*1e3*60,Rt=Ft.valueAsNumber+$t;xe.value=new Date(Rt)}}return(yt,Ft)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["native-datetime-picker",yt.$props.class])},[createBaseVNode("label",{class:normalizeClass(["native-datetime-picker__label",{"hidden-visually":yt.hideLabel}]),for:yt.id},toDisplayString(yt.label),11,_hoisted_1$h),createBaseVNode("input",mergeProps({id:yt.id,class:["native-datetime-picker__input",yt.inputClass],type:yt.type,value:ze.value,min:De.value,max:We.value},yt.$attrs,{onInput:Ct}),null,16,_hoisted_2$f)],2))}}),NcDateTimePickerNative=_export_sfc(_sfc_main$l,[["__scopeId","data-v-b97e1f7a"]]);function loadState(Me,xe,Ke){const ze=document.querySelector(`#initial-state-${Me}-${xe}`);if(ze===null)throw new Error(`Could not find initial state ${xe} of ${Me}`);try{return JSON.parse(atob(ze.value))}catch{throw new Error(`Could not parse initial state ${xe} of ${Me}`)}}function e(){try{return loadState("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}var debounce$1={exports:{}},hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce$1.exports;hasRequiredDebounce=1;function Me(xe,Ke=100,ze={}){if(typeof xe!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof xe}\`.`);if(Ke<0)throw new RangeError("`wait` must not be negative.");const{immediate:We}=typeof ze=="boolean"?{immediate:ze}:ze;let De,vt,Je,Ct,yt;function Ft(){const qt=De,Pt=vt;return De=void 0,vt=void 0,yt=xe.apply(qt,Pt),yt}function $t(){const qt=Date.now()-Ct;qt=0?Je=setTimeout($t,Ke-qt):(Je=void 0,We||(yt=Ft()))}const Rt=function(...qt){if(De&&this!==De&&Object.getPrototypeOf(this)===Object.getPrototypeOf(De))throw new Error("Debounced method called with different contexts of the same prototype.");De=this,vt=qt,Ct=Date.now();const Pt=We&&!Je;return Je||(Je=setTimeout($t,Ke)),Pt&&(yt=Ft()),yt};return Object.defineProperty(Rt,"isPending",{get(){return Je!==void 0}}),Rt.clear=()=>{Je&&(clearTimeout(Je),Je=void 0)},Rt.flush=()=>{Je&&Rt.trigger()},Rt.trigger=()=>{yt=Ft(),Rt.clear()},Rt}return debounce$1.exports.debounce=Me,debounce$1.exports=Me,debounce$1.exports}var debounceExports=requireDebounce();const debounce=getDefaultExportFromCjs(debounceExports),[majorVersion]=window.OC?.config?.version?.split(".")??[],isLegacy=Number.parseInt(majorVersion??"32")<32,routerKey=Symbol(""),_hoisted_1$g={class:"button-vue__wrapper"},_hoisted_2$e={class:"button-vue__icon"},_hoisted_3$b={class:"button-vue__text"},_sfc_main$k=defineComponent({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(Me,{emit:xe}){const Ke=Me,ze=xe,We=inject(routerKey,null)!==null,De=computed(()=>We&&Ke.to?"RouterLink":Ke.href?"a":"button"),vt=computed(()=>De.value==="button"&&typeof Ke.pressed=="boolean"),Je=computed(()=>Ke.pressed?"primary":Ke.pressed===!1&&Ke.variant==="primary"?"secondary":Ke.variant),Ct=computed(()=>Je.value.startsWith("tertiary")),yt=computed(()=>Ke.alignment.split("-")[0]),Ft=computed(()=>Ke.alignment.includes("-")),$t=inject("NcPopover:trigger:attrs",()=>({}),!1),Rt=computed(()=>$t()),qt=computed(()=>{if(De.value==="RouterLink")return{to:Ke.to,activeClass:"active"};if(De.value==="a")return{href:Ke.href||"#",target:Ke.target,rel:"nofollow noreferrer noopener",download:Ke.download||void 0};if(De.value==="button")return{...Rt.value,"aria-pressed":Ke.pressed,type:Ke.type,disabled:Ke.disabled}});function Pt(Nt){vt.value&&ze("update:pressed",!Ke.pressed),ze("click",Nt)}return(Nt,zt)=>(openBlock(),createBlock(resolveDynamicComponent(De.value),mergeProps({class:["button-vue",[`button-vue--size-${Nt.size}`,{[`button-vue--${Je.value}`]:Je.value,"button-vue--tertiary":Ct.value,"button-vue--wide":Nt.wide,[`button-vue--${yt.value}`]:yt.value!=="center","button-vue--reverse":Ft.value,"button-vue--legacy":unref(isLegacy)}]],"aria-label":Nt.ariaLabel},qt.value,{onClick:Pt}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$g,[createBaseVNode("span",_hoisted_2$e,[renderSlot(Nt.$slots,"icon",{},void 0,!0)]),createBaseVNode("span",_hoisted_3$b,[renderSlot(Nt.$slots,"default",{},()=>[createTextVNode(toDisplayString(Nt.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),NcButton=_export_sfc(_sfc_main$k,[["__scopeId","data-v-1057e2a8"]]),_hoisted_1$f={class:"input-field__main-wrapper"},_hoisted_2$d=["id","aria-describedby","disabled","placeholder","type","value"],_hoisted_3$a=["for"],_hoisted_4$a={class:"input-field__icon input-field__icon--leading"},_hoisted_5$4={key:2,class:"input-field__icon input-field__icon--trailing"},_hoisted_6$4=["id"],_sfc_main$j=defineComponent({inheritAttrs:!1,__name:"NcInputField",props:mergeModels({class:{default:""},inputClass:{default:""},id:{default:()=>createElementId()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels(["trailingButtonClick"],["update:modelValue"]),setup(Me,{expose:xe,emit:Ke}){const ze=useModel(Me,"modelValue"),We=Me,De=Ke;xe({focus:Rt,select:qt});const vt=useAttrs(),Je=useTemplateRef("input"),Ct=computed(()=>We.showTrailingButton||We.success),yt=computed(()=>We.placeholder||(isLegacy?We.label:void 0)),Ft=computed(()=>We.label||We.labelOutside),$t=computed(()=>{const Nt=[];return We.helperText&&Nt.push(`${We.id}-helper-text`),vt["aria-describedby"]&&Nt.push(String(vt["aria-describedby"])),Nt.join(" ")||void 0});function Rt(Nt){Je.value.focus(Nt)}function qt(){Je.value.select()}function Pt(Nt){const zt=Nt.target;ze.value=We.type==="number"&&typeof ze.value=="number"?parseFloat(zt.value):zt.value}return(Nt,zt)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["input-field",[{"input-field--disabled":Nt.disabled,"input-field--error":Nt.error,"input-field--label-outside":Nt.labelOutside||!Ft.value,"input-field--leading-icon":!!Nt.$slots.icon,"input-field--trailing-icon":Ct.value,"input-field--pill":Nt.pill,"input-field--success":Nt.success,"input-field--legacy":unref(isLegacy)},Nt.$props.class]])},[createBaseVNode("div",_hoisted_1$f,[createBaseVNode("input",mergeProps(Nt.$attrs,{id:Nt.id,ref:"input","aria-describedby":$t.value,"aria-live":"polite",class:["input-field__input",Nt.inputClass],disabled:Nt.disabled,placeholder:yt.value,type:Nt.type,value:ze.value.toString(),onInput:Pt}),null,16,_hoisted_2$d),!Nt.labelOutside&&Ft.value?(openBlock(),createElementBlock("label",{key:0,class:"input-field__label",for:Nt.id},toDisplayString(Nt.label),9,_hoisted_3$a)):createCommentVNode("",!0),withDirectives(createBaseVNode("div",_hoisted_4$a,[renderSlot(Nt.$slots,"icon",{},void 0,!0)],512),[[vShow,!!Nt.$slots.icon]]),Nt.showTrailingButton?(openBlock(),createBlock(unref(NcButton),{key:1,class:"input-field__trailing-button","aria-label":Nt.trailingButtonLabel,disabled:Nt.disabled,variant:"tertiary-no-background",onClick:zt[0]||(zt[0]=Gt=>De("trailingButtonClick",Gt))},{icon:withCtx(()=>[renderSlot(Nt.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):Nt.success||Nt.error?(openBlock(),createElementBlock("div",_hoisted_5$4,[Nt.success?(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:0,path:unref(mdiCheck)},null,8,["path"])):(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:1,path:unref(mdiAlertCircle)},null,8,["path"]))])):createCommentVNode("",!0)]),Nt.helperText?(openBlock(),createElementBlock("p",{key:0,id:`${Nt.id}-helper-text`,class:"input-field__helper-text-message"},[Nt.success?(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:0,class:"input-field__helper-text-message__icon",path:unref(mdiCheck)},null,8,["path"])):Nt.error?(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:1,class:"input-field__helper-text-message__icon",path:unref(mdiAlertCircle)},null,8,["path"])):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(Nt.helperText),1)],8,_hoisted_6$4)):createCommentVNode("",!0)],2))}}),NcInputField=_export_sfc(_sfc_main$j,[["__scopeId","data-v-8e3b7bdd"]]);var LogLevel=(Me=>(Me[Me.Debug=0]="Debug",Me[Me.Info=1]="Info",Me[Me.Warn=2]="Warn",Me[Me.Error=3]="Error",Me[Me.Fatal=4]="Fatal",Me))(LogLevel||{}),__defProp$1=Object.defineProperty,__defNormalProp$1=(Me,xe,Ke)=>xe in Me?__defProp$1(Me,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Me[xe]=Ke,__publicField$1=(Me,xe,Ke)=>(__defNormalProp$1(Me,xe+"",Ke),Ke);class ConsoleLogger{constructor(xe){__publicField$1(this,"context"),this.context=xe||{}}formatMessage(xe,Ke,ze){let We="["+LogLevel[Ke].toUpperCase()+"] ";return ze&&ze.app&&(We+=ze.app+": "),typeof xe=="string"?We+xe:(We+="Unexpected ".concat(xe.name),xe.message&&(We+=' "'.concat(xe.message,'"')),Ke===LogLevel.Debug&&xe.stack&&(We+=` - -Stack trace: -`.concat(xe.stack)),We)}log(xe,Ke,ze){var We,De;if(!(typeof((We=this.context)==null?void 0:We.level)=="number"&&xe<((De=this.context)==null?void 0:De.level)))switch(typeof Ke=="object"&&ze?.error===void 0&&(ze.error=Ke),xe){case LogLevel.Debug:console.debug(this.formatMessage(Ke,LogLevel.Debug,ze),ze);break;case LogLevel.Info:console.info(this.formatMessage(Ke,LogLevel.Info,ze),ze);break;case LogLevel.Warn:console.warn(this.formatMessage(Ke,LogLevel.Warn,ze),ze);break;case LogLevel.Error:console.error(this.formatMessage(Ke,LogLevel.Error,ze),ze);break;case LogLevel.Fatal:default:console.error(this.formatMessage(Ke,LogLevel.Fatal,ze),ze);break}}debug(xe,Ke){this.log(LogLevel.Debug,xe,Object.assign({},this.context,Ke))}info(xe,Ke){this.log(LogLevel.Info,xe,Object.assign({},this.context,Ke))}warn(xe,Ke){this.log(LogLevel.Warn,xe,Object.assign({},this.context,Ke))}error(xe,Ke){this.log(LogLevel.Error,xe,Object.assign({},this.context,Ke))}fatal(xe,Ke){this.log(LogLevel.Fatal,xe,Object.assign({},this.context,Ke))}}function buildConsoleLogger(Me){return new ConsoleLogger(Me)}var __defProp=Object.defineProperty,__defNormalProp=(Me,xe,Ke)=>xe in Me?__defProp(Me,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Me[xe]=Ke,__publicField=(Me,xe,Ke)=>(__defNormalProp(Me,typeof xe!="symbol"?xe+"":xe,Ke),Ke);class LoggerBuilder{constructor(xe){__publicField(this,"context"),__publicField(this,"factory"),this.context={},this.factory=xe}setApp(xe){return this.context.app=xe,this}setLogLevel(xe){return this.context.level=xe,this}setUid(xe){return this.context.uid=xe,this}detectUser(){const xe=getCurrentUser();return xe!==null&&(this.context.uid=xe.uid),this}detectLogLevel(){const xe=this,Ke=()=>{var ze,We;document.readyState==="complete"||document.readyState==="interactive"?(xe.context.level=(We=(ze=window._oc_config)==null?void 0:ze.loglevel)!=null?We:LogLevel.Warn,window._oc_debug&&(xe.context.level=LogLevel.Debug),document.removeEventListener("readystatechange",Ke)):document.addEventListener("readystatechange",Ke)};return Ke(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function getLoggerBuilder(){return new LoggerBuilder(buildConsoleLogger)}const logger=getLoggerBuilder().detectUser().setApp("@nextcloud/vue").build();register();const _sfc_main$i=defineComponent({__name:"NcPasswordField",props:mergeModels({class:{},inputClass:{default:""},id:{},label:{},labelOutside:{type:Boolean},placeholder:{},showTrailingButton:{type:Boolean,default:!0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},checkPasswordStrength:{type:Boolean},minlength:{default:void 0},asText:{type:Boolean}},{modelValue:{default:""},modelModifiers:{},visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:mergeModels(["valid","invalid"],["update:modelValue","update:visible"]),setup(Me,{expose:xe,emit:Ke}){const ze=useModel(Me,"modelValue"),We=useModel(Me,"visible"),De=Me,vt=Ke;watch(ze,debounce(Rt,500)),xe({focus:Pt,select:Nt});const{password_policy:Je}=e(),Ct=useTemplateRef("inputField"),yt=ref$1(""),Ft=ref$1(),$t=computed(()=>{const zt={...De};return delete zt.checkPasswordStrength,delete zt.minlength,delete zt.asText,delete zt.error,delete zt.helperText,delete zt.inputClass,delete zt.success,zt});async function Rt(){if(De.checkPasswordStrength)try{const{data:zt}=await cancelableClient.post(v$1("apps/password_policy/api/v1/validate"),{password:ze.value});if(Ft.value=zt.ocs.data.passed,zt.ocs.data.passed){yt.value=t("Password is secure"),vt("valid");return}yt.value=zt.ocs.data.reason,vt("invalid")}catch(zt){logger.error("Password policy returned an error",{error:zt})}}function qt(){We.value=!We.value}function Pt(zt){Ct.value.focus(zt)}function Nt(){Ct.value.select()}return(zt,Gt)=>(openBlock(),createBlock(NcInputField,mergeProps($t.value,{ref:"inputField",modelValue:ze.value,"onUpdate:modelValue":Gt[0]||(Gt[0]=Ut=>ze.value=Ut),error:zt.error||Ft.value===!1,"helper-text":zt.helperText||yt.value,"input-class":[zt.inputClass,{"password-field__input--secure-text":!We.value&&zt.asText}],minlength:zt.minlength??unref(Je)?.minLength??0,success:zt.success||Ft.value===!0,"trailing-button-label":We.value?unref(t)("Hide password"):unref(t)("Show password"),type:We.value||zt.asText?"text":"password",onTrailingButtonClick:qt}),createSlots({"trailing-button-icon":withCtx(()=>[createVNode(NcIconSvgWrapper,{path:We.value?unref(mdiEyeOff):unref(mdiEye)},null,8,["path"])]),_:2},[zt.$slots.icon?{name:"icon",fn:withCtx(()=>[renderSlot(zt.$slots,"icon",{},void 0,!0)]),key:"0"}:void 0]),1040,["modelValue","error","helper-text","input-class","minlength","success","trailing-button-label","type"]))}}),NcPasswordField=_export_sfc(_sfc_main$i,[["__scopeId","data-v-6df84a8a"]]);register();const _sfc_main$h=defineComponent({__name:"NcTextField",props:mergeModels({class:{},inputClass:{},id:{},label:{},labelOutside:{type:Boolean},type:{},placeholder:{},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},trailingButtonIcon:{default:"close"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(Me,{expose:xe}){const Ke=useModel(Me,"modelValue"),ze=Me;xe({focus:Ct,select:yt});const We=useTemplateRef("inputField"),De={arrowEnd:t("Save changes"),close:t("Clear text"),undo:t("Undo changes")},vt=new Set(Object.keys(NcInputField.props)),Je=computed(()=>{const Ft=Object.fromEntries(Object.entries(ze).filter(([$t])=>vt.has($t)));return Ft.trailingButtonLabel??=De[ze.trailingButtonIcon],Ft});function Ct(Ft){We.value.focus(Ft)}function yt(){We.value.select()}return(Ft,$t)=>(openBlock(),createBlock(unref(NcInputField),mergeProps(Je.value,{ref:"inputField",modelValue:Ke.value,"onUpdate:modelValue":$t[0]||($t[0]=Rt=>Ke.value=Rt)}),createSlots({_:2},[Ft.$slots.icon?{name:"icon",fn:withCtx(()=>[renderSlot(Ft.$slots,"icon")]),key:"0"}:void 0,Ft.type!=="search"?{name:"trailing-button-icon",fn:withCtx(()=>[Ft.trailingButtonIcon==="arrowEnd"?(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:0,directional:"",path:unref(mdiArrowRight)},null,8,["path"])):(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:1,path:Ft.trailingButtonIcon==="undo"?unref(mdiUndo):unref(mdiClose)},null,8,["path"]))]),key:"1"}:void 0]),1040,["modelValue"]))}});register(t46),t("Submit");const _sfc_main$g={name:"NcActionLink",mixins:[ActionTextMixin],inject:{isInSemanticMenu:{from:NC_ACTIONS_IS_SEMANTIC_MENU,default:!1}},props:{href:{type:String,required:!0,validator:Me=>{try{return new URL(Me)}catch{return Me.startsWith("#")||Me.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:Me=>Me&&(!Me.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(Me)>-1)},title:{type:String,default:null}}},_hoisted_1$e=["role"],_hoisted_2$c=["download","href","aria-label","target","title","role"],_hoisted_3$9={key:0,class:"action-link__longtext-wrapper"},_hoisted_4$9={class:"action-link__name"},_hoisted_5$3=["textContent"],_hoisted_6$3=["textContent"],_hoisted_7$1={key:2,class:"action-link__text"};function _sfc_render$b(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("li",{class:"action",role:De.isInSemanticMenu&&"presentation"},[createBaseVNode("a",{download:Ke.download,href:Ke.href,"aria-label":Me.ariaLabel,target:Ke.target,title:Ke.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:De.isInSemanticMenu&&"menuitem",onClick:xe[0]||(xe[0]=(...vt)=>Me.onClick&&Me.onClick(...vt))},[renderSlot(Me.$slots,"icon",{},()=>[createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass(["action-link__icon",[Me.isIconUrl?"action-link__icon--url":Me.icon]]),style:normalizeStyle({backgroundImage:Me.isIconUrl?`url(${Me.icon})`:null})},null,6)],!0),Me.name?(openBlock(),createElementBlock("span",_hoisted_3$9,[createBaseVNode("strong",_hoisted_4$9,toDisplayString(Me.name),1),xe[1]||(xe[1]=createBaseVNode("br",null,null,-1)),createBaseVNode("span",{class:"action-link__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_5$3)])):Me.isLongText?(openBlock(),createElementBlock("span",{key:1,class:"action-link__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_6$3)):(openBlock(),createElementBlock("span",_hoisted_7$1,toDisplayString(Me.text),1)),createCommentVNode("",!0)],8,_hoisted_2$c)],8,_hoisted_1$e)}const NcActionLink=_export_sfc(_sfc_main$g,[["render",_sfc_render$b],["__scopeId","data-v-9e538838"]]),_sfc_main$f={name:"NcActionRouter",mixins:[ActionTextMixin],inject:{isInSemanticMenu:{from:NC_ACTIONS_IS_SEMANTIC_MENU,default:!1}},props:{to:{type:[String,Object],required:!0}}},_hoisted_1$d=["role"],_hoisted_2$b={key:0,class:"action-router__longtext-wrapper"},_hoisted_3$8={class:"action-router__name"},_hoisted_4$8=["textContent"],_hoisted_5$2=["textContent"],_hoisted_6$2={key:2,class:"action-router__text"};function _sfc_render$a(Me,xe,Ke,ze,We,De){const vt=resolveComponent("RouterLink");return openBlock(),createElementBlock("li",{class:"action",role:De.isInSemanticMenu&&"presentation"},[createVNode(vt,{"aria-label":Me.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:De.isInSemanticMenu&&"menuitem",title:Me.title,to:Ke.to,onClick:Me.onClick},{default:withCtx(()=>[renderSlot(Me.$slots,"icon",{},()=>[createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass(["action-router__icon",[Me.isIconUrl?"action-router__icon--url":Me.icon]]),style:normalizeStyle({backgroundImage:Me.isIconUrl?`url(${Me.icon})`:null})},null,6)],!0),Me.name?(openBlock(),createElementBlock("span",_hoisted_2$b,[createBaseVNode("strong",_hoisted_3$8,toDisplayString(Me.name),1),xe[0]||(xe[0]=createBaseVNode("br",null,null,-1)),createBaseVNode("span",{class:"action-router__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_4$8)])):Me.isLongText?(openBlock(),createElementBlock("span",{key:1,class:"action-router__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_5$2)):(openBlock(),createElementBlock("span",_hoisted_6$2,toDisplayString(Me.text),1)),createCommentVNode("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,_hoisted_1$d)}const NcActionRouter=_export_sfc(_sfc_main$f,[["render",_sfc_render$a],["__scopeId","data-v-87267750"]]);function tryOnScopeDispose(Me){return getCurrentScope()?(onScopeDispose(Me),!0):!1}const localProvidedStateMap=new WeakMap,injectLocal=(...Me)=>{var xe;const Ke=Me[0],ze=(xe=getCurrentInstance())==null?void 0:xe.proxy;if(ze==null&&!hasInjectionContext())throw new Error("injectLocal must be called in setup");return ze&&localProvidedStateMap.has(ze)&&Ke in localProvidedStateMap.get(ze)?localProvidedStateMap.get(ze)[Ke]:inject(...Me)};function createSharedComposable(Me){let xe=0,Ke,ze;const We=()=>{xe-=1,ze&&xe<=0&&(ze.stop(),Ke=void 0,ze=void 0)};return(...De)=>(xe+=1,ze||(ze=effectScope(!0),Ke=ze.run(()=>Me(...De))),tryOnScopeDispose(We),Ke)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=Me=>Me!=null,toString=Object.prototype.toString,isObject=Me=>toString.call(Me)==="[object Object]",noop$1=()=>{},isIOS=getIsIOS();function getIsIOS(){var Me,xe;return isClient&&((Me=window?.navigator)==null?void 0:Me.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((xe=window?.navigator)==null?void 0:xe.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function toRef(...Me){if(Me.length!==1)return toRef$1(...Me);const xe=Me[0];return typeof xe=="function"?readonly(customRef(()=>({get:xe,set:noop$1}))):ref$1(xe)}function pxValue(Me){return Me.endsWith("rem")?Number.parseFloat(Me)*16:Number.parseFloat(Me)}function toArray(Me){return Array.isArray(Me)?Me:[Me]}function getLifeCycleTarget(Me){return getCurrentInstance()}function tryOnMounted(Me,xe=!0,Ke){getLifeCycleTarget()?onMounted(Me,Ke):xe?Me():nextTick(Me)}function watchImmediate(Me,xe,Ke){return watch(Me,xe,{...Ke,immediate:!0})}const defaultWindow$1=isClient?window:void 0;function unrefElement$1(Me){var xe;const Ke=toValue(Me);return(xe=Ke?.$el)!=null?xe:Ke}function useEventListener$1(...Me){const xe=[],Ke=()=>{xe.forEach(Je=>Je()),xe.length=0},ze=(Je,Ct,yt,Ft)=>(Je.addEventListener(Ct,yt,Ft),()=>Je.removeEventListener(Ct,yt,Ft)),We=computed(()=>{const Je=toArray(toValue(Me[0])).filter(Ct=>Ct!=null);return Je.every(Ct=>typeof Ct!="string")?Je:void 0}),De=watchImmediate(()=>{var Je,Ct;return[(Ct=(Je=We.value)==null?void 0:Je.map(yt=>unrefElement$1(yt)))!=null?Ct:[defaultWindow$1].filter(yt=>yt!=null),toArray(toValue(We.value?Me[1]:Me[0])),toArray(unref(We.value?Me[2]:Me[1])),toValue(We.value?Me[3]:Me[2])]},([Je,Ct,yt,Ft])=>{if(Ke(),!Je?.length||!Ct?.length||!yt?.length)return;const $t=isObject(Ft)?{...Ft}:Ft;xe.push(...Je.flatMap(Rt=>Ct.flatMap(qt=>yt.map(Pt=>ze(Rt,qt,Pt,$t)))))},{flush:"post"}),vt=()=>{De(),Ke()};return tryOnScopeDispose(Ke),vt}function useMounted(){const Me=shallowRef(!1),xe=getCurrentInstance();return xe&&onMounted(()=>{Me.value=!0},xe),Me}function useSupported(Me){const xe=useMounted();return computed(()=>(xe.value,!!Me()))}function useMutationObserver(Me,xe,Ke={}){const{window:ze=defaultWindow$1,...We}=Ke;let De;const vt=useSupported(()=>ze&&"MutationObserver"in ze),Je=()=>{De&&(De.disconnect(),De=void 0)},Ct=computed(()=>{const Rt=toValue(Me),qt=toArray(Rt).map(unrefElement$1).filter(notNullish);return new Set(qt)}),yt=watch(Ct,Rt=>{Je(),vt.value&&Rt.size&&(De=new MutationObserver(xe),Rt.forEach(qt=>De.observe(qt,We)))},{immediate:!0,flush:"post"}),Ft=()=>De?.takeRecords(),$t=()=>{yt(),Je()};return tryOnScopeDispose($t),{isSupported:vt,stop:$t,takeRecords:Ft}}function onElementRemoval(Me,xe,Ke={}){const{window:ze=defaultWindow$1,document:We=ze?.document,flush:De="sync"}=Ke;if(!ze||!We)return noop$1;let vt;const Je=Ft=>{vt?.(),vt=Ft},Ct=watchEffect(()=>{const Ft=unrefElement$1(Me);if(Ft){const{stop:$t}=useMutationObserver(We,Rt=>{Rt.map(qt=>[...qt.removedNodes]).flat().some(qt=>qt===Ft||qt.contains(Ft))&&xe(Rt)},{window:ze,childList:!0,subtree:!0});Je($t)}},{flush:De}),yt=()=>{Ct(),Je()};return tryOnScopeDispose(yt),yt}function useActiveElement(Me={}){var xe;const{window:Ke=defaultWindow$1,deep:ze=!0,triggerOnRemoval:We=!1}=Me,De=(xe=Me.document)!=null?xe:Ke?.document,vt=()=>{var yt;let Ft=De?.activeElement;if(ze)for(;Ft?.shadowRoot;)Ft=(yt=Ft?.shadowRoot)==null?void 0:yt.activeElement;return Ft},Je=shallowRef(),Ct=()=>{Je.value=vt()};if(Ke){const yt={capture:!0,passive:!0};useEventListener$1(Ke,"blur",Ft=>{Ft.relatedTarget===null&&Ct()},yt),useEventListener$1(Ke,"focus",Ct,yt)}return We&&onElementRemoval(Je,Ct,{document:De}),Ct(),Je}const ssrWidthSymbol=Symbol("vueuse-ssr-width");function useSSRWidth(){const Me=hasInjectionContext()?injectLocal(ssrWidthSymbol,null):null;return typeof Me=="number"?Me:void 0}function useMediaQuery(Me,xe={}){const{window:Ke=defaultWindow$1,ssrWidth:ze=useSSRWidth()}=xe,We=useSupported(()=>Ke&&"matchMedia"in Ke&&typeof Ke.matchMedia=="function"),De=shallowRef(typeof ze=="number"),vt=shallowRef(),Je=shallowRef(!1),Ct=yt=>{Je.value=yt.matches};return watchEffect(()=>{if(De.value){De.value=!We.value;const yt=toValue(Me).split(",");Je.value=yt.some(Ft=>{const $t=Ft.includes("not all"),Rt=Ft.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),qt=Ft.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let Pt=!!(Rt||qt);return Rt&&Pt&&(Pt=ze>=pxValue(Rt[1])),qt&&Pt&&(Pt=ze<=pxValue(qt[1])),$t?!Pt:Pt});return}We.value&&(vt.value=Ke.matchMedia(toValue(Me)),Je.value=vt.value.matches)}),useEventListener$1(vt,"change",Ct,{passive:!0}),computed(()=>Je.value)}function usePreferredDark(Me){return useMediaQuery("(prefers-color-scheme: dark)",Me)}function useResizeObserver(Me,xe,Ke={}){const{window:ze=defaultWindow$1,...We}=Ke;let De;const vt=useSupported(()=>ze&&"ResizeObserver"in ze),Je=()=>{De&&(De.disconnect(),De=void 0)},Ct=computed(()=>{const $t=toValue(Me);return Array.isArray($t)?$t.map(Rt=>unrefElement$1(Rt)):[unrefElement$1($t)]}),yt=watch(Ct,$t=>{if(Je(),vt.value&&ze){De=new ResizeObserver(xe);for(const Rt of $t)Rt&&De.observe(Rt,We)}},{immediate:!0,flush:"post"}),Ft=()=>{Je(),yt()};return tryOnScopeDispose(Ft),{isSupported:vt,stop:Ft}}function useElementBounding(Me,xe={}){const{reset:Ke=!0,windowResize:ze=!0,windowScroll:We=!0,immediate:De=!0,updateTiming:vt="sync"}=xe,Je=shallowRef(0),Ct=shallowRef(0),yt=shallowRef(0),Ft=shallowRef(0),$t=shallowRef(0),Rt=shallowRef(0),qt=shallowRef(0),Pt=shallowRef(0);function Nt(){const Gt=unrefElement$1(Me);if(!Gt){Ke&&(Je.value=0,Ct.value=0,yt.value=0,Ft.value=0,$t.value=0,Rt.value=0,qt.value=0,Pt.value=0);return}const Ut=Gt.getBoundingClientRect();Je.value=Ut.height,Ct.value=Ut.bottom,yt.value=Ut.left,Ft.value=Ut.right,$t.value=Ut.top,Rt.value=Ut.width,qt.value=Ut.x,Pt.value=Ut.y}function zt(){vt==="sync"?Nt():vt==="next-frame"&&requestAnimationFrame(()=>Nt())}return useResizeObserver(Me,zt),watch(()=>unrefElement$1(Me),Gt=>!Gt&&zt()),useMutationObserver(Me,zt,{attributeFilter:["style","class"]}),We&&useEventListener$1("scroll",zt,{capture:!0,passive:!0}),ze&&useEventListener$1("resize",zt,{passive:!0}),tryOnMounted(()=>{De&&zt()}),{height:Je,bottom:Ct,left:yt,right:Ft,top:$t,width:Rt,x:qt,y:Pt,update:zt}}function useElementSize(Me,xe={width:0,height:0},Ke={}){const{window:ze=defaultWindow$1,box:We="content-box"}=Ke,De=computed(()=>{var $t,Rt;return(Rt=($t=unrefElement$1(Me))==null?void 0:$t.namespaceURI)==null?void 0:Rt.includes("svg")}),vt=shallowRef(xe.width),Je=shallowRef(xe.height),{stop:Ct}=useResizeObserver(Me,([$t])=>{const Rt=We==="border-box"?$t.borderBoxSize:We==="content-box"?$t.contentBoxSize:$t.devicePixelContentBoxSize;if(ze&&De.value){const qt=unrefElement$1(Me);if(qt){const Pt=qt.getBoundingClientRect();vt.value=Pt.width,Je.value=Pt.height}}else if(Rt){const qt=toArray(Rt);vt.value=qt.reduce((Pt,{inlineSize:Nt})=>Pt+Nt,0),Je.value=qt.reduce((Pt,{blockSize:Nt})=>Pt+Nt,0)}else vt.value=$t.contentRect.width,Je.value=$t.contentRect.height},Ke);tryOnMounted(()=>{const $t=unrefElement$1(Me);$t&&(vt.value="offsetWidth"in $t?$t.offsetWidth:xe.width,Je.value="offsetHeight"in $t?$t.offsetHeight:xe.height)});const yt=watch(()=>unrefElement$1(Me),$t=>{vt.value=$t?xe.width:0,Je.value=$t?xe.height:0});function Ft(){Ct(),yt()}return{width:vt,height:Je,stop:Ft}}const EVENT_FOCUS_IN="focusin",EVENT_FOCUS_OUT="focusout",PSEUDO_CLASS_FOCUS_WITHIN=":focus-within";function useFocusWithin(Me,xe={}){const{window:Ke=defaultWindow$1}=xe,ze=computed(()=>unrefElement$1(Me)),We=shallowRef(!1),De=computed(()=>We.value);if(!Ke||!useActiveElement(xe).value)return{focused:De};const vt={passive:!0};return useEventListener$1(ze,EVENT_FOCUS_IN,()=>We.value=!0,vt),useEventListener$1(ze,EVENT_FOCUS_OUT,()=>{var Je,Ct,yt;return We.value=(yt=(Ct=(Je=ze.value)==null?void 0:Je.matches)==null?void 0:Ct.call(Je,PSEUDO_CLASS_FOCUS_WITHIN))!=null?yt:!1},vt),{focused:De}}function useSwipe(Me,xe={}){const{threshold:Ke=50,onSwipe:ze,onSwipeEnd:We,onSwipeStart:De,passive:vt=!0}=xe,Je=reactive({x:0,y:0}),Ct=reactive({x:0,y:0}),yt=computed(()=>Je.x-Ct.x),Ft=computed(()=>Je.y-Ct.y),{max:$t,abs:Rt}=Math,qt=computed(()=>$t(Rt(yt.value),Rt(Ft.value))>=Ke),Pt=shallowRef(!1),Nt=computed(()=>qt.value?Rt(yt.value)>Rt(Ft.value)?yt.value>0?"left":"right":Ft.value>0?"up":"down":"none"),zt=ci=>[ci.touches[0].clientX,ci.touches[0].clientY],Gt=(ci,vi)=>{Je.x=ci,Je.y=vi},Ut=(ci,vi)=>{Ct.x=ci,Ct.y=vi},ii={passive:vt,capture:!vt},ti=ci=>{Pt.value&&We?.(ci,Nt.value),Pt.value=!1},di=[useEventListener$1(Me,"touchstart",ci=>{if(ci.touches.length!==1)return;const[vi,bi]=zt(ci);Gt(vi,bi),Ut(vi,bi),De?.(ci)},ii),useEventListener$1(Me,"touchmove",ci=>{if(ci.touches.length!==1)return;const[vi,bi]=zt(ci);Ut(vi,bi),ii.capture&&!ii.passive&&Math.abs(yt.value)>Math.abs(Ft.value)&&ci.preventDefault(),!Pt.value&&qt.value&&(Pt.value=!0),Pt.value&&ze?.(ci)},ii),useEventListener$1(Me,["touchend","touchcancel"],ti,ii)];return{isSwiping:Pt,direction:Nt,coordsStart:Je,coordsEnd:Ct,lengthX:yt,lengthY:Ft,stop:()=>di.forEach(ci=>ci()),isPassiveEventSupported:!0}}function useWindowSize(Me={}){const{window:xe=defaultWindow$1,initialWidth:Ke=Number.POSITIVE_INFINITY,initialHeight:ze=Number.POSITIVE_INFINITY,listenOrientation:We=!0,includeScrollbar:De=!0,type:vt="inner"}=Me,Je=shallowRef(Ke),Ct=shallowRef(ze),yt=()=>{if(xe)if(vt==="outer")Je.value=xe.outerWidth,Ct.value=xe.outerHeight;else if(vt==="visual"&&xe.visualViewport){const{width:$t,height:Rt,scale:qt}=xe.visualViewport;Je.value=Math.round($t*qt),Ct.value=Math.round(Rt*qt)}else De?(Je.value=xe.innerWidth,Ct.value=xe.innerHeight):(Je.value=xe.document.documentElement.clientWidth,Ct.value=xe.document.documentElement.clientHeight)};yt(),tryOnMounted(yt);const Ft={passive:!0};if(useEventListener$1("resize",yt,Ft),xe&&vt==="visual"&&xe.visualViewport&&useEventListener$1(xe.visualViewport,"resize",yt,Ft),We){const $t=useMediaQuery("(orientation: portrait)");watch($t,()=>yt())}return{width:Je,height:Ct}}function getTrapStack(){return window._nc_focus_trap??=[],window._nc_focus_trap}function createTrapStackController(){let Me=[];return{pause(){Me=[...getTrapStack()];for(const xe of Me)xe.pause()},unpause(){if(Me.length===getTrapStack().length)for(const xe of Me)xe.unpause();Me=[]}}}function useTrapStackControl(Me,xe={}){const Ke=createTrapStackController();watch(Me,()=>{toValue(xe.disabled)||(toValue(Me)?Ke.pause():Ke.unpause())}),onUnmounted(()=>{Ke.unpause()})}const sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((Me,xe)=>Me.concat(xe,xe+"-"+alignments[0],xe+"-"+alignments[1]),[]),min$1=Math.min,max$1=Math.max,round$1=Math.round,floor$1=Math.floor,createCoords=Me=>({x:Me,y:Me}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(Me,xe,Ke){return max$1(Me,min$1(xe,Ke))}function evaluate(Me,xe){return typeof Me=="function"?Me(xe):Me}function getSide(Me){return Me.split("-")[0]}function getAlignment(Me){return Me.split("-")[1]}function getOppositeAxis(Me){return Me==="x"?"y":"x"}function getAxisLength(Me){return Me==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(Me){return yAxisSides.has(getSide(Me))?"y":"x"}function getAlignmentAxis(Me){return getOppositeAxis(getSideAxis(Me))}function getAlignmentSides(Me,xe,Ke){Ke===void 0&&(Ke=!1);const ze=getAlignment(Me),We=getAlignmentAxis(Me),De=getAxisLength(We);let vt=We==="x"?ze===(Ke?"end":"start")?"right":"left":ze==="start"?"bottom":"top";return xe.reference[De]>xe.floating[De]&&(vt=getOppositePlacement(vt)),[vt,getOppositePlacement(vt)]}function getExpandedPlacements(Me){const xe=getOppositePlacement(Me);return[getOppositeAlignmentPlacement(Me),xe,getOppositeAlignmentPlacement(xe)]}function getOppositeAlignmentPlacement(Me){return Me.replace(/start|end/g,xe=>oppositeAlignmentMap[xe])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(Me,xe,Ke){switch(Me){case"top":case"bottom":return Ke?xe?rlPlacement:lrPlacement:xe?lrPlacement:rlPlacement;case"left":case"right":return xe?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(Me,xe,Ke,ze){const We=getAlignment(Me);let De=getSideList(getSide(Me),Ke==="start",ze);return We&&(De=De.map(vt=>vt+"-"+We),xe&&(De=De.concat(De.map(getOppositeAlignmentPlacement)))),De}function getOppositePlacement(Me){return Me.replace(/left|right|bottom|top/g,xe=>oppositeSideMap[xe])}function expandPaddingObject(Me){return{top:0,right:0,bottom:0,left:0,...Me}}function getPaddingObject(Me){return typeof Me!="number"?expandPaddingObject(Me):{top:Me,right:Me,bottom:Me,left:Me}}function rectToClientRect(Me){const{x:xe,y:Ke,width:ze,height:We}=Me;return{width:ze,height:We,top:Ke,left:xe,right:xe+ze,bottom:Ke+We,x:xe,y:Ke}}function computeCoordsFromPlacement(Me,xe,Ke){let{reference:ze,floating:We}=Me;const De=getSideAxis(xe),vt=getAlignmentAxis(xe),Je=getAxisLength(vt),Ct=getSide(xe),yt=De==="y",Ft=ze.x+ze.width/2-We.width/2,$t=ze.y+ze.height/2-We.height/2,Rt=ze[Je]/2-We[Je]/2;let qt;switch(Ct){case"top":qt={x:Ft,y:ze.y-We.height};break;case"bottom":qt={x:Ft,y:ze.y+ze.height};break;case"right":qt={x:ze.x+ze.width,y:$t};break;case"left":qt={x:ze.x-We.width,y:$t};break;default:qt={x:ze.x,y:ze.y}}switch(getAlignment(xe)){case"start":qt[vt]-=Rt*(Ke&&yt?-1:1);break;case"end":qt[vt]+=Rt*(Ke&&yt?-1:1);break}return qt}const computePosition$1=async(Me,xe,Ke)=>{const{placement:ze="bottom",strategy:We="absolute",middleware:De=[],platform:vt}=Ke,Je=De.filter(Boolean),Ct=await(vt.isRTL==null?void 0:vt.isRTL(xe));let yt=await vt.getElementRects({reference:Me,floating:xe,strategy:We}),{x:Ft,y:$t}=computeCoordsFromPlacement(yt,ze,Ct),Rt=ze,qt={},Pt=0;for(let Nt=0;Nt({name:"arrow",options:Me,async fn(xe){const{x:Ke,y:ze,placement:We,rects:De,platform:vt,elements:Je,middlewareData:Ct}=xe,{element:yt,padding:Ft=0}=evaluate(Me,xe)||{};if(yt==null)return{};const $t=getPaddingObject(Ft),Rt={x:Ke,y:ze},qt=getAlignmentAxis(We),Pt=getAxisLength(qt),Nt=await vt.getDimensions(yt),zt=qt==="y",Gt=zt?"top":"left",Ut=zt?"bottom":"right",ii=zt?"clientHeight":"clientWidth",ti=De.reference[Pt]+De.reference[qt]-Rt[qt]-De.floating[Pt],di=Rt[qt]-De.reference[qt],ci=await(vt.getOffsetParent==null?void 0:vt.getOffsetParent(yt));let vi=ci?ci[ii]:0;(!vi||!await(vt.isElement==null?void 0:vt.isElement(ci)))&&(vi=Je.floating[ii]||De.floating[Pt]);const bi=ti/2-di/2,pi=vi/2-Nt[Pt]/2-1,Mi=min$1($t[Gt],pi),j=min$1($t[Ut],pi),Ae=Mi,He=vi-Nt[Pt]-j,Ue=vi/2-Nt[Pt]/2+bi,Ge=clamp(Ae,Ue,He),_t=!Ct.arrow&&getAlignment(We)!=null&&Ue!==Ge&&De.reference[Pt]/2-(UegetAlignment(ze)===Me),...Ke.filter(ze=>getAlignment(ze)!==Me)]:Ke.filter(ze=>getSide(ze)===ze)).filter(ze=>Me?getAlignment(ze)===Me||(xe?getOppositeAlignmentPlacement(ze)!==ze:!1):!0)}const autoPlacement=function(Me){return Me===void 0&&(Me={}),{name:"autoPlacement",options:Me,async fn(xe){var Ke,ze,We;const{rects:De,middlewareData:vt,placement:Je,platform:Ct,elements:yt}=xe,{crossAxis:Ft=!1,alignment:$t,allowedPlacements:Rt=placements,autoAlignment:qt=!0,...Pt}=evaluate(Me,xe),Nt=$t!==void 0||Rt===placements?getPlacementList($t||null,qt,Rt):Rt,zt=await detectOverflow(xe,Pt),Gt=((Ke=vt.autoPlacement)==null?void 0:Ke.index)||0,Ut=Nt[Gt];if(Ut==null)return{};const ii=getAlignmentSides(Ut,De,await(Ct.isRTL==null?void 0:Ct.isRTL(yt.floating)));if(Je!==Ut)return{reset:{placement:Nt[0]}};const ti=[zt[getSide(Ut)],zt[ii[0]],zt[ii[1]]],di=[...((ze=vt.autoPlacement)==null?void 0:ze.overflows)||[],{placement:Ut,overflows:ti}],ci=Nt[Gt+1];if(ci)return{data:{index:Gt+1,overflows:di},reset:{placement:ci}};const vi=di.map(pi=>{const Mi=getAlignment(pi.placement);return[pi.placement,Mi&&Ft?pi.overflows.slice(0,2).reduce((j,Ae)=>j+Ae,0):pi.overflows[0],pi.overflows]}).sort((pi,Mi)=>pi[1]-Mi[1]),bi=((We=vi.filter(pi=>pi[2].slice(0,getAlignment(pi[0])?2:3).every(Mi=>Mi<=0))[0])==null?void 0:We[0])||vi[0][0];return bi!==Je?{data:{index:Gt+1,overflows:di},reset:{placement:bi}}:{}}}},flip$1=function(Me){return Me===void 0&&(Me={}),{name:"flip",options:Me,async fn(xe){var Ke,ze;const{placement:We,middlewareData:De,rects:vt,initialPlacement:Je,platform:Ct,elements:yt}=xe,{mainAxis:Ft=!0,crossAxis:$t=!0,fallbackPlacements:Rt,fallbackStrategy:qt="bestFit",fallbackAxisSideDirection:Pt="none",flipAlignment:Nt=!0,...zt}=evaluate(Me,xe);if((Ke=De.arrow)!=null&&Ke.alignmentOffset)return{};const Gt=getSide(We),Ut=getSideAxis(Je),ii=getSide(Je)===Je,ti=await(Ct.isRTL==null?void 0:Ct.isRTL(yt.floating)),di=Rt||(ii||!Nt?[getOppositePlacement(Je)]:getExpandedPlacements(Je)),ci=Pt!=="none";!Rt&&ci&&di.push(...getOppositeAxisPlacements(Je,Nt,Pt,ti));const vi=[Je,...di],bi=await detectOverflow(xe,zt),pi=[];let Mi=((ze=De.flip)==null?void 0:ze.overflows)||[];if(Ft&&pi.push(bi[Gt]),$t){const Ue=getAlignmentSides(We,vt,ti);pi.push(bi[Ue[0]],bi[Ue[1]])}if(Mi=[...Mi,{placement:We,overflows:pi}],!pi.every(Ue=>Ue<=0)){var j,Ae;const Ue=(((j=De.flip)==null?void 0:j.index)||0)+1,Ge=vi[Ue];if(Ge&&(!($t==="alignment"&&Ut!==getSideAxis(Ge))||Mi.every(St=>getSideAxis(St.placement)===Ut?St.overflows[0]>0:!0)))return{data:{index:Ue,overflows:Mi},reset:{placement:Ge}};let _t=(Ae=Mi.filter(St=>St.overflows[0]<=0).sort((St,Ye)=>St.overflows[1]-Ye.overflows[1])[0])==null?void 0:Ae.placement;if(!_t)switch(qt){case"bestFit":{var He;const St=(He=Mi.filter(Ye=>{if(ci){const ke=getSideAxis(Ye.placement);return ke===Ut||ke==="y"}return!0}).map(Ye=>[Ye.placement,Ye.overflows.filter(ke=>ke>0).reduce((ke,Xe)=>ke+Xe,0)]).sort((Ye,ke)=>Ye[1]-ke[1])[0])==null?void 0:He[0];St&&(_t=St);break}case"initialPlacement":_t=Je;break}if(We!==_t)return{reset:{placement:_t}}}return{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(Me,xe){const{placement:Ke,platform:ze,elements:We}=Me,De=await(ze.isRTL==null?void 0:ze.isRTL(We.floating)),vt=getSide(Ke),Je=getAlignment(Ke),Ct=getSideAxis(Ke)==="y",yt=originSides.has(vt)?-1:1,Ft=De&&Ct?-1:1,$t=evaluate(xe,Me);let{mainAxis:Rt,crossAxis:qt,alignmentAxis:Pt}=typeof $t=="number"?{mainAxis:$t,crossAxis:0,alignmentAxis:null}:{mainAxis:$t.mainAxis||0,crossAxis:$t.crossAxis||0,alignmentAxis:$t.alignmentAxis};return Je&&typeof Pt=="number"&&(qt=Je==="end"?Pt*-1:Pt),Ct?{x:qt*Ft,y:Rt*yt}:{x:Rt*yt,y:qt*Ft}}const offset$1=function(Me){return Me===void 0&&(Me=0),{name:"offset",options:Me,async fn(xe){var Ke,ze;const{x:We,y:De,placement:vt,middlewareData:Je}=xe,Ct=await convertValueToCoords(xe,Me);return vt===((Ke=Je.offset)==null?void 0:Ke.placement)&&(ze=Je.arrow)!=null&&ze.alignmentOffset?{}:{x:We+Ct.x,y:De+Ct.y,data:{...Ct,placement:vt}}}}},shift$1=function(Me){return Me===void 0&&(Me={}),{name:"shift",options:Me,async fn(xe){const{x:Ke,y:ze,placement:We}=xe,{mainAxis:De=!0,crossAxis:vt=!1,limiter:Je={fn:zt=>{let{x:Gt,y:Ut}=zt;return{x:Gt,y:Ut}}},...Ct}=evaluate(Me,xe),yt={x:Ke,y:ze},Ft=await detectOverflow(xe,Ct),$t=getSideAxis(getSide(We)),Rt=getOppositeAxis($t);let qt=yt[Rt],Pt=yt[$t];if(De){const zt=Rt==="y"?"top":"left",Gt=Rt==="y"?"bottom":"right",Ut=qt+Ft[zt],ii=qt-Ft[Gt];qt=clamp(Ut,qt,ii)}if(vt){const zt=$t==="y"?"top":"left",Gt=$t==="y"?"bottom":"right",Ut=Pt+Ft[zt],ii=Pt-Ft[Gt];Pt=clamp(Ut,Pt,ii)}const Nt=Je.fn({...xe,[Rt]:qt,[$t]:Pt});return{...Nt,data:{x:Nt.x-Ke,y:Nt.y-ze,enabled:{[Rt]:De,[$t]:vt}}}}}},limitShift$1=function(Me){return Me===void 0&&(Me={}),{options:Me,fn(xe){const{x:Ke,y:ze,placement:We,rects:De,middlewareData:vt}=xe,{offset:Je=0,mainAxis:Ct=!0,crossAxis:yt=!0}=evaluate(Me,xe),Ft={x:Ke,y:ze},$t=getSideAxis(We),Rt=getOppositeAxis($t);let qt=Ft[Rt],Pt=Ft[$t];const Nt=evaluate(Je,xe),zt=typeof Nt=="number"?{mainAxis:Nt,crossAxis:0}:{mainAxis:0,crossAxis:0,...Nt};if(Ct){const ii=Rt==="y"?"height":"width",ti=De.reference[Rt]-De.floating[ii]+zt.mainAxis,di=De.reference[Rt]+De.reference[ii]-zt.mainAxis;qtdi&&(qt=di)}if(yt){var Gt,Ut;const ii=Rt==="y"?"width":"height",ti=originSides.has(getSide(We)),di=De.reference[$t]-De.floating[ii]+(ti&&((Gt=vt.offset)==null?void 0:Gt[$t])||0)+(ti?0:zt.crossAxis),ci=De.reference[$t]+De.reference[ii]+(ti?0:((Ut=vt.offset)==null?void 0:Ut[$t])||0)-(ti?zt.crossAxis:0);Ptci&&(Pt=ci)}return{[Rt]:qt,[$t]:Pt}}}},size=function(Me){return Me===void 0&&(Me={}),{name:"size",options:Me,async fn(xe){var Ke,ze;const{placement:We,rects:De,platform:vt,elements:Je}=xe,{apply:Ct=()=>{},...yt}=evaluate(Me,xe),Ft=await detectOverflow(xe,yt),$t=getSide(We),Rt=getAlignment(We),qt=getSideAxis(We)==="y",{width:Pt,height:Nt}=De.floating;let zt,Gt;$t==="top"||$t==="bottom"?(zt=$t,Gt=Rt===(await(vt.isRTL==null?void 0:vt.isRTL(Je.floating))?"start":"end")?"left":"right"):(Gt=$t,zt=Rt==="end"?"top":"bottom");const Ut=Nt-Ft.top-Ft.bottom,ii=Pt-Ft.left-Ft.right,ti=min$1(Nt-Ft[zt],Ut),di=min$1(Pt-Ft[Gt],ii),ci=!xe.middlewareData.shift;let vi=ti,bi=di;if((Ke=xe.middlewareData.shift)!=null&&Ke.enabled.x&&(bi=ii),(ze=xe.middlewareData.shift)!=null&&ze.enabled.y&&(vi=Ut),ci&&!Rt){const Mi=max$1(Ft.left,0),j=max$1(Ft.right,0),Ae=max$1(Ft.top,0),He=max$1(Ft.bottom,0);qt?bi=Pt-2*(Mi!==0||j!==0?Mi+j:max$1(Ft.left,Ft.right)):vi=Nt-2*(Ae!==0||He!==0?Ae+He:max$1(Ft.top,Ft.bottom))}await Ct({...xe,availableWidth:bi,availableHeight:vi});const pi=await vt.getDimensions(Je.floating);return Pt!==pi.width||Nt!==pi.height?{reset:{rects:!0}}:{}}}};function n$1(Me){var xe;return((xe=Me.ownerDocument)==null?void 0:xe.defaultView)||window}function o(Me){return n$1(Me).getComputedStyle(Me)}const i=Math.min,r=Math.max,l=Math.round;function c$1(Me){const xe=o(Me);let Ke=parseFloat(xe.width),ze=parseFloat(xe.height);const We=Me.offsetWidth,De=Me.offsetHeight,vt=l(Ke)!==We||l(ze)!==De;return vt&&(Ke=We,ze=De),{width:Ke,height:ze,fallback:vt}}function s(Me){return h$1(Me)?(Me.nodeName||"").toLowerCase():""}let f$1;function u(){if(f$1)return f$1;const Me=navigator.userAgentData;return Me&&Array.isArray(Me.brands)?(f$1=Me.brands.map((xe=>xe.brand+"/"+xe.version)).join(" "),f$1):navigator.userAgent}function a(Me){return Me instanceof n$1(Me).HTMLElement}function d$1(Me){return Me instanceof n$1(Me).Element}function h$1(Me){return Me instanceof n$1(Me).Node}function p(Me){return typeof ShadowRoot>"u"?!1:Me instanceof n$1(Me).ShadowRoot||Me instanceof ShadowRoot}function g$1(Me){const{overflow:xe,overflowX:Ke,overflowY:ze,display:We}=o(Me);return/auto|scroll|overlay|hidden|clip/.test(xe+ze+Ke)&&!["inline","contents"].includes(We)}function m$2(Me){return["table","td","th"].includes(s(Me))}function y$1(Me){const xe=/firefox/i.test(u()),Ke=o(Me),ze=Ke.backdropFilter||Ke.WebkitBackdropFilter;return Ke.transform!=="none"||Ke.perspective!=="none"||!!ze&&ze!=="none"||xe&&Ke.willChange==="filter"||xe&&!!Ke.filter&&Ke.filter!=="none"||["transform","perspective"].some((We=>Ke.willChange.includes(We)))||["paint","layout","strict","content"].some((We=>{const De=Ke.contain;return De!=null&&De.includes(We)}))}function x$1(){return!/^((?!chrome|android).)*safari/i.test(u())}function w(Me){return["html","body","#document"].includes(s(Me))}function v(Me){return d$1(Me)?Me:Me.contextElement}const b={x:1,y:1};function L(Me){const xe=v(Me);if(!a(xe))return b;const Ke=xe.getBoundingClientRect(),{width:ze,height:We,fallback:De}=c$1(xe);let vt=(De?l(Ke.width):Ke.width)/ze,Je=(De?l(Ke.height):Ke.height)/We;return vt&&Number.isFinite(vt)||(vt=1),Je&&Number.isFinite(Je)||(Je=1),{x:vt,y:Je}}function E$2(Me,xe,Ke,ze){var We,De;xe===void 0&&(xe=!1),Ke===void 0&&(Ke=!1);const vt=Me.getBoundingClientRect(),Je=v(Me);let Ct=b;xe&&(ze?d$1(ze)&&(Ct=L(ze)):Ct=L(Me));const yt=Je?n$1(Je):window,Ft=!x$1()&&Ke;let $t=(vt.left+(Ft&&((We=yt.visualViewport)==null?void 0:We.offsetLeft)||0))/Ct.x,Rt=(vt.top+(Ft&&((De=yt.visualViewport)==null?void 0:De.offsetTop)||0))/Ct.y,qt=vt.width/Ct.x,Pt=vt.height/Ct.y;if(Je){const Nt=n$1(Je),zt=ze&&d$1(ze)?n$1(ze):ze;let Gt=Nt.frameElement;for(;Gt&&ze&&zt!==Nt;){const Ut=L(Gt),ii=Gt.getBoundingClientRect(),ti=getComputedStyle(Gt);ii.x+=(Gt.clientLeft+parseFloat(ti.paddingLeft))*Ut.x,ii.y+=(Gt.clientTop+parseFloat(ti.paddingTop))*Ut.y,$t*=Ut.x,Rt*=Ut.y,qt*=Ut.x,Pt*=Ut.y,$t+=ii.x,Rt+=ii.y,Gt=n$1(Gt).frameElement}}return{width:qt,height:Pt,top:Rt,right:$t+qt,bottom:Rt+Pt,left:$t,x:$t,y:Rt}}function R(Me){return((h$1(Me)?Me.ownerDocument:Me.document)||window.document).documentElement}function T$1(Me){return d$1(Me)?{scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop}:{scrollLeft:Me.pageXOffset,scrollTop:Me.pageYOffset}}function C$2(Me){return E$2(R(Me)).left+T$1(Me).scrollLeft}function F(Me){if(s(Me)==="html")return Me;const xe=Me.assignedSlot||Me.parentNode||p(Me)&&Me.host||R(Me);return p(xe)?xe.host:xe}function W$1(Me){const xe=F(Me);return w(xe)?xe.ownerDocument.body:a(xe)&&g$1(xe)?xe:W$1(xe)}function D(Me,xe){var Ke;xe===void 0&&(xe=[]);const ze=W$1(Me),We=ze===((Ke=Me.ownerDocument)==null?void 0:Ke.body),De=n$1(ze);return We?xe.concat(De,De.visualViewport||[],g$1(ze)?ze:[]):xe.concat(ze,D(ze))}function S$2(Me,xe,Ke){return xe==="viewport"?rectToClientRect((function(ze,We){const De=n$1(ze),vt=R(ze),Je=De.visualViewport;let Ct=vt.clientWidth,yt=vt.clientHeight,Ft=0,$t=0;if(Je){Ct=Je.width,yt=Je.height;const Rt=x$1();(Rt||!Rt&&We==="fixed")&&(Ft=Je.offsetLeft,$t=Je.offsetTop)}return{width:Ct,height:yt,x:Ft,y:$t}})(Me,Ke)):d$1(xe)?rectToClientRect((function(ze,We){const De=E$2(ze,!0,We==="fixed"),vt=De.top+ze.clientTop,Je=De.left+ze.clientLeft,Ct=a(ze)?L(ze):{x:1,y:1};return{width:ze.clientWidth*Ct.x,height:ze.clientHeight*Ct.y,x:Je*Ct.x,y:vt*Ct.y}})(xe,Ke)):rectToClientRect((function(ze){const We=R(ze),De=T$1(ze),vt=ze.ownerDocument.body,Je=r(We.scrollWidth,We.clientWidth,vt.scrollWidth,vt.clientWidth),Ct=r(We.scrollHeight,We.clientHeight,vt.scrollHeight,vt.clientHeight);let yt=-De.scrollLeft+C$2(ze);const Ft=-De.scrollTop;return o(vt).direction==="rtl"&&(yt+=r(We.clientWidth,vt.clientWidth)-Je),{width:Je,height:Ct,x:yt,y:Ft}})(R(Me)))}function A(Me){return a(Me)&&o(Me).position!=="fixed"?Me.offsetParent:null}function H$2(Me){const xe=n$1(Me);let Ke=A(Me);for(;Ke&&m$2(Ke)&&o(Ke).position==="static";)Ke=A(Ke);return Ke&&(s(Ke)==="html"||s(Ke)==="body"&&o(Ke).position==="static"&&!y$1(Ke))?xe:Ke||(function(ze){let We=F(ze);for(;a(We)&&!w(We);){if(y$1(We))return We;We=F(We)}return null})(Me)||xe}function O(Me,xe,Ke){const ze=a(xe),We=R(xe),De=E$2(Me,!0,Ke==="fixed",xe);let vt={scrollLeft:0,scrollTop:0};const Je={x:0,y:0};if(ze||!ze&&Ke!=="fixed")if((s(xe)!=="body"||g$1(We))&&(vt=T$1(xe)),a(xe)){const Ct=E$2(xe,!0);Je.x=Ct.x+xe.clientLeft,Je.y=Ct.y+xe.clientTop}else We&&(Je.x=C$2(We));return{x:De.left+vt.scrollLeft-Je.x,y:De.top+vt.scrollTop-Je.y,width:De.width,height:De.height}}const P={getClippingRect:function(Me){let{element:xe,boundary:Ke,rootBoundary:ze,strategy:We}=Me;const De=Ke==="clippingAncestors"?(function(yt,Ft){const $t=Ft.get(yt);if($t)return $t;let Rt=D(yt).filter((zt=>d$1(zt)&&s(zt)!=="body")),qt=null;const Pt=o(yt).position==="fixed";let Nt=Pt?F(yt):yt;for(;d$1(Nt)&&!w(Nt);){const zt=o(Nt),Gt=y$1(Nt);(Pt?Gt||qt:Gt||zt.position!=="static"||!qt||!["absolute","fixed"].includes(qt.position))?qt=zt:Rt=Rt.filter((Ut=>Ut!==Nt)),Nt=F(Nt)}return Ft.set(yt,Rt),Rt})(xe,this._c):[].concat(Ke),vt=[...De,ze],Je=vt[0],Ct=vt.reduce(((yt,Ft)=>{const $t=S$2(xe,Ft,We);return yt.top=r($t.top,yt.top),yt.right=i($t.right,yt.right),yt.bottom=i($t.bottom,yt.bottom),yt.left=r($t.left,yt.left),yt}),S$2(xe,Je,We));return{width:Ct.right-Ct.left,height:Ct.bottom-Ct.top,x:Ct.left,y:Ct.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(Me){let{rect:xe,offsetParent:Ke,strategy:ze}=Me;const We=a(Ke),De=R(Ke);if(Ke===De)return xe;let vt={scrollLeft:0,scrollTop:0},Je={x:1,y:1};const Ct={x:0,y:0};if((We||!We&&ze!=="fixed")&&((s(Ke)!=="body"||g$1(De))&&(vt=T$1(Ke)),a(Ke))){const yt=E$2(Ke);Je=L(Ke),Ct.x=yt.x+Ke.clientLeft,Ct.y=yt.y+Ke.clientTop}return{width:xe.width*Je.x,height:xe.height*Je.y,x:xe.x*Je.x-vt.scrollLeft*Je.x+Ct.x,y:xe.y*Je.y-vt.scrollTop*Je.y+Ct.y}},isElement:d$1,getDimensions:function(Me){return a(Me)?c$1(Me):Me.getBoundingClientRect()},getOffsetParent:H$2,getDocumentElement:R,getScale:L,async getElementRects(Me){let{reference:xe,floating:Ke,strategy:ze}=Me;const We=this.getOffsetParent||H$2,De=this.getDimensions;return{reference:O(xe,await We(Ke),ze),floating:{x:0,y:0,...await De(Ke)}}},getClientRects:Me=>Array.from(Me.getClientRects()),isRTL:Me=>o(Me).direction==="rtl"},B$1=(Me,xe,Ke)=>{const ze=new Map,We={platform:P,...Ke},De={...We.platform,_c:ze};return computePosition$1(Me,xe,{...We,platform:De})},h={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:Me=>[...Me,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function S$1(Me,xe){let Ke=h.themes[Me]||{},ze;do ze=Ke[xe],typeof ze>"u"?Ke.$extend?Ke=h.themes[Ke.$extend]||{}:(Ke=null,ze=h[xe]):Ke=null;while(Ke);return ze}function Ze$1(Me){const xe=[Me];let Ke=h.themes[Me]||{};do Ke.$extend&&!Ke.$resetCss?(xe.push(Ke.$extend),Ke=h.themes[Ke.$extend]||{}):Ke=null;while(Ke);return xe.map(ze=>`v-popper--theme-${ze}`)}function re$1(Me){const xe=[Me];let Ke=h.themes[Me]||{};do Ke.$extend?(xe.push(Ke.$extend),Ke=h.themes[Ke.$extend]||{}):Ke=null;while(Ke);return xe}let $=!1;if(typeof window<"u"){$=!1;try{const Me=Object.defineProperty({},"passive",{get(){$=!0}});window.addEventListener("test",null,Me)}catch{}}let _e$1=!1;typeof window<"u"&&typeof navigator<"u"&&(_e$1=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Te=["auto","top","bottom","left","right"].reduce((Me,xe)=>Me.concat([xe,`${xe}-start`,`${xe}-end`]),[]),pe$1={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ae$1={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function de$1(Me,xe){const Ke=Me.indexOf(xe);Ke!==-1&&Me.splice(Ke,1)}function G$1(){return new Promise(Me=>requestAnimationFrame(()=>{requestAnimationFrame(Me)}))}const d=[];let g=null;const le$1={};function he$1(Me){let xe=le$1[Me];return xe||(xe=le$1[Me]=[]),xe}let Y$1=function(){};typeof window<"u"&&(Y$1=window.Element);function n(Me){return function(xe){return S$1(xe.theme,Me)}}const q$1="__floating-vue__popper",Q$1=()=>defineComponent({name:"VPopper",provide(){return{[q$1]:{parentPopper:this}}},inject:{[q$1]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:n("disabled")},positioningDisabled:{type:Boolean,default:n("positioningDisabled")},placement:{type:String,default:n("placement"),validator:Me=>Te.includes(Me)},delay:{type:[String,Number,Object],default:n("delay")},distance:{type:[Number,String],default:n("distance")},skidding:{type:[Number,String],default:n("skidding")},triggers:{type:Array,default:n("triggers")},showTriggers:{type:[Array,Function],default:n("showTriggers")},hideTriggers:{type:[Array,Function],default:n("hideTriggers")},popperTriggers:{type:Array,default:n("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:n("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:n("popperHideTriggers")},container:{type:[String,Object,Y$1,Boolean],default:n("container")},boundary:{type:[String,Y$1],default:n("boundary")},strategy:{type:String,validator:Me=>["absolute","fixed"].includes(Me),default:n("strategy")},autoHide:{type:[Boolean,Function],default:n("autoHide")},handleResize:{type:Boolean,default:n("handleResize")},instantMove:{type:Boolean,default:n("instantMove")},eagerMount:{type:Boolean,default:n("eagerMount")},popperClass:{type:[String,Array,Object],default:n("popperClass")},computeTransformOrigin:{type:Boolean,default:n("computeTransformOrigin")},autoMinSize:{type:Boolean,default:n("autoMinSize")},autoSize:{type:[Boolean,String],default:n("autoSize")},autoMaxSize:{type:Boolean,default:n("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:n("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:n("preventOverflow")},overflowPadding:{type:[Number,String],default:n("overflowPadding")},arrowPadding:{type:[Number,String],default:n("arrowPadding")},arrowOverflow:{type:Boolean,default:n("arrowOverflow")},flip:{type:Boolean,default:n("flip")},shift:{type:Boolean,default:n("shift")},shiftCrossAxis:{type:Boolean,default:n("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:n("noAutoFocus")},disposeTimeout:{type:Number,default:n("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":Me=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(Me=>Me.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var Me;return(Me=this[q$1])==null?void 0:Me.parentPopper},hasPopperShowTriggerHover(){var Me,xe;return((Me=this.popperTriggers)==null?void 0:Me.includes("hover"))||((xe=this.popperShowTriggers)==null?void 0:xe.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(Me){Me?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((Me,xe)=>(Me[xe]="$_computePosition",Me),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:Me=null,skipDelay:xe=!1,force:Ke=!1}={}){var ze,We;(ze=this.parentPopper)!=null&&ze.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(Ke||!this.disabled)&&(((We=this.parentPopper)==null?void 0:We.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(Me,xe),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:Me=null,skipDelay:xe=!1}={}){var Ke;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:xe}),this.parentPopper.lockedChild=null)},1e3));return}((Ke=this.parentPopper)==null?void 0:Ke.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(Me,xe),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var Me;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((Me=this.referenceNode)==null?void 0:Me.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(xe=>xe.nodeType===xe.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const Me={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&Me.middleware.push(offset$1({mainAxis:this.distance,crossAxis:this.skidding}));const xe=this.placement.startsWith("auto");if(xe?Me.middleware.push(autoPlacement({alignment:this.placement.split("-")[1]??""})):Me.placement=this.placement,this.preventOverflow&&(this.shift&&Me.middleware.push(shift$1({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!xe&&this.flip&&Me.middleware.push(flip$1({padding:this.overflowPadding,boundary:this.boundary}))),Me.middleware.push(arrow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&Me.middleware.push({name:"arrowOverflow",fn:({placement:ze,rects:We,middlewareData:De})=>{let vt;const{centerOffset:Je}=De.arrow;return ze.startsWith("top")||ze.startsWith("bottom")?vt=Math.abs(Je)>We.reference.width/2:vt=Math.abs(Je)>We.reference.height/2,{data:{overflow:vt}}}}),this.autoMinSize||this.autoSize){const ze=this.autoSize?this.autoSize:this.autoMinSize?"min":null;Me.middleware.push({name:"autoSize",fn:({rects:We,placement:De,middlewareData:vt})=>{var Je;if((Je=vt.autoSize)!=null&&Je.skip)return{};let Ct,yt;return De.startsWith("top")||De.startsWith("bottom")?Ct=We.reference.width:yt=We.reference.height,this.$_innerNode.style[ze==="min"?"minWidth":ze==="max"?"maxWidth":"width"]=Ct!=null?`${Ct}px`:null,this.$_innerNode.style[ze==="min"?"minHeight":ze==="max"?"maxHeight":"height"]=yt!=null?`${yt}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,Me.middleware.push(size({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:ze,availableHeight:We})=>{this.$_innerNode.style.maxWidth=ze!=null?`${ze}px`:null,this.$_innerNode.style.maxHeight=We!=null?`${We}px`:null}})));const Ke=await B$1(this.$_referenceNode,this.$_popperNode,Me);Object.assign(this.result,{x:Ke.x,y:Ke.y,placement:Ke.placement,strategy:Ke.strategy,arrow:{...Ke.middlewareData.arrow,...Ke.middlewareData.arrowOverflow}})},$_scheduleShow(Me,xe=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),g&&this.instantMove&&g.instantMove&&g!==this.parentPopper){g.$_applyHide(!0),this.$_applyShow(!0);return}xe?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(Me,xe=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(g=this),xe?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(Me){const xe=this.delay;return parseInt(xe&&xe[Me]||xe||0)},async $_applyShow(Me=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=Me,!this.isShown&&(this.$_ensureTeleport(),await G$1(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...D(this.$_referenceNode),...D(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const xe=this.$_referenceNode.getBoundingClientRect(),Ke=this.$_popperNode.querySelector(".v-popper__wrapper"),ze=Ke.parentNode.getBoundingClientRect(),We=xe.x+xe.width/2-(ze.left+Ke.offsetLeft),De=xe.y+xe.height/2-(ze.top+Ke.offsetTop);this.result.transformOrigin=`${We}px ${De}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const Me=this.showGroup;if(Me){let xe;for(let Ke=0;Ke0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=Me,de$1(d,this),d.length===0&&document.body.classList.remove("v-popper--some-open");for(const Ke of re$1(this.theme)){const ze=he$1(Ke);de$1(ze,this),ze.length===0&&document.body.classList.remove(`v-popper--some-open--${Ke}`)}g===this&&(g=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const xe=this.disposeTimeout;xe!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},xe)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await G$1(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let Me=this.container;if(typeof Me=="string"?Me=window.document.querySelector(Me):Me===!1&&(Me=this.$_targetNodes[0].parentNode),!Me)throw new Error("No container for popover: "+this.container);Me.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const Me=Ke=>{this.isShown&&!this.$_hideInProgress||(Ke.usedByTooltip=!0,!this.$_preventShow&&this.show({event:Ke}))};this.$_registerTriggerListeners(this.$_targetNodes,pe$1,this.triggers,this.showTriggers,Me),this.$_registerTriggerListeners([this.$_popperNode],pe$1,this.popperTriggers,this.popperShowTriggers,Me);const xe=Ke=>{Ke.usedByTooltip||this.hide({event:Ke})};this.$_registerTriggerListeners(this.$_targetNodes,ae$1,this.triggers,this.hideTriggers,xe),this.$_registerTriggerListeners([this.$_popperNode],ae$1,this.popperTriggers,this.popperHideTriggers,xe)},$_registerEventListeners(Me,xe,Ke){this.$_events.push({targetNodes:Me,eventType:xe,handler:Ke}),Me.forEach(ze=>ze.addEventListener(xe,Ke,$?{passive:!0}:void 0))},$_registerTriggerListeners(Me,xe,Ke,ze,We){let De=Ke;ze!=null&&(De=typeof ze=="function"?ze(De):ze),De.forEach(vt=>{const Je=xe[vt];Je&&this.$_registerEventListeners(Me,Je,We)})},$_removeEventListeners(Me){const xe=[];this.$_events.forEach(Ke=>{const{targetNodes:ze,eventType:We,handler:De}=Ke;!Me||Me===We?ze.forEach(vt=>vt.removeEventListener(We,De)):xe.push(Ke)}),this.$_events=xe},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(Me,xe=!1){this.$_showFrameLocked||(this.hide({event:Me}),Me.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),xe&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(Me,xe){for(const Ke of this.$_targetNodes){const ze=Ke.getAttribute(Me);ze&&(Ke.removeAttribute(Me),Ke.setAttribute(xe,ze))}},$_applyAttrsToTarget(Me){for(const xe of this.$_targetNodes)for(const Ke in Me){const ze=Me[Ke];ze==null?xe.removeAttribute(Ke):xe.setAttribute(Ke,ze)}},$_updateParentShownChildren(Me){let xe=this.parentPopper;for(;xe;)Me?xe.shownChildren.add(this.randomId):(xe.shownChildren.delete(this.randomId),xe.pendingHide&&xe.hide()),xe=xe.parentPopper},$_isAimingPopper(){const Me=this.$_referenceNode.getBoundingClientRect();if(y>=Me.left&&y<=Me.right&&_>=Me.top&&_<=Me.bottom){const xe=this.$_popperNode.getBoundingClientRect(),Ke=y-c,ze=_-m$1,We=xe.left+xe.width/2-c+(xe.top+xe.height/2)-m$1+xe.width+xe.height,De=c+Ke*We,vt=m$1+ze*We;return C$1(c,m$1,De,vt,xe.left,xe.top,xe.left,xe.bottom)||C$1(c,m$1,De,vt,xe.left,xe.top,xe.right,xe.top)||C$1(c,m$1,De,vt,xe.right,xe.top,xe.right,xe.bottom)||C$1(c,m$1,De,vt,xe.left,xe.bottom,xe.right,xe.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(_e$1){const Me=$?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",xe=>ue$1(xe),Me),document.addEventListener("touchend",xe=>fe$1(xe,!0),Me)}else window.addEventListener("mousedown",Me=>ue$1(Me),!0),window.addEventListener("click",Me=>fe$1(Me,!1),!0);window.addEventListener("resize",tt)}function ue$1(Me,xe){for(let Ke=0;Ke=0;ze--){const We=d[ze];try{const De=We.containsGlobalTarget=We.mouseDownContains||We.popperNode().contains(Me.target);We.pendingHide=!1,requestAnimationFrame(()=>{if(We.pendingHide=!1,!Ke[We.randomId]&&ce$1(We,De,Me)){if(We.$_handleGlobalClose(Me,xe),!Me.closeAllPopover&&Me.closePopover&&De){let Je=We.parentPopper;for(;Je;)Ke[Je.randomId]=!0,Je=Je.parentPopper;return}let vt=We.parentPopper;for(;vt&&ce$1(vt,vt.containsGlobalTarget,Me);)vt.$_handleGlobalClose(Me,xe),vt=vt.parentPopper}})}catch{}}}function ce$1(Me,xe,Ke){return Ke.closeAllPopover||Ke.closePopover&&xe||et$1(Me,Ke)&&!xe}function et$1(Me,xe){if(typeof Me.autoHide=="function"){const Ke=Me.autoHide(xe);return Me.lastAutoHide=Ke,Ke}return Me.autoHide}function tt(){for(let Me=0;Me{c=y,m$1=_,y=Me.clientX,_=Me.clientY},$?{passive:!0}:void 0);function C$1(Me,xe,Ke,ze,We,De,vt,Je){const Ct=((vt-We)*(xe-De)-(Je-De)*(Me-We))/((Je-De)*(Ke-Me)-(vt-We)*(ze-xe)),yt=((Ke-Me)*(xe-De)-(ze-xe)*(Me-We))/((Je-De)*(Ke-Me)-(vt-We)*(ze-xe));return Ct>=0&&Ct<=1&&yt>=0&&yt<=1}const ot$1={extends:Q$1()},B=(Me,xe)=>{const Ke=Me.__vccOpts||Me;for(const[ze,We]of xe)Ke[ze]=We;return Ke};function it$1(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("div",{ref:"reference",class:normalizeClass(["v-popper",{"v-popper--shown":Me.slotData.isShown}])},[renderSlot(Me.$slots,"default",normalizeProps(guardReactiveProps(Me.slotData)))],2)}const st$1=B(ot$1,[["render",it$1]]);function nt(){var Me=window.navigator.userAgent,xe=Me.indexOf("MSIE ");if(xe>0)return parseInt(Me.substring(xe+5,Me.indexOf(".",xe)),10);var Ke=Me.indexOf("Trident/");if(Ke>0){var ze=Me.indexOf("rv:");return parseInt(Me.substring(ze+3,Me.indexOf(".",ze)),10)}var We=Me.indexOf("Edge/");return We>0?parseInt(Me.substring(We+5,Me.indexOf(".",We)),10):-1}let z;function X$1(){X$1.init||(X$1.init=!0,z=nt()!==-1)}var E$1={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){X$1(),nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const Me=document.createElement("object");this._resizeObject=Me,Me.setAttribute("aria-hidden","true"),Me.setAttribute("tabindex",-1),Me.onload=this.addResizeHandlers,Me.type="text/html",z&&this.$el.appendChild(Me),Me.data="about:blank",z||this.$el.appendChild(Me)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!z&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rt=withScopeId();pushScopeId("data-v-b329ee4c");const pt$1={class:"resize-observer",tabindex:"-1"};popScopeId();const at=rt((Me,xe,Ke,ze,We,De)=>(openBlock(),createBlock("div",pt$1)));E$1.render=at,E$1.__scopeId="data-v-b329ee4c",E$1.__file="src/components/ResizeObserver.vue";const Z$1=(Me="theme")=>({computed:{themeClass(){return Ze$1(this[Me])}}}),dt$1=defineComponent({name:"VPopperContent",components:{ResizeObserver:E$1},mixins:[Z$1()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(Me){return Me!=null&&!isNaN(Me)?`${Me}px`:null}}}),lt=["id","aria-hidden","tabindex","data-popper-placement"],ht={ref:"inner",class:"v-popper__inner"},ut=createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),ft=createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),ct=[ut,ft];function mt$1(Me,xe,Ke,ze,We,De){const vt=resolveComponent("ResizeObserver");return openBlock(),createElementBlock("div",{id:Me.popperId,ref:"popover",class:normalizeClass(["v-popper__popper",[Me.themeClass,Me.classes.popperClass,{"v-popper__popper--shown":Me.shown,"v-popper__popper--hidden":!Me.shown,"v-popper__popper--show-from":Me.classes.showFrom,"v-popper__popper--show-to":Me.classes.showTo,"v-popper__popper--hide-from":Me.classes.hideFrom,"v-popper__popper--hide-to":Me.classes.hideTo,"v-popper__popper--skip-transition":Me.skipTransition,"v-popper__popper--arrow-overflow":Me.result&&Me.result.arrow.overflow,"v-popper__popper--no-positioning":!Me.result}]]),style:normalizeStyle(Me.result?{position:Me.result.strategy,transform:`translate3d(${Math.round(Me.result.x)}px,${Math.round(Me.result.y)}px,0)`}:void 0),"aria-hidden":Me.shown?"false":"true",tabindex:Me.autoHide?0:void 0,"data-popper-placement":Me.result?Me.result.placement:void 0,onKeyup:xe[2]||(xe[2]=withKeys(Je=>Me.autoHide&&Me.$emit("hide"),["esc"]))},[createBaseVNode("div",{class:"v-popper__backdrop",onClick:xe[0]||(xe[0]=Je=>Me.autoHide&&Me.$emit("hide"))}),createBaseVNode("div",{class:"v-popper__wrapper",style:normalizeStyle(Me.result?{transformOrigin:Me.result.transformOrigin}:void 0)},[createBaseVNode("div",ht,[Me.mounted?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",null,[renderSlot(Me.$slots,"default")]),Me.handleResize?(openBlock(),createBlock(vt,{key:0,onNotify:xe[1]||(xe[1]=Je=>Me.$emit("resize",Je))})):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],512),createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:normalizeStyle(Me.result?{left:Me.toPx(Me.result.arrow.x),top:Me.toPx(Me.result.arrow.y)}:void 0)},ct,4)],4)],46,lt)}const ee$1=B(dt$1,[["render",mt$1]]),te$1={methods:{show(...Me){return this.$refs.popper.show(...Me)},hide(...Me){return this.$refs.popper.hide(...Me)},dispose(...Me){return this.$refs.popper.dispose(...Me)},onResize(...Me){return this.$refs.popper.onResize(...Me)}}};let K=function(){};typeof window<"u"&&(K=window.Element);const gt$1=defineComponent({name:"VPopperWrapper",components:{Popper:st$1,PopperContent:ee$1},mixins:[te$1,Z$1("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,K,Boolean],default:void 0},boundary:{type:[String,K],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":Me=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(Me=>Me!==this.$refs.popperContent.$el)}}});function wt$1(Me,xe,Ke,ze,We,De){const vt=resolveComponent("PopperContent"),Je=resolveComponent("Popper");return openBlock(),createBlock(Je,mergeProps({ref:"popper"},Me.$props,{theme:Me.finalTheme,"target-nodes":Me.getTargetNodes,"popper-node":()=>Me.$refs.popperContent.$el,class:[Me.themeClass],onShow:xe[0]||(xe[0]=()=>Me.$emit("show")),onHide:xe[1]||(xe[1]=()=>Me.$emit("hide")),"onUpdate:shown":xe[2]||(xe[2]=Ct=>Me.$emit("update:shown",Ct)),onApplyShow:xe[3]||(xe[3]=()=>Me.$emit("apply-show")),onApplyHide:xe[4]||(xe[4]=()=>Me.$emit("apply-hide")),onCloseGroup:xe[5]||(xe[5]=()=>Me.$emit("close-group")),onCloseDirective:xe[6]||(xe[6]=()=>Me.$emit("close-directive")),onAutoHide:xe[7]||(xe[7]=()=>Me.$emit("auto-hide")),onResize:xe[8]||(xe[8]=()=>Me.$emit("resize"))}),{default:withCtx(({popperId:Ct,isShown:yt,shouldMountContent:Ft,skipTransition:$t,autoHide:Rt,show:qt,hide:Pt,handleResize:Nt,onResize:zt,classes:Gt,result:Ut})=>[renderSlot(Me.$slots,"default",{shown:yt,show:qt,hide:Pt}),createVNode(vt,{ref:"popperContent","popper-id":Ct,theme:Me.finalTheme,shown:yt,mounted:Ft,"skip-transition":$t,"auto-hide":Rt,"handle-resize":Nt,classes:Gt,result:Ut,onHide:Pt,onResize:zt},{default:withCtx(()=>[renderSlot(Me.$slots,"popper",{shown:yt,hide:Pt})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const k=B(gt$1,[["render",wt$1]]),Se={...k,name:"VDropdown",vPopperTheme:"dropdown"};({...k},{...k}),defineComponent({name:"VTooltipDirective",components:{Popper:Q$1(),PopperContent:ee$1},mixins:[te$1],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:Me=>S$1(Me.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:Me=>S$1(Me.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(Me){if(typeof this.content=="function"&&this.$_isShown&&(Me||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const xe=++this.$_fetchId,Ke=this.content(this);Ke.then?Ke.then(ze=>this.onResult(xe,ze)):this.onResult(xe,Ke)}},onResult(Me,xe){Me===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=xe)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const Ht$1=h,kt=Se;var candidateSelectors=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],candidateSelector=candidateSelectors.join(","),NoElement=typeof Element>"u",matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(Me){var xe;return Me==null||(xe=Me.getRootNode)===null||xe===void 0?void 0:xe.call(Me)}:function(Me){return Me?.ownerDocument},isInert=function Me(xe,Ke){var ze;Ke===void 0&&(Ke=!0);var We=xe==null||(ze=xe.getAttribute)===null||ze===void 0?void 0:ze.call(xe,"inert"),De=We===""||We==="true",vt=De||Ke&&xe&&Me(xe.parentNode);return vt},isContentEditable=function(Me){var xe,Ke=Me==null||(xe=Me.getAttribute)===null||xe===void 0?void 0:xe.call(Me,"contenteditable");return Ke===""||Ke==="true"},getCandidates=function(Me,xe,Ke){if(isInert(Me))return[];var ze=Array.prototype.slice.apply(Me.querySelectorAll(candidateSelector));return xe&&matches.call(Me,candidateSelector)&&ze.unshift(Me),ze=ze.filter(Ke),ze},getCandidatesIteratively=function Me(xe,Ke,ze){for(var We=[],De=Array.from(xe);De.length;){var vt=De.shift();if(!isInert(vt,!1))if(vt.tagName==="SLOT"){var Je=vt.assignedElements(),Ct=Je.length?Je:vt.children,yt=Me(Ct,!0,ze);ze.flatten?We.push.apply(We,yt):We.push({scopeParent:vt,candidates:yt})}else{var Ft=matches.call(vt,candidateSelector);Ft&&ze.filter(vt)&&(Ke||!xe.includes(vt))&&We.push(vt);var $t=vt.shadowRoot||typeof ze.getShadowRoot=="function"&&ze.getShadowRoot(vt),Rt=!isInert($t,!1)&&(!ze.shadowRootFilter||ze.shadowRootFilter(vt));if($t&&Rt){var qt=Me($t===!0?vt.children:$t.children,!0,ze);ze.flatten?We.push.apply(We,qt):We.push({scopeParent:vt,candidates:qt})}else De.unshift.apply(De,vt.children)}}return We},hasTabIndex=function(Me){return!isNaN(parseInt(Me.getAttribute("tabindex"),10))},getTabIndex=function(Me){if(!Me)throw new Error("No node provided");return Me.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(Me.tagName)||isContentEditable(Me))&&!hasTabIndex(Me)?0:Me.tabIndex},getSortOrderTabIndex=function(Me,xe){var Ke=getTabIndex(Me);return Ke<0&&xe&&!hasTabIndex(Me)?0:Ke},sortOrderedTabbables=function(Me,xe){return Me.tabIndex===xe.tabIndex?Me.documentOrder-xe.documentOrder:Me.tabIndex-xe.tabIndex},isInput=function(Me){return Me.tagName==="INPUT"},isHiddenInput=function(Me){return isInput(Me)&&Me.type==="hidden"},isDetailsWithSummary=function(Me){var xe=Me.tagName==="DETAILS"&&Array.prototype.slice.apply(Me.children).some(function(Ke){return Ke.tagName==="SUMMARY"});return xe},getCheckedRadio=function(Me,xe){for(var Ke=0;Kesummary:first-of-type"),De=We?Me.parentElement:Me;if(matches.call(De,"details:not([open]) *"))return!0;if(!Ke||Ke==="full"||Ke==="legacy-full"){if(typeof ze=="function"){for(var vt=Me;Me;){var Je=Me.parentElement,Ct=getRootNode(Me);if(Je&&!Je.shadowRoot&&ze(Je)===!0)return isZeroArea(Me);Me.assignedSlot?Me=Me.assignedSlot:!Je&&Ct!==Me.ownerDocument?Me=Ct.host:Me=Je}Me=vt}if(isNodeAttached(Me))return!Me.getClientRects().length;if(Ke!=="legacy-full")return!0}else if(Ke==="non-zero-area")return isZeroArea(Me);return!1},isDisabledFromFieldset=function(Me){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(Me.tagName))for(var xe=Me.parentElement;xe;){if(xe.tagName==="FIELDSET"&&xe.disabled){for(var Ke=0;Ke=0)},sortByOrder=function Me(xe){var Ke=[],ze=[];return xe.forEach(function(We,De){var vt=!!We.scopeParent,Je=vt?We.scopeParent:We,Ct=getSortOrderTabIndex(Je,vt),yt=vt?Me(We.candidates):Je;Ct===0?vt?Ke.push.apply(Ke,yt):Ke.push(Je):ze.push({documentOrder:De,tabIndex:Ct,item:We,isScope:vt,content:yt})}),ze.sort(sortOrderedTabbables).reduce(function(We,De){return De.isScope?We.push.apply(We,De.content):We.push(De.content),We},[]).concat(Ke)},tabbable=function(Me,xe){xe=xe||{};var Ke;return xe.getShadowRoot?Ke=getCandidatesIteratively([Me],xe.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,xe),flatten:!1,getShadowRoot:xe.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):Ke=getCandidates(Me,xe.includeContainer,isNodeMatchingSelectorTabbable.bind(null,xe)),sortByOrder(Ke)},focusable=function(Me,xe){xe=xe||{};var Ke;return xe.getShadowRoot?Ke=getCandidatesIteratively([Me],xe.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,xe),flatten:!0,getShadowRoot:xe.getShadowRoot}):Ke=getCandidates(Me,xe.includeContainer,isNodeMatchingSelectorFocusable.bind(null,xe)),Ke},isTabbable=function(Me,xe){if(xe=xe||{},!Me)throw new Error("No node provided");return matches.call(Me,candidateSelector)===!1?!1:isNodeMatchingSelectorTabbable(xe,Me)},focusableCandidateSelector=candidateSelectors.concat("iframe").join(","),isFocusable=function(Me,xe){if(xe=xe||{},!Me)throw new Error("No node provided");return matches.call(Me,focusableCandidateSelector)===!1?!1:isNodeMatchingSelectorFocusable(xe,Me)};function _arrayLikeToArray(Me,xe){(xe==null||xe>Me.length)&&(xe=Me.length);for(var Ke=0,ze=Array(xe);Ke0){var Ke=Me[Me.length-1];Ke!==xe&&Ke._setPausedState(!0)}var ze=Me.indexOf(xe);ze===-1||Me.splice(ze,1),Me.push(xe)},deactivateTrap:function(Me,xe){var Ke=Me.indexOf(xe);Ke!==-1&&Me.splice(Ke,1),Me.length>0&&!Me[Me.length-1]._isManuallyPaused()&&Me[Me.length-1]._setPausedState(!1)}},isSelectableInput=function(Me){return Me.tagName&&Me.tagName.toLowerCase()==="input"&&typeof Me.select=="function"},isEscapeEvent=function(Me){return Me?.key==="Escape"||Me?.key==="Esc"||Me?.keyCode===27},isTabEvent=function(Me){return Me?.key==="Tab"||Me?.keyCode===9},isKeyForward=function(Me){return isTabEvent(Me)&&!Me.shiftKey},isKeyBackward=function(Me){return isTabEvent(Me)&&Me.shiftKey},delay=function(Me){return setTimeout(Me,0)},valueOrHandler=function(Me){for(var xe=arguments.length,Ke=new Array(xe>1?xe-1:0),ze=1;ze1&&arguments[1]!==void 0?arguments[1]:{},He=Ae.hasFallback,Ue=He===void 0?!1:He,Ge=Ae.params,_t=Ge===void 0?[]:Ge,St=We[j];if(typeof St=="function"&&(St=St.apply(void 0,_toConsumableArray(_t))),St===!0&&(St=void 0),!St){if(St===void 0||St===!1)return St;throw new Error("`".concat(j,"` was specified but was not a node, or did not return a node"))}var Ye=St;if(typeof St=="string"){try{Ye=Ke.querySelector(St)}catch(ke){throw new Error("`".concat(j,'` appears to be an invalid selector; error="').concat(ke.message,'"'))}if(!Ye&&!Ue)throw new Error("`".concat(j,"` as selector refers to no known node"))}return Ye},Ft=function(){var j=yt("initialFocus",{hasFallback:!0});if(j===!1)return!1;if(j===void 0||j&&!isFocusable(j,We.tabbableOptions))if(Ct(Ke.activeElement)>=0)j=Ke.activeElement;else{var Ae=De.tabbableGroups[0],He=Ae&&Ae.firstTabbableNode;j=He||yt("fallbackFocus")}else j===null&&(j=yt("fallbackFocus"));if(!j)throw new Error("Your focus-trap needs to have at least one focusable element");return j},$t=function(){if(De.containerGroups=De.containers.map(function(j){var Ae=tabbable(j,We.tabbableOptions),He=focusable(j,We.tabbableOptions),Ue=Ae.length>0?Ae[0]:void 0,Ge=Ae.length>0?Ae[Ae.length-1]:void 0,_t=He.find(function(ke){return isTabbable(ke)}),St=He.slice().reverse().find(function(ke){return isTabbable(ke)}),Ye=!!Ae.find(function(ke){return getTabIndex(ke)>0});return{container:j,tabbableNodes:Ae,focusableNodes:He,posTabIndexesFound:Ye,firstTabbableNode:Ue,lastTabbableNode:Ge,firstDomTabbableNode:_t,lastDomTabbableNode:St,nextTabbableNode:function(ke){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Vt=Ae.indexOf(ke);return Vt<0?Xe?He.slice(He.indexOf(ke)+1).find(function(Jt){return isTabbable(Jt)}):He.slice(0,He.indexOf(ke)).reverse().find(function(Jt){return isTabbable(Jt)}):Ae[Vt+(Xe?1:-1)]}}}),De.tabbableGroups=De.containerGroups.filter(function(j){return j.tabbableNodes.length>0}),De.tabbableGroups.length<=0&&!yt("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(De.containerGroups.find(function(j){return j.posTabIndexesFound})&&De.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},Rt=function(j){var Ae=j.activeElement;if(Ae)return Ae.shadowRoot&&Ae.shadowRoot.activeElement!==null?Rt(Ae.shadowRoot):Ae},qt=function(j){if(j!==!1&&j!==Rt(document)){if(!j||!j.focus){qt(Ft());return}j.focus({preventScroll:!!We.preventScroll}),De.mostRecentlyFocusedNode=j,isSelectableInput(j)&&j.select()}},Pt=function(j){var Ae=yt("setReturnFocus",{params:[j]});return Ae||(Ae===!1?!1:j)},Nt=function(j){var Ae=j.target,He=j.event,Ue=j.isBackward,Ge=Ue===void 0?!1:Ue;Ae=Ae||getActualTarget(He),$t();var _t=null;if(De.tabbableGroups.length>0){var St=Ct(Ae,He),Ye=St>=0?De.containerGroups[St]:void 0;if(St<0)Ge?_t=De.tabbableGroups[De.tabbableGroups.length-1].lastTabbableNode:_t=De.tabbableGroups[0].firstTabbableNode;else if(Ge){var ke=De.tabbableGroups.findIndex(function(li){var fi=li.firstTabbableNode;return Ae===fi});if(ke<0&&(Ye.container===Ae||isFocusable(Ae,We.tabbableOptions)&&!isTabbable(Ae,We.tabbableOptions)&&!Ye.nextTabbableNode(Ae,!1))&&(ke=St),ke>=0){var Xe=ke===0?De.tabbableGroups.length-1:ke-1,Vt=De.tabbableGroups[Xe];_t=getTabIndex(Ae)>=0?Vt.lastTabbableNode:Vt.lastDomTabbableNode}else isTabEvent(He)||(_t=Ye.nextTabbableNode(Ae,!1))}else{var Jt=De.tabbableGroups.findIndex(function(li){var fi=li.lastTabbableNode;return Ae===fi});if(Jt<0&&(Ye.container===Ae||isFocusable(Ae,We.tabbableOptions)&&!isTabbable(Ae,We.tabbableOptions)&&!Ye.nextTabbableNode(Ae))&&(Jt=St),Jt>=0){var ei=Jt===De.tabbableGroups.length-1?0:Jt+1,oi=De.tabbableGroups[ei];_t=getTabIndex(Ae)>=0?oi.firstTabbableNode:oi.firstDomTabbableNode}else isTabEvent(He)||(_t=Ye.nextTabbableNode(Ae))}}else _t=yt("fallbackFocus");return _t},zt=function(j){var Ae=getActualTarget(j);if(!(Ct(Ae,j)>=0)){if(valueOrHandler(We.clickOutsideDeactivates,j)){vt.deactivate({returnFocus:We.returnFocusOnDeactivate});return}valueOrHandler(We.allowOutsideClick,j)||j.preventDefault()}},Gt=function(j){var Ae=getActualTarget(j),He=Ct(Ae,j)>=0;if(He||Ae instanceof Document)He&&(De.mostRecentlyFocusedNode=Ae);else{j.stopImmediatePropagation();var Ue,Ge=!0;if(De.mostRecentlyFocusedNode)if(getTabIndex(De.mostRecentlyFocusedNode)>0){var _t=Ct(De.mostRecentlyFocusedNode),St=De.containerGroups[_t].tabbableNodes;if(St.length>0){var Ye=St.findIndex(function(ke){return ke===De.mostRecentlyFocusedNode});Ye>=0&&(We.isKeyForward(De.recentNavEvent)?Ye+1=0&&(Ue=St[Ye-1],Ge=!1))}}else De.containerGroups.some(function(ke){return ke.tabbableNodes.some(function(Xe){return getTabIndex(Xe)>0})})||(Ge=!1);else Ge=!1;Ge&&(Ue=Nt({target:De.mostRecentlyFocusedNode,isBackward:We.isKeyBackward(De.recentNavEvent)})),qt(Ue||De.mostRecentlyFocusedNode||Ft())}De.recentNavEvent=void 0},Ut=function(j){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;De.recentNavEvent=j;var He=Nt({event:j,isBackward:Ae});He&&(isTabEvent(j)&&j.preventDefault(),qt(He))},ii=function(j){(We.isKeyForward(j)||We.isKeyBackward(j))&&Ut(j,We.isKeyBackward(j))},ti=function(j){isEscapeEvent(j)&&valueOrHandler(We.escapeDeactivates,j)!==!1&&(j.preventDefault(),vt.deactivate())},di=function(j){var Ae=getActualTarget(j);Ct(Ae,j)>=0||valueOrHandler(We.clickOutsideDeactivates,j)||valueOrHandler(We.allowOutsideClick,j)||(j.preventDefault(),j.stopImmediatePropagation())},ci=function(){if(De.active)return activeFocusTraps.activateTrap(ze,vt),De.delayInitialFocusTimer=We.delayInitialFocus?delay(function(){qt(Ft())}):qt(Ft()),Ke.addEventListener("focusin",Gt,!0),Ke.addEventListener("mousedown",zt,{capture:!0,passive:!1}),Ke.addEventListener("touchstart",zt,{capture:!0,passive:!1}),Ke.addEventListener("click",di,{capture:!0,passive:!1}),Ke.addEventListener("keydown",ii,{capture:!0,passive:!1}),Ke.addEventListener("keydown",ti),vt},vi=function(){if(De.active)return Ke.removeEventListener("focusin",Gt,!0),Ke.removeEventListener("mousedown",zt,!0),Ke.removeEventListener("touchstart",zt,!0),Ke.removeEventListener("click",di,!0),Ke.removeEventListener("keydown",ii,!0),Ke.removeEventListener("keydown",ti),vt},bi=function(j){var Ae=j.some(function(He){var Ue=Array.from(He.removedNodes);return Ue.some(function(Ge){return Ge===De.mostRecentlyFocusedNode})});Ae&&qt(Ft())},pi=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(bi):void 0,Mi=function(){pi&&(pi.disconnect(),De.active&&!De.paused&&De.containers.map(function(j){pi.observe(j,{subtree:!0,childList:!0})}))};return vt={get active(){return De.active},get paused(){return De.paused},activate:function(j){if(De.active)return this;var Ae=Je(j,"onActivate"),He=Je(j,"onPostActivate"),Ue=Je(j,"checkCanFocusTrap");Ue||$t(),De.active=!0,De.paused=!1,De.nodeFocusedBeforeActivation=Rt(Ke),Ae?.();var Ge=function(){Ue&&$t(),ci(),Mi(),He?.()};return Ue?(Ue(De.containers.concat()).then(Ge,Ge),this):(Ge(),this)},deactivate:function(j){if(!De.active)return this;var Ae=_objectSpread2({onDeactivate:We.onDeactivate,onPostDeactivate:We.onPostDeactivate,checkCanReturnFocus:We.checkCanReturnFocus},j);clearTimeout(De.delayInitialFocusTimer),De.delayInitialFocusTimer=void 0,vi(),De.active=!1,De.paused=!1,Mi(),activeFocusTraps.deactivateTrap(ze,vt);var He=Je(Ae,"onDeactivate"),Ue=Je(Ae,"onPostDeactivate"),Ge=Je(Ae,"checkCanReturnFocus"),_t=Je(Ae,"returnFocus","returnFocusOnDeactivate");He?.();var St=function(){delay(function(){_t&&qt(Pt(De.nodeFocusedBeforeActivation)),Ue?.()})};return _t&&Ge?(Ge(Pt(De.nodeFocusedBeforeActivation)).then(St,St),this):(St(),this)},pause:function(j){return De.active?(De.manuallyPaused=!0,this._setPausedState(!0,j)):this},unpause:function(j){return De.active?(De.manuallyPaused=!1,ze[ze.length-1]!==this?this:this._setPausedState(!1,j)):this},updateContainerElements:function(j){var Ae=[].concat(j).filter(Boolean);return De.containers=Ae.map(function(He){return typeof He=="string"?Ke.querySelector(He):He}),De.active&&$t(),Mi(),this}},Object.defineProperties(vt,{_isManuallyPaused:{value:function(){return De.manuallyPaused}},_setPausedState:{value:function(j,Ae){if(De.paused===j)return this;if(De.paused=j,j){var He=Je(Ae,"onPause"),Ue=Je(Ae,"onPostPause");He?.(),vi(),Mi(),Ue?.()}else{var Ge=Je(Ae,"onUnpause"),_t=Je(Ae,"onPostUnpause");Ge?.(),$t(),ci(),Mi(),_t?.()}return this}}}),vt.updateContainerElements(Me),vt};const isRtl=isRTL$1(),_sfc_main$1$3=defineComponent({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),ncPopover="_ncPopover_wpltc_20",style0={"material-design-icon":"_material-design-icon_wpltc_12",ncPopover},theme="nc-popover-9";Ht$1.themes[theme]=structuredClone(Ht$1.themes.dropdown);const _sfc_main$e={name:"NcPopover",components:{Dropdown:kt,NcPopoverTriggerProvider:_sfc_main$1$3},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:Me=>["menu","listbox","tree","grid","dialog","true"].includes(Me)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?isRtl?"right":"left":this.placement==="end"?isRtl?"left":"right":this.placement}},watch:{shown(Me){this.internalShown=Me},internalShown(Me){this.$emit("update:shown",Me)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const Me=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const xe of Me)xe.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const Me=this.getPopoverContentElement();Me.tabIndex=-1,Me&&(this.$focusTrap=createFocusTrap(Me,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:getTrapStack(),fallBackFocus:Me}),this.$focusTrap.activate())},clearFocusTrap(Me={}){try{this.$focusTrap?.deactivate(Me),this.$focusTrap=null}catch(xe){logger.warn("[NcPopover] Failed to clear focus trap",{error:xe})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(Me){Me.type==="keydown"&&Me.key==="Escape"&&Me.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function _sfc_render$9(Me,xe,Ke,ze,We,De){const vt=resolveComponent("NcPopoverTriggerProvider"),Je=resolveComponent("Dropdown");return openBlock(),createBlock(Je,{ref:"popover",shown:We.internalShown,"onUpdate:shown":[xe[0]||(xe[0]=Ct=>We.internalShown=Ct),xe[1]||(xe[1]=Ct=>We.internalShown=Ct)],"arrow-padding":10,"auto-hide":!Ke.noCloseOnClickOutside&&Ke.closeOnClickOutside,boundary:Ke.boundary||void 0,container:Ke.container,delay:Ke.delay,distance:10,"handle-resize":"","no-auto-focus":!0,placement:De.internalPlacement,"popper-class":[Me.$style.ncPopover,Ke.popoverBaseClass],"popper-triggers":De.popperTriggers,"popper-hide-triggers":De.popperHideTriggers,"popper-show-triggers":De.popperShowTriggers,theme:ze.theme,triggers:De.internalTriggers,"hide-triggers":De.hideTriggers,"show-triggers":De.showTriggers,onApplyShow:De.afterShow,onApplyHide:De.afterHide},{popper:withCtx(Ct=>[renderSlot(Me.$slots,"default",normalizeProps(guardReactiveProps(Ct)))]),default:withCtx(()=>[createVNode(vt,{shown:We.internalShown,"popup-role":Ke.popupRole},{default:withCtx(Ct=>[renderSlot(Me.$slots,"trigger",normalizeProps(guardReactiveProps(Ct)))]),_:3},8,["shown","popup-role"])]),_:3},8,["shown","auto-hide","boundary","container","delay","placement","popper-class","popper-triggers","popper-hide-triggers","popper-show-triggers","theme","triggers","hide-triggers","show-triggers","onApplyShow","onApplyHide"])}const cssModules={$style:style0},NcPopover=_export_sfc(_sfc_main$e,[["render",_sfc_render$9],["__cssModules",cssModules]]),_sfc_main$1$2={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1$c=["aria-hidden","aria-label"],_hoisted_2$a=["fill","width","height"],_hoisted_3$7={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},_hoisted_4$7={key:0};function _sfc_render$8(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3$7,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4$7,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2$a))],16,_hoisted_1$c)}const IconDotsHorizontal=_export_sfc(_sfc_main$1$2,[["render",_sfc_render$8]]);register(t4);function isSlotPopulated(Me){return Array.isArray(Me)&&Me.some(xe=>{if(xe===null)return!1;if(typeof xe=="object"){const Ke=xe;if(Ke.type===Comment||Ke.type===Fragment&&!isSlotPopulated(Ke.children)||Ke.type===Text&&!Ke.children.trim())return!1}return!0})}const focusableSelector=".focusable",_sfc_main$d={name:"NcActions",components:{NcButton,NcPopover},provide(){return{[NC_ACTIONS_IS_SEMANTIC_MENU]:computed(()=>this.actionsMenuSemanticType==="menu"),[NC_ACTIONS_CLOSE_MENU]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:t("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(Me){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(Me)},default:null}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(Me){const xe=createElementId(),Ke=`trigger-${xe}`,ze=ref$1(),{top:We,bottom:De}=useElementBounding(ze),{top:vt,bottom:Je}=useElementBounding(toRef$1(()=>Me.boundariesElement)),{height:Ct}=useWindowSize(),yt=computed(()=>Math.max(Math.min(We.value-84,We.value-vt.value),Math.min(Ct.value-De.value-34,Je.value-De.value)));return{triggerButton:ze,maxMenuHeight:yt,randomId:xe,triggerRandomId:Ke}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(Me){Me!==this.opened&&(this.opened=Me)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){useTrapStackControl(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(Me){return Me?.type?.name},isValidSingleAction(Me){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(Me))},isAction(Me){return this.getActionName(Me)?.startsWith?.("NcAction")},isIconUrl(Me){try{return!!new URL(Me,Me.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(Me){Me?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(Me=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:Me}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,Me&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.resizePopover(),this.$emit("opened")})},onClosed(){this.$emit("closed")},resizePopover(){const Me=this.$refs.menu.closest(".v-popper__inner");if(this.$refs.menu.clientHeight>this.maxMenuHeight){let xe=0,Ke=0;for(const ze of this.$refs.menuList.children){if(xe+ze.clientHeight/2>this.maxMenuHeight){Me.style.height=`${xe-Ke/2}px`;break}Ke=ze.clientHeight,xe+=Ke}}else Me.style.height="fit-content"},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(focusableSelector)},onKeydown(Me){if(Me.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}Me.preventDefault();const xe=this.getFocusableMenuItemElements(),Ke=[...xe].indexOf(document.activeElement);if(Ke===-1)return;const ze=Me.shiftKey?Ke-1:Ke+1;(ze<0||ze===xe.length)&&this.closeMenu(!0),this.focusIndex=ze,this.focusAction();return}this.config.withArrowNavigation&&(Me.key==="ArrowUp"&&this.focusPreviousAction(Me),Me.key==="ArrowDown"&&this.focusNextAction(Me),Me.key==="PageUp"&&this.focusFirstAction(Me),Me.key==="PageDown"&&this.focusLastAction(Me)),this.handleEscapePressed(Me)},onTriggerKeydown(Me){Me.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(Me){Me.key==="Escape"&&(this.closeMenu(),Me.preventDefault())},removeCurrentActive(){const Me=this.$refs.menu.querySelector("li.active");Me&&Me.classList.remove("active")},focusAction(){const Me=this.getFocusableMenuItemElements()[this.focusIndex];if(Me){this.removeCurrentActive();const xe=Me.closest("li.action");Me.focus(),xe&&xe.classList.add("active")}},focusPreviousAction(Me){this.opened&&(this.focusIndex===0?this.focusLastAction(Me):(this.preventIfEvent(Me),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(Me){if(this.opened){const xe=this.getFocusableMenuItemElements().length-1;this.focusIndex===xe?this.focusFirstAction(Me):(this.preventIfEvent(Me),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(Me){if(this.opened){this.preventIfEvent(Me);const xe=[...this.getFocusableMenuItemElements()].findIndex(Ke=>Ke.getAttribute("aria-checked")==="true"&&Ke.getAttribute("role")==="menuitemradio");this.focusIndex=xe>-1?xe:0,this.focusAction()}},focusLastAction(Me){this.opened&&(this.preventIfEvent(Me),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(Me){Me&&(Me.preventDefault(),Me.stopPropagation())},onFocus(Me){this.$emit("focus",Me)},onBlur(Me){this.$emit("blur",Me),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(Me){this.$emit("click",Me)}},render(){const Me=[],xe=(qt,Pt)=>{qt.forEach(Nt=>{if(this.isAction(Nt)){Pt.push(Nt);return}Nt.type===Fragment&&xe(Nt.children,Pt)})};if(xe(this.$slots.default?.(),Me),Me.length===0)return;let Ke=Me.filter(this.isValidSingleAction);this.forceMenu&&Ke.length>0&&this.inline>0&&(Ke=[]);const ze=Ke.slice(0,this.inline),We=Me.filter(qt=>!ze.includes(qt)),De=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],vt=["NcActionInput","NcActionTextEditable"],Je=["NcActionLink","NcActionRouter"],Ct=We.some(qt=>vt.includes(this.getActionName(qt))),yt=We.some(qt=>De.includes(this.getActionName(qt))),Ft=We.some(qt=>Je.includes(this.getActionName(qt)));Ct?this.actionsMenuSemanticType="dialog":yt?this.actionsMenuSemanticType="menu":Ft?this.actionsMenuSemanticType="navigation":Me.filter(qt=>this.getActionName(qt).startsWith("NcAction")).length===Me.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const $t=qt=>{const Pt=qt?.props?.icon,Nt=qt?.children?.icon?.()?.[0]??(this.isIconUrl(Pt)?h$2("img",{class:"action-item__menutoggle__icon",src:Pt,alt:""}):h$2("span",{class:["icon",Pt]})),zt=qt?.children?.default?.()?.[0]?.children?.trim(),Gt=this.forceName?zt:"";let Ut=qt?.props?.title;this.forceName||Ut||(Ut=zt);const ii={...qt?.props??{}},ti=["submit","reset"].includes(ii.type)?ii.modelValue:"button";return delete ii.modelValue,delete ii.type,h$2(NcButton,mergeProps(ii,{class:"action-item action-item--single","aria-label":qt?.props?.["aria-label"]||zt,title:Ut,disabled:this.disabled||qt?.props?.disabled,pressed:qt?.props?.modelValue,type:ti,variant:this.variant||(Gt?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":qt?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>Gt,icon:()=>Nt})},Rt=qt=>{const Pt=isSlotPopulated(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?h$2("span",{class:["icon",this.defaultIcon]}):h$2(IconDotsHorizontal,{size:20}),Nt=`${this.randomId}-trigger`;return h$2(NcPopover,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>h$2(NcButton,{id:Nt,class:"action-item__menutoggle",disabled:this.disabled,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>Pt,default:()=>this.menuName}),default:()=>h$2("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[h$2("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":Nt,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[qt])])})};return Me.length===1&&Ke.length===1&&!this.forceMenu?$t(Me[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.resizePopover(),(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction())}),ze.length>0&&this.inline>0?h$2("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...ze.map($t),We.length>0?h$2("div",{class:["action-item",{"action-item--open":this.opened}]},[Rt(We)]):null]):h$2("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[Rt(Me)]))}},NcActions=_export_sfc(_sfc_main$d,[["__scopeId","data-v-cc138260"]]),_sfc_main$c={name:"NcActionText",mixins:[ActionTextMixin],inject:{isInSemanticMenu:{from:NC_ACTIONS_IS_SEMANTIC_MENU,default:!1}}},_hoisted_1$b=["role"],_hoisted_2$9={key:0,class:"action-text__longtext-wrapper"},_hoisted_3$6={class:"action-text__name"},_hoisted_4$6=["textContent"],_hoisted_5$1=["textContent"],_hoisted_6$1={key:2,class:"action-text__text"};function _sfc_render$7(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("li",{class:"action",role:De.isInSemanticMenu&&"presentation"},[createBaseVNode("span",{class:"action-text",onClick:xe[0]||(xe[0]=(...vt)=>Me.onClick&&Me.onClick(...vt))},[renderSlot(Me.$slots,"icon",{},()=>[Me.icon!==""?(openBlock(),createElementBlock("span",{key:0,"aria-hidden":"true",class:normalizeClass(["action-text__icon",[Me.isIconUrl?"action-text__icon--url":Me.icon]]),style:normalizeStyle({backgroundImage:Me.isIconUrl?`url(${Me.icon})`:null})},null,6)):createCommentVNode("",!0)],!0),Me.name?(openBlock(),createElementBlock("span",_hoisted_2$9,[createBaseVNode("strong",_hoisted_3$6,toDisplayString(Me.name),1),createBaseVNode("span",{class:"action-text__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_4$6)])):Me.isLongText?(openBlock(),createElementBlock("span",{key:1,class:"action-text__longtext",textContent:toDisplayString(Me.text)},null,8,_hoisted_5$1)):(openBlock(),createElementBlock("span",_hoisted_6$1,toDisplayString(Me.text),1)),createCommentVNode("",!0)])],8,_hoisted_1$b)}const NcActionText=_export_sfc(_sfc_main$c,[["render",_sfc_render$7],["__scopeId","data-v-fa684b48"]]);var dist$1={},storagebuilder={},scopedstorage={},hasRequiredScopedstorage;function requireScopedstorage(){if(hasRequiredScopedstorage)return scopedstorage;hasRequiredScopedstorage=1,Object.defineProperty(scopedstorage,"__esModule",{value:!0}),scopedstorage.default=void 0;function Me(We,De,vt){return De=xe(De),De in We?Object.defineProperty(We,De,{value:vt,enumerable:!0,configurable:!0,writable:!0}):We[De]=vt,We}function xe(We){var De=Ke(We,"string");return typeof De=="symbol"?De:De+""}function Ke(We,De){if(typeof We!="object"||!We)return We;var vt=We[Symbol.toPrimitive];if(vt!==void 0){var Je=vt.call(We,De);if(typeof Je!="object")return Je;throw new TypeError("@@toPrimitive must return a primitive value.")}return(De==="string"?String:Number)(We)}class ze{constructor(De,vt,Je){Me(this,"scope",void 0),Me(this,"wrapped",void 0),this.scope="".concat(Je?ze.GLOBAL_SCOPE_PERSISTENT:ze.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(De),"_"),this.wrapped=vt}scopeKey(De){return"".concat(this.scope).concat(De)}setItem(De,vt){this.wrapped.setItem(this.scopeKey(De),vt)}getItem(De){return this.wrapped.getItem(this.scopeKey(De))}removeItem(De){this.wrapped.removeItem(this.scopeKey(De))}clear(){Object.keys(this.wrapped).filter(De=>De.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}return scopedstorage.default=ze,Me(ze,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),Me(ze,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),scopedstorage}var hasRequiredStoragebuilder;function requireStoragebuilder(){if(hasRequiredStoragebuilder)return storagebuilder;hasRequiredStoragebuilder=1,Object.defineProperty(storagebuilder,"__esModule",{value:!0}),storagebuilder.default=void 0;var Me=xe(requireScopedstorage());function xe(vt){return vt&&vt.__esModule?vt:{default:vt}}function Ke(vt,Je,Ct){return Je=ze(Je),Je in vt?Object.defineProperty(vt,Je,{value:Ct,enumerable:!0,configurable:!0,writable:!0}):vt[Je]=Ct,vt}function ze(vt){var Je=We(vt,"string");return typeof Je=="symbol"?Je:Je+""}function We(vt,Je){if(typeof vt!="object"||!vt)return vt;var Ct=vt[Symbol.toPrimitive];if(Ct!==void 0){var yt=Ct.call(vt,Je);if(typeof yt!="object")return yt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Je==="string"?String:Number)(vt)}class De{constructor(Je){Ke(this,"appId",void 0),Ke(this,"persisted",!1),Ke(this,"clearedOnLogout",!1),this.appId=Je}persist(){let Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=Je,this}clearOnLogout(){let Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=Je,this}build(){return new Me.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}return storagebuilder.default=De,storagebuilder}var hasRequiredDist$1;function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1,Object.defineProperty(dist$1,"__esModule",{value:!0}),dist$1.clearAll=De,dist$1.clearNonPersistent=vt,dist$1.getBuilder=ze;var Me=Ke(requireStoragebuilder()),xe=Ke(requireScopedstorage());function Ke(Je){return Je&&Je.__esModule?Je:{default:Je}}function ze(Je){return new Me.default(Je)}function We(Je,Ct){Object.keys(Je).filter(yt=>Ct?Ct(yt):!0).map(Je.removeItem.bind(Je))}function De(){[window.sessionStorage,window.localStorage].map(Je=>We(Je))}function vt(){[window.sessionStorage,window.localStorage].map(Je=>We(Je,Ct=>!Ct.startsWith(xe.default.GLOBAL_SCOPE_PERSISTENT)))}return dist$1}var distExports=requireDist$1();const MOBILE_BREAKPOINT=1024,MOBILE_SMALL_BREAKPOINT=MOBILE_BREAKPOINT/2,isLessThanBreakpoint=Me=>document.documentElement.clientWidth{isMobile.value=isLessThanBreakpoint(MOBILE_BREAKPOINT),isSmallMobile.value=isLessThanBreakpoint(MOBILE_SMALL_BREAKPOINT)},{passive:!0});function useIsMobile(){return readonly(isMobile)}register();let realAppName="missing-app-name";try{realAppName=appName}catch{logger.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}const APP_NAME=realAppName;distExports.getBuilder("nextcloud").persist().build(),e().theming?.name;const activeApp=loadState$1("core","active-app",APP_NAME);loadState$1("core","apps",[]).find(({id:Me})=>Me===activeApp)?.name,register(),{...NcActions.props};const _sfc_main$b={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1$a=["aria-hidden","aria-label"],_hoisted_2$8=["fill","width","height"],_hoisted_3$5={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},_hoisted_4$5={key:0};function _sfc_render$6(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3$5,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4$5,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2$8))],16,_hoisted_1$a)}const ChevronDown=_export_sfc(_sfc_main$b,[["render",_sfc_render$6]]),_sfc_main$a={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1$9=["aria-hidden","aria-label"],_hoisted_2$7=["fill","width","height"],_hoisted_3$4={d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},_hoisted_4$4={key:0};function _sfc_render$5(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon close-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3$4,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4$4,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2$7))],16,_hoisted_1$9)}const IconClose=_export_sfc(_sfc_main$a,[["render",_sfc_render$5]]);register(t14),register(t21),register(t22,t48),register(),t("Search …"),register(),register();const _sfc_main$9=defineComponent({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(Me,{emit:xe}){const Ke=Me,ze=xe,We=ref$1(!1);async function De(vt){if(!We.value){We.value=!0;try{const Je=Ke.type==="reset"?!1:void 0,Ct=await Ke.callback?.()??Je;Ct!==!1&&ze("click",vt,Ct)}finally{We.value=!1}}}return(vt,Je)=>(openBlock(),createBlock(unref(NcButton),{"aria-label":vt.label,disabled:vt.disabled,type:vt.type,variant:vt.variant,onClick:De},{icon:withCtx(()=>[renderSlot(vt.$slots,"icon",{},()=>[We.value?(openBlock(),createBlock(unref(NcLoadingIcon),{key:0,name:unref(t)("Loading …")},null,8,["name"])):vt.icon!==void 0?(openBlock(),createBlock(unref(NcIconSvgWrapper),{key:1,svg:vt.icon},null,8,["svg"])):createCommentVNode("",!0)])]),default:withCtx(()=>[createTextVNode(toDisplayString(vt.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}}),_sfc_main$2$1={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1$2$1=["aria-hidden","aria-label"],_hoisted_2$2$1=["fill","width","height"],_hoisted_3$2$1={d:"M14,19H18V5H14M6,19H10V5H6V19Z"},_hoisted_4$2={key:0};function _sfc_render$2$1(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon pause-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3$2$1,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4$2,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2$2$1))],16,_hoisted_1$2$1)}const Pause=_export_sfc(_sfc_main$2$1,[["render",_sfc_render$2$1]]),_sfc_main$1$1={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1$1$1=["aria-hidden","aria-label"],_hoisted_2$1$1=["fill","width","height"],_hoisted_3$1$1={d:"M8,5.14V19.14L19,12.14L8,5.14Z"},_hoisted_4$1$1={key:0};function _sfc_render$1$1(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon play-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3$1$1,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4$1$1,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2$1$1))],16,_hoisted_1$1$1)}const Play=_export_sfc(_sfc_main$1$1,[["render",_sfc_render$1$1]]);register(t19,t34);function timer(Me,xe){let Ke,ze,We=xe,De;this.start=function(){De=!0,ze=new Date,Ke=setTimeout(Me,We)},this.pause=function(){De=!1,clearTimeout(Ke),We-=new Date-ze},this.clear=function(){De=!1,clearTimeout(Ke),We=0},this.getTimeLeft=function(){return De&&(this.pause(),this.start()),We},this.getStateRunning=function(){return De},this.start()}const _sfc_main$8={name:"NcModal",components:{Close:IconClose,Pause,Play,NcActions,NcButton,NcIconSvgWrapper},props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},disableSwipe:{type:Boolean,default:!1},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:Me=>["small","normal","large","full"].includes(Me)},noClose:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},lightBackdrop:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonOutside:{type:Boolean,default:!1},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0},labelId:{type:String,default:""},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String]}},emits:["previous","next","close","update:show"],setup(){return{mdiChevronLeft,mdiChevronRight}},data(){return{mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:createElementId(),internalShow:!0}},computed:{modalLabelId(){return this.labelId||`modal-name-${this.randId}`},showModal(){return this.show===void 0?this.internalShow:this.show},modalTransitionName(){return`modal-${this.outTransition?"out":"in"}`},playPauseName(){return this.playing?t("Pause slideshow"):t("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel(){return t("Close")},prevButtonAriaLabel(){return t("Previous")},nextButtonAriaLabel(){return t("Next")}},watch:{slideshowPaused(Me){this.slideshowTimeout&&(Me?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(Me){if(this.focusTrap){const xe=this.$refs.mask;this.focusTrap.updateContainerElements([xe,...Me])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){!this.name&&this.labelId,this.useFocusTrap(),this.mc=useSwipe(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&(this.container==="body"?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},unmounted(){this.clearFocusTrap(),this.$el.remove()},methods:{t,previous(Me){this.hasPrevious&&(Me&&this.resetSlideshow(),this.$emit("previous",Me))},next(Me){this.hasNext&&(Me&&this.resetSlideshow(),this.$emit("next",Me))},close(Me){this.noClose||(this.internalShow=!1,this.$emit("update:show",!1),setTimeout(()=>{this.$emit("close",Me)},300))},handleClickModalWrapper(Me){this.closeOnClickOutside&&this.close(Me)},handleKeydown(Me){if(Me.key==="Escape"){const Ke=getTrapStack();return Ke.length>0&&Ke[Ke.length-1]!==this.focusTrap?void 0:this.close(Me)}const xe={ArrowLeft:this.previous,ArrowRight:this.next};if(xe[Me.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:xe[Me.key](Me)},handleSwipe(Me,xe){this.disableSwipe||(xe==="left"?this.next(Me):xe==="right"&&this.previous(Me))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick(function(){this.togglePlayPause()})},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new timer(()=>{this.next(),this.handleSlideshow()},this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const Me=this.$refs.mask;await this.$nextTick();const xe={allowOutsideClick:!0,fallbackFocus:Me,trapStack:getTrapStack(),escapeDeactivates:!1,setReturnFocus:this.setReturnFocus};this.focusTrap=createFocusTrap([Me,...this.additionalTrapElements],xe),this.focusTrap.activate()},clearFocusTrap(){this.focusTrap&&(this.focusTrap?.deactivate(),this.focusTrap=null)}}},_hoisted_1$8=["aria-labelledby","aria-describedby"],_hoisted_2$6=["data-theme-light","data-theme-dark"],_hoisted_3$3=["id"],_hoisted_4$3={class:"icons-menu"},_hoisted_5=["title"],_hoisted_6={class:"hidden-visually"},_hoisted_7={key:2,class:"progress-ring",height:"50",width:"50"},_hoisted_8=["id"],_hoisted_9={class:"modal-container__content"};function _sfc_render$4(Me,xe,Ke,ze,We,De){const vt=resolveComponent("Play"),Je=resolveComponent("Pause"),Ct=resolveComponent("NcActions"),yt=resolveComponent("Close"),Ft=resolveComponent("NcButton"),$t=resolveComponent("NcIconSvgWrapper");return openBlock(),createBlock(Transition,{name:"fade",appear:"",onAfterEnter:De.useFocusTrap,onBeforeLeave:De.clearFocusTrap},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref:"mask",class:normalizeClass(["modal-mask",{"modal-mask--opaque":Ke.dark||Ke.closeButtonOutside||Ke.hasPrevious||Ke.hasNext,"modal-mask--light":Ke.lightBackdrop}]),style:normalizeStyle(De.cssVariables),role:"dialog","aria-modal":"true","aria-labelledby":De.modalLabelId,"aria-describedby":"modal-description-"+We.randId,tabindex:"-1"},[createVNode(Transition,{name:"fade-visibility",appear:""},{default:withCtx(()=>[createBaseVNode("div",{class:"modal-header","data-theme-light":Ke.lightBackdrop,"data-theme-dark":!Ke.lightBackdrop},[Ke.name.trim()!==""?(openBlock(),createElementBlock("h2",{key:0,id:"modal-name-"+We.randId,class:"modal-header__name"},toDisplayString(Ke.name),9,_hoisted_3$3)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$3,[Ke.hasNext&&Ke.enableSlideshow?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["play-pause-icons",{"play-pause-icons--paused":Ke.slideshowPaused}]),title:De.playPauseName,type:"button",onClick:xe[0]||(xe[0]=(...Rt)=>De.togglePlayPause&&De.togglePlayPause(...Rt))},[We.playing?(openBlock(),createBlock(Je,{key:1,class:"play-pause-icons__pause",size:We.iconSize},null,8,["size"])):(openBlock(),createBlock(vt,{key:0,class:"play-pause-icons__play",size:We.iconSize},null,8,["size"])),createBaseVNode("span",_hoisted_6,toDisplayString(De.playPauseName),1),We.playing?(openBlock(),createElementBlock("svg",_hoisted_7,[...xe[2]||(xe[2]=[createBaseVNode("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):createCommentVNode("",!0)],10,_hoisted_5)):createCommentVNode("",!0),createVNode(Ct,{class:"header-actions",inline:Ke.inlineActions},{default:withCtx(()=>[renderSlot(Me.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!Ke.noClose&&Ke.closeButtonOutside?(openBlock(),createBlock(Ft,{key:1,"aria-label":De.closeButtonAriaLabel,class:"header-close",variant:"tertiary",onClick:De.close},{icon:withCtx(()=>[createVNode(yt,{size:We.iconSize},null,8,["size"])]),_:1},8,["aria-label","onClick"])):createCommentVNode("",!0)])],8,_hoisted_2$6)]),_:3}),createVNode(Transition,{name:De.modalTransitionName,appear:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass(["modal-wrapper",[`modal-wrapper--${Ke.size}`,{"modal-wrapper--spread-navigation":Ke.spreadNavigation}]]),onMousedown:xe[1]||(xe[1]=withModifiers((...Rt)=>De.handleClickModalWrapper&&De.handleClickModalWrapper(...Rt),["self"]))},[createVNode(Transition,{name:"fade-visibility",appear:""},{default:withCtx(()=>[withDirectives(createVNode(Ft,{"aria-label":De.prevButtonAriaLabel,class:"prev",variant:"tertiary-no-background",onClick:De.previous},{icon:withCtx(()=>[createVNode($t,{directional:"",path:ze.mdiChevronLeft,size:40},null,8,["path"])]),_:1},8,["aria-label","onClick"]),[[vShow,Ke.hasPrevious]])]),_:1}),createBaseVNode("div",{id:"modal-description-"+We.randId,class:"modal-container"},[createBaseVNode("div",_hoisted_9,[renderSlot(Me.$slots,"default",{},void 0,!0)]),!Ke.noClose&&!Ke.closeButtonOutside?(openBlock(),createBlock(Ft,{key:0,"aria-label":De.closeButtonAriaLabel,class:"modal-container__close",variant:"tertiary",onClick:De.close},{icon:withCtx(()=>[createVNode(yt,{size:20})]),_:1},8,["aria-label","onClick"])):createCommentVNode("",!0)],8,_hoisted_8),createVNode(Transition,{name:"fade-visibility",appear:""},{default:withCtx(()=>[withDirectives(createVNode(Ft,{"aria-label":De.nextButtonAriaLabel,class:"next",variant:"tertiary-no-background",onClick:De.next},{icon:withCtx(()=>[createVNode($t,{directional:"",path:ze.mdiChevronRight,size:40},null,8,["path"])]),_:1},8,["aria-label","onClick"]),[[vShow,Ke.hasNext]])]),_:1})],34),[[vShow,De.showModal]])]),_:3},8,["name"])],14,_hoisted_1$8),[[vShow,De.showModal]])]),_:3},8,["onAfterEnter","onBeforeLeave"])}const NcModal=_export_sfc(_sfc_main$8,[["render",_sfc_render$4],["__scopeId","data-v-70dc2566"]]),_hoisted_1$7=["id","textContent"],_hoisted_2$5=["aria-label","aria-labelledby"],_hoisted_3$2={class:"dialog__text"},_hoisted_4$1={class:"dialog__actions"},_sfc_main$7=defineComponent({__name:"NcDialog",props:mergeModels({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:mergeModels(["closing","reset","submit"],["update:open"]),setup(Me,{emit:xe}){const Ke=useModel(Me,"open"),ze=Me,We=xe,De=useSlots(),vt=useTemplateRef("wrapper"),{width:Je}=useElementSize(vt,{width:900,height:0}),Ct=computed(()=>Je.value<876),yt=computed(()=>De?.navigation!==void 0),Ft=createElementId(),$t=computed(()=>ze.navigationAriaLabel||void 0),Rt=computed(()=>{if(!ze.navigationAriaLabel)return ze.navigationAriaLabelledby||Ft}),qt=useTemplateRef("dialogElement"),Pt=computed(()=>ze.isForm&&!yt.value?"form":"div"),Nt=computed(()=>Pt.value!=="form"?{}:{submit(di){di.preventDefault(),We("submit",di)},reset(di){di.preventDefault(),We("reset",di)}}),zt=ref$1(!0);function Gt(di,ci){di.type==="submit"&&Pt.value==="form"&&"reportValidity"in qt.value&&!qt.value.reportValidity()||(Ut(ci),window.setTimeout(()=>ii(),300))}function Ut(di){zt.value=!1,We("closing",di)}function ii(){zt.value=!0,Ke.value=!1}const ti=computed(()=>({noClose:ze.noClose,container:ze.container===void 0?"body":ze.container,labelId:Ft,size:ze.size,show:Ke.value&&zt.value,outTransition:ze.outTransition,closeOnClickOutside:ze.closeOnClickOutside,additionalTrapElements:ze.additionalTrapElements}));return(di,ci)=>Ke.value?(openBlock(),createBlock(unref(NcModal),mergeProps({key:0,class:"dialog__modal","enable-slideshow":!1,"disable-swipe":""},ti.value,{onClose:ii,"onUpdate:show":ci[0]||(ci[0]=vi=>Ut())}),{default:withCtx(()=>[createBaseVNode("h2",{id:unref(Ft),class:"dialog__name",textContent:toDisplayString(di.name)},null,8,_hoisted_1$7),(openBlock(),createBlock(resolveDynamicComponent(Pt.value),mergeProps({ref:"dialogElement",class:["dialog",di.dialogClasses]},toHandlers(Nt.value)),{default:withCtx(()=>[createBaseVNode("div",{ref:"wrapper",class:normalizeClass(["dialog__wrapper",[{"dialog__wrapper--collapsed":Ct.value}]])},[yt.value?(openBlock(),createElementBlock("nav",{key:0,class:normalizeClass(["dialog__navigation",di.navigationClasses]),"aria-label":$t.value,"aria-labelledby":Rt.value},[renderSlot(di.$slots,"navigation",{isCollapsed:Ct.value},void 0,!0)],10,_hoisted_2$5)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["dialog__content",di.contentClasses])},[renderSlot(di.$slots,"default",{},()=>[createBaseVNode("p",_hoisted_3$2,toDisplayString(di.message),1)],!0)],2)],2),createBaseVNode("div",_hoisted_4$1,[renderSlot(di.$slots,"actions",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(di.buttons,(vi,bi)=>(openBlock(),createBlock(unref(_sfc_main$9),mergeProps({key:bi},{ref_for:!0},vi,{onClick:(pi,Mi)=>Gt(vi,Mi)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):createCommentVNode("",!0)}}),NcDialog=_export_sfc(_sfc_main$7,[["__scopeId","data-v-ca0b8eba"]]);register();const defaultWindow=isClient?window:void 0;function unrefElement(Me){var xe;const Ke=toValue(Me);return(xe=Ke?.$el)!=null?xe:Ke}function useEventListener(...Me){const xe=[],Ke=()=>{xe.forEach(Je=>Je()),xe.length=0},ze=(Je,Ct,yt,Ft)=>(Je.addEventListener(Ct,yt,Ft),()=>Je.removeEventListener(Ct,yt,Ft)),We=computed(()=>{const Je=toArray(toValue(Me[0])).filter(Ct=>Ct!=null);return Je.every(Ct=>typeof Ct!="string")?Je:void 0}),De=watchImmediate(()=>{var Je,Ct;return[(Ct=(Je=We.value)==null?void 0:Je.map(yt=>unrefElement(yt)))!=null?Ct:[defaultWindow].filter(yt=>yt!=null),toArray(toValue(We.value?Me[1]:Me[0])),toArray(unref(We.value?Me[2]:Me[1])),toValue(We.value?Me[3]:Me[2])]},([Je,Ct,yt,Ft])=>{if(Ke(),!Je?.length||!Ct?.length||!yt?.length)return;const $t=isObject(Ft)?{...Ft}:Ft;xe.push(...Je.flatMap(Rt=>Ct.flatMap(qt=>yt.map(Pt=>ze(Rt,qt,Pt,$t)))))},{flush:"post"}),vt=()=>{De(),Ke()};return tryOnScopeDispose(Ke),vt}let _iOSWorkaround=!1;function onClickOutside(Me,xe,Ke={}){const{window:ze=defaultWindow,ignore:We=[],capture:De=!0,detectIframe:vt=!1,controls:Je=!1}=Ke;if(!ze)return Je?{stop:noop$1,cancel:noop$1,trigger:noop$1}:noop$1;if(isIOS&&!_iOSWorkaround){_iOSWorkaround=!0;const zt={passive:!0};Array.from(ze.document.body.children).forEach(Gt=>Gt.addEventListener("click",noop$1,zt)),ze.document.documentElement.addEventListener("click",noop$1,zt)}let Ct=!0;const yt=zt=>toValue(We).some(Gt=>{if(typeof Gt=="string")return Array.from(ze.document.querySelectorAll(Gt)).some(Ut=>Ut===zt.target||zt.composedPath().includes(Ut));{const Ut=unrefElement(Gt);return Ut&&(zt.target===Ut||zt.composedPath().includes(Ut))}});function Ft(zt){const Gt=toValue(zt);return Gt&&Gt.$.subTree.shapeFlag===16}function $t(zt,Gt){const Ut=toValue(zt),ii=Ut.$.subTree&&Ut.$.subTree.children;return ii==null||!Array.isArray(ii)?!1:ii.some(ti=>ti.el===Gt.target||Gt.composedPath().includes(ti.el))}const Rt=zt=>{const Gt=unrefElement(Me);if(zt.target!=null&&!(!(Gt instanceof Element)&&Ft(Me)&&$t(Me,zt))&&!(!Gt||Gt===zt.target||zt.composedPath().includes(Gt))){if("detail"in zt&&zt.detail===0&&(Ct=!yt(zt)),!Ct){Ct=!0;return}xe(zt)}};let qt=!1;const Pt=[useEventListener(ze,"click",zt=>{qt||(qt=!0,setTimeout(()=>{qt=!1},0),Rt(zt))},{passive:!0,capture:De}),useEventListener(ze,"pointerdown",zt=>{const Gt=unrefElement(Me);Ct=!yt(zt)&&!!(Gt&&!zt.composedPath().includes(Gt))},{passive:!0}),vt&&useEventListener(ze,"blur",zt=>{setTimeout(()=>{var Gt;const Ut=unrefElement(Me);((Gt=ze.document.activeElement)==null?void 0:Gt.tagName)==="IFRAME"&&!Ut?.contains(ze.document.activeElement)&&xe(zt)},0)},{passive:!0})].filter(Boolean),Nt=()=>Pt.forEach(zt=>zt());return Je?{stop:Nt,cancel:()=>{Ct=!1},trigger:zt=>{Ct=!0,Rt(zt),Ct=!1}}:Nt}const stopClickOutsideMap=new WeakMap,vOnClickOutside={mounted(Me,xe){const Ke=!xe.modifiers.bubble;let ze;if(typeof xe.value=="function")ze=onClickOutside(Me,xe.value,{capture:Ke});else{const[We,De]=xe.value;ze=onClickOutside(Me,We,Object.assign({capture:Ke},De))}stopClickOutsideMap.set(Me,ze)},unmounted(Me){const xe=stopClickOutsideMap.get(Me);xe&&typeof xe=="function"?xe():xe?.stop(),stopClickOutsideMap.delete(Me)}};function resolveElement(Me){return typeof Window<"u"&&Me instanceof Window?Me.document.documentElement:typeof Document<"u"&&Me instanceof Document?Me.documentElement:Me}function checkOverflowScroll(Me){const xe=window.getComputedStyle(Me);if(xe.overflowX==="scroll"||xe.overflowY==="scroll"||xe.overflowX==="auto"&&Me.clientWidth1?!0:(xe.preventDefault&&xe.preventDefault(),!1)}const elInitialOverflow=new WeakMap;function useScrollLock(Me,xe=!1){const Ke=shallowRef(xe);let ze=null,We="";watch(toRef(Me),Je=>{const Ct=resolveElement(toValue(Je));if(Ct){const yt=Ct;if(elInitialOverflow.get(yt)||elInitialOverflow.set(yt,yt.style.overflow),yt.style.overflow!=="hidden"&&(We=yt.style.overflow),yt.style.overflow==="hidden")return Ke.value=!0;if(Ke.value)return yt.style.overflow="hidden"}},{immediate:!0});const De=()=>{const Je=resolveElement(toValue(Me));!Je||Ke.value||(isIOS&&(ze=useEventListener(Je,"touchmove",Ct=>{preventDefault(Ct)},{passive:!1})),Je.style.overflow="hidden",Ke.value=!0)},vt=()=>{const Je=resolveElement(toValue(Me));!Je||!Ke.value||(isIOS&&ze?.(),Je.style.overflow=We,elInitialOverflow.delete(Je),Ke.value=!1)};return tryOnScopeDispose(vt),computed({get(){return Ke.value},set(Je){Je?De():vt()}})}function onScrollLock(){let Me=!1;const xe=shallowRef(!1);return(Ke,ze)=>{if(xe.value=ze.value,Me)return;Me=!0;const We=useScrollLock(Ke,ze.value);watch(xe,De=>We.value=De)}}onScrollLock();const LOCALHOST="LOCALHOST",COLON="COLON",defaults={defaultProtocol:"http",events:null,format:noop,formatHref:noop,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Options(Me,xe=null){let Ke=Object.assign({},defaults);Me&&(Ke=Object.assign(Ke,Me instanceof Options?Me.o:Me));const ze=Ke.ignoreTags,We=[];for(let De=0;DeKe?ze.substring(0,Ke)+"…":ze},toFormattedHref(Me){return Me.get("formatHref",this.toHref(Me.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(Me=defaults.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(Me),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(Me){return{type:this.t,value:this.toFormattedString(Me),isLink:this.isLink,href:this.toFormattedHref(Me),start:this.startIndex(),end:this.endIndex()}},validate(Me){return Me.get("validate",this.toString(),this)},render(Me){const xe=this,Ke=this.toHref(Me.get("defaultProtocol")),ze=Me.get("formatHref",Ke,this),We=Me.get("tagName",Ke,xe),De=this.toFormattedString(Me),vt={},Je=Me.get("className",Ke,xe),Ct=Me.get("target",Ke,xe),yt=Me.get("rel",Ke,xe),Ft=Me.getObj("attributes",Ke,xe),$t=Me.getObj("events",Ke,xe);return vt.href=ze,Je&&(vt.class=Je),Ct&&(vt.target=Ct),yt&&(vt.rel=yt),Ft&&Object.assign(vt,Ft),{tagName:We,attributes:vt,content:De,eventListeners:$t}}};function createTokenClass(Me,xe){class Ke extends MultiToken{constructor(We,De){super(We,De),this.t=Me}}for(const ze in xe)Ke.prototype[ze]=xe[ze];return Ke.t=Me,Ke}createTokenClass("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),createTokenClass("text"),createTokenClass("nl"),createTokenClass("url",{isLink:!0,toHref(Me=defaults.defaultProtocol){return this.hasProtocol()?this.v:`${Me}://${this.v}`},hasProtocol(){const Me=this.tk;return Me.length>=2&&Me[0].t!==LOCALHOST&&Me[1].t===COLON}}),register(t15);function checkIfDarkTheme(Me=document.body){const xe=window.getComputedStyle(Me).getPropertyValue("--background-invert-if-dark");return xe!==void 0?xe==="invert(100%)":!1}checkIfDarkTheme();const INJECTION_KEY_THEME=Symbol.for("nc:theme:enforced");function useIsDarkThemeElement(Me){const xe=computed(()=>toValue(Me)??document.body),Ke=ref$1(checkIfDarkTheme(xe.value)),ze=usePreferredDark();function We(){Ke.value=checkIfDarkTheme(xe.value)}return useMutationObserver(xe,We,{attributes:!0}),watch(xe,We),watch(ze,We,{immediate:!0}),readonly(Ke)}const useInternalIsDarkTheme=createSharedComposable(()=>useIsDarkThemeElement());function useIsDarkTheme(){const Me=useInternalIsDarkTheme(),xe=inject(INJECTION_KEY_THEME,void 0);return computed(()=>xe?.value?xe.value==="dark":Me.value)}function getRoute(Me,xe){const Ke=(Ft,$t)=>Ft.startsWith($t)?Ft.slice($t.length):Ft,ze=(Ft,...$t)=>$t.reduce((Rt,qt)=>Ke(Rt,qt),Ft);if(!Me)return null;const We=/^https?:\/\//.test(xe),De=/^[a-z][a-z0-9+.-]*:.+/.test(xe);if(!We&&De||We&&!xe.startsWith(w$1())||!We&&!xe.startsWith("/"))return null;const vt=We?ze(xe,w$1(),"/index.php"):xe,Je=ze(Me.options.history.base,f$2(),"/index.php"),Ct=ze(vt,Je)||"/",yt=Me.resolve(Ct);return yt.matched.length?yt.fullPath:null}register(t2);const FEW_SECONDS_AGO={long:t("a few seconds ago"),short:t("seconds ago"),narrow:t("sec. ago")};function useFormatRelativeTime(Me=Date.now(),xe={}){let Ke;const ze=computed(()=>new Date(toValue(Me))),We=computed(()=>{const{language:Je,relativeTime:Ct,ignoreSeconds:yt}=toValue(xe);return{...Je&&{language:Je},...Ct&&{relativeTime:Ct},ignoreSeconds:yt?FEW_SECONDS_AGO[Ct||"long"]:!1}}),De=ref$1("");watchEffect(()=>vt());function vt(){if(De.value=formatRelativeTime(ze.value,We.value),toValue(xe).update!==!1){const Je=Math.abs(Date.now()-new Date(toValue(Me)).getTime()),Ct=Je>12e4||We.value.ignoreSeconds?Math.min(Je/60,18e5):1e3;Ke=window.setTimeout(vt,Ct)}}return onUnmounted(()=>Ke&&window.clearTimeout(Ke)),readonly(De)}function useFormatTime(Me,xe){const Ke=computed(()=>({locale:getCanonicalLocale(),format:{dateStyle:"short",timeStyle:"medium"},...toValue(xe)})),ze=computed(()=>new Intl.DateTimeFormat(Ke.value.locale,Ke.value.format));return computed(()=>ze.value.format(toValue(Me)))}window.OCP?.Accessibility?.disableKeyboardShortcuts?.();const isFullscreen=ref$1(checkIfIsFullscreen());window.addEventListener("resize",()=>{isFullscreen.value=checkIfIsFullscreen()});function checkIfIsFullscreen(){return window.outerHeight===window.screen.height}function getEnabledContactsMenuActions(Me){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(xe=>xe.enabled(Me)):[]}var cryptoBrowserify={},browser$b={exports:{}},safeBuffer$2={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(Me){Object.defineProperties(Me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var xe={},Ke={};Ke.byteLength=Ft,Ke.toByteArray=Rt,Ke.fromByteArray=Nt;for(var ze=[],We=[],De=typeof Uint8Array<"u"?Uint8Array:Array,vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0,Ct=vt.length;Je0)throw new Error("Invalid string. Length must be a multiple of 4");var ti=Ut.indexOf("=");ti===-1&&(ti=ii);var di=ti===ii?0:4-ti%4;return[ti,di]}function Ft(Ut){var ii=yt(Ut),ti=ii[0],di=ii[1];return(ti+di)*3/4-di}function $t(Ut,ii,ti){return(ii+ti)*3/4-ti}function Rt(Ut){var ii,ti=yt(Ut),di=ti[0],ci=ti[1],vi=new De($t(Ut,di,ci)),bi=0,pi=ci>0?di-4:di,Mi;for(Mi=0;Mi>16&255,vi[bi++]=ii>>8&255,vi[bi++]=ii&255;return ci===2&&(ii=We[Ut.charCodeAt(Mi)]<<2|We[Ut.charCodeAt(Mi+1)]>>4,vi[bi++]=ii&255),ci===1&&(ii=We[Ut.charCodeAt(Mi)]<<10|We[Ut.charCodeAt(Mi+1)]<<4|We[Ut.charCodeAt(Mi+2)]>>2,vi[bi++]=ii>>8&255,vi[bi++]=ii&255),vi}function qt(Ut){return ze[Ut>>18&63]+ze[Ut>>12&63]+ze[Ut>>6&63]+ze[Ut&63]}function Pt(Ut,ii,ti){for(var di,ci=[],vi=ii;vipi?pi:bi+vi));return di===1?(ii=Ut[ti-1],ci.push(ze[ii>>2]+ze[ii<<4&63]+"==")):di===2&&(ii=(Ut[ti-2]<<8)+Ut[ti-1],ci.push(ze[ii>>10]+ze[ii>>4&63]+ze[ii<<2&63]+"=")),ci.join("")}var zt={};zt.read=function(Ut,ii,ti,di,ci){var vi,bi,pi=ci*8-di-1,Mi=(1<>1,Ae=-7,He=ti?ci-1:0,Ue=ti?-1:1,Ge=Ut[ii+He];for(He+=Ue,vi=Ge&(1<<-Ae)-1,Ge>>=-Ae,Ae+=pi;Ae>0;vi=vi*256+Ut[ii+He],He+=Ue,Ae-=8);for(bi=vi&(1<<-Ae)-1,vi>>=-Ae,Ae+=di;Ae>0;bi=bi*256+Ut[ii+He],He+=Ue,Ae-=8);if(vi===0)vi=1-j;else{if(vi===Mi)return bi?NaN:(Ge?-1:1)*(1/0);bi=bi+Math.pow(2,di),vi=vi-j}return(Ge?-1:1)*bi*Math.pow(2,vi-di)},zt.write=function(Ut,ii,ti,di,ci,vi){var bi,pi,Mi,j=vi*8-ci-1,Ae=(1<>1,Ue=ci===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ge=di?0:vi-1,_t=di?1:-1,St=ii<0||ii===0&&1/ii<0?1:0;for(ii=Math.abs(ii),isNaN(ii)||ii===1/0?(pi=isNaN(ii)?1:0,bi=Ae):(bi=Math.floor(Math.log(ii)/Math.LN2),ii*(Mi=Math.pow(2,-bi))<1&&(bi--,Mi*=2),bi+He>=1?ii+=Ue/Mi:ii+=Ue*Math.pow(2,1-He),ii*Mi>=2&&(bi++,Mi/=2),bi+He>=Ae?(pi=0,bi=Ae):bi+He>=1?(pi=(ii*Mi-1)*Math.pow(2,ci),bi=bi+He):(pi=ii*Math.pow(2,He-1)*Math.pow(2,ci),bi=0));ci>=8;Ut[ti+Ge]=pi&255,Ge+=_t,pi/=256,ci-=8);for(bi=bi<0;Ut[ti+Ge]=bi&255,Ge+=_t,bi/=256,j-=8);Ut[ti+Ge-_t]|=St*128},(function(Ut){const ii=Ke,ti=zt,di=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.Buffer=Ae,Ut.SlowBuffer=ei,Ut.INSPECT_MAX_BYTES=50;const ci=2147483647;Ut.kMaxLength=ci;const{Uint8Array:vi,ArrayBuffer:bi,SharedArrayBuffer:pi}=globalThis;Ae.TYPED_ARRAY_SUPPORT=Mi(),!Ae.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Mi(){try{const Yt=new vi(1),ui={foo:function(){return 42}};return Object.setPrototypeOf(ui,vi.prototype),Object.setPrototypeOf(Yt,ui),Yt.foo()===42}catch{return!1}}Object.defineProperty(Ae.prototype,"parent",{enumerable:!0,get:function(){if(Ae.isBuffer(this))return this.buffer}}),Object.defineProperty(Ae.prototype,"offset",{enumerable:!0,get:function(){if(Ae.isBuffer(this))return this.byteOffset}});function j(Yt){if(Yt>ci)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const ui=new vi(Yt);return Object.setPrototypeOf(ui,Ae.prototype),ui}function Ae(Yt,ui,ai){if(typeof Yt=="number"){if(typeof ui=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _t(Yt)}return He(Yt,ui,ai)}Ae.poolSize=8192;function He(Yt,ui,ai){if(typeof Yt=="string")return St(Yt,ui);if(bi.isView(Yt))return ke(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(nn(Yt,bi)||Yt&&nn(Yt.buffer,bi)||typeof pi<"u"&&(nn(Yt,pi)||Yt&&nn(Yt.buffer,pi)))return Xe(Yt,ui,ai);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const wi=Yt.valueOf&&Yt.valueOf();if(wi!=null&&wi!==Yt)return Ae.from(wi,ui,ai);const Ii=Vt(Yt);if(Ii)return Ii;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return Ae.from(Yt[Symbol.toPrimitive]("string"),ui,ai);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}Ae.from=function(Yt,ui,ai){return He(Yt,ui,ai)},Object.setPrototypeOf(Ae.prototype,vi.prototype),Object.setPrototypeOf(Ae,vi);function Ue(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function Ge(Yt,ui,ai){return Ue(Yt),Yt<=0?j(Yt):ui!==void 0?typeof ai=="string"?j(Yt).fill(ui,ai):j(Yt).fill(ui):j(Yt)}Ae.alloc=function(Yt,ui,ai){return Ge(Yt,ui,ai)};function _t(Yt){return Ue(Yt),j(Yt<0?0:Jt(Yt)|0)}Ae.allocUnsafe=function(Yt){return _t(Yt)},Ae.allocUnsafeSlow=function(Yt){return _t(Yt)};function St(Yt,ui){if((typeof ui!="string"||ui==="")&&(ui="utf8"),!Ae.isEncoding(ui))throw new TypeError("Unknown encoding: "+ui);const ai=oi(Yt,ui)|0;let wi=j(ai);const Ii=wi.write(Yt,ui);return Ii!==ai&&(wi=wi.slice(0,Ii)),wi}function Ye(Yt){const ui=Yt.length<0?0:Jt(Yt.length)|0,ai=j(ui);for(let wi=0;wi=ci)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ci.toString(16)+" bytes");return Yt|0}function ei(Yt){return+Yt!=Yt&&(Yt=0),Ae.alloc(+Yt)}Ae.isBuffer=function(Yt){return Yt!=null&&Yt._isBuffer===!0&&Yt!==Ae.prototype},Ae.compare=function(Yt,ui){if(nn(Yt,vi)&&(Yt=Ae.from(Yt,Yt.offset,Yt.byteLength)),nn(ui,vi)&&(ui=Ae.from(ui,ui.offset,ui.byteLength)),!Ae.isBuffer(Yt)||!Ae.isBuffer(ui))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Yt===ui)return 0;let ai=Yt.length,wi=ui.length;for(let Ii=0,Ai=Math.min(ai,wi);Iiwi.length?(Ae.isBuffer(Ai)||(Ai=Ae.from(Ai)),Ai.copy(wi,Ii)):vi.prototype.set.call(wi,Ai,Ii);else if(Ae.isBuffer(Ai))Ai.copy(wi,Ii);else throw new TypeError('"list" argument must be an Array of Buffers');Ii+=Ai.length}return wi};function oi(Yt,ui){if(Ae.isBuffer(Yt))return Yt.length;if(bi.isView(Yt)||nn(Yt,bi))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const ai=Yt.length,wi=arguments.length>2&&arguments[2]===!0;if(!wi&&ai===0)return 0;let Ii=!1;for(;;)switch(ui){case"ascii":case"latin1":case"binary":return ai;case"utf8":case"utf-8":return _i(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ai*2;case"hex":return ai>>>1;case"base64":return Vi(Yt).length;default:if(Ii)return wi?-1:_i(Yt).length;ui=(""+ui).toLowerCase(),Ii=!0}}Ae.byteLength=oi;function li(Yt,ui,ai){let wi=!1;if((ui===void 0||ui<0)&&(ui=0),ui>this.length||((ai===void 0||ai>this.length)&&(ai=this.length),ai<=0)||(ai>>>=0,ui>>>=0,ai<=ui))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Hi(this,ui,ai);case"utf8":case"utf-8":return gi(this,ui,ai);case"ascii":return Li(this,ui,ai);case"latin1":case"binary":return Ti(this,ui,ai);case"base64":return Bi(this,ui,ai);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zi(this,ui,ai);default:if(wi)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),wi=!0}}Ae.prototype._isBuffer=!0;function fi(Yt,ui,ai){const wi=Yt[ui];Yt[ui]=Yt[ai],Yt[ai]=wi}Ae.prototype.swap16=function(){const Yt=this.length;if(Yt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ui=0;uiui&&(Yt+=" ... "),""},di&&(Ae.prototype[di]=Ae.prototype.inspect),Ae.prototype.compare=function(Yt,ui,ai,wi,Ii){if(nn(Yt,vi)&&(Yt=Ae.from(Yt,Yt.offset,Yt.byteLength)),!Ae.isBuffer(Yt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Yt);if(ui===void 0&&(ui=0),ai===void 0&&(ai=Yt?Yt.length:0),wi===void 0&&(wi=0),Ii===void 0&&(Ii=this.length),ui<0||ai>Yt.length||wi<0||Ii>this.length)throw new RangeError("out of range index");if(wi>=Ii&&ui>=ai)return 0;if(wi>=Ii)return-1;if(ui>=ai)return 1;if(ui>>>=0,ai>>>=0,wi>>>=0,Ii>>>=0,this===Yt)return 0;let Ai=Ii-wi,Oi=ai-ui;const Mn=Math.min(Ai,Oi),Qi=this.slice(wi,Ii),Wi=Yt.slice(ui,ai);for(let wn=0;wn2147483647?ai=2147483647:ai<-2147483648&&(ai=-2147483648),ai=+ai,Pi(ai)&&(ai=Ii?0:Yt.length-1),ai<0&&(ai=Yt.length+ai),ai>=Yt.length){if(Ii)return-1;ai=Yt.length-1}else if(ai<0)if(Ii)ai=0;else return-1;if(typeof ui=="string"&&(ui=Ae.from(ui,wi)),Ae.isBuffer(ui))return ui.length===0?-1:Xt(Yt,ui,ai,wi,Ii);if(typeof ui=="number")return ui=ui&255,typeof vi.prototype.indexOf=="function"?Ii?vi.prototype.indexOf.call(Yt,ui,ai):vi.prototype.lastIndexOf.call(Yt,ui,ai):Xt(Yt,[ui],ai,wi,Ii);throw new TypeError("val must be string, number or Buffer")}function Xt(Yt,ui,ai,wi,Ii){let Ai=1,Oi=Yt.length,Mn=ui.length;if(wi!==void 0&&(wi=String(wi).toLowerCase(),wi==="ucs2"||wi==="ucs-2"||wi==="utf16le"||wi==="utf-16le")){if(Yt.length<2||ui.length<2)return-1;Ai=2,Oi/=2,Mn/=2,ai/=2}function Qi(wn,Gi){return Ai===1?wn[Gi]:wn.readUInt16BE(Gi*Ai)}let Wi;if(Ii){let wn=-1;for(Wi=ai;WiOi&&(ai=Oi-Mn),Wi=ai;Wi>=0;Wi--){let wn=!0;for(let Gi=0;GiIi&&(wi=Ii)):wi=Ii;const Ai=ui.length;wi>Ai/2&&(wi=Ai/2);let Oi;for(Oi=0;Oi>>0,isFinite(ai)?(ai=ai>>>0,wi===void 0&&(wi="utf8")):(wi=ai,ai=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ii=this.length-ui;if((ai===void 0||ai>Ii)&&(ai=Ii),Yt.length>0&&(ai<0||ui<0)||ui>this.length)throw new RangeError("Attempt to write outside buffer bounds");wi||(wi="utf8");let Ai=!1;for(;;)switch(wi){case"hex":return mi(this,Yt,ui,ai);case"utf8":case"utf-8":return Fi(this,Yt,ui,ai);case"ascii":case"latin1":case"binary":return si(this,Yt,ui,ai);case"base64":return hi(this,Yt,ui,ai);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ki(this,Yt,ui,ai);default:if(Ai)throw new TypeError("Unknown encoding: "+wi);wi=(""+wi).toLowerCase(),Ai=!0}},Ae.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Bi(Yt,ui,ai){return ui===0&&ai===Yt.length?ii.fromByteArray(Yt):ii.fromByteArray(Yt.slice(ui,ai))}function gi(Yt,ui,ai){ai=Math.min(Yt.length,ai);const wi=[];let Ii=ui;for(;Ii239?4:Ai>223?3:Ai>191?2:1;if(Ii+Mn<=ai){let Qi,Wi,wn,Gi;switch(Mn){case 1:Ai<128&&(Oi=Ai);break;case 2:Qi=Yt[Ii+1],(Qi&192)===128&&(Gi=(Ai&31)<<6|Qi&63,Gi>127&&(Oi=Gi));break;case 3:Qi=Yt[Ii+1],Wi=Yt[Ii+2],(Qi&192)===128&&(Wi&192)===128&&(Gi=(Ai&15)<<12|(Qi&63)<<6|Wi&63,Gi>2047&&(Gi<55296||Gi>57343)&&(Oi=Gi));break;case 4:Qi=Yt[Ii+1],Wi=Yt[Ii+2],wn=Yt[Ii+3],(Qi&192)===128&&(Wi&192)===128&&(wn&192)===128&&(Gi=(Ai&15)<<18|(Qi&63)<<12|(Wi&63)<<6|wn&63,Gi>65535&&Gi<1114112&&(Oi=Gi))}}Oi===null?(Oi=65533,Mn=1):Oi>65535&&(Oi-=65536,wi.push(Oi>>>10&1023|55296),Oi=56320|Oi&1023),wi.push(Oi),Ii+=Mn}return Ei(wi)}const Ui=4096;function Ei(Yt){const ui=Yt.length;if(ui<=Ui)return String.fromCharCode.apply(String,Yt);let ai="",wi=0;for(;wiwi)&&(ai=wi);let Ii="";for(let Ai=ui;Aiai&&(Yt=ai),ui<0?(ui+=ai,ui<0&&(ui=0)):ui>ai&&(ui=ai),uiai)throw new RangeError("Trying to access beyond buffer length")}Ae.prototype.readUintLE=Ae.prototype.readUIntLE=function(Yt,ui,ai){Yt=Yt>>>0,ui=ui>>>0,ai||an(Yt,ui,this.length);let wi=this[Yt],Ii=1,Ai=0;for(;++Ai>>0,ui=ui>>>0,ai||an(Yt,ui,this.length);let wi=this[Yt+--ui],Ii=1;for(;ui>0&&(Ii*=256);)wi+=this[Yt+--ui]*Ii;return wi},Ae.prototype.readUint8=Ae.prototype.readUInt8=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,1,this.length),this[Yt]},Ae.prototype.readUint16LE=Ae.prototype.readUInt16LE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,2,this.length),this[Yt]|this[Yt+1]<<8},Ae.prototype.readUint16BE=Ae.prototype.readUInt16BE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,2,this.length),this[Yt]<<8|this[Yt+1]},Ae.prototype.readUint32LE=Ae.prototype.readUInt32LE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,4,this.length),(this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16)+this[Yt+3]*16777216},Ae.prototype.readUint32BE=Ae.prototype.readUInt32BE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,4,this.length),this[Yt]*16777216+(this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3])},Ae.prototype.readBigUInt64LE=kn(function(Yt){Yt=Yt>>>0,rn(Yt,"offset");const ui=this[Yt],ai=this[Yt+7];(ui===void 0||ai===void 0)&&qi(Yt,this.length-8);const wi=ui+this[++Yt]*2**8+this[++Yt]*2**16+this[++Yt]*2**24,Ii=this[++Yt]+this[++Yt]*2**8+this[++Yt]*2**16+ai*2**24;return BigInt(wi)+(BigInt(Ii)<>>0,rn(Yt,"offset");const ui=this[Yt],ai=this[Yt+7];(ui===void 0||ai===void 0)&&qi(Yt,this.length-8);const wi=ui*2**24+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt],Ii=this[++Yt]*2**24+this[++Yt]*2**16+this[++Yt]*2**8+ai;return(BigInt(wi)<>>0,ui=ui>>>0,ai||an(Yt,ui,this.length);let wi=this[Yt],Ii=1,Ai=0;for(;++Ai=Ii&&(wi-=Math.pow(2,8*ui)),wi},Ae.prototype.readIntBE=function(Yt,ui,ai){Yt=Yt>>>0,ui=ui>>>0,ai||an(Yt,ui,this.length);let wi=ui,Ii=1,Ai=this[Yt+--wi];for(;wi>0&&(Ii*=256);)Ai+=this[Yt+--wi]*Ii;return Ii*=128,Ai>=Ii&&(Ai-=Math.pow(2,8*ui)),Ai},Ae.prototype.readInt8=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,1,this.length),this[Yt]&128?(255-this[Yt]+1)*-1:this[Yt]},Ae.prototype.readInt16LE=function(Yt,ui){Yt=Yt>>>0,ui||an(Yt,2,this.length);const ai=this[Yt]|this[Yt+1]<<8;return ai&32768?ai|4294901760:ai},Ae.prototype.readInt16BE=function(Yt,ui){Yt=Yt>>>0,ui||an(Yt,2,this.length);const ai=this[Yt+1]|this[Yt]<<8;return ai&32768?ai|4294901760:ai},Ae.prototype.readInt32LE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,4,this.length),this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16|this[Yt+3]<<24},Ae.prototype.readInt32BE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,4,this.length),this[Yt]<<24|this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3]},Ae.prototype.readBigInt64LE=kn(function(Yt){Yt=Yt>>>0,rn(Yt,"offset");const ui=this[Yt],ai=this[Yt+7];(ui===void 0||ai===void 0)&&qi(Yt,this.length-8);const wi=this[Yt+4]+this[Yt+5]*2**8+this[Yt+6]*2**16+(ai<<24);return(BigInt(wi)<>>0,rn(Yt,"offset");const ui=this[Yt],ai=this[Yt+7];(ui===void 0||ai===void 0)&&qi(Yt,this.length-8);const wi=(ui<<24)+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt];return(BigInt(wi)<>>0,ui||an(Yt,4,this.length),ti.read(this,Yt,!0,23,4)},Ae.prototype.readFloatBE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,4,this.length),ti.read(this,Yt,!1,23,4)},Ae.prototype.readDoubleLE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,8,this.length),ti.read(this,Yt,!0,52,8)},Ae.prototype.readDoubleBE=function(Yt,ui){return Yt=Yt>>>0,ui||an(Yt,8,this.length),ti.read(this,Yt,!1,52,8)};function Ci(Yt,ui,ai,wi,Ii,Ai){if(!Ae.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ui>Ii||uiYt.length)throw new RangeError("Index out of range")}Ae.prototype.writeUintLE=Ae.prototype.writeUIntLE=function(Yt,ui,ai,wi){if(Yt=+Yt,ui=ui>>>0,ai=ai>>>0,!wi){const Oi=Math.pow(2,8*ai)-1;Ci(this,Yt,ui,ai,Oi,0)}let Ii=1,Ai=0;for(this[ui]=Yt&255;++Ai>>0,ai=ai>>>0,!wi){const Oi=Math.pow(2,8*ai)-1;Ci(this,Yt,ui,ai,Oi,0)}let Ii=ai-1,Ai=1;for(this[ui+Ii]=Yt&255;--Ii>=0&&(Ai*=256);)this[ui+Ii]=Yt/Ai&255;return ui+ai},Ae.prototype.writeUint8=Ae.prototype.writeUInt8=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,1,255,0),this[ui]=Yt&255,ui+1},Ae.prototype.writeUint16LE=Ae.prototype.writeUInt16LE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,2,65535,0),this[ui]=Yt&255,this[ui+1]=Yt>>>8,ui+2},Ae.prototype.writeUint16BE=Ae.prototype.writeUInt16BE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,2,65535,0),this[ui]=Yt>>>8,this[ui+1]=Yt&255,ui+2},Ae.prototype.writeUint32LE=Ae.prototype.writeUInt32LE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,4,4294967295,0),this[ui+3]=Yt>>>24,this[ui+2]=Yt>>>16,this[ui+1]=Yt>>>8,this[ui]=Yt&255,ui+4},Ae.prototype.writeUint32BE=Ae.prototype.writeUInt32BE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,4,4294967295,0),this[ui]=Yt>>>24,this[ui+1]=Yt>>>16,this[ui+2]=Yt>>>8,this[ui+3]=Yt&255,ui+4};function Ri(Yt,ui,ai,wi,Ii){Ni(ui,wi,Ii,Yt,ai,7);let Ai=Number(ui&BigInt(4294967295));Yt[ai++]=Ai,Ai=Ai>>8,Yt[ai++]=Ai,Ai=Ai>>8,Yt[ai++]=Ai,Ai=Ai>>8,Yt[ai++]=Ai;let Oi=Number(ui>>BigInt(32)&BigInt(4294967295));return Yt[ai++]=Oi,Oi=Oi>>8,Yt[ai++]=Oi,Oi=Oi>>8,Yt[ai++]=Oi,Oi=Oi>>8,Yt[ai++]=Oi,ai}function sn(Yt,ui,ai,wi,Ii){Ni(ui,wi,Ii,Yt,ai,7);let Ai=Number(ui&BigInt(4294967295));Yt[ai+7]=Ai,Ai=Ai>>8,Yt[ai+6]=Ai,Ai=Ai>>8,Yt[ai+5]=Ai,Ai=Ai>>8,Yt[ai+4]=Ai;let Oi=Number(ui>>BigInt(32)&BigInt(4294967295));return Yt[ai+3]=Oi,Oi=Oi>>8,Yt[ai+2]=Oi,Oi=Oi>>8,Yt[ai+1]=Oi,Oi=Oi>>8,Yt[ai]=Oi,ai+8}Ae.prototype.writeBigUInt64LE=kn(function(Yt,ui=0){return Ri(this,Yt,ui,BigInt(0),BigInt("0xffffffffffffffff"))}),Ae.prototype.writeBigUInt64BE=kn(function(Yt,ui=0){return sn(this,Yt,ui,BigInt(0),BigInt("0xffffffffffffffff"))}),Ae.prototype.writeIntLE=function(Yt,ui,ai,wi){if(Yt=+Yt,ui=ui>>>0,!wi){const Mn=Math.pow(2,8*ai-1);Ci(this,Yt,ui,ai,Mn-1,-Mn)}let Ii=0,Ai=1,Oi=0;for(this[ui]=Yt&255;++Ii>0)-Oi&255;return ui+ai},Ae.prototype.writeIntBE=function(Yt,ui,ai,wi){if(Yt=+Yt,ui=ui>>>0,!wi){const Mn=Math.pow(2,8*ai-1);Ci(this,Yt,ui,ai,Mn-1,-Mn)}let Ii=ai-1,Ai=1,Oi=0;for(this[ui+Ii]=Yt&255;--Ii>=0&&(Ai*=256);)Yt<0&&Oi===0&&this[ui+Ii+1]!==0&&(Oi=1),this[ui+Ii]=(Yt/Ai>>0)-Oi&255;return ui+ai},Ae.prototype.writeInt8=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,1,127,-128),Yt<0&&(Yt=255+Yt+1),this[ui]=Yt&255,ui+1},Ae.prototype.writeInt16LE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,2,32767,-32768),this[ui]=Yt&255,this[ui+1]=Yt>>>8,ui+2},Ae.prototype.writeInt16BE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,2,32767,-32768),this[ui]=Yt>>>8,this[ui+1]=Yt&255,ui+2},Ae.prototype.writeInt32LE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,4,2147483647,-2147483648),this[ui]=Yt&255,this[ui+1]=Yt>>>8,this[ui+2]=Yt>>>16,this[ui+3]=Yt>>>24,ui+4},Ae.prototype.writeInt32BE=function(Yt,ui,ai){return Yt=+Yt,ui=ui>>>0,ai||Ci(this,Yt,ui,4,2147483647,-2147483648),Yt<0&&(Yt=4294967295+Yt+1),this[ui]=Yt>>>24,this[ui+1]=Yt>>>16,this[ui+2]=Yt>>>8,this[ui+3]=Yt&255,ui+4},Ae.prototype.writeBigInt64LE=kn(function(Yt,ui=0){return Ri(this,Yt,ui,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Ae.prototype.writeBigInt64BE=kn(function(Yt,ui=0){return sn(this,Yt,ui,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zi(Yt,ui,ai,wi,Ii,Ai){if(ai+wi>Yt.length)throw new RangeError("Index out of range");if(ai<0)throw new RangeError("Index out of range")}function Xi(Yt,ui,ai,wi,Ii){return ui=+ui,ai=ai>>>0,Ii||Zi(Yt,ui,ai,4),ti.write(Yt,ui,ai,wi,23,4),ai+4}Ae.prototype.writeFloatLE=function(Yt,ui,ai){return Xi(this,Yt,ui,!0,ai)},Ae.prototype.writeFloatBE=function(Yt,ui,ai){return Xi(this,Yt,ui,!1,ai)};function xn(Yt,ui,ai,wi,Ii){return ui=+ui,ai=ai>>>0,Ii||Zi(Yt,ui,ai,8),ti.write(Yt,ui,ai,wi,52,8),ai+8}Ae.prototype.writeDoubleLE=function(Yt,ui,ai){return xn(this,Yt,ui,!0,ai)},Ae.prototype.writeDoubleBE=function(Yt,ui,ai){return xn(this,Yt,ui,!1,ai)},Ae.prototype.copy=function(Yt,ui,ai,wi){if(!Ae.isBuffer(Yt))throw new TypeError("argument should be a Buffer");if(ai||(ai=0),!wi&&wi!==0&&(wi=this.length),ui>=Yt.length&&(ui=Yt.length),ui||(ui=0),wi>0&&wi=this.length)throw new RangeError("Index out of range");if(wi<0)throw new RangeError("sourceEnd out of bounds");wi>this.length&&(wi=this.length),Yt.length-ui>>0,ai=ai===void 0?this.length:ai>>>0,Yt||(Yt=0);let Ii;if(typeof Yt=="number")for(Ii=ui;Ii2**32?Ii=Si(String(ai)):typeof ai=="bigint"&&(Ii=String(ai),(ai>BigInt(2)**BigInt(32)||ai<-(BigInt(2)**BigInt(32)))&&(Ii=Si(Ii)),Ii+="n"),wi+=` It must be ${ui}. Received ${Ii}`,wi},RangeError);function Si(Yt){let ui="",ai=Yt.length;const wi=Yt[0]==="-"?1:0;for(;ai>=wi+4;ai-=3)ui=`_${Yt.slice(ai-3,ai)}${ui}`;return`${Yt.slice(0,ai)}${ui}`}function xi(Yt,ui,ai){rn(ui,"offset"),(Yt[ui]===void 0||Yt[ui+ai]===void 0)&&qi(ui,Yt.length-(ai+1))}function Ni(Yt,ui,ai,wi,Ii,Ai){if(Yt>ai||Yt= 0${Oi} and < 2${Oi} ** ${(Ai+1)*8}${Oi}`:Mn=`>= -(2${Oi} ** ${(Ai+1)*8-1}${Oi}) and < 2 ** ${(Ai+1)*8-1}${Oi}`,new ni.ERR_OUT_OF_RANGE("value",Mn,Yt)}xi(wi,Ii,Ai)}function rn(Yt,ui){if(typeof Yt!="number")throw new ni.ERR_INVALID_ARG_TYPE(ui,"number",Yt)}function qi(Yt,ui,ai){throw Math.floor(Yt)!==Yt?(rn(Yt,ai),new ni.ERR_OUT_OF_RANGE("offset","an integer",Yt)):ui<0?new ni.ERR_BUFFER_OUT_OF_BOUNDS:new ni.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ui}`,Yt)}const Ki=/[^+/0-9A-Za-z-_]/g;function ln(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Ki,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function _i(Yt,ui){ui=ui||1/0;let ai;const wi=Yt.length;let Ii=null;const Ai=[];for(let Oi=0;Oi55295&&ai<57344){if(!Ii){if(ai>56319){(ui-=3)>-1&&Ai.push(239,191,189);continue}else if(Oi+1===wi){(ui-=3)>-1&&Ai.push(239,191,189);continue}Ii=ai;continue}if(ai<56320){(ui-=3)>-1&&Ai.push(239,191,189),Ii=ai;continue}ai=(Ii-55296<<10|ai-56320)+65536}else Ii&&(ui-=3)>-1&&Ai.push(239,191,189);if(Ii=null,ai<128){if((ui-=1)<0)break;Ai.push(ai)}else if(ai<2048){if((ui-=2)<0)break;Ai.push(ai>>6|192,ai&63|128)}else if(ai<65536){if((ui-=3)<0)break;Ai.push(ai>>12|224,ai>>6&63|128,ai&63|128)}else if(ai<1114112){if((ui-=4)<0)break;Ai.push(ai>>18|240,ai>>12&63|128,ai>>6&63|128,ai&63|128)}else throw new Error("Invalid code point")}return Ai}function $i(Yt){const ui=[];for(let ai=0;ai>8,Ii=ai%256,Ai.push(Ii),Ai.push(wi);return Ai}function Vi(Yt){return ii.toByteArray(ln(Yt))}function Di(Yt,ui,ai,wi){let Ii;for(Ii=0;Ii=ui.length||Ii>=Yt.length);++Ii)ui[Ii+ai]=Yt[Ii];return Ii}function nn(Yt,ui){return Yt instanceof ui||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===ui.name}function Pi(Yt){return Yt!==Yt}const ji=(function(){const Yt="0123456789abcdef",ui=new Array(256);for(let ai=0;ai<16;++ai){const wi=ai*16;for(let Ii=0;Ii<16;++Ii)ui[wi+Ii]=Yt[ai]+Yt[Ii]}return ui})();function kn(Yt){return typeof BigInt>"u"?Yi:Yt}function Yi(){throw new Error("BigInt not supported")}})(xe);const Gt=xe.Buffer;Me.Blob=xe.Blob,Me.BlobOptions=xe.BlobOptions,Me.Buffer=xe.Buffer,Me.File=xe.File,Me.FileOptions=xe.FileOptions,Me.INSPECT_MAX_BYTES=xe.INSPECT_MAX_BYTES,Me.SlowBuffer=xe.SlowBuffer,Me.TranscodeEncoding=xe.TranscodeEncoding,Me.atob=xe.atob,Me.btoa=xe.btoa,Me.constants=xe.constants,Me.default=Gt,Me.isAscii=xe.isAscii,Me.isUtf8=xe.isUtf8,Me.kMaxLength=xe.kMaxLength,Me.kStringMaxLength=xe.kStringMaxLength,Me.resolveObjectURL=xe.resolveObjectURL,Me.transcode=xe.transcode})(dist)),dist}var hasRequiredSafeBuffer$2;function requireSafeBuffer$2(){return hasRequiredSafeBuffer$2||(hasRequiredSafeBuffer$2=1,(function(Me,xe){var Ke=requireDist(),ze=Ke.Buffer;function We(vt,Je){for(var Ct in vt)Je[Ct]=vt[Ct]}ze.from&&ze.alloc&&ze.allocUnsafe&&ze.allocUnsafeSlow?Me.exports=Ke:(We(Ke,xe),xe.Buffer=De);function De(vt,Je,Ct){return ze(vt,Je,Ct)}De.prototype=Object.create(ze.prototype),We(ze,De),De.from=function(vt,Je,Ct){if(typeof vt=="number")throw new TypeError("Argument must not be a number");return ze(vt,Je,Ct)},De.alloc=function(vt,Je,Ct){if(typeof vt!="number")throw new TypeError("Argument must be a number");var yt=ze(vt);return Je!==void 0?typeof Ct=="string"?yt.fill(Je,Ct):yt.fill(Je):yt.fill(0),yt},De.allocUnsafe=function(vt){if(typeof vt!="number")throw new TypeError("Argument must be a number");return ze(vt)},De.allocUnsafeSlow=function(vt){if(typeof vt!="number")throw new TypeError("Argument must be a number");return Ke.SlowBuffer(vt)}})(safeBuffer$2,safeBuffer$2.exports)),safeBuffer$2.exports}var hasRequiredBrowser$b;function requireBrowser$b(){if(hasRequiredBrowser$b)return browser$b.exports;hasRequiredBrowser$b=1;var Me=65536,xe=4294967295;function Ke(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var ze=requireSafeBuffer$2().Buffer,We=commonjsGlobal.crypto||commonjsGlobal.msCrypto;We&&We.getRandomValues?browser$b.exports=De:browser$b.exports=Ke;function De(vt,Je){if(vt>xe)throw new RangeError("requested too many random bytes");var Ct=ze.allocUnsafe(vt);if(vt>0)if(vt>Me)for(var yt=0;yt0&&(pi=di[0]),pi instanceof Error)throw pi;var Mi=new Error("Unhandled error."+(pi?" ("+pi.message+")":""));throw Mi.context=pi,Mi}var j=bi[ti];if(j===void 0)return!1;if(typeof j=="function")xe(j,this,di);else for(var Ae=j.length,He=Pt(j,Ae),ci=0;ci0&&Mi.length>bi&&!Mi.warned){Mi.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+Mi.length+" "+String(di)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=ti,j.type=di,j.count=Mi.length,ze(j)}return ti}De.prototype.addListener=function(ti,di){return yt(this,ti,di,!1)},De.prototype.on=De.prototype.addListener,De.prototype.prependListener=function(ti,di){return yt(this,ti,di,!0)};function Ft(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $t(ti,di,ci){var vi={fired:!1,wrapFn:void 0,target:ti,type:di,listener:ci},bi=Ft.bind(vi);return bi.listener=ci,vi.wrapFn=bi,bi}De.prototype.once=function(ti,di){return Je(di),this.on(ti,$t(this,ti,di)),this},De.prototype.prependOnceListener=function(ti,di){return Je(di),this.prependListener(ti,$t(this,ti,di)),this},De.prototype.removeListener=function(ti,di){var ci,vi,bi,pi,Mi;if(Je(di),vi=this._events,vi===void 0)return this;if(ci=vi[ti],ci===void 0)return this;if(ci===di||ci.listener===di)--this._eventsCount===0?this._events=Object.create(null):(delete vi[ti],vi.removeListener&&this.emit("removeListener",ti,ci.listener||di));else if(typeof ci!="function"){for(bi=-1,pi=ci.length-1;pi>=0;pi--)if(ci[pi]===di||ci[pi].listener===di){Mi=ci[pi].listener,bi=pi;break}if(bi<0)return this;bi===0?ci.shift():Nt(ci,bi),ci.length===1&&(vi[ti]=ci[0]),vi.removeListener!==void 0&&this.emit("removeListener",ti,Mi||di)}return this},De.prototype.off=De.prototype.removeListener,De.prototype.removeAllListeners=function(ti){var di,ci,vi;if(ci=this._events,ci===void 0)return this;if(ci.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ci[ti]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ci[ti]),this;if(arguments.length===0){var bi=Object.keys(ci),pi;for(vi=0;vi=0;vi--)this.removeListener(ti,di[vi]);return this};function Rt(ti,di,ci){var vi=ti._events;if(vi===void 0)return[];var bi=vi[di];return bi===void 0?[]:typeof bi=="function"?ci?[bi.listener||bi]:[bi]:ci?zt(bi):Pt(bi,bi.length)}De.prototype.listeners=function(ti){return Rt(this,ti,!0)},De.prototype.rawListeners=function(ti){return Rt(this,ti,!1)},De.listenerCount=function(ti,di){return typeof ti.listenerCount=="function"?ti.listenerCount(di):qt.call(ti,di)},De.prototype.listenerCount=qt;function qt(ti){var di=this._events;if(di!==void 0){var ci=di[ti];if(typeof ci=="function")return 1;if(ci!==void 0)return ci.length}return 0}De.prototype.eventNames=function(){return this._eventsCount>0?Ke(this._events):[]};function Pt(ti,di){for(var ci=new Array(di),vi=0;vi"u"||!vi?Me:vi(Uint8Array),Ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":ci&&vi?vi([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ke,"%eval%":eval,"%EvalError%":ze,"%Float16Array%":typeof Float16Array>"u"?Me:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":zt,"%GeneratorFunction%":Ae,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ci&&vi?vi(vi([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ci||!vi?Me:vi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":xe,"%Object.getOwnPropertyDescriptor%":Ut,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":We,"%ReferenceError%":De,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ci||!vi?Me:vi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ci&&vi?vi(""[Symbol.iterator]()):Me,"%Symbol%":ci?Symbol:Me,"%SyntaxError%":vt,"%ThrowTypeError%":di,"%TypedArray%":He,"%TypeError%":Je,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":Ct,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":Mi,"%Object.defineProperty%":ii,"%Object.getPrototypeOf%":bi,"%Math.abs%":yt,"%Math.floor%":Ft,"%Math.max%":$t,"%Math.min%":Rt,"%Math.pow%":qt,"%Math.round%":Pt,"%Math.sign%":Nt,"%Reflect.getPrototypeOf%":pi};if(vi)try{null.error}catch(mi){var Ge=vi(vi(mi));Ue["%Error.prototype%"]=Ge}var _t=function mi(Fi){var si;if(Fi==="%AsyncFunction%")si=Gt("async function () {}");else if(Fi==="%GeneratorFunction%")si=Gt("function* () {}");else if(Fi==="%AsyncGeneratorFunction%")si=Gt("async function* () {}");else if(Fi==="%AsyncGenerator%"){var hi=mi("%AsyncGeneratorFunction%");hi&&(si=hi.prototype)}else if(Fi==="%AsyncIteratorPrototype%"){var ki=mi("%AsyncGenerator%");ki&&vi&&(si=vi(ki.prototype))}return Ue[Fi]=si,si},St={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ye=requireFunctionBind(),ke=requireHasown(),Xe=Ye.call(j,Array.prototype.concat),Vt=Ye.call(Mi,Array.prototype.splice),Jt=Ye.call(j,String.prototype.replace),ei=Ye.call(j,String.prototype.slice),oi=Ye.call(j,RegExp.prototype.exec),li=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fi=/\\(\\)?/g,ri=function(mi){var Fi=ei(mi,0,1),si=ei(mi,-1);if(Fi==="%"&&si!=="%")throw new vt("invalid intrinsic syntax, expected closing `%`");if(si==="%"&&Fi!=="%")throw new vt("invalid intrinsic syntax, expected opening `%`");var hi=[];return Jt(mi,li,function(ki,Bi,gi,Ui){hi[hi.length]=gi?Jt(Ui,fi,"$1"):Bi||ki}),hi},Xt=function(mi,Fi){var si=mi,hi;if(ke(St,si)&&(hi=St[si],si="%"+hi[0]+"%"),ke(Ue,si)){var ki=Ue[si];if(ki===Ae&&(ki=_t(si)),typeof ki>"u"&&!Fi)throw new Je("intrinsic "+mi+" exists, but is not available. Please file an issue!");return{alias:hi,name:si,value:ki}}throw new vt("intrinsic "+mi+" does not exist!")};return getIntrinsic=function(mi,Fi){if(typeof mi!="string"||mi.length===0)throw new Je("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Fi!="boolean")throw new Je('"allowMissing" argument must be a boolean');if(oi(/^%?[^%]*%?$/,mi)===null)throw new vt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var si=ri(mi),hi=si.length>0?si[0]:"",ki=Xt("%"+hi+"%",Fi),Bi=ki.name,gi=ki.value,Ui=!1,Ei=ki.alias;Ei&&(hi=Ei[0],Vt(si,Xe([0,1],Ei)));for(var Li=1,Ti=!0;Li=si.length){var Ci=Ut(gi,Hi);Ti=!!Ci,Ti&&"get"in Ci&&!("originalValue"in Ci.get)?gi=Ci.get:gi=gi[Hi]}else Ti=ke(gi,Hi),gi=gi[Hi];Ti&&!Ui&&(Ue[Bi]=gi)}}return gi},getIntrinsic}var callBound,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var Me=requireGetIntrinsic(),xe=requireCallBindApplyHelpers(),Ke=xe([Me("%String.prototype.indexOf%")]);return callBound=function(ze,We){var De=Me(ze,!!We);return typeof De=="function"&&Ke(ze,".prototype.")>-1?xe([De]):De},callBound}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var Me=requireShams()(),xe=requireCallBound(),Ke=xe("Object.prototype.toString"),ze=function(vt){return Me&&vt&&typeof vt=="object"&&Symbol.toStringTag in vt?!1:Ke(vt)==="[object Arguments]"},We=function(vt){return ze(vt)?!0:vt!==null&&typeof vt=="object"&&"length"in vt&&typeof vt.length=="number"&&vt.length>=0&&Ke(vt)!=="[object Array]"&&"callee"in vt&&Ke(vt.callee)==="[object Function]"},De=(function(){return ze(arguments)})();return ze.isLegacyArguments=We,isArguments=De?ze:We,isArguments}var isRegex,hasRequiredIsRegex;function requireIsRegex(){if(hasRequiredIsRegex)return isRegex;hasRequiredIsRegex=1;var Me=requireCallBound(),xe=requireShams()(),Ke=requireHasown(),ze=requireGopd(),We;if(xe){var De=Me("RegExp.prototype.exec"),vt={},Je=function(){throw vt},Ct={toString:Je,valueOf:Je};typeof Symbol.toPrimitive=="symbol"&&(Ct[Symbol.toPrimitive]=Je),We=function($t){if(!$t||typeof $t!="object")return!1;var Rt=ze($t,"lastIndex"),qt=Rt&&Ke(Rt,"value");if(!qt)return!1;try{De($t,Ct)}catch(Pt){return Pt===vt}}}else{var yt=Me("Object.prototype.toString"),Ft="[object RegExp]";We=function($t){return!$t||typeof $t!="object"&&typeof $t!="function"?!1:yt($t)===Ft}}return isRegex=We,isRegex}var safeRegexTest,hasRequiredSafeRegexTest;function requireSafeRegexTest(){if(hasRequiredSafeRegexTest)return safeRegexTest;hasRequiredSafeRegexTest=1;var Me=requireCallBound(),xe=requireIsRegex(),Ke=Me("RegExp.prototype.exec"),ze=requireType();return safeRegexTest=function(We){if(!xe(We))throw new ze("`regex` must be a RegExp");return function(De){return Ke(We,De)!==null}},safeRegexTest}var generatorFunction,hasRequiredGeneratorFunction;function requireGeneratorFunction(){if(hasRequiredGeneratorFunction)return generatorFunction;hasRequiredGeneratorFunction=1;const Me=function*(){}.constructor;return generatorFunction=()=>Me,generatorFunction}var isGeneratorFunction,hasRequiredIsGeneratorFunction;function requireIsGeneratorFunction(){if(hasRequiredIsGeneratorFunction)return isGeneratorFunction;hasRequiredIsGeneratorFunction=1;var Me=requireCallBound(),xe=requireSafeRegexTest(),Ke=xe(/^\s*(?:function)?\*/),ze=requireShams()(),We=requireGetProto(),De=Me("Object.prototype.toString"),vt=Me("Function.prototype.toString"),Je=requireGeneratorFunction();return isGeneratorFunction=function(Ct){if(typeof Ct!="function")return!1;if(Ke(vt(Ct)))return!0;if(!ze){var yt=De(Ct);return yt==="[object GeneratorFunction]"}if(!We)return!1;var Ft=Je();return Ft&&We(Ct)===Ft.prototype},isGeneratorFunction}var isCallable,hasRequiredIsCallable;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var Me=Function.prototype.toString,xe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Ke,ze;if(typeof xe=="function"&&typeof Object.defineProperty=="function")try{Ke=Object.defineProperty({},"length",{get:function(){throw ze}}),ze={},xe(function(){throw 42},null,Ke)}catch(Ut){Ut!==ze&&(xe=null)}else xe=null;var We=/^\s*class\b/,De=function(Ut){try{var ii=Me.call(Ut);return We.test(ii)}catch{return!1}},vt=function(Ut){try{return De(Ut)?!1:(Me.call(Ut),!0)}catch{return!1}},Je=Object.prototype.toString,Ct="[object Object]",yt="[object Function]",Ft="[object GeneratorFunction]",$t="[object HTMLAllCollection]",Rt="[object HTML document.all class]",qt="[object HTMLCollection]",Pt=typeof Symbol=="function"&&!!Symbol.toStringTag,Nt=!(0 in[,]),zt=function(){return!1};if(typeof document=="object"){var Gt=document.all;Je.call(Gt)===Je.call(document.all)&&(zt=function(Ut){if((Nt||!Ut)&&(typeof Ut>"u"||typeof Ut=="object"))try{var ii=Je.call(Ut);return(ii===$t||ii===Rt||ii===qt||ii===Ct)&&Ut("")==null}catch{}return!1})}return isCallable=xe?function(Ut){if(zt(Ut))return!0;if(!Ut||typeof Ut!="function"&&typeof Ut!="object")return!1;try{xe(Ut,null,Ke)}catch(ii){if(ii!==ze)return!1}return!De(Ut)&&vt(Ut)}:function(Ut){if(zt(Ut))return!0;if(!Ut||typeof Ut!="function"&&typeof Ut!="object")return!1;if(Pt)return vt(Ut);if(De(Ut))return!1;var ii=Je.call(Ut);return ii!==yt&&ii!==Ft&&!/^\[object HTML/.test(ii)?!1:vt(Ut)},isCallable}var forEach,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach;hasRequiredForEach=1;var Me=requireIsCallable(),xe=Object.prototype.toString,Ke=Object.prototype.hasOwnProperty,ze=function(Je,Ct,yt){for(var Ft=0,$t=Je.length;Ft<$t;Ft++)Ke.call(Je,Ft)&&(yt==null?Ct(Je[Ft],Ft,Je):Ct.call(yt,Je[Ft],Ft,Je))},We=function(Je,Ct,yt){for(var Ft=0,$t=Je.length;Ft<$t;Ft++)yt==null?Ct(Je.charAt(Ft),Ft,Je):Ct.call(yt,Je.charAt(Ft),Ft,Je)},De=function(Je,Ct,yt){for(var Ft in Je)Ke.call(Je,Ft)&&(yt==null?Ct(Je[Ft],Ft,Je):Ct.call(yt,Je[Ft],Ft,Je))};function vt(Je){return xe.call(Je)==="[object Array]"}return forEach=function(Je,Ct,yt){if(!Me(Ct))throw new TypeError("iterator must be a function");var Ft;arguments.length>=3&&(Ft=yt),vt(Je)?ze(Je,Ct,Ft):typeof Je=="string"?We(Je,Ct,Ft):De(Je,Ct,Ft)},forEach}var possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames;function requirePossibleTypedArrayNames(){return hasRequiredPossibleTypedArrayNames||(hasRequiredPossibleTypedArrayNames=1,possibleTypedArrayNames=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),possibleTypedArrayNames}var availableTypedArrays,hasRequiredAvailableTypedArrays;function requireAvailableTypedArrays(){if(hasRequiredAvailableTypedArrays)return availableTypedArrays;hasRequiredAvailableTypedArrays=1;var Me=requirePossibleTypedArrayNames(),xe=typeof globalThis>"u"?commonjsGlobal:globalThis;return availableTypedArrays=function(){for(var Ke=[],ze=0;ze3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ke("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ke("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ke("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ke("`loose`, if provided, must be a boolean");var Je=arguments.length>3?arguments[3]:null,Ct=arguments.length>4?arguments[4]:null,yt=arguments.length>5?arguments[5]:null,Ft=arguments.length>6?arguments[6]:!1,$t=!!ze&&ze(We,De);if(Me)Me(We,De,{configurable:yt===null&&$t?$t.configurable:!yt,enumerable:Je===null&&$t?$t.enumerable:!Je,value:vt,writable:Ct===null&&$t?$t.writable:!Ct});else if(Ft||!Je&&!Ct&&!yt)We[De]=vt;else throw new xe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},defineDataProperty}var hasPropertyDescriptors_1,hasRequiredHasPropertyDescriptors;function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var Me=requireEsDefineProperty(),xe=function(){return!!Me};return xe.hasArrayLengthDefineBug=function(){if(!Me)return null;try{return Me([],"length",{value:1}).length!==1}catch{return!0}},hasPropertyDescriptors_1=xe,hasPropertyDescriptors_1}var setFunctionLength,hasRequiredSetFunctionLength;function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var Me=requireGetIntrinsic(),xe=requireDefineDataProperty(),Ke=requireHasPropertyDescriptors()(),ze=requireGopd(),We=requireType(),De=Me("%Math.floor%");return setFunctionLength=function(vt,Je){if(typeof vt!="function")throw new We("`fn` is not a function");if(typeof Je!="number"||Je<0||Je>4294967295||De(Je)!==Je)throw new We("`length` must be a positive 32-bit integer");var Ct=arguments.length>2&&!!arguments[2],yt=!0,Ft=!0;if("length"in vt&&ze){var $t=ze(vt,"length");$t&&!$t.configurable&&(yt=!1),$t&&!$t.writable&&(Ft=!1)}return(yt||Ft||!Ct)&&(Ke?xe(vt,"length",Je,!0,!0):xe(vt,"length",Je)),vt},setFunctionLength}var applyBind,hasRequiredApplyBind;function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var Me=requireFunctionBind(),xe=requireFunctionApply(),Ke=requireActualApply();return applyBind=function(){return Ke(Me,xe,arguments)},applyBind}var hasRequiredCallBind;function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,(function(Me){var xe=requireSetFunctionLength(),Ke=requireEsDefineProperty(),ze=requireCallBindApplyHelpers(),We=requireApplyBind();Me.exports=function(De){var vt=ze(arguments),Je=De.length-(arguments.length-1);return xe(vt,1+(Je>0?Je:0),!0)},Ke?Ke(Me.exports,"apply",{value:We}):Me.exports.apply=We})(callBind)),callBind.exports}var whichTypedArray,hasRequiredWhichTypedArray;function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var Me=requireForEach(),xe=requireAvailableTypedArrays(),Ke=requireCallBind(),ze=requireCallBound(),We=requireGopd(),De=requireGetProto(),vt=ze("Object.prototype.toString"),Je=requireShams()(),Ct=typeof globalThis>"u"?commonjsGlobal:globalThis,yt=xe(),Ft=ze("String.prototype.slice"),$t=ze("Array.prototype.indexOf",!0)||function(Nt,zt){for(var Gt=0;Gt-1?zt:zt!=="Object"?!1:Pt(Nt)}return We?qt(Nt):null},whichTypedArray}var isTypedArray,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray;hasRequiredIsTypedArray=1;var Me=requireWhichTypedArray();return isTypedArray=function(xe){return!!Me(xe)},isTypedArray}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,(function(Me){var xe=requireIsArguments(),Ke=requireIsGeneratorFunction(),ze=requireWhichTypedArray(),We=requireIsTypedArray();function De(Ti){return Ti.call.bind(Ti)}var vt=typeof BigInt<"u",Je=typeof Symbol<"u",Ct=De(Object.prototype.toString),yt=De(Number.prototype.valueOf),Ft=De(String.prototype.valueOf),$t=De(Boolean.prototype.valueOf);if(vt)var Rt=De(BigInt.prototype.valueOf);if(Je)var qt=De(Symbol.prototype.valueOf);function Pt(Ti,Hi){if(typeof Ti!="object")return!1;try{return Hi(Ti),!0}catch{return!1}}Me.isArgumentsObject=xe,Me.isGeneratorFunction=Ke,Me.isTypedArray=We;function Nt(Ti){return typeof Promise<"u"&&Ti instanceof Promise||Ti!==null&&typeof Ti=="object"&&typeof Ti.then=="function"&&typeof Ti.catch=="function"}Me.isPromise=Nt;function zt(Ti){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ti):We(Ti)||ei(Ti)}Me.isArrayBufferView=zt;function Gt(Ti){return ze(Ti)==="Uint8Array"}Me.isUint8Array=Gt;function Ut(Ti){return ze(Ti)==="Uint8ClampedArray"}Me.isUint8ClampedArray=Ut;function ii(Ti){return ze(Ti)==="Uint16Array"}Me.isUint16Array=ii;function ti(Ti){return ze(Ti)==="Uint32Array"}Me.isUint32Array=ti;function di(Ti){return ze(Ti)==="Int8Array"}Me.isInt8Array=di;function ci(Ti){return ze(Ti)==="Int16Array"}Me.isInt16Array=ci;function vi(Ti){return ze(Ti)==="Int32Array"}Me.isInt32Array=vi;function bi(Ti){return ze(Ti)==="Float32Array"}Me.isFloat32Array=bi;function pi(Ti){return ze(Ti)==="Float64Array"}Me.isFloat64Array=pi;function Mi(Ti){return ze(Ti)==="BigInt64Array"}Me.isBigInt64Array=Mi;function j(Ti){return ze(Ti)==="BigUint64Array"}Me.isBigUint64Array=j;function Ae(Ti){return Ct(Ti)==="[object Map]"}Ae.working=typeof Map<"u"&&Ae(new Map);function He(Ti){return typeof Map>"u"?!1:Ae.working?Ae(Ti):Ti instanceof Map}Me.isMap=He;function Ue(Ti){return Ct(Ti)==="[object Set]"}Ue.working=typeof Set<"u"&&Ue(new Set);function Ge(Ti){return typeof Set>"u"?!1:Ue.working?Ue(Ti):Ti instanceof Set}Me.isSet=Ge;function _t(Ti){return Ct(Ti)==="[object WeakMap]"}_t.working=typeof WeakMap<"u"&&_t(new WeakMap);function St(Ti){return typeof WeakMap>"u"?!1:_t.working?_t(Ti):Ti instanceof WeakMap}Me.isWeakMap=St;function Ye(Ti){return Ct(Ti)==="[object WeakSet]"}Ye.working=typeof WeakSet<"u"&&Ye(new WeakSet);function ke(Ti){return Ye(Ti)}Me.isWeakSet=ke;function Xe(Ti){return Ct(Ti)==="[object ArrayBuffer]"}Xe.working=typeof ArrayBuffer<"u"&&Xe(new ArrayBuffer);function Vt(Ti){return typeof ArrayBuffer>"u"?!1:Xe.working?Xe(Ti):Ti instanceof ArrayBuffer}Me.isArrayBuffer=Vt;function Jt(Ti){return Ct(Ti)==="[object DataView]"}Jt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Jt(new DataView(new ArrayBuffer(1),0,1));function ei(Ti){return typeof DataView>"u"?!1:Jt.working?Jt(Ti):Ti instanceof DataView}Me.isDataView=ei;var oi=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function li(Ti){return Ct(Ti)==="[object SharedArrayBuffer]"}function fi(Ti){return typeof oi>"u"?!1:(typeof li.working>"u"&&(li.working=li(new oi)),li.working?li(Ti):Ti instanceof oi)}Me.isSharedArrayBuffer=fi;function ri(Ti){return Ct(Ti)==="[object AsyncFunction]"}Me.isAsyncFunction=ri;function Xt(Ti){return Ct(Ti)==="[object Map Iterator]"}Me.isMapIterator=Xt;function mi(Ti){return Ct(Ti)==="[object Set Iterator]"}Me.isSetIterator=mi;function Fi(Ti){return Ct(Ti)==="[object Generator]"}Me.isGeneratorObject=Fi;function si(Ti){return Ct(Ti)==="[object WebAssembly.Module]"}Me.isWebAssemblyCompiledModule=si;function hi(Ti){return Pt(Ti,yt)}Me.isNumberObject=hi;function ki(Ti){return Pt(Ti,Ft)}Me.isStringObject=ki;function Bi(Ti){return Pt(Ti,$t)}Me.isBooleanObject=Bi;function gi(Ti){return vt&&Pt(Ti,Rt)}Me.isBigIntObject=gi;function Ui(Ti){return Je&&Pt(Ti,qt)}Me.isSymbolObject=Ui;function Ei(Ti){return hi(Ti)||ki(Ti)||Bi(Ti)||gi(Ti)||Ui(Ti)}Me.isBoxedPrimitive=Ei;function Li(Ti){return typeof Uint8Array<"u"&&(Vt(Ti)||fi(Ti))}Me.isAnyArrayBuffer=Li,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ti){Object.defineProperty(Me,Ti,{enumerable:!1,value:function(){throw new Error(Ti+" is not supported in userland")}})})})(types)),types}var isBufferBrowser,hasRequiredIsBufferBrowser;function requireIsBufferBrowser(){return hasRequiredIsBufferBrowser||(hasRequiredIsBufferBrowser=1,isBufferBrowser=function(Me){return Me&&typeof Me=="object"&&typeof Me.copy=="function"&&typeof Me.fill=="function"&&typeof Me.readUInt8=="function"}),isBufferBrowser}var hasRequiredUtil$1;function requireUtil$1(){return hasRequiredUtil$1||(hasRequiredUtil$1=1,(function(Me){var xe={},Ke=Object.getOwnPropertyDescriptors||function(ei){for(var oi=Object.keys(ei),li={},fi=0;fi=ri)return si;switch(si){case"%s":return String(fi[li++]);case"%d":return Number(fi[li++]);case"%j":try{return JSON.stringify(fi[li++])}catch{return"[Circular]"}default:return si}}),mi=fi[li];li"u")return function(){return Me.deprecate(ei,oi).apply(this,arguments)};var li=!1;function fi(){if(!li){if(process$1.throwDeprecation)throw new Error(oi);process$1.traceDeprecation?console.trace(oi):console.error(oi),li=!0}return ei.apply(this,arguments)}return fi};var We={},De=/^$/;if(xe.NODE_DEBUG){var vt=xe.NODE_DEBUG;vt=vt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),De=new RegExp("^"+vt+"$","i")}Me.debuglog=function(ei){if(ei=ei.toUpperCase(),!We[ei])if(De.test(ei)){var oi=process$1.pid;We[ei]=function(){var li=Me.format.apply(Me,arguments);console.error("%s %d: %s",ei,oi,li)}}else We[ei]=function(){};return We[ei]};function Je(ei,oi){var li={seen:[],stylize:yt};return arguments.length>=3&&(li.depth=arguments[2]),arguments.length>=4&&(li.colors=arguments[3]),Ut(oi)?li.showHidden=oi:oi&&Me._extend(li,oi),bi(li.showHidden)&&(li.showHidden=!1),bi(li.depth)&&(li.depth=2),bi(li.colors)&&(li.colors=!1),bi(li.customInspect)&&(li.customInspect=!0),li.colors&&(li.stylize=Ct),$t(li,ei,li.depth)}Me.inspect=Je,Je.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Je.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Ct(ei,oi){var li=Je.styles[oi];return li?"\x1B["+Je.colors[li][0]+"m"+ei+"\x1B["+Je.colors[li][1]+"m":ei}function yt(ei,oi){return ei}function Ft(ei){var oi={};return ei.forEach(function(li,fi){oi[li]=!0}),oi}function $t(ei,oi,li){if(ei.customInspect&&oi&&He(oi.inspect)&&oi.inspect!==Me.inspect&&!(oi.constructor&&oi.constructor.prototype===oi)){var fi=oi.inspect(li,ei);return ci(fi)||(fi=$t(ei,fi,li)),fi}var ri=Rt(ei,oi);if(ri)return ri;var Xt=Object.keys(oi),mi=Ft(Xt);if(ei.showHidden&&(Xt=Object.getOwnPropertyNames(oi)),Ae(oi)&&(Xt.indexOf("message")>=0||Xt.indexOf("description")>=0))return qt(oi);if(Xt.length===0){if(He(oi)){var Fi=oi.name?": "+oi.name:"";return ei.stylize("[Function"+Fi+"]","special")}if(pi(oi))return ei.stylize(RegExp.prototype.toString.call(oi),"regexp");if(j(oi))return ei.stylize(Date.prototype.toString.call(oi),"date");if(Ae(oi))return qt(oi)}var si="",hi=!1,ki=["{","}"];if(Gt(oi)&&(hi=!0,ki=["[","]"]),He(oi)){var Bi=oi.name?": "+oi.name:"";si=" [Function"+Bi+"]"}if(pi(oi)&&(si=" "+RegExp.prototype.toString.call(oi)),j(oi)&&(si=" "+Date.prototype.toUTCString.call(oi)),Ae(oi)&&(si=" "+qt(oi)),Xt.length===0&&(!hi||oi.length==0))return ki[0]+si+ki[1];if(li<0)return pi(oi)?ei.stylize(RegExp.prototype.toString.call(oi),"regexp"):ei.stylize("[Object]","special");ei.seen.push(oi);var gi;return hi?gi=Pt(ei,oi,li,mi,Xt):gi=Xt.map(function(Ui){return Nt(ei,oi,li,mi,Ui,hi)}),ei.seen.pop(),zt(gi,si,ki)}function Rt(ei,oi){if(bi(oi))return ei.stylize("undefined","undefined");if(ci(oi)){var li="'"+JSON.stringify(oi).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ei.stylize(li,"string")}if(di(oi))return ei.stylize(""+oi,"number");if(Ut(oi))return ei.stylize(""+oi,"boolean");if(ii(oi))return ei.stylize("null","null")}function qt(ei){return"["+Error.prototype.toString.call(ei)+"]"}function Pt(ei,oi,li,fi,ri){for(var Xt=[],mi=0,Fi=oi.length;mi-1&&(Xt?Fi=Fi.split(` -`).map(function(hi){return" "+hi}).join(` -`).slice(2):Fi=` -`+Fi.split(` -`).map(function(hi){return" "+hi}).join(` -`))):Fi=ei.stylize("[Circular]","special")),bi(mi)){if(Xt&&ri.match(/^\d+$/))return Fi;mi=JSON.stringify(""+ri),mi.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(mi=mi.slice(1,-1),mi=ei.stylize(mi,"name")):(mi=mi.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),mi=ei.stylize(mi,"string"))}return mi+": "+Fi}function zt(ei,oi,li){var fi=ei.reduce(function(ri,Xt){return Xt.indexOf(` -`)>=0,ri+Xt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return fi>60?li[0]+(oi===""?"":oi+` - `)+" "+ei.join(`, - `)+" "+li[1]:li[0]+oi+" "+ei.join(", ")+" "+li[1]}Me.types=requireTypes();function Gt(ei){return Array.isArray(ei)}Me.isArray=Gt;function Ut(ei){return typeof ei=="boolean"}Me.isBoolean=Ut;function ii(ei){return ei===null}Me.isNull=ii;function ti(ei){return ei==null}Me.isNullOrUndefined=ti;function di(ei){return typeof ei=="number"}Me.isNumber=di;function ci(ei){return typeof ei=="string"}Me.isString=ci;function vi(ei){return typeof ei=="symbol"}Me.isSymbol=vi;function bi(ei){return ei===void 0}Me.isUndefined=bi;function pi(ei){return Mi(ei)&&Ge(ei)==="[object RegExp]"}Me.isRegExp=pi,Me.types.isRegExp=pi;function Mi(ei){return typeof ei=="object"&&ei!==null}Me.isObject=Mi;function j(ei){return Mi(ei)&&Ge(ei)==="[object Date]"}Me.isDate=j,Me.types.isDate=j;function Ae(ei){return Mi(ei)&&(Ge(ei)==="[object Error]"||ei instanceof Error)}Me.isError=Ae,Me.types.isNativeError=Ae;function He(ei){return typeof ei=="function"}Me.isFunction=He;function Ue(ei){return ei===null||typeof ei=="boolean"||typeof ei=="number"||typeof ei=="string"||typeof ei=="symbol"||typeof ei>"u"}Me.isPrimitive=Ue,Me.isBuffer=requireIsBufferBrowser();function Ge(ei){return Object.prototype.toString.call(ei)}function _t(ei){return ei<10?"0"+ei.toString(10):ei.toString(10)}var St=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ye(){var ei=new Date,oi=[_t(ei.getHours()),_t(ei.getMinutes()),_t(ei.getSeconds())].join(":");return[ei.getDate(),St[ei.getMonth()],oi].join(" ")}Me.log=function(){console.log("%s - %s",Ye(),Me.format.apply(Me,arguments))},Me.inherits=requireInherits_browser(),Me._extend=function(ei,oi){if(!oi||!Mi(oi))return ei;for(var li=Object.keys(oi),fi=li.length;fi--;)ei[li[fi]]=oi[li[fi]];return ei};function ke(ei,oi){return Object.prototype.hasOwnProperty.call(ei,oi)}var Xe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Me.promisify=function(ei){if(typeof ei!="function")throw new TypeError('The "original" argument must be of type Function');if(Xe&&ei[Xe]){var oi=ei[Xe];if(typeof oi!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(oi,Xe,{value:oi,enumerable:!1,writable:!1,configurable:!0}),oi}function oi(){for(var li,fi,ri=new Promise(function(Fi,si){li=Fi,fi=si}),Xt=[],mi=0;mi0?this.tail.next=zt:this.head=zt,this.tail=zt,++this.length}},{key:"unshift",value:function(Nt){var zt={data:Nt,next:this.head};this.length===0&&(this.tail=zt),this.head=zt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Nt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Nt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Nt){if(this.length===0)return"";for(var zt=this.head,Gt=""+zt.data;zt=zt.next;)Gt+=Nt+zt.data;return Gt}},{key:"concat",value:function(Nt){if(this.length===0)return yt.alloc(0);for(var zt=yt.allocUnsafe(Nt>>>0),Gt=this.head,Ut=0;Gt;)qt(Gt.data,zt,Ut),Ut+=Gt.data.length,Gt=Gt.next;return zt}},{key:"consume",value:function(Nt,zt){var Gt;return Ntii.length?ii.length:Nt;if(ti===ii.length?Ut+=ii:Ut+=ii.slice(0,Nt),Nt-=ti,Nt===0){ti===ii.length?(++Gt,zt.next?this.head=zt.next:this.head=this.tail=null):(this.head=zt,zt.data=ii.slice(ti));break}++Gt}return this.length-=Gt,Ut}},{key:"_getBuffer",value:function(Nt){var zt=yt.allocUnsafe(Nt),Gt=this.head,Ut=1;for(Gt.data.copy(zt),Nt-=Gt.data.length;Gt=Gt.next;){var ii=Gt.data,ti=Nt>ii.length?ii.length:Nt;if(ii.copy(zt,zt.length-Nt,0,ti),Nt-=ti,Nt===0){ti===ii.length?(++Ut,Gt.next?this.head=Gt.next:this.head=this.tail=null):(this.head=Gt,Gt.data=ii.slice(ti));break}++Ut}return this.length-=Ut,zt}},{key:Rt,value:function(Nt,zt){return $t(this,xe(xe({},zt),{},{depth:0,customInspect:!1}))}}]),Pt})(),buffer_list}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;function Me(vt,Je){var Ct=this,yt=this._readableState&&this._readableState.destroyed,Ft=this._writableState&&this._writableState.destroyed;return yt||Ft?(Je?Je(vt):vt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(We,this,vt)):process$1.nextTick(We,this,vt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(vt||null,function($t){!Je&&$t?Ct._writableState?Ct._writableState.errorEmitted?process$1.nextTick(Ke,Ct):(Ct._writableState.errorEmitted=!0,process$1.nextTick(xe,Ct,$t)):process$1.nextTick(xe,Ct,$t):Je?(process$1.nextTick(Ke,Ct),Je($t)):process$1.nextTick(Ke,Ct)}),this)}function xe(vt,Je){We(vt,Je),Ke(vt)}function Ke(vt){vt._writableState&&!vt._writableState.emitClose||vt._readableState&&!vt._readableState.emitClose||vt.emit("close")}function ze(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function We(vt,Je){vt.emit("error",Je)}function De(vt,Je){var Ct=vt._readableState,yt=vt._writableState;Ct&&Ct.autoDestroy||yt&&yt.autoDestroy?vt.destroy(Je):vt.emit("error",Je)}return destroy_1$1={destroy:Me,undestroy:ze,errorOrDestroy:De},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function Me(Je,Ct){Je.prototype=Object.create(Ct.prototype),Je.prototype.constructor=Je,Je.__proto__=Ct}var xe={};function Ke(Je,Ct,yt){yt||(yt=Error);function Ft(Rt,qt,Pt){return typeof Ct=="string"?Ct:Ct(Rt,qt,Pt)}var $t=(function(Rt){Me(qt,Rt);function qt(Pt,Nt,zt){return Rt.call(this,Ft(Pt,Nt,zt))||this}return qt})(yt);$t.prototype.name=yt.name,$t.prototype.code=Je,xe[Je]=$t}function ze(Je,Ct){if(Array.isArray(Je)){var yt=Je.length;return Je=Je.map(function(Ft){return String(Ft)}),yt>2?"one of ".concat(Ct," ").concat(Je.slice(0,yt-1).join(", "),", or ")+Je[yt-1]:yt===2?"one of ".concat(Ct," ").concat(Je[0]," or ").concat(Je[1]):"of ".concat(Ct," ").concat(Je[0])}else return"of ".concat(Ct," ").concat(String(Je))}function We(Je,Ct,yt){return Je.substr(0,Ct.length)===Ct}function De(Je,Ct,yt){return(yt===void 0||yt>Je.length)&&(yt=Je.length),Je.substring(yt-Ct.length,yt)===Ct}function vt(Je,Ct,yt){return typeof yt!="number"&&(yt=0),yt+Ct.length>Je.length?!1:Je.indexOf(Ct,yt)!==-1}return Ke("ERR_INVALID_OPT_VALUE",function(Je,Ct){return'The value "'+Ct+'" is invalid for option "'+Je+'"'},TypeError),Ke("ERR_INVALID_ARG_TYPE",function(Je,Ct,yt){var Ft;typeof Ct=="string"&&We(Ct,"not ")?(Ft="must not be",Ct=Ct.replace(/^not /,"")):Ft="must be";var $t;if(De(Je," argument"))$t="The ".concat(Je," ").concat(Ft," ").concat(ze(Ct,"type"));else{var Rt=vt(Je,".")?"property":"argument";$t='The "'.concat(Je,'" ').concat(Rt," ").concat(Ft," ").concat(ze(Ct,"type"))}return $t+=". Received type ".concat(typeof yt),$t},TypeError),Ke("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Ke("ERR_METHOD_NOT_IMPLEMENTED",function(Je){return"The "+Je+" method is not implemented"}),Ke("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Ke("ERR_STREAM_DESTROYED",function(Je){return"Cannot call "+Je+" after a stream was destroyed"}),Ke("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Ke("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Ke("ERR_STREAM_WRITE_AFTER_END","write after end"),Ke("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Ke("ERR_UNKNOWN_ENCODING",function(Je){return"Unknown encoding: "+Je},TypeError),Ke("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=xe,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var Me=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function xe(ze,We,De){return ze.highWaterMark!=null?ze.highWaterMark:We?ze[De]:null}function Ke(ze,We,De,vt){var Je=xe(We,vt,De);if(Je!=null){if(!(isFinite(Je)&&Math.floor(Je)===Je)||Je<0){var Ct=vt?De:"highWaterMark";throw new Me(Ct,Je)}return Math.floor(Je)}return ze.objectMode?16:16*1024}return state={getHighWaterMark:Ke},state}var browser$a,hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a;hasRequiredBrowser$a=1,browser$a=Me;function Me(Ke,ze){if(xe("noDeprecation"))return Ke;var We=!1;function De(){if(!We){if(xe("throwDeprecation"))throw new Error(ze);xe("traceDeprecation")?console.trace(ze):console.warn(ze),We=!0}return Ke.apply(this,arguments)}return De}function xe(Ke){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var ze=commonjsGlobal.localStorage[Ke];return ze==null?!1:String(ze).toLowerCase()==="true"}return browser$a}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=bi;function Me(fi){var ri=this;this.next=null,this.entry=null,this.finish=function(){li(ri,fi)}}var xe;bi.WritableState=ci;var Ke={deprecate:requireBrowser$a()},ze=requireStreamBrowser$1(),We=requireDist().Buffer,De=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function vt(fi){return We.from(fi)}function Je(fi){return We.isBuffer(fi)||fi instanceof De}var Ct=requireDestroy$1(),yt=requireState(),Ft=yt.getHighWaterMark,$t=requireErrorsBrowser().codes,Rt=$t.ERR_INVALID_ARG_TYPE,qt=$t.ERR_METHOD_NOT_IMPLEMENTED,Pt=$t.ERR_MULTIPLE_CALLBACK,Nt=$t.ERR_STREAM_CANNOT_PIPE,zt=$t.ERR_STREAM_DESTROYED,Gt=$t.ERR_STREAM_NULL_VALUES,Ut=$t.ERR_STREAM_WRITE_AFTER_END,ii=$t.ERR_UNKNOWN_ENCODING,ti=Ct.errorOrDestroy;requireInherits_browser()(bi,ze);function di(){}function ci(fi,ri,Xt){xe=xe||require_stream_duplex$1(),fi=fi||{},typeof Xt!="boolean"&&(Xt=ri instanceof xe),this.objectMode=!!fi.objectMode,Xt&&(this.objectMode=this.objectMode||!!fi.writableObjectMode),this.highWaterMark=Ft(this,fi,"writableHighWaterMark",Xt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var mi=fi.decodeStrings===!1;this.decodeStrings=!mi,this.defaultEncoding=fi.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fi){_t(ri,Fi)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=fi.emitClose!==!1,this.autoDestroy=!!fi.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Me(this)}ci.prototype.getBuffer=function(){for(var fi=this.bufferedRequest,ri=[];fi;)ri.push(fi),fi=fi.next;return ri},(function(){try{Object.defineProperty(ci.prototype,"buffer",{get:Ke.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var vi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(vi=Function.prototype[Symbol.hasInstance],Object.defineProperty(bi,Symbol.hasInstance,{value:function(fi){return vi.call(this,fi)?!0:this!==bi?!1:fi&&fi._writableState instanceof ci}})):vi=function(fi){return fi instanceof this};function bi(fi){xe=xe||require_stream_duplex$1();var ri=this instanceof xe;if(!ri&&!vi.call(bi,this))return new bi(fi);this._writableState=new ci(fi,this,ri),this.writable=!0,fi&&(typeof fi.write=="function"&&(this._write=fi.write),typeof fi.writev=="function"&&(this._writev=fi.writev),typeof fi.destroy=="function"&&(this._destroy=fi.destroy),typeof fi.final=="function"&&(this._final=fi.final)),ze.call(this)}bi.prototype.pipe=function(){ti(this,new Nt)};function pi(fi,ri){var Xt=new Ut;ti(fi,Xt),process$1.nextTick(ri,Xt)}function Mi(fi,ri,Xt,mi){var Fi;return Xt===null?Fi=new Gt:typeof Xt!="string"&&!ri.objectMode&&(Fi=new Rt("chunk",["string","Buffer"],Xt)),Fi?(ti(fi,Fi),process$1.nextTick(mi,Fi),!1):!0}bi.prototype.write=function(fi,ri,Xt){var mi=this._writableState,Fi=!1,si=!mi.objectMode&&Je(fi);return si&&!We.isBuffer(fi)&&(fi=vt(fi)),typeof ri=="function"&&(Xt=ri,ri=null),si?ri="buffer":ri||(ri=mi.defaultEncoding),typeof Xt!="function"&&(Xt=di),mi.ending?pi(this,Xt):(si||Mi(this,mi,fi,Xt))&&(mi.pendingcb++,Fi=Ae(this,mi,si,fi,ri,Xt)),Fi},bi.prototype.cork=function(){this._writableState.corked++},bi.prototype.uncork=function(){var fi=this._writableState;fi.corked&&(fi.corked--,!fi.writing&&!fi.corked&&!fi.bufferProcessing&&fi.bufferedRequest&&ke(this,fi))},bi.prototype.setDefaultEncoding=function(fi){if(typeof fi=="string"&&(fi=fi.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((fi+"").toLowerCase())>-1))throw new ii(fi);return this._writableState.defaultEncoding=fi,this},Object.defineProperty(bi.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function j(fi,ri,Xt){return!fi.objectMode&&fi.decodeStrings!==!1&&typeof ri=="string"&&(ri=We.from(ri,Xt)),ri}Object.defineProperty(bi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ae(fi,ri,Xt,mi,Fi,si){if(!Xt){var hi=j(ri,mi,Fi);mi!==hi&&(Xt=!0,Fi="buffer",mi=hi)}var ki=ri.objectMode?1:mi.length;ri.length+=ki;var Bi=ri.length>5===6?2:Gt>>4===14?3:Gt>>3===30?4:Gt>>6===2?-1:-2}function vt(Gt,Ut,ii){var ti=Ut.length-1;if(ti=0?(di>0&&(Gt.lastNeed=di-1),di):--ti=0?(di>0&&(Gt.lastNeed=di-2),di):--ti=0?(di>0&&(di===2?di=0:Gt.lastNeed=di-3),di):0))}function Je(Gt,Ut,ii){if((Ut[0]&192)!==128)return Gt.lastNeed=0,"�";if(Gt.lastNeed>1&&Ut.length>1){if((Ut[1]&192)!==128)return Gt.lastNeed=1,"�";if(Gt.lastNeed>2&&Ut.length>2&&(Ut[2]&192)!==128)return Gt.lastNeed=2,"�"}}function Ct(Gt){var Ut=this.lastTotal-this.lastNeed,ii=Je(this,Gt);if(ii!==void 0)return ii;if(this.lastNeed<=Gt.length)return Gt.copy(this.lastChar,Ut,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Gt.copy(this.lastChar,Ut,0,Gt.length),this.lastNeed-=Gt.length}function yt(Gt,Ut){var ii=vt(this,Gt,Ut);if(!this.lastNeed)return Gt.toString("utf8",Ut);this.lastTotal=ii;var ti=Gt.length-(ii-this.lastNeed);return Gt.copy(this.lastChar,0,ti),Gt.toString("utf8",Ut,ti)}function Ft(Gt){var Ut=Gt&&Gt.length?this.write(Gt):"";return this.lastNeed?Ut+"�":Ut}function $t(Gt,Ut){if((Gt.length-Ut)%2===0){var ii=Gt.toString("utf16le",Ut);if(ii){var ti=ii.charCodeAt(ii.length-1);if(ti>=55296&&ti<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Gt[Gt.length-2],this.lastChar[1]=Gt[Gt.length-1],ii.slice(0,-1)}return ii}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Gt[Gt.length-1],Gt.toString("utf16le",Ut,Gt.length-1)}function Rt(Gt){var Ut=Gt&&Gt.length?this.write(Gt):"";if(this.lastNeed){var ii=this.lastTotal-this.lastNeed;return Ut+this.lastChar.toString("utf16le",0,ii)}return Ut}function qt(Gt,Ut){var ii=(Gt.length-Ut)%3;return ii===0?Gt.toString("base64",Ut):(this.lastNeed=3-ii,this.lastTotal=3,ii===1?this.lastChar[0]=Gt[Gt.length-1]:(this.lastChar[0]=Gt[Gt.length-2],this.lastChar[1]=Gt[Gt.length-1]),Gt.toString("base64",Ut,Gt.length-ii))}function Pt(Gt){var Ut=Gt&&Gt.length?this.write(Gt):"";return this.lastNeed?Ut+this.lastChar.toString("base64",0,3-this.lastNeed):Ut}function Nt(Gt){return Gt.toString(this.encoding)}function zt(Gt){return Gt&&Gt.length?this.write(Gt):""}return string_decoder}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var Me=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function xe(De){var vt=!1;return function(){if(!vt){vt=!0;for(var Je=arguments.length,Ct=new Array(Je),yt=0;yt0)if(typeof hi!="string"&&!Ui.objectMode&&Object.getPrototypeOf(hi)!==ze.prototype&&(hi=De(hi)),Bi)Ui.endEmitted?di(si,new Gt):j(si,Ui,hi,!0);else if(Ui.ended)di(si,new Nt);else{if(Ui.destroyed)return!1;Ui.reading=!1,Ui.decoder&&!ki?(hi=Ui.decoder.write(hi),Ui.objectMode||hi.length!==0?j(si,Ui,hi,!1):ke(si,Ui)):j(si,Ui,hi,!1)}else Bi||(Ui.reading=!1,ke(si,Ui))}return!Ui.ended&&(Ui.length=He?si=He:(si--,si|=si>>>1,si|=si>>>2,si|=si>>>4,si|=si>>>8,si|=si>>>16,si++),si}function Ge(si,hi){return si<=0||hi.length===0&&hi.ended?0:hi.objectMode?1:si!==si?hi.flowing&&hi.length?hi.buffer.head.data.length:hi.length:(si>hi.highWaterMark&&(hi.highWaterMark=Ue(si)),si<=hi.length?si:hi.ended?hi.length:(hi.needReadable=!0,0))}pi.prototype.read=function(si){Ct("read",si),si=parseInt(si,10);var hi=this._readableState,ki=si;if(si!==0&&(hi.emittedReadable=!1),si===0&&hi.needReadable&&((hi.highWaterMark!==0?hi.length>=hi.highWaterMark:hi.length>0)||hi.ended))return Ct("read: emitReadable",hi.length,hi.ended),hi.length===0&&hi.ended?Xt(this):St(this),null;if(si=Ge(si,hi),si===0&&hi.ended)return hi.length===0&&Xt(this),null;var Bi=hi.needReadable;Ct("need readable",Bi),(hi.length===0||hi.length-si0?gi=ri(si,hi):gi=null,gi===null?(hi.needReadable=hi.length<=hi.highWaterMark,si=0):(hi.length-=si,hi.awaitDrain=0),hi.length===0&&(hi.ended||(hi.needReadable=!0),ki!==si&&hi.ended&&Xt(this)),gi!==null&&this.emit("data",gi),gi};function _t(si,hi){if(Ct("onEofChunk"),!hi.ended){if(hi.decoder){var ki=hi.decoder.end();ki&&ki.length&&(hi.buffer.push(ki),hi.length+=hi.objectMode?1:ki.length)}hi.ended=!0,hi.sync?St(si):(hi.needReadable=!1,hi.emittedReadable||(hi.emittedReadable=!0,Ye(si)))}}function St(si){var hi=si._readableState;Ct("emitReadable",hi.needReadable,hi.emittedReadable),hi.needReadable=!1,hi.emittedReadable||(Ct("emitReadable",hi.flowing),hi.emittedReadable=!0,process$1.nextTick(Ye,si))}function Ye(si){var hi=si._readableState;Ct("emitReadable_",hi.destroyed,hi.length,hi.ended),!hi.destroyed&&(hi.length||hi.ended)&&(si.emit("readable"),hi.emittedReadable=!1),hi.needReadable=!hi.flowing&&!hi.ended&&hi.length<=hi.highWaterMark,fi(si)}function ke(si,hi){hi.readingMore||(hi.readingMore=!0,process$1.nextTick(Xe,si,hi))}function Xe(si,hi){for(;!hi.reading&&!hi.ended&&(hi.length1&&Fi(Bi.pipes,si)!==-1)&&!Hi&&(Ct("false write response, pause",Bi.awaitDrain),Bi.awaitDrain++),ki.pause())}function Ci(Xi){Ct("onerror",Xi),Zi(),si.removeListener("error",Ci),xe(si,"error")===0&&di(si,Xi)}vi(si,"error",Ci);function Ri(){si.removeListener("finish",sn),Zi()}si.once("close",Ri);function sn(){Ct("onfinish"),si.removeListener("close",Ri),Zi()}si.once("finish",sn);function Zi(){Ct("unpipe"),ki.unpipe(si)}return si.emit("pipe",ki),Bi.flowing||(Ct("pipe resume"),ki.resume()),si};function Vt(si){return function(){var hi=si._readableState;Ct("pipeOnDrain",hi.awaitDrain),hi.awaitDrain&&hi.awaitDrain--,hi.awaitDrain===0&&xe(si,"data")&&(hi.flowing=!0,fi(si))}}pi.prototype.unpipe=function(si){var hi=this._readableState,ki={hasUnpiped:!1};if(hi.pipesCount===0)return this;if(hi.pipesCount===1)return si&&si!==hi.pipes?this:(si||(si=hi.pipes),hi.pipes=null,hi.pipesCount=0,hi.flowing=!1,si&&si.emit("unpipe",this,ki),this);if(!si){var Bi=hi.pipes,gi=hi.pipesCount;hi.pipes=null,hi.pipesCount=0,hi.flowing=!1;for(var Ui=0;Ui0,Bi.flowing!==!1&&this.resume()):si==="readable"&&!Bi.endEmitted&&!Bi.readableListening&&(Bi.readableListening=Bi.needReadable=!0,Bi.flowing=!1,Bi.emittedReadable=!1,Ct("on readable",Bi.length,Bi.reading),Bi.length?St(this):Bi.reading||process$1.nextTick(ei,this)),ki},pi.prototype.addListener=pi.prototype.on,pi.prototype.removeListener=function(si,hi){var ki=Ke.prototype.removeListener.call(this,si,hi);return si==="readable"&&process$1.nextTick(Jt,this),ki},pi.prototype.removeAllListeners=function(si){var hi=Ke.prototype.removeAllListeners.apply(this,arguments);return(si==="readable"||si===void 0)&&process$1.nextTick(Jt,this),hi};function Jt(si){var hi=si._readableState;hi.readableListening=si.listenerCount("readable")>0,hi.resumeScheduled&&!hi.paused?hi.flowing=!0:si.listenerCount("data")>0&&si.resume()}function ei(si){Ct("readable nexttick read 0"),si.read(0)}pi.prototype.resume=function(){var si=this._readableState;return si.flowing||(Ct("resume"),si.flowing=!si.readableListening,oi(this,si)),si.paused=!1,this};function oi(si,hi){hi.resumeScheduled||(hi.resumeScheduled=!0,process$1.nextTick(li,si,hi))}function li(si,hi){Ct("resume",hi.reading),hi.reading||si.read(0),hi.resumeScheduled=!1,si.emit("resume"),fi(si),hi.flowing&&!hi.reading&&si.read(0)}pi.prototype.pause=function(){return Ct("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ct("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function fi(si){var hi=si._readableState;for(Ct("flow",hi.flowing);hi.flowing&&si.read()!==null;);}pi.prototype.wrap=function(si){var hi=this,ki=this._readableState,Bi=!1;si.on("end",function(){if(Ct("wrapped end"),ki.decoder&&!ki.ended){var Ei=ki.decoder.end();Ei&&Ei.length&&hi.push(Ei)}hi.push(null)}),si.on("data",function(Ei){if(Ct("wrapped data"),ki.decoder&&(Ei=ki.decoder.write(Ei)),!(ki.objectMode&&Ei==null)&&!(!ki.objectMode&&(!Ei||!Ei.length))){var Li=hi.push(Ei);Li||(Bi=!0,si.pause())}});for(var gi in si)this[gi]===void 0&&typeof si[gi]=="function"&&(this[gi]=(function(Ei){return function(){return si[Ei].apply(si,arguments)}})(gi));for(var Ui=0;Ui=hi.length?(hi.decoder?ki=hi.buffer.join(""):hi.buffer.length===1?ki=hi.buffer.first():ki=hi.buffer.concat(hi.length),hi.buffer.clear()):ki=hi.buffer.consume(si,hi.decoder),ki}function Xt(si){var hi=si._readableState;Ct("endReadable",hi.endEmitted),hi.endEmitted||(hi.ended=!0,process$1.nextTick(mi,hi,si))}function mi(si,hi){if(Ct("endReadableNT",si.endEmitted,si.length),!si.endEmitted&&si.length===0&&(si.endEmitted=!0,hi.readable=!1,hi.emit("end"),si.autoDestroy)){var ki=hi._writableState;(!ki||ki.autoDestroy&&ki.finished)&&hi.destroy()}}typeof Symbol=="function"&&(pi.from=function(si,hi){return ti===void 0&&(ti=requireFromBrowser()),ti(pi,si,hi)});function Fi(si,hi){for(var ki=0,Bi=si.length;ki0;return Je(Ut,ti,di,function(ci){zt||(zt=ci),ci&&Gt.forEach(Ct),!ti&&(Gt.forEach(Ct),Nt(zt))})});return qt.reduce(yt)}return pipeline_1=$t,pipeline_1}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=Ke;var Me=requireEvents().EventEmitter,xe=requireInherits_browser();xe(Ke,Me),Ke.Readable=require_stream_readable$1(),Ke.Writable=require_stream_writable$1(),Ke.Duplex=require_stream_duplex$1(),Ke.Transform=require_stream_transform$1(),Ke.PassThrough=require_stream_passthrough$1(),Ke.finished=requireEndOfStream(),Ke.pipeline=requirePipeline(),Ke.Stream=Ke;function Ke(){Me.call(this)}return Ke.prototype.pipe=function(ze,We){var De=this;function vt(qt){ze.writable&&ze.write(qt)===!1&&De.pause&&De.pause()}De.on("data",vt);function Je(){De.readable&&De.resume&&De.resume()}ze.on("drain",Je),!ze._isStdio&&(!We||We.end!==!1)&&(De.on("end",yt),De.on("close",Ft));var Ct=!1;function yt(){Ct||(Ct=!0,ze.end())}function Ft(){Ct||(Ct=!0,typeof ze.destroy=="function"&&ze.destroy())}function $t(qt){if(Rt(),Me.listenerCount(this,"error")===0)throw qt}De.on("error",$t),ze.on("error",$t);function Rt(){De.removeListener("data",vt),ze.removeListener("drain",Je),De.removeListener("end",yt),De.removeListener("close",Ft),De.removeListener("error",$t),ze.removeListener("error",$t),De.removeListener("end",Rt),De.removeListener("close",Rt),ze.removeListener("close",Rt)}return De.on("end",Rt),De.on("close",Rt),ze.on("close",Rt),ze.emit("pipe",De),ze},streamBrowserify}var hashBase$1,hasRequiredHashBase$1;function requireHashBase$1(){if(hasRequiredHashBase$1)return hashBase$1;hasRequiredHashBase$1=1;var Me=requireSafeBuffer$2().Buffer,xe=requireStreamBrowserify().Transform,Ke=requireInherits_browser();function ze(Je){xe.call(this),this._block=Me.allocUnsafe(Je),this._blockSize=Je,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Ke(ze,xe),ze.prototype._transform=function(Je,Ct,yt){var Ft=null;try{this.update(Je,Ct)}catch($t){Ft=$t}yt(Ft)},ze.prototype._flush=function(Je){var Ct=null;try{this.push(this.digest())}catch(yt){Ct=yt}Je(Ct)};var We=typeof Uint8Array<"u",De=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(Me.prototype instanceof Uint8Array||Me.TYPED_ARRAY_SUPPORT);function vt(Je,Ct){if(Je instanceof Me)return Je;if(typeof Je=="string")return Me.from(Je,Ct);if(De&&ArrayBuffer.isView(Je)){if(Je.byteLength===0)return Me.alloc(0);var yt=Me.from(Je.buffer,Je.byteOffset,Je.byteLength);if(yt.byteLength===Je.byteLength)return yt}if(We&&Je instanceof Uint8Array||Me.isBuffer(Je)&&Je.constructor&&typeof Je.constructor.isBuffer=="function"&&Je.constructor.isBuffer(Je))return Me.from(Je);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return ze.prototype.update=function(Je,Ct){if(this._finalized)throw new Error("Digest already called");Je=vt(Je,Ct);for(var yt=this._block,Ft=0;this._blockOffset+Je.length-Ft>=this._blockSize;){for(var $t=this._blockOffset;$t0;++Rt)this._length[Rt]+=qt,qt=this._length[Rt]/4294967296|0,qt>0&&(this._length[Rt]-=4294967296*qt);return this},ze.prototype._update=function(){throw new Error("_update is not implemented")},ze.prototype.digest=function(Je){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var Ct=this._digest();Je!==void 0&&(Ct=Ct.toString(Je)),this._block.fill(0),this._blockOffset=0;for(var yt=0;yt<4;++yt)this._length[yt]=0;return Ct},ze.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase$1=ze,hashBase$1}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var Me=requireInherits_browser(),xe=requireHashBase$1(),Ke=requireSafeBuffer$2().Buffer,ze=new Array(16);function We(){xe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Me(We,xe),We.prototype._update=function(){for(var Ft=ze,$t=0;$t<16;++$t)Ft[$t]=this._block.readInt32LE($t*4);var Rt=this._a,qt=this._b,Pt=this._c,Nt=this._d;Rt=vt(Rt,qt,Pt,Nt,Ft[0],3614090360,7),Nt=vt(Nt,Rt,qt,Pt,Ft[1],3905402710,12),Pt=vt(Pt,Nt,Rt,qt,Ft[2],606105819,17),qt=vt(qt,Pt,Nt,Rt,Ft[3],3250441966,22),Rt=vt(Rt,qt,Pt,Nt,Ft[4],4118548399,7),Nt=vt(Nt,Rt,qt,Pt,Ft[5],1200080426,12),Pt=vt(Pt,Nt,Rt,qt,Ft[6],2821735955,17),qt=vt(qt,Pt,Nt,Rt,Ft[7],4249261313,22),Rt=vt(Rt,qt,Pt,Nt,Ft[8],1770035416,7),Nt=vt(Nt,Rt,qt,Pt,Ft[9],2336552879,12),Pt=vt(Pt,Nt,Rt,qt,Ft[10],4294925233,17),qt=vt(qt,Pt,Nt,Rt,Ft[11],2304563134,22),Rt=vt(Rt,qt,Pt,Nt,Ft[12],1804603682,7),Nt=vt(Nt,Rt,qt,Pt,Ft[13],4254626195,12),Pt=vt(Pt,Nt,Rt,qt,Ft[14],2792965006,17),qt=vt(qt,Pt,Nt,Rt,Ft[15],1236535329,22),Rt=Je(Rt,qt,Pt,Nt,Ft[1],4129170786,5),Nt=Je(Nt,Rt,qt,Pt,Ft[6],3225465664,9),Pt=Je(Pt,Nt,Rt,qt,Ft[11],643717713,14),qt=Je(qt,Pt,Nt,Rt,Ft[0],3921069994,20),Rt=Je(Rt,qt,Pt,Nt,Ft[5],3593408605,5),Nt=Je(Nt,Rt,qt,Pt,Ft[10],38016083,9),Pt=Je(Pt,Nt,Rt,qt,Ft[15],3634488961,14),qt=Je(qt,Pt,Nt,Rt,Ft[4],3889429448,20),Rt=Je(Rt,qt,Pt,Nt,Ft[9],568446438,5),Nt=Je(Nt,Rt,qt,Pt,Ft[14],3275163606,9),Pt=Je(Pt,Nt,Rt,qt,Ft[3],4107603335,14),qt=Je(qt,Pt,Nt,Rt,Ft[8],1163531501,20),Rt=Je(Rt,qt,Pt,Nt,Ft[13],2850285829,5),Nt=Je(Nt,Rt,qt,Pt,Ft[2],4243563512,9),Pt=Je(Pt,Nt,Rt,qt,Ft[7],1735328473,14),qt=Je(qt,Pt,Nt,Rt,Ft[12],2368359562,20),Rt=Ct(Rt,qt,Pt,Nt,Ft[5],4294588738,4),Nt=Ct(Nt,Rt,qt,Pt,Ft[8],2272392833,11),Pt=Ct(Pt,Nt,Rt,qt,Ft[11],1839030562,16),qt=Ct(qt,Pt,Nt,Rt,Ft[14],4259657740,23),Rt=Ct(Rt,qt,Pt,Nt,Ft[1],2763975236,4),Nt=Ct(Nt,Rt,qt,Pt,Ft[4],1272893353,11),Pt=Ct(Pt,Nt,Rt,qt,Ft[7],4139469664,16),qt=Ct(qt,Pt,Nt,Rt,Ft[10],3200236656,23),Rt=Ct(Rt,qt,Pt,Nt,Ft[13],681279174,4),Nt=Ct(Nt,Rt,qt,Pt,Ft[0],3936430074,11),Pt=Ct(Pt,Nt,Rt,qt,Ft[3],3572445317,16),qt=Ct(qt,Pt,Nt,Rt,Ft[6],76029189,23),Rt=Ct(Rt,qt,Pt,Nt,Ft[9],3654602809,4),Nt=Ct(Nt,Rt,qt,Pt,Ft[12],3873151461,11),Pt=Ct(Pt,Nt,Rt,qt,Ft[15],530742520,16),qt=Ct(qt,Pt,Nt,Rt,Ft[2],3299628645,23),Rt=yt(Rt,qt,Pt,Nt,Ft[0],4096336452,6),Nt=yt(Nt,Rt,qt,Pt,Ft[7],1126891415,10),Pt=yt(Pt,Nt,Rt,qt,Ft[14],2878612391,15),qt=yt(qt,Pt,Nt,Rt,Ft[5],4237533241,21),Rt=yt(Rt,qt,Pt,Nt,Ft[12],1700485571,6),Nt=yt(Nt,Rt,qt,Pt,Ft[3],2399980690,10),Pt=yt(Pt,Nt,Rt,qt,Ft[10],4293915773,15),qt=yt(qt,Pt,Nt,Rt,Ft[1],2240044497,21),Rt=yt(Rt,qt,Pt,Nt,Ft[8],1873313359,6),Nt=yt(Nt,Rt,qt,Pt,Ft[15],4264355552,10),Pt=yt(Pt,Nt,Rt,qt,Ft[6],2734768916,15),qt=yt(qt,Pt,Nt,Rt,Ft[13],1309151649,21),Rt=yt(Rt,qt,Pt,Nt,Ft[4],4149444226,6),Nt=yt(Nt,Rt,qt,Pt,Ft[11],3174756917,10),Pt=yt(Pt,Nt,Rt,qt,Ft[2],718787259,15),qt=yt(qt,Pt,Nt,Rt,Ft[9],3951481745,21),this._a=this._a+Rt|0,this._b=this._b+qt|0,this._c=this._c+Pt|0,this._d=this._d+Nt|0},We.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Ft=Ke.allocUnsafe(16);return Ft.writeInt32LE(this._a,0),Ft.writeInt32LE(this._b,4),Ft.writeInt32LE(this._c,8),Ft.writeInt32LE(this._d,12),Ft};function De(Ft,$t){return Ft<<$t|Ft>>>32-$t}function vt(Ft,$t,Rt,qt,Pt,Nt,zt){return De(Ft+($t&Rt|~$t&qt)+Pt+Nt|0,zt)+$t|0}function Je(Ft,$t,Rt,qt,Pt,Nt,zt){return De(Ft+($t&qt|Rt&~qt)+Pt+Nt|0,zt)+$t|0}function Ct(Ft,$t,Rt,qt,Pt,Nt,zt){return De(Ft+($t^Rt^qt)+Pt+Nt|0,zt)+$t|0}function yt(Ft,$t,Rt,qt,Pt,Nt,zt){return De(Ft+(Rt^($t|~qt))+Pt+Nt|0,zt)+$t|0}return md5_js=We,md5_js}var isarray$1,hasRequiredIsarray$1;function requireIsarray$1(){if(hasRequiredIsarray$1)return isarray$1;hasRequiredIsarray$1=1;var Me={}.toString;return isarray$1=Array.isArray||function(xe){return Me.call(xe)=="[object Array]"},isarray$1}var typedArrayBuffer,hasRequiredTypedArrayBuffer;function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var Me=requireType(),xe=requireCallBound(),Ke=xe("TypedArray.prototype.buffer",!0),ze=requireIsTypedArray();return typedArrayBuffer=Ke||function(We){if(!ze(We))throw new Me("Not a Typed Array");return We.buffer},typedArrayBuffer}var toBuffer,hasRequiredToBuffer$2;function requireToBuffer$2(){if(hasRequiredToBuffer$2)return toBuffer;hasRequiredToBuffer$2=1;var Me=requireSafeBuffer$2().Buffer,xe=requireIsarray$1(),Ke=requireTypedArrayBuffer(),ze=ArrayBuffer.isView||function(Je){try{return Ke(Je),!0}catch{return!1}},We=typeof Uint8Array<"u",De=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",vt=De&&(Me.prototype instanceof Uint8Array||Me.TYPED_ARRAY_SUPPORT);return toBuffer=function(Je,Ct){if(Me.isBuffer(Je))return Je.constructor&&!("isBuffer"in Je)?Me.from(Je):Je;if(typeof Je=="string")return Me.from(Je,Ct);if(De&&ze(Je)){if(Je.byteLength===0)return Me.alloc(0);if(vt){var yt=Me.from(Je.buffer,Je.byteOffset,Je.byteLength);if(yt.byteLength===Je.byteLength)return yt}var Ft=Je instanceof Uint8Array?Je:new Uint8Array(Je.buffer,Je.byteOffset,Je.byteLength),$t=Me.from(Ft);if($t.length===Je.byteLength)return $t}if(We&&Je instanceof Uint8Array)return Me.from(Je);var Rt=xe(Je);if(Rt)for(var qt=0;qt255||~~Pt!==Pt)throw new RangeError("Array items must be numbers in the range 0-255.")}if(Rt||Me.isBuffer(Je)&&Je.constructor&&typeof Je.constructor.isBuffer=="function"&&Je.constructor.isBuffer(Je))return Me.from(Je);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},toBuffer}var toBuffer_1$1,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer_1$1;hasRequiredToBuffer$1=1;var Me=requireSafeBuffer$2().Buffer,xe=requireToBuffer$2(),Ke=typeof Uint8Array<"u",ze=Ke&&typeof ArrayBuffer<"u",We=ze&&ArrayBuffer.isView;return toBuffer_1$1=function(De,vt){if(typeof De=="string"||Me.isBuffer(De)||Ke&&De instanceof Uint8Array||We&&We(De))return xe(De,vt);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},toBuffer_1$1}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:Me}:processNextickArgs.exports=process$1;function Me(xe,Ke,ze,We){if(typeof xe!="function")throw new TypeError('"callback" argument must be a function');var De=arguments.length,vt,Je;switch(De){case 0:case 1:return process$1.nextTick(xe);case 2:return process$1.nextTick(function(){xe.call(null,Ke)});case 3:return process$1.nextTick(function(){xe.call(null,Ke,ze)});case 4:return process$1.nextTick(function(){xe.call(null,Ke,ze,We)});default:for(vt=new Array(De-1),Je=0;Je"u"}util.isPrimitive=qt,util.isBuffer=requireDist().Buffer.isBuffer;function Pt(Nt){return Object.prototype.toString.call(Nt)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,(function(Me){function xe(De,vt){if(!(De instanceof vt))throw new TypeError("Cannot call a class as a function")}var Ke=requireSafeBuffer().Buffer,ze=requireUtil$1();function We(De,vt,Je){De.copy(vt,Je)}Me.exports=(function(){function De(){xe(this,De),this.head=null,this.tail=null,this.length=0}return De.prototype.push=function(vt){var Je={data:vt,next:null};this.length>0?this.tail.next=Je:this.head=Je,this.tail=Je,++this.length},De.prototype.unshift=function(vt){var Je={data:vt,next:this.head};this.length===0&&(this.tail=Je),this.head=Je,++this.length},De.prototype.shift=function(){if(this.length!==0){var vt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,vt}},De.prototype.clear=function(){this.head=this.tail=null,this.length=0},De.prototype.join=function(vt){if(this.length===0)return"";for(var Je=this.head,Ct=""+Je.data;Je=Je.next;)Ct+=vt+Je.data;return Ct},De.prototype.concat=function(vt){if(this.length===0)return Ke.alloc(0);for(var Je=Ke.allocUnsafe(vt>>>0),Ct=this.head,yt=0;Ct;)We(Ct.data,Je,yt),yt+=Ct.data.length,Ct=Ct.next;return Je},De})(),ze&&ze.inspect&&ze.inspect.custom&&(Me.exports.prototype[ze.inspect.custom]=function(){var De=ze.inspect({length:this.length});return this.constructor.name+" "+De})})(BufferList)),BufferList.exports}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;var Me=requireProcessNextickArgs();function xe(We,De){var vt=this,Je=this._readableState&&this._readableState.destroyed,Ct=this._writableState&&this._writableState.destroyed;return Je||Ct?(De?De(We):We&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Me.nextTick(ze,this,We)):Me.nextTick(ze,this,We)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(We||null,function(yt){!De&&yt?vt._writableState?vt._writableState.errorEmitted||(vt._writableState.errorEmitted=!0,Me.nextTick(ze,vt,yt)):Me.nextTick(ze,vt,yt):De&&De(yt)}),this)}function Ke(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ze(We,De){We.emit("error",De)}return destroy_1={destroy:xe,undestroy:Ke},destroy_1}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var Me=requireProcessNextickArgs();_stream_writable=Nt;function xe(St){var Ye=this;this.next=null,this.entry=null,this.finish=function(){_t(Ye,St)}}var Ke=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:Me.nextTick,ze;Nt.WritableState=qt;var We=Object.create(requireUtil());We.inherits=requireInherits_browser();var De={deprecate:requireBrowser$a()},vt=requireStreamBrowser(),Je=requireSafeBuffer().Buffer,Ct=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function yt(St){return Je.from(St)}function Ft(St){return Je.isBuffer(St)||St instanceof Ct}var $t=requireDestroy();We.inherits(Nt,vt);function Rt(){}function qt(St,Ye){ze=ze||require_stream_duplex(),St=St||{};var ke=Ye instanceof ze;this.objectMode=!!St.objectMode,ke&&(this.objectMode=this.objectMode||!!St.writableObjectMode);var Xe=St.highWaterMark,Vt=St.writableHighWaterMark,Jt=this.objectMode?16:16*1024;Xe||Xe===0?this.highWaterMark=Xe:ke&&(Vt||Vt===0)?this.highWaterMark=Vt:this.highWaterMark=Jt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ei=St.decodeStrings===!1;this.decodeStrings=!ei,this.defaultEncoding=St.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oi){vi(Ye,oi)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new xe(this)}qt.prototype.getBuffer=function(){for(var St=this.bufferedRequest,Ye=[];St;)Ye.push(St),St=St.next;return Ye},(function(){try{Object.defineProperty(qt.prototype,"buffer",{get:De.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Nt,Symbol.hasInstance,{value:function(St){return Pt.call(this,St)?!0:this!==Nt?!1:St&&St._writableState instanceof qt}})):Pt=function(St){return St instanceof this};function Nt(St){if(ze=ze||require_stream_duplex(),!Pt.call(Nt,this)&&!(this instanceof ze))return new Nt(St);this._writableState=new qt(St,this),this.writable=!0,St&&(typeof St.write=="function"&&(this._write=St.write),typeof St.writev=="function"&&(this._writev=St.writev),typeof St.destroy=="function"&&(this._destroy=St.destroy),typeof St.final=="function"&&(this._final=St.final)),vt.call(this)}Nt.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function zt(St,Ye){var ke=new Error("write after end");St.emit("error",ke),Me.nextTick(Ye,ke)}function Gt(St,Ye,ke,Xe){var Vt=!0,Jt=!1;return ke===null?Jt=new TypeError("May not write null values to stream"):typeof ke!="string"&&ke!==void 0&&!Ye.objectMode&&(Jt=new TypeError("Invalid non-string/buffer chunk")),Jt&&(St.emit("error",Jt),Me.nextTick(Xe,Jt),Vt=!1),Vt}Nt.prototype.write=function(St,Ye,ke){var Xe=this._writableState,Vt=!1,Jt=!Xe.objectMode&&Ft(St);return Jt&&!Je.isBuffer(St)&&(St=yt(St)),typeof Ye=="function"&&(ke=Ye,Ye=null),Jt?Ye="buffer":Ye||(Ye=Xe.defaultEncoding),typeof ke!="function"&&(ke=Rt),Xe.ended?zt(this,ke):(Jt||Gt(this,Xe,St,ke))&&(Xe.pendingcb++,Vt=ii(this,Xe,Jt,St,Ye,ke)),Vt},Nt.prototype.cork=function(){var St=this._writableState;St.corked++},Nt.prototype.uncork=function(){var St=this._writableState;St.corked&&(St.corked--,!St.writing&&!St.corked&&!St.bufferProcessing&&St.bufferedRequest&&Mi(this,St))},Nt.prototype.setDefaultEncoding=function(St){if(typeof St=="string"&&(St=St.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((St+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+St);return this._writableState.defaultEncoding=St,this};function Ut(St,Ye,ke){return!St.objectMode&&St.decodeStrings!==!1&&typeof Ye=="string"&&(Ye=Je.from(Ye,ke)),Ye}Object.defineProperty(Nt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ii(St,Ye,ke,Xe,Vt,Jt){if(!ke){var ei=Ut(Ye,Xe,Vt);Xe!==ei&&(ke=!0,Vt="buffer",Xe=ei)}var oi=Ye.objectMode?1:Xe.length;Ye.length+=oi;var li=Ye.length0?(typeof Xt!="string"&&!hi.objectMode&&Object.getPrototypeOf(Xt)!==De.prototype&&(Xt=Je(Xt)),Fi?hi.endEmitted?ri.emit("error",new Error("stream.unshift() after end event")):ti(ri,hi,Xt,!0):hi.ended?ri.emit("error",new Error("stream.push() after EOF")):(hi.reading=!1,hi.decoder&&!mi?(Xt=hi.decoder.write(Xt),hi.objectMode||Xt.length!==0?ti(ri,hi,Xt,!1):He(ri,hi)):ti(ri,hi,Xt,!1))):Fi||(hi.reading=!1)}return ci(hi)}function ti(ri,Xt,mi,Fi){Xt.flowing&&Xt.length===0&&!Xt.sync?(ri.emit("data",mi),ri.read(0)):(Xt.length+=Xt.objectMode?1:mi.length,Fi?Xt.buffer.unshift(mi):Xt.buffer.push(mi),Xt.needReadable&&j(ri)),He(ri,Xt)}function di(ri,Xt){var mi;return!Ct(Xt)&&typeof Xt!="string"&&Xt!==void 0&&!ri.objectMode&&(mi=new TypeError("Invalid non-string/buffer chunk")),mi}function ci(ri){return!ri.ended&&(ri.needReadable||ri.length=vi?ri=vi:(ri--,ri|=ri>>>1,ri|=ri>>>2,ri|=ri>>>4,ri|=ri>>>8,ri|=ri>>>16,ri++),ri}function pi(ri,Xt){return ri<=0||Xt.length===0&&Xt.ended?0:Xt.objectMode?1:ri!==ri?Xt.flowing&&Xt.length?Xt.buffer.head.data.length:Xt.length:(ri>Xt.highWaterMark&&(Xt.highWaterMark=bi(ri)),ri<=Xt.length?ri:Xt.ended?Xt.length:(Xt.needReadable=!0,0))}Ut.prototype.read=function(ri){$t("read",ri),ri=parseInt(ri,10);var Xt=this._readableState,mi=ri;if(ri!==0&&(Xt.emittedReadable=!1),ri===0&&Xt.needReadable&&(Xt.length>=Xt.highWaterMark||Xt.ended))return $t("read: emitReadable",Xt.length,Xt.ended),Xt.length===0&&Xt.ended?oi(this):j(this),null;if(ri=pi(ri,Xt),ri===0&&Xt.ended)return Xt.length===0&&oi(this),null;var Fi=Xt.needReadable;$t("need readable",Fi),(Xt.length===0||Xt.length-ri0?si=Xe(ri,Xt):si=null,si===null?(Xt.needReadable=!0,ri=0):Xt.length-=ri,Xt.length===0&&(Xt.ended||(Xt.needReadable=!0),mi!==ri&&Xt.ended&&oi(this)),si!==null&&this.emit("data",si),si};function Mi(ri,Xt){if(!Xt.ended){if(Xt.decoder){var mi=Xt.decoder.end();mi&&mi.length&&(Xt.buffer.push(mi),Xt.length+=Xt.objectMode?1:mi.length)}Xt.ended=!0,j(ri)}}function j(ri){var Xt=ri._readableState;Xt.needReadable=!1,Xt.emittedReadable||($t("emitReadable",Xt.flowing),Xt.emittedReadable=!0,Xt.sync?Me.nextTick(Ae,ri):Ae(ri))}function Ae(ri){$t("emit readable"),ri.emit("readable"),ke(ri)}function He(ri,Xt){Xt.readingMore||(Xt.readingMore=!0,Me.nextTick(Ue,ri,Xt))}function Ue(ri,Xt){for(var mi=Xt.length;!Xt.reading&&!Xt.flowing&&!Xt.ended&&Xt.length1&&fi(Fi.pipes,ri)!==-1)&&!Ui&&($t("false write response, pause",Fi.awaitDrain),Fi.awaitDrain++,Li=!0),mi.pause())}function Hi(Ri){$t("onerror",Ri),Ci(),ri.removeListener("error",Hi),ze(ri,"error")===0&&ri.emit("error",Ri)}zt(ri,"error",Hi);function zi(){ri.removeListener("finish",an),Ci()}ri.once("close",zi);function an(){$t("onfinish"),ri.removeListener("close",zi),Ci()}ri.once("finish",an);function Ci(){$t("unpipe"),mi.unpipe(ri)}return ri.emit("pipe",mi),Fi.flowing||($t("pipe resume"),mi.resume()),ri};function Ge(ri){return function(){var Xt=ri._readableState;$t("pipeOnDrain",Xt.awaitDrain),Xt.awaitDrain&&Xt.awaitDrain--,Xt.awaitDrain===0&&ze(ri,"data")&&(Xt.flowing=!0,ke(ri))}}Ut.prototype.unpipe=function(ri){var Xt=this._readableState,mi={hasUnpiped:!1};if(Xt.pipesCount===0)return this;if(Xt.pipesCount===1)return ri&&ri!==Xt.pipes?this:(ri||(ri=Xt.pipes),Xt.pipes=null,Xt.pipesCount=0,Xt.flowing=!1,ri&&ri.emit("unpipe",this,mi),this);if(!ri){var Fi=Xt.pipes,si=Xt.pipesCount;Xt.pipes=null,Xt.pipesCount=0,Xt.flowing=!1;for(var hi=0;hi=Xt.length?(Xt.decoder?mi=Xt.buffer.join(""):Xt.buffer.length===1?mi=Xt.buffer.head.data:mi=Xt.buffer.concat(Xt.length),Xt.buffer.clear()):mi=Vt(ri,Xt.buffer,Xt.decoder),mi}function Vt(ri,Xt,mi){var Fi;return rihi.length?hi.length:ri;if(ki===hi.length?si+=hi:si+=hi.slice(0,ri),ri-=ki,ri===0){ki===hi.length?(++Fi,mi.next?Xt.head=mi.next:Xt.head=Xt.tail=null):(Xt.head=mi,mi.data=hi.slice(ki));break}++Fi}return Xt.length-=Fi,si}function ei(ri,Xt){var mi=De.allocUnsafe(ri),Fi=Xt.head,si=1;for(Fi.data.copy(mi),ri-=Fi.data.length;Fi=Fi.next;){var hi=Fi.data,ki=ri>hi.length?hi.length:ri;if(hi.copy(mi,mi.length-ri,0,ki),ri-=ki,ri===0){ki===hi.length?(++si,Fi.next?Xt.head=Fi.next:Xt.head=Xt.tail=null):(Xt.head=Fi,Fi.data=hi.slice(ki));break}++si}return Xt.length-=si,mi}function oi(ri){var Xt=ri._readableState;if(Xt.length>0)throw new Error('"endReadable()" called on non-empty stream');Xt.endEmitted||(Xt.ended=!0,Me.nextTick(li,Xt,ri))}function li(ri,Xt){!ri.endEmitted&&ri.length===0&&(ri.endEmitted=!0,Xt.readable=!1,Xt.emit("end"))}function fi(ri,Xt){for(var mi=0,Fi=ri.length;mi=this._blockSize;){for(var Ft=this._blockOffset;Ft0;++$t)this._length[$t]+=Rt,Rt=this._length[$t]/4294967296|0,Rt>0&&(this._length[$t]-=4294967296*Rt);return this},We.prototype._update=function(){throw new Error("_update is not implemented")},We.prototype.digest=function(De){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var vt=this._digest();De!==void 0&&(vt=vt.toString(De)),this._block.fill(0),this._blockOffset=0;for(var Je=0;Je<4;++Je)this._length[Je]=0;return vt},We.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=We,hashBase}var ripemd160,hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160;hasRequiredRipemd160=1;var Me=requireDist().Buffer,xe=requireInherits_browser(),Ke=requireHashBase(),ze=new Array(16),We=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],De=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],vt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Je=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Ct=[0,1518500249,1859775393,2400959708,2840853838],yt=[1352829926,1548603684,1836072691,2053994217,0];function Ft(Gt,Ut){return Gt<>>32-Ut}function $t(Gt,Ut,ii,ti,di,ci,vi,bi){return Ft(Gt+(Ut^ii^ti)+ci+vi|0,bi)+di|0}function Rt(Gt,Ut,ii,ti,di,ci,vi,bi){return Ft(Gt+(Ut&ii|~Ut&ti)+ci+vi|0,bi)+di|0}function qt(Gt,Ut,ii,ti,di,ci,vi,bi){return Ft(Gt+((Ut|~ii)^ti)+ci+vi|0,bi)+di|0}function Pt(Gt,Ut,ii,ti,di,ci,vi,bi){return Ft(Gt+(Ut&ti|ii&~ti)+ci+vi|0,bi)+di|0}function Nt(Gt,Ut,ii,ti,di,ci,vi,bi){return Ft(Gt+(Ut^(ii|~ti))+ci+vi|0,bi)+di|0}function zt(){Ke.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return xe(zt,Ke),zt.prototype._update=function(){for(var Gt=ze,Ut=0;Ut<16;++Ut)Gt[Ut]=this._block.readInt32LE(Ut*4);for(var ii=this._a|0,ti=this._b|0,di=this._c|0,ci=this._d|0,vi=this._e|0,bi=this._a|0,pi=this._b|0,Mi=this._c|0,j=this._d|0,Ae=this._e|0,He=0;He<80;He+=1){var Ue,Ge;He<16?(Ue=$t(ii,ti,di,ci,vi,Gt[We[He]],Ct[0],vt[He]),Ge=Nt(bi,pi,Mi,j,Ae,Gt[De[He]],yt[0],Je[He])):He<32?(Ue=Rt(ii,ti,di,ci,vi,Gt[We[He]],Ct[1],vt[He]),Ge=Pt(bi,pi,Mi,j,Ae,Gt[De[He]],yt[1],Je[He])):He<48?(Ue=qt(ii,ti,di,ci,vi,Gt[We[He]],Ct[2],vt[He]),Ge=qt(bi,pi,Mi,j,Ae,Gt[De[He]],yt[2],Je[He])):He<64?(Ue=Pt(ii,ti,di,ci,vi,Gt[We[He]],Ct[3],vt[He]),Ge=Rt(bi,pi,Mi,j,Ae,Gt[De[He]],yt[3],Je[He])):(Ue=Nt(ii,ti,di,ci,vi,Gt[We[He]],Ct[4],vt[He]),Ge=$t(bi,pi,Mi,j,Ae,Gt[De[He]],yt[4],Je[He])),ii=vi,vi=ci,ci=Ft(di,10),di=ti,ti=Ue,bi=Ae,Ae=j,j=Ft(Mi,10),Mi=pi,pi=Ge}var _t=this._b+di+j|0;this._b=this._c+ci+Ae|0,this._c=this._d+vi+bi|0,this._d=this._e+ii+pi|0,this._e=this._a+ti+Mi|0,this._a=_t},zt.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var Gt=Me.alloc?Me.alloc(20):new Me(20);return Gt.writeInt32LE(this._a,0),Gt.writeInt32LE(this._b,4),Gt.writeInt32LE(this._c,8),Gt.writeInt32LE(this._d,12),Gt.writeInt32LE(this._e,16),Gt},ripemd160=zt,ripemd160}var sha_js={exports:{}},hash$1,hasRequiredHash$1;function requireHash$1(){if(hasRequiredHash$1)return hash$1;hasRequiredHash$1=1;var Me=requireSafeBuffer$2().Buffer,xe=requireToBuffer$2();function Ke(ze,We){this._block=Me.alloc(ze),this._finalSize=We,this._blockSize=ze,this._len=0}return Ke.prototype.update=function(ze,We){ze=xe(ze,We||"utf8");for(var De=this._block,vt=this._blockSize,Je=ze.length,Ct=this._len,yt=0;yt=this._finalSize&&(this._update(this._block),this._block.fill(0));var De=this._len*8;if(De<=4294967295)this._block.writeUInt32BE(De,this._blockSize-4);else{var vt=(De&4294967295)>>>0,Je=(De-vt)/4294967296;this._block.writeUInt32BE(Je,this._blockSize-8),this._block.writeUInt32BE(vt,this._blockSize-4)}this._update(this._block);var Ct=this._hash();return ze?Ct.toString(ze):Ct},Ke.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash$1=Ke,hash$1}var sha$1,hasRequiredSha$1;function requireSha$1(){if(hasRequiredSha$1)return sha$1;hasRequiredSha$1=1;var Me=requireInherits_browser(),xe=requireHash$1(),Ke=requireSafeBuffer$2().Buffer,ze=[1518500249,1859775393,-1894007588,-899497514],We=new Array(80);function De(){this.init(),this._w=We,xe.call(this,64,56)}Me(De,xe),De.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function vt(yt){return yt<<5|yt>>>27}function Je(yt){return yt<<30|yt>>>2}function Ct(yt,Ft,$t,Rt){return yt===0?Ft&$t|~Ft&Rt:yt===2?Ft&$t|Ft&Rt|$t&Rt:Ft^$t^Rt}return De.prototype._update=function(yt){for(var Ft=this._w,$t=this._a|0,Rt=this._b|0,qt=this._c|0,Pt=this._d|0,Nt=this._e|0,zt=0;zt<16;++zt)Ft[zt]=yt.readInt32BE(zt*4);for(;zt<80;++zt)Ft[zt]=Ft[zt-3]^Ft[zt-8]^Ft[zt-14]^Ft[zt-16];for(var Gt=0;Gt<80;++Gt){var Ut=~~(Gt/20),ii=vt($t)+Ct(Ut,Rt,qt,Pt)+Nt+Ft[Gt]+ze[Ut]|0;Nt=Pt,Pt=qt,qt=Je(Rt),Rt=$t,$t=ii}this._a=$t+this._a|0,this._b=Rt+this._b|0,this._c=qt+this._c|0,this._d=Pt+this._d|0,this._e=Nt+this._e|0},De.prototype._hash=function(){var yt=Ke.allocUnsafe(20);return yt.writeInt32BE(this._a|0,0),yt.writeInt32BE(this._b|0,4),yt.writeInt32BE(this._c|0,8),yt.writeInt32BE(this._d|0,12),yt.writeInt32BE(this._e|0,16),yt},sha$1=De,sha$1}var sha1,hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1;hasRequiredSha1=1;var Me=requireInherits_browser(),xe=requireHash$1(),Ke=requireSafeBuffer$2().Buffer,ze=[1518500249,1859775393,-1894007588,-899497514],We=new Array(80);function De(){this.init(),this._w=We,xe.call(this,64,56)}Me(De,xe),De.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function vt(Ft){return Ft<<1|Ft>>>31}function Je(Ft){return Ft<<5|Ft>>>27}function Ct(Ft){return Ft<<30|Ft>>>2}function yt(Ft,$t,Rt,qt){return Ft===0?$t&Rt|~$t&qt:Ft===2?$t&Rt|$t&qt|Rt&qt:$t^Rt^qt}return De.prototype._update=function(Ft){for(var $t=this._w,Rt=this._a|0,qt=this._b|0,Pt=this._c|0,Nt=this._d|0,zt=this._e|0,Gt=0;Gt<16;++Gt)$t[Gt]=Ft.readInt32BE(Gt*4);for(;Gt<80;++Gt)$t[Gt]=vt($t[Gt-3]^$t[Gt-8]^$t[Gt-14]^$t[Gt-16]);for(var Ut=0;Ut<80;++Ut){var ii=~~(Ut/20),ti=Je(Rt)+yt(ii,qt,Pt,Nt)+zt+$t[Ut]+ze[ii]|0;zt=Nt,Nt=Pt,Pt=Ct(qt),qt=Rt,Rt=ti}this._a=Rt+this._a|0,this._b=qt+this._b|0,this._c=Pt+this._c|0,this._d=Nt+this._d|0,this._e=zt+this._e|0},De.prototype._hash=function(){var Ft=Ke.allocUnsafe(20);return Ft.writeInt32BE(this._a|0,0),Ft.writeInt32BE(this._b|0,4),Ft.writeInt32BE(this._c|0,8),Ft.writeInt32BE(this._d|0,12),Ft.writeInt32BE(this._e|0,16),Ft},sha1=De,sha1}var sha256$1,hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$1;hasRequiredSha256=1;var Me=requireInherits_browser(),xe=requireHash$1(),Ke=requireSafeBuffer$2().Buffer,ze=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],We=new Array(64);function De(){this.init(),this._w=We,xe.call(this,64,56)}Me(De,xe),De.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function vt(Rt,qt,Pt){return Pt^Rt&(qt^Pt)}function Je(Rt,qt,Pt){return Rt&qt|Pt&(Rt|qt)}function Ct(Rt){return(Rt>>>2|Rt<<30)^(Rt>>>13|Rt<<19)^(Rt>>>22|Rt<<10)}function yt(Rt){return(Rt>>>6|Rt<<26)^(Rt>>>11|Rt<<21)^(Rt>>>25|Rt<<7)}function Ft(Rt){return(Rt>>>7|Rt<<25)^(Rt>>>18|Rt<<14)^Rt>>>3}function $t(Rt){return(Rt>>>17|Rt<<15)^(Rt>>>19|Rt<<13)^Rt>>>10}return De.prototype._update=function(Rt){for(var qt=this._w,Pt=this._a|0,Nt=this._b|0,zt=this._c|0,Gt=this._d|0,Ut=this._e|0,ii=this._f|0,ti=this._g|0,di=this._h|0,ci=0;ci<16;++ci)qt[ci]=Rt.readInt32BE(ci*4);for(;ci<64;++ci)qt[ci]=$t(qt[ci-2])+qt[ci-7]+Ft(qt[ci-15])+qt[ci-16]|0;for(var vi=0;vi<64;++vi){var bi=di+yt(Ut)+vt(Ut,ii,ti)+ze[vi]+qt[vi]|0,pi=Ct(Pt)+Je(Pt,Nt,zt)|0;di=ti,ti=ii,ii=Ut,Ut=Gt+bi|0,Gt=zt,zt=Nt,Nt=Pt,Pt=bi+pi|0}this._a=Pt+this._a|0,this._b=Nt+this._b|0,this._c=zt+this._c|0,this._d=Gt+this._d|0,this._e=Ut+this._e|0,this._f=ii+this._f|0,this._g=ti+this._g|0,this._h=di+this._h|0},De.prototype._hash=function(){var Rt=Ke.allocUnsafe(32);return Rt.writeInt32BE(this._a,0),Rt.writeInt32BE(this._b,4),Rt.writeInt32BE(this._c,8),Rt.writeInt32BE(this._d,12),Rt.writeInt32BE(this._e,16),Rt.writeInt32BE(this._f,20),Rt.writeInt32BE(this._g,24),Rt.writeInt32BE(this._h,28),Rt},sha256$1=De,sha256$1}var sha224$1,hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1;hasRequiredSha224=1;var Me=requireInherits_browser(),xe=requireSha256(),Ke=requireHash$1(),ze=requireSafeBuffer$2().Buffer,We=new Array(64);function De(){this.init(),this._w=We,Ke.call(this,64,56)}return Me(De,xe),De.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},De.prototype._hash=function(){var vt=ze.allocUnsafe(28);return vt.writeInt32BE(this._a,0),vt.writeInt32BE(this._b,4),vt.writeInt32BE(this._c,8),vt.writeInt32BE(this._d,12),vt.writeInt32BE(this._e,16),vt.writeInt32BE(this._f,20),vt.writeInt32BE(this._g,24),vt},sha224$1=De,sha224$1}var sha512$1,hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$1;hasRequiredSha512=1;var Me=requireInherits_browser(),xe=requireHash$1(),Ke=requireSafeBuffer$2().Buffer,ze=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],We=new Array(160);function De(){this.init(),this._w=We,xe.call(this,128,112)}Me(De,xe),De.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function vt(Nt,zt,Gt){return Gt^Nt&(zt^Gt)}function Je(Nt,zt,Gt){return Nt&zt|Gt&(Nt|zt)}function Ct(Nt,zt){return(Nt>>>28|zt<<4)^(zt>>>2|Nt<<30)^(zt>>>7|Nt<<25)}function yt(Nt,zt){return(Nt>>>14|zt<<18)^(Nt>>>18|zt<<14)^(zt>>>9|Nt<<23)}function Ft(Nt,zt){return(Nt>>>1|zt<<31)^(Nt>>>8|zt<<24)^Nt>>>7}function $t(Nt,zt){return(Nt>>>1|zt<<31)^(Nt>>>8|zt<<24)^(Nt>>>7|zt<<25)}function Rt(Nt,zt){return(Nt>>>19|zt<<13)^(zt>>>29|Nt<<3)^Nt>>>6}function qt(Nt,zt){return(Nt>>>19|zt<<13)^(zt>>>29|Nt<<3)^(Nt>>>6|zt<<26)}function Pt(Nt,zt){return Nt>>>0>>0?1:0}return De.prototype._update=function(Nt){for(var zt=this._w,Gt=this._ah|0,Ut=this._bh|0,ii=this._ch|0,ti=this._dh|0,di=this._eh|0,ci=this._fh|0,vi=this._gh|0,bi=this._hh|0,pi=this._al|0,Mi=this._bl|0,j=this._cl|0,Ae=this._dl|0,He=this._el|0,Ue=this._fl|0,Ge=this._gl|0,_t=this._hl|0,St=0;St<32;St+=2)zt[St]=Nt.readInt32BE(St*4),zt[St+1]=Nt.readInt32BE(St*4+4);for(;St<160;St+=2){var Ye=zt[St-30],ke=zt[St-30+1],Xe=Ft(Ye,ke),Vt=$t(ke,Ye);Ye=zt[St-4],ke=zt[St-4+1];var Jt=Rt(Ye,ke),ei=qt(ke,Ye),oi=zt[St-14],li=zt[St-14+1],fi=zt[St-32],ri=zt[St-32+1],Xt=Vt+li|0,mi=Xe+oi+Pt(Xt,Vt)|0;Xt=Xt+ei|0,mi=mi+Jt+Pt(Xt,ei)|0,Xt=Xt+ri|0,mi=mi+fi+Pt(Xt,ri)|0,zt[St]=mi,zt[St+1]=Xt}for(var Fi=0;Fi<160;Fi+=2){mi=zt[Fi],Xt=zt[Fi+1];var si=Je(Gt,Ut,ii),hi=Je(pi,Mi,j),ki=Ct(Gt,pi),Bi=Ct(pi,Gt),gi=yt(di,He),Ui=yt(He,di),Ei=ze[Fi],Li=ze[Fi+1],Ti=vt(di,ci,vi),Hi=vt(He,Ue,Ge),zi=_t+Ui|0,an=bi+gi+Pt(zi,_t)|0;zi=zi+Hi|0,an=an+Ti+Pt(zi,Hi)|0,zi=zi+Li|0,an=an+Ei+Pt(zi,Li)|0,zi=zi+Xt|0,an=an+mi+Pt(zi,Xt)|0;var Ci=Bi+hi|0,Ri=ki+si+Pt(Ci,Bi)|0;bi=vi,_t=Ge,vi=ci,Ge=Ue,ci=di,Ue=He,He=Ae+zi|0,di=ti+an+Pt(He,Ae)|0,ti=ii,Ae=j,ii=Ut,j=Mi,Ut=Gt,Mi=pi,pi=zi+Ci|0,Gt=an+Ri+Pt(pi,zi)|0}this._al=this._al+pi|0,this._bl=this._bl+Mi|0,this._cl=this._cl+j|0,this._dl=this._dl+Ae|0,this._el=this._el+He|0,this._fl=this._fl+Ue|0,this._gl=this._gl+Ge|0,this._hl=this._hl+_t|0,this._ah=this._ah+Gt+Pt(this._al,pi)|0,this._bh=this._bh+Ut+Pt(this._bl,Mi)|0,this._ch=this._ch+ii+Pt(this._cl,j)|0,this._dh=this._dh+ti+Pt(this._dl,Ae)|0,this._eh=this._eh+di+Pt(this._el,He)|0,this._fh=this._fh+ci+Pt(this._fl,Ue)|0,this._gh=this._gh+vi+Pt(this._gl,Ge)|0,this._hh=this._hh+bi+Pt(this._hl,_t)|0},De.prototype._hash=function(){var Nt=Ke.allocUnsafe(64);function zt(Gt,Ut,ii){Nt.writeInt32BE(Gt,ii),Nt.writeInt32BE(Ut,ii+4)}return zt(this._ah,this._al,0),zt(this._bh,this._bl,8),zt(this._ch,this._cl,16),zt(this._dh,this._dl,24),zt(this._eh,this._el,32),zt(this._fh,this._fl,40),zt(this._gh,this._gl,48),zt(this._hh,this._hl,56),Nt},sha512$1=De,sha512$1}var sha384$1,hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1;hasRequiredSha384=1;var Me=requireInherits_browser(),xe=requireSha512(),Ke=requireHash$1(),ze=requireSafeBuffer$2().Buffer,We=new Array(160);function De(){this.init(),this._w=We,Ke.call(this,128,112)}return Me(De,xe),De.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},De.prototype._hash=function(){var vt=ze.allocUnsafe(48);function Je(Ct,yt,Ft){vt.writeInt32BE(Ct,Ft),vt.writeInt32BE(yt,Ft+4)}return Je(this._ah,this._al,0),Je(this._bh,this._bl,8),Je(this._ch,this._cl,16),Je(this._dh,this._dl,24),Je(this._eh,this._el,32),Je(this._fh,this._fl,40),vt},sha384$1=De,sha384$1}var hasRequiredSha_js;function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,(function(Me){Me.exports=function(xe){var Ke=xe.toLowerCase(),ze=Me.exports[Ke];if(!ze)throw new Error(Ke+" is not supported (we accept pull requests)");return new ze},Me.exports.sha=requireSha$1(),Me.exports.sha1=requireSha1(),Me.exports.sha224=requireSha224(),Me.exports.sha256=requireSha256(),Me.exports.sha384=requireSha384(),Me.exports.sha512=requireSha512()})(sha_js)),sha_js.exports}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var Me=requireSafeBuffer$2().Buffer,xe=requireStreamBrowserify().Transform,Ke=requireString_decoder().StringDecoder,ze=requireInherits_browser(),We=requireToBuffer$2();function De(vt){xe.call(this),this.hashMode=typeof vt=="string",this.hashMode?this[vt]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return ze(De,xe),De.prototype.update=function(vt,Je,Ct){var yt=We(vt,Je),Ft=this._update(yt);return this.hashMode?this:(Ct&&(Ft=this._toString(Ft,Ct)),Ft)},De.prototype.setAutoPadding=function(){},De.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},De.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},De.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},De.prototype._transform=function(vt,Je,Ct){var yt;try{this.hashMode?this._update(vt):this.push(this._update(vt))}catch(Ft){yt=Ft}finally{Ct(yt)}},De.prototype._flush=function(vt){var Je;try{this.push(this.__final())}catch(Ct){Je=Ct}vt(Je)},De.prototype._finalOrDigest=function(vt){var Je=this.__final()||Me.alloc(0);return vt&&(Je=this._toString(Je,vt,!0)),Je},De.prototype._toString=function(vt,Je,Ct){if(this._decoder||(this._decoder=new Ke(Je),this._encoding=Je),this._encoding!==Je)throw new Error("can’t switch encodings");var yt=this._decoder.write(vt);return Ct&&(yt+=this._decoder.end()),yt},cipherBase=De,cipherBase}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var Me=requireInherits_browser(),xe=requireMd5_js(),Ke=requireRipemd160(),ze=requireSha_js(),We=requireCipherBase();function De(vt){We.call(this,"digest"),this._hash=vt}return Me(De,We),De.prototype._update=function(vt){this._hash.update(vt)},De.prototype._final=function(){return this._hash.digest()},browser$9=function(vt){return vt=vt.toLowerCase(),vt==="md5"?new xe:vt==="rmd160"||vt==="ripemd160"?new Ke:new De(ze(vt))},browser$9}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var Me=requireInherits_browser(),xe=requireSafeBuffer$2().Buffer,Ke=requireCipherBase(),ze=xe.alloc(128),We=64;function De(vt,Je){Ke.call(this,"digest"),typeof Je=="string"&&(Je=xe.from(Je)),this._alg=vt,this._key=Je,Je.length>We?Je=vt(Je):Je.length$t){var Rt=yt==="rmd160"?new De:vt(yt);Ft=Rt.update(Ft).digest()}else Ft.length<$t&&(Ft=ze.concat([Ft,Je],$t));for(var qt=this._ipad=ze.allocUnsafe($t),Pt=this._opad=ze.allocUnsafe($t),Nt=0;Nt<$t;Nt++)qt[Nt]=Ft[Nt]^54,Pt[Nt]=Ft[Nt]^92;this._hash=yt==="rmd160"?new De:vt(yt),this._hash.update(qt)}return Me(Ct,Ke),Ct.prototype._update=function(yt){this._hash.update(yt)},Ct.prototype._final=function(){var yt=this._hash.digest(),Ft=this._alg==="rmd160"?new De:vt(this._alg);return Ft.update(this._opad).update(yt).digest()},browser$8=function(yt,Ft){return yt=yt.toLowerCase(),yt==="rmd160"||yt==="ripemd160"?new Ct("rmd160",Ft):yt==="md5"?new xe(We,Ft):new Ct(yt,Ft)},browser$8}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$7={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var Me=isFinite,xe=Math.pow(2,30)-1;return precondition=function(Ke,ze){if(typeof Ke!="number")throw new TypeError("Iterations not a number");if(Ke<0||!Me(Ke))throw new TypeError("Bad iterations");if(typeof ze!="number")throw new TypeError("Key length not a number");if(ze<0||ze>xe||ze!==ze)throw new TypeError("Bad key length")},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var Me;if(commonjsGlobal.process&&commonjsGlobal.process.browser)Me="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var xe=parseInt(process$1.version.split(".")[0].slice(1),10);Me=xe>=6?"utf-8":"binary"}else Me="utf-8";return defaultEncoding_1=Me,defaultEncoding_1}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var Me=requireSafeBuffer$2().Buffer,xe=requireToBuffer$2(),Ke=typeof Uint8Array<"u",ze=Ke&&typeof ArrayBuffer<"u",We=ze&&ArrayBuffer.isView;return toBuffer_1=function(De,vt,Je){if(typeof De=="string"||Me.isBuffer(De)||Ke&&De instanceof Uint8Array||We&&We(De))return xe(De,vt);throw new TypeError(Je+" must be a string, a Buffer, a Uint8Array, or a DataView")},toBuffer_1}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var Me=requireMd5(),xe=requireRipemd160(),Ke=requireSha_js(),ze=requireSafeBuffer$2().Buffer,We=requirePrecondition(),De=requireDefaultEncoding(),vt=requireToBuffer(),Je=ze.alloc(128),Ct={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},yt={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function Ft(Pt){return new xe().update(Pt).digest()}function $t(Pt){function Nt(zt){return Ke(Pt).update(zt).digest()}return Pt==="rmd160"||Pt==="ripemd160"?Ft:Pt==="md5"?Me:Nt}function Rt(Pt,Nt,zt){var Gt=$t(Pt),Ut=Pt==="sha512"||Pt==="sha384"?128:64;Nt.length>Ut?Nt=Gt(Nt):Nt.length>>0},utils$3.writeUInt32BE=function(ze,We,De){ze[0+De]=We>>>24,ze[1+De]=We>>>16&255,ze[2+De]=We>>>8&255,ze[3+De]=We&255},utils$3.ip=function(ze,We,De,vt){for(var Je=0,Ct=0,yt=6;yt>=0;yt-=2){for(var Ft=0;Ft<=24;Ft+=8)Je<<=1,Je|=We>>>Ft+yt&1;for(var Ft=0;Ft<=24;Ft+=8)Je<<=1,Je|=ze>>>Ft+yt&1}for(var yt=6;yt>=0;yt-=2){for(var Ft=1;Ft<=25;Ft+=8)Ct<<=1,Ct|=We>>>Ft+yt&1;for(var Ft=1;Ft<=25;Ft+=8)Ct<<=1,Ct|=ze>>>Ft+yt&1}De[vt+0]=Je>>>0,De[vt+1]=Ct>>>0},utils$3.rip=function(ze,We,De,vt){for(var Je=0,Ct=0,yt=0;yt<4;yt++)for(var Ft=24;Ft>=0;Ft-=8)Je<<=1,Je|=We>>>Ft+yt&1,Je<<=1,Je|=ze>>>Ft+yt&1;for(var yt=4;yt<8;yt++)for(var Ft=24;Ft>=0;Ft-=8)Ct<<=1,Ct|=We>>>Ft+yt&1,Ct<<=1,Ct|=ze>>>Ft+yt&1;De[vt+0]=Je>>>0,De[vt+1]=Ct>>>0},utils$3.pc1=function(ze,We,De,vt){for(var Je=0,Ct=0,yt=7;yt>=5;yt--){for(var Ft=0;Ft<=24;Ft+=8)Je<<=1,Je|=We>>Ft+yt&1;for(var Ft=0;Ft<=24;Ft+=8)Je<<=1,Je|=ze>>Ft+yt&1}for(var Ft=0;Ft<=24;Ft+=8)Je<<=1,Je|=We>>Ft+yt&1;for(var yt=1;yt<=3;yt++){for(var Ft=0;Ft<=24;Ft+=8)Ct<<=1,Ct|=We>>Ft+yt&1;for(var Ft=0;Ft<=24;Ft+=8)Ct<<=1,Ct|=ze>>Ft+yt&1}for(var Ft=0;Ft<=24;Ft+=8)Ct<<=1,Ct|=ze>>Ft+yt&1;De[vt+0]=Je>>>0,De[vt+1]=Ct>>>0},utils$3.r28shl=function(ze,We){return ze<>>28-We};var Me=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$3.pc2=function(ze,We,De,vt){for(var Je=0,Ct=0,yt=Me.length>>>1,Ft=0;Ft>>Me[Ft]&1;for(var Ft=yt;Ft>>Me[Ft]&1;De[vt+0]=Je>>>0,De[vt+1]=Ct>>>0},utils$3.expand=function(ze,We,De){var vt=0,Je=0;vt=(ze&1)<<5|ze>>>27;for(var Ct=23;Ct>=15;Ct-=4)vt<<=6,vt|=ze>>>Ct&63;for(var Ct=11;Ct>=3;Ct-=4)Je|=ze>>>Ct&63,Je<<=6;Je|=(ze&31)<<1|ze>>>31,We[De+0]=vt>>>0,We[De+1]=Je>>>0};var xe=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$3.substitute=function(ze,We){for(var De=0,vt=0;vt<4;vt++){var Je=ze>>>18-vt*6&63,Ct=xe[vt*64+Je];De<<=4,De|=Ct}for(var vt=0;vt<4;vt++){var Je=We>>>18-vt*6&63,Ct=xe[256+vt*64+Je];De<<=4,De|=Ct}return De>>>0};var Ke=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return utils$3.permute=function(ze){for(var We=0,De=0;De>>Ke[De]&1;return We>>>0},utils$3.padSplit=function(ze,We,De){for(var vt=ze.toString(2);vt.length0;De--)ze+=this._buffer(Ke,ze),We+=this._flushBuffer(vt,We);return ze+=this._buffer(Ke,ze),vt},xe.prototype.final=function(Ke){var ze;Ke&&(ze=this.update(Ke));var We;return this.type==="encrypt"?We=this._finalEncrypt():We=this._finalDecrypt(),ze?ze.concat(We):We},xe.prototype._pad=function(Ke,ze){if(ze===0)return!1;for(;ze>>1];yt=Ke.r28shl(yt,Rt),Ft=Ke.r28shl(Ft,Rt),Ke.pc2(yt,Ft,Je.keys,$t)}},De.prototype._update=function(Je,Ct,yt,Ft){var $t=this._desState,Rt=Ke.readUInt32BE(Je,Ct),qt=Ke.readUInt32BE(Je,Ct+4);Ke.ip(Rt,qt,$t.tmp,0),Rt=$t.tmp[0],qt=$t.tmp[1],this.type==="encrypt"?this._encrypt($t,Rt,qt,$t.tmp,0):this._decrypt($t,Rt,qt,$t.tmp,0),Rt=$t.tmp[0],qt=$t.tmp[1],Ke.writeUInt32BE(yt,Rt,Ft),Ke.writeUInt32BE(yt,qt,Ft+4)},De.prototype._pad=function(Je,Ct){if(this.padding===!1)return!1;for(var yt=Je.length-Ct,Ft=Ct;Ft>>0,Rt=ii}Ke.rip(qt,Rt,Ft,$t)},De.prototype._decrypt=function(Je,Ct,yt,Ft,$t){for(var Rt=yt,qt=Ct,Pt=Je.keys.length-2;Pt>=0;Pt-=2){var Nt=Je.keys[Pt],zt=Je.keys[Pt+1];Ke.expand(Rt,Je.tmp,0),Nt^=Je.tmp[0],zt^=Je.tmp[1];var Gt=Ke.substitute(Nt,zt),Ut=Ke.permute(Gt),ii=Rt;Rt=(qt^Ut)>>>0,qt=ii}Ke.rip(Rt,qt,Ft,$t)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var Me=requireMinimalisticAssert(),xe=requireInherits_browser(),Ke={};function ze(De){Me.equal(De.length,8,"Invalid IV length"),this.iv=new Array(8);for(var vt=0;vt>Je%8,ze._prev=Ke(ze._prev,De?Ft:$t);return yt}function Ke(ze,We){var De=ze.length,vt=-1,Je=Me.allocUnsafe(ze.length);for(ze=Me.concat([ze,Me.from([We])]);++vt>7;return Je}return cfb1.encrypt=function(ze,We,De){for(var vt=We.length,Je=Me.allocUnsafe(vt),Ct=-1;++Ct>>24]^qt[Gt>>>16&255]^Pt[Ut>>>8&255]^Nt[ii&255]^Ct[bi++],di=Rt[Gt>>>24]^qt[Ut>>>16&255]^Pt[ii>>>8&255]^Nt[zt&255]^Ct[bi++],ci=Rt[Ut>>>24]^qt[ii>>>16&255]^Pt[zt>>>8&255]^Nt[Gt&255]^Ct[bi++],vi=Rt[ii>>>24]^qt[zt>>>16&255]^Pt[Gt>>>8&255]^Nt[Ut&255]^Ct[bi++],zt=ti,Gt=di,Ut=ci,ii=vi;return ti=(Ft[zt>>>24]<<24|Ft[Gt>>>16&255]<<16|Ft[Ut>>>8&255]<<8|Ft[ii&255])^Ct[bi++],di=(Ft[Gt>>>24]<<24|Ft[Ut>>>16&255]<<16|Ft[ii>>>8&255]<<8|Ft[zt&255])^Ct[bi++],ci=(Ft[Ut>>>24]<<24|Ft[ii>>>16&255]<<16|Ft[zt>>>8&255]<<8|Ft[Gt&255])^Ct[bi++],vi=(Ft[ii>>>24]<<24|Ft[zt>>>16&255]<<16|Ft[Gt>>>8&255]<<8|Ft[Ut&255])^Ct[bi++],ti=ti>>>0,di=di>>>0,ci=ci>>>0,vi=vi>>>0,[ti,di,ci,vi]}var We=[0,1,2,4,8,16,32,64,128,27,54],De=(function(){for(var Je=new Array(256),Ct=0;Ct<256;Ct++)Ct<128?Je[Ct]=Ct<<1:Je[Ct]=Ct<<1^283;for(var yt=[],Ft=[],$t=[[],[],[],[]],Rt=[[],[],[],[]],qt=0,Pt=0,Nt=0;Nt<256;++Nt){var zt=Pt^Pt<<1^Pt<<2^Pt<<3^Pt<<4;zt=zt>>>8^zt&255^99,yt[qt]=zt,Ft[zt]=qt;var Gt=Je[qt],Ut=Je[Gt],ii=Je[Ut],ti=Je[zt]*257^zt*16843008;$t[0][qt]=ti<<24|ti>>>8,$t[1][qt]=ti<<16|ti>>>16,$t[2][qt]=ti<<8|ti>>>24,$t[3][qt]=ti,ti=ii*16843009^Ut*65537^Gt*257^qt*16843008,Rt[0][zt]=ti<<24|ti>>>8,Rt[1][zt]=ti<<16|ti>>>16,Rt[2][zt]=ti<<8|ti>>>24,Rt[3][zt]=ti,qt===0?qt=Pt=1:(qt=Gt^Je[Je[Je[ii^Gt]]],Pt^=Je[Je[Pt]])}return{SBOX:yt,INV_SBOX:Ft,SUB_MIX:$t,INV_SUB_MIX:Rt}})();function vt(Je){this._key=xe(Je),this._reset()}return vt.blockSize=16,vt.keySize=256/8,vt.prototype.blockSize=vt.blockSize,vt.prototype.keySize=vt.keySize,vt.prototype._reset=function(){for(var Je=this._key,Ct=Je.length,yt=Ct+6,Ft=(yt+1)*4,$t=[],Rt=0;Rt>>24,qt=De.SBOX[qt>>>24]<<24|De.SBOX[qt>>>16&255]<<16|De.SBOX[qt>>>8&255]<<8|De.SBOX[qt&255],qt^=We[Rt/Ct|0]<<24):Ct>6&&Rt%Ct===4&&(qt=De.SBOX[qt>>>24]<<24|De.SBOX[qt>>>16&255]<<16|De.SBOX[qt>>>8&255]<<8|De.SBOX[qt&255]),$t[Rt]=$t[Rt-Ct]^qt}for(var Pt=[],Nt=0;Nt>>24]]^De.INV_SUB_MIX[1][De.SBOX[Gt>>>16&255]]^De.INV_SUB_MIX[2][De.SBOX[Gt>>>8&255]]^De.INV_SUB_MIX[3][De.SBOX[Gt&255]]}this._nRounds=yt,this._keySchedule=$t,this._invKeySchedule=Pt},vt.prototype.encryptBlockRaw=function(Je){return Je=xe(Je),ze(Je,this._keySchedule,De.SUB_MIX,De.SBOX,this._nRounds)},vt.prototype.encryptBlock=function(Je){var Ct=this.encryptBlockRaw(Je),yt=Me.allocUnsafe(16);return yt.writeUInt32BE(Ct[0],0),yt.writeUInt32BE(Ct[1],4),yt.writeUInt32BE(Ct[2],8),yt.writeUInt32BE(Ct[3],12),yt},vt.prototype.decryptBlock=function(Je){Je=xe(Je);var Ct=Je[1];Je[1]=Je[3],Je[3]=Ct;var yt=ze(Je,this._invKeySchedule,De.INV_SUB_MIX,De.INV_SBOX,this._nRounds),Ft=Me.allocUnsafe(16);return Ft.writeUInt32BE(yt[0],0),Ft.writeUInt32BE(yt[3],4),Ft.writeUInt32BE(yt[2],8),Ft.writeUInt32BE(yt[1],12),Ft},vt.prototype.scrub=function(){Ke(this._keySchedule),Ke(this._invKeySchedule),Ke(this._key)},aes.AES=vt,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var Me=requireSafeBuffer$2().Buffer,xe=Me.alloc(16,0);function Ke(De){return[De.readUInt32BE(0),De.readUInt32BE(4),De.readUInt32BE(8),De.readUInt32BE(12)]}function ze(De){var vt=Me.allocUnsafe(16);return vt.writeUInt32BE(De[0]>>>0,0),vt.writeUInt32BE(De[1]>>>0,4),vt.writeUInt32BE(De[2]>>>0,8),vt.writeUInt32BE(De[3]>>>0,12),vt}function We(De){this.h=De,this.state=Me.alloc(16,0),this.cache=Me.allocUnsafe(0)}return We.prototype.ghash=function(De){for(var vt=-1;++vt0;Je--)De[Je]=De[Je]>>>1|(De[Je-1]&1)<<31;De[0]=De[0]>>>1,yt&&(De[0]=De[0]^225<<24)}this.state=ze(vt)},We.prototype.update=function(De){this.cache=Me.concat([this.cache,De]);for(var vt;this.cache.length>=16;)vt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(vt)},We.prototype.final=function(De,vt){return this.cache.length&&this.ghash(Me.concat([this.cache,xe],16)),this.ghash(ze([0,De,0,vt])),this.state},ghash=We,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var Me=requireAes(),xe=requireSafeBuffer$2().Buffer,Ke=requireCipherBase(),ze=requireInherits_browser(),We=requireGhash(),De=requireBufferXor(),vt=requireIncr32();function Je(Ft,$t){var Rt=0;Ft.length!==$t.length&&Rt++;for(var qt=Math.min(Ft.length,$t.length),Pt=0;Pt0||vt>0;){var $t=new xe;$t.update(Ft),$t.update(ze),We&&$t.update(We),Ft=$t.digest();var Rt=0;if(Je>0){var qt=Ct.length-Je;Rt=Math.min(Je,Ft.length),Ft.copy(Ct,qt,0,Rt),Je-=Rt}if(Rt0){var Pt=yt.length-vt,Nt=Math.min(vt,Ft.length-Rt);Ft.copy(yt,Pt,Rt,Rt+Nt),vt-=Nt}}return Ft.fill(0),{key:Ct,iv:yt}}return evp_bytestokey=Ke,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var Me=requireModes$1(),xe=requireAuthCipher(),Ke=requireSafeBuffer$2().Buffer,ze=requireStreamCipher(),We=requireCipherBase(),De=requireAes(),vt=requireEvp_bytestokey(),Je=requireInherits_browser();function Ct(qt,Pt,Nt){We.call(this),this._cache=new Ft,this._cipher=new De.AES(Pt),this._prev=Ke.from(Nt),this._mode=qt,this._autopadding=!0}Je(Ct,We),Ct.prototype._update=function(qt){this._cache.add(qt);for(var Pt,Nt,zt=[];Pt=this._cache.get();)Nt=this._mode.encrypt(this,Pt),zt.push(Nt);return Ke.concat(zt)};var yt=Ke.alloc(16,16);Ct.prototype._final=function(){var qt=this._cache.flush();if(this._autopadding)return qt=this._mode.encrypt(this,qt),this._cipher.scrub(),qt;if(!qt.equals(yt))throw this._cipher.scrub(),new Error("data not multiple of block length")},Ct.prototype.setAutoPadding=function(qt){return this._autopadding=!!qt,this};function Ft(){this.cache=Ke.allocUnsafe(0)}Ft.prototype.add=function(qt){this.cache=Ke.concat([this.cache,qt])},Ft.prototype.get=function(){if(this.cache.length>15){var qt=this.cache.slice(0,16);return this.cache=this.cache.slice(16),qt}return null},Ft.prototype.flush=function(){for(var qt=16-this.cache.length,Pt=Ke.allocUnsafe(qt),Nt=-1;++Nt16)return Pt=this.cache.slice(0,16),this.cache=this.cache.slice(16),Pt}else if(this.cache.length>=16)return Pt=this.cache.slice(0,16),this.cache=this.cache.slice(16),Pt;return null},yt.prototype.flush=function(){if(this.cache.length)return this.cache};function Ft(qt){var Pt=qt[15];if(Pt<1||Pt>16)throw new Error("unable to decrypt data");for(var Nt=-1;++Nt0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn$c)})(bn$d)),bn$d.exports}var bn$b={exports:{}},bn$a=bn$b.exports,hasRequiredBn$5;function requireBn$5(){return hasRequiredBn$5||(hasRequiredBn$5=1,(function(Me){(function(xe,Ke){function ze(j,Ae){if(!j)throw new Error(Ae||"Assertion failed")}function We(j,Ae){j.super_=Ae;var He=function(){};He.prototype=Ae.prototype,j.prototype=new He,j.prototype.constructor=j}function De(j,Ae,He){if(De.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((Ae==="le"||Ae==="be")&&(He=Ae,Ae=10),this._init(j||0,Ae||10,He||"be"))}typeof xe=="object"?xe.exports=De:Ke.BN=De,De.BN=De,De.wordSize=26;var vt;try{typeof window<"u"&&typeof window.Buffer<"u"?vt=window.Buffer:vt=requireDist().Buffer}catch{}De.isBN=function(j){return j instanceof De?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===De.wordSize&&Array.isArray(j.words)},De.max=function(j,Ae){return j.cmp(Ae)>0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn$a)})(bn$b)),bn$b.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var Me;brorand.exports=function(ze){return Me||(Me=new xe(null)),Me.generate(ze)};function xe(ze){this.rand=ze}if(brorand.exports.Rand=xe,xe.prototype.generate=function(ze){return this._rand(ze)},xe.prototype._rand=function(ze){if(this.rand.getBytes)return this.rand.getBytes(ze);for(var We=new Uint8Array(ze),De=0;De=0);return vt},Ke.prototype._randrange=function(ze,We){var De=We.sub(ze);return ze.add(this._randbelow(De))},Ke.prototype.test=function(ze,We,De){var vt=ze.bitLength(),Je=Me.mont(ze),Ct=new Me(1).toRed(Je);We||(We=Math.max(1,vt/48|0));for(var yt=ze.subn(1),Ft=0;!yt.testn(Ft);Ft++);for(var $t=ze.shrn(Ft),Rt=yt.toRed(Je),qt=!0;We>0;We--){var Pt=this._randrange(new Me(2),yt);De&&De(Pt);var Nt=Pt.toRed(Je).redPow($t);if(!(Nt.cmp(Ct)===0||Nt.cmp(Rt)===0)){for(var zt=1;zt0;We--){var Rt=this._randrange(new Me(2),Ct),qt=ze.gcd(Rt);if(qt.cmpn(1)!==0)return qt;var Pt=Rt.toRed(vt).redPow(Ft);if(!(Pt.cmp(Je)===0||Pt.cmp($t)===0)){for(var Nt=1;NtGt;)ii.ishrn(1);if(ii.isEven()&&ii.iadd(De),ii.testn(1)||ii.iadd(vt),Ut.cmp(vt)){if(!Ut.cmp(Je))for(;ii.mod(Ct).cmp(yt);)ii.iadd($t)}else for(;ii.mod(Ke).cmp(Ft);)ii.iadd($t);if(ti=ii.shrn(1),Pt(ti)&&Pt(ii)&&Nt(ti)&&Nt(ii)&&We.test(ti)&&We.test(ii))return ii}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var Me=requireBn$6(),xe=requireMr(),Ke=new xe,ze=new Me(24),We=new Me(11),De=new Me(10),vt=new Me(3),Je=new Me(7),Ct=requireGeneratePrime(),yt=requireBrowser$b();dh=Pt;function Ft(zt,Gt){return Gt=Gt||"utf8",Buffer.isBuffer(zt)||(zt=new Buffer(zt,Gt)),this._pub=new Me(zt),this}function $t(zt,Gt){return Gt=Gt||"utf8",Buffer.isBuffer(zt)||(zt=new Buffer(zt,Gt)),this._priv=new Me(zt),this}var Rt={};function qt(zt,Gt){var Ut=Gt.toString("hex"),ii=[Ut,zt.toString(16)].join("_");if(ii in Rt)return Rt[ii];var ti=0;if(zt.isEven()||!Ct.simpleSieve||!Ct.fermatTest(zt)||!Ke.test(zt))return ti+=1,Ut==="02"||Ut==="05"?ti+=8:ti+=4,Rt[ii]=ti,ti;Ke.test(zt.shrn(1))||(ti+=2);var di;switch(Ut){case"02":zt.mod(ze).cmp(We)&&(ti+=8);break;case"05":di=zt.mod(De),di.cmp(vt)&&di.cmp(Je)&&(ti+=8);break;default:ti+=4}return Rt[ii]=ti,ti}function Pt(zt,Gt,Ut){this.setGenerator(Gt),this.__prime=new Me(zt),this._prime=Me.mont(this.__prime),this._primeLen=zt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,Ut?(this.setPublicKey=Ft,this.setPrivateKey=$t):this._primeCode=8}Object.defineProperty(Pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=qt(this.__prime,this.__gen)),this._primeCode}}),Pt.prototype.generateKeys=function(){return this._priv||(this._priv=new Me(yt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},Pt.prototype.computeSecret=function(zt){zt=new Me(zt),zt=zt.toRed(this._prime);var Gt=zt.redPow(this._priv).fromRed(),Ut=new Buffer(Gt.toArray()),ii=this.getPrime();if(Ut.length0?He:Ue},De.min=function(He,Ue){return He.cmp(Ue)<0?He:Ue},De.prototype._init=function(He,Ue,Ge){if(typeof He=="number")return this._initNumber(He,Ue,Ge);if(typeof He=="object")return this._initArray(He,Ue,Ge);Ue==="hex"&&(Ue=16),ze(Ue===(Ue|0)&&Ue>=2&&Ue<=36),He=He.toString().replace(/\s+/g,"");var _t=0;He[0]==="-"&&(_t++,this.negative=1),_t=0;_t-=3)Ye=He[_t]|He[_t-1]<<8|He[_t-2]<<16,this.words[St]|=Ye<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,St++);else if(Ge==="le")for(_t=0,St=0;_t>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,St++);return this._strip()};function Je(He,Ue){var Ge=He.charCodeAt(Ue);if(Ge>=48&&Ge<=57)return Ge-48;if(Ge>=65&&Ge<=70)return Ge-55;if(Ge>=97&&Ge<=102)return Ge-87;ze(!1,"Invalid character in "+He)}function Ct(He,Ue,Ge){var _t=Je(He,Ge);return Ge-1>=Ue&&(_t|=Je(He,Ge-1)<<4),_t}De.prototype._parseHex=function(He,Ue,Ge){this.length=Math.ceil((He.length-Ue)/6),this.words=new Array(this.length);for(var _t=0;_t=Ue;_t-=2)ke=Ct(He,Ue,_t)<=18?(St-=18,Ye+=1,this.words[Ye]|=ke>>>26):St+=8;else{var Xe=He.length-Ue;for(_t=Xe%2===0?Ue+1:Ue;_t=18?(St-=18,Ye+=1,this.words[Ye]|=ke>>>26):St+=8}this._strip()};function yt(He,Ue,Ge,_t){for(var St=0,Ye=0,ke=Math.min(He.length,Ge),Xe=Ue;Xe=49?Ye=Vt-49+10:Vt>=17?Ye=Vt-17+10:Ye=Vt,ze(Vt>=0&&Ye<_t,"Invalid character"),St+=Ye}return St}De.prototype._parseBase=function(He,Ue,Ge){this.words=[0],this.length=1;for(var _t=0,St=1;St<=67108863;St*=Ue)_t++;_t--,St=St/Ue|0;for(var Ye=He.length-Ge,ke=Ye%_t,Xe=Math.min(Ye,Ye-ke)+Ge,Vt=0,Jt=Ge;Jt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{De.prototype[Symbol.for("nodejs.util.inspect.custom")]=$t}catch{De.prototype.inspect=$t}else De.prototype.inspect=$t;function $t(){return(this.red?""}var Rt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],qt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(He,Ue){He=He||10,Ue=Ue|0||1;var Ge;if(He===16||He==="hex"){Ge="";for(var _t=0,St=0,Ye=0;Ye>>24-_t&16777215,_t+=2,_t>=26&&(_t-=26,Ye--),St!==0||Ye!==this.length-1?Ge=Rt[6-Xe.length]+Xe+Ge:Ge=Xe+Ge}for(St!==0&&(Ge=St.toString(16)+Ge);Ge.length%Ue!==0;)Ge="0"+Ge;return this.negative!==0&&(Ge="-"+Ge),Ge}if(He===(He|0)&&He>=2&&He<=36){var Vt=qt[He],Jt=Pt[He];Ge="";var ei=this.clone();for(ei.negative=0;!ei.isZero();){var oi=ei.modrn(Jt).toString(He);ei=ei.idivn(Jt),ei.isZero()?Ge=oi+Ge:Ge=Rt[Vt-oi.length]+oi+Ge}for(this.isZero()&&(Ge="0"+Ge);Ge.length%Ue!==0;)Ge="0"+Ge;return this.negative!==0&&(Ge="-"+Ge),Ge}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var He=this.words[0];return this.length===2?He+=this.words[1]*67108864:this.length===3&&this.words[2]===1?He+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-He:He},De.prototype.toJSON=function(){return this.toString(16,2)},vt&&(De.prototype.toBuffer=function(He,Ue){return this.toArrayLike(vt,He,Ue)}),De.prototype.toArray=function(He,Ue){return this.toArrayLike(Array,He,Ue)};var Nt=function(He,Ue){return He.allocUnsafe?He.allocUnsafe(Ue):new He(Ue)};De.prototype.toArrayLike=function(He,Ue,Ge){this._strip();var _t=this.byteLength(),St=Ge||Math.max(1,_t);ze(_t<=St,"byte array longer than desired length"),ze(St>0,"Requested array length <= 0");var Ye=Nt(He,St),ke=Ue==="le"?"LE":"BE";return this["_toArrayLike"+ke](Ye,_t),Ye},De.prototype._toArrayLikeLE=function(He,Ue){for(var Ge=0,_t=0,St=0,Ye=0;St>8&255),Ge>16&255),Ye===6?(Ge>24&255),_t=0,Ye=0):(_t=ke>>>24,Ye+=2)}if(Ge=0&&(He[Ge--]=ke>>8&255),Ge>=0&&(He[Ge--]=ke>>16&255),Ye===6?(Ge>=0&&(He[Ge--]=ke>>24&255),_t=0,Ye=0):(_t=ke>>>24,Ye+=2)}if(Ge>=0)for(He[Ge--]=_t;Ge>=0;)He[Ge--]=0},Math.clz32?De.prototype._countBits=function(He){return 32-Math.clz32(He)}:De.prototype._countBits=function(He){var Ue=He,Ge=0;return Ue>=4096&&(Ge+=13,Ue>>>=13),Ue>=64&&(Ge+=7,Ue>>>=7),Ue>=8&&(Ge+=4,Ue>>>=4),Ue>=2&&(Ge+=2,Ue>>>=2),Ge+Ue},De.prototype._zeroBits=function(He){if(He===0)return 26;var Ue=He,Ge=0;return(Ue&8191)===0&&(Ge+=13,Ue>>>=13),(Ue&127)===0&&(Ge+=7,Ue>>>=7),(Ue&15)===0&&(Ge+=4,Ue>>>=4),(Ue&3)===0&&(Ge+=2,Ue>>>=2),(Ue&1)===0&&Ge++,Ge},De.prototype.bitLength=function(){var He=this.words[this.length-1],Ue=this._countBits(He);return(this.length-1)*26+Ue};function zt(He){for(var Ue=new Array(He.bitLength()),Ge=0;Ge>>St&1}return Ue}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var He=0,Ue=0;UeHe.length?this.clone().ior(He):He.clone().ior(this)},De.prototype.uor=function(He){return this.length>He.length?this.clone().iuor(He):He.clone().iuor(this)},De.prototype.iuand=function(He){var Ue;this.length>He.length?Ue=He:Ue=this;for(var Ge=0;GeHe.length?this.clone().iand(He):He.clone().iand(this)},De.prototype.uand=function(He){return this.length>He.length?this.clone().iuand(He):He.clone().iuand(this)},De.prototype.iuxor=function(He){var Ue,Ge;this.length>He.length?(Ue=this,Ge=He):(Ue=He,Ge=this);for(var _t=0;_tHe.length?this.clone().ixor(He):He.clone().ixor(this)},De.prototype.uxor=function(He){return this.length>He.length?this.clone().iuxor(He):He.clone().iuxor(this)},De.prototype.inotn=function(He){ze(typeof He=="number"&&He>=0);var Ue=Math.ceil(He/26)|0,Ge=He%26;this._expand(Ue),Ge>0&&Ue--;for(var _t=0;_t0&&(this.words[_t]=~this.words[_t]&67108863>>26-Ge),this._strip()},De.prototype.notn=function(He){return this.clone().inotn(He)},De.prototype.setn=function(He,Ue){ze(typeof He=="number"&&He>=0);var Ge=He/26|0,_t=He%26;return this._expand(Ge+1),Ue?this.words[Ge]=this.words[Ge]|1<<_t:this.words[Ge]=this.words[Ge]&~(1<<_t),this._strip()},De.prototype.iadd=function(He){var Ue;if(this.negative!==0&&He.negative===0)return this.negative=0,Ue=this.isub(He),this.negative^=1,this._normSign();if(this.negative===0&&He.negative!==0)return He.negative=0,Ue=this.isub(He),He.negative=1,Ue._normSign();var Ge,_t;this.length>He.length?(Ge=this,_t=He):(Ge=He,_t=this);for(var St=0,Ye=0;Ye<_t.length;Ye++)Ue=(Ge.words[Ye]|0)+(_t.words[Ye]|0)+St,this.words[Ye]=Ue&67108863,St=Ue>>>26;for(;St!==0&&Ye>>26;if(this.length=Ge.length,St!==0)this.words[this.length]=St,this.length++;else if(Ge!==this)for(;YeHe.length?this.clone().iadd(He):He.clone().iadd(this)},De.prototype.isub=function(He){if(He.negative!==0){He.negative=0;var Ue=this.iadd(He);return He.negative=1,Ue._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(He),this.negative=1,this._normSign();var Ge=this.cmp(He);if(Ge===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _t,St;Ge>0?(_t=this,St=He):(_t=He,St=this);for(var Ye=0,ke=0;ke>26,this.words[ke]=Ue&67108863;for(;Ye!==0&&ke<_t.length;ke++)Ue=(_t.words[ke]|0)+Ye,Ye=Ue>>26,this.words[ke]=Ue&67108863;if(Ye===0&&ke<_t.length&&_t!==this)for(;ke<_t.length;ke++)this.words[ke]=_t.words[ke];return this.length=Math.max(this.length,ke),_t!==this&&(this.negative=1),this._strip()},De.prototype.sub=function(He){return this.clone().isub(He)};function Gt(He,Ue,Ge){Ge.negative=Ue.negative^He.negative;var _t=He.length+Ue.length|0;Ge.length=_t,_t=_t-1|0;var St=He.words[0]|0,Ye=Ue.words[0]|0,ke=St*Ye,Xe=ke&67108863,Vt=ke/67108864|0;Ge.words[0]=Xe;for(var Jt=1;Jt<_t;Jt++){for(var ei=Vt>>>26,oi=Vt&67108863,li=Math.min(Jt,Ue.length-1),fi=Math.max(0,Jt-He.length+1);fi<=li;fi++){var ri=Jt-fi|0;St=He.words[ri]|0,Ye=Ue.words[fi]|0,ke=St*Ye+oi,ei+=ke/67108864|0,oi=ke&67108863}Ge.words[Jt]=oi|0,Vt=ei|0}return Vt!==0?Ge.words[Jt]=Vt|0:Ge.length--,Ge._strip()}var Ut=function(He,Ue,Ge){var _t=He.words,St=Ue.words,Ye=Ge.words,ke=0,Xe,Vt,Jt,ei=_t[0]|0,oi=ei&8191,li=ei>>>13,fi=_t[1]|0,ri=fi&8191,Xt=fi>>>13,mi=_t[2]|0,Fi=mi&8191,si=mi>>>13,hi=_t[3]|0,ki=hi&8191,Bi=hi>>>13,gi=_t[4]|0,Ui=gi&8191,Ei=gi>>>13,Li=_t[5]|0,Ti=Li&8191,Hi=Li>>>13,zi=_t[6]|0,an=zi&8191,Ci=zi>>>13,Ri=_t[7]|0,sn=Ri&8191,Zi=Ri>>>13,Xi=_t[8]|0,xn=Xi&8191,ni=Xi>>>13,yi=_t[9]|0,Si=yi&8191,xi=yi>>>13,Ni=St[0]|0,rn=Ni&8191,qi=Ni>>>13,Ki=St[1]|0,ln=Ki&8191,_i=Ki>>>13,$i=St[2]|0,on=$i&8191,Vi=$i>>>13,Di=St[3]|0,nn=Di&8191,Pi=Di>>>13,ji=St[4]|0,kn=ji&8191,Yi=ji>>>13,Yt=St[5]|0,ui=Yt&8191,ai=Yt>>>13,wi=St[6]|0,Ii=wi&8191,Ai=wi>>>13,Oi=St[7]|0,Mn=Oi&8191,Qi=Oi>>>13,Wi=St[8]|0,wn=Wi&8191,Gi=Wi>>>13,Ji=St[9]|0,An=Ji&8191,Dn=Ji>>>13;Ge.negative=He.negative^Ue.negative,Ge.length=19,Xe=Math.imul(oi,rn),Vt=Math.imul(oi,qi),Vt=Vt+Math.imul(li,rn)|0,Jt=Math.imul(li,qi);var $n=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+($n>>>26)|0,$n&=67108863,Xe=Math.imul(ri,rn),Vt=Math.imul(ri,qi),Vt=Vt+Math.imul(Xt,rn)|0,Jt=Math.imul(Xt,qi),Xe=Xe+Math.imul(oi,ln)|0,Vt=Vt+Math.imul(oi,_i)|0,Vt=Vt+Math.imul(li,ln)|0,Jt=Jt+Math.imul(li,_i)|0;var Tn=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Xe=Math.imul(Fi,rn),Vt=Math.imul(Fi,qi),Vt=Vt+Math.imul(si,rn)|0,Jt=Math.imul(si,qi),Xe=Xe+Math.imul(ri,ln)|0,Vt=Vt+Math.imul(ri,_i)|0,Vt=Vt+Math.imul(Xt,ln)|0,Jt=Jt+Math.imul(Xt,_i)|0,Xe=Xe+Math.imul(oi,on)|0,Vt=Vt+Math.imul(oi,Vi)|0,Vt=Vt+Math.imul(li,on)|0,Jt=Jt+Math.imul(li,Vi)|0;var Zn=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Xe=Math.imul(ki,rn),Vt=Math.imul(ki,qi),Vt=Vt+Math.imul(Bi,rn)|0,Jt=Math.imul(Bi,qi),Xe=Xe+Math.imul(Fi,ln)|0,Vt=Vt+Math.imul(Fi,_i)|0,Vt=Vt+Math.imul(si,ln)|0,Jt=Jt+Math.imul(si,_i)|0,Xe=Xe+Math.imul(ri,on)|0,Vt=Vt+Math.imul(ri,Vi)|0,Vt=Vt+Math.imul(Xt,on)|0,Jt=Jt+Math.imul(Xt,Vi)|0,Xe=Xe+Math.imul(oi,nn)|0,Vt=Vt+Math.imul(oi,Pi)|0,Vt=Vt+Math.imul(li,nn)|0,Jt=Jt+Math.imul(li,Pi)|0;var Xn=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Xe=Math.imul(Ui,rn),Vt=Math.imul(Ui,qi),Vt=Vt+Math.imul(Ei,rn)|0,Jt=Math.imul(Ei,qi),Xe=Xe+Math.imul(ki,ln)|0,Vt=Vt+Math.imul(ki,_i)|0,Vt=Vt+Math.imul(Bi,ln)|0,Jt=Jt+Math.imul(Bi,_i)|0,Xe=Xe+Math.imul(Fi,on)|0,Vt=Vt+Math.imul(Fi,Vi)|0,Vt=Vt+Math.imul(si,on)|0,Jt=Jt+Math.imul(si,Vi)|0,Xe=Xe+Math.imul(ri,nn)|0,Vt=Vt+Math.imul(ri,Pi)|0,Vt=Vt+Math.imul(Xt,nn)|0,Jt=Jt+Math.imul(Xt,Pi)|0,Xe=Xe+Math.imul(oi,kn)|0,Vt=Vt+Math.imul(oi,Yi)|0,Vt=Vt+Math.imul(li,kn)|0,Jt=Jt+Math.imul(li,Yi)|0;var Jn=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Xe=Math.imul(Ti,rn),Vt=Math.imul(Ti,qi),Vt=Vt+Math.imul(Hi,rn)|0,Jt=Math.imul(Hi,qi),Xe=Xe+Math.imul(Ui,ln)|0,Vt=Vt+Math.imul(Ui,_i)|0,Vt=Vt+Math.imul(Ei,ln)|0,Jt=Jt+Math.imul(Ei,_i)|0,Xe=Xe+Math.imul(ki,on)|0,Vt=Vt+Math.imul(ki,Vi)|0,Vt=Vt+Math.imul(Bi,on)|0,Jt=Jt+Math.imul(Bi,Vi)|0,Xe=Xe+Math.imul(Fi,nn)|0,Vt=Vt+Math.imul(Fi,Pi)|0,Vt=Vt+Math.imul(si,nn)|0,Jt=Jt+Math.imul(si,Pi)|0,Xe=Xe+Math.imul(ri,kn)|0,Vt=Vt+Math.imul(ri,Yi)|0,Vt=Vt+Math.imul(Xt,kn)|0,Jt=Jt+Math.imul(Xt,Yi)|0,Xe=Xe+Math.imul(oi,ui)|0,Vt=Vt+Math.imul(oi,ai)|0,Vt=Vt+Math.imul(li,ui)|0,Jt=Jt+Math.imul(li,ai)|0;var es=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(es>>>26)|0,es&=67108863,Xe=Math.imul(an,rn),Vt=Math.imul(an,qi),Vt=Vt+Math.imul(Ci,rn)|0,Jt=Math.imul(Ci,qi),Xe=Xe+Math.imul(Ti,ln)|0,Vt=Vt+Math.imul(Ti,_i)|0,Vt=Vt+Math.imul(Hi,ln)|0,Jt=Jt+Math.imul(Hi,_i)|0,Xe=Xe+Math.imul(Ui,on)|0,Vt=Vt+Math.imul(Ui,Vi)|0,Vt=Vt+Math.imul(Ei,on)|0,Jt=Jt+Math.imul(Ei,Vi)|0,Xe=Xe+Math.imul(ki,nn)|0,Vt=Vt+Math.imul(ki,Pi)|0,Vt=Vt+Math.imul(Bi,nn)|0,Jt=Jt+Math.imul(Bi,Pi)|0,Xe=Xe+Math.imul(Fi,kn)|0,Vt=Vt+Math.imul(Fi,Yi)|0,Vt=Vt+Math.imul(si,kn)|0,Jt=Jt+Math.imul(si,Yi)|0,Xe=Xe+Math.imul(ri,ui)|0,Vt=Vt+Math.imul(ri,ai)|0,Vt=Vt+Math.imul(Xt,ui)|0,Jt=Jt+Math.imul(Xt,ai)|0,Xe=Xe+Math.imul(oi,Ii)|0,Vt=Vt+Math.imul(oi,Ai)|0,Vt=Vt+Math.imul(li,Ii)|0,Jt=Jt+Math.imul(li,Ai)|0;var ts=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(ts>>>26)|0,ts&=67108863,Xe=Math.imul(sn,rn),Vt=Math.imul(sn,qi),Vt=Vt+Math.imul(Zi,rn)|0,Jt=Math.imul(Zi,qi),Xe=Xe+Math.imul(an,ln)|0,Vt=Vt+Math.imul(an,_i)|0,Vt=Vt+Math.imul(Ci,ln)|0,Jt=Jt+Math.imul(Ci,_i)|0,Xe=Xe+Math.imul(Ti,on)|0,Vt=Vt+Math.imul(Ti,Vi)|0,Vt=Vt+Math.imul(Hi,on)|0,Jt=Jt+Math.imul(Hi,Vi)|0,Xe=Xe+Math.imul(Ui,nn)|0,Vt=Vt+Math.imul(Ui,Pi)|0,Vt=Vt+Math.imul(Ei,nn)|0,Jt=Jt+Math.imul(Ei,Pi)|0,Xe=Xe+Math.imul(ki,kn)|0,Vt=Vt+Math.imul(ki,Yi)|0,Vt=Vt+Math.imul(Bi,kn)|0,Jt=Jt+Math.imul(Bi,Yi)|0,Xe=Xe+Math.imul(Fi,ui)|0,Vt=Vt+Math.imul(Fi,ai)|0,Vt=Vt+Math.imul(si,ui)|0,Jt=Jt+Math.imul(si,ai)|0,Xe=Xe+Math.imul(ri,Ii)|0,Vt=Vt+Math.imul(ri,Ai)|0,Vt=Vt+Math.imul(Xt,Ii)|0,Jt=Jt+Math.imul(Xt,Ai)|0,Xe=Xe+Math.imul(oi,Mn)|0,Vt=Vt+Math.imul(oi,Qi)|0,Vt=Vt+Math.imul(li,Mn)|0,Jt=Jt+Math.imul(li,Qi)|0;var rs=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(rs>>>26)|0,rs&=67108863,Xe=Math.imul(xn,rn),Vt=Math.imul(xn,qi),Vt=Vt+Math.imul(ni,rn)|0,Jt=Math.imul(ni,qi),Xe=Xe+Math.imul(sn,ln)|0,Vt=Vt+Math.imul(sn,_i)|0,Vt=Vt+Math.imul(Zi,ln)|0,Jt=Jt+Math.imul(Zi,_i)|0,Xe=Xe+Math.imul(an,on)|0,Vt=Vt+Math.imul(an,Vi)|0,Vt=Vt+Math.imul(Ci,on)|0,Jt=Jt+Math.imul(Ci,Vi)|0,Xe=Xe+Math.imul(Ti,nn)|0,Vt=Vt+Math.imul(Ti,Pi)|0,Vt=Vt+Math.imul(Hi,nn)|0,Jt=Jt+Math.imul(Hi,Pi)|0,Xe=Xe+Math.imul(Ui,kn)|0,Vt=Vt+Math.imul(Ui,Yi)|0,Vt=Vt+Math.imul(Ei,kn)|0,Jt=Jt+Math.imul(Ei,Yi)|0,Xe=Xe+Math.imul(ki,ui)|0,Vt=Vt+Math.imul(ki,ai)|0,Vt=Vt+Math.imul(Bi,ui)|0,Jt=Jt+Math.imul(Bi,ai)|0,Xe=Xe+Math.imul(Fi,Ii)|0,Vt=Vt+Math.imul(Fi,Ai)|0,Vt=Vt+Math.imul(si,Ii)|0,Jt=Jt+Math.imul(si,Ai)|0,Xe=Xe+Math.imul(ri,Mn)|0,Vt=Vt+Math.imul(ri,Qi)|0,Vt=Vt+Math.imul(Xt,Mn)|0,Jt=Jt+Math.imul(Xt,Qi)|0,Xe=Xe+Math.imul(oi,wn)|0,Vt=Vt+Math.imul(oi,Gi)|0,Vt=Vt+Math.imul(li,wn)|0,Jt=Jt+Math.imul(li,Gi)|0;var is=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(is>>>26)|0,is&=67108863,Xe=Math.imul(Si,rn),Vt=Math.imul(Si,qi),Vt=Vt+Math.imul(xi,rn)|0,Jt=Math.imul(xi,qi),Xe=Xe+Math.imul(xn,ln)|0,Vt=Vt+Math.imul(xn,_i)|0,Vt=Vt+Math.imul(ni,ln)|0,Jt=Jt+Math.imul(ni,_i)|0,Xe=Xe+Math.imul(sn,on)|0,Vt=Vt+Math.imul(sn,Vi)|0,Vt=Vt+Math.imul(Zi,on)|0,Jt=Jt+Math.imul(Zi,Vi)|0,Xe=Xe+Math.imul(an,nn)|0,Vt=Vt+Math.imul(an,Pi)|0,Vt=Vt+Math.imul(Ci,nn)|0,Jt=Jt+Math.imul(Ci,Pi)|0,Xe=Xe+Math.imul(Ti,kn)|0,Vt=Vt+Math.imul(Ti,Yi)|0,Vt=Vt+Math.imul(Hi,kn)|0,Jt=Jt+Math.imul(Hi,Yi)|0,Xe=Xe+Math.imul(Ui,ui)|0,Vt=Vt+Math.imul(Ui,ai)|0,Vt=Vt+Math.imul(Ei,ui)|0,Jt=Jt+Math.imul(Ei,ai)|0,Xe=Xe+Math.imul(ki,Ii)|0,Vt=Vt+Math.imul(ki,Ai)|0,Vt=Vt+Math.imul(Bi,Ii)|0,Jt=Jt+Math.imul(Bi,Ai)|0,Xe=Xe+Math.imul(Fi,Mn)|0,Vt=Vt+Math.imul(Fi,Qi)|0,Vt=Vt+Math.imul(si,Mn)|0,Jt=Jt+Math.imul(si,Qi)|0,Xe=Xe+Math.imul(ri,wn)|0,Vt=Vt+Math.imul(ri,Gi)|0,Vt=Vt+Math.imul(Xt,wn)|0,Jt=Jt+Math.imul(Xt,Gi)|0,Xe=Xe+Math.imul(oi,An)|0,Vt=Vt+Math.imul(oi,Dn)|0,Vt=Vt+Math.imul(li,An)|0,Jt=Jt+Math.imul(li,Dn)|0;var ns=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(ns>>>26)|0,ns&=67108863,Xe=Math.imul(Si,ln),Vt=Math.imul(Si,_i),Vt=Vt+Math.imul(xi,ln)|0,Jt=Math.imul(xi,_i),Xe=Xe+Math.imul(xn,on)|0,Vt=Vt+Math.imul(xn,Vi)|0,Vt=Vt+Math.imul(ni,on)|0,Jt=Jt+Math.imul(ni,Vi)|0,Xe=Xe+Math.imul(sn,nn)|0,Vt=Vt+Math.imul(sn,Pi)|0,Vt=Vt+Math.imul(Zi,nn)|0,Jt=Jt+Math.imul(Zi,Pi)|0,Xe=Xe+Math.imul(an,kn)|0,Vt=Vt+Math.imul(an,Yi)|0,Vt=Vt+Math.imul(Ci,kn)|0,Jt=Jt+Math.imul(Ci,Yi)|0,Xe=Xe+Math.imul(Ti,ui)|0,Vt=Vt+Math.imul(Ti,ai)|0,Vt=Vt+Math.imul(Hi,ui)|0,Jt=Jt+Math.imul(Hi,ai)|0,Xe=Xe+Math.imul(Ui,Ii)|0,Vt=Vt+Math.imul(Ui,Ai)|0,Vt=Vt+Math.imul(Ei,Ii)|0,Jt=Jt+Math.imul(Ei,Ai)|0,Xe=Xe+Math.imul(ki,Mn)|0,Vt=Vt+Math.imul(ki,Qi)|0,Vt=Vt+Math.imul(Bi,Mn)|0,Jt=Jt+Math.imul(Bi,Qi)|0,Xe=Xe+Math.imul(Fi,wn)|0,Vt=Vt+Math.imul(Fi,Gi)|0,Vt=Vt+Math.imul(si,wn)|0,Jt=Jt+Math.imul(si,Gi)|0,Xe=Xe+Math.imul(ri,An)|0,Vt=Vt+Math.imul(ri,Dn)|0,Vt=Vt+Math.imul(Xt,An)|0,Jt=Jt+Math.imul(Xt,Dn)|0;var ss=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(ss>>>26)|0,ss&=67108863,Xe=Math.imul(Si,on),Vt=Math.imul(Si,Vi),Vt=Vt+Math.imul(xi,on)|0,Jt=Math.imul(xi,Vi),Xe=Xe+Math.imul(xn,nn)|0,Vt=Vt+Math.imul(xn,Pi)|0,Vt=Vt+Math.imul(ni,nn)|0,Jt=Jt+Math.imul(ni,Pi)|0,Xe=Xe+Math.imul(sn,kn)|0,Vt=Vt+Math.imul(sn,Yi)|0,Vt=Vt+Math.imul(Zi,kn)|0,Jt=Jt+Math.imul(Zi,Yi)|0,Xe=Xe+Math.imul(an,ui)|0,Vt=Vt+Math.imul(an,ai)|0,Vt=Vt+Math.imul(Ci,ui)|0,Jt=Jt+Math.imul(Ci,ai)|0,Xe=Xe+Math.imul(Ti,Ii)|0,Vt=Vt+Math.imul(Ti,Ai)|0,Vt=Vt+Math.imul(Hi,Ii)|0,Jt=Jt+Math.imul(Hi,Ai)|0,Xe=Xe+Math.imul(Ui,Mn)|0,Vt=Vt+Math.imul(Ui,Qi)|0,Vt=Vt+Math.imul(Ei,Mn)|0,Jt=Jt+Math.imul(Ei,Qi)|0,Xe=Xe+Math.imul(ki,wn)|0,Vt=Vt+Math.imul(ki,Gi)|0,Vt=Vt+Math.imul(Bi,wn)|0,Jt=Jt+Math.imul(Bi,Gi)|0,Xe=Xe+Math.imul(Fi,An)|0,Vt=Vt+Math.imul(Fi,Dn)|0,Vt=Vt+Math.imul(si,An)|0,Jt=Jt+Math.imul(si,Dn)|0;var os=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(os>>>26)|0,os&=67108863,Xe=Math.imul(Si,nn),Vt=Math.imul(Si,Pi),Vt=Vt+Math.imul(xi,nn)|0,Jt=Math.imul(xi,Pi),Xe=Xe+Math.imul(xn,kn)|0,Vt=Vt+Math.imul(xn,Yi)|0,Vt=Vt+Math.imul(ni,kn)|0,Jt=Jt+Math.imul(ni,Yi)|0,Xe=Xe+Math.imul(sn,ui)|0,Vt=Vt+Math.imul(sn,ai)|0,Vt=Vt+Math.imul(Zi,ui)|0,Jt=Jt+Math.imul(Zi,ai)|0,Xe=Xe+Math.imul(an,Ii)|0,Vt=Vt+Math.imul(an,Ai)|0,Vt=Vt+Math.imul(Ci,Ii)|0,Jt=Jt+Math.imul(Ci,Ai)|0,Xe=Xe+Math.imul(Ti,Mn)|0,Vt=Vt+Math.imul(Ti,Qi)|0,Vt=Vt+Math.imul(Hi,Mn)|0,Jt=Jt+Math.imul(Hi,Qi)|0,Xe=Xe+Math.imul(Ui,wn)|0,Vt=Vt+Math.imul(Ui,Gi)|0,Vt=Vt+Math.imul(Ei,wn)|0,Jt=Jt+Math.imul(Ei,Gi)|0,Xe=Xe+Math.imul(ki,An)|0,Vt=Vt+Math.imul(ki,Dn)|0,Vt=Vt+Math.imul(Bi,An)|0,Jt=Jt+Math.imul(Bi,Dn)|0;var as=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(as>>>26)|0,as&=67108863,Xe=Math.imul(Si,kn),Vt=Math.imul(Si,Yi),Vt=Vt+Math.imul(xi,kn)|0,Jt=Math.imul(xi,Yi),Xe=Xe+Math.imul(xn,ui)|0,Vt=Vt+Math.imul(xn,ai)|0,Vt=Vt+Math.imul(ni,ui)|0,Jt=Jt+Math.imul(ni,ai)|0,Xe=Xe+Math.imul(sn,Ii)|0,Vt=Vt+Math.imul(sn,Ai)|0,Vt=Vt+Math.imul(Zi,Ii)|0,Jt=Jt+Math.imul(Zi,Ai)|0,Xe=Xe+Math.imul(an,Mn)|0,Vt=Vt+Math.imul(an,Qi)|0,Vt=Vt+Math.imul(Ci,Mn)|0,Jt=Jt+Math.imul(Ci,Qi)|0,Xe=Xe+Math.imul(Ti,wn)|0,Vt=Vt+Math.imul(Ti,Gi)|0,Vt=Vt+Math.imul(Hi,wn)|0,Jt=Jt+Math.imul(Hi,Gi)|0,Xe=Xe+Math.imul(Ui,An)|0,Vt=Vt+Math.imul(Ui,Dn)|0,Vt=Vt+Math.imul(Ei,An)|0,Jt=Jt+Math.imul(Ei,Dn)|0;var us=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(us>>>26)|0,us&=67108863,Xe=Math.imul(Si,ui),Vt=Math.imul(Si,ai),Vt=Vt+Math.imul(xi,ui)|0,Jt=Math.imul(xi,ai),Xe=Xe+Math.imul(xn,Ii)|0,Vt=Vt+Math.imul(xn,Ai)|0,Vt=Vt+Math.imul(ni,Ii)|0,Jt=Jt+Math.imul(ni,Ai)|0,Xe=Xe+Math.imul(sn,Mn)|0,Vt=Vt+Math.imul(sn,Qi)|0,Vt=Vt+Math.imul(Zi,Mn)|0,Jt=Jt+Math.imul(Zi,Qi)|0,Xe=Xe+Math.imul(an,wn)|0,Vt=Vt+Math.imul(an,Gi)|0,Vt=Vt+Math.imul(Ci,wn)|0,Jt=Jt+Math.imul(Ci,Gi)|0,Xe=Xe+Math.imul(Ti,An)|0,Vt=Vt+Math.imul(Ti,Dn)|0,Vt=Vt+Math.imul(Hi,An)|0,Jt=Jt+Math.imul(Hi,Dn)|0;var ls=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(ls>>>26)|0,ls&=67108863,Xe=Math.imul(Si,Ii),Vt=Math.imul(Si,Ai),Vt=Vt+Math.imul(xi,Ii)|0,Jt=Math.imul(xi,Ai),Xe=Xe+Math.imul(xn,Mn)|0,Vt=Vt+Math.imul(xn,Qi)|0,Vt=Vt+Math.imul(ni,Mn)|0,Jt=Jt+Math.imul(ni,Qi)|0,Xe=Xe+Math.imul(sn,wn)|0,Vt=Vt+Math.imul(sn,Gi)|0,Vt=Vt+Math.imul(Zi,wn)|0,Jt=Jt+Math.imul(Zi,Gi)|0,Xe=Xe+Math.imul(an,An)|0,Vt=Vt+Math.imul(an,Dn)|0,Vt=Vt+Math.imul(Ci,An)|0,Jt=Jt+Math.imul(Ci,Dn)|0;var ds=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(ds>>>26)|0,ds&=67108863,Xe=Math.imul(Si,Mn),Vt=Math.imul(Si,Qi),Vt=Vt+Math.imul(xi,Mn)|0,Jt=Math.imul(xi,Qi),Xe=Xe+Math.imul(xn,wn)|0,Vt=Vt+Math.imul(xn,Gi)|0,Vt=Vt+Math.imul(ni,wn)|0,Jt=Jt+Math.imul(ni,Gi)|0,Xe=Xe+Math.imul(sn,An)|0,Vt=Vt+Math.imul(sn,Dn)|0,Vt=Vt+Math.imul(Zi,An)|0,Jt=Jt+Math.imul(Zi,Dn)|0;var hs=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(hs>>>26)|0,hs&=67108863,Xe=Math.imul(Si,wn),Vt=Math.imul(Si,Gi),Vt=Vt+Math.imul(xi,wn)|0,Jt=Math.imul(xi,Gi),Xe=Xe+Math.imul(xn,An)|0,Vt=Vt+Math.imul(xn,Dn)|0,Vt=Vt+Math.imul(ni,An)|0,Jt=Jt+Math.imul(ni,Dn)|0;var cs=(ke+Xe|0)+((Vt&8191)<<13)|0;ke=(Jt+(Vt>>>13)|0)+(cs>>>26)|0,cs&=67108863,Xe=Math.imul(Si,An),Vt=Math.imul(Si,Dn),Vt=Vt+Math.imul(xi,An)|0,Jt=Math.imul(xi,Dn);var fs=(ke+Xe|0)+((Vt&8191)<<13)|0;return ke=(Jt+(Vt>>>13)|0)+(fs>>>26)|0,fs&=67108863,Ye[0]=$n,Ye[1]=Tn,Ye[2]=Zn,Ye[3]=Xn,Ye[4]=Jn,Ye[5]=es,Ye[6]=ts,Ye[7]=rs,Ye[8]=is,Ye[9]=ns,Ye[10]=ss,Ye[11]=os,Ye[12]=as,Ye[13]=us,Ye[14]=ls,Ye[15]=ds,Ye[16]=hs,Ye[17]=cs,Ye[18]=fs,ke!==0&&(Ye[19]=ke,Ge.length++),Ge};Math.imul||(Ut=Gt);function ii(He,Ue,Ge){Ge.negative=Ue.negative^He.negative,Ge.length=He.length+Ue.length;for(var _t=0,St=0,Ye=0;Ye>>26)|0,St+=ke>>>26,ke&=67108863}Ge.words[Ye]=Xe,_t=ke,ke=St}return _t!==0?Ge.words[Ye]=_t:Ge.length--,Ge._strip()}function ti(He,Ue,Ge){return ii(He,Ue,Ge)}De.prototype.mulTo=function(He,Ue){var Ge,_t=this.length+He.length;return this.length===10&&He.length===10?Ge=Ut(this,He,Ue):_t<63?Ge=Gt(this,He,Ue):_t<1024?Ge=ii(this,He,Ue):Ge=ti(this,He,Ue),Ge},De.prototype.mul=function(He){var Ue=new De(null);return Ue.words=new Array(this.length+He.length),this.mulTo(He,Ue)},De.prototype.mulf=function(He){var Ue=new De(null);return Ue.words=new Array(this.length+He.length),ti(this,He,Ue)},De.prototype.imul=function(He){return this.clone().mulTo(He,this)},De.prototype.imuln=function(He){var Ue=He<0;Ue&&(He=-He),ze(typeof He=="number"),ze(He<67108864);for(var Ge=0,_t=0;_t>=26,Ge+=St/67108864|0,Ge+=Ye>>>26,this.words[_t]=Ye&67108863}return Ge!==0&&(this.words[_t]=Ge,this.length++),this.length=He===0?1:this.length,Ue?this.ineg():this},De.prototype.muln=function(He){return this.clone().imuln(He)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(He){var Ue=zt(He);if(Ue.length===0)return new De(1);for(var Ge=this,_t=0;_t=0);var Ue=He%26,Ge=(He-Ue)/26,_t=67108863>>>26-Ue<<26-Ue,St;if(Ue!==0){var Ye=0;for(St=0;St>>26-Ue}Ye&&(this.words[St]=Ye,this.length++)}if(Ge!==0){for(St=this.length-1;St>=0;St--)this.words[St+Ge]=this.words[St];for(St=0;St=0);var _t;Ue?_t=(Ue-Ue%26)/26:_t=0;var St=He%26,Ye=Math.min((He-St)/26,this.length),ke=67108863^67108863>>>St<Ye)for(this.length-=Ye,Vt=0;Vt=0&&(Jt!==0||Vt>=_t);Vt--){var ei=this.words[Vt]|0;this.words[Vt]=Jt<<26-St|ei>>>St,Jt=ei&ke}return Xe&&Jt!==0&&(Xe.words[Xe.length++]=Jt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},De.prototype.ishrn=function(He,Ue,Ge){return ze(this.negative===0),this.iushrn(He,Ue,Ge)},De.prototype.shln=function(He){return this.clone().ishln(He)},De.prototype.ushln=function(He){return this.clone().iushln(He)},De.prototype.shrn=function(He){return this.clone().ishrn(He)},De.prototype.ushrn=function(He){return this.clone().iushrn(He)},De.prototype.testn=function(He){ze(typeof He=="number"&&He>=0);var Ue=He%26,Ge=(He-Ue)/26,_t=1<=0);var Ue=He%26,Ge=(He-Ue)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=Ge)return this;if(Ue!==0&&Ge++,this.length=Math.min(Ge,this.length),Ue!==0){var _t=67108863^67108863>>>Ue<=67108864;Ue++)this.words[Ue]-=67108864,Ue===this.length-1?this.words[Ue+1]=1:this.words[Ue+1]++;return this.length=Math.max(this.length,Ue+1),this},De.prototype.isubn=function(He){if(ze(typeof He=="number"),ze(He<67108864),He<0)return this.iaddn(-He);if(this.negative!==0)return this.negative=0,this.iaddn(He),this.negative=1,this;if(this.words[0]-=He,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ue=0;Ue>26)-(Xe/67108864|0),this.words[St+Ge]=Ye&67108863}for(;St>26,this.words[St+Ge]=Ye&67108863;if(ke===0)return this._strip();for(ze(ke===-1),ke=0,St=0;St>26,this.words[St]=Ye&67108863;return this.negative=1,this._strip()},De.prototype._wordDiv=function(He,Ue){var Ge=this.length-He.length,_t=this.clone(),St=He,Ye=St.words[St.length-1]|0,ke=this._countBits(Ye);Ge=26-ke,Ge!==0&&(St=St.ushln(Ge),_t.iushln(Ge),Ye=St.words[St.length-1]|0);var Xe=_t.length-St.length,Vt;if(Ue!=="mod"){Vt=new De(null),Vt.length=Xe+1,Vt.words=new Array(Vt.length);for(var Jt=0;Jt=0;oi--){var li=(_t.words[St.length+oi]|0)*67108864+(_t.words[St.length+oi-1]|0);for(li=Math.min(li/Ye|0,67108863),_t._ishlnsubmul(St,li,oi);_t.negative!==0;)li--,_t.negative=0,_t._ishlnsubmul(St,1,oi),_t.isZero()||(_t.negative^=1);Vt&&(Vt.words[oi]=li)}return Vt&&Vt._strip(),_t._strip(),Ue!=="div"&&Ge!==0&&_t.iushrn(Ge),{div:Vt||null,mod:_t}},De.prototype.divmod=function(He,Ue,Ge){if(ze(!He.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var _t,St,Ye;return this.negative!==0&&He.negative===0?(Ye=this.neg().divmod(He,Ue),Ue!=="mod"&&(_t=Ye.div.neg()),Ue!=="div"&&(St=Ye.mod.neg(),Ge&&St.negative!==0&&St.iadd(He)),{div:_t,mod:St}):this.negative===0&&He.negative!==0?(Ye=this.divmod(He.neg(),Ue),Ue!=="mod"&&(_t=Ye.div.neg()),{div:_t,mod:Ye.mod}):(this.negative&He.negative)!==0?(Ye=this.neg().divmod(He.neg(),Ue),Ue!=="div"&&(St=Ye.mod.neg(),Ge&&St.negative!==0&&St.isub(He)),{div:Ye.div,mod:St}):He.length>this.length||this.cmp(He)<0?{div:new De(0),mod:this}:He.length===1?Ue==="div"?{div:this.divn(He.words[0]),mod:null}:Ue==="mod"?{div:null,mod:new De(this.modrn(He.words[0]))}:{div:this.divn(He.words[0]),mod:new De(this.modrn(He.words[0]))}:this._wordDiv(He,Ue)},De.prototype.div=function(He){return this.divmod(He,"div",!1).div},De.prototype.mod=function(He){return this.divmod(He,"mod",!1).mod},De.prototype.umod=function(He){return this.divmod(He,"mod",!0).mod},De.prototype.divRound=function(He){var Ue=this.divmod(He);if(Ue.mod.isZero())return Ue.div;var Ge=Ue.div.negative!==0?Ue.mod.isub(He):Ue.mod,_t=He.ushrn(1),St=He.andln(1),Ye=Ge.cmp(_t);return Ye<0||St===1&&Ye===0?Ue.div:Ue.div.negative!==0?Ue.div.isubn(1):Ue.div.iaddn(1)},De.prototype.modrn=function(He){var Ue=He<0;Ue&&(He=-He),ze(He<=67108863);for(var Ge=(1<<26)%He,_t=0,St=this.length-1;St>=0;St--)_t=(Ge*_t+(this.words[St]|0))%He;return Ue?-_t:_t},De.prototype.modn=function(He){return this.modrn(He)},De.prototype.idivn=function(He){var Ue=He<0;Ue&&(He=-He),ze(He<=67108863);for(var Ge=0,_t=this.length-1;_t>=0;_t--){var St=(this.words[_t]|0)+Ge*67108864;this.words[_t]=St/He|0,Ge=St%He}return this._strip(),Ue?this.ineg():this},De.prototype.divn=function(He){return this.clone().idivn(He)},De.prototype.egcd=function(He){ze(He.negative===0),ze(!He.isZero());var Ue=this,Ge=He.clone();Ue.negative!==0?Ue=Ue.umod(He):Ue=Ue.clone();for(var _t=new De(1),St=new De(0),Ye=new De(0),ke=new De(1),Xe=0;Ue.isEven()&&Ge.isEven();)Ue.iushrn(1),Ge.iushrn(1),++Xe;for(var Vt=Ge.clone(),Jt=Ue.clone();!Ue.isZero();){for(var ei=0,oi=1;(Ue.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(Ue.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(Vt),St.isub(Jt)),_t.iushrn(1),St.iushrn(1);for(var li=0,fi=1;(Ge.words[0]&fi)===0&&li<26;++li,fi<<=1);if(li>0)for(Ge.iushrn(li);li-- >0;)(Ye.isOdd()||ke.isOdd())&&(Ye.iadd(Vt),ke.isub(Jt)),Ye.iushrn(1),ke.iushrn(1);Ue.cmp(Ge)>=0?(Ue.isub(Ge),_t.isub(Ye),St.isub(ke)):(Ge.isub(Ue),Ye.isub(_t),ke.isub(St))}return{a:Ye,b:ke,gcd:Ge.iushln(Xe)}},De.prototype._invmp=function(He){ze(He.negative===0),ze(!He.isZero());var Ue=this,Ge=He.clone();Ue.negative!==0?Ue=Ue.umod(He):Ue=Ue.clone();for(var _t=new De(1),St=new De(0),Ye=Ge.clone();Ue.cmpn(1)>0&&Ge.cmpn(1)>0;){for(var ke=0,Xe=1;(Ue.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(Ue.iushrn(ke);ke-- >0;)_t.isOdd()&&_t.iadd(Ye),_t.iushrn(1);for(var Vt=0,Jt=1;(Ge.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ge.iushrn(Vt);Vt-- >0;)St.isOdd()&&St.iadd(Ye),St.iushrn(1);Ue.cmp(Ge)>=0?(Ue.isub(Ge),_t.isub(St)):(Ge.isub(Ue),St.isub(_t))}var ei;return Ue.cmpn(1)===0?ei=_t:ei=St,ei.cmpn(0)<0&&ei.iadd(He),ei},De.prototype.gcd=function(He){if(this.isZero())return He.abs();if(He.isZero())return this.abs();var Ue=this.clone(),Ge=He.clone();Ue.negative=0,Ge.negative=0;for(var _t=0;Ue.isEven()&&Ge.isEven();_t++)Ue.iushrn(1),Ge.iushrn(1);do{for(;Ue.isEven();)Ue.iushrn(1);for(;Ge.isEven();)Ge.iushrn(1);var St=Ue.cmp(Ge);if(St<0){var Ye=Ue;Ue=Ge,Ge=Ye}else if(St===0||Ge.cmpn(1)===0)break;Ue.isub(Ge)}while(!0);return Ge.iushln(_t)},De.prototype.invm=function(He){return this.egcd(He).a.umod(He)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(He){return this.words[0]&He},De.prototype.bincn=function(He){ze(typeof He=="number");var Ue=He%26,Ge=(He-Ue)/26,_t=1<>>26,ke&=67108863,this.words[Ye]=ke}return St!==0&&(this.words[Ye]=St,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(He){var Ue=He<0;if(this.negative!==0&&!Ue)return-1;if(this.negative===0&&Ue)return 1;this._strip();var Ge;if(this.length>1)Ge=1;else{Ue&&(He=-He),ze(He<=67108863,"Number is too big");var _t=this.words[0]|0;Ge=_t===He?0:_tHe.length)return 1;if(this.length=0;Ge--){var _t=this.words[Ge]|0,St=He.words[Ge]|0;if(_t!==St){_tSt&&(Ue=1);break}}return Ue},De.prototype.gtn=function(He){return this.cmpn(He)===1},De.prototype.gt=function(He){return this.cmp(He)===1},De.prototype.gten=function(He){return this.cmpn(He)>=0},De.prototype.gte=function(He){return this.cmp(He)>=0},De.prototype.ltn=function(He){return this.cmpn(He)===-1},De.prototype.lt=function(He){return this.cmp(He)===-1},De.prototype.lten=function(He){return this.cmpn(He)<=0},De.prototype.lte=function(He){return this.cmp(He)<=0},De.prototype.eqn=function(He){return this.cmpn(He)===0},De.prototype.eq=function(He){return this.cmp(He)===0},De.red=function(He){return new j(He)},De.prototype.toRed=function(He){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),He.convertTo(this)._forceRed(He)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(He){return this.red=He,this},De.prototype.forceRed=function(He){return ze(!this.red,"Already a number in reduction context"),this._forceRed(He)},De.prototype.redAdd=function(He){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,He)},De.prototype.redIAdd=function(He){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,He)},De.prototype.redSub=function(He){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,He)},De.prototype.redISub=function(He){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,He)},De.prototype.redShl=function(He){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,He)},De.prototype.redMul=function(He){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,He),this.red.mul(this,He)},De.prototype.redIMul=function(He){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,He),this.red.imul(this,He)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(He){return ze(this.red&&!He.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,He)};var di={k256:null,p224:null,p192:null,p25519:null};function ci(He,Ue){this.name=He,this.p=new De(Ue,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ci.prototype._tmp=function(){var He=new De(null);return He.words=new Array(Math.ceil(this.n/13)),He},ci.prototype.ireduce=function(He){var Ue=He,Ge;do this.split(Ue,this.tmp),Ue=this.imulK(Ue),Ue=Ue.iadd(this.tmp),Ge=Ue.bitLength();while(Ge>this.n);var _t=Ge0?Ue.isub(this.p):Ue.strip!==void 0?Ue.strip():Ue._strip(),Ue},ci.prototype.split=function(He,Ue){He.iushrn(this.n,0,Ue)},ci.prototype.imulK=function(He){return He.imul(this.k)};function vi(){ci.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(vi,ci),vi.prototype.split=function(He,Ue){for(var Ge=4194303,_t=Math.min(He.length,9),St=0;St<_t;St++)Ue.words[St]=He.words[St];if(Ue.length=_t,He.length<=9){He.words[0]=0,He.length=1;return}var Ye=He.words[9];for(Ue.words[Ue.length++]=Ye&Ge,St=10;St>>22,Ye=ke}Ye>>>=22,He.words[St-10]=Ye,Ye===0&&He.length>10?He.length-=10:He.length-=9},vi.prototype.imulK=function(He){He.words[He.length]=0,He.words[He.length+1]=0,He.length+=2;for(var Ue=0,Ge=0;Ge>>=26,He.words[Ge]=St,Ue=_t}return Ue!==0&&(He.words[He.length++]=Ue),He},De._prime=function(He){if(di[He])return di[He];var Ue;if(He==="k256")Ue=new vi;else if(He==="p224")Ue=new bi;else if(He==="p192")Ue=new pi;else if(He==="p25519")Ue=new Mi;else throw new Error("Unknown prime "+He);return di[He]=Ue,Ue};function j(He){if(typeof He=="string"){var Ue=De._prime(He);this.m=Ue.p,this.prime=Ue}else ze(He.gtn(1),"modulus must be greater than 1"),this.m=He,this.prime=null}j.prototype._verify1=function(He){ze(He.negative===0,"red works only with positives"),ze(He.red,"red works only with red numbers")},j.prototype._verify2=function(He,Ue){ze((He.negative|Ue.negative)===0,"red works only with positives"),ze(He.red&&He.red===Ue.red,"red works only with red numbers")},j.prototype.imod=function(He){return this.prime?this.prime.ireduce(He)._forceRed(this):(Ft(He,He.umod(this.m)._forceRed(this)),He)},j.prototype.neg=function(He){return He.isZero()?He.clone():this.m.sub(He)._forceRed(this)},j.prototype.add=function(He,Ue){this._verify2(He,Ue);var Ge=He.add(Ue);return Ge.cmp(this.m)>=0&&Ge.isub(this.m),Ge._forceRed(this)},j.prototype.iadd=function(He,Ue){this._verify2(He,Ue);var Ge=He.iadd(Ue);return Ge.cmp(this.m)>=0&&Ge.isub(this.m),Ge},j.prototype.sub=function(He,Ue){this._verify2(He,Ue);var Ge=He.sub(Ue);return Ge.cmpn(0)<0&&Ge.iadd(this.m),Ge._forceRed(this)},j.prototype.isub=function(He,Ue){this._verify2(He,Ue);var Ge=He.isub(Ue);return Ge.cmpn(0)<0&&Ge.iadd(this.m),Ge},j.prototype.shl=function(He,Ue){return this._verify1(He),this.imod(He.ushln(Ue))},j.prototype.imul=function(He,Ue){return this._verify2(He,Ue),this.imod(He.imul(Ue))},j.prototype.mul=function(He,Ue){return this._verify2(He,Ue),this.imod(He.mul(Ue))},j.prototype.isqr=function(He){return this.imul(He,He.clone())},j.prototype.sqr=function(He){return this.mul(He,He)},j.prototype.sqrt=function(He){if(He.isZero())return He.clone();var Ue=this.m.andln(3);if(ze(Ue%2===1),Ue===3){var Ge=this.m.add(new De(1)).iushrn(2);return this.pow(He,Ge)}for(var _t=this.m.subn(1),St=0;!_t.isZero()&&_t.andln(1)===0;)St++,_t.iushrn(1);ze(!_t.isZero());var Ye=new De(1).toRed(this),ke=Ye.redNeg(),Xe=this.m.subn(1).iushrn(1),Vt=this.m.bitLength();for(Vt=new De(2*Vt*Vt).toRed(this);this.pow(Vt,Xe).cmp(ke)!==0;)Vt.redIAdd(ke);for(var Jt=this.pow(Vt,_t),ei=this.pow(He,_t.addn(1).iushrn(1)),oi=this.pow(He,_t),li=St;oi.cmp(Ye)!==0;){for(var fi=oi,ri=0;fi.cmp(Ye)!==0;ri++)fi=fi.redSqr();ze(ri=0;St--){for(var Jt=Ue.words[St],ei=Vt-1;ei>=0;ei--){var oi=Jt>>ei&1;if(Ye!==_t[0]&&(Ye=this.sqr(Ye)),oi===0&&ke===0){Xe=0;continue}ke<<=1,ke|=oi,Xe++,!(Xe!==Ge&&(St!==0||ei!==0))&&(Ye=this.mul(Ye,_t[ke]),Xe=0,ke=0)}Vt=26}return Ye},j.prototype.convertTo=function(He){var Ue=He.umod(this.m);return Ue===He?Ue.clone():Ue},j.prototype.convertFrom=function(He){var Ue=He.clone();return Ue.red=null,Ue},De.mont=function(He){return new Ae(He)};function Ae(He){j.call(this,He),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Ae,j),Ae.prototype.convertTo=function(He){return this.imod(He.ushln(this.shift))},Ae.prototype.convertFrom=function(He){var Ue=this.imod(He.mul(this.rinv));return Ue.red=null,Ue},Ae.prototype.imul=function(He,Ue){if(He.isZero()||Ue.isZero())return He.words[0]=0,He.length=1,He;var Ge=He.imul(Ue),_t=Ge.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),St=Ge.isub(_t).iushrn(this.shift),Ye=St;return St.cmp(this.m)>=0?Ye=St.isub(this.m):St.cmpn(0)<0&&(Ye=St.iadd(this.m)),Ye._forceRed(this)},Ae.prototype.mul=function(He,Ue){if(He.isZero()||Ue.isZero())return new De(0)._forceRed(this);var Ge=He.mul(Ue),_t=Ge.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),St=Ge.isub(_t).iushrn(this.shift),Ye=St;return St.cmp(this.m)>=0?Ye=St.isub(this.m):St.cmpn(0)<0&&(Ye=St.iadd(this.m)),Ye._forceRed(this)},Ae.prototype.invm=function(He){var Ue=this.imod(He._invmp(this.m).mul(this.r2));return Ue._forceRed(this)}})(Me,bn$8)})(bn$9)),bn$9.exports}var browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var Me=requireBn$4(),xe=requireBrowser$b(),Ke=requireSafeBuffer$2().Buffer;function ze(vt){var Je=vt.modulus.byteLength(),Ct;do Ct=new Me(xe(Je));while(Ct.cmp(vt.modulus)>=0||!Ct.umod(vt.prime1)||!Ct.umod(vt.prime2));return Ct}function We(vt){var Je=ze(vt),Ct=Je.toRed(Me.mont(vt.modulus)).redPow(new Me(vt.publicExponent)).fromRed();return{blinder:Ct,unblinder:Je.invm(vt.modulus)}}function De(vt,Je){var Ct=We(Je),yt=Je.modulus.byteLength(),Ft=new Me(vt).mul(Ct.blinder).umod(Je.modulus),$t=Ft.toRed(Me.mont(Je.prime1)),Rt=Ft.toRed(Me.mont(Je.prime2)),qt=Je.coefficient,Pt=Je.prime1,Nt=Je.prime2,zt=$t.redPow(Je.exponent1).fromRed(),Gt=Rt.redPow(Je.exponent2).fromRed(),Ut=zt.isub(Gt).imul(qt).umod(Pt).imul(Nt);return Gt.iadd(Ut).imul(Ct.unblinder).umod(Je.modulus).toArrayLike(Ke,"be",yt)}return De.getr=ze,browserifyRsa=De,browserifyRsa}var elliptic={};const version="6.6.1",require$$0={version};var utils$2={},bn$7={exports:{}},bn$6=bn$7.exports,hasRequiredBn$3;function requireBn$3(){return hasRequiredBn$3||(hasRequiredBn$3=1,(function(Me){(function(xe,Ke){function ze(j,Ae){if(!j)throw new Error(Ae||"Assertion failed")}function We(j,Ae){j.super_=Ae;var He=function(){};He.prototype=Ae.prototype,j.prototype=new He,j.prototype.constructor=j}function De(j,Ae,He){if(De.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((Ae==="le"||Ae==="be")&&(He=Ae,Ae=10),this._init(j||0,Ae||10,He||"be"))}typeof xe=="object"?xe.exports=De:Ke.BN=De,De.BN=De,De.wordSize=26;var vt;try{typeof window<"u"&&typeof window.Buffer<"u"?vt=window.Buffer:vt=requireDist().Buffer}catch{}De.isBN=function(j){return j instanceof De?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===De.wordSize&&Array.isArray(j.words)},De.max=function(j,Ae){return j.cmp(Ae)>0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn$6)})(bn$7)),bn$7.exports}var utils$1={},hasRequiredUtils$2;function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,(function(Me){var xe=Me;function Ke(De,vt){if(Array.isArray(De))return De.slice();if(!De)return[];var Je=[];if(typeof De!="string"){for(var Ct=0;Ct>8,$t=yt&255;Ft?Je.push(Ft,$t):Je.push($t)}return Je}xe.toArray=Ke;function ze(De){return De.length===1?"0"+De:De}xe.zero2=ze;function We(De){for(var vt="",Je=0;Je(Nt>>1)-1?Gt=(Nt>>1)-Ut:Gt=Ut,zt.isubn(Gt)):Gt=0,qt[Pt]=Gt,zt.iushrn(1)}return qt}xe.getNAF=De;function vt(Ft,$t){var Rt=[[],[]];Ft=Ft.clone(),$t=$t.clone();for(var qt=0,Pt=0,Nt;Ft.cmpn(-qt)>0||$t.cmpn(-Pt)>0;){var zt=Ft.andln(3)+qt&3,Gt=$t.andln(3)+Pt&3;zt===3&&(zt=-1),Gt===3&&(Gt=-1);var Ut;(zt&1)===0?Ut=0:(Nt=Ft.andln(7)+qt&7,(Nt===3||Nt===5)&&Gt===2?Ut=-zt:Ut=zt),Rt[0].push(Ut);var ii;(Gt&1)===0?ii=0:(Nt=$t.andln(7)+Pt&7,(Nt===3||Nt===5)&&zt===2?ii=-Gt:ii=Gt),Rt[1].push(ii),2*qt===Ut+1&&(qt=1-qt),2*Pt===ii+1&&(Pt=1-Pt),Ft.iushrn(1),$t.iushrn(1)}return Rt}xe.getJSF=vt;function Je(Ft,$t,Rt){var qt="_"+$t;Ft.prototype[$t]=function(){return this[qt]!==void 0?this[qt]:this[qt]=Rt.call(this)}}xe.cachedProperty=Je;function Ct(Ft){return typeof Ft=="string"?xe.toArray(Ft,"hex"):Ft}xe.parseBytes=Ct;function yt(Ft){return new Ke(Ft,"hex","le")}xe.intFromLE=yt})(utils$2)),utils$2}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var Me=requireBn$3(),xe=requireUtils$1(),Ke=xe.getNAF,ze=xe.getJSF,We=xe.assert;function De(Je,Ct){this.type=Je,this.p=new Me(Ct.p,16),this.red=Ct.prime?Me.red(Ct.prime):Me.mont(this.p),this.zero=new Me(0).toRed(this.red),this.one=new Me(1).toRed(this.red),this.two=new Me(2).toRed(this.red),this.n=Ct.n&&new Me(Ct.n,16),this.g=Ct.g&&this.pointFromJSON(Ct.g,Ct.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var yt=this.n&&this.p.div(this.n);!yt||yt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=De,De.prototype.point=function(){throw new Error("Not implemented")},De.prototype.validate=function(){throw new Error("Not implemented")},De.prototype._fixedNafMul=function(Je,Ct){We(Je.precomputed);var yt=Je._getDoubles(),Ft=Ke(Ct,1,this._bitLength),$t=(1<=qt;Nt--)Pt=(Pt<<1)+Ft[Nt];Rt.push(Pt)}for(var zt=this.jpoint(null,null,null),Gt=this.jpoint(null,null,null),Ut=$t;Ut>0;Ut--){for(qt=0;qt=0;Pt--){for(var Nt=0;Pt>=0&&Rt[Pt]===0;Pt--)Nt++;if(Pt>=0&&Nt++,qt=qt.dblp(Nt),Pt<0)break;var zt=Rt[Pt];We(zt!==0),Je.type==="affine"?zt>0?qt=qt.mixedAdd($t[zt-1>>1]):qt=qt.mixedAdd($t[-zt-1>>1].neg()):zt>0?qt=qt.add($t[zt-1>>1]):qt=qt.add($t[-zt-1>>1].neg())}return Je.type==="affine"?qt.toP():qt},De.prototype._wnafMulAdd=function(Je,Ct,yt,Ft,$t){var Rt=this._wnafT1,qt=this._wnafT2,Pt=this._wnafT3,Nt=0,zt,Gt,Ut;for(zt=0;zt=1;zt-=2){var ti=zt-1,di=zt;if(Rt[ti]!==1||Rt[di]!==1){Pt[ti]=Ke(yt[ti],Rt[ti],this._bitLength),Pt[di]=Ke(yt[di],Rt[di],this._bitLength),Nt=Math.max(Pt[ti].length,Nt),Nt=Math.max(Pt[di].length,Nt);continue}var ci=[Ct[ti],null,null,Ct[di]];Ct[ti].y.cmp(Ct[di].y)===0?(ci[1]=Ct[ti].add(Ct[di]),ci[2]=Ct[ti].toJ().mixedAdd(Ct[di].neg())):Ct[ti].y.cmp(Ct[di].y.redNeg())===0?(ci[1]=Ct[ti].toJ().mixedAdd(Ct[di]),ci[2]=Ct[ti].add(Ct[di].neg())):(ci[1]=Ct[ti].toJ().mixedAdd(Ct[di]),ci[2]=Ct[ti].toJ().mixedAdd(Ct[di].neg()));var vi=[-3,-1,-5,-7,0,7,5,1,3],bi=ze(yt[ti],yt[di]);for(Nt=Math.max(bi[0].length,Nt),Pt[ti]=new Array(Nt),Pt[di]=new Array(Nt),Gt=0;Gt=0;zt--){for(var He=0;zt>=0;){var Ue=!0;for(Gt=0;Gt=0&&He++,j=j.dblp(He),zt<0)break;for(Gt=0;Gt0?Ut=qt[Gt][Ge-1>>1]:Ge<0&&(Ut=qt[Gt][-Ge-1>>1].neg()),Ut.type==="affine"?j=j.mixedAdd(Ut):j=j.add(Ut))}}for(zt=0;zt=Math.ceil((Je.bitLength()+1)/Ct.step):!1},vt.prototype._getDoubles=function(Je,Ct){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var yt=[this],Ft=this,$t=0;$t=0&&(ti=zt,di=Gt),Ut.negative&&(Ut=Ut.neg(),ii=ii.neg()),ti.negative&&(ti=ti.neg(),di=di.neg()),[{a:Ut,b:ii},{a:ti,b:di}]},De.prototype._endoSplit=function(Ct){var yt=this.endo.basis,Ft=yt[0],$t=yt[1],Rt=$t.b.mul(Ct).divRound(this.n),qt=Ft.b.neg().mul(Ct).divRound(this.n),Pt=Rt.mul(Ft.a),Nt=qt.mul($t.a),zt=Rt.mul(Ft.b),Gt=qt.mul($t.b),Ut=Ct.sub(Pt).sub(Nt),ii=zt.add(Gt).neg();return{k1:Ut,k2:ii}},De.prototype.pointFromX=function(Ct,yt){Ct=new xe(Ct,16),Ct.red||(Ct=Ct.toRed(this.red));var Ft=Ct.redSqr().redMul(Ct).redIAdd(Ct.redMul(this.a)).redIAdd(this.b),$t=Ft.redSqrt();if($t.redSqr().redSub(Ft).cmp(this.zero)!==0)throw new Error("invalid point");var Rt=$t.fromRed().isOdd();return(yt&&!Rt||!yt&&Rt)&&($t=$t.redNeg()),this.point(Ct,$t)},De.prototype.validate=function(Ct){if(Ct.inf)return!0;var yt=Ct.x,Ft=Ct.y,$t=this.a.redMul(yt),Rt=yt.redSqr().redMul(yt).redIAdd($t).redIAdd(this.b);return Ft.redSqr().redISub(Rt).cmpn(0)===0},De.prototype._endoWnafMulAdd=function(Ct,yt,Ft){for(var $t=this._endoWnafT1,Rt=this._endoWnafT2,qt=0;qt":""},vt.prototype.isInfinity=function(){return this.inf},vt.prototype.add=function(Ct){if(this.inf)return Ct;if(Ct.inf)return this;if(this.eq(Ct))return this.dbl();if(this.neg().eq(Ct))return this.curve.point(null,null);if(this.x.cmp(Ct.x)===0)return this.curve.point(null,null);var yt=this.y.redSub(Ct.y);yt.cmpn(0)!==0&&(yt=yt.redMul(this.x.redSub(Ct.x).redInvm()));var Ft=yt.redSqr().redISub(this.x).redISub(Ct.x),$t=yt.redMul(this.x.redSub(Ft)).redISub(this.y);return this.curve.point(Ft,$t)},vt.prototype.dbl=function(){if(this.inf)return this;var Ct=this.y.redAdd(this.y);if(Ct.cmpn(0)===0)return this.curve.point(null,null);var yt=this.curve.a,Ft=this.x.redSqr(),$t=Ct.redInvm(),Rt=Ft.redAdd(Ft).redIAdd(Ft).redIAdd(yt).redMul($t),qt=Rt.redSqr().redISub(this.x.redAdd(this.x)),Pt=Rt.redMul(this.x.redSub(qt)).redISub(this.y);return this.curve.point(qt,Pt)},vt.prototype.getX=function(){return this.x.fromRed()},vt.prototype.getY=function(){return this.y.fromRed()},vt.prototype.mul=function(Ct){return Ct=new xe(Ct,16),this.isInfinity()?this:this._hasDoubles(Ct)?this.curve._fixedNafMul(this,Ct):this.curve.endo?this.curve._endoWnafMulAdd([this],[Ct]):this.curve._wnafMul(this,Ct)},vt.prototype.mulAdd=function(Ct,yt,Ft){var $t=[this,yt],Rt=[Ct,Ft];return this.curve.endo?this.curve._endoWnafMulAdd($t,Rt):this.curve._wnafMulAdd(1,$t,Rt,2)},vt.prototype.jmulAdd=function(Ct,yt,Ft){var $t=[this,yt],Rt=[Ct,Ft];return this.curve.endo?this.curve._endoWnafMulAdd($t,Rt,!0):this.curve._wnafMulAdd(1,$t,Rt,2,!0)},vt.prototype.eq=function(Ct){return this===Ct||this.inf===Ct.inf&&(this.inf||this.x.cmp(Ct.x)===0&&this.y.cmp(Ct.y)===0)},vt.prototype.neg=function(Ct){if(this.inf)return this;var yt=this.curve.point(this.x,this.y.redNeg());if(Ct&&this.precomputed){var Ft=this.precomputed,$t=function(Rt){return Rt.neg()};yt.precomputed={naf:Ft.naf&&{wnd:Ft.naf.wnd,points:Ft.naf.points.map($t)},doubles:Ft.doubles&&{step:Ft.doubles.step,points:Ft.doubles.points.map($t)}}}return yt},vt.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var Ct=this.curve.jpoint(this.x,this.y,this.curve.one);return Ct};function Je(Ct,yt,Ft,$t){ze.BasePoint.call(this,Ct,"jacobian"),yt===null&&Ft===null&&$t===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new xe(0)):(this.x=new xe(yt,16),this.y=new xe(Ft,16),this.z=new xe($t,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return Ke(Je,ze.BasePoint),De.prototype.jpoint=function(Ct,yt,Ft){return new Je(this,Ct,yt,Ft)},Je.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var Ct=this.z.redInvm(),yt=Ct.redSqr(),Ft=this.x.redMul(yt),$t=this.y.redMul(yt).redMul(Ct);return this.curve.point(Ft,$t)},Je.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Je.prototype.add=function(Ct){if(this.isInfinity())return Ct;if(Ct.isInfinity())return this;var yt=Ct.z.redSqr(),Ft=this.z.redSqr(),$t=this.x.redMul(yt),Rt=Ct.x.redMul(Ft),qt=this.y.redMul(yt.redMul(Ct.z)),Pt=Ct.y.redMul(Ft.redMul(this.z)),Nt=$t.redSub(Rt),zt=qt.redSub(Pt);if(Nt.cmpn(0)===0)return zt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Gt=Nt.redSqr(),Ut=Gt.redMul(Nt),ii=$t.redMul(Gt),ti=zt.redSqr().redIAdd(Ut).redISub(ii).redISub(ii),di=zt.redMul(ii.redISub(ti)).redISub(qt.redMul(Ut)),ci=this.z.redMul(Ct.z).redMul(Nt);return this.curve.jpoint(ti,di,ci)},Je.prototype.mixedAdd=function(Ct){if(this.isInfinity())return Ct.toJ();if(Ct.isInfinity())return this;var yt=this.z.redSqr(),Ft=this.x,$t=Ct.x.redMul(yt),Rt=this.y,qt=Ct.y.redMul(yt).redMul(this.z),Pt=Ft.redSub($t),Nt=Rt.redSub(qt);if(Pt.cmpn(0)===0)return Nt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var zt=Pt.redSqr(),Gt=zt.redMul(Pt),Ut=Ft.redMul(zt),ii=Nt.redSqr().redIAdd(Gt).redISub(Ut).redISub(Ut),ti=Nt.redMul(Ut.redISub(ii)).redISub(Rt.redMul(Gt)),di=this.z.redMul(Pt);return this.curve.jpoint(ii,ti,di)},Je.prototype.dblp=function(Ct){if(Ct===0)return this;if(this.isInfinity())return this;if(!Ct)return this.dbl();var yt;if(this.curve.zeroA||this.curve.threeA){var Ft=this;for(yt=0;yt=0)return!1;if(Ft.redIAdd(Rt),this.x.cmp(Ft)===0)return!0}},Je.prototype.inspect=function(){return this.isInfinity()?"":""},Je.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var Me=requireBn$3(),xe=requireInherits_browser(),Ke=requireBase$1(),ze=requireUtils$1();function We(vt){Ke.call(this,"mont",vt),this.a=new Me(vt.a,16).toRed(this.red),this.b=new Me(vt.b,16).toRed(this.red),this.i4=new Me(4).toRed(this.red).redInvm(),this.two=new Me(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}xe(We,Ke),mont=We,We.prototype.validate=function(vt){var Je=vt.normalize().x,Ct=Je.redSqr(),yt=Ct.redMul(Je).redAdd(Ct.redMul(this.a)).redAdd(Je),Ft=yt.redSqrt();return Ft.redSqr().cmp(yt)===0};function De(vt,Je,Ct){Ke.BasePoint.call(this,vt,"projective"),Je===null&&Ct===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Me(Je,16),this.z=new Me(Ct,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return xe(De,Ke.BasePoint),We.prototype.decodePoint=function(vt,Je){return this.point(ze.toArray(vt,Je),1)},We.prototype.point=function(vt,Je){return new De(this,vt,Je)},We.prototype.pointFromJSON=function(vt){return De.fromJSON(this,vt)},De.prototype.precompute=function(){},De.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},De.fromJSON=function(vt,Je){return new De(vt,Je[0],Je[1]||vt.one)},De.prototype.inspect=function(){return this.isInfinity()?"":""},De.prototype.isInfinity=function(){return this.z.cmpn(0)===0},De.prototype.dbl=function(){var vt=this.x.redAdd(this.z),Je=vt.redSqr(),Ct=this.x.redSub(this.z),yt=Ct.redSqr(),Ft=Je.redSub(yt),$t=Je.redMul(yt),Rt=Ft.redMul(yt.redAdd(this.curve.a24.redMul(Ft)));return this.curve.point($t,Rt)},De.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},De.prototype.diffAdd=function(vt,Je){var Ct=this.x.redAdd(this.z),yt=this.x.redSub(this.z),Ft=vt.x.redAdd(vt.z),$t=vt.x.redSub(vt.z),Rt=$t.redMul(Ct),qt=Ft.redMul(yt),Pt=Je.z.redMul(Rt.redAdd(qt).redSqr()),Nt=Je.x.redMul(Rt.redISub(qt).redSqr());return this.curve.point(Pt,Nt)},De.prototype.mul=function(vt){for(var Je=vt.clone(),Ct=this,yt=this.curve.point(null,null),Ft=this,$t=[];Je.cmpn(0)!==0;Je.iushrn(1))$t.push(Je.andln(1));for(var Rt=$t.length-1;Rt>=0;Rt--)$t[Rt]===0?(Ct=Ct.diffAdd(yt,Ft),yt=yt.dbl()):(yt=Ct.diffAdd(yt,Ft),Ct=Ct.dbl());return yt},De.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},De.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},De.prototype.eq=function(vt){return this.getX().cmp(vt.getX())===0},De.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},De.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var Me=requireUtils$1(),xe=requireBn$3(),Ke=requireInherits_browser(),ze=requireBase$1(),We=Me.assert;function De(Je){this.twisted=(Je.a|0)!==1,this.mOneA=this.twisted&&(Je.a|0)===-1,this.extended=this.mOneA,ze.call(this,"edwards",Je),this.a=new xe(Je.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new xe(Je.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new xe(Je.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),We(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(Je.c|0)===1}Ke(De,ze),edwards=De,De.prototype._mulA=function(Je){return this.mOneA?Je.redNeg():this.a.redMul(Je)},De.prototype._mulC=function(Je){return this.oneC?Je:this.c.redMul(Je)},De.prototype.jpoint=function(Je,Ct,yt,Ft){return this.point(Je,Ct,yt,Ft)},De.prototype.pointFromX=function(Je,Ct){Je=new xe(Je,16),Je.red||(Je=Je.toRed(this.red));var yt=Je.redSqr(),Ft=this.c2.redSub(this.a.redMul(yt)),$t=this.one.redSub(this.c2.redMul(this.d).redMul(yt)),Rt=Ft.redMul($t.redInvm()),qt=Rt.redSqrt();if(qt.redSqr().redSub(Rt).cmp(this.zero)!==0)throw new Error("invalid point");var Pt=qt.fromRed().isOdd();return(Ct&&!Pt||!Ct&&Pt)&&(qt=qt.redNeg()),this.point(Je,qt)},De.prototype.pointFromY=function(Je,Ct){Je=new xe(Je,16),Je.red||(Je=Je.toRed(this.red));var yt=Je.redSqr(),Ft=yt.redSub(this.c2),$t=yt.redMul(this.d).redMul(this.c2).redSub(this.a),Rt=Ft.redMul($t.redInvm());if(Rt.cmp(this.zero)===0){if(Ct)throw new Error("invalid point");return this.point(this.zero,Je)}var qt=Rt.redSqrt();if(qt.redSqr().redSub(Rt).cmp(this.zero)!==0)throw new Error("invalid point");return qt.fromRed().isOdd()!==Ct&&(qt=qt.redNeg()),this.point(qt,Je)},De.prototype.validate=function(Je){if(Je.isInfinity())return!0;Je.normalize();var Ct=Je.x.redSqr(),yt=Je.y.redSqr(),Ft=Ct.redMul(this.a).redAdd(yt),$t=this.c2.redMul(this.one.redAdd(this.d.redMul(Ct).redMul(yt)));return Ft.cmp($t)===0};function vt(Je,Ct,yt,Ft,$t){ze.BasePoint.call(this,Je,"projective"),Ct===null&&yt===null&&Ft===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new xe(Ct,16),this.y=new xe(yt,16),this.z=Ft?new xe(Ft,16):this.curve.one,this.t=$t&&new xe($t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return Ke(vt,ze.BasePoint),De.prototype.pointFromJSON=function(Je){return vt.fromJSON(this,Je)},De.prototype.point=function(Je,Ct,yt,Ft){return new vt(this,Je,Ct,yt,Ft)},vt.fromJSON=function(Je,Ct){return new vt(Je,Ct[0],Ct[1],Ct[2])},vt.prototype.inspect=function(){return this.isInfinity()?"":""},vt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},vt.prototype._extDbl=function(){var Je=this.x.redSqr(),Ct=this.y.redSqr(),yt=this.z.redSqr();yt=yt.redIAdd(yt);var Ft=this.curve._mulA(Je),$t=this.x.redAdd(this.y).redSqr().redISub(Je).redISub(Ct),Rt=Ft.redAdd(Ct),qt=Rt.redSub(yt),Pt=Ft.redSub(Ct),Nt=$t.redMul(qt),zt=Rt.redMul(Pt),Gt=$t.redMul(Pt),Ut=qt.redMul(Rt);return this.curve.point(Nt,zt,Ut,Gt)},vt.prototype._projDbl=function(){var Je=this.x.redAdd(this.y).redSqr(),Ct=this.x.redSqr(),yt=this.y.redSqr(),Ft,$t,Rt,qt,Pt,Nt;if(this.curve.twisted){qt=this.curve._mulA(Ct);var zt=qt.redAdd(yt);this.zOne?(Ft=Je.redSub(Ct).redSub(yt).redMul(zt.redSub(this.curve.two)),$t=zt.redMul(qt.redSub(yt)),Rt=zt.redSqr().redSub(zt).redSub(zt)):(Pt=this.z.redSqr(),Nt=zt.redSub(Pt).redISub(Pt),Ft=Je.redSub(Ct).redISub(yt).redMul(Nt),$t=zt.redMul(qt.redSub(yt)),Rt=zt.redMul(Nt))}else qt=Ct.redAdd(yt),Pt=this.curve._mulC(this.z).redSqr(),Nt=qt.redSub(Pt).redSub(Pt),Ft=this.curve._mulC(Je.redISub(qt)).redMul(Nt),$t=this.curve._mulC(qt).redMul(Ct.redISub(yt)),Rt=qt.redMul(Nt);return this.curve.point(Ft,$t,Rt)},vt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},vt.prototype._extAdd=function(Je){var Ct=this.y.redSub(this.x).redMul(Je.y.redSub(Je.x)),yt=this.y.redAdd(this.x).redMul(Je.y.redAdd(Je.x)),Ft=this.t.redMul(this.curve.dd).redMul(Je.t),$t=this.z.redMul(Je.z.redAdd(Je.z)),Rt=yt.redSub(Ct),qt=$t.redSub(Ft),Pt=$t.redAdd(Ft),Nt=yt.redAdd(Ct),zt=Rt.redMul(qt),Gt=Pt.redMul(Nt),Ut=Rt.redMul(Nt),ii=qt.redMul(Pt);return this.curve.point(zt,Gt,ii,Ut)},vt.prototype._projAdd=function(Je){var Ct=this.z.redMul(Je.z),yt=Ct.redSqr(),Ft=this.x.redMul(Je.x),$t=this.y.redMul(Je.y),Rt=this.curve.d.redMul(Ft).redMul($t),qt=yt.redSub(Rt),Pt=yt.redAdd(Rt),Nt=this.x.redAdd(this.y).redMul(Je.x.redAdd(Je.y)).redISub(Ft).redISub($t),zt=Ct.redMul(qt).redMul(Nt),Gt,Ut;return this.curve.twisted?(Gt=Ct.redMul(Pt).redMul($t.redSub(this.curve._mulA(Ft))),Ut=qt.redMul(Pt)):(Gt=Ct.redMul(Pt).redMul($t.redSub(Ft)),Ut=this.curve._mulC(qt).redMul(Pt)),this.curve.point(zt,Gt,Ut)},vt.prototype.add=function(Je){return this.isInfinity()?Je:Je.isInfinity()?this:this.curve.extended?this._extAdd(Je):this._projAdd(Je)},vt.prototype.mul=function(Je){return this._hasDoubles(Je)?this.curve._fixedNafMul(this,Je):this.curve._wnafMul(this,Je)},vt.prototype.mulAdd=function(Je,Ct,yt){return this.curve._wnafMulAdd(1,[this,Ct],[Je,yt],2,!1)},vt.prototype.jmulAdd=function(Je,Ct,yt){return this.curve._wnafMulAdd(1,[this,Ct],[Je,yt],2,!0)},vt.prototype.normalize=function(){if(this.zOne)return this;var Je=this.z.redInvm();return this.x=this.x.redMul(Je),this.y=this.y.redMul(Je),this.t&&(this.t=this.t.redMul(Je)),this.z=this.curve.one,this.zOne=!0,this},vt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},vt.prototype.getX=function(){return this.normalize(),this.x.fromRed()},vt.prototype.getY=function(){return this.normalize(),this.y.fromRed()},vt.prototype.eq=function(Je){return this===Je||this.getX().cmp(Je.getX())===0&&this.getY().cmp(Je.getY())===0},vt.prototype.eqXToP=function(Je){var Ct=Je.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(Ct)===0)return!0;for(var yt=Je.clone(),Ft=this.curve.redN.redMul(this.z);;){if(yt.iadd(this.curve.n),yt.cmp(this.curve.p)>=0)return!1;if(Ct.redIAdd(Ft),this.x.cmp(Ct)===0)return!0}},vt.prototype.toP=vt.prototype.normalize,vt.prototype.mixedAdd=vt.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,(function(Me){var xe=Me;xe.base=requireBase$1(),xe.short=requireShort(),xe.mont=requireMont(),xe.edwards=requireEdwards()})(curve)),curve}var curves={},hash={},utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var Me=requireMinimalisticAssert(),xe=requireInherits_browser();utils.inherits=xe;function Ke(Ae,He){return(Ae.charCodeAt(He)&64512)!==55296||He<0||He+1>=Ae.length?!1:(Ae.charCodeAt(He+1)&64512)===56320}function ze(Ae,He){if(Array.isArray(Ae))return Ae.slice();if(!Ae)return[];var Ue=[];if(typeof Ae=="string")if(He){if(He==="hex")for(Ae=Ae.replace(/[^a-z0-9]+/ig,""),Ae.length%2!==0&&(Ae="0"+Ae),_t=0;_t>6|192,Ue[Ge++]=St&63|128):Ke(Ae,_t)?(St=65536+((St&1023)<<10)+(Ae.charCodeAt(++_t)&1023),Ue[Ge++]=St>>18|240,Ue[Ge++]=St>>12&63|128,Ue[Ge++]=St>>6&63|128,Ue[Ge++]=St&63|128):(Ue[Ge++]=St>>12|224,Ue[Ge++]=St>>6&63|128,Ue[Ge++]=St&63|128)}else for(_t=0;_t>>24|Ae>>>8&65280|Ae<<8&16711680|(Ae&255)<<24;return He>>>0}utils.htonl=De;function vt(Ae,He){for(var Ue="",Ge=0;Ge>>0}return St}utils.join32=yt;function Ft(Ae,He){for(var Ue=new Array(Ae.length*4),Ge=0,_t=0;Ge>>24,Ue[_t+1]=St>>>16&255,Ue[_t+2]=St>>>8&255,Ue[_t+3]=St&255):(Ue[_t+3]=St>>>24,Ue[_t+2]=St>>>16&255,Ue[_t+1]=St>>>8&255,Ue[_t]=St&255)}return Ue}utils.split32=Ft;function $t(Ae,He){return Ae>>>He|Ae<<32-He}utils.rotr32=$t;function Rt(Ae,He){return Ae<>>32-He}utils.rotl32=Rt;function qt(Ae,He){return Ae+He>>>0}utils.sum32=qt;function Pt(Ae,He,Ue){return Ae+He+Ue>>>0}utils.sum32_3=Pt;function Nt(Ae,He,Ue,Ge){return Ae+He+Ue+Ge>>>0}utils.sum32_4=Nt;function zt(Ae,He,Ue,Ge,_t){return Ae+He+Ue+Ge+_t>>>0}utils.sum32_5=zt;function Gt(Ae,He,Ue,Ge){var _t=Ae[He],St=Ae[He+1],Ye=Ge+St>>>0,ke=(Ye>>0,Ae[He+1]=Ye}utils.sum64=Gt;function Ut(Ae,He,Ue,Ge){var _t=He+Ge>>>0,St=(_t>>0}utils.sum64_hi=Ut;function ii(Ae,He,Ue,Ge){var _t=He+Ge;return _t>>>0}utils.sum64_lo=ii;function ti(Ae,He,Ue,Ge,_t,St,Ye,ke){var Xe=0,Vt=He;Vt=Vt+Ge>>>0,Xe+=Vt>>0,Xe+=Vt>>0,Xe+=Vt>>0}utils.sum64_4_hi=ti;function di(Ae,He,Ue,Ge,_t,St,Ye,ke){var Xe=He+Ge+St+ke;return Xe>>>0}utils.sum64_4_lo=di;function ci(Ae,He,Ue,Ge,_t,St,Ye,ke,Xe,Vt){var Jt=0,ei=He;ei=ei+Ge>>>0,Jt+=ei>>0,Jt+=ei>>0,Jt+=ei>>0,Jt+=ei>>0}utils.sum64_5_hi=ci;function vi(Ae,He,Ue,Ge,_t,St,Ye,ke,Xe,Vt){var Jt=He+Ge+St+ke+Vt;return Jt>>>0}utils.sum64_5_lo=vi;function bi(Ae,He,Ue){var Ge=He<<32-Ue|Ae>>>Ue;return Ge>>>0}utils.rotr64_hi=bi;function pi(Ae,He,Ue){var Ge=Ae<<32-Ue|He>>>Ue;return Ge>>>0}utils.rotr64_lo=pi;function Mi(Ae,He,Ue){return Ae>>>Ue}utils.shr64_hi=Mi;function j(Ae,He,Ue){var Ge=Ae<<32-Ue|He>>>Ue;return Ge>>>0}return utils.shr64_lo=j,utils}var common$1={},hasRequiredCommon$1;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;hasRequiredCommon$1=1;var Me=requireUtils(),xe=requireMinimalisticAssert();function Ke(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return common$1.BlockHash=Ke,Ke.prototype.update=function(ze,We){if(ze=Me.toArray(ze,We),this.pending?this.pending=this.pending.concat(ze):this.pending=ze,this.pendingTotal+=ze.length,this.pending.length>=this._delta8){ze=this.pending;var De=ze.length%this._delta8;this.pending=ze.slice(ze.length-De,ze.length),this.pending.length===0&&(this.pending=null),ze=Me.join32(ze,0,ze.length-De,this.endian);for(var vt=0;vt>>24&255,vt[Je++]=ze>>>16&255,vt[Je++]=ze>>>8&255,vt[Je++]=ze&255}else for(vt[Je++]=ze&255,vt[Je++]=ze>>>8&255,vt[Je++]=ze>>>16&255,vt[Je++]=ze>>>24&255,vt[Je++]=0,vt[Je++]=0,vt[Je++]=0,vt[Je++]=0,Ct=8;Ct>>3}common.g0_256=Ct;function yt(Ft){return xe(Ft,17)^xe(Ft,19)^Ft>>>10}return common.g1_256=yt,common}var _1,hasRequired_1;function require_1(){if(hasRequired_1)return _1;hasRequired_1=1;var Me=requireUtils(),xe=requireCommon$1(),Ke=requireCommon(),ze=Me.rotl32,We=Me.sum32,De=Me.sum32_5,vt=Ke.ft_1,Je=xe.BlockHash,Ct=[1518500249,1859775393,2400959708,3395469782];function yt(){if(!(this instanceof yt))return new yt;Je.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return Me.inherits(yt,Je),_1=yt,yt.blockSize=512,yt.outSize=160,yt.hmacStrength=80,yt.padLength=64,yt.prototype._update=function(Ft,$t){for(var Rt=this.W,qt=0;qt<16;qt++)Rt[qt]=Ft[$t+qt];for(;qtthis.blockSize&&(ze=new this.Hash().update(ze).digest()),xe(ze.length<=this.blockSize);for(var We=ze.length;We=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(De,vt,Je)}return hmacDrbg=ze,ze.prototype._init=function(We,De,vt){var Je=We.concat(De).concat(vt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var Ct=0;Ct=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(We.concat(vt||[])),this._reseed=1},ze.prototype.generate=function(We,De,vt,Je){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof De!="string"&&(Je=vt,vt=De,De=null),vt&&(vt=xe.toArray(vt,Je||"hex"),this._update(vt));for(var Ct=[];Ct.length"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var Me=requireBn$3(),xe=requireUtils$1(),Ke=xe.assert;function ze(Ct,yt){if(Ct instanceof ze)return Ct;this._importDER(Ct,yt)||(Ke(Ct.r&&Ct.s,"Signature without r or s"),this.r=new Me(Ct.r,16),this.s=new Me(Ct.s,16),Ct.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=Ct.recoveryParam)}signature$1=ze;function We(){this.place=0}function De(Ct,yt){var Ft=Ct[yt.place++];if(!(Ft&128))return Ft;var $t=Ft&15;if($t===0||$t>4||Ct[yt.place]===0)return!1;for(var Rt=0,qt=0,Pt=yt.place;qt<$t;qt++,Pt++)Rt<<=8,Rt|=Ct[Pt],Rt>>>=0;return Rt<=127?!1:(yt.place=Pt,Rt)}function vt(Ct){for(var yt=0,Ft=Ct.length-1;!Ct[yt]&&!(Ct[yt+1]&128)&&yt>>3);for(Ct.push(Ft|128);--Ft;)Ct.push(yt>>>(Ft<<3)&255);Ct.push(yt)}return ze.prototype.toDER=function(Ct){var yt=this.r.toArray(),Ft=this.s.toArray();for(yt[0]&128&&(yt=[0].concat(yt)),Ft[0]&128&&(Ft=[0].concat(Ft)),yt=vt(yt),Ft=vt(Ft);!Ft[0]&&!(Ft[1]&128);)Ft=Ft.slice(1);var $t=[2];Je($t,yt.length),$t=$t.concat(yt),$t.push(2),Je($t,Ft.length);var Rt=$t.concat(Ft),qt=[48];return Je(qt,Rt.length),qt=qt.concat(Rt),xe.encode(qt,Ct)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var Me=requireBn$3(),xe=requireHmacDrbg(),Ke=requireUtils$1(),ze=requireCurves(),We=requireBrorand(),De=Ke.assert,vt=requireKey$1(),Je=requireSignature$1();function Ct(yt){if(!(this instanceof Ct))return new Ct(yt);typeof yt=="string"&&(De(Object.prototype.hasOwnProperty.call(ze,yt),"Unknown curve "+yt),yt=ze[yt]),yt instanceof ze.PresetCurve&&(yt={curve:yt}),this.curve=yt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=yt.curve.g,this.g.precompute(yt.curve.n.bitLength()+1),this.hash=yt.hash||yt.curve.hash}return ec=Ct,Ct.prototype.keyPair=function(yt){return new vt(this,yt)},Ct.prototype.keyFromPrivate=function(yt,Ft){return vt.fromPrivate(this,yt,Ft)},Ct.prototype.keyFromPublic=function(yt,Ft){return vt.fromPublic(this,yt,Ft)},Ct.prototype.genKeyPair=function(yt){yt||(yt={});for(var Ft=new xe({hash:this.hash,pers:yt.pers,persEnc:yt.persEnc||"utf8",entropy:yt.entropy||We(this.hash.hmacStrength),entropyEnc:yt.entropy&&yt.entropyEnc||"utf8",nonce:this.n.toArray()}),$t=this.n.byteLength(),Rt=this.n.sub(new Me(2));;){var qt=new Me(Ft.generate($t));if(!(qt.cmp(Rt)>0))return qt.iaddn(1),this.keyFromPrivate(qt)}},Ct.prototype._truncateToN=function(yt,Ft,$t){var Rt;if(Me.isBN(yt)||typeof yt=="number")yt=new Me(yt,16),Rt=yt.byteLength();else if(typeof yt=="object")Rt=yt.length,yt=new Me(yt,16);else{var qt=yt.toString();Rt=qt.length+1>>>1,yt=new Me(qt,16)}typeof $t!="number"&&($t=Rt*8);var Pt=$t-this.n.bitLength();return Pt>0&&(yt=yt.ushrn(Pt)),!Ft&&yt.cmp(this.n)>=0?yt.sub(this.n):yt},Ct.prototype.sign=function(yt,Ft,$t,Rt){if(typeof $t=="object"&&(Rt=$t,$t=null),Rt||(Rt={}),typeof yt!="string"&&typeof yt!="number"&&!Me.isBN(yt)){De(typeof yt=="object"&&yt&&typeof yt.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),De(yt.length>>>0===yt.length);for(var qt=0;qt=0)){var di=this.g.mul(ti);if(!di.isInfinity()){var ci=di.getX(),vi=ci.umod(this.n);if(vi.cmpn(0)!==0){var bi=ti.invm(this.n).mul(vi.mul(Ft.getPrivate()).iadd(yt));if(bi=bi.umod(this.n),bi.cmpn(0)!==0){var pi=(di.getY().isOdd()?1:0)|(ci.cmp(vi)!==0?2:0);return Rt.canonical&&bi.cmp(this.nh)>0&&(bi=this.n.sub(bi),pi^=1),new Je({r:vi,s:bi,recoveryParam:pi})}}}}}},Ct.prototype.verify=function(yt,Ft,$t,Rt,qt){qt||(qt={}),yt=this._truncateToN(yt,!1,qt.msgBitLength),$t=this.keyFromPublic($t,Rt),Ft=new Je(Ft,"hex");var Pt=Ft.r,Nt=Ft.s;if(Pt.cmpn(1)<0||Pt.cmp(this.n)>=0||Nt.cmpn(1)<0||Nt.cmp(this.n)>=0)return!1;var zt=Nt.invm(this.n),Gt=zt.mul(yt).umod(this.n),Ut=zt.mul(Pt).umod(this.n),ii;return this.curve._maxwellTrick?(ii=this.g.jmulAdd(Gt,$t.getPublic(),Ut),ii.isInfinity()?!1:ii.eqXToP(Pt)):(ii=this.g.mulAdd(Gt,$t.getPublic(),Ut),ii.isInfinity()?!1:ii.getX().umod(this.n).cmp(Pt)===0)},Ct.prototype.recoverPubKey=function(yt,Ft,$t,Rt){De((3&$t)===$t,"The recovery param is more than two bits"),Ft=new Je(Ft,Rt);var qt=this.n,Pt=new Me(yt),Nt=Ft.r,zt=Ft.s,Gt=$t&1,Ut=$t>>1;if(Nt.cmp(this.curve.p.umod(this.curve.n))>=0&&Ut)throw new Error("Unable to find sencond key candinate");Ut?Nt=this.curve.pointFromX(Nt.add(this.curve.n),Gt):Nt=this.curve.pointFromX(Nt,Gt);var ii=Ft.r.invm(qt),ti=qt.sub(Pt).mul(ii).umod(qt),di=zt.mul(ii).umod(qt);return this.g.mulAdd(ti,Nt,di)},Ct.prototype.getKeyRecoveryParam=function(yt,Ft,$t,Rt){if(Ft=new Je(Ft,Rt),Ft.recoveryParam!==null)return Ft.recoveryParam;for(var qt=0;qt<4;qt++){var Pt;try{Pt=this.recoverPubKey(yt,Ft,qt)}catch{continue}if(Pt.eq($t))return qt}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var Me=requireUtils$1(),xe=Me.assert,Ke=Me.parseBytes,ze=Me.cachedProperty;function We(De,vt){this.eddsa=De,this._secret=Ke(vt.secret),De.isPoint(vt.pub)?this._pub=vt.pub:this._pubBytes=Ke(vt.pub)}return We.fromPublic=function(De,vt){return vt instanceof We?vt:new We(De,{pub:vt})},We.fromSecret=function(De,vt){return vt instanceof We?vt:new We(De,{secret:vt})},We.prototype.secret=function(){return this._secret},ze(We,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),ze(We,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),ze(We,"privBytes",function(){var De=this.eddsa,vt=this.hash(),Je=De.encodingLength-1,Ct=vt.slice(0,De.encodingLength);return Ct[0]&=248,Ct[Je]&=127,Ct[Je]|=64,Ct}),ze(We,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),ze(We,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),ze(We,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),We.prototype.sign=function(De){return xe(this._secret,"KeyPair can only verify"),this.eddsa.sign(De,this)},We.prototype.verify=function(De,vt){return this.eddsa.verify(De,vt,this)},We.prototype.getSecret=function(De){return xe(this._secret,"KeyPair is public only"),Me.encode(this.secret(),De)},We.prototype.getPublic=function(De){return Me.encode(this.pubBytes(),De)},key=We,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var Me=requireBn$3(),xe=requireUtils$1(),Ke=xe.assert,ze=xe.cachedProperty,We=xe.parseBytes;function De(vt,Je){this.eddsa=vt,typeof Je!="object"&&(Je=We(Je)),Array.isArray(Je)&&(Ke(Je.length===vt.encodingLength*2,"Signature has invalid size"),Je={R:Je.slice(0,vt.encodingLength),S:Je.slice(vt.encodingLength)}),Ke(Je.R&&Je.S,"Signature without R or S"),vt.isPoint(Je.R)&&(this._R=Je.R),Je.S instanceof Me&&(this._S=Je.S),this._Rencoded=Array.isArray(Je.R)?Je.R:Je.Rencoded,this._Sencoded=Array.isArray(Je.S)?Je.S:Je.Sencoded}return ze(De,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),ze(De,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),ze(De,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),ze(De,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),De.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},De.prototype.toHex=function(){return xe.encode(this.toBytes(),"hex").toUpperCase()},signature=De,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var Me=requireHash(),xe=requireCurves(),Ke=requireUtils$1(),ze=Ke.assert,We=Ke.parseBytes,De=requireKey(),vt=requireSignature();function Je(Ct){if(ze(Ct==="ed25519","only tested with ed25519 so far"),!(this instanceof Je))return new Je(Ct);Ct=xe[Ct].curve,this.curve=Ct,this.g=Ct.g,this.g.precompute(Ct.n.bitLength()+1),this.pointClass=Ct.point().constructor,this.encodingLength=Math.ceil(Ct.n.bitLength()/8),this.hash=Me.sha512}return eddsa=Je,Je.prototype.sign=function(Ct,yt){Ct=We(Ct);var Ft=this.keyFromSecret(yt),$t=this.hashInt(Ft.messagePrefix(),Ct),Rt=this.g.mul($t),qt=this.encodePoint(Rt),Pt=this.hashInt(qt,Ft.pubBytes(),Ct).mul(Ft.priv()),Nt=$t.add(Pt).umod(this.curve.n);return this.makeSignature({R:Rt,S:Nt,Rencoded:qt})},Je.prototype.verify=function(Ct,yt,Ft){if(Ct=We(Ct),yt=this.makeSignature(yt),yt.S().gte(yt.eddsa.curve.n)||yt.S().isNeg())return!1;var $t=this.keyFromPublic(Ft),Rt=this.hashInt(yt.Rencoded(),$t.pubBytes(),Ct),qt=this.g.mul(yt.S()),Pt=yt.R().add($t.pub().mul(Rt));return Pt.eq(qt)},Je.prototype.hashInt=function(){for(var Ct=this.hash(),yt=0;yt0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn$4)})(bn$5)),bn$5.exports}var api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,(function(exports){var indexOf=function(Me,xe){if(Me.indexOf)return Me.indexOf(xe);for(var Ke=0;Ke>6],qt=($t&32)===0;if(($t&31)===31){var Pt=$t;for($t=0;(Pt&128)===128;){if(Pt=yt.readUInt8(Ft),yt.isError(Pt))return Pt;$t<<=7,$t|=Pt&127}}else $t&=31;var Nt=We.tag[$t];return{cls:Rt,primitive:qt,tag:$t,tagStr:Nt}}function Ct(yt,Ft,$t){var Rt=yt.readUInt8($t);if(yt.isError(Rt))return Rt;if(!Ft&&Rt===128)return null;if((Rt&128)===0)return Rt;var qt=Rt&127;if(qt>4)return yt.error("length octect is too long");Rt=0;for(var Pt=0;Pt=256;Nt>>=8)Pt++;var zt=new xe(2+Pt);zt[0]=qt,zt[1]=128|Pt;for(var Nt=1+Pt,Gt=Rt.length;Gt>0;Nt--,Gt>>=8)zt[Nt]=Gt&255;return this._createEncoderBuffer([zt,Rt])},vt.prototype._encodeStr=function(yt,Ft){if(Ft==="bitstr")return this._createEncoderBuffer([yt.unused|0,yt.data]);if(Ft==="bmpstr"){for(var $t=new xe(yt.length*2),Rt=0;Rt=40)return this.reporter.error("Second objid identifier OOB");yt.splice(0,2,yt[0]*40+yt[1])}for(var qt=0,Rt=0;Rt=128;Pt>>=7)qt++}for(var Nt=new xe(qt),zt=Nt.length-1,Rt=yt.length-1;Rt>=0;Rt--){var Pt=yt[Rt];for(Nt[zt--]=Pt&127;(Pt>>=7)>0;)Nt[zt--]=128|Pt&127}return this._createEncoderBuffer(Nt)};function Je(yt){return yt<10?"0"+yt:yt}vt.prototype._encodeTime=function(yt,Ft){var $t,Rt=new Date(yt);return Ft==="gentime"?$t=[Je(Rt.getFullYear()),Je(Rt.getUTCMonth()+1),Je(Rt.getUTCDate()),Je(Rt.getUTCHours()),Je(Rt.getUTCMinutes()),Je(Rt.getUTCSeconds()),"Z"].join(""):Ft==="utctime"?$t=[Je(Rt.getFullYear()%100),Je(Rt.getUTCMonth()+1),Je(Rt.getUTCDate()),Je(Rt.getUTCHours()),Je(Rt.getUTCMinutes()),Je(Rt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+Ft+" time is not supported yet"),this._encodeStr($t,"octstr")},vt.prototype._encodeNull=function(){return this._createEncoderBuffer("")},vt.prototype._encodeInt=function(yt,Ft){if(typeof yt=="string"){if(!Ft)return this.reporter.error("String int or enum given, but no values map");if(!Ft.hasOwnProperty(yt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(yt));yt=Ft[yt]}if(typeof yt!="number"&&!xe.isBuffer(yt)){var $t=yt.toArray();!yt.sign&&$t[0]&128&&$t.unshift(0),yt=new xe($t)}if(xe.isBuffer(yt)){var Rt=yt.length;yt.length===0&&Rt++;var qt=new xe(Rt);return yt.copy(qt),yt.length===0&&(qt[0]=0),this._createEncoderBuffer(qt)}if(yt<128)return this._createEncoderBuffer(yt);if(yt<256)return this._createEncoderBuffer([0,yt]);for(var Rt=1,Pt=yt;Pt>=256;Pt>>=8)Rt++;for(var qt=new Array(Rt),Pt=qt.length-1;Pt>=0;Pt--)qt[Pt]=yt&255,yt>>=8;return qt[0]&128&&qt.unshift(0),this._createEncoderBuffer(new xe(qt))},vt.prototype._encodeBool=function(yt){return this._createEncoderBuffer(yt?255:0)},vt.prototype._use=function(yt,Ft){return typeof yt=="function"&&(yt=yt(Ft)),yt._getEncoder("der").tree},vt.prototype._skipDefault=function(yt,Ft,$t){var Rt=this._baseState,qt;if(Rt.default===null)return!1;var Pt=yt.join();if(Rt.defaultBuffer===void 0&&(Rt.defaultBuffer=this._encodeValue(Rt.default,Ft,$t).join()),Pt.length!==Rt.defaultBuffer.length)return!1;for(qt=0;qt=31?Rt.error("Multi-octet tag encoding unsupported"):(Ft||(qt|=32),qt|=We.tagClassByName[$t||"universal"]<<6,qt)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var Me=requireInherits_browser(),xe=requireDer();function Ke(ze){xe.call(this,ze),this.enc="pem"}return Me(Ke,xe),pem=Ke,Ke.prototype.encode=function(ze,We){for(var De=xe.prototype.encode.call(this,ze),vt=De.toString("base64"),Je=["-----BEGIN "+We.label+"-----"],Ct=0;Ct0&&ii.ishrn(ti),ii}function Pt(Gt,Ut){Gt=qt(Gt,Ut),Gt=Gt.mod(Ut);var ii=Me.from(Gt.toArray());if(ii.length=0)throw new Error("invalid sig")}return verify_1=De,verify_1}var browser$3,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$3;hasRequiredBrowser$3=1;var Me=requireSafeBuffer$2().Buffer,xe=requireBrowser$9(),Ke=requireReadableBrowser(),ze=requireInherits_browser(),We=requireSign(),De=requireVerify(),vt=require$$6;Object.keys(vt).forEach(function($t){vt[$t].id=Me.from(vt[$t].id,"hex"),vt[$t.toLowerCase()]=vt[$t]});function Je($t){Ke.Writable.call(this);var Rt=vt[$t];if(!Rt)throw new Error("Unknown message digest");this._hashType=Rt.hash,this._hash=xe(Rt.hash),this._tag=Rt.id,this._signType=Rt.sign}ze(Je,Ke.Writable),Je.prototype._write=function($t,Rt,qt){this._hash.update($t),qt()},Je.prototype.update=function($t,Rt){return this._hash.update(typeof $t=="string"?Me.from($t,Rt):$t),this},Je.prototype.sign=function($t,Rt){this.end();var qt=this._hash.digest(),Pt=We(qt,$t,this._hashType,this._signType,this._tag);return Rt?Pt.toString(Rt):Pt};function Ct($t){Ke.Writable.call(this);var Rt=vt[$t];if(!Rt)throw new Error("Unknown message digest");this._hash=xe(Rt.hash),this._tag=Rt.id,this._signType=Rt.sign}ze(Ct,Ke.Writable),Ct.prototype._write=function($t,Rt,qt){this._hash.update($t),qt()},Ct.prototype.update=function($t,Rt){return this._hash.update(typeof $t=="string"?Me.from($t,Rt):$t),this},Ct.prototype.verify=function($t,Rt,qt){var Pt=typeof Rt=="string"?Me.from(Rt,qt):Rt;this.end();var Nt=this._hash.digest();return De(Pt,Nt,$t,this._signType,this._tag)};function yt($t){return new Je($t)}function Ft($t){return new Ct($t)}return browser$3={Sign:yt,Verify:Ft,createSign:yt,createVerify:Ft},browser$3}var bn$3={exports:{}},bn$2=bn$3.exports,hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,(function(Me){(function(xe,Ke){function ze(j,Ae){if(!j)throw new Error(Ae||"Assertion failed")}function We(j,Ae){j.super_=Ae;var He=function(){};He.prototype=Ae.prototype,j.prototype=new He,j.prototype.constructor=j}function De(j,Ae,He){if(De.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((Ae==="le"||Ae==="be")&&(He=Ae,Ae=10),this._init(j||0,Ae||10,He||"be"))}typeof xe=="object"?xe.exports=De:Ke.BN=De,De.BN=De,De.wordSize=26;var vt;try{typeof window<"u"&&typeof window.Buffer<"u"?vt=window.Buffer:vt=requireDist().Buffer}catch{}De.isBN=function(j){return j instanceof De?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===De.wordSize&&Array.isArray(j.words)},De.max=function(j,Ae){return j.cmp(Ae)>0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn$2)})(bn$3)),bn$3.exports}var browser$2,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$2;hasRequiredBrowser$2=1;var Me=requireElliptic(),xe=requireBn$1();browser$2=function(De){return new ze(De)};var Ke={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Ke.p224=Ke.secp224r1,Ke.p256=Ke.secp256r1=Ke.prime256v1,Ke.p192=Ke.secp192r1=Ke.prime192v1,Ke.p384=Ke.secp384r1,Ke.p521=Ke.secp521r1;function ze(De){this.curveType=Ke[De],this.curveType||(this.curveType={name:De}),this.curve=new Me.ec(this.curveType.name),this.keys=void 0}ze.prototype.generateKeys=function(De,vt){return this.keys=this.curve.genKeyPair(),this.getPublicKey(De,vt)},ze.prototype.computeSecret=function(De,vt,Je){vt=vt||"utf8",Buffer.isBuffer(De)||(De=new Buffer(De,vt));var Ct=this.curve.keyFromPublic(De).getPublic(),yt=Ct.mul(this.keys.getPrivate()).getX();return We(yt,Je,this.curveType.byteLength)},ze.prototype.getPublicKey=function(De,vt){var Je=this.keys.getPublic(vt==="compressed",!0);return vt==="hybrid"&&(Je[Je.length-1]%2?Je[0]=7:Je[0]=6),We(Je,De)},ze.prototype.getPrivateKey=function(De){return We(this.keys.getPrivate(),De)},ze.prototype.setPublicKey=function(De,vt){return vt=vt||"utf8",Buffer.isBuffer(De)||(De=new Buffer(De,vt)),this.keys._importPublic(De),this},ze.prototype.setPrivateKey=function(De,vt){vt=vt||"utf8",Buffer.isBuffer(De)||(De=new Buffer(De,vt));var Je=new xe(De);return Je=Je.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(Je),this};function We(De,vt,Je){Array.isArray(De)||(De=De.toArray());var Ct=new Buffer(De);if(Je&&Ct.length0?j:Ae},De.min=function(j,Ae){return j.cmp(Ae)<0?j:Ae},De.prototype._init=function(j,Ae,He){if(typeof j=="number")return this._initNumber(j,Ae,He);if(typeof j=="object")return this._initArray(j,Ae,He);Ae==="hex"&&(Ae=16),ze(Ae===(Ae|0)&&Ae>=2&&Ae<=36),j=j.toString().replace(/\s+/g,"");var Ue=0;j[0]==="-"&&(Ue++,this.negative=1),Ue=0;Ue-=3)_t=j[Ue]|j[Ue-1]<<8|j[Ue-2]<<16,this.words[Ge]|=_t<>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);else if(He==="le")for(Ue=0,Ge=0;Ue>>26-St&67108863,St+=24,St>=26&&(St-=26,Ge++);return this.strip()};function Je(j,Ae){var He=j.charCodeAt(Ae);return He>=65&&He<=70?He-55:He>=97&&He<=102?He-87:He-48&15}function Ct(j,Ae,He){var Ue=Je(j,He);return He-1>=Ae&&(Ue|=Je(j,He-1)<<4),Ue}De.prototype._parseHex=function(j,Ae,He){this.length=Math.ceil((j.length-Ae)/6),this.words=new Array(this.length);for(var Ue=0;Ue=Ae;Ue-=2)St=Ct(j,Ae,Ue)<=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8;else{var Ye=j.length-Ae;for(Ue=Ye%2===0?Ae+1:Ae;Ue=18?(Ge-=18,_t+=1,this.words[_t]|=St>>>26):Ge+=8}this.strip()};function yt(j,Ae,He,Ue){for(var Ge=0,_t=Math.min(j.length,He),St=Ae;St<_t;St++){var Ye=j.charCodeAt(St)-48;Ge*=Ue,Ye>=49?Ge+=Ye-49+10:Ye>=17?Ge+=Ye-17+10:Ge+=Ye}return Ge}De.prototype._parseBase=function(j,Ae,He){this.words=[0],this.length=1;for(var Ue=0,Ge=1;Ge<=67108863;Ge*=Ae)Ue++;Ue--,Ge=Ge/Ae|0;for(var _t=j.length-He,St=_t%Ue,Ye=Math.min(_t,_t-St)+He,ke=0,Xe=He;Xe1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},De.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},De.prototype.inspect=function(){return(this.red?""};var Ft=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],$t=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Rt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];De.prototype.toString=function(j,Ae){j=j||10,Ae=Ae|0||1;var He;if(j===16||j==="hex"){He="";for(var Ue=0,Ge=0,_t=0;_t>>24-Ue&16777215,Ue+=2,Ue>=26&&(Ue-=26,_t--),Ge!==0||_t!==this.length-1?He=Ft[6-Ye.length]+Ye+He:He=Ye+He}for(Ge!==0&&(He=Ge.toString(16)+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}if(j===(j|0)&&j>=2&&j<=36){var ke=$t[j],Xe=Rt[j];He="";var Vt=this.clone();for(Vt.negative=0;!Vt.isZero();){var Jt=Vt.modn(Xe).toString(j);Vt=Vt.idivn(Xe),Vt.isZero()?He=Jt+He:He=Ft[ke-Jt.length]+Jt+He}for(this.isZero()&&(He="0"+He);He.length%Ae!==0;)He="0"+He;return this.negative!==0&&(He="-"+He),He}ze(!1,"Base should be between 2 and 36")},De.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&ze(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},De.prototype.toJSON=function(){return this.toString(16)},De.prototype.toBuffer=function(j,Ae){return ze(typeof vt<"u"),this.toArrayLike(vt,j,Ae)},De.prototype.toArray=function(j,Ae){return this.toArrayLike(Array,j,Ae)},De.prototype.toArrayLike=function(j,Ae,He){var Ue=this.byteLength(),Ge=He||Math.max(1,Ue);ze(Ue<=Ge,"byte array longer than desired length"),ze(Ge>0,"Requested array length <= 0"),this.strip();var _t=Ae==="le",St=new j(Ge),Ye,ke,Xe=this.clone();if(_t){for(ke=0;!Xe.isZero();ke++)Ye=Xe.andln(255),Xe.iushrn(8),St[ke]=Ye;for(;ke=4096&&(He+=13,Ae>>>=13),Ae>=64&&(He+=7,Ae>>>=7),Ae>=8&&(He+=4,Ae>>>=4),Ae>=2&&(He+=2,Ae>>>=2),He+Ae},De.prototype._zeroBits=function(j){if(j===0)return 26;var Ae=j,He=0;return(Ae&8191)===0&&(He+=13,Ae>>>=13),(Ae&127)===0&&(He+=7,Ae>>>=7),(Ae&15)===0&&(He+=4,Ae>>>=4),(Ae&3)===0&&(He+=2,Ae>>>=2),(Ae&1)===0&&He++,He},De.prototype.bitLength=function(){var j=this.words[this.length-1],Ae=this._countBits(j);return(this.length-1)*26+Ae};function qt(j){for(var Ae=new Array(j.bitLength()),He=0;He>>Ge}return Ae}De.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,Ae=0;Aej.length?this.clone().ior(j):j.clone().ior(this)},De.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},De.prototype.iuand=function(j){var Ae;this.length>j.length?Ae=j:Ae=this;for(var He=0;Hej.length?this.clone().iand(j):j.clone().iand(this)},De.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},De.prototype.iuxor=function(j){var Ae,He;this.length>j.length?(Ae=this,He=j):(Ae=j,He=this);for(var Ue=0;Uej.length?this.clone().ixor(j):j.clone().ixor(this)},De.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},De.prototype.inotn=function(j){ze(typeof j=="number"&&j>=0);var Ae=Math.ceil(j/26)|0,He=j%26;this._expand(Ae),He>0&&Ae--;for(var Ue=0;Ue0&&(this.words[Ue]=~this.words[Ue]&67108863>>26-He),this.strip()},De.prototype.notn=function(j){return this.clone().inotn(j)},De.prototype.setn=function(j,Ae){ze(typeof j=="number"&&j>=0);var He=j/26|0,Ue=j%26;return this._expand(He+1),Ae?this.words[He]=this.words[He]|1<j.length?(He=this,Ue=j):(He=j,Ue=this);for(var Ge=0,_t=0;_t>>26;for(;Ge!==0&&_t>>26;if(this.length=He.length,Ge!==0)this.words[this.length]=Ge,this.length++;else if(He!==this)for(;_tj.length?this.clone().iadd(j):j.clone().iadd(this)},De.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var Ae=this.iadd(j);return j.negative=1,Ae._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var He=this.cmp(j);if(He===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ue,Ge;He>0?(Ue=this,Ge=j):(Ue=j,Ge=this);for(var _t=0,St=0;St>26,this.words[St]=Ae&67108863;for(;_t!==0&&St>26,this.words[St]=Ae&67108863;if(_t===0&&St>>26,Jt=ke&67108863,ei=Math.min(Xe,Ae.length-1),oi=Math.max(0,Xe-j.length+1);oi<=ei;oi++){var li=Xe-oi|0;Ge=j.words[li]|0,_t=Ae.words[oi]|0,St=Ge*_t+Jt,Vt+=St/67108864|0,Jt=St&67108863}He.words[Xe]=Jt|0,ke=Vt|0}return ke!==0?He.words[Xe]=ke|0:He.length--,He.strip()}var Nt=function(j,Ae,He){var Ue=j.words,Ge=Ae.words,_t=He.words,St=0,Ye,ke,Xe,Vt=Ue[0]|0,Jt=Vt&8191,ei=Vt>>>13,oi=Ue[1]|0,li=oi&8191,fi=oi>>>13,ri=Ue[2]|0,Xt=ri&8191,mi=ri>>>13,Fi=Ue[3]|0,si=Fi&8191,hi=Fi>>>13,ki=Ue[4]|0,Bi=ki&8191,gi=ki>>>13,Ui=Ue[5]|0,Ei=Ui&8191,Li=Ui>>>13,Ti=Ue[6]|0,Hi=Ti&8191,zi=Ti>>>13,an=Ue[7]|0,Ci=an&8191,Ri=an>>>13,sn=Ue[8]|0,Zi=sn&8191,Xi=sn>>>13,xn=Ue[9]|0,ni=xn&8191,yi=xn>>>13,Si=Ge[0]|0,xi=Si&8191,Ni=Si>>>13,rn=Ge[1]|0,qi=rn&8191,Ki=rn>>>13,ln=Ge[2]|0,_i=ln&8191,$i=ln>>>13,on=Ge[3]|0,Vi=on&8191,Di=on>>>13,nn=Ge[4]|0,Pi=nn&8191,ji=nn>>>13,kn=Ge[5]|0,Yi=kn&8191,Yt=kn>>>13,ui=Ge[6]|0,ai=ui&8191,wi=ui>>>13,Ii=Ge[7]|0,Ai=Ii&8191,Oi=Ii>>>13,Mn=Ge[8]|0,Qi=Mn&8191,Wi=Mn>>>13,wn=Ge[9]|0,Gi=wn&8191,Ji=wn>>>13;He.negative=j.negative^Ae.negative,He.length=19,Ye=Math.imul(Jt,xi),ke=Math.imul(Jt,Ni),ke=ke+Math.imul(ei,xi)|0,Xe=Math.imul(ei,Ni);var An=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(An>>>26)|0,An&=67108863,Ye=Math.imul(li,xi),ke=Math.imul(li,Ni),ke=ke+Math.imul(fi,xi)|0,Xe=Math.imul(fi,Ni),Ye=Ye+Math.imul(Jt,qi)|0,ke=ke+Math.imul(Jt,Ki)|0,ke=ke+Math.imul(ei,qi)|0,Xe=Xe+Math.imul(ei,Ki)|0;var Dn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,Ye=Math.imul(Xt,xi),ke=Math.imul(Xt,Ni),ke=ke+Math.imul(mi,xi)|0,Xe=Math.imul(mi,Ni),Ye=Ye+Math.imul(li,qi)|0,ke=ke+Math.imul(li,Ki)|0,ke=ke+Math.imul(fi,qi)|0,Xe=Xe+Math.imul(fi,Ki)|0,Ye=Ye+Math.imul(Jt,_i)|0,ke=ke+Math.imul(Jt,$i)|0,ke=ke+Math.imul(ei,_i)|0,Xe=Xe+Math.imul(ei,$i)|0;var $n=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+($n>>>26)|0,$n&=67108863,Ye=Math.imul(si,xi),ke=Math.imul(si,Ni),ke=ke+Math.imul(hi,xi)|0,Xe=Math.imul(hi,Ni),Ye=Ye+Math.imul(Xt,qi)|0,ke=ke+Math.imul(Xt,Ki)|0,ke=ke+Math.imul(mi,qi)|0,Xe=Xe+Math.imul(mi,Ki)|0,Ye=Ye+Math.imul(li,_i)|0,ke=ke+Math.imul(li,$i)|0,ke=ke+Math.imul(fi,_i)|0,Xe=Xe+Math.imul(fi,$i)|0,Ye=Ye+Math.imul(Jt,Vi)|0,ke=ke+Math.imul(Jt,Di)|0,ke=ke+Math.imul(ei,Vi)|0,Xe=Xe+Math.imul(ei,Di)|0;var Tn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ye=Math.imul(Bi,xi),ke=Math.imul(Bi,Ni),ke=ke+Math.imul(gi,xi)|0,Xe=Math.imul(gi,Ni),Ye=Ye+Math.imul(si,qi)|0,ke=ke+Math.imul(si,Ki)|0,ke=ke+Math.imul(hi,qi)|0,Xe=Xe+Math.imul(hi,Ki)|0,Ye=Ye+Math.imul(Xt,_i)|0,ke=ke+Math.imul(Xt,$i)|0,ke=ke+Math.imul(mi,_i)|0,Xe=Xe+Math.imul(mi,$i)|0,Ye=Ye+Math.imul(li,Vi)|0,ke=ke+Math.imul(li,Di)|0,ke=ke+Math.imul(fi,Vi)|0,Xe=Xe+Math.imul(fi,Di)|0,Ye=Ye+Math.imul(Jt,Pi)|0,ke=ke+Math.imul(Jt,ji)|0,ke=ke+Math.imul(ei,Pi)|0,Xe=Xe+Math.imul(ei,ji)|0;var Zn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Ye=Math.imul(Ei,xi),ke=Math.imul(Ei,Ni),ke=ke+Math.imul(Li,xi)|0,Xe=Math.imul(Li,Ni),Ye=Ye+Math.imul(Bi,qi)|0,ke=ke+Math.imul(Bi,Ki)|0,ke=ke+Math.imul(gi,qi)|0,Xe=Xe+Math.imul(gi,Ki)|0,Ye=Ye+Math.imul(si,_i)|0,ke=ke+Math.imul(si,$i)|0,ke=ke+Math.imul(hi,_i)|0,Xe=Xe+Math.imul(hi,$i)|0,Ye=Ye+Math.imul(Xt,Vi)|0,ke=ke+Math.imul(Xt,Di)|0,ke=ke+Math.imul(mi,Vi)|0,Xe=Xe+Math.imul(mi,Di)|0,Ye=Ye+Math.imul(li,Pi)|0,ke=ke+Math.imul(li,ji)|0,ke=ke+Math.imul(fi,Pi)|0,Xe=Xe+Math.imul(fi,ji)|0,Ye=Ye+Math.imul(Jt,Yi)|0,ke=ke+Math.imul(Jt,Yt)|0,ke=ke+Math.imul(ei,Yi)|0,Xe=Xe+Math.imul(ei,Yt)|0;var Xn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,Ye=Math.imul(Hi,xi),ke=Math.imul(Hi,Ni),ke=ke+Math.imul(zi,xi)|0,Xe=Math.imul(zi,Ni),Ye=Ye+Math.imul(Ei,qi)|0,ke=ke+Math.imul(Ei,Ki)|0,ke=ke+Math.imul(Li,qi)|0,Xe=Xe+Math.imul(Li,Ki)|0,Ye=Ye+Math.imul(Bi,_i)|0,ke=ke+Math.imul(Bi,$i)|0,ke=ke+Math.imul(gi,_i)|0,Xe=Xe+Math.imul(gi,$i)|0,Ye=Ye+Math.imul(si,Vi)|0,ke=ke+Math.imul(si,Di)|0,ke=ke+Math.imul(hi,Vi)|0,Xe=Xe+Math.imul(hi,Di)|0,Ye=Ye+Math.imul(Xt,Pi)|0,ke=ke+Math.imul(Xt,ji)|0,ke=ke+Math.imul(mi,Pi)|0,Xe=Xe+Math.imul(mi,ji)|0,Ye=Ye+Math.imul(li,Yi)|0,ke=ke+Math.imul(li,Yt)|0,ke=ke+Math.imul(fi,Yi)|0,Xe=Xe+Math.imul(fi,Yt)|0,Ye=Ye+Math.imul(Jt,ai)|0,ke=ke+Math.imul(Jt,wi)|0,ke=ke+Math.imul(ei,ai)|0,Xe=Xe+Math.imul(ei,wi)|0;var Jn=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,Ye=Math.imul(Ci,xi),ke=Math.imul(Ci,Ni),ke=ke+Math.imul(Ri,xi)|0,Xe=Math.imul(Ri,Ni),Ye=Ye+Math.imul(Hi,qi)|0,ke=ke+Math.imul(Hi,Ki)|0,ke=ke+Math.imul(zi,qi)|0,Xe=Xe+Math.imul(zi,Ki)|0,Ye=Ye+Math.imul(Ei,_i)|0,ke=ke+Math.imul(Ei,$i)|0,ke=ke+Math.imul(Li,_i)|0,Xe=Xe+Math.imul(Li,$i)|0,Ye=Ye+Math.imul(Bi,Vi)|0,ke=ke+Math.imul(Bi,Di)|0,ke=ke+Math.imul(gi,Vi)|0,Xe=Xe+Math.imul(gi,Di)|0,Ye=Ye+Math.imul(si,Pi)|0,ke=ke+Math.imul(si,ji)|0,ke=ke+Math.imul(hi,Pi)|0,Xe=Xe+Math.imul(hi,ji)|0,Ye=Ye+Math.imul(Xt,Yi)|0,ke=ke+Math.imul(Xt,Yt)|0,ke=ke+Math.imul(mi,Yi)|0,Xe=Xe+Math.imul(mi,Yt)|0,Ye=Ye+Math.imul(li,ai)|0,ke=ke+Math.imul(li,wi)|0,ke=ke+Math.imul(fi,ai)|0,Xe=Xe+Math.imul(fi,wi)|0,Ye=Ye+Math.imul(Jt,Ai)|0,ke=ke+Math.imul(Jt,Oi)|0,ke=ke+Math.imul(ei,Ai)|0,Xe=Xe+Math.imul(ei,Oi)|0;var es=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(es>>>26)|0,es&=67108863,Ye=Math.imul(Zi,xi),ke=Math.imul(Zi,Ni),ke=ke+Math.imul(Xi,xi)|0,Xe=Math.imul(Xi,Ni),Ye=Ye+Math.imul(Ci,qi)|0,ke=ke+Math.imul(Ci,Ki)|0,ke=ke+Math.imul(Ri,qi)|0,Xe=Xe+Math.imul(Ri,Ki)|0,Ye=Ye+Math.imul(Hi,_i)|0,ke=ke+Math.imul(Hi,$i)|0,ke=ke+Math.imul(zi,_i)|0,Xe=Xe+Math.imul(zi,$i)|0,Ye=Ye+Math.imul(Ei,Vi)|0,ke=ke+Math.imul(Ei,Di)|0,ke=ke+Math.imul(Li,Vi)|0,Xe=Xe+Math.imul(Li,Di)|0,Ye=Ye+Math.imul(Bi,Pi)|0,ke=ke+Math.imul(Bi,ji)|0,ke=ke+Math.imul(gi,Pi)|0,Xe=Xe+Math.imul(gi,ji)|0,Ye=Ye+Math.imul(si,Yi)|0,ke=ke+Math.imul(si,Yt)|0,ke=ke+Math.imul(hi,Yi)|0,Xe=Xe+Math.imul(hi,Yt)|0,Ye=Ye+Math.imul(Xt,ai)|0,ke=ke+Math.imul(Xt,wi)|0,ke=ke+Math.imul(mi,ai)|0,Xe=Xe+Math.imul(mi,wi)|0,Ye=Ye+Math.imul(li,Ai)|0,ke=ke+Math.imul(li,Oi)|0,ke=ke+Math.imul(fi,Ai)|0,Xe=Xe+Math.imul(fi,Oi)|0,Ye=Ye+Math.imul(Jt,Qi)|0,ke=ke+Math.imul(Jt,Wi)|0,ke=ke+Math.imul(ei,Qi)|0,Xe=Xe+Math.imul(ei,Wi)|0;var ts=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ts>>>26)|0,ts&=67108863,Ye=Math.imul(ni,xi),ke=Math.imul(ni,Ni),ke=ke+Math.imul(yi,xi)|0,Xe=Math.imul(yi,Ni),Ye=Ye+Math.imul(Zi,qi)|0,ke=ke+Math.imul(Zi,Ki)|0,ke=ke+Math.imul(Xi,qi)|0,Xe=Xe+Math.imul(Xi,Ki)|0,Ye=Ye+Math.imul(Ci,_i)|0,ke=ke+Math.imul(Ci,$i)|0,ke=ke+Math.imul(Ri,_i)|0,Xe=Xe+Math.imul(Ri,$i)|0,Ye=Ye+Math.imul(Hi,Vi)|0,ke=ke+Math.imul(Hi,Di)|0,ke=ke+Math.imul(zi,Vi)|0,Xe=Xe+Math.imul(zi,Di)|0,Ye=Ye+Math.imul(Ei,Pi)|0,ke=ke+Math.imul(Ei,ji)|0,ke=ke+Math.imul(Li,Pi)|0,Xe=Xe+Math.imul(Li,ji)|0,Ye=Ye+Math.imul(Bi,Yi)|0,ke=ke+Math.imul(Bi,Yt)|0,ke=ke+Math.imul(gi,Yi)|0,Xe=Xe+Math.imul(gi,Yt)|0,Ye=Ye+Math.imul(si,ai)|0,ke=ke+Math.imul(si,wi)|0,ke=ke+Math.imul(hi,ai)|0,Xe=Xe+Math.imul(hi,wi)|0,Ye=Ye+Math.imul(Xt,Ai)|0,ke=ke+Math.imul(Xt,Oi)|0,ke=ke+Math.imul(mi,Ai)|0,Xe=Xe+Math.imul(mi,Oi)|0,Ye=Ye+Math.imul(li,Qi)|0,ke=ke+Math.imul(li,Wi)|0,ke=ke+Math.imul(fi,Qi)|0,Xe=Xe+Math.imul(fi,Wi)|0,Ye=Ye+Math.imul(Jt,Gi)|0,ke=ke+Math.imul(Jt,Ji)|0,ke=ke+Math.imul(ei,Gi)|0,Xe=Xe+Math.imul(ei,Ji)|0;var rs=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(rs>>>26)|0,rs&=67108863,Ye=Math.imul(ni,qi),ke=Math.imul(ni,Ki),ke=ke+Math.imul(yi,qi)|0,Xe=Math.imul(yi,Ki),Ye=Ye+Math.imul(Zi,_i)|0,ke=ke+Math.imul(Zi,$i)|0,ke=ke+Math.imul(Xi,_i)|0,Xe=Xe+Math.imul(Xi,$i)|0,Ye=Ye+Math.imul(Ci,Vi)|0,ke=ke+Math.imul(Ci,Di)|0,ke=ke+Math.imul(Ri,Vi)|0,Xe=Xe+Math.imul(Ri,Di)|0,Ye=Ye+Math.imul(Hi,Pi)|0,ke=ke+Math.imul(Hi,ji)|0,ke=ke+Math.imul(zi,Pi)|0,Xe=Xe+Math.imul(zi,ji)|0,Ye=Ye+Math.imul(Ei,Yi)|0,ke=ke+Math.imul(Ei,Yt)|0,ke=ke+Math.imul(Li,Yi)|0,Xe=Xe+Math.imul(Li,Yt)|0,Ye=Ye+Math.imul(Bi,ai)|0,ke=ke+Math.imul(Bi,wi)|0,ke=ke+Math.imul(gi,ai)|0,Xe=Xe+Math.imul(gi,wi)|0,Ye=Ye+Math.imul(si,Ai)|0,ke=ke+Math.imul(si,Oi)|0,ke=ke+Math.imul(hi,Ai)|0,Xe=Xe+Math.imul(hi,Oi)|0,Ye=Ye+Math.imul(Xt,Qi)|0,ke=ke+Math.imul(Xt,Wi)|0,ke=ke+Math.imul(mi,Qi)|0,Xe=Xe+Math.imul(mi,Wi)|0,Ye=Ye+Math.imul(li,Gi)|0,ke=ke+Math.imul(li,Ji)|0,ke=ke+Math.imul(fi,Gi)|0,Xe=Xe+Math.imul(fi,Ji)|0;var is=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(is>>>26)|0,is&=67108863,Ye=Math.imul(ni,_i),ke=Math.imul(ni,$i),ke=ke+Math.imul(yi,_i)|0,Xe=Math.imul(yi,$i),Ye=Ye+Math.imul(Zi,Vi)|0,ke=ke+Math.imul(Zi,Di)|0,ke=ke+Math.imul(Xi,Vi)|0,Xe=Xe+Math.imul(Xi,Di)|0,Ye=Ye+Math.imul(Ci,Pi)|0,ke=ke+Math.imul(Ci,ji)|0,ke=ke+Math.imul(Ri,Pi)|0,Xe=Xe+Math.imul(Ri,ji)|0,Ye=Ye+Math.imul(Hi,Yi)|0,ke=ke+Math.imul(Hi,Yt)|0,ke=ke+Math.imul(zi,Yi)|0,Xe=Xe+Math.imul(zi,Yt)|0,Ye=Ye+Math.imul(Ei,ai)|0,ke=ke+Math.imul(Ei,wi)|0,ke=ke+Math.imul(Li,ai)|0,Xe=Xe+Math.imul(Li,wi)|0,Ye=Ye+Math.imul(Bi,Ai)|0,ke=ke+Math.imul(Bi,Oi)|0,ke=ke+Math.imul(gi,Ai)|0,Xe=Xe+Math.imul(gi,Oi)|0,Ye=Ye+Math.imul(si,Qi)|0,ke=ke+Math.imul(si,Wi)|0,ke=ke+Math.imul(hi,Qi)|0,Xe=Xe+Math.imul(hi,Wi)|0,Ye=Ye+Math.imul(Xt,Gi)|0,ke=ke+Math.imul(Xt,Ji)|0,ke=ke+Math.imul(mi,Gi)|0,Xe=Xe+Math.imul(mi,Ji)|0;var ns=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ns>>>26)|0,ns&=67108863,Ye=Math.imul(ni,Vi),ke=Math.imul(ni,Di),ke=ke+Math.imul(yi,Vi)|0,Xe=Math.imul(yi,Di),Ye=Ye+Math.imul(Zi,Pi)|0,ke=ke+Math.imul(Zi,ji)|0,ke=ke+Math.imul(Xi,Pi)|0,Xe=Xe+Math.imul(Xi,ji)|0,Ye=Ye+Math.imul(Ci,Yi)|0,ke=ke+Math.imul(Ci,Yt)|0,ke=ke+Math.imul(Ri,Yi)|0,Xe=Xe+Math.imul(Ri,Yt)|0,Ye=Ye+Math.imul(Hi,ai)|0,ke=ke+Math.imul(Hi,wi)|0,ke=ke+Math.imul(zi,ai)|0,Xe=Xe+Math.imul(zi,wi)|0,Ye=Ye+Math.imul(Ei,Ai)|0,ke=ke+Math.imul(Ei,Oi)|0,ke=ke+Math.imul(Li,Ai)|0,Xe=Xe+Math.imul(Li,Oi)|0,Ye=Ye+Math.imul(Bi,Qi)|0,ke=ke+Math.imul(Bi,Wi)|0,ke=ke+Math.imul(gi,Qi)|0,Xe=Xe+Math.imul(gi,Wi)|0,Ye=Ye+Math.imul(si,Gi)|0,ke=ke+Math.imul(si,Ji)|0,ke=ke+Math.imul(hi,Gi)|0,Xe=Xe+Math.imul(hi,Ji)|0;var ss=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ss>>>26)|0,ss&=67108863,Ye=Math.imul(ni,Pi),ke=Math.imul(ni,ji),ke=ke+Math.imul(yi,Pi)|0,Xe=Math.imul(yi,ji),Ye=Ye+Math.imul(Zi,Yi)|0,ke=ke+Math.imul(Zi,Yt)|0,ke=ke+Math.imul(Xi,Yi)|0,Xe=Xe+Math.imul(Xi,Yt)|0,Ye=Ye+Math.imul(Ci,ai)|0,ke=ke+Math.imul(Ci,wi)|0,ke=ke+Math.imul(Ri,ai)|0,Xe=Xe+Math.imul(Ri,wi)|0,Ye=Ye+Math.imul(Hi,Ai)|0,ke=ke+Math.imul(Hi,Oi)|0,ke=ke+Math.imul(zi,Ai)|0,Xe=Xe+Math.imul(zi,Oi)|0,Ye=Ye+Math.imul(Ei,Qi)|0,ke=ke+Math.imul(Ei,Wi)|0,ke=ke+Math.imul(Li,Qi)|0,Xe=Xe+Math.imul(Li,Wi)|0,Ye=Ye+Math.imul(Bi,Gi)|0,ke=ke+Math.imul(Bi,Ji)|0,ke=ke+Math.imul(gi,Gi)|0,Xe=Xe+Math.imul(gi,Ji)|0;var os=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(os>>>26)|0,os&=67108863,Ye=Math.imul(ni,Yi),ke=Math.imul(ni,Yt),ke=ke+Math.imul(yi,Yi)|0,Xe=Math.imul(yi,Yt),Ye=Ye+Math.imul(Zi,ai)|0,ke=ke+Math.imul(Zi,wi)|0,ke=ke+Math.imul(Xi,ai)|0,Xe=Xe+Math.imul(Xi,wi)|0,Ye=Ye+Math.imul(Ci,Ai)|0,ke=ke+Math.imul(Ci,Oi)|0,ke=ke+Math.imul(Ri,Ai)|0,Xe=Xe+Math.imul(Ri,Oi)|0,Ye=Ye+Math.imul(Hi,Qi)|0,ke=ke+Math.imul(Hi,Wi)|0,ke=ke+Math.imul(zi,Qi)|0,Xe=Xe+Math.imul(zi,Wi)|0,Ye=Ye+Math.imul(Ei,Gi)|0,ke=ke+Math.imul(Ei,Ji)|0,ke=ke+Math.imul(Li,Gi)|0,Xe=Xe+Math.imul(Li,Ji)|0;var as=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(as>>>26)|0,as&=67108863,Ye=Math.imul(ni,ai),ke=Math.imul(ni,wi),ke=ke+Math.imul(yi,ai)|0,Xe=Math.imul(yi,wi),Ye=Ye+Math.imul(Zi,Ai)|0,ke=ke+Math.imul(Zi,Oi)|0,ke=ke+Math.imul(Xi,Ai)|0,Xe=Xe+Math.imul(Xi,Oi)|0,Ye=Ye+Math.imul(Ci,Qi)|0,ke=ke+Math.imul(Ci,Wi)|0,ke=ke+Math.imul(Ri,Qi)|0,Xe=Xe+Math.imul(Ri,Wi)|0,Ye=Ye+Math.imul(Hi,Gi)|0,ke=ke+Math.imul(Hi,Ji)|0,ke=ke+Math.imul(zi,Gi)|0,Xe=Xe+Math.imul(zi,Ji)|0;var us=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(us>>>26)|0,us&=67108863,Ye=Math.imul(ni,Ai),ke=Math.imul(ni,Oi),ke=ke+Math.imul(yi,Ai)|0,Xe=Math.imul(yi,Oi),Ye=Ye+Math.imul(Zi,Qi)|0,ke=ke+Math.imul(Zi,Wi)|0,ke=ke+Math.imul(Xi,Qi)|0,Xe=Xe+Math.imul(Xi,Wi)|0,Ye=Ye+Math.imul(Ci,Gi)|0,ke=ke+Math.imul(Ci,Ji)|0,ke=ke+Math.imul(Ri,Gi)|0,Xe=Xe+Math.imul(Ri,Ji)|0;var ls=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ls>>>26)|0,ls&=67108863,Ye=Math.imul(ni,Qi),ke=Math.imul(ni,Wi),ke=ke+Math.imul(yi,Qi)|0,Xe=Math.imul(yi,Wi),Ye=Ye+Math.imul(Zi,Gi)|0,ke=ke+Math.imul(Zi,Ji)|0,ke=ke+Math.imul(Xi,Gi)|0,Xe=Xe+Math.imul(Xi,Ji)|0;var ds=(St+Ye|0)+((ke&8191)<<13)|0;St=(Xe+(ke>>>13)|0)+(ds>>>26)|0,ds&=67108863,Ye=Math.imul(ni,Gi),ke=Math.imul(ni,Ji),ke=ke+Math.imul(yi,Gi)|0,Xe=Math.imul(yi,Ji);var hs=(St+Ye|0)+((ke&8191)<<13)|0;return St=(Xe+(ke>>>13)|0)+(hs>>>26)|0,hs&=67108863,_t[0]=An,_t[1]=Dn,_t[2]=$n,_t[3]=Tn,_t[4]=Zn,_t[5]=Xn,_t[6]=Jn,_t[7]=es,_t[8]=ts,_t[9]=rs,_t[10]=is,_t[11]=ns,_t[12]=ss,_t[13]=os,_t[14]=as,_t[15]=us,_t[16]=ls,_t[17]=ds,_t[18]=hs,St!==0&&(_t[19]=St,He.length++),He};Math.imul||(Nt=Pt);function zt(j,Ae,He){He.negative=Ae.negative^j.negative,He.length=j.length+Ae.length;for(var Ue=0,Ge=0,_t=0;_t>>26)|0,Ge+=St>>>26,St&=67108863}He.words[_t]=Ye,Ue=St,St=Ge}return Ue!==0?He.words[_t]=Ue:He.length--,He.strip()}function Gt(j,Ae,He){var Ue=new Ut;return Ue.mulp(j,Ae,He)}De.prototype.mulTo=function(j,Ae){var He,Ue=this.length+j.length;return this.length===10&&j.length===10?He=Nt(this,j,Ae):Ue<63?He=Pt(this,j,Ae):Ue<1024?He=zt(this,j,Ae):He=Gt(this,j,Ae),He};function Ut(j,Ae){this.x=j,this.y=Ae}Ut.prototype.makeRBT=function(j){for(var Ae=new Array(j),He=De.prototype._countBits(j)-1,Ue=0;Ue>=1;return Ue},Ut.prototype.permute=function(j,Ae,He,Ue,Ge,_t){for(var St=0;St<_t;St++)Ue[St]=Ae[j[St]],Ge[St]=He[j[St]]},Ut.prototype.transform=function(j,Ae,He,Ue,Ge,_t){this.permute(_t,j,Ae,He,Ue,Ge);for(var St=1;St>>1)Ge++;return 1<>>13,He[2*_t+1]=Ge&8191,Ge=Ge>>>13;for(_t=2*Ae;_t>=26,Ae+=Ue/67108864|0,Ae+=Ge>>>26,this.words[He]=Ge&67108863}return Ae!==0&&(this.words[He]=Ae,this.length++),this.length=j===0?1:this.length,this},De.prototype.muln=function(j){return this.clone().imuln(j)},De.prototype.sqr=function(){return this.mul(this)},De.prototype.isqr=function(){return this.imul(this.clone())},De.prototype.pow=function(j){var Ae=qt(j);if(Ae.length===0)return new De(1);for(var He=this,Ue=0;Ue=0);var Ae=j%26,He=(j-Ae)/26,Ue=67108863>>>26-Ae<<26-Ae,Ge;if(Ae!==0){var _t=0;for(Ge=0;Ge>>26-Ae}_t&&(this.words[Ge]=_t,this.length++)}if(He!==0){for(Ge=this.length-1;Ge>=0;Ge--)this.words[Ge+He]=this.words[Ge];for(Ge=0;Ge=0);var Ue;Ae?Ue=(Ae-Ae%26)/26:Ue=0;var Ge=j%26,_t=Math.min((j-Ge)/26,this.length),St=67108863^67108863>>>Ge<_t)for(this.length-=_t,ke=0;ke=0&&(Xe!==0||ke>=Ue);ke--){var Vt=this.words[ke]|0;this.words[ke]=Xe<<26-Ge|Vt>>>Ge,Xe=Vt&St}return Ye&&Xe!==0&&(Ye.words[Ye.length++]=Xe),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},De.prototype.ishrn=function(j,Ae,He){return ze(this.negative===0),this.iushrn(j,Ae,He)},De.prototype.shln=function(j){return this.clone().ishln(j)},De.prototype.ushln=function(j){return this.clone().iushln(j)},De.prototype.shrn=function(j){return this.clone().ishrn(j)},De.prototype.ushrn=function(j){return this.clone().iushrn(j)},De.prototype.testn=function(j){ze(typeof j=="number"&&j>=0);var Ae=j%26,He=(j-Ae)/26,Ue=1<=0);var Ae=j%26,He=(j-Ae)/26;if(ze(this.negative===0,"imaskn works only with positive numbers"),this.length<=He)return this;if(Ae!==0&&He++,this.length=Math.min(He,this.length),Ae!==0){var Ue=67108863^67108863>>>Ae<=67108864;Ae++)this.words[Ae]-=67108864,Ae===this.length-1?this.words[Ae+1]=1:this.words[Ae+1]++;return this.length=Math.max(this.length,Ae+1),this},De.prototype.isubn=function(j){if(ze(typeof j=="number"),ze(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Ae=0;Ae>26)-(Ye/67108864|0),this.words[Ge+He]=_t&67108863}for(;Ge>26,this.words[Ge+He]=_t&67108863;if(St===0)return this.strip();for(ze(St===-1),St=0,Ge=0;Ge>26,this.words[Ge]=_t&67108863;return this.negative=1,this.strip()},De.prototype._wordDiv=function(j,Ae){var He=this.length-j.length,Ue=this.clone(),Ge=j,_t=Ge.words[Ge.length-1]|0,St=this._countBits(_t);He=26-St,He!==0&&(Ge=Ge.ushln(He),Ue.iushln(He),_t=Ge.words[Ge.length-1]|0);var Ye=Ue.length-Ge.length,ke;if(Ae!=="mod"){ke=new De(null),ke.length=Ye+1,ke.words=new Array(ke.length);for(var Xe=0;Xe=0;Jt--){var ei=(Ue.words[Ge.length+Jt]|0)*67108864+(Ue.words[Ge.length+Jt-1]|0);for(ei=Math.min(ei/_t|0,67108863),Ue._ishlnsubmul(Ge,ei,Jt);Ue.negative!==0;)ei--,Ue.negative=0,Ue._ishlnsubmul(Ge,1,Jt),Ue.isZero()||(Ue.negative^=1);ke&&(ke.words[Jt]=ei)}return ke&&ke.strip(),Ue.strip(),Ae!=="div"&&He!==0&&Ue.iushrn(He),{div:ke||null,mod:Ue}},De.prototype.divmod=function(j,Ae,He){if(ze(!j.isZero()),this.isZero())return{div:new De(0),mod:new De(0)};var Ue,Ge,_t;return this.negative!==0&&j.negative===0?(_t=this.neg().divmod(j,Ae),Ae!=="mod"&&(Ue=_t.div.neg()),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.iadd(j)),{div:Ue,mod:Ge}):this.negative===0&&j.negative!==0?(_t=this.divmod(j.neg(),Ae),Ae!=="mod"&&(Ue=_t.div.neg()),{div:Ue,mod:_t.mod}):(this.negative&j.negative)!==0?(_t=this.neg().divmod(j.neg(),Ae),Ae!=="div"&&(Ge=_t.mod.neg(),He&&Ge.negative!==0&&Ge.isub(j)),{div:_t.div,mod:Ge}):j.length>this.length||this.cmp(j)<0?{div:new De(0),mod:this}:j.length===1?Ae==="div"?{div:this.divn(j.words[0]),mod:null}:Ae==="mod"?{div:null,mod:new De(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new De(this.modn(j.words[0]))}:this._wordDiv(j,Ae)},De.prototype.div=function(j){return this.divmod(j,"div",!1).div},De.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},De.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},De.prototype.divRound=function(j){var Ae=this.divmod(j);if(Ae.mod.isZero())return Ae.div;var He=Ae.div.negative!==0?Ae.mod.isub(j):Ae.mod,Ue=j.ushrn(1),Ge=j.andln(1),_t=He.cmp(Ue);return _t<0||Ge===1&&_t===0?Ae.div:Ae.div.negative!==0?Ae.div.isubn(1):Ae.div.iaddn(1)},De.prototype.modn=function(j){ze(j<=67108863);for(var Ae=(1<<26)%j,He=0,Ue=this.length-1;Ue>=0;Ue--)He=(Ae*He+(this.words[Ue]|0))%j;return He},De.prototype.idivn=function(j){ze(j<=67108863);for(var Ae=0,He=this.length-1;He>=0;He--){var Ue=(this.words[He]|0)+Ae*67108864;this.words[He]=Ue/j|0,Ae=Ue%j}return this.strip()},De.prototype.divn=function(j){return this.clone().idivn(j)},De.prototype.egcd=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=new De(0),St=new De(1),Ye=0;Ae.isEven()&&He.isEven();)Ae.iushrn(1),He.iushrn(1),++Ye;for(var ke=He.clone(),Xe=Ae.clone();!Ae.isZero();){for(var Vt=0,Jt=1;(Ae.words[0]&Jt)===0&&Vt<26;++Vt,Jt<<=1);if(Vt>0)for(Ae.iushrn(Vt);Vt-- >0;)(Ue.isOdd()||Ge.isOdd())&&(Ue.iadd(ke),Ge.isub(Xe)),Ue.iushrn(1),Ge.iushrn(1);for(var ei=0,oi=1;(He.words[0]&oi)===0&&ei<26;++ei,oi<<=1);if(ei>0)for(He.iushrn(ei);ei-- >0;)(_t.isOdd()||St.isOdd())&&(_t.iadd(ke),St.isub(Xe)),_t.iushrn(1),St.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(_t),Ge.isub(St)):(He.isub(Ae),_t.isub(Ue),St.isub(Ge))}return{a:_t,b:St,gcd:He.iushln(Ye)}},De.prototype._invmp=function(j){ze(j.negative===0),ze(!j.isZero());var Ae=this,He=j.clone();Ae.negative!==0?Ae=Ae.umod(j):Ae=Ae.clone();for(var Ue=new De(1),Ge=new De(0),_t=He.clone();Ae.cmpn(1)>0&&He.cmpn(1)>0;){for(var St=0,Ye=1;(Ae.words[0]&Ye)===0&&St<26;++St,Ye<<=1);if(St>0)for(Ae.iushrn(St);St-- >0;)Ue.isOdd()&&Ue.iadd(_t),Ue.iushrn(1);for(var ke=0,Xe=1;(He.words[0]&Xe)===0&&ke<26;++ke,Xe<<=1);if(ke>0)for(He.iushrn(ke);ke-- >0;)Ge.isOdd()&&Ge.iadd(_t),Ge.iushrn(1);Ae.cmp(He)>=0?(Ae.isub(He),Ue.isub(Ge)):(He.isub(Ae),Ge.isub(Ue))}var Vt;return Ae.cmpn(1)===0?Vt=Ue:Vt=Ge,Vt.cmpn(0)<0&&Vt.iadd(j),Vt},De.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var Ae=this.clone(),He=j.clone();Ae.negative=0,He.negative=0;for(var Ue=0;Ae.isEven()&&He.isEven();Ue++)Ae.iushrn(1),He.iushrn(1);do{for(;Ae.isEven();)Ae.iushrn(1);for(;He.isEven();)He.iushrn(1);var Ge=Ae.cmp(He);if(Ge<0){var _t=Ae;Ae=He,He=_t}else if(Ge===0||He.cmpn(1)===0)break;Ae.isub(He)}while(!0);return He.iushln(Ue)},De.prototype.invm=function(j){return this.egcd(j).a.umod(j)},De.prototype.isEven=function(){return(this.words[0]&1)===0},De.prototype.isOdd=function(){return(this.words[0]&1)===1},De.prototype.andln=function(j){return this.words[0]&j},De.prototype.bincn=function(j){ze(typeof j=="number");var Ae=j%26,He=(j-Ae)/26,Ue=1<>>26,St&=67108863,this.words[_t]=St}return Ge!==0&&(this.words[_t]=Ge,this.length++),this},De.prototype.isZero=function(){return this.length===1&&this.words[0]===0},De.prototype.cmpn=function(j){var Ae=j<0;if(this.negative!==0&&!Ae)return-1;if(this.negative===0&&Ae)return 1;this.strip();var He;if(this.length>1)He=1;else{Ae&&(j=-j),ze(j<=67108863,"Number is too big");var Ue=this.words[0]|0;He=Ue===j?0:Uej.length)return 1;if(this.length=0;He--){var Ue=this.words[He]|0,Ge=j.words[He]|0;if(Ue!==Ge){UeGe&&(Ae=1);break}}return Ae},De.prototype.gtn=function(j){return this.cmpn(j)===1},De.prototype.gt=function(j){return this.cmp(j)===1},De.prototype.gten=function(j){return this.cmpn(j)>=0},De.prototype.gte=function(j){return this.cmp(j)>=0},De.prototype.ltn=function(j){return this.cmpn(j)===-1},De.prototype.lt=function(j){return this.cmp(j)===-1},De.prototype.lten=function(j){return this.cmpn(j)<=0},De.prototype.lte=function(j){return this.cmp(j)<=0},De.prototype.eqn=function(j){return this.cmpn(j)===0},De.prototype.eq=function(j){return this.cmp(j)===0},De.red=function(j){return new pi(j)},De.prototype.toRed=function(j){return ze(!this.red,"Already a number in reduction context"),ze(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},De.prototype.fromRed=function(){return ze(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},De.prototype._forceRed=function(j){return this.red=j,this},De.prototype.forceRed=function(j){return ze(!this.red,"Already a number in reduction context"),this._forceRed(j)},De.prototype.redAdd=function(j){return ze(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},De.prototype.redIAdd=function(j){return ze(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},De.prototype.redSub=function(j){return ze(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},De.prototype.redISub=function(j){return ze(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},De.prototype.redShl=function(j){return ze(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},De.prototype.redMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},De.prototype.redIMul=function(j){return ze(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},De.prototype.redSqr=function(){return ze(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},De.prototype.redISqr=function(){return ze(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},De.prototype.redSqrt=function(){return ze(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},De.prototype.redInvm=function(){return ze(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},De.prototype.redNeg=function(){return ze(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},De.prototype.redPow=function(j){return ze(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var ii={k256:null,p224:null,p192:null,p25519:null};function ti(j,Ae){this.name=j,this.p=new De(Ae,16),this.n=this.p.bitLength(),this.k=new De(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ti.prototype._tmp=function(){var j=new De(null);return j.words=new Array(Math.ceil(this.n/13)),j},ti.prototype.ireduce=function(j){var Ae=j,He;do this.split(Ae,this.tmp),Ae=this.imulK(Ae),Ae=Ae.iadd(this.tmp),He=Ae.bitLength();while(He>this.n);var Ue=He0?Ae.isub(this.p):Ae.strip!==void 0?Ae.strip():Ae._strip(),Ae},ti.prototype.split=function(j,Ae){j.iushrn(this.n,0,Ae)},ti.prototype.imulK=function(j){return j.imul(this.k)};function di(){ti.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}We(di,ti),di.prototype.split=function(j,Ae){for(var He=4194303,Ue=Math.min(j.length,9),Ge=0;Ge>>22,_t=St}_t>>>=22,j.words[Ge-10]=_t,_t===0&&j.length>10?j.length-=10:j.length-=9},di.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var Ae=0,He=0;He>>=26,j.words[He]=Ge,Ae=Ue}return Ae!==0&&(j.words[j.length++]=Ae),j},De._prime=function(j){if(ii[j])return ii[j];var Ae;if(j==="k256")Ae=new di;else if(j==="p224")Ae=new ci;else if(j==="p192")Ae=new vi;else if(j==="p25519")Ae=new bi;else throw new Error("Unknown prime "+j);return ii[j]=Ae,Ae};function pi(j){if(typeof j=="string"){var Ae=De._prime(j);this.m=Ae.p,this.prime=Ae}else ze(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}pi.prototype._verify1=function(j){ze(j.negative===0,"red works only with positives"),ze(j.red,"red works only with red numbers")},pi.prototype._verify2=function(j,Ae){ze((j.negative|Ae.negative)===0,"red works only with positives"),ze(j.red&&j.red===Ae.red,"red works only with red numbers")},pi.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},pi.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},pi.prototype.add=function(j,Ae){this._verify2(j,Ae);var He=j.add(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He._forceRed(this)},pi.prototype.iadd=function(j,Ae){this._verify2(j,Ae);var He=j.iadd(Ae);return He.cmp(this.m)>=0&&He.isub(this.m),He},pi.prototype.sub=function(j,Ae){this._verify2(j,Ae);var He=j.sub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He._forceRed(this)},pi.prototype.isub=function(j,Ae){this._verify2(j,Ae);var He=j.isub(Ae);return He.cmpn(0)<0&&He.iadd(this.m),He},pi.prototype.shl=function(j,Ae){return this._verify1(j),this.imod(j.ushln(Ae))},pi.prototype.imul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.imul(Ae))},pi.prototype.mul=function(j,Ae){return this._verify2(j,Ae),this.imod(j.mul(Ae))},pi.prototype.isqr=function(j){return this.imul(j,j.clone())},pi.prototype.sqr=function(j){return this.mul(j,j)},pi.prototype.sqrt=function(j){if(j.isZero())return j.clone();var Ae=this.m.andln(3);if(ze(Ae%2===1),Ae===3){var He=this.m.add(new De(1)).iushrn(2);return this.pow(j,He)}for(var Ue=this.m.subn(1),Ge=0;!Ue.isZero()&&Ue.andln(1)===0;)Ge++,Ue.iushrn(1);ze(!Ue.isZero());var _t=new De(1).toRed(this),St=_t.redNeg(),Ye=this.m.subn(1).iushrn(1),ke=this.m.bitLength();for(ke=new De(2*ke*ke).toRed(this);this.pow(ke,Ye).cmp(St)!==0;)ke.redIAdd(St);for(var Xe=this.pow(ke,Ue),Vt=this.pow(j,Ue.addn(1).iushrn(1)),Jt=this.pow(j,Ue),ei=Ge;Jt.cmp(_t)!==0;){for(var oi=Jt,li=0;oi.cmp(_t)!==0;li++)oi=oi.redSqr();ze(li=0;Ge--){for(var Xe=Ae.words[Ge],Vt=ke-1;Vt>=0;Vt--){var Jt=Xe>>Vt&1;if(_t!==Ue[0]&&(_t=this.sqr(_t)),Jt===0&&St===0){Ye=0;continue}St<<=1,St|=Jt,Ye++,!(Ye!==He&&(Ge!==0||Vt!==0))&&(_t=this.mul(_t,Ue[St]),Ye=0,St=0)}ke=26}return _t},pi.prototype.convertTo=function(j){var Ae=j.umod(this.m);return Ae===j?Ae.clone():Ae},pi.prototype.convertFrom=function(j){var Ae=j.clone();return Ae.red=null,Ae},De.mont=function(j){return new Mi(j)};function Mi(j){pi.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new De(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}We(Mi,pi),Mi.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},Mi.prototype.convertFrom=function(j){var Ae=this.imod(j.mul(this.rinv));return Ae.red=null,Ae},Mi.prototype.imul=function(j,Ae){if(j.isZero()||Ae.isZero())return j.words[0]=0,j.length=1,j;var He=j.imul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.mul=function(j,Ae){if(j.isZero()||Ae.isZero())return new De(0)._forceRed(this);var He=j.mul(Ae),Ue=He.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Ge=He.isub(Ue).iushrn(this.shift),_t=Ge;return Ge.cmp(this.m)>=0?_t=Ge.isub(this.m):Ge.cmpn(0)<0&&(_t=Ge.iadd(this.m)),_t._forceRed(this)},Mi.prototype.invm=function(j){var Ae=this.imod(j._invmp(this.m).mul(this.r2));return Ae._forceRed(this)}})(Me,bn)})(bn$1)),bn$1.exports}var withPublic_1,hasRequiredWithPublic;function requireWithPublic(){if(hasRequiredWithPublic)return withPublic_1;hasRequiredWithPublic=1;var Me=requireBn(),xe=requireSafeBuffer$2().Buffer;function Ke(ze,We){return xe.from(ze.toRed(Me.mont(We.modulus)).redPow(new Me(We.publicExponent)).fromRed().toArray())}return withPublic_1=Ke,withPublic_1}var publicEncrypt,hasRequiredPublicEncrypt;function requirePublicEncrypt(){if(hasRequiredPublicEncrypt)return publicEncrypt;hasRequiredPublicEncrypt=1;var Me=requireParseAsn1(),xe=requireBrowser$b(),Ke=requireBrowser$9(),ze=requireMgf(),We=requireXor(),De=requireBn(),vt=requireWithPublic(),Je=requireBrowserifyRsa(),Ct=requireSafeBuffer$2().Buffer;publicEncrypt=function(Rt,qt,Pt){var Nt;Rt.padding?Nt=Rt.padding:Pt?Nt=1:Nt=4;var zt=Me(Rt),Gt;if(Nt===4)Gt=yt(zt,qt);else if(Nt===1)Gt=Ft(zt,qt,Pt);else if(Nt===3){if(Gt=new De(qt),Gt.cmp(zt.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return Pt?Je(Gt,zt):vt(Gt,zt)};function yt(Rt,qt){var Pt=Rt.modulus.byteLength(),Nt=qt.length,zt=Ke("sha1").update(Ct.alloc(0)).digest(),Gt=zt.length,Ut=2*Gt;if(Nt>Pt-Ut-2)throw new Error("message too long");var ii=Ct.alloc(Pt-Nt-Ut-2),ti=Pt-Gt-1,di=xe(Gt),ci=We(Ct.concat([zt,ii,Ct.alloc(1,1),qt],ti),ze(di,ti)),vi=We(di,ze(ci,Gt));return new De(Ct.concat([Ct.alloc(1),vi,ci],Pt))}function Ft(Rt,qt,Pt){var Nt=qt.length,zt=Rt.modulus.byteLength();if(Nt>zt-11)throw new Error("message too long");var Gt;return Pt?Gt=Ct.alloc(zt-Nt-3,255):Gt=$t(zt-Nt-3),new De(Ct.concat([Ct.from([0,Pt?1:2]),Gt,Ct.alloc(1),qt],zt))}function $t(Rt){for(var qt=Ct.allocUnsafe(Rt),Pt=0,Nt=xe(Rt*2),zt=0,Gt;Ptzt||new ze(Rt).cmp(Nt.modulus)>=0)throw new Error("decryption error");var Gt;qt?Gt=vt(new ze(Rt),Nt):Gt=We(Rt,Nt);var Ut=Je.alloc(zt-Gt.length);if(Gt=Je.concat([Ut,Gt],zt),Pt===4)return Ct(Nt,Gt);if(Pt===1)return yt(Nt,Gt,qt);if(Pt===3)return Gt;throw new Error("unknown padding")};function Ct($t,Rt){var qt=$t.modulus.byteLength(),Pt=De("sha1").update(Je.alloc(0)).digest(),Nt=Pt.length;if(Rt[0]!==0)throw new Error("decryption error");var zt=Rt.slice(1,Nt+1),Gt=Rt.slice(Nt+1),Ut=Ke(zt,xe(Gt,Nt)),ii=Ke(Gt,xe(Ut,qt-Nt-1));if(Ft(Pt,ii.slice(0,Nt)))throw new Error("decryption error");for(var ti=Nt;ii[ti]===0;)ti++;if(ii[ti++]!==1)throw new Error("decryption error");return ii.slice(ti)}function yt($t,Rt,qt){for(var Pt=Rt.slice(0,2),Nt=2,zt=0;Rt[Nt++]!==0;)if(Nt>=Rt.length){zt++;break}var Gt=Rt.slice(2,Nt-1);if((Pt.toString("hex")!=="0002"&&!qt||Pt.toString("hex")!=="0001"&&qt)&&zt++,Gt.length<8&&zt++,zt)throw new Error("decryption error");return Rt.slice(Nt)}function Ft($t,Rt){$t=Je.from($t),Rt=Je.from(Rt);var qt=0,Pt=$t.length;$t.length!==Rt.length&&(qt++,Pt=Math.min($t.length,Rt.length));for(var Nt=-1;++Ntvt||Rt<0)throw new TypeError("offset must be a uint32");if(Rt>We||Rt>qt)throw new RangeError("offset out of range")}function Ct(Rt,qt,Pt){if(typeof Rt!="number"||Rt!==Rt)throw new TypeError("size must be a number");if(Rt>vt||Rt<0)throw new TypeError("size must be a uint32");if(Rt+qt>Pt||Rt>We)throw new RangeError("buffer too small")}De&&De.getRandomValues||!process$1.browser?(browser.randomFill=yt,browser.randomFillSync=$t):(browser.randomFill=Me,browser.randomFillSync=Me);function yt(Rt,qt,Pt,Nt){if(!ze.isBuffer(Rt)&&!(Rt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof qt=="function")Nt=qt,qt=0,Pt=Rt.length;else if(typeof Pt=="function")Nt=Pt,Pt=Rt.length-qt;else if(typeof Nt!="function")throw new TypeError('"cb" argument must be a function');return Je(qt,Rt.length),Ct(Pt,qt,Rt.length),Ft(Rt,qt,Pt,Nt)}function Ft(Rt,qt,Pt,Nt){if(process$1.browser){var zt=Rt.buffer,Gt=new Uint8Array(zt,qt,Pt);if(De.getRandomValues(Gt),Nt){process$1.nextTick(function(){Nt(null,Rt)});return}return Rt}if(Nt){Ke(Pt,function(ii,ti){if(ii)return Nt(ii);ti.copy(Rt,qt),Nt(null,Rt)});return}var Ut=Ke(Pt);return Ut.copy(Rt,qt),Rt}function $t(Rt,qt,Pt){if(typeof qt>"u"&&(qt=0),!ze.isBuffer(Rt)&&!(Rt instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Je(qt,Rt.length),Pt===void 0&&(Pt=Rt.length-qt),Ct(Pt,qt,Rt.length),Ft(Rt,qt,Pt)}return browser}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=requireBrowser$b(),cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var Me=requireAlgos(),xe=Object.keys(Me),Ke=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(xe);cryptoBrowserify.getHashes=function(){return Ke};var ze=requireBrowser$7();cryptoBrowserify.pbkdf2=ze.pbkdf2,cryptoBrowserify.pbkdf2Sync=ze.pbkdf2Sync;var We=requireBrowser$5();cryptoBrowserify.Cipher=We.Cipher,cryptoBrowserify.createCipher=We.createCipher,cryptoBrowserify.Cipheriv=We.Cipheriv,cryptoBrowserify.createCipheriv=We.createCipheriv,cryptoBrowserify.Decipher=We.Decipher,cryptoBrowserify.createDecipher=We.createDecipher,cryptoBrowserify.Decipheriv=We.Decipheriv,cryptoBrowserify.createDecipheriv=We.createDecipheriv,cryptoBrowserify.getCiphers=We.getCiphers,cryptoBrowserify.listCiphers=We.listCiphers;var De=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=De.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=De.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=De.getDiffieHellman,cryptoBrowserify.createDiffieHellman=De.createDiffieHellman,cryptoBrowserify.DiffieHellman=De.DiffieHellman;var vt=requireBrowser$3();cryptoBrowserify.createSign=vt.createSign,cryptoBrowserify.Sign=vt.Sign,cryptoBrowserify.createVerify=vt.createVerify,cryptoBrowserify.Verify=vt.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var Je=requireBrowser$1();cryptoBrowserify.publicEncrypt=Je.publicEncrypt,cryptoBrowserify.privateEncrypt=Je.privateEncrypt,cryptoBrowserify.publicDecrypt=Je.publicDecrypt,cryptoBrowserify.privateDecrypt=Je.privateDecrypt;var Ct=requireBrowser();return cryptoBrowserify.randomFill=Ct.randomFill,cryptoBrowserify.randomFillSync=Ct.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet -we accept pull requests -https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();register(t3);class Color{constructor(xe,Ke,ze,We){this.r=xe,this.g=Ke,this.b=ze,this.name=We,this.r=Math.min(xe,255),this.g=Math.min(Ke,255),this.b=Math.min(ze,255),this.name=We}get color(){const xe=Ke=>`00${Ke.toString(16)}`.slice(-2);return`#${xe(this.r)}${xe(this.g)}${xe(this.b)}`}}function calculateStepIncrement(Me,xe,Ke){return{r:(Ke.r-xe.r)/Me,g:(Ke.g-xe.g)/Me,b:(Ke.b-xe.b)/Me}}function mixPalette(Me,xe,Ke){const ze=[];ze.push(xe);const We=calculateStepIncrement(Me,xe,Ke);for(let De=1;De/g,Je=/<\/?([^\s\/>]+)/;function Ct(Pt,Nt,zt){Pt=Pt||"",Nt=Nt||[],zt=zt||"";let Gt=Ft(Nt,zt);return $t(Pt,Gt)}function yt(Pt,Nt){Pt=Pt||[],Nt=Nt||"";let zt=Ft(Pt,Nt);return function(Gt){return $t(Gt||"",zt)}}Ct.init_streaming_mode=yt;function Ft(Pt,Nt){return Pt=Rt(Pt),{allowable_tags:Pt,tag_replacement:Nt,state:ze,tag_buffer:"",depth:0,in_quote_char:""}}function $t(Pt,Nt){if(typeof Pt!="string")throw new TypeError("'html' parameter must be a string");let zt=Nt.allowable_tags,Gt=Nt.tag_replacement,Ut=Nt.state,ii=Nt.tag_buffer,ti=Nt.depth,di=Nt.in_quote_char,ci="";for(let vi=0,bi=Pt.length;vi":if(di)break;if(ti){ti--;break}di="",Ut=ze,ii+=">",zt.has(qt(ii))?ci+=ii:ci+=Gt,ii="";break;case'"':case"'":pi===di?di="":di=di||pi,ii+=pi;break;case"-":ii==="":ii.slice(-2)=="--"&&(Ut=ze),ii="";break;default:ii+=pi;break}}return Nt.state=Ut,Nt.tag_buffer=ii,Nt.depth=ti,Nt.in_quote_char=di,ci}function Rt(Pt){let Nt=new Set;if(typeof Pt=="string"){let zt;for(;zt=vt.exec(Pt);)Nt.add(zt[1])}else!Ke.nonNative&&typeof Pt[Ke.iterator]=="function"?Nt=new Set(Pt):typeof Pt.forEach=="function"&&Pt.forEach(Nt.add,Nt);return Nt}function qt(Pt){let Nt=Je.exec(Pt);return Nt?Nt[1].toLowerCase():null}Me.exports?Me.exports=Ct:xe.striptags=Ct})(striptags)})(striptags$1)),striptags$1.exports}requireStriptags();function getAvatarUrl(Me,xe){const Ke=(xe?.size||64)<=64?64:512,ze=xe?.isGuest?"/guest":"",We=xe?.isDarkTheme??checkIfDarkTheme(document.body)?"/dark":"";return _$1(`/avatar${ze}/{user}/{size}${We}`,{user:Me,size:Ke})}const awaySvg=` - - - -`,busySvg=` - - - -`,dndSvg=` - - - -`,invisibleSvg=` - - - -`,onlineSvg=` - - - -`;register(),register(t11);function getUserStatusText(Me){switch(Me){case"away":return t("away");case"busy":return t("busy");case"dnd":return t("do not disturb");case"online":return t("online");case"invisible":return t("invisible");case"offline":return t("offline");default:return Me}}const _hoisted_1$6=["aria-hidden","aria-label","innerHTML"],_sfc_main$6=defineComponent({__name:"NcUserStatusIcon",props:mergeModels({user:{default:void 0},ariaHidden:{type:[Boolean,String],default:!1}},{status:{},statusModifiers:{}}),emits:["update:status"],setup(Me){const xe=useModel(Me,"status"),Ke=Me,ze=computed(()=>xe.value&&["invisible","offline"].includes(xe.value)),We=computed(()=>xe.value&&(!Ke.ariaHidden||Ke.ariaHidden==="false")?t("User status: {status}",{status:getUserStatusText(xe.value)}):void 0);watch(()=>Ke.user,async Je=>{if(!xe.value&&Je&&e()?.user_status?.enabled)try{const{data:Ct}=await cancelableClient.get(v$1("/apps/user_status/api/v1/statuses/{user}",{user:Je}));xe.value=Ct.ocs?.data?.status}catch(Ct){logger.debug("Error while fetching user status",{error:Ct})}},{immediate:!0});const De={online:onlineSvg,away:awaySvg,busy:busySvg,dnd:dndSvg,invisible:invisibleSvg,offline:invisibleSvg},vt=computed(()=>xe.value&&De[xe.value]);return(Je,Ct)=>xe.value?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["user-status-icon",{"user-status-icon--invisible":ze.value}]),"aria-hidden":!We.value||void 0,"aria-label":We.value,role:"img",innerHTML:vt.value},null,10,_hoisted_1$6)):createCommentVNode("",!0)}}),NcUserStatusIcon=_export_sfc(_sfc_main$6,[["__scopeId","data-v-009e879d"]]);register(t10);const userStatus={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(Me){if(!Me)return;const xe=e();if(!(!Object.hasOwn(xe,"user_status")||!xe.user_status.enabled)&&getCurrentUser())try{const{data:Ke}=await cancelableClient.get(v$1("apps/user_status/api/v1/statuses/{userId}",{userId:Me})),{status:ze,message:We,icon:De}=Ke.ocs.data;this.userStatus.status=ze,this.userStatus.message=We||"",this.userStatus.icon=De||"",this.hasStatus=!0}catch(Ke){if(Ke.response.status===404&&Ke.response.data.ocs?.data?.length===0)return;logger.error("Failed to fetch user status",{error:Ke})}}}},browserStorage=distExports.getBuilder("nextcloud").persist().build();function getUserHasAvatar(Me){const xe=browserStorage.getItem("user-has-avatar."+Me);return typeof xe=="string"?!!xe:null}function setUserHasAvatar(Me,xe){Me&&browserStorage.setItem("user-has-avatar."+Me,xe)}const _sfc_main$5={name:"NcAvatar",directives:{ClickOutside:vOnClickOutside},components:{IconDotsHorizontal,NcActions,NcButton,NcIconSvgWrapper,NcLoadingIcon,NcUserStatusIcon},mixins:[userStatus],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},verboseStatus:{type:Boolean,default:!1},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[Boolean,String,Object,Element],default:"body"}},setup(){return{isDarkTheme:useIsDarkTheme()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?t("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:getUserStatusText(this.userStatus.status)}):t("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&!this.verboseStatus&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===getCurrentUser()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:Me,g:xe,b:Ke}=usernameToColor(this.userIdentifier);return{backgroundColor:`rgba(${Me}, ${xe}, ${Ke}, 0.1)`}},initialsStyle(){const{r:Me,g:xe,b:Ke}=usernameToColor(this.userIdentifier);return{color:`rgb(${Me}, ${xe}, ${Ke})`}},tooltip(){return this.disableTooltip?null:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let Me="?";if(this.showInitials){const xe=this.userIdentifier.trim();if(xe==="")return Me;const Ke=xe.match(/[\p{L}\p{N}\s]/gu);if(!Ke)return Me;const ze=Ke.join(""),We=ze.lastIndexOf(" ");Me=String.fromCodePoint(ze.codePointAt(0)),We!==-1&&(Me=Me.concat(String.fromCodePoint(ze.codePointAt(We+1))))}return Me.toLocaleUpperCase()},menu(){const Me=this.contactsMenuActions.map(Ke=>{const ze=getRoute(this.$router,Ke.hyperlink);return{ncActionComponent:ze?NcActionRouter:NcActionLink,ncActionComponentProps:ze?{to:ze,icon:Ke.icon}:{href:Ke.hyperlink,icon:Ke.icon},text:Ke.title}});for(const Ke of getEnabledContactsMenuActions(this.contactsMenuData))try{Me.push({ncActionComponent:NcActionButton,ncActionComponentProps:{onClick:()=>Ke.callback(this.contactsMenuData)},text:Ke.displayName(this.contactsMenuData),iconSvg:Ke.iconSvg(this.contactsMenuData)})}catch(ze){logger.error(`Failed to render ContactsMenu action ${Ke.id}`,{error:ze,action:Ke})}function xe(Ke){const ze=document.createTextNode(Ke),We=document.createElement("p");return We.appendChild(ze),We.innerHTML}if(!this.hideStatus&&(this.userStatus.icon||this.userStatus.message)){const Ke=` - ${xe(this.userStatus.icon)} - `;return[{ncActionComponent:NcActionText,ncActionComponentProps:{},iconSvg:this.userStatus.icon?Ke:void 0,text:`${this.userStatus.message}`}].concat(Me)}return Me}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),subscribe("settings:avatar:updated",this.loadAvatarUrl),subscribe("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),subscribe("user_status:status.updated",this.handleUserStatusUpdated))},beforeUnmount(){unsubscribe("settings:avatar:updated",this.loadAvatarUrl),unsubscribe("settings:display-name:updated",this.loadAvatarUrl),unsubscribe("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t,handleUserStatusUpdated(Me){this.user===Me.userId&&(this.userStatus={status:Me.status,icon:Me.icon,message:Me.message},this.hasStatus=Me.status!==null)},async toggleMenu(Me){Me.type==="keydown"&&Me.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const Me=encodeURIComponent(this.user),{data:xe}=await cancelableClient.post(_$1("contactsmenu/findOne"),`shareType=0&shareWith=${Me}`);this.contactsMenuData=xe,this.contactsMenuActions=xe.topAction?[xe.topAction].concat(xe.actions):xe.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const Me=this.avatarUrlGenerator(this.user,64),xe=[Me+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(Me,xe)}else{const Me=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(Me)}},avatarUrlGenerator(Me,xe){let Ke=getAvatarUrl(Me,{size:xe,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return Me===getCurrentUser()?.uid&&typeof oc_userconfig<"u"&&(Ke+="?v="+window.oc_userconfig.avatar.version),Ke},updateImageIfValid(Me,xe=null){const Ke=getUserHasAvatar(this.user);if(this.isUserDefined&&typeof Ke=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=Me,xe&&(this.avatarSrcSetLoaded=xe),Ke===!1&&(this.userDoesNotExist=!0);return}const ze=new Image;ze.onload=()=>{this.avatarUrlLoaded=Me,xe&&(this.avatarSrcSetLoaded=xe),this.isAvatarLoaded=!0,setUserHasAvatar(this.user,!0)},ze.onerror=We=>{logger.debug("[NcAvatar] Invalid avatar url",{error:We,url:Me}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,setUserHasAvatar(this.user,!1)},xe&&(ze.srcset=xe),ze.src=Me}}},_hoisted_1$5=["title"],_hoisted_2$4=["src","srcset"],_hoisted_3$1={key:2,class:"avatardiv__user-status avatardiv__user-status--icon"};function _sfc_render$3(Me,xe,Ke,ze,We,De){const vt=resolveComponent("NcLoadingIcon"),Je=resolveComponent("IconDotsHorizontal"),Ct=resolveComponent("NcButton"),yt=resolveComponent("NcIconSvgWrapper"),Ft=resolveComponent("NcActions"),$t=resolveComponent("NcUserStatusIcon"),Rt=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(["avatardiv popovermenu-wrapper",{"avatardiv--unknown":We.userDoesNotExist,"avatardiv--with-menu":De.hasMenu,"avatardiv--with-menu-loading":We.contactsMenuLoading}]),style:normalizeStyle(De.avatarStyle),title:De.tooltip},[renderSlot(Me.$slots,"icon",{},()=>[Ke.iconClass?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([Ke.iconClass,"avatar-class-icon"])},null,2)):We.isAvatarLoaded&&!We.userDoesNotExist?(openBlock(),createElementBlock("img",{key:1,src:We.avatarUrlLoaded,srcset:We.avatarSrcSetLoaded,alt:""},null,8,_hoisted_2$4)):createCommentVNode("",!0)],!0),De.hasMenu&&De.menu.length===0?(openBlock(),createBlock(Ct,{key:0,"aria-label":De.avatarAriaLabel,class:"action-item action-item__menutoggle",variant:"tertiary-no-background",onClick:De.toggleMenu},{icon:withCtx(()=>[We.contactsMenuLoading?(openBlock(),createBlock(vt,{key:0})):(openBlock(),createBlock(Je,{key:1,size:20}))]),_:1},8,["aria-label","onClick"])):De.hasMenu?(openBlock(),createBlock(Ft,{key:1,open:We.contactsMenuOpenState,"onUpdate:open":xe[0]||(xe[0]=qt=>We.contactsMenuOpenState=qt),"aria-label":De.avatarAriaLabel,container:Ke.menuContainer,"force-menu":"","manual-open":"",variant:"tertiary-no-background",onClick:De.toggleMenu},createSlots({default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(De.menu,(qt,Pt)=>(openBlock(),createBlock(resolveDynamicComponent(qt.ncActionComponent),mergeProps({key:Pt},{ref_for:!0},qt.ncActionComponentProps),createSlots({default:withCtx(()=>[createTextVNode(" "+toDisplayString(qt.text),1)]),_:2},[qt.iconSvg?{name:"icon",fn:withCtx(()=>[createVNode(yt,{svg:qt.iconSvg},null,8,["svg"])]),key:"0"}:void 0]),1040))),128))]),_:2},[We.contactsMenuLoading?{name:"icon",fn:withCtx(()=>[createVNode(vt)]),key:"0"}:void 0]),1032,["open","aria-label","container","onClick"])):createCommentVNode("",!0),De.showUserStatusIconOnAvatar?(openBlock(),createElementBlock("span",_hoisted_3$1,toDisplayString(Me.userStatus.icon),1)):De.canDisplayUserStatus?(openBlock(),createBlock($t,{key:3,class:"avatardiv__user-status",status:Me.userStatus.status,"aria-hidden":String(De.hasMenu)},null,8,["status","aria-hidden"])):createCommentVNode("",!0),De.showInitials?(openBlock(),createElementBlock("span",{key:4,style:normalizeStyle(De.initialsWrapperStyle),class:"avatardiv__initials-wrapper"},[createBaseVNode("span",{style:normalizeStyle(De.initialsStyle),class:"avatardiv__initials"},toDisplayString(De.initials),5)],4)):createCommentVNode("",!0)],14,_hoisted_1$5)),[[Rt,De.closeMenu]])}const NcAvatar=_export_sfc(_sfc_main$5,[["render",_sfc_render$3],["__scopeId","data-v-786083b4"]]);var eventemitter3={exports:{}},hasRequiredEventemitter3;function requireEventemitter3(){return hasRequiredEventemitter3||(hasRequiredEventemitter3=1,(function(Me){var xe=Object.prototype.hasOwnProperty,Ke="~";function ze(){}Object.create&&(ze.prototype=Object.create(null),new ze().__proto__||(Ke=!1));function We(Ct,yt,Ft){this.fn=Ct,this.context=yt,this.once=Ft||!1}function De(Ct,yt,Ft,$t,Rt){if(typeof Ft!="function")throw new TypeError("The listener must be a function");var qt=new We(Ft,$t||Ct,Rt),Pt=Ke?Ke+yt:yt;return Ct._events[Pt]?Ct._events[Pt].fn?Ct._events[Pt]=[Ct._events[Pt],qt]:Ct._events[Pt].push(qt):(Ct._events[Pt]=qt,Ct._eventsCount++),Ct}function vt(Ct,yt){--Ct._eventsCount===0?Ct._events=new ze:delete Ct._events[yt]}function Je(){this._events=new ze,this._eventsCount=0}Je.prototype.eventNames=function(){var Ct=[],yt,Ft;if(this._eventsCount===0)return Ct;for(Ft in yt=this._events)xe.call(yt,Ft)&&Ct.push(Ke?Ft.slice(1):Ft);return Object.getOwnPropertySymbols?Ct.concat(Object.getOwnPropertySymbols(yt)):Ct},Je.prototype.listeners=function(Ct){var yt=Ke?Ke+Ct:Ct,Ft=this._events[yt];if(!Ft)return[];if(Ft.fn)return[Ft.fn];for(var $t=0,Rt=Ft.length,qt=new Array(Rt);$tMe.reason??new DOMException("This operation was aborted.","AbortError");function pTimeout(Me,xe){const{milliseconds:Ke,fallback:ze,message:We,customTimers:De={setTimeout,clearTimeout},signal:vt}=xe;let Je,Ct;const yt=new Promise((Ft,$t)=>{if(typeof Ke!="number"||Math.sign(Ke)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${Ke}\``);if(vt?.aborted){$t(getAbortedReason(vt));return}if(vt&&(Ct=()=>{$t(getAbortedReason(vt))},vt.addEventListener("abort",Ct,{once:!0})),Me.then(Ft,$t),Ke===Number.POSITIVE_INFINITY)return;const Rt=new TimeoutError;Je=De.setTimeout.call(void 0,()=>{if(ze){try{Ft(ze())}catch(qt){$t(qt)}return}typeof Me.cancel=="function"&&Me.cancel(),We===!1?Ft():We instanceof Error?$t(We):(Rt.message=We??`Promise timed out after ${Ke} milliseconds`,$t(Rt))},Ke)}).finally(()=>{yt.clear(),Ct&&vt&&vt.removeEventListener("abort",Ct)});return yt.clear=()=>{De.clearTimeout.call(void 0,Je),Je=void 0},yt}function lowerBound(Me,xe,Ke){let ze=0,We=Me.length;for(;We>0;){const De=Math.trunc(We/2);let vt=ze+De;Ke(Me[vt],xe)<=0?(ze=++vt,We-=De+1):We=De}return ze}class PriorityQueue{#t=[];enqueue(xe,Ke){const{priority:ze=0,id:We}=Ke??{},De={priority:ze,id:We,run:xe};if(this.size===0||this.#t[this.size-1].priority>=ze){this.#t.push(De);return}const vt=lowerBound(this.#t,De,(Je,Ct)=>Ct.priority-Je.priority);this.#t.splice(vt,0,De)}setPriority(xe,Ke){const ze=this.#t.findIndex(De=>De.id===xe);if(ze===-1)throw new ReferenceError(`No promise function with the id "${xe}" exists in the queue.`);const[We]=this.#t.splice(ze,1);this.enqueue(We.run,{priority:Ke,id:xe})}dequeue(){return this.#t.shift()?.run}filter(xe){return this.#t.filter(Ke=>Ke.priority===xe.priority).map(Ke=>Ke.run)}get size(){return this.#t.length}}class PQueue extends EventEmitter{#t;#i;#n=0;#f;#m=!1;#p=!1;#l;#b=0;#g=0;#s;#o;#e;#w;#r=0;#d;#a;#k=1n;#h=new Map;timeout;constructor(xe){if(super(),xe={carryoverIntervalCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:PriorityQueue,...xe},!(typeof xe.intervalCap=="number"&&xe.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${xe.intervalCap?.toString()??""}\` (${typeof xe.intervalCap})`);if(xe.interval===void 0||!(Number.isFinite(xe.interval)&&xe.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${xe.interval?.toString()??""}\` (${typeof xe.interval})`);if(this.#t=xe.carryoverIntervalCount??xe.carryoverConcurrencyCount??!1,this.#i=xe.intervalCap===Number.POSITIVE_INFINITY||xe.interval===0,this.#f=xe.intervalCap,this.#l=xe.interval,this.#e=new xe.queueClass,this.#w=xe.queueClass,this.concurrency=xe.concurrency,xe.timeout!==void 0&&!(Number.isFinite(xe.timeout)&&xe.timeout>0))throw new TypeError(`Expected \`timeout\` to be a positive finite number, got \`${xe.timeout}\` (${typeof xe.timeout})`);this.timeout=xe.timeout,this.#a=xe.autoStart===!1,this.#q()}get#x(){return this.#i||this.#n0){const ze=xe-this.#g;if(ze{this.#D()},xe))}#E(){this.#s&&(clearInterval(this.#s),this.#s=void 0)}#$(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#v(){if(this.#e.size===0)return this.#E(),this.emit("empty"),this.#r===0&&(this.#$(),this.emit("idle")),!1;let xe=!1;if(!this.#a){const Ke=!this.#F;if(this.#x&&this.#S){const ze=this.#e.dequeue();this.#i||(this.#n++,this.#c()),this.emit("active"),this.#g=Date.now(),ze(),Ke&&this.#C(),xe=!0}}return xe}#C(){this.#i||this.#s!==void 0||(this.#s=setInterval(()=>{this.#B()},this.#l),this.#b=Date.now()+this.#l)}#B(){this.#n===0&&this.#r===0&&this.#s&&this.#E(),this.#n=this.#t?this.#r:0,this.#y(),this.#c()}#y(){for(;this.#v(););}get concurrency(){return this.#d}set concurrency(xe){if(!(typeof xe=="number"&&xe>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${xe}\` (${typeof xe})`);this.#d=xe,this.#y()}async#R(xe){return new Promise((Ke,ze)=>{xe.addEventListener("abort",()=>{ze(xe.reason)},{once:!0})})}setPriority(xe,Ke){if(typeof Ke!="number"||!Number.isFinite(Ke))throw new TypeError(`Expected \`priority\` to be a finite number, got \`${Ke}\` (${typeof Ke})`);this.#e.setPriority(xe,Ke)}async add(xe,Ke={}){return Ke.id??=(this.#k++).toString(),Ke={timeout:this.timeout,...Ke},new Promise((ze,We)=>{const De=Symbol(`task-${Ke.id}`);this.#e.enqueue(async()=>{this.#r++,this.#h.set(De,{id:Ke.id,priority:Ke.priority??0,startTime:Date.now(),timeout:Ke.timeout});try{try{Ke.signal?.throwIfAborted()}catch(Ct){throw this.#i||this.#n--,this.#h.delete(De),Ct}let vt=xe({signal:Ke.signal});Ke.timeout&&(vt=pTimeout(Promise.resolve(vt),{milliseconds:Ke.timeout,message:`Task timed out after ${Ke.timeout}ms (queue has ${this.#r} running, ${this.#e.size} waiting)`})),Ke.signal&&(vt=Promise.race([vt,this.#R(Ke.signal)]));const Je=await vt;ze(Je),this.emit("completed",Je)}catch(vt){We(vt),this.emit("error",vt)}finally{this.#h.delete(De),queueMicrotask(()=>{this.#A()})}},Ke),this.emit("add"),this.#v()})}async addAll(xe,Ke){return Promise.all(xe.map(async ze=>this.add(ze,Ke)))}start(){return this.#a?(this.#a=!1,this.#y(),this):this}pause(){this.#a=!0}clear(){this.#e=new this.#w,this.#M()}async onEmpty(){this.#e.size!==0&&await this.#u("empty")}async onSizeLessThan(xe){this.#e.sizethis.#e.size{const ze=We=>{this.off("error",ze),Ke(We)};this.on("error",ze)})}async#u(xe,Ke){return new Promise(ze=>{const We=()=>{Ke&&!Ke()||(this.off(xe,We),ze())};this.on(xe,We)})}get size(){return this.#e.size}sizeBy(xe){return this.#e.filter(xe).length}get pending(){return this.#r}get isPaused(){return this.#a}#q(){this.#i||(this.on("add",()=>{this.#e.size>0&&this.#c()}),this.on("next",()=>{this.#c()}))}#c(){this.#i||this.#p||(this.#p=!0,queueMicrotask(()=>{this.#p=!1,this.#M()}))}#M(){const xe=this.#m,Ke=!this.#i&&this.#n>=this.#f&&this.#e.size>0;Ke!==xe&&(this.#m=Ke,this.emit(Ke?"rateLimit":"rateLimitCleared"))}get isRateLimited(){return this.#m}get isSaturated(){return this.#r===this.#d&&this.#e.size>0||this.isRateLimited&&this.#e.size>0}get runningTasks(){return[...this.#h.values()].map(xe=>({...xe}))}}new PQueue({concurrency:5}),register();const _hoisted_1$4={key:0,class:"nc-chip__icon"},_hoisted_2$3={class:"nc-chip__text"};t("Close");function hasWindow(){return typeof window<"u"}function getNodeName(Me){return isNode(Me)?(Me.nodeName||"").toLowerCase():"#document"}function getWindow(Me){var xe;return(Me==null||(xe=Me.ownerDocument)==null?void 0:xe.defaultView)||window}function getDocumentElement(Me){var xe;return(xe=(isNode(Me)?Me.ownerDocument:Me.document)||window.document)==null?void 0:xe.documentElement}function isNode(Me){return hasWindow()?Me instanceof Node||Me instanceof getWindow(Me).Node:!1}function isElement(Me){return hasWindow()?Me instanceof Element||Me instanceof getWindow(Me).Element:!1}function isHTMLElement(Me){return hasWindow()?Me instanceof HTMLElement||Me instanceof getWindow(Me).HTMLElement:!1}function isShadowRoot(Me){return!hasWindow()||typeof ShadowRoot>"u"?!1:Me instanceof ShadowRoot||Me instanceof getWindow(Me).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(Me){const{overflow:xe,overflowX:Ke,overflowY:ze,display:We}=getComputedStyle$1(Me);return/auto|scroll|overlay|hidden|clip/.test(xe+ze+Ke)&&!invalidOverflowDisplayValues.has(We)}const tableElements=new Set(["table","td","th"]);function isTableElement(Me){return tableElements.has(getNodeName(Me))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(Me){return topLayerSelectors.some(xe=>{try{return Me.matches(xe)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(Me){const xe=isWebKit(),Ke=isElement(Me)?getComputedStyle$1(Me):Me;return transformProperties.some(ze=>Ke[ze]?Ke[ze]!=="none":!1)||(Ke.containerType?Ke.containerType!=="normal":!1)||!xe&&(Ke.backdropFilter?Ke.backdropFilter!=="none":!1)||!xe&&(Ke.filter?Ke.filter!=="none":!1)||willChangeValues.some(ze=>(Ke.willChange||"").includes(ze))||containValues.some(ze=>(Ke.contain||"").includes(ze))}function getContainingBlock(Me){let xe=getParentNode(Me);for(;isHTMLElement(xe)&&!isLastTraversableNode(xe);){if(isContainingBlock(xe))return xe;if(isTopLayer(xe))return null;xe=getParentNode(xe)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(Me){return lastTraversableNodeNames.has(getNodeName(Me))}function getComputedStyle$1(Me){return getWindow(Me).getComputedStyle(Me)}function getNodeScroll(Me){return isElement(Me)?{scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop}:{scrollLeft:Me.scrollX,scrollTop:Me.scrollY}}function getParentNode(Me){if(getNodeName(Me)==="html")return Me;const xe=Me.assignedSlot||Me.parentNode||isShadowRoot(Me)&&Me.host||getDocumentElement(Me);return isShadowRoot(xe)?xe.host:xe}function getNearestOverflowAncestor(Me){const xe=getParentNode(Me);return isLastTraversableNode(xe)?Me.ownerDocument?Me.ownerDocument.body:Me.body:isHTMLElement(xe)&&isOverflowElement(xe)?xe:getNearestOverflowAncestor(xe)}function getOverflowAncestors(Me,xe,Ke){var ze;xe===void 0&&(xe=[]),Ke===void 0&&(Ke=!0);const We=getNearestOverflowAncestor(Me),De=We===((ze=Me.ownerDocument)==null?void 0:ze.body),vt=getWindow(We);if(De){const Je=getFrameElement(vt);return xe.concat(vt,vt.visualViewport||[],isOverflowElement(We)?We:[],Je&&Ke?getOverflowAncestors(Je):[])}return xe.concat(We,getOverflowAncestors(We,[],Ke))}function getFrameElement(Me){return Me.parent&&Object.getPrototypeOf(Me.parent)?Me.frameElement:null}function getCssDimensions(Me){const xe=getComputedStyle$1(Me);let Ke=parseFloat(xe.width)||0,ze=parseFloat(xe.height)||0;const We=isHTMLElement(Me),De=We?Me.offsetWidth:Ke,vt=We?Me.offsetHeight:ze,Je=round$1(Ke)!==De||round$1(ze)!==vt;return Je&&(Ke=De,ze=vt),{width:Ke,height:ze,$:Je}}function unwrapElement(Me){return isElement(Me)?Me:Me.contextElement}function getScale(Me){const xe=unwrapElement(Me);if(!isHTMLElement(xe))return createCoords(1);const Ke=xe.getBoundingClientRect(),{width:ze,height:We,$:De}=getCssDimensions(xe);let vt=(De?round$1(Ke.width):Ke.width)/ze,Je=(De?round$1(Ke.height):Ke.height)/We;return(!vt||!Number.isFinite(vt))&&(vt=1),(!Je||!Number.isFinite(Je))&&(Je=1),{x:vt,y:Je}}const noOffsets=createCoords(0);function getVisualOffsets(Me){const xe=getWindow(Me);return!isWebKit()||!xe.visualViewport?noOffsets:{x:xe.visualViewport.offsetLeft,y:xe.visualViewport.offsetTop}}function shouldAddVisualOffsets(Me,xe,Ke){return xe===void 0&&(xe=!1),!Ke||xe&&Ke!==getWindow(Me)?!1:xe}function getBoundingClientRect(Me,xe,Ke,ze){xe===void 0&&(xe=!1),Ke===void 0&&(Ke=!1);const We=Me.getBoundingClientRect(),De=unwrapElement(Me);let vt=createCoords(1);xe&&(ze?isElement(ze)&&(vt=getScale(ze)):vt=getScale(Me));const Je=shouldAddVisualOffsets(De,Ke,ze)?getVisualOffsets(De):createCoords(0);let Ct=(We.left+Je.x)/vt.x,yt=(We.top+Je.y)/vt.y,Ft=We.width/vt.x,$t=We.height/vt.y;if(De){const Rt=getWindow(De),qt=ze&&isElement(ze)?getWindow(ze):ze;let Pt=Rt,Nt=getFrameElement(Pt);for(;Nt&&ze&&qt!==Pt;){const zt=getScale(Nt),Gt=Nt.getBoundingClientRect(),Ut=getComputedStyle$1(Nt),ii=Gt.left+(Nt.clientLeft+parseFloat(Ut.paddingLeft))*zt.x,ti=Gt.top+(Nt.clientTop+parseFloat(Ut.paddingTop))*zt.y;Ct*=zt.x,yt*=zt.y,Ft*=zt.x,$t*=zt.y,Ct+=ii,yt+=ti,Pt=getWindow(Nt),Nt=getFrameElement(Pt)}}return rectToClientRect({width:Ft,height:$t,x:Ct,y:yt})}function getWindowScrollBarX(Me,xe){const Ke=getNodeScroll(Me).scrollLeft;return xe?xe.left+Ke:getBoundingClientRect(getDocumentElement(Me)).left+Ke}function getHTMLOffset(Me,xe){const Ke=Me.getBoundingClientRect(),ze=Ke.left+xe.scrollLeft-getWindowScrollBarX(Me,Ke),We=Ke.top+xe.scrollTop;return{x:ze,y:We}}function convertOffsetParentRelativeRectToViewportRelativeRect(Me){let{elements:xe,rect:Ke,offsetParent:ze,strategy:We}=Me;const De=We==="fixed",vt=getDocumentElement(ze),Je=xe?isTopLayer(xe.floating):!1;if(ze===vt||Je&&De)return Ke;let Ct={scrollLeft:0,scrollTop:0},yt=createCoords(1);const Ft=createCoords(0),$t=isHTMLElement(ze);if(($t||!$t&&!De)&&((getNodeName(ze)!=="body"||isOverflowElement(vt))&&(Ct=getNodeScroll(ze)),isHTMLElement(ze))){const qt=getBoundingClientRect(ze);yt=getScale(ze),Ft.x=qt.x+ze.clientLeft,Ft.y=qt.y+ze.clientTop}const Rt=vt&&!$t&&!De?getHTMLOffset(vt,Ct):createCoords(0);return{width:Ke.width*yt.x,height:Ke.height*yt.y,x:Ke.x*yt.x-Ct.scrollLeft*yt.x+Ft.x+Rt.x,y:Ke.y*yt.y-Ct.scrollTop*yt.y+Ft.y+Rt.y}}function getClientRects(Me){return Array.from(Me.getClientRects())}function getDocumentRect(Me){const xe=getDocumentElement(Me),Ke=getNodeScroll(Me),ze=Me.ownerDocument.body,We=max$1(xe.scrollWidth,xe.clientWidth,ze.scrollWidth,ze.clientWidth),De=max$1(xe.scrollHeight,xe.clientHeight,ze.scrollHeight,ze.clientHeight);let vt=-Ke.scrollLeft+getWindowScrollBarX(Me);const Je=-Ke.scrollTop;return getComputedStyle$1(ze).direction==="rtl"&&(vt+=max$1(xe.clientWidth,ze.clientWidth)-We),{width:We,height:De,x:vt,y:Je}}const SCROLLBAR_MAX=25;function getViewportRect(Me,xe){const Ke=getWindow(Me),ze=getDocumentElement(Me),We=Ke.visualViewport;let De=ze.clientWidth,vt=ze.clientHeight,Je=0,Ct=0;if(We){De=We.width,vt=We.height;const Ft=isWebKit();(!Ft||Ft&&xe==="fixed")&&(Je=We.offsetLeft,Ct=We.offsetTop)}const yt=getWindowScrollBarX(ze);if(yt<=0){const Ft=ze.ownerDocument,$t=Ft.body,Rt=getComputedStyle($t),qt=Ft.compatMode==="CSS1Compat"&&parseFloat(Rt.marginLeft)+parseFloat(Rt.marginRight)||0,Pt=Math.abs(ze.clientWidth-$t.clientWidth-qt);Pt<=SCROLLBAR_MAX&&(De-=Pt)}else yt<=SCROLLBAR_MAX&&(De+=yt);return{width:De,height:vt,x:Je,y:Ct}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(Me,xe){const Ke=getBoundingClientRect(Me,!0,xe==="fixed"),ze=Ke.top+Me.clientTop,We=Ke.left+Me.clientLeft,De=isHTMLElement(Me)?getScale(Me):createCoords(1),vt=Me.clientWidth*De.x,Je=Me.clientHeight*De.y,Ct=We*De.x,yt=ze*De.y;return{width:vt,height:Je,x:Ct,y:yt}}function getClientRectFromClippingAncestor(Me,xe,Ke){let ze;if(xe==="viewport")ze=getViewportRect(Me,Ke);else if(xe==="document")ze=getDocumentRect(getDocumentElement(Me));else if(isElement(xe))ze=getInnerBoundingClientRect(xe,Ke);else{const We=getVisualOffsets(Me);ze={x:xe.x-We.x,y:xe.y-We.y,width:xe.width,height:xe.height}}return rectToClientRect(ze)}function hasFixedPositionAncestor(Me,xe){const Ke=getParentNode(Me);return Ke===xe||!isElement(Ke)||isLastTraversableNode(Ke)?!1:getComputedStyle$1(Ke).position==="fixed"||hasFixedPositionAncestor(Ke,xe)}function getClippingElementAncestors(Me,xe){const Ke=xe.get(Me);if(Ke)return Ke;let ze=getOverflowAncestors(Me,[],!1).filter(Je=>isElement(Je)&&getNodeName(Je)!=="body"),We=null;const De=getComputedStyle$1(Me).position==="fixed";let vt=De?getParentNode(Me):Me;for(;isElement(vt)&&!isLastTraversableNode(vt);){const Je=getComputedStyle$1(vt),Ct=isContainingBlock(vt);!Ct&&Je.position==="fixed"&&(We=null),(De?!Ct&&!We:!Ct&&Je.position==="static"&&We&&absoluteOrFixed.has(We.position)||isOverflowElement(vt)&&!Ct&&hasFixedPositionAncestor(Me,vt))?ze=ze.filter(yt=>yt!==vt):We=Je,vt=getParentNode(vt)}return xe.set(Me,ze),ze}function getClippingRect(Me){let{element:xe,boundary:Ke,rootBoundary:ze,strategy:We}=Me;const De=[...Ke==="clippingAncestors"?isTopLayer(xe)?[]:getClippingElementAncestors(xe,this._c):[].concat(Ke),ze],vt=De[0],Je=De.reduce((Ct,yt)=>{const Ft=getClientRectFromClippingAncestor(xe,yt,We);return Ct.top=max$1(Ft.top,Ct.top),Ct.right=min$1(Ft.right,Ct.right),Ct.bottom=min$1(Ft.bottom,Ct.bottom),Ct.left=max$1(Ft.left,Ct.left),Ct},getClientRectFromClippingAncestor(xe,vt,We));return{width:Je.right-Je.left,height:Je.bottom-Je.top,x:Je.left,y:Je.top}}function getDimensions(Me){const{width:xe,height:Ke}=getCssDimensions(Me);return{width:xe,height:Ke}}function getRectRelativeToOffsetParent(Me,xe,Ke){const ze=isHTMLElement(xe),We=getDocumentElement(xe),De=Ke==="fixed",vt=getBoundingClientRect(Me,!0,De,xe);let Je={scrollLeft:0,scrollTop:0};const Ct=createCoords(0);function yt(){Ct.x=getWindowScrollBarX(We)}if(ze||!ze&&!De)if((getNodeName(xe)!=="body"||isOverflowElement(We))&&(Je=getNodeScroll(xe)),ze){const qt=getBoundingClientRect(xe,!0,De,xe);Ct.x=qt.x+xe.clientLeft,Ct.y=qt.y+xe.clientTop}else We&&yt();De&&!ze&&We&&yt();const Ft=We&&!ze&&!De?getHTMLOffset(We,Je):createCoords(0),$t=vt.left+Je.scrollLeft-Ct.x-Ft.x,Rt=vt.top+Je.scrollTop-Ct.y-Ft.y;return{x:$t,y:Rt,width:vt.width,height:vt.height}}function isStaticPositioned(Me){return getComputedStyle$1(Me).position==="static"}function getTrueOffsetParent(Me,xe){if(!isHTMLElement(Me)||getComputedStyle$1(Me).position==="fixed")return null;if(xe)return xe(Me);let Ke=Me.offsetParent;return getDocumentElement(Me)===Ke&&(Ke=Ke.ownerDocument.body),Ke}function getOffsetParent(Me,xe){const Ke=getWindow(Me);if(isTopLayer(Me))return Ke;if(!isHTMLElement(Me)){let We=getParentNode(Me);for(;We&&!isLastTraversableNode(We);){if(isElement(We)&&!isStaticPositioned(We))return We;We=getParentNode(We)}return Ke}let ze=getTrueOffsetParent(Me,xe);for(;ze&&isTableElement(ze)&&isStaticPositioned(ze);)ze=getTrueOffsetParent(ze,xe);return ze&&isLastTraversableNode(ze)&&isStaticPositioned(ze)&&!isContainingBlock(ze)?Ke:ze||getContainingBlock(Me)||Ke}const getElementRects=async function(Me){const xe=this.getOffsetParent||getOffsetParent,Ke=this.getDimensions,ze=await Ke(Me.floating);return{reference:getRectRelativeToOffsetParent(Me.reference,await xe(Me.floating),Me.strategy),floating:{x:0,y:0,width:ze.width,height:ze.height}}};function isRTL(Me){return getComputedStyle$1(Me).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(Me,xe){return Me.x===xe.x&&Me.y===xe.y&&Me.width===xe.width&&Me.height===xe.height}function observeMove(Me,xe){let Ke=null,ze;const We=getDocumentElement(Me);function De(){var Je;clearTimeout(ze),(Je=Ke)==null||Je.disconnect(),Ke=null}function vt(Je,Ct){Je===void 0&&(Je=!1),Ct===void 0&&(Ct=1),De();const yt=Me.getBoundingClientRect(),{left:Ft,top:$t,width:Rt,height:qt}=yt;if(Je||xe(),!Rt||!qt)return;const Pt=floor$1($t),Nt=floor$1(We.clientWidth-(Ft+Rt)),zt=floor$1(We.clientHeight-($t+qt)),Gt=floor$1(Ft),Ut={rootMargin:-Pt+"px "+-Nt+"px "+-zt+"px "+-Gt+"px",threshold:max$1(0,min$1(1,Ct))||1};let ii=!0;function ti(di){const ci=di[0].intersectionRatio;if(ci!==Ct){if(!ii)return vt();ci?vt(!1,ci):ze=setTimeout(()=>{vt(!1,1e-7)},1e3)}ci===1&&!rectsAreEqual(yt,Me.getBoundingClientRect())&&vt(),ii=!1}try{Ke=new IntersectionObserver(ti,{...Ut,root:We.ownerDocument})}catch{Ke=new IntersectionObserver(ti,Ut)}Ke.observe(Me)}return vt(!0),De}function autoUpdate(Me,xe,Ke,ze){ze===void 0&&(ze={});const{ancestorScroll:We=!0,ancestorResize:De=!0,elementResize:vt=typeof ResizeObserver=="function",layoutShift:Je=typeof IntersectionObserver=="function",animationFrame:Ct=!1}=ze,yt=unwrapElement(Me),Ft=We||De?[...yt?getOverflowAncestors(yt):[],...getOverflowAncestors(xe)]:[];Ft.forEach(Gt=>{We&&Gt.addEventListener("scroll",Ke,{passive:!0}),De&&Gt.addEventListener("resize",Ke)});const $t=yt&&Je?observeMove(yt,Ke):null;let Rt=-1,qt=null;vt&&(qt=new ResizeObserver(Gt=>{let[Ut]=Gt;Ut&&Ut.target===yt&&qt&&(qt.unobserve(xe),cancelAnimationFrame(Rt),Rt=requestAnimationFrame(()=>{var ii;(ii=qt)==null||ii.observe(xe)})),Ke()}),yt&&!Ct&&qt.observe(yt),qt.observe(xe));let Pt,Nt=Ct?getBoundingClientRect(Me):null;Ct&&zt();function zt(){const Gt=getBoundingClientRect(Me);Nt&&!rectsAreEqual(Nt,Gt)&&Ke(),Nt=Gt,Pt=requestAnimationFrame(zt)}return Ke(),()=>{var Gt;Ft.forEach(Ut=>{We&&Ut.removeEventListener("scroll",Ke),De&&Ut.removeEventListener("resize",Ke)}),$t?.(),(Gt=qt)==null||Gt.disconnect(),qt=null,Ct&&cancelAnimationFrame(Pt)}}const offset=offset$1,shift=shift$1,flip=flip$1,limitShift=limitShift$1,computePosition=(Me,xe,Ke)=>{const ze=new Map,We={platform,...Ke},De={...We.platform,_c:ze};return computePosition$1(Me,xe,{...We,platform:De})};var E=Object.defineProperty,M=Object.defineProperties,x=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,C=(Me,xe,Ke)=>xe in Me?E(Me,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Me[xe]=Ke,f=(Me,xe)=>{for(var Ke in xe||(xe={}))I.call(xe,Ke)&&C(Me,Ke,xe[Ke]);if(V)for(var Ke of V(xe))N.call(xe,Ke)&&C(Me,Ke,xe[Ke]);return Me},m=(Me,xe)=>M(Me,x(xe));const U={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(Me){this.autoscroll&&Me&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var Me;const xe=((Me=this.$refs.dropdownMenu)==null?void 0:Me.children[this.typeAheadPointer])||!1;if(xe){const Ke=this.getDropdownViewport(),{top:ze,bottom:We,height:De}=xe.getBoundingClientRect();if(zeKe.bottom)return this.$refs.dropdownMenu.scrollTop=xe.offsetTop-(Ke.height-De)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},q={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let Me=0;Me=0;Me--)if(this.selectable(this.filteredOptions[Me])){this.typeAheadPointer=Me;break}},typeAheadDown(){for(let Me=this.typeAheadPointer+1;Me{const Ke=Me.__vccOpts||Me;for(const[ze,We]of xe)Ke[ze]=We;return Ke},H$1={},X={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},Y=createBaseVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),Q=[Y];function G(Me,xe){return openBlock(),createElementBlock("svg",X,Q)}const W=S(H$1,[["render",G]]),Z={},ee={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},te=createBaseVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),se=[te];function ie(Me,xe){return openBlock(),createElementBlock("svg",ee,se)}const oe=S(Z,[["render",ie]]),T={Deselect:W,OpenIndicator:oe},ne={mounted(Me,{instance:xe}){if(xe.appendToBody){const{height:Ke,top:ze,left:We,width:De}=xe.$refs.toggle.getBoundingClientRect();let vt=window.scrollX||window.pageXOffset,Je=window.scrollY||window.pageYOffset;Me.unbindPosition=xe.calculatePosition(Me,xe,{width:De+"px",left:vt+We+"px",top:Je+ze+Ke+"px"}),document.body.appendChild(Me)}},unmounted(Me,{instance:xe}){xe.appendToBody&&(Me.unbindPosition&&typeof Me.unbindPosition=="function"&&Me.unbindPosition(),Me.parentNode&&Me.parentNode.removeChild(Me))}};function le(Me){const xe={};return Object.keys(Me).sort().forEach(Ke=>{xe[Ke]=Me[Ke]}),JSON.stringify(xe)}let ae=0;function re(){return++ae}const de={components:f({},T),directives:{appendToBody:ne},mixins:[U,q,J],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:Me=>Me},selectable:{type:Function,default:Me=>!0},getOptionLabel:{type:Function,default(Me){return typeof Me=="object"?Me.hasOwnProperty(this.label)?Me[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(Me)}. -https://vue-select.org/api/props.html#getoptionlabel`):Me}},getOptionKey:{type:Function,default(Me){if(typeof Me!="object")return Me;try{return Me.hasOwnProperty("id")?Me.id:le(Me)}catch(xe){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. -https://vue-select.org/api/props.html#getoptionkey`,Me,xe)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(Me,xe,Ke){return(xe||"").toLocaleLowerCase().indexOf(Ke.toLocaleLowerCase())>-1}},filter:{type:Function,default(Me,xe){return Me.filter(Ke=>{let ze=this.getOptionLabel(Ke);return typeof ze=="number"&&(ze=ze.toString()),this.filterBy(Ke,ze,xe)})}},createOption:{type:Function,default(Me){return typeof this.optionList[0]=="object"?{[this.label]:Me}:Me}},resetOnOptionsChange:{default:!1,validator:Me=>["function","boolean"].includes(typeof Me)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:Me,multiple:xe}){return Me&&!xe}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(Me,xe)=>Me},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(Me,xe,{width:Ke,top:ze,left:We}){Me.style.top=ze,Me.style.left=We,Me.style.width=Ke}},dropdownShouldOpen:{type:Function,default({noDrop:Me,open:xe,mutableLoading:Ke}){return Me?!1:xe&&!Ke}},uid:{type:[String,Number],default:()=>re()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let Me=this.modelValue;return this.isTrackingValues&&(Me=this.$data._value),Me!=null&&Me!==""?[].concat(Me):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const Me={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:f({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:xe=>this.search=xe.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:Me,listFooter:Me,header:m(f({},Me),{deselect:this.deselect}),footer:m(f({},Me),{deselect:this.deselect})}},childComponents(){return f(f({},T),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const Me=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return Me;const xe=this.search.length?this.filter(Me,this.search,this):Me;if(this.taggable&&this.search.length){const Ke=this.createOption(this.search);this.optionExists(Ke)||xe.unshift(Ke)}return xe},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(Me,xe){const Ke=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(Me,xe,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&Ke()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(Me){this.isTrackingValues&&this.setInternalValueFromOptions(Me)}},multiple(){this.clearSelection()},open(Me){this.$emit(Me?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(Me){Array.isArray(Me)?this.$data._value=Me.map(xe=>this.findOptionFromReducedValue(xe)):this.$data._value=this.findOptionFromReducedValue(Me)},select(Me){this.$emit("option:selecting",Me),this.isOptionSelected(Me)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(Me):(this.taggable&&!this.optionExists(Me)&&(this.$emit("option:created",Me),this.pushTag(Me)),this.multiple&&(Me=this.selectedValue.concat(Me)),this.updateValue(Me),this.$emit("option:selected",Me)),this.onAfterSelect(Me)},deselect(Me){this.$emit("option:deselecting",Me),this.updateValue(this.selectedValue.filter(xe=>!this.optionComparator(xe,Me))),this.$emit("option:deselected",Me)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(Me){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(Me){typeof this.modelValue>"u"&&(this.$data._value=Me),Me!==null&&(Array.isArray(Me)?Me=Me.map(xe=>this.reduce(xe)):Me=this.reduce(Me)),this.$emit("update:modelValue",Me)},toggleDropdown(Me){const xe=Me.target!==this.searchEl;xe&&Me.preventDefault();const Ke=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||Ke.filter(Boolean).some(ze=>ze.contains(Me.target)||ze===Me.target)){Me.preventDefault();return}this.open&&xe?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(Me){return this.selectedValue.some(xe=>this.optionComparator(xe,Me))},isOptionDeselectable(Me){return this.isOptionSelected(Me)&&this.deselectFromDropdown},optionComparator(Me,xe){return this.getOptionKey(Me)===this.getOptionKey(xe)},findOptionFromReducedValue(Me){const xe=ze=>JSON.stringify(this.reduce(ze))===JSON.stringify(Me),Ke=[...this.options,...this.pushedTags].filter(xe);return Ke.length===1?Ke[0]:Ke.find(ze=>this.optionComparator(ze,this.$data._value))||Me},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let Me=null;this.multiple&&(Me=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(Me)}},optionExists(Me){return this.optionList.some(xe=>this.optionComparator(xe,Me))},normalizeOptionForSlot(Me){return typeof Me=="object"?Me:{[this.label]:Me}},pushTag(Me){this.pushedTags.push(Me)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:Me,multiple:xe}=this;this.clearSearchOnBlur({clearSearchOnSelect:Me,multiple:xe})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(Me){const xe=We=>(We.preventDefault(),!this.isComposing&&this.typeAheadSelect()),Ke={8:We=>this.maybeDeleteValue(),9:We=>this.onTab(),27:We=>this.onEscape(),38:We=>(We.preventDefault(),this.typeAheadUp()),40:We=>(We.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(We=>Ke[We]=xe);const ze=this.mapKeydown(Ke,this);if(typeof ze[Me.keyCode]=="function")return ze[Me.keyCode](Me)}}},he=["dir"],ce=["id","aria-expanded","aria-owns"],ue={ref:"selectedOptions",class:"vs__selected-options"},pe=["disabled","title","aria-label","onClick"],fe={ref:"actions",class:"vs__actions"},ge=["disabled"],ye={class:"vs__spinner"},me=["id"],be=["id","aria-selected","onMouseover","onClick"],_e={key:0,class:"vs__no-options"},Oe$1=createTextVNode(" Sorry, no matching options. "),we=["id"];function ve(Me,xe,Ke,ze,We,De){const vt=resolveDirective("append-to-body");return openBlock(),createElementBlock("div",{dir:Ke.dir,class:normalizeClass(["v-select",De.stateClasses])},[renderSlot(Me.$slots,"header",normalizeProps(guardReactiveProps(De.scope.header))),createBaseVNode("div",{id:`vs${Ke.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":De.dropdownOpen.toString(),"aria-owns":`vs${Ke.uid}__listbox`,"aria-label":"Search for option",onMousedown:xe[1]||(xe[1]=Je=>De.toggleDropdown(Je))},[createBaseVNode("div",ue,[(openBlock(!0),createElementBlock(Fragment,null,renderList(De.selectedValue,(Je,Ct)=>renderSlot(Me.$slots,"selected-option-container",{option:De.normalizeOptionForSlot(Je),deselect:De.deselect,multiple:Ke.multiple,disabled:Ke.disabled},()=>[(openBlock(),createElementBlock("span",{key:Ke.getOptionKey(Je),class:"vs__selected"},[renderSlot(Me.$slots,"selected-option",normalizeProps(guardReactiveProps(De.normalizeOptionForSlot(Je))),()=>[createTextVNode(toDisplayString(Ke.getOptionLabel(Je)),1)]),Ke.multiple?(openBlock(),createElementBlock("button",{key:0,ref_for:!0,ref:yt=>We.deselectButtons[Ct]=yt,disabled:Ke.disabled,type:"button",class:"vs__deselect",title:`Deselect ${Ke.getOptionLabel(Je)}`,"aria-label":`Deselect ${Ke.getOptionLabel(Je)}`,onClick:yt=>De.deselect(Je)},[(openBlock(),createBlock(resolveDynamicComponent(De.childComponents.Deselect)))],8,pe)):createCommentVNode("",!0)]))])),256)),renderSlot(Me.$slots,"search",normalizeProps(guardReactiveProps(De.scope.search)),()=>[createBaseVNode("input",mergeProps({class:"vs__search"},De.scope.search.attributes,toHandlers(De.scope.search.events)),null,16)])],512),createBaseVNode("div",fe,[withDirectives(createBaseVNode("button",{ref:"clearButton",disabled:Ke.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:xe[0]||(xe[0]=(...Je)=>De.clearSelection&&De.clearSelection(...Je))},[(openBlock(),createBlock(resolveDynamicComponent(De.childComponents.Deselect)))],8,ge),[[vShow,De.showClearButton]]),renderSlot(Me.$slots,"open-indicator",normalizeProps(guardReactiveProps(De.scope.openIndicator)),()=>[Ke.noDrop?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(De.childComponents.OpenIndicator),normalizeProps(mergeProps({key:0},De.scope.openIndicator.attributes)),null,16))]),renderSlot(Me.$slots,"spinner",normalizeProps(guardReactiveProps(De.scope.spinner)),()=>[withDirectives(createBaseVNode("div",ye,"Loading...",512),[[vShow,Me.mutableLoading]])])],512)],40,ce),createVNode(Transition,{name:Ke.transition},{default:withCtx(()=>[De.dropdownOpen?withDirectives((openBlock(),createElementBlock("ul",{id:`vs${Ke.uid}__listbox`,ref:"dropdownMenu",key:`vs${Ke.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:xe[2]||(xe[2]=withModifiers((...Je)=>De.onMousedown&&De.onMousedown(...Je),["prevent"])),onMouseup:xe[3]||(xe[3]=(...Je)=>De.onMouseUp&&De.onMouseUp(...Je))},[renderSlot(Me.$slots,"list-header",normalizeProps(guardReactiveProps(De.scope.listHeader))),(openBlock(!0),createElementBlock(Fragment,null,renderList(De.filteredOptions,(Je,Ct)=>(openBlock(),createElementBlock("li",{id:`vs${Ke.uid}__option-${Ct}`,key:Ke.getOptionKey(Je),role:"option",class:normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":De.isOptionDeselectable(Je)&&Ct===Me.typeAheadPointer,"vs__dropdown-option--selected":De.isOptionSelected(Je),"vs__dropdown-option--highlight":Ct===Me.typeAheadPointer,"vs__dropdown-option--disabled":!Ke.selectable(Je)}]),"aria-selected":Ct===Me.typeAheadPointer?!0:null,onMouseover:yt=>Ke.selectable(Je)?Me.typeAheadPointer=Ct:null,onClick:withModifiers(yt=>Ke.selectable(Je)?De.select(Je):null,["prevent","stop"])},[renderSlot(Me.$slots,"option",normalizeProps(guardReactiveProps(De.normalizeOptionForSlot(Je))),()=>[createTextVNode(toDisplayString(Ke.getOptionLabel(Je)),1)])],42,be))),128)),De.filteredOptions.length===0?(openBlock(),createElementBlock("li",_e,[renderSlot(Me.$slots,"no-options",normalizeProps(guardReactiveProps(De.scope.noOptions)),()=>[Oe$1])])):createCommentVNode("",!0),renderSlot(Me.$slots,"list-footer",normalizeProps(guardReactiveProps(De.scope.listFooter)))],40,me)),[[vt]]):(openBlock(),createElementBlock("ul",{key:1,id:`vs${Ke.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,we))]),_:3},8,["name"]),renderSlot(Me.$slots,"footer",normalizeProps(guardReactiveProps(De.scope.footer)))],10,he)}const Ce=S(de,[["render",ve]]);function findRanges(Me,xe){const Ke=[];let ze=0,We=Me.toLowerCase().indexOf(xe.toLowerCase(),ze),De=0;for(;We>-1&&De++[]}},computed:{ranges(){let Me=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?Me=this.highlight:Me=findRanges(this.text,this.search),Me.forEach((xe,Ke)=>{xe.end(Ke.start0&&xe.push({start:Ke.start<0?0:Ke.start,end:Ke.end>this.text.length?this.text.length:Ke.end}),xe),[]),Me.sort((xe,Ke)=>xe.start-Ke.start),Me=Me.reduce((xe,Ke)=>{if(!xe.length)xe.push(Ke);else{const ze=xe.length-1;xe[ze].end>=Ke.start?xe[ze]={start:xe[ze].start,end:Math.max(xe[ze].end,Ke.end)}:xe.push(Ke)}return xe},[])),Me},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const Me=[];let xe=0,Ke=0;for(;xe=this.ranges.length&&xeMe.highlight?h$2("strong",{},Me.text):Me.text)):h$2("span",{},this.text)}}),_sfc_main$3={name:"NcEllipsisedOption",components:{NcHighlight:_sfc_main$4},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?findRanges(this.name,this.search):[]},highlight2(){return this.highlight1.map(Me=>({start:Me.start-this.split,end:Me.end-this.split}))}}},_hoisted_1$3=["title"];function _sfc_render$2(Me,xe,Ke,ze,We,De){const vt=resolveComponent("NcHighlight");return openBlock(),createElementBlock("span",{dir:"auto",class:"name-parts",title:Ke.name},[createVNode(vt,{class:"name-parts__first",text:De.part1,search:Ke.search,highlight:De.highlight1},null,8,["text","search","highlight"]),De.part2?(openBlock(),createBlock(vt,{key:0,class:"name-parts__last",text:De.part2,search:Ke.search,highlight:De.highlight2},null,8,["text","search","highlight"])):createCommentVNode("",!0)],8,_hoisted_1$3)}const NcEllipsisedOption=_export_sfc(_sfc_main$3,[["render",_sfc_render$2],["__scopeId","data-v-a612f185"]]);register(t17);const _sfc_main$2={name:"NcSelect",components:{ChevronDown,NcEllipsisedOption,NcLoadingIcon,VueSelect:Ce},props:{...Ce.props,...Ce.mixins.reduce((Me,xe)=>({...Me,...xe.props}),{}),ariaLabelClearSelected:{type:String,default:t("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:t("Options")},ariaLabelDeselectOption:{type:Function,default:Me=>t("Deselect {option}",{option:Me})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:()=>h$2(IconClose,{size:20,fillColor:"var(--vs-controls-color)",style:[{cursor:"pointer"}]})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:Me,open:xe})=>Me?!1:xe},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>createElementId()},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(Me,xe){return{...Me,27:Ke=>{xe.open&&Ke.stopPropagation(),Me[27](Ke)}}}},uid:{type:String,default:()=>createElementId()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","update:modelValue"],setup(){const Me=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),xe=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline"));return{avatarSize:Me-2*xe}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.modelValue===null||Array.isArray(this.modelValue)&&this.modelValue.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(Me,xe,{width:Ke})=>{Me.style.width=Ke;const ze={name:"addClass",fn(){return Me.classList.add("vs__dropdown-menu--floating"),{}}},We={name:"togglePlacementClass",fn({placement:vt}){return xe.$el.classList.toggle("select--drop-up",vt==="top"),Me.classList.toggle("vs__dropdown-menu--floating-placement-top",vt==="top"),{}}},De=()=>{computePosition(xe.$refs.toggle,Me,{placement:this.placement,middleware:[offset(-1),ze,We,flip(),shift({limiter:limitShift()})]}).then(({x:vt,y:Je})=>{Object.assign(Me.style,{left:`${vt}px`,top:`${Je}px`,width:`${xe.$refs.toggle.getBoundingClientRect().width}px`})})};return autoUpdate(xe.$refs.toggle,Me,De)}},localFilterBy(){return this.filterBy??Ce.props.filterBy.default},localLabel(){return this.label??Ce.props.label.default},propsToForward(){const Me=[...Object.keys(Ce.props),...Ce.mixins.flatMap(xe=>Object.keys(xe.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([xe,Ke])=>Me.includes(xe))),calculatePosition:this.localCalculatePosition,closeOnSelect:!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}}},mounted(){!this.labelOutside&&!this.inputLabel&&this.ariaLabelCombobox,this.inputLabel&&this.ariaLabelCombobox},methods:{t}},_hoisted_1$2=["for"],_hoisted_2$2=["required"];function _sfc_render$1(Me,xe,Ke,ze,We,De){const vt=resolveComponent("ChevronDown"),Je=resolveComponent("NcEllipsisedOption"),Ct=resolveComponent("NcLoadingIcon"),yt=resolveComponent("VueSelect");return openBlock(),createBlock(yt,mergeProps({class:["select",{"select--no-wrap":Ke.noWrap}]},De.propsToForward,{onSearch:xe[0]||(xe[0]=Ft=>We.search=Ft),"onUpdate:modelValue":xe[1]||(xe[1]=Ft=>Me.$emit("update:modelValue",Ft))}),createSlots({search:withCtx(({attributes:Ft,events:$t})=>[createBaseVNode("input",mergeProps({class:["vs__search",[Ke.inputClass]]},Ft,{required:De.inputRequired,dir:"auto"},toHandlers($t,!0)),null,16,_hoisted_2$2)]),"open-indicator":withCtx(({attributes:Ft})=>[createVNode(vt,mergeProps(Ft,{"fill-color":"var(--vs-controls-color)",style:{cursor:Ke.disabled?null:"pointer"},size:26}),null,16,["style"])]),option:withCtx(Ft=>[renderSlot(Me.$slots,"option",normalizeProps(guardReactiveProps(Ft)),()=>[createVNode(Je,{name:String(Ft[De.localLabel]),search:We.search},null,8,["name","search"])])]),"selected-option":withCtx(Ft=>[renderSlot(Me.$slots,"selected-option",{vBind:Ft},()=>[createVNode(Je,{name:String(Ft[De.localLabel]),search:We.search},null,8,["name","search"])])]),spinner:withCtx(Ft=>[Ft.loading?(openBlock(),createBlock(Ct,{key:0})):createCommentVNode("",!0)]),"no-options":withCtx(()=>[createTextVNode(toDisplayString(De.t("No results")),1)]),_:2},[!Ke.labelOutside&&Ke.inputLabel?{name:"header",fn:withCtx(()=>[createBaseVNode("label",{for:Ke.inputId,class:"select__label"},toDisplayString(Ke.inputLabel),9,_hoisted_1$2)]),key:"0"}:void 0,renderList(Me.$slots,(Ft,$t)=>({name:$t,fn:withCtx(Rt=>[renderSlot(Me.$slots,$t,normalizeProps(guardReactiveProps(Rt)))])}))]),1040,["class"])}const NcSelect=_export_sfc(_sfc_main$2,[["render",_sfc_render$1]]);register(t27),register(t6),register(),register(),register(t33),t("More items …");const millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3,constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(Me,xe){return typeof Me=="function"?Me(xe):Me&&typeof Me=="object"&&constructFromSymbol in Me?Me[constructFromSymbol](xe):Me instanceof Date?new Me.constructor(xe):new Date(xe)}function toDate(Me,xe){return constructFrom(xe||Me,Me)}function addDays(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return isNaN(xe)?constructFrom(Ke?.in||Me,NaN):(xe&&ze.setDate(ze.getDate()+xe),ze)}function addMonths(Me,xe,Ke){const ze=toDate(Me,Ke?.in);if(isNaN(xe))return constructFrom(Me,NaN);if(!xe)return ze;const We=ze.getDate(),De=constructFrom(Me,ze.getTime());De.setMonth(ze.getMonth()+xe+1,0);const vt=De.getDate();return We>=vt?De:(ze.setFullYear(De.getFullYear(),De.getMonth(),We),ze)}function add(Me,xe,Ke){const{years:ze=0,months:We=0,weeks:De=0,days:vt=0,hours:Je=0,minutes:Ct=0,seconds:yt=0}=xe,Ft=toDate(Me,Ke?.in),$t=We||ze?addMonths(Ft,We+ze*12):Ft,Rt=vt||De?addDays($t,vt+De*7):$t,qt=Ct+Je*60,Pt=(yt+qt*60)*1e3;return constructFrom(Me,+Rt+Pt)}function addMilliseconds(Me,xe,Ke){return constructFrom(Me,+toDate(Me)+xe)}function addHours(Me,xe,Ke){return addMilliseconds(Me,xe*millisecondsInHour)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(Me,xe){const Ke=getDefaultOptions$1(),ze=xe?.weekStartsOn??xe?.locale?.options?.weekStartsOn??Ke.weekStartsOn??Ke.locale?.options?.weekStartsOn??0,We=toDate(Me,xe?.in),De=We.getDay(),vt=(De=De.getTime()?ze+1:Ke.getTime()>=Je.getTime()?ze:ze-1}function getTimezoneOffsetInMilliseconds(Me){const xe=toDate(Me),Ke=new Date(Date.UTC(xe.getFullYear(),xe.getMonth(),xe.getDate(),xe.getHours(),xe.getMinutes(),xe.getSeconds(),xe.getMilliseconds()));return Ke.setUTCFullYear(xe.getFullYear()),+Me-+Ke}function normalizeDates(Me,...xe){const Ke=constructFrom.bind(null,xe.find(ze=>typeof ze=="object"));return xe.map(Ke)}function startOfDay(Me,xe){const Ke=toDate(Me,xe?.in);return Ke.setHours(0,0,0,0),Ke}function differenceInCalendarDays(Me,xe,Ke){const[ze,We]=normalizeDates(Ke?.in,Me,xe),De=startOfDay(ze),vt=startOfDay(We),Je=+De-getTimezoneOffsetInMilliseconds(De),Ct=+vt-getTimezoneOffsetInMilliseconds(vt);return Math.round((Je-Ct)/millisecondsInDay)}function startOfISOWeekYear(Me,xe){const Ke=getISOWeekYear(Me,xe),ze=constructFrom(Me,0);return ze.setFullYear(Ke,0,4),ze.setHours(0,0,0,0),startOfISOWeek(ze)}function addQuarters(Me,xe,Ke){return addMonths(Me,xe*3,Ke)}function addYears(Me,xe,Ke){return addMonths(Me,xe*12,Ke)}function compareAsc(Me,xe){const Ke=+toDate(Me)-+toDate(xe);return Ke<0?-1:Ke>0?1:Ke}function isDate(Me){return Me instanceof Date||typeof Me=="object"&&Object.prototype.toString.call(Me)==="[object Date]"}function isValid(Me){return!(!isDate(Me)&&typeof Me!="number"||isNaN(+toDate(Me)))}function getQuarter(Me,xe){const Ke=toDate(Me,xe?.in);return Math.trunc(Ke.getMonth()/3)+1}function differenceInCalendarYears(Me,xe,Ke){const[ze,We]=normalizeDates(Ke?.in,Me,xe);return ze.getFullYear()-We.getFullYear()}function differenceInYears(Me,xe,Ke){const[ze,We]=normalizeDates(Ke?.in,Me,xe),De=compareAsc(ze,We),vt=Math.abs(differenceInCalendarYears(ze,We));ze.setFullYear(1584),We.setFullYear(1584);const Je=compareAsc(ze,We)===-De,Ct=De*(vt-+Je);return Ct===0?0:Ct}function normalizeInterval(Me,xe){const[Ke,ze]=normalizeDates(Me,xe.start,xe.end);return{start:Ke,end:ze}}function eachDayOfInterval(Me,xe){const{start:Ke,end:ze}=normalizeInterval(xe?.in,Me);let We=+Ke>+ze;const De=We?+Ke:+ze,vt=We?ze:Ke;vt.setHours(0,0,0,0);let Je=1;const Ct=[];for(;+vt<=De;)Ct.push(constructFrom(Ke,vt)),vt.setDate(vt.getDate()+Je),vt.setHours(0,0,0,0);return We?Ct.reverse():Ct}function startOfQuarter(Me,xe){const Ke=toDate(Me,xe?.in),ze=Ke.getMonth(),We=ze-ze%3;return Ke.setMonth(We,1),Ke.setHours(0,0,0,0),Ke}function eachQuarterOfInterval(Me,xe){const{start:Ke,end:ze}=normalizeInterval(xe?.in,Me);let We=+Ke>+ze;const De=We?+startOfQuarter(Ke):+startOfQuarter(ze);let vt=startOfQuarter(We?ze:Ke),Je=1;const Ct=[];for(;+vt<=De;)Ct.push(constructFrom(Ke,vt)),vt=addQuarters(vt,Je);return We?Ct.reverse():Ct}function startOfMonth(Me,xe){const Ke=toDate(Me,xe?.in);return Ke.setDate(1),Ke.setHours(0,0,0,0),Ke}function endOfYear(Me,xe){const Ke=toDate(Me,xe?.in),ze=Ke.getFullYear();return Ke.setFullYear(ze+1,0,0),Ke.setHours(23,59,59,999),Ke}function startOfYear(Me,xe){const Ke=toDate(Me,xe?.in);return Ke.setFullYear(Ke.getFullYear(),0,1),Ke.setHours(0,0,0,0),Ke}function endOfWeek(Me,xe){const Ke=getDefaultOptions$1(),ze=xe?.weekStartsOn??xe?.locale?.options?.weekStartsOn??Ke.weekStartsOn??Ke.locale?.options?.weekStartsOn??0,We=toDate(Me,xe?.in),De=We.getDay(),vt=(De{let ze;const We=formatDistanceLocale[Me];return typeof We=="string"?ze=We:xe===1?ze=We.one:ze=We.other.replace("{{count}}",xe.toString()),Ke?.addSuffix?Ke.comparison&&Ke.comparison>0?"in "+ze:ze+" ago":ze};function buildFormatLongFn(Me){return(xe={})=>{const Ke=xe.width?String(xe.width):Me.defaultWidth;return Me.formats[Ke]||Me.formats[Me.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(Me,xe,Ke,ze)=>formatRelativeLocale[Me];function buildLocalizeFn(Me){return(xe,Ke)=>{const ze=Ke?.context?String(Ke.context):"standalone";let We;if(ze==="formatting"&&Me.formattingValues){const vt=Me.defaultFormattingWidth||Me.defaultWidth,Je=Ke?.width?String(Ke.width):vt;We=Me.formattingValues[Je]||Me.formattingValues[vt]}else{const vt=Me.defaultWidth,Je=Ke?.width?String(Ke.width):Me.defaultWidth;We=Me.values[Je]||Me.values[vt]}const De=Me.argumentCallback?Me.argumentCallback(xe):xe;return We[De]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(Me,xe)=>{const Ke=Number(Me),ze=Ke%100;if(ze>20||ze<10)switch(ze%10){case 1:return Ke+"st";case 2:return Ke+"nd";case 3:return Ke+"rd"}return Ke+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:Me=>Me-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(Me){return(xe,Ke={})=>{const ze=Ke.width,We=ze&&Me.matchPatterns[ze]||Me.matchPatterns[Me.defaultMatchWidth],De=xe.match(We);if(!De)return null;const vt=De[0],Je=ze&&Me.parsePatterns[ze]||Me.parsePatterns[Me.defaultParseWidth],Ct=Array.isArray(Je)?findIndex(Je,$t=>$t.test(vt)):findKey(Je,$t=>$t.test(vt));let yt;yt=Me.valueCallback?Me.valueCallback(Ct):Ct,yt=Ke.valueCallback?Ke.valueCallback(yt):yt;const Ft=xe.slice(vt.length);return{value:yt,rest:Ft}}}function findKey(Me,xe){for(const Ke in Me)if(Object.prototype.hasOwnProperty.call(Me,Ke)&&xe(Me[Ke]))return Ke}function findIndex(Me,xe){for(let Ke=0;Ke{const ze=xe.match(Me.matchPattern);if(!ze)return null;const We=ze[0],De=xe.match(Me.parsePattern);if(!De)return null;let vt=Me.valueCallback?Me.valueCallback(De[0]):De[0];vt=Ke.valueCallback?Ke.valueCallback(vt):vt;const Je=xe.slice(We.length);return{value:vt,rest:Je}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:Me=>parseInt(Me,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:Me=>Me+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(Me,xe){const Ke=toDate(Me,xe?.in);return differenceInCalendarDays(Ke,startOfYear(Ke))+1}function getISOWeek(Me,xe){const Ke=toDate(Me,xe?.in),ze=+startOfISOWeek(Ke)-+startOfISOWeekYear(Ke);return Math.round(ze/millisecondsInWeek)+1}function getWeekYear(Me,xe){const Ke=toDate(Me,xe?.in),ze=Ke.getFullYear(),We=getDefaultOptions$1(),De=xe?.firstWeekContainsDate??xe?.locale?.options?.firstWeekContainsDate??We.firstWeekContainsDate??We.locale?.options?.firstWeekContainsDate??1,vt=constructFrom(xe?.in||Me,0);vt.setFullYear(ze+1,0,De),vt.setHours(0,0,0,0);const Je=startOfWeek(vt,xe),Ct=constructFrom(xe?.in||Me,0);Ct.setFullYear(ze,0,De),Ct.setHours(0,0,0,0);const yt=startOfWeek(Ct,xe);return+Ke>=+Je?ze+1:+Ke>=+yt?ze:ze-1}function startOfWeekYear(Me,xe){const Ke=getDefaultOptions$1(),ze=xe?.firstWeekContainsDate??xe?.locale?.options?.firstWeekContainsDate??Ke.firstWeekContainsDate??Ke.locale?.options?.firstWeekContainsDate??1,We=getWeekYear(Me,xe),De=constructFrom(xe?.in||Me,0);return De.setFullYear(We,0,ze),De.setHours(0,0,0,0),startOfWeek(De,xe)}function getWeek(Me,xe){const Ke=toDate(Me,xe?.in),ze=+startOfWeek(Ke,xe)-+startOfWeekYear(Ke,xe);return Math.round(ze/millisecondsInWeek)+1}function addLeadingZeros(Me,xe){const Ke=Me<0?"-":"",ze=Math.abs(Me).toString().padStart(xe,"0");return Ke+ze}const lightFormatters={y(Me,xe){const Ke=Me.getFullYear(),ze=Ke>0?Ke:1-Ke;return addLeadingZeros(xe==="yy"?ze%100:ze,xe.length)},M(Me,xe){const Ke=Me.getMonth();return xe==="M"?String(Ke+1):addLeadingZeros(Ke+1,2)},d(Me,xe){return addLeadingZeros(Me.getDate(),xe.length)},a(Me,xe){const Ke=Me.getHours()/12>=1?"pm":"am";switch(xe){case"a":case"aa":return Ke.toUpperCase();case"aaa":return Ke;case"aaaaa":return Ke[0];case"aaaa":default:return Ke==="am"?"a.m.":"p.m."}},h(Me,xe){return addLeadingZeros(Me.getHours()%12||12,xe.length)},H(Me,xe){return addLeadingZeros(Me.getHours(),xe.length)},m(Me,xe){return addLeadingZeros(Me.getMinutes(),xe.length)},s(Me,xe){return addLeadingZeros(Me.getSeconds(),xe.length)},S(Me,xe){const Ke=xe.length,ze=Me.getMilliseconds(),We=Math.trunc(ze*Math.pow(10,Ke-3));return addLeadingZeros(We,xe.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(Me,xe,Ke){const ze=Me.getFullYear()>0?1:0;switch(xe){case"G":case"GG":case"GGG":return Ke.era(ze,{width:"abbreviated"});case"GGGGG":return Ke.era(ze,{width:"narrow"});case"GGGG":default:return Ke.era(ze,{width:"wide"})}},y:function(Me,xe,Ke){if(xe==="yo"){const ze=Me.getFullYear(),We=ze>0?ze:1-ze;return Ke.ordinalNumber(We,{unit:"year"})}return lightFormatters.y(Me,xe)},Y:function(Me,xe,Ke,ze){const We=getWeekYear(Me,ze),De=We>0?We:1-We;if(xe==="YY"){const vt=De%100;return addLeadingZeros(vt,2)}return xe==="Yo"?Ke.ordinalNumber(De,{unit:"year"}):addLeadingZeros(De,xe.length)},R:function(Me,xe){const Ke=getISOWeekYear(Me);return addLeadingZeros(Ke,xe.length)},u:function(Me,xe){const Ke=Me.getFullYear();return addLeadingZeros(Ke,xe.length)},Q:function(Me,xe,Ke){const ze=Math.ceil((Me.getMonth()+1)/3);switch(xe){case"Q":return String(ze);case"QQ":return addLeadingZeros(ze,2);case"Qo":return Ke.ordinalNumber(ze,{unit:"quarter"});case"QQQ":return Ke.quarter(ze,{width:"abbreviated",context:"formatting"});case"QQQQQ":return Ke.quarter(ze,{width:"narrow",context:"formatting"});case"QQQQ":default:return Ke.quarter(ze,{width:"wide",context:"formatting"})}},q:function(Me,xe,Ke){const ze=Math.ceil((Me.getMonth()+1)/3);switch(xe){case"q":return String(ze);case"qq":return addLeadingZeros(ze,2);case"qo":return Ke.ordinalNumber(ze,{unit:"quarter"});case"qqq":return Ke.quarter(ze,{width:"abbreviated",context:"standalone"});case"qqqqq":return Ke.quarter(ze,{width:"narrow",context:"standalone"});case"qqqq":default:return Ke.quarter(ze,{width:"wide",context:"standalone"})}},M:function(Me,xe,Ke){const ze=Me.getMonth();switch(xe){case"M":case"MM":return lightFormatters.M(Me,xe);case"Mo":return Ke.ordinalNumber(ze+1,{unit:"month"});case"MMM":return Ke.month(ze,{width:"abbreviated",context:"formatting"});case"MMMMM":return Ke.month(ze,{width:"narrow",context:"formatting"});case"MMMM":default:return Ke.month(ze,{width:"wide",context:"formatting"})}},L:function(Me,xe,Ke){const ze=Me.getMonth();switch(xe){case"L":return String(ze+1);case"LL":return addLeadingZeros(ze+1,2);case"Lo":return Ke.ordinalNumber(ze+1,{unit:"month"});case"LLL":return Ke.month(ze,{width:"abbreviated",context:"standalone"});case"LLLLL":return Ke.month(ze,{width:"narrow",context:"standalone"});case"LLLL":default:return Ke.month(ze,{width:"wide",context:"standalone"})}},w:function(Me,xe,Ke,ze){const We=getWeek(Me,ze);return xe==="wo"?Ke.ordinalNumber(We,{unit:"week"}):addLeadingZeros(We,xe.length)},I:function(Me,xe,Ke){const ze=getISOWeek(Me);return xe==="Io"?Ke.ordinalNumber(ze,{unit:"week"}):addLeadingZeros(ze,xe.length)},d:function(Me,xe,Ke){return xe==="do"?Ke.ordinalNumber(Me.getDate(),{unit:"date"}):lightFormatters.d(Me,xe)},D:function(Me,xe,Ke){const ze=getDayOfYear(Me);return xe==="Do"?Ke.ordinalNumber(ze,{unit:"dayOfYear"}):addLeadingZeros(ze,xe.length)},E:function(Me,xe,Ke){const ze=Me.getDay();switch(xe){case"E":case"EE":case"EEE":return Ke.day(ze,{width:"abbreviated",context:"formatting"});case"EEEEE":return Ke.day(ze,{width:"narrow",context:"formatting"});case"EEEEEE":return Ke.day(ze,{width:"short",context:"formatting"});case"EEEE":default:return Ke.day(ze,{width:"wide",context:"formatting"})}},e:function(Me,xe,Ke,ze){const We=Me.getDay(),De=(We-ze.weekStartsOn+8)%7||7;switch(xe){case"e":return String(De);case"ee":return addLeadingZeros(De,2);case"eo":return Ke.ordinalNumber(De,{unit:"day"});case"eee":return Ke.day(We,{width:"abbreviated",context:"formatting"});case"eeeee":return Ke.day(We,{width:"narrow",context:"formatting"});case"eeeeee":return Ke.day(We,{width:"short",context:"formatting"});case"eeee":default:return Ke.day(We,{width:"wide",context:"formatting"})}},c:function(Me,xe,Ke,ze){const We=Me.getDay(),De=(We-ze.weekStartsOn+8)%7||7;switch(xe){case"c":return String(De);case"cc":return addLeadingZeros(De,xe.length);case"co":return Ke.ordinalNumber(De,{unit:"day"});case"ccc":return Ke.day(We,{width:"abbreviated",context:"standalone"});case"ccccc":return Ke.day(We,{width:"narrow",context:"standalone"});case"cccccc":return Ke.day(We,{width:"short",context:"standalone"});case"cccc":default:return Ke.day(We,{width:"wide",context:"standalone"})}},i:function(Me,xe,Ke){const ze=Me.getDay(),We=ze===0?7:ze;switch(xe){case"i":return String(We);case"ii":return addLeadingZeros(We,xe.length);case"io":return Ke.ordinalNumber(We,{unit:"day"});case"iii":return Ke.day(ze,{width:"abbreviated",context:"formatting"});case"iiiii":return Ke.day(ze,{width:"narrow",context:"formatting"});case"iiiiii":return Ke.day(ze,{width:"short",context:"formatting"});case"iiii":default:return Ke.day(ze,{width:"wide",context:"formatting"})}},a:function(Me,xe,Ke){const ze=Me.getHours()/12>=1?"pm":"am";switch(xe){case"a":case"aa":return Ke.dayPeriod(ze,{width:"abbreviated",context:"formatting"});case"aaa":return Ke.dayPeriod(ze,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return Ke.dayPeriod(ze,{width:"narrow",context:"formatting"});case"aaaa":default:return Ke.dayPeriod(ze,{width:"wide",context:"formatting"})}},b:function(Me,xe,Ke){const ze=Me.getHours();let We;switch(ze===12?We=dayPeriodEnum.noon:ze===0?We=dayPeriodEnum.midnight:We=ze/12>=1?"pm":"am",xe){case"b":case"bb":return Ke.dayPeriod(We,{width:"abbreviated",context:"formatting"});case"bbb":return Ke.dayPeriod(We,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return Ke.dayPeriod(We,{width:"narrow",context:"formatting"});case"bbbb":default:return Ke.dayPeriod(We,{width:"wide",context:"formatting"})}},B:function(Me,xe,Ke){const ze=Me.getHours();let We;switch(ze>=17?We=dayPeriodEnum.evening:ze>=12?We=dayPeriodEnum.afternoon:ze>=4?We=dayPeriodEnum.morning:We=dayPeriodEnum.night,xe){case"B":case"BB":case"BBB":return Ke.dayPeriod(We,{width:"abbreviated",context:"formatting"});case"BBBBB":return Ke.dayPeriod(We,{width:"narrow",context:"formatting"});case"BBBB":default:return Ke.dayPeriod(We,{width:"wide",context:"formatting"})}},h:function(Me,xe,Ke){if(xe==="ho"){let ze=Me.getHours()%12;return ze===0&&(ze=12),Ke.ordinalNumber(ze,{unit:"hour"})}return lightFormatters.h(Me,xe)},H:function(Me,xe,Ke){return xe==="Ho"?Ke.ordinalNumber(Me.getHours(),{unit:"hour"}):lightFormatters.H(Me,xe)},K:function(Me,xe,Ke){const ze=Me.getHours()%12;return xe==="Ko"?Ke.ordinalNumber(ze,{unit:"hour"}):addLeadingZeros(ze,xe.length)},k:function(Me,xe,Ke){let ze=Me.getHours();return ze===0&&(ze=24),xe==="ko"?Ke.ordinalNumber(ze,{unit:"hour"}):addLeadingZeros(ze,xe.length)},m:function(Me,xe,Ke){return xe==="mo"?Ke.ordinalNumber(Me.getMinutes(),{unit:"minute"}):lightFormatters.m(Me,xe)},s:function(Me,xe,Ke){return xe==="so"?Ke.ordinalNumber(Me.getSeconds(),{unit:"second"}):lightFormatters.s(Me,xe)},S:function(Me,xe){return lightFormatters.S(Me,xe)},X:function(Me,xe,Ke){const ze=Me.getTimezoneOffset();if(ze===0)return"Z";switch(xe){case"X":return formatTimezoneWithOptionalMinutes(ze);case"XXXX":case"XX":return formatTimezone(ze);case"XXXXX":case"XXX":default:return formatTimezone(ze,":")}},x:function(Me,xe,Ke){const ze=Me.getTimezoneOffset();switch(xe){case"x":return formatTimezoneWithOptionalMinutes(ze);case"xxxx":case"xx":return formatTimezone(ze);case"xxxxx":case"xxx":default:return formatTimezone(ze,":")}},O:function(Me,xe,Ke){const ze=Me.getTimezoneOffset();switch(xe){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(ze,":");case"OOOO":default:return"GMT"+formatTimezone(ze,":")}},z:function(Me,xe,Ke){const ze=Me.getTimezoneOffset();switch(xe){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(ze,":");case"zzzz":default:return"GMT"+formatTimezone(ze,":")}},t:function(Me,xe,Ke){const ze=Math.trunc(+Me/1e3);return addLeadingZeros(ze,xe.length)},T:function(Me,xe,Ke){return addLeadingZeros(+Me,xe.length)}};function formatTimezoneShort(Me,xe=""){const Ke=Me>0?"-":"+",ze=Math.abs(Me),We=Math.trunc(ze/60),De=ze%60;return De===0?Ke+String(We):Ke+String(We)+xe+addLeadingZeros(De,2)}function formatTimezoneWithOptionalMinutes(Me,xe){return Me%60===0?(Me>0?"-":"+")+addLeadingZeros(Math.abs(Me)/60,2):formatTimezone(Me,xe)}function formatTimezone(Me,xe=""){const Ke=Me>0?"-":"+",ze=Math.abs(Me),We=addLeadingZeros(Math.trunc(ze/60),2),De=addLeadingZeros(ze%60,2);return Ke+We+xe+De}const dateLongFormatter=(Me,xe)=>{switch(Me){case"P":return xe.date({width:"short"});case"PP":return xe.date({width:"medium"});case"PPP":return xe.date({width:"long"});case"PPPP":default:return xe.date({width:"full"})}},timeLongFormatter=(Me,xe)=>{switch(Me){case"p":return xe.time({width:"short"});case"pp":return xe.time({width:"medium"});case"ppp":return xe.time({width:"long"});case"pppp":default:return xe.time({width:"full"})}},dateTimeLongFormatter=(Me,xe)=>{const Ke=Me.match(/(P+)(p+)?/)||[],ze=Ke[1],We=Ke[2];if(!We)return dateLongFormatter(Me,xe);let De;switch(ze){case"P":De=xe.dateTime({width:"short"});break;case"PP":De=xe.dateTime({width:"medium"});break;case"PPP":De=xe.dateTime({width:"long"});break;case"PPPP":default:De=xe.dateTime({width:"full"});break}return De.replace("{{date}}",dateLongFormatter(ze,xe)).replace("{{time}}",timeLongFormatter(We,xe))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(Me){return dayOfYearTokenRE.test(Me)}function isProtectedWeekYearToken(Me){return weekYearTokenRE.test(Me)}function warnOrThrowProtectedError(Me,xe,Ke){const ze=message(Me,xe,Ke);if(console.warn(ze),throwTokens.includes(Me))throw new RangeError(ze)}function message(Me,xe,Ke){const ze=Me[0]==="Y"?"years":"days of the month";return`Use \`${Me.toLowerCase()}\` instead of \`${Me}\` (in \`${xe}\`) for formatting ${ze} to the input \`${Ke}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(Me,xe,Ke){const ze=getDefaultOptions$1(),We=Ke?.locale??ze.locale??enUS,De=Ke?.firstWeekContainsDate??Ke?.locale?.options?.firstWeekContainsDate??ze.firstWeekContainsDate??ze.locale?.options?.firstWeekContainsDate??1,vt=Ke?.weekStartsOn??Ke?.locale?.options?.weekStartsOn??ze.weekStartsOn??ze.locale?.options?.weekStartsOn??0,Je=toDate(Me,Ke?.in);if(!isValid(Je))throw new RangeError("Invalid time value");let Ct=xe.match(longFormattingTokensRegExp$1).map(Ft=>{const $t=Ft[0];if($t==="p"||$t==="P"){const Rt=longFormatters[$t];return Rt(Ft,We.formatLong)}return Ft}).join("").match(formattingTokensRegExp$1).map(Ft=>{if(Ft==="''")return{isToken:!1,value:"'"};const $t=Ft[0];if($t==="'")return{isToken:!1,value:cleanEscapedString$1(Ft)};if(formatters[$t])return{isToken:!0,value:Ft};if($t.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$t+"`");return{isToken:!1,value:Ft}});We.localize.preprocessor&&(Ct=We.localize.preprocessor(Je,Ct));const yt={firstWeekContainsDate:De,weekStartsOn:vt,locale:We};return Ct.map(Ft=>{if(!Ft.isToken)return Ft.value;const $t=Ft.value;(!Ke?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken($t)||!Ke?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken($t))&&warnOrThrowProtectedError($t,xe,String(Me));const Rt=formatters[$t[0]];return Rt(Je,$t,We.localize,yt)}).join("")}function cleanEscapedString$1(Me){const xe=Me.match(escapedStringRegExp$1);return xe?xe[1].replace(doubleQuoteRegExp$1,"'"):Me}function getDay(Me,xe){return toDate(Me,xe?.in).getDay()}function getDaysInMonth(Me,xe){const Ke=toDate(Me,xe?.in),ze=Ke.getFullYear(),We=Ke.getMonth(),De=constructFrom(Ke,0);return De.setFullYear(ze,We+1,0),De.setHours(0,0,0,0),De.getDate()}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function getHours(Me,xe){return toDate(Me,xe?.in).getHours()}function getISODay(Me,xe){const Ke=toDate(Me,xe?.in).getDay();return Ke===0?7:Ke}function getMinutes(Me,xe){return toDate(Me,xe?.in).getMinutes()}function getMonth(Me,xe){return toDate(Me,xe?.in).getMonth()}function getSeconds(Me){return toDate(Me).getSeconds()}function getYear(Me,xe){return toDate(Me,xe?.in).getFullYear()}function isAfter(Me,xe){return+toDate(Me)>+toDate(xe)}function isBefore(Me,xe){return+toDate(Me)<+toDate(xe)}function isEqual(Me,xe){return+toDate(Me)==+toDate(xe)}function transpose(Me,xe){const Ke=isConstructor(xe)?new xe(0):constructFrom(xe,0);return Ke.setFullYear(Me.getFullYear(),Me.getMonth(),Me.getDate()),Ke.setHours(Me.getHours(),Me.getMinutes(),Me.getSeconds(),Me.getMilliseconds()),Ke}function isConstructor(Me){return typeof Me=="function"&&Me.prototype?.constructor===Me}const TIMEZONE_UNIT_PRIORITY=10;class Setter{subPriority=0;validate(xe,Ke){return!0}}class ValueSetter extends Setter{constructor(xe,Ke,ze,We,De){super(),this.value=xe,this.validateValue=Ke,this.setValue=ze,this.priority=We,De&&(this.subPriority=De)}validate(xe,Ke){return this.validateValue(xe,this.value,Ke)}set(xe,Ke,ze){return this.setValue(xe,Ke,this.value,ze)}}class DateTimezoneSetter extends Setter{priority=TIMEZONE_UNIT_PRIORITY;subPriority=-1;constructor(xe,Ke){super(),this.context=xe||(ze=>constructFrom(Ke,ze))}set(xe,Ke){return Ke.timestampIsSet?xe:constructFrom(xe,transpose(xe,this.context))}}class Parser{run(xe,Ke,ze,We){const De=this.parse(xe,Ke,ze,We);return De?{setter:new ValueSetter(De.value,this.validate,this.set,this.priority,this.subPriority),rest:De.rest}:null}validate(xe,Ke,ze){return!0}}class EraParser extends Parser{priority=140;parse(xe,Ke,ze){switch(Ke){case"G":case"GG":case"GGG":return ze.era(xe,{width:"abbreviated"})||ze.era(xe,{width:"narrow"});case"GGGGG":return ze.era(xe,{width:"narrow"});case"GGGG":default:return ze.era(xe,{width:"wide"})||ze.era(xe,{width:"abbreviated"})||ze.era(xe,{width:"narrow"})}}set(xe,Ke,ze){return Ke.era=ze,xe.setFullYear(ze,0,1),xe.setHours(0,0,0,0),xe}incompatibleTokens=["R","u","t","T"]}const numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(Me,xe){return Me&&{value:xe(Me.value),rest:Me.rest}}function parseNumericPattern(Me,xe){const Ke=xe.match(Me);return Ke?{value:parseInt(Ke[0],10),rest:xe.slice(Ke[0].length)}:null}function parseTimezonePattern(Me,xe){const Ke=xe.match(Me);if(!Ke)return null;if(Ke[0]==="Z")return{value:0,rest:xe.slice(1)};const ze=Ke[1]==="+"?1:-1,We=Ke[2]?parseInt(Ke[2],10):0,De=Ke[3]?parseInt(Ke[3],10):0,vt=Ke[5]?parseInt(Ke[5],10):0;return{value:ze*(We*millisecondsInHour+De*millisecondsInMinute+vt*millisecondsInSecond),rest:xe.slice(Ke[0].length)}}function parseAnyDigitsSigned(Me){return parseNumericPattern(numericPatterns.anyDigitsSigned,Me)}function parseNDigits(Me,xe){switch(Me){case 1:return parseNumericPattern(numericPatterns.singleDigit,xe);case 2:return parseNumericPattern(numericPatterns.twoDigits,xe);case 3:return parseNumericPattern(numericPatterns.threeDigits,xe);case 4:return parseNumericPattern(numericPatterns.fourDigits,xe);default:return parseNumericPattern(new RegExp("^\\d{1,"+Me+"}"),xe)}}function parseNDigitsSigned(Me,xe){switch(Me){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,xe);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,xe);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,xe);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,xe);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+Me+"}"),xe)}}function dayPeriodEnumToHours(Me){switch(Me){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(Me,xe){const Ke=xe>0,ze=Ke?xe:1-xe;let We;if(ze<=50)We=Me||100;else{const De=ze+50,vt=Math.trunc(De/100)*100,Je=Me>=De%100;We=Me+vt-(Je?100:0)}return Ke?We:1-We}function isLeapYearIndex(Me){return Me%400===0||Me%4===0&&Me%100!==0}class YearParser extends Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(xe,Ke,ze){const We=De=>({year:De,isTwoDigitYear:Ke==="yy"});switch(Ke){case"y":return mapValue(parseNDigits(4,xe),We);case"yo":return mapValue(ze.ordinalNumber(xe,{unit:"year"}),We);default:return mapValue(parseNDigits(Ke.length,xe),We)}}validate(xe,Ke){return Ke.isTwoDigitYear||Ke.year>0}set(xe,Ke,ze){const We=xe.getFullYear();if(ze.isTwoDigitYear){const vt=normalizeTwoDigitYear(ze.year,We);return xe.setFullYear(vt,0,1),xe.setHours(0,0,0,0),xe}const De=!("era"in Ke)||Ke.era===1?ze.year:1-ze.year;return xe.setFullYear(De,0,1),xe.setHours(0,0,0,0),xe}}class LocalWeekYearParser extends Parser{priority=130;parse(xe,Ke,ze){const We=De=>({year:De,isTwoDigitYear:Ke==="YY"});switch(Ke){case"Y":return mapValue(parseNDigits(4,xe),We);case"Yo":return mapValue(ze.ordinalNumber(xe,{unit:"year"}),We);default:return mapValue(parseNDigits(Ke.length,xe),We)}}validate(xe,Ke){return Ke.isTwoDigitYear||Ke.year>0}set(xe,Ke,ze,We){const De=getWeekYear(xe,We);if(ze.isTwoDigitYear){const Je=normalizeTwoDigitYear(ze.year,De);return xe.setFullYear(Je,0,We.firstWeekContainsDate),xe.setHours(0,0,0,0),startOfWeek(xe,We)}const vt=!("era"in Ke)||Ke.era===1?ze.year:1-ze.year;return xe.setFullYear(vt,0,We.firstWeekContainsDate),xe.setHours(0,0,0,0),startOfWeek(xe,We)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class ISOWeekYearParser extends Parser{priority=130;parse(xe,Ke){return parseNDigitsSigned(Ke==="R"?4:Ke.length,xe)}set(xe,Ke,ze){const We=constructFrom(xe,0);return We.setFullYear(ze,0,4),We.setHours(0,0,0,0),startOfISOWeek(We)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ExtendedYearParser extends Parser{priority=130;parse(xe,Ke){return parseNDigitsSigned(Ke==="u"?4:Ke.length,xe)}set(xe,Ke,ze){return xe.setFullYear(ze,0,1),xe.setHours(0,0,0,0),xe}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class QuarterParser extends Parser{priority=120;parse(xe,Ke,ze){switch(Ke){case"Q":case"QQ":return parseNDigits(Ke.length,xe);case"Qo":return ze.ordinalNumber(xe,{unit:"quarter"});case"QQQ":return ze.quarter(xe,{width:"abbreviated",context:"formatting"})||ze.quarter(xe,{width:"narrow",context:"formatting"});case"QQQQQ":return ze.quarter(xe,{width:"narrow",context:"formatting"});case"QQQQ":default:return ze.quarter(xe,{width:"wide",context:"formatting"})||ze.quarter(xe,{width:"abbreviated",context:"formatting"})||ze.quarter(xe,{width:"narrow",context:"formatting"})}}validate(xe,Ke){return Ke>=1&&Ke<=4}set(xe,Ke,ze){return xe.setMonth((ze-1)*3,1),xe.setHours(0,0,0,0),xe}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class StandAloneQuarterParser extends Parser{priority=120;parse(xe,Ke,ze){switch(Ke){case"q":case"qq":return parseNDigits(Ke.length,xe);case"qo":return ze.ordinalNumber(xe,{unit:"quarter"});case"qqq":return ze.quarter(xe,{width:"abbreviated",context:"standalone"})||ze.quarter(xe,{width:"narrow",context:"standalone"});case"qqqqq":return ze.quarter(xe,{width:"narrow",context:"standalone"});case"qqqq":default:return ze.quarter(xe,{width:"wide",context:"standalone"})||ze.quarter(xe,{width:"abbreviated",context:"standalone"})||ze.quarter(xe,{width:"narrow",context:"standalone"})}}validate(xe,Ke){return Ke>=1&&Ke<=4}set(xe,Ke,ze){return xe.setMonth((ze-1)*3,1),xe.setHours(0,0,0,0),xe}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class MonthParser extends Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(xe,Ke,ze){const We=De=>De-1;switch(Ke){case"M":return mapValue(parseNumericPattern(numericPatterns.month,xe),We);case"MM":return mapValue(parseNDigits(2,xe),We);case"Mo":return mapValue(ze.ordinalNumber(xe,{unit:"month"}),We);case"MMM":return ze.month(xe,{width:"abbreviated",context:"formatting"})||ze.month(xe,{width:"narrow",context:"formatting"});case"MMMMM":return ze.month(xe,{width:"narrow",context:"formatting"});case"MMMM":default:return ze.month(xe,{width:"wide",context:"formatting"})||ze.month(xe,{width:"abbreviated",context:"formatting"})||ze.month(xe,{width:"narrow",context:"formatting"})}}validate(xe,Ke){return Ke>=0&&Ke<=11}set(xe,Ke,ze){return xe.setMonth(ze,1),xe.setHours(0,0,0,0),xe}}class StandAloneMonthParser extends Parser{priority=110;parse(xe,Ke,ze){const We=De=>De-1;switch(Ke){case"L":return mapValue(parseNumericPattern(numericPatterns.month,xe),We);case"LL":return mapValue(parseNDigits(2,xe),We);case"Lo":return mapValue(ze.ordinalNumber(xe,{unit:"month"}),We);case"LLL":return ze.month(xe,{width:"abbreviated",context:"standalone"})||ze.month(xe,{width:"narrow",context:"standalone"});case"LLLLL":return ze.month(xe,{width:"narrow",context:"standalone"});case"LLLL":default:return ze.month(xe,{width:"wide",context:"standalone"})||ze.month(xe,{width:"abbreviated",context:"standalone"})||ze.month(xe,{width:"narrow",context:"standalone"})}}validate(xe,Ke){return Ke>=0&&Ke<=11}set(xe,Ke,ze){return xe.setMonth(ze,1),xe.setHours(0,0,0,0),xe}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function setWeek(Me,xe,Ke){const ze=toDate(Me,Ke?.in),We=getWeek(ze,Ke)-xe;return ze.setDate(ze.getDate()-We*7),toDate(ze,Ke?.in)}class LocalWeekParser extends Parser{priority=100;parse(xe,Ke,ze){switch(Ke){case"w":return parseNumericPattern(numericPatterns.week,xe);case"wo":return ze.ordinalNumber(xe,{unit:"week"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=1&&Ke<=53}set(xe,Ke,ze,We){return startOfWeek(setWeek(xe,ze,We),We)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function setISOWeek(Me,xe,Ke){const ze=toDate(Me,Ke?.in),We=getISOWeek(ze,Ke)-xe;return ze.setDate(ze.getDate()-We*7),ze}class ISOWeekParser extends Parser{priority=100;parse(xe,Ke,ze){switch(Ke){case"I":return parseNumericPattern(numericPatterns.week,xe);case"Io":return ze.ordinalNumber(xe,{unit:"week"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=1&&Ke<=53}set(xe,Ke,ze){return startOfISOWeek(setISOWeek(xe,ze))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];class DateParser extends Parser{priority=90;subPriority=1;parse(xe,Ke,ze){switch(Ke){case"d":return parseNumericPattern(numericPatterns.date,xe);case"do":return ze.ordinalNumber(xe,{unit:"date"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){const ze=xe.getFullYear(),We=isLeapYearIndex(ze),De=xe.getMonth();return We?Ke>=1&&Ke<=DAYS_IN_MONTH_LEAP_YEAR[De]:Ke>=1&&Ke<=DAYS_IN_MONTH[De]}set(xe,Ke,ze){return xe.setDate(ze),xe.setHours(0,0,0,0),xe}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class DayOfYearParser extends Parser{priority=90;subpriority=1;parse(xe,Ke,ze){switch(Ke){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,xe);case"Do":return ze.ordinalNumber(xe,{unit:"date"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){const ze=xe.getFullYear();return isLeapYearIndex(ze)?Ke>=1&&Ke<=366:Ke>=1&&Ke<=365}set(xe,Ke,ze){return xe.setMonth(0,ze),xe.setHours(0,0,0,0),xe}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function setDay(Me,xe,Ke){const ze=getDefaultOptions$1(),We=Ke?.weekStartsOn??Ke?.locale?.options?.weekStartsOn??ze.weekStartsOn??ze.locale?.options?.weekStartsOn??0,De=toDate(Me,Ke?.in),vt=De.getDay(),Je=(xe%7+7)%7,Ct=7-We,yt=xe<0||xe>6?xe-(vt+Ct)%7:(Je+Ct)%7-(vt+Ct)%7;return addDays(De,yt,Ke)}class DayParser extends Parser{priority=90;parse(xe,Ke,ze){switch(Ke){case"E":case"EE":case"EEE":return ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"});case"EEEEE":return ze.day(xe,{width:"narrow",context:"formatting"});case"EEEEEE":return ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"});case"EEEE":default:return ze.day(xe,{width:"wide",context:"formatting"})||ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"})}}validate(xe,Ke){return Ke>=0&&Ke<=6}set(xe,Ke,ze,We){return xe=setDay(xe,ze,We),xe.setHours(0,0,0,0),xe}incompatibleTokens=["D","i","e","c","t","T"]}class LocalDayParser extends Parser{priority=90;parse(xe,Ke,ze,We){const De=vt=>{const Je=Math.floor((vt-1)/7)*7;return(vt+We.weekStartsOn+6)%7+Je};switch(Ke){case"e":case"ee":return mapValue(parseNDigits(Ke.length,xe),De);case"eo":return mapValue(ze.ordinalNumber(xe,{unit:"day"}),De);case"eee":return ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"});case"eeeee":return ze.day(xe,{width:"narrow",context:"formatting"});case"eeeeee":return ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"});case"eeee":default:return ze.day(xe,{width:"wide",context:"formatting"})||ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"})}}validate(xe,Ke){return Ke>=0&&Ke<=6}set(xe,Ke,ze,We){return xe=setDay(xe,ze,We),xe.setHours(0,0,0,0),xe}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class StandAloneLocalDayParser extends Parser{priority=90;parse(xe,Ke,ze,We){const De=vt=>{const Je=Math.floor((vt-1)/7)*7;return(vt+We.weekStartsOn+6)%7+Je};switch(Ke){case"c":case"cc":return mapValue(parseNDigits(Ke.length,xe),De);case"co":return mapValue(ze.ordinalNumber(xe,{unit:"day"}),De);case"ccc":return ze.day(xe,{width:"abbreviated",context:"standalone"})||ze.day(xe,{width:"short",context:"standalone"})||ze.day(xe,{width:"narrow",context:"standalone"});case"ccccc":return ze.day(xe,{width:"narrow",context:"standalone"});case"cccccc":return ze.day(xe,{width:"short",context:"standalone"})||ze.day(xe,{width:"narrow",context:"standalone"});case"cccc":default:return ze.day(xe,{width:"wide",context:"standalone"})||ze.day(xe,{width:"abbreviated",context:"standalone"})||ze.day(xe,{width:"short",context:"standalone"})||ze.day(xe,{width:"narrow",context:"standalone"})}}validate(xe,Ke){return Ke>=0&&Ke<=6}set(xe,Ke,ze,We){return xe=setDay(xe,ze,We),xe.setHours(0,0,0,0),xe}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function setISODay(Me,xe,Ke){const ze=toDate(Me,Ke?.in),We=getISODay(ze,Ke),De=xe-We;return addDays(ze,De,Ke)}class ISODayParser extends Parser{priority=90;parse(xe,Ke,ze){const We=De=>De===0?7:De;switch(Ke){case"i":case"ii":return parseNDigits(Ke.length,xe);case"io":return ze.ordinalNumber(xe,{unit:"day"});case"iii":return mapValue(ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"}),We);case"iiiii":return mapValue(ze.day(xe,{width:"narrow",context:"formatting"}),We);case"iiiiii":return mapValue(ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"}),We);case"iiii":default:return mapValue(ze.day(xe,{width:"wide",context:"formatting"})||ze.day(xe,{width:"abbreviated",context:"formatting"})||ze.day(xe,{width:"short",context:"formatting"})||ze.day(xe,{width:"narrow",context:"formatting"}),We)}}validate(xe,Ke){return Ke>=1&&Ke<=7}set(xe,Ke,ze){return xe=setISODay(xe,ze),xe.setHours(0,0,0,0),xe}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class AMPMParser extends Parser{priority=80;parse(xe,Ke,ze){switch(Ke){case"a":case"aa":case"aaa":return ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"aaaaa":return ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"aaaa":default:return ze.dayPeriod(xe,{width:"wide",context:"formatting"})||ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"})}}set(xe,Ke,ze){return xe.setHours(dayPeriodEnumToHours(ze),0,0,0),xe}incompatibleTokens=["b","B","H","k","t","T"]}class AMPMMidnightParser extends Parser{priority=80;parse(xe,Ke,ze){switch(Ke){case"b":case"bb":case"bbb":return ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"bbbbb":return ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"bbbb":default:return ze.dayPeriod(xe,{width:"wide",context:"formatting"})||ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"})}}set(xe,Ke,ze){return xe.setHours(dayPeriodEnumToHours(ze),0,0,0),xe}incompatibleTokens=["a","B","H","k","t","T"]}class DayPeriodParser extends Parser{priority=80;parse(xe,Ke,ze){switch(Ke){case"B":case"BB":case"BBB":return ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"BBBBB":return ze.dayPeriod(xe,{width:"narrow",context:"formatting"});case"BBBB":default:return ze.dayPeriod(xe,{width:"wide",context:"formatting"})||ze.dayPeriod(xe,{width:"abbreviated",context:"formatting"})||ze.dayPeriod(xe,{width:"narrow",context:"formatting"})}}set(xe,Ke,ze){return xe.setHours(dayPeriodEnumToHours(ze),0,0,0),xe}incompatibleTokens=["a","b","t","T"]}class Hour1to12Parser extends Parser{priority=70;parse(xe,Ke,ze){switch(Ke){case"h":return parseNumericPattern(numericPatterns.hour12h,xe);case"ho":return ze.ordinalNumber(xe,{unit:"hour"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=1&&Ke<=12}set(xe,Ke,ze){const We=xe.getHours()>=12;return We&&ze<12?xe.setHours(ze+12,0,0,0):!We&&ze===12?xe.setHours(0,0,0,0):xe.setHours(ze,0,0,0),xe}incompatibleTokens=["H","K","k","t","T"]}class Hour0to23Parser extends Parser{priority=70;parse(xe,Ke,ze){switch(Ke){case"H":return parseNumericPattern(numericPatterns.hour23h,xe);case"Ho":return ze.ordinalNumber(xe,{unit:"hour"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=0&&Ke<=23}set(xe,Ke,ze){return xe.setHours(ze,0,0,0),xe}incompatibleTokens=["a","b","h","K","k","t","T"]}class Hour0To11Parser extends Parser{priority=70;parse(xe,Ke,ze){switch(Ke){case"K":return parseNumericPattern(numericPatterns.hour11h,xe);case"Ko":return ze.ordinalNumber(xe,{unit:"hour"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=0&&Ke<=11}set(xe,Ke,ze){return xe.getHours()>=12&&ze<12?xe.setHours(ze+12,0,0,0):xe.setHours(ze,0,0,0),xe}incompatibleTokens=["h","H","k","t","T"]}class Hour1To24Parser extends Parser{priority=70;parse(xe,Ke,ze){switch(Ke){case"k":return parseNumericPattern(numericPatterns.hour24h,xe);case"ko":return ze.ordinalNumber(xe,{unit:"hour"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=1&&Ke<=24}set(xe,Ke,ze){const We=ze<=24?ze%24:ze;return xe.setHours(We,0,0,0),xe}incompatibleTokens=["a","b","h","H","K","t","T"]}class MinuteParser extends Parser{priority=60;parse(xe,Ke,ze){switch(Ke){case"m":return parseNumericPattern(numericPatterns.minute,xe);case"mo":return ze.ordinalNumber(xe,{unit:"minute"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=0&&Ke<=59}set(xe,Ke,ze){return xe.setMinutes(ze,0,0),xe}incompatibleTokens=["t","T"]}class SecondParser extends Parser{priority=50;parse(xe,Ke,ze){switch(Ke){case"s":return parseNumericPattern(numericPatterns.second,xe);case"so":return ze.ordinalNumber(xe,{unit:"second"});default:return parseNDigits(Ke.length,xe)}}validate(xe,Ke){return Ke>=0&&Ke<=59}set(xe,Ke,ze){return xe.setSeconds(ze,0),xe}incompatibleTokens=["t","T"]}class FractionOfSecondParser extends Parser{priority=30;parse(xe,Ke){const ze=We=>Math.trunc(We*Math.pow(10,-Ke.length+3));return mapValue(parseNDigits(Ke.length,xe),ze)}set(xe,Ke,ze){return xe.setMilliseconds(ze),xe}incompatibleTokens=["t","T"]}class ISOTimezoneWithZParser extends Parser{priority=10;parse(xe,Ke){switch(Ke){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,xe);case"XX":return parseTimezonePattern(timezonePatterns.basic,xe);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,xe);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,xe);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,xe)}}set(xe,Ke,ze){return Ke.timestampIsSet?xe:constructFrom(xe,xe.getTime()-getTimezoneOffsetInMilliseconds(xe)-ze)}incompatibleTokens=["t","T","x"]}class ISOTimezoneParser extends Parser{priority=10;parse(xe,Ke){switch(Ke){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,xe);case"xx":return parseTimezonePattern(timezonePatterns.basic,xe);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,xe);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,xe);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,xe)}}set(xe,Ke,ze){return Ke.timestampIsSet?xe:constructFrom(xe,xe.getTime()-getTimezoneOffsetInMilliseconds(xe)-ze)}incompatibleTokens=["t","T","X"]}class TimestampSecondsParser extends Parser{priority=40;parse(xe){return parseAnyDigitsSigned(xe)}set(xe,Ke,ze){return[constructFrom(xe,ze*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class TimestampMillisecondsParser extends Parser{priority=20;parse(xe){return parseAnyDigitsSigned(xe)}set(xe,Ke,ze){return[constructFrom(xe,ze),{timestampIsSet:!0}]}incompatibleTokens="*"}const parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(Me,xe,Ke,ze){const We=()=>constructFrom(ze?.in||Ke,NaN),De=getDefaultOptions(),vt=ze?.locale??De.locale??enUS,Je=ze?.firstWeekContainsDate??ze?.locale?.options?.firstWeekContainsDate??De.firstWeekContainsDate??De.locale?.options?.firstWeekContainsDate??1,Ct=ze?.weekStartsOn??ze?.locale?.options?.weekStartsOn??De.weekStartsOn??De.locale?.options?.weekStartsOn??0;if(!xe)return Me?We():toDate(Ke,ze?.in);const yt={firstWeekContainsDate:Je,weekStartsOn:Ct,locale:vt},Ft=[new DateTimezoneSetter(ze?.in,Ke)],$t=xe.match(longFormattingTokensRegExp).map(zt=>{const Gt=zt[0];if(Gt in longFormatters){const Ut=longFormatters[Gt];return Ut(zt,vt.formatLong)}return zt}).join("").match(formattingTokensRegExp),Rt=[];for(let zt of $t){!ze?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(zt)&&warnOrThrowProtectedError(zt,xe,Me),!ze?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(zt)&&warnOrThrowProtectedError(zt,xe,Me);const Gt=zt[0],Ut=parsers[Gt];if(Ut){const{incompatibleTokens:ii}=Ut;if(Array.isArray(ii)){const di=Rt.find(ci=>ii.includes(ci.token)||ci.token===Gt);if(di)throw new RangeError(`The format string mustn't contain \`${di.fullToken}\` and \`${zt}\` at the same time`)}else if(Ut.incompatibleTokens==="*"&&Rt.length>0)throw new RangeError(`The format string mustn't contain \`${zt}\` and any other token at the same time`);Rt.push({token:Gt,fullToken:zt});const ti=Ut.run(Me,zt,vt.match,yt);if(!ti)return We();Ft.push(ti.setter),Me=ti.rest}else{if(Gt.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Gt+"`");if(zt==="''"?zt="'":Gt==="'"&&(zt=cleanEscapedString(zt)),Me.indexOf(zt)===0)Me=Me.slice(zt.length);else return We()}}if(Me.length>0&¬WhitespaceRegExp.test(Me))return We();const qt=Ft.map(zt=>zt.priority).sort((zt,Gt)=>Gt-zt).filter((zt,Gt,Ut)=>Ut.indexOf(zt)===Gt).map(zt=>Ft.filter(Gt=>Gt.priority===zt).sort((Gt,Ut)=>Ut.subPriority-Gt.subPriority)).map(zt=>zt[0]);let Pt=toDate(Ke,ze?.in);if(isNaN(+Pt))return We();const Nt={};for(const zt of qt){if(!zt.validate(Pt,yt))return We();const Gt=zt.set(Pt,Nt,yt);Array.isArray(Gt)?(Pt=Gt[0],Object.assign(Nt,Gt[1])):Pt=Gt}return Pt}function cleanEscapedString(Me){return Me.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function isSameQuarter(Me,xe,Ke){const[ze,We]=normalizeDates(Ke?.in,Me,xe);return+startOfQuarter(ze)==+startOfQuarter(We)}function subDays(Me,xe,Ke){return addDays(Me,-xe,Ke)}function setMonth(Me,xe,Ke){const ze=toDate(Me,Ke?.in),We=ze.getFullYear(),De=ze.getDate(),vt=constructFrom(Me,0);vt.setFullYear(We,xe,15),vt.setHours(0,0,0,0);const Je=getDaysInMonth(vt);return ze.setMonth(xe,Math.min(De,Je)),ze}function set(Me,xe,Ke){let ze=toDate(Me,Ke?.in);return isNaN(+ze)?constructFrom(Me,NaN):(xe.year!=null&&ze.setFullYear(xe.year),xe.month!=null&&(ze=setMonth(ze,xe.month)),xe.date!=null&&ze.setDate(xe.date),xe.hours!=null&&ze.setHours(xe.hours),xe.minutes!=null&&ze.setMinutes(xe.minutes),xe.seconds!=null&&ze.setSeconds(xe.seconds),xe.milliseconds!=null&&ze.setMilliseconds(xe.milliseconds),ze)}function setHours(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return ze.setHours(xe),ze}function setMilliseconds(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return ze.setMilliseconds(xe),ze}function setMinutes(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return ze.setMinutes(xe),ze}function setSeconds(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return ze.setSeconds(xe),ze}function setYear(Me,xe,Ke){const ze=toDate(Me,Ke?.in);return isNaN(+ze)?constructFrom(Me,NaN):(ze.setFullYear(xe),ze)}function subMonths(Me,xe,Ke){return addMonths(Me,-xe,Ke)}function sub(Me,xe,Ke){const{years:ze=0,months:We=0,weeks:De=0,days:vt=0,hours:Je=0,minutes:Ct=0,seconds:yt=0}=xe,Ft=subMonths(Me,We+ze*12,Ke),$t=subDays(Ft,vt+De*7,Ke),Rt=Ct+Je*60,qt=(yt+Rt*60)*1e3;return constructFrom(Me,+$t-qt)}function subYears(Me,xe,Ke){return addYears(Me,-xe,Ke)}function jt(){const Me=useAttrs();return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img",...Me},[createBaseVNode("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),createBaseVNode("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),createBaseVNode("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),createBaseVNode("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}jt.compatConfig={MODE:3};function Sn(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),createBaseVNode("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Sn.compatConfig={MODE:3};function Ua(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Ua.compatConfig={MODE:3};function Va(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}Va.compatConfig={MODE:3};function ja(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),createBaseVNode("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}ja.compatConfig={MODE:3};function Ka(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Ka.compatConfig={MODE:3};function Ga(){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[createBaseVNode("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Ga.compatConfig={MODE:3};const Ze=(Me,xe)=>xe?new Date(Me.toLocaleString("en-US",{timeZone:xe})):new Date(Me),Qa=(Me,xe,Ke)=>La(Me,xe,Ke)||H(),wl=(Me,xe,Ke)=>{const ze=xe.dateInTz?Ze(new Date(Me),xe.dateInTz):H(Me);return Ke?Fe(ze,!0):ze},La=(Me,xe,Ke)=>{if(!Me)return null;const ze=Ke?Fe(H(Me),!0):H(Me);return xe?xe.exactMatch?wl(Me,xe,Ke):Ze(ze,xe.timezone):ze},Dl=Me=>{const xe=new Date(Me.getFullYear(),0,1).getTimezoneOffset();return Me.getTimezoneOffset(){if(!Me)return 0;const Ke=new Date,ze=new Date(Ke.toLocaleString("en-US",{timeZone:"UTC"})),We=new Date(Ke.toLocaleString("en-US",{timeZone:Me})),De=(Dl(xe??We)?We:xe??We).getTimezoneOffset()/60;return(+ze-+We)/(1e3*60*60)-De};var ot=(Me=>(Me.month="month",Me.year="year",Me))(ot||{}),st=(Me=>(Me.top="top",Me.bottom="bottom",Me))(st||{}),Ot=(Me=>(Me.header="header",Me.calendar="calendar",Me.timePicker="timePicker",Me))(Ot||{}),je=(Me=>(Me.month="month",Me.year="year",Me.calendar="calendar",Me.time="time",Me.minutes="minutes",Me.hours="hours",Me.seconds="seconds",Me))(je||{});const $l=["timestamp","date","iso"];var Qe=(Me=>(Me.up="up",Me.down="down",Me.left="left",Me.right="right",Me))(Qe||{}),Re=(Me=>(Me.arrowUp="ArrowUp",Me.arrowDown="ArrowDown",Me.arrowLeft="ArrowLeft",Me.arrowRight="ArrowRight",Me.enter="Enter",Me.space=" ",Me.esc="Escape",Me.tab="Tab",Me.home="Home",Me.end="End",Me.pageUp="PageUp",Me.pageDown="PageDown",Me))(Re||{}),Lt=(Me=>(Me.MONTH_AND_YEAR="MM-yyyy",Me.YEAR="yyyy",Me.DATE="dd-MM-yyyy",Me))(Lt||{});function un(Me){return xe=>{const Ke=new Intl.DateTimeFormat(Me,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${xe}T00:00:00+00:00`));return Me==="ar"?Ke.slice(2,5):Ke.slice(0,2)}}function Al(Me){return xe=>format(Ze(new Date(`2017-01-0${xe}T00:00:00+00:00`),"UTC"),"EEEEEE",{locale:Me})}const Tl=(Me,xe,Ke)=>{const ze=[1,2,3,4,5,6,7];let We;if(Me!==null)try{We=ze.map(Al(Me))}catch{We=ze.map(un(xe))}else We=ze.map(un(xe));const De=We.slice(0,Ke),vt=We.slice(Ke+1,We.length);return[We[Ke]].concat(...vt).concat(...De)},qa=(Me,xe,Ke)=>{const ze=[];for(let We=+Me[0];We<=+Me[1];We++)ze.push({value:+We,text:Ja(We,xe)});return Ke?ze.reverse():ze},Pn=(Me,xe,Ke)=>{const ze=[1,2,3,4,5,6,7,8,9,10,11,12].map(De=>{const vt=De<10?`0${De}`:De;return new Date(`2017-${vt}-01T00:00:00+00:00`)});if(Me!==null)try{const De=Ke==="long"?"LLLL":"LLL";return ze.map((vt,Je)=>{const Ct=format(Ze(vt,"UTC"),De,{locale:Me});return{text:Ct.charAt(0).toUpperCase()+Ct.substring(1),value:Je}})}catch{}const We=new Intl.DateTimeFormat(xe,{month:Ke,timeZone:"UTC"});return ze.map((De,vt)=>{const Je=We.format(De);return{text:Je.charAt(0).toUpperCase()+Je.substring(1),value:vt}})},Sl=Me=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][Me],Le=Me=>{const xe=unref(Me);return xe?.$el?xe?.$el:xe},Pl=Me=>({type:"dot",...Me??{}}),Rn=Me=>Array.isArray(Me)?!!Me[0]&&!!Me[1]:!1,Xa={prop:Me=>`"${Me}" prop must be enabled!`,dateArr:Me=>`You need to use array as "model-value" binding in order to support "${Me}"`},Ne=Me=>Me,dn=Me=>Me===0?Me:!Me||isNaN(+Me)?null:+Me,cn=Me=>Me===null,Cn=Me=>{if(Me)return[...Me.querySelectorAll("input, button, select, textarea, a[href]")][0]},Rl=Me=>{const xe=[],Ke=ze=>ze.filter(We=>We);for(let ze=0;ze{const ze=Ke!=null,We=xe!=null;if(!ze&&!We)return!1;const De=+Ke,vt=+xe;return ze&&We?+Me>De||+MeDe:We?+MeRl(Me).map(Ke=>Ke.map(ze=>{const{active:We,disabled:De,isBetween:vt,highlighted:Je}=xe(ze);return{...ze,active:We,disabled:De,className:{dp__overlay_cell_active:We,dp__overlay_cell:!We,dp__overlay_cell_disabled:De,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:De&&We,dp__cell_in_between:vt,"dp--highlighted":Je}}})),Dt=(Me,xe,Ke=!1)=>{Me&&xe.allowStopPropagation&&(Ke&&Me.stopImmediatePropagation(),Me.stopPropagation())},Cl=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function Ol(Me,xe){let Ke=[...document.querySelectorAll(Cl())];Ke=Ke.filter(We=>!Me.contains(We)||We.hasAttribute("data-datepicker-instance"));const ze=Ke.indexOf(Me);if(ze>=0&&(xe?ze-1>=0:ze+1<=Ke.length))return Ke[ze+(xe?-1:1)]}const Fa=(Me,xe)=>Me?.querySelector(`[data-dp-element="${xe}"]`),Ja=(Me,xe)=>new Intl.NumberFormat(xe,{useGrouping:!1,style:"decimal"}).format(Me),Za=(Me,xe)=>format(Me,xe??Lt.DATE),Ta=Me=>Array.isArray(Me),ca=(Me,xe,Ke)=>xe.get(Za(Me,Ke)),Bl=(Me,xe)=>Me?xe?xe instanceof Map?!!ca(Me,xe):xe(H(Me)):!1:!0,qe=(Me,xe,Ke=!1,ze)=>{if(Me.key===Re.enter||Me.key===Re.space)return Ke&&Me.preventDefault(),xe();if(ze)return ze(Me)},_l=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,On=(Me,xe)=>Me?Lt.MONTH_AND_YEAR:xe?Lt.YEAR:Lt.DATE,Bn=Me=>Me<10?`0${Me}`:Me,fn=(Me,xe,Ke,ze,We,De)=>{const vt=parse(Me,xe.slice(0,Me.length),new Date,{locale:De});return isValid(vt)&&isDate(vt)?ze||We?vt:set(vt,{hours:+Ke.hours,minutes:+Ke?.minutes,seconds:+Ke?.seconds,milliseconds:0}):null},Yl=(Me,xe,Ke,ze,We,De)=>{const vt=Array.isArray(Ke)?Ke[0]:Ke;if(typeof xe=="string")return fn(Me,xe,vt,ze,We,De);if(Array.isArray(xe)){let Je=null;for(const Ct of xe)if(Je=fn(Me,Ct,vt,ze,We,De),Je)break;return Je}return typeof xe=="function"?xe(Me):null},H=Me=>Me?new Date(Me):new Date,Il=(Me,xe,Ke)=>{if(xe){const We=(Me.getMonth()+1).toString().padStart(2,"0"),De=Me.getDate().toString().padStart(2,"0"),vt=Me.getHours().toString().padStart(2,"0"),Je=Me.getMinutes().toString().padStart(2,"0"),Ct=Ke?Me.getSeconds().toString().padStart(2,"0"):"00";return`${Me.getFullYear()}-${We}-${De}T${vt}:${Je}:${Ct}.000Z`}const ze=Date.UTC(Me.getUTCFullYear(),Me.getUTCMonth(),Me.getUTCDate(),Me.getUTCHours(),Me.getUTCMinutes(),Me.getUTCSeconds());return new Date(ze).toISOString()},Fe=(Me,xe)=>{const Ke=H(JSON.parse(JSON.stringify(Me))),ze=set(Ke,{hours:0,minutes:0,seconds:0,milliseconds:0});return xe?startOfMonth(ze):ze},Mt=(Me,xe,Ke,ze)=>{let We=Me?H(Me):H();return(xe||xe===0)&&(We=setHours(We,+xe)),(Ke||Ke===0)&&(We=setMinutes(We,+Ke)),(ze||ze===0)&&(We=setSeconds(We,+ze)),setMilliseconds(We,0)},Be=(Me,xe)=>!Me||!xe?!1:isBefore(Fe(Me),Fe(xe)),$e=(Me,xe)=>!Me||!xe?!1:isEqual(Fe(Me),Fe(xe)),Ee=(Me,xe)=>!Me||!xe?!1:isAfter(Fe(Me),Fe(xe)),xt=(Me,xe,Ke)=>Me?.[0]&&Me?.[1]?Ee(Ke,Me[0])&&Be(Ke,Me[1]):Me?.[0]&&xe?Ee(Ke,Me[0])&&Be(Ke,xe)||Be(Ke,Me[0])&&Ee(Ke,xe):!1,it=Me=>{const xe=set(new Date(Me),{date:1});return Fe(xe)},Sa=(Me,xe,Ke)=>xe&&(Ke||Ke===0)?Object.fromEntries(["hours","minutes","seconds"].map(ze=>ze===xe?[ze,Ke]:[ze,isNaN(+Me[ze])?void 0:+Me[ze]])):{hours:isNaN(+Me.hours)?void 0:+Me.hours,minutes:isNaN(+Me.minutes)?void 0:+Me.minutes,seconds:isNaN(+Me.seconds)?void 0:+Me.seconds},Bt=Me=>({hours:getHours(Me),minutes:getMinutes(Me),seconds:getSeconds(Me)}),_n=(Me,xe)=>{if(xe){const Ke=getYear(H(xe));if(Ke>Me)return 12;if(Ke===Me)return getMonth(H(xe))}},Yn=(Me,xe)=>{if(xe){const Ke=getYear(H(xe));return Ke{if(Me)return getYear(H(Me))},In=(Me,xe)=>{const Ke=Ee(Me,xe)?xe:Me,ze=Ee(xe,Me)?xe:Me;return eachDayOfInterval({start:Ke,end:ze})},El=Me=>{const xe=addMonths(Me,1);return{month:getMonth(xe),year:getYear(xe)}},mt=(Me,xe)=>{const Ke=startOfWeek(Me,{weekStartsOn:+xe}),ze=endOfWeek(Me,{weekStartsOn:+xe});return[Ke,ze]},En=(Me,xe)=>{const Ke={hours:getHours(H()),minutes:getMinutes(H()),seconds:xe?getSeconds(H()):0};return Object.assign(Ke,Me)},wt=(Me,xe,Ke)=>[set(H(Me),{date:1}),set(H(),{month:xe,year:Ke,date:1})],pt=(Me,xe,Ke)=>{let ze=Me?H(Me):H();return(xe||xe===0)&&(ze=setMonth(ze,xe)),Ke&&(ze=setYear(ze,Ke)),ze},Nn=(Me,xe,Ke,ze,We)=>{if(!ze||We&&!xe||!We&&!Ke)return!1;const De=We?addMonths(Me,1):subMonths(Me,1),vt=[getMonth(De),getYear(De)];return We?!Ll(...vt,xe):!Nl(...vt,Ke)},Nl=(Me,xe,Ke)=>Be(...wt(Ke,Me,xe))||$e(...wt(Ke,Me,xe)),Ll=(Me,xe,Ke)=>Ee(...wt(Ke,Me,xe))||$e(...wt(Ke,Me,xe)),Ln=(Me,xe,Ke,ze,We,De,vt)=>{if(typeof xe=="function"&&!vt)return xe(Me);const Je=Ke?{locale:Ke}:void 0;return Array.isArray(Me)?`${format(Me[0],De,Je)}${We&&!Me[1]?"":ze}${Me[1]?format(Me[1],De,Je):""}`:format(Me,De,Je)},It=Me=>{if(Me)return null;throw new Error(Xa.prop("partial-range"))},oa=(Me,xe)=>{if(xe)return Me();throw new Error(Xa.prop("range"))},za=Me=>Array.isArray(Me)?isValid(Me[0])&&(Me[1]?isValid(Me[1]):!0):Me?isValid(Me):!1,Fl=(Me,xe)=>set(xe??H(),{hours:+Me.hours||0,minutes:+Me.minutes||0,seconds:+Me.seconds||0}),Pa=(Me,xe,Ke,ze)=>{if(!Me)return!0;if(ze){const We=Ke==="max"?isBefore(Me,xe):isAfter(Me,xe),De={seconds:0,milliseconds:0};return We||isEqual(set(Me,De),set(xe,De))}return Ke==="max"?Me.getTime()<=xe.getTime():Me.getTime()>=xe.getTime()},Ra=(Me,xe,Ke)=>Me?Fl(Me,xe):H(Ke??xe),vn=(Me,xe,Ke,ze,We)=>{if(Array.isArray(ze)){const vt=Ra(Me,ze[0],xe),Je=Ra(Me,ze[1],xe);return Pa(ze[0],vt,Ke,!!xe)&&Pa(ze[1],Je,Ke,!!xe)&&We}const De=Ra(Me,ze,xe);return Pa(ze,De,Ke,!!xe)&&We},Ca=Me=>set(H(),Bt(Me)),zl=(Me,xe,Ke)=>{if(Me instanceof Map){const ze=`${Bn(Ke+1)}-${xe}`;return Me.size?Me.has(ze):!1}return typeof Me=="function"?Me(Fe(set(H(),{month:Ke,year:xe}),!0)):!1},Hl=(Me,xe,Ke)=>{if(Me instanceof Map){const ze=`${Bn(Ke+1)}-${xe}`;return Me.size?Me.has(ze):!0}return!0},Fn=(Me,xe,Ke)=>typeof Me=="function"?Me({month:xe,year:Ke}):!!Me.months.find(ze=>ze.month===xe&&ze.year===Ke),xa=(Me,xe)=>typeof Me=="function"?Me(xe):Me.years.includes(xe),Ha=Me=>`dp-${format(Me,"yyyy-MM-dd")}`,mn=(Me,xe)=>{const Ke=subDays(Fe(xe),Me),ze=addDays(Fe(xe),Me);return{before:Ke,after:ze}},zn=(Me,xe)=>xe<+Me[0]||xe>+Me[1],Kt=reactive({menuFocused:!1,shiftKeyInMenu:!1}),Hn=()=>{const Me=Ke=>{Kt.menuFocused=Ke},xe=Ke=>{Kt.shiftKeyInMenu!==Ke&&(Kt.shiftKeyInMenu=Ke)};return{control:computed(()=>({shiftKeyInMenu:Kt.shiftKeyInMenu,menuFocused:Kt.menuFocused})),setMenuFocused:Me,setShiftKey:xe}},Pe=reactive({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Oa=ref$1(null),sa=ref$1(!1),Ba=ref$1(!1),_a=ref$1(!1),Ya=ref$1(!1),Ve=ref$1(0),Ie=ref$1(0),At=()=>{const Me=computed(()=>sa.value?[...Pe.selectionGrid,Pe.actionRow].filter($t=>$t.length):Ba.value?[...Pe.timePicker[0],...Pe.timePicker[1],Ya.value?[]:[Oa.value],Pe.actionRow].filter($t=>$t.length):_a.value?[...Pe.monthPicker,Pe.actionRow]:[Pe.monthYear,...Pe.calendar,Pe.time,Pe.actionRow].filter($t=>$t.length)),xe=$t=>{Ve.value=$t?Ve.value+1:Ve.value-1;let Rt=null;Me.value[Ie.value]&&(Rt=Me.value[Ie.value][Ve.value]),!Rt&&Me.value[Ie.value+($t?1:-1)]?(Ie.value=Ie.value+($t?1:-1),Ve.value=$t?0:Me.value[Ie.value].length-1):Rt||(Ve.value=$t?Ve.value-1:Ve.value+1)},Ke=$t=>{Ie.value===0&&!$t||Ie.value===Me.value.length&&$t||(Ie.value=$t?Ie.value+1:Ie.value-1,Me.value[Ie.value]?Me.value[Ie.value]&&!Me.value[Ie.value][Ve.value]&&Ve.value!==0&&(Ve.value=Me.value[Ie.value].length-1):Ie.value=$t?Ie.value-1:Ie.value+1)},ze=$t=>{let Rt=null;Me.value[Ie.value]&&(Rt=Me.value[Ie.value][Ve.value]),Rt?Rt.focus({preventScroll:!sa.value}):Ve.value=$t?Ve.value-1:Ve.value+1},We=()=>{xe(!0),ze(!0)},De=()=>{xe(!1),ze(!1)},vt=()=>{Ke(!1),ze(!0)},Je=()=>{Ke(!0),ze(!0)},Ct=($t,Rt)=>{Pe[Rt]=$t},yt=($t,Rt)=>{Pe[Rt]=$t},Ft=()=>{Ve.value=0,Ie.value=0};return{buildMatrix:Ct,buildMultiLevelMatrix:yt,setTimePickerBackRef:$t=>{Oa.value=$t},setSelectionGrid:$t=>{sa.value=$t,Ft(),$t||(Pe.selectionGrid=[])},setTimePicker:($t,Rt=!1)=>{Ba.value=$t,Ya.value=Rt,Ft(),$t||(Pe.timePicker[0]=[],Pe.timePicker[1]=[])},setTimePickerElements:($t,Rt=0)=>{Pe.timePicker[Rt]=$t},arrowRight:We,arrowLeft:De,arrowUp:vt,arrowDown:Je,clearArrowNav:()=>{Pe.monthYear=[],Pe.calendar=[],Pe.time=[],Pe.actionRow=[],Pe.selectionGrid=[],Pe.timePicker[0]=[],Pe.timePicker[1]=[],sa.value=!1,Ba.value=!1,Ya.value=!1,_a.value=!1,Ft(),Oa.value=null},setMonthPicker:$t=>{_a.value=$t,Ft()},refSets:Pe}},pn=Me=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...Me??{}}),Wl=Me=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:xe=>`Increment ${xe}`,decrementValue:xe=>`Decrement ${xe}`,openTpOverlay:xe=>`Open ${xe} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:xe=>`Month picker${xe?" overlay":""}`,yearPicker:xe=>`Year picker${xe?" overlay":""}`,timeOverlay:xe=>`${xe} overlay`,...Me??{}}),gn=Me=>Me?typeof Me=="boolean"?Me?2:0:+Me>=2?+Me:2:0,Ul=Me=>{const xe=typeof Me=="object"&&Me,Ke={static:!0,solo:!1};if(!Me)return{...Ke,count:gn(!1)};const ze=xe?Me:{},We=xe?ze.count??!0:Me,De=gn(We);return Object.assign(Ke,ze,{count:De})},Vl=(Me,xe,Ke)=>Me||(typeof Ke=="string"?Ke:xe),jl=Me=>typeof Me=="boolean"?Me?pn({}):!1:pn(Me),Kl=Me=>{const xe={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0};return typeof Me=="object"?{...xe,...Me??{},enabled:!0}:{...xe,enabled:Me}},Gl=Me=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...Me??{}}),Ql=Me=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...Me??{}}),ql=Me=>{const xe={input:!1};return typeof Me=="object"?{...xe,...Me??{},enabled:!0}:{enabled:Me,...xe}},Xl=Me=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,...Me??{}}),Jl=Me=>{const xe={dates:Array.isArray(Me)?Me.map(Ke=>H(Ke)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof Me=="function"?Me:{...xe,...Me??{}}},Zl=Me=>typeof Me=="object"?{type:Me?.type??"local",hideOnOffsetDates:Me?.hideOnOffsetDates??!1}:{type:Me,hideOnOffsetDates:!1},xl=Me=>{const xe={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1};return typeof Me=="object"?{enabled:!0,...xe,...Me}:{enabled:Me,...xe}},er=Me=>Me?typeof Me=="string"?{timezone:Me,exactMatch:!1,dateInTz:void 0,emitTimezone:void 0,convertModel:!0}:{timezone:Me.timezone,exactMatch:Me.exactMatch??!1,dateInTz:Me.dateInTz??void 0,emitTimezone:Me.emitTimezone??void 0,convertModel:Me.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:void 0},Ia=(Me,xe,Ke,ze)=>new Map(Me.map(We=>{const De=Qa(We,xe,ze);return[Za(De,Ke),De]})),tr=(Me,xe)=>Me.length?new Map(Me.map(Ke=>{const ze=Qa(Ke.date,xe);return[Za(ze,Lt.DATE),Ke]})):null,ar=Me=>{const xe=On(Me.isMonthPicker,Me.isYearPicker);return{minDate:La(Me.minDate,Me.timezone,Me.isSpecific),maxDate:La(Me.maxDate,Me.timezone,Me.isSpecific),disabledDates:Ta(Me.disabledDates)?Ia(Me.disabledDates,Me.timezone,xe,Me.isSpecific):Me.disabledDates,allowedDates:Ta(Me.allowedDates)?Ia(Me.allowedDates,Me.timezone,xe,Me.isSpecific):null,highlight:typeof Me.highlight=="object"&&Ta(Me.highlight?.dates)?Ia(Me.highlight.dates,Me.timezone,xe):Me.highlight,markers:tr(Me.markers,Me.timezone)}},nr=Me=>typeof Me=="boolean"?{enabled:Me,dragSelect:!0,limit:null}:{enabled:!!Me,limit:Me.limit?+Me.limit:null,dragSelect:Me.dragSelect??!0},lr=Me=>({...Object.fromEntries(Object.keys(Me).map(xe=>{const Ke=xe,ze=Me[Ke],We=typeof Me[Ke]=="string"?{[ze]:!0}:Object.fromEntries(ze.map(De=>[De,!0]));return[xe,We]}))}),Oe=Me=>{const xe=()=>{const ci=Me.enableSeconds?":ss":"",vi=Me.enableMinutes?":mm":"";return Me.is24?`HH${vi}${ci}`:`hh${vi}${ci} aa`},Ke=()=>Me.format?Me.format:Me.monthPicker?"MM/yyyy":Me.timePicker?xe():Me.weekPicker?`${zt.value?.type==="iso"?"II":"ww"}-RR`:Me.yearPicker?"yyyy":Me.quarterPicker?"QQQ/yyyy":Me.enableTimePicker?`MM/dd/yyyy, ${xe()}`:"MM/dd/yyyy",ze=ci=>En(ci,Me.enableSeconds),We=()=>ti.value.enabled?Me.startTime&&Array.isArray(Me.startTime)?[ze(Me.startTime[0]),ze(Me.startTime[1])]:null:Me.startTime&&!Array.isArray(Me.startTime)?ze(Me.startTime):null,De=computed(()=>Ul(Me.multiCalendars)),vt=computed(()=>We()),Je=computed(()=>Wl(Me.ariaLabels)),Ct=computed(()=>Gl(Me.filters)),yt=computed(()=>jl(Me.transitions)),Ft=computed(()=>Ql(Me.actionRow)),$t=computed(()=>Vl(Me.previewFormat,Me.format,Ke())),Rt=computed(()=>Kl(Me.textInput)),qt=computed(()=>ql(Me.inline)),Pt=computed(()=>Xl(Me.config)),Nt=computed(()=>Jl(Me.highlight)),zt=computed(()=>Zl(Me.weekNumbers)),Gt=computed(()=>er(Me.timezone)),Ut=computed(()=>nr(Me.multiDates)),ii=computed(()=>ar({minDate:Me.minDate,maxDate:Me.maxDate,disabledDates:Me.disabledDates,allowedDates:Me.allowedDates,highlight:Nt.value,markers:Me.markers,timezone:Gt.value,isSpecific:Me.monthPicker||Me.yearPicker||Me.quarterPicker,isMonthPicker:Me.monthPicker,isYearPicker:Me.yearPicker})),ti=computed(()=>xl(Me.range)),di=computed(()=>lr(Me.ui));return{defaultedTransitions:yt,defaultedMultiCalendars:De,defaultedStartTime:vt,defaultedAriaLabels:Je,defaultedFilters:Ct,defaultedActionRow:Ft,defaultedPreviewFormat:$t,defaultedTextInput:Rt,defaultedInline:qt,defaultedConfig:Pt,defaultedHighlight:Nt,defaultedWeekNumbers:zt,defaultedRange:ti,propDates:ii,defaultedTz:Gt,defaultedMultiDates:Ut,defaultedUI:di,getDefaultPattern:Ke,getDefaultStartTime:We,handleEventPropagation:ci=>{Pt.value.allowStopPropagation&&ci.stopPropagation(),Pt.value.allowPreventDefault&&ci.preventDefault()}}},rr=(Me,xe,{isInputFocused:Ke,isTextInputDate:ze})=>{const We=ref$1(),{defaultedTextInput:De,defaultedRange:vt,defaultedTz:Je,defaultedMultiDates:Ct,getDefaultPattern:yt}=Oe(xe),Ft=ref$1(""),$t=toRef$1(xe,"format"),Rt=toRef$1(xe,"formatLocale");watch(We,()=>{typeof xe.onInternalModelChange=="function"&&Me("internal-model-change",We.value,ri(!0))},{deep:!0}),watch(vt,(Xt,mi)=>{Xt.enabled!==mi.enabled&&(We.value=null)}),watch($t,()=>{ke()});const qt=Xt=>Je.value.timezone&&Je.value.convertModel?Ze(Xt,Je.value.timezone):Xt,Pt=Xt=>{if(Je.value.timezone&&Je.value.convertModel){const mi=Ml(Je.value.timezone,Xt);return addHours(Xt,mi)}return Xt},Nt=(Xt,mi,Fi=!1)=>Ln(Xt,xe.format,xe.formatLocale,De.value.rangeSeparator,xe.modelAuto,mi??yt(),Fi),zt=Xt=>Xt?xe.modelType?Vt(Xt):{hours:getHours(Xt),minutes:getMinutes(Xt),seconds:xe.enableSeconds?getSeconds(Xt):0}:null,Gt=Xt=>xe.modelType?Vt(Xt):{month:getMonth(Xt),year:getYear(Xt)},Ut=Xt=>Array.isArray(Xt)?Ct.value.enabled?Xt.map(mi=>ii(mi,setYear(H(),mi))):oa(()=>[setYear(H(),Xt[0]),Xt[1]?setYear(H(),Xt[1]):It(vt.value.partialRange)],vt.value.enabled):setYear(H(),+Xt),ii=(Xt,mi)=>(typeof Xt=="string"||typeof Xt=="number")&&xe.modelType?Xe(Xt):mi,ti=Xt=>Array.isArray(Xt)?[ii(Xt[0],Mt(null,+Xt[0].hours,+Xt[0].minutes,Xt[0].seconds)),ii(Xt[1],Mt(null,+Xt[1].hours,+Xt[1].minutes,Xt[1].seconds))]:ii(Xt,Mt(null,Xt.hours,Xt.minutes,Xt.seconds)),di=Xt=>{const mi=set(H(),{date:1});return Array.isArray(Xt)?Ct.value.enabled?Xt.map(Fi=>ii(Fi,pt(mi,+Fi.month,+Fi.year))):oa(()=>[ii(Xt[0],pt(mi,+Xt[0].month,+Xt[0].year)),ii(Xt[1],Xt[1]?pt(mi,+Xt[1].month,+Xt[1].year):It(vt.value.partialRange))],vt.value.enabled):ii(Xt,pt(mi,+Xt.month,+Xt.year))},ci=Xt=>{if(Array.isArray(Xt))return Xt.map(mi=>Xe(mi));throw new Error(Xa.dateArr("multi-dates"))},vi=Xt=>{if(Array.isArray(Xt)&&vt.value.enabled){const mi=Xt[0],Fi=Xt[1];return[H(Array.isArray(mi)?mi[0]:null),Array.isArray(Fi)&&Fi.length?H(Fi[0]):null]}return H(Xt[0])},bi=Xt=>xe.modelAuto?Array.isArray(Xt)?[Xe(Xt[0]),Xe(Xt[1])]:xe.autoApply?[Xe(Xt)]:[Xe(Xt),null]:Array.isArray(Xt)?oa(()=>Xt[1]?[Xe(Xt[0]),Xt[1]?Xe(Xt[1]):It(vt.value.partialRange)]:[Xe(Xt[0])],vt.value.enabled):Xe(Xt),pi=()=>{Array.isArray(We.value)&&vt.value.enabled&&We.value.length===1&&We.value.push(It(vt.value.partialRange))},Mi=()=>{const Xt=We.value;return[Vt(Xt[0]),Xt[1]?Vt(Xt[1]):It(vt.value.partialRange)]},j=()=>Array.isArray(We.value)?We.value[1]?Mi():Vt(Ne(We.value[0])):[],Ae=()=>(We.value||[]).map(Xt=>Vt(Xt)),He=(Xt=!1)=>(Xt||pi(),xe.modelAuto?j():Ct.value.enabled?Ae():Array.isArray(We.value)?oa(()=>Mi(),vt.value.enabled):Vt(Ne(We.value))),Ue=Xt=>!Xt||Array.isArray(Xt)&&!Xt.length?null:xe.timePicker?ti(Ne(Xt)):xe.monthPicker?di(Ne(Xt)):xe.yearPicker?Ut(Ne(Xt)):Ct.value.enabled?ci(Ne(Xt)):xe.weekPicker?vi(Ne(Xt)):bi(Ne(Xt)),Ge=Xt=>{if(ze.value)return;const mi=Ue(Xt);za(Ne(mi))?(We.value=Ne(mi),ke()):(We.value=null,Ft.value="")},_t=()=>{const Xt=mi=>format(mi,De.value.format);return`${Xt(We.value[0])} ${De.value.rangeSeparator} ${We.value[1]?Xt(We.value[1]):""}`},St=()=>Ke.value&&We.value?Array.isArray(We.value)?_t():format(We.value,De.value.format):Nt(We.value),Ye=()=>We.value?Ct.value.enabled?We.value.map(Xt=>Nt(Xt)).join("; "):De.value.enabled&&typeof De.value.format=="string"?St():Nt(We.value):"",ke=()=>{!xe.format||typeof xe.format=="string"||De.value.enabled&&typeof De.value.format=="string"?Ft.value=Ye():Ft.value=xe.format(We.value)},Xe=Xt=>{if(xe.utc){const mi=new Date(Xt);return xe.utc==="preserve"?new Date(mi.getTime()+mi.getTimezoneOffset()*6e4):mi}return xe.modelType?$l.includes(xe.modelType)?qt(new Date(Xt)):xe.modelType==="format"&&(typeof xe.format=="string"||!xe.format)?qt(parse(Xt,yt(),new Date,{locale:Rt.value})):qt(parse(Xt,xe.modelType,new Date,{locale:Rt.value})):qt(new Date(Xt))},Vt=Xt=>Xt?xe.utc?Il(Xt,xe.utc==="preserve",xe.enableSeconds):xe.modelType?xe.modelType==="timestamp"?+Pt(Xt):xe.modelType==="iso"?Pt(Xt).toISOString():xe.modelType==="format"&&(typeof xe.format=="string"||!xe.format)?Nt(Pt(Xt)):Nt(Pt(Xt),xe.modelType,!0):Pt(Xt):"",Jt=(Xt,mi=!1,Fi=!1)=>{if(Fi)return Xt;if(Me("update:model-value",Xt),Je.value.emitTimezone&&mi){const si=Array.isArray(Xt)?Xt.map(hi=>Ze(Ne(hi),Je.value.emitTimezone)):Ze(Ne(Xt),Je.value.emitTimezone);Me("update:model-timezone-value",si)}},ei=Xt=>Array.isArray(We.value)?Ct.value.enabled?We.value.map(mi=>Xt(mi)):[Xt(We.value[0]),We.value[1]?Xt(We.value[1]):It(vt.value.partialRange)]:Xt(Ne(We.value)),oi=()=>{if(Array.isArray(We.value)){const Xt=mt(We.value[0],xe.weekStart),mi=We.value[1]?mt(We.value[1],xe.weekStart):[];return[Xt.map(Fi=>H(Fi)),mi.map(Fi=>H(Fi))]}return mt(We.value,xe.weekStart).map(Xt=>H(Xt))},li=(Xt,mi)=>Jt(Ne(ei(Xt)),!1,mi),fi=Xt=>{const mi=oi();return Xt?mi:Me("update:model-value",oi())},ri=(Xt=!1)=>(Xt||ke(),xe.monthPicker?li(Gt,Xt):xe.timePicker?li(zt,Xt):xe.yearPicker?li(getYear,Xt):xe.weekPicker?fi(Xt):Jt(He(Xt),!0,Xt));return{inputValue:Ft,internalModelValue:We,checkBeforeEmit:()=>We.value?vt.value.enabled?vt.value.partialRange?We.value.length>=1:We.value.length===2:!!We.value:!1,parseExternalModelValue:Ge,formatInputValue:ke,emitModelValue:ri}},or=(Me,xe)=>{const{defaultedFilters:Ke,propDates:ze}=Oe(Me),{validateMonthYearInRange:We}=Tt(Me),De=(Ft,$t)=>{let Rt=Ft;return Ke.value.months.includes(getMonth(Rt))?(Rt=$t?addMonths(Ft,1):subMonths(Ft,1),De(Rt,$t)):Rt},vt=(Ft,$t)=>{let Rt=Ft;return Ke.value.years.includes(getYear(Rt))?(Rt=$t?addYears(Ft,1):subYears(Ft,1),vt(Rt,$t)):Rt},Je=(Ft,$t=!1)=>{const Rt=set(H(),{month:Me.month,year:Me.year});let qt=Ft?addMonths(Rt,1):subMonths(Rt,1);Me.disableYearSelect&&(qt=setYear(qt,Me.year));let Pt=getMonth(qt),Nt=getYear(qt);Ke.value.months.includes(Pt)&&(qt=De(qt,Ft),Pt=getMonth(qt),Nt=getYear(qt)),Ke.value.years.includes(Nt)&&(qt=vt(qt,Ft),Nt=getYear(qt)),We(Pt,Nt,Ft,Me.preventMinMaxNavigation)&&Ct(Pt,Nt,$t)},Ct=(Ft,$t,Rt)=>{xe("update-month-year",{month:Ft,year:$t,fromNav:Rt})},yt=computed(()=>Ft=>Nn(set(H(),{month:Me.month,year:Me.year}),ze.value.maxDate,ze.value.minDate,Me.preventMinMaxNavigation,Ft));return{handleMonthYearChange:Je,isDisabled:yt,updateMonthYear:Ct}},va={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:[Boolean,String],default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[Boolean,String,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},alwaysClearable:{type:Boolean,default:!1},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},onInternalModelChange:{type:[Function,Object],default:null},enableMinutes:{type:Boolean,default:!0},ui:{type:Object,default:()=>({})}},dt={...va,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1},isMobile:{type:Boolean,default:void 0}},sr=["title"],ur=["disabled"],ir=defineComponent({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...dt},emits:["close-picker","select-date","select-now","invalid-select"],setup(Me,{emit:xe}){const Ke=xe,ze=Me,{defaultedActionRow:We,defaultedPreviewFormat:De,defaultedMultiCalendars:vt,defaultedTextInput:Je,defaultedInline:Ct,defaultedRange:yt,defaultedMultiDates:Ft}=Oe(ze),{isTimeValid:$t,isMonthValid:Rt}=Tt(ze),{buildMatrix:qt}=At(),Pt=ref$1(null),Nt=ref$1(null),zt=ref$1(!1),Gt=ref$1({}),Ut=ref$1(null),ii=ref$1(null);onMounted(()=>{ze.arrowNavigation&&qt([Le(Pt),Le(Nt)],"actionRow"),ti(),window.addEventListener("resize",ti)}),onUnmounted(()=>{window.removeEventListener("resize",ti)});const ti=()=>{zt.value=!1,setTimeout(()=>{const Ue=Ut.value?.getBoundingClientRect(),Ge=ii.value?.getBoundingClientRect();Ue&&Ge&&(Gt.value.maxWidth=`${Ge.width-Ue.width-20}px`),zt.value=!0},0)},di=computed(()=>yt.value.enabled&&!yt.value.partialRange&&ze.internalModelValue?ze.internalModelValue.length===2:!0),ci=computed(()=>!$t.value(ze.internalModelValue)||!Rt.value(ze.internalModelValue)||!di.value),vi=()=>{const Ue=De.value;return ze.timePicker||ze.monthPicker,Ue(Ne(ze.internalModelValue))},bi=()=>{const Ue=ze.internalModelValue;return vt.value.count>0?`${pi(Ue[0])} - ${pi(Ue[1])}`:[pi(Ue[0]),pi(Ue[1])]},pi=Ue=>Ln(Ue,De.value,ze.formatLocale,Je.value.rangeSeparator,ze.modelAuto,De.value),Mi=computed(()=>!ze.internalModelValue||!ze.menuMount?"":typeof De.value=="string"?Array.isArray(ze.internalModelValue)?ze.internalModelValue.length===2&&ze.internalModelValue[1]?bi():Ft.value.enabled?ze.internalModelValue.map(Ue=>`${pi(Ue)}`):ze.modelAuto?`${pi(ze.internalModelValue[0])}`:`${pi(ze.internalModelValue[0])} -`:pi(ze.internalModelValue):vi()),j=()=>Ft.value.enabled?"; ":" - ",Ae=computed(()=>Array.isArray(Mi.value)?Mi.value.join(j()):Mi.value),He=()=>{$t.value(ze.internalModelValue)&&Rt.value(ze.internalModelValue)&&di.value?Ke("select-date"):Ke("invalid-select")};return(Ue,Ge)=>(openBlock(),createElementBlock("div",{ref_key:"actionRowRef",ref:ii,class:"dp__action_row"},[Ue.$slots["action-row"]?renderSlot(Ue.$slots,"action-row",normalizeProps(mergeProps({key:0},{internalModelValue:Ue.internalModelValue,disabled:ci.value,selectDate:()=>Ue.$emit("select-date"),closePicker:()=>Ue.$emit("close-picker")}))):(openBlock(),createElementBlock(Fragment,{key:1},[unref(We).showPreview?(openBlock(),createElementBlock("div",{key:0,class:"dp__selection_preview",title:Ae.value,style:normalizeStyle(Gt.value)},[Ue.$slots["action-preview"]&&zt.value?renderSlot(Ue.$slots,"action-preview",{key:0,value:Ue.internalModelValue}):createCommentVNode("",!0),!Ue.$slots["action-preview"]&&zt.value?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Ae.value),1)],64)):createCommentVNode("",!0)],12,sr)):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"actionBtnContainer",ref:Ut,class:"dp__action_buttons","data-dp-element":"action-row"},[Ue.$slots["action-buttons"]?renderSlot(Ue.$slots,"action-buttons",{key:0,value:Ue.internalModelValue}):createCommentVNode("",!0),Ue.$slots["action-buttons"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[!unref(Ct).enabled&&unref(We).showCancel?(openBlock(),createElementBlock("button",{key:0,ref_key:"cancelButtonRef",ref:Pt,type:"button",class:"dp__action_button dp__action_cancel",onClick:Ge[0]||(Ge[0]=_t=>Ue.$emit("close-picker")),onKeydown:Ge[1]||(Ge[1]=_t=>unref(qe)(_t,()=>Ue.$emit("close-picker")))},toDisplayString(Ue.cancelText),545)):createCommentVNode("",!0),unref(We).showNow?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:Ge[2]||(Ge[2]=_t=>Ue.$emit("select-now")),onKeydown:Ge[3]||(Ge[3]=_t=>unref(qe)(_t,()=>Ue.$emit("select-now")))},toDisplayString(Ue.nowButtonLabel),33)):createCommentVNode("",!0),unref(We).showSelect?(openBlock(),createElementBlock("button",{key:2,ref_key:"selectButtonRef",ref:Nt,type:"button",class:"dp__action_button dp__action_select",disabled:ci.value,"data-test-id":"select-button",onKeydown:Ge[4]||(Ge[4]=_t=>unref(qe)(_t,()=>He())),onClick:He},toDisplayString(Ue.selectText),41,ur)):createCommentVNode("",!0)],64))],512)],64))],512))}}),dr=["role","aria-label","tabindex"],cr={class:"dp__selection_grid_header"},fr=["aria-selected","aria-disabled","data-test-id","onClick","onKeydown","onMouseover"],vr=["aria-label"],ta=defineComponent({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{},overlayLabel:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(Me,{expose:xe,emit:Ke}){const{setSelectionGrid:ze,buildMultiLevelMatrix:We,setMonthPicker:De}=At(),vt=Ke,Je=Me,{defaultedAriaLabels:Ct,defaultedTextInput:yt,defaultedConfig:Ft,handleEventPropagation:$t}=Oe(Je),{hideNavigationButtons:Rt}=ga(),qt=ref$1(!1),Pt=ref$1(null),Nt=ref$1(null),zt=ref$1([]),Gt=ref$1(),Ut=ref$1(null),ii=ref$1(0),ti=ref$1(null);onBeforeUpdate(()=>{Pt.value=null}),onMounted(()=>{nextTick().then(()=>Ae()),Je.noOverlayFocus||ci(),di(!0)}),onUnmounted(()=>di(!1));const di=ei=>{Je.arrowNavigation&&(Je.headerRefs?.length?De(ei):ze(ei))},ci=()=>{const ei=Le(Nt);ei&&(yt.value.enabled||(Pt.value?Pt.value?.focus({preventScroll:!0}):ei.focus({preventScroll:!0})),qt.value=ei.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!Je.useRelative,"dp--overlay-relative":Je.useRelative})),bi=computed(()=>Je.useRelative?{height:`${Je.height}px`,width:"var(--dp-menu-min-width)"}:void 0),pi=computed(()=>({dp__overlay_col:!0})),Mi=computed(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:qt.value,dp__button_bottom:Je.isLast})),j=computed(()=>({dp__overlay_container:!0,dp__container_flex:Je.items?.length<=6,dp__container_block:Je.items?.length>6}));watch(()=>Je.items,()=>Ae(!1),{deep:!0});const Ae=(ei=!0)=>{nextTick().then(()=>{const oi=Le(Pt),li=Le(Nt),fi=Le(Ut),ri=Le(ti),Xt=fi?fi.getBoundingClientRect().height:0;li&&(li.getBoundingClientRect().height?ii.value=li.getBoundingClientRect().height-Xt:ii.value=Ft.value.modeHeight-Xt),oi&&ri&&ei&&(ri.scrollTop=oi.offsetTop-ri.offsetTop-(ii.value/2-oi.getBoundingClientRect().height)-Xt)})},He=ei=>{ei.disabled||vt("selected",ei.value)},Ue=()=>{vt("toggle"),vt("reset-flow")},Ge=ei=>{Je.escClose&&(Ue(),$t(ei))},_t=(ei,oi,li,fi)=>{ei&&((oi.active||oi.value===Je.focusValue)&&(Pt.value=ei),Je.arrowNavigation&&(Array.isArray(zt.value[li])?zt.value[li][fi]=ei:zt.value[li]=[ei],St()))},St=()=>{const ei=Je.headerRefs?.length?[Je.headerRefs].concat(zt.value):zt.value.concat([Je.skipButtonRef?[]:[Ut.value]]);We(Ne(ei),Je.headerRefs?.length?"monthPicker":"selectionGrid")},Ye=ei=>{Je.arrowNavigation||Dt(ei,Ft.value,!0)},ke=ei=>{Gt.value=ei,vt("hover-value",ei)},Xe=()=>{if(Ue(),!Je.isLast){const ei=Fa(Je.menuWrapRef??null,"action-row");ei&&Cn(ei)?.focus()}},Vt=ei=>{switch(ei.key){case Re.esc:return Ge(ei);case Re.arrowLeft:return Ye(ei);case Re.arrowRight:return Ye(ei);case Re.arrowUp:return Ye(ei);case Re.arrowDown:return Ye(ei);default:return}},Jt=ei=>{if(ei.key===Re.enter)return Ue();if(ei.key===Re.tab)return Xe()};return xe({focusGrid:ci}),(ei,oi)=>(openBlock(),createElementBlock("div",{ref_key:"gridWrapRef",ref:Nt,class:normalizeClass(vi.value),style:normalizeStyle(bi.value),role:Me.useRelative?void 0:"dialog","aria-label":Me.overlayLabel,tabindex:Me.useRelative?void 0:"0",onKeydown:Vt,onClick:oi[0]||(oi[0]=withModifiers(()=>{},["prevent"]))},[createBaseVNode("div",{ref_key:"containerRef",ref:ti,class:normalizeClass(j.value),style:normalizeStyle({"--dp-overlay-height":`${ii.value}px`}),role:"grid"},[createBaseVNode("div",cr,[renderSlot(ei.$slots,"header")]),ei.$slots.overlay?renderSlot(ei.$slots,"overlay",{key:0}):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Me.items,(li,fi)=>(openBlock(),createElementBlock("div",{key:fi,class:normalizeClass(["dp__overlay_row",{dp__flex_row:Me.items.length>=3}]),role:"row"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(li,(ri,Xt)=>(openBlock(),createElementBlock("div",{key:ri.value,ref_for:!0,ref:mi=>_t(mi,ri,fi,Xt),role:"gridcell",class:normalizeClass(pi.value),"aria-selected":ri.active||void 0,"aria-disabled":ri.disabled||void 0,tabindex:"0","data-test-id":ri.text,onClick:withModifiers(mi=>He(ri),["prevent"]),onKeydown:mi=>unref(qe)(mi,()=>He(ri),!0),onMouseover:mi=>ke(ri.value)},[createBaseVNode("div",{class:normalizeClass(ri.className)},[ei.$slots.item?renderSlot(ei.$slots,"item",{key:0,item:ri}):createCommentVNode("",!0),ei.$slots.item?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(ri.text),1)],64))],2)],42,fr))),128))],2))),128))],6),ei.$slots["button-icon"]?withDirectives((openBlock(),createElementBlock("button",{key:0,ref_key:"toggleButton",ref:Ut,type:"button","aria-label":unref(Ct)?.toggleOverlay,class:normalizeClass(Mi.value),tabindex:"0",onClick:Ue,onKeydown:Jt},[renderSlot(ei.$slots,"button-icon")],42,vr)),[[vShow,!unref(Rt)(Me.hideNavigation,Me.type)]]):createCommentVNode("",!0)],46,dr))}}),mr=["data-dp-mobile"],ma=defineComponent({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean},isMobile:{type:Boolean}},setup(Me){const xe=Me,Ke=computed(()=>xe.multiCalendars>0?[...Array(xe.multiCalendars).keys()]:[0]),ze=computed(()=>({dp__instance_calendar:xe.multiCalendars>0}));return(We,De)=>(openBlock(),createElementBlock("div",{class:normalizeClass({dp__menu_inner:!Me.stretch,"dp--menu--inner-stretched":Me.stretch,dp__flex_display:Me.multiCalendars>0,"dp--flex-display-collapsed":Me.collapse}),"data-dp-mobile":Me.isMobile},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ke.value,(vt,Je)=>(openBlock(),createElementBlock("div",{key:vt,class:normalizeClass(ze.value)},[renderSlot(We.$slots,"default",{instance:vt,index:Je})],2))),128))],10,mr))}}),pr=["data-dp-element","aria-label","aria-disabled"],Qt=defineComponent({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(Me,{emit:xe}){const Ke=xe,ze=ref$1(null);return onMounted(()=>Ke("set-ref",ze)),(We,De)=>(openBlock(),createElementBlock("button",{ref_key:"elRef",ref:ze,type:"button","data-dp-element":Me.elName,class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":Me.ariaLabel,"aria-disabled":Me.disabled||void 0,onClick:De[0]||(De[0]=vt=>Ke("activate")),onKeydown:De[1]||(De[1]=vt=>unref(qe)(vt,()=>Ke("activate"),!0))},[createBaseVNode("span",{class:normalizeClass(["dp__inner_nav",{dp__inner_nav_disabled:Me.disabled}])},[renderSlot(We.$slots,"default")],2)],40,pr))}}),gr=["aria-label","data-test-id"],Wn=defineComponent({__name:"YearModePicker",props:{...dt,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(Me,{emit:xe}){const Ke=xe,ze=Me,{showRightIcon:We,showLeftIcon:De}=ga(),{defaultedConfig:vt,defaultedMultiCalendars:Je,defaultedAriaLabels:Ct,defaultedTransitions:yt,defaultedUI:Ft}=Oe(ze),{showTransition:$t,transitionName:Rt}=aa(yt),qt=ref$1(!1),Pt=computed(()=>Ja(ze.year,ze.locale)),Nt=(Ut=!1,ii)=>{qt.value=!qt.value,Ke("toggle-year-picker",{flow:Ut,show:ii})},zt=Ut=>{qt.value=!1,Ke("year-select",Ut)},Gt=(Ut=!1)=>{Ke("handle-year",Ut)};return(Ut,ii)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{class:normalizeClass(["dp--year-mode-picker",{"dp--hidden-el":qt.value}])},[unref(De)(unref(Je),Me.instance)?(openBlock(),createBlock(Qt,{key:0,ref:"mpPrevIconRef","aria-label":unref(Ct)?.prevYear,disabled:Me.isDisabled(!1),class:normalizeClass(unref(Ft)?.navBtnPrev),onActivate:ii[0]||(ii[0]=ti=>Gt(!1))},{default:withCtx(()=>[Ut.$slots["arrow-left"]?renderSlot(Ut.$slots,"arrow-left",{key:0}):createCommentVNode("",!0),Ut.$slots["arrow-left"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ua),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),createBaseVNode("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${Me.year}-${unref(Ct)?.openYearsOverlay}`,"data-test-id":`year-mode-btn-${Me.instance}`,onClick:ii[1]||(ii[1]=()=>Nt(!1)),onKeydown:ii[2]||(ii[2]=withKeys(()=>Nt(!1),["enter"]))},[Ut.$slots.year?renderSlot(Ut.$slots,"year",{key:0,year:Me.year,text:Pt.value,value:Me.year}):createCommentVNode("",!0),Ut.$slots.year?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Pt.value),1)],64))],40,gr),unref(We)(unref(Je),Me.instance)?(openBlock(),createBlock(Qt,{key:1,ref:"mpNextIconRef","aria-label":unref(Ct)?.nextYear,disabled:Me.isDisabled(!0),class:normalizeClass(unref(Ft)?.navBtnNext),onActivate:ii[3]||(ii[3]=ti=>Gt(!0))},{default:withCtx(()=>[Ut.$slots["arrow-right"]?renderSlot(Ut.$slots,"arrow-right",{key:0}):createCommentVNode("",!0),Ut.$slots["arrow-right"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Va),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0)],2),createVNode(Transition,{name:unref(Rt)(Me.showYearPicker),css:unref($t)},{default:withCtx(()=>[Me.showYearPicker?(openBlock(),createBlock(ta,{key:0,items:Me.items,"text-input":Ut.textInput,"esc-close":Ut.escClose,config:Ut.config,"is-last":Ut.autoApply&&!unref(vt).keepActionRow,"hide-navigation":Ut.hideNavigation,"aria-labels":Ut.ariaLabels,"overlay-label":unref(Ct)?.yearPicker?.(!0),type:"year",onToggle:Nt,onSelected:ii[4]||(ii[4]=ti=>zt(ti))},createSlots({"button-icon":withCtx(()=>[Ut.$slots["calendar-icon"]?renderSlot(Ut.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),Ut.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(jt),{key:1}))]),_:2},[Ut.$slots["year-overlay-value"]?{name:"item",fn:withCtx(({item:ti})=>[renderSlot(Ut.$slots,"year-overlay-value",{text:ti.text,value:ti.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels","overlay-label"])):createCommentVNode("",!0)]),_:3},8,["name","css"])],64))}}),en=(Me,xe,Ke)=>{if(xe.value&&Array.isArray(xe.value))if(xe.value.some(ze=>$e(Me,ze))){const ze=xe.value.filter(We=>!$e(We,Me));xe.value=ze.length?ze:null}else(Ke&&+Ke>xe.value.length||!Ke)&&xe.value.push(Me);else xe.value=[Me]},tn=(Me,xe,Ke)=>{let ze=Me.value?Me.value.slice():[];return ze.length===2&&ze[1]!==null&&(ze=[]),ze.length?(Be(xe,ze[0])?ze.unshift(xe):ze[1]=xe,Ke("range-end",xe)):(ze=[xe],Ke("range-start",xe)),ze},pa=(Me,xe,Ke,ze)=>{Me&&(Me[0]&&Me[1]&&Ke&&xe("auto-apply"),Me[0]&&!Me[1]&&ze&&Ke&&xe("auto-apply"))},Un=Me=>{Array.isArray(Me.value)&&Me.value.length<=2&&Me.range?Me.modelValue.value=Me.value.map(xe=>Ze(H(xe),Me.timezone)):Array.isArray(Me.value)||(Me.modelValue.value=Ze(H(Me.value),Me.timezone))},Vn=(Me,xe,Ke,ze)=>Array.isArray(xe.value)&&(xe.value.length===2||xe.value.length===1&&ze.value.partialRange)?ze.value.fixedStart&&(Ee(Me,xe.value[0])||$e(Me,xe.value[0]))?[xe.value[0],Me]:ze.value.fixedEnd&&(Be(Me,xe.value[1])||$e(Me,xe.value[1]))?[Me,xe.value[1]]:(Ke("invalid-fixed-range",Me),xe.value):[],jn=({multiCalendars:Me,range:xe,highlight:Ke,propDates:ze,calendars:We,modelValue:De,props:vt,filters:Je,year:Ct,month:yt,emit:Ft})=>{const $t=computed(()=>qa(vt.yearRange,vt.locale,vt.reverseYears)),Rt=ref$1([!1]),qt=computed(()=>(Mi,j)=>{const Ae=set(it(new Date),{month:yt.value(Mi),year:Ct.value(Mi)}),He=j?endOfYear(Ae):startOfYear(Ae);return Nn(He,ze.value.maxDate,ze.value.minDate,vt.preventMinMaxNavigation,j)}),Pt=()=>Array.isArray(De.value)&&Me.value.solo&&De.value[1],Nt=()=>{for(let Mi=0;Mi{if(!Mi)return Nt();const j=set(H(),We.value[Mi]);return We.value[0].year=getYear(subYears(j,Me.value.count-1)),Nt()},Gt=(Mi,j)=>{const Ae=differenceInYears(j,Mi);return xe.value.showLastInRange&&Ae>1?j:Mi},Ut=Mi=>vt.focusStartDate||Me.value.solo?Mi[0]:Mi[1]?Gt(Mi[0],Mi[1]):Mi[0],ii=()=>{if(De.value){const Mi=Array.isArray(De.value)?Ut(De.value):De.value;We.value[0]={month:getMonth(Mi),year:getYear(Mi)}}},ti=()=>{ii(),Me.value.count&&Nt()};watch(De,(Mi,j)=>{vt.isTextInputDate&&JSON.stringify(Mi??{})!==JSON.stringify(j??{})&&ti()}),onMounted(()=>{ti()});const di=(Mi,j)=>{We.value[j].year=Mi,Ft("update-month-year",{instance:j,year:Mi,month:We.value[j].month}),Me.value.count&&!Me.value.solo&&zt(j)},ci=computed(()=>Mi=>Ht($t.value,j=>{const Ae=Ct.value(Mi)===j.value,He=Zt(j.value,Wt(ze.value.minDate),Wt(ze.value.maxDate))||Je.value.years?.includes(Ct.value(Mi)),Ue=xa(Ke.value,j.value);return{active:Ae,disabled:He,highlighted:Ue}})),vi=(Mi,j)=>{di(Mi,j),pi(j)},bi=(Mi,j=!1)=>{if(!qt.value(Mi,j)){const Ae=j?Ct.value(Mi)+1:Ct.value(Mi)-1;di(Ae,Mi)}},pi=(Mi,j=!1,Ae)=>{j||Ft("reset-flow"),Ae!==void 0?Rt.value[Mi]=Ae:Rt.value[Mi]=!Rt.value[Mi],Rt.value[Mi]?Ft("overlay-toggle",{open:!0,overlay:je.year}):(Ft("overlay-closed"),Ft("overlay-toggle",{open:!1,overlay:je.year}))};return{isDisabled:qt,groupedYears:ci,showYearPicker:Rt,selectYear:di,toggleYearPicker:pi,handleYearSelect:vi,handleYear:bi}},yr=(Me,xe)=>{const{defaultedMultiCalendars:Ke,defaultedAriaLabels:ze,defaultedTransitions:We,defaultedConfig:De,defaultedRange:vt,defaultedHighlight:Je,propDates:Ct,defaultedTz:yt,defaultedFilters:Ft,defaultedMultiDates:$t}=Oe(Me),Rt=()=>{Me.isTextInputDate&&ti(getYear(H(Me.startDate)),0)},{modelValue:qt,year:Pt,month:Nt,calendars:zt}=na(Me,xe,Rt),Gt=computed(()=>Pn(Me.formatLocale,Me.locale,Me.monthNameFormat)),Ut=ref$1(null),{checkMinMaxRange:ii}=Tt(Me),{selectYear:ti,groupedYears:di,showYearPicker:ci,toggleYearPicker:vi,handleYearSelect:bi,handleYear:pi,isDisabled:Mi}=jn({modelValue:qt,multiCalendars:Ke,range:vt,highlight:Je,calendars:zt,year:Pt,propDates:Ct,month:Nt,filters:Ft,props:Me,emit:xe});onMounted(()=>{Me.startDate&&(qt.value&&Me.focusStartDate||!qt.value)&&ti(getYear(H(Me.startDate)),0)});const j=oi=>oi?{month:getMonth(oi),year:getYear(oi)}:{month:null,year:null},Ae=()=>qt.value?Array.isArray(qt.value)?qt.value.map(oi=>j(oi)):j(qt.value):j(),He=(oi,li)=>{const fi=zt.value[oi],ri=Ae();return Array.isArray(ri)?ri.some(Xt=>Xt.year===fi?.year&&Xt.month===li):fi?.year===ri.year&&li===ri.month},Ue=(oi,li,fi)=>{const ri=Ae();return Array.isArray(ri)?Pt.value(li)===ri[fi]?.year&&oi===ri[fi]?.month:!1},Ge=(oi,li)=>{if(vt.value.enabled){const fi=Ae();if(Array.isArray(qt.value)&&Array.isArray(fi)){const ri=Ue(oi,li,0)||Ue(oi,li,1),Xt=pt(it(H()),oi,Pt.value(li));return xt(qt.value,Ut.value,Xt)&&!ri}return!1}return!1},_t=computed(()=>oi=>Ht(Gt.value,li=>{const fi=He(oi,li.value),ri=Zt(li.value,_n(Pt.value(oi),Ct.value.minDate),Yn(Pt.value(oi),Ct.value.maxDate))||zl(Ct.value.disabledDates,Pt.value(oi),li.value)||Ft.value.months?.includes(li.value)||!Hl(Ct.value.allowedDates,Pt.value(oi),li.value)||zn(Me.yearRange,Pt.value(oi)),Xt=Ge(li.value,oi),mi=Fn(Je.value,li.value,Pt.value(oi));return{active:fi,disabled:ri,isBetween:Xt,highlighted:mi}})),St=(oi,li)=>pt(it(H()),oi,Pt.value(li)),Ye=(oi,li)=>{const fi=qt.value?qt.value:it(new Date);qt.value=pt(fi,oi,Pt.value(li)),xe("auto-apply"),xe("update-flow-step")},ke=(oi,li)=>{const fi=St(oi,li);vt.value.fixedEnd||vt.value.fixedStart?qt.value=Vn(fi,qt,xe,vt):qt.value?ii(fi,qt.value)&&(qt.value=tn(qt,St(oi,li),xe)):qt.value=[St(oi,li)],nextTick().then(()=>{pa(qt.value,xe,Me.autoApply,Me.modelAuto)})},Xe=(oi,li)=>{en(St(oi,li),qt,$t.value.limit),xe("auto-apply",!0)},Vt=(oi,li)=>(zt.value[li].month=oi,ei(li,zt.value[li].year,oi),$t.value.enabled?Xe(oi,li):vt.value.enabled?ke(oi,li):Ye(oi,li)),Jt=(oi,li)=>{ti(oi,li),ei(li,oi,null)},ei=(oi,li,fi)=>{let ri=fi;if(!ri&&ri!==0){const Xt=Ae();ri=Array.isArray(Xt)?Xt[oi].month:Xt.month}xe("update-month-year",{instance:oi,year:li,month:ri})};return{groupedMonths:_t,groupedYears:di,year:Pt,isDisabled:Mi,defaultedMultiCalendars:Ke,defaultedAriaLabels:ze,defaultedTransitions:We,defaultedConfig:De,showYearPicker:ci,modelValue:qt,presetDate:(oi,li)=>{Un({value:oi,modelValue:qt,range:vt.value.enabled,timezone:li?void 0:yt.value.timezone}),xe("auto-apply")},setHoverDate:(oi,li)=>{Ut.value=St(oi,li)},selectMonth:Vt,selectYear:Jt,toggleYearPicker:vi,handleYearSelect:bi,handleYear:pi,getModelMonthYear:Ae}},hr=defineComponent({compatConfig:{MODE:3},__name:"MonthPicker",props:{...dt},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range","overlay-toggle"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=useSlots(),De=et(We,"yearMode"),vt=Me;onMounted(()=>{vt.shadow||ze("mount",null)});const{groupedMonths:Je,groupedYears:Ct,year:yt,isDisabled:Ft,defaultedMultiCalendars:$t,defaultedConfig:Rt,showYearPicker:qt,modelValue:Pt,presetDate:Nt,setHoverDate:zt,selectMonth:Gt,selectYear:Ut,toggleYearPicker:ii,handleYearSelect:ti,handleYear:di,getModelMonthYear:ci}=yr(vt,ze);return xe({getSidebarProps:()=>({modelValue:Pt,year:yt,getModelMonthYear:ci,selectMonth:Gt,selectYear:Ut,handleYear:di}),presetDate:Nt,toggleYearPicker:vi=>ii(0,vi)}),(vi,bi)=>(openBlock(),createBlock(ma,{"multi-calendars":unref($t).count,collapse:vi.collapse,stretch:"","is-mobile":vi.isMobile},{default:withCtx(({instance:pi})=>[vi.$slots["top-extra"]?renderSlot(vi.$slots,"top-extra",{key:0,value:vi.internalModelValue}):createCommentVNode("",!0),vi.$slots["month-year"]?renderSlot(vi.$slots,"month-year",normalizeProps(mergeProps({key:1},{year:unref(yt),months:unref(Je)(pi),years:unref(Ct)(pi),selectMonth:unref(Gt),selectYear:unref(Ut),instance:pi}))):(openBlock(),createBlock(ta,{key:2,items:unref(Je)(pi),"arrow-navigation":vi.arrowNavigation,"is-last":vi.autoApply&&!unref(Rt).keepActionRow,"esc-close":vi.escClose,height:unref(Rt).modeHeight,config:vi.config,"no-overlay-focus":!!(vi.noOverlayFocus||vi.textInput),"use-relative":"",type:"month",onSelected:Mi=>unref(Gt)(Mi,pi),onHoverValue:Mi=>unref(zt)(Mi,pi)},createSlots({header:withCtx(()=>[createVNode(Wn,mergeProps(vi.$props,{items:unref(Ct)(pi),instance:pi,"show-year-picker":unref(qt)[pi],year:unref(yt)(pi),"is-disabled":Mi=>unref(Ft)(pi,Mi),onHandleYear:Mi=>unref(di)(pi,Mi),onYearSelect:Mi=>unref(ti)(Mi,pi),onToggleYearPicker:Mi=>unref(ii)(pi,Mi?.flow,Mi?.show)}),createSlots({_:2},[renderList(unref(De),(Mi,j)=>({name:Mi,fn:withCtx(Ae=>[renderSlot(vi.$slots,Mi,normalizeProps(guardReactiveProps(Ae)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[vi.$slots["month-overlay-value"]?{name:"item",fn:withCtx(({item:Mi})=>[renderSlot(vi.$slots,"month-overlay-value",{text:Mi.text,value:Mi.value})]),key:"0"}:void 0]),1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),br=(Me,xe)=>{const Ke=()=>{Me.isTextInputDate&&(Ft.value=getYear(H(Me.startDate)))},{modelValue:ze}=na(Me,xe,Ke),We=ref$1(null),{defaultedHighlight:De,defaultedMultiDates:vt,defaultedFilters:Je,defaultedRange:Ct,propDates:yt}=Oe(Me),Ft=ref$1();onMounted(()=>{Me.startDate&&(ze.value&&Me.focusStartDate||!ze.value)&&(Ft.value=getYear(H(Me.startDate)))});const $t=Gt=>Array.isArray(ze.value)?ze.value.some(Ut=>getYear(Ut)===Gt):ze.value?getYear(ze.value)===Gt:!1,Rt=Gt=>Ct.value.enabled&&Array.isArray(ze.value)?xt(ze.value,We.value,zt(Gt)):!1,qt=Gt=>yt.value.allowedDates instanceof Map?yt.value.allowedDates.size?yt.value.allowedDates.has(`${Gt}`):!1:!0,Pt=Gt=>yt.value.disabledDates instanceof Map?yt.value.disabledDates.size?yt.value.disabledDates.has(`${Gt}`):!1:typeof yt.value.disabledDates=="function"?yt.value.disabledDates(setYear(Fe(startOfYear(H())),Gt)):!0,Nt=computed(()=>Ht(qa(Me.yearRange,Me.locale,Me.reverseYears),Gt=>{const Ut=$t(Gt.value),ii=Zt(Gt.value,Wt(yt.value.minDate),Wt(yt.value.maxDate))||Je.value.years.includes(Gt.value)||!qt(Gt.value)||Pt(Gt.value),ti=Rt(Gt.value)&&!Ut,di=xa(De.value,Gt.value);return{active:Ut,disabled:ii,isBetween:ti,highlighted:di}})),zt=Gt=>setYear(it(startOfYear(new Date)),Gt);return{groupedYears:Nt,modelValue:ze,focusYear:Ft,setHoverValue:Gt=>{We.value=setYear(it(new Date),Gt)},selectYear:Gt=>{if(xe("update-month-year",{instance:0,year:Gt}),vt.value.enabled)return ze.value?Array.isArray(ze.value)&&((ze.value?.map(Ut=>getYear(Ut))).includes(Gt)?ze.value=ze.value.filter(Ut=>getYear(Ut)!==Gt):ze.value.push(setYear(Fe(H()),Gt))):ze.value=[setYear(Fe(startOfYear(H())),Gt)],xe("auto-apply",!0);Ct.value.enabled?(ze.value=tn(ze,zt(Gt),xe),nextTick().then(()=>{pa(ze.value,xe,Me.autoApply,Me.modelAuto)})):(ze.value=zt(Gt),xe("auto-apply"))}}},kr=defineComponent({compatConfig:{MODE:3},__name:"YearPicker",props:{...dt},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{groupedYears:De,modelValue:vt,focusYear:Je,selectYear:Ct,setHoverValue:yt}=br(We,ze),{defaultedConfig:Ft}=Oe(We);return xe({getSidebarProps:()=>({modelValue:vt,selectYear:Ct})}),($t,Rt)=>(openBlock(),createElementBlock("div",null,[$t.$slots["top-extra"]?renderSlot($t.$slots,"top-extra",{key:0,value:$t.internalModelValue}):createCommentVNode("",!0),$t.$slots["month-year"]?renderSlot($t.$slots,"month-year",normalizeProps(mergeProps({key:1},{years:unref(De),selectYear:unref(Ct)}))):(openBlock(),createBlock(ta,{key:2,items:unref(De),"is-last":$t.autoApply&&!unref(Ft).keepActionRow,height:unref(Ft).modeHeight,config:$t.config,"no-overlay-focus":!!($t.noOverlayFocus||$t.textInput),"focus-value":unref(Je),type:"year","use-relative":"",onSelected:unref(Ct),onHoverValue:unref(yt)},createSlots({_:2},[$t.$slots["year-overlay-value"]?{name:"item",fn:withCtx(({item:qt})=>[renderSlot($t.$slots,"year-overlay-value",{text:qt.text,value:qt.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),wr={key:0,class:"dp__time_input"},Dr=["data-compact","data-collapsed"],Mr=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],$r=["aria-label","disabled","data-test-id","onKeydown","onClick"],Ar=["data-test-id","aria-label","onKeydown","onClick","onMousedown"],Tr={key:0},Sr=["aria-label","data-compact"],Pr=defineComponent({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...dt},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","overlay-opened","am-pm-change"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{setTimePickerElements:De,setTimePickerBackRef:vt}=At(),{defaultedAriaLabels:Je,defaultedTransitions:Ct,defaultedFilters:yt,defaultedConfig:Ft,defaultedRange:$t,defaultedMultiCalendars:Rt}=Oe(We),{transitionName:qt,showTransition:Pt}=aa(Ct),Nt=reactive({hours:!1,minutes:!1,seconds:!1}),zt=ref$1("AM"),Gt=ref$1(null),Ut=ref$1([]),ii=ref$1(),ti=ref$1(!1);onMounted(()=>{ze("mounted")});const di=gi=>set(new Date,{hours:gi.hours,minutes:gi.minutes,seconds:We.enableSeconds?gi.seconds:0,milliseconds:0}),ci=computed(()=>gi=>ke(gi,We[gi])||bi(gi,We[gi])),vi=computed(()=>({hours:We.hours,minutes:We.minutes,seconds:We.seconds})),bi=(gi,Ui)=>$t.value.enabled&&!$t.value.disableTimeRangeValidation?!We.validateTime(gi,Ui):!1,pi=(gi,Ui)=>{if($t.value.enabled&&!$t.value.disableTimeRangeValidation){const Ei=Ui?+We[`${gi}Increment`]:-+We[`${gi}Increment`],Li=We[gi]+Ei;return!We.validateTime(gi,Li)}return!1},Mi=computed(()=>gi=>!oi(+We[gi]+ +We[`${gi}Increment`],gi)||pi(gi,!0)),j=computed(()=>gi=>!oi(+We[gi]-+We[`${gi}Increment`],gi)||pi(gi,!1)),Ae=(gi,Ui)=>add(set(H(),gi),Ui),He=(gi,Ui)=>sub(set(H(),gi),Ui),Ue=computed(()=>({dp__time_col:!0,dp__time_col_block:!We.timePickerInline,dp__time_col_reg_block:!We.enableSeconds&&We.is24&&!We.timePickerInline,dp__time_col_reg_inline:!We.enableSeconds&&We.is24&&We.timePickerInline,dp__time_col_reg_with_button:!We.enableSeconds&&!We.is24,dp__time_col_sec:We.enableSeconds&&We.is24,dp__time_col_sec_with_button:We.enableSeconds&&!We.is24})),Ge=computed(()=>We.timePickerInline&&$t.value.enabled&&!Rt.value.count),_t=computed(()=>{const gi=[{type:"hours"}];return We.enableMinutes&&gi.push({type:"",separator:!0},{type:"minutes"}),We.enableSeconds&&gi.push({type:"",separator:!0},{type:"seconds"}),gi}),St=computed(()=>_t.value.filter(gi=>!gi.separator)),Ye=computed(()=>gi=>{if(gi==="hours"){const Ui=Fi(+We.hours);return{text:Ui<10?`0${Ui}`:`${Ui}`,value:Ui}}return{text:We[gi]<10?`0${We[gi]}`:`${We[gi]}`,value:We[gi]}}),ke=(gi,Ui)=>{if(!We.disabledTimesConfig)return!1;const Ei=We.disabledTimesConfig(We.order,gi==="hours"?Ui:void 0);return Ei[gi]?!!Ei[gi]?.includes(Ui):!0},Xe=(gi,Ui)=>Ui!=="hours"||zt.value==="AM"?gi:gi+12,Vt=gi=>{const Ui=We.is24?24:12,Ei=gi==="hours"?Ui:60,Li=+We[`${gi}GridIncrement`],Ti=gi==="hours"&&!We.is24?Li:0,Hi=[];for(let zi=Ti;zi({active:!1,disabled:yt.value.times[gi].includes(zi.value)||!oi(zi.value,gi)||ke(gi,zi.value)||bi(gi,zi.value)}))},Jt=gi=>gi>=0?gi:59,ei=gi=>gi>=0?gi:23,oi=(gi,Ui)=>{const Ei=We.minTime?di(Sa(We.minTime)):null,Li=We.maxTime?di(Sa(We.maxTime)):null,Ti=di(Sa(vi.value,Ui,Ui==="minutes"||Ui==="seconds"?Jt(gi):ei(gi)));return Ei&&Li?(isBefore(Ti,Li)||isEqual(Ti,Li))&&(isAfter(Ti,Ei)||isEqual(Ti,Ei)):Ei?isAfter(Ti,Ei)||isEqual(Ti,Ei):Li?isBefore(Ti,Li)||isEqual(Ti,Li):!0},li=gi=>We[`no${gi[0].toUpperCase()+gi.slice(1)}Overlay`],fi=gi=>{li(gi)||(Nt[gi]=!Nt[gi],Nt[gi]?(ti.value=!0,ze("overlay-opened",gi)):(ti.value=!1,ze("overlay-closed",gi)))},ri=gi=>gi==="hours"?getHours:gi==="minutes"?getMinutes:getSeconds,Xt=()=>{ii.value&&clearTimeout(ii.value)},mi=(gi,Ui=!0,Ei)=>{const Li=Ui?Ae:He,Ti=Ui?+We[`${gi}Increment`]:-+We[`${gi}Increment`];oi(+We[gi]+Ti,gi)&&ze(`update:${gi}`,ri(gi)(Li({[gi]:+We[gi]},{[gi]:+We[`${gi}Increment`]}))),!Ei?.keyboard&&Ft.value.timeArrowHoldThreshold&&(ii.value=setTimeout(()=>{mi(gi,Ui)},Ft.value.timeArrowHoldThreshold))},Fi=gi=>We.is24?gi:(gi>=12?zt.value="PM":zt.value="AM",Sl(gi)),si=()=>{zt.value==="PM"?(zt.value="AM",ze("update:hours",We.hours-12)):(zt.value="PM",ze("update:hours",We.hours+12)),ze("am-pm-change",zt.value)},hi=gi=>{Nt[gi]=!0},ki=(gi,Ui,Ei)=>{if(gi&&We.arrowNavigation){Array.isArray(Ut.value[Ui])?Ut.value[Ui][Ei]=gi:Ut.value[Ui]=[gi];const Li=Ut.value.reduce((Ti,Hi)=>Hi.map((zi,an)=>[...Ti[an]||[],Hi[an]]),[]);vt(We.closeTimePickerBtn),Gt.value&&(Li[1]=Li[1].concat(Gt.value)),De(Li,We.order)}},Bi=(gi,Ui)=>(fi(gi),ze(`update:${gi}`,Ui));return xe({openChildCmp:hi}),(gi,Ui)=>gi.disabled?createCommentVNode("",!0):(openBlock(),createElementBlock("div",wr,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_t.value,(Ei,Li)=>(openBlock(),createElementBlock("div",{key:Li,class:normalizeClass(Ue.value),"data-compact":Ge.value&&!gi.enableSeconds,"data-collapsed":Ge.value&&gi.enableSeconds},[Ei.separator?(openBlock(),createElementBlock(Fragment,{key:0},[ti.value?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(":")],64))],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("button",{ref_for:!0,ref:Ti=>ki(Ti,Li,0),type:"button",class:normalizeClass({dp__btn:!0,dp__inc_dec_button:!gi.timePickerInline,dp__inc_dec_button_inline:gi.timePickerInline,dp__tp_inline_btn_top:gi.timePickerInline,dp__inc_dec_button_disabled:Mi.value(Ei.type),"dp--hidden-el":ti.value}),"data-test-id":`${Ei.type}-time-inc-btn-${We.order}`,"aria-label":unref(Je)?.incrementValue(Ei.type),tabindex:"0",onKeydown:Ti=>unref(qe)(Ti,()=>mi(Ei.type,!0,{keyboard:!0}),!0),onClick:Ti=>unref(Ft).timeArrowHoldThreshold?void 0:mi(Ei.type,!0),onMousedown:Ti=>unref(Ft).timeArrowHoldThreshold?mi(Ei.type,!0):void 0,onMouseup:Xt},[We.timePickerInline?(openBlock(),createElementBlock(Fragment,{key:1},[gi.$slots["tp-inline-arrow-up"]?renderSlot(gi.$slots,"tp-inline-arrow-up",{key:0}):(openBlock(),createElementBlock(Fragment,{key:1},[Ui[2]||(Ui[2]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Ui[3]||(Ui[3]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(openBlock(),createElementBlock(Fragment,{key:0},[gi.$slots["arrow-up"]?renderSlot(gi.$slots,"arrow-up",{key:0}):createCommentVNode("",!0),gi.$slots["arrow-up"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ka),{key:1}))],64))],42,Mr),createBaseVNode("button",{ref_for:!0,ref:Ti=>ki(Ti,Li,1),type:"button","aria-label":`${Ye.value(Ei.type).text}-${unref(Je)?.openTpOverlay(Ei.type)}`,class:normalizeClass({dp__time_display:!0,dp__time_display_block:!gi.timePickerInline,dp__time_display_inline:gi.timePickerInline,"dp--time-invalid":ci.value(Ei.type),"dp--time-overlay-btn":!ci.value(Ei.type),"dp--hidden-el":ti.value}),disabled:li(Ei.type),tabindex:"0","data-test-id":`${Ei.type}-toggle-overlay-btn-${We.order}`,onKeydown:Ti=>unref(qe)(Ti,()=>fi(Ei.type),!0),onClick:Ti=>fi(Ei.type)},[gi.$slots[Ei.type]?renderSlot(gi.$slots,Ei.type,{key:0,text:Ye.value(Ei.type).text,value:Ye.value(Ei.type).value}):createCommentVNode("",!0),gi.$slots[Ei.type]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(Ye.value(Ei.type).text),1)],64))],42,$r),createBaseVNode("button",{ref_for:!0,ref:Ti=>ki(Ti,Li,2),type:"button",class:normalizeClass({dp__btn:!0,dp__inc_dec_button:!gi.timePickerInline,dp__inc_dec_button_inline:gi.timePickerInline,dp__tp_inline_btn_bottom:gi.timePickerInline,dp__inc_dec_button_disabled:j.value(Ei.type),"dp--hidden-el":ti.value}),"data-test-id":`${Ei.type}-time-dec-btn-${We.order}`,"aria-label":unref(Je)?.decrementValue(Ei.type),tabindex:"0",onKeydown:Ti=>unref(qe)(Ti,()=>mi(Ei.type,!1,{keyboard:!0}),!0),onClick:Ti=>unref(Ft).timeArrowHoldThreshold?void 0:mi(Ei.type,!1),onMousedown:Ti=>unref(Ft).timeArrowHoldThreshold?mi(Ei.type,!1):void 0,onMouseup:Xt},[We.timePickerInline?(openBlock(),createElementBlock(Fragment,{key:1},[gi.$slots["tp-inline-arrow-down"]?renderSlot(gi.$slots,"tp-inline-arrow-down",{key:0}):(openBlock(),createElementBlock(Fragment,{key:1},[Ui[4]||(Ui[4]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),Ui[5]||(Ui[5]=createBaseVNode("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))],64))],64)):(openBlock(),createElementBlock(Fragment,{key:0},[gi.$slots["arrow-down"]?renderSlot(gi.$slots,"arrow-down",{key:0}):createCommentVNode("",!0),gi.$slots["arrow-down"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ga),{key:1}))],64))],42,Ar)],64))],10,Dr))),128)),gi.is24?createCommentVNode("",!0):(openBlock(),createElementBlock("div",Tr,[gi.$slots["am-pm-button"]?renderSlot(gi.$slots,"am-pm-button",{key:0,toggle:si,value:zt.value}):createCommentVNode("",!0),gi.$slots["am-pm-button"]?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,ref_key:"amPmButton",ref:Gt,type:"button",class:"dp__pm_am_button",role:"button","aria-label":unref(Je)?.amPmButton,tabindex:"0","data-compact":Ge.value,onClick:si,onKeydown:Ui[0]||(Ui[0]=Ei=>unref(qe)(Ei,()=>si(),!0))},toDisplayString(zt.value),41,Sr))])),(openBlock(!0),createElementBlock(Fragment,null,renderList(St.value,(Ei,Li)=>(openBlock(),createBlock(Transition,{key:Li,name:unref(qt)(Nt[Ei.type]),css:unref(Pt)},{default:withCtx(()=>[Nt[Ei.type]?(openBlock(),createBlock(ta,{key:0,items:Vt(Ei.type),"is-last":gi.autoApply&&!unref(Ft).keepActionRow,"esc-close":gi.escClose,type:Ei.type,"text-input":gi.textInput,config:gi.config,"arrow-navigation":gi.arrowNavigation,"aria-labels":gi.ariaLabels,"overlay-label":unref(Je).timeOverlay?.(Ei.type),onSelected:Ti=>Bi(Ei.type,Ti),onToggle:Ti=>fi(Ei.type),onResetFlow:Ui[1]||(Ui[1]=Ti=>gi.$emit("reset-flow"))},createSlots({"button-icon":withCtx(()=>[gi.$slots["clock-icon"]?renderSlot(gi.$slots,"clock-icon",{key:0}):createCommentVNode("",!0),gi.$slots["clock-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(gi.timePickerInline?unref(jt):unref(ja)),{key:1}))]),_:2},[gi.$slots[`${Ei.type}-overlay-value`]?{name:"item",fn:withCtx(({item:Ti})=>[renderSlot(gi.$slots,`${Ei.type}-overlay-value`,{text:Ti.text,value:Ti.value})]),key:"0"}:void 0,gi.$slots[`${Ei.type}-overlay-header`]?{name:"header",fn:withCtx(()=>[renderSlot(gi.$slots,`${Ei.type}-overlay-header`,{toggle:()=>fi(Ei.type)})]),key:"1"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","overlay-label","onSelected","onToggle"])):createCommentVNode("",!0)]),_:2},1032,["name","css"]))),128))]))}}),Rr=["data-dp-mobile"],Cr=["aria-label","tabindex"],Or=["role","aria-label","tabindex"],Br=["aria-label"],Kn=defineComponent({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...dt},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{buildMatrix:De,setTimePicker:vt}=At(),Je=useSlots(),{defaultedTransitions:Ct,defaultedAriaLabels:yt,defaultedTextInput:Ft,defaultedConfig:$t,defaultedRange:Rt}=Oe(We),{transitionName:qt,showTransition:Pt}=aa(Ct),{hideNavigationButtons:Nt}=ga(),zt=ref$1(null),Gt=ref$1(null),Ut=ref$1([]),ii=ref$1(null),ti=ref$1(!1);onMounted(()=>{ze("mount"),!We.timePicker&&We.arrowNavigation?De([Le(zt.value)],"time"):vt(!0,We.timePicker)});const di=computed(()=>Rt.value.enabled&&We.modelAuto?Rn(We.internalModelValue):!0),ci=ref$1(!1),vi=ke=>({hours:Array.isArray(We.hours)?We.hours[ke]:We.hours,minutes:Array.isArray(We.minutes)?We.minutes[ke]:We.minutes,seconds:Array.isArray(We.seconds)?We.seconds[ke]:We.seconds}),bi=computed(()=>{const ke=[];if(Rt.value.enabled)for(let Xe=0;Xe<2;Xe++)ke.push(vi(Xe));else ke.push(vi(0));return ke}),pi=(ke,Xe=!1,Vt="")=>{Xe||ze("reset-flow"),ci.value=ke,ze(ke?"overlay-opened":"overlay-closed",je.time),We.arrowNavigation&&vt(ke),nextTick(()=>{Vt!==""&&Ut.value[0]&&Ut.value[0].openChildCmp(Vt)})},Mi=computed(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:We.autoApply&&!$t.value.keepActionRow})),j=et(Je,"timePicker"),Ae=(ke,Xe,Vt)=>Rt.value.enabled?Xe===0?[ke,bi.value[1][Vt]]:[bi.value[0][Vt],ke]:ke,He=ke=>{ze("update:hours",ke)},Ue=ke=>{ze("update:minutes",ke)},Ge=ke=>{ze("update:seconds",ke)},_t=()=>{if(ii.value&&!Ft.value.enabled&&!We.noOverlayFocus){const ke=Cn(ii.value);ke&&ke.focus({preventScroll:!0})}},St=ke=>{ti.value=!1,ze("overlay-closed",ke)},Ye=ke=>{ti.value=!0,ze("overlay-opened",ke)};return xe({toggleTimePicker:pi}),(ke,Xe)=>(openBlock(),createElementBlock("div",{class:"dp--tp-wrap","data-dp-mobile":ke.isMobile},[!ke.timePicker&&!ke.timePickerInline?withDirectives((openBlock(),createElementBlock("button",{key:0,ref_key:"openTimePickerBtn",ref:zt,type:"button",class:normalizeClass({...Mi.value,"dp--hidden-el":ci.value}),"aria-label":unref(yt)?.openTimePicker,tabindex:ke.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:Xe[0]||(Xe[0]=Vt=>unref(qe)(Vt,()=>pi(!0))),onClick:Xe[1]||(Xe[1]=Vt=>pi(!0))},[ke.$slots["clock-icon"]?renderSlot(ke.$slots,"clock-icon",{key:0}):createCommentVNode("",!0),ke.$slots["clock-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(ja),{key:1}))],42,Cr)),[[vShow,!unref(Nt)(ke.hideNavigation,"time")]]):createCommentVNode("",!0),createVNode(Transition,{name:unref(qt)(ci.value),css:unref(Pt)&&!ke.timePickerInline},{default:withCtx(()=>[ci.value||ke.timePicker||ke.timePickerInline?(openBlock(),createElementBlock("div",{key:0,ref_key:"overlayRef",ref:ii,role:ke.timePickerInline?void 0:"dialog",class:normalizeClass({dp__overlay:!ke.timePickerInline,"dp--overlay-absolute":!We.timePicker&&!ke.timePickerInline,"dp--overlay-relative":We.timePicker}),style:normalizeStyle(ke.timePicker?{height:`${unref($t).modeHeight}px`}:void 0),"aria-label":unref(yt)?.timePicker,tabindex:ke.timePickerInline?void 0:0},[createBaseVNode("div",{class:normalizeClass(ke.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[ke.$slots["time-picker-overlay"]?renderSlot(ke.$slots,"time-picker-overlay",{key:0,hours:Me.hours,minutes:Me.minutes,seconds:Me.seconds,setHours:He,setMinutes:Ue,setSeconds:Ge}):createCommentVNode("",!0),ke.$slots["time-picker-overlay"]?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(ke.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(openBlock(!0),createElementBlock(Fragment,null,renderList(bi.value,(Vt,Jt)=>withDirectives((openBlock(),createBlock(Pr,mergeProps({key:Jt},{ref_for:!0},{...ke.$props,order:Jt,hours:Vt.hours,minutes:Vt.minutes,seconds:Vt.seconds,closeTimePickerBtn:Gt.value,disabledTimesConfig:Me.disabledTimesConfig,disabled:Jt===0?unref(Rt).fixedStart:unref(Rt).fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:Ut,"validate-time":(ei,oi)=>Me.validateTime(ei,Ae(oi,Jt,ei)),"onUpdate:hours":ei=>He(Ae(ei,Jt,"hours")),"onUpdate:minutes":ei=>Ue(Ae(ei,Jt,"minutes")),"onUpdate:seconds":ei=>Ge(Ae(ei,Jt,"seconds")),onMounted:_t,onOverlayClosed:St,onOverlayOpened:Ye,onAmPmChange:Xe[2]||(Xe[2]=ei=>ke.$emit("am-pm-change",ei))}),createSlots({_:2},[renderList(unref(j),(ei,oi)=>({name:ei,fn:withCtx(li=>[renderSlot(ke.$slots,ei,mergeProps({ref_for:!0},li))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[vShow,Jt===0?!0:di.value]])),128))],2)),!ke.timePicker&&!ke.timePickerInline?withDirectives((openBlock(),createElementBlock("button",{key:2,ref_key:"closeTimePickerBtn",ref:Gt,type:"button",class:normalizeClass({...Mi.value,"dp--hidden-el":ti.value}),"aria-label":unref(yt)?.closeTimePicker,tabindex:"0",onKeydown:Xe[3]||(Xe[3]=Vt=>unref(qe)(Vt,()=>pi(!1))),onClick:Xe[4]||(Xe[4]=Vt=>pi(!1))},[ke.$slots["calendar-icon"]?renderSlot(ke.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),ke.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(jt),{key:1}))],42,Br)),[[vShow,!unref(Nt)(ke.hideNavigation,"time")]]):createCommentVNode("",!0)],2)],14,Or)):createCommentVNode("",!0)]),_:3},8,["name","css"])],8,Rr))}}),Gn=(Me,xe,Ke,ze)=>{const{defaultedRange:We}=Oe(Me),De=(ii,ti)=>Array.isArray(xe[ii])?xe[ii][ti]:xe[ii],vt=ii=>Me.enableSeconds?Array.isArray(xe.seconds)?xe.seconds[ii]:xe.seconds:0,Je=(ii,ti)=>ii?ti!==void 0?Mt(ii,De("hours",ti),De("minutes",ti),vt(ti)):Mt(ii,xe.hours,xe.minutes,vt()):setSeconds(H(),vt(ti)),Ct=(ii,ti)=>{xe[ii]=ti},yt=computed(()=>Me.modelAuto&&We.value.enabled?Array.isArray(Ke.value)?Ke.value.length>1:!1:We.value.enabled),Ft=(ii,ti)=>{const di=Object.fromEntries(Object.keys(xe).map(ci=>ci===ii?[ci,ti]:[ci,xe[ci]].slice()));if(yt.value&&!We.value.disableTimeRangeValidation){const ci=bi=>Ke.value?Mt(Ke.value[bi],di.hours[bi],di.minutes[bi],di.seconds[bi]):null,vi=bi=>setMilliseconds(Ke.value[bi],0);return!($e(ci(0),ci(1))&&(isAfter(ci(0),vi(1))||isBefore(ci(1),vi(0))))}return!0},$t=(ii,ti)=>{Ft(ii,ti)&&(Ct(ii,ti),ze&&ze())},Rt=ii=>{$t("hours",ii)},qt=ii=>{$t("minutes",ii)},Pt=ii=>{$t("seconds",ii)},Nt=(ii,ti,di,ci)=>{ti&&Rt(ii),!ti&&!di&&qt(ii),di&&Pt(ii),Ke.value&&ci(Ke.value)},zt=ii=>{if(ii){const ti=Array.isArray(ii),di=ti?[+ii[0].hours,+ii[1].hours]:+ii.hours,ci=ti?[+ii[0].minutes,+ii[1].minutes]:+ii.minutes,vi=ti?[+ii[0].seconds,+ii[1].seconds]:+ii.seconds;Ct("hours",di),Ct("minutes",ci),Me.enableSeconds&&Ct("seconds",vi)}},Gt=(ii,ti)=>{const di={hours:Array.isArray(xe.hours)?xe.hours[ii]:xe.hours,disabledArr:[]};return(ti||ti===0)&&(di.hours=ti),Array.isArray(Me.disabledTimes)&&(di.disabledArr=We.value.enabled&&Array.isArray(Me.disabledTimes[ii])?Me.disabledTimes[ii]:Me.disabledTimes),di},Ut=computed(()=>(ii,ti)=>{if(Array.isArray(Me.disabledTimes)){const{disabledArr:di,hours:ci}=Gt(ii,ti),vi=di.filter(bi=>+bi.hours===ci);return vi[0]?.minutes==="*"?{hours:[ci],minutes:void 0,seconds:void 0}:{hours:[],minutes:vi?.map(bi=>+bi.minutes)??[],seconds:vi?.map(bi=>bi.seconds?+bi.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:Ct,updateHours:Rt,updateMinutes:qt,updateSeconds:Pt,getSetDateTime:Je,updateTimeValues:Nt,getSecondsValue:vt,assignStartTime:zt,validateTime:Ft,disabledTimesConfig:Ut}},_r=(Me,xe)=>{const Ke=()=>{Me.isTextInputDate&&ti()},{modelValue:ze,time:We}=na(Me,xe,Ke),{defaultedStartTime:De,defaultedRange:vt,defaultedTz:Je}=Oe(Me),{updateTimeValues:Ct,getSetDateTime:yt,setTime:Ft,assignStartTime:$t,disabledTimesConfig:Rt,validateTime:qt}=Gn(Me,We,ze,Pt);function Pt(){xe("update-flow-step")}const Nt=ci=>{const{hours:vi,minutes:bi,seconds:pi}=ci;return{hours:+vi,minutes:+bi,seconds:pi?+pi:0}},zt=()=>{if(Me.startTime){if(Array.isArray(Me.startTime)){const vi=Nt(Me.startTime[0]),bi=Nt(Me.startTime[1]);return[set(H(),vi),set(H(),bi)]}const ci=Nt(Me.startTime);return set(H(),ci)}return vt.value.enabled?[null,null]:null},Gt=()=>{if(vt.value.enabled){const[ci,vi]=zt();ze.value=[Ze(yt(ci,0),Je.value.timezone),Ze(yt(vi,1),Je.value.timezone)]}else ze.value=Ze(yt(zt()),Je.value.timezone)},Ut=ci=>Array.isArray(ci)?[Bt(H(ci[0])),Bt(H(ci[1]))]:[Bt(ci??H())],ii=(ci,vi,bi)=>{Ft("hours",ci),Ft("minutes",vi),Ft("seconds",Me.enableSeconds?bi:0)},ti=()=>{const[ci,vi]=Ut(ze.value);return vt.value.enabled?ii([ci.hours,vi.hours],[ci.minutes,vi.minutes],[ci.seconds,vi.seconds]):ii(ci.hours,ci.minutes,ci.seconds)};onMounted(()=>{if(!Me.shadow)return $t(De.value),ze.value?ti():Gt()});const di=()=>{Array.isArray(ze.value)?ze.value=ze.value.map((ci,vi)=>ci&&yt(ci,vi)):ze.value=yt(ze.value),xe("time-update")};return{modelValue:ze,time:We,disabledTimesConfig:Rt,updateTime:(ci,vi=!0,bi=!1)=>{Ct(ci,vi,bi,di)},validateTime:qt}},Yr=defineComponent({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...dt},emits:["update:internal-model-value","time-update","am-pm-change","mount","reset-flow","update-flow-step","overlay-toggle"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,De=useSlots(),vt=et(De,"timePicker"),Je=ref$1(null),{time:Ct,modelValue:yt,disabledTimesConfig:Ft,updateTime:$t,validateTime:Rt}=_r(We,ze);return onMounted(()=>{We.shadow||ze("mount",null)}),xe({getSidebarProps:()=>({modelValue:yt,time:Ct,updateTime:$t}),toggleTimePicker:(qt,Pt=!1,Nt="")=>{Je.value?.toggleTimePicker(qt,Pt,Nt)}}),(qt,Pt)=>(openBlock(),createBlock(ma,{"multi-calendars":0,stretch:"","is-mobile":qt.isMobile},{default:withCtx(()=>[createVNode(Kn,mergeProps({ref_key:"tpRef",ref:Je},qt.$props,{hours:unref(Ct).hours,minutes:unref(Ct).minutes,seconds:unref(Ct).seconds,"internal-model-value":qt.internalModelValue,"disabled-times-config":unref(Ft),"validate-time":unref(Rt),"onUpdate:hours":Pt[0]||(Pt[0]=Nt=>unref($t)(Nt)),"onUpdate:minutes":Pt[1]||(Pt[1]=Nt=>unref($t)(Nt,!1)),"onUpdate:seconds":Pt[2]||(Pt[2]=Nt=>unref($t)(Nt,!1,!0)),onAmPmChange:Pt[3]||(Pt[3]=Nt=>qt.$emit("am-pm-change",Nt)),onResetFlow:Pt[4]||(Pt[4]=Nt=>qt.$emit("reset-flow")),onOverlayClosed:Pt[5]||(Pt[5]=Nt=>qt.$emit("overlay-toggle",{open:!1,overlay:Nt})),onOverlayOpened:Pt[6]||(Pt[6]=Nt=>qt.$emit("overlay-toggle",{open:!0,overlay:Nt}))}),createSlots({_:2},[renderList(unref(vt),(Nt,zt)=>({name:Nt,fn:withCtx(Gt=>[renderSlot(qt.$slots,Nt,normalizeProps(guardReactiveProps(Gt)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3},8,["is-mobile"]))}}),Ir={class:"dp--header-wrap"},Er={key:0,class:"dp__month_year_wrap"},Nr={key:0},Lr={class:"dp__month_year_wrap"},Fr=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],zr=defineComponent({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...dt},emits:["update-month-year","mount","reset-flow","overlay-closed","overlay-opened"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{defaultedTransitions:De,defaultedAriaLabels:vt,defaultedMultiCalendars:Je,defaultedFilters:Ct,defaultedConfig:yt,defaultedHighlight:Ft,propDates:$t,defaultedUI:Rt}=Oe(We),{transitionName:qt,showTransition:Pt}=aa(De),{buildMatrix:Nt}=At(),{handleMonthYearChange:zt,isDisabled:Gt,updateMonthYear:Ut}=or(We,ze),{showLeftIcon:ii,showRightIcon:ti}=ga(),di=ref$1(!1),ci=ref$1(!1),vi=ref$1(!1),bi=ref$1([null,null,null,null]);onMounted(()=>{ze("mount")});const pi=ei=>({get:()=>We[ei],set:oi=>{const li=ei===ot.month?ot.year:ot.month;ze("update-month-year",{[ei]:oi,[li]:We[li]}),ei===ot.month?St(!0):Ye(!0)}}),Mi=computed(pi(ot.month)),j=computed(pi(ot.year)),Ae=computed(()=>ei=>({month:We.month,year:We.year,items:ei===ot.month?We.months:We.years,instance:We.instance,updateMonthYear:Ut,toggle:ei===ot.month?St:Ye})),He=computed(()=>We.months.find(ei=>ei.value===We.month)||{text:"",value:0}),Ue=computed(()=>Ht(We.months,ei=>{const oi=We.month===ei.value,li=Zt(ei.value,_n(We.year,$t.value.minDate),Yn(We.year,$t.value.maxDate))||Ct.value.months.includes(ei.value),fi=Fn(Ft.value,ei.value,We.year);return{active:oi,disabled:li,highlighted:fi}})),Ge=computed(()=>Ht(We.years,ei=>{const oi=We.year===ei.value,li=Zt(ei.value,Wt($t.value.minDate),Wt($t.value.maxDate))||Ct.value.years.includes(ei.value),fi=xa(Ft.value,ei.value);return{active:oi,disabled:li,highlighted:fi}})),_t=(ei,oi,li)=>{li!==void 0?ei.value=li:ei.value=!ei.value,ei.value?(vi.value=!0,ze("overlay-opened",oi)):(vi.value=!1,ze("overlay-closed",oi))},St=(ei=!1,oi)=>{ke(ei),_t(di,je.month,oi)},Ye=(ei=!1,oi)=>{ke(ei),_t(ci,je.year,oi)},ke=ei=>{ei||ze("reset-flow")},Xe=(ei,oi)=>{We.arrowNavigation&&(bi.value[oi]=Le(ei),Nt(bi.value,"monthYear"))},Vt=computed(()=>[{type:ot.month,index:1,toggle:St,modelValue:Mi.value,updateModelValue:ei=>Mi.value=ei,text:He.value.text,showSelectionGrid:di.value,items:Ue.value,ariaLabel:vt.value?.openMonthsOverlay,overlayLabel:vt.value.monthPicker?.(!0)??void 0},{type:ot.year,index:2,toggle:Ye,modelValue:j.value,updateModelValue:ei=>j.value=ei,text:Ja(We.year,We.locale),showSelectionGrid:ci.value,items:Ge.value,ariaLabel:vt.value?.openYearsOverlay,overlayLabel:vt.value.yearPicker?.(!0)??void 0}]),Jt=computed(()=>We.disableYearSelect?[Vt.value[0]]:We.yearFirst?[...Vt.value].reverse():Vt.value);return xe({toggleMonthPicker:St,toggleYearPicker:Ye,handleMonthYearChange:zt}),(ei,oi)=>(openBlock(),createElementBlock("div",Ir,[ei.$slots["month-year"]?(openBlock(),createElementBlock("div",Er,[renderSlot(ei.$slots,"month-year",normalizeProps(guardReactiveProps({month:Me.month,year:Me.year,months:Me.months,years:Me.years,updateMonthYear:unref(Ut),handleMonthYearChange:unref(zt),instance:Me.instance,isDisabled:unref(Gt)})))])):(openBlock(),createElementBlock(Fragment,{key:1},[ei.$slots["top-extra"]?(openBlock(),createElementBlock("div",Nr,[renderSlot(ei.$slots,"top-extra",{value:ei.internalModelValue})])):createCommentVNode("",!0),createBaseVNode("div",Lr,[unref(ii)(unref(Je),Me.instance)&&!ei.vertical?(openBlock(),createBlock(Qt,{key:0,"aria-label":unref(vt)?.prevMonth,disabled:unref(Gt)(!1),class:normalizeClass(unref(Rt)?.navBtnPrev),"el-name":"action-prev",onActivate:oi[0]||(oi[0]=li=>unref(zt)(!1,!0)),onSetRef:oi[1]||(oi[1]=li=>Xe(li,0))},{default:withCtx(()=>[ei.$slots["arrow-left"]?renderSlot(ei.$slots,"arrow-left",{key:0}):createCommentVNode("",!0),ei.$slots["arrow-left"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ua),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["dp__month_year_wrap",{dp__year_disable_select:ei.disableYearSelect}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Jt.value,(li,fi)=>(openBlock(),createElementBlock(Fragment,{key:li.type},[createBaseVNode("button",{ref_for:!0,ref:ri=>Xe(ri,fi+1),type:"button","data-dp-element":`overlay-${li.type}`,class:normalizeClass(["dp__btn dp__month_year_select",{"dp--hidden-el":vi.value}]),"aria-label":`${li.text}-${li.ariaLabel}`,"data-test-id":`${li.type}-toggle-overlay-${Me.instance}`,onClick:li.toggle,onKeydown:ri=>unref(qe)(ri,()=>li.toggle(),!0)},[ei.$slots[li.type]?renderSlot(ei.$slots,li.type,{key:0,text:li.text,value:We[li.type]}):createCommentVNode("",!0),ei.$slots[li.type]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(li.text),1)],64))],42,Fr),createVNode(Transition,{name:unref(qt)(li.showSelectionGrid),css:unref(Pt)},{default:withCtx(()=>[li.showSelectionGrid?(openBlock(),createBlock(ta,{key:0,items:li.items,"arrow-navigation":ei.arrowNavigation,"hide-navigation":ei.hideNavigation,"is-last":ei.autoApply&&!unref(yt).keepActionRow,"skip-button-ref":!1,config:ei.config,type:li.type,"header-refs":[],"esc-close":ei.escClose,"menu-wrap-ref":ei.menuWrapRef,"text-input":ei.textInput,"aria-labels":ei.ariaLabels,"overlay-label":li.overlayLabel,onSelected:li.updateModelValue,onToggle:li.toggle},createSlots({"button-icon":withCtx(()=>[ei.$slots["calendar-icon"]?renderSlot(ei.$slots,"calendar-icon",{key:0}):createCommentVNode("",!0),ei.$slots["calendar-icon"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(jt),{key:1}))]),_:2},[ei.$slots[`${li.type}-overlay-value`]?{name:"item",fn:withCtx(({item:ri})=>[renderSlot(ei.$slots,`${li.type}-overlay-value`,{text:ri.text,value:ri.value})]),key:"0"}:void 0,ei.$slots[`${li.type}-overlay`]?{name:"overlay",fn:withCtx(()=>[renderSlot(ei.$slots,`${li.type}-overlay`,mergeProps({ref_for:!0},Ae.value(li.type)))]),key:"1"}:void 0,ei.$slots[`${li.type}-overlay-header`]?{name:"header",fn:withCtx(()=>[renderSlot(ei.$slots,`${li.type}-overlay-header`,{toggle:li.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","overlay-label","onSelected","onToggle"])):createCommentVNode("",!0)]),_:2},1032,["name","css"])],64))),128))],2),unref(ii)(unref(Je),Me.instance)&&ei.vertical?(openBlock(),createBlock(Qt,{key:1,"aria-label":unref(vt)?.prevMonth,"el-name":"action-prev",disabled:unref(Gt)(!1),class:normalizeClass(unref(Rt)?.navBtnPrev),onActivate:oi[2]||(oi[2]=li=>unref(zt)(!1,!0))},{default:withCtx(()=>[ei.$slots["arrow-up"]?renderSlot(ei.$slots,"arrow-up",{key:0}):createCommentVNode("",!0),ei.$slots["arrow-up"]?createCommentVNode("",!0):(openBlock(),createBlock(unref(Ka),{key:1}))]),_:3},8,["aria-label","disabled","class"])):createCommentVNode("",!0),unref(ti)(unref(Je),Me.instance)?(openBlock(),createBlock(Qt,{key:2,ref:"rightIcon","el-name":"action-next",disabled:unref(Gt)(!0),"aria-label":unref(vt)?.nextMonth,class:normalizeClass(unref(Rt)?.navBtnNext),onActivate:oi[3]||(oi[3]=li=>unref(zt)(!0,!0)),onSetRef:oi[4]||(oi[4]=li=>Xe(li,ei.disableYearSelect?2:3))},{default:withCtx(()=>[ei.$slots[ei.vertical?"arrow-down":"arrow-right"]?renderSlot(ei.$slots,ei.vertical?"arrow-down":"arrow-right",{key:0}):createCommentVNode("",!0),ei.$slots[ei.vertical?"arrow-down":"arrow-right"]?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(ei.vertical?unref(Ga):unref(Va)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):createCommentVNode("",!0)])],64))]))}}),Hr={class:"dp__calendar_header",role:"row"},Wr={key:0,class:"dp__calendar_header_item",role:"gridcell"},Ur=["aria-label"],Vr={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},jr={class:"dp__cell_inner"},Kr=["id","aria-selected","aria-disabled","aria-label","tabindex","data-test-id","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],Gr=defineComponent({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...dt},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{buildMultiLevelMatrix:De}=At(),{defaultedTransitions:vt,defaultedConfig:Je,defaultedAriaLabels:Ct,defaultedMultiCalendars:yt,defaultedWeekNumbers:Ft,defaultedMultiDates:$t,defaultedUI:Rt}=Oe(We),qt=ref$1(null),Pt=ref$1({bottom:"",left:"",transform:""}),Nt=ref$1([]),zt=ref$1(null),Gt=ref$1(!0),Ut=ref$1(""),ii=ref$1({startX:0,endX:0,startY:0,endY:0}),ti=ref$1([]),di=ref$1({left:"50%"}),ci=ref$1(!1),vi=computed(()=>We.calendar?We.calendar(We.mappedDates):We.mappedDates),bi=computed(()=>We.dayNames?Array.isArray(We.dayNames)?We.dayNames:We.dayNames(We.locale,+We.weekStart):Tl(We.formatLocale,We.locale,+We.weekStart));onMounted(()=>{ze("mount",{cmp:"calendar",refs:Nt}),Je.value.noSwipe||zt.value&&(zt.value.addEventListener("touchstart",Xe,{passive:!1}),zt.value.addEventListener("touchend",Vt,{passive:!1}),zt.value.addEventListener("touchmove",Jt,{passive:!1})),We.monthChangeOnScroll&&zt.value&&zt.value.addEventListener("wheel",li,{passive:!1})}),onUnmounted(()=>{Je.value.noSwipe||zt.value&&(zt.value.removeEventListener("touchstart",Xe),zt.value.removeEventListener("touchend",Vt),zt.value.removeEventListener("touchmove",Jt)),We.monthChangeOnScroll&&zt.value&&zt.value.removeEventListener("wheel",li)});const pi=si=>si?We.vertical?"vNext":"next":We.vertical?"vPrevious":"previous",Mi=(si,hi)=>{if(We.transitions){const ki=Fe(pt(H(),We.month,We.year));Ut.value=Ee(Fe(pt(H(),si,hi)),ki)?vt.value[pi(!0)]:vt.value[pi(!1)],Gt.value=!1,nextTick(()=>{Gt.value=!0})}},j=computed(()=>({...Rt.value.calendar??{}})),Ae=computed(()=>si=>{const hi=Pl(si);return{dp__marker_dot:hi.type==="dot",dp__marker_line:hi.type==="line"}}),He=computed(()=>si=>$e(si,qt.value)),Ue=computed(()=>({dp__calendar:!0,dp__calendar_next:yt.value.count>0&&We.instance!==0})),Ge=computed(()=>si=>We.hideOffsetDates?si.current:!0),_t=async(si,hi)=>{const{width:ki,height:Bi}=si.getBoundingClientRect();qt.value=hi.value;let gi={left:`${ki/2}px`},Ui=-50;if(await nextTick(),ti.value[0]){const{left:Ei,width:Li}=ti.value[0].getBoundingClientRect();Ei<0&&(gi={left:"0"},Ui=0,di.value.left=`${ki/2}px`),window.innerWidth{const Bi=Le(Nt.value[hi][ki]);Bi&&(si.marker?.customPosition&&si.marker?.tooltip?.length?Pt.value=si.marker.customPosition(Bi):await _t(Bi,si),ze("tooltip-open",si.marker))},Ye=async(si,hi,ki)=>{if(ci.value&&$t.value.enabled&&$t.value.dragSelect)return ze("select-date",si);if(ze("set-hover-date",si),si.marker?.tooltip?.length){if(We.hideOffsetDates&&!si.current)return;await St(si,hi,ki)}},ke=si=>{qt.value&&(qt.value=null,Pt.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),ze("tooltip-close",si.marker))},Xe=si=>{ii.value.startX=si.changedTouches[0].screenX,ii.value.startY=si.changedTouches[0].screenY},Vt=si=>{ii.value.endX=si.changedTouches[0].screenX,ii.value.endY=si.changedTouches[0].screenY,ei()},Jt=si=>{We.vertical&&!We.inline&&si.preventDefault()},ei=()=>{const si=We.vertical?"Y":"X";Math.abs(ii.value[`start${si}`]-ii.value[`end${si}`])>10&&ze("handle-swipe",ii.value[`start${si}`]>ii.value[`end${si}`]?"right":"left")},oi=(si,hi,ki)=>{si&&(Array.isArray(Nt.value[hi])?Nt.value[hi][ki]=si:Nt.value[hi]=[si]),We.arrowNavigation&&De(Nt.value,"calendar")},li=si=>{We.monthChangeOnScroll&&(si.preventDefault(),ze("handle-scroll",si))},fi=si=>Ft.value.type==="local"?getWeek(si.value,{weekStartsOn:+We.weekStart}):Ft.value.type==="iso"?getISOWeek(si.value):typeof Ft.value.type=="function"?Ft.value.type(si.value):"",ri=si=>{const hi=si[0];return Ft.value.hideOnOffsetDates?si.some(ki=>ki.current)?fi(hi):"":fi(hi)},Xt=(si,hi,ki=!0)=>{!ki&&_l()||(!$t.value.enabled||Je.value.allowPreventDefault)&&(Dt(si,Je.value),ze("select-date",hi))},mi=si=>{Dt(si,Je.value)},Fi=si=>{$t.value.enabled&&$t.value.dragSelect?(ci.value=!0,ze("select-date",si)):$t.value.enabled&&ze("select-date",si)};return xe({triggerTransition:Mi}),(si,hi)=>(openBlock(),createElementBlock("div",{class:normalizeClass(Ue.value)},[createBaseVNode("div",{ref_key:"calendarWrapRef",ref:zt,class:normalizeClass(j.value),role:"grid"},[createBaseVNode("div",Hr,[si.weekNumbers?(openBlock(),createElementBlock("div",Wr,toDisplayString(si.weekNumName),1)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(bi.value,(ki,Bi)=>(openBlock(),createElementBlock("div",{key:Bi,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":unref(Ct)?.weekDay?.(Bi)},[si.$slots["calendar-header"]?renderSlot(si.$slots,"calendar-header",{key:0,day:ki,index:Bi}):createCommentVNode("",!0),si.$slots["calendar-header"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(ki),1)],64))],8,Ur))),128))]),hi[2]||(hi[2]=createBaseVNode("div",{class:"dp__calendar_header_separator"},null,-1)),createVNode(Transition,{name:Ut.value,css:!!si.transitions},{default:withCtx(()=>[Gt.value?(openBlock(),createElementBlock("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:hi[1]||(hi[1]=ki=>ci.value=!1)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(vi.value,(ki,Bi)=>(openBlock(),createElementBlock("div",{key:Bi,class:"dp__calendar_row",role:"row"},[si.weekNumbers?(openBlock(),createElementBlock("div",Vr,[createBaseVNode("div",jr,toDisplayString(ri(ki.days)),1)])):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(ki.days,(gi,Ui)=>(openBlock(),createElementBlock("div",{id:unref(Ha)(gi.value),ref_for:!0,ref:Ei=>oi(Ei,Bi,Ui),key:Ui+Bi,role:"gridcell",class:"dp__calendar_item","aria-selected":(gi.classData.dp__active_date||gi.classData.dp__range_start||gi.classData.dp__range_end)??void 0,"aria-disabled":gi.classData.dp__cell_disabled||void 0,"aria-label":unref(Ct)?.day?.(gi),tabindex:!gi.current&&si.hideOffsetDates?void 0:0,"data-test-id":unref(Ha)(gi.value),onClick:withModifiers(Ei=>Xt(Ei,gi),["prevent"]),onTouchend:Ei=>Xt(Ei,gi,!1),onKeydown:Ei=>unref(qe)(Ei,()=>si.$emit("select-date",gi)),onMouseenter:Ei=>Ye(gi,Bi,Ui),onMouseleave:Ei=>ke(gi),onMousedown:Ei=>Fi(gi),onMouseup:hi[0]||(hi[0]=Ei=>ci.value=!1)},[createBaseVNode("div",{class:normalizeClass(["dp__cell_inner",gi.classData])},[si.$slots.day&&Ge.value(gi)?renderSlot(si.$slots,"day",{key:0,day:+gi.text,date:gi.value}):createCommentVNode("",!0),si.$slots.day?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(gi.text),1)],64)),gi.marker&&Ge.value(gi)?(openBlock(),createElementBlock(Fragment,{key:2},[si.$slots.marker?renderSlot(si.$slots,"marker",{key:0,marker:gi.marker,day:+gi.text,date:gi.value}):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(Ae.value(gi.marker)),style:normalizeStyle(gi.marker.color?{backgroundColor:gi.marker.color}:{})},null,6))],64)):createCommentVNode("",!0),He.value(gi.value)?(openBlock(),createElementBlock("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:ti,class:"dp__marker_tooltip",style:normalizeStyle(Pt.value)},[gi.marker?.tooltip?(openBlock(),createElementBlock("div",{key:0,class:"dp__tooltip_content",onClick:mi},[(openBlock(!0),createElementBlock(Fragment,null,renderList(gi.marker.tooltip,(Ei,Li)=>(openBlock(),createElementBlock("div",{key:Li,class:"dp__tooltip_text"},[si.$slots["marker-tooltip"]?renderSlot(si.$slots,"marker-tooltip",{key:0,tooltip:Ei,day:gi.value}):createCommentVNode("",!0),si.$slots["marker-tooltip"]?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",{class:"dp__tooltip_mark",style:normalizeStyle(Ei.color?{backgroundColor:Ei.color}:{})},null,4),createBaseVNode("div",null,toDisplayString(Ei.text),1)],64))]))),128)),createBaseVNode("div",{class:"dp__arrow_bottom_tp",style:normalizeStyle(di.value)},null,4)])):createCommentVNode("",!0)],4)):createCommentVNode("",!0)],2)],40,Kr))),128))]))),128))],32)):createCommentVNode("",!0)]),_:3},8,["name","css"])],2)],2))}}),yn=Me=>Array.isArray(Me),Qr=(Me,xe,Ke,ze)=>{const We=ref$1([]),De=ref$1(new Date),vt=ref$1(),Je=()=>Vt(Me.isTextInputDate),{modelValue:Ct,calendars:yt,time:Ft,today:$t}=na(Me,xe,Je),{defaultedMultiCalendars:Rt,defaultedStartTime:qt,defaultedRange:Pt,defaultedConfig:Nt,defaultedTz:zt,propDates:Gt,defaultedMultiDates:Ut}=Oe(Me),{validateMonthYearInRange:ii,isDisabled:ti,isDateRangeAllowed:di,checkMinMaxRange:ci}=Tt(Me),{updateTimeValues:vi,getSetDateTime:bi,setTime:pi,assignStartTime:Mi,validateTime:j,disabledTimesConfig:Ae}=Gn(Me,Ft,Ct,ze),He=computed(()=>_i=>yt.value[_i]?yt.value[_i].month:0),Ue=computed(()=>_i=>yt.value[_i]?yt.value[_i].year:0),Ge=_i=>!Nt.value.keepViewOnOffsetClick||_i?!0:!vt.value,_t=(_i,$i,on,Vi=!1)=>{Ge(Vi)&&(yt.value[_i]||(yt.value[_i]={month:0,year:0}),yt.value[_i].month=cn($i)?yt.value[_i]?.month:$i,yt.value[_i].year=cn(on)?yt.value[_i]?.year:on)},St=()=>{Me.autoApply&&xe("select-date")},Ye=()=>{qt.value&&Mi(qt.value)};onMounted(()=>{Me.shadow||(Ct.value||(hi(),Ye()),Vt(!0),Me.focusStartDate&&Me.startDate&&hi())});const ke=computed(()=>Me.flow?.length&&!Me.partialFlow?Me.flowStep===Me.flow.length:!0),Xe=()=>{Me.autoApply&&ke.value&&xe("auto-apply",Me.partialFlow?Me.flowStep!==Me.flow.length:!1)},Vt=(_i=!1)=>{if(Ct.value)return Array.isArray(Ct.value)?(We.value=Ct.value,Xt(_i)):oi(Ct.value,_i);if(Rt.value.count&&_i&&!Me.startDate)return ei(H(),_i)},Jt=()=>Array.isArray(Ct.value)&&Pt.value.enabled?getMonth(Ct.value[0])===getMonth(Ct.value[1]??Ct.value[0]):!1,ei=(_i=new Date,$i=!1)=>{if((!Rt.value.count||!Rt.value.static||$i)&&_t(0,getMonth(_i),getYear(_i)),Rt.value.count&&(!Ct.value||Jt()||!Rt.value.solo)&&(!Rt.value.solo||$i))for(let on=1;on{ei(_i),pi("hours",getHours(_i)),pi("minutes",getMinutes(_i)),pi("seconds",getSeconds(_i)),Rt.value.count&&$i&&si()},li=_i=>{if(Rt.value.count){if(Rt.value.solo)return 0;const $i=getMonth(_i[0]),on=getMonth(_i[1]);return Math.abs(on-$i){_i[1]&&Pt.value.showLastInRange?ei(_i[li(_i)],$i):ei(_i[0],$i);const on=(Vi,Di)=>[Vi(_i[0]),_i[1]?Vi(_i[1]):Ft[Di][1]];pi("hours",on(getHours,"hours")),pi("minutes",on(getMinutes,"minutes")),pi("seconds",on(getSeconds,"seconds"))},ri=(_i,$i)=>{if((Pt.value.enabled||Me.weekPicker)&&!Ut.value.enabled)return fi(_i,$i);if(Ut.value.enabled&&$i){const on=_i[_i.length-1];return oi(on,$i)}},Xt=_i=>{const $i=Ct.value;ri($i,_i),Rt.value.count&&Rt.value.solo&&si()},mi=(_i,$i)=>{const on=set(H(),{month:He.value($i),year:Ue.value($i)}),Vi=_i<0?addMonths(on,1):subMonths(on,1);ii(getMonth(Vi),getYear(Vi),_i<0,Me.preventMinMaxNavigation)&&(_t($i,getMonth(Vi),getYear(Vi)),xe("update-month-year",{instance:$i,month:getMonth(Vi),year:getYear(Vi)}),Rt.value.count&&!Rt.value.solo&&Fi($i),Ke())},Fi=_i=>{for(let $i=_i-1;$i>=0;$i--){const on=subMonths(set(H(),{month:He.value($i+1),year:Ue.value($i+1)}),1);_t($i,getMonth(on),getYear(on))}for(let $i=_i+1;$i<=Rt.value.count-1;$i++){const on=addMonths(set(H(),{month:He.value($i-1),year:Ue.value($i-1)}),1);_t($i,getMonth(on),getYear(on))}},si=()=>{if(Array.isArray(Ct.value)&&Ct.value.length===2){const _i=H(H(Ct.value[1]?Ct.value[1]:addMonths(Ct.value[0],1))),[$i,on]=[getMonth(Ct.value[0]),getYear(Ct.value[0])],[Vi,Di]=[getMonth(Ct.value[1]),getYear(Ct.value[1])];($i!==Vi||$i===Vi&&on!==Di)&&Rt.value.solo&&_t(1,getMonth(_i),getYear(_i))}else Ct.value&&!Array.isArray(Ct.value)&&(_t(0,getMonth(Ct.value),getYear(Ct.value)),ei(H()))},hi=()=>{Me.startDate&&(_t(0,getMonth(H(Me.startDate)),getYear(H(Me.startDate))),Rt.value.count&&Fi(0))},ki=(_i,$i)=>{if(Me.monthChangeOnScroll){const on=new Date().getTime()-De.value.getTime(),Vi=Math.abs(_i.deltaY);let Di=500;Vi>1&&(Di=100),Vi>100&&(Di=0),on>Di&&(De.value=new Date,mi(Me.monthChangeOnScroll!=="inverse"?-_i.deltaY:_i.deltaY,$i))}},Bi=(_i,$i,on=!1)=>{Me.monthChangeOnArrows&&Me.vertical===on&&gi(_i,$i)},gi=(_i,$i)=>{mi(_i==="right"?-1:1,$i)},Ui=_i=>{if(Gt.value.markers)return ca(_i.value,Gt.value.markers)},Ei=(_i,$i)=>{switch(Me.sixWeeks===!0?"append":Me.sixWeeks){case"prepend":return[!0,!1];case"center":return[_i==0,!0];case"fair":return[_i==0||$i>_i,!0];case"append":return[!1,!1];default:return[!1,!1]}},Li=(_i,$i,on,Vi)=>{if(Me.sixWeeks&&_i.length<6){const Di=6-_i.length,nn=($i.getDay()+7-Vi)%7,Pi=6-(on.getDay()+7-Vi)%7,[ji,kn]=Ei(nn,Pi);for(let Yi=1;Yi<=Di;Yi++)if(kn?!!(Yi%2)==ji:ji){const Yt=_i[0].days[0],ui=Ti(addDays(Yt.value,-7),getMonth($i));_i.unshift({days:ui})}else{const Yt=_i[_i.length-1],ui=Yt.days[Yt.days.length-1],ai=Ti(addDays(ui.value,1),getMonth($i));_i.push({days:ai})}}return _i},Ti=(_i,$i)=>{const on=H(_i),Vi=[];for(let Di=0;Di<7;Di++){const nn=addDays(on,Di),Pi=getMonth(nn)!==$i;Vi.push({text:Me.hideOffsetDates&&Pi?"":nn.getDate(),value:nn,current:!Pi,classData:{}})}return Vi},Hi=(_i,$i)=>{const on=[],Vi=new Date($i,_i),Di=new Date($i,_i+1,0),nn=Me.weekStart,Pi=startOfWeek(Vi,{weekStartsOn:nn}),ji=kn=>{const Yi=Ti(kn,_i);if(on.push({days:Yi}),!on[on.length-1].days.some(Yt=>$e(Fe(Yt.value),Fe(Di)))){const Yt=addDays(kn,7);ji(Yt)}};return ji(Pi),Li(on,Vi,Di,nn)},zi=_i=>{const $i=Mt(H(_i.value),Ft.hours,Ft.minutes,xn());xe("date-update",$i),Ut.value.enabled?en($i,Ct,Ut.value.limit):Ct.value=$i,ze(),nextTick().then(()=>{Xe()})},an=_i=>Pt.value.noDisabledRange?In(We.value[0],_i).some($i=>ti($i)):!1,Ci=()=>{We.value=Ct.value?Ct.value.slice():[],We.value.length===2&&!(Pt.value.fixedStart||Pt.value.fixedEnd)&&(We.value=[])},Ri=(_i,$i)=>{const on=[H(_i.value),addDays(H(_i.value),+Pt.value.autoRange)];di(on)?($i&&sn(_i.value),We.value=on):xe("invalid-date",_i.value)},sn=_i=>{const $i=getMonth(H(_i)),on=getYear(H(_i));if(_t(0,$i,on),Rt.value.count>0)for(let Vi=1;Vi{if(an(_i.value)||!ci(_i.value,Ct.value,Pt.value.fixedStart?0:1))return xe("invalid-date",_i.value);We.value=Vn(H(_i.value),Ct,xe,Pt)},Xi=(_i,$i)=>{if(Ci(),Pt.value.autoRange)return Ri(_i,$i);if(Pt.value.fixedStart||Pt.value.fixedEnd)return Zi(_i);We.value[0]?ci(H(_i.value),Ct.value)&&!an(_i.value)?Be(H(_i.value),H(We.value[0]))?(We.value.unshift(H(_i.value)),xe("range-end",We.value[0])):(We.value[1]=H(_i.value),xe("range-end",We.value[1])):(Me.autoApply&&xe("auto-apply-invalid",_i.value),xe("invalid-date",_i.value)):(We.value[0]=H(_i.value),xe("range-start",We.value[0]))},xn=(_i=!0)=>Me.enableSeconds?Array.isArray(Ft.seconds)?_i?Ft.seconds[0]:Ft.seconds[1]:Ft.seconds:0,ni=_i=>{We.value[_i]=Mt(We.value[_i],Ft.hours[_i],Ft.minutes[_i],xn(_i!==1))},yi=()=>{We.value[0]&&We.value[1]&&+We.value?.[0]>+We.value?.[1]&&(We.value.reverse(),xe("range-start",We.value[0]),xe("range-end",We.value[1]))},Si=()=>{We.value.length&&(We.value[0]&&!We.value[1]?ni(0):(ni(0),ni(1),ze()),yi(),Ct.value=We.value.slice(),pa(We.value,xe,Me.autoApply,Me.modelAuto))},xi=(_i,$i=!1)=>{if(ti(_i.value)||!_i.current&&Me.hideOffsetDates)return xe("invalid-date",_i.value);if(vt.value=JSON.parse(JSON.stringify(_i)),!Pt.value.enabled)return zi(_i);yn(Ft.hours)&&yn(Ft.minutes)&&!Ut.value.enabled&&(Xi(_i,$i),Si())},Ni=(_i,$i)=>{_t(_i,$i.month,$i.year,!0),Rt.value.count&&!Rt.value.solo&&Fi(_i),xe("update-month-year",{instance:_i,month:$i.month,year:$i.year}),Ke(Rt.value.solo?_i:void 0);const on=Me.flow?.length?Me.flow[Me.flowStep]:void 0;!$i.fromNav&&(on===je.month||on===je.year)&&ze()},rn=(_i,$i)=>{Un({value:_i,modelValue:Ct,range:Pt.value.enabled,timezone:$i?void 0:zt.value.timezone}),St(),Me.multiCalendars&&nextTick().then(()=>Vt(!0))},qi=()=>{const _i=Qa(H(),zt.value);!Pt.value.enabled&&!Ut.value.enabled?Ct.value=_i:Ct.value&&Array.isArray(Ct.value)&&Ct.value[0]?Ut.value.enabled?Ct.value=[...Ct.value,_i]:Ct.value=Be(_i,Ct.value[0])?[_i,Ct.value[0]]:[Ct.value[0],_i]:Ct.value=[_i],St()},Ki=()=>{if(Array.isArray(Ct.value))if(Ut.value.enabled){const _i=ln();Ct.value[Ct.value.length-1]=bi(_i)}else Ct.value=Ct.value.map((_i,$i)=>_i&&bi(_i,$i));else Ct.value=bi(Ct.value);xe("time-update")},ln=()=>Array.isArray(Ct.value)&&Ct.value.length?Ct.value[Ct.value.length-1]:null;return{calendars:yt,modelValue:Ct,month:He,year:Ue,time:Ft,disabledTimesConfig:Ae,today:$t,validateTime:j,getCalendarDays:Hi,getMarker:Ui,handleScroll:ki,handleSwipe:gi,handleArrow:Bi,selectDate:xi,updateMonthYear:Ni,presetDate:rn,selectCurrentDate:qi,updateTime:(_i,$i=!0,on=!1)=>{vi(_i,$i,on,Ki)},assignMonthAndYear:ei,setStartTime:Ye}},qr={key:0},Xr=defineComponent({__name:"DatePicker",props:{...dt},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date","overlay-toggle"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{calendars:De,month:vt,year:Je,modelValue:Ct,time:yt,disabledTimesConfig:Ft,today:$t,validateTime:Rt,getCalendarDays:qt,getMarker:Pt,handleArrow:Nt,handleScroll:zt,handleSwipe:Gt,selectDate:Ut,updateMonthYear:ii,presetDate:ti,selectCurrentDate:di,updateTime:ci,assignMonthAndYear:vi,setStartTime:bi}=Qr(We,ze,Jt,ei),pi=useSlots(),{setHoverDate:Mi,getDayClassData:j,clearHoverDate:Ae}=mo(Ct,We),{defaultedMultiCalendars:He}=Oe(We),Ue=ref$1([]),Ge=ref$1([]),_t=ref$1(null),St=et(pi,"calendar"),Ye=et(pi,"monthYear"),ke=et(pi,"timePicker"),Xe=ki=>{We.shadow||ze("mount",ki)};watch(De,()=>{We.shadow||setTimeout(()=>{ze("recalculate-position")},0)},{deep:!0}),watch(He,(ki,Bi)=>{ki.count-Bi.count>0&&vi()},{deep:!0});const Vt=computed(()=>ki=>qt(vt.value(ki),Je.value(ki)).map(Bi=>({...Bi,days:Bi.days.map(gi=>(gi.marker=Pt(gi),gi.classData=j(gi),gi))})));function Jt(ki){ki||ki===0?Ge.value[ki]?.triggerTransition(vt.value(ki),Je.value(ki)):Ge.value.forEach((Bi,gi)=>Bi.triggerTransition(vt.value(gi),Je.value(gi)))}function ei(){ze("update-flow-step")}const oi=(ki,Bi=!1)=>{Ut(ki,Bi),We.spaceConfirm&&ze("select-date")},li=(ki,Bi,gi=0)=>{Ue.value[gi]?.toggleMonthPicker(ki,Bi)},fi=(ki,Bi,gi=0)=>{Ue.value[gi]?.toggleYearPicker(ki,Bi)},ri=(ki,Bi,gi)=>{_t.value?.toggleTimePicker(ki,Bi,gi)},Xt=(ki,Bi)=>{if(!We.range){const gi=Ct.value?Ct.value:$t,Ui=Bi?new Date(Bi):gi,Ei=ki?startOfWeek(Ui,{weekStartsOn:1}):endOfWeek(Ui,{weekStartsOn:1});Ut({value:Ei,current:getMonth(Ui)===vt.value(0),text:"",classData:{}}),document.getElementById(Ha(Ei))?.focus()}},mi=ki=>{Ue.value[0]?.handleMonthYearChange(ki,!0)},Fi=ki=>{ii(0,{month:vt.value(0),year:Je.value(0)+(ki?1:-1),fromNav:!0})},si=(ki,Bi)=>{ki===je.time&&ze(`time-picker-${Bi?"open":"close"}`),ze("overlay-toggle",{open:Bi,overlay:ki})},hi=ki=>{ze("overlay-toggle",{open:!1,overlay:ki}),ze("focus-menu")};return xe({clearHoverDate:Ae,presetDate:ti,selectCurrentDate:di,toggleMonthPicker:li,toggleYearPicker:fi,toggleTimePicker:ri,handleArrow:Nt,updateMonthYear:ii,getSidebarProps:()=>({modelValue:Ct,month:vt,year:Je,time:yt,updateTime:ci,updateMonthYear:ii,selectDate:Ut,presetDate:ti}),changeMonth:mi,changeYear:Fi,selectWeekDate:Xt,setStartTime:bi}),(ki,Bi)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(ma,{"multi-calendars":unref(He).count,collapse:ki.collapse,"is-mobile":ki.isMobile},{default:withCtx(({instance:gi,index:Ui})=>[ki.disableMonthYearSelect?createCommentVNode("",!0):(openBlock(),createBlock(zr,mergeProps({key:0,ref:Ei=>{Ei&&(Ue.value[Ui]=Ei)},months:unref(Pn)(ki.formatLocale,ki.locale,ki.monthNameFormat),years:unref(qa)(ki.yearRange,ki.locale,ki.reverseYears),month:unref(vt)(gi),year:unref(Je)(gi),instance:gi},ki.$props,{onMount:Bi[0]||(Bi[0]=Ei=>Xe(unref(Ot).header)),onResetFlow:Bi[1]||(Bi[1]=Ei=>ki.$emit("reset-flow")),onUpdateMonthYear:Ei=>unref(ii)(gi,Ei),onOverlayClosed:hi,onOverlayOpened:Bi[2]||(Bi[2]=Ei=>ki.$emit("overlay-toggle",{open:!0,overlay:Ei}))}),createSlots({_:2},[renderList(unref(Ye),(Ei,Li)=>({name:Ei,fn:withCtx(Ti=>[renderSlot(ki.$slots,Ei,normalizeProps(guardReactiveProps(Ti)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),createVNode(Gr,mergeProps({ref:Ei=>{Ei&&(Ge.value[Ui]=Ei)},"mapped-dates":Vt.value(gi),month:unref(vt)(gi),year:unref(Je)(gi),instance:gi},ki.$props,{onSelectDate:Ei=>unref(Ut)(Ei,gi!==1),onHandleSpace:Ei=>oi(Ei,gi!==1),onSetHoverDate:Bi[3]||(Bi[3]=Ei=>unref(Mi)(Ei)),onHandleScroll:Ei=>unref(zt)(Ei,gi),onHandleSwipe:Ei=>unref(Gt)(Ei,gi),onMount:Bi[4]||(Bi[4]=Ei=>Xe(unref(Ot).calendar)),onResetFlow:Bi[5]||(Bi[5]=Ei=>ki.$emit("reset-flow")),onTooltipOpen:Bi[6]||(Bi[6]=Ei=>ki.$emit("tooltip-open",Ei)),onTooltipClose:Bi[7]||(Bi[7]=Ei=>ki.$emit("tooltip-close",Ei))}),createSlots({_:2},[renderList(unref(St),(Ei,Li)=>({name:Ei,fn:withCtx(Ti=>[renderSlot(ki.$slots,Ei,normalizeProps(guardReactiveProps({...Ti})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse","is-mobile"]),ki.enableTimePicker?(openBlock(),createElementBlock("div",qr,[ki.$slots["time-picker"]?renderSlot(ki.$slots,"time-picker",normalizeProps(mergeProps({key:0},{time:unref(yt),updateTime:unref(ci)}))):(openBlock(),createBlock(Kn,mergeProps({key:1,ref_key:"timePickerRef",ref:_t},ki.$props,{hours:unref(yt).hours,minutes:unref(yt).minutes,seconds:unref(yt).seconds,"internal-model-value":ki.internalModelValue,"disabled-times-config":unref(Ft),"validate-time":unref(Rt),onMount:Bi[8]||(Bi[8]=gi=>Xe(unref(Ot).timePicker)),"onUpdate:hours":Bi[9]||(Bi[9]=gi=>unref(ci)(gi)),"onUpdate:minutes":Bi[10]||(Bi[10]=gi=>unref(ci)(gi,!1)),"onUpdate:seconds":Bi[11]||(Bi[11]=gi=>unref(ci)(gi,!1,!0)),onResetFlow:Bi[12]||(Bi[12]=gi=>ki.$emit("reset-flow")),onOverlayClosed:Bi[13]||(Bi[13]=gi=>si(gi,!1)),onOverlayOpened:Bi[14]||(Bi[14]=gi=>si(gi,!0)),onAmPmChange:Bi[15]||(Bi[15]=gi=>ki.$emit("am-pm-change",gi))}),createSlots({_:2},[renderList(unref(ke),(gi,Ui)=>({name:gi,fn:withCtx(Ei=>[renderSlot(ki.$slots,gi,normalizeProps(guardReactiveProps(Ei)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):createCommentVNode("",!0)],64))}}),Jr=(Me,xe)=>{const Ke=ref$1(),{defaultedMultiCalendars:ze,defaultedConfig:We,defaultedHighlight:De,defaultedRange:vt,propDates:Je,defaultedFilters:Ct,defaultedMultiDates:yt}=Oe(Me),{modelValue:Ft,year:$t,month:Rt,calendars:qt}=na(Me,xe),{isDisabled:Pt}=Tt(Me),{selectYear:Nt,groupedYears:zt,showYearPicker:Gt,isDisabled:Ut,toggleYearPicker:ii,handleYearSelect:ti,handleYear:di}=jn({modelValue:Ft,multiCalendars:ze,range:vt,highlight:De,calendars:qt,propDates:Je,month:Rt,year:$t,filters:Ct,props:Me,emit:xe}),ci=(Ge,_t)=>[Ge,_t].map(St=>format(St,"MMMM",{locale:Me.formatLocale})).join("-"),vi=computed(()=>Ge=>Ft.value?Array.isArray(Ft.value)?Ft.value.some(_t=>isSameQuarter(Ge,_t)):isSameQuarter(Ft.value,Ge):!1),bi=Ge=>{if(vt.value.enabled){if(Array.isArray(Ft.value)){const _t=$e(Ge,Ft.value[0])||$e(Ge,Ft.value[1]);return xt(Ft.value,Ke.value,Ge)&&!_t}return!1}return!1},pi=(Ge,_t)=>Ge.quarter===getQuarter(_t)&&Ge.year===getYear(_t),Mi=Ge=>typeof De.value=="function"?De.value({quarter:getQuarter(Ge),year:getYear(Ge)}):!!De.value.quarters.find(_t=>pi(_t,Ge)),j=computed(()=>Ge=>{const _t=set(new Date,{year:$t.value(Ge)});return eachQuarterOfInterval({start:startOfYear(_t),end:endOfYear(_t)}).map(St=>{const Ye=startOfQuarter(St),ke=endOfQuarter(St),Xe=Pt(St),Vt=bi(Ye),Jt=Mi(Ye);return{text:ci(Ye,ke),value:Ye,active:vi.value(Ye),highlighted:Jt,disabled:Xe,isBetween:Vt}})}),Ae=Ge=>{en(Ge,Ft,yt.value.limit),xe("auto-apply",!0)},He=Ge=>{Ft.value=tn(Ft,Ge,xe),pa(Ft.value,xe,Me.autoApply,Me.modelAuto)},Ue=Ge=>{Ft.value=Ge,xe("auto-apply")};return{defaultedConfig:We,defaultedMultiCalendars:ze,groupedYears:zt,year:$t,isDisabled:Ut,quarters:j,showYearPicker:Gt,modelValue:Ft,setHoverDate:Ge=>{Ke.value=Ge},selectYear:Nt,selectQuarter:(Ge,_t,St)=>{if(!St)return qt.value[_t].month=getMonth(endOfQuarter(Ge)),yt.value.enabled?Ae(Ge):vt.value.enabled?He(Ge):Ue(Ge)},toggleYearPicker:ii,handleYearSelect:ti,handleYear:di}},Zr={class:"dp--quarter-items"},xr=["data-test-id","disabled","onClick","onMouseover"],eo=defineComponent({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...dt},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end","overlay-toggle","update-month-year"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,De=useSlots(),vt=et(De,"yearMode"),{defaultedMultiCalendars:Je,defaultedConfig:Ct,groupedYears:yt,year:Ft,isDisabled:$t,quarters:Rt,modelValue:qt,showYearPicker:Pt,setHoverDate:Nt,selectQuarter:zt,toggleYearPicker:Gt,handleYearSelect:Ut,handleYear:ii}=Jr(We,ze);return xe({getSidebarProps:()=>({modelValue:qt,year:Ft,selectQuarter:zt,handleYearSelect:Ut,handleYear:ii})}),(ti,di)=>(openBlock(),createBlock(ma,{"multi-calendars":unref(Je).count,collapse:ti.collapse,stretch:"","is-mobile":ti.isMobile},{default:withCtx(({instance:ci})=>[createBaseVNode("div",{class:"dp-quarter-picker-wrap",style:normalizeStyle({minHeight:`${unref(Ct).modeHeight}px`})},[ti.$slots["top-extra"]?renderSlot(ti.$slots,"top-extra",{key:0,value:ti.internalModelValue}):createCommentVNode("",!0),createBaseVNode("div",null,[createVNode(Wn,mergeProps(ti.$props,{items:unref(yt)(ci),instance:ci,"show-year-picker":unref(Pt)[ci],year:unref(Ft)(ci),"is-disabled":vi=>unref($t)(ci,vi),onHandleYear:vi=>unref(ii)(ci,vi),onYearSelect:vi=>unref(Ut)(vi,ci),onToggleYearPicker:vi=>unref(Gt)(ci,vi?.flow,vi?.show)}),createSlots({_:2},[renderList(unref(vt),(vi,bi)=>({name:vi,fn:withCtx(pi=>[renderSlot(ti.$slots,vi,normalizeProps(guardReactiveProps(pi)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),createBaseVNode("div",Zr,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Rt)(ci),(vi,bi)=>(openBlock(),createElementBlock("div",{key:bi},[createBaseVNode("button",{type:"button",class:normalizeClass(["dp--qr-btn",{"dp--qr-btn-active":vi.active,"dp--qr-btn-between":vi.isBetween,"dp--qr-btn-disabled":vi.disabled,"dp--highlighted":vi.highlighted}]),"data-test-id":vi.value,disabled:vi.disabled,onClick:pi=>unref(zt)(vi.value,ci,vi.disabled),onMouseover:pi=>unref(Nt)(vi.value)},[ti.$slots.quarter?renderSlot(ti.$slots,"quarter",{key:0,value:vi.value,text:vi.text}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(vi.text),1)],64))],42,xr)]))),128))])],4)]),_:3},8,["multi-calendars","collapse","is-mobile"]))}}),Qn=(Me,xe)=>{const Ke=ref$1(0);onMounted(()=>{ze(),window.addEventListener("resize",ze,{passive:!0})}),onUnmounted(()=>{window.removeEventListener("resize",ze)});const ze=()=>{Ke.value=window.document.documentElement.clientWidth};return{isMobile:computed(()=>Ke.value<=Me.value.mobileBreakpoint&&!xe?!0:void 0)}},to=["id","tabindex","role","aria-label"],ao={key:0,class:"dp--menu-load-container"},no={key:1,class:"dp--menu-header"},lo=["data-dp-mobile"],ro={key:0,class:"dp__sidebar_left"},oo=["data-dp-mobile"],so=["data-test-id","data-dp-mobile","onClick","onKeydown"],uo={key:2,class:"dp__sidebar_right"},io={key:3,class:"dp__action_extra"},hn=defineComponent({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...va,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},getInputRect:{type:Function,default:()=>({})},isTextInputDate:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date","overlay-toggle","menu-blur"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,De=ref$1(null),vt=computed(()=>{const{openOnTop:Ci,...Ri}=We;return{...Ri,isMobile:zt.value,flowStep:He.value,menuWrapRef:De.value}}),{setMenuFocused:Je,setShiftKey:Ct,control:yt}=Hn(),Ft=useSlots(),{defaultedTextInput:$t,defaultedInline:Rt,defaultedConfig:qt,defaultedUI:Pt,handleEventPropagation:Nt}=Oe(We),{isMobile:zt}=Qn(qt,We.shadow),Gt=ref$1(null),Ut=ref$1(0),ii=ref$1(null),ti=ref$1(!1),di=ref$1(null),ci=ref$1(!1),vi=Ci=>{ci.value=!0,qt.value.allowPreventDefault&&Ci.preventDefault(),Dt(Ci,qt.value,!0)};onMounted(()=>{if(!We.shadow){ti.value=!0,bi(),window.addEventListener("resize",bi);const Ci=Le(De);Ci&&!$t.value.enabled&&!Rt.value.enabled&&(Je(!0),Xe()),Ci&&(Ci.addEventListener("pointerdown",vi),Ci.addEventListener("mousedown",vi))}document.addEventListener("mousedown",an)}),onUnmounted(()=>{window.removeEventListener("resize",bi),document.removeEventListener("mousedown",an);const Ci=Le(De);Ci&&(Ci.removeEventListener("pointerdown",vi),Ci.removeEventListener("mousedown",vi))});const bi=()=>{const Ci=Le(ii);Ci&&(Ut.value=Ci.getBoundingClientRect().width)},{arrowRight:pi,arrowLeft:Mi,arrowDown:j,arrowUp:Ae}=At(),{flowStep:He,updateFlowStep:Ue,childMount:Ge,resetFlow:_t,handleFlow:St}=po(We,ze,di),Ye=computed(()=>We.monthPicker?hr:We.yearPicker?kr:We.timePicker?Yr:We.quarterPicker?eo:Xr),ke=computed(()=>{if(qt.value.arrowLeft)return qt.value.arrowLeft;const Ci=De.value?.getBoundingClientRect(),Ri=We.getInputRect();return Ri?.width=(Ci?.right??0)&&Ri?.width{const Ci=Le(De);Ci&&Ci.focus({preventScroll:!0})},Vt=computed(()=>di.value?.getSidebarProps()||{}),Jt=()=>{We.openOnTop&&ze("recalculate-position")},ei=et(Ft,"action"),oi=computed(()=>We.monthPicker||We.yearPicker?et(Ft,"monthYear"):We.timePicker?et(Ft,"timePicker"):et(Ft,"shared")),li=computed(()=>We.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),fi=computed(()=>({dp__menu_disabled:We.disabled,dp__menu_readonly:We.readonly,"dp-menu-loading":We.loading})),ri=computed(()=>({dp__menu:!0,dp__menu_index:!Rt.value.enabled,dp__relative:Rt.value.enabled,...Pt.value.menu??{}})),Xt=Ci=>{Dt(Ci,qt.value,!0)},mi=Ci=>{We.escClose&&(ze("close-picker"),Nt(Ci))},Fi=Ci=>{if(We.arrowNavigation){if(Ci===Qe.up)return Ae();if(Ci===Qe.down)return j();if(Ci===Qe.left)return Mi();if(Ci===Qe.right)return pi()}else Ci===Qe.left||Ci===Qe.up?gi("handleArrow",Qe.left,0,Ci===Qe.up):gi("handleArrow",Qe.right,0,Ci===Qe.down)},si=Ci=>{Ct(Ci.shiftKey),!We.disableMonthYearSelect&&Ci.code===Re.tab&&Ci.target.classList.contains("dp__menu")&&yt.value.shiftKeyInMenu&&(Ci.preventDefault(),Dt(Ci,qt.value,!0),ze("close-picker"))},hi=()=>{Xe(),ze("time-picker-close")},ki=Ci=>{di.value?.toggleTimePicker(!1,!1),di.value?.toggleMonthPicker(!1,!1,Ci),di.value?.toggleYearPicker(!1,!1,Ci)},Bi=(Ci,Ri=0)=>Ci==="month"?di.value?.toggleMonthPicker(!1,!0,Ri):Ci==="year"?di.value?.toggleYearPicker(!1,!0,Ri):Ci==="time"?di.value?.toggleTimePicker(!0,!1):ki(Ri),gi=(Ci,...Ri)=>{di.value?.[Ci]&&di.value?.[Ci](...Ri)},Ui=()=>{gi("selectCurrentDate")},Ei=(Ci,Ri)=>{gi("presetDate",toValue(Ci),Ri)},Li=()=>{gi("clearHoverDate")},Ti=(Ci,Ri)=>{gi("updateMonthYear",Ci,Ri)},Hi=(Ci,Ri)=>{Ci.preventDefault(),Fi(Ri)},zi=Ci=>{if(si(Ci),Ci.key===Re.home||Ci.key===Re.end)return gi("selectWeekDate",Ci.key===Re.home,Ci.target.getAttribute("id"));switch((Ci.key===Re.pageUp||Ci.key===Re.pageDown)&&(Ci.shiftKey?(gi("changeYear",Ci.key===Re.pageUp),Fa(De.value,"overlay-year")?.focus()):(gi("changeMonth",Ci.key===Re.pageUp),Fa(De.value,Ci.key===Re.pageUp?"action-prev":"action-next")?.focus()),Ci.target.getAttribute("id")&&De.value?.focus({preventScroll:!0})),Ci.key){case Re.esc:return mi(Ci);case Re.arrowLeft:return Hi(Ci,Qe.left);case Re.arrowRight:return Hi(Ci,Qe.right);case Re.arrowUp:return Hi(Ci,Qe.up);case Re.arrowDown:return Hi(Ci,Qe.down);default:return}},an=Ci=>{Rt.value.enabled&&!Rt.value.input&&!De.value?.contains(Ci.target)&&ci.value&&(ci.value=!1,ze("menu-blur"))};return xe({updateMonthYear:Ti,switchView:Bi,handleFlow:St,onValueCleared:()=>{di.value?.setStartTime?.()}}),(Ci,Ri)=>(openBlock(),createElementBlock("div",{id:Ci.uid?`dp-menu-${Ci.uid}`:void 0,ref_key:"dpMenuRef",ref:De,tabindex:unref(Rt).enabled?void 0:"0",role:unref(Rt).enabled?void 0:"dialog","aria-label":Ci.ariaLabels?.menu,class:normalizeClass(ri.value),style:normalizeStyle({"--dp-arrow-left":ke.value}),onMouseleave:Li,onClick:Xt,onKeydown:zi},[(Ci.disabled||Ci.readonly)&&unref(Rt).enabled||Ci.loading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(fi.value)},[Ci.loading?(openBlock(),createElementBlock("div",ao,[...Ri[19]||(Ri[19]=[createBaseVNode("span",{class:"dp--menu-loader"},null,-1)])])):createCommentVNode("",!0)],2)):createCommentVNode("",!0),Ci.$slots["menu-header"]?(openBlock(),createElementBlock("div",no,[renderSlot(Ci.$slots,"menu-header")])):createCommentVNode("",!0),!unref(Rt).enabled&&!Ci.teleportCenter?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(li.value)},null,2)):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"innerMenuRef",ref:ii,class:normalizeClass({dp__menu_content_wrapper:Ci.presetDates?.length||!!Ci.$slots["left-sidebar"]||!!Ci.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":Me.collapse&&(Ci.presetDates?.length||!!Ci.$slots["left-sidebar"]||!!Ci.$slots["right-sidebar"])}),"data-dp-mobile":unref(zt),style:normalizeStyle({"--dp-menu-width":`${Ut.value}px`})},[Ci.$slots["left-sidebar"]?(openBlock(),createElementBlock("div",ro,[renderSlot(Ci.$slots,"left-sidebar",normalizeProps(guardReactiveProps(Vt.value)))])):createCommentVNode("",!0),Ci.presetDates.length?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass({"dp--preset-dates-collapsed":Me.collapse,"dp--preset-dates":!0}),"data-dp-mobile":unref(zt)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ci.presetDates,(sn,Zi)=>(openBlock(),createElementBlock(Fragment,{key:Zi},[sn.slot?renderSlot(Ci.$slots,sn.slot,{key:0,presetDate:Ei,label:sn.label,value:sn.value}):(openBlock(),createElementBlock("button",{key:1,type:"button",style:normalizeStyle(sn.style||{}),class:normalizeClass(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":Me.collapse}]),"data-test-id":sn.testId??void 0,"data-dp-mobile":unref(zt),onClick:withModifiers(Xi=>Ei(sn.value,sn.noTz),["prevent"]),onKeydown:Xi=>unref(qe)(Xi,()=>Ei(sn.value,sn.noTz),!0)},toDisplayString(sn.label),47,so))],64))),128))],10,oo)):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"calendarWrapperRef",ref:Gt,class:"dp__instance_calendar",role:"document"},[(openBlock(),createBlock(resolveDynamicComponent(Ye.value),mergeProps({ref_key:"dynCmpRef",ref:di},vt.value,{"flow-step":unref(He),onMount:unref(Ge),onUpdateFlowStep:unref(Ue),onResetFlow:unref(_t),onFocusMenu:Xe,onSelectDate:Ri[0]||(Ri[0]=sn=>Ci.$emit("select-date")),onDateUpdate:Ri[1]||(Ri[1]=sn=>Ci.$emit("date-update",sn)),onTooltipOpen:Ri[2]||(Ri[2]=sn=>Ci.$emit("tooltip-open",sn)),onTooltipClose:Ri[3]||(Ri[3]=sn=>Ci.$emit("tooltip-close",sn)),onAutoApply:Ri[4]||(Ri[4]=sn=>Ci.$emit("auto-apply",sn)),onRangeStart:Ri[5]||(Ri[5]=sn=>Ci.$emit("range-start",sn)),onRangeEnd:Ri[6]||(Ri[6]=sn=>Ci.$emit("range-end",sn)),onInvalidFixedRange:Ri[7]||(Ri[7]=sn=>Ci.$emit("invalid-fixed-range",sn)),onTimeUpdate:Ri[8]||(Ri[8]=sn=>Ci.$emit("time-update")),onAmPmChange:Ri[9]||(Ri[9]=sn=>Ci.$emit("am-pm-change",sn)),onTimePickerOpen:Ri[10]||(Ri[10]=sn=>Ci.$emit("time-picker-open",sn)),onTimePickerClose:hi,onRecalculatePosition:Jt,onUpdateMonthYear:Ri[11]||(Ri[11]=sn=>Ci.$emit("update-month-year",sn)),onAutoApplyInvalid:Ri[12]||(Ri[12]=sn=>Ci.$emit("auto-apply-invalid",sn)),onInvalidDate:Ri[13]||(Ri[13]=sn=>Ci.$emit("invalid-date",sn)),onOverlayToggle:Ri[14]||(Ri[14]=sn=>Ci.$emit("overlay-toggle",sn)),"onUpdate:internalModelValue":Ri[15]||(Ri[15]=sn=>Ci.$emit("update:internal-model-value",sn))}),createSlots({_:2},[renderList(oi.value,(sn,Zi)=>({name:sn,fn:withCtx(Xi=>[renderSlot(Ci.$slots,sn,normalizeProps(guardReactiveProps({...Xi})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),Ci.$slots["right-sidebar"]?(openBlock(),createElementBlock("div",uo,[renderSlot(Ci.$slots,"right-sidebar",normalizeProps(guardReactiveProps(Vt.value)))])):createCommentVNode("",!0),Ci.$slots["action-extra"]?(openBlock(),createElementBlock("div",io,[Ci.$slots["action-extra"]?renderSlot(Ci.$slots,"action-extra",{key:0,selectCurrentDate:Ui}):createCommentVNode("",!0)])):createCommentVNode("",!0)],14,lo),!Ci.autoApply||unref(qt).keepActionRow?(openBlock(),createBlock(ir,mergeProps({key:3,"menu-mount":ti.value},vt.value,{"calendar-width":Ut.value,onClosePicker:Ri[16]||(Ri[16]=sn=>Ci.$emit("close-picker")),onSelectDate:Ri[17]||(Ri[17]=sn=>Ci.$emit("select-date")),onInvalidSelect:Ri[18]||(Ri[18]=sn=>Ci.$emit("invalid-select")),onSelectNow:Ui}),createSlots({_:2},[renderList(unref(ei),(sn,Zi)=>({name:sn,fn:withCtx(Xi=>[renderSlot(Ci.$slots,sn,normalizeProps(guardReactiveProps({...Xi})))])}))]),1040,["menu-mount","calendar-width"])):createCommentVNode("",!0)],46,to))}});var Et=(Me=>(Me.center="center",Me.left="left",Me.right="right",Me))(Et||{});const co=({menuRef:Me,menuRefInner:xe,inputRef:Ke,pickerWrapperRef:ze,inline:We,emit:De,props:vt,slots:Je})=>{const{defaultedConfig:Ct}=Oe(vt),yt=ref$1({}),Ft=ref$1(!1),$t=ref$1({top:"0",left:"0"}),Rt=ref$1(!1),qt=toRef$1(vt,"teleportCenter");watch(qt,()=>{$t.value=JSON.parse(JSON.stringify({})),di()});const Pt=_t=>{if(vt.teleport){const St=_t.getBoundingClientRect();return{left:St.left+window.scrollX,top:St.top+window.scrollY}}return{top:0,left:0}},Nt=(_t,St)=>{$t.value.left=`${_t+St-yt.value.width}px`},zt=_t=>{$t.value.left=`${_t}px`},Gt=(_t,St)=>{vt.position===Et.left&&zt(_t),vt.position===Et.right&&Nt(_t,St),vt.position===Et.center&&($t.value.left=`${_t+St/2-yt.value.width/2}px`)},Ut=_t=>{const{width:St,height:Ye}=_t.getBoundingClientRect(),{top:ke,left:Xe}=Pt(_t);return{top:+ke,left:+Xe,width:St,height:Ye}},ii=()=>{$t.value.left="50%",$t.value.top="50%",$t.value.transform="translate(-50%, -50%)",$t.value.position="fixed",delete $t.value.opacity},ti=()=>{const _t=Le(Ke);$t.value=vt.altPosition(_t)},di=(_t=!0)=>{if(!We.value.enabled){if(qt.value)return ii();if(vt.altPosition!==null)return ti();if(_t){const St=vt.teleport?xe.value?.$el:Me.value;St&&(yt.value=St.getBoundingClientRect()),De("recalculate-position")}return Ae()}},ci=({inputEl:_t,left:St,width:Ye})=>{window.screen.width>768&&!Ft.value&&Gt(St,Ye),pi(_t)},vi=_t=>{const{top:St,left:Ye,height:ke,width:Xe}=Ut(_t);$t.value.top=`${ke+St+ +vt.offset}px`,Rt.value=!1,Ft.value||($t.value.left=`${Ye+Xe/2-yt.value.width/2}px`),ci({inputEl:_t,left:Ye,width:Xe})},bi=_t=>{const{top:St,left:Ye,width:ke}=Ut(_t);$t.value.top=`${St-+vt.offset-yt.value.height}px`,Rt.value=!0,ci({inputEl:_t,left:Ye,width:ke})},pi=_t=>{if(vt.autoPosition){const{left:St,width:Ye}=Ut(_t),{left:ke,right:Xe}=yt.value;if(!Ft.value){if(Math.abs(ke)!==Math.abs(Xe)){if(ke<=0)return Ft.value=!0,zt(St);if(Xe>=document.documentElement.clientWidth)return Ft.value=!0,Nt(St,Ye)}return Gt(St,Ye)}}},Mi=()=>{const _t=Le(Ke);if(_t){if(vt.autoPosition===st.top)return st.top;if(vt.autoPosition===st.bottom)return st.bottom;const{height:St}=yt.value,{top:Ye,height:ke}=_t.getBoundingClientRect(),Xe=window.innerHeight-Ye-ke,Vt=Ye;return St<=Xe?st.bottom:St>Xe&&St<=Vt?st.top:Xe>=Vt?st.bottom:st.top}return st.bottom},j=_t=>Mi()===st.bottom?vi(_t):bi(_t),Ae=()=>{const _t=Le(Ke);if(_t)return vt.autoPosition?j(_t):vi(_t)},He=function(_t){if(_t){const St=_t.scrollHeight>_t.clientHeight,Ye=window.getComputedStyle(_t).overflowY.indexOf("hidden")!==-1;return St&&!Ye}return!0},Ue=function(_t){return!_t||_t===document.body||_t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:He(_t)?_t:Ue(_t.assignedSlot&&Ct.value.shadowDom?_t.assignedSlot.parentNode:_t.parentNode)},Ge=_t=>{if(_t)switch(vt.position){case Et.left:return{left:0,transform:"translateX(0)"};case Et.right:return{left:`${_t.width}px`,transform:"translateX(-100%)"};default:return{left:`${_t.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:Rt,menuStyle:$t,xCorrect:Ft,setMenuPosition:di,getScrollableParent:Ue,shadowRender:(_t,St,Ye)=>{const ke=document.createElement("div"),Xe=Le(Ke)?.getBoundingClientRect();ke.setAttribute("id","dp--temp-container");const Vt=ze.value?.clientWidth?ze.value:document.body;Vt.append(ke);const Jt=Ge(Xe),ei=Ct.value.shadowDom?Object.keys(Je).filter(li=>["right-sidebar","left-sidebar","top-extra","action-extra"].includes(li)):Object.keys(Je),oi=h$2(St,{...Ye,shadow:!0,style:{opacity:0,position:"absolute",...Jt}},Object.fromEntries(ei.map(li=>[li,Je[li]])));_t!=null&&(oi.appContext=_t.appContext),render(oi,ke),yt.value=oi.el?.getBoundingClientRect(),render(null,ke),Vt.removeChild(ke)}}},bt=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"hours-overlay-header",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-header",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-header",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]},{name:"top-extra",use:["shared","month-year"]},{name:"tp-inline-arrow-up",use:["shared","time"]},{name:"tp-inline-arrow-down",use:["shared","time"]},{name:"menu-header",use:["menu"]}],fo=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],vo={all:()=>bt,monthYear:()=>bt.filter(Me=>Me.use.includes("month-year")),input:()=>fo,timePicker:()=>bt.filter(Me=>Me.use.includes("time")),action:()=>bt.filter(Me=>Me.use.includes("action")),calendar:()=>bt.filter(Me=>Me.use.includes("calendar")),menu:()=>bt.filter(Me=>Me.use.includes("menu")),shared:()=>bt.filter(Me=>Me.use.includes("shared")),yearMode:()=>bt.filter(Me=>Me.use.includes("year-mode"))},et=(Me,xe,Ke)=>{const ze=[];return vo[xe]().forEach(We=>{Me[We.name]&&ze.push(We.name)}),Ke?.length&&Ke.forEach(We=>{We.slot&&ze.push(We.slot)}),ze},aa=Me=>{const xe=computed(()=>ze=>Me.value?ze?Me.value.open:Me.value.close:""),Ke=computed(()=>ze=>Me.value?ze?Me.value.menuAppearTop:Me.value.menuAppearBottom:"");return{transitionName:xe,showTransition:!!Me.value,menuTransition:Ke}},na=(Me,xe,Ke)=>{const{defaultedRange:ze,defaultedTz:We}=Oe(Me),De=H(Ze(H(),We.value.timezone)),vt=ref$1([{month:getMonth(De),year:getYear(De)}]),Je=Rt=>{const qt={hours:getHours(De),minutes:getMinutes(De),seconds:0};return ze.value.enabled?[qt[Rt],qt[Rt]]:qt[Rt]},Ct=reactive({hours:Je("hours"),minutes:Je("minutes"),seconds:Je("seconds")});watch(ze,(Rt,qt)=>{Rt.enabled!==qt.enabled&&(Ct.hours=Je("hours"),Ct.minutes=Je("minutes"),Ct.seconds=Je("seconds"))},{deep:!0});const yt=computed({get:()=>Me.internalModelValue,set:Rt=>{!Me.readonly&&!Me.disabled&&xe("update:internal-model-value",Rt)}}),Ft=computed(()=>Rt=>vt.value[Rt]?vt.value[Rt].month:0),$t=computed(()=>Rt=>vt.value[Rt]?vt.value[Rt].year:0);return watch(yt,(Rt,qt)=>{Ke&&JSON.stringify(Rt??{})!==JSON.stringify(qt??{})&&Ke()},{deep:!0}),{calendars:vt,time:Ct,modelValue:yt,month:Ft,year:$t,today:De}},mo=(Me,xe)=>{const{defaultedMultiCalendars:Ke,defaultedMultiDates:ze,defaultedUI:We,defaultedHighlight:De,defaultedTz:vt,propDates:Je,defaultedRange:Ct}=Oe(xe),{isDisabled:yt}=Tt(xe),Ft=ref$1(null),$t=ref$1(Ze(new Date,vt.value.timezone)),Rt=ri=>{!ri.current&&xe.hideOffsetDates||(Ft.value=ri.value)},qt=()=>{Ft.value=null},Pt=ri=>Array.isArray(Me.value)&&Ct.value.enabled&&Me.value[0]&&Ft.value?ri?Ee(Ft.value,Me.value[0]):Be(Ft.value,Me.value[0]):!0,Nt=(ri,Xt)=>{const mi=()=>Me.value?Xt?Me.value[0]||null:Me.value[1]:null,Fi=Me.value&&Array.isArray(Me.value)?mi():null;return $e(H(ri.value),Fi)},zt=ri=>{const Xt=Array.isArray(Me.value)?Me.value[0]:null;return ri?!Be(Ft.value??null,Xt):!0},Gt=(ri,Xt=!0)=>(Ct.value.enabled||xe.weekPicker)&&Array.isArray(Me.value)&&Me.value.length===2?xe.hideOffsetDates&&!ri.current?!1:$e(H(ri.value),Me.value[Xt?0:1]):Ct.value.enabled?Nt(ri,Xt)&&zt(Xt)||$e(ri.value,Array.isArray(Me.value)?Me.value[0]:null)&&Pt(Xt):!1,Ut=(ri,Xt)=>{if(Array.isArray(Me.value)&&Me.value[0]&&Me.value.length===1){const mi=$e(ri.value,Ft.value);return Xt?Ee(Me.value[0],ri.value)&&mi:Be(Me.value[0],ri.value)&&mi}return!1},ii=ri=>!Me.value||xe.hideOffsetDates&&!ri.current?!1:Ct.value.enabled?xe.modelAuto&&Array.isArray(Me.value)?$e(ri.value,Me.value[0]?Me.value[0]:$t.value):!1:ze.value.enabled&&Array.isArray(Me.value)?Me.value.some(Xt=>$e(Xt,ri.value)):$e(ri.value,Me.value?Me.value:$t.value),ti=ri=>{if(Ct.value.autoRange||xe.weekPicker){if(Ft.value){if(xe.hideOffsetDates&&!ri.current)return!1;const Xt=addDays(Ft.value,+Ct.value.autoRange),mi=mt(H(Ft.value),xe.weekStart);return xe.weekPicker?$e(mi[1],H(ri.value)):$e(Xt,H(ri.value))}return!1}return!1},di=ri=>{if(Ct.value.autoRange||xe.weekPicker){if(Ft.value){const Xt=addDays(Ft.value,+Ct.value.autoRange);if(xe.hideOffsetDates&&!ri.current)return!1;const mi=mt(H(Ft.value),xe.weekStart);return xe.weekPicker?Ee(ri.value,mi[0])&&Be(ri.value,mi[1]):Ee(ri.value,Ft.value)&&Be(ri.value,Xt)}return!1}return!1},ci=ri=>{if(Ct.value.autoRange||xe.weekPicker){if(Ft.value){if(xe.hideOffsetDates&&!ri.current)return!1;const Xt=mt(H(Ft.value),xe.weekStart);return xe.weekPicker?$e(Xt[0],ri.value):$e(Ft.value,ri.value)}return!1}return!1},vi=ri=>xt(Me.value,Ft.value,ri.value),bi=()=>xe.modelAuto&&Array.isArray(xe.internalModelValue)?!!xe.internalModelValue[0]:!1,pi=()=>xe.modelAuto?Rn(xe.internalModelValue):!0,Mi=ri=>{if(xe.weekPicker)return!1;const Xt=Ct.value.enabled?!Gt(ri)&&!Gt(ri,!1):!0;return!yt(ri.value)&&!ii(ri)&&!(!ri.current&&xe.hideOffsetDates)&&Xt},j=ri=>Ct.value.enabled?xe.modelAuto?bi()&&ii(ri):!1:ii(ri),Ae=ri=>De.value?Bl(ri.value,Je.value.highlight):!1,He=ri=>{const Xt=yt(ri.value);return Xt&&(typeof De.value=="function"?!De.value(ri.value,Xt):!De.value.options.highlightDisabled)},Ue=ri=>typeof De.value=="function"?De.value(ri.value):De.value.weekdays?.includes(ri.value.getDay()),Ge=ri=>(Ct.value.enabled||xe.weekPicker)&&(!(Ke.value.count>0)||ri.current)&&pi()&&!(!ri.current&&xe.hideOffsetDates)&&!ii(ri)?vi(ri):!1,_t=ri=>{if(Array.isArray(Me.value)&&Me.value.length===1){const{before:Xt,after:mi}=mn(+Ct.value.maxRange,Me.value[0]);return isBefore(ri.value,Xt)||isAfter(ri.value,mi)}return!1},St=ri=>{if(Array.isArray(Me.value)&&Me.value.length===1){const{before:Xt,after:mi}=mn(+Ct.value.minRange,Me.value[0]);return xt([Xt,mi],Me.value[0],ri.value)}return!1},Ye=ri=>Ct.value.enabled&&(Ct.value.maxRange||Ct.value.minRange)?Ct.value.maxRange&&Ct.value.minRange?_t(ri)||St(ri):Ct.value.maxRange?_t(ri):St(ri):!1,ke=ri=>{const{isRangeStart:Xt,isRangeEnd:mi}=ei(ri),Fi=Ct.value.enabled?Xt||mi:!1;return{dp__cell_offset:!ri.current,dp__pointer:!xe.disabled&&!(!ri.current&&xe.hideOffsetDates)&&!yt(ri.value)&&!Ye(ri),dp__cell_disabled:yt(ri.value)||Ye(ri),dp__cell_highlight:!He(ri)&&(Ae(ri)||Ue(ri))&&!j(ri)&&!Fi&&!ci(ri)&&!(Ge(ri)&&xe.weekPicker)&&!mi,dp__cell_highlight_active:!He(ri)&&(Ae(ri)||Ue(ri))&&j(ri),dp__today:!xe.noToday&&$e(ri.value,$t.value)&&ri.current,"dp--past":Be(ri.value,$t.value),"dp--future":Ee(ri.value,$t.value)}},Xe=ri=>({dp__active_date:j(ri),dp__date_hover:Mi(ri)}),Vt=ri=>{if(Me.value&&!Array.isArray(Me.value)){const Xt=mt(Me.value,xe.weekStart);return{...li(ri),dp__range_start:$e(Xt[0],ri.value),dp__range_end:$e(Xt[1],ri.value),dp__range_between_week:Ee(ri.value,Xt[0])&&Be(ri.value,Xt[1])}}return{...li(ri)}},Jt=ri=>{if(Me.value&&Array.isArray(Me.value)){const Xt=mt(Me.value[0],xe.weekStart),mi=Me.value[1]?mt(Me.value[1],xe.weekStart):[];return{...li(ri),dp__range_start:$e(Xt[0],ri.value)||$e(mi[0],ri.value),dp__range_end:$e(Xt[1],ri.value)||$e(mi[1],ri.value),dp__range_between_week:Ee(ri.value,Xt[0])&&Be(ri.value,Xt[1])||Ee(ri.value,mi[0])&&Be(ri.value,mi[1]),dp__range_between:Ee(ri.value,Xt[1])&&Be(ri.value,mi[0])}}return{...li(ri)}},ei=ri=>{const Xt=Ke.value.count>0?ri.current&&Gt(ri)&&pi():Gt(ri)&&pi(),mi=Ke.value.count>0?ri.current&&Gt(ri,!1)&&pi():Gt(ri,!1)&&pi();return{isRangeStart:Xt,isRangeEnd:mi}},oi=ri=>{const{isRangeStart:Xt,isRangeEnd:mi}=ei(ri);return{dp__range_start:Xt,dp__range_end:mi,dp__range_between:Ge(ri),dp__date_hover:$e(ri.value,Ft.value)&&!Xt&&!mi&&!xe.weekPicker,dp__date_hover_start:Ut(ri,!0),dp__date_hover_end:Ut(ri,!1)}},li=ri=>({...oi(ri),dp__cell_auto_range:di(ri),dp__cell_auto_range_start:ci(ri),dp__cell_auto_range_end:ti(ri)}),fi=ri=>Ct.value.enabled?Ct.value.autoRange?li(ri):xe.modelAuto?{...Xe(ri),...oi(ri)}:xe.weekPicker?Jt(ri):oi(ri):xe.weekPicker?Vt(ri):Xe(ri);return{setHoverDate:Rt,clearHoverDate:qt,getDayClassData:ri=>xe.hideOffsetDates&&!ri.current?{}:{...ke(ri),...fi(ri),[xe.dayClass?xe.dayClass(ri.value,xe.internalModelValue):""]:!0,...We.value.calendarCell??{}}}},Tt=Me=>{const{defaultedFilters:xe,defaultedRange:Ke,propDates:ze,defaultedMultiDates:We}=Oe(Me),De=Ue=>ze.value.disabledDates?typeof ze.value.disabledDates=="function"?ze.value.disabledDates(H(Ue)):!!ca(Ue,ze.value.disabledDates):!1,vt=Ue=>ze.value.maxDate?Me.yearPicker?getYear(Ue)>getYear(ze.value.maxDate):Ee(Ue,ze.value.maxDate):!1,Je=Ue=>ze.value.minDate?Me.yearPicker?getYear(Ue){const Ge=vt(Ue),_t=Je(Ue),St=De(Ue),Ye=xe.value.months.map(ei=>+ei).includes(getMonth(Ue)),ke=Me.disabledWeekDays.length?Me.disabledWeekDays.some(ei=>+ei===getDay(Ue)):!1,Xe=qt(Ue),Vt=getYear(Ue),Jt=zn(Me.yearRange,Vt);return!(Ge||_t||St||Ye||Jt||ke||Xe)},yt=(Ue,Ge)=>Be(...wt(ze.value.minDate,Ue,Ge))||$e(...wt(ze.value.minDate,Ue,Ge)),Ft=(Ue,Ge)=>Ee(...wt(ze.value.maxDate,Ue,Ge))||$e(...wt(ze.value.maxDate,Ue,Ge)),$t=(Ue,Ge,_t)=>{let St=!1;return ze.value.maxDate&&_t&&Ft(Ue,Ge)&&(St=!0),ze.value.minDate&&!_t&&yt(Ue,Ge)&&(St=!0),St},Rt=(Ue,Ge,_t,St)=>{let Ye=!1;return St&&(ze.value.minDate||ze.value.maxDate)?ze.value.minDate&&ze.value.maxDate?Ye=$t(Ue,Ge,_t):(ze.value.minDate&&yt(Ue,Ge)||ze.value.maxDate&&Ft(Ue,Ge))&&(Ye=!0):Ye=!0,Ye},qt=Ue=>Array.isArray(ze.value.allowedDates)&&!ze.value.allowedDates.length?!0:ze.value.allowedDates?!ca(Ue,ze.value.allowedDates,On(Me.monthPicker,Me.yearPicker)):!1,Pt=Ue=>!Ct(Ue),Nt=Ue=>Ke.value.noDisabledRange?!eachDayOfInterval({start:Ue[0],end:Ue[1]}).some(Ge=>Pt(Ge)):!0,zt=Ue=>{if(Ue){const Ge=getYear(Ue);return Ge>=+Me.yearRange[0]&&Ge<=Me.yearRange[1]}return!0},Gt=(Ue,Ge)=>!!(Array.isArray(Ue)&&Ue[Ge]&&(Ke.value.maxRange||Ke.value.minRange)&&zt(Ue[Ge])),Ut=(Ue,Ge,_t=0)=>{if(Gt(Ge,_t)&&zt(Ue)){const St=differenceInCalendarDays(Ue,Ge[_t]),Ye=In(Ge[_t],Ue),ke=Ye.length===1?0:Ye.filter(Vt=>Pt(Vt)).length,Xe=Math.abs(St)-(Ke.value.minMaxRawRange?0:ke);if(Ke.value.minRange&&Ke.value.maxRange)return Xe>=+Ke.value.minRange&&Xe<=+Ke.value.maxRange;if(Ke.value.minRange)return Xe>=+Ke.value.minRange;if(Ke.value.maxRange)return Xe<=+Ke.value.maxRange}return!0},ii=()=>!Me.enableTimePicker||Me.monthPicker||Me.yearPicker||Me.ignoreTimeValidation,ti=Ue=>Array.isArray(Ue)?[Ue[0]?Ca(Ue[0]):null,Ue[1]?Ca(Ue[1]):null]:Ca(Ue),di=(Ue,Ge,_t)=>Ue.find(St=>+St.hours===getHours(Ge)&&St.minutes==="*"?!0:+St.minutes===getMinutes(Ge)&&+St.hours===getHours(Ge))&&_t,ci=(Ue,Ge,_t)=>{const[St,Ye]=Ue,[ke,Xe]=Ge;return!di(St,ke,_t)&&!di(Ye,Xe,_t)&&_t},vi=(Ue,Ge)=>{const _t=Array.isArray(Ge)?Ge:[Ge];return Array.isArray(Me.disabledTimes)?Array.isArray(Me.disabledTimes[0])?ci(Me.disabledTimes,_t,Ue):!_t.some(St=>di(Me.disabledTimes,St,Ue)):Ue},bi=(Ue,Ge)=>{const _t=Array.isArray(Ge)?[Bt(Ge[0]),Ge[1]?Bt(Ge[1]):void 0]:Bt(Ge),St=!Me.disabledTimes(_t);return Ue&&St},pi=(Ue,Ge)=>Me.disabledTimes?Array.isArray(Me.disabledTimes)?vi(Ge,Ue):bi(Ge,Ue):Ge,Mi=Ue=>{let Ge=!0;if(!Ue||ii())return!0;const _t=!ze.value.minDate&&!ze.value.maxDate?ti(Ue):Ue;return(Me.maxTime||ze.value.maxDate)&&(Ge=vn(Me.maxTime,ze.value.maxDate,"max",Ne(_t),Ge)),(Me.minTime||ze.value.minDate)&&(Ge=vn(Me.minTime,ze.value.minDate,"min",Ne(_t),Ge)),pi(Ue,Ge)},j=Ue=>{if(!Me.monthPicker)return!0;let Ge=!0;const _t=H(it(Ue));if(ze.value.minDate&&ze.value.maxDate){const St=H(it(ze.value.minDate)),Ye=H(it(ze.value.maxDate));return Ee(_t,St)&&Be(_t,Ye)||$e(_t,St)||$e(_t,Ye)}if(ze.value.minDate){const St=H(it(ze.value.minDate));Ge=Ee(_t,St)||$e(_t,St)}if(ze.value.maxDate){const St=H(it(ze.value.maxDate));Ge=Be(_t,St)||$e(_t,St)}return Ge},Ae=computed(()=>Ue=>!Me.enableTimePicker||Me.ignoreTimeValidation?!0:Mi(Ue)),He=computed(()=>Ue=>Me.monthPicker?Array.isArray(Ue)&&(Ke.value.enabled||We.value.enabled)?!Ue.filter(Ge=>!j(Ge)).length:j(Ue):!0);return{isDisabled:Pt,validateDate:Ct,validateMonthYearInRange:Rt,isDateRangeAllowed:Nt,checkMinMaxRange:Ut,isValidTime:Mi,isTimeValid:Ae,isMonthValid:He}},ga=()=>{const Me=computed(()=>(ze,We)=>ze?.includes(We)),xe=computed(()=>(ze,We)=>ze.count?ze.solo?!0:We===0:!0),Ke=computed(()=>(ze,We)=>ze.count?ze.solo?!0:We===ze.count-1:!0);return{hideNavigationButtons:Me,showLeftIcon:xe,showRightIcon:Ke}},po=(Me,xe,Ke)=>{const ze=ref$1(0),We=reactive({[Ot.timePicker]:!Me.enableTimePicker||Me.timePicker||Me.monthPicker,[Ot.calendar]:!1,[Ot.header]:!1}),De=computed(()=>Me.monthPicker||Me.timePicker),vt=$t=>{if(Me.flow?.length){if(!$t&&De.value)return Ft();We[$t]=!0,Object.keys(We).filter(Rt=>!We[Rt]).length||Ft()}},Je=()=>{Me.flow?.length&&ze.value!==-1&&(ze.value+=1,xe("flow-step",ze.value),Ft()),Me.flow?.length===ze.value&&nextTick().then(()=>Ct())},Ct=()=>{ze.value=-1},yt=($t,Rt,...qt)=>{Me.flow[ze.value]===$t&&Ke.value&&Ke.value[Rt]?.(...qt)},Ft=($t=0)=>{$t&&(ze.value+=$t),yt(je.month,"toggleMonthPicker",!0),yt(je.year,"toggleYearPicker",!0),yt(je.calendar,"toggleTimePicker",!1,!0),yt(je.time,"toggleTimePicker",!0,!0);const Rt=Me.flow[ze.value];(Rt===je.hours||Rt===je.minutes||Rt===je.seconds)&&yt(Rt,"toggleTimePicker",!0,!0,Rt)};return{childMount:vt,updateFlowStep:Je,resetFlow:Ct,handleFlow:Ft,flowStep:ze}},go={key:1,class:"dp__input_wrap"},yo=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],ho={key:2,class:"dp--clear-btn"},bo=["aria-label"],ko=defineComponent({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...va},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur","text-input"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,{defaultedTextInput:De,defaultedAriaLabels:vt,defaultedInline:Je,defaultedConfig:Ct,defaultedRange:yt,defaultedMultiDates:Ft,defaultedUI:$t,getDefaultPattern:Rt,getDefaultStartTime:qt}=Oe(We),{checkMinMaxRange:Pt}=Tt(We),Nt=ref$1(),zt=ref$1(null),Gt=ref$1(!1),Ut=ref$1(!1),ii=computed(()=>({dp__pointer:!We.disabled&&!We.readonly&&!De.value.enabled,dp__disabled:We.disabled,dp__input_readonly:!De.value.enabled,dp__input:!0,dp__input_not_clearable:!We.clearable,dp__input_icon_pad:!We.hideInputIcon,dp__input_valid:typeof We.state=="boolean"?We.state:!1,dp__input_invalid:typeof We.state=="boolean"?!We.state:!1,dp__input_focus:Gt.value||We.isMenuOpen,dp__input_reg:!De.value.enabled,...$t.value.input??{}})),ti=()=>{ze("set-input-date",null),We.clearable&&We.autoApply&&(ze("set-empty-date"),Nt.value=null)},di=Vt=>{const Jt=qt();return Yl(Vt,De.value.format??Rt(),Jt??En({},We.enableSeconds),We.inputValue,Ut.value,We.formatLocale)},ci=Vt=>{const{rangeSeparator:Jt}=De.value,[ei,oi]=Vt.split(`${Jt}`);if(ei){const li=di(ei.trim()),fi=oi?di(oi.trim()):void 0;if(isAfter(li,fi))return;const ri=li&&fi?[li,fi]:[li];Pt(fi,ri,0)&&(Nt.value=li?ri:null)}},vi=()=>{Ut.value=!0},bi=Vt=>{if(yt.value.enabled)ci(Vt);else if(Ft.value.enabled){const Jt=Vt.split(";");Nt.value=Jt.map(ei=>di(ei.trim())).filter(ei=>ei)}else Nt.value=di(Vt)},pi=Vt=>{const Jt=typeof Vt=="string"?Vt:Vt.target?.value;Jt!==""?(De.value.openMenu&&!We.isMenuOpen&&ze("open"),bi(Jt),ze("set-input-date",Nt.value)):ti(),Ut.value=!1,ze("update:input-value",Jt),ze("text-input",Vt,Nt.value)},Mi=Vt=>{De.value.enabled?(bi(Vt.target.value),De.value.enterSubmit&&za(Nt.value)&&We.inputValue!==""?(ze("set-input-date",Nt.value,!0),Nt.value=null):De.value.enterSubmit&&We.inputValue===""&&(Nt.value=null,ze("clear"))):He(Vt)},j=(Vt,Jt)=>{De.value.enabled&&De.value.tabSubmit&&!Jt&&bi(Vt.target.value),De.value.tabSubmit&&za(Nt.value)&&We.inputValue!==""?(ze("set-input-date",Nt.value,!0,!0),Nt.value=null):De.value.tabSubmit&&We.inputValue===""&&(Nt.value=null,ze("clear",!0))},Ae=()=>{Gt.value=!0,ze("focus"),nextTick().then(()=>{De.value.enabled&&De.value.selectOnFocus&&zt.value?.select()})},He=Vt=>{if(Dt(Vt,Ct.value,!0),De.value.enabled&&De.value.openMenu&&!Je.value.input){if(De.value.openMenu==="open"&&!We.isMenuOpen)return ze("open");if(De.value.openMenu==="toggle")return ze("toggle")}else De.value.enabled||ze("toggle")},Ue=()=>{ze("real-blur"),Gt.value=!1,(!We.isMenuOpen||Je.value.enabled&&Je.value.input)&&ze("blur"),We.autoApply&&De.value.enabled&&Nt.value&&!We.isMenuOpen&&(ze("set-input-date",Nt.value),ze("select-date"),Nt.value=null)},Ge=Vt=>{Dt(Vt,Ct.value,!0),ze("clear")},_t=()=>{ze("close")},St=Vt=>{if(Vt.key==="Tab"&&j(Vt),Vt.key==="Enter"&&Mi(Vt),Vt.key==="Escape"&&De.value.escClose&&_t(),!De.value.enabled){if(Vt.code==="Tab")return;Vt.preventDefault()}},Ye=()=>{zt.value?.focus({preventScroll:!0})},ke=Vt=>{Nt.value=Vt},Xe=Vt=>{Vt.key===Re.tab&&j(Vt,!0)};return xe({focusInput:Ye,setParsedDate:ke}),(Vt,Jt)=>(openBlock(),createElementBlock("div",{onClick:He},[Vt.$slots.trigger&&!Vt.$slots["dp-input"]&&!unref(Je).enabled?renderSlot(Vt.$slots,"trigger",{key:0}):createCommentVNode("",!0),!Vt.$slots.trigger&&(!unref(Je).enabled||unref(Je).input)?(openBlock(),createElementBlock("div",go,[Vt.$slots["dp-input"]&&!Vt.$slots.trigger&&(!unref(Je).enabled||unref(Je).enabled&&unref(Je).input)?renderSlot(Vt.$slots,"dp-input",{key:0,value:Me.inputValue,isMenuOpen:Me.isMenuOpen,onInput:pi,onEnter:Mi,onTab:j,onClear:Ge,onBlur:Ue,onKeypress:St,onPaste:vi,onFocus:Ae,openMenu:()=>Vt.$emit("open"),closeMenu:()=>Vt.$emit("close"),toggleMenu:()=>Vt.$emit("toggle")}):createCommentVNode("",!0),Vt.$slots["dp-input"]?createCommentVNode("",!0):(openBlock(),createElementBlock("input",{key:1,id:Vt.uid?`dp-input-${Vt.uid}`:void 0,ref_key:"inputRef",ref:zt,"data-test-id":"dp-input",name:Vt.name,class:normalizeClass(ii.value),inputmode:unref(De).enabled?"text":"none",placeholder:Vt.placeholder,disabled:Vt.disabled,readonly:Vt.readonly,required:Vt.required,value:Me.inputValue,autocomplete:Vt.autocomplete,"aria-label":unref(vt)?.input,"aria-disabled":Vt.disabled||void 0,"aria-invalid":Vt.state===!1?!0:void 0,onInput:pi,onBlur:Ue,onFocus:Ae,onKeypress:St,onKeydown:Jt[0]||(Jt[0]=ei=>St(ei)),onPaste:vi},null,42,yo)),createBaseVNode("div",{onClick:Jt[3]||(Jt[3]=ei=>ze("toggle"))},[Vt.$slots["input-icon"]&&!Vt.hideInputIcon?(openBlock(),createElementBlock("span",{key:0,class:"dp__input_icon",onClick:Jt[1]||(Jt[1]=ei=>ze("toggle"))},[renderSlot(Vt.$slots,"input-icon")])):createCommentVNode("",!0),!Vt.$slots["input-icon"]&&!Vt.hideInputIcon&&!Vt.$slots["dp-input"]?(openBlock(),createBlock(unref(jt),{key:1,"aria-label":unref(vt)?.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:Jt[2]||(Jt[2]=ei=>ze("toggle"))},null,8,["aria-label"])):createCommentVNode("",!0)]),Vt.$slots["clear-icon"]&&(Vt.alwaysClearable||Me.inputValue&&Vt.clearable&&!Vt.disabled&&!Vt.readonly)?(openBlock(),createElementBlock("span",ho,[renderSlot(Vt.$slots,"clear-icon",{clear:Ge})])):createCommentVNode("",!0),!Vt.$slots["clear-icon"]&&(Vt.alwaysClearable||Vt.clearable&&Me.inputValue&&!Vt.disabled&&!Vt.readonly)?(openBlock(),createElementBlock("button",{key:3,"aria-label":unref(vt)?.clearInput,class:"dp--clear-btn",type:"button",onKeydown:Jt[4]||(Jt[4]=ei=>unref(qe)(ei,()=>Ge(ei),!0,Xe)),onClick:Jt[5]||(Jt[5]=withModifiers(ei=>Ge(ei),["prevent"]))},[createVNode(unref(Sn),{class:"dp__input_icons","data-test-id":"clear-icon"})],40,bo)):createCommentVNode("",!0)])):createCommentVNode("",!0)]))}}),wo=typeof window<"u"?window:void 0,Ea=()=>{},Do=Me=>getCurrentScope()?(onScopeDispose(Me),!0):!1,Mo=(Me,xe,Ke,ze)=>{if(!Me)return Ea;let We=Ea;const De=watch(()=>unref(Me),Je=>{We(),Je&&(Je.removeEventListener(xe,Ke),Je.addEventListener(xe,Ke,ze),We=()=>{Je.removeEventListener(xe,Ke,ze),We=Ea})},{immediate:!0,flush:"post"}),vt=()=>{De(),We()};return Do(vt),vt},$o=(Me,xe,Ke,ze={})=>{const{window:We=wo,event:De="pointerdown"}=ze;return We?Mo(We,De,vt=>{const Je=Le(Me),Ct=Le(xe);!Je||!Ct||Je===vt.target||vt.composedPath().includes(Je)||vt.composedPath().includes(Ct)||Ke(vt)},{passive:!0}):void 0},Ao=["data-dp-mobile"],To=defineComponent({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...va},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date","overlay-toggle","text-input"],setup(Me,{expose:xe,emit:Ke}){const ze=Ke,We=Me,De=useSlots(),vt=ref$1(!1),Je=toRef$1(We,"modelValue"),Ct=toRef$1(We,"timezone"),yt=ref$1(null),Ft=ref$1(null),$t=ref$1(null),Rt=ref$1(!1),qt=ref$1(null),Pt=ref$1(!1),Nt=ref$1(!1),zt=ref$1(!1),Gt=ref$1(!1),{setMenuFocused:Ut,setShiftKey:ii}=Hn(),{clearArrowNav:ti}=At(),{validateDate:di,isValidTime:ci}=Tt(We),{defaultedTransitions:vi,defaultedTextInput:bi,defaultedInline:pi,defaultedConfig:Mi,defaultedRange:j,defaultedMultiDates:Ae}=Oe(We),{menuTransition:He,showTransition:Ue}=aa(vi),{isMobile:Ge}=Qn(Mi),_t=getCurrentInstance();onMounted(()=>{ri(We.modelValue),nextTick().then(()=>{pi.value.enabled||(ei(qt.value)?.addEventListener("scroll",Ei),window?.addEventListener("resize",Li))}),pi.value.enabled&&(vt.value=!0),window?.addEventListener("keyup",Ti),window?.addEventListener("keydown",Hi)}),onUnmounted(()=>{pi.value.enabled||(ei(qt.value)?.removeEventListener("scroll",Ei),window?.removeEventListener("resize",Li)),window?.removeEventListener("keyup",Ti),window?.removeEventListener("keydown",Hi)});const St=et(De,"all",We.presetDates),Ye=et(De,"input");watch([Je,Ct],()=>{ri(Je.value)},{deep:!0});const{openOnTop:ke,menuStyle:Xe,xCorrect:Vt,setMenuPosition:Jt,getScrollableParent:ei,shadowRender:oi}=co({menuRef:yt,menuRefInner:Ft,inputRef:$t,pickerWrapperRef:qt,inline:pi,emit:ze,props:We,slots:De}),{inputValue:li,internalModelValue:fi,parseExternalModelValue:ri,emitModelValue:Xt,formatInputValue:mi,checkBeforeEmit:Fi}=rr(ze,We,{isInputFocused:Rt,isTextInputDate:Gt}),si=computed(()=>({dp__main:!0,dp__theme_dark:We.dark,dp__theme_light:!We.dark,dp__flex_display:pi.value.enabled,"dp--flex-display-collapsed":zt.value,dp__flex_display_with_input:pi.value.input})),hi=computed(()=>We.dark?"dp__theme_dark":"dp__theme_light"),ki=computed(()=>We.teleport?{to:typeof We.teleport=="boolean"?"body":We.teleport,disabled:!We.teleport||pi.value.enabled}:{}),Bi=computed(()=>({class:"dp__outer_menu_wrap"})),gi=computed(()=>pi.value.enabled&&(We.timePicker||We.monthPicker||We.yearPicker||We.quarterPicker)),Ui=()=>$t.value?.$el?.getBoundingClientRect()??{width:0,left:0,right:0},Ei=()=>{vt.value&&(Mi.value.closeOnScroll?ni():Jt())},Li=()=>{vt.value&&Jt();const Di=Ft.value?.$el.getBoundingClientRect().width??0;zt.value=document.body.offsetWidth<=Di},Ti=Di=>{Di.key==="Tab"&&!pi.value.enabled&&!We.teleport&&Mi.value.tabOutClosesMenu&&(qt.value.contains(document.activeElement)||ni()),Nt.value=Di.shiftKey},Hi=Di=>{Nt.value=Di.shiftKey},zi=()=>{!We.disabled&&!We.readonly&&(oi(_t,hn,We),Jt(!1),vt.value=!0,vt.value&&ze("open"),vt.value||xn(),ri(We.modelValue))},an=()=>{li.value="",xn(),Ft.value?.onValueCleared(),$t.value?.setParsedDate(null),ze("update:model-value",null),ze("update:model-timezone-value",null),ze("cleared"),Mi.value.closeOnClearValue&&ni()},Ci=()=>{const Di=fi.value;return!Di||!Array.isArray(Di)&&di(Di)?!0:Array.isArray(Di)?Ae.value.enabled||Di.length===2&&di(Di[0])&&di(Di[1])?!0:j.value.partialRange&&!We.timePicker?di(Di[0]):!1:!1},Ri=()=>{Fi()&&Ci()?(Xt(),ni()):ze("invalid-select",fi.value)},sn=Di=>{Zi(),Xt(),Mi.value.closeOnAutoApply&&!Di&&ni()},Zi=()=>{$t.value&&bi.value.enabled&&$t.value.setParsedDate(fi.value)},Xi=(Di=!1)=>{We.autoApply&&ci(fi.value)&&Ci()&&(j.value.enabled&&Array.isArray(fi.value)?(j.value.partialRange||fi.value.length===2)&&sn(Di):sn(Di))},xn=()=>{bi.value.enabled||(fi.value=null)},ni=(Di=!1)=>{Di&&fi.value&&Mi.value.setDateOnMenuClose&&Ri(),pi.value.enabled||(vt.value&&(vt.value=!1,Vt.value=!1,Ut(!1),ii(!1),ti(),ze("closed"),li.value&&ri(Je.value)),xn(),ze("blur"),Ft.value?.$el?.remove())},yi=(Di,nn,Pi=!1)=>{if(!Di){fi.value=null;return}const ji=Array.isArray(Di)?!Di.some(Yi=>!di(Yi)):di(Di),kn=ci(Di);ji&&kn?(Gt.value=!0,fi.value=Di,nn?(Pt.value=Pi,Ri(),ze("text-submit")):We.autoApply&&Xi(!0),nextTick().then(()=>{Gt.value=!1})):ze("invalid-date",Di)},Si=()=>{We.autoApply&&ci(fi.value)&&Xt(),Zi()},xi=()=>vt.value?ni():zi(),Ni=Di=>{fi.value=Di},rn=()=>{bi.value.enabled&&(Rt.value=!0,mi()),ze("focus")},qi=()=>{bi.value.enabled&&(Rt.value=!1,ri(We.modelValue),Pt.value&&Ol(qt.value,Nt.value)?.focus()),ze("blur")},Ki=Di=>{Ft.value&&Ft.value.updateMonthYear(0,{month:dn(Di.month),year:dn(Di.year)})},ln=Di=>{ri(Di??We.modelValue)},_i=(Di,nn)=>{Ft.value?.switchView(Di,nn)},$i=(Di,nn)=>Mi.value.onClickOutside?Mi.value.onClickOutside(Di,nn):ni(!0),on=(Di=0)=>{Ft.value?.handleFlow(Di)},Vi=()=>yt;return $o(yt,$t,Di=>$i(Ci,Di)),xe({closeMenu:ni,selectDate:Ri,clearValue:an,openMenu:zi,onScroll:Ei,formatInputValue:mi,updateInternalModelValue:Ni,setMonthYear:Ki,parseModel:ln,switchView:_i,toggleMenu:xi,handleFlow:on,getDpWrapMenuRef:Vi}),(Di,nn)=>(openBlock(),createElementBlock("div",{ref_key:"pickerWrapperRef",ref:qt,class:normalizeClass(si.value),"data-datepicker-instance":"","data-dp-mobile":unref(Ge)},[createVNode(ko,mergeProps({ref_key:"inputRef",ref:$t,"input-value":unref(li),"onUpdate:inputValue":nn[0]||(nn[0]=Pi=>isRef(li)?li.value=Pi:null),"is-menu-open":vt.value},Di.$props,{onClear:an,onOpen:zi,onSetInputDate:yi,onSetEmptyDate:unref(Xt),onSelectDate:Ri,onToggle:xi,onClose:ni,onFocus:rn,onBlur:qi,onRealBlur:nn[1]||(nn[1]=Pi=>Rt.value=!1),onTextInput:nn[2]||(nn[2]=Pi=>Di.$emit("text-input",Pi))}),createSlots({_:2},[renderList(unref(Ye),(Pi,ji)=>({name:Pi,fn:withCtx(kn=>[renderSlot(Di.$slots,Pi,normalizeProps(guardReactiveProps(kn)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(openBlock(),createBlock(resolveDynamicComponent(Di.teleport?Teleport:"div"),normalizeProps(guardReactiveProps(ki.value)),{default:withCtx(()=>[createVNode(Transition,{name:unref(He)(unref(ke)),css:unref(Ue)&&!unref(pi).enabled},{default:withCtx(()=>[vt.value?(openBlock(),createElementBlock("div",mergeProps({key:0,ref_key:"dpWrapMenuRef",ref:yt},Bi.value,{class:{"dp--menu-wrapper":!unref(pi).enabled},style:unref(pi).enabled?void 0:unref(Xe)}),[createVNode(hn,mergeProps({ref_key:"dpMenuRef",ref:Ft},Di.$props,{"internal-model-value":unref(fi),"onUpdate:internalModelValue":nn[3]||(nn[3]=Pi=>isRef(fi)?fi.value=Pi:null),class:{[hi.value]:!0,"dp--menu-wrapper":Di.teleport},"open-on-top":unref(ke),"no-overlay-focus":gi.value,collapse:zt.value,"get-input-rect":Ui,"is-text-input-date":Gt.value,onClosePicker:ni,onSelectDate:Ri,onAutoApply:Xi,onTimeUpdate:Si,onFlowStep:nn[4]||(nn[4]=Pi=>Di.$emit("flow-step",Pi)),onUpdateMonthYear:nn[5]||(nn[5]=Pi=>Di.$emit("update-month-year",Pi)),onInvalidSelect:nn[6]||(nn[6]=Pi=>Di.$emit("invalid-select",unref(fi))),onAutoApplyInvalid:nn[7]||(nn[7]=Pi=>Di.$emit("invalid-select",Pi)),onInvalidFixedRange:nn[8]||(nn[8]=Pi=>Di.$emit("invalid-fixed-range",Pi)),onRecalculatePosition:unref(Jt),onTooltipOpen:nn[9]||(nn[9]=Pi=>Di.$emit("tooltip-open",Pi)),onTooltipClose:nn[10]||(nn[10]=Pi=>Di.$emit("tooltip-close",Pi)),onTimePickerOpen:nn[11]||(nn[11]=Pi=>Di.$emit("time-picker-open",Pi)),onTimePickerClose:nn[12]||(nn[12]=Pi=>Di.$emit("time-picker-close",Pi)),onAmPmChange:nn[13]||(nn[13]=Pi=>Di.$emit("am-pm-change",Pi)),onRangeStart:nn[14]||(nn[14]=Pi=>Di.$emit("range-start",Pi)),onRangeEnd:nn[15]||(nn[15]=Pi=>Di.$emit("range-end",Pi)),onDateUpdate:nn[16]||(nn[16]=Pi=>Di.$emit("date-update",Pi)),onInvalidDate:nn[17]||(nn[17]=Pi=>Di.$emit("invalid-date",Pi)),onOverlayToggle:nn[18]||(nn[18]=Pi=>Di.$emit("overlay-toggle",Pi)),onMenuBlur:nn[19]||(nn[19]=Pi=>Di.$emit("blur"))}),createSlots({_:2},[renderList(unref(St),(Pi,ji)=>({name:Pi,fn:withCtx(kn=>[renderSlot(Di.$slots,Pi,normalizeProps(guardReactiveProps({...kn})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","is-text-input-date","onRecalculatePosition"])],16)):createCommentVNode("",!0)]),_:3},8,["name","css"])]),_:3},16))],10,Ao))}}),qn=(()=>{const Me=To;return Me.install=xe=>{xe.component("Vue3DatePicker",Me)},Me})(),So=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"}));Object.entries(So).forEach(([Me,xe])=>{Me!=="default"&&(qn[Me]=xe)}),register();function formatTimezoneId(Me){return Me.slice(Me.indexOf("/")+1).replaceAll("/"," - ").replaceAll("_"," ")}function getTimezones(){return Intl.supportedValuesOf("timeZone").filter(Me=>!Me.startsWith("Etc/")).map(Me=>({timezoneId:Me,label:formatTimezoneId(Me)})).sort((Me,xe)=>Me.timezoneId.localeCompare(xe.timezoneId))}const _sfc_main$1=defineComponent({__name:"NcTimezonePicker",props:mergeModels({additionalTimezones:{default:()=>[]},uid:{default:createElementId()}},{modelValue:{default:"floating"},modelModifiers:{}}),emits:["update:modelValue"],setup(Me){const xe=useModel(Me,"modelValue"),Ke=Me,ze=computed(()=>Ke.additionalTimezones.map(({timezoneId:vt,label:Je})=>({timezoneId:vt,label:Je}))),We=computed(()=>{const vt=getTimezones();return vt.unshift(...ze.value),vt});function De(vt,Je,Ct){const yt=Ct.trim().split(/\s+/),Ft=Object.values(vt);return yt.every($t=>Ft.some(Rt=>Rt.toLowerCase().includes($t.toLowerCase())))}return(vt,Je)=>(openBlock(),createBlock(NcSelect,{modelValue:xe.value,"onUpdate:modelValue":Je[0]||(Je[0]=Ct=>xe.value=Ct),"aria-label-combobox":unref(t)("Search for timezone"),clearable:!1,"filter-by":De,multiple:!1,options:We.value,placeholder:unref(t)("Type to search time zone"),uid:vt.uid,reduce:Ct=>Ct.timezoneId,label:"label"},null,8,["modelValue","aria-label-combobox","options","placeholder","uid","reduce"]))}});register();const _hoisted_1$1={class:"vue-date-time-picker__wrapper"},_hoisted_2$1={ref:"target",class:"vue-date-time-picker__wrapper"};t("Datepicker input"),t("Datepicker menu"),getCanonicalLocale();var isWindowAvailable=typeof window<"u";isWindowAvailable&&(function(){for(var Me=0,xe=["ms","moz","webkit","o"],Ke=0;Keni.length)&&(yi=ni.length);for(var Si=0,xi=new Array(yi);Si=rn.length?{done:!0}:{done:!1,value:rn[ln++]}},e:function(Di){throw Di},f:_i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $i,on=!0,Vi=!1;return{s:function(){Ki=Ki.call(rn)},n:function(){var Di=Ki.next();return on=Di.done,Di},e:function(Di){Vi=!0,$i=Di},f:function(){try{on||Ki.return==null||Ki.return()}finally{if(Vi)throw $i}}}})(Object.getOwnPropertyNames(ni));try{for(Si.s();!(yi=Si.n()).done;){var xi=yi.value,Ni=ni[xi];ni[xi]=Ni&&qt(Ni)==="object"?Gt(Ni):Ni}}catch(rn){Si.e(rn)}finally{Si.f()}return Object.freeze(ni)}var Ut,ii,ti=function(ni){if(!ni.compressed)return ni;for(var yi in ni.compressed=!1,ni.emojis){var Si=ni.emojis[yi];for(var xi in Nt)Si[xi]=Si[Nt[xi]],delete Si[Nt[xi]];Si.short_names||(Si.short_names=[]),Si.short_names.unshift(yi),Si.sheet_x=Si.sheet[0],Si.sheet_y=Si.sheet[1],delete Si.sheet,Si.text||(Si.text=""),Si.added_in||(Si.added_in=6),Si.added_in=Si.added_in.toFixed(1),Si.search=zt(Si)}return Gt(ni)},di=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"],ci={};function vi(){ii=!0,Ut=Rt.get("frequently")}var bi={add:function(ni){ii||vi();var yi=ni.id;Ut||(Ut=ci),Ut[yi]||(Ut[yi]=0),Ut[yi]+=1,Rt.set("last",yi),Rt.set("frequently",Ut)},get:function(ni){if(ii||vi(),!Ut){ci={};for(var yi=[],Si=Math.min(ni,di.length),xi=0;xi',custom:'',flags:'',foods:'',nature:'',objects:'',smileys:'',people:' ',places:'',recent:'',symbols:''};function Mi(ni,yi,Si,xi,Ni,rn,qi,Ki){var ln,_i=typeof ni=="function"?ni.options:ni;return yi&&(_i.render=yi,_i.staticRenderFns=Si,_i._compiled=!0),{exports:ni,options:_i}}var j=Mi({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},emits:["click"],created:function(){this.svgs=pi}},(function(){var ni=this,yi=ni._self._c;return yi("div",{staticClass:"emoji-mart-anchors",attrs:{role:"tablist"}},ni._l(ni.categories,(function(Si){return yi("button",{key:Si.id,class:{"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":Si.id==ni.activeCategory.id},style:{color:Si.id==ni.activeCategory.id?ni.color:""},attrs:{role:"tab",type:"button","aria-label":Si.name,"aria-selected":Si.id==ni.activeCategory.id,"data-title":ni.i18n.categories[Si.id]},on:{click:function(xi){return ni.$emit("click",Si)}}},[yi("div",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:ni._s(ni.svgs[Si.id])}}),ni._v(" "),yi("span",{staticClass:"emoji-mart-anchor-bar",style:{backgroundColor:ni.color},attrs:{"aria-hidden":"true"}})])})),0)}),[]),Ae=j.exports;function He(ni,yi){if(!(ni instanceof yi))throw new TypeError("Cannot call a class as a function")}function Ue(ni){var yi=(function(Si,xi){if(qt(Si)!="object"||!Si)return Si;var Ni=Si[Symbol.toPrimitive];if(Ni!==void 0){var rn=Ni.call(Si,"string");if(qt(rn)!="object")return rn;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Si)})(ni);return qt(yi)=="symbol"?yi:yi+""}function Ge(ni,yi){for(var Si=0;Si1114111||Math.floor(qi)!=qi)throw RangeError("Invalid code point: "+qi);qi<=65535?Si.push(qi):(ni=55296+((qi-=65536)>>10),yi=qi%1024+56320,Si.push(ni,yi)),(xi+1===Ni||Si.length>16384)&&(rn+=String.fromCharCode.apply(null,Si),Si.length=0)}return rn};function Ye(ni){var yi=ni.split("-").map((function(Si){return"0x".concat(Si)}));return St.apply(null,yi)}function ke(ni){return ni.reduce((function(yi,Si){return yi.indexOf(Si)===-1&&yi.push(Si),yi}),[])}function Xe(ni,yi){var Si=ke(ni),xi=ke(yi);return Si.filter((function(Ni){return xi.indexOf(Ni)>=0}))}function Vt(ni,yi){var Si={};for(var xi in ni){var Ni=ni[xi],rn=Ni;Object.prototype.hasOwnProperty.call(yi,xi)&&(rn=yi[xi]),qt(rn)==="object"&&(rn=Vt(Ni,rn)),Si[xi]=rn}return Si}function Jt(ni,yi){var Si=typeof Symbol<"u"&&ni[Symbol.iterator]||ni["@@iterator"];if(!Si){if(Array.isArray(ni)||(Si=(function(ln,_i){if(ln){if(typeof ln=="string")return ei(ln,_i);var $i=Object.prototype.toString.call(ln).slice(8,-1);return $i==="Object"&&ln.constructor&&($i=ln.constructor.name),$i==="Map"||$i==="Set"?Array.from(ln):$i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($i)?ei(ln,_i):void 0}})(ni))||yi){Si&&(ni=Si);var xi=0,Ni=function(){};return{s:Ni,n:function(){return xi>=ni.length?{done:!0}:{done:!1,value:ni[xi++]}},e:function(ln){throw ln},f:Ni}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var rn,qi=!0,Ki=!1;return{s:function(){Si=Si.call(ni)},n:function(){var ln=Si.next();return qi=ln.done,ln},e:function(ln){Ki=!0,rn=ln},f:function(){try{qi||Si.return==null||Si.return()}finally{if(Ki)throw rn}}}}function ei(ni,yi){(yi==null||yi>ni.length)&&(yi=ni.length);for(var Si=0,xi=new Array(yi);Si1&&arguments[1]!==void 0?arguments[1]:{},xi=Si.emojisToShowFilter,Ni=Si.include,rn=Si.exclude,qi=Si.custom,Ki=Si.recent,ln=Si.recentLength,_i=ln===void 0?20:ln;He(this,ni),this._data=ti(yi),this._emojisFilter=xi||null,this._include=Ni||null,this._exclude=rn||null,this._custom=qi||[],this._recent=Ki||bi.get(_i),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}),[{key:"buildIndex",value:function(){var ni=this,yi=this._data.categories;if(this._include&&(yi=(yi=yi.filter((function(rn){return ni._include.includes(rn.id)}))).sort((function(rn,qi){var Ki=ni._include.indexOf(rn.id),ln=ni._include.indexOf(qi.id);return Kiln?1:0}))),yi.forEach((function(rn){if(ni.isCategoryNeeded(rn.id)){var qi={id:rn.id,name:rn.name,emojis:[]};rn.emojis.forEach((function(Ki){var ln=ni.addEmoji(Ki);ln&&qi.emojis.push(ln)})),qi.emojis.length&&ni._categories.push(qi)}})),this.isCategoryNeeded("custom")){if(this._custom.length>0){var Si,xi=Jt(this._custom);try{for(xi.s();!(Si=xi.n()).done;){var Ni=Si.value;this.addCustomEmoji(Ni)}}catch(rn){xi.e(rn)}finally{xi.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map((function(rn){var qi,Ki=Jt(ni._customCategory.emojis);try{for(Ki.s();!(qi=Ki.n()).done;){var ln=qi.value;if(ln.id===rn)return void ni._recentCategory.emojis.push(ln)}}catch(_i){Ki.e(_i)}finally{Ki.f()}ni.hasEmoji(rn)&&ni._recentCategory.emojis.push(ni.emoji(rn))})),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:"findEmoji",value:function(ni,yi){var Si=ni.match(oi);if(Si&&(ni=Si[1],Si[2]&&(yi=parseInt(Si[2],10))),this._data.aliases.hasOwnProperty(ni)&&(ni=this._data.aliases[ni]),this._emojis.hasOwnProperty(ni)){var xi=this._emojis[ni];return yi?xi.getSkin(yi):xi}return this._nativeEmojis.hasOwnProperty(ni)?this._nativeEmojis[ni]:null}},{key:"categories",value:function(){return this._categories}},{key:"emoji",value:function(ni){this._data.aliases.hasOwnProperty(ni)&&(ni=this._data.aliases[ni]);var yi=this._emojis[ni];if(!yi)throw new Error("Can not find emoji by id: "+ni);return yi}},{key:"firstEmoji",value:function(){var ni=this._emojis[Object.keys(this._emojis)[0]];if(!ni)throw new Error("Can not get first emoji");return ni}},{key:"hasEmoji",value:function(ni){return this._data.aliases.hasOwnProperty(ni)&&(ni=this._data.aliases[ni]),!!this._emojis[ni]}},{key:"nativeEmoji",value:function(ni){return this._nativeEmojis.hasOwnProperty(ni)?this._nativeEmojis[ni]:null}},{key:"search",value:function(ni,yi){var Si=this;if(yi||(yi=75),!ni.length)return null;if(ni=="-"||ni=="-1")return[this.emoji("-1")];var xi,Ni=ni.toLowerCase().split(/[\s|,|\-|_]+/);Ni.length>2&&(Ni=[Ni[0],Ni[1]]),xi=Ni.map((function(qi){for(var Ki=Si._emojis,ln=Si._searchIndex,_i=0,$i=function(){var Vi=qi[on];if(_i++,ln[Vi]||(ln[Vi]={}),!(ln=ln[Vi]).results){var Di={};for(var nn in ln.results=[],ln.emojis={},Ki){var Pi=Ki[nn],ji=Pi._data.search,kn=qi.substr(0,_i),Yi=ji.indexOf(kn);if(Yi!=-1){var Yt=Yi+1;kn==nn&&(Yt=0),ln.results.push(Pi),ln.emojis[nn]=Pi,Di[nn]=Yt}}ln.results.sort((function(ui,ai){return Di[ui.id]-Di[ai.id]}))}Ki=ln.emojis},on=0;on1?Xe.apply(null,xi):xi.length?xi[0]:[])&&rn.length>yi&&(rn=rn.slice(0,yi)),rn}},{key:"addCustomEmoji",value:function(ni){var yi=Object.assign({},ni,{id:ni.short_names[0],custom:!0});yi.search||(yi.search=zt(yi));var Si=new ri(yi);return this._emojis[Si.id]=Si,this._customCategory.emojis.push(Si),Si}},{key:"addEmoji",value:function(ni){var yi=this,Si=this._data.emojis[ni];if(!this.isEmojiNeeded(Si))return!1;var xi=new ri(Si);if(this._emojis[ni]=xi,xi.native&&(this._nativeEmojis[xi.native]=xi),xi._skins)for(var Ni in xi._skins){var rn=xi._skins[Ni];rn.native&&(this._nativeEmojis[rn.native]=rn)}return xi.emoticons&&xi.emoticons.forEach((function(qi){yi._emoticons[qi]||(yi._emoticons[qi]=ni)})),xi}},{key:"isCategoryNeeded",value:function(ni){var yi=!this._include||!this._include.length||this._include.indexOf(ni)>-1,Si=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(ni)>-1;return!(!yi||Si)}},{key:"isEmojiNeeded",value:function(ni){return!this._emojisFilter||this._emojisFilter(ni)}}])})(),ri=(function(){return _t((function ni(yi){if(He(this,ni),this._data=Object.assign({},yi),this._skins=null,this._data.skin_variations)for(var Si in this._skins=[],li){var xi=li[Si],Ni=this._data.skin_variations[xi],rn=Object.assign({},yi);for(var qi in Ni)rn[qi]=Ni[qi];delete rn.skin_variations,rn.skin_tone=parseInt(Si)+1,this._skins.push(new ni(rn))}for(var Ki in this._sanitized=mi(this._data),this._sanitized)this[Ki]=this._sanitized[Ki];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}),[{key:"getSkin",value:function(ni){return ni&&ni!="native"&&this._skins?this._skins[ni-1]:this}},{key:"getPosition",value:function(){var ni=+(1.6666666666666667*this._data.sheet_x).toFixed(2),yi=+(100/60*this._data.sheet_y).toFixed(2);return"".concat(ni,"% ").concat(yi,"%")}},{key:"ariaLabel",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}])})(),Xt=(function(){return _t((function ni(yi,Si,xi,Ni,rn,qi,Ki){He(this,ni),this._emoji=yi,this._native=Ni,this._skin=Si,this._set=xi,this._fallback=rn,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(Ki),this.content=this._content(),this.title=qi===!0?yi.short_name:null,this.ariaLabel=yi.ariaLabel(),Object.freeze(this)}),[{key:"getEmoji",value:function(){return this._emoji.getSkin(this._skin)}},{key:"_canRender",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:"_cssClass",value:function(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}},{key:"_cssStyle",value:function(ni){var yi={};return this._isCustom()?yi={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:ni+"px",height:ni+"px"}:this._hasEmoji()&&!this._isNative()&&(yi={backgroundPosition:this.getEmoji().getPosition()}),ni&&(yi=this._isNative()?Object.assign(yi,{fontSize:Math.round(.95*ni*10)/10+"px"}):Object.assign(yi,{width:ni+"px",height:ni+"px"})),yi}},{key:"_content",value:function(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}},{key:"_isNative",value:function(){return this._native}},{key:"_isCustom",value:function(){return this.getEmoji().custom}},{key:"_hasEmoji",value:function(){if(!this.getEmoji()._data)return!1;var ni=this.getEmoji()._data["has_img_"+this._set];return ni===void 0||ni}},{key:"_emojiType",value:function(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}])})();function mi(ni){var yi=ni.name,Si=ni.short_names,xi=ni.skin_tone,Ni=ni.skin_variations,rn=ni.emoticons,qi=ni.unified,Ki=ni.custom,ln=ni.imageUrl,_i=ni.id||Si[0],$i=":".concat(_i,":");return Ki?{id:_i,name:yi,colons:$i,emoticons:rn,custom:Ki,imageUrl:ln}:(xi&&($i+=":skin-tone-".concat(xi,":")),{id:_i,name:yi,colons:$i,emoticons:rn,unified:qi.toLowerCase(),skin:xi||(Ni?1:null),native:Ye(qi)})}function Fi(ni,yi,Si){return(yi=Ue(yi))in ni?Object.defineProperty(ni,yi,{value:Si,enumerable:!0,configurable:!0,writable:!0}):ni[yi]=Si,ni}var si={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},hi={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function ki(ni,yi){var Si=Object.keys(ni);if(Object.getOwnPropertySymbols){var xi=Object.getOwnPropertySymbols(ni);yi&&(xi=xi.filter((function(Ni){return Object.getOwnPropertyDescriptor(ni,Ni).enumerable}))),Si.push.apply(Si,xi)}return Si}function Bi(ni){for(var yi=1;yi0},emojiObjects:function(){var ni=this;return this.emojis.map((function(yi){return{emojiObject:yi,emojiView:new Xt(yi,ni.emojiProps.skin,ni.emojiProps.set,ni.emojiProps.native,ni.emojiProps.fallback,ni.emojiProps.emojiTooltip,ni.emojiProps.emojiSize)}}))}},components:{Emoji:gi}},(function(){var ni=this,yi=ni._self._c;return ni.isVisible&&(ni.isSearch||ni.hasResults)?yi("section",{class:{"emoji-mart-category":!0,"emoji-mart-no-results":!ni.hasResults},attrs:{"aria-label":ni.i18n.categories[ni.id]}},[yi("div",{staticClass:"emoji-mart-category-label"},[yi("h3",{staticClass:"emoji-mart-category-label"},[ni._v(ni._s(ni.i18n.categories[ni.id]))])]),ni._v(" "),ni._l(ni.emojiObjects,(function(Si){var xi=Si.emojiObject,Ni=Si.emojiView;return[Ni.canRender?yi("button",{key:xi.id,staticClass:"emoji-mart-emoji",class:ni.activeClass(xi),attrs:{"aria-label":Ni.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":xi.short_name,title:Ni.title},on:{mouseenter:function(rn){ni.emojiProps.onEnter(Ni.getEmoji())},mouseleave:function(rn){ni.emojiProps.onLeave(Ni.getEmoji())},click:function(rn){ni.emojiProps.onClick(Ni.getEmoji())}}},[yi("span",{class:Ni.cssClass,style:Ni.cssStyle},[ni._v(ni._s(Ni.content))])]):ni._e()]})),ni._v(" "),ni.hasResults?ni._e():yi("div",[yi("emoji",{attrs:{data:ni.data,emoji:"sleuth_or_spy",native:ni.emojiProps.native,skin:ni.emojiProps.skin,set:ni.emojiProps.set}}),ni._v(" "),yi("div",{staticClass:"emoji-mart-no-results-label"},[ni._v(ni._s(ni.i18n.notfound))])],1)],2):ni._e()}),[]).exports,Ei=Mi({props:{skin:{type:Number,required:!0}},emits:["change"],data:function(){return{opened:!1}},methods:{onClick:function(ni){this.opened&&ni!=this.skin&&this.$emit("change",ni),this.opened=!this.opened}}},(function(){var ni=this,yi=ni._self._c;return yi("div",{class:{"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":ni.opened}},ni._l(6,(function(Si){return yi("span",{key:Si,class:{"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":ni.skin==Si}},[yi("span",{class:"emoji-mart-skin emoji-mart-skin-tone-"+Si,on:{click:function(xi){return ni.onClick(Si)}}})])})),0)}),[]).exports,Li=Mi({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:gi,Skins:Ei}},(function(){var ni=this,yi=ni._self._c;return yi("div",{staticClass:"emoji-mart-preview"},[ni.emoji?[yi("div",{staticClass:"emoji-mart-preview-emoji"},[yi("emoji",{attrs:{data:ni.data,emoji:ni.emoji,native:ni.emojiProps.native,skin:ni.emojiProps.skin,set:ni.emojiProps.set}})],1),ni._v(" "),yi("div",{staticClass:"emoji-mart-preview-data"},[yi("div",{staticClass:"emoji-mart-preview-name"},[ni._v(ni._s(ni.emoji.name))]),ni._v(" "),yi("div",{staticClass:"emoji-mart-preview-shortnames"},ni._l(ni.emojiShortNames,(function(Si){return yi("span",{key:Si,staticClass:"emoji-mart-preview-shortname"},[ni._v(":"+ni._s(Si)+":")])})),0),ni._v(" "),yi("div",{staticClass:"emoji-mart-preview-emoticons"},ni._l(ni.emojiEmoticons,(function(Si){return yi("span",{key:Si,staticClass:"emoji-mart-preview-emoticon"},[ni._v(ni._s(Si))])})),0)])]:[yi("div",{staticClass:"emoji-mart-preview-emoji"},[yi("emoji",{attrs:{data:ni.data,emoji:ni.idleEmoji,native:ni.emojiProps.native,skin:ni.emojiProps.skin,set:ni.emojiProps.set}})],1),ni._v(" "),yi("div",{staticClass:"emoji-mart-preview-data"},[yi("span",{staticClass:"emoji-mart-title-label"},[ni._v(ni._s(ni.title))])]),ni._v(" "),ni.showSkinTones?yi("div",{staticClass:"emoji-mart-preview-skins"},[yi("skins",{attrs:{skin:ni.skinProps.skin},on:{change:function(Si){return ni.onSkinChange(Si)}}})],1):ni._e()]],2)}),[]).exports,Ti=Mi({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},emits:["search","enter","arrowUp","arrowDown","arrowRight","arrowLeft"],data:function(){return{value:""}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit("search",this.value)}},methods:{clear:function(){this.value=""}},mounted:function(){var ni=this.$el.querySelector("input");this.autoFocus&&ni.focus()}},(function(){var ni=this,yi=ni._self._c;return yi("div",{staticClass:"emoji-mart-search"},[yi("input",{directives:[{name:"model",rawName:"v-model",value:ni.value,expression:"value"}],attrs:{type:"text",placeholder:ni.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description"},domProps:{value:ni.value},on:{keydown:[function(Si){return!Si.type.indexOf("key")&&ni._k(Si.keyCode,"left",37,Si.key,["Left","ArrowLeft"])||"button"in Si&&Si.button!==0?null:function(xi){return ni.$emit("arrowLeft",xi)}.apply(null,arguments)},function(Si){return!Si.type.indexOf("key")&&ni._k(Si.keyCode,"right",39,Si.key,["Right","ArrowRight"])||"button"in Si&&Si.button!==2?null:function(){return ni.$emit("arrowRight")}.apply(null,arguments)},function(Si){return!Si.type.indexOf("key")&&ni._k(Si.keyCode,"down",40,Si.key,["Down","ArrowDown"])?null:function(){return ni.$emit("arrowDown")}.apply(null,arguments)},function(Si){return!Si.type.indexOf("key")&&ni._k(Si.keyCode,"up",38,Si.key,["Up","ArrowUp"])?null:function(xi){return ni.$emit("arrowUp",xi)}.apply(null,arguments)},function(Si){return!Si.type.indexOf("key")&&ni._k(Si.keyCode,"enter",13,Si.key,"Enter")?null:function(){return ni.$emit("enter")}.apply(null,arguments)}],input:function(Si){Si.target.composing||(ni.value=Si.target.value)}}}),ni._v(" "),yi("span",{staticClass:"hidden",attrs:{id:"emoji-picker-search-description"}},[ni._v(`Use the left, right, up and down arrow keys to navigate the emoji search - results.`)])])}),[]),Hi=Ti.exports;function zi(ni,yi){(yi==null||yi>ni.length)&&(yi=ni.length);for(var Si=0,xi=new Array(yi);Si0})),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}),[{key:"onScroll",value:function(){var ni=this._vm.$refs.scroll;if(ni){for(var yi=ni.scrollTop,Si=this.filteredCategories[0],xi=0,Ni=this.filteredCategories.length;xiyi)break;Si=rn}this.activeCategory=Si}}},{key:"allCategories",get:function(){return this._categories}},{key:"filteredCategories",get:function(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter((function(ni){return ni.emojis.length>0}))}},{key:"previewEmojiCategory",get:function(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}},{key:"onAnchorClick",value:function(ni){var yi=this;if(!this.searchEmojis){var Si=this.filteredCategories.indexOf(ni),xi=this._vm.getCategoryComponent(Si);this._vm.infiniteScroll?(function(){if(xi){var Ni=xi.$el.offsetTop;ni.first&&(Ni=0),yi._vm.$refs.scroll.scrollTop=Ni}})():this.activeCategory=this.filteredCategories[Si]}}},{key:"onSearch",value:function(ni){var yi=this._data.search(ni,this.maxSearchResults);this.searchEmojis=yi,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}},{key:"onEmojiEnter",value:function(ni){this.previewEmoji=ni,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}},{key:"onEmojiLeave",value:function(ni){this.previewEmoji=null}},{key:"onArrowLeft",value:function(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}},{key:"onArrowRight",value:function(){this.previewEmojiIdx=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}},{key:"onArrowDown",value:function(){if(this.previewEmojiIdx==-1)return this.onArrowRight();var ni=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length,yi=this._perLine;this.previewEmojiIdx+yi>ni&&(yi=ni%this._perLine);for(var Si=0;Si0?this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:0);for(var yi=0;yixi+yi.scrollTop&&(yi.scrollTop+=Si.offsetHeight),Si&&Si.offsetTop"u")return 0;var ni=document.createElement("div");ni.style.width="100px",ni.style.height="100px",ni.style.overflow="scroll",ni.style.position="absolute",ni.style.top="-9999px",document.body.appendChild(ni);var yi=ni.offsetWidth-ni.clientWidth;return document.body.removeChild(ni),yi})()},filteredCategories:function(){return this.view.filteredCategories},mergedI18n:function(){return Object.freeze(Vt(sn,this.i18n))},idleEmoji:function(){try{return this.data.emoji(this.emoji)}catch(ni){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(ni),this.data.firstEmoji()}},isSearching:function(){return this.view.searchEmojis!=null}},watch:{skin:function(){this.onSkinChange(this.skin)}},methods:{onScroll:function(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint:function(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick:function(ni){this.view.onAnchorClick(ni)},onSearch:function(ni){this.view.onSearch(ni)},onEmojiEnter:function(ni){this.view.onEmojiEnter(ni)},onEmojiLeave:function(ni){this.view.onEmojiLeave(ni)},onArrowLeft:function(ni){var yi=this.view.previewEmojiIdx;this.view.onArrowLeft(),ni&&this.view.previewEmojiIdx!==yi&&ni.preventDefault()},onArrowRight:function(){this.view.onArrowRight()},onArrowDown:function(){this.view.onArrowDown()},onArrowUp:function(ni){this.view.onArrowUp(),ni.preventDefault()},onEnter:function(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),bi.add(this.view.previewEmoji))},onEmojiClick:function(ni){this.$emit("select",ni),bi.add(ni)},onTextSelect:function(ni){ni.stopPropagation()},onSkinChange:function(ni){this.activeSkin=ni,Rt.update({skin:ni}),this.$emit("skin-change",ni)},getCategoryComponent:function(ni){var yi=this.$refs["categories_"+ni];return yi&&"0"in yi?yi[0]:yi}},components:{Anchors:Ae,Category:Ui,Preview:Li,Search:Hi}},Xi=Mi(Zi,(function(){var ni=this,yi=ni._self._c;return yi("section",{staticClass:"emoji-mart emoji-mart-static",style:ni.customStyles},[ni.showCategories?yi("div",{staticClass:"emoji-mart-bar emoji-mart-bar-anchors"},[yi("anchors",{attrs:{data:ni.data,i18n:ni.mergedI18n,color:ni.color,categories:ni.view.allCategories,"active-category":ni.view.activeCategory},on:{click:ni.onAnchorClick}})],1):ni._e(),ni._v(" "),ni._t("searchTemplate",(function(){return[ni.showSearch?yi("search",{ref:"search",attrs:{data:ni.data,i18n:ni.mergedI18n,"auto-focus":ni.autoFocus,"on-search":ni.onSearch},on:{search:ni.onSearch,arrowLeft:ni.onArrowLeft,arrowRight:ni.onArrowRight,arrowDown:ni.onArrowDown,arrowUp:ni.onArrowUp,enter:ni.onEnter,select:ni.onTextSelect}}):ni._e()]}),{data:ni.data,i18n:ni.i18n,autoFocus:ni.autoFocus,onSearch:ni.onSearch}),ni._v(" "),yi("div",{ref:"scroll",staticClass:"emoji-mart-scroll",attrs:{role:"tabpanel"},on:{scroll:ni.onScroll}},[yi("div",{ref:"scrollContent",attrs:{id:"emoji-mart-list",role:"listbox","aria-expanded":"true"}},[ni._t("customCategory"),ni._v(" "),ni._l(ni.view.filteredCategories,(function(Si,xi){return yi("category",{directives:[{name:"show",rawName:"v-show",value:ni.infiniteScroll||Si==ni.view.activeCategory||ni.isSearching,expression:"infiniteScroll || category == view.activeCategory || isSearching"}],key:Si.id,ref:"categories_"+xi,refInFor:!0,attrs:{data:ni.data,i18n:ni.mergedI18n,id:Si.id,name:Si.name,emojis:Si.emojis,"emoji-props":ni.emojiProps}})}))],2)]),ni._v(" "),ni._t("previewTemplate",(function(){return[ni.showPreview?yi("div",{staticClass:"emoji-mart-bar emoji-mart-bar-preview"},[yi("preview",{attrs:{data:ni.data,title:ni.title,emoji:ni.view.previewEmoji,"idle-emoji":ni.idleEmoji,"show-skin-tones":ni.showSkinTones,"emoji-props":ni.emojiProps,"skin-props":ni.skinProps,"on-skin-change":ni.onSkinChange}})],1):ni._e()]}),{data:ni.data,title:ni.title,emoji:ni.view.previewEmoji,idleEmoji:ni.idleEmoji,showSkinTones:ni.showSkinTones,emojiProps:ni.emojiProps,skinProps:ni.skinProps,onSkinChange:ni.onSkinChange})],2)}),[]),xn=Xi.exports})(),De})()}))})(emojiMart$1)),emojiMart$1.exports}if(requireEmojiMart(),distExports.getBuilder("nextcloud-vue").persist(!0).build(),register(t5,t16,t35,t40),t("Search emoji"),t("No emoji found"),t("Search results"),t("Frequently used"),t("Smileys & Emotion"),t("People & Body"),t("Animals & Nature"),t("Food & Drink"),t("Activities"),t("Travel & Places"),t("Objects"),t("Symbols"),t("Flags"),t("Custom"),new Color(255,222,52,t("Neutral skin color")),new Color(228,205,166,t("Light skin tone")),new Color(250,221,192,t("Medium light skin tone")),new Color(174,129,87,t("Medium skin tone")),new Color(158,113,88,t("Medium dark skin tone")),new Color(96,79,69,t("Dark skin tone")),t("Pick an emoji"),register(),Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--clickable-area-small")),register(t36),register(t39),e()?.circles?.teamResourceProviders,register(t9),t("Related resources"),t("Anything shared with the same group of people will show up here"),Array.prototype.find||(Array.prototype.find=function(Me){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof Me!="function")throw new TypeError("predicate must be a function");for(var xe=Object(this),Ke=xe.length>>>0,ze=arguments[1],We,De=0;De{registerWidget(Me,xe,Ke,ze)};function registerWidget(Me,xe,Ke=()=>{},ze){const We={hasInteractiveView:!0,fullWidth:!1,...ze};if(window._vue_richtext_widgets[Me]){logger.error(`[ReferencePicker]: Widget for id ${Me} already registered`);return}window._vue_richtext_widgets[Me]={id:Me,callback:xe,onDestroy:Ke,...We}}window._vue_richtext_custom_picker_elements??={},window._registerCustomPickerElement??=registerCustomPickerElement;function registerCustomPickerElement(Me,xe,Ke=()=>{},ze="large"){if(window._vue_richtext_custom_picker_elements[Me]){logger.error(`Custom reference picker element for id ${Me} already registered`);return}window._vue_richtext_custom_picker_elements[Me]={id:Me,callback:xe,onDestroy:Ke,size:ze}}register(t8),t("Any link"),h$3("core","filetypes/link.svg"),window._vue_richtext_reference_providers??=loadState$1("core","reference-provider-list",[]),window._vue_richtext_reference_provider_timestamps??=loadState$1("core","reference-provider-timestamps",{}),register(t38,t43),register(),register(t24),register(t30,t38,t40),register(t12,t19);const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/);function asciiControl(Me){return Me!==null&&(Me<32||Me===127)}function markdownLineEndingOrSpace(Me){return Me!==null&&(Me<0||Me===32)}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(Me){return xe;function xe(Ke){return Ke!==null&&Ke>-1&&Me.test(String.fromCharCode(Ke))}}const convert=(function(Me){if(Me==null)return ok;if(typeof Me=="function")return castFactory(Me);if(typeof Me=="object")return Array.isArray(Me)?anyFactory(Me):propsFactory(Me);if(typeof Me=="string")return typeFactory(Me);throw new Error("Expected function, string, or object as test")});function anyFactory(Me){const xe=[];let Ke=-1;for(;++Ke0&&!Ke&&(Me[Me.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),Ke}ref$1(null),register(t32,t35),t("Write a message …"),register(t0),{...NcSelect.props,placeholder:t("Select a tag")},register(t47),debounce(function(Me){this.loadGroup(Me)},200);const svgCheck='';var toastify$1={exports:{}},toastify=toastify$1.exports,hasRequiredToastify;function requireToastify(){return hasRequiredToastify||(hasRequiredToastify=1,(function(Me){(function(xe,Ke){Me.exports?Me.exports=Ke():xe.Toastify=Ke()})(toastify,function(xe){var Ke=function(vt){return new Ke.lib.init(vt)},ze="1.12.0";Ke.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},Ke.lib=Ke.prototype={toastify:ze,constructor:Ke,init:function(vt){return vt||(vt={}),this.options={},this.toastElement=null,this.options.text=vt.text||Ke.defaults.text,this.options.node=vt.node||Ke.defaults.node,this.options.duration=vt.duration===0?0:vt.duration||Ke.defaults.duration,this.options.selector=vt.selector||Ke.defaults.selector,this.options.callback=vt.callback||Ke.defaults.callback,this.options.destination=vt.destination||Ke.defaults.destination,this.options.newWindow=vt.newWindow||Ke.defaults.newWindow,this.options.close=vt.close||Ke.defaults.close,this.options.gravity=vt.gravity==="bottom"?"toastify-bottom":Ke.defaults.gravity,this.options.positionLeft=vt.positionLeft||Ke.defaults.positionLeft,this.options.position=vt.position||Ke.defaults.position,this.options.backgroundColor=vt.backgroundColor||Ke.defaults.backgroundColor,this.options.avatar=vt.avatar||Ke.defaults.avatar,this.options.className=vt.className||Ke.defaults.className,this.options.stopOnFocus=vt.stopOnFocus===void 0?Ke.defaults.stopOnFocus:vt.stopOnFocus,this.options.onClick=vt.onClick||Ke.defaults.onClick,this.options.offset=vt.offset||Ke.defaults.offset,this.options.escapeMarkup=vt.escapeMarkup!==void 0?vt.escapeMarkup:Ke.defaults.escapeMarkup,this.options.ariaLive=vt.ariaLive||Ke.defaults.ariaLive,this.options.style=vt.style||Ke.defaults.style,vt.backgroundColor&&(this.options.style.background=vt.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var vt=document.createElement("div");vt.className="toastify on "+this.options.className,this.options.position?vt.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(vt.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):vt.className+=" toastify-right",vt.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var Je in this.options.style)vt.style[Je]=this.options.style[Je];if(this.options.ariaLive&&vt.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)vt.appendChild(this.options.node);else if(this.options.escapeMarkup?vt.innerText=this.options.text:vt.innerHTML=this.options.text,this.options.avatar!==""){var Ct=document.createElement("img");Ct.src=this.options.avatar,Ct.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?vt.appendChild(Ct):vt.insertAdjacentElement("afterbegin",Ct)}if(this.options.close===!0){var yt=document.createElement("button");yt.type="button",yt.setAttribute("aria-label","Close"),yt.className="toast-close",yt.innerHTML="✖",yt.addEventListener("click",function(zt){zt.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var Ft=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&Ft>360?vt.insertAdjacentElement("afterbegin",yt):vt.appendChild(yt)}if(this.options.stopOnFocus&&this.options.duration>0){var $t=this;vt.addEventListener("mouseover",function(zt){window.clearTimeout(vt.timeOutValue)}),vt.addEventListener("mouseleave",function(){vt.timeOutValue=window.setTimeout(function(){$t.removeElement(vt)},$t.options.duration)})}if(typeof this.options.destination<"u"&&vt.addEventListener("click",function(zt){zt.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&vt.addEventListener("click",function(zt){zt.stopPropagation(),this.options.onClick()}.bind(this)),typeof this.options.offset=="object"){var Rt=We("x",this.options),qt=We("y",this.options),Pt=this.options.position=="left"?Rt:"-"+Rt,Nt=this.options.gravity=="toastify-top"?qt:"-"+qt;vt.style.transform="translate("+Pt+","+Nt+")"}return vt},showToast:function(){this.toastElement=this.buildToast();var vt;if(typeof this.options.selector=="string"?vt=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?vt=this.options.selector:vt=document.body,!vt)throw"Root element is not defined";var Je=Ke.defaults.oldestFirst?vt.firstChild:vt.lastChild;return vt.insertBefore(this.toastElement,Je),Ke.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(vt){vt.className=vt.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),vt.parentNode&&vt.parentNode.removeChild(vt),this.options.callback.call(vt),Ke.reposition()}.bind(this),400)}},Ke.reposition=function(){for(var vt={top:15,bottom:15},Je={top:15,bottom:15},Ct={top:15,bottom:15},yt=document.getElementsByClassName("toastify"),Ft,$t=0;$t0?window.innerWidth:screen.width;Pt<=360?(yt[$t].style[Ft]=Ct[Ft]+"px",Ct[Ft]+=Rt+qt):De(yt[$t],"toastify-left")===!0?(yt[$t].style[Ft]=vt[Ft]+"px",vt[Ft]+=Rt+qt):(yt[$t].style[Ft]=Je[Ft]+"px",Je[Ft]+=Rt+qt)}return this};function We(vt,Je){return Je.offset[vt]?isNaN(Je.offset[vt])?Je.offset[vt]:Je.offset[vt]+"px":"0px"}function De(vt,Je){return!vt||typeof Je!="string"?!1:!!(vt.className&&vt.className.trim().split(/\s+/gi).indexOf(Je)>-1)}return Ke.lib.init.prototype=Ke.lib,Ke})})(toastify$1)),toastify$1.exports}var toastifyExports=requireToastify();const Toastify=getDefaultExportFromCjs(toastifyExports),gtBuilder=getGettextBuilder().detectLanguage();for(const Me of[{language:"ar",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" لا يصلح كاسم مجلد.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" غير مسموح به كاسم مجلد']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" غير مسموح به داخل اسم مجلد.']},{msgid:"All files",msgstr:["كل الملفات"]},{msgid:"Choose",msgstr:["إختَر"]},{msgid:"Choose {file}",msgstr:["إختر {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["إختَر %n ملف","إختَر %n ملف","إختَر %n ملف","إختَر %n ملفات","إختَر %n ملف","إختر %n ملف"]},{msgid:"Copy",msgstr:["نسخ"]},{msgid:"Copy to {target}",msgstr:["نسخ إلى {target}"]},{msgid:"Could not create the new folder",msgstr:["تعذّر إنشاء المجلد الجديد"]},{msgid:"Could not load files settings",msgstr:["يتعذّر تحميل إعدادات الملفات"]},{msgid:"Could not load files views",msgstr:["تعذر تحميل عرض الملفات"]},{msgid:"Create directory",msgstr:["إنشاء مجلد"]},{msgid:"Current view selector",msgstr:["محدد العرض الحالي"]},{msgid:"Favorites",msgstr:["المفضلة"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["الملفات والمجلدات التي تحددها كمفضلة ستظهر هنا."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["الملفات و المجلدات التي قمت مؤخراً بتعديلها سوف تظهر هنا."]},{msgid:"Filter file list",msgstr:["تصفية قائمة الملفات"]},{msgid:"Folder name cannot be empty.",msgstr:["اسم المجلد لا يمكن أن يكون فارغاً."]},{msgid:"Home",msgstr:["البداية"]},{msgid:"Modified",msgstr:["التعديل"]},{msgid:"Move",msgstr:["نقل"]},{msgid:"Move to {target}",msgstr:["نقل إلى {target}"]},{msgid:"Name",msgstr:["الاسم"]},{msgid:"New",msgstr:["جديد"]},{msgid:"New folder",msgstr:["مجلد جديد"]},{msgid:"New folder name",msgstr:["اسم المجلد الجديد"]},{msgid:"No files in here",msgstr:["لا توجد ملفات هنا"]},{msgid:"No files matching your filter were found.",msgstr:["لا توجد ملفات تتطابق مع عامل التصفية الذي وضعته"]},{msgid:"No matching files",msgstr:["لا توجد ملفات مطابقة"]},{msgid:"Recent",msgstr:["الحالي"]},{msgid:"Select all entries",msgstr:["حدد جميع الإدخالات"]},{msgid:"Select entry",msgstr:["إختَر المدخل"]},{msgid:"Select the row for {nodename}",msgstr:["إختر سطر الـ {nodename}"]},{msgid:"Size",msgstr:["الحجم"]},{msgid:"Undo",msgstr:["تراجع"]},{msgid:"Upload some content or sync with your devices!",msgstr:["قم برفع بعض المحتوى أو المزامنة مع أجهزتك!"]}]},{language:"ast",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["«{name}» ye un nome de carpeta inválidu."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["«{name}» ye un nome de carpeta inválidu"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["Nun se permite'l caráuter «/» dientro'l nome de les carpetes."]},{msgid:"All files",msgstr:["Tolos ficheros"]},{msgid:"Choose",msgstr:["Escoyer"]},{msgid:"Choose {file}",msgstr:["Escoyer «{ficheru}»"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Escoyer %n ficheru","Escoyer %n ficheros"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar en: {target}"]},{msgid:"Could not create the new folder",msgstr:["Nun se pudo crear la carpeta"]},{msgid:"Could not load files settings",msgstr:["Nun se pudo cargar la configuración de los ficheros"]},{msgid:"Could not load files views",msgstr:["Nun se pudieron cargar les vistes de los ficheros"]},{msgid:"Create directory",msgstr:["Crear un direutoriu"]},{msgid:"Current view selector",msgstr:["Selector de la vista actual"]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Equí apaecen los ficheros y les carpetes que metas en Favoritos."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Equí apaecen los fichero y les carpetes que modificares apocayá."]},{msgid:"Filter file list",msgstr:["Peñerar la llista de ficheros"]},{msgid:"Folder name cannot be empty.",msgstr:["El nome de la carpeta nun pue tar baleru."]},{msgid:"Home",msgstr:["Aniciu"]},{msgid:"Modified",msgstr:["Modificóse"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover a {target}"]},{msgid:"Name",msgstr:["Nome"]},{msgid:"New",msgstr:["Nuevu"]},{msgid:"New folder",msgstr:["Carpeta nueva"]},{msgid:"New folder name",msgstr:["Nome de carpeta nuevu"]},{msgid:"No files in here",msgstr:["Equí nun hai nengún ficheru"]},{msgid:"No files matching your filter were found.",msgstr:["Nun s'atopó nengún ficheru que concasare cola peñera."]},{msgid:"No matching files",msgstr:["Nun hai nengún ficheru que concase"]},{msgid:"Recent",msgstr:["De recién"]},{msgid:"Select all entries",msgstr:["Seleicionar toles entraes"]},{msgid:"Select entry",msgstr:["Seleicionar la entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Seleicionar la filera de: {nodename}"]},{msgid:"Size",msgstr:["Tamañu"]},{msgid:"Undo",msgstr:["Desfacer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["¡Xubi dalgún elementu o sincroniza colos tos preseos!"]}]},{language:"ca",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:[`No és permès d'usar el caràcter "{char}" en un nom.`]},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" no és un nom permès.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" no és vàlid com a nom de carpeta.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" no és vàlid com a nom de carpeta']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" és un mot reservat i no està permès com a nom.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:[`"/" no està permès en el nom d'una carpeta.`]},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n conflicte de fitxers","%n conflictes de fitxers"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n onflicte de fitxers a {dirname}","%n conflictes de fitxers a {dirname}"]},{msgid:"All files",msgstr:["Tots els fitxers"]},{msgid:"Cancel",msgstr:["Cancel·lar"]},{msgid:"Cancel the entire operation",msgstr:["Cancel·lar tota l'operació"]},{msgid:"Choose",msgstr:["Tria"]},{msgid:"Choose {file}",msgstr:["Tria {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Tria %n fitxer","Tria %n fitxers"]},{msgid:"Confirm",msgstr:["Confirma"]},{msgid:"Continue",msgstr:["Continuar"]},{msgid:"Copy",msgstr:["Copia"]},{msgid:"Copy to {target}",msgstr:["Copia a {target}"]},{msgid:"Could not create the new folder",msgstr:["No s'ha pogut crear la carpeta nova"]},{msgid:"Could not load files settings",msgstr:["No es poden carregar fitxers de configuració"]},{msgid:"Could not load files views",msgstr:["No es poden carregar fitxers de vistes"]},{msgid:"Create directory",msgstr:["Crea un directori"]},{msgid:"Current view selector",msgstr:["Selector de visualització actual"]},{msgid:"Enter your name",msgstr:["Escriviu el vostre nom"]},{msgid:"Existing version",msgstr:["Versió existent"]},{msgid:"Failed to set nickname.",msgstr:["No s'ha pogut desar el sobrenom."]},{msgid:"Favorites",msgstr:["Preferits"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Els fitxers i les carpetes que marqueu com a favorits es mostraran aquí."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Els fitxers i les carpetes recentment modificats es mostraran aquí."]},{msgid:"Filter file list",msgstr:["Filtrar llistat de fitxers"]},{msgid:"Folder name cannot be empty.",msgstr:["El nom de la carpeta no pot estar buit."]},{msgid:"Guest identification",msgstr:["Identificació com a convidat"]},{msgid:"Home",msgstr:["Inici"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Si seleccioneu les dues versions, el fitxer entrant tindrà un número afegit al seu nom."]},{msgid:"Invalid name.",msgstr:["Nom no vàlid."]},{msgid:"Last modified date unknown",msgstr:["Data de l'última modificació desconeguda"]},{msgid:"Modified",msgstr:["Data de modificació"]},{msgid:"Move",msgstr:["Desplaça"]},{msgid:"Move to {target}",msgstr:["Desplaça a {target}"]},{msgid:"Name",msgstr:["Nom"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Els noms poden tenir com a màxim 64 caràcters."]},{msgid:"Names must not be empty.",msgstr:["Els noms no poden ser buits."]},{msgid:'Names must not end with "{extension}".',msgstr:[`Els noms no poden acabar amb l'extensió "{extension}".`]},{msgid:"Names must not start with a dot.",msgstr:["Els noms no poden començar amb un punt."]},{msgid:"New",msgstr:["Crea"]},{msgid:"New folder",msgstr:["Carpeta nova"]},{msgid:"New folder name",msgstr:["Nom de la carpeta nova"]},{msgid:"New version",msgstr:["Nova versió"]},{msgid:"No files in here",msgstr:["No hi ha cap fitxer"]},{msgid:"No files matching your filter were found.",msgstr:["No s'ha trobat cap fitxer que coincideixi amb el filtre."]},{msgid:"No matching files",msgstr:["No hi ha cap fitxer que coincideixi"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Si us plau, escriu un nom amb 2 caràcters com a mínim."]},{msgid:"Recent",msgstr:["Recents"]},{msgid:"Select all checkboxes",msgstr:["Selecciona totes les caselles de selecció"]},{msgid:"Select all entries",msgstr:["Selecciona totes les entrades"]},{msgid:"Select all existing files",msgstr:["Selecciona tots els fitxers existents"]},{msgid:"Select all new files",msgstr:["Selecciona tots els fitxers nous"]},{msgid:"Select entry",msgstr:["Selecciona l'entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Selecciona la fila per a {nodename}"]},{msgid:"Size",msgstr:["Mida"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Omet %n fitxer","Omet %n fitxers"]},{msgid:"Skip this file",msgstr:["Omet aquest fitxer"]},{msgid:"Submit name",msgstr:["Entreu el nom"]},{msgid:"Undo",msgstr:["Desfés"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Pugeu contingut o sincronitzeu-lo amb els vostres dispositius!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Quan es selecciona una carpeta entrant, també se sobreescriuran els fitxers que hi entrin en conflicte."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Quan es selecciona una carpeta entrant, el contingut s'escriu a la carpeta existent i es realitza una resolució recursiva de conflictes."]},{msgid:"Which files do you want to keep?",msgstr:["Quins fitxers voleu conservar?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Actualment se us mostra com a {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Actualment no esteu identificat."]},{msgid:"You cannot leave the name empty.",msgstr:["No podeu deixar el nom buit."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Heu de triar com a mínim una solució de conflicte"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Heu de seleccionar com a mínim una versió de cada fitxer per continuar."]}]},{language:"cs_CZ",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:["„{char}“ není možné použít uvnitř názvu."]},{msgid:'"{extension}" is not an allowed name.',msgstr:["„{extension}“ není možné použít jako název."]},{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}“ není platný název složky."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}“ není povolený název složky."]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:["„{segment}“ je vyhrazeným názvem a není možné ho použít."]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["znak „/“ (dopředné lomítko) není možné použít uvnitř názvu složky."]},{msgid:"All files",msgstr:["Veškeré soubory"]},{msgid:"Cancel",msgstr:["Storno"]},{msgid:"Choose",msgstr:["Zvolit"]},{msgid:"Choose {file}",msgstr:["Zvolit {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Zvolte %n soubor","Zvolte %n soubory","Zvolte %n souborů","Zvolte %n soubory"]},{msgid:"Copy",msgstr:["Zkopírovat"]},{msgid:"Copy to {target}",msgstr:["Zkopírovat do {target}"]},{msgid:"Could not create the new folder",msgstr:["Novou složku se nepodařilo vytvořit"]},{msgid:"Could not load files settings",msgstr:["Nepodařilo se načíst nastavení pro soubory"]},{msgid:"Could not load files views",msgstr:["Nepodařilo se načíst pohledy souborů"]},{msgid:"Create directory",msgstr:["Vytvořit složku"]},{msgid:"Current view selector",msgstr:["Výběr stávajícího zobrazení"]},{msgid:"Enter your name",msgstr:["Zadejte své jméno"]},{msgid:"Failed to set nickname.",msgstr:["Nepodařilo se nastavit přezdívku."]},{msgid:"Favorites",msgstr:["Oblíbené"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Zde se zobrazí soubory a složky, které označíte jako oblíbené."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Zde se zobrazí soubory a složky, které jste nedávno pozměnili."]},{msgid:"Filter file list",msgstr:["Filtrovat seznam souborů"]},{msgid:"Folder name cannot be empty.",msgstr:["Složku je třeba nějak nazvat."]},{msgid:"Guest identification",msgstr:["Identifikace hosta"]},{msgid:"Home",msgstr:["Domů"]},{msgid:"Invalid name.",msgstr:["Neplatný název."]},{msgid:"Modified",msgstr:["Změněno"]},{msgid:"Move",msgstr:["Přesounout"]},{msgid:"Move to {target}",msgstr:["Přesunout do {target}"]},{msgid:"Name",msgstr:["Název"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Je třeba, aby délka jmen nepřesahovala 64 znaků."]},{msgid:"Names must not be empty.",msgstr:["Názvy je třeba vyplnit."]},{msgid:'Names must not end with "{extension}".',msgstr:["Názvy nemohou končit na „{extension}“."]},{msgid:"Names must not start with a dot.",msgstr:["Názvy nemohou začínat tečkou."]},{msgid:"New",msgstr:["Nové"]},{msgid:"New folder",msgstr:["Nová složka"]},{msgid:"New folder name",msgstr:["Název pro novou složku"]},{msgid:"No files in here",msgstr:["Nejsou zde žádné soubory"]},{msgid:"No files matching your filter were found.",msgstr:["Nenalezeny žádné soubory odpovídající vašemu filtru"]},{msgid:"No matching files",msgstr:["Žádné odpovídající soubory"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Zadejte jméno dlouhé alespoň 2 znaky."]},{msgid:"Recent",msgstr:["Nedávné"]},{msgid:"Select all entries",msgstr:["Vybrat všechny položky"]},{msgid:"Select entry",msgstr:["Vybrat položku"]},{msgid:"Select the row for {nodename}",msgstr:["Vybrat řádek pro {nodename}"]},{msgid:"Size",msgstr:["Velikost"]},{msgid:"Submit name",msgstr:["Odeslat jméno"]},{msgid:"Undo",msgstr:["Zpět"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Nahrajte sem nějaký obsah nebo proveďte synchronizaci se svými zařízeními!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["V tuto chvíli jste identifikováni jako {nickname}."]},{msgid:"You are currently not identified.",msgstr:["V tuto chvíli nejste identifikovaní."]},{msgid:"You cannot leave the name empty.",msgstr:["Jméno nelze ponechat nevyplněné."]}]},{language:"da",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" er ikke tilladt i et navn.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" er ikke tilladt i et navn.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" er et ugyldigt mappenavn.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" er ikke et tilladt mappenavn']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" er et reserveret navn og er derfor ikke tilladt.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" er ikke tilladt i et mappenavn.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n filkonflikt","%n filer konflikter"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n filkonflikt i {dirname}","%n filkonflikter i {dirname}"]},{msgid:"All files",msgstr:["Alle filer"]},{msgid:"Cancel",msgstr:["Fortryd"]},{msgid:"Cancel the entire operation",msgstr:["Annullér hele operationen"]},{msgid:"Choose",msgstr:["Vælg"]},{msgid:"Choose {file}",msgstr:["Vælg {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Vælg %n fil","Vælg %n filer"]},{msgid:"Confirm",msgstr:["Bekræft"]},{msgid:"Continue",msgstr:["Fortsæt"]},{msgid:"Copy",msgstr:["Kopier"]},{msgid:"Copy to {target}",msgstr:["Kopier til {target}"]},{msgid:"Could not create the new folder",msgstr:["Kunne ikke oprette den nye mappe"]},{msgid:"Could not load files settings",msgstr:["Filindstillingerne kunne ikke indlæses"]},{msgid:"Could not load files views",msgstr:["Kunne ikke indlæse filvisninger"]},{msgid:"Create directory",msgstr:["Opret mappe"]},{msgid:"Current view selector",msgstr:["Aktuel visningsvælger"]},{msgid:"Enter your name",msgstr:["Indtast dit navn"]},{msgid:"Existing version",msgstr:["Eksisterende version"]},{msgid:"Failed to set nickname.",msgstr:["Forsøg på at gemme kaldenavn mislykkedes."]},{msgid:"Favorites",msgstr:["Favoritter"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Filer og mapper, du markerer som foretrukne, vises her."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Filer og mapper, du for nylig har ændret, vises her."]},{msgid:"Filter file list",msgstr:["Filtrer fil liste"]},{msgid:"Folder name cannot be empty.",msgstr:["Mappenavnet må ikke være tomt."]},{msgid:"Guest identification",msgstr:["Gæsteidentifikation"]},{msgid:"Home",msgstr:["Hjem"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Hvis du vælger begge versioner, vil den indkommende fil have et nummer tilføjet til sit navn."]},{msgid:"Invalid name.",msgstr:["Ugyldigt navn."]},{msgid:"Last modified date unknown",msgstr:["Senest ændret dato ukendt"]},{msgid:"Modified",msgstr:["Ændret"]},{msgid:"Move",msgstr:["Flyt"]},{msgid:"Move to {target}",msgstr:["Flyt til {target}"]},{msgid:"Name",msgstr:["Navn"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Navne kan højst være 64 tegn lange."]},{msgid:"Names must not be empty.",msgstr:["Navne kan ikke være tomt."]},{msgid:'Names must not end with "{extension}".',msgstr:['Navne må ikke ende på "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Navne skal starte med et punktum."]},{msgid:"New",msgstr:["Ny"]},{msgid:"New folder",msgstr:["Ny mappe"]},{msgid:"New folder name",msgstr:["Ny mappe navn"]},{msgid:"New version",msgstr:["Ny version"]},{msgid:"No files in here",msgstr:["Ingen filer here"]},{msgid:"No files matching your filter were found.",msgstr:["Der blev ikke fundet nogen filer, der matcher dit filter."]},{msgid:"No matching files",msgstr:["Ingen matchende filer"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Indtast et navn med mindst 2 tegn."]},{msgid:"Recent",msgstr:["Seneste"]},{msgid:"Select all checkboxes",msgstr:["Markér alle afkrydsningsfelter"]},{msgid:"Select all entries",msgstr:["Vælg alle poster"]},{msgid:"Select all existing files",msgstr:["Vælg alle eksisterende filer"]},{msgid:"Select all new files",msgstr:["Vælg alle nye filer"]},{msgid:"Select entry",msgstr:["Vælg post"]},{msgid:"Select the row for {nodename}",msgstr:["Vælg rækken for {nodenavn}"]},{msgid:"Size",msgstr:["Størelse"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Spring %n fil over","Spring %n filer over"]},{msgid:"Skip this file",msgstr:["Spring denne fil over"]},{msgid:"Submit name",msgstr:["Indsend navn"]},{msgid:"Undo",msgstr:["Fortryd"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Upload noget indhold eller synkroniser med dine enheder!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Når en indkommende mappe er valgt, vil eventuelle modstridende filer i det også blive overskrevet."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Når en indkommende mappe er valgt, er indholdet skrevet ind i den eksisterende mappe og en rekursiv konfliktløsning udføres."]},{msgid:"Which files do you want to keep?",msgstr:["Hvilke filer vil du have?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Du er i øjeblikket identificeret som {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Du er ikke identificeret."]},{msgid:"You cannot leave the name empty.",msgstr:["Du kan ikke efterlade navnet tomt."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Du skal vælge mindst én konfliktløsning"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Du skal vælge mindst én version af hver fil for at fortsætte."]}]},{language:"de",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" ist innerhalb eines Namens nicht zulässig.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" ist kein zulässiger Name.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" ist ein ungültiger Ordnername.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" ist kein zulässiger Ordnername']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" ist ein reservierter Name und nicht zulässig.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" ist innerhalb eines Ordnernamens nicht zulässig.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n Dateikonflikt","%n Dateikonflikte"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n Dateikonflikt in {dirname}","%n Dateikonflikte in {dirname}"]},{msgid:"All files",msgstr:["Alle Dateien"]},{msgid:"Cancel",msgstr:["Abbrechen"]},{msgid:"Cancel the entire operation",msgstr:["Den gesamten Vorgang abbrechen"]},{msgid:"Choose",msgstr:["Auswählen"]},{msgid:"Choose {file}",msgstr:["{file} auswählen"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n Datei auswählen","%n Dateien auswählen"]},{msgid:"Confirm",msgstr:["Bestätigen"]},{msgid:"Continue",msgstr:["Fortsetzen"]},{msgid:"Copy",msgstr:["Kopieren"]},{msgid:"Copy to {target}",msgstr:["Nach {target} kopieren"]},{msgid:"Could not create the new folder",msgstr:["Der neue Ordner konnte nicht erstellt werden"]},{msgid:"Could not load files settings",msgstr:["Dateieinstellungen konnten nicht geladen werden"]},{msgid:"Could not load files views",msgstr:["Dateiansichten konnten nicht geladen werden"]},{msgid:"Create directory",msgstr:["Verzeichnis erstellen"]},{msgid:"Current view selector",msgstr:["Aktuelle Ansichtsauswahl"]},{msgid:"Enter your name",msgstr:["Gib deinen Namen ein"]},{msgid:"Existing version",msgstr:["Vorhandene Version"]},{msgid:"Failed to set nickname.",msgstr:["Spitzname konnte nicht gespeichert werden."]},{msgid:"Favorites",msgstr:["Favoriten"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Dateien und Ordner, die du als Favorit markierst, werden hier angezeigt."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Dateien und Ordner, die du kürzlich geändert hast, werden hier angezeigt."]},{msgid:"Filter file list",msgstr:["Dateiliste filtern"]},{msgid:"Folder name cannot be empty.",msgstr:["Der Ordnername darf nicht leer sein."]},{msgid:"Guest identification",msgstr:["Gast-Identifikation"]},{msgid:"Home",msgstr:["Home"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Wenn beide Versionen ausgewählt werden, wird dem Namen der eingehenden Datei eine Nummer hinzugefügt."]},{msgid:"Invalid name.",msgstr:["Ungültiger Name."]},{msgid:"Last modified date unknown",msgstr:["Datum der letzten Änderung unbekannt"]},{msgid:"Modified",msgstr:["Geändert"]},{msgid:"Move",msgstr:["Verschieben"]},{msgid:"Move to {target}",msgstr:["Nach {target} verschieben"]},{msgid:"Name",msgstr:["Name"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Namen dürfen maximal 64 Zeichen lang sein."]},{msgid:"Names must not be empty.",msgstr:["Namen dürfen nicht leer sein."]},{msgid:'Names must not end with "{extension}".',msgstr:['Namen dürfen nicht mit "{extension}" enden.']},{msgid:"Names must not start with a dot.",msgstr:["Namen dürfen nicht mit einem Punkt beginnen."]},{msgid:"New",msgstr:["Neu"]},{msgid:"New folder",msgstr:["Neuer Ordner"]},{msgid:"New folder name",msgstr:["Neuer Ordnername"]},{msgid:"New version",msgstr:["Neue Version"]},{msgid:"No files in here",msgstr:["Hier sind keine Dateien"]},{msgid:"No files matching your filter were found.",msgstr:["Es wurden keine Dateien gefunden, die deinem Filter entsprechen."]},{msgid:"No matching files",msgstr:["Keine passenden Dateien"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Bitte einen Namen mit mindestens zwei Zeichen eingeben."]},{msgid:"Recent",msgstr:["Neueste"]},{msgid:"Select all checkboxes",msgstr:["Alle Kontrollkästchen aktivieren"]},{msgid:"Select all entries",msgstr:["Alle Einträge auswählen"]},{msgid:"Select all existing files",msgstr:["Alle vorhandenen Dateien auswählen"]},{msgid:"Select all new files",msgstr:["Alle neuen Dateien auswählen"]},{msgid:"Select entry",msgstr:["Eintrag auswählen"]},{msgid:"Select the row for {nodename}",msgstr:["Die Zeile für {nodename} auswählen."]},{msgid:"Size",msgstr:["Größe"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["%n Datei überspringen","%n Dateien überspringen"]},{msgid:"Skip this file",msgstr:["Diese Datei überspringen"]},{msgid:"Submit name",msgstr:["Namen senden"]},{msgid:"Undo",msgstr:["Rückgängig machen"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Lade Inhalte hoch oder synchronisiere diese mit deinen Geräten!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Wenn ein eingehender Ordner ausgewählt wird, werden auch alle darin enthaltenen Dateien mit Konflikten überschrieben."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Bei Auswahl eines eingehenden Ordners wird der Inhalt in den vorhandenen Ordner geschrieben und eine rekursive Konfliktlösung durchgeführt."]},{msgid:"Which files do you want to keep?",msgstr:["Welche Dateien sollen behalten werden?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Du bist derzeit als {nickname} identifiziert."]},{msgid:"You are currently not identified.",msgstr:["Du bist momentan nicht identifiziert."]},{msgid:"You cannot leave the name empty.",msgstr:["Du kannst den Namen nicht leer lassen."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Es muss mindestens eine Konfliktlösung gewählt werden"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Es muss mindestens eine Version jeder Datei ausgewählt werden, um fortzufahren."]}]},{language:"de_DE",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" ist innerhalb eines Namens nicht zulässig.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" ist kein zulässiger Name.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" ist ein ungültiger Ordnername.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" ist kein zulässiger Ordnername']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" ist ein reservierter Name und nicht zulässig.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" ist innerhalb eines Ordnernamens nicht zulässig.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n Dateikonflikt","%n Dateikonflikte"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n Dateikonflikt in {dirname}","%n Dateikonflikte in {dirname}"]},{msgid:"All files",msgstr:["Alle Dateien"]},{msgid:"Cancel",msgstr:["Abbrechen"]},{msgid:"Cancel the entire operation",msgstr:["Den gesamten Vorgang abbrechen"]},{msgid:"Choose",msgstr:["Auswählen"]},{msgid:"Choose {file}",msgstr:["{file} auswählen"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n Datei auswählen","%n Dateien auswählen"]},{msgid:"Confirm",msgstr:["Bestätigen"]},{msgid:"Continue",msgstr:["Fortsetzen"]},{msgid:"Copy",msgstr:["Kopieren"]},{msgid:"Copy to {target}",msgstr:["Nach {target} kopieren"]},{msgid:"Could not create the new folder",msgstr:["Der neue Ordner konnte nicht erstellt werden"]},{msgid:"Could not load files settings",msgstr:["Dateieinstellungen konnten nicht geladen werden"]},{msgid:"Could not load files views",msgstr:["Dateiansichten konnten nicht geladen werden"]},{msgid:"Create directory",msgstr:["Verzeichnis erstellen"]},{msgid:"Current view selector",msgstr:["Aktuelle Ansichtsauswahl"]},{msgid:"Enter your name",msgstr:["Geben Sie Ihren Namen ein"]},{msgid:"Existing version",msgstr:["Vorhandene Version"]},{msgid:"Failed to set nickname.",msgstr:["Spitzname konnte nicht gespeichert werden."]},{msgid:"Favorites",msgstr:["Favoriten"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Dateien und Ordner, die Sie als Favorit markieren, werden hier angezeigt."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Dateien und Ordner, die Sie kürzlich geändert haben, werden hier angezeigt."]},{msgid:"Filter file list",msgstr:["Dateiliste filtern"]},{msgid:"Folder name cannot be empty.",msgstr:["Der Ordnername darf nicht leer sein."]},{msgid:"Guest identification",msgstr:["Gast-Identifikation"]},{msgid:"Home",msgstr:["Home"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Wenn beide Versionen ausgewählt werden, wird dem Namen der eingehenden Datei eine Nummer hinzugefügt."]},{msgid:"Invalid name.",msgstr:["Ungültiger Name."]},{msgid:"Last modified date unknown",msgstr:["Datum der letzten Änderung unbekannt"]},{msgid:"Modified",msgstr:["Geändert"]},{msgid:"Move",msgstr:["Verschieben"]},{msgid:"Move to {target}",msgstr:["Nach {target} verschieben"]},{msgid:"Name",msgstr:["Name"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Namen dürfen maximal 64 Zeichen lang sein."]},{msgid:"Names must not be empty.",msgstr:["Namen dürfen nicht leer sein."]},{msgid:'Names must not end with "{extension}".',msgstr:['Namen dürfen nicht mit "{extension}" enden.']},{msgid:"Names must not start with a dot.",msgstr:["Namen dürfen nicht mit einem Punkt beginnen."]},{msgid:"New",msgstr:["Neu"]},{msgid:"New folder",msgstr:["Neuer Ordner"]},{msgid:"New folder name",msgstr:["Neuer Ordnername"]},{msgid:"New version",msgstr:["Neue Version"]},{msgid:"No files in here",msgstr:["Hier sind keine Dateien"]},{msgid:"No files matching your filter were found.",msgstr:["Es wurden keine Dateien gefunden, die Ihrem Filter entsprechen."]},{msgid:"No matching files",msgstr:["Keine passenden Dateien"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Bitte einen Namen mit mindestens zwei Zeichen eingeben."]},{msgid:"Recent",msgstr:["Neueste"]},{msgid:"Select all checkboxes",msgstr:["Alle Kontrollkästchen aktivieren"]},{msgid:"Select all entries",msgstr:["Alle Einträge auswählen"]},{msgid:"Select all existing files",msgstr:["Alle vorhandenen Dateien auswählen"]},{msgid:"Select all new files",msgstr:["Alle neuen Dateien auswählen"]},{msgid:"Select entry",msgstr:["Eintrag auswählen"]},{msgid:"Select the row for {nodename}",msgstr:["Die Zeile für {nodename} auswählen."]},{msgid:"Size",msgstr:["Größe"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["%n Datei überspringen","%n Dateien überspringen"]},{msgid:"Skip this file",msgstr:["Diese Datei überspringen"]},{msgid:"Submit name",msgstr:["Namen senden"]},{msgid:"Undo",msgstr:["Rückgängig machen"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Laden Sie Inhalte hoch oder synchronisieren Sie diese mit Ihren Geräten!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Wenn ein eingehender Ordner ausgewählt wird, werden auch alle darin enthaltenen Dateien mit Konflikten überschrieben."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Bei Auswahl eines eingehenden Ordners wird der Inhalt in den vorhandenen Ordner geschrieben und eine rekursive Konfliktlösung durchgeführt."]},{msgid:"Which files do you want to keep?",msgstr:["Welche Dateien sollen behalten werden?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Sie sind derzeit als {nickname} identifiziert."]},{msgid:"You are currently not identified.",msgstr:["Sie sind momentan nicht identifiziert."]},{msgid:"You cannot leave the name empty.",msgstr:["Sie können den Namen nicht leer lassen."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Es muss mindestens eine Konfliktlösung gewählt werden"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Es muss mindestens eine Version jeder Datei ausgewählt werden, um fortzufahren."]}]},{language:"el",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" δεν επιτρέπεται μέσα σε ένα όνομα.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" δεν είναι επιτρεπτό όνομα.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['Το "{name}" δεν είναι έγκυρο όνομα φακέλου.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['Το "{name}" δεν είναι επιτρεπτό όνομα φακέλου']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" είναι ένα δεσμευμένο όνομα και δεν επιτρέπεται.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['Το "/" δεν επιτρέπεται μέσα στο όνομα ενός φακέλου.']},{msgid:"All files",msgstr:["Όλα τα αρχεία"]},{msgid:"Cancel",msgstr:["Ακύρωση"]},{msgid:"Choose",msgstr:["Επιλογή"]},{msgid:"Choose {file}",msgstr:["Επιλέξτε {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Επιλέξτε %n αρχείο","Επιλέξτε %n αρχεία"]},{msgid:"Copy",msgstr:["Αντιγραφή"]},{msgid:"Copy to {target}",msgstr:["Αντιγραφή στο {target}"]},{msgid:"Could not create the new folder",msgstr:["Αδυναμία δημιουργίας νέου φακέλου"]},{msgid:"Could not load files settings",msgstr:["Αδυναμία φόρτωσης ρυθμίσεων αρχείων"]},{msgid:"Could not load files views",msgstr:["Αδυναμία φόρτωσης προβολών αρχείων"]},{msgid:"Create directory",msgstr:["Δημιουργία καταλόγου"]},{msgid:"Current view selector",msgstr:["Επιλογέας τρέχουσας προβολής"]},{msgid:"Enter your name",msgstr:["Εισάγετε το όνομά σας"]},{msgid:"Failed to set nickname.",msgstr:["Αποτυχία στην ρύθμιση του ψευδώνυμου."]},{msgid:"Favorites",msgstr:["Αγαπημένα"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Τα αρχεία και οι φάκελοι που επισημάνετε ως αγαπημένα θα εμφανίζονται εδώ."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Τα αρχεία και οι φάκελοι που τροποποιήσατε πρόσφατα θα εμφανίζονται εδώ."]},{msgid:"Filter file list",msgstr:["Φιλτράρισμα λίστας αρχείων"]},{msgid:"Folder name cannot be empty.",msgstr:["Το όνομα του φακέλου δεν μπορεί να είναι κενό."]},{msgid:"Guest identification",msgstr:["Ταυτοποίηση επισκέπτη"]},{msgid:"Home",msgstr:["Αρχική"]},{msgid:"Invalid name.",msgstr:["Μη έγκυρο όνομα."]},{msgid:"Modified",msgstr:["Τροποποιήθηκε"]},{msgid:"Move",msgstr:["Μετακίνηση"]},{msgid:"Move to {target}",msgstr:["Μετακίνηση στο {target}"]},{msgid:"Name",msgstr:["Όνομα"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Τα ονόματα μπορούν να έχουν μέγιστο μήκος 64 χαρακτήρες."]},{msgid:"Names must not be empty.",msgstr:["Τα ονόματα δεν πρέπει να είναι κενά."]},{msgid:'Names must not end with "{extension}".',msgstr:['Τα ονόματα δεν πρέπει να τελειώνουν με "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Τα ονόματα δεν πρέπει να ξεκινούν με τελεία."]},{msgid:"New",msgstr:["Νέο"]},{msgid:"New folder",msgstr:["Νέος φάκελος"]},{msgid:"New folder name",msgstr:["Όνομα νέου φακέλου"]},{msgid:"No files in here",msgstr:["Δεν υπάρχουν αρχεία εδώ"]},{msgid:"No files matching your filter were found.",msgstr:["Δεν βρέθηκαν αρχεία που να ταιριάζουν με το φίλτρο σας."]},{msgid:"No matching files",msgstr:["Κανένα αρχείο δεν ταιριάζει"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Παρακαλώ εισάγετε ένα όνομα με τουλάχιστον 2 χαρακτήρες."]},{msgid:"Recent",msgstr:["Πρόσφατα"]},{msgid:"Select all entries",msgstr:["Επιλογή όλων των εγγραφών"]},{msgid:"Select entry",msgstr:["Επιλογή εγγραφής"]},{msgid:"Select the row for {nodename}",msgstr:["Επιλέξτε τη γραμμή για το {nodename}"]},{msgid:"Size",msgstr:["Μέγεθος"]},{msgid:"Submit name",msgstr:["Υποβολή ονόματος"]},{msgid:"Undo",msgstr:["Αναίρεση"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Ανεβάστε κάποιο περιεχόμενο ή συγχρονίστε με τις συσκευές σας!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Αυτή τη στιγμή έχετε αναγνωριστεί ως {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Δεν έχετε ταυτοποιηθεί."]},{msgid:"You cannot leave the name empty.",msgstr:["Δεν μπορείτε να αφήσετε το όνομα κενό."]}]},{language:"en_GB",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" is not allowed inside a name.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" is not an allowed name.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" is an invalid folder name.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" is not an allowed folder name']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" is a reserved name and not allowed.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" is not allowed inside a folder name.']},{msgid:"All files",msgstr:["All files"]},{msgid:"Cancel",msgstr:["Cancel"]},{msgid:"Choose",msgstr:["Choose"]},{msgid:"Choose {file}",msgstr:["Choose {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Choose %n file","Choose %n files"]},{msgid:"Copy",msgstr:["Copy"]},{msgid:"Copy to {target}",msgstr:["Copy to {target}"]},{msgid:"Could not create the new folder",msgstr:["Could not create the new folder"]},{msgid:"Could not load files settings",msgstr:["Could not load files settings"]},{msgid:"Could not load files views",msgstr:["Could not load files views"]},{msgid:"Create directory",msgstr:["Create directory"]},{msgid:"Current view selector",msgstr:["Current view selector"]},{msgid:"Enter your name",msgstr:["Enter your name"]},{msgid:"Failed to set nickname.",msgstr:["Failed to set nickname."]},{msgid:"Favorites",msgstr:["Favourites"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Files and folders you mark as favourite will show up here."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Files and folders you recently modified will show up here."]},{msgid:"Filter file list",msgstr:["Filter file list"]},{msgid:"Folder name cannot be empty.",msgstr:["Folder name cannot be empty."]},{msgid:"Guest identification",msgstr:["Guest identification"]},{msgid:"Home",msgstr:["Home"]},{msgid:"Invalid name.",msgstr:["Invalid name."]},{msgid:"Modified",msgstr:["Modified"]},{msgid:"Move",msgstr:["Move"]},{msgid:"Move to {target}",msgstr:["Move to {target}"]},{msgid:"Name",msgstr:["Name"]},{msgid:"Names must not be empty.",msgstr:["Names must not be empty."]},{msgid:'Names must not end with "{extension}".',msgstr:['Names must not end with "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Names must not start with a dot."]},{msgid:"New",msgstr:["New"]},{msgid:"New folder",msgstr:["New folder"]},{msgid:"New folder name",msgstr:["New folder name"]},{msgid:"No files in here",msgstr:["No files in here"]},{msgid:"No files matching your filter were found.",msgstr:["No files matching your filter were found."]},{msgid:"No matching files",msgstr:["No matching files"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Please enter a name with at least 2 characters."]},{msgid:"Recent",msgstr:["Recent"]},{msgid:"Select all entries",msgstr:["Select all entries"]},{msgid:"Select entry",msgstr:["Select entry"]},{msgid:"Select the row for {nodename}",msgstr:["Select the row for {nodename}"]},{msgid:"Size",msgstr:["Size"]},{msgid:"Submit name",msgstr:["Submit name"]},{msgid:"Undo",msgstr:["Undo"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Upload some content or sync with your devices!"]},{msgid:"You are currently not identified.",msgstr:["You are currently not identified."]},{msgid:"You cannot leave the name empty.",msgstr:["You cannot leave the name empty."]}]},{language:"es",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" no está permitido dentro de un nombre.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" no es un nombre permitido.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" es un nombre de carpeta no válido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" no es un nombre de carpeta permitido']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" es un nombre reservado y no está permitido.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" no está permitido dentro del nombre de una carpeta.']},{msgid:"All files",msgstr:["Todos los archivos"]},{msgid:"Cancel",msgstr:["Cancelar"]},{msgid:"Choose",msgstr:["Seleccionar"]},{msgid:"Choose {file}",msgstr:["Seleccionar {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Elige %n archivo","Elige %n archivos","Seleccione %n archivos"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar a {target}"]},{msgid:"Could not create the new folder",msgstr:["No se pudo crear la nueva carpeta"]},{msgid:"Could not load files settings",msgstr:["No se pudieron cargar los ajustes de archivos"]},{msgid:"Could not load files views",msgstr:["No se pudieron cargar las vistas de los archivos"]},{msgid:"Create directory",msgstr:["Crear directorio"]},{msgid:"Current view selector",msgstr:["Selector de vista actual"]},{msgid:"Enter your name",msgstr:["Ingrese su nombre"]},{msgid:"Failed to set nickname.",msgstr:["Fallo al establecer apodo."]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Los archivos y carpetas que marque como favoritos aparecerán aquí."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Los archivos y carpetas que modificó recientemente aparecerán aquí."]},{msgid:"Filter file list",msgstr:["Filtrar lista de archivos"]},{msgid:"Folder name cannot be empty.",msgstr:["El nombre de la carpeta no puede estar vacío."]},{msgid:"Guest identification",msgstr:["Identificación de invitado"]},{msgid:"Home",msgstr:["Inicio"]},{msgid:"Invalid name.",msgstr:["Nombre inválido."]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover a {target}"]},{msgid:"Name",msgstr:["Nombre"]},{msgid:"Names must not be empty.",msgstr:["Los nombres no deben estar vacíos."]},{msgid:'Names must not end with "{extension}".',msgstr:['Los nombres no deben terminar con "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Los nombres no deben iniciar con un punto."]},{msgid:"New",msgstr:["Nuevo"]},{msgid:"New folder",msgstr:[" Nueva carpeta"]},{msgid:"New folder name",msgstr:["Nuevo nombre de carpeta"]},{msgid:"No files in here",msgstr:["No hay archivos aquí"]},{msgid:"No files matching your filter were found.",msgstr:["No se encontraron archivos que coincidiesen con su filtro."]},{msgid:"No matching files",msgstr:["No hay archivos coincidentes"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Por favor, ingrese un nombre con al menos 2 caracteres."]},{msgid:"Recent",msgstr:["Reciente"]},{msgid:"Select all entries",msgstr:["Seleccionar todas las entradas"]},{msgid:"Select entry",msgstr:["Seleccionar entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Seleccione la fila para {nodename}"]},{msgid:"Size",msgstr:["Tamaño"]},{msgid:"Submit name",msgstr:["Enviar nombre"]},{msgid:"Undo",msgstr:["Deshacer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["¡Cargue algún contenido o sincronice con sus dispositivos!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Ud. se encuentra identificado actualmente como {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Ud. no se encuentra identificado actualmente."]},{msgid:"You cannot leave the name empty.",msgstr:["No puede dejar el nombre vacío."]}]},{language:"es_AR",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" es un nombre de carpeta inválido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" no es un nombre de carpeta permitido']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" no está permitido en el nombre de una carpeta.']},{msgid:"All files",msgstr:["Todos los archivos"]},{msgid:"Choose",msgstr:["Elegir"]},{msgid:"Choose {file}",msgstr:["Elija {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Elija %n archivo","Elija %n archivos","Elija %n archivos"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar a {target}"]},{msgid:"Could not create the new folder",msgstr:["No se pudo crear la nueva carpeta"]},{msgid:"Could not load files settings",msgstr:["No se pudo cargar la configuración de archivos"]},{msgid:"Could not load files views",msgstr:["No se pudieron cargar las vistas de los archivos"]},{msgid:"Create directory",msgstr:["Crear directorio"]},{msgid:"Current view selector",msgstr:["Selector de vista actual"]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Los archivos y carpetas que marque como favoritos aparecerán aquí."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Los archivos y carpetas que modificó recientemente aparecerán aquí."]},{msgid:"Filter file list",msgstr:["Filtrar lista de archivos"]},{msgid:"Folder name cannot be empty.",msgstr:["El nombre de la carpeta no puede estar vacío."]},{msgid:"Home",msgstr:["Inicio"]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover a {target}"]},{msgid:"Name",msgstr:["Nombre"]},{msgid:"New",msgstr:["Nuevo"]},{msgid:"New folder",msgstr:["Nueva carpeta"]},{msgid:"New folder name",msgstr:["Nombre de nueva carpeta"]},{msgid:"No files in here",msgstr:["No hay archivos aquí"]},{msgid:"No files matching your filter were found.",msgstr:["No se encontraron archivos que coincidan con su filtro."]},{msgid:"No matching files",msgstr:["No hay archivos coincidentes"]},{msgid:"Recent",msgstr:["Reciente"]},{msgid:"Select all entries",msgstr:["Seleccionar todas las entradas"]},{msgid:"Select entry",msgstr:["Seleccionar entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Seleccione la fila para {nodename}"]},{msgid:"Size",msgstr:["Tamaño"]},{msgid:"Undo",msgstr:["Deshacer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["¡Cargue algún contenido o sincronice con sus dispositivos!"]}]},{language:"es_MX",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" es un nombre de carpeta inválido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" no es un nombre de carpeta permitido.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" no está permitido en el nombre de la carpeta.']},{msgid:"All files",msgstr:["Todos los archivos"]},{msgid:"Choose",msgstr:["Seleccionar"]},{msgid:"Choose {file}",msgstr:["Seleccionar {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Seleccionar %n archivo","Seleccionar %n archivos","Seleccionar %n archivos"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar a {target}"]},{msgid:"Could not create the new folder",msgstr:["No se pudo crear la nueva carpeta"]},{msgid:"Could not load files settings",msgstr:["No se pudo cargar la configuración de archivos"]},{msgid:"Could not load files views",msgstr:["No se pudieron cargar las vistas de los archivos"]},{msgid:"Create directory",msgstr:["Crear carpeta"]},{msgid:"Current view selector",msgstr:["Selector de vista actual"]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Los archivos y carpetas que marque como favoritos aparecerán aquí."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Los archivos y carpetas que modificó recientemente aparecerán aquí."]},{msgid:"Filter file list",msgstr:["Filtrar lista de archivos"]},{msgid:"Folder name cannot be empty.",msgstr:["El nombre de la carpeta no puede estar vacío."]},{msgid:"Home",msgstr:["Inicio"]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover a {target}"]},{msgid:"Name",msgstr:["Nombre"]},{msgid:"New",msgstr:["Nuevo"]},{msgid:"New folder",msgstr:["Nueva carpeta"]},{msgid:"New folder name",msgstr:["Nombre de nueva carpeta"]},{msgid:"No files in here",msgstr:["No hay archivos aquí"]},{msgid:"No files matching your filter were found.",msgstr:["No se encontraron archivos que coincidan con su filtro."]},{msgid:"No matching files",msgstr:["No hay archivos coincidentes"]},{msgid:"Recent",msgstr:["Reciente"]},{msgid:"Select all entries",msgstr:["Seleccionar todas las entradas"]},{msgid:"Select entry",msgstr:["Seleccionar entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Seleccione la fila para {nodename}"]},{msgid:"Size",msgstr:["Tamaño"]},{msgid:"Undo",msgstr:["Deshacer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["¡Suba algún contenido o sincronice con sus dispositivos!"]}]},{language:"et_EE",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:["„{char}“ pole nimes lubatud."]},{msgid:'"{extension}" is not an allowed name.',msgstr:["„{extension}“ pole lubatud nimi."]},{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}“ on vigane kausta nimi."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}“ pole kausta nimes lubatud"]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:["„{segment}“ on reserveeritud nimi ja pole kasutamiseks lubatud."]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["„/“ pole kausta nimes lubatud."]},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n fail on vastuolus","%n faili on omavahel vastuolus"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n fail on {dirname} kaustas vastuolus","%n faili on omavahel {dirname} kaustas vastuolus"]},{msgid:"All files",msgstr:["Kõik failid"]},{msgid:"Cancel",msgstr:["Katkesta"]},{msgid:"Cancel the entire operation",msgstr:["Katkesta kogu tegevus"]},{msgid:"Choose",msgstr:["Tee valik"]},{msgid:"Choose {file}",msgstr:["Vali {file} fail"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Vali %n fail","Vali %n faili"]},{msgid:"Confirm",msgstr:["Kinnita"]},{msgid:"Continue",msgstr:["Jätka"]},{msgid:"Copy",msgstr:["Kopeeri"]},{msgid:"Copy to {target}",msgstr:["Kopeeri sihtkohta {target}"]},{msgid:"Could not create the new folder",msgstr:["Uut kausta ei saanud luua"]},{msgid:"Could not load files settings",msgstr:["Failide seadistusi ei õnnestunud laadida"]},{msgid:"Could not load files views",msgstr:["Failide vaatamiskordi ei õnnestunud laadida"]},{msgid:"Create directory",msgstr:["Loo kaust"]},{msgid:"Current view selector",msgstr:["Praeguse vaate valija"]},{msgid:"Enter your name",msgstr:["Sisesta oma nimi"]},{msgid:"Existing version",msgstr:["Olemasolev versioon"]},{msgid:"Failed to set nickname.",msgstr:["Hüüdnime ei õnnestunud lisada"]},{msgid:"Favorites",msgstr:["Lemmikud"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Failid ja kaustad, mida märgistad lemmikuks, kuvatakse siin."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Siin kuvatakse hiljuti muudetud failid ja kaustad."]},{msgid:"Filter file list",msgstr:["Filtreeri faililoendit"]},{msgid:"Folder name cannot be empty.",msgstr:["Kausta nimi ei saa olla tühi."]},{msgid:"Guest identification",msgstr:["Külalise tuvastamine"]},{msgid:"Home",msgstr:["Avaleht"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Kui valid mõlemad versioonid, siis uue faili nimele lisatakse number."]},{msgid:"Invalid name.",msgstr:["Vigane nimi."]},{msgid:"Last modified date unknown",msgstr:["Viimase muutmise kuupäev pole teada"]},{msgid:"Modified",msgstr:["Muudetud"]},{msgid:"Move",msgstr:["Teisalda"]},{msgid:"Move to {target}",msgstr:["Teisalda kausta {target}"]},{msgid:"Name",msgstr:["Nimi"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Nimed võivad olla vaid kuni 64 tähemärki pikad."]},{msgid:"Names must not be empty.",msgstr:["Nimi ei saa olla tühi."]},{msgid:'Names must not end with "{extension}".',msgstr:["Nime lõpus ei tohi olla „{extension}“."]},{msgid:"Names must not start with a dot.",msgstr:["Nime alguses ei tohi olla punkt."]},{msgid:"New",msgstr:["Uus"]},{msgid:"New folder",msgstr:["Uus kaust"]},{msgid:"New folder name",msgstr:["Uue kausta nimi"]},{msgid:"New version",msgstr:["Uus versioon"]},{msgid:"No files in here",msgstr:["Siin puuduvad failid"]},{msgid:"No files matching your filter were found.",msgstr:["Sinu filtrile vastavaid faile ei leidunud."]},{msgid:"No matching files",msgstr:["Puuduvad sobivad failid"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Palun sisesta vähemalt 2 tähemärki pikk nimi."]},{msgid:"Recent",msgstr:["Hiljutine"]},{msgid:"Select all checkboxes",msgstr:["Vali kõik märkeruudud"]},{msgid:"Select all entries",msgstr:["Vali kõik kirjed"]},{msgid:"Select all existing files",msgstr:["Vali kõik olemasolevad failid"]},{msgid:"Select all new files",msgstr:["Vali kõik uued failid"]},{msgid:"Select entry",msgstr:["Vali kirje"]},{msgid:"Select the row for {nodename}",msgstr:["Vali rida „{nodename}“ jaoks"]},{msgid:"Size",msgstr:["Suurus"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Jäta %n fail vahele","Jäta %n faili vahele"]},{msgid:"Skip this file",msgstr:["Jäta see fail vahele"]},{msgid:"Submit name",msgstr:["Lisa nimi"]},{msgid:"Undo",msgstr:["Tühista"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Lisa mingit sisu või sünkroniseeri see oma seadmestest!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Kui uute failide kaust on valitud, siis kõik seal leiduvad vastuolus failid saavad üle kirjutatud."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Kui uute failide kaust on valitud, siis sisu kirjutatakse olemasolevasse kausta ja korraldatakse rekursiivne failikonfliktide lahendamine."]},{msgid:"Which files do you want to keep?",msgstr:["Missugused failid tahaksid alles jätta?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Sa oled hetkel tuvastatav kui {nickname}.."]},{msgid:"You are currently not identified.",msgstr:["Sa oled hetkel tuvastamata."]},{msgid:"You cannot leave the name empty.",msgstr:["Sa ei saa jätte nime tühjaks."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Sa pead valima vähemalt ühe failikonflikti lahenduse."]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Jätkamaks pead valima igast failist vähemalt ühe versiooni."]}]},{language:"fa",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["{name} نام پوشه معتبر نیست"]},{msgid:'"{name}" is not an allowed folder name',msgstr:["{name} نام پوشه مجاز نیست"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" نمی‌تواند در نام پوشه استفاده شود.']},{msgid:"All files",msgstr:["همه فایل‌ها"]},{msgid:"Cancel",msgstr:["لغو"]},{msgid:"Choose",msgstr:["انتخاب"]},{msgid:"Choose {file}",msgstr:["انتخاب {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["انتخاب %n فایل","انتخاب %n فایل"]},{msgid:"Copy",msgstr:["رونوشت"]},{msgid:"Copy to {target}",msgstr:["رونوشت از {target}"]},{msgid:"Could not create the new folder",msgstr:["پوشه جدید ایجاد نشد"]},{msgid:"Could not load files settings",msgstr:["تنظیمات فایل باز نشد"]},{msgid:"Could not load files views",msgstr:["نمای فایل‌ها بارگیری نشد"]},{msgid:"Create directory",msgstr:["ایجاد فهرست"]},{msgid:"Current view selector",msgstr:["انتخابگر نماگر فعلی"]},{msgid:"Enter your name",msgstr:["نام خود را وارد کنید"]},{msgid:"Failed to set nickname.",msgstr:["تنظیم نام مستعار ناموفق بود."]},{msgid:"Favorites",msgstr:["علایق"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["فایل‌ها و پوشه‌هایی که به‌عنوان مورد علاقه علامت‌گذاری می‌کنید در اینجا نشان داده می‌شوند."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["فایل‌ها و پوشه‌هایی که اخیراً تغییر داده‌اید در اینجا نمایش داده می‌شوند."]},{msgid:"Filter file list",msgstr:["فیلتر لیست فایل"]},{msgid:"Folder name cannot be empty.",msgstr:["نام پوشه نمی تواند خالی باشد."]},{msgid:"Guest identification",msgstr:["شناسایی مهمان"]},{msgid:"Home",msgstr:["خانه"]},{msgid:"Modified",msgstr:["اصلاح شده"]},{msgid:"Move",msgstr:["انتقال"]},{msgid:"Move to {target}",msgstr:["انتقال به {target}"]},{msgid:"Name",msgstr:["نام"]},{msgid:"New",msgstr:["جدید"]},{msgid:"New folder",msgstr:["پوشه جدید"]},{msgid:"New folder name",msgstr:["نام پوشه جدید"]},{msgid:"No files in here",msgstr:["فایلی اینجا نیست"]},{msgid:"No files matching your filter were found.",msgstr:["هیچ فایلی مطابق با فیلتر شما یافت نشد."]},{msgid:"No matching files",msgstr:["فایل منطبقی وجود ندارد"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["لطفاً نامی با حداقل ۲ کاراکتر وارد کنید."]},{msgid:"Recent",msgstr:["اخیر"]},{msgid:"Select all entries",msgstr:["انتخاب همه ورودی ها"]},{msgid:"Select entry",msgstr:["انتخاب ورودی"]},{msgid:"Select the row for {nodename}",msgstr:["انتخاب ردیف برای {nodename}"]},{msgid:"Size",msgstr:["اندازه"]},{msgid:"Submit name",msgstr:["ارسال نام"]},{msgid:"Undo",msgstr:["بازگردانی"]},{msgid:"Upload some content or sync with your devices!",msgstr:["مقداری محتوا آپلود کنید یا با دستگاه های خود همگام سازی کنید!"]},{msgid:"You are currently not identified.",msgstr:["شما در حال حاضر شناسایی نشده‌اید."]},{msgid:"You cannot leave the name empty.",msgstr:["نمی‌توانید نام را خالی بگذارید."]}]},{language:"fi_FI",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" ei ole sallittu nimessä.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" ei ole sallittu nimi.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" on virheellinen kansion nimi.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" ei ole sallittu kansion nimi']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" on varattu nimi eikä se ole sallittu.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" ei ole sallittu kansion nimessä.']},{msgid:"All files",msgstr:["Kaikki tiedostot"]},{msgid:"Cancel",msgstr:["Peruuta"]},{msgid:"Choose",msgstr:["Valitse"]},{msgid:"Choose {file}",msgstr:["Valitse {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Valitse %n tiedosto","Valitse %n tiedostoa"]},{msgid:"Copy",msgstr:["Kopioi"]},{msgid:"Copy to {target}",msgstr:["Kopioi sijaintiin {target}"]},{msgid:"Could not create the new folder",msgstr:["Uutta kansiota ei voitu luoda"]},{msgid:"Could not load files settings",msgstr:["Tiedoston asetuksia ei saa ladattua"]},{msgid:"Could not load files views",msgstr:["Tiedoston näkymiä ei saa ladattua"]},{msgid:"Create directory",msgstr:["Luo kansio"]},{msgid:"Current view selector",msgstr:["Nykyisen näkymän valinta"]},{msgid:"Enter your name",msgstr:["Kirjoita nimesi"]},{msgid:"Failed to set nickname.",msgstr:["Kutsumanimen asettaminen epäonnistui."]},{msgid:"Favorites",msgstr:["Suosikit"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Tiedostot ja kansiot, jotka merkitset suosikkeihisi, näkyvät täällä."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Tiedostot ja kansiot, joita muokkasit äskettäin, näkyvät täällä."]},{msgid:"Filter file list",msgstr:["Suodata tiedostolistaa"]},{msgid:"Folder name cannot be empty.",msgstr:["Kansion nimi ei voi olla tyhjä."]},{msgid:"Guest identification",msgstr:["Vieraan tunnistaminen"]},{msgid:"Home",msgstr:["Koti"]},{msgid:"Invalid name.",msgstr:["Virheellinen nimi."]},{msgid:"Modified",msgstr:["Muokattu"]},{msgid:"Move",msgstr:["Siirrä"]},{msgid:"Move to {target}",msgstr:["Siirrä sijaintiin {target}"]},{msgid:"Name",msgstr:["Nimi"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Nimissä voi olla enintään 64 merkkiä."]},{msgid:"Names must not be empty.",msgstr:["Nimet eivät saa olla tyhjiä."]},{msgid:'Names must not end with "{extension}".',msgstr:['Nimet eivät saa päättyä sanaan "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Nimet eivät saa alkaa pisteellä."]},{msgid:"New",msgstr:["Uusi"]},{msgid:"New folder",msgstr:["Uusi kansio"]},{msgid:"New folder name",msgstr:["Uuden kansion nimi"]},{msgid:"No files in here",msgstr:["Täällä ei ole tiedostoja"]},{msgid:"No files matching your filter were found.",msgstr:["Suodatinta vastaavia tiedostoja ei löytynyt."]},{msgid:"No matching files",msgstr:["Ei vastaavia tiedostoja"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Kirjoita vähintään kaksi merkkiä sisältävä nimi."]},{msgid:"Recent",msgstr:["Viimeisimmät"]},{msgid:"Select all entries",msgstr:["Valitse kaikki tietueet"]},{msgid:"Select entry",msgstr:["Valitse tietue"]},{msgid:"Select the row for {nodename}",msgstr:["Valitse rivi {nodename}:lle"]},{msgid:"Size",msgstr:["Koko"]},{msgid:"Submit name",msgstr:["Lähetä nimi"]},{msgid:"Undo",msgstr:["Kumoa"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Lähetä jotain sisältöä tai synkronoi laitteidesi kanssa!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Sinut tunnetaan tällä hetkellä nimellä {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Sinua ei ole tunnistettu."]},{msgid:"You cannot leave the name empty.",msgstr:["Nimeä ei voi jättää tyhjäksi."]}]},{language:"fr",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:[`"{char}" n'est pas autorisé dans un nom.`]},{msgid:'"{extension}" is not an allowed name.',msgstr:[`"{extension}" n'est pas un nom autorisé.`]},{msgid:'"{name}" is an invalid folder name.',msgstr:[`"{name}" n'est pas un nom de dossier valide.`]},{msgid:'"{name}" is not an allowed folder name',msgstr:[`"{name}" n'est pas un nom de dossier autorisé`]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:[`"{segment}" est un nom réservé et n'est pas autorisé.`]},{msgid:'"/" is not allowed inside a folder name.',msgstr:[`Le caractère "/" n'est pas autorisé dans un nom de dossier.`]},{msgid:"All files",msgstr:["Tous les fichiers"]},{msgid:"Cancel",msgstr:["Annuler"]},{msgid:"Choose",msgstr:["Choisir"]},{msgid:"Choose {file}",msgstr:["Choisir {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Choisir %n fichier","Choisir %n fichiers","Choisir %n fichiers "]},{msgid:"Copy",msgstr:["Copier"]},{msgid:"Copy to {target}",msgstr:["Copier vers {target}"]},{msgid:"Could not create the new folder",msgstr:["Impossible de créer le nouveau dossier"]},{msgid:"Could not load files settings",msgstr:["Les paramètres des fichiers n'ont pas pu être chargés"]},{msgid:"Could not load files views",msgstr:["Impossible de charger les vues des fichiers"]},{msgid:"Create directory",msgstr:["Créer un répertoire"]},{msgid:"Current view selector",msgstr:["Sélecteur d'affichage actuel"]},{msgid:"Enter your name",msgstr:["Entrez votre nom"]},{msgid:"Failed to set nickname.",msgstr:["Échec de définition du surnom."]},{msgid:"Favorites",msgstr:["Favoris"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Les fichiers et répertoires marqués en favoris apparaîtront ici."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Les fichiers et répertoires modifiés récemment apparaîtront ici."]},{msgid:"Filter file list",msgstr:["Filtrer la liste des fichiers"]},{msgid:"Folder name cannot be empty.",msgstr:["Le nom du dossier ne peut pas être vide."]},{msgid:"Guest identification",msgstr:["Identification d'invité"]},{msgid:"Home",msgstr:["Accueil"]},{msgid:"Invalid name.",msgstr:["Nom invalide."]},{msgid:"Modified",msgstr:["Modifié"]},{msgid:"Move",msgstr:["Déplacer"]},{msgid:"Move to {target}",msgstr:["Déplacer vers {target}"]},{msgid:"Name",msgstr:["Nom"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Les noms peuvent comporter au maximum 64 caractères."]},{msgid:"Names must not be empty.",msgstr:["Les noms ne peuvent pas être vides."]},{msgid:'Names must not end with "{extension}".',msgstr:['Les noms ne doivent pas se terminer par "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Les noms ne peuvent pas commencer par un point."]},{msgid:"New",msgstr:["Nouveau"]},{msgid:"New folder",msgstr:["Nouveau dossier"]},{msgid:"New folder name",msgstr:["Nom du nouveau dossier"]},{msgid:"No files in here",msgstr:["Aucun fichier ici"]},{msgid:"No files matching your filter were found.",msgstr:["Aucun fichier trouvé correspondant à votre filtre."]},{msgid:"No matching files",msgstr:["Aucun fichier correspondant"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Veuillez entrer un nom avec au moins 2 caractères."]},{msgid:"Recent",msgstr:["Récents"]},{msgid:"Select all entries",msgstr:["Tout sélectionner"]},{msgid:"Select entry",msgstr:["Sélectionner une entrée"]},{msgid:"Select the row for {nodename}",msgstr:["Sélectionner l'enregistrement pour {nodename}"]},{msgid:"Size",msgstr:["Taille"]},{msgid:"Submit name",msgstr:["Envoyer le nom"]},{msgid:"Undo",msgstr:["Rétablir"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Chargez du contenu ou synchronisez avec vos équipements !"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Vous êtes actuellement identifié comme {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Vous n'êtes pas identifié actuellement."]},{msgid:"You cannot leave the name empty.",msgstr:["Vous ne pouvez pas laisser le nom vide."]}]},{language:"ga",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:[`Ní cheadaítear "{char}" laistigh d'ainm.`]},{msgid:'"{extension}" is not an allowed name.',msgstr:['Ní ainm ceadaithe é "{extension}".']},{msgid:'"{name}" is an invalid folder name.',msgstr:['Is ainm fillteáin neamhbhailí é "{name}".']},{msgid:'"{name}" is not an allowed folder name',msgstr:['Ní ainm fillteáin ceadaithe é "{name}".']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['Is ainm curtha in áirithe é "{segment}" agus ní cheadaítear é.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:[`Ní cheadaítear "/" taobh istigh d'ainm fillteáin.`]},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n coimhlint comhaid","%n coimhlint comhad","%n coimhlint comhad","%n coimhlint comhad","%n coimhlint comhad"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n coimhlint comhaid i {dirname}","%n coimhlintí comhaid i {dirname}","%n coimhlintí comhaid i {dirname}","%n coimhlintí comhaid i {dirname}","%n coimhlintí comhaid i {dirname}"]},{msgid:"All files",msgstr:["Gach comhad"]},{msgid:"Cancel",msgstr:["Cealaigh"]},{msgid:"Cancel the entire operation",msgstr:["Cealaigh an oibríocht ar fad"]},{msgid:"Choose",msgstr:["Roghnaigh"]},{msgid:"Choose {file}",msgstr:["Roghnaigh {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Roghnaigh %n comhad","Roghnaigh %n comhaid","Roghnaigh %n comhaid","Roghnaigh %n comhaid","Roghnaigh %n comhaid"]},{msgid:"Confirm",msgstr:["Deimhnigh"]},{msgid:"Continue",msgstr:["Lean ar aghaidh"]},{msgid:"Copy",msgstr:["Cóip"]},{msgid:"Copy to {target}",msgstr:["Cóipeáil chuig {target}"]},{msgid:"Could not create the new folder",msgstr:["Níorbh fhéidir an fillteán nua a chruthú"]},{msgid:"Could not load files settings",msgstr:["Níorbh fhéidir socruithe comhaid a lódáil"]},{msgid:"Could not load files views",msgstr:["Níorbh fhéidir radhairc comhad a lódáil"]},{msgid:"Create directory",msgstr:["Cruthaigh eolaire"]},{msgid:"Current view selector",msgstr:["Roghnóir amhairc reatha"]},{msgid:"Enter your name",msgstr:["Cuir isteach d'ainm"]},{msgid:"Existing version",msgstr:["Leagan atá ann cheana féin"]},{msgid:"Failed to set nickname.",msgstr:["Theip ar leasainm a shocrú."]},{msgid:"Favorites",msgstr:["Ceanáin"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Taispeánfar comhaid agus fillteáin a mharcálann tú mar is fearr leat anseo."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Taispeánfar comhaid agus fillteáin a d'athraigh tú le déanaí anseo."]},{msgid:"Filter file list",msgstr:["Scag liosta comhad"]},{msgid:"Folder name cannot be empty.",msgstr:["Ní féidir ainm fillteáin a bheith folamh."]},{msgid:"Guest identification",msgstr:["Aitheantas aoi"]},{msgid:"Home",msgstr:["Baile"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Má roghnaíonn tú an dá leagan, cuirfear uimhir le hainm an chomhaid atá ag teacht isteach."]},{msgid:"Invalid name.",msgstr:["Ainm neamhbhailí."]},{msgid:"Last modified date unknown",msgstr:["Dáta an athraithe dheireanaigh anaithnid"]},{msgid:"Modified",msgstr:["Athraithe"]},{msgid:"Move",msgstr:["Bog"]},{msgid:"Move to {target}",msgstr:["Bog go{target}"]},{msgid:"Name",msgstr:["Ainm"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Ní fhéadfaidh ainmneacha a bheith níos mó ná 64 carachtar ar fhad."]},{msgid:"Names must not be empty.",msgstr:["Ní féidir ainmneacha a bheith folamh."]},{msgid:'Names must not end with "{extension}".',msgstr:['Ní féidir ainmneacha a chríochnú le "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Ní mór ainmneacha a bheith ag tosú le ponc."]},{msgid:"New",msgstr:["Nua"]},{msgid:"New folder",msgstr:["Fillteán nua"]},{msgid:"New folder name",msgstr:["Ainm fillteáin nua"]},{msgid:"New version",msgstr:["Leagan nua"]},{msgid:"No files in here",msgstr:["Níl aon chomhaid istigh anseo"]},{msgid:"No files matching your filter were found.",msgstr:["Níor aimsíodh aon chomhad a tháinig le do scagaire."]},{msgid:"No matching files",msgstr:["Gan comhaid meaitseála"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Cuir isteach ainm ina bhfuil 2 charachtar ar a laghad."]},{msgid:"Recent",msgstr:["le déanaí"]},{msgid:"Select all checkboxes",msgstr:["Roghnaigh na boscaí seiceála go léir"]},{msgid:"Select all entries",msgstr:["Roghnaigh gach iontráil"]},{msgid:"Select all existing files",msgstr:["Roghnaigh na comhaid uile atá ann cheana"]},{msgid:"Select all new files",msgstr:["Roghnaigh gach comhad nua"]},{msgid:"Select entry",msgstr:["Roghnaigh iontráil"]},{msgid:"Select the row for {nodename}",msgstr:["Roghnaigh an ró do {nodename}"]},{msgid:"Size",msgstr:["Méid"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Léim %n comhad","Léim %n comhaid","Léim %n comhaid","Léim %n comhaid","Léim %n comhaid"]},{msgid:"Skip this file",msgstr:["Scipeáil an comhad seo"]},{msgid:"Submit name",msgstr:["Cuir isteach ainm"]},{msgid:"Undo",msgstr:["Cealaigh"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Uaslódáil roinnt ábhair nó sioncronaigh le do ghléasanna!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Nuair a roghnaítear fillteán isteach, déanfar aon chomhaid choimhlinteacha ann a athscríobh freisin."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Nuair a roghnaítear fillteán isteach, scríobhtar an t-ábhar isteach sa fhillteán atá ann cheana féin agus déantar réiteach coinbhleachta athchúrsach."]},{msgid:"Which files do you want to keep?",msgstr:["Cé na comhaid ar mhaith leat a choinneáil?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Is é {nickname} an ainm atá ort faoi láthair."]},{msgid:"You are currently not identified.",msgstr:["Níl aitheantas tugtha duit faoi láthair."]},{msgid:"You cannot leave the name empty.",msgstr:["Ní féidir leat an t-ainm a fhágáil folamh."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Ní mór duit réiteach coinbhleachta amháin ar a laghad a roghnú"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Ní mór duit leagan amháin ar a laghad de gach comhad a roghnú le leanúint ar aghaidh."]}]},{language:"gl",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:["«{char}» non está permitido dentro dun nome."]},{msgid:'"{extension}" is not an allowed name.',msgstr:["«{extension}» non é un nome permitido."]},{msgid:'"{name}" is an invalid folder name.',msgstr:["«{name}» non é un nome de cartafol válido."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["«{name}» non é un nome de cartafol permitido"]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:["«{segment}» é un nome reservado e non está permitido."]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["A «/» non está permitida no nome dun cartafol."]},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n ficheiro en conflito","%n ficheiros en conflito"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n ficheiro en conflito en {dirname}","%n ficheiros en conflito en {dirname}"]},{msgid:"All files",msgstr:["Todos os ficheiros"]},{msgid:"Cancel",msgstr:["Cancelar"]},{msgid:"Cancel the entire operation",msgstr:["Cancelar toda a operación"]},{msgid:"Choose",msgstr:["Escoller"]},{msgid:"Choose {file}",msgstr:["Escoller {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Escoller %n ficheiro","Escoller %n ficheiros"]},{msgid:"Confirm",msgstr:["Confirmar"]},{msgid:"Continue",msgstr:["Continuar"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar en {target}"]},{msgid:"Could not create the new folder",msgstr:["Non foi posíbel crear o novo cartafol"]},{msgid:"Could not load files settings",msgstr:["Non foi posíbel cargar os axustes dos ficheiros"]},{msgid:"Could not load files views",msgstr:["Non foi posíbel cargar as vistas dos ficheiros"]},{msgid:"Create directory",msgstr:["Crear un directorio"]},{msgid:"Current view selector",msgstr:["Selector de vista actual"]},{msgid:"Enter your name",msgstr:["Introduza o seu nome"]},{msgid:"Existing version",msgstr:["Versión existente"]},{msgid:"Failed to set nickname.",msgstr:["Produciuse un fallo ao definir o alcume."]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Os ficheiros e cartafoles que marque como favoritos aparecerán aquí."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Os ficheiros e cartafoles que modificou recentemente aparecerán aquí."]},{msgid:"Filter file list",msgstr:["Filtrar a lista de ficheiros"]},{msgid:"Folder name cannot be empty.",msgstr:["O nome do cartafol non pode estar baleiro."]},{msgid:"Guest identification",msgstr:["Identificación do convidado"]},{msgid:"Home",msgstr:["Inicio"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Se selecciona ambas as versións, o ficheiro entrante terá un número engadido ao seu nome."]},{msgid:"Invalid name.",msgstr:["Nome incorrecto"]},{msgid:"Last modified date unknown",msgstr:["Data da última modificación descoñecida"]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover cara a {target}"]},{msgid:"Name",msgstr:["Nome"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Os nomes poden ter unha lonxitude máxima de 64 caracteres."]},{msgid:"Names must not be empty.",msgstr:["Os nomes non deben estar baleiros."]},{msgid:'Names must not end with "{extension}".',msgstr:["Os nomes non deben rematar en «{extension}»."]},{msgid:"Names must not start with a dot.",msgstr:["Os nomes non deben comezar cun punto."]},{msgid:"New",msgstr:["Novo"]},{msgid:"New folder",msgstr:["Novo cartafol"]},{msgid:"New folder name",msgstr:["Novo nome do cartafol"]},{msgid:"New version",msgstr:["Nova versión"]},{msgid:"No files in here",msgstr:["Aquí non hai ficheiros"]},{msgid:"No files matching your filter were found.",msgstr:["Non se atopou ningún ficheiro que coincida co filtro."]},{msgid:"No matching files",msgstr:["Non hai ficheiros coincidentes"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Introduza un nome con polo menos 2 caracteres."]},{msgid:"Recent",msgstr:["Recente"]},{msgid:"Select all checkboxes",msgstr:["Seleccionar todas as caixas"]},{msgid:"Select all entries",msgstr:["Seleccionar todas as entradas"]},{msgid:"Select all existing files",msgstr:["Seleccionar todos os ficheiros existentes"]},{msgid:"Select all new files",msgstr:["Seleccionar todos os ficheiros novos"]},{msgid:"Select entry",msgstr:["Seleccionar a entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Seleccionar a fila para {nodename}"]},{msgid:"Size",msgstr:["Tamaño"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Omitir %n ficheiro","Omitir %n ficheiros"]},{msgid:"Skip this file",msgstr:["Omitir este ficheiro"]},{msgid:"Submit name",msgstr:["Enviar o nome"]},{msgid:"Undo",msgstr:["Desfacer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Enviar algún contido ou sincronizalo cos seus dispositivos!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Cando se selecciona un cartafol entrante, todos os ficheiros conflitivos dentro dela tamén serán sobrescritos."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Cando se selecciona un cartafol entrante, o contido escríbese no cartafol existente e realízase unha resolución recursiva de conflitos."]},{msgid:"Which files do you want to keep?",msgstr:["Que ficheiros quere conservar?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Vde. está identificado actualmente como {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Vde. non está identificado actualmente."]},{msgid:"You cannot leave the name empty.",msgstr:["Vde. non pode deixar o nome baleiro."]},{msgid:"You need to choose at least one conflict solution",msgstr:["É necesario escoller polo menos unha solución de conflito"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["É necesario seleccionar polo menos unha versión de cada ficheiro para continuar."]}]},{language:"hu_HU",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" nem engedélyezett névben.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" nem engedélyezett név.']},{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}” érvénytelen mappanév."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}” nem engedélyezett mappanév"]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" foglalt név és nem engedélyezett.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:["„/” jel nem szerepelhet mappa nevében."]},{msgid:"All files",msgstr:["Minden fájl"]},{msgid:"Cancel",msgstr:["Mégse"]},{msgid:"Choose",msgstr:["Kiválasztás"]},{msgid:"Choose {file}",msgstr:["{file} kiválasztása"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n fájl kiválasztása","%n fájl kiválasztása"]},{msgid:"Copy",msgstr:["Másolás"]},{msgid:"Copy to {target}",msgstr:["Másolás ide: {target}"]},{msgid:"Could not create the new folder",msgstr:["Az új mappa létrehozása nem lehetséges"]},{msgid:"Could not load files settings",msgstr:["Fájlbeállítások betöltése nem lehetséges"]},{msgid:"Could not load files views",msgstr:["Fájlnézetek betöltése nem lehetséges"]},{msgid:"Create directory",msgstr:["Mappa létrehozása"]},{msgid:"Current view selector",msgstr:["Jelenlegi nézet választó"]},{msgid:"Enter your name",msgstr:["Add meg a neved"]},{msgid:"Failed to set nickname.",msgstr:["Becenév beállítás sikertelen."]},{msgid:"Favorites",msgstr:["Kedvencek"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["A kedvencként megjelölt fájlok és mappák itt jelennek meg."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["A nemrég módosított fájlok és mappák itt jelennek meg."]},{msgid:"Filter file list",msgstr:["Fájl lista szűrése"]},{msgid:"Folder name cannot be empty.",msgstr:["A mappa neve nem lehet üres."]},{msgid:"Guest identification",msgstr:["Vendég azonosítás"]},{msgid:"Home",msgstr:["Kezdőlap"]},{msgid:"Invalid name.",msgstr:["Érvénytelen név."]},{msgid:"Modified",msgstr:["Módosítva"]},{msgid:"Move",msgstr:["Mozgatás"]},{msgid:"Move to {target}",msgstr:["Mozgatás ide: {target}"]},{msgid:"Name",msgstr:["Név"]},{msgid:"Names must not be empty.",msgstr:["Nevek nem lehetnek üresek."]},{msgid:'Names must not end with "{extension}".',msgstr:['Nevek nem végződhetnek "{extension}"-re.']},{msgid:"Names must not start with a dot.",msgstr:["Nevek nem kezdődhetnek ponttal."]},{msgid:"New",msgstr:["Új"]},{msgid:"New folder",msgstr:["Új mappa"]},{msgid:"New folder name",msgstr:["Új mappa név"]},{msgid:"No files in here",msgstr:["Itt nincsenek fájlok"]},{msgid:"No files matching your filter were found.",msgstr:["Nincs a szűrési feltételeknek megfelelő fájl."]},{msgid:"No matching files",msgstr:["Nincs ilyen fájl"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Kérlek adj meg egy legalább 2 karakteres nevet."]},{msgid:"Recent",msgstr:["Gyakori"]},{msgid:"Select all entries",msgstr:["Minden bejegyzés kijelölése"]},{msgid:"Select entry",msgstr:["Bejegyzés kijelölése"]},{msgid:"Select the row for {nodename}",msgstr:["Válassz sort a következőnek: {nodename}"]},{msgid:"Size",msgstr:["Méret"]},{msgid:"Submit name",msgstr:["Név beküldése"]},{msgid:"Undo",msgstr:["Visszavonás"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Tölts fel tartalmat vagy szinkronizálj az eszközeiddel!"]},{msgid:"You are currently not identified.",msgstr:["Jelenleg nem vagy azonosítva."]},{msgid:"You cannot leave the name empty.",msgstr:["A nevet nem hagyhatod üresen."]}]},{language:"hy",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["{name} սխալ թղթապանակի անվանում է"]},{msgid:'"{name}" is not an allowed folder name',msgstr:["{name} համարվում է անթույլատրելի թղթապանակի անվանում"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["/ չի թույլատրվում օգտագործել անվանման մեջ"]},{msgid:"All files",msgstr:["Բոլոր ֆայլերը"]},{msgid:"Choose",msgstr:["Ընտրել"]},{msgid:"Choose {file}",msgstr:["Ընտրել {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Ընտրել %n ֆայլ","Ընտրել %n ֆայլեր"]},{msgid:"Copy",msgstr:["Պատճենել"]},{msgid:"Copy to {target}",msgstr:["Պատճենել {target}"]},{msgid:"Could not create the new folder",msgstr:["Չստացվեց ստեղծել նոր թղթապանակը"]},{msgid:"Could not load files settings",msgstr:["Չստացվեց բեռնել ֆայլի կարգավորումները"]},{msgid:"Could not load files views",msgstr:["Չստացվեց բեռնել ֆայլերի դիտումները"]},{msgid:"Create directory",msgstr:["Ստեղծել դիրեկտորիա"]},{msgid:"Current view selector",msgstr:["Ընթացիկ դիտման ընտրիչ"]},{msgid:"Favorites",msgstr:["Նախընտրելիներ"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Այստեղ կցուցադրվեն այն ֆայլերն ու պանակները, որոնք դուք նշել եք որպես նախընտրելիներ:"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Այստեղ կցուցադրվեն այն ֆայլերն ու պանակները, որոնք վերջերս փոխել եք:"]},{msgid:"Filter file list",msgstr:["Ֆիլտրել ֆայլերի ցուցակը"]},{msgid:"Folder name cannot be empty.",msgstr:["Թղթապանակի անունը չի կարող դատարկ լինել:"]},{msgid:"Home",msgstr:["Սկիզբ"]},{msgid:"Modified",msgstr:["Փոփոխված"]},{msgid:"Move",msgstr:["Տեղափոխել"]},{msgid:"Move to {target}",msgstr:["Տեղափոխել {target}"]},{msgid:"Name",msgstr:["Անուն"]},{msgid:"New",msgstr:["Նոր"]},{msgid:"New folder",msgstr:["Նոր թղթապանակ"]},{msgid:"New folder name",msgstr:["Նոր թղթապանակի անվանում"]},{msgid:"No files in here",msgstr:["Այստեղ չկան ֆայլեր"]},{msgid:"No files matching your filter were found.",msgstr:["Ձեր ֆիլտրին համապատասխանող ֆայլերը չեն գտնվել:"]},{msgid:"No matching files",msgstr:["Չկան համապատասխան ֆայլեր"]},{msgid:"Recent",msgstr:["Վերջին"]},{msgid:"Select all entries",msgstr:["Ընտրել բոլոր գրառումները"]},{msgid:"Select entry",msgstr:["Ընտրել բոլոր գրառումը"]},{msgid:"Select the row for {nodename}",msgstr:["Ընտրեք տողը {nodename}-ի համար "]},{msgid:"Size",msgstr:["Չափ"]},{msgid:"Undo",msgstr:["Ետարկել"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Ներբեռնեք որոշ բովանդակություն կամ համաժամացրեք այն ձեր սարքերի հետ:"]}]},{language:"id",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" bukan nama folder yang valid.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" merupakan nama folder yang tidak diperbolehkan']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" tidak diperbolehkan di dalam nama folder.']},{msgid:"All files",msgstr:["Semua berkas"]},{msgid:"Choose",msgstr:["Pilih"]},{msgid:"Choose {file}",msgstr:["Pilih {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Pilih %n file"]},{msgid:"Copy",msgstr:["Salin"]},{msgid:"Copy to {target}",msgstr:["Salin ke {target}"]},{msgid:"Could not create the new folder",msgstr:["Tidak dapat membuat folder baru"]},{msgid:"Could not load files settings",msgstr:["Tidak dapat memuat pengaturan file"]},{msgid:"Could not load files views",msgstr:["Tidak dapat memuat tampilan file"]},{msgid:"Create directory",msgstr:["Buat direktori"]},{msgid:"Current view selector",msgstr:["Pemilih tampilan saat ini"]},{msgid:"Favorites",msgstr:["Favorit"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Berkas dan folder yang Anda tandai sebagai favorit akan muncul di sini."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Berkas dan folder yang Anda ubah baru-baru ini akan muncul di sini."]},{msgid:"Filter file list",msgstr:["Saring daftar berkas"]},{msgid:"Folder name cannot be empty.",msgstr:["Name berkas tidak boleh kosong."]},{msgid:"Home",msgstr:["Beranda"]},{msgid:"Modified",msgstr:["Diubah"]},{msgid:"Move",msgstr:["Pindahkan"]},{msgid:"Move to {target}",msgstr:["Pindahkan ke {target}"]},{msgid:"Name",msgstr:["Nama"]},{msgid:"New",msgstr:["Baru"]},{msgid:"New folder",msgstr:["Folder baru"]},{msgid:"New folder name",msgstr:["Nama folder baru"]},{msgid:"No files in here",msgstr:["Tidak ada berkas di sini"]},{msgid:"No files matching your filter were found.",msgstr:["Tidak ada berkas yang cocok dengan penyaringan Anda."]},{msgid:"No matching files",msgstr:["Tidak ada berkas yang cocok"]},{msgid:"Recent",msgstr:["Terkini"]},{msgid:"Select all entries",msgstr:["Pilih semua entri"]},{msgid:"Select entry",msgstr:["Pilih entri"]},{msgid:"Select the row for {nodename}",msgstr:["Pilih baris untuk {nodename}"]},{msgid:"Size",msgstr:["Ukuran"]},{msgid:"Undo",msgstr:["Tidak jadi"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Unggah beberapa konten atau sinkronkan dengan perangkat Anda!"]}]},{language:"is",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" er ógilt möppuheiti.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" er ekki leyfilegt möppuheiti']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" er er ekki leyfilegt innan í skráarheiti.']},{msgid:"All files",msgstr:["Allar skrár"]},{msgid:"Choose",msgstr:["Veldu"]},{msgid:"Choose {file}",msgstr:["Veldu {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Veldu %n skrá","Veldu %n skrár"]},{msgid:"Copy",msgstr:["Afrita"]},{msgid:"Copy to {target}",msgstr:["Afrita í {target}"]},{msgid:"Could not create the new folder",msgstr:["Get ekki búið til nýju möppuna"]},{msgid:"Could not load files settings",msgstr:["Tókst ekki að hlaða inn stillingum skráa"]},{msgid:"Could not load files views",msgstr:["Tókst ekki að hlaða inn sýnum skráa"]},{msgid:"Create directory",msgstr:["Búa til möppu"]},{msgid:"Current view selector",msgstr:["Núverandi val sýnar"]},{msgid:"Favorites",msgstr:["Eftirlæti"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Skrár og möppur sem þú merkir sem eftirlæti birtast hér."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Skrár og möppur sem þú breyttir nýlega birtast hér."]},{msgid:"Filter file list",msgstr:["Sía skráalista"]},{msgid:"Folder name cannot be empty.",msgstr:["Möppuheiti má ekki vera tómt."]},{msgid:"Home",msgstr:["Heim"]},{msgid:"Modified",msgstr:["Breytt"]},{msgid:"Move",msgstr:["Færa"]},{msgid:"Move to {target}",msgstr:["Færa í {target}"]},{msgid:"Name",msgstr:["Heiti"]},{msgid:"New",msgstr:["Nýtt"]},{msgid:"New folder",msgstr:["Ný mappa"]},{msgid:"New folder name",msgstr:["Heiti nýrrar möppu"]},{msgid:"No files in here",msgstr:["Engar skrár hér"]},{msgid:"No files matching your filter were found.",msgstr:["Engar skrár fundust sem passa við síuna."]},{msgid:"No matching files",msgstr:["Engar samsvarandi skrár"]},{msgid:"Recent",msgstr:["Nýlegt"]},{msgid:"Select all entries",msgstr:["Velja allar færslur"]},{msgid:"Select entry",msgstr:["Velja færslu"]},{msgid:"Select the row for {nodename}",msgstr:["Veldu röðina fyrir {nodename}"]},{msgid:"Size",msgstr:["Stærð"]},{msgid:"Undo",msgstr:["Afturkalla"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Sendu inn eitthvað efni eða samstilltu við tækin þín!"]}]},{language:"it",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" non è un nome di cartella valido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" non è un nome di cartella ammesso']},{msgid:'"/" is not allowed inside a folder name.',msgstr:[`"/" non è ammesso all'interno del nome di una cartella.`]},{msgid:"All files",msgstr:["Tutti i file"]},{msgid:"Choose",msgstr:["Scegli"]},{msgid:"Choose {file}",msgstr:["Scegli {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Seleziona %n file","Seleziona %n file","Seleziona %n file"]},{msgid:"Copy",msgstr:["Copia"]},{msgid:"Copy to {target}",msgstr:["Copia in {target}"]},{msgid:"Could not create the new folder",msgstr:["Impossibile creare la nuova cartella"]},{msgid:"Could not load files settings",msgstr:["Impossibile caricare le impostazioni dei file"]},{msgid:"Could not load files views",msgstr:["Impossibile caricare le visualizzazioni dei file"]},{msgid:"Create directory",msgstr:["Crea directory"]},{msgid:"Current view selector",msgstr:["Selettore della vista corrente"]},{msgid:"Favorites",msgstr:["Preferiti"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["I file e le cartelle contrassegnate come preferite saranno mostrate qui."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["I file e le cartelle che hai modificato di recente saranno mostrate qui."]},{msgid:"Filter file list",msgstr:["Filtra elenco file"]},{msgid:"Folder name cannot be empty.",msgstr:["Il nome della cartella non può essere vuoto."]},{msgid:"Home",msgstr:["Home"]},{msgid:"Modified",msgstr:["Modificato"]},{msgid:"Move",msgstr:["Sposta"]},{msgid:"Move to {target}",msgstr:["Sposta in {target}"]},{msgid:"Name",msgstr:["Nome"]},{msgid:"New",msgstr:["Nuovo"]},{msgid:"New folder",msgstr:["Nuova cartella"]},{msgid:"New folder name",msgstr:["Nuovo nome cartella"]},{msgid:"No files in here",msgstr:["Nessun file qui"]},{msgid:"No files matching your filter were found.",msgstr:["Nessun file che corrisponde al tuo filtro è stato trovato."]},{msgid:"No matching files",msgstr:["Nessun file corrispondente"]},{msgid:"Recent",msgstr:["Recente"]},{msgid:"Select all entries",msgstr:["Scegli tutte le voci"]},{msgid:"Select entry",msgstr:["Seleziona la voce"]},{msgid:"Select the row for {nodename}",msgstr:["Seleziona la riga per {nodename}"]},{msgid:"Size",msgstr:["Taglia/dimensioni"]},{msgid:"Undo",msgstr:["Annulla"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Carica qualche contenuto o sincronizza con i tuoi dispositivi!"]}]},{language:"ja_JP",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['名前に"{char}"は使用できません。']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}"は許可された名前ではありません']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" はフォルダー名に使用できません。']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}"は許可されたフォルダー名ではありません']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}"は予約名であり使用できません。']},{msgid:'"/" is not allowed inside a folder name.',msgstr:["フォルダー名に「/(スラッシュ)」は使用できません。"]},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%nファイルが競合しています"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%nディレクトリ{dirname}内のファイル競合"]},{msgid:"All files",msgstr:["すべてのファイル"]},{msgid:"Cancel",msgstr:["キャンセル"]},{msgid:"Cancel the entire operation",msgstr:["操作全体をキャンセルする"]},{msgid:"Choose",msgstr:["選択"]},{msgid:"Choose {file}",msgstr:["{file} を選択"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n 個のファイルを選択"]},{msgid:"Confirm",msgstr:["承認"]},{msgid:"Continue",msgstr:["続ける"]},{msgid:"Copy",msgstr:["コピー"]},{msgid:"Copy to {target}",msgstr:["{target} にコピー"]},{msgid:"Could not create the new folder",msgstr:["新しいフォルダーを作成できませんでした"]},{msgid:"Could not load files settings",msgstr:["ファイル設定を読み込めませんでした"]},{msgid:"Could not load files views",msgstr:["ファイルビューを読み込めませんでした"]},{msgid:"Create directory",msgstr:["ディレクトリを作成"]},{msgid:"Current view selector",msgstr:["現在のビューセレクタ"]},{msgid:"Enter your name",msgstr:["名前を入力してください"]},{msgid:"Existing version",msgstr:["現行バージョン"]},{msgid:"Failed to set nickname.",msgstr:["ニックネームの設定に失敗しました。"]},{msgid:"Favorites",msgstr:["お気に入り"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["お気に入りとしてマークしたファイルとフォルダがここに表示されます。"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["最近変更したファイルとフォルダがここに表示されます。"]},{msgid:"Filter file list",msgstr:["ファイルリストをフィルタ"]},{msgid:"Folder name cannot be empty.",msgstr:["フォルダ名は空にできません。"]},{msgid:"Guest identification",msgstr:["ゲスト識別"]},{msgid:"Home",msgstr:["ホーム"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["両方のバージョンを選択した場合、受信ファイル名には番号が追加されます。"]},{msgid:"Invalid name.",msgstr:["無効な名前です。"]},{msgid:"Last modified date unknown",msgstr:["最終更新日不明"]},{msgid:"Modified",msgstr:["変更済み"]},{msgid:"Move",msgstr:["移動"]},{msgid:"Move to {target}",msgstr:["{target} に移動"]},{msgid:"Name",msgstr:["名前"]},{msgid:"Names may be at most 64 characters long.",msgstr:["名前は最大64文字です。"]},{msgid:"Names must not be empty.",msgstr:["名前は空にできません。"]},{msgid:'Names must not end with "{extension}".',msgstr:['名前の末尾に"{extension}"は使用できません']},{msgid:"Names must not start with a dot.",msgstr:["ドットで始まる名前は使用できません。"]},{msgid:"New",msgstr:["新規作成"]},{msgid:"New folder",msgstr:["新しいフォルダー"]},{msgid:"New folder name",msgstr:["新しいフォルダーの名前"]},{msgid:"New version",msgstr:["新バージョン"]},{msgid:"No files in here",msgstr:["ファイルがありません"]},{msgid:"No files matching your filter were found.",msgstr:["フィルタに一致するファイルは見つかりませんでした。"]},{msgid:"No matching files",msgstr:["一致するファイルはありません"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["名前を2文字以上で入力してください。"]},{msgid:"Recent",msgstr:["最近"]},{msgid:"Select all checkboxes",msgstr:["すべてのチェックボックスを選択する"]},{msgid:"Select all entries",msgstr:["すべてのエントリを選択"]},{msgid:"Select all existing files",msgstr:["既存のファイルをすべて選択"]},{msgid:"Select all new files",msgstr:["すべての新規ファイルを選択"]},{msgid:"Select entry",msgstr:["エントリを選択"]},{msgid:"Select the row for {nodename}",msgstr:["{nodename} の行を選択"]},{msgid:"Size",msgstr:["サイズ"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["%n 個のファイルをスキップ"]},{msgid:"Skip this file",msgstr:["このファイルをスキップ"]},{msgid:"Submit name",msgstr:["名前を送信する"]},{msgid:"Undo",msgstr:["元に戻す"]},{msgid:"Upload some content or sync with your devices!",msgstr:["コンテンツをアップロードするか、デバイスと同期してください!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["受信フォルダが選択されている場合、そのフォルダ内の競合ファイルも上書きされます。"]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["受信フォルダが選択されると、内容は既存のフォルダに書き込まれ、再帰的な競合解決が実行されます。"]},{msgid:"Which files do you want to keep?",msgstr:["どのファイルを残しますか?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["現在、{nickname}として識別されています。"]},{msgid:"You are currently not identified.",msgstr:["現在あなたは識別されていません。"]},{msgid:"You cannot leave the name empty.",msgstr:["名前を空にすることはできません。"]},{msgid:"You need to choose at least one conflict solution",msgstr:["少なくとも1つの競合ソリューションを選択する必要があります"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["続行するには、各ファイルのバージョンを少なくとも1つ選択する必要があります。"]}]},{language:"ko",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}"는 이름 내에 사용할 수 없습니다.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}"은 허용되는 이름이 아닙니다.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}"은 사용할 수 없는 폴더명입니다.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}"은 허용되지 않은 폴더명입니다.']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['같은 이름을 가진 "{segment}"이 이미 사용 중입니다.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/"는 폴더명에 사용할 수 없는 기호입니다.']},{msgid:"All files",msgstr:["모든 파일"]},{msgid:"Cancel",msgstr:["취소"]},{msgid:"Choose",msgstr:["선택"]},{msgid:"Choose {file}",msgstr:["{file} 선택"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n개의 파일 선택"]},{msgid:"Copy",msgstr:["복사"]},{msgid:"Copy to {target}",msgstr:["{target}으로 복사"]},{msgid:"Could not create the new folder",msgstr:["새 폴더를 만들 수 없음"]},{msgid:"Could not load files settings",msgstr:["파일 설정을 불러오지 못함"]},{msgid:"Could not load files views",msgstr:["파일 보기를 불러오지 못함"]},{msgid:"Create directory",msgstr:["디렉토리 만들기"]},{msgid:"Current view selector",msgstr:["현재 뷰 선택자"]},{msgid:"Enter your name",msgstr:["이름을 입력하세요 "]},{msgid:"Failed to set nickname.",msgstr:[`닉네임을 설정하지 못했습니다. - `]},{msgid:"Favorites",msgstr:["즐겨찾기"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["즐겨찾기로 표시한 파일 및 폴더가 이곳에 표시됩니다."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["최근 수정한 파일 및 폴더가 이곳에 표시됩니다."]},{msgid:"Filter file list",msgstr:["파일 목록 필터링"]},{msgid:"Folder name cannot be empty.",msgstr:["폴더명을 비울 수 없습니다."]},{msgid:"Guest identification",msgstr:["게스트 확인"]},{msgid:"Home",msgstr:["홈"]},{msgid:"Invalid name.",msgstr:["잘못된 이름입니다. "]},{msgid:"Modified",msgstr:["수정됨"]},{msgid:"Move",msgstr:["이동"]},{msgid:"Move to {target}",msgstr:["{target}으로 이동"]},{msgid:"Name",msgstr:["이름"]},{msgid:"Names may be at most 64 characters long.",msgstr:["이름은 아마도 최대 64글자 입니다."]},{msgid:"Names must not be empty.",msgstr:["이름은 비어 있으면 안 됩니다."]},{msgid:'Names must not end with "{extension}".',msgstr:['이름은 "{extension}"로 끝나지 않아야 합니다.']},{msgid:"Names must not start with a dot.",msgstr:["이름은 점으로 시작해서는 안 됩니다."]},{msgid:"New",msgstr:["새로 만들기"]},{msgid:"New folder",msgstr:["새 폴더"]},{msgid:"New folder name",msgstr:["새 폴더명"]},{msgid:"No files in here",msgstr:["파일이 없습니다"]},{msgid:"No files matching your filter were found.",msgstr:["선택한 필터에 해당하는 파일이 없습니다."]},{msgid:"No matching files",msgstr:["일치하는 파일 없음"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["최소 2자 이상의 이름을 입력하십시오. "]},{msgid:"Recent",msgstr:["최근"]},{msgid:"Select all entries",msgstr:["모두 선택"]},{msgid:"Select entry",msgstr:["항목 선택"]},{msgid:"Select the row for {nodename}",msgstr:["{nodename}의 행 선택"]},{msgid:"Size",msgstr:["크기"]},{msgid:"Submit name",msgstr:["이름 제출"]},{msgid:"Undo",msgstr:["되돌리기"]},{msgid:"Upload some content or sync with your devices!",msgstr:["기기에서 파일을 업로드 또는 동기화하세요!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["{nickname}로서 인증 상태 입니다."]},{msgid:"You are currently not identified.",msgstr:["현재 인증되지 않았습니다."]},{msgid:"You cannot leave the name empty.",msgstr:["이름은 비워 둘 수 없습니다. "]}]},{language:"lb",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["{name} ass en ongëlteg Dossier"]},{msgid:'"{name}" is not an allowed folder name',msgstr:["{name} ass net en erlaabten Dossiernumm"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" ass net an engem Dossier Numm erlaabt']},{msgid:"All files",msgstr:["All Dateien"]},{msgid:"Choose",msgstr:["Wielt"]},{msgid:"Choose {file}",msgstr:["Wielt {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Wielt %n Fichieren","Wielt %n Fichier"]},{msgid:"Copy",msgstr:["Kopie"]},{msgid:"Copy to {target}",msgstr:["Kopie op {target}"]},{msgid:"Could not create the new folder",msgstr:["Konnt den neien Dossier net erstellen"]},{msgid:"Could not load files settings",msgstr:["Konnt d'Dateienastellungen net lueden"]},{msgid:"Could not load files views",msgstr:["Konnt d'Dateien net lueden"]},{msgid:"Create directory",msgstr:["Erstellt Verzeechnes"]},{msgid:"Current view selector",msgstr:["Aktuell Vue selector"]},{msgid:"Favorites",msgstr:["Favoritten"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Dateien an Ordner, déi Dir als Favorit markéiert, ginn hei gewisen"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Dateien an Ordner déi Dir viru kuerzem geännert hutt ginn hei op"]},{msgid:"Filter file list",msgstr:["Filter Datei Lëscht"]},{msgid:"Folder name cannot be empty.",msgstr:["Dossier Numm kann net eidel sinn"]},{msgid:"Home",msgstr:["Wëllkomm"]},{msgid:"Modified",msgstr:["Geännert"]},{msgid:"Move",msgstr:["Plënne"]},{msgid:"Move to {target}",msgstr:["Plënneren {target}"]},{msgid:"Name",msgstr:["Numm"]},{msgid:"New",msgstr:["Nei"]},{msgid:"New folder",msgstr:["Neien dossier"]},{msgid:"New folder name",msgstr:["Neien dossier numm"]},{msgid:"No files in here",msgstr:["Kee fichier hei"]},{msgid:"No files matching your filter were found.",msgstr:["Kee fichier deen äre filter passt gouf fonnt"]},{msgid:"No matching files",msgstr:["Keng passende dateien"]},{msgid:"Recent",msgstr:["Rezent"]},{msgid:"Select all entries",msgstr:["Wielt all entréen"]},{msgid:"Select entry",msgstr:["Wielt entrée"]},{msgid:"Select the row for {nodename}",msgstr:["Wielt d'zeil fir {nodename}"]},{msgid:"Size",msgstr:["Gréisst"]},{msgid:"Undo",msgstr:["Undoen"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Luet en inhalt erop oder synchroniséiert mat ären apparater"]}]},{language:"lt_LT",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}“ yra netinkamas aplanko pavadinimas."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}“ yra neleidžiamas aplanko pavadinimas"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["„/“ yra neleidžiamas aplanko pavadinime."]},{msgid:"All files",msgstr:["Visi failai"]},{msgid:"Cancel",msgstr:["Atšaukti"]},{msgid:"Choose",msgstr:["Pasirinkti"]},{msgid:"Choose {file}",msgstr:["Pasirinkti {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Pasirinkti %n failą","Pasirinkti %n failus","Pasirinkti %n failų","Pasirinkti %n failą"]},{msgid:"Copy",msgstr:["Kopijuoti"]},{msgid:"Copy to {target}",msgstr:["Kopijuoti į {target}"]},{msgid:"Could not create the new folder",msgstr:["Nepavyko sukurti naujo aplanko"]},{msgid:"Could not load files settings",msgstr:["Nepavyko įkelti failų nustatymų"]},{msgid:"Could not load files views",msgstr:["Nepavyko įkelti failų peržiūrų"]},{msgid:"Create directory",msgstr:["Sukurti katalogą"]},{msgid:"Current view selector",msgstr:["Dabartinis peržiūros pasirinkimas"]},{msgid:"Enter your name",msgstr:["Įrašykite savo vardą"]},{msgid:"Failed to set nickname.",msgstr:["Nepavyko nustatyti slapyvardžio"]},{msgid:"Favorites",msgstr:["Populiariausi"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Failai ir aplankai, kuriuos pažymėsite kaip mėgstamiausius, bus rodomi čia."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Čia bus rodomi failai ir aplankai, kuriuos neseniai pakeitėte."]},{msgid:"Filter file list",msgstr:["Filtruoti failų sąrašą"]},{msgid:"Folder name cannot be empty.",msgstr:["Aplanko pavadinimas negali būti tuščias."]},{msgid:"Guest identification",msgstr:["Svečio identifikacija"]},{msgid:"Home",msgstr:["Pradžia"]},{msgid:"Modified",msgstr:["Pakeista"]},{msgid:"Move",msgstr:["Perkelti"]},{msgid:"Move to {target}",msgstr:["Perkelti į {target}"]},{msgid:"Name",msgstr:["Vardas"]},{msgid:"New",msgstr:["Naujas"]},{msgid:"New folder",msgstr:["Naujas aplankas"]},{msgid:"New folder name",msgstr:["Naujas aplanko pavadinimas"]},{msgid:"No files in here",msgstr:["Čia failų nėra"]},{msgid:"No files matching your filter were found.",msgstr:["Nepavyko rasti failų pagal filtro nustatymus"]},{msgid:"No matching files",msgstr:["Nėra atitinkančių failų"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Įrašykite vardą iš mažiausiai dviejų ženklų."]},{msgid:"Recent",msgstr:["Nauji"]},{msgid:"Select all entries",msgstr:["Žymėti visus įrašus"]},{msgid:"Select entry",msgstr:["Žymėti įrašą"]},{msgid:"Select the row for {nodename}",msgstr:["Pasirinkite eilutę {nodename}"]},{msgid:"Size",msgstr:["Dydis"]},{msgid:"Submit name",msgstr:["Patvirtinti vardą"]},{msgid:"Undo",msgstr:["Atšaukti"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Įkelkite turinio arba sinchronizuokite su savo įrenginiais!"]},{msgid:"You are currently not identified.",msgstr:["Šiuo metu nesate identifikuotas."]},{msgid:"You cannot leave the name empty.",msgstr:["Negalite palikti tuščio vardo lauko."]}]},{language:"lv",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" nav derīgs mapes nosaukums.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" nav atļauts mapes nosaukums']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" nav atļauts mapes nosaukuma izmantošanā.']},{msgid:"All files",msgstr:["Visas datnes"]},{msgid:"Choose",msgstr:["Izvēlieties"]},{msgid:"Choose {file}",msgstr:["Izvēlieties {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Izvēlēties %n datņu","Izvēlēties %n datni","Izvēlēties %n datnes"]},{msgid:"Copy",msgstr:["Kopēt"]},{msgid:"Copy to {target}",msgstr:["Kopēt uz {target}"]},{msgid:"Could not create the new folder",msgstr:["Nevarēja izveidot jaunu mapi"]},{msgid:"Could not load files settings",msgstr:["Nevarēja ielādēt datņu iestatījumus"]},{msgid:"Could not load files views",msgstr:["Nevarēja ielādēt datņu apskatījumus"]},{msgid:"Create directory",msgstr:["Izveidot direktoriju"]},{msgid:"Current view selector",msgstr:["Pašreizēja skata atlasītājs"]},{msgid:"Favorites",msgstr:["Favorīti"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Šeit parādīsies datnes un mapes, kas tiks atzīmētas kā iecienītas."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Šeit parādīsies datnes un mapes, kuras nesen tika izmainītas."]},{msgid:"Filter file list",msgstr:["Atlasīt datņu sarakstu"]},{msgid:"Folder name cannot be empty.",msgstr:["Mapes nosaukums nevar būt tukšs."]},{msgid:"Home",msgstr:["Sākums"]},{msgid:"Modified",msgstr:["Izmaninīta"]},{msgid:"Move",msgstr:["Pārvietot"]},{msgid:"Move to {target}",msgstr:["Pārvietot uz {target}"]},{msgid:"Name",msgstr:["Nosaukums"]},{msgid:"New",msgstr:["Jauns"]},{msgid:"New folder",msgstr:["Jauna mape"]},{msgid:"New folder name",msgstr:["Jaunas mapes nosaukums"]},{msgid:"No files in here",msgstr:["Šeit nav datņu"]},{msgid:"No files matching your filter were found.",msgstr:["Netika atrasta neviena datne, kas atbilst atlasei."]},{msgid:"No matching files",msgstr:["Nav atbilstošu datņu"]},{msgid:"Recent",msgstr:["Nesenās"]},{msgid:"Select all entries",msgstr:["Atlasīt visus ierakstus"]},{msgid:"Select entry",msgstr:["Atlasīt ierakstu"]},{msgid:"Select the row for {nodename}",msgstr:["Atlasīt rindu {nodename}"]},{msgid:"Size",msgstr:["Izmērs"]},{msgid:"Undo",msgstr:["Atsaukt"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Augšupielādē kādu saturu vai sinhronizē savās iekārtās!"]}]},{language:"mk",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" не е дозволено во име.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" не е дозволено име.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" не е валидно име за папка/']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" не е дозволено име за папка']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" е резервирано име и не е дозволено.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" не е дозволена во име на папка.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n конфликт со датотекa","%n конфликти со датотеки"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n конфликт со датотека во {dirname}","%n конфликти со датотеки vo {dirname}"]},{msgid:"All files",msgstr:["Сите датотеки"]},{msgid:"Cancel",msgstr:["Откажи"]},{msgid:"Cancel the entire operation",msgstr:["Прекини ја целата операција"]},{msgid:"Choose",msgstr:["Избери"]},{msgid:"Choose {file}",msgstr:["Избери {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Избери %n датотека","Избери %n датотеки"]},{msgid:"Confirm",msgstr:["Потврди"]},{msgid:"Continue",msgstr:["Продолжи"]},{msgid:"Copy",msgstr:["Копирај"]},{msgid:"Copy to {target}",msgstr:["Копирај во {target}"]},{msgid:"Could not create the new folder",msgstr:["Неможе да се креира нова папка"]},{msgid:"Could not load files settings",msgstr:["Неможе да се вчиаат параметрите за датотеките"]},{msgid:"Could not load files views",msgstr:["Неможе да се вчитаат погледите за датотеките"]},{msgid:"Create directory",msgstr:["Креирај папка"]},{msgid:"Current view selector",msgstr:["Избирач на тековен приказ"]},{msgid:"Enter your name",msgstr:["Внесете го вашето име"]},{msgid:"Existing version",msgstr:["Моментална верзија"]},{msgid:"Failed to set nickname.",msgstr:["Неуспешно поставување прекар."]},{msgid:"Favorites",msgstr:["Фаворити"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Датотеките и папките кој ќе ги означите за омилени ќе се појават овде."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Датотеките и папките кој неодамна сте ги измениле ќе се појават овде."]},{msgid:"Filter file list",msgstr:["Филтрирај листа на датотеки"]},{msgid:"Folder name cannot be empty.",msgstr:["Името на папката неможе да биде празно."]},{msgid:"Guest identification",msgstr:["Гостинска идентификација"]},{msgid:"Home",msgstr:["Почетна"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Ако ги избереш двете верзии, влезната датотека ќе добие број додаден на нејзиното име."]},{msgid:"Invalid name.",msgstr:["Невалидно име."]},{msgid:"Last modified date unknown",msgstr:["Датумот на последна измена е непознат"]},{msgid:"Modified",msgstr:["Променето"]},{msgid:"Move",msgstr:["Премести"]},{msgid:"Move to {target}",msgstr:["Премести во {target}"]},{msgid:"Name",msgstr:["Име"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Имињата можат да бидат најмногу со 64 карактери."]},{msgid:"Names must not be empty.",msgstr:["Имињата неможе да бидат празни."]},{msgid:'Names must not end with "{extension}".',msgstr:['Имињата неможе да завршуваат со "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Имињата неможе да започнуваат со точка."]},{msgid:"New",msgstr:["Нова"]},{msgid:"New folder",msgstr:["Нова папка"]},{msgid:"New folder name",msgstr:["Ново име на папка"]},{msgid:"New version",msgstr:["Нова верзија"]},{msgid:"No files in here",msgstr:["Овде нема датотеки"]},{msgid:"No files matching your filter were found.",msgstr:["Не се пронајдени датотеки што одговараат на вашиот филтер."]},{msgid:"No matching files",msgstr:["Нема датотеки што се совпаѓаат"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Внесете име со најмалку 2 карактери."]},{msgid:"Recent",msgstr:["Неодамнешни"]},{msgid:"Select all checkboxes",msgstr:["Избери ги сите полиња за избор"]},{msgid:"Select all entries",msgstr:["Изберете ги сите записи"]},{msgid:"Select all existing files",msgstr:["Изберете ги сите постоечки датотеки"]},{msgid:"Select all new files",msgstr:["Изберете ги сите нови датотеки"]},{msgid:"Select entry",msgstr:["Избери запис"]},{msgid:"Select the row for {nodename}",msgstr:["Избери ред за {nodename}"]},{msgid:"Size",msgstr:["Големина"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Прескокни %n датотека","Прескокни %n датотеки"]},{msgid:"Skip this file",msgstr:["Прескокни ја оваа датотека"]},{msgid:"Submit name",msgstr:["Испрати име"]},{msgid:"Undo",msgstr:["Врати"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Прикачи содржина или синхронизирај со ваши уреди!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Кога е избрана влезна папка, сите конфликтни датотеки во неа исто така ќе бидат препишани."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Кога е избрана влезна папка, содржината се запишува во постоечката папка и се извршува рекурсивно решавање на конфликти."]},{msgid:"Which files do you want to keep?",msgstr:["Кој датотеки сакаш да ги зачуваш?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Моментално сте идентификувани како {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Моментално не сте идентификувани."]},{msgid:"You cannot leave the name empty.",msgstr:["Не можете да го оставите името празно."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Треба да избереш најмалку едно решение за конфликт"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Треба да избереш најмалку една верзија за секоја датотека за да продолжи."]}]},{language:"ms_MY",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" adalah nama folder yang tidak sesuai ']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" nama folder yang tidak dibenarkan']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" tidak dibenarkan dalam nama folder']},{msgid:"All files",msgstr:["Semua fail"]},{msgid:"Choose",msgstr:["Pilih"]},{msgid:"Choose {file}",msgstr:["Pilih {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Pilih fail %n"]},{msgid:"Copy",msgstr:["menyalin"]},{msgid:"Copy to {target}",msgstr:["menyalin ke {target}"]},{msgid:"Could not create the new folder",msgstr:["Tidak dapat mewujudkan folder baharu"]},{msgid:"Could not load files settings",msgstr:["Tidak dapat memuatkan tetapan fail"]},{msgid:"Could not load files views",msgstr:["Tidak dapat memuatkan paparan fail"]},{msgid:"Create directory",msgstr:["mewujudkan direktori"]},{msgid:"Current view selector",msgstr:["pemilih pandangan semasa"]},{msgid:"Favorites",msgstr:["Pilihan"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Fail dan folder yang anda tanda sebagai pilihan akan dipaparkan di sini."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Fail dan folder yang anda telah ubah suai baru-baru ini dipaparkan di sini."]},{msgid:"Filter file list",msgstr:["Menapis senarai fail"]},{msgid:"Folder name cannot be empty.",msgstr:["Nama folder tidak boleh kosong."]},{msgid:"Home",msgstr:["Utama"]},{msgid:"Modified",msgstr:["Ubah suai"]},{msgid:"Move",msgstr:["pindah"]},{msgid:"Move to {target}",msgstr:["pindah ke {target}"]},{msgid:"Name",msgstr:["Nama"]},{msgid:"New",msgstr:["Baru"]},{msgid:"New folder",msgstr:["Folder Baharu"]},{msgid:"New folder name",msgstr:["Nama folder baharu"]},{msgid:"No files in here",msgstr:["Tiada fail di sini"]},{msgid:"No files matching your filter were found.",msgstr:["Tiada fail yang sepadan dengan tapisan anda."]},{msgid:"No matching files",msgstr:["Tiada fail yang sepadan"]},{msgid:"Recent",msgstr:["baru-baru ini"]},{msgid:"Select all entries",msgstr:["Pilih semua entri"]},{msgid:"Select entry",msgstr:["Pilih entri"]},{msgid:"Select the row for {nodename}",msgstr:["memilih baris {nodename}"]},{msgid:"Size",msgstr:["Saiz"]},{msgid:"Undo",msgstr:["buat asal"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Muat naik beberapa kandungan atau selaras dengan peranti anda!"]}]},{language:"nb_NO",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" er ikke tillatt i et navn.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" er ikke et tillatt navn.']},{msgid:'"{name}" is an invalid folder name.',msgstr:["«{name}» er ikke et gyldig mappenavn."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["«{name}» er ikke et tillatt mappenavn."]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" er et reservert navn og er ikke tillatt.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" er ikke tillatt inne i et mappenavn.']},{msgid:"All files",msgstr:["Alle filer"]},{msgid:"Cancel",msgstr:["Avbryt"]},{msgid:"Choose",msgstr:["Velg"]},{msgid:"Choose {file}",msgstr:["Velg {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Velg %n fil","Velg %n filer"]},{msgid:"Copy",msgstr:["Kopier"]},{msgid:"Copy to {target}",msgstr:["Kopier til {target}"]},{msgid:"Could not create the new folder",msgstr:["Kunne ikke opprette den nye mappen"]},{msgid:"Could not load files settings",msgstr:["Kunne ikke laste filinnstillinger"]},{msgid:"Could not load files views",msgstr:["Kunne ikke laste filvisninger"]},{msgid:"Create directory",msgstr:["Opprett mappe"]},{msgid:"Current view selector",msgstr:["Nåværende visningsvelger"]},{msgid:"Enter your name",msgstr:["Skriv inn navnet ditt"]},{msgid:"Failed to set nickname.",msgstr:["Kunne ikke lagre kallenavnet."]},{msgid:"Favorites",msgstr:["Favoritter"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Filer og mapper du markerer som favoritter vil vises her."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Filer og mapper du nylig har endret, vil vises her."]},{msgid:"Filter file list",msgstr:["Filtrer filliste"]},{msgid:"Folder name cannot be empty.",msgstr:["Mappenavn kan ikke være tomt."]},{msgid:"Guest identification",msgstr:["Gjesteidentifikasjon"]},{msgid:"Home",msgstr:["Hjem"]},{msgid:"Invalid name.",msgstr:["Ugyldig navn."]},{msgid:"Modified",msgstr:["Modifisert"]},{msgid:"Move",msgstr:["Flytt"]},{msgid:"Move to {target}",msgstr:["Flytt til {target}"]},{msgid:"Name",msgstr:["Navn"]},{msgid:"Names must not be empty.",msgstr:["Navn kan ikke være tomme."]},{msgid:'Names must not end with "{extension}".',msgstr:['Navn kan ikke ende med "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Navn kan ikke starte med et punktum."]},{msgid:"New",msgstr:["Ny"]},{msgid:"New folder",msgstr:["Ny mappe"]},{msgid:"New folder name",msgstr:["Nytt mappenavn"]},{msgid:"No files in here",msgstr:["Ingen filer her"]},{msgid:"No files matching your filter were found.",msgstr:["Ingen filer funnet med ditt filter."]},{msgid:"No matching files",msgstr:["Ingen filer samsvarer"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Vennligst angi et navn som har minst 2 tegn."]},{msgid:"Recent",msgstr:["Nylige"]},{msgid:"Select all entries",msgstr:["Velg alle oppføringer"]},{msgid:"Select entry",msgstr:["Velg oppføring"]},{msgid:"Select the row for {nodename}",msgstr:["Velg raden for {nodename}"]},{msgid:"Size",msgstr:["Størrelse"]},{msgid:"Submit name",msgstr:["Bekreft navn"]},{msgid:"Undo",msgstr:["Angre"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Last opp innhold eller synkroniser med enhetene dine!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Du er akkurat nå identifisert som {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Du er akkurat nå ikke identifisert."]},{msgid:"You cannot leave the name empty.",msgstr:["Du kan ikke la navnet være blankt."]}]},{language:"nl",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" kan niet gebruikt worden in de benaming.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" is geen toegestane naam.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" is een ongeldige mapnaam.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" is geen toegestane mapnaam']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" is een gereserveerde naam en niet toegestaan.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" is niet toegestaan binnen een bestandsnaam']},{msgid:"All files",msgstr:["Alle bestanden"]},{msgid:"Cancel",msgstr:["Annuleren"]},{msgid:"Choose",msgstr:["Kiezen"]},{msgid:"Choose {file}",msgstr:["Kies {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Kies %n bestand","Kies %n bestanden"]},{msgid:"Copy",msgstr:["Kopiëren"]},{msgid:"Copy to {target}",msgstr:["Kopiëren naar {target}"]},{msgid:"Could not create the new folder",msgstr:["Kon de nieuwe map niet maken"]},{msgid:"Could not load files settings",msgstr:["Kon de bestandsinstellingen niet laden"]},{msgid:"Could not load files views",msgstr:["Kon de bestandsweergaves niet laden"]},{msgid:"Create directory",msgstr:["Map aanmaken"]},{msgid:"Current view selector",msgstr:["Huidige weergave keuze"]},{msgid:"Enter your name",msgstr:["Voer je naam in"]},{msgid:"Failed to set nickname.",msgstr:["Kon geen bijnaam instellen."]},{msgid:"Favorites",msgstr:["Favorieten"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Bestanden en mappen die je als favoriet markeert, verschijnen hier."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Bestanden en mappen die je recentelijk hebt gewijzigd, verschijnen hier."]},{msgid:"Filter file list",msgstr:["Bestandslijst filteren"]},{msgid:"Folder name cannot be empty.",msgstr:["Mapnaam mag niet leeg zijn."]},{msgid:"Guest identification",msgstr:["Gastenidentificatie"]},{msgid:"Home",msgstr:["Thuis"]},{msgid:"Invalid name.",msgstr:["Ongeldige naam."]},{msgid:"Modified",msgstr:["Gewijzigd"]},{msgid:"Move",msgstr:["Verplaatsen"]},{msgid:"Move to {target}",msgstr:["Verplaatsen naar {target}"]},{msgid:"Name",msgstr:["Naam"]},{msgid:"Names must not be empty.",msgstr:["Namen mogen niet leeg zijn."]},{msgid:'Names must not end with "{extension}".',msgstr:['Namen mogen niet eindigen met "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Namen mogen niet begonnen met een punt."]},{msgid:"New",msgstr:["Nieuw"]},{msgid:"New folder",msgstr:["Nieuwe map"]},{msgid:"New folder name",msgstr:["Nieuwe mapnaam"]},{msgid:"No files in here",msgstr:["Geen bestanden hier"]},{msgid:"No files matching your filter were found.",msgstr:["Geen bestanden gevonden die voldoen aan je filter."]},{msgid:"No matching files",msgstr:["Geen overeenkomende bestanden"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Voer een naam in met minimaal 2 tekens."]},{msgid:"Recent",msgstr:["Recent"]},{msgid:"Select all entries",msgstr:["Alle invoer selecteren"]},{msgid:"Select entry",msgstr:["Invoer selecteren"]},{msgid:"Select the row for {nodename}",msgstr:["Selecteer de rij voor {nodename}"]},{msgid:"Size",msgstr:["Grootte"]},{msgid:"Submit name",msgstr:["Naam indienen"]},{msgid:"Undo",msgstr:["Ongedaan maken"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Upload inhoud of synchroniseer met je apparaten!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Je wordt momenteel geïdentificeerd als {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Je bent momenteel niet geïdentificeerd."]},{msgid:"You cannot leave the name empty.",msgstr:["Je kunt de naam niet leeg laten."]}]},{language:"pl",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" nie jest dozwolone w nazwie.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" nie jest dozwoloną nazwą.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" jest nieprawidłową nazwą folderu']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" nie jest dozwoloną nazwą folderu']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" jest zastrzeżoną nazwą i nie jest dozwolone.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['Znak "/" nie jest dozwolony w nazwie folderu']},{msgid:"All files",msgstr:["Wszystkie pliki"]},{msgid:"Cancel",msgstr:["Anuluj"]},{msgid:"Choose",msgstr:["Wybierz"]},{msgid:"Choose {file}",msgstr:["Wybierz {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Wybierz %n plik","Wybierz %n pliki","Wybierz %n plików","Wybierz %n plików"]},{msgid:"Copy",msgstr:["Kopiuj"]},{msgid:"Copy to {target}",msgstr:["Skopiuj do {target}"]},{msgid:"Could not create the new folder",msgstr:["Nie można utworzyć nowego folderu"]},{msgid:"Could not load files settings",msgstr:["Nie można wczytać ustawień plików"]},{msgid:"Could not load files views",msgstr:["Nie można wczytać widoków plików"]},{msgid:"Create directory",msgstr:["Utwórz katalog"]},{msgid:"Current view selector",msgstr:["Bieżący selektor widoku"]},{msgid:"Enter your name",msgstr:["Wprowadź nazwę"]},{msgid:"Failed to set nickname.",msgstr:["Nie udało się utworzyć pseudonimu."]},{msgid:"Favorites",msgstr:["Ulubione"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Pliki i foldery które oznaczysz jako ulubione będą wyświetlały się tutaj"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Pliki i foldery które ostatnio modyfikowałeś będą wyświetlały się tutaj"]},{msgid:"Filter file list",msgstr:["Filtruj listę plików"]},{msgid:"Folder name cannot be empty.",msgstr:["Nazwa folderu nie może być pusta"]},{msgid:"Guest identification",msgstr:["Identyfikacja gościa"]},{msgid:"Home",msgstr:["Strona główna"]},{msgid:"Invalid name.",msgstr:["Nieprawidłowa nazwa."]},{msgid:"Modified",msgstr:["Zmodyfikowano"]},{msgid:"Move",msgstr:["Przenieś"]},{msgid:"Move to {target}",msgstr:["Przejdź do {target}"]},{msgid:"Name",msgstr:["Nazwa"]},{msgid:"Names must not be empty.",msgstr:["Nazwy nie mogą być puste."]},{msgid:'Names must not end with "{extension}".',msgstr:['Nazwy nie mogą kończyć się na "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Nazwy nie mogą zaczynać się od kropki."]},{msgid:"New",msgstr:["Nowy"]},{msgid:"New folder",msgstr:["Nowy folder"]},{msgid:"New folder name",msgstr:["Nowa nazwa folderu"]},{msgid:"No files in here",msgstr:["Brak plików"]},{msgid:"No files matching your filter were found.",msgstr:["Nie znaleziono plików spełniających warunki filtru"]},{msgid:"No matching files",msgstr:["Brak pasujących plików"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Wprowadź nazwę zawierającą minimum 2 znaki."]},{msgid:"Recent",msgstr:["Ostatni"]},{msgid:"Select all entries",msgstr:["Wybierz wszystkie wpisy"]},{msgid:"Select entry",msgstr:["Wybierz wpis"]},{msgid:"Select the row for {nodename}",msgstr:["Wybierz wiersz dla {nodename}"]},{msgid:"Size",msgstr:["Rozmiar"]},{msgid:"Submit name",msgstr:["Zatwierdź nazwę"]},{msgid:"Undo",msgstr:["Cofnij"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Wyślij zawartość lub zsynchronizuj ze swoimi urządzeniami!"]},{msgid:"You are currently not identified.",msgstr:["Użytkownik nie został uwierzytelniony."]},{msgid:"You cannot leave the name empty.",msgstr:["Nazwa nie może być pusta."]}]},{language:"pt_BR",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" não é permitido dentro de um nome.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" não é um nome permitido.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" é um nome de pasta inválido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" não é um nome de pasta permitido']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" é um nome reservado e não permitido.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" não é permitido dentro de um nome de pasta.']},{msgid:"All files",msgstr:["Todos os arquivos"]},{msgid:"Cancel",msgstr:["Cancelar"]},{msgid:"Choose",msgstr:["Escolher"]},{msgid:"Choose {file}",msgstr:["Escolher {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Escolher %n arquivo","Escolher %n arquivos","Escolher %n arquivos"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar para {target}"]},{msgid:"Could not create the new folder",msgstr:["Não foi possível criar a nova pasta"]},{msgid:"Could not load files settings",msgstr:["Não foi possível carregar configurações de arquivos"]},{msgid:"Could not load files views",msgstr:["Não foi possível carregar visualições de arquivos"]},{msgid:"Create directory",msgstr:["Criar diretório"]},{msgid:"Current view selector",msgstr:["Seletor de visualização atual"]},{msgid:"Enter your name",msgstr:["Digite seu nome"]},{msgid:"Failed to set nickname.",msgstr:["Falha ao definir apelido."]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Os arquivos e pastas que você marca como favoritos aparecerão aqui."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Arquivos e pastas que você modificou recentemente aparecerão aqui."]},{msgid:"Filter file list",msgstr:["Filtrar lista de arquivos"]},{msgid:"Folder name cannot be empty.",msgstr:["O nome da pasta não pode ser vazio."]},{msgid:"Guest identification",msgstr:["Identificação de convidados"]},{msgid:"Home",msgstr:["Início"]},{msgid:"Invalid name.",msgstr:["Nome inválido."]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover para {target}"]},{msgid:"Name",msgstr:["Nome"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Os nomes podem ter no máximo 64 caracteres."]},{msgid:"Names must not be empty.",msgstr:["Nomes não podem estar vazios."]},{msgid:'Names must not end with "{extension}".',msgstr:['Nomes não podem terminar com "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Nomes não podem começar com um ponto."]},{msgid:"New",msgstr:["Novo"]},{msgid:"New folder",msgstr:["Nova pasta"]},{msgid:"New folder name",msgstr:["Novo nome de pasta"]},{msgid:"No files in here",msgstr:["Nenhum arquivo aqui"]},{msgid:"No files matching your filter were found.",msgstr:["Nenhum arquivo correspondente ao seu filtro foi encontrado."]},{msgid:"No matching files",msgstr:["Nenhum arquivo correspondente"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Digite um nome com pelo menos 2 caracteres."]},{msgid:"Recent",msgstr:["Recente"]},{msgid:"Select all entries",msgstr:["Selecionar todas as entradas"]},{msgid:"Select entry",msgstr:["Selecionar entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Selecionar a linha para {nodename}"]},{msgid:"Size",msgstr:["Tamanho"]},{msgid:"Submit name",msgstr:["Enviar nome"]},{msgid:"Undo",msgstr:["Desfazer"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Faça upload de algum conteúdo ou sincronize com seus dispositivos!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Encontra-se identificado como {nickname}"]},{msgid:"You are currently not identified.",msgstr:["No momento, você não está identificado."]},{msgid:"You cannot leave the name empty.",msgstr:["Você não pode deixar o nome vazio."]}]},{language:"pt_PT",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" não é permitido dentro de um nome.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" não é um nome permitido.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" é um nome de pasta inválido.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" não é um nome de pasta permitido']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" é um nome reservado e não é permitido.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" não é permitido dentro do nome de pasta.']},{msgid:"All files",msgstr:["Todos os ficheiros"]},{msgid:"Cancel",msgstr:["Cancelar"]},{msgid:"Choose",msgstr:["Escolher"]},{msgid:"Choose {file}",msgstr:["Escolher {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Escolha %n ficheiro","Escolha %n ficheiros","Escolha %n ficheiros"]},{msgid:"Copy",msgstr:["Copiar"]},{msgid:"Copy to {target}",msgstr:["Copiar para {target}"]},{msgid:"Could not create the new folder",msgstr:["Não foi possível criar a nova pasta "]},{msgid:"Could not load files settings",msgstr:["Não foi possível carregar as definições dos ficheiros"]},{msgid:"Could not load files views",msgstr:["Não foi possível carregar as visualizações dos ficheiros"]},{msgid:"Create directory",msgstr:["Criar pasta"]},{msgid:"Current view selector",msgstr:["Seletor de visualização atual"]},{msgid:"Enter your name",msgstr:["Introduza o seu nome"]},{msgid:"Failed to set nickname.",msgstr:["Falha ao definir o nome alternativo."]},{msgid:"Favorites",msgstr:["Favoritos"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Os ficheiros e as pastas que marcar como favoritos aparecerão aqui."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Os ficheiros e as pastas que modificou recentemente aparecerão aqui."]},{msgid:"Filter file list",msgstr:["Filtrar lista de ficheiros"]},{msgid:"Folder name cannot be empty.",msgstr:["O nome da pasta não pode estar vazio."]},{msgid:"Guest identification",msgstr:["Identificação de convidado"]},{msgid:"Home",msgstr:["Início"]},{msgid:"Invalid name.",msgstr:["Nome inválido."]},{msgid:"Modified",msgstr:["Modificado"]},{msgid:"Move",msgstr:["Mover"]},{msgid:"Move to {target}",msgstr:["Mover para {target}"]},{msgid:"Name",msgstr:["Nome"]},{msgid:"Names must not be empty.",msgstr:["O nome não pode ficar em branco."]},{msgid:'Names must not end with "{extension}".',msgstr:['Nomes não podem terminar em "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Os nomes não podem começar por um ponto."]},{msgid:"New",msgstr:["Novo"]},{msgid:"New folder",msgstr:["Nova pasta"]},{msgid:"New folder name",msgstr:["Novo nome da pasta"]},{msgid:"No files in here",msgstr:["Sem ficheiros aqui"]},{msgid:"No files matching your filter were found.",msgstr:["Não foi encontrado nenhum ficheiro correspondente ao seu filtro."]},{msgid:"No matching files",msgstr:["Nenhum ficheiro correspondente"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Introduza um nome com, pelo menos, 2 caracteres."]},{msgid:"Recent",msgstr:["Recentes"]},{msgid:"Select all entries",msgstr:["Selecionar todas as entradas"]},{msgid:"Select entry",msgstr:["Selecionar entrada"]},{msgid:"Select the row for {nodename}",msgstr:["Selecione a linha para {nodename}"]},{msgid:"Size",msgstr:["Tamanho"]},{msgid:"Submit name",msgstr:["Submeter nome"]},{msgid:"Undo",msgstr:["Anular"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Envie algum conteúdo ou sincronize com os seus dispositivos!"]},{msgid:"You are currently not identified.",msgstr:["Atualmente, não está identificado."]},{msgid:"You cannot leave the name empty.",msgstr:["Não pode deixar o nome em branco."]}]},{language:"ro",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" este un nume de director invalid.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" nu este un nume de director permis']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" nu este permis în numele unui director.']},{msgid:"All files",msgstr:["Toate fișierele"]},{msgid:"Choose",msgstr:["Alege"]},{msgid:"Choose {file}",msgstr:["Alege {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Alege %n fișier","Alege %n fișiere","Alege %n fișiere"]},{msgid:"Copy",msgstr:["Copiază"]},{msgid:"Copy to {target}",msgstr:["Copiază în {target}"]},{msgid:"Could not create the new folder",msgstr:["Nu s-a putut crea noul director"]},{msgid:"Could not load files settings",msgstr:["Nu s-au putut încărca setările fișierelor"]},{msgid:"Could not load files views",msgstr:["Nu s-au putut încărca vizualizările fișierelor"]},{msgid:"Create directory",msgstr:["Creează director"]},{msgid:"Current view selector",msgstr:["Selectorul curent al vizualizării"]},{msgid:"Favorites",msgstr:["Favorite"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Fișiere și directoare pe care le marcați ca favorite vor apărea aici."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Fișiere și directoare pe care le-ați modificat recent vor apărea aici."]},{msgid:"Filter file list",msgstr:["Filtrează lista de fișiere"]},{msgid:"Folder name cannot be empty.",msgstr:["Numele de director nu poate fi necompletat."]},{msgid:"Home",msgstr:["Acasă"]},{msgid:"Modified",msgstr:["Modificat"]},{msgid:"Move",msgstr:["Mută"]},{msgid:"Move to {target}",msgstr:["Mută către {target}"]},{msgid:"Name",msgstr:["Nume"]},{msgid:"New",msgstr:["Nou"]},{msgid:"New folder",msgstr:["Director nou"]},{msgid:"New folder name",msgstr:["Numele noului director"]},{msgid:"No files in here",msgstr:["Nu există fișiere"]},{msgid:"No files matching your filter were found.",msgstr:["Nu există fișiere potrivite pentru filtrul selectat"]},{msgid:"No matching files",msgstr:["Nu există fișiere potrivite"]},{msgid:"Recent",msgstr:["Recente"]},{msgid:"Select all entries",msgstr:["Selectează toate înregistrările"]},{msgid:"Select entry",msgstr:["Selectează înregistrarea"]},{msgid:"Select the row for {nodename}",msgstr:["Selectează rândul pentru {nodename}"]},{msgid:"Size",msgstr:["Mărime"]},{msgid:"Undo",msgstr:["Anulează"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Încărcați conținut sau sincronizați cu dispozitivele dumneavoastră!"]}]},{language:"ru",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" не допускается внутри имени.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" это не допустимое имя.']},{msgid:'"{name}" is an invalid folder name.',msgstr:["«{name}» — недопустимое имя папки."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["«{name}» не является разрешенным именем папки"]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" это зарезервированное имя и не допустимо.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:["Символ «/» не допускается внутри имени папки."]},{msgid:"All files",msgstr:["Все файлы"]},{msgid:"Cancel",msgstr:["Отмена"]},{msgid:"Choose",msgstr:["Выбрать"]},{msgid:"Choose {file}",msgstr:["Выбрать «{file}»"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Выбрать %n файл","Выбрать %n файла","Выбрать %n файлов","Выбрать %n файлов"]},{msgid:"Copy",msgstr:["Копировать"]},{msgid:"Copy to {target}",msgstr:["Копировать в «{target}»"]},{msgid:"Could not create the new folder",msgstr:["Не удалось создать новую папку"]},{msgid:"Could not load files settings",msgstr:["Не удалось загрузить настройки файлов"]},{msgid:"Could not load files views",msgstr:["Не удалось загрузить конфигурацию просмотра файлов"]},{msgid:"Create directory",msgstr:["Создать папку"]},{msgid:"Current view selector",msgstr:["Переключатель текущего вида"]},{msgid:"Enter your name",msgstr:["Введите ваше имя"]},{msgid:"Failed to set nickname.",msgstr:["Не удалось задать никнейм."]},{msgid:"Favorites",msgstr:["Избранное"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Здесь будут отображаться файлы и папки, которые вы пометили как избранные."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Здесь будут отображаться файлы и папки, которые вы недавно изменили."]},{msgid:"Filter file list",msgstr:["Фильтровать список файлов"]},{msgid:"Folder name cannot be empty.",msgstr:["Имя папки не может быть пустым."]},{msgid:"Guest identification",msgstr:["Гостевая идентификация"]},{msgid:"Home",msgstr:["Домой"]},{msgid:"Invalid name.",msgstr:["Неверное имя."]},{msgid:"Modified",msgstr:["Изменен"]},{msgid:"Move",msgstr:["Переместить"]},{msgid:"Move to {target}",msgstr:["Переместить в «{target}»"]},{msgid:"Name",msgstr:["Имя"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Имена не могут быть длинее 64 символов."]},{msgid:"Names must not be empty.",msgstr:["Имена не могут быть пустыми."]},{msgid:'Names must not end with "{extension}".',msgstr:['Имена не могут оканчиваться на "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Имена должны начинаться с точки."]},{msgid:"New",msgstr:["Новый"]},{msgid:"New folder",msgstr:["Новая папка"]},{msgid:"New folder name",msgstr:["Имя новой папки"]},{msgid:"No files in here",msgstr:["Здесь нет файлов"]},{msgid:"No files matching your filter were found.",msgstr:["Файлы, соответствующие вашему фильтру, не найдены."]},{msgid:"No matching files",msgstr:["Нет подходящих файлов"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Пожалуйста введите имя длиной не менее 2 символов."]},{msgid:"Recent",msgstr:["Недавний"]},{msgid:"Select all entries",msgstr:["Выбрать все записи"]},{msgid:"Select entry",msgstr:["Выбрать запись"]},{msgid:"Select the row for {nodename}",msgstr:["Выбрать строку для «{nodename}»"]},{msgid:"Size",msgstr:["Размер"]},{msgid:"Submit name",msgstr:["Отправить имя"]},{msgid:"Undo",msgstr:["Отменить"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Загрузите контент или синхронизируйте его со своими устройствами!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Вы идентифицированы как {nickname}."]},{msgid:"You are currently not identified.",msgstr:["В данный момент вы не идентифицированы."]},{msgid:"You cannot leave the name empty.",msgstr:["Вы не можете оставить имя пустым."]}]},{language:"sk_SK",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" je neplatný názov pričinka.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" nie je povolený názov priečinka.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" nie je povolené v názve priečinka.']},{msgid:"All files",msgstr:["Všetky súbory"]},{msgid:"Choose",msgstr:["Vybrať"]},{msgid:"Choose {file}",msgstr:["Vybrať {súbor}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Vybraný %n súbor","Vybrané %n súbory","Vybraných %n súborov","Vybraných %n súborov"]},{msgid:"Copy",msgstr:["Kopírovať"]},{msgid:"Copy to {target}",msgstr:["Kopírovať do {umiestnenia}"]},{msgid:"Could not create the new folder",msgstr:["Nepodarilo sa vytvoriť nový priečinok"]},{msgid:"Could not load files settings",msgstr:["Nepodarilo sa načítať nastavenia súborov"]},{msgid:"Could not load files views",msgstr:["Nepodarilo sa načítať pohľady súborov"]},{msgid:"Create directory",msgstr:["Vytvoriť adresár"]},{msgid:"Current view selector",msgstr:["Výber aktuálneho zobrazenia"]},{msgid:"Favorites",msgstr:["Obľúbené"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Tu sa zobrazia súbory a priečinky, ktoré označíte ako obľúbené."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Tu sa zobrazia súbory a priečinky, ktoré ste nedávno upravili."]},{msgid:"Filter file list",msgstr:["Filtrovať zoznam súborov"]},{msgid:"Folder name cannot be empty.",msgstr:["Názov priečinka nemôže byť prázdny."]},{msgid:"Home",msgstr:["Domov"]},{msgid:"Modified",msgstr:["Upravené"]},{msgid:"Move",msgstr:["Prejsť"]},{msgid:"Move to {target}",msgstr:["Prejsť na {umiestnenie}"]},{msgid:"Name",msgstr:["Názov"]},{msgid:"New",msgstr:["Pridať"]},{msgid:"New folder",msgstr:["Pridať priečinok"]},{msgid:"New folder name",msgstr:["Pridať názov priečinka"]},{msgid:"No files in here",msgstr:["Nie sú tu žiadne súbory"]},{msgid:"No files matching your filter were found.",msgstr:["Nenašli sa žiadne súbory zodpovedajúce vášmu filtru."]},{msgid:"No matching files",msgstr:["Žiadne zodpovedajúce súbory"]},{msgid:"Recent",msgstr:["Nedávne"]},{msgid:"Select all entries",msgstr:["Vybrať všetky položky"]},{msgid:"Select entry",msgstr:["Vybrať položku"]},{msgid:"Select the row for {nodename}",msgstr:["Vyberte riadok pre {názov uzla}"]},{msgid:"Size",msgstr:["Veľkosť"]},{msgid:"Undo",msgstr:["Späť"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Nahrajte nejaký obsah alebo synchronizujte so svojimi zariadeniami!"]}]},{language:"sl",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["{name} je neveljavno ime mape."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["{name} ni dovoljeno ime mape"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" ni dovoljen v imenu mape.']},{msgid:"All files",msgstr:["Vse datoteke"]},{msgid:"Choose",msgstr:["Izberi"]},{msgid:"Choose {file}",msgstr:["Izberi {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Izberi %n datoteko","Izberi %n datoteki","Izberi %n datotek","Izberi %n datotek"]},{msgid:"Copy",msgstr:["Kopiraj"]},{msgid:"Copy to {target}",msgstr:["Kopiraj v {target}"]},{msgid:"Could not create the new folder",msgstr:["Nisem mogel ustvariti nove mape"]},{msgid:"Could not load files settings",msgstr:["NIsem mogel naložiti nastavitev datotek"]},{msgid:"Could not load files views",msgstr:["Nisem mogel naložiti pogledov datotek"]},{msgid:"Create directory",msgstr:["Ustvari mapo"]},{msgid:"Current view selector",msgstr:["Izbirnik trenutnega pogleda"]},{msgid:"Favorites",msgstr:["Priljubljene"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Datoteke in mape ki jih označite kot priljubljene se bodo prikazale tukaj."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Daoteke in mape ki ste jih pred kratkim spremenili se bodo prikazale tukaj."]},{msgid:"Filter file list",msgstr:["Filtriraj seznam datotek"]},{msgid:"Folder name cannot be empty.",msgstr:["Ime mape ne more biti prazno"]},{msgid:"Home",msgstr:["Domov"]},{msgid:"Modified",msgstr:["Spremenjeno"]},{msgid:"Move",msgstr:["Premakni"]},{msgid:"Move to {target}",msgstr:["Premakni v {target}"]},{msgid:"Name",msgstr:["Ime"]},{msgid:"New",msgstr:["Nov"]},{msgid:"New folder",msgstr:["Nova mapa"]},{msgid:"New folder name",msgstr:["Novo ime mape"]},{msgid:"No files in here",msgstr:["Tukaj ni datotek"]},{msgid:"No files matching your filter were found.",msgstr:["Ni bilo najdenih ujemajočih datotek glede na vaš filter."]},{msgid:"No matching files",msgstr:["Ni ujemajočih datotek"]},{msgid:"Recent",msgstr:["Nedavne"]},{msgid:"Select all entries",msgstr:["Izberi vse vnose"]},{msgid:"Select entry",msgstr:["Izberi vnos"]},{msgid:"Select the row for {nodename}",msgstr:["Izberi vrstico za {nodename}"]},{msgid:"Size",msgstr:["Velikost"]},{msgid:"Undo",msgstr:["Razveljavi"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Naloži nekaj vsebine ali sinhroniziraj s svojimi napravami!"]}]},{language:"sr",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:["„{char}” није дозвољено унутар имена."]},{msgid:'"{extension}" is not an allowed name.',msgstr:["„{extension}” није дозвољено име."]},{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}” није исправно име фолдера."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}” није дозвољено име за фолдер."]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:["„{segment}” је резервисано име и није дозвољено."]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["„/” није дозвољено унутар имена фолдера."]},{msgid:"All files",msgstr:["Сви фајлови"]},{msgid:"Cancel",msgstr:["Откажи"]},{msgid:"Choose",msgstr:["Изаберите"]},{msgid:"Choose {file}",msgstr:["Изаберите {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Изаберите %n фајл","Изаберите %n фајла","Изаберите %n фајлова"]},{msgid:"Copy",msgstr:["Копирај"]},{msgid:"Copy to {target}",msgstr:["Копирај у {target}"]},{msgid:"Could not create the new folder",msgstr:["Није могао да се креира нови фолдер"]},{msgid:"Could not load files settings",msgstr:["Не могу да се учитају подешавања фајлова"]},{msgid:"Could not load files views",msgstr:["Не могу да се учитају прикази фајлова"]},{msgid:"Create directory",msgstr:["Креирај директоријум"]},{msgid:"Current view selector",msgstr:["Бирач тренутног приказа"]},{msgid:"Enter your name",msgstr:["Унесите своје име"]},{msgid:"Failed to set nickname.",msgstr:["Није успело постављање надимка."]},{msgid:"Favorites",msgstr:["Омиљено"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Овде ће се појавити фајлови и фолдери које сте означили као омиљене."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Овде ће се појавити фајлови и фолдери који се се недавно изменили."]},{msgid:"Filter file list",msgstr:["Фитрирање листе фајлова"]},{msgid:"Folder name cannot be empty.",msgstr:["Име фолдера не може бити празно."]},{msgid:"Guest identification",msgstr:["Идентификација госта"]},{msgid:"Home",msgstr:["Почетак"]},{msgid:"Invalid name.",msgstr:["Неисправно име."]},{msgid:"Modified",msgstr:["Измењено"]},{msgid:"Move",msgstr:["Премести"]},{msgid:"Move to {target}",msgstr:["Премести у {target}"]},{msgid:"Name",msgstr:["Име"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Највећа дужина имена може бити 64 карактера."]},{msgid:"Names must not be empty.",msgstr:["Имена не смеју да буду празна."]},{msgid:'Names must not end with "{extension}".',msgstr:["Имена не смеју да се завршавају на „{extension}”."]},{msgid:"Names must not start with a dot.",msgstr:["Имена не смеју да почињу тачком."]},{msgid:"New",msgstr:["Ново"]},{msgid:"New folder",msgstr:["Нови фолдер"]},{msgid:"New folder name",msgstr:["Име новог фолдера"]},{msgid:"No files in here",msgstr:["Овде нема фајлова"]},{msgid:"No files matching your filter were found.",msgstr:["Није пронађен ниједан фајл који задовољава ваш филтер."]},{msgid:"No matching files",msgstr:["Нема таквих фајлова"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Молимо вас да унесете име од барем два карактера."]},{msgid:"Recent",msgstr:["Скорашње"]},{msgid:"Select all entries",msgstr:["Изаберите све ставке"]},{msgid:"Select entry",msgstr:["Изаберите ставку"]},{msgid:"Select the row for {nodename}",msgstr:["Изаберите ред за {nodename}"]},{msgid:"Size",msgstr:["Величина"]},{msgid:"Submit name",msgstr:["Предај име"]},{msgid:"Undo",msgstr:["Поништи"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Отпремите нешто или синхронизујте са својим уређајима!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Тренутно се идентификујете као {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Тренутно немате идентификацију."]},{msgid:"You cannot leave the name empty.",msgstr:["Име не можете да оставите празно."]}]},{language:"sr@latin",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["„{name}” je neispravan naziv foldera."]},{msgid:'"{name}" is not an allowed folder name',msgstr:["„{name}” je nedozvoljen naziv foldera."]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["„/” se ne može koristiti unutar naziva foldera."]},{msgid:"All files",msgstr:["Svi fajlovi"]},{msgid:"Choose",msgstr:["Izaberite"]},{msgid:"Choose {file}",msgstr:["Izaberite {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Izaberite %n fajl","Izaberite %n fajla","Izaberite %n fajlova"]},{msgid:"Copy",msgstr:["Kopiraj"]},{msgid:"Copy to {target}",msgstr:["Kopiraj u {target}"]},{msgid:"Could not create the new folder",msgstr:["Neuspešno kreiranje novog foldera"]},{msgid:"Could not load files settings",msgstr:["Neuspešno učitavanje podešavanja fajlova"]},{msgid:"Could not load files views",msgstr:["Neuspešno učitavanje prikaza fajlova"]},{msgid:"Create directory",msgstr:["Kreiraj direktorijum"]},{msgid:"Current view selector",msgstr:["Birač trenutnog prikaza"]},{msgid:"Favorites",msgstr:["Omiljeno"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Lista omiljenih fajlova i foldera."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Lista fajlova i foldera sa skorašnjim izmenama."]},{msgid:"Filter file list",msgstr:["Fitriranje liste fajlova"]},{msgid:"Folder name cannot be empty.",msgstr:["Naziv foldera ne može biti prazan."]},{msgid:"Home",msgstr:["Početak"]},{msgid:"Modified",msgstr:["Izmenjeno"]},{msgid:"Move",msgstr:["Premesti"]},{msgid:"Move to {target}",msgstr:["Premesti u {target}"]},{msgid:"Name",msgstr:["Naziv"]},{msgid:"New",msgstr:["Novo"]},{msgid:"New folder",msgstr:["Novi folder"]},{msgid:"New folder name",msgstr:["Naziv novog foldera"]},{msgid:"No files in here",msgstr:["Bez fajlova"]},{msgid:"No files matching your filter were found.",msgstr:["Nema fajlova koji zadovoljavaju uslove filtera."]},{msgid:"No matching files",msgstr:["Nema takvih fajlova"]},{msgid:"Recent",msgstr:["Skorašnje"]},{msgid:"Select all entries",msgstr:["Izaberite sve stavke"]},{msgid:"Select entry",msgstr:["Izaberite stavku"]},{msgid:"Select the row for {nodename}",msgstr:["Izaberite red za {nodename}"]},{msgid:"Size",msgstr:["Veličina"]},{msgid:"Undo",msgstr:["Vrati"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Otpremite sadržaj ili sinhronizujte sa svojim uređajima!"]}]},{language:"sv",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" är inte tillåtet i ett namn.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" är inte ett tillåtet namn.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" är ett ogiltigt mappnamn.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" är inte ett tillåtet mappnamn']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" är ett reserverat namn och inte tillåtet.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" är inte tillåtet i ett mappnamn.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n fil är i konflikt","%n filer är i konflikt"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["%n fil är i konflikt i {dirname}","%n filer är i konflikt i {dirname}"]},{msgid:"All files",msgstr:["Alla filer"]},{msgid:"Cancel",msgstr:["Avbryt"]},{msgid:"Cancel the entire operation",msgstr:["Avbryt hela operationen"]},{msgid:"Choose",msgstr:["Välj"]},{msgid:"Choose {file}",msgstr:["Välj {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Välj %n fil","Välj %n filer"]},{msgid:"Confirm",msgstr:["Bekräfta"]},{msgid:"Continue",msgstr:["Fortsätt"]},{msgid:"Copy",msgstr:["Kopiera"]},{msgid:"Copy to {target}",msgstr:["Kopiera till {target}"]},{msgid:"Could not create the new folder",msgstr:["Kunde inte skapa den nya mappen"]},{msgid:"Could not load files settings",msgstr:["Kunde inte ladda filinställningar"]},{msgid:"Could not load files views",msgstr:["Kunde inte ladda filvyer"]},{msgid:"Create directory",msgstr:["Skapa katalog"]},{msgid:"Current view selector",msgstr:["Aktuell vyväljare"]},{msgid:"Enter your name",msgstr:["Ange ditt namn"]},{msgid:"Existing version",msgstr:["Nuvarande version"]},{msgid:"Failed to set nickname.",msgstr:["Kunde inte ställa in smeknamn."]},{msgid:"Favorites",msgstr:["Favoriter"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Filer och mappar som du markerar som favorit kommer att visas här."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Filer och mappar som du nyligen ändrat kommer att visas här."]},{msgid:"Filter file list",msgstr:["Filtrera fillistan"]},{msgid:"Folder name cannot be empty.",msgstr:["Mappnamnet får inte vara tomt."]},{msgid:"Guest identification",msgstr:["Gästidentifiering"]},{msgid:"Home",msgstr:["Hem"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Om du väljer båda versionerna kommer den inkommande filen att få ett nummer tillagt i sitt namn."]},{msgid:"Invalid name.",msgstr:["Ogiltigt namn."]},{msgid:"Last modified date unknown",msgstr:["Senaste ändringsdatum okänt"]},{msgid:"Modified",msgstr:["Ändrad"]},{msgid:"Move",msgstr:["Flytta"]},{msgid:"Move to {target}",msgstr:["Flytta till {target}"]},{msgid:"Name",msgstr:["Namn"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Namnen kan vara högst 64 tecken långa."]},{msgid:"Names must not be empty.",msgstr:["Namn får inte vara tomt."]},{msgid:'Names must not end with "{extension}".',msgstr:['Namn får inte sluta med "{extension}".']},{msgid:"Names must not start with a dot.",msgstr:["Namn får inte börja med en punkt."]},{msgid:"New",msgstr:["Ny"]},{msgid:"New folder",msgstr:["Ny mapp"]},{msgid:"New folder name",msgstr:["Nytt mappnamn"]},{msgid:"New version",msgstr:["Ny version"]},{msgid:"No files in here",msgstr:["Inga filer här"]},{msgid:"No files matching your filter were found.",msgstr:["Inga filer som matchar ditt filter hittades."]},{msgid:"No matching files",msgstr:["Inga matchande filer"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Ange ett namn med minst 2 tecken."]},{msgid:"Recent",msgstr:["Nyligen"]},{msgid:"Select all checkboxes",msgstr:["Markera alla kryssrutor"]},{msgid:"Select all entries",msgstr:["Välj alla poster"]},{msgid:"Select all existing files",msgstr:["Välj alla befintliga filer"]},{msgid:"Select all new files",msgstr:["Välj alla nya filer"]},{msgid:"Select entry",msgstr:["Välj post"]},{msgid:"Select the row for {nodename}",msgstr:["Välj raden för {nodename}"]},{msgid:"Size",msgstr:["Storlek"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["Hoppa över %n fil","Hoppa över %n filer"]},{msgid:"Skip this file",msgstr:["Hoppa över den här filen"]},{msgid:"Submit name",msgstr:["Skicka namn"]},{msgid:"Undo",msgstr:["Ångra"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Ladda upp lite innehåll eller synkronisera med dina enheter!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["När en inkommande mapp väljs kommer eventuella konflikterande filer i den också att skrivas över."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["När en inkommande mapp väljs skrivs innehållet in i den befintliga mappen och en rekursiv konfliktlösning utförs."]},{msgid:"Which files do you want to keep?",msgstr:["Vilka filer vill du behålla?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Du är för närvarande identifierad som {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Du är för närvarande inte identifierad."]},{msgid:"You cannot leave the name empty.",msgstr:["Du kan inte lämna namnet tomt."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Du måste välja minst en konfliktlösning"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Du måste välja minst en version av varje fil för att fortsätta."]}]},{language:"tr",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['Bir ad içinde "{char}" karakteri kullanılamaz.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" adına izin verilmiyor.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" geçersiz bir klasör adı.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" izin verilen bir klasör adı değil']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" adı sistem için ayrılmış olduğundan kullanılamaz.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" karakteri klasör adında kullanılamaz.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n dosya çakışıyor","%n dosya çakışıyor"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["{dirname} içindeki %n dosya çakışıyor","{dirname} içindeki %n dosya çakışıyor"]},{msgid:"All files",msgstr:["Tüm dosyalar"]},{msgid:"Cancel",msgstr:["İptal"]},{msgid:"Cancel the entire operation",msgstr:["Tüm işlemi iptal et"]},{msgid:"Choose",msgstr:["Seçin"]},{msgid:"Choose {file}",msgstr:["{file} seçin"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["%n dosya seçin","%n dosya seçin"]},{msgid:"Confirm",msgstr:["Onayla"]},{msgid:"Continue",msgstr:["İlerle"]},{msgid:"Copy",msgstr:["Kopyala"]},{msgid:"Copy to {target}",msgstr:["{target} üzerine kopyala"]},{msgid:"Could not create the new folder",msgstr:["Yeni klasör oluşturulamadı"]},{msgid:"Could not load files settings",msgstr:["Dosyalar uygulamasının ayarları yüklenemedi"]},{msgid:"Could not load files views",msgstr:["Dosyalar uygulamasının görünümleri yüklenemedi"]},{msgid:"Create directory",msgstr:["Klasör oluştur"]},{msgid:"Current view selector",msgstr:["Geçerli görünüm seçici"]},{msgid:"Enter your name",msgstr:["Adınızı yazın"]},{msgid:"Existing version",msgstr:["Var olan sürüm"]},{msgid:"Failed to set nickname.",msgstr:["Takma ad ayarlanamadı."]},{msgid:"Favorites",msgstr:["Sık kullanılanlar"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Sık kullanılan olarak seçtiğiniz dosyalar burada görüntülenir."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Son zamanlarda değiştirdiğiniz dosya ve klasörler burada görüntülenir."]},{msgid:"Filter file list",msgstr:["Dosya listesini süz"]},{msgid:"Folder name cannot be empty.",msgstr:["Klasör adı boş olamaz."]},{msgid:"Guest identification",msgstr:["Konuk kimliği"]},{msgid:"Home",msgstr:["Giriş"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["İki sürümü de seçerseniz, gelen dosyanın adına bir sayı eklenir."]},{msgid:"Invalid name.",msgstr:["Ad geçersiz."]},{msgid:"Last modified date unknown",msgstr:["Son değiştirilme tarihi bilinmiyor."]},{msgid:"Modified",msgstr:["Değiştirilme"]},{msgid:"Move",msgstr:["Taşı"]},{msgid:"Move to {target}",msgstr:["{target} üzerine taşı"]},{msgid:"Name",msgstr:["Ad"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Adlar en fazla 64 karakter uzunluğunda olabilir."]},{msgid:"Names must not be empty.",msgstr:["Ad boş olamaz."]},{msgid:'Names must not end with "{extension}".',msgstr:['Ad "{extension}" ile bitemez.']},{msgid:"Names must not start with a dot.",msgstr:["Ad nokta karakteri ile başlayamaz."]},{msgid:"New",msgstr:["Yeni"]},{msgid:"New folder",msgstr:["Yeni klasör"]},{msgid:"New folder name",msgstr:["Yeni klasör adı"]},{msgid:"New version",msgstr:["Yeni sürüm"]},{msgid:"No files in here",msgstr:["Burada herhangi bir dosya yok"]},{msgid:"No files matching your filter were found.",msgstr:["Süzgece uyan bir dosya bulunamadı."]},{msgid:"No matching files",msgstr:["Eşleşen bir dosya yok"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Ad en az 2 karakter uzunluğunda olmalıdır."]},{msgid:"Recent",msgstr:["Son kullanılanlar"]},{msgid:"Select all checkboxes",msgstr:["Tüm kutuları işaretle"]},{msgid:"Select all entries",msgstr:["Tüm kayıtları seç"]},{msgid:"Select all existing files",msgstr:["Tüm var olan dosyaları seç"]},{msgid:"Select all new files",msgstr:["Tüm yeni dosyaları seç"]},{msgid:"Select entry",msgstr:["Kaydı seç"]},{msgid:"Select the row for {nodename}",msgstr:["{nodename} satırını seçin"]},{msgid:"Size",msgstr:["Boyut"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["%n dosyayı atla","%n dosyayı atla"]},{msgid:"Skip this file",msgstr:["Bu dosyayı atla"]},{msgid:"Submit name",msgstr:["Adı gönder"]},{msgid:"Undo",msgstr:["Geri al"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Bazı içerikler yükleyin ya da aygıtlarınızla eşitleyin!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Bir gelen klasör seçildiğinde, içindeki çakışan dosyaların da üzerine yazılır."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Bir gelen klasör seçildiğinde, içerik var olan klasöre yazılır ve alt klasörlerle bir çakışma çözümü uygulanır."]},{msgid:"Which files do you want to keep?",msgstr:["Hangi dosyaları tutmak istiyorsunuz?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["{nickname} olarak tanınıyorsunuz."]},{msgid:"You are currently not identified.",msgstr:["Henüz kendinizi tanıtmadınız."]},{msgid:"You cannot leave the name empty.",msgstr:["Ad boş bırakılamaz."]},{msgid:"You need to choose at least one conflict solution",msgstr:["En az bir çakışma çözümü seçmelisiniz"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["İlerlemek için her dosaynın en az bir sürümünü seçmelisiniz."]}]},{language:"uk",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['"{char}" не дозволено всередині імени.']},{msgid:'"{extension}" is not an allowed name.',msgstr:[`"{extension}" недозволене ім'я.`]},{msgid:'"{name}" is an invalid folder name.',msgstr:[`"{name}" недійсне ім'я каталогу.`]},{msgid:'"{name}" is not an allowed folder name',msgstr:[`"{name}" недозволене ім'я каталогу.`]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:[`"{segment}" зарезервоване ім'я і не дозволено для використання.`]},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" не дозволено у імені каталогу.']},{msgid:"All files",msgstr:["Всі файли"]},{msgid:"Cancel",msgstr:["Скасувати"]},{msgid:"Choose",msgstr:["Вибрати"]},{msgid:"Choose {file}",msgstr:["Вибрати {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Вибрати %n файл","Вибрати %n файли","Вибрати %n файлів","Вибрати %n файлів"]},{msgid:"Copy",msgstr:["Копіювати"]},{msgid:"Copy to {target}",msgstr:["Копіювати до {target}"]},{msgid:"Could not create the new folder",msgstr:["Не вдалося створити новий каталог"]},{msgid:"Could not load files settings",msgstr:["Не вдалося завантажити налаштування файлів"]},{msgid:"Could not load files views",msgstr:["Не вдалося завантажити подання файлів"]},{msgid:"Create directory",msgstr:["Створити каталог"]},{msgid:"Current view selector",msgstr:["Вибір подання"]},{msgid:"Enter your name",msgstr:["Зазначте ваше ім'я"]},{msgid:"Failed to set nickname.",msgstr:["Не вдалося встановити псевдо."]},{msgid:"Favorites",msgstr:["Із зірочкою"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Тут показуватимуться файли та каталоги, які ви позначите зірочкою."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Тут показуватимуться файли та каталоги, які було нещодавно змінено."]},{msgid:"Filter file list",msgstr:["Фільтрувати список файлів"]},{msgid:"Folder name cannot be empty.",msgstr:["Ім'я каталогу не може бути порожнє."]},{msgid:"Guest identification",msgstr:["Ім'я для гостя"]},{msgid:"Home",msgstr:["Домівка"]},{msgid:"Invalid name.",msgstr:["Недійсне ім'я."]},{msgid:"Modified",msgstr:["Змінено"]},{msgid:"Move",msgstr:["Перемістити"]},{msgid:"Move to {target}",msgstr:["Перемістити до {target}"]},{msgid:"Name",msgstr:["Ім'я"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Імена мають мати довжину не більше 64 символів."]},{msgid:"Names must not be empty.",msgstr:["Ім'я не може бути порожнє."]},{msgid:'Names must not end with "{extension}".',msgstr:[`Ім'я не може закінчуватися на "{extension}".`]},{msgid:"Names must not start with a dot.",msgstr:["Ім'я не може починатися з крапки."]},{msgid:"New",msgstr:["Новий"]},{msgid:"New folder",msgstr:["Новий каталог"]},{msgid:"New folder name",msgstr:["Ім'я нового каталогу"]},{msgid:"No files in here",msgstr:["Тут відсутні файли"]},{msgid:"No files matching your filter were found.",msgstr:["Відсутні збіги за фільтром."]},{msgid:"No matching files",msgstr:["Відсутні збіги файлів."]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Зазначте ім'я довжиною не менше 2 символів"]},{msgid:"Recent",msgstr:["Останні"]},{msgid:"Select all entries",msgstr:["Вибрати всі записи"]},{msgid:"Select entry",msgstr:["Вибрати запис"]},{msgid:"Select the row for {nodename}",msgstr:["Вибрати рядок для {nodename}"]},{msgid:"Size",msgstr:["Розмір"]},{msgid:"Submit name",msgstr:["Встановити ім'я"]},{msgid:"Undo",msgstr:["Повернути"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Завантажте вміст або синхронізуйте з вашим пристроєм!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Вас визначено як {nickname}."]},{msgid:"You are currently not identified.",msgstr:["Вас не ідентифіковано."]},{msgid:"You cannot leave the name empty.",msgstr:["Потрібно зазначити ім'я."]}]},{language:"uz",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['Nom ichida "{char}" ga ruxsat berilmagan.']},{msgid:'"{extension}" is not an allowed name.',msgstr:['"{extension}" ruxsat etilgan nom emas.']},{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" jild nomi yaroqsiz.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"{name}" ruxsat etilgan jild nomi emas']},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:['"{segment}" - zaxiralangan nom va ruxsat berilmaydi.']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/" papka nomi ichida ruxsat berilmaydi.']},{msgid:"%n file conflict",msgid_plural:"%n files conflict",msgstr:["%n fayl ziddiyatli"]},{msgid:"%n file conflict in {dirname}",msgid_plural:"%n file conflicts in {dirname}",msgstr:["{dirname} da %n fayl ziddiyati"]},{msgid:"All files",msgstr:["Barcha fayllar"]},{msgid:"Cancel",msgstr:["Bekor qilish"]},{msgid:"Cancel the entire operation",msgstr:["Butun operatsiyani bekor qiling"]},{msgid:"Choose",msgstr:["Tanlang"]},{msgid:"Choose {file}",msgstr:["Tanlang {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Tanlang %n faylni"]},{msgid:"Confirm",msgstr:["Tasdiqlang"]},{msgid:"Continue",msgstr:["Davom eting"]},{msgid:"Copy",msgstr:["Nusxa"]},{msgid:"Copy to {target}",msgstr:[" {target} ga nusxa"]},{msgid:"Could not create the new folder",msgstr:["Yangi jild yaratib bo‘lmadi"]},{msgid:"Could not load files settings",msgstr:["Fayl sozlamalari yuklanmadi"]},{msgid:"Could not load files views",msgstr:["Fayllarni koʻrishni yuklab boʻlmadi"]},{msgid:"Create directory",msgstr:["Katalog yaratish"]},{msgid:"Current view selector",msgstr:["Joriy ko'rinish selektori"]},{msgid:"Enter your name",msgstr:["Ismingizni kiriting"]},{msgid:"Existing version",msgstr:["Mavjud versiya"]},{msgid:"Failed to set nickname.",msgstr:["Taxallusni o‘rnatib bo‘lmadi."]},{msgid:"Favorites",msgstr:["Tanlanganlar"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Tanlangan deb belgilagan fayl va papkalar shu yerda koʻrinadi."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Siz yaqinda oʻzgartirgan fayl va papkalar shu yerda koʻrinadi."]},{msgid:"Filter file list",msgstr:["Fayl ro'yxatini filtrlash"]},{msgid:"Folder name cannot be empty.",msgstr:["Jild nomi boʻsh boʻlishi mumkin emas."]},{msgid:"Guest identification",msgstr:["Foydalanuvchini identifikatsiyalash"]},{msgid:"Home",msgstr:["Uy"]},{msgid:"If you select both versions, the incoming file will have a number added to its name.",msgstr:["Agar siz ikkala versiyani tanlasangiz, kiruvchi fayl nomiga qo'shilgan raqamga ega bo'ladi."]},{msgid:"Invalid name.",msgstr:["Nomi noto‘g‘ri."]},{msgid:"Last modified date unknown",msgstr:["Oxirgi tahrirlangan sana noma'lum"]},{msgid:"Modified",msgstr:["Modifikatsiyalangan"]},{msgid:"Move",msgstr:["Ko'chirish"]},{msgid:"Move to {target}",msgstr:[" {target} ga ko'chirish"]},{msgid:"Name",msgstr:["Nomi"]},{msgid:"Names may be at most 64 characters long.",msgstr:["Ismlar ko'pi bilan 64 ta belgidan iborat bo'lishi mumkin."]},{msgid:"Names must not be empty.",msgstr:["Ismlar bo'sh bo'lmasligi kerak."]},{msgid:'Names must not end with "{extension}".',msgstr:['Ismlar "{extension}" bilan tugamasligi kerak.']},{msgid:"Names must not start with a dot.",msgstr:["Ismlar nuqta bilan boshlanmasligi kerak."]},{msgid:"New",msgstr:["Yangi"]},{msgid:"New folder",msgstr:["Yangi jild"]},{msgid:"New folder name",msgstr:["Yangi jild nomi"]},{msgid:"New version",msgstr:["Yangi versiya"]},{msgid:"No files in here",msgstr:["Fayl mavjud emas"]},{msgid:"No files matching your filter were found.",msgstr:["Filtringizga mos keladigan fayl topilmadi."]},{msgid:"No matching files",msgstr:["Mos fayllar yo'q"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["Kamida 2 ta belgidan iborat nom kiriting."]},{msgid:"Recent",msgstr:["Yaqinda"]},{msgid:"Select all checkboxes",msgstr:["Barcha katakchalarni belgilang"]},{msgid:"Select all entries",msgstr:["Barcha yozuvlarni tanlang"]},{msgid:"Select all existing files",msgstr:["Barcha mavjud fayllarni tanlang"]},{msgid:"Select all new files",msgstr:["Barcha yangi fayllarni tanlang"]},{msgid:"Select entry",msgstr:["Yozuvni tanlang"]},{msgid:"Select the row for {nodename}",msgstr:["{nodename} uchun qatorni tanlang"]},{msgid:"Size",msgstr:["O`lcham"]},{msgid:"Skip %n file",msgid_plural:"Skip %n files",msgstr:["%n faylni oʻtkazib yuborish"]},{msgid:"Skip this file",msgstr:["Ushbu faylni o'tkazib yuboring"]},{msgid:"Submit name",msgstr:["Ismni tasdiqlang"]},{msgid:"Undo",msgstr:["Bekor qilish"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Qurilmangizga ba'zi kontentni yuklang yoki sinxronlang!"]},{msgid:"When an incoming folder is selected, any conflicting files within it will also be overwritten.",msgstr:["Kiruvchi papka tanlanganda, undagi har qanday ziddiyatli fayllar ham ustiga yoziladi."]},{msgid:"When an incoming folder is selected, the content is written into the existing folder and a recursive conflict resolution is performed.",msgstr:["Kiruvchi papka tanlanganda, kontent mavjud jildga yoziladi va nizolarni rekursiv hal qilish amalga oshiriladi."]},{msgid:"Which files do you want to keep?",msgstr:["Qaysi fayllarni saqlamoqchisiz?"]},{msgid:"You are currently identified as {nickname}.",msgstr:["Siz hozirda {nickname} sifatida aniqlangansiz."]},{msgid:"You are currently not identified.",msgstr:["Siz hozirda identifikatsiyadan o'tmagansiz"]},{msgid:"You cannot leave the name empty.",msgstr:["Ism katagini bo'sh qoldirib bo'lmaydi."]},{msgid:"You need to choose at least one conflict solution",msgstr:["Siz kamida bitta mojaro yechimini tanlashingiz kerak"]},{msgid:"You need to select at least one version of each file to continue.",msgstr:["Davom etish uchun har bir faylning kamida bitta versiyasini tanlashingiz kerak."]}]},{language:"vi",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:['"{name}" là tên thư mục không hợp lệ.']},{msgid:'"{name}" is not an allowed folder name',msgstr:['"1{name}"không phải là tên thư mục được cho phép']},{msgid:'"/" is not allowed inside a folder name.',msgstr:['"/"không được phép đặt trong tên thư mục.']},{msgid:"All files",msgstr:["Tất cả tệp"]},{msgid:"Choose",msgstr:["Chọn"]},{msgid:"Choose {file}",msgstr:["Chọn {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["Chọn %n tệp"]},{msgid:"Copy",msgstr:["Sao chép"]},{msgid:"Copy to {target}",msgstr:["Sao chép đến {target}"]},{msgid:"Could not create the new folder",msgstr:["Không thể tạo thư mục mới"]},{msgid:"Could not load files settings",msgstr:["Không thể tải tập tin cài đặt"]},{msgid:"Could not load files views",msgstr:["Không thể tải xuống tệp xem"]},{msgid:"Create directory",msgstr:["Tạo thư mục"]},{msgid:"Current view selector",msgstr:["Hiện tại chế độ xem của bộ chọn"]},{msgid:"Favorites",msgstr:["Yêu cầu thích"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["Các tập tin và thư mục bạn đánh dấu yêu thích sẽ hiển thị ở đây."]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["Các tập tin và thư mục bạn sửa đổi gần đây sẽ hiển thị ở đây."]},{msgid:"Filter file list",msgstr:["Filter list file"]},{msgid:"Folder name cannot be empty.",msgstr:["Thư mục tên không được để trống."]},{msgid:"Home",msgstr:["Trang chủ"]},{msgid:"Modified",msgstr:["Đã sửa đổi"]},{msgid:"Move",msgstr:["Di chuyển"]},{msgid:"Move to {target}",msgstr:["Di chuyển đến{target}"]},{msgid:"Name",msgstr:["Tên"]},{msgid:"New",msgstr:["Mới"]},{msgid:"New folder",msgstr:["New thư mục"]},{msgid:"New folder name",msgstr:["New thư mục tên"]},{msgid:"No files in here",msgstr:["No file at here"]},{msgid:"No files matching your filter were found.",msgstr:["Không tìm thấy tệp nào phù hợp với bộ lọc của bạn."]},{msgid:"No matching files",msgstr:["No file phù hợp"]},{msgid:"Recent",msgstr:["Gần đây"]},{msgid:"Select all entries",msgstr:["Choose all items"]},{msgid:"Select entry",msgstr:["Chọn mục nhập"]},{msgid:"Select the row for {nodename}",msgstr:["Choose hang cho{nodename}"]},{msgid:"Size",msgstr:["Kích cỡ"]},{msgid:"Undo",msgstr:["Hoàn tác"]},{msgid:"Upload some content or sync with your devices!",msgstr:["Tải lên một số nội dung hoặc đồng bộ hóa với thiết bị của bạn!"]}]},{language:"zh_CN",translations:[{msgid:'"{name}" is an invalid folder name.',msgstr:["“{name}” 是无效的文件夹名称。"]},{msgid:'"{name}" is not an allowed folder name',msgstr:["“{name}” 不是允许的文件夹名称"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:["文件夹名称中不允许包含 “/”。"]},{msgid:"All files",msgstr:["所有文件"]},{msgid:"Choose",msgstr:["选择"]},{msgid:"Choose {file}",msgstr:["选择 {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["选择 %n 个文件"]},{msgid:"Copy",msgstr:["复制"]},{msgid:"Copy to {target}",msgstr:["复制到 {target}"]},{msgid:"Could not create the new folder",msgstr:["无法创建新文件夹"]},{msgid:"Could not load files settings",msgstr:["无法加载文件设置"]},{msgid:"Could not load files views",msgstr:["无法加载文件视图"]},{msgid:"Create directory",msgstr:["创建目录"]},{msgid:"Current view selector",msgstr:["当前视图选择器"]},{msgid:"Favorites",msgstr:["最爱"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["您标记为最爱的文件与文件夹会显示在这里"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["您最近修改的文件与文件夹会显示在这里"]},{msgid:"Filter file list",msgstr:["过滤文件列表"]},{msgid:"Folder name cannot be empty.",msgstr:["文件夹名称不能为空。"]},{msgid:"Home",msgstr:["主目录"]},{msgid:"Modified",msgstr:["已修改"]},{msgid:"Move",msgstr:["移动"]},{msgid:"Move to {target}",msgstr:["移动至 {target}"]},{msgid:"Name",msgstr:["名称"]},{msgid:"New",msgstr:["新建"]},{msgid:"New folder",msgstr:["新文件夹"]},{msgid:"New folder name",msgstr:["新文件夹名称"]},{msgid:"No files in here",msgstr:["此处无文件"]},{msgid:"No files matching your filter were found.",msgstr:["找不到符合您过滤条件的文件"]},{msgid:"No matching files",msgstr:["无符合的文件"]},{msgid:"Recent",msgstr:["最近"]},{msgid:"Select all entries",msgstr:["选择所有条目"]},{msgid:"Select entry",msgstr:["选择条目"]},{msgid:"Select the row for {nodename}",msgstr:["选择 {nodename} 的列"]},{msgid:"Size",msgstr:["大小"]},{msgid:"Undo",msgstr:[" 撤消"]},{msgid:"Upload some content or sync with your devices!",msgstr:["上传一些项目或与您的设备同步!"]}]},{language:"zh_HK",translations:[{msgid:'"{char}" is not allowed inside a name.',msgstr:['名稱中不能使用 "{char}"。']},{msgid:'"{extension}" is not an allowed name.',msgstr:["「{extension}」並非允許的名稱。"]},{msgid:'"{name}" is an invalid folder name.',msgstr:["「{name}」是無效的資料夾名稱。"]},{msgid:'"{name}" is not an allowed folder name',msgstr:["資料夾名稱「{name}」不符合允許的規範。"]},{msgid:'"{segment}" is a reserved name and not allowed.',msgstr:["「{segment}」是一個保留名稱,不能使用。"]},{msgid:'"/" is not allowed inside a folder name.',msgstr:['資料夾名稱中不允許使用 "/"。']},{msgid:"All files",msgstr:["所有檔案"]},{msgid:"Cancel",msgstr:["取消"]},{msgid:"Choose",msgstr:["選擇"]},{msgid:"Choose {file}",msgstr:["選擇 {file}"]},{msgid:"Choose %n file",msgid_plural:"Choose %n files",msgstr:["選擇 %n 個檔案"]},{msgid:"Copy",msgstr:["複製"]},{msgid:"Copy to {target}",msgstr:["複製到 {target}"]},{msgid:"Could not create the new folder",msgstr:["無法建立新資料夾"]},{msgid:"Could not load files settings",msgstr:["無法載入檔案設定"]},{msgid:"Could not load files views",msgstr:["無法載入檔案視圖"]},{msgid:"Create directory",msgstr:["建立目錄"]},{msgid:"Current view selector",msgstr:["目前視圖選擇器"]},{msgid:"Enter your name",msgstr:["輸入您的名字"]},{msgid:"Failed to set nickname.",msgstr:["無法設置暱稱。"]},{msgid:"Favorites",msgstr:["最愛"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["您標記為最愛的檔案與資料夾將會顯示在此處。"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["您最近修改的檔案與資料夾將會顯示在此處。"]},{msgid:"Filter file list",msgstr:["過濾檔案清單"]},{msgid:"Folder name cannot be empty.",msgstr:["資料夾名稱不能為空。"]},{msgid:"Guest identification",msgstr:["訪客身份識別"]},{msgid:"Home",msgstr:["首頁"]},{msgid:"Invalid name.",msgstr:["無效的名字。"]},{msgid:"Modified",msgstr:["已修改"]},{msgid:"Move",msgstr:["移動"]},{msgid:"Move to {target}",msgstr:["移動至 {target}"]},{msgid:"Name",msgstr:["名稱"]},{msgid:"Names must not be empty.",msgstr:["名稱不能為空。"]},{msgid:'Names must not end with "{extension}".',msgstr:["名稱不得以「{extension}」結尾。"]},{msgid:"Names must not start with a dot.",msgstr:["名稱不得以點開頭。"]},{msgid:"New",msgstr:["新"]},{msgid:"New folder",msgstr:["新資料夾"]},{msgid:"New folder name",msgstr:["新資料夾名稱"]},{msgid:"No files in here",msgstr:["此處無檔案"]},{msgid:"No files matching your filter were found.",msgstr:["找不到符合您過濾條件的檔案。"]},{msgid:"No matching files",msgstr:["沒有匹配的檔案"]},{msgid:"Please enter a name with at least 2 characters.",msgstr:["請輸入至少 2 個字符的名稱。"]},{msgid:"Recent",msgstr:["最近"]},{msgid:"Select all entries",msgstr:["選擇所有項目"]},{msgid:"Select entry",msgstr:["選擇項目"]},{msgid:"Select the row for {nodename}",msgstr:["選擇 {nodename} 的列"]},{msgid:"Size",msgstr:["大小"]},{msgid:"Submit name",msgstr:["遞交名字"]},{msgid:"Undo",msgstr:["還原"]},{msgid:"Upload some content or sync with your devices!",msgstr:["上傳一些內容或與您的裝置同步!"]},{msgid:"You are currently identified as {nickname}.",msgstr:["您目前被識別為 {nickname}。"]},{msgid:"You are currently not identified.",msgstr:["您目前尚未被識別。"]},{msgid:"You cannot leave the name empty.",msgstr:["名稱不能留空。"]}]},{language:"zh_TW",translations:[{msgid:'"{name}" is an invalid file name.',msgstr:["「{name}」是無效的檔案名稱。"]},{msgid:'"{name}" is not an allowed filetype',msgstr:["「{name}」並非允許的檔案類型"]},{msgid:'"/" is not allowed inside a file name.',msgstr:["檔案名稱中不允許使用「/」。"]},{msgid:"All files",msgstr:["所有檔案"]},{msgid:"Choose",msgstr:["選擇"]},{msgid:"Choose {file}",msgstr:["選擇 {file}"]},{msgid:"Copy",msgstr:["複製"]},{msgid:"Copy to {target}",msgstr:["複製到 {target}"]},{msgid:"Could not create the new folder",msgstr:["無法建立新資料夾"]},{msgid:"Create directory",msgstr:["建立目錄"]},{msgid:"Current view selector",msgstr:["目前檢視選取器"]},{msgid:"Favorites",msgstr:["最愛"]},{msgid:"File name cannot be empty.",msgstr:["檔案名稱不能為空。"]},{msgid:"Filepicker sections",msgstr:["檔案挑選器選取"]},{msgid:"Files and folders you mark as favorite will show up here.",msgstr:["您標記為最愛的檔案與資料夾將會顯示在此處。"]},{msgid:"Files and folders you recently modified will show up here.",msgstr:["您最近修改的檔案與資料夾將會顯示在此處。"]},{msgid:"Filter file list",msgstr:["過濾檔案清單"]},{msgid:"Home",msgstr:["家"]},{msgid:"Mime type {mime}",msgstr:["Mime type {mime}"]},{msgid:"Modified",msgstr:["已修改"]},{msgid:"Move",msgstr:["移動"]},{msgid:"Move to {target}",msgstr:["移動至 {target}"]},{msgid:"Name",msgstr:["名稱"]},{msgid:"New",msgstr:["新"]},{msgid:"New folder",msgstr:["新資料夾"]},{msgid:"New folder name",msgstr:["新資料夾名稱"]},{msgid:"No files in here",msgstr:["此處無檔案"]},{msgid:"No files matching your filter were found.",msgstr:["找不到符合您過濾條件的檔案。"]},{msgid:"No matching files",msgstr:["無符合的檔案"]},{msgid:"Recent",msgstr:["最近"]},{msgid:"Select all entries",msgstr:["選取所有條目"]},{msgid:"Select entry",msgstr:["選取條目"]},{msgid:"Select the row for {nodename}",msgstr:["選取 {nodename} 的列"]},{msgid:"Size",msgstr:["大小"]},{msgid:"Undo",msgstr:["復原"]},{msgid:"unknown",msgstr:["未知"]},{msgid:"Upload some content or sync with your devices!",msgstr:["上傳一些內容或與您的裝置同步"]}]}]){const{language:xe,translations:Ke}=Me,ze={headers:{},translations:{"":Object.fromEntries(Ke.map(We=>[We.msgid,We]))}};gtBuilder.addTranslation(xe,ze)}const gt=gtBuilder.build();gt.ngettext.bind(gt),gt.gettext.bind(gt);getLoggerBuilder().setApp("@nextcloud/dialogs").detectLogLevel().build();const TOAST_ARIA_LIVE_OFF="off",TOAST_ARIA_LIVE_POLITE="polite",TOAST_ARIA_LIVE_ASSERTIVE="assertive";var ToastAriaLive=(Me=>(Me[Me.OFF=TOAST_ARIA_LIVE_OFF]="OFF",Me[Me.POLITE=TOAST_ARIA_LIVE_POLITE]="POLITE",Me[Me.ASSERTIVE=TOAST_ARIA_LIVE_ASSERTIVE]="ASSERTIVE",Me))(ToastAriaLive||{});const TOAST_DEFAULT_TIMEOUT=7e3;function showMessage(Me,xe){if(xe={timeout:TOAST_DEFAULT_TIMEOUT,isHTML:!1,type:void 0,selector:void 0,onRemove:()=>{},onClick:void 0,close:!0,...xe},typeof Me=="string"&&!xe.isHTML){const vt=document.createElement("div");vt.innerHTML=Me,Me=vt.innerText}let Ke=xe.type??"";typeof xe.onClick=="function"&&(Ke+=" toast-with-click ");const ze=Me instanceof Node;let We=ToastAriaLive.POLITE;xe.ariaLive?We=xe.ariaLive:(xe.type==="toast-error"||xe.type==="toast-undo")&&(We=ToastAriaLive.ASSERTIVE);const De=Toastify({[ze?"node":"text"]:Me,duration:xe.timeout,callback:xe.onRemove,onClick:xe.onClick,close:xe.close,gravity:"top",selector:xe.selector,position:"right",backgroundColor:"",className:"dialogs "+Ke,escapeMarkup:!xe.isHTML,ariaLive:We});return De.showToast(),De}function showError(Me,xe){return showMessage(Me,{...xe,type:"toast-error"})}function showSuccess(Me,xe){return showMessage(Me,{...xe,type:"toast-success"})}const _sfc_main={name:"TrayArrowDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_hoisted_1=["aria-hidden","aria-label"],_hoisted_2=["fill","width","height"],_hoisted_3={d:"M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z"},_hoisted_4={key:0};function _sfc_render(Me,xe,Ke,ze,We,De){return openBlock(),createElementBlock("span",mergeProps(Me.$attrs,{"aria-hidden":Ke.title?null:"true","aria-label":Ke.title,class:"material-design-icon tray-arrow-down-icon",role:"img",onClick:xe[0]||(xe[0]=vt=>Me.$emit("click",vt))}),[(openBlock(),createElementBlock("svg",{fill:Ke.fillColor,class:"material-design-icon__svg",width:Ke.size,height:Ke.size,viewBox:"0 0 24 24"},[createBaseVNode("path",_hoisted_3,[Ke.title?(openBlock(),createElementBlock("title",_hoisted_4,toDisplayString(Ke.title),1)):createCommentVNode("",!0)])],8,_hoisted_2))],16,_hoisted_1)}const Download=_export_sfc$1(_sfc_main,[["render",_sfc_render]]);export{Download as D,NcButton as N,_sfc_main$4 as _,NcDialog as a,showError as b,svgCheck as c,NcPasswordField as d,NcIconSvgWrapper as e,NcAvatar as f,getLoggerBuilder as g,NcSelect as h,isLegacy as i,mdiAlertCircle as j,debounce as k,logger as l,mdiCheck as m,NcDateTimePickerNative as n,_sfc_main$h as o,getFirstDay as p,e as q,useFormatTime as r,showSuccess as s,useFormatRelativeTime as t,userStatus as u,NcActions as v,requireString_decoder as w,NcActionButton as x,NcActionLink as y,useIsMobile as z}; -//# sourceMappingURL=TrayArrowDown-D26Art6z.chunk.mjs.map diff --git a/dist/TrayArrowDown-D26Art6z.chunk.mjs.license b/dist/TrayArrowDown-D26Art6z.chunk.mjs.license deleted file mode 100644 index e9d9a253f9a30..0000000000000 --- a/dist/TrayArrowDown-D26Art6z.chunk.mjs.license +++ /dev/null @@ -1,399 +0,0 @@ -SPDX-License-Identifier: (MIT AND BSD-3-Clause) -SPDX-License-Identifier: AGPL-3.0-or-later -SPDX-License-Identifier: Apache-2.0 -SPDX-License-Identifier: BSD-3-Clause -SPDX-License-Identifier: GPL-3.0-or-later -SPDX-License-Identifier: ISC -SPDX-License-Identifier: MIT -SPDX-FileCopyrightText: -SPDX-FileCopyrightText: @nextcloud/dialogs developers -SPDX-FileCopyrightText: Anthony Fu -SPDX-FileCopyrightText: Arnout Kazemier -SPDX-FileCopyrightText: Austin Andrews -SPDX-FileCopyrightText: Borys Serebrov -SPDX-FileCopyrightText: Calvin Metcalf -SPDX-FileCopyrightText: Calvin Metcalf -SPDX-FileCopyrightText: Christoph Wurst -SPDX-FileCopyrightText: Daniel Cousens -SPDX-FileCopyrightText: David Clark -SPDX-FileCopyrightText: David Myers -SPDX-FileCopyrightText: Dominic Tarr (dominictarr.com) -SPDX-FileCopyrightText: Eduardo San Martin Morote -SPDX-FileCopyrightText: Eric Norris (https://github.com/ericnorris) -SPDX-FileCopyrightText: Fedor Indutny -SPDX-FileCopyrightText: Fedor Indutny -SPDX-FileCopyrightText: Feross Aboukhadijeh -SPDX-FileCopyrightText: Guillaume Chau -SPDX-FileCopyrightText: Irakli Gozalishvili (http://jeditoolkit.com) -SPDX-FileCopyrightText: Isaac Z. Schlueter (http://blog.izs.me/) -SPDX-FileCopyrightText: Jacob Clevenger -SPDX-FileCopyrightText: James Halliday -SPDX-FileCopyrightText: Jeff Sagal -SPDX-FileCopyrightText: Jordan Harbamd -SPDX-FileCopyrightText: Jordan Harband -SPDX-FileCopyrightText: Jordan Harband -SPDX-FileCopyrightText: Jordan Humphreys -SPDX-FileCopyrightText: Joyent -SPDX-FileCopyrightText: Julian Gruber -SPDX-FileCopyrightText: Kirill Fomichev (https://github.com/fanatid) -SPDX-FileCopyrightText: Mathias Buus (@mafintosh) -SPDX-FileCopyrightText: Nathan Rajlich (http://n8.io/) -SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors -SPDX-FileCopyrightText: Nick Frasser (https://nfrasser.com) -SPDX-FileCopyrightText: Raynos -SPDX-FileCopyrightText: Rob Cresswell -SPDX-FileCopyrightText: Roeland Jago Douma -SPDX-FileCopyrightText: Sindre Sorhus -SPDX-FileCopyrightText: Varun A P -SPDX-FileCopyrightText: Vuepic -SPDX-FileCopyrightText: atomiks -SPDX-FileCopyrightText: browserify-rsa developers -SPDX-FileCopyrightText: browserify-sign developers -SPDX-FileCopyrightText: date-fns developers -SPDX-FileCopyrightText: debounce developers -SPDX-FileCopyrightText: inherits developers -SPDX-FileCopyrightText: p-queue developers -SPDX-FileCopyrightText: readable-stream developers -SPDX-FileCopyrightText: ripemd160 developers -SPDX-FileCopyrightText: string_decoder developers - -This file is generated from multiple sources. Included packages: -- @floating-ui/core - - version: 1.7.3 - - license: MIT -- @floating-ui/dom - - version: 1.1.1 - - license: MIT -- @floating-ui/dom - - version: 1.7.4 - - license: MIT -- @floating-ui/utils - - version: 0.2.10 - - license: MIT -- @mdi/svg - - version: 7.4.47 - - license: Apache-2.0 -- @nextcloud/browser-storage - - version: 0.4.0 - - license: GPL-3.0-or-later -- @nextcloud/capabilities - - version: 1.2.0 - - license: GPL-3.0-or-later -- @nextcloud/dialogs - - version: 7.1.0 - - license: AGPL-3.0-or-later -- @nextcloud/initial-state - - version: 2.2.0 - - license: GPL-3.0-or-later -- @nextcloud/l10n - - version: 3.4.0 - - license: GPL-3.0-or-later -- @nextcloud/logger - - version: 3.0.2 - - license: GPL-3.0-or-later -- @nextcloud/vue - - version: 9.0.1 - - license: AGPL-3.0-or-later -- @vuepic/vue-datepicker - - version: 11.0.3 - - license: MIT -- @vueuse/components - - version: 13.9.0 - - license: MIT -- @vueuse/core - - version: 13.9.0 - - license: MIT -- @vueuse/shared - - version: 13.9.0 - - license: MIT -- asn1.js - - version: 4.10.1 - - license: MIT -- available-typed-arrays - - version: 1.0.7 - - license: MIT -- bn.js - - version: 4.12.2 - - license: MIT -- bn.js - - version: 5.2.2 - - license: MIT -- brorand - - version: 1.1.0 - - license: MIT -- browserify-aes - - version: 1.2.0 - - license: MIT -- browserify-cipher - - version: 1.0.1 - - license: MIT -- browserify-des - - version: 1.0.2 - - license: MIT -- browserify-rsa - - version: 4.1.1 - - license: MIT -- browserify-sign - - version: 4.2.5 - - license: ISC -- buffer-xor - - version: 1.0.3 - - license: MIT -- call-bind - - version: 1.0.8 - - license: MIT -- call-bind-apply-helpers - - version: 1.0.2 - - license: MIT -- call-bound - - version: 1.0.4 - - license: MIT -- cipher-base - - version: 1.0.7 - - license: MIT -- core-util-is - - version: 1.0.3 - - license: MIT -- create-ecdh - - version: 4.0.4 - - license: MIT -- create-hash - - version: 1.2.0 - - license: MIT -- create-hmac - - version: 1.1.7 - - license: MIT -- crypto-browserify - - version: 3.12.1 - - license: MIT -- date-fns - - version: 4.1.0 - - license: MIT -- debounce - - version: 2.2.0 - - license: MIT -- define-data-property - - version: 1.1.4 - - license: MIT -- des.js - - version: 1.1.0 - - license: MIT -- diffie-hellman - - version: 5.0.3 - - license: MIT -- dunder-proto - - version: 1.0.1 - - license: MIT -- elliptic - - version: 6.6.1 - - license: MIT -- emoji-mart-vue-fast - - version: 15.0.5 - - license: BSD-3-Clause -- es-define-property - - version: 1.0.1 - - license: MIT -- es-errors - - version: 1.3.0 - - license: MIT -- es-object-atoms - - version: 1.1.1 - - license: MIT -- eventemitter3 - - version: 5.0.1 - - license: MIT -- events - - version: 3.3.0 - - license: MIT -- evp_bytestokey - - version: 1.0.3 - - license: MIT -- floating-vue - - version: 5.2.2 - - license: MIT -- focus-trap - - version: 7.6.5 - - license: MIT -- for-each - - version: 0.3.5 - - license: MIT -- function-bind - - version: 1.1.2 - - license: MIT -- generator-function - - version: 2.0.1 - - license: MIT -- get-intrinsic - - version: 1.3.0 - - license: MIT -- get-proto - - version: 1.0.1 - - license: MIT -- gopd - - version: 1.2.0 - - license: MIT -- has-property-descriptors - - version: 1.0.2 - - license: MIT -- has-symbols - - version: 1.1.0 - - license: MIT -- has-tostringtag - - version: 1.0.2 - - license: MIT -- hash-base - - version: 3.0.5 - - license: MIT -- hash-base - - version: 3.1.2 - - license: MIT -- hash.js - - version: 1.1.7 - - license: MIT -- hasown - - version: 2.0.2 - - license: MIT -- hmac-drbg - - version: 1.0.1 - - license: MIT -- inherits - - version: 2.0.4 - - license: ISC -- is-arguments - - version: 1.2.0 - - license: MIT -- is-callable - - version: 1.2.7 - - license: MIT -- is-generator-function - - version: 1.1.2 - - license: MIT -- is-regex - - version: 1.2.1 - - license: MIT -- is-typed-array - - version: 1.1.15 - - license: MIT -- isarray - - version: 1.0.0 - - license: MIT -- isarray - - version: 2.0.5 - - license: MIT -- linkifyjs - - version: 4.3.2 - - license: MIT -- math-intrinsics - - version: 1.1.0 - - license: MIT -- md5.js - - version: 1.3.5 - - license: MIT -- miller-rabin - - version: 4.0.1 - - license: MIT -- minimalistic-assert - - version: 1.0.1 - - license: ISC -- minimalistic-crypto-utils - - version: 1.0.1 - - license: MIT -- p-queue - - version: 9.0.0 - - license: MIT -- p-timeout - - version: 7.0.1 - - license: MIT -- parse-asn1 - - version: 5.1.9 - - license: ISC -- pbkdf2 - - version: 3.1.5 - - license: MIT -- possible-typed-array-names - - version: 1.1.0 - - license: MIT -- process-nextick-args - - version: 2.0.1 - - license: MIT -- public-encrypt - - version: 4.0.3 - - license: MIT -- randombytes - - version: 2.1.0 - - license: MIT -- randomfill - - version: 1.0.4 - - license: MIT -- readable-stream - - version: 2.3.8 - - license: MIT -- readable-stream - - version: 3.6.2 - - license: MIT -- ripemd160 - - version: 2.0.3 - - license: MIT -- safe-buffer - - version: 5.1.2 - - license: MIT -- safe-buffer - - version: 5.2.1 - - license: MIT -- safe-regex-test - - version: 1.1.0 - - license: MIT -- set-function-length - - version: 1.2.2 - - license: MIT -- sha.js - - version: 2.4.12 - - license: (MIT AND BSD-3-Clause) -- stream-browserify - - version: 3.0.0 - - license: MIT -- string_decoder - - version: 1.1.1 - - license: MIT -- striptags - - version: 3.2.0 - - license: MIT -- tabbable - - version: 6.2.0 - - license: MIT -- to-buffer - - version: 1.2.2 - - license: MIT -- toastify-js - - version: 1.12.0 - - license: MIT -- tributejs - - version: 5.1.3 - - license: MIT -- typed-array-buffer - - version: 1.0.3 - - license: MIT -- util - - version: 0.12.5 - - license: MIT -- util-deprecate - - version: 1.0.2 - - license: MIT -- vite-plugin-node-polyfills - - version: 0.24.0 - - license: MIT -- vm-browserify - - version: 1.1.2 - - license: MIT -- vue-material-design-icons - - version: 5.3.1 - - license: MIT -- vue-router - - version: 4.6.3 - - license: MIT -- vue-select - - version: 4.0.0-beta.6 - - license: MIT -- which-typed-array - - version: 1.1.19 - - license: MIT diff --git a/dist/TrayArrowDown-D26Art6z.chunk.mjs.map b/dist/TrayArrowDown-D26Art6z.chunk.mjs.map deleted file mode 100644 index b0f330dd40233..0000000000000 --- a/dist/TrayArrowDown-D26Art6z.chunk.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TrayArrowDown-D26Art6z.chunk.mjs","sources":["../node_modules/@nextcloud/l10n/dist/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/mdi-Cjx8NyEs.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcIconSvgWrapper-5AA93z-F.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcActions-CiGWxAJE.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionGlobal-BZFdtdJL.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionText-DYzDdbVe.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionButton-BAaRMesp.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionButtonGroup-CMnSKp08.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDateTimePickerNative-MeggPJLT.mjs","../node_modules/@nextcloud/capabilities/node_modules/@nextcloud/initial-state/dist/index.mjs","../node_modules/@nextcloud/capabilities/dist/index.mjs","../node_modules/debounce/index.js","../node_modules/@nextcloud/vue/dist/chunks/legacy-DcjXBL_t.mjs","../node_modules/vue-router/dist/devtools-BLCumUwL.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcButton-DkC5k3Lb.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcInputField-BYFjEj7Z.mjs","../node_modules/@nextcloud/logger/dist/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/logger-D3RVzcfQ.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcPasswordField-CLv9QZOP.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-Dl9AQfwW.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionInput-_ccoTcPV.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionLink-afakPM_N.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionRouter-oT-YU_jf.mjs","../node_modules/@vueuse/shared/index.mjs","../node_modules/@vueuse/core/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/focusTrap-HJQ4pqHV.mjs","../node_modules/@nextcloud/vue/dist/chunks/useTrapStackControl-B6cEicto.mjs","../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../node_modules/floating-vue/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs","../node_modules/floating-vue/dist/floating-vue.mjs","../node_modules/tabbable/dist/index.esm.js","../node_modules/focus-trap/dist/focus-trap.esm.js","../node_modules/@nextcloud/vue/dist/chunks/rtl-v0UOPAM7.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcPopover-C-MTaPCs.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActions-Ccr8kkyh.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionText-uKvLcEY6.mjs","../node_modules/@nextcloud/vue/node_modules/@nextcloud/browser-storage/dist/scopedstorage.js","../node_modules/@nextcloud/vue/node_modules/@nextcloud/browser-storage/dist/storagebuilder.js","../node_modules/@nextcloud/vue/node_modules/@nextcloud/browser-storage/dist/index.js","../node_modules/@nextcloud/vue/dist/composables/useIsMobile/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppContent-CFhtQHrc.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigation-CxnSGi06.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationCaption-C35kejgM.mjs","../node_modules/@nextcloud/vue/dist/chunks/ChevronDown-FiGpp0KT.mjs","../node_modules/@nextcloud/vue/dist/chunks/Close-D6ngJ4t9.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcInputConfirmCancel-D3HznHAG.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationItem-C08oNLGX.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationSearch-CFXt-xr0.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationSettings-DQ8Xle74.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-DhkdaEaZ.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcModal-DLFgq7Qy.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDialog-CmRabANI.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppSettingsDialog-CqoSAJb6.mjs","../node_modules/@vueuse/components/index.mjs","../node_modules/linkifyjs/dist/linkify.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppSidebar-CjQtPAhV.mjs","../node_modules/@nextcloud/vue/dist/functions/isDarkTheme/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/constants-Bls5liKo.mjs","../node_modules/@nextcloud/vue/dist/composables/useIsDarkTheme/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/autolink-U5pBzLgI.mjs","../node_modules/@nextcloud/vue/dist/composables/useFormatDateTime/index.mjs","../node_modules/@nextcloud/vue/dist/composables/useHotKey/index.mjs","../node_modules/@nextcloud/vue/dist/composables/useIsFullscreen/index.mjs","../node_modules/@nextcloud/vue/dist/functions/contactsMenu/index.mjs","../node_modules/vite-plugin-node-polyfills/shims/buffer/dist/index.cjs","../node_modules/safe-buffer/index.js","../node_modules/randombytes/browser.js","../node_modules/inherits/inherits_browser.js","../node_modules/events/events.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream-browser.js","../node_modules/has-symbols/shams.js","../node_modules/has-tostringtag/shams.js","../node_modules/es-object-atoms/index.js","../node_modules/es-errors/index.js","../node_modules/es-errors/eval.js","../node_modules/es-errors/range.js","../node_modules/es-errors/ref.js","../node_modules/es-errors/syntax.js","../node_modules/es-errors/type.js","../node_modules/es-errors/uri.js","../node_modules/math-intrinsics/abs.js","../node_modules/math-intrinsics/floor.js","../node_modules/math-intrinsics/max.js","../node_modules/math-intrinsics/min.js","../node_modules/math-intrinsics/pow.js","../node_modules/math-intrinsics/round.js","../node_modules/math-intrinsics/isNaN.js","../node_modules/math-intrinsics/sign.js","../node_modules/gopd/gOPD.js","../node_modules/gopd/index.js","../node_modules/es-define-property/index.js","../node_modules/has-symbols/index.js","../node_modules/get-proto/Reflect.getPrototypeOf.js","../node_modules/get-proto/Object.getPrototypeOf.js","../node_modules/function-bind/implementation.js","../node_modules/function-bind/index.js","../node_modules/call-bind-apply-helpers/functionCall.js","../node_modules/call-bind-apply-helpers/functionApply.js","../node_modules/call-bind-apply-helpers/reflectApply.js","../node_modules/call-bind-apply-helpers/actualApply.js","../node_modules/call-bind-apply-helpers/index.js","../node_modules/dunder-proto/get.js","../node_modules/get-proto/index.js","../node_modules/hasown/index.js","../node_modules/get-intrinsic/index.js","../node_modules/call-bound/index.js","../node_modules/is-arguments/index.js","../node_modules/is-regex/index.js","../node_modules/safe-regex-test/index.js","../node_modules/generator-function/index.js","../node_modules/is-generator-function/index.js","../node_modules/is-callable/index.js","../node_modules/for-each/index.js","../node_modules/possible-typed-array-names/index.js","../node_modules/available-typed-arrays/index.js","../node_modules/define-data-property/index.js","../node_modules/has-property-descriptors/index.js","../node_modules/set-function-length/index.js","../node_modules/call-bind-apply-helpers/applyBind.js","../node_modules/call-bind/index.js","../node_modules/which-typed-array/index.js","../node_modules/is-typed-array/index.js","../node_modules/util/support/types.js","../node_modules/util/support/isBufferBrowser.js","../node_modules/util/util.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/buffer_list.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js","../node_modules/stream-browserify/node_modules/readable-stream/errors-browser.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/state.js","../node_modules/util-deprecate/browser.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js","../node_modules/string_decoder/node_modules/safe-buffer/index.js","../node_modules/string_decoder/lib/string_decoder.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/end-of-stream.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/async_iterator.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/from-browser.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js","../node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/pipeline.js","../node_modules/stream-browserify/index.js","../node_modules/hash-base/index.js","../node_modules/md5.js/index.js","../node_modules/to-buffer/node_modules/isarray/index.js","../node_modules/typed-array-buffer/index.js","../node_modules/to-buffer/index.js","../node_modules/ripemd160/node_modules/hash-base/to-buffer.js","../node_modules/process-nextick-args/index.js","../node_modules/isarray/index.js","../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../node_modules/readable-stream/node_modules/safe-buffer/index.js","../node_modules/core-util-is/lib/util.js","../node_modules/readable-stream/lib/internal/streams/BufferList.js","../node_modules/readable-stream/lib/internal/streams/destroy.js","../node_modules/readable-stream/lib/_stream_writable.js","../node_modules/readable-stream/lib/_stream_duplex.js","../node_modules/readable-stream/lib/_stream_readable.js","../node_modules/readable-stream/lib/_stream_transform.js","../node_modules/readable-stream/lib/_stream_passthrough.js","../node_modules/readable-stream/readable-browser.js","../node_modules/ripemd160/node_modules/hash-base/index.js","../node_modules/ripemd160/index.js","../node_modules/sha.js/hash.js","../node_modules/sha.js/sha.js","../node_modules/sha.js/sha1.js","../node_modules/sha.js/sha256.js","../node_modules/sha.js/sha224.js","../node_modules/sha.js/sha512.js","../node_modules/sha.js/sha384.js","../node_modules/sha.js/index.js","../node_modules/cipher-base/index.js","../node_modules/create-hash/browser.js","../node_modules/create-hmac/legacy.js","../node_modules/create-hash/md5.js","../node_modules/create-hmac/browser.js","../node_modules/browserify-sign/algos.js","../node_modules/pbkdf2/lib/precondition.js","../node_modules/pbkdf2/lib/default-encoding.js","../node_modules/pbkdf2/lib/to-buffer.js","../node_modules/pbkdf2/lib/sync-browser.js","../node_modules/pbkdf2/lib/async.js","../node_modules/pbkdf2/browser.js","../node_modules/des.js/lib/des/utils.js","../node_modules/minimalistic-assert/index.js","../node_modules/des.js/lib/des/cipher.js","../node_modules/des.js/lib/des/des.js","../node_modules/des.js/lib/des/cbc.js","../node_modules/des.js/lib/des/ede.js","../node_modules/des.js/lib/des.js","../node_modules/browserify-des/index.js","../node_modules/browserify-aes/modes/ecb.js","../node_modules/buffer-xor/index.js","../node_modules/browserify-aes/modes/cbc.js","../node_modules/browserify-aes/modes/cfb.js","../node_modules/browserify-aes/modes/cfb8.js","../node_modules/browserify-aes/modes/cfb1.js","../node_modules/browserify-aes/modes/ofb.js","../node_modules/browserify-aes/incr32.js","../node_modules/browserify-aes/modes/ctr.js","../node_modules/browserify-aes/modes/index.js","../node_modules/browserify-aes/aes.js","../node_modules/browserify-aes/ghash.js","../node_modules/browserify-aes/authCipher.js","../node_modules/browserify-aes/streamCipher.js","../node_modules/evp_bytestokey/index.js","../node_modules/browserify-aes/encrypter.js","../node_modules/browserify-aes/decrypter.js","../node_modules/browserify-aes/browser.js","../node_modules/browserify-des/modes.js","../node_modules/browserify-cipher/browser.js","../node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js","../node_modules/miller-rabin/node_modules/bn.js/lib/bn.js","../node_modules/brorand/index.js","../node_modules/miller-rabin/lib/mr.js","../node_modules/diffie-hellman/lib/generatePrime.js","../node_modules/diffie-hellman/lib/dh.js","../node_modules/diffie-hellman/browser.js","../node_modules/bn.js/lib/bn.js","../node_modules/browserify-rsa/index.js","../node_modules/elliptic/node_modules/bn.js/lib/bn.js","../node_modules/minimalistic-crypto-utils/lib/utils.js","../node_modules/elliptic/lib/elliptic/utils.js","../node_modules/elliptic/lib/elliptic/curve/base.js","../node_modules/elliptic/lib/elliptic/curve/short.js","../node_modules/elliptic/lib/elliptic/curve/mont.js","../node_modules/elliptic/lib/elliptic/curve/edwards.js","../node_modules/elliptic/lib/elliptic/curve/index.js","../node_modules/hash.js/lib/hash/utils.js","../node_modules/hash.js/lib/hash/common.js","../node_modules/hash.js/lib/hash/sha/common.js","../node_modules/hash.js/lib/hash/sha/1.js","../node_modules/hash.js/lib/hash/sha/256.js","../node_modules/hash.js/lib/hash/sha/224.js","../node_modules/hash.js/lib/hash/sha/512.js","../node_modules/hash.js/lib/hash/sha/384.js","../node_modules/hash.js/lib/hash/sha.js","../node_modules/hash.js/lib/hash/ripemd.js","../node_modules/hash.js/lib/hash/hmac.js","../node_modules/hash.js/lib/hash.js","../node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js","../node_modules/elliptic/lib/elliptic/curves.js","../node_modules/hmac-drbg/lib/hmac-drbg.js","../node_modules/elliptic/lib/elliptic/ec/key.js","../node_modules/elliptic/lib/elliptic/ec/signature.js","../node_modules/elliptic/lib/elliptic/ec/index.js","../node_modules/elliptic/lib/elliptic/eddsa/key.js","../node_modules/elliptic/lib/elliptic/eddsa/signature.js","../node_modules/elliptic/lib/elliptic/eddsa/index.js","../node_modules/elliptic/lib/elliptic.js","../node_modules/asn1.js/node_modules/bn.js/lib/bn.js","../node_modules/vm-browserify/index.js","../node_modules/asn1.js/lib/asn1/api.js","../node_modules/asn1.js/lib/asn1/base/reporter.js","../node_modules/asn1.js/lib/asn1/base/buffer.js","../node_modules/asn1.js/lib/asn1/base/node.js","../node_modules/asn1.js/lib/asn1/base/index.js","../node_modules/asn1.js/lib/asn1/constants/der.js","../node_modules/asn1.js/lib/asn1/constants/index.js","../node_modules/asn1.js/lib/asn1/decoders/der.js","../node_modules/asn1.js/lib/asn1/decoders/pem.js","../node_modules/asn1.js/lib/asn1/decoders/index.js","../node_modules/asn1.js/lib/asn1/encoders/der.js","../node_modules/asn1.js/lib/asn1/encoders/pem.js","../node_modules/asn1.js/lib/asn1/encoders/index.js","../node_modules/asn1.js/lib/asn1.js","../node_modules/parse-asn1/certificate.js","../node_modules/parse-asn1/asn1.js","../node_modules/parse-asn1/fixProc.js","../node_modules/parse-asn1/index.js","../node_modules/browserify-sign/browser/sign.js","../node_modules/browserify-sign/browser/verify.js","../node_modules/browserify-sign/browser/index.js","../node_modules/create-ecdh/node_modules/bn.js/lib/bn.js","../node_modules/create-ecdh/browser.js","../node_modules/public-encrypt/mgf.js","../node_modules/public-encrypt/xor.js","../node_modules/public-encrypt/node_modules/bn.js/lib/bn.js","../node_modules/public-encrypt/withPublic.js","../node_modules/public-encrypt/publicEncrypt.js","../node_modules/public-encrypt/privateDecrypt.js","../node_modules/public-encrypt/browser.js","../node_modules/randomfill/browser.js","../node_modules/crypto-browserify/index.js","../node_modules/@nextcloud/vue/dist/chunks/colors-ZSK8bG_B.mjs","../node_modules/@nextcloud/vue/dist/functions/usernameToColor/index.mjs","../node_modules/striptags/src/striptags.js","../node_modules/@nextcloud/vue/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcUserStatusIcon-GpeB4Zhc.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAvatar-BkmHv-oY.mjs","../node_modules/eventemitter3/index.js","../node_modules/p-timeout/index.js","../node_modules/p-queue/dist/lower-bound.js","../node_modules/p-queue/dist/priority-queue.js","../node_modules/p-queue/dist/index.js","../node_modules/@nextcloud/vue/dist/functions/preloadImage/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcChip-CoZcWPtf.mjs","../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../node_modules/vue-select/dist/vue-select.es.js","../node_modules/@nextcloud/vue/dist/chunks/NcHighlight.vue_vue_type_script_lang-DnWQDM_2.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcEllipsisedOption-dT-CtXYp.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcSelect-BN2tEhoU.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcCollectionList-DGNf9nD5.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcColorPicker-Cs5tFS-S.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcContent-BhYN55Pl.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDashboardWidget-CP-yuVVt.mjs","../node_modules/date-fns/constants.js","../node_modules/date-fns/constructFrom.js","../node_modules/date-fns/toDate.js","../node_modules/date-fns/addDays.js","../node_modules/date-fns/addMonths.js","../node_modules/date-fns/add.js","../node_modules/date-fns/addMilliseconds.js","../node_modules/date-fns/addHours.js","../node_modules/date-fns/_lib/defaultOptions.js","../node_modules/date-fns/startOfWeek.js","../node_modules/date-fns/startOfISOWeek.js","../node_modules/date-fns/getISOWeekYear.js","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../node_modules/date-fns/_lib/normalizeDates.js","../node_modules/date-fns/startOfDay.js","../node_modules/date-fns/differenceInCalendarDays.js","../node_modules/date-fns/startOfISOWeekYear.js","../node_modules/date-fns/addQuarters.js","../node_modules/date-fns/addYears.js","../node_modules/date-fns/compareAsc.js","../node_modules/date-fns/isDate.js","../node_modules/date-fns/isValid.js","../node_modules/date-fns/getQuarter.js","../node_modules/date-fns/differenceInCalendarYears.js","../node_modules/date-fns/differenceInYears.js","../node_modules/date-fns/_lib/normalizeInterval.js","../node_modules/date-fns/eachDayOfInterval.js","../node_modules/date-fns/startOfQuarter.js","../node_modules/date-fns/eachQuarterOfInterval.js","../node_modules/date-fns/startOfMonth.js","../node_modules/date-fns/endOfYear.js","../node_modules/date-fns/startOfYear.js","../node_modules/date-fns/endOfWeek.js","../node_modules/date-fns/endOfQuarter.js","../node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../node_modules/date-fns/locale/en-US/_lib/formatLong.js","../node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../node_modules/date-fns/locale/en-US/_lib/localize.js","../node_modules/date-fns/locale/_lib/buildMatchFn.js","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../node_modules/date-fns/locale/en-US/_lib/match.js","../node_modules/date-fns/locale/en-US.js","../node_modules/date-fns/getDayOfYear.js","../node_modules/date-fns/getISOWeek.js","../node_modules/date-fns/getWeekYear.js","../node_modules/date-fns/startOfWeekYear.js","../node_modules/date-fns/getWeek.js","../node_modules/date-fns/_lib/addLeadingZeros.js","../node_modules/date-fns/_lib/format/lightFormatters.js","../node_modules/date-fns/_lib/format/formatters.js","../node_modules/date-fns/_lib/format/longFormatters.js","../node_modules/date-fns/_lib/protectedTokens.js","../node_modules/date-fns/format.js","../node_modules/date-fns/getDay.js","../node_modules/date-fns/getDaysInMonth.js","../node_modules/date-fns/getDefaultOptions.js","../node_modules/date-fns/getHours.js","../node_modules/date-fns/getISODay.js","../node_modules/date-fns/getMinutes.js","../node_modules/date-fns/getMonth.js","../node_modules/date-fns/getSeconds.js","../node_modules/date-fns/getYear.js","../node_modules/date-fns/isAfter.js","../node_modules/date-fns/isBefore.js","../node_modules/date-fns/isEqual.js","../node_modules/date-fns/transpose.js","../node_modules/date-fns/parse/_lib/Setter.js","../node_modules/date-fns/parse/_lib/Parser.js","../node_modules/date-fns/parse/_lib/parsers/EraParser.js","../node_modules/date-fns/parse/_lib/constants.js","../node_modules/date-fns/parse/_lib/utils.js","../node_modules/date-fns/parse/_lib/parsers/YearParser.js","../node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js","../node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js","../node_modules/date-fns/parse/_lib/parsers/QuarterParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js","../node_modules/date-fns/parse/_lib/parsers/MonthParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js","../node_modules/date-fns/setWeek.js","../node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js","../node_modules/date-fns/setISOWeek.js","../node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js","../node_modules/date-fns/parse/_lib/parsers/DateParser.js","../node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js","../node_modules/date-fns/setDay.js","../node_modules/date-fns/parse/_lib/parsers/DayParser.js","../node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js","../node_modules/date-fns/setISODay.js","../node_modules/date-fns/parse/_lib/parsers/ISODayParser.js","../node_modules/date-fns/parse/_lib/parsers/AMPMParser.js","../node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js","../node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js","../node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js","../node_modules/date-fns/parse/_lib/parsers/MinuteParser.js","../node_modules/date-fns/parse/_lib/parsers/SecondParser.js","../node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js","../node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js","../node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js","../node_modules/date-fns/parse/_lib/parsers.js","../node_modules/date-fns/parse.js","../node_modules/date-fns/isSameQuarter.js","../node_modules/date-fns/subDays.js","../node_modules/date-fns/setMonth.js","../node_modules/date-fns/set.js","../node_modules/date-fns/setHours.js","../node_modules/date-fns/setMilliseconds.js","../node_modules/date-fns/setMinutes.js","../node_modules/date-fns/setSeconds.js","../node_modules/date-fns/setYear.js","../node_modules/date-fns/subMonths.js","../node_modules/date-fns/sub.js","../node_modules/date-fns/subYears.js","../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js","../node_modules/@nextcloud/vue/dist/chunks/NcTimezonePicker.vue_vue_type_script_setup_true_lang-BexVGMhR.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDateTimePicker-B5u2bt7M.mjs","../node_modules/emoji-mart-vue-fast/src/vendor/raf-polyfill.js","../node_modules/emoji-mart-vue-fast/dist/emoji-mart.js","../node_modules/tributejs/dist/tribute.esm.js","../node_modules/@nextcloud/vue/dist/chunks/emoji-BY_D0V5K.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcEmojiPicker-DWI-aSaL.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcKbd-B3epGXRo.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcProgressBar-DDMAo4h-.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcRelatedResourcesPanel-C044oJVp.mjs","../node_modules/@nextcloud/vue/dist/chunks/customPickerElements-4pQTZUnk.mjs","../node_modules/@nextcloud/vue/dist/chunks/referencePickerModal-BgBJRzaB.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcRichText-BkqS2HWy.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcRichContenteditable-9R0mziQM.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcSelectTags-Ctd1Tqch.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcSettingsSelectGroup-MrKSvUll.mjs","../node_modules/@mdi/svg/svg/check.svg?raw","../node_modules/toastify-js/src/toastify.js","../node_modules/@nextcloud/dialogs/dist/chunks/index-hZPKu-D6.mjs","../node_modules/vue-material-design-icons/TrayArrowDown.vue"],"sourcesContent":["import { g as getCanonicalLocale, a as getLanguage } from \"./chunks/translation-DoG5ZELJ.mjs\";\nimport { b, e, i, l, d, r, c, s, t, t as t2, d as d2, u } from \"./chunks/translation-DoG5ZELJ.mjs\";\n/*!\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nfunction getFirstDay() {\n if (typeof globalThis.firstDay !== \"undefined\") {\n return globalThis.firstDay;\n }\n const intl = new Intl.Locale(getCanonicalLocale());\n const weekInfo = intl.getWeekInfo?.() ?? intl.weekInfo;\n if (weekInfo) {\n return weekInfo.firstDay % 7;\n }\n return 1;\n}\nfunction getDayNames() {\n if (typeof globalThis.dayNames !== \"undefined\") {\n return globalThis.dayNames;\n }\n const locale = getCanonicalLocale();\n return [\n (/* @__PURE__ */ new Date(\"1970-01-04T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-05T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-06T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-07T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-08T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-09T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-01-10T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"long\" })\n ];\n}\nfunction getDayNamesShort() {\n if (typeof globalThis.dayNamesShort !== \"undefined\") {\n return globalThis.dayNamesShort;\n }\n const locale = getCanonicalLocale();\n return [\n (/* @__PURE__ */ new Date(\"1970-01-04T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-05T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-06T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-07T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-08T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-09T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-01-10T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"short\" })\n ];\n}\nfunction getDayNamesMin() {\n if (typeof globalThis.dayNamesMin !== \"undefined\") {\n return globalThis.dayNamesMin;\n }\n const locale = getCanonicalLocale();\n return [\n (/* @__PURE__ */ new Date(\"1970-01-04T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-05T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-06T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-07T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-08T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-09T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" }),\n (/* @__PURE__ */ new Date(\"1970-01-10T00:00:00.000Z\")).toLocaleDateString(locale, { weekday: \"narrow\" })\n ];\n}\nfunction getMonthNames() {\n if (typeof globalThis.monthNames !== \"undefined\") {\n return globalThis.monthNames;\n }\n const locale = getCanonicalLocale();\n return [\n (/* @__PURE__ */ new Date(\"1970-01-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-02-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-03-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-04-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-05-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-06-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-07-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-08-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-09-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-10-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-11-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" }),\n (/* @__PURE__ */ new Date(\"1970-12-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"long\" })\n ];\n}\nfunction getMonthNamesShort() {\n if (typeof globalThis.monthNamesShort !== \"undefined\") {\n return globalThis.monthNamesShort;\n }\n const locale = getCanonicalLocale();\n return [\n (/* @__PURE__ */ new Date(\"1970-01-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-02-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-03-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-04-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-05-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-06-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-07-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-08-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-09-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-10-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-11-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" }),\n (/* @__PURE__ */ new Date(\"1970-12-01T00:00:00.000Z\")).toLocaleDateString(locale, { month: \"short\" })\n ];\n}\n/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nfunction formatRelativeTime(timestamp = Date.now(), opts = {}) {\n const options = {\n ignoreSeconds: false,\n language: getLanguage(),\n relativeTime: \"long\",\n ...opts\n };\n const date = new Date(timestamp);\n const formatter = new Intl.RelativeTimeFormat([options.language, getLanguage()], { numeric: \"auto\", style: options.relativeTime });\n const diff = date.getTime() - Date.now();\n const seconds = diff / 1e3;\n if (Math.abs(seconds) < 59.5) {\n return options.ignoreSeconds || formatter.format(Math.round(seconds), \"second\");\n }\n const minutes = seconds / 60;\n if (Math.abs(minutes) <= 59) {\n return formatter.format(Math.round(minutes), \"minute\");\n }\n const hours = minutes / 60;\n if (Math.abs(hours) < 23.5) {\n return formatter.format(Math.round(hours), \"hour\");\n }\n const days = hours / 24;\n if (Math.abs(days) < 6.5) {\n return formatter.format(Math.round(days), \"day\");\n }\n if (Math.abs(days) < 27.5) {\n const weeks = days / 7;\n return formatter.format(Math.round(weeks), \"week\");\n }\n const months = days / 30;\n const format = Math.abs(months) < 11 ? { month: options.relativeTime, day: \"numeric\" } : { year: options.relativeTime === \"narrow\" ? \"2-digit\" : \"numeric\", month: options.relativeTime };\n const dateTimeFormatter = new Intl.DateTimeFormat([options.language, getLanguage()], format);\n return dateTimeFormatter.format(date);\n}\nexport {\n formatRelativeTime,\n getCanonicalLocale,\n getDayNames,\n getDayNamesMin,\n getDayNamesShort,\n getFirstDay,\n getLanguage,\n b as getLocale,\n getMonthNames,\n getMonthNamesShort,\n e as getPlural,\n i as isRTL,\n l as loadTranslations,\n d as n,\n r as register,\n c as setLanguage,\n s as setLocale,\n t,\n t2 as translate,\n d2 as translatePlural,\n u as unregister\n};\n//# sourceMappingURL=index.mjs.map\n","var mdiAlert = \"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z\";\nvar mdiAlertCircle = \"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\";\nvar mdiAlertDecagram = \"M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z\";\nvar mdiArrowLeft = \"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z\";\nvar mdiArrowRight = \"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z\";\nvar mdiCalendarBlank = \"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1\";\nvar mdiCheck = \"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z\";\nvar mdiCheckboxMarkedCircle = \"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\";\nvar mdiChevronDown = \"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z\";\nvar mdiChevronLeft = \"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z\";\nvar mdiChevronRight = \"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z\";\nvar mdiChevronUp = \"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z\";\nvar mdiClock = \"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z\";\nvar mdiClose = \"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z\";\nvar mdiCloseCircleOutline = \"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z\";\nvar mdiCog = \"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z\";\nvar mdiCogOutline = \"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z\";\nvar mdiCreation = \"M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74\";\nvar mdiDotsHorizontal = \"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z\";\nvar mdiEye = \"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z\";\nvar mdiEyeOff = \"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z\";\nvar mdiInformation = \"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\";\nvar mdiMenu = \"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\";\nvar mdiMenuOpen = \"M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z\";\nvar mdiUndo = \"M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z\";\nexport {\n mdiUndo as a,\n mdiClose as b,\n mdiChevronRight as c,\n mdiCheck as d,\n mdiAlertCircle as e,\n mdiAlert as f,\n mdiInformation as g,\n mdiCheckboxMarkedCircle as h,\n mdiAlertDecagram as i,\n mdiCreation as j,\n mdiEyeOff as k,\n mdiEye as l,\n mdiArrowRight as m,\n mdiCloseCircleOutline as n,\n mdiArrowLeft as o,\n mdiDotsHorizontal as p,\n mdiChevronUp as q,\n mdiChevronDown as r,\n mdiChevronLeft as s,\n mdiClock as t,\n mdiCalendarBlank as u,\n mdiCog as v,\n mdiCogOutline as w,\n mdiMenuOpen as x,\n mdiMenu as y\n};\n//# sourceMappingURL=mdi-Cjx8NyEs.mjs.map\n","import '../assets/NcIconSvgWrapper-D6qXQDNo.css';\nimport { defineComponent, useCssVars, computed, warn, createElementBlock, openBlock, normalizeClass, createElementVNode } from \"vue\";\nimport DOMPurify from \"dompurify\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _hoisted_1 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2 = {\n key: 0,\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n};\nconst _hoisted_3 = [\"d\"];\nconst _hoisted_4 = [\"innerHTML\"];\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcIconSvgWrapper\",\n props: {\n directional: { type: Boolean },\n inline: { type: Boolean },\n svg: { default: \"\" },\n name: { default: void 0 },\n path: { default: \"\" },\n size: { default: 20 }\n },\n setup(__props) {\n useCssVars((_ctx) => ({\n \"0c3ef411\": iconSize.value\n }));\n const props = __props;\n const iconSize = computed(() => typeof props.size === \"number\" ? `${props.size}px` : props.size);\n const cleanSvg = computed(() => {\n if (!props.svg || props.path) {\n return;\n }\n const svg = DOMPurify.sanitize(props.svg);\n const svgDocument = new DOMParser().parseFromString(svg, \"image/svg+xml\");\n if (svgDocument.querySelector(\"parsererror\")) {\n warn(\"SVG is not valid\");\n return \"\";\n }\n if (svgDocument.documentElement.id) {\n svgDocument.documentElement.removeAttribute(\"id\");\n }\n return svgDocument.documentElement.outerHTML;\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"span\", {\n \"aria-hidden\": _ctx.name ? void 0 : \"true\",\n \"aria-label\": _ctx.name || void 0,\n class: normalizeClass([\"icon-vue\", {\n \"icon-vue--directional\": _ctx.directional,\n \"icon-vue--inline\": _ctx.inline\n }]),\n role: \"img\"\n }, [\n !cleanSvg.value ? (openBlock(), createElementBlock(\"svg\", _hoisted_2, [\n createElementVNode(\"path\", { d: _ctx.path }, null, 8, _hoisted_3)\n ])) : (openBlock(), createElementBlock(\"span\", {\n key: 1,\n innerHTML: cleanSvg.value\n }, null, 8, _hoisted_4))\n ], 10, _hoisted_1);\n };\n }\n});\nconst NcIconSvgWrapper = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-5a43cff9\"]]);\nexport {\n NcIconSvgWrapper as N\n};\n//# sourceMappingURL=NcIconSvgWrapper-5AA93z-F.mjs.map\n","const NC_ACTIONS_IS_SEMANTIC_MENU = Symbol.for(\"NcActions:isSemanticMenu\");\nconst NC_ACTIONS_CLOSE_MENU = Symbol.for(\"NcActions:closeMenu\");\nexport {\n NC_ACTIONS_CLOSE_MENU as N,\n NC_ACTIONS_IS_SEMANTIC_MENU as a\n};\n//# sourceMappingURL=useNcActions-CiGWxAJE.mjs.map\n","const ActionGlobalMixin = {\n beforeUpdate() {\n this.text = this.getText();\n },\n data() {\n return {\n // $slots are not reactive.\n // We need to update the content manually\n text: this.getText()\n };\n },\n computed: {\n isLongText() {\n return this.text && this.text.trim().length > 20;\n }\n },\n methods: {\n getText() {\n return this.$slots.default?.()[0].children?.trim?.() || \"\";\n }\n }\n};\nexport {\n ActionGlobalMixin as A\n};\n//# sourceMappingURL=actionGlobal-BZFdtdJL.mjs.map\n","import { warn } from \"vue\";\nimport { N as NC_ACTIONS_CLOSE_MENU } from \"./useNcActions-CiGWxAJE.mjs\";\nimport { A as ActionGlobalMixin } from \"./actionGlobal-BZFdtdJL.mjs\";\nconst ActionTextMixin = {\n mixins: [ActionGlobalMixin],\n props: {\n /**\n * Icon to show with the action, can be either a CSS class or an URL\n */\n icon: {\n type: String,\n default: \"\"\n },\n /**\n * The main text content of the entry.\n */\n name: {\n type: String,\n default: \"\"\n },\n /**\n * The title attribute of the element.\n */\n title: {\n type: String,\n default: \"\"\n },\n /**\n * Whether we close the Actions menu after the click\n */\n closeAfterClick: {\n type: Boolean,\n default: false\n },\n /**\n * Aria label for the button. Not needed if the button has text.\n */\n ariaLabel: {\n type: String,\n default: null\n }\n },\n inject: {\n closeMenu: {\n from: NC_ACTIONS_CLOSE_MENU\n }\n },\n emits: [\n \"click\"\n ],\n created() {\n if (\"ariaHidden\" in this.$attrs) {\n warn(\"[NcAction*]: Do not set the ariaHidden attribute as the root element will inherit the incorrect aria-hidden.\");\n }\n },\n computed: {\n /**\n * Check if icon prop is an URL\n *\n * @return {boolean} Whether the icon prop is an URL\n */\n isIconUrl() {\n try {\n return !!new URL(this.icon, this.icon.startsWith(\"/\") ? window.location.origin : void 0);\n } catch {\n return false;\n }\n }\n },\n methods: {\n onClick(event) {\n this.$emit(\"click\", event);\n if (this.closeAfterClick) {\n this.closeMenu(false);\n }\n }\n }\n};\nexport {\n ActionTextMixin as A\n};\n//# sourceMappingURL=actionText-DYzDdbVe.mjs.map\n","import '../assets/NcActionButton-D7bnKlOt.css';\nimport { c as mdiChevronRight, d as mdiCheck } from \"./mdi-Cjx8NyEs.mjs\";\nimport { N as NcIconSvgWrapper } from \"./NcIconSvgWrapper-5AA93z-F.mjs\";\nimport { A as ActionTextMixin } from \"./actionText-DYzDdbVe.mjs\";\nimport { a as NC_ACTIONS_IS_SEMANTIC_MENU } from \"./useNcActions-CiGWxAJE.mjs\";\nimport { resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, mergeProps, renderSlot, createBlock, createCommentVNode, normalizeStyle, toDisplayString } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _sfc_main = {\n name: \"NcActionButton\",\n components: {\n NcIconSvgWrapper\n },\n mixins: [ActionTextMixin],\n inject: {\n isInSemanticMenu: {\n from: NC_ACTIONS_IS_SEMANTIC_MENU,\n default: false\n }\n },\n props: {\n /**\n * disabled state of the action button\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * If this is a menu, a chevron icon will\n * be added at the end of the line\n */\n isMenu: {\n type: Boolean,\n default: false\n },\n /**\n * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n * This extends the native HTML button type attribute.\n */\n type: {\n type: String,\n default: \"button\",\n validator: (behavior) => [\"button\", \"checkbox\", \"radio\", \"reset\", \"submit\"].includes(behavior)\n },\n /**\n * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n * For checkbox and toggle button behavior - boolean value.\n * For radio button behavior - could be a boolean checked or a string with the value of the button.\n * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n *\n * **This is not availabe for `type='submit'` or `type='reset'`**\n *\n * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n * For `type='radio'` `null` is equal to `false`\n */\n modelValue: {\n type: [Boolean, String],\n default: null\n },\n /**\n * The value used for the `modelValue` when this component is used with radio behavior\n * Similar to the `value` attribute of ``\n */\n value: {\n type: String,\n default: null\n },\n /**\n * Small underlying text content of the entry\n */\n description: {\n type: String,\n default: \"\"\n }\n },\n emits: [\"update:modelValue\"],\n setup() {\n return {\n mdiCheck,\n mdiChevronRight\n };\n },\n computed: {\n /**\n * determines if the action is focusable\n *\n * @return {boolean} is the action focusable ?\n */\n isFocusable() {\n return !this.disabled;\n },\n /**\n * The current \"checked\" or \"pressed\" state for the model behavior\n */\n isChecked() {\n if (this.type === \"radio\" && typeof this.modelValue !== \"boolean\") {\n return this.modelValue === this.value;\n }\n return this.modelValue;\n },\n /**\n * The native HTML type to set on the button\n */\n nativeType() {\n if (this.type === \"submit\" || this.type === \"reset\") {\n return this.type;\n }\n return \"button\";\n },\n /**\n * HTML attributes to bind to the