@retailrocketgroup/retailrocket-edit.post-transaction-vue-email-template-render 6.0.388781 → 6.0.388803
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/dist/assets/index.js +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,14 +12,14 @@ rendering chunks...
|
|
|
12
12
|
|
|
13
13
|
[vite:dts] Start generate declaration files...
|
|
14
14
|
computing gzip size...
|
|
15
|
-
[vite:dts] Declaration files built in
|
|
15
|
+
[vite:dts] Declaration files built in 5506ms.
|
|
16
16
|
|
|
17
17
|
dist/index.html 7.48 kB │ gzip: 2.04 kB
|
|
18
18
|
dist/assets/index.css 175.28 kB │ gzip: 27.52 kB
|
|
19
|
-
dist/assets/index.js 3,963.33 kB │ gzip: 1,034.45 kB
|
|
20
19
|
|
|
21
20
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
22
21
|
- Using dynamic import() to code-split the application
|
|
22
|
+
dist/assets/index.js 3,963.35 kB │ gzip: 1,034.45 kB
|
|
23
23
|
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
24
|
+
✓ built in 19.17s
|
|
24
25
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
|
25
|
-
✓ built in 19.13s
|
package/dist/assets/index.js
CHANGED
|
@@ -190,7 +190,7 @@ ${h.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
190
190
|
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const o=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return o!==void 0?o:-1},tokenize(t,e,o){const n=i=>{const s=N9(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:o.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:n},o);return s?[{type:"taskList",raw:s.raw,items:s.items}]:o.blockTokens(i)},r=N9(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:o.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:n},o);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Wo.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(nWt.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(rWt.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(aWt.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(mWt.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(pWt.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(fWt.configure(this.options.taskList)),t}});vd.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Sa(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
191
191
|
`},renderMarkdown:()=>`
|
|
192
192
|
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:o,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=o;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Oae={},Wae={},Hae={},zae;function DJ(){return zae||(zae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?n():o(s)}t.Some=e,t.None=n();function o(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return o(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function n(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return n()},andThen(s){return n()},or(s){return s},and(s){return n()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(Hae)),Hae}var jae;function gWt(){return jae||(jae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=DJ();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function o(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return o(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return o(a(s))},mapLeft(a){return o(a(s))},mapRight(a){return o(s)}}}t.Left=o;function n(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return n(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return n(a(s))},mapLeft(a){return n(s)},mapRight(a){return n(a(s))}}}t.Right=n;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(Wae)),Wae}var Kae={},Uae;function yWt(){return Uae||(Uae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=DJ();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function o(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return o(a(s))},mapErr(a){return o(s)},andThen(a){return a(s)},orElse(a){return o(s)}}}t.Ok=o;function n(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return n(s)},mapErr(a){return n(a(s))},andThen(a){return n(s)},orElse(a){return a(s)}}}t.Err=n;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(Kae)),Kae}var qae;function CWt(){return qae||(qae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=gWt();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var o=DJ();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return o.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return o.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return o.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return o.Some}});var n=yWt();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return n.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return n.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return n.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return n.Ok}})})(Oae)),Oae}CWt();function mb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const o=Number(t);return isNaN(o)?String(t):isFinite(o)?`${o}${e}`:void 0}function Gae(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function J4(t,e){return e.every(o=>t.hasOwnProperty(o))}function bWt(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function vWt(t){return t==null?[]:Array.isArray(t)?t:[t]}function Jae(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function SWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function BLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(Gae(i)&&Gae(s)){n[r]=BLe(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function DF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(DF.cache.has(t))return DF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return DF.cache.set(t,e),e}DF.cache=new Map;function TWt(t){const e=ve({});nr(()=>{const n=t();for(const r in n)e[r]=n[r]},{flush:"sync"});const o={};for(const n in e)o[n]=Ye(()=>e[n]);return o}const hb=2.4,Yae=.2126729,Zae=.7151522,Xae=.072175,wWt=.55,xWt=.58,FWt=.57,kWt=.62,H_=.03,Qae=1.45,LWt=5e-4,EWt=1.25,_Wt=1.25,ele=.078,tle=12.82051282051282,z_=.06,ole=.001;function nle(t,e){const o=(t.r/255)**hb,n=(t.g/255)**hb,r=(t.b/255)**hb,i=(e.r/255)**hb,s=(e.g/255)**hb,a=(e.b/255)**hb;let l=o*Yae+n*Zae+r*Xae,u=i*Yae+s*Zae+a*Xae;if(l<=H_&&(l+=(H_-l)**Qae),u<=H_&&(u+=(H_-u)**Qae),Math.abs(u-l)<LWt)return 0;let c;if(u>l){const d=(u**wWt-l**xWt)*EWt;c=d<ole?0:d<ele?d-d*tle*z_:d-z_}else{const d=(u**kWt-l**FWt)*_Wt;c=d>-ole?0:d>-ele?d-d*tle*z_:d+z_}return c*100}function U9(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function BWt(t){return U9(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const rle=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,DWt={rgb:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),rgba:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),hsl:(t,e,o,n)=>ile({h:t,s:e,l:o,a:n}),hsla:(t,e,o,n)=>ile({h:t,s:e,l:o,a:n}),hsv:(t,e,o,n)=>vL({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>vL({h:t,s:e,v:o,a:n})};function gx(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&rle.test(t)){const{groups:e}=t.match(rle),{fn:o,values:n}=e,r=n.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(i)/100:parseFloat(i));return DWt[o](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length)||void 0,$Wt(e)}else if(typeof t=="object"){if(J4(t,["r","g","b"]))return t;if(J4(t,["h","s","l"]))return vL(DLe(t));if(J4(t,["h","s","v"]))return vL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
|
|
193
|
-
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function vL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function ile(t){return vL(DLe(t))}function DLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function $Wt(t){t=RWt(t);let[e,o,n,r]=SWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function RWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Jae(Jae(t,6),8,"F")),t}function AWt(t){const e=Math.abs(nle(gx(0),gx(t)));return Math.abs(nle(gx(16777215),gx(t)))>Math.min(e,50)?"#fff":"#000"}function KE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function JP(t,e){const o=Hs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function NWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:JP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const q9=Symbol.for("vuetify:defaults");function $Le(){const t=xo(q9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function VWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function IWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$Le();const n=JP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(VWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();nr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=NWt(q9,n);or(q9,Q(()=>s.value?BLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function PWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=KE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return bWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=$Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=IWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function MWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PWt:X)(e)}function OWt(t){const e=JP("useRender");e.render=t}function WWt(t){return TWt(()=>{const{class:e,style:o}=zWt(t);return{colorClasses:e,colorStyles:o}})}function HWt(t){const{colorClasses:e,colorStyles:o}=WWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function zWt(t){const e=Sr(t),o=[],n={};if(e.background)if(U9(e.background)){if(n.backgroundColor=e.background,!e.text&&BWt(e.background)){const r=gx(e.background);if(r.a==null||r.a===1){const i=AWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(U9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const jWt=KE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function KWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const UWt=KE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function qWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const GWt=Symbol.for("vuetify:locale");function JWt(){const t=xo(GWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const sle=Symbol.for("vuetify:theme"),YWt=KE({theme:String},"theme");function ZWt(t){JP("provideTheme");const e=xo(sle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return or(sle,i),i}const XWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function QWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function ale(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>YP(e))}function YP(t){let e=[];if(!t)return e;const o=XWt[t];if(t!==o){if(t.includes(","))return lle(t);if(t.includes("@"))return ale(t);o.includes(",")?e=lle(o):o.includes("@")?e=ale(o):o&&e.push(YP(o))}return[QWt(t,e)]}function lle(t){return t.replace(/\s/g,"").split(",").map(YP)}const eHt=KE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...jWt(),...UWt(),...YWt()},"VSkeletonLoader");MWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:eHt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=HWt(()=>t.color),{dimensionStyles:s}=KWt(t),{elevationClasses:a}=qWt(t),{themeClasses:l}=ZWt(t),{t:u}=JWt(),c=Q(()=>YP(vWt(t.type).join(",")));return OWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Oi="top",Ta="bottom",wa="right",Wi="left",ZP="auto",nT=[Oi,Ta,wa,Wi],zC="start",qv="end",RLe="clippingParents",$J="viewport",n1="popper",ALe="reference",G9=nT.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+qv])},[]),RJ=[].concat(nT,[ZP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+qv])},[]),NLe="beforeRead",VLe="read",ILe="afterRead",PLe="beforeMain",MLe="main",OLe="afterMain",WLe="beforeWrite",HLe="write",zLe="afterWrite",jLe=[NLe,VLe,ILe,PLe,MLe,OLe,WLe,HLe,zLe];function ad(t){return t?(t.nodeName||"").toLowerCase():null}function xa(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=xa(t).Element;return t instanceof e||t instanceof Element}function Fl(t){var e=xa(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function AJ(t){if(typeof ShadowRoot>"u")return!1;var e=xa(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function tHt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!Fl(i)||!ad(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function oHt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!Fl(r)||!ad(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const NJ={name:"applyStyles",enabled:!0,phase:"write",fn:tHt,effect:oHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,m3=Math.min,Gv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function KLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function Jv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&Fl(t)&&(r=t.offsetWidth>0&&Gv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Gv(n.height)/t.offsetHeight||1);var s=jC(t)?xa(t):window,a=s.visualViewport,l=!KLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function VJ(t){var e=Jv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function ULe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&AJ(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function eh(t){return xa(t).getComputedStyle(t)}function nHt(t){return["table","td","th"].indexOf(ad(t))>=0}function Qf(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function XP(t){return ad(t)==="html"?t:t.assignedSlot||t.parentNode||(AJ(t)?t.host:null)||Qf(t)}function ule(t){return!Fl(t)||eh(t).position==="fixed"?null:t.offsetParent}function rHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&Fl(t)){var n=eh(t);if(n.position==="fixed")return null}var r=XP(t);for(AJ(r)&&(r=r.host);Fl(r)&&["html","body"].indexOf(ad(r))<0;){var i=eh(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function UE(t){for(var e=xa(t),o=ule(t);o&&nHt(o)&&eh(o).position==="static";)o=ule(o);return o&&(ad(o)==="html"||ad(o)==="body"&&eh(o).position==="static")?e:o||rHt(t)||e}function IJ(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $F(t,e,o){return Gy(t,m3(e,o))}function iHt(t,e,o){var n=$F(t,e,o);return n>o?o:n}function qLe(){return{top:0,right:0,bottom:0,left:0}}function GLe(t){return Object.assign({},qLe(),t)}function JLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var sHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,GLe(typeof t!="number"?t:JLe(t,nT))};function aHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=IJ(a),u=[Wi,wa].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=sHt(r.padding,o),m=VJ(i),h=l==="y"?Oi:Wi,p=l==="y"?Ta:wa,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=UE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=$F(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function lHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||ULe(e.elements.popper,r)&&(e.elements.arrow=r))}const YLe={name:"arrow",enabled:!0,phase:"main",fn:aHt,effect:lHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yv(t){return t.split("-")[1]}var uHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Gv(o*r)/r||0,y:Gv(n*r)/r||0}}function cle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Wi,w=Oi,x=window;if(u){var F=UE(o),D="clientHeight",N="clientWidth";if(F===xa(o)&&(F=Qf(o),eh(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===Oi||(r===Wi||r===wa)&&i===qv){w=Ta;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===Wi||(r===Oi||r===Ta)&&i===qv){S=wa;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&uHt),L=c===!0?cHt({x:h,y:f},xa(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function dHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Yv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cle(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const PJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dHt,data:{}};var j_={passive:!0};function mHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=xa(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,j_)}),a&&l.addEventListener("resize",o.update,j_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,j_)}),a&&l.removeEventListener("resize",o.update,j_)}}const MJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mHt,data:{}};var hHt={left:"right",right:"left",bottom:"top",top:"bottom"};function s$(t){return t.replace(/left|right|bottom|top/g,function(e){return hHt[e]})}var pHt={start:"end",end:"start"};function dle(t){return t.replace(/start|end/g,function(e){return pHt[e]})}function OJ(t){var e=xa(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function WJ(t){return Jv(Qf(t)).left+OJ(t).scrollLeft}function fHt(t,e){var o=xa(t),n=Qf(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=KLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+WJ(t),y:l}}function gHt(t){var e,o=Qf(t),n=OJ(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+WJ(t),l=-n.scrollTop;return eh(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function HJ(t){var e=eh(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function ZLe(t){return["html","body","#document"].indexOf(ad(t))>=0?t.ownerDocument.body:Fl(t)&&HJ(t)?t:ZLe(XP(t))}function RF(t,e){var o;e===void 0&&(e=[]);var n=ZLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=xa(n),s=r?[i].concat(i.visualViewport||[],HJ(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(RF(XP(s)))}function Y9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function yHt(t,e){var o=Jv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function mle(t,e,o){return e===$J?Y9(fHt(t,o)):jC(e)?yHt(e,o):Y9(gHt(Qf(t)))}function CHt(t){var e=RF(XP(t)),o=["absolute","fixed"].indexOf(eh(t).position)>=0,n=o&&Fl(t)?UE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&ULe(r,n)&&ad(r)!=="body"}):[]}function bHt(t,e,o,n){var r=e==="clippingParents"?CHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=mle(t,u,n);return l.top=Gy(c.top,l.top),l.right=m3(c.right,l.right),l.bottom=m3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},mle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function XLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Yv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Oi:l={x:s,y:e.y-o.height};break;case Ta:l={x:s,y:e.y+e.height};break;case wa:l={x:e.x+e.width,y:a};break;case Wi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?IJ(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case qv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Zv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?RLe:a,u=o.rootBoundary,c=u===void 0?$J:u,d=o.elementContext,m=d===void 0?n1:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=GLe(typeof g!="number"?g:JLe(g,nT)),v=m===n1?ALe:n1,S=t.rects.popper,w=t.elements[p?v:m],x=bHt(jC(w)?w:w.contextElement||Qf(t.elements.popper),l,c,s),F=Jv(t.elements.reference),D=XLe({reference:F,element:S,placement:r}),N=Y9(Object.assign({},S,D)),R=m===n1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===n1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[wa,Ta].indexOf(A)>=0?1:-1,W=[Oi,Ta].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function vHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?RJ:l,c=Yv(n),d=c?a?G9:G9.filter(function(p){return Yv(p)===c}):nT,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=Zv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function SHt(t){if(Kc(t)===ZP)return[];var e=s$(t);return[dle(t),e,dle(e)]}function THt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!p?[s$(g)]:SHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===ZP?vHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Kc(E),A=Yv(E)===zC,I=[Oi,Ta].indexOf(L)>=0,W=I?"width":"height",O=Zv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?wa:Wi:A?Ta:Oi;x[W]>F[W]&&(K=s$(K));var fe=s$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ve)}if(N)for(var Se=p?3:1,J=function(me){var H=w.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=J(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const QLe={name:"flip",enabled:!0,phase:"main",fn:THt,requiresIfExists:["offset"],data:{_skip:!1}};function hle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function ple(t){return[Oi,wa,Ta,Wi].some(function(e){return t[e]>=0})}function wHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Zv(e,{elementContext:"reference"}),a=Zv(e,{altBoundary:!0}),l=hle(s,n),u=hle(a,r,i),c=ple(l),d=ple(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const eEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wHt};function xHt(t,e,o){var n=Kc(t),r=[Wi,Oi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Wi,wa].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function FHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=RJ.reduce(function(c,d){return c[d]=xHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const tEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:FHt};function kHt(t){var e=t.state,o=t.name;e.modifiersData[o]=XLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const zJ={name:"popperOffsets",enabled:!0,phase:"read",fn:kHt,data:{}};function LHt(t){return t==="x"?"y":"x"}function EHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=Zv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Yv(e.placement),S=!v,w=IJ(b),x=LHt(w),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=w==="y"?Oi:Wi,W=w==="y"?Ta:wa,O=w==="y"?"height":"width",K=F[w],fe=K+g[I],Ve=K-g[W],Se=h?-N[O]/2:0,J=v===zC?D[O]:N[O],Ae=v===zC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?VJ(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qLe(),be=H[I],le=H[W],ue=$F(0,D[O],me[O]),Nt=S?D[O]/2-Se-ue-be-P.mainAxis:J-ue-be-P.mainAxis,Vt=S?-D[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&UE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=$F(h?m3(fe,ee):fe,K,h?Gy(Ve,oe):Ve);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?Oi:Wi,pe=w==="x"?Ta:wa,te=F[x],ne=x==="y"?"height":"width",Je=te+g[de],we=te-g[pe],Te=[Oi,Wi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=Te?Je:te-D[ne]-N[ne]-xe+P.altAxis,Ce=Te?te+D[ne]+N[ne]-xe-P.altAxis:we,Qe=h&&Te?iHt(Ne,te,Ce):$F(h?Ne:Je,te,h?Ce:we);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const oEe={name:"preventOverflow",enabled:!0,phase:"main",fn:EHt,requiresIfExists:["offset"]};function _Ht(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function BHt(t){return t===xa(t)||!Fl(t)?OJ(t):_Ht(t)}function DHt(t){var e=t.getBoundingClientRect(),o=Gv(e.width)/t.offsetWidth||1,n=Gv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function $Ht(t,e,o){o===void 0&&(o=!1);var n=Fl(e),r=Fl(e)&&DHt(e),i=Qf(e),s=Jv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ad(e)!=="body"||HJ(i))&&(a=BHt(e)),Fl(e)?(l=Jv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=WJ(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function RHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function AHt(t){var e=RHt(t);return jLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function NHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function VHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var fle={placement:"bottom",modifiers:[],strategy:"absolute"};function gle(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function QP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?fle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?RF(s):s.contextElement?RF(s.contextElement):[],popper:RF(a)};var b=AHt(VHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(gle(g,b)){u.rects={reference:$Ht(g,UE(b),u.options.strategy==="fixed"),popper:VJ(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],w=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:D,instance:m})||u)}}}},update:NHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!gle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var IHt=QP(),PHt=[MJ,zJ,PJ,NJ],MHt=QP({defaultModifiers:PHt}),OHt=[MJ,zJ,PJ,NJ,tEe,QLe,oEe,YLe,eEe],jJ=QP({defaultModifiers:OHt});const nEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:OLe,afterRead:ILe,afterWrite:zLe,applyStyles:NJ,arrow:YLe,auto:ZP,basePlacements:nT,beforeMain:PLe,beforeRead:NLe,beforeWrite:WLe,bottom:Ta,clippingParents:RLe,computeStyles:PJ,createPopper:jJ,createPopperBase:IHt,createPopperLite:MHt,detectOverflow:Zv,end:qv,eventListeners:MJ,flip:QLe,hide:eEe,left:Wi,main:MLe,modifierPhases:jLe,offset:tEe,placements:RJ,popper:n1,popperGenerator:QP,popperOffsets:zJ,preventOverflow:oEe,read:VLe,reference:ALe,right:wa,start:zC,top:Oi,variationPlacements:G9,viewport:$J,write:HLe},Symbol.toStringTag,{value:"Module"})),qh=new Map,Y4={set(t,e,o){qh.has(t)||qh.set(t,new Map);const n=qh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return qh.has(t)&&qh.get(t).get(e)||null},remove(t,e){if(!qh.has(t))return;const o=qh.get(t);o.delete(e),o.size===0&&qh.delete(t)}},WHt=1e6,HHt=1e3,Z9="transitionend",rEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),zHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),jHt=t=>{do t+=Math.floor(Math.random()*WHt);while(document.getElementById(t));return t},KHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*HHt)},iEe=t=>{t.dispatchEvent(new Event(Z9))},_m=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ff=t=>_m(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(rEe(t)):null,rT=t=>{if(!_m(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},kf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",sEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?sEe(t.parentNode):null},h3=()=>{},qE=t=>{t.offsetHeight},aEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Z4=[],UHt=t=>{document.readyState==="loading"?(Z4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Z4)e()}),Z4.push(t)):t()},Vl=()=>document.documentElement.dir==="rtl",Xl=t=>{UHt(()=>{const e=aEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},ws=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,lEe=(t,e,o=!0)=>{if(!o){ws(t);return}const n=KHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Z9,i),ws(t))};e.addEventListener(Z9,i),setTimeout(()=>{r||iEe(e)},n)},KJ=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},qHt=/[^.]*(?=\..*)\.|.*/,GHt=/\..*/,JHt=/::\d+$/,X4={};let yle=1;const uEe={mouseenter:"mouseover",mouseleave:"mouseout"},YHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function cEe(t,e){return e&&`${e}::${yle++}`||t.uidEvent||yle++}function dEe(t){const e=cEe(t);return t.uidEvent=e,X4[e]=X4[e]||{},X4[e]}function ZHt(t,e){return function o(n){return UJ(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function XHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return UJ(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function mEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function hEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=pEe(t);return YHt.has(i)||(i=t),[n,r,i]}function Cle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=hEe(e,o,n);e in uEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=dEe(t),u=l[a]||(l[a]={}),c=mEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=cEe(s,e.replace(qHt,"")),m=i?XHt(t,o,s):ZHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function X9(t,e,o,n,r){const i=mEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function QHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&X9(t,e,o,s.callable,s.delegationSelector)}function pEe(t){return t=t.replace(GHt,""),uEe[t]||t}const Ee={on(t,e,o,n){Cle(t,e,o,n,!1)},one(t,e,o,n){Cle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=hEe(e,o,n),a=s!==e,l=dEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;X9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))QHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(JHt,"");(!a||e.includes(h))&&X9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=aEe(),r=pEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=UJ(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function UJ(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function ble(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Q4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${Q4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Q4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=ble(t.dataset[n])}return e},getDataAttribute(t,e){return ble(t.getAttribute(`data-bs-${Q4(e)}`))}};let GE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=_m(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},..._m(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=_m(i)?"element":zHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const e7t="5.3.8";let Zu=class extends GE{constructor(e,o){super(),e=Ff(e),e&&(this._element=e,this._config=this._getConfig(o),Y4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Y4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){lEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Y4.get(Ff(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return e7t}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const e5=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>rEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!kf(o)&&rT(o))},getSelectorFromElement(t){const e=e5(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=e5(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=e5(t);return e?vt.find(e):[]}},eM=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),kf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},t7t="alert",o7t="bs.alert",fEe=`.${o7t}`,n7t=`close${fEe}`,r7t=`closed${fEe}`,i7t="fade",s7t="show";let gEe=class yEe extends Zu{static get NAME(){return t7t}close(){if(Ee.trigger(this._element,n7t).defaultPrevented)return;this._element.classList.remove(s7t);const e=this._element.classList.contains(i7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,r7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=yEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};eM(gEe,"close");Xl(gEe);const a7t="button",l7t="bs.button",u7t=`.${l7t}`,c7t=".data-api",d7t="active",vle='[data-bs-toggle="button"]',m7t=`click${u7t}${c7t}`;let CEe=class bEe extends Zu{static get NAME(){return a7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(d7t))}static jQueryInterface(e){return this.each(function(){const o=bEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,m7t,vle,t=>{t.preventDefault();const e=t.target.closest(vle);CEe.getOrCreateInstance(e).toggle()});Xl(CEe);const h7t="swipe",iT=".bs.swipe",p7t=`touchstart${iT}`,f7t=`touchmove${iT}`,g7t=`touchend${iT}`,y7t=`pointerdown${iT}`,C7t=`pointerup${iT}`,b7t="touch",v7t="pen",S7t="pointer-event",T7t=40,w7t={endCallback:null,leftCallback:null,rightCallback:null},x7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let Sle=class vEe extends GE{constructor(e,o){super(),this._element=e,!(!e||!vEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return w7t}static get DefaultType(){return x7t}static get NAME(){return h7t}dispose(){Ee.off(this._element,iT)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ws(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=T7t)return;const o=e/this._deltaX;this._deltaX=0,o&&ws(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,y7t,e=>this._start(e)),Ee.on(this._element,C7t,e=>this._end(e)),this._element.classList.add(S7t)):(Ee.on(this._element,p7t,e=>this._start(e)),Ee.on(this._element,f7t,e=>this._move(e)),Ee.on(this._element,g7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===v7t||e.pointerType===b7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const F7t="carousel",k7t="bs.carousel",eg=`.${k7t}`,SEe=".data-api",L7t="ArrowLeft",E7t="ArrowRight",_7t=500,hw="next",pb="prev",r1="left",a$="right",B7t=`slide${eg}`,t5=`slid${eg}`,D7t=`keydown${eg}`,$7t=`mouseenter${eg}`,R7t=`mouseleave${eg}`,A7t=`dragstart${eg}`,N7t=`load${eg}${SEe}`,V7t=`click${eg}${SEe}`,TEe="carousel",K_="active",I7t="slide",P7t="carousel-item-end",M7t="carousel-item-start",O7t="carousel-item-next",W7t="carousel-item-prev",wEe=".active",xEe=".carousel-item",H7t=wEe+xEe,z7t=".carousel-item img",j7t=".carousel-indicators",K7t="[data-bs-slide], [data-bs-slide-to]",U7t='[data-bs-ride="carousel"]',q7t={[L7t]:a$,[E7t]:r1},G7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},J7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let qJ=class FEe extends Zu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(j7t,this._element),this._addEventListeners(),this._config.ride===TEe&&this.cycle()}static get Default(){return G7t}static get DefaultType(){return J7t}static get NAME(){return F7t}next(){this._slide(hw)}nextWhenVisible(){!document.hidden&&rT(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&iEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,t5,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,t5,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?hw:pb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,D7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,$7t,()=>this.pause()),Ee.on(this._element,R7t,()=>this._maybeEnableCycle())),this._config.touch&&Sle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(z7t,this._element))Ee.on(o,A7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(r1)),rightCallback:()=>this._slide(this._directionToOrder(a$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_7t+this._config.interval))}};this._swipeHelper=new Sle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=q7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(wEe,this._indicatorsElement);o.classList.remove(K_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(K_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===hw,i=o||KJ(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(B7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?M7t:P7t,c=r?O7t:W7t;i.classList.add(c),qE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(K_),n.classList.remove(K_,c,u),this._isSliding=!1,a(t5)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(I7t)}_getActive(){return vt.findOne(H7t,this._element)}_getItems(){return vt.find(xEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Vl()?e===r1?pb:hw:e===r1?hw:pb}_orderToDirection(e){return Vl()?e===pb?r1:a$:e===pb?a$:r1}static jQueryInterface(e){return this.each(function(){const o=FEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,V7t,K7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(TEe))return;t.preventDefault();const o=qJ.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,N7t,()=>{const t=vt.find(U7t);for(const e of t)qJ.getOrCreateInstance(e)});Xl(qJ);const Y7t="collapse",Z7t="bs.collapse",JE=`.${Z7t}`,X7t=".data-api",Q7t=`show${JE}`,e8t=`shown${JE}`,t8t=`hide${JE}`,o8t=`hidden${JE}`,n8t=`click${JE}${X7t}`,o5="show",j1="collapse",U_="collapsing",r8t="collapsed",i8t=`:scope .${j1} .${j1}`,s8t="collapse-horizontal",a8t="width",l8t="height",u8t=".collapse.show, .collapse.collapsing",Q9='[data-bs-toggle="collapse"]',c8t={parent:null,toggle:!0},d8t={parent:"(null|element)",toggle:"boolean"};let kEe=class ez extends Zu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(Q9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return c8t}static get DefaultType(){return d8t}static get NAME(){return Y7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(u8t).filter(i=>i!==this._element).map(i=>ez.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Q7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(j1),this._element.classList.add(U_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(j1,o5),this._element.style[o]="",Ee.trigger(this._element,e8t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,t8t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qE(this._element),this._element.classList.add(U_),this._element.classList.remove(j1,o5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(j1),Ee.trigger(this._element,o8t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(o5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ff(e.parent),e}_getDimension(){return this._element.classList.contains(s8t)?a8t:l8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Q9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(i8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(r8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=ez.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,n8t,Q9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))kEe.getOrCreateInstance(e,{toggle:!1}).toggle()});Xl(kEe);const Tle="dropdown",m8t="bs.dropdown",S0=`.${m8t}`,GJ=".data-api",h8t="Escape",wle="Tab",p8t="ArrowUp",xle="ArrowDown",f8t=2,g8t=`hide${S0}`,y8t=`hidden${S0}`,C8t=`show${S0}`,b8t=`shown${S0}`,LEe=`click${S0}${GJ}`,EEe=`keydown${S0}${GJ}`,v8t=`keyup${S0}${GJ}`,i1="show",S8t="dropup",T8t="dropend",w8t="dropstart",x8t="dropup-center",F8t="dropdown-center",dy='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',k8t=`${dy}.${i1}`,l$=".dropdown-menu",L8t=".navbar",E8t=".navbar-nav",_8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",B8t=Vl()?"top-end":"top-start",D8t=Vl()?"top-start":"top-end",$8t=Vl()?"bottom-end":"bottom-start",R8t=Vl()?"bottom-start":"bottom-end",A8t=Vl()?"left-start":"right-start",N8t=Vl()?"right-start":"left-start",V8t="top",I8t="bottom",P8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},M8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let sT=class u$ extends Zu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,l$)[0]||vt.prev(this._element,l$)[0]||vt.findOne(l$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return P8t}static get DefaultType(){return M8t}static get NAME(){return Tle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(kf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,C8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(E8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",h3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(i1),this._element.classList.add(i1),Ee.trigger(this._element,b8t,e)}}hide(){if(kf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,g8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",h3);this._popper&&this._popper.destroy(),this._menu.classList.remove(i1),this._element.classList.remove(i1),this._element.setAttribute("aria-expanded","false"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,y8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!_m(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Tle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof nEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:_m(this._config.reference)?e=Ff(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=jJ(e,this._menu,o)}_isShown(){return this._menu.classList.contains(i1)}_getPlacement(){const e=this._parent;if(e.classList.contains(T8t))return A8t;if(e.classList.contains(w8t))return N8t;if(e.classList.contains(x8t))return V8t;if(e.classList.contains(F8t))return I8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(S8t)?o?D8t:B8t:o?R8t:$8t}_detectNavbar(){return this._element.closest(L8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...ws(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(_8t,this._menu).filter(r=>rT(r));n.length&&KJ(n,o,e===xle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=u$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===f8t||e.type==="keyup"&&e.key!==wle)return;const o=vt.find(k8t);for(const n of o){const r=u$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===wle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===h8t,r=[p8t,xle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(dy)?this:vt.prev(this,dy)[0]||vt.next(this,dy)[0]||vt.findOne(dy,e.delegateTarget.parentNode),s=u$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,EEe,dy,sT.dataApiKeydownHandler);Ee.on(document,EEe,l$,sT.dataApiKeydownHandler);Ee.on(document,LEe,sT.clearMenus);Ee.on(document,v8t,sT.clearMenus);Ee.on(document,LEe,dy,function(t){t.preventDefault(),sT.getOrCreateInstance(this).toggle()});Xl(sT);const _Ee="backdrop",O8t="fade",Fle="show",kle=`mousedown.bs.${_Ee}`,W8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},H8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let BEe=class extends GE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return W8t}static get DefaultType(){return H8t}static get NAME(){return _Ee}show(e){if(!this._config.isVisible){ws(e);return}this._append();const o=this._getElement();this._config.isAnimated&&qE(o),o.classList.add(Fle),this._emulateAnimation(()=>{ws(e)})}hide(e){if(!this._config.isVisible){ws(e);return}this._getElement().classList.remove(Fle),this._emulateAnimation(()=>{this.dispose(),ws(e)})}dispose(){this._isAppended&&(Ee.off(this._element,kle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(O8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ff(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,kle,()=>{ws(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){lEe(e,this._getElement(),this._config.isAnimated)}};const z8t="focustrap",j8t="bs.focustrap",p3=`.${j8t}`,K8t=`focusin${p3}`,U8t=`keydown.tab${p3}`,q8t="Tab",G8t="forward",Lle="backward",J8t={autofocus:!0,trapElement:null},Y8t={autofocus:"boolean",trapElement:"element"};let DEe=class extends GE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return J8t}static get DefaultType(){return Y8t}static get NAME(){return z8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,p3),Ee.on(document,K8t,e=>this._handleFocusin(e)),Ee.on(document,U8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,p3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Lle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===q8t&&(this._lastTabNavDirection=e.shiftKey?Lle:G8t)}};const Ele=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_le=".sticky-top",q_="padding-right",Ble="margin-right";let tz=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,q_,o=>o+e),this._setElementAttributes(Ele,q_,o=>o+e),this._setElementAttributes(_le,Ble,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,q_),this._resetElementAttributes(Ele,q_),this._resetElementAttributes(_le,Ble)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(_m(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const Z8t="modal",X8t="bs.modal",Il=`.${X8t}`,Q8t=".data-api",e9t="Escape",t9t=`hide${Il}`,o9t=`hidePrevented${Il}`,$Ee=`hidden${Il}`,REe=`show${Il}`,n9t=`shown${Il}`,r9t=`resize${Il}`,i9t=`click.dismiss${Il}`,s9t=`mousedown.dismiss${Il}`,a9t=`keydown.dismiss${Il}`,l9t=`click${Il}${Q8t}`,Dle="modal-open",u9t="fade",$le="show",n5="modal-static",c9t=".modal.show",d9t=".modal-dialog",m9t=".modal-body",h9t='[data-bs-toggle="modal"]',p9t={backdrop:!0,focus:!0,keyboard:!0},f9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let f3=class AEe extends Zu{constructor(e,o){super(e,o),this._dialog=vt.findOne(d9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new tz,this._addEventListeners()}static get Default(){return p9t}static get DefaultType(){return f9t}static get NAME(){return Z8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,REe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Dle),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,t9t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove($le),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Il),Ee.off(this._dialog,Il),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new BEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new DEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(m9t,this._dialog);o&&(o.scrollTop=0),qE(this._element),this._element.classList.add($le);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,n9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,a9t,e=>{if(e.key===e9t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,r9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,s9t,e=>{Ee.one(this._element,i9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Dle),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,$Ee)})}_isAnimated(){return this._element.classList.contains(u9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,o9t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(n5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(n5),this._queueCallback(()=>{this._element.classList.remove(n5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Vl()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Vl()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=AEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,l9t,h9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,REe,n=>{n.defaultPrevented||Ee.one(e,$Ee,()=>{rT(this)&&this.focus()})});const o=vt.findOne(c9t);o&&f3.getInstance(o).hide(),f3.getOrCreateInstance(e).toggle(this)});eM(f3);Xl(f3);const g9t="offcanvas",y9t="bs.offcanvas",Sh=`.${y9t}`,NEe=".data-api",C9t=`load${Sh}${NEe}`,b9t="Escape",Rle="show",Ale="showing",Nle="hiding",v9t="offcanvas-backdrop",VEe=".offcanvas.show",S9t=`show${Sh}`,T9t=`shown${Sh}`,w9t=`hide${Sh}`,Vle=`hidePrevented${Sh}`,IEe=`hidden${Sh}`,x9t=`resize${Sh}`,F9t=`click${Sh}${NEe}`,k9t=`keydown.dismiss${Sh}`,L9t='[data-bs-toggle="offcanvas"]',E9t={backdrop:!0,keyboard:!0,scroll:!1},_9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Xv=class PEe extends Zu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return E9t}static get DefaultType(){return _9t}static get NAME(){return g9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,S9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new tz().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ale);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Rle),this._element.classList.remove(Ale),Ee.trigger(this._element,T9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,w9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Nle),this._backdrop.hide();const e=()=>{this._element.classList.remove(Rle,Nle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new tz().reset(),Ee.trigger(this._element,IEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Vle);return}this.hide()},o=!!this._config.backdrop;return new BEe({className:v9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new DEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,k9t,e=>{if(e.key===b9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Vle)}})}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,F9t,L9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),kf(this))return;Ee.one(e,IEe,()=>{rT(this)&&this.focus()});const o=vt.findOne(VEe);o&&o!==e&&Xv.getInstance(o).hide(),Xv.getOrCreateInstance(e).toggle(this)});Ee.on(window,C9t,()=>{for(const t of vt.find(VEe))Xv.getOrCreateInstance(t).show()});Ee.on(window,x9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Xv.getOrCreateInstance(t).hide()});eM(Xv);Xl(Xv);const B9t=/^aria-[\w-]*$/i,MEe={"*":["class","dir","id","lang","role",B9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},D9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),$9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,R9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?D9t.has(o)?!!$9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function A9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)R9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const N9t="TemplateFactory",V9t={allowList:MEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},I9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},P9t={entry:"(string|element|function|null)",selector:"(string|element)"};let M9t=class extends GE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return V9t}static get DefaultType(){return I9t}static get NAME(){return N9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},P9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(_m(o)){this._putElementInTemplate(Ff(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?A9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ws(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const O9t="tooltip",W9t=new Set(["sanitize","allowList","sanitizeFn"]),r5="fade",H9t="modal",G_="show",z9t=".tooltip-inner",Ile=`.${H9t}`,Ple="hide.bs.modal",pw="hover",i5="focus",s5="click",j9t="manual",K9t="hide",U9t="hidden",q9t="show",G9t="shown",J9t="inserted",Y9t="click",Z9t="focusin",X9t="focusout",Q9t="mouseenter",ezt="mouseleave",tzt={AUTO:"auto",TOP:"top",RIGHT:Vl()?"left":"right",BOTTOM:"bottom",LEFT:Vl()?"right":"left"},ozt={allowList:MEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},nzt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let tM=class OEe extends Zu{constructor(e,o){if(typeof nEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ozt}static get DefaultType(){return nzt}static get NAME(){return O9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Ile),Ple,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(q9t)),o=(sEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(J9t))),this._popper=this._createPopper(n),n.classList.add(G_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",h3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(G9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(K9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(G_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",h3);this._activeTrigger[s5]=!1,this._activeTrigger[i5]=!1,this._activeTrigger[pw]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(U9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(r5,G_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=jHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(r5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new M9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[z9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(r5)}_isShown(){return this.tip&&this.tip.classList.contains(G_)}_createPopper(e){const o=ws(this._config.placement,[this,e,this._element]),n=tzt[o.toUpperCase()];return jJ(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return ws(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...ws(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(Y9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[s5]=!(r._isShown()&&r._activeTrigger[s5]),r.toggle()});else if(o!==j9t){const n=o===pw?this.constructor.eventName(Q9t):this.constructor.eventName(Z9t),r=o===pw?this.constructor.eventName(ezt):this.constructor.eventName(X9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?i5:pw]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?i5:pw]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Ile),Ple,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))W9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ff(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Xl(tM);const rzt="popover",izt=".popover-header",szt=".popover-body",azt={...tM.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},lzt={...tM.DefaultType,content:"(null|string|element|function)"};let uzt=class WEe extends tM{static get Default(){return azt}static get DefaultType(){return lzt}static get NAME(){return rzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[izt]:this._getTitle(),[szt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=WEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Xl(uzt);const czt="scrollspy",dzt="bs.scrollspy",JJ=`.${dzt}`,mzt=".data-api",hzt=`activate${JJ}`,Mle=`click${JJ}`,pzt=`load${JJ}${mzt}`,fzt="dropdown-item",fb="active",gzt='[data-bs-spy="scroll"]',a5="[href]",yzt=".nav, .list-group",Ole=".nav-link",Czt=".nav-item",bzt=".list-group-item",vzt=`${Ole}, ${Czt} > ${Ole}, ${bzt}`,Szt=".dropdown",Tzt=".dropdown-toggle",wzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},xzt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let HEe=class zEe extends Zu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return wzt}static get DefaultType(){return xzt}static get NAME(){return czt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ff(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Mle),Ee.on(this._config.target,Mle,a5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(a5,this._config.target);for(const o of e){if(!o.hash||kf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);rT(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,hzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(fzt)){vt.findOne(Tzt,e.closest(Szt)).classList.add(fb);return}for(const o of vt.parents(e,yzt))for(const n of vt.prev(o,vzt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${a5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=zEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,pzt,()=>{for(const t of vt.find(gzt))HEe.getOrCreateInstance(t)});Xl(HEe);const Fzt="tab",kzt="bs.tab",T0=`.${kzt}`,Lzt=`hide${T0}`,Ezt=`hidden${T0}`,_zt=`show${T0}`,Bzt=`shown${T0}`,Dzt=`click${T0}`,$zt=`keydown${T0}`,Rzt=`load${T0}`,Azt="ArrowLeft",Wle="ArrowRight",Nzt="ArrowUp",Hle="ArrowDown",l5="Home",zle="End",my="active",jle="fade",u5="show",Vzt="dropdown",jEe=".dropdown-toggle",Izt=".dropdown-menu",c5=`:not(${jEe})`,Pzt='.list-group, .nav, [role="tablist"]',Mzt=".nav-item, .list-group-item",Ozt=`.nav-link${c5}, .list-group-item${c5}, [role="tab"]${c5}`,KEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',d5=`${Ozt}, ${KEe}`,Wzt=`.${my}[data-bs-toggle="tab"], .${my}[data-bs-toggle="pill"], .${my}[data-bs-toggle="list"]`;let YJ=class oz extends Zu{constructor(e){super(e),this._parent=this._element.closest(Pzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,$zt,o=>this._keydown(o)))}static get NAME(){return Fzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Lzt,{relatedTarget:e}):null;Ee.trigger(e,_zt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(my),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(u5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Bzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(jle))}_deactivate(e,o){if(!e)return;e.classList.remove(my),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(u5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Ezt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(jle))}_keydown(e){if(![Azt,Wle,Nzt,Hle,l5,zle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!kf(r));let n;if([l5,zle].includes(e.key))n=o[e.key===l5?0:o.length-1];else{const r=[Wle,Hle].includes(e.key);n=KJ(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),oz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(d5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Vzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(jEe,my),r(Izt,u5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(my)}_getInnerElement(e){return e.matches(d5)?e:vt.findOne(d5,e)}_getOuterElement(e){return e.closest(Mzt)||e}static jQueryInterface(e){return this.each(function(){const o=oz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Dzt,KEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!kf(this)&&YJ.getOrCreateInstance(this).show()});Ee.on(window,Rzt,()=>{for(const t of vt.find(Wzt))YJ.getOrCreateInstance(t)});Xl(YJ);const Hzt="toast",zzt="bs.toast",tg=`.${zzt}`,jzt=`mouseover${tg}`,Kzt=`mouseout${tg}`,Uzt=`focusin${tg}`,qzt=`focusout${tg}`,Gzt=`hide${tg}`,Jzt=`hidden${tg}`,Yzt=`show${tg}`,Zzt=`shown${tg}`,Xzt="fade",Kle="hide",J_="show",Y_="showing",Qzt={animation:"boolean",autohide:"boolean",delay:"number"},ejt={animation:!0,autohide:!0,delay:5e3};let UEe=class qEe extends Zu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ejt}static get DefaultType(){return Qzt}static get NAME(){return Hzt}show(){if(Ee.trigger(this._element,Yzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Xzt);const e=()=>{this._element.classList.remove(Y_),Ee.trigger(this._element,Zzt),this._maybeScheduleHide()};this._element.classList.remove(Kle),qE(this._element),this._element.classList.add(J_,Y_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Gzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Kle),this._element.classList.remove(Y_,J_),Ee.trigger(this._element,Jzt)};this._element.classList.add(Y_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(J_),super.dispose()}isShown(){return this._element.classList.contains(J_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,jzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Uzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,qzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=qEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};eM(UEe);Xl(UEe);const oM=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),tjt=t=>{throw new Error("Didn't expect to get here"+t)},ojt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];vh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});vh.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});vh.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});vh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});vh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});vh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",Sa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});vh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return ojt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const njt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});vd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Sa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[J4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new Hn({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&njt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const GEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),rjt=t=>oM(t),ijt=t=>oM(t),sjt=t=>oM(t),ajt=t=>oM(t),ljt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),ujt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),cjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),djt=t=>{const e=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>ajt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},mjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),hjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),pjt=t=>{const e=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=hjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>sjt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},fjt=t=>{const e=djt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=pjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>ijt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},gjt=t=>{const e=fjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>rjt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},yjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),Cjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),bjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>t.productImageResizerUrl?t.productImageResizerUrl:e+"/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both")},vjt=t=>({localeKey:t.localeKey}),Sjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:Sjt({localeKey:t.localeKey})}),wjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:vjt({localeKey:t.localeKey}),saveTemplateButtonDeps:Tjt({localeKey:t.localeKey})}),xjt=t=>({localeKey:t.localeKey}),Fjt=t=>({localeKey:t.localeKey}),kjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:Fjt({localeKey:t.localeKey})}),Ljt=t=>({exportMenuDeps:wjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:xjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:kjt({localeKey:t.localeKey})}),Ejt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),_jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Ejt(e))}),Bjt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>_jt(e)),Djt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",$jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),JEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>$jt(e)),Rjt=t=>({localeKey:t.localeKey,addThemeSectionItem:Djt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ajt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Ajt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),Vjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Ijt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Vjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Mjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ojt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Mjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Wjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Hjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),zjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},jjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:zjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Kjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),YEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Kjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Rjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Ujt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:YEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),qjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Gjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:qjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Jjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},ZEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Yjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Jjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:ZEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Xjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Xjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),eKt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),tKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),oKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},nKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:oKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),rKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),iKt=t=>({emailComponentDeps:t.emailComponentDeps}),sKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:iKt({emailComponentDeps:t.emailComponentDeps})}),aKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:sKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),lKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:rKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:aKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),uKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:YEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Ujt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),cKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},dKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:cKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:ZEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),mKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),hKt=t=>({localeKey:t.localeKey}),pKt=t=>({movementMenuDeps:mKt({localeKey:t.localeKey}),draggingMenuDeps:hKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:dKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),fKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:pKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey}),bKt=t=>({localeKey:t.localeKey}),vKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:bKt({localeKey:t.localeKey})}),ZJ=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:CKt({localeKey:t.localeKey}),customFontSettingsDeps:vKt({localeKey:t.localeKey})}),SKt=t=>({removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),truncateSpanEditorDeps:yKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:ZJ({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey}),XEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:TKt({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:XEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),XJ=t=>({localeKey:t.localeKey}),xKt=t=>({localeKey:t.localeKey,borderEditorDeps:XEe({localeKey:t.localeKey}),colorEditorDeps:XJ({localeKey:t.localeKey}),fontStyleEditorDeps:ZJ({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),fontStyleEditorDeps:ZJ({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),colorEditorDeps:XJ({localeKey:t.localeKey})}),EKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),_Kt=t=>({spanEditorDeps:SKt({localeKey:t.localeKey}),imageEditorDeps:wKt({localeKey:t.localeKey}),buttonEditorDeps:xKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:FKt({localeKey:t.localeKey}),backgroundImageEditorDeps:kKt({localeKey:t.localeKey}),spacerEditorDeps:LKt({localeKey:t.localeKey}),richTextEditorDeps:EKt({localeKey:t.localeKey})}),BKt=t=>({localeKey:t.localeKey,colorEditorDeps:XJ({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),DKt=t=>{const e=gjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=QIt({localeKey:t.localeKey,elementsDeps:wPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Ljt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Bjt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:fKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:gKt({localeKey:t.localeKey}),elementsEditorDeps:_Kt({localeKey:t.localeKey}),emailComponentEditorDeps:BKt({localeKey:t.localeKey}),template:t.template}},Xu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),RKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),AKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),NKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),QJ=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:tjt(t.stockSource)}},VKt=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>QEe(r))},IKt=t=>({localeKey:t.localeKey}),PKt=t=>({selectedProductListItemDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:PKt({localeKey:t.localeKey}),emptyProductListDeps:MKt({localeKey:t.localeKey})}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({localeKey:t.localeKey}),zKt=t=>({localeKey:t.localeKey}),jKt=t=>({searchedProductListItemDeps:HKt({localeKey:t.localeKey}),emptySearchProductListDeps:zKt({localeKey:t.localeKey})}),KKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:WKt({localeKey:t.localeKey}),searchedProductListDeps:jKt({localeKey:t.localeKey})}),UKt=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>QEe(r))},qKt=t=>{const e=UKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=VKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:OKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:KKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},GKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},e2e=t=>async e=>(await JKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>GKt(o)),YKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),ZKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},XKt=t=>async e=>(await ZKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>YKt(o)),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:QKt({localeKey:t.localeKey})}),tUt=t=>({localeKey:t.localeKey}),oUt=t=>({localeKey:t.localeKey}),nUt=t=>({emptySearchCategoryListDeps:oUt({localeKey:t.localeKey})}),rUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:tUt({localeKey:t.localeKey}),searchedCategoryListDeps:nUt({localeKey:t.localeKey})}),t2e=t=>{const e={},o=e2e({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=XKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:eUt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:rUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},iUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),eY=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>iUt(r))},sUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),aUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),lUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),uUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:e2e({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:t2e({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),o2e=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),w0=t=>GEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:o2e(t.parameters),DiscountPercentage:t.discountPercentage}),cUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>w0(e));var dUt=typeof global=="object"&&global&&global.Object===Object&&global,mUt=typeof self=="object"&&self&&self.Object===Object&&self,hUt=dUt||mUt||Function("return this")(),g3=hUt.Symbol;g3&&g3.toStringTag;g3&&g3.toStringTag;const{entries:n2e,setPrototypeOf:Ule,isFrozen:pUt,getPrototypeOf:fUt,getOwnPropertyDescriptor:gUt}=Object;let{freeze:rs,seal:Pl,create:nz}=Object,{apply:rz,construct:iz}=typeof Reflect<"u"&&Reflect;rs||(rs=function(t){return t});Pl||(Pl=function(t){return t});rz||(rz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});iz||(iz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Z_=is(Array.prototype.forEach),yUt=is(Array.prototype.lastIndexOf),qle=is(Array.prototype.pop),fw=is(Array.prototype.push),CUt=is(Array.prototype.splice),c$=is(String.prototype.toLowerCase),m5=is(String.prototype.toString),h5=is(String.prototype.match),gw=is(String.prototype.replace),bUt=is(String.prototype.indexOf),vUt=is(String.prototype.trim),vu=is(Object.prototype.hasOwnProperty),bi=is(RegExp.prototype.test),yw=SUt(TypeError);function is(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return rz(t,e,n)}}function SUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return iz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c$;Ule&&Ule(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(pUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function TUt(t){for(let e=0;e<t.length;e++)vu(t,e)||(t[e]=null);return t}function fc(t){const e=nz(null);for(const[o,n]of n2e(t))vu(t,o)&&(Array.isArray(n)?e[o]=TUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=fc(n):e[o]=n);return e}function Cw(t,e){for(;t!==null;){const n=gUt(t,e);if(n){if(n.get)return is(n.get);if(typeof n.value=="function")return is(n.value)}t=fUt(t)}function o(){return null}return o}const Gle=rs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),p5=rs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),f5=rs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wUt=rs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),g5=rs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xUt=rs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jle=rs(["#text"]),Yle=rs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),y5=rs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zle=rs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X_=rs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FUt=Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),kUt=Pl(/<%[\w\W]*|[\w\W]*%>/gm),LUt=Pl(/\$\{[\w\W]*/gm),EUt=Pl(/^data-[\-\w.\u00B7-\uFFFF]+$/),_Ut=Pl(/^aria-[\-\w]+$/),r2e=Pl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),BUt=Pl(/^(?:\w+script|data):/i),DUt=Pl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),i2e=Pl(/^html$/i),$Ut=Pl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xle=Object.freeze({__proto__:null,ARIA_ATTR:_Ut,ATTR_WHITESPACE:DUt,CUSTOM_ELEMENT:$Ut,DATA_ATTR:EUt,DOCTYPE_NAME:i2e,ERB_EXPR:kUt,IS_ALLOWED_URI:r2e,IS_SCRIPT_OR_DATA:BUt,MUSTACHE_EXPR:FUt,TMPLIT_EXPR:LUt});const bw={element:1,text:3,progressingInstruction:7,comment:8,document:9},RUt=function(){return typeof window>"u"?null:window},AUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Qle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function s2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RUt();const e=C=>s2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==bw.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=Cw(p,"cloneNode"),g=Cw(p,"remove"),b=Cw(p,"nextSibling"),v=Cw(p,"childNodes"),S=Cw(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Qle();e.isSupported=typeof n2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Xle;let{IS_ALLOWED_URI:Se}=Xle,J=null;const Ae=oo({},[...Gle,...p5,...f5,...g5,...Jle]);let q=null;const me=oo({},[...Yle,...y5,...Zle,...X_]);let H=Object.seal(nz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(nz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Je=!1;const we="user-content-";let Te=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const nu=oo({},[go,Lo,tt],m5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const ru=oo({},["title","style","font","a","script"]);let yo=null;const iu=["application/xhtml+xml","text/html"],su="text/html";let ge=null,jt=null;const au=o.createElement("form"),Br=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=fc(C),yo=iu.indexOf(C.PARSER_MEDIA_TYPE)===-1?su:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?m5:c$,J=vu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=vu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=vu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,m5):nu,Co=vu(C,"ADD_URI_SAFE_ATTR")?oo(fc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=vu(C,"ADD_DATA_URI_TAGS")?oo(fc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=vu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=vu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):fc({}),le=vu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):fc({}),Ne=vu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Je=C.SANITIZE_NAMED_PROPS||!1,Te=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||r2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),pe&&(de=!0),Ne&&(J=oo({},Jle),q=[],Ne.html===!0&&(oo(J,Gle),oo(q,Yle)),Ne.svg===!0&&(oo(J,p5),oo(q,y5),oo(q,X_)),Ne.svgFilters===!0&&(oo(J,f5),oo(q,y5),oo(q,X_)),Ne.mathMl===!0&&(oo(J,g5),oo(q,Zle),oo(q,X_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(J===Ae&&(J=fc(J)),oo(J,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=fc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=fc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=fc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),Te&&(J["#text"]=!0),oe&&oo(J,["html","head","body"]),J.table&&(oo(J,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw yw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=AUt(h,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));rs&&rs(C),jt=C}},Dr=oo({},[...p5,...f5,...wUt]),$r=oo({},[...g5,...xUt]),lu=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const B=c$(C.tagName),G=c$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?B==="svg":k.namespaceURI===go?B==="svg"&&(G==="annotation-xml"||$o[G]):!!Dr[B]:C.namespaceURI===go?k.namespaceURI===tt?B==="math":k.namespaceURI===Lo?B==="math"&&Ro[G]:!!$r[B]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[G]||k.namespaceURI===go&&!$o[G]?!1:!$r[B]&&(ru[B]||!Dr[B]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){fw(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{fw(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{fw(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,B=null;if(ie)C="<remove></remove>"+C;else{const ae=h5(C,/^[\r\n\t ]+/);B=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const G=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(G,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:G}catch{}}const ye=k.body||k.documentElement;return C&&B&&ye.insertBefore(o.createTextNode(B),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,B){Z_(C,G=>{G.call(e,k,B,jt)})}const Vr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const B=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:B,allowedTags:J}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===bw.progressingInstruction||ee&&C.nodeType===bw.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(B))&&(!J[B]||be[B])){if(!be[B]&&Pr(B)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B)))return!1;if(Te&&!Ce[B]){const G=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&G){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,G.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!lu(C)||(B==="noscript"||B==="noembed"||B==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===bw.text&&(k=C.textContent,Z_([L,A,I],G=>{k=gw(k,G," ")}),C.textContent!==k&&(fw(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,B){if(ne&&(k==="id"||k==="name")&&(B in o||B in au))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B))))return!1}else if(!Co[k]&&!bi(Se,gw(B,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&bUt(B,"data:")===0&&Fo[C])&&!(Et&&!bi(K,gw(B,fe,"")))&&B)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&h5(C,Ve)},Mr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let G=k.length;for(;G--;){const ye=k[G],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Go=et;let He=ae==="value"?Go:vUt(Go);if(B.attrName=at,B.attrValue=He,B.keepAttr=!0,B.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,B),He=B.attrValue,Je&&(at==="id"||at==="name")&&(Mt(ae,C),He=we+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(at==="attributename"&&h5(He,"href")){Mt(ae,C);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Z_([L,A,I],Ga=>{He=gw(He,Ga," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,at,He)){Mt(ae,C);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.createScriptURL(He);break}}if(He!==Go)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):qle(e.removed)}catch{Mt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},uu=function C(k){let B=null;const G=Ar(k);for(ht(E.beforeSanitizeShadowDOM,k,null);B=G.nextNode();)ht(E.uponSanitizeShadowNode,B,null),Vr(B),Mr(B),B.content instanceof i&&C(B.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,G=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw yw("dirty is not a string, aborting")}else throw yw("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const at=ge(C.nodeName);if(!J[at]||be[at])throw yw("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)B=Rr("<!---->"),G=B.ownerDocument.importNode(C,!0),G.nodeType===bw.element&&G.nodeName==="BODY"||G.nodeName==="HTML"?B=G:B.appendChild(G);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(B=Rr(C),!B)return de?null:te?x:""}B&&ie&&_t(B.firstChild);const nt=Ar(xe?C:B);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&uu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(B.ownerDocument);B.firstChild;)ae.appendChild(B.firstChild);else ae=B;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?B.outerHTML:B.innerHTML;return oe&&J["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&bi(i2e,B.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
193
|
+
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function vL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function ile(t){return vL(DLe(t))}function DLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function $Wt(t){t=RWt(t);let[e,o,n,r]=SWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function RWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Jae(Jae(t,6),8,"F")),t}function AWt(t){const e=Math.abs(nle(gx(0),gx(t)));return Math.abs(nle(gx(16777215),gx(t)))>Math.min(e,50)?"#fff":"#000"}function KE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function JP(t,e){const o=Hs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function NWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:JP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const q9=Symbol.for("vuetify:defaults");function $Le(){const t=xo(q9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function VWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function IWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$Le();const n=JP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(VWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();nr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=NWt(q9,n);or(q9,Q(()=>s.value?BLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function PWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=KE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return bWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=$Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=IWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function MWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PWt:X)(e)}function OWt(t){const e=JP("useRender");e.render=t}function WWt(t){return TWt(()=>{const{class:e,style:o}=zWt(t);return{colorClasses:e,colorStyles:o}})}function HWt(t){const{colorClasses:e,colorStyles:o}=WWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function zWt(t){const e=Sr(t),o=[],n={};if(e.background)if(U9(e.background)){if(n.backgroundColor=e.background,!e.text&&BWt(e.background)){const r=gx(e.background);if(r.a==null||r.a===1){const i=AWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(U9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const jWt=KE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function KWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const UWt=KE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function qWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const GWt=Symbol.for("vuetify:locale");function JWt(){const t=xo(GWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const sle=Symbol.for("vuetify:theme"),YWt=KE({theme:String},"theme");function ZWt(t){JP("provideTheme");const e=xo(sle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return or(sle,i),i}const XWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function QWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function ale(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>YP(e))}function YP(t){let e=[];if(!t)return e;const o=XWt[t];if(t!==o){if(t.includes(","))return lle(t);if(t.includes("@"))return ale(t);o.includes(",")?e=lle(o):o.includes("@")?e=ale(o):o&&e.push(YP(o))}return[QWt(t,e)]}function lle(t){return t.replace(/\s/g,"").split(",").map(YP)}const eHt=KE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...jWt(),...UWt(),...YWt()},"VSkeletonLoader");MWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:eHt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=HWt(()=>t.color),{dimensionStyles:s}=KWt(t),{elevationClasses:a}=qWt(t),{themeClasses:l}=ZWt(t),{t:u}=JWt(),c=Q(()=>YP(vWt(t.type).join(",")));return OWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Oi="top",Ta="bottom",wa="right",Wi="left",ZP="auto",nT=[Oi,Ta,wa,Wi],zC="start",qv="end",RLe="clippingParents",$J="viewport",n1="popper",ALe="reference",G9=nT.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+qv])},[]),RJ=[].concat(nT,[ZP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+qv])},[]),NLe="beforeRead",VLe="read",ILe="afterRead",PLe="beforeMain",MLe="main",OLe="afterMain",WLe="beforeWrite",HLe="write",zLe="afterWrite",jLe=[NLe,VLe,ILe,PLe,MLe,OLe,WLe,HLe,zLe];function ad(t){return t?(t.nodeName||"").toLowerCase():null}function xa(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=xa(t).Element;return t instanceof e||t instanceof Element}function Fl(t){var e=xa(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function AJ(t){if(typeof ShadowRoot>"u")return!1;var e=xa(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function tHt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!Fl(i)||!ad(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function oHt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!Fl(r)||!ad(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const NJ={name:"applyStyles",enabled:!0,phase:"write",fn:tHt,effect:oHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,m3=Math.min,Gv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function KLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function Jv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&Fl(t)&&(r=t.offsetWidth>0&&Gv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Gv(n.height)/t.offsetHeight||1);var s=jC(t)?xa(t):window,a=s.visualViewport,l=!KLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function VJ(t){var e=Jv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function ULe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&AJ(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function eh(t){return xa(t).getComputedStyle(t)}function nHt(t){return["table","td","th"].indexOf(ad(t))>=0}function Qf(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function XP(t){return ad(t)==="html"?t:t.assignedSlot||t.parentNode||(AJ(t)?t.host:null)||Qf(t)}function ule(t){return!Fl(t)||eh(t).position==="fixed"?null:t.offsetParent}function rHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&Fl(t)){var n=eh(t);if(n.position==="fixed")return null}var r=XP(t);for(AJ(r)&&(r=r.host);Fl(r)&&["html","body"].indexOf(ad(r))<0;){var i=eh(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function UE(t){for(var e=xa(t),o=ule(t);o&&nHt(o)&&eh(o).position==="static";)o=ule(o);return o&&(ad(o)==="html"||ad(o)==="body"&&eh(o).position==="static")?e:o||rHt(t)||e}function IJ(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $F(t,e,o){return Gy(t,m3(e,o))}function iHt(t,e,o){var n=$F(t,e,o);return n>o?o:n}function qLe(){return{top:0,right:0,bottom:0,left:0}}function GLe(t){return Object.assign({},qLe(),t)}function JLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var sHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,GLe(typeof t!="number"?t:JLe(t,nT))};function aHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=IJ(a),u=[Wi,wa].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=sHt(r.padding,o),m=VJ(i),h=l==="y"?Oi:Wi,p=l==="y"?Ta:wa,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=UE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=$F(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function lHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||ULe(e.elements.popper,r)&&(e.elements.arrow=r))}const YLe={name:"arrow",enabled:!0,phase:"main",fn:aHt,effect:lHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yv(t){return t.split("-")[1]}var uHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Gv(o*r)/r||0,y:Gv(n*r)/r||0}}function cle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Wi,w=Oi,x=window;if(u){var F=UE(o),D="clientHeight",N="clientWidth";if(F===xa(o)&&(F=Qf(o),eh(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===Oi||(r===Wi||r===wa)&&i===qv){w=Ta;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===Wi||(r===Oi||r===Ta)&&i===qv){S=wa;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&uHt),L=c===!0?cHt({x:h,y:f},xa(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function dHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Yv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cle(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const PJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dHt,data:{}};var j_={passive:!0};function mHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=xa(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,j_)}),a&&l.addEventListener("resize",o.update,j_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,j_)}),a&&l.removeEventListener("resize",o.update,j_)}}const MJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mHt,data:{}};var hHt={left:"right",right:"left",bottom:"top",top:"bottom"};function s$(t){return t.replace(/left|right|bottom|top/g,function(e){return hHt[e]})}var pHt={start:"end",end:"start"};function dle(t){return t.replace(/start|end/g,function(e){return pHt[e]})}function OJ(t){var e=xa(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function WJ(t){return Jv(Qf(t)).left+OJ(t).scrollLeft}function fHt(t,e){var o=xa(t),n=Qf(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=KLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+WJ(t),y:l}}function gHt(t){var e,o=Qf(t),n=OJ(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+WJ(t),l=-n.scrollTop;return eh(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function HJ(t){var e=eh(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function ZLe(t){return["html","body","#document"].indexOf(ad(t))>=0?t.ownerDocument.body:Fl(t)&&HJ(t)?t:ZLe(XP(t))}function RF(t,e){var o;e===void 0&&(e=[]);var n=ZLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=xa(n),s=r?[i].concat(i.visualViewport||[],HJ(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(RF(XP(s)))}function Y9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function yHt(t,e){var o=Jv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function mle(t,e,o){return e===$J?Y9(fHt(t,o)):jC(e)?yHt(e,o):Y9(gHt(Qf(t)))}function CHt(t){var e=RF(XP(t)),o=["absolute","fixed"].indexOf(eh(t).position)>=0,n=o&&Fl(t)?UE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&ULe(r,n)&&ad(r)!=="body"}):[]}function bHt(t,e,o,n){var r=e==="clippingParents"?CHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=mle(t,u,n);return l.top=Gy(c.top,l.top),l.right=m3(c.right,l.right),l.bottom=m3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},mle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function XLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Yv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Oi:l={x:s,y:e.y-o.height};break;case Ta:l={x:s,y:e.y+e.height};break;case wa:l={x:e.x+e.width,y:a};break;case Wi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?IJ(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case qv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Zv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?RLe:a,u=o.rootBoundary,c=u===void 0?$J:u,d=o.elementContext,m=d===void 0?n1:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=GLe(typeof g!="number"?g:JLe(g,nT)),v=m===n1?ALe:n1,S=t.rects.popper,w=t.elements[p?v:m],x=bHt(jC(w)?w:w.contextElement||Qf(t.elements.popper),l,c,s),F=Jv(t.elements.reference),D=XLe({reference:F,element:S,placement:r}),N=Y9(Object.assign({},S,D)),R=m===n1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===n1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[wa,Ta].indexOf(A)>=0?1:-1,W=[Oi,Ta].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function vHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?RJ:l,c=Yv(n),d=c?a?G9:G9.filter(function(p){return Yv(p)===c}):nT,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=Zv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function SHt(t){if(Kc(t)===ZP)return[];var e=s$(t);return[dle(t),e,dle(e)]}function THt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!p?[s$(g)]:SHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===ZP?vHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Kc(E),A=Yv(E)===zC,I=[Oi,Ta].indexOf(L)>=0,W=I?"width":"height",O=Zv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?wa:Wi:A?Ta:Oi;x[W]>F[W]&&(K=s$(K));var fe=s$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ve)}if(N)for(var Se=p?3:1,J=function(me){var H=w.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=J(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const QLe={name:"flip",enabled:!0,phase:"main",fn:THt,requiresIfExists:["offset"],data:{_skip:!1}};function hle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function ple(t){return[Oi,wa,Ta,Wi].some(function(e){return t[e]>=0})}function wHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Zv(e,{elementContext:"reference"}),a=Zv(e,{altBoundary:!0}),l=hle(s,n),u=hle(a,r,i),c=ple(l),d=ple(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const eEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wHt};function xHt(t,e,o){var n=Kc(t),r=[Wi,Oi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Wi,wa].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function FHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=RJ.reduce(function(c,d){return c[d]=xHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const tEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:FHt};function kHt(t){var e=t.state,o=t.name;e.modifiersData[o]=XLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const zJ={name:"popperOffsets",enabled:!0,phase:"read",fn:kHt,data:{}};function LHt(t){return t==="x"?"y":"x"}function EHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=Zv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Yv(e.placement),S=!v,w=IJ(b),x=LHt(w),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=w==="y"?Oi:Wi,W=w==="y"?Ta:wa,O=w==="y"?"height":"width",K=F[w],fe=K+g[I],Ve=K-g[W],Se=h?-N[O]/2:0,J=v===zC?D[O]:N[O],Ae=v===zC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?VJ(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:qLe(),be=H[I],le=H[W],ue=$F(0,D[O],me[O]),Nt=S?D[O]/2-Se-ue-be-P.mainAxis:J-ue-be-P.mainAxis,Vt=S?-D[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&UE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=$F(h?m3(fe,ee):fe,K,h?Gy(Ve,oe):Ve);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?Oi:Wi,pe=w==="x"?Ta:wa,te=F[x],ne=x==="y"?"height":"width",Je=te+g[de],we=te-g[pe],Te=[Oi,Wi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=Te?Je:te-D[ne]-N[ne]-xe+P.altAxis,Ce=Te?te+D[ne]+N[ne]-xe-P.altAxis:we,Qe=h&&Te?iHt(Ne,te,Ce):$F(h?Ne:Je,te,h?Ce:we);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const oEe={name:"preventOverflow",enabled:!0,phase:"main",fn:EHt,requiresIfExists:["offset"]};function _Ht(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function BHt(t){return t===xa(t)||!Fl(t)?OJ(t):_Ht(t)}function DHt(t){var e=t.getBoundingClientRect(),o=Gv(e.width)/t.offsetWidth||1,n=Gv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function $Ht(t,e,o){o===void 0&&(o=!1);var n=Fl(e),r=Fl(e)&&DHt(e),i=Qf(e),s=Jv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ad(e)!=="body"||HJ(i))&&(a=BHt(e)),Fl(e)?(l=Jv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=WJ(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function RHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function AHt(t){var e=RHt(t);return jLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function NHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function VHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var fle={placement:"bottom",modifiers:[],strategy:"absolute"};function gle(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function QP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?fle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?RF(s):s.contextElement?RF(s.contextElement):[],popper:RF(a)};var b=AHt(VHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(gle(g,b)){u.rects={reference:$Ht(g,UE(b),u.options.strategy==="fixed"),popper:VJ(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],w=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:D,instance:m})||u)}}}},update:NHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!gle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var IHt=QP(),PHt=[MJ,zJ,PJ,NJ],MHt=QP({defaultModifiers:PHt}),OHt=[MJ,zJ,PJ,NJ,tEe,QLe,oEe,YLe,eEe],jJ=QP({defaultModifiers:OHt});const nEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:OLe,afterRead:ILe,afterWrite:zLe,applyStyles:NJ,arrow:YLe,auto:ZP,basePlacements:nT,beforeMain:PLe,beforeRead:NLe,beforeWrite:WLe,bottom:Ta,clippingParents:RLe,computeStyles:PJ,createPopper:jJ,createPopperBase:IHt,createPopperLite:MHt,detectOverflow:Zv,end:qv,eventListeners:MJ,flip:QLe,hide:eEe,left:Wi,main:MLe,modifierPhases:jLe,offset:tEe,placements:RJ,popper:n1,popperGenerator:QP,popperOffsets:zJ,preventOverflow:oEe,read:VLe,reference:ALe,right:wa,start:zC,top:Oi,variationPlacements:G9,viewport:$J,write:HLe},Symbol.toStringTag,{value:"Module"})),qh=new Map,Y4={set(t,e,o){qh.has(t)||qh.set(t,new Map);const n=qh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return qh.has(t)&&qh.get(t).get(e)||null},remove(t,e){if(!qh.has(t))return;const o=qh.get(t);o.delete(e),o.size===0&&qh.delete(t)}},WHt=1e6,HHt=1e3,Z9="transitionend",rEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),zHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),jHt=t=>{do t+=Math.floor(Math.random()*WHt);while(document.getElementById(t));return t},KHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*HHt)},iEe=t=>{t.dispatchEvent(new Event(Z9))},_m=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ff=t=>_m(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(rEe(t)):null,rT=t=>{if(!_m(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},kf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",sEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?sEe(t.parentNode):null},h3=()=>{},qE=t=>{t.offsetHeight},aEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Z4=[],UHt=t=>{document.readyState==="loading"?(Z4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Z4)e()}),Z4.push(t)):t()},Vl=()=>document.documentElement.dir==="rtl",Xl=t=>{UHt(()=>{const e=aEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},ws=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,lEe=(t,e,o=!0)=>{if(!o){ws(t);return}const n=KHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Z9,i),ws(t))};e.addEventListener(Z9,i),setTimeout(()=>{r||iEe(e)},n)},KJ=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},qHt=/[^.]*(?=\..*)\.|.*/,GHt=/\..*/,JHt=/::\d+$/,X4={};let yle=1;const uEe={mouseenter:"mouseover",mouseleave:"mouseout"},YHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function cEe(t,e){return e&&`${e}::${yle++}`||t.uidEvent||yle++}function dEe(t){const e=cEe(t);return t.uidEvent=e,X4[e]=X4[e]||{},X4[e]}function ZHt(t,e){return function o(n){return UJ(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function XHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return UJ(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function mEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function hEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=pEe(t);return YHt.has(i)||(i=t),[n,r,i]}function Cle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=hEe(e,o,n);e in uEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=dEe(t),u=l[a]||(l[a]={}),c=mEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=cEe(s,e.replace(qHt,"")),m=i?XHt(t,o,s):ZHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function X9(t,e,o,n,r){const i=mEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function QHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&X9(t,e,o,s.callable,s.delegationSelector)}function pEe(t){return t=t.replace(GHt,""),uEe[t]||t}const Ee={on(t,e,o,n){Cle(t,e,o,n,!1)},one(t,e,o,n){Cle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=hEe(e,o,n),a=s!==e,l=dEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;X9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))QHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(JHt,"");(!a||e.includes(h))&&X9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=aEe(),r=pEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=UJ(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function UJ(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function ble(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Q4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${Q4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Q4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=ble(t.dataset[n])}return e},getDataAttribute(t,e){return ble(t.getAttribute(`data-bs-${Q4(e)}`))}};let GE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=_m(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},..._m(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=_m(i)?"element":zHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const e7t="5.3.8";let Zu=class extends GE{constructor(e,o){super(),e=Ff(e),e&&(this._element=e,this._config=this._getConfig(o),Y4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Y4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){lEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Y4.get(Ff(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return e7t}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const e5=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>rEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!kf(o)&&rT(o))},getSelectorFromElement(t){const e=e5(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=e5(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=e5(t);return e?vt.find(e):[]}},eM=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),kf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},t7t="alert",o7t="bs.alert",fEe=`.${o7t}`,n7t=`close${fEe}`,r7t=`closed${fEe}`,i7t="fade",s7t="show";let gEe=class yEe extends Zu{static get NAME(){return t7t}close(){if(Ee.trigger(this._element,n7t).defaultPrevented)return;this._element.classList.remove(s7t);const e=this._element.classList.contains(i7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,r7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=yEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};eM(gEe,"close");Xl(gEe);const a7t="button",l7t="bs.button",u7t=`.${l7t}`,c7t=".data-api",d7t="active",vle='[data-bs-toggle="button"]',m7t=`click${u7t}${c7t}`;let CEe=class bEe extends Zu{static get NAME(){return a7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(d7t))}static jQueryInterface(e){return this.each(function(){const o=bEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,m7t,vle,t=>{t.preventDefault();const e=t.target.closest(vle);CEe.getOrCreateInstance(e).toggle()});Xl(CEe);const h7t="swipe",iT=".bs.swipe",p7t=`touchstart${iT}`,f7t=`touchmove${iT}`,g7t=`touchend${iT}`,y7t=`pointerdown${iT}`,C7t=`pointerup${iT}`,b7t="touch",v7t="pen",S7t="pointer-event",T7t=40,w7t={endCallback:null,leftCallback:null,rightCallback:null},x7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let Sle=class vEe extends GE{constructor(e,o){super(),this._element=e,!(!e||!vEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return w7t}static get DefaultType(){return x7t}static get NAME(){return h7t}dispose(){Ee.off(this._element,iT)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ws(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=T7t)return;const o=e/this._deltaX;this._deltaX=0,o&&ws(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,y7t,e=>this._start(e)),Ee.on(this._element,C7t,e=>this._end(e)),this._element.classList.add(S7t)):(Ee.on(this._element,p7t,e=>this._start(e)),Ee.on(this._element,f7t,e=>this._move(e)),Ee.on(this._element,g7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===v7t||e.pointerType===b7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const F7t="carousel",k7t="bs.carousel",eg=`.${k7t}`,SEe=".data-api",L7t="ArrowLeft",E7t="ArrowRight",_7t=500,hw="next",pb="prev",r1="left",a$="right",B7t=`slide${eg}`,t5=`slid${eg}`,D7t=`keydown${eg}`,$7t=`mouseenter${eg}`,R7t=`mouseleave${eg}`,A7t=`dragstart${eg}`,N7t=`load${eg}${SEe}`,V7t=`click${eg}${SEe}`,TEe="carousel",K_="active",I7t="slide",P7t="carousel-item-end",M7t="carousel-item-start",O7t="carousel-item-next",W7t="carousel-item-prev",wEe=".active",xEe=".carousel-item",H7t=wEe+xEe,z7t=".carousel-item img",j7t=".carousel-indicators",K7t="[data-bs-slide], [data-bs-slide-to]",U7t='[data-bs-ride="carousel"]',q7t={[L7t]:a$,[E7t]:r1},G7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},J7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let qJ=class FEe extends Zu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(j7t,this._element),this._addEventListeners(),this._config.ride===TEe&&this.cycle()}static get Default(){return G7t}static get DefaultType(){return J7t}static get NAME(){return F7t}next(){this._slide(hw)}nextWhenVisible(){!document.hidden&&rT(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&iEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,t5,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,t5,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?hw:pb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,D7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,$7t,()=>this.pause()),Ee.on(this._element,R7t,()=>this._maybeEnableCycle())),this._config.touch&&Sle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(z7t,this._element))Ee.on(o,A7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(r1)),rightCallback:()=>this._slide(this._directionToOrder(a$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_7t+this._config.interval))}};this._swipeHelper=new Sle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=q7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(wEe,this._indicatorsElement);o.classList.remove(K_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(K_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===hw,i=o||KJ(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(B7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?M7t:P7t,c=r?O7t:W7t;i.classList.add(c),qE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(K_),n.classList.remove(K_,c,u),this._isSliding=!1,a(t5)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(I7t)}_getActive(){return vt.findOne(H7t,this._element)}_getItems(){return vt.find(xEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Vl()?e===r1?pb:hw:e===r1?hw:pb}_orderToDirection(e){return Vl()?e===pb?r1:a$:e===pb?a$:r1}static jQueryInterface(e){return this.each(function(){const o=FEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,V7t,K7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(TEe))return;t.preventDefault();const o=qJ.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,N7t,()=>{const t=vt.find(U7t);for(const e of t)qJ.getOrCreateInstance(e)});Xl(qJ);const Y7t="collapse",Z7t="bs.collapse",JE=`.${Z7t}`,X7t=".data-api",Q7t=`show${JE}`,e8t=`shown${JE}`,t8t=`hide${JE}`,o8t=`hidden${JE}`,n8t=`click${JE}${X7t}`,o5="show",j1="collapse",U_="collapsing",r8t="collapsed",i8t=`:scope .${j1} .${j1}`,s8t="collapse-horizontal",a8t="width",l8t="height",u8t=".collapse.show, .collapse.collapsing",Q9='[data-bs-toggle="collapse"]',c8t={parent:null,toggle:!0},d8t={parent:"(null|element)",toggle:"boolean"};let kEe=class ez extends Zu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(Q9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return c8t}static get DefaultType(){return d8t}static get NAME(){return Y7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(u8t).filter(i=>i!==this._element).map(i=>ez.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Q7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(j1),this._element.classList.add(U_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(j1,o5),this._element.style[o]="",Ee.trigger(this._element,e8t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,t8t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qE(this._element),this._element.classList.add(U_),this._element.classList.remove(j1,o5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(j1),Ee.trigger(this._element,o8t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(o5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ff(e.parent),e}_getDimension(){return this._element.classList.contains(s8t)?a8t:l8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Q9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(i8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(r8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=ez.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,n8t,Q9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))kEe.getOrCreateInstance(e,{toggle:!1}).toggle()});Xl(kEe);const Tle="dropdown",m8t="bs.dropdown",S0=`.${m8t}`,GJ=".data-api",h8t="Escape",wle="Tab",p8t="ArrowUp",xle="ArrowDown",f8t=2,g8t=`hide${S0}`,y8t=`hidden${S0}`,C8t=`show${S0}`,b8t=`shown${S0}`,LEe=`click${S0}${GJ}`,EEe=`keydown${S0}${GJ}`,v8t=`keyup${S0}${GJ}`,i1="show",S8t="dropup",T8t="dropend",w8t="dropstart",x8t="dropup-center",F8t="dropdown-center",dy='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',k8t=`${dy}.${i1}`,l$=".dropdown-menu",L8t=".navbar",E8t=".navbar-nav",_8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",B8t=Vl()?"top-end":"top-start",D8t=Vl()?"top-start":"top-end",$8t=Vl()?"bottom-end":"bottom-start",R8t=Vl()?"bottom-start":"bottom-end",A8t=Vl()?"left-start":"right-start",N8t=Vl()?"right-start":"left-start",V8t="top",I8t="bottom",P8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},M8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let sT=class u$ extends Zu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,l$)[0]||vt.prev(this._element,l$)[0]||vt.findOne(l$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return P8t}static get DefaultType(){return M8t}static get NAME(){return Tle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(kf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,C8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(E8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",h3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(i1),this._element.classList.add(i1),Ee.trigger(this._element,b8t,e)}}hide(){if(kf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,g8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",h3);this._popper&&this._popper.destroy(),this._menu.classList.remove(i1),this._element.classList.remove(i1),this._element.setAttribute("aria-expanded","false"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,y8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!_m(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Tle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof nEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:_m(this._config.reference)?e=Ff(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=jJ(e,this._menu,o)}_isShown(){return this._menu.classList.contains(i1)}_getPlacement(){const e=this._parent;if(e.classList.contains(T8t))return A8t;if(e.classList.contains(w8t))return N8t;if(e.classList.contains(x8t))return V8t;if(e.classList.contains(F8t))return I8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(S8t)?o?D8t:B8t:o?R8t:$8t}_detectNavbar(){return this._element.closest(L8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...ws(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(_8t,this._menu).filter(r=>rT(r));n.length&&KJ(n,o,e===xle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=u$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===f8t||e.type==="keyup"&&e.key!==wle)return;const o=vt.find(k8t);for(const n of o){const r=u$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===wle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===h8t,r=[p8t,xle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(dy)?this:vt.prev(this,dy)[0]||vt.next(this,dy)[0]||vt.findOne(dy,e.delegateTarget.parentNode),s=u$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,EEe,dy,sT.dataApiKeydownHandler);Ee.on(document,EEe,l$,sT.dataApiKeydownHandler);Ee.on(document,LEe,sT.clearMenus);Ee.on(document,v8t,sT.clearMenus);Ee.on(document,LEe,dy,function(t){t.preventDefault(),sT.getOrCreateInstance(this).toggle()});Xl(sT);const _Ee="backdrop",O8t="fade",Fle="show",kle=`mousedown.bs.${_Ee}`,W8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},H8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let BEe=class extends GE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return W8t}static get DefaultType(){return H8t}static get NAME(){return _Ee}show(e){if(!this._config.isVisible){ws(e);return}this._append();const o=this._getElement();this._config.isAnimated&&qE(o),o.classList.add(Fle),this._emulateAnimation(()=>{ws(e)})}hide(e){if(!this._config.isVisible){ws(e);return}this._getElement().classList.remove(Fle),this._emulateAnimation(()=>{this.dispose(),ws(e)})}dispose(){this._isAppended&&(Ee.off(this._element,kle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(O8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ff(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,kle,()=>{ws(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){lEe(e,this._getElement(),this._config.isAnimated)}};const z8t="focustrap",j8t="bs.focustrap",p3=`.${j8t}`,K8t=`focusin${p3}`,U8t=`keydown.tab${p3}`,q8t="Tab",G8t="forward",Lle="backward",J8t={autofocus:!0,trapElement:null},Y8t={autofocus:"boolean",trapElement:"element"};let DEe=class extends GE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return J8t}static get DefaultType(){return Y8t}static get NAME(){return z8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,p3),Ee.on(document,K8t,e=>this._handleFocusin(e)),Ee.on(document,U8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,p3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Lle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===q8t&&(this._lastTabNavDirection=e.shiftKey?Lle:G8t)}};const Ele=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_le=".sticky-top",q_="padding-right",Ble="margin-right";let tz=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,q_,o=>o+e),this._setElementAttributes(Ele,q_,o=>o+e),this._setElementAttributes(_le,Ble,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,q_),this._resetElementAttributes(Ele,q_),this._resetElementAttributes(_le,Ble)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(_m(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const Z8t="modal",X8t="bs.modal",Il=`.${X8t}`,Q8t=".data-api",e9t="Escape",t9t=`hide${Il}`,o9t=`hidePrevented${Il}`,$Ee=`hidden${Il}`,REe=`show${Il}`,n9t=`shown${Il}`,r9t=`resize${Il}`,i9t=`click.dismiss${Il}`,s9t=`mousedown.dismiss${Il}`,a9t=`keydown.dismiss${Il}`,l9t=`click${Il}${Q8t}`,Dle="modal-open",u9t="fade",$le="show",n5="modal-static",c9t=".modal.show",d9t=".modal-dialog",m9t=".modal-body",h9t='[data-bs-toggle="modal"]',p9t={backdrop:!0,focus:!0,keyboard:!0},f9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let f3=class AEe extends Zu{constructor(e,o){super(e,o),this._dialog=vt.findOne(d9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new tz,this._addEventListeners()}static get Default(){return p9t}static get DefaultType(){return f9t}static get NAME(){return Z8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,REe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Dle),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,t9t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove($le),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Il),Ee.off(this._dialog,Il),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new BEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new DEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(m9t,this._dialog);o&&(o.scrollTop=0),qE(this._element),this._element.classList.add($le);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,n9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,a9t,e=>{if(e.key===e9t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,r9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,s9t,e=>{Ee.one(this._element,i9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Dle),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,$Ee)})}_isAnimated(){return this._element.classList.contains(u9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,o9t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(n5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(n5),this._queueCallback(()=>{this._element.classList.remove(n5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Vl()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Vl()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=AEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,l9t,h9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,REe,n=>{n.defaultPrevented||Ee.one(e,$Ee,()=>{rT(this)&&this.focus()})});const o=vt.findOne(c9t);o&&f3.getInstance(o).hide(),f3.getOrCreateInstance(e).toggle(this)});eM(f3);Xl(f3);const g9t="offcanvas",y9t="bs.offcanvas",Sh=`.${y9t}`,NEe=".data-api",C9t=`load${Sh}${NEe}`,b9t="Escape",Rle="show",Ale="showing",Nle="hiding",v9t="offcanvas-backdrop",VEe=".offcanvas.show",S9t=`show${Sh}`,T9t=`shown${Sh}`,w9t=`hide${Sh}`,Vle=`hidePrevented${Sh}`,IEe=`hidden${Sh}`,x9t=`resize${Sh}`,F9t=`click${Sh}${NEe}`,k9t=`keydown.dismiss${Sh}`,L9t='[data-bs-toggle="offcanvas"]',E9t={backdrop:!0,keyboard:!0,scroll:!1},_9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Xv=class PEe extends Zu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return E9t}static get DefaultType(){return _9t}static get NAME(){return g9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,S9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new tz().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ale);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Rle),this._element.classList.remove(Ale),Ee.trigger(this._element,T9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,w9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Nle),this._backdrop.hide();const e=()=>{this._element.classList.remove(Rle,Nle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new tz().reset(),Ee.trigger(this._element,IEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Vle);return}this.hide()},o=!!this._config.backdrop;return new BEe({className:v9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new DEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,k9t,e=>{if(e.key===b9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Vle)}})}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,F9t,L9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),kf(this))return;Ee.one(e,IEe,()=>{rT(this)&&this.focus()});const o=vt.findOne(VEe);o&&o!==e&&Xv.getInstance(o).hide(),Xv.getOrCreateInstance(e).toggle(this)});Ee.on(window,C9t,()=>{for(const t of vt.find(VEe))Xv.getOrCreateInstance(t).show()});Ee.on(window,x9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Xv.getOrCreateInstance(t).hide()});eM(Xv);Xl(Xv);const B9t=/^aria-[\w-]*$/i,MEe={"*":["class","dir","id","lang","role",B9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},D9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),$9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,R9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?D9t.has(o)?!!$9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function A9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)R9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const N9t="TemplateFactory",V9t={allowList:MEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},I9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},P9t={entry:"(string|element|function|null)",selector:"(string|element)"};let M9t=class extends GE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return V9t}static get DefaultType(){return I9t}static get NAME(){return N9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},P9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(_m(o)){this._putElementInTemplate(Ff(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?A9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ws(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const O9t="tooltip",W9t=new Set(["sanitize","allowList","sanitizeFn"]),r5="fade",H9t="modal",G_="show",z9t=".tooltip-inner",Ile=`.${H9t}`,Ple="hide.bs.modal",pw="hover",i5="focus",s5="click",j9t="manual",K9t="hide",U9t="hidden",q9t="show",G9t="shown",J9t="inserted",Y9t="click",Z9t="focusin",X9t="focusout",Q9t="mouseenter",ezt="mouseleave",tzt={AUTO:"auto",TOP:"top",RIGHT:Vl()?"left":"right",BOTTOM:"bottom",LEFT:Vl()?"right":"left"},ozt={allowList:MEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},nzt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let tM=class OEe extends Zu{constructor(e,o){if(typeof nEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ozt}static get DefaultType(){return nzt}static get NAME(){return O9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Ile),Ple,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(q9t)),o=(sEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(J9t))),this._popper=this._createPopper(n),n.classList.add(G_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",h3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(G9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(K9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(G_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",h3);this._activeTrigger[s5]=!1,this._activeTrigger[i5]=!1,this._activeTrigger[pw]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(U9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(r5,G_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=jHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(r5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new M9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[z9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(r5)}_isShown(){return this.tip&&this.tip.classList.contains(G_)}_createPopper(e){const o=ws(this._config.placement,[this,e,this._element]),n=tzt[o.toUpperCase()];return jJ(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return ws(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...ws(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(Y9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[s5]=!(r._isShown()&&r._activeTrigger[s5]),r.toggle()});else if(o!==j9t){const n=o===pw?this.constructor.eventName(Q9t):this.constructor.eventName(Z9t),r=o===pw?this.constructor.eventName(ezt):this.constructor.eventName(X9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?i5:pw]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?i5:pw]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Ile),Ple,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))W9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ff(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Xl(tM);const rzt="popover",izt=".popover-header",szt=".popover-body",azt={...tM.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},lzt={...tM.DefaultType,content:"(null|string|element|function)"};let uzt=class WEe extends tM{static get Default(){return azt}static get DefaultType(){return lzt}static get NAME(){return rzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[izt]:this._getTitle(),[szt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=WEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Xl(uzt);const czt="scrollspy",dzt="bs.scrollspy",JJ=`.${dzt}`,mzt=".data-api",hzt=`activate${JJ}`,Mle=`click${JJ}`,pzt=`load${JJ}${mzt}`,fzt="dropdown-item",fb="active",gzt='[data-bs-spy="scroll"]',a5="[href]",yzt=".nav, .list-group",Ole=".nav-link",Czt=".nav-item",bzt=".list-group-item",vzt=`${Ole}, ${Czt} > ${Ole}, ${bzt}`,Szt=".dropdown",Tzt=".dropdown-toggle",wzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},xzt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let HEe=class zEe extends Zu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return wzt}static get DefaultType(){return xzt}static get NAME(){return czt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ff(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Mle),Ee.on(this._config.target,Mle,a5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(a5,this._config.target);for(const o of e){if(!o.hash||kf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);rT(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,hzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(fzt)){vt.findOne(Tzt,e.closest(Szt)).classList.add(fb);return}for(const o of vt.parents(e,yzt))for(const n of vt.prev(o,vzt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${a5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=zEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,pzt,()=>{for(const t of vt.find(gzt))HEe.getOrCreateInstance(t)});Xl(HEe);const Fzt="tab",kzt="bs.tab",T0=`.${kzt}`,Lzt=`hide${T0}`,Ezt=`hidden${T0}`,_zt=`show${T0}`,Bzt=`shown${T0}`,Dzt=`click${T0}`,$zt=`keydown${T0}`,Rzt=`load${T0}`,Azt="ArrowLeft",Wle="ArrowRight",Nzt="ArrowUp",Hle="ArrowDown",l5="Home",zle="End",my="active",jle="fade",u5="show",Vzt="dropdown",jEe=".dropdown-toggle",Izt=".dropdown-menu",c5=`:not(${jEe})`,Pzt='.list-group, .nav, [role="tablist"]',Mzt=".nav-item, .list-group-item",Ozt=`.nav-link${c5}, .list-group-item${c5}, [role="tab"]${c5}`,KEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',d5=`${Ozt}, ${KEe}`,Wzt=`.${my}[data-bs-toggle="tab"], .${my}[data-bs-toggle="pill"], .${my}[data-bs-toggle="list"]`;let YJ=class oz extends Zu{constructor(e){super(e),this._parent=this._element.closest(Pzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,$zt,o=>this._keydown(o)))}static get NAME(){return Fzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Lzt,{relatedTarget:e}):null;Ee.trigger(e,_zt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(my),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(u5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Bzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(jle))}_deactivate(e,o){if(!e)return;e.classList.remove(my),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(u5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Ezt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(jle))}_keydown(e){if(![Azt,Wle,Nzt,Hle,l5,zle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!kf(r));let n;if([l5,zle].includes(e.key))n=o[e.key===l5?0:o.length-1];else{const r=[Wle,Hle].includes(e.key);n=KJ(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),oz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(d5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Vzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(jEe,my),r(Izt,u5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(my)}_getInnerElement(e){return e.matches(d5)?e:vt.findOne(d5,e)}_getOuterElement(e){return e.closest(Mzt)||e}static jQueryInterface(e){return this.each(function(){const o=oz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Dzt,KEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!kf(this)&&YJ.getOrCreateInstance(this).show()});Ee.on(window,Rzt,()=>{for(const t of vt.find(Wzt))YJ.getOrCreateInstance(t)});Xl(YJ);const Hzt="toast",zzt="bs.toast",tg=`.${zzt}`,jzt=`mouseover${tg}`,Kzt=`mouseout${tg}`,Uzt=`focusin${tg}`,qzt=`focusout${tg}`,Gzt=`hide${tg}`,Jzt=`hidden${tg}`,Yzt=`show${tg}`,Zzt=`shown${tg}`,Xzt="fade",Kle="hide",J_="show",Y_="showing",Qzt={animation:"boolean",autohide:"boolean",delay:"number"},ejt={animation:!0,autohide:!0,delay:5e3};let UEe=class qEe extends Zu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ejt}static get DefaultType(){return Qzt}static get NAME(){return Hzt}show(){if(Ee.trigger(this._element,Yzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Xzt);const e=()=>{this._element.classList.remove(Y_),Ee.trigger(this._element,Zzt),this._maybeScheduleHide()};this._element.classList.remove(Kle),qE(this._element),this._element.classList.add(J_,Y_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Gzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Kle),this._element.classList.remove(Y_,J_),Ee.trigger(this._element,Jzt)};this._element.classList.add(Y_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(J_),super.dispose()}isShown(){return this._element.classList.contains(J_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,jzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Uzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,qzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=qEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};eM(UEe);Xl(UEe);const oM=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),tjt=t=>{throw new Error("Didn't expect to get here"+t)},ojt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];vh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});vh.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});vh.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});vh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});vh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});vh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",Sa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});vh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return ojt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const njt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});vd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Sa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[J4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new Hn({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&njt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const GEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),rjt=t=>oM(t),ijt=t=>oM(t),sjt=t=>oM(t),ajt=t=>oM(t),ljt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),ujt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),cjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),djt=t=>{const e=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>ajt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},mjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),hjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),pjt=t=>{const e=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=hjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>sjt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},fjt=t=>{const e=djt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=pjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>ijt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},gjt=t=>{const e=fjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>rjt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},yjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),Cjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),bjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>{const i="/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both";return t.productImageResizerUrl?t.productImageResizerUrl+i:e+i})},vjt=t=>({localeKey:t.localeKey}),Sjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:Sjt({localeKey:t.localeKey})}),wjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:vjt({localeKey:t.localeKey}),saveTemplateButtonDeps:Tjt({localeKey:t.localeKey})}),xjt=t=>({localeKey:t.localeKey}),Fjt=t=>({localeKey:t.localeKey}),kjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:Fjt({localeKey:t.localeKey})}),Ljt=t=>({exportMenuDeps:wjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:xjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:kjt({localeKey:t.localeKey})}),Ejt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),_jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Ejt(e))}),Bjt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>_jt(e)),Djt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",$jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),JEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>$jt(e)),Rjt=t=>({localeKey:t.localeKey,addThemeSectionItem:Djt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ajt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Ajt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),Vjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Ijt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Vjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Mjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ojt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Mjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Wjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Hjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),zjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},jjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:zjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Kjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),YEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Kjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Rjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Ujt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:YEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),qjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Gjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:qjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Jjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},ZEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Yjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Jjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:ZEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Xjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Xjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),eKt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),tKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),oKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},nKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:oKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),rKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),iKt=t=>({emailComponentDeps:t.emailComponentDeps}),sKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:iKt({emailComponentDeps:t.emailComponentDeps})}),aKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:sKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),lKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:rKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:aKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),uKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:YEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Ujt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),cKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},dKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:cKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:ZEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),mKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),hKt=t=>({localeKey:t.localeKey}),pKt=t=>({movementMenuDeps:mKt({localeKey:t.localeKey}),draggingMenuDeps:hKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:dKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),fKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:pKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey}),bKt=t=>({localeKey:t.localeKey}),vKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:bKt({localeKey:t.localeKey})}),ZJ=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:CKt({localeKey:t.localeKey}),customFontSettingsDeps:vKt({localeKey:t.localeKey})}),SKt=t=>({removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),truncateSpanEditorDeps:yKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:ZJ({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey}),XEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:TKt({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:XEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),XJ=t=>({localeKey:t.localeKey}),xKt=t=>({localeKey:t.localeKey,borderEditorDeps:XEe({localeKey:t.localeKey}),colorEditorDeps:XJ({localeKey:t.localeKey}),fontStyleEditorDeps:ZJ({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),fontStyleEditorDeps:ZJ({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey}),colorEditorDeps:XJ({localeKey:t.localeKey})}),EKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),_Kt=t=>({spanEditorDeps:SKt({localeKey:t.localeKey}),imageEditorDeps:wKt({localeKey:t.localeKey}),buttonEditorDeps:xKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:FKt({localeKey:t.localeKey}),backgroundImageEditorDeps:kKt({localeKey:t.localeKey}),spacerEditorDeps:LKt({localeKey:t.localeKey}),richTextEditorDeps:EKt({localeKey:t.localeKey})}),BKt=t=>({localeKey:t.localeKey,colorEditorDeps:XJ({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Ju({localeKey:t.localeKey})}),DKt=t=>{const e=gjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=QIt({localeKey:t.localeKey,elementsDeps:wPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Ljt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Bjt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:fKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:gKt({localeKey:t.localeKey}),elementsEditorDeps:_Kt({localeKey:t.localeKey}),emailComponentEditorDeps:BKt({localeKey:t.localeKey}),template:t.template}},Xu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),RKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),AKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),NKt=t=>({localeKey:t.localeKey,getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),QJ=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:tjt(t.stockSource)}},VKt=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>QEe(r))},IKt=t=>({localeKey:t.localeKey}),PKt=t=>({selectedProductListItemDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:PKt({localeKey:t.localeKey}),emptyProductListDeps:MKt({localeKey:t.localeKey})}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({localeKey:t.localeKey}),zKt=t=>({localeKey:t.localeKey}),jKt=t=>({searchedProductListItemDeps:HKt({localeKey:t.localeKey}),emptySearchProductListDeps:zKt({localeKey:t.localeKey})}),KKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:WKt({localeKey:t.localeKey}),searchedProductListDeps:jKt({localeKey:t.localeKey})}),UKt=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>QEe(r))},qKt=t=>{const e=UKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=VKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:OKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:KKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},GKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},e2e=t=>async e=>(await JKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>GKt(o)),YKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),ZKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},XKt=t=>async e=>(await ZKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>YKt(o)),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:QKt({localeKey:t.localeKey})}),tUt=t=>({localeKey:t.localeKey}),oUt=t=>({localeKey:t.localeKey}),nUt=t=>({emptySearchCategoryListDeps:oUt({localeKey:t.localeKey})}),rUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:tUt({localeKey:t.localeKey}),searchedCategoryListDeps:nUt({localeKey:t.localeKey})}),t2e=t=>{const e={},o=e2e({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=XKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:eUt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:rUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},iUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),eY=t=>async(e,o)=>{const n=QJ({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>iUt(r))},sUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),aUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),lUt=t=>({localeKey:t.localeKey,getProductsByIDs:eY({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),uUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:e2e({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Xu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:t2e({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),o2e=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),w0=t=>GEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:o2e(t.parameters),DiscountPercentage:t.discountPercentage}),cUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>w0(e));var dUt=typeof global=="object"&&global&&global.Object===Object&&global,mUt=typeof self=="object"&&self&&self.Object===Object&&self,hUt=dUt||mUt||Function("return this")(),g3=hUt.Symbol;g3&&g3.toStringTag;g3&&g3.toStringTag;const{entries:n2e,setPrototypeOf:Ule,isFrozen:pUt,getPrototypeOf:fUt,getOwnPropertyDescriptor:gUt}=Object;let{freeze:rs,seal:Pl,create:nz}=Object,{apply:rz,construct:iz}=typeof Reflect<"u"&&Reflect;rs||(rs=function(t){return t});Pl||(Pl=function(t){return t});rz||(rz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});iz||(iz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Z_=is(Array.prototype.forEach),yUt=is(Array.prototype.lastIndexOf),qle=is(Array.prototype.pop),fw=is(Array.prototype.push),CUt=is(Array.prototype.splice),c$=is(String.prototype.toLowerCase),m5=is(String.prototype.toString),h5=is(String.prototype.match),gw=is(String.prototype.replace),bUt=is(String.prototype.indexOf),vUt=is(String.prototype.trim),vu=is(Object.prototype.hasOwnProperty),bi=is(RegExp.prototype.test),yw=SUt(TypeError);function is(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return rz(t,e,n)}}function SUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return iz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c$;Ule&&Ule(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(pUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function TUt(t){for(let e=0;e<t.length;e++)vu(t,e)||(t[e]=null);return t}function fc(t){const e=nz(null);for(const[o,n]of n2e(t))vu(t,o)&&(Array.isArray(n)?e[o]=TUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=fc(n):e[o]=n);return e}function Cw(t,e){for(;t!==null;){const n=gUt(t,e);if(n){if(n.get)return is(n.get);if(typeof n.value=="function")return is(n.value)}t=fUt(t)}function o(){return null}return o}const Gle=rs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),p5=rs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),f5=rs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wUt=rs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),g5=rs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xUt=rs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jle=rs(["#text"]),Yle=rs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),y5=rs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zle=rs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X_=rs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FUt=Pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),kUt=Pl(/<%[\w\W]*|[\w\W]*%>/gm),LUt=Pl(/\$\{[\w\W]*/gm),EUt=Pl(/^data-[\-\w.\u00B7-\uFFFF]+$/),_Ut=Pl(/^aria-[\-\w]+$/),r2e=Pl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),BUt=Pl(/^(?:\w+script|data):/i),DUt=Pl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),i2e=Pl(/^html$/i),$Ut=Pl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xle=Object.freeze({__proto__:null,ARIA_ATTR:_Ut,ATTR_WHITESPACE:DUt,CUSTOM_ELEMENT:$Ut,DATA_ATTR:EUt,DOCTYPE_NAME:i2e,ERB_EXPR:kUt,IS_ALLOWED_URI:r2e,IS_SCRIPT_OR_DATA:BUt,MUSTACHE_EXPR:FUt,TMPLIT_EXPR:LUt});const bw={element:1,text:3,progressingInstruction:7,comment:8,document:9},RUt=function(){return typeof window>"u"?null:window},AUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Qle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function s2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RUt();const e=C=>s2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==bw.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=Cw(p,"cloneNode"),g=Cw(p,"remove"),b=Cw(p,"nextSibling"),v=Cw(p,"childNodes"),S=Cw(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Qle();e.isSupported=typeof n2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Xle;let{IS_ALLOWED_URI:Se}=Xle,J=null;const Ae=oo({},[...Gle,...p5,...f5,...g5,...Jle]);let q=null;const me=oo({},[...Yle,...y5,...Zle,...X_]);let H=Object.seal(nz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(nz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Je=!1;const we="user-content-";let Te=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const nu=oo({},[go,Lo,tt],m5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const ru=oo({},["title","style","font","a","script"]);let yo=null;const iu=["application/xhtml+xml","text/html"],su="text/html";let ge=null,jt=null;const au=o.createElement("form"),Br=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=fc(C),yo=iu.indexOf(C.PARSER_MEDIA_TYPE)===-1?su:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?m5:c$,J=vu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=vu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=vu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,m5):nu,Co=vu(C,"ADD_URI_SAFE_ATTR")?oo(fc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=vu(C,"ADD_DATA_URI_TAGS")?oo(fc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=vu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=vu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):fc({}),le=vu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):fc({}),Ne=vu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Je=C.SANITIZE_NAMED_PROPS||!1,Te=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||r2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),pe&&(de=!0),Ne&&(J=oo({},Jle),q=[],Ne.html===!0&&(oo(J,Gle),oo(q,Yle)),Ne.svg===!0&&(oo(J,p5),oo(q,y5),oo(q,X_)),Ne.svgFilters===!0&&(oo(J,f5),oo(q,y5),oo(q,X_)),Ne.mathMl===!0&&(oo(J,g5),oo(q,Zle),oo(q,X_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(J===Ae&&(J=fc(J)),oo(J,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=fc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=fc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=fc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),Te&&(J["#text"]=!0),oe&&oo(J,["html","head","body"]),J.table&&(oo(J,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw yw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=AUt(h,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));rs&&rs(C),jt=C}},Dr=oo({},[...p5,...f5,...wUt]),$r=oo({},[...g5,...xUt]),lu=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const B=c$(C.tagName),G=c$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?B==="svg":k.namespaceURI===go?B==="svg"&&(G==="annotation-xml"||$o[G]):!!Dr[B]:C.namespaceURI===go?k.namespaceURI===tt?B==="math":k.namespaceURI===Lo?B==="math"&&Ro[G]:!!$r[B]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[G]||k.namespaceURI===go&&!$o[G]?!1:!$r[B]&&(ru[B]||!Dr[B]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){fw(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{fw(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{fw(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,B=null;if(ie)C="<remove></remove>"+C;else{const ae=h5(C,/^[\r\n\t ]+/);B=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const G=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(G,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:G}catch{}}const ye=k.body||k.documentElement;return C&&B&&ye.insertBefore(o.createTextNode(B),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,B){Z_(C,G=>{G.call(e,k,B,jt)})}const Vr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const B=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:B,allowedTags:J}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===bw.progressingInstruction||ee&&C.nodeType===bw.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(B))&&(!J[B]||be[B])){if(!be[B]&&Pr(B)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B)))return!1;if(Te&&!Ce[B]){const G=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&G){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,G.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!lu(C)||(B==="noscript"||B==="noembed"||B==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===bw.text&&(k=C.textContent,Z_([L,A,I],G=>{k=gw(k,G," ")}),C.textContent!==k&&(fw(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,B){if(ne&&(k==="id"||k==="name")&&(B in o||B in au))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B))))return!1}else if(!Co[k]&&!bi(Se,gw(B,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&bUt(B,"data:")===0&&Fo[C])&&!(Et&&!bi(K,gw(B,fe,"")))&&B)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&h5(C,Ve)},Mr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let G=k.length;for(;G--;){const ye=k[G],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Go=et;let He=ae==="value"?Go:vUt(Go);if(B.attrName=at,B.attrValue=He,B.keepAttr=!0,B.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,B),He=B.attrValue,Je&&(at==="id"||at==="name")&&(Mt(ae,C),He=we+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(at==="attributename"&&h5(He,"href")){Mt(ae,C);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Z_([L,A,I],Ga=>{He=gw(He,Ga," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,at,He)){Mt(ae,C);continue}if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.createScriptURL(He);break}}if(He!==Go)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):qle(e.removed)}catch{Mt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},uu=function C(k){let B=null;const G=Ar(k);for(ht(E.beforeSanitizeShadowDOM,k,null);B=G.nextNode();)ht(E.uponSanitizeShadowNode,B,null),Vr(B),Mr(B),B.content instanceof i&&C(B.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,G=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw yw("dirty is not a string, aborting")}else throw yw("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const at=ge(C.nodeName);if(!J[at]||be[at])throw yw("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)B=Rr("<!---->"),G=B.ownerDocument.importNode(C,!0),G.nodeType===bw.element&&G.nodeName==="BODY"||G.nodeName==="HTML"?B=G:B.appendChild(G);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(B=Rr(C),!B)return de?null:te?x:""}B&&ie&&_t(B.firstChild);const nt=Ar(xe?C:B);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&uu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(B.ownerDocument);B.firstChild;)ae.appendChild(B.firstChild);else ae=B;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?B.outerHTML:B.innerHTML;return oe&&J["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&bi(i2e,B.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
194
194
|
`+et),j&&Z_([L,A,I],at=>{et=gw(et,at," ")}),w&&te?w.createHTML(et):et},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(C),re=!0},e.clearConfig=function(){jt=null,re=!1},e.isValidAttribute=function(C,k,B){jt||yn({});const G=ge(C),ye=ge(k);return Ir(G,ye,B)},e.addHook=function(C,k){typeof k=="function"&&fw(E[C],k)},e.removeHook=function(C,k){if(k!==void 0){const B=yUt(E[C],k);return B===-1?void 0:CUt(E[C],B,1)[0]}return qle(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Qle()},e}s2e();function Ur(t){this.content=t}Ur.prototype={constructor:Ur,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,o){var n=o&&o!=t?this.remove(o):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(o||t,e):(i[r+1]=e,o&&(i[r]=o)),new Ur(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var o=this.content.slice();return o.splice(e,2),new Ur(o)},addToStart:function(t,e){return new Ur([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var o=this.remove(t).content.slice();return o.push(t,e),new Ur(o)},addBefore:function(t,e,o){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,o),new Ur(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ur.from(t),t.size?new Ur(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ur.from(t),t.size?new Ur(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ur.from(t);for(var o=0;o<t.content.length;o+=2)e=e.remove(t.content[o]);return e},toObject:function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},get size(){return this.content.length>>1}};Ur.from=function(t){if(t instanceof Ur)return t;var e=[];if(t)for(var o in t)e.push(o,t[o]);return new Ur(e)};function a2e(t,e,o){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:o;let r=t.child(n),i=e.child(n);if(r==i){o+=r.nodeSize;continue}if(!r.sameMarkup(i))return o;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)o++;return o}if(r.content.size||i.content.size){let s=a2e(r.content,i.content,o+1);if(s!=null)return s}o+=r.nodeSize}}function l2e(t,e,o,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:o,b:n};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){o-=l,n-=l;continue}if(!s.sameMarkup(a))return{a:o,b:n};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,o--,n--;return{a:o,b:n}}if(s.content.size||a.content.size){let u=l2e(s.content,a.content,o-1,n-1);if(u)return u}o-=l,n-=l}}class Pe{constructor(e,o){if(this.content=e,this.size=o||0,o==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,o,n,r=0,i){for(let s=0,a=0;a<o;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&n(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,o-c),n,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,o,n,r){let i="",s=!0;return this.nodesBetween(e,o,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,o-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let o=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(o.isText&&o.sameMarkup(n)&&(r[r.length-1]=o.withText(o.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Pe(r,this.size+e.size)}cut(e,o=this.size){if(e==0&&o==this.size)return this;let n=[],r=0;if(o>e)for(let i=0,s=0;s<o;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>o)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,o-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,o-s-1))),n.push(a),r+=a.nodeSize),s=l}return new Pe(n,r)}cutByIndex(e,o){return e==o?Pe.empty:e==0&&o==this.content.length?this:new Pe(this.content.slice(e,o))}replaceChild(e,o){let n=this.content[e];if(n==o)return this;let r=this.content.slice(),i=this.size+o.nodeSize-n.nodeSize;return r[e]=o,new Pe(r,i)}addToStart(e){return new Pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let o=0;o<this.content.length;o++)if(!this.content[o].eq(e.content[o]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let o=this.content[e];if(!o)throw new RangeError("Index "+e+" out of range for "+this);return o}maybeChild(e){return this.content[e]||null}forEach(e){for(let o=0,n=0;o<this.content.length;o++){let r=this.content[o];e(r,n,o),n+=r.nodeSize}}findDiffStart(e,o=0){return a2e(this,e,o)}findDiffEnd(e,o=this.size,n=e.size){return l2e(this,e,o,n)}findIndex(e){if(e==0)return Q_(0,e);if(e==this.size)return Q_(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let r=this.child(o),i=n+r.nodeSize;if(i>=e)return i==e?Q_(o+1,i):Q_(o,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,o){if(!o)return Pe.empty;if(!Array.isArray(o))throw new RangeError("Invalid input for Fragment.fromJSON");return new Pe(o.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Pe.empty;let o,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(o||(o=e.slice(0,r)),o[o.length-1]=i.withText(o[o.length-1].text+i.text)):o&&o.push(i)}return new Pe(o||e,n)}static from(e){if(!e)return Pe.empty;if(e instanceof Pe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Pe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Pe.empty=new Pe([],0);const C5={index:0,offset:0};function Q_(t,e){return C5.index=t,C5.offset=e,C5}function y3(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let o=Array.isArray(t);if(Array.isArray(e)!=o)return!1;if(o){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!y3(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!y3(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let cn=class sz{constructor(e,o){this.type=e,this.attrs=o}addToSet(e){let o,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))o||(o=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(o||(o=e.slice(0,r)),o.push(this),n=!0),o&&o.push(i)}}return o||(o=e.slice()),n||o.push(this),o}removeFromSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return e.slice(0,o).concat(e.slice(o+1));return e}isInSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return!0;return!1}eq(e){return this==e||this.type==e.type&&y3(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[o.type];if(!n)throw new RangeError(`There is no mark type ${o.type} in this schema`);let r=n.create(o.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,o){if(e==o)return!0;if(e.length!=o.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(o[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return sz.none;if(e instanceof sz)return[e];let o=e.slice();return o.sort((n,r)=>n.type.rank-r.type.rank),o}};cn.none=[];let C3=class extends Error{},ct=class s1{constructor(e,o,n){this.content=e,this.openStart=o,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,o){let n=c2e(this.content,e+this.openStart,o);return n&&new s1(n,this.openStart,this.openEnd)}removeBetween(e,o){return new s1(u2e(this.content,e+this.openStart,o+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,o){if(!o)return s1.empty;let n=o.openStart||0,r=o.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new s1(Pe.fromJSON(e,o.content),n,r)}static maxOpen(e,o=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.lastChild)r++;return new s1(e,n,r)}};ct.empty=new ct(Pe.empty,0,0);function u2e(t,e,o){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(o);if(r==e||i.isText){if(a!=o&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(o))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(u2e(i.content,e-r-1,o-r-1)))}function c2e(t,e,o,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,o)?null:t.cut(0,e).append(o).append(t.cut(e));let a=c2e(s.content,e-i-1,o,s);return a&&t.replaceChild(r,s.copy(a))}function NUt(t,e,o){if(o.openStart>t.depth)throw new C3("Inserted content deeper than insertion position");if(t.depth-o.openStart!=e.depth-o.openEnd)throw new C3("Inconsistent open depths");return d2e(t,e,o,0)}function d2e(t,e,o,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-o.openStart){let s=d2e(t,e,o,n+1);return i.copy(i.content.replaceChild(r,s))}else if(o.content.size)if(!o.openStart&&!o.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Yy(s,a.cut(0,t.parentOffset).append(o.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=VUt(o,t);return Yy(i,h2e(t,s,a,e,n))}else return Yy(i,b3(t,e,n))}function m2e(t,e){if(!e.type.compatibleContent(t.type))throw new C3("Cannot join "+e.type.name+" onto "+t.type.name)}function az(t,e,o){let n=t.node(o);return m2e(n,e.node(o)),n}function Jy(t,e){let o=e.length-1;o>=0&&t.isText&&t.sameMarkup(e[o])?e[o]=t.withText(e[o].text+t.text):e.push(t)}function AF(t,e,o,n){let r=(e||t).node(o),i=0,s=e?e.index(o):r.childCount;t&&(i=t.index(o),t.depth>o?i++:t.textOffset&&(Jy(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Jy(r.child(a),n);e&&e.depth==o&&e.textOffset&&Jy(e.nodeBefore,n)}function Yy(t,e){return t.type.checkContent(e),t.copy(e)}function h2e(t,e,o,n,r){let i=t.depth>r&&az(t,e,r+1),s=n.depth>r&&az(o,n,r+1),a=[];return AF(null,t,r,a),i&&s&&e.index(r)==o.index(r)?(m2e(i,s),Jy(Yy(i,h2e(t,e,o,n,r+1)),a)):(i&&Jy(Yy(i,b3(t,e,r+1)),a),AF(e,o,r,a),s&&Jy(Yy(s,b3(o,n,r+1)),a)),AF(n,null,r,a),new Pe(a)}function b3(t,e,o){let n=[];if(AF(null,t,o,n),t.depth>o){let r=az(t,e,o+1);Jy(Yy(r,b3(t,e,o+1)),n)}return AF(e,null,o,n),new Pe(n)}function VUt(t,e){let o=e.depth-t.openStart,n=e.node(o).copy(t.content);for(let r=o-1;r>=0;r--)n=e.node(r).copy(Pe.from(n));return{start:n.resolveNoCache(t.openStart+o),end:n.resolveNoCache(n.content.size-t.openEnd-o)}}let eue=class lz{constructor(e,o,n){this.pos=e,this.path=o,this.parentOffset=n,this.depth=o.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,o=this.index(this.depth);if(o==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(o);return n?e.child(o).cut(n):r}get nodeBefore(){let e=this.index(this.depth),o=this.pos-this.path[this.path.length-1];return o?this.parent.child(e).cut(0,o):e==0?null:this.parent.child(e-1)}posAtIndex(e,o){o=this.resolveDepth(o);let n=this.path[o*3],r=o==0?0:this.path[o*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,o=this.index();if(e.content.size==0)return cn.none;if(this.textOffset)return e.child(o).marks;let n=e.maybeChild(o-1),r=e.maybeChild(o);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let o=this.parent.maybeChild(this.index());if(!o||!o.isInline)return null;let n=o.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let o=this.depth;o>0;o--)if(this.start(o)<=e&&this.end(o)>=e)return o;return 0}blockRange(e=this,o){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!o||o(this.node(n))))return new v3(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let o=1;o<=this.depth;o++)e+=(e?"/":"")+this.node(o).type.name+"_"+this.index(o-1);return e+":"+this.parentOffset}static resolve(e,o){if(!(o>=0&&o<=e.content.size))throw new RangeError("Position "+o+" out of range");let n=[],r=0,i=o;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(n.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new lz(o,n,i)}static resolveCached(e,o){let n=tue.get(e);if(n)for(let i=0;i<n.elts.length;i++){let s=n.elts[i];if(s.pos==o)return s}else tue.set(e,n=new IUt);let r=n.elts[n.i]=lz.resolve(e,o);return n.i=(n.i+1)%PUt,r}},IUt=class{constructor(){this.elts=[],this.i=0}};const PUt=12,tue=new WeakMap;let v3=class{constructor(e,o,n){this.$from=e,this.$to=o,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const MUt=Object.create(null);let Zy=class uz{constructor(e,o,n,r=cn.none){this.type=e,this.attrs=o,this.marks=r,this.content=n||Pe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,o,n,r=0){this.content.nodesBetween(e,o,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,o,n,r){return this.content.textBetween(e,o,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,o,n){return this.type==e&&y3(this.attrs,o||e.defaultAttrs||MUt)&&cn.sameSet(this.marks,n||cn.none)}copy(e=null){return e==this.content?this:new uz(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new uz(this.type,this.attrs,this.content,e)}cut(e,o=this.content.size){return e==0&&o==this.content.size?this:this.copy(this.content.cut(e,o))}slice(e,o=this.content.size,n=!1){if(e==o)return ct.empty;let r=this.resolve(e),i=this.resolve(o),s=n?0:r.sharedDepth(o),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new ct(l,r.depth-s,i.depth-s)}replace(e,o,n){return NUt(this.resolve(e),this.resolve(o),n)}nodeAt(e){for(let o=this;;){let{index:n,offset:r}=o.content.findIndex(e);if(o=o.maybeChild(n),!o)return null;if(r==e||o.isText)return o;e-=r+1}}childAfter(e){let{index:o,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(o),index:o,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:o,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(o),index:o,offset:n};let r=this.content.child(o-1);return{node:r,index:o-1,offset:n-r.nodeSize}}resolve(e){return eue.resolveCached(this,e)}resolveNoCache(e){return eue.resolve(this,e)}rangeHasMark(e,o,n){let r=!1;return o>e&&this.nodesBetween(e,o,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),p2e(this.marks,e)}contentMatchAt(e){let o=this.type.contentMatch.matchFragment(this.content,0,e);if(!o)throw new Error("Called contentMatchAt on a node with invalid content");return o}canReplace(e,o,n=Pe.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,o);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,o,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,o);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=cn.none;for(let o=0;o<this.marks.length;o++){let n=this.marks[o];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!cn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(o=>o.type.name)}`);this.content.forEach(o=>o.check())}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(o=>o.toJSON())),e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Node.fromJSON");let n;if(o.marks){if(!Array.isArray(o.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=o.marks.map(e.markFromJSON)}if(o.type=="text"){if(typeof o.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(o.text,n)}let r=Pe.fromJSON(e,o.content),i=e.nodeType(o.type).create(o.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Zy.prototype.text=void 0;let OUt=class cz extends Zy{constructor(e,o,n,r){if(super(e,o,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):p2e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,o){return this.text.slice(e,o)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new cz(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new cz(this.type,this.attrs,e,this.marks)}cut(e=0,o=this.text.length){return e==0&&o==this.text.length?this:this.withText(this.text.slice(e,o))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function p2e(t,e){for(let o=t.length-1;o>=0;o--)e=t[o].type.name+"("+e+")";return e}let SL=class f2e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,o){let n=new WUt(e,o);if(n.next==null)return f2e.empty;let r=g2e(n);n.next&&n.err("Unexpected trailing text");let i=GUt(qUt(r));return JUt(i,n),i}matchType(e){for(let o=0;o<this.next.length;o++)if(this.next[o].type==e)return this.next[o].next;return null}matchFragment(e,o=0,n=e.childCount){let r=this;for(let i=o;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:o}=this.next[e];if(!(o.isText||o.hasRequiredAttrs()))return o}return null}compatible(e){for(let o=0;o<this.next.length;o++)for(let n=0;n<e.next.length;n++)if(this.next[o].type==e.next[n].type)return!0;return!1}fillBefore(e,o=!1,n=0){let r=[this];function i(s,a){let l=s.matchFragment(e,n);if(l&&(!o||l.validEnd))return Pe.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let o=this.computeWrapping(e);return this.wrapCache.push(e,o),o}computeWrapping(e){let o=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in o)&&(!r.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),o[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function o(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&o(n.next[r].next)}return o(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
|
|
195
195
|
`)}};SL.empty=new SL(!0);let WUt=class{constructor(e,o){this.string=e,this.nodeTypes=o,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function g2e(t){let e=[];do e.push(HUt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function HUt(t){let e=[];do e.push(zUt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function zUt(t){let e=UUt(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=jUt(t,e);else break;return e}function oue(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function jUt(t,e){let o=oue(t),n=o;return t.eat(",")&&(t.next!="}"?n=oue(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:o,max:n,expr:e}}function KUt(t,e){let o=t.nodeTypes,n=o[e];if(n)return[n];let r=[];for(let i in o){let s=o[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function UUt(t){if(t.eat("(")){let e=g2e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=KUt(t,t.next).map(o=>(t.inline==null?t.inline=o.isInline:t.inline!=o.isInline&&t.err("Mixing inline and block content"),{type:"name",value:o}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function qUt(t){let e=[[]];return r(i(t,0),o()),e;function o(){return e.push([])-1}function n(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=o())}else if(s.type=="star"){let l=o();return n(a,l),r(i(s.expr,l),l),[n(l)]}else if(s.type=="plus"){let l=o();return r(i(s.expr,a),l),r(i(s.expr,l),l),[n(l)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=o();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=o();n(l,c),r(i(s.expr,l),c),l=c}return[n(l)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function y2e(t,e){return e-t}function nue(t,e){let o=[];return n(e),o.sort(y2e);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);o.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&o.indexOf(l)==-1&&n(l)}}}function GUt(t){let e=Object.create(null);return o(nue(t,0));function o(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);nue(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[n.join(",")]=new SL(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(y2e);i.next.push({type:r[s][0],next:e[a.join(",")]||o(a)})}return i}}function JUt(t,e){for(let o=0,n=[t];o<n.length;o++){let r=n[o],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function C2e(t){let e=Object.create(null);for(let o in t){let n=t[o];if(!n.hasDefault)return null;e[o]=n.default}return e}function b2e(t,e){let o=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}o[n]=r}return o}function v2e(t,e,o,n){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${o} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function S2e(t,e){let o=Object.create(null);if(e)for(let n in e)o[n]=new ZUt(t,n,e[n]);return o}let rue=class T2e{constructor(e,o,n){this.name=e,this.schema=o,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=S2e(e,n.attrs),this.defaultAttrs=C2e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==SL.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:b2e(this.attrs,e)}create(e=null,o,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Zy(this,this.computeAttrs(e),Pe.from(o),cn.setFrom(n))}createChecked(e=null,o,n){return o=Pe.from(o),this.checkContent(o),new Zy(this,this.computeAttrs(e),o,cn.setFrom(n))}createAndFill(e=null,o,n){if(e=this.computeAttrs(e),o=Pe.from(o),o.size){let s=this.contentMatch.fillBefore(o);if(!s)return null;o=s.append(o)}let r=this.contentMatch.matchFragment(o),i=r&&r.fillBefore(Pe.empty,!0);return i?new Zy(this,e,o.append(i),cn.setFrom(n)):null}validContent(e){let o=this.contentMatch.matchFragment(e);if(!o||!o.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){v2e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let o=0;o<e.length;o++)if(!this.allowsMarkType(e[o].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let o;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?o&&o.push(e[n]):o||(o=e.slice(0,n));return o?o.length?o:cn.none:e}static compile(e,o){let n=Object.create(null);e.forEach((i,s)=>n[i]=new T2e(i,o,s));let r=o.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function YUt(t,e,o){let n=o.split("|");return r=>{let i=r===null?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}let ZUt=class{constructor(e,o,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?YUt(e,o,n.validate):n.validate}get isRequired(){return!this.hasDefault}},w2e=class x2e{constructor(e,o,n,r){this.name=e,this.rank=o,this.schema=n,this.spec=r,this.attrs=S2e(e,r.attrs),this.excluded=null;let i=C2e(this.attrs);this.instance=i?new cn(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cn(this,b2e(this.attrs,e))}static compile(e,o){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new x2e(i,r++,o,s)),n}removeFromSet(e){for(var o=0;o<e.length;o++)e[o].type==this&&(e=e.slice(0,o).concat(e.slice(o+1)),o--);return e}isInSet(e){for(let o=0;o<e.length;o++)if(e[o].type==this)return e[o]}checkAttrs(e){v2e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},XUt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let o=this.spec={};for(let r in e)o[r]=e[r];o.nodes=Ur.from(e.nodes),o.marks=Ur.from(e.marks||{}),this.nodes=rue.compile(this.spec.nodes,this),this.marks=w2e.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=SL.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?iue(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:iue(this,s.split(" "))}this.nodeFromJSON=r=>Zy.fromJSON(this,r),this.markFromJSON=r=>cn.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,o=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof rue){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(o,n,r)}text(e,o){let n=this.nodes.text;return new OUt(n,n.defaultAttrs,e,cn.setFrom(o))}mark(e,o){return typeof e=="string"&&(e=this.marks[e]),e.create(o)}nodeType(e){let o=this.nodes[e];if(!o)throw new RangeError("Unknown node type: "+e);return o}};function iue(t,e){let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)o.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&o.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return o}function QUt(t){return t.tag!=null}function eqt(t){return t.style!=null}let d$=class dz{constructor(e,o){this.schema=e,this.rules=o,this.tags=[],this.styles=[];let n=this.matchedStyles=[];o.forEach(r=>{if(QUt(r))this.tags.push(r);else if(eqt(r)){let i=/[^=]*/.exec(r.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,o={}){let n=new aue(this,o,!1);return n.addAll(e,cn.none,o.from,o.to),n.finish()}parseSlice(e,o={}){let n=new aue(this,o,!0);return n.addAll(e,cn.none,o.from,o.to),ct.maxOpen(n.finish())}matchTag(e,o,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(nqt(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||o.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,o,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=o))){if(s.getAttrs){let l=s.getAttrs(o);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let o=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<o.length;s++){let a=o[s];if((a.priority==null?50:a.priority)<i)break}o.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=lue(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=lue(s)),s.node||s.ignore||s.mark||(s.node=r)})}return o}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new dz(e,dz.schemaRules(e)))}};const F2e={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},tqt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},k2e={ol:!0,ul:!0},TL=1,mz=2,NF=4;function sue(t,e,o){return e!=null?(e?TL:0)|(e==="full"?mz:0):t&&t.whitespace=="pre"?TL|mz:o&~NF}let eB=class{constructor(e,o,n,r,i,s){this.type=e,this.attrs=o,this.marks=n,this.solid=r,this.options=s,this.content=[],this.activeMarks=cn.none,this.match=i||(s&NF?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let o=this.type.contentMatch.fillBefore(Pe.from(e));if(o)this.match=this.type.contentMatch.matchFragment(o);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&TL)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let o=Pe.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(Pe.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!F2e.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},aue=class{constructor(e,o,n){this.parser=e,this.options=o,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=o.topNode,i,s=sue(null,o.preserveWhitespace,0)|(n?NF:0);r?i=new eB(r.type,r.attrs,cn.none,!0,o.topMatch||r.type.contentMatch,s):n?i=new eB(null,null,cn.none,!0,null,s):i=new eB(e.schema.topNodeType,null,cn.none,!0,null,s),this.nodes=[i],this.find=o.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,o){e.nodeType==3?this.addTextNode(e,o):e.nodeType==1&&this.addElement(e,o)}addTextNode(e,o){let n=e.nodeValue,r=this.top,i=r.options&mz?"full":this.localPreserveWS||(r.options&TL)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
|
|
196
196
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),o,!0),a[l]&&this.insertNode(s.text(a[l]),o,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(s.text(n),o,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,o,n){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;k2e.hasOwnProperty(s)&&this.parser.normalizeLists&&oqt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:tqt.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,o);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(F2e.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,o);break e}let d=l&&l.skip?o:this.readStyles(e,o);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,o);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,o){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
package/package.json
CHANGED