expedite-components 0.0.1 → 0.0.2

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.
@@ -10,10 +10,10 @@
10
10
  * @vue/runtime-core v3.4.21
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const xr=[];function p8(e,...t){gn();const n=xr.length?xr[xr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Of();if(r)nn(r,n,11,[e+t.map(o=>{var a,s;return(s=(a=o.toString)==null?void 0:a.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Yl(n,o.type)}>`).join(`
13
+ **/const xr=[];function g8(e,...t){gn();const n=xr.length?xr[xr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Of();if(r)nn(r,n,11,[e+t.map(o=>{var a,s;return(s=(a=o.toString)==null?void 0:a.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Yl(n,o.type)}>`).join(`
14
14
  `),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
15
15
  `,...Sf(i)),console.warn(...o)}mn()}function Of(){let e=xr[xr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Sf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
- `],...If(n))}),t}function If({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${Yl(e.component,e.type,r)}`,o=">"+n;return e.props?[i,...Af(e.props),o]:[i+o]}function Af(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...cl(r,e[r]))}),n.length>3&&t.push(" ..."),t}function cl(e,t,n){return Qe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Je(t)?(t=cl(e,Le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ne(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Le(t),n?t:[`${e}=`,t])}function nn(e,t,n,r){try{return r?e(...r):e()}catch(i){_i(i,t,n)}}function Pt(e,t,n,r){if(Ne(e)){const o=nn(e,t,n,r);return o&&Ts(o)&&o.catch(a=>{_i(a,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(Pt(e[o],t,n,r));return i}function _i(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let c=0;c<p.length;c++)if(p[c](e,a,s)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){nn(l,null,10,[e,a,s]);return}}Tf(e,n,i,r)}function Tf(e,t,n,r=!0){console.error(e)}let kr=!1,Uo=!1;const ut=[];let Ht=0;const Gn=[];let _n=null,Mn=0;const ul=Promise.resolve();let zo=null;function Ut(e){const t=zo||ul;return e?t.then(this?e.bind(this):e):t}function Nf(e){let t=Ht+1,n=ut.length;for(;t<n;){const r=t+n>>>1,i=ut[r],o=Er(i);o<e||o===e&&i.pre?t=r+1:n=r}return t}function Ko(e){(!ut.length||!ut.includes(e,kr&&e.allowRecurse?Ht+1:Ht))&&(e.id==null?ut.push(e):ut.splice(Nf(e.id),0,e),fl())}function fl(){!kr&&!Uo&&(Uo=!0,zo=ul.then(pl))}function Pf(e){const t=ut.indexOf(e);t>Ht&&ut.splice(t,1)}function Lf(e){ke(e)?Gn.push(...e):(!_n||!_n.includes(e,e.allowRecurse?Mn+1:Mn))&&Gn.push(e),fl()}function dl(e,t,n=kr?Ht+1:0){for(;n<ut.length;n++){const r=ut[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;ut.splice(n,1),n--,r()}}}function hl(e){if(Gn.length){const t=[...new Set(Gn)].sort((n,r)=>Er(n)-Er(r));if(Gn.length=0,_n){_n.push(...t);return}for(_n=t,Mn=0;Mn<_n.length;Mn++)_n[Mn]();_n=null,Mn=0}}const Er=e=>e.id==null?1/0:e.id,Rf=(e,t)=>{const n=Er(e)-Er(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pl(e){Uo=!1,kr=!0,ut.sort(Rf);try{for(Ht=0;Ht<ut.length;Ht++){const t=ut[Ht];t&&t.active!==!1&&nn(t,null,14)}}finally{Ht=0,ut.length=0,hl(),kr=!1,zo=null,(ut.length||Gn.length)&&pl()}}function Mf(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||He;let i=n;const o=t.startsWith("update:"),a=o&&t.slice(7);if(a&&a in r){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:u}=r[c]||He;u&&(i=n.map(g=>Qe(g)?g.trim():g)),f&&(i=n.map(_r))}let s,l=r[s=To(t)]||r[s=To(vt(t))];!l&&o&&(l=r[s=To(Et(t))]),l&&Pt(l,e,6,i);const p=r[s+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Pt(p,e,6,i)}}function gl(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!Ne(e)){const l=p=>{const c=gl(p,t,!0);c&&(s=!0,et(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(Ue(e)&&r.set(e,null),null):(ke(o)?o.forEach(l=>a[l]=null):et(a,o),Ue(e)&&r.set(e,a),a)}function bi(e,t){return!e||!oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,Et(t))||Me(e,t))}let We=null,Ci=null;function wi(e){const t=We;return We=e,Ci=e&&e.type.__scopeId||null,t}function Yn(e){Ci=e}function er(){Ci=null}function De(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ul(-1);const o=wi(t);let a;try{a=e(...i)}finally{wi(o),r._d&&Ul(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function g8(){}function Zo(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:p,render:c,renderCache:f,data:u,setupState:g,ctx:h,inheritAttrs:m}=e;let d,v;const _=wi(e);try{if(n.shapeFlag&4){const y=i||r,w=y;d=zt(c.call(w,y,f,o,g,u,h)),v=l}else{const y=t;d=zt(y.length>1?y(o,{attrs:l,slots:s,emit:p}):y(o,null)),v=t.props?l:qf(l)}}catch(y){Tr.length=0,_i(y,e,1),d=_e(kn)}let C=d;if(v&&m!==!1){const y=Object.keys(v),{shapeFlag:w}=C;y.length&&w&7&&(a&&y.some(So)&&(v=jf(v,a)),C=nr(C,v))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),d=C,wi(_),d}const qf=e=>{let t;for(const n in e)(n==="class"||n==="style"||oi(n))&&((t||(t={}))[n]=e[n]);return t},jf=(e,t)=>{const n={};for(const r in e)(!So(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Df(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ml(r,a,p):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const u=c[f];if(a[u]!==r[u]&&!bi(p,u))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?ml(r,a,p):!0:!!a;return!1}function ml(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!bi(n,o))return!0}return!1}function Bf({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Qo="components",$f="directives";function Or(e,t){return Xo(Qo,e,!0,t)||e}const vl=Symbol.for("v-ndc");function yl(e){return Qe(e)?Xo(Qo,e,!1)||e:e||vl}function Ff(e){return Xo($f,e)}function Xo(e,t,n=!0,r=!1){const i=We||rt;if(i){const o=i.type;if(e===Qo){const s=Gl(o,!1);if(s&&(s===t||s===vt(t)||s===si(vt(t))))return o}const a=_l(i[e]||o[e],t)||_l(i.appContext[e],t);return!a&&r?o:a}}function _l(e,t){return e&&(e[t]||e[vt(t)]||e[si(vt(t))])}const Vf=e=>e.__isSuspense;function Hf(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):Lf(e)}const Uf=Symbol.for("v-scx"),zf=()=>xn(Uf);function Kf(e,t){return Jo(e,null,{flush:"sync"})}const xi={};function St(e,t,n){return Jo(e,t,n)}function Jo(e,t,{immediate:n,deep:r,flush:i,once:o,onTrack:a,onTrigger:s}=He){if(t&&o){const A=t;t=(...I)=>{A(...I),w()}}const l=rt,p=A=>r===!0?A:qn(A,r===!1?1:void 0);let c,f=!1,u=!1;if(Je(e)?(c=()=>e.value,f=vi(e)):yn(e)?(c=()=>p(e),f=!0):ke(e)?(u=!0,f=e.some(A=>yn(A)||vi(A)),c=()=>e.map(A=>{if(Je(A))return A.value;if(yn(A))return p(A);if(Ne(A))return nn(A,l,2)})):Ne(e)?t?c=()=>nn(e,l,2):c=()=>(g&&g(),Pt(e,l,3,[h])):c=It,t&&r){const A=c;c=()=>qn(A())}let g,h=A=>{g=C.onStop=()=>{nn(A,l,4),g=C.onStop=void 0}},m;if(Ri)if(h=It,t?n&&Pt(t,l,3,[c(),u?[]:void 0,h]):c(),i==="sync"){const A=zf();m=A.__watcherHandles||(A.__watcherHandles=[])}else return It;let d=u?new Array(e.length).fill(xi):xi;const v=()=>{if(!(!C.active||!C.dirty))if(t){const A=C.run();(r||f||(u?A.some((I,S)=>Vt(I,d[S])):Vt(A,d)))&&(g&&g(),Pt(t,l,3,[A,d===xi?void 0:u&&d[0]===xi?[]:d,h]),d=A)}else C.run()};v.allowRecurse=!!t;let _;i==="sync"?_=v:i==="post"?_=()=>_t(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),_=()=>Ko(v));const C=new Lo(c,It,_),y=$s(),w=()=>{C.stop(),y&&Io(y.effects,C)};return t?n?v():d=C.run():i==="post"?_t(C.run.bind(C),l&&l.suspense):C.run(),m&&m.push(w),w}function Zf(e,t,n){const r=this.proxy,i=Qe(e)?e.includes(".")?bl(r,e):()=>r[e]:e.bind(r,r);let o;Ne(t)?o=t:(o=t.handler,n=t);const a=Rr(this),s=Jo(i,o.bind(r),n);return a(),s}function bl(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qn(e,t,n=0,r){if(!Ue(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Je(e))qn(e.value,t,n,r);else if(ke(e))for(let i=0;i<e.length;i++)qn(e[i],t,n,r);else if(Jn(e)||Xn(e))e.forEach(i=>{qn(i,t,n,r)});else if(Ps(e))for(const i in e)qn(e[i],t,n,r);return e}function bn(e,t){if(We===null)return e;const n=Mi(We)||We.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=He]=t[i];o&&(Ne(o)&&(o={mounted:o,updated:o}),o.deep&&qn(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function jn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(gn(),Pt(l,n,8,[e.el,s,e,t]),mn())}}/*! #__NO_SIDE_EFFECTS__ */function Cl(e,t){return Ne(e)?et({name:e.name},t,{setup:e}):e}const Sr=e=>!!e.type.__asyncLoader,wl=e=>e.type.__isKeepAlive;function Qf(e,t){xl(e,"a",t)}function Xf(e,t){xl(e,"da",t)}function xl(e,t,n=rt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ki(t,r,n),n){let i=n.parent;for(;i&&i.parent;)wl(i.parent.vnode)&&Jf(r,t,n,i),i=i.parent}}function Jf(e,t,n,r){const i=ki(t,e,r,!0);Wo(()=>{Io(r[t],i)},n)}function ki(e,t,n=rt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;gn();const s=Rr(n),l=Pt(t,n,e,a);return s(),mn(),l});return r?i.unshift(o):i.push(o),o}}const rn=e=>(t,n=rt)=>(!Ri||e==="sp")&&ki(e,(...r)=>t(...r),n),Cn=rn("bm"),wn=rn("m"),kl=rn("bu"),Wf=rn("u"),Ei=rn("bum"),Wo=rn("um"),Gf=rn("sp"),Yf=rn("rtg"),ed=rn("rtc");function td(e,t=rt){ki("ec",e,t)}function ze(e,t,n,r){let i;const o=n&&n[r];if(ke(e)||Qe(e)){i=new Array(e.length);for(let a=0,s=e.length;a<s;a++)i[a]=t(e[a],a,void 0,o&&o[a])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(Ue(e))if(e[Symbol.iterator])i=Array.from(e,(a,s)=>t(a,s,void 0,o&&o[s]));else{const a=Object.keys(e);i=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const p=a[s];i[s]=t(e[p],p,s,o&&o[s])}}else i=[];return n&&(n[r]=i),i}function Ze(e,t,n={},r,i){if(We.isCE||We.parent&&Sr(We.parent)&&We.parent.isCE)return t!=="default"&&(n.name=t),_e("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),X();const a=o&&El(o(n)),s=Te(Oe,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function El(e){return e.some(t=>Ti(t)?!(t.type===kn||t.type===Oe&&!El(t.children)):!0)?e:null}const Go=e=>e?Ql(e)?Mi(e)||e.proxy:Go(e.parent):null,Ir=et(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Go(e.parent),$root:e=>Go(e.root),$emit:e=>e.emit,$options:e=>ta(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ko(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>Zf.bind(e)}),Yo=(e,t)=>e!==He&&!e.__isScriptSetup&&Me(e,t),nd={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let p;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Yo(r,t))return a[t]=1,r[t];if(i!==He&&Me(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Me(p,t))return a[t]=3,o[t];if(n!==He&&Me(n,t))return a[t]=4,n[t];ea&&(a[t]=0)}}const c=Ir[t];let f,u;if(c)return t==="$attrs"&&yt(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==He&&Me(n,t))return a[t]=4,n[t];if(u=l.config.globalProperties,Me(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Yo(i,t)?(i[t]=n,!0):r!==He&&Me(r,t)?(r[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==He&&Me(e,a)||Yo(t,a)||(s=o[0])&&Me(s,a)||Me(r,a)||Me(Ir,a)||Me(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ol(e,t){return!e||!t?e||t:ke(e)&&ke(t)?e.concat(t):et({},Oi(e),Oi(t))}let ea=!0;function rd(e){const t=ta(e),n=e.proxy,r=e.ctx;ea=!1,t.beforeCreate&&Sl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:p,created:c,beforeMount:f,mounted:u,beforeUpdate:g,updated:h,activated:m,deactivated:d,beforeDestroy:v,beforeUnmount:_,destroyed:C,unmounted:y,render:w,renderTracked:A,renderTriggered:I,errorCaptured:S,serverPrefetch:N,expose:T,inheritAttrs:k,components:E,directives:L,filters:V}=t;if(p&&id(p,r,null),a)for(const te in a){const fe=a[te];Ne(fe)&&(r[te]=fe.bind(n))}if(i){const te=i.call(n,n);Ue(te)&&(e.data=br(te))}if(ea=!0,o)for(const te in o){const fe=o[te],ee=Ne(fe)?fe.bind(n,n):Ne(fe.get)?fe.get.bind(n,n):It,j=!Ne(fe)&&Ne(fe.set)?fe.set.bind(n):It,O=be({get:ee,set:j});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>O.value,set:P=>O.value=P})}if(s)for(const te in s)Il(s[te],r,n,te);if(l){const te=Ne(l)?l.call(n):l;Reflect.ownKeys(te).forEach(fe=>{ud(fe,te[fe])})}c&&Sl(c,e,"c");function W(te,fe){ke(fe)?fe.forEach(ee=>te(ee.bind(n))):fe&&te(fe.bind(n))}if(W(Cn,f),W(wn,u),W(kl,g),W(Wf,h),W(Qf,m),W(Xf,d),W(td,S),W(ed,A),W(Yf,I),W(Ei,_),W(Wo,y),W(Gf,N),ke(T))if(T.length){const te=e.exposed||(e.exposed={});T.forEach(fe=>{Object.defineProperty(te,fe,{get:()=>n[fe],set:ee=>n[fe]=ee})})}else e.exposed||(e.exposed={});w&&e.render===It&&(e.render=w),k!=null&&(e.inheritAttrs=k),E&&(e.components=E),L&&(e.directives=L)}function id(e,t,n=It){ke(e)&&(e=na(e));for(const r in e){const i=e[r];let o;Ue(i)?"default"in i?o=xn(i.from||r,i.default,!0):o=xn(i.from||r):o=xn(i),Je(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Sl(e,t,n){Pt(ke(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Il(e,t,n,r){const i=r.includes(".")?bl(n,r):()=>n[r];if(Qe(e)){const o=t[e];Ne(o)&&St(i,o)}else if(Ne(e))St(i,e.bind(n));else if(Ue(e))if(ke(e))e.forEach(o=>Il(o,t,n,r));else{const o=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(o)&&St(i,o,e)}}function ta(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(p=>Si(l,p,a,!0)),Si(l,t,a)),Ue(t)&&o.set(t,l),l}function Si(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Si(e,o,n,!0),i&&i.forEach(a=>Si(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=od[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const od={data:Al,props:Tl,emits:Tl,methods:Ar,computed:Ar,beforeCreate:gt,created:gt,beforeMount:gt,mounted:gt,beforeUpdate:gt,updated:gt,beforeDestroy:gt,beforeUnmount:gt,destroyed:gt,unmounted:gt,activated:gt,deactivated:gt,errorCaptured:gt,serverPrefetch:gt,components:Ar,directives:Ar,watch:sd,provide:Al,inject:ad};function Al(e,t){return t?e?function(){return et(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function ad(e,t){return Ar(na(e),na(t))}function na(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ar(e,t){return e?et(Object.create(null),e,t):t}function Tl(e,t){return e?ke(e)&&ke(t)?[...new Set([...e,...t])]:et(Object.create(null),Oi(e),Oi(t??{})):t}function sd(e,t){if(!e)return t;if(!t)return e;const n=et(Object.create(null),e);for(const r in t)n[r]=gt(e[r],t[r]);return n}function Nl(){return{app:null,config:{isNativeTag:qu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ld=0;function cd(e,t){return function(r,i=null){Ne(r)||(r=et({},r)),i!=null&&!Ue(i)&&(i=null);const o=Nl(),a=new WeakSet;let s=!1;const l=o.app={_uid:ld++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:jd,get config(){return o.config},set config(p){},use(p,...c){return a.has(p)||(p&&Ne(p.install)?(a.add(p),p.install(l,...c)):Ne(p)&&(a.add(p),p(l,...c))),l},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),l},component(p,c){return c?(o.components[p]=c,l):o.components[p]},directive(p,c){return c?(o.directives[p]=c,l):o.directives[p]},mount(p,c,f){if(!s){const u=_e(r,i);return u.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(u,p):e(u,p,f),s=!0,l._container=p,p.__vue_app__=l,Mi(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(p,c){return o.provides[p]=c,l},runWithContext(p){const c=tr;tr=l;try{return p()}finally{tr=c}}};return l}}let tr=null;function ud(e,t){if(rt){let n=rt.provides;const r=rt.parent&&rt.parent.provides;r===n&&(n=rt.provides=Object.create(r)),n[e]=t}}function xn(e,t,n=!1){const r=rt||We;if(r||tr){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tr._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ne(t)?t.call(r&&r.proxy):t}}function Pl(){return!!(rt||We||tr)}function fd(e,t,n,r=!1){const i={},o={};ci(o,Ni,1),e.propsDefaults=Object.create(null),Ll(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:mf(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function dd(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Le(i),[l]=e.propsOptions;let p=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let u=c[f];if(bi(e.emitsOptions,u))continue;const g=t[u];if(l)if(Me(o,u))g!==o[u]&&(o[u]=g,p=!0);else{const h=vt(u);i[h]=ra(l,s,h,g,e,!1)}else g!==o[u]&&(o[u]=g,p=!0)}}}else{Ll(e,t,i,o)&&(p=!0);let c;for(const f in s)(!t||!Me(t,f)&&((c=Et(f))===f||!Me(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=ra(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!Me(t,f))&&(delete o[f],p=!0)}p&&tn(e,"set","$attrs")}function Ll(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(yr(l))continue;const p=t[l];let c;i&&Me(i,c=vt(l))?!o||!o.includes(c)?n[c]=p:(s||(s={}))[c]=p:bi(e.emitsOptions,l)||(!(l in r)||p!==r[l])&&(r[l]=p,a=!0)}if(o){const l=Le(n),p=s||He;for(let c=0;c<o.length;c++){const f=o[c];n[f]=ra(i,l,f,p[f],e,!Me(p,f))}}return a}function ra(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=Me(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ne(l)){const{propsDefaults:p}=i;if(n in p)r=p[n];else{const c=Rr(i);r=p[n]=l.call(null,t),c()}}else r=l}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===Et(n))&&(r=!0))}return r}function Rl(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!Ne(e)){const c=f=>{l=!0;const[u,g]=Rl(f,t,!0);et(a,u),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Ue(e)&&r.set(e,Qn),Qn;if(ke(o))for(let c=0;c<o.length;c++){const f=vt(o[c]);Ml(f)&&(a[f]=He)}else if(o)for(const c in o){const f=vt(c);if(Ml(f)){const u=o[c],g=a[f]=ke(u)||Ne(u)?{type:u}:et({},u);if(g){const h=Dl(Boolean,g.type),m=Dl(String,g.type);g[0]=h>-1,g[1]=m<0||h<m,(h>-1||Me(g,"default"))&&s.push(f)}}}const p=[a,s];return Ue(e)&&r.set(e,p),p}function Ml(e){return e[0]!=="$"&&!yr(e)}function ql(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function jl(e,t){return ql(e)===ql(t)}function Dl(e,t){return ke(t)?t.findIndex(n=>jl(n,e)):Ne(t)&&jl(t,e)?0:-1}const Bl=e=>e[0]==="_"||e==="$stable",ia=e=>ke(e)?e.map(zt):[zt(e)],hd=(e,t,n)=>{if(t._n)return t;const r=De((...i)=>ia(t(...i)),n);return r._c=!1,r},$l=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Bl(i))continue;const o=e[i];if(Ne(o))t[i]=hd(i,o,r);else if(o!=null){const a=ia(o);t[i]=()=>a}}},Fl=(e,t)=>{const n=ia(t);e.slots.default=()=>n},pd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),ci(t,"_",n)):$l(t,e.slots={})}else e.slots={},t&&Fl(e,t);ci(e.slots,Ni,1)},gd=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=He;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:(et(i,t),!n&&s===1&&delete i._):(o=!t.$stable,$l(t,i)),a=t}else t&&(Fl(e,t),a={default:1});if(o)for(const s in i)!Bl(s)&&a[s]==null&&delete i[s]};function oa(e,t,n,r,i=!1){if(ke(e)){e.forEach((u,g)=>oa(u,t&&(ke(t)?t[g]:t),n,r,i));return}if(Sr(r)&&!i)return;const o=r.shapeFlag&4?Mi(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:l}=e,p=t&&t.r,c=s.refs===He?s.refs={}:s.refs,f=s.setupState;if(p!=null&&p!==l&&(Qe(p)?(c[p]=null,Me(f,p)&&(f[p]=null)):Je(p)&&(p.value=null)),Ne(l))nn(l,s,12,[a,c]);else{const u=Qe(l),g=Je(l);if(u||g){const h=()=>{if(e.f){const m=u?Me(f,l)?f[l]:c[l]:l.value;i?ke(m)&&Io(m,o):ke(m)?m.includes(o)||m.push(o):u?(c[l]=[o],Me(f,l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else u?(c[l]=a,Me(f,l)&&(f[l]=a)):g&&(l.value=a,e.k&&(c[e.k]=a))};a?(h.id=-1,_t(h,n)):h()}}}const _t=Hf;function md(e){return vd(e)}function vd(e,t){const n=Ms();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:p,setElementText:c,parentNode:f,nextSibling:u,setScopeId:g=It,insertStaticContent:h}=e,m=(R,z,oe,ce=null,le=null,Y=null,ie=void 0,se=null,ue=!!z.dynamicChildren)=>{if(R===z)return;R&&!Pr(R,z)&&(ce=U(R),P(R,le,Y,!0),R=null),z.patchFlag===-2&&(ue=!1,z.dynamicChildren=null);const{type:re,ref:pe,shapeFlag:ge}=z;switch(re){case Ii:d(R,z,oe,ce);break;case kn:v(R,z,oe,ce);break;case Ai:R==null&&_(z,oe,ce,ie);break;case Oe:E(R,z,oe,ce,le,Y,ie,se,ue);break;default:ge&1?w(R,z,oe,ce,le,Y,ie,se,ue):ge&6?L(R,z,oe,ce,le,Y,ie,se,ue):(ge&64||ge&128)&&re.process(R,z,oe,ce,le,Y,ie,se,ue,$)}pe!=null&&le&&oa(pe,R&&R.ref,Y,z||R,!z)},d=(R,z,oe,ce)=>{if(R==null)r(z.el=s(z.children),oe,ce);else{const le=z.el=R.el;z.children!==R.children&&p(le,z.children)}},v=(R,z,oe,ce)=>{R==null?r(z.el=l(z.children||""),oe,ce):z.el=R.el},_=(R,z,oe,ce)=>{[R.el,R.anchor]=h(R.children,z,oe,ce,R.el,R.anchor)},C=({el:R,anchor:z},oe,ce)=>{let le;for(;R&&R!==z;)le=u(R),r(R,oe,ce),R=le;r(z,oe,ce)},y=({el:R,anchor:z})=>{let oe;for(;R&&R!==z;)oe=u(R),i(R),R=oe;i(z)},w=(R,z,oe,ce,le,Y,ie,se,ue)=>{z.type==="svg"?ie="svg":z.type==="math"&&(ie="mathml"),R==null?A(z,oe,ce,le,Y,ie,se,ue):N(R,z,le,Y,ie,se,ue)},A=(R,z,oe,ce,le,Y,ie,se)=>{let ue,re;const{props:pe,shapeFlag:ge,transition:me,dirs:Ce}=R;if(ue=R.el=a(R.type,Y,pe&&pe.is,pe),ge&8?c(ue,R.children):ge&16&&S(R.children,ue,null,ce,le,aa(R,Y),ie,se),Ce&&jn(R,null,ce,"created"),I(ue,R,R.scopeId,ie,ce),pe){for(const we in pe)we!=="value"&&!yr(we)&&o(ue,we,null,pe[we],Y,R.children,ce,le,B);"value"in pe&&o(ue,"value",null,pe.value,Y),(re=pe.onVnodeBeforeMount)&&Kt(re,ce,R)}Ce&&jn(R,null,ce,"beforeMount");const Ee=yd(le,me);Ee&&me.beforeEnter(ue),r(ue,z,oe),((re=pe&&pe.onVnodeMounted)||Ee||Ce)&&_t(()=>{re&&Kt(re,ce,R),Ee&&me.enter(ue),Ce&&jn(R,null,ce,"mounted")},le)},I=(R,z,oe,ce,le)=>{if(oe&&g(R,oe),ce)for(let Y=0;Y<ce.length;Y++)g(R,ce[Y]);if(le){let Y=le.subTree;if(z===Y){const ie=le.vnode;I(R,ie,ie.scopeId,ie.slotScopeIds,le.parent)}}},S=(R,z,oe,ce,le,Y,ie,se,ue=0)=>{for(let re=ue;re<R.length;re++){const pe=R[re]=se?En(R[re]):zt(R[re]);m(null,pe,z,oe,ce,le,Y,ie,se)}},N=(R,z,oe,ce,le,Y,ie)=>{const se=z.el=R.el;let{patchFlag:ue,dynamicChildren:re,dirs:pe}=z;ue|=R.patchFlag&16;const ge=R.props||He,me=z.props||He;let Ce;if(oe&&Dn(oe,!1),(Ce=me.onVnodeBeforeUpdate)&&Kt(Ce,oe,z,R),pe&&jn(z,R,oe,"beforeUpdate"),oe&&Dn(oe,!0),re?T(R.dynamicChildren,re,se,oe,ce,aa(z,le),Y):ie||fe(R,z,se,null,oe,ce,aa(z,le),Y,!1),ue>0){if(ue&16)k(se,z,ge,me,oe,ce,le);else if(ue&2&&ge.class!==me.class&&o(se,"class",null,me.class,le),ue&4&&o(se,"style",ge.style,me.style,le),ue&8){const Ee=z.dynamicProps;for(let we=0;we<Ee.length;we++){const je=Ee[we],Se=ge[je],Ke=me[je];(Ke!==Se||je==="value")&&o(se,je,Se,Ke,le,R.children,oe,ce,B)}}ue&1&&R.children!==z.children&&c(se,z.children)}else!ie&&re==null&&k(se,z,ge,me,oe,ce,le);((Ce=me.onVnodeUpdated)||pe)&&_t(()=>{Ce&&Kt(Ce,oe,z,R),pe&&jn(z,R,oe,"updated")},ce)},T=(R,z,oe,ce,le,Y,ie)=>{for(let se=0;se<z.length;se++){const ue=R[se],re=z[se],pe=ue.el&&(ue.type===Oe||!Pr(ue,re)||ue.shapeFlag&70)?f(ue.el):oe;m(ue,re,pe,null,ce,le,Y,ie,!0)}},k=(R,z,oe,ce,le,Y,ie)=>{if(oe!==ce){if(oe!==He)for(const se in oe)!yr(se)&&!(se in ce)&&o(R,se,oe[se],null,ie,z.children,le,Y,B);for(const se in ce){if(yr(se))continue;const ue=ce[se],re=oe[se];ue!==re&&se!=="value"&&o(R,se,re,ue,ie,z.children,le,Y,B)}"value"in ce&&o(R,"value",oe.value,ce.value,ie)}},E=(R,z,oe,ce,le,Y,ie,se,ue)=>{const re=z.el=R?R.el:s(""),pe=z.anchor=R?R.anchor:s("");let{patchFlag:ge,dynamicChildren:me,slotScopeIds:Ce}=z;Ce&&(se=se?se.concat(Ce):Ce),R==null?(r(re,oe,ce),r(pe,oe,ce),S(z.children||[],oe,pe,le,Y,ie,se,ue)):ge>0&&ge&64&&me&&R.dynamicChildren?(T(R.dynamicChildren,me,oe,le,Y,ie,se),(z.key!=null||le&&z===le.subTree)&&Vl(R,z,!0)):fe(R,z,oe,pe,le,Y,ie,se,ue)},L=(R,z,oe,ce,le,Y,ie,se,ue)=>{z.slotScopeIds=se,R==null?z.shapeFlag&512?le.ctx.activate(z,oe,ce,ie,ue):V(z,oe,ce,le,Y,ie,ue):K(R,z,ue)},V=(R,z,oe,ce,le,Y,ie)=>{const se=R.component=Od(R,ce,le);if(wl(R)&&(se.ctx.renderer=$),Id(se),se.asyncDep){if(le&&le.registerDep(se,W),!R.el){const ue=se.subTree=_e(kn);v(null,ue,z,oe)}}else W(se,R,z,oe,le,Y,ie)},K=(R,z,oe)=>{const ce=z.component=R.component;if(Df(R,z,oe))if(ce.asyncDep&&!ce.asyncResolved){te(ce,z,oe);return}else ce.next=z,Pf(ce.update),ce.effect.dirty=!0,ce.update();else z.el=R.el,ce.vnode=z},W=(R,z,oe,ce,le,Y,ie)=>{const se=()=>{if(R.isMounted){let{next:pe,bu:ge,u:me,parent:Ce,vnode:Ee}=R;{const Dt=Hl(R);if(Dt){pe&&(pe.el=Ee.el,te(R,pe,ie)),Dt.asyncDep.then(()=>{R.isUnmounted||se()});return}}let we=pe,je;Dn(R,!1),pe?(pe.el=Ee.el,te(R,pe,ie)):pe=Ee,ge&&li(ge),(je=pe.props&&pe.props.onVnodeBeforeUpdate)&&Kt(je,Ce,pe,Ee),Dn(R,!0);const Se=Zo(R),Ke=R.subTree;R.subTree=Se,m(Ke,Se,f(Ke.el),U(Ke),R,le,Y),pe.el=Se.el,we===null&&Bf(R,Se.el),me&&_t(me,le),(je=pe.props&&pe.props.onVnodeUpdated)&&_t(()=>Kt(je,Ce,pe,Ee),le)}else{let pe;const{el:ge,props:me}=z,{bm:Ce,m:Ee,parent:we}=R,je=Sr(z);if(Dn(R,!1),Ce&&li(Ce),!je&&(pe=me&&me.onVnodeBeforeMount)&&Kt(pe,we,z),Dn(R,!0),ge&&J){const Se=()=>{R.subTree=Zo(R),J(ge,R.subTree,R,le,null)};je?z.type.__asyncLoader().then(()=>!R.isUnmounted&&Se()):Se()}else{const Se=R.subTree=Zo(R);m(null,Se,oe,ce,R,le,Y),z.el=Se.el}if(Ee&&_t(Ee,le),!je&&(pe=me&&me.onVnodeMounted)){const Se=z;_t(()=>Kt(pe,we,Se),le)}(z.shapeFlag&256||we&&Sr(we.vnode)&&we.vnode.shapeFlag&256)&&R.a&&_t(R.a,le),R.isMounted=!0,z=oe=ce=null}},ue=R.effect=new Lo(se,It,()=>Ko(re),R.scope),re=R.update=()=>{ue.dirty&&ue.run()};re.id=R.uid,Dn(R,!0),re()},te=(R,z,oe)=>{z.component=R;const ce=R.vnode.props;R.vnode=z,R.next=null,dd(R,z.props,ce,oe),gd(R,z.children,oe),gn(),dl(R),mn()},fe=(R,z,oe,ce,le,Y,ie,se,ue=!1)=>{const re=R&&R.children,pe=R?R.shapeFlag:0,ge=z.children,{patchFlag:me,shapeFlag:Ce}=z;if(me>0){if(me&128){j(re,ge,oe,ce,le,Y,ie,se,ue);return}else if(me&256){ee(re,ge,oe,ce,le,Y,ie,se,ue);return}}Ce&8?(pe&16&&B(re,le,Y),ge!==re&&c(oe,ge)):pe&16?Ce&16?j(re,ge,oe,ce,le,Y,ie,se,ue):B(re,le,Y,!0):(pe&8&&c(oe,""),Ce&16&&S(ge,oe,ce,le,Y,ie,se,ue))},ee=(R,z,oe,ce,le,Y,ie,se,ue)=>{R=R||Qn,z=z||Qn;const re=R.length,pe=z.length,ge=Math.min(re,pe);let me;for(me=0;me<ge;me++){const Ce=z[me]=ue?En(z[me]):zt(z[me]);m(R[me],Ce,oe,null,le,Y,ie,se,ue)}re>pe?B(R,le,Y,!0,!1,ge):S(z,oe,ce,le,Y,ie,se,ue,ge)},j=(R,z,oe,ce,le,Y,ie,se,ue)=>{let re=0;const pe=z.length;let ge=R.length-1,me=pe-1;for(;re<=ge&&re<=me;){const Ce=R[re],Ee=z[re]=ue?En(z[re]):zt(z[re]);if(Pr(Ce,Ee))m(Ce,Ee,oe,null,le,Y,ie,se,ue);else break;re++}for(;re<=ge&&re<=me;){const Ce=R[ge],Ee=z[me]=ue?En(z[me]):zt(z[me]);if(Pr(Ce,Ee))m(Ce,Ee,oe,null,le,Y,ie,se,ue);else break;ge--,me--}if(re>ge){if(re<=me){const Ce=me+1,Ee=Ce<pe?z[Ce].el:ce;for(;re<=me;)m(null,z[re]=ue?En(z[re]):zt(z[re]),oe,Ee,le,Y,ie,se,ue),re++}}else if(re>me)for(;re<=ge;)P(R[re],le,Y,!0),re++;else{const Ce=re,Ee=re,we=new Map;for(re=Ee;re<=me;re++){const it=z[re]=ue?En(z[re]):zt(z[re]);it.key!=null&&we.set(it.key,re)}let je,Se=0;const Ke=me-Ee+1;let Dt=!1,ur=0;const Bt=new Array(Ke);for(re=0;re<Ke;re++)Bt[re]=0;for(re=Ce;re<=ge;re++){const it=R[re];if(Se>=Ke){P(it,le,Y,!0);continue}let st;if(it.key!=null)st=we.get(it.key);else for(je=Ee;je<=me;je++)if(Bt[je-Ee]===0&&Pr(it,z[je])){st=je;break}st===void 0?P(it,le,Y,!0):(Bt[st-Ee]=re+1,st>=ur?ur=st:Dt=!0,m(it,z[st],oe,null,le,Y,ie,se,ue),Se++)}const ln=Dt?_d(Bt):Qn;for(je=ln.length-1,re=Ke-1;re>=0;re--){const it=Ee+re,st=z[it],Jt=it+1<pe?z[it+1].el:ce;Bt[re]===0?m(null,st,oe,Jt,le,Y,ie,se,ue):Dt&&(je<0||re!==ln[je]?O(st,oe,Jt,2):je--)}}},O=(R,z,oe,ce,le=null)=>{const{el:Y,type:ie,transition:se,children:ue,shapeFlag:re}=R;if(re&6){O(R.component.subTree,z,oe,ce);return}if(re&128){R.suspense.move(z,oe,ce);return}if(re&64){ie.move(R,z,oe,$);return}if(ie===Oe){r(Y,z,oe);for(let ge=0;ge<ue.length;ge++)O(ue[ge],z,oe,ce);r(R.anchor,z,oe);return}if(ie===Ai){C(R,z,oe);return}if(ce!==2&&re&1&&se)if(ce===0)se.beforeEnter(Y),r(Y,z,oe),_t(()=>se.enter(Y),le);else{const{leave:ge,delayLeave:me,afterLeave:Ce}=se,Ee=()=>r(Y,z,oe),we=()=>{ge(Y,()=>{Ee(),Ce&&Ce()})};me?me(Y,Ee,we):we()}else r(Y,z,oe)},P=(R,z,oe,ce=!1,le=!1)=>{const{type:Y,props:ie,ref:se,children:ue,dynamicChildren:re,shapeFlag:pe,patchFlag:ge,dirs:me}=R;if(se!=null&&oa(se,null,oe,R,!0),pe&256){z.ctx.deactivate(R);return}const Ce=pe&1&&me,Ee=!Sr(R);let we;if(Ee&&(we=ie&&ie.onVnodeBeforeUnmount)&&Kt(we,z,R),pe&6)Q(R.component,oe,ce);else{if(pe&128){R.suspense.unmount(oe,ce);return}Ce&&jn(R,null,z,"beforeUnmount"),pe&64?R.type.remove(R,z,oe,le,$,ce):re&&(Y!==Oe||ge>0&&ge&64)?B(re,z,oe,!1,!0):(Y===Oe&&ge&384||!le&&pe&16)&&B(ue,z,oe),ce&&M(R)}(Ee&&(we=ie&&ie.onVnodeUnmounted)||Ce)&&_t(()=>{we&&Kt(we,z,R),Ce&&jn(R,null,z,"unmounted")},oe)},M=R=>{const{type:z,el:oe,anchor:ce,transition:le}=R;if(z===Oe){Z(oe,ce);return}if(z===Ai){y(R);return}const Y=()=>{i(oe),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(R.shapeFlag&1&&le&&!le.persisted){const{leave:ie,delayLeave:se}=le,ue=()=>ie(oe,Y);se?se(R.el,Y,ue):ue()}else Y()},Z=(R,z)=>{let oe;for(;R!==z;)oe=u(R),i(R),R=oe;i(z)},Q=(R,z,oe)=>{const{bum:ce,scope:le,update:Y,subTree:ie,um:se}=R;ce&&li(ce),le.stop(),Y&&(Y.active=!1,P(ie,R,z,oe)),se&&_t(se,z),_t(()=>{R.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},B=(R,z,oe,ce=!1,le=!1,Y=0)=>{for(let ie=Y;ie<R.length;ie++)P(R[ie],z,oe,ce,le)},U=R=>R.shapeFlag&6?U(R.component.subTree):R.shapeFlag&128?R.suspense.next():u(R.anchor||R.el);let D=!1;const q=(R,z,oe)=>{R==null?z._vnode&&P(z._vnode,null,null,!0):m(z._vnode||null,R,z,null,null,null,oe),D||(D=!0,dl(),hl(),D=!1),z._vnode=R},$={p:m,um:P,m:O,r:M,mt:V,mc:S,pc:fe,pbc:T,n:U,o:e};let H,J;return t&&([H,J]=t($)),{render:q,hydrate:H,createApp:cd(q,H)}}function aa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Dn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vl(e,t,n=!1){const r=e.children,i=t.children;if(ke(r)&&ke(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=En(i[o]),s.el=a.el),n||Vl(a,s)),s.type===Ii&&(s.el=a.el)}}function _d(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<p?o=s+1:a=s;p<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hl(t)}const bd=e=>e.__isTeleport,Oe=Symbol.for("v-fgt"),Ii=Symbol.for("v-txt"),kn=Symbol.for("v-cmt"),Ai=Symbol.for("v-stc"),Tr=[];let Lt=null;function X(e=!1){Tr.push(Lt=e?null:[])}function Cd(){Tr.pop(),Lt=Tr[Tr.length-1]||null}let Nr=1;function Ul(e){Nr+=e}function zl(e){return e.dynamicChildren=Nr>0?Lt||Qn:null,Cd(),Nr>0&&Lt&&Lt.push(e),e}function ne(e,t,n,r,i,o){return zl(b(e,t,n,r,i,o,!0))}function Te(e,t,n,r,i){return zl(_e(e,t,n,r,i,!0))}function Ti(e){return e?e.__v_isVNode===!0:!1}function Pr(e,t){return e.type===t.type&&e.key===t.key}const Ni="__vInternal",Kl=({key:e})=>e??null,Pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qe(e)||Je(e)||Ne(e)?{i:We,r:e,k:t,f:!!n}:e:null);function b(e,t=null,n=null,r=0,i=null,o=e===Oe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kl(t),ref:t&&Pi(t),scopeId:Ci,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return s?(sa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Qe(n)?8:16),Nr>0&&!a&&Lt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Lt.push(l),l}const _e=wd;function wd(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===vl)&&(e=kn),Ti(e)){const s=nr(e,t,!0);return n&&sa(s,n),Nr>0&&!o&&Lt&&(s.shapeFlag&6?Lt[Lt.indexOf(e)]=s:Lt.push(s)),s.patchFlag|=-2,s}if(Rd(e)&&(e=e.__vccOpts),t){t=xd(t);let{class:s,style:l}=t;s&&!Qe(s)&&(t.class=Ie(s)),Ue(l)&&(al(l)&&!ke(l)&&(l=et({},l)),t.style=tt(l))}const a=Qe(e)?1:Vf(e)?128:bd(e)?64:Ue(e)?4:Ne(e)?2:0;return b(e,t,n,r,i,a,o,!0)}function xd(e){return e?al(e)||Ni in e?et({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,s=t?la(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Kl(s),ref:t&&t.ref?n&&i?ke(i)?i.concat(Pi(t)):[i,Pi(t)]:Pi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fe(e=" ",t=0){return _e(Ii,null,e,t)}function Lr(e,t){const n=_e(Ai,null,e);return n.staticCount=t,n}function ye(e="",t=!1){return t?(X(),Te(kn,null,e)):_e(kn,null,e)}function zt(e){return e==null||typeof e=="boolean"?_e(kn):ke(e)?_e(Oe,null,e.slice()):typeof e=="object"?En(e):_e(Ii,null,String(e))}function En(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function sa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),sa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ni in t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function la(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Ie([t.class,r.class]));else if(i==="style")t.style=tt([t.style,r.style]);else if(oi(i)){const o=t[i],a=r[i];a&&o!==a&&!(ke(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Kt(e,t,n,r=null){Pt(e,t,7,[n,r])}const kd=Nl();let Ed=0;function Od(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||kd,o={uid:Ed++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ds(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rl(r,i),emitsOptions:gl(r,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:r.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Mf.bind(null,o),e.ce&&e.ce(o),o}let rt=null;const Sd=()=>rt||We;let Li,ca;{const e=Ms(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};Li=t("__VUE_INSTANCE_SETTERS__",n=>rt=n),ca=t("__VUE_SSR_SETTERS__",n=>Ri=n)}const Rr=e=>{const t=rt;return Li(e),e.scope.on(),()=>{e.scope.off(),Li(t)}},Zl=()=>{rt&&rt.scope.off(),Li(null)};function Ql(e){return e.vnode.shapeFlag&4}let Ri=!1;function Id(e,t=!1){t&&ca(t);const{props:n,children:r}=e.vnode,i=Ql(e);fd(e,n,i,t),pd(e,r);const o=i?Ad(e,t):void 0;return t&&ca(!1),o}function Ad(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yi(new Proxy(e.ctx,nd));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Nd(e):null,o=Rr(e);gn();const a=nn(r,e,0,[e.props,i]);if(mn(),o(),Ts(a)){if(a.then(Zl,Zl),t)return a.then(s=>{Xl(e,s,t)}).catch(s=>{_i(s,e,0)});e.asyncDep=a}else Xl(e,a,t)}else Wl(e,t)}function Xl(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=ll(t)),Wl(e,n)}let Jl;function Wl(e,t,n){const r=e.type;if(!e.render){if(!t&&Jl&&!r.render){const i=r.template||ta(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,p=et(et({isCustomElement:o,delimiters:s},a),l);r.render=Jl(i,p)}}e.render=r.render||It}{const i=Rr(e);gn();try{rd(e)}finally{mn(),i()}}}function Td(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function Nd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Td(e)},slots:e.slots,emit:e.emit,expose:t}}function Mi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ll(yi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ir)return Ir[n](e)},has(t,n){return n in t||n in Ir}}))}const Pd=/(?:^|[-_])(\w)/g,Ld=e=>e.replace(Pd,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gl(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Yl(e,t,n=!1){let r=Gl(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=o=>{for(const a in o)if(o[a]===t)return a};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Ld(r):n?"App":"Anonymous"}function Rd(e){return Ne(e)&&"__vccOpts"in e}const be=(e,t)=>vf(e,t,Ri);function Md(e,t,n=He){const r=Sd(),i=vt(t),o=Et(t),a=wf((l,p)=>{let c;return Kf(()=>{const f=e[t];Vt(c,f)&&(c=f,p())}),{get(){return l(),n.get?n.get(c):c},set(f){const u=r.vnode.props;!(u&&(t in u||i in u||o in u)&&(`onUpdate:${t}`in u||`onUpdate:${i}`in u||`onUpdate:${o}`in u))&&Vt(f,c)&&(c=f,p()),r.emit(`update:${t}`,n.set?n.set(f):f)}}}),s=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[s]||{}:a,done:!1}:{done:!0}}}},a}function qd(e,t,n){const r=arguments.length;return r===2?Ue(t)&&!ke(t)?Ti(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ti(n)&&(n=[n]),_e(e,t,n))}const jd="3.4.21";/**
16
+ `],...If(n))}),t}function If({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${Yl(e.component,e.type,r)}`,o=">"+n;return e.props?[i,...Af(e.props),o]:[i+o]}function Af(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...cl(r,e[r]))}),n.length>3&&t.push(" ..."),t}function cl(e,t,n){return Qe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Je(t)?(t=cl(e,Le(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ne(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Le(t),n?t:[`${e}=`,t])}function nn(e,t,n,r){try{return r?e(...r):e()}catch(i){_i(i,t,n)}}function Pt(e,t,n,r){if(Ne(e)){const o=nn(e,t,n,r);return o&&Ts(o)&&o.catch(a=>{_i(a,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(Pt(e[o],t,n,r));return i}function _i(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let c=0;c<p.length;c++)if(p[c](e,a,s)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){nn(l,null,10,[e,a,s]);return}}Tf(e,n,i,r)}function Tf(e,t,n,r=!0){console.error(e)}let kr=!1,Uo=!1;const ut=[];let Ht=0;const Gn=[];let _n=null,Mn=0;const ul=Promise.resolve();let zo=null;function Ut(e){const t=zo||ul;return e?t.then(this?e.bind(this):e):t}function Nf(e){let t=Ht+1,n=ut.length;for(;t<n;){const r=t+n>>>1,i=ut[r],o=Er(i);o<e||o===e&&i.pre?t=r+1:n=r}return t}function Ko(e){(!ut.length||!ut.includes(e,kr&&e.allowRecurse?Ht+1:Ht))&&(e.id==null?ut.push(e):ut.splice(Nf(e.id),0,e),fl())}function fl(){!kr&&!Uo&&(Uo=!0,zo=ul.then(pl))}function Pf(e){const t=ut.indexOf(e);t>Ht&&ut.splice(t,1)}function Lf(e){ke(e)?Gn.push(...e):(!_n||!_n.includes(e,e.allowRecurse?Mn+1:Mn))&&Gn.push(e),fl()}function dl(e,t,n=kr?Ht+1:0){for(;n<ut.length;n++){const r=ut[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;ut.splice(n,1),n--,r()}}}function hl(e){if(Gn.length){const t=[...new Set(Gn)].sort((n,r)=>Er(n)-Er(r));if(Gn.length=0,_n){_n.push(...t);return}for(_n=t,Mn=0;Mn<_n.length;Mn++)_n[Mn]();_n=null,Mn=0}}const Er=e=>e.id==null?1/0:e.id,Rf=(e,t)=>{const n=Er(e)-Er(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pl(e){Uo=!1,kr=!0,ut.sort(Rf);try{for(Ht=0;Ht<ut.length;Ht++){const t=ut[Ht];t&&t.active!==!1&&nn(t,null,14)}}finally{Ht=0,ut.length=0,hl(),kr=!1,zo=null,(ut.length||Gn.length)&&pl()}}function Mf(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||He;let i=n;const o=t.startsWith("update:"),a=o&&t.slice(7);if(a&&a in r){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:u}=r[c]||He;u&&(i=n.map(g=>Qe(g)?g.trim():g)),f&&(i=n.map(_r))}let s,l=r[s=To(t)]||r[s=To(vt(t))];!l&&o&&(l=r[s=To(Et(t))]),l&&Pt(l,e,6,i);const p=r[s+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Pt(p,e,6,i)}}function gl(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!Ne(e)){const l=p=>{const c=gl(p,t,!0);c&&(s=!0,et(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(Ue(e)&&r.set(e,null),null):(ke(o)?o.forEach(l=>a[l]=null):et(a,o),Ue(e)&&r.set(e,a),a)}function bi(e,t){return!e||!oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Me(e,t[0].toLowerCase()+t.slice(1))||Me(e,Et(t))||Me(e,t))}let We=null,Ci=null;function wi(e){const t=We;return We=e,Ci=e&&e.type.__scopeId||null,t}function Yn(e){Ci=e}function er(){Ci=null}function De(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ul(-1);const o=wi(t);let a;try{a=e(...i)}finally{wi(o),r._d&&Ul(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function m8(){}function Zo(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:p,render:c,renderCache:f,data:u,setupState:g,ctx:h,inheritAttrs:m}=e;let d,v;const _=wi(e);try{if(n.shapeFlag&4){const y=i||r,w=y;d=zt(c.call(w,y,f,o,g,u,h)),v=l}else{const y=t;d=zt(y.length>1?y(o,{attrs:l,slots:s,emit:p}):y(o,null)),v=t.props?l:qf(l)}}catch(y){Tr.length=0,_i(y,e,1),d=_e(kn)}let C=d;if(v&&m!==!1){const y=Object.keys(v),{shapeFlag:w}=C;y.length&&w&7&&(a&&y.some(So)&&(v=jf(v,a)),C=nr(C,v))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),d=C,wi(_),d}const qf=e=>{let t;for(const n in e)(n==="class"||n==="style"||oi(n))&&((t||(t={}))[n]=e[n]);return t},jf=(e,t)=>{const n={};for(const r in e)(!So(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Df(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ml(r,a,p):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const u=c[f];if(a[u]!==r[u]&&!bi(p,u))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?ml(r,a,p):!0:!!a;return!1}function ml(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!bi(n,o))return!0}return!1}function Bf({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Qo="components",$f="directives";function Or(e,t){return Xo(Qo,e,!0,t)||e}const vl=Symbol.for("v-ndc");function yl(e){return Qe(e)?Xo(Qo,e,!1)||e:e||vl}function Ff(e){return Xo($f,e)}function Xo(e,t,n=!0,r=!1){const i=We||rt;if(i){const o=i.type;if(e===Qo){const s=Gl(o,!1);if(s&&(s===t||s===vt(t)||s===si(vt(t))))return o}const a=_l(i[e]||o[e],t)||_l(i.appContext[e],t);return!a&&r?o:a}}function _l(e,t){return e&&(e[t]||e[vt(t)]||e[si(vt(t))])}const Vf=e=>e.__isSuspense;function Hf(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):Lf(e)}const Uf=Symbol.for("v-scx"),zf=()=>xn(Uf);function Kf(e,t){return Jo(e,null,{flush:"sync"})}const xi={};function St(e,t,n){return Jo(e,t,n)}function Jo(e,t,{immediate:n,deep:r,flush:i,once:o,onTrack:a,onTrigger:s}=He){if(t&&o){const A=t;t=(...I)=>{A(...I),w()}}const l=rt,p=A=>r===!0?A:qn(A,r===!1?1:void 0);let c,f=!1,u=!1;if(Je(e)?(c=()=>e.value,f=vi(e)):yn(e)?(c=()=>p(e),f=!0):ke(e)?(u=!0,f=e.some(A=>yn(A)||vi(A)),c=()=>e.map(A=>{if(Je(A))return A.value;if(yn(A))return p(A);if(Ne(A))return nn(A,l,2)})):Ne(e)?t?c=()=>nn(e,l,2):c=()=>(g&&g(),Pt(e,l,3,[h])):c=It,t&&r){const A=c;c=()=>qn(A())}let g,h=A=>{g=C.onStop=()=>{nn(A,l,4),g=C.onStop=void 0}},m;if(Ri)if(h=It,t?n&&Pt(t,l,3,[c(),u?[]:void 0,h]):c(),i==="sync"){const A=zf();m=A.__watcherHandles||(A.__watcherHandles=[])}else return It;let d=u?new Array(e.length).fill(xi):xi;const v=()=>{if(!(!C.active||!C.dirty))if(t){const A=C.run();(r||f||(u?A.some((I,S)=>Vt(I,d[S])):Vt(A,d)))&&(g&&g(),Pt(t,l,3,[A,d===xi?void 0:u&&d[0]===xi?[]:d,h]),d=A)}else C.run()};v.allowRecurse=!!t;let _;i==="sync"?_=v:i==="post"?_=()=>_t(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),_=()=>Ko(v));const C=new Lo(c,It,_),y=$s(),w=()=>{C.stop(),y&&Io(y.effects,C)};return t?n?v():d=C.run():i==="post"?_t(C.run.bind(C),l&&l.suspense):C.run(),m&&m.push(w),w}function Zf(e,t,n){const r=this.proxy,i=Qe(e)?e.includes(".")?bl(r,e):()=>r[e]:e.bind(r,r);let o;Ne(t)?o=t:(o=t.handler,n=t);const a=Rr(this),s=Jo(i,o.bind(r),n);return a(),s}function bl(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qn(e,t,n=0,r){if(!Ue(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Je(e))qn(e.value,t,n,r);else if(ke(e))for(let i=0;i<e.length;i++)qn(e[i],t,n,r);else if(Jn(e)||Xn(e))e.forEach(i=>{qn(i,t,n,r)});else if(Ps(e))for(const i in e)qn(e[i],t,n,r);return e}function bn(e,t){if(We===null)return e;const n=Mi(We)||We.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=He]=t[i];o&&(Ne(o)&&(o={mounted:o,updated:o}),o.deep&&qn(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function jn(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(gn(),Pt(l,n,8,[e.el,s,e,t]),mn())}}/*! #__NO_SIDE_EFFECTS__ */function Cl(e,t){return Ne(e)?et({name:e.name},t,{setup:e}):e}const Sr=e=>!!e.type.__asyncLoader,wl=e=>e.type.__isKeepAlive;function Qf(e,t){xl(e,"a",t)}function Xf(e,t){xl(e,"da",t)}function xl(e,t,n=rt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ki(t,r,n),n){let i=n.parent;for(;i&&i.parent;)wl(i.parent.vnode)&&Jf(r,t,n,i),i=i.parent}}function Jf(e,t,n,r){const i=ki(t,e,r,!0);Wo(()=>{Io(r[t],i)},n)}function ki(e,t,n=rt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;gn();const s=Rr(n),l=Pt(t,n,e,a);return s(),mn(),l});return r?i.unshift(o):i.push(o),o}}const rn=e=>(t,n=rt)=>(!Ri||e==="sp")&&ki(e,(...r)=>t(...r),n),Cn=rn("bm"),wn=rn("m"),kl=rn("bu"),Wf=rn("u"),Ei=rn("bum"),Wo=rn("um"),Gf=rn("sp"),Yf=rn("rtg"),ed=rn("rtc");function td(e,t=rt){ki("ec",e,t)}function ze(e,t,n,r){let i;const o=n&&n[r];if(ke(e)||Qe(e)){i=new Array(e.length);for(let a=0,s=e.length;a<s;a++)i[a]=t(e[a],a,void 0,o&&o[a])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(Ue(e))if(e[Symbol.iterator])i=Array.from(e,(a,s)=>t(a,s,void 0,o&&o[s]));else{const a=Object.keys(e);i=new Array(a.length);for(let s=0,l=a.length;s<l;s++){const p=a[s];i[s]=t(e[p],p,s,o&&o[s])}}else i=[];return n&&(n[r]=i),i}function Ze(e,t,n={},r,i){if(We.isCE||We.parent&&Sr(We.parent)&&We.parent.isCE)return t!=="default"&&(n.name=t),_e("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),X();const a=o&&El(o(n)),s=Te(Oe,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function El(e){return e.some(t=>Ti(t)?!(t.type===kn||t.type===Oe&&!El(t.children)):!0)?e:null}const Go=e=>e?Ql(e)?Mi(e)||e.proxy:Go(e.parent):null,Ir=et(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Go(e.parent),$root:e=>Go(e.root),$emit:e=>e.emit,$options:e=>ta(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ko(e.update)}),$nextTick:e=>e.n||(e.n=Ut.bind(e.proxy)),$watch:e=>Zf.bind(e)}),Yo=(e,t)=>e!==He&&!e.__isScriptSetup&&Me(e,t),nd={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let p;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Yo(r,t))return a[t]=1,r[t];if(i!==He&&Me(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Me(p,t))return a[t]=3,o[t];if(n!==He&&Me(n,t))return a[t]=4,n[t];ea&&(a[t]=0)}}const c=Ir[t];let f,u;if(c)return t==="$attrs"&&yt(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==He&&Me(n,t))return a[t]=4,n[t];if(u=l.config.globalProperties,Me(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Yo(i,t)?(i[t]=n,!0):r!==He&&Me(r,t)?(r[t]=n,!0):Me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!n[a]||e!==He&&Me(e,a)||Yo(t,a)||(s=o[0])&&Me(s,a)||Me(r,a)||Me(Ir,a)||Me(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ol(e,t){return!e||!t?e||t:ke(e)&&ke(t)?e.concat(t):et({},Oi(e),Oi(t))}let ea=!0;function rd(e){const t=ta(e),n=e.proxy,r=e.ctx;ea=!1,t.beforeCreate&&Sl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:p,created:c,beforeMount:f,mounted:u,beforeUpdate:g,updated:h,activated:m,deactivated:d,beforeDestroy:v,beforeUnmount:_,destroyed:C,unmounted:y,render:w,renderTracked:A,renderTriggered:I,errorCaptured:S,serverPrefetch:N,expose:T,inheritAttrs:k,components:E,directives:L,filters:V}=t;if(p&&id(p,r,null),a)for(const te in a){const fe=a[te];Ne(fe)&&(r[te]=fe.bind(n))}if(i){const te=i.call(n,n);Ue(te)&&(e.data=br(te))}if(ea=!0,o)for(const te in o){const fe=o[te],ee=Ne(fe)?fe.bind(n,n):Ne(fe.get)?fe.get.bind(n,n):It,j=!Ne(fe)&&Ne(fe.set)?fe.set.bind(n):It,O=be({get:ee,set:j});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>O.value,set:P=>O.value=P})}if(s)for(const te in s)Il(s[te],r,n,te);if(l){const te=Ne(l)?l.call(n):l;Reflect.ownKeys(te).forEach(fe=>{ud(fe,te[fe])})}c&&Sl(c,e,"c");function W(te,fe){ke(fe)?fe.forEach(ee=>te(ee.bind(n))):fe&&te(fe.bind(n))}if(W(Cn,f),W(wn,u),W(kl,g),W(Wf,h),W(Qf,m),W(Xf,d),W(td,S),W(ed,A),W(Yf,I),W(Ei,_),W(Wo,y),W(Gf,N),ke(T))if(T.length){const te=e.exposed||(e.exposed={});T.forEach(fe=>{Object.defineProperty(te,fe,{get:()=>n[fe],set:ee=>n[fe]=ee})})}else e.exposed||(e.exposed={});w&&e.render===It&&(e.render=w),k!=null&&(e.inheritAttrs=k),E&&(e.components=E),L&&(e.directives=L)}function id(e,t,n=It){ke(e)&&(e=na(e));for(const r in e){const i=e[r];let o;Ue(i)?"default"in i?o=xn(i.from||r,i.default,!0):o=xn(i.from||r):o=xn(i),Je(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Sl(e,t,n){Pt(ke(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Il(e,t,n,r){const i=r.includes(".")?bl(n,r):()=>n[r];if(Qe(e)){const o=t[e];Ne(o)&&St(i,o)}else if(Ne(e))St(i,e.bind(n));else if(Ue(e))if(ke(e))e.forEach(o=>Il(o,t,n,r));else{const o=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(o)&&St(i,o,e)}}function ta(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(p=>Si(l,p,a,!0)),Si(l,t,a)),Ue(t)&&o.set(t,l),l}function Si(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Si(e,o,n,!0),i&&i.forEach(a=>Si(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=od[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const od={data:Al,props:Tl,emits:Tl,methods:Ar,computed:Ar,beforeCreate:gt,created:gt,beforeMount:gt,mounted:gt,beforeUpdate:gt,updated:gt,beforeDestroy:gt,beforeUnmount:gt,destroyed:gt,unmounted:gt,activated:gt,deactivated:gt,errorCaptured:gt,serverPrefetch:gt,components:Ar,directives:Ar,watch:sd,provide:Al,inject:ad};function Al(e,t){return t?e?function(){return et(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function ad(e,t){return Ar(na(e),na(t))}function na(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ar(e,t){return e?et(Object.create(null),e,t):t}function Tl(e,t){return e?ke(e)&&ke(t)?[...new Set([...e,...t])]:et(Object.create(null),Oi(e),Oi(t??{})):t}function sd(e,t){if(!e)return t;if(!t)return e;const n=et(Object.create(null),e);for(const r in t)n[r]=gt(e[r],t[r]);return n}function Nl(){return{app:null,config:{isNativeTag:qu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ld=0;function cd(e,t){return function(r,i=null){Ne(r)||(r=et({},r)),i!=null&&!Ue(i)&&(i=null);const o=Nl(),a=new WeakSet;let s=!1;const l=o.app={_uid:ld++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:jd,get config(){return o.config},set config(p){},use(p,...c){return a.has(p)||(p&&Ne(p.install)?(a.add(p),p.install(l,...c)):Ne(p)&&(a.add(p),p(l,...c))),l},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),l},component(p,c){return c?(o.components[p]=c,l):o.components[p]},directive(p,c){return c?(o.directives[p]=c,l):o.directives[p]},mount(p,c,f){if(!s){const u=_e(r,i);return u.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(u,p):e(u,p,f),s=!0,l._container=p,p.__vue_app__=l,Mi(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(p,c){return o.provides[p]=c,l},runWithContext(p){const c=tr;tr=l;try{return p()}finally{tr=c}}};return l}}let tr=null;function ud(e,t){if(rt){let n=rt.provides;const r=rt.parent&&rt.parent.provides;r===n&&(n=rt.provides=Object.create(r)),n[e]=t}}function xn(e,t,n=!1){const r=rt||We;if(r||tr){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tr._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ne(t)?t.call(r&&r.proxy):t}}function Pl(){return!!(rt||We||tr)}function fd(e,t,n,r=!1){const i={},o={};ci(o,Ni,1),e.propsDefaults=Object.create(null),Ll(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:mf(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function dd(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Le(i),[l]=e.propsOptions;let p=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let u=c[f];if(bi(e.emitsOptions,u))continue;const g=t[u];if(l)if(Me(o,u))g!==o[u]&&(o[u]=g,p=!0);else{const h=vt(u);i[h]=ra(l,s,h,g,e,!1)}else g!==o[u]&&(o[u]=g,p=!0)}}}else{Ll(e,t,i,o)&&(p=!0);let c;for(const f in s)(!t||!Me(t,f)&&((c=Et(f))===f||!Me(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=ra(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!Me(t,f))&&(delete o[f],p=!0)}p&&tn(e,"set","$attrs")}function Ll(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(yr(l))continue;const p=t[l];let c;i&&Me(i,c=vt(l))?!o||!o.includes(c)?n[c]=p:(s||(s={}))[c]=p:bi(e.emitsOptions,l)||(!(l in r)||p!==r[l])&&(r[l]=p,a=!0)}if(o){const l=Le(n),p=s||He;for(let c=0;c<o.length;c++){const f=o[c];n[f]=ra(i,l,f,p[f],e,!Me(p,f))}}return a}function ra(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=Me(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ne(l)){const{propsDefaults:p}=i;if(n in p)r=p[n];else{const c=Rr(i);r=p[n]=l.call(null,t),c()}}else r=l}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===Et(n))&&(r=!0))}return r}function Rl(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!Ne(e)){const c=f=>{l=!0;const[u,g]=Rl(f,t,!0);et(a,u),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Ue(e)&&r.set(e,Qn),Qn;if(ke(o))for(let c=0;c<o.length;c++){const f=vt(o[c]);Ml(f)&&(a[f]=He)}else if(o)for(const c in o){const f=vt(c);if(Ml(f)){const u=o[c],g=a[f]=ke(u)||Ne(u)?{type:u}:et({},u);if(g){const h=Dl(Boolean,g.type),m=Dl(String,g.type);g[0]=h>-1,g[1]=m<0||h<m,(h>-1||Me(g,"default"))&&s.push(f)}}}const p=[a,s];return Ue(e)&&r.set(e,p),p}function Ml(e){return e[0]!=="$"&&!yr(e)}function ql(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function jl(e,t){return ql(e)===ql(t)}function Dl(e,t){return ke(t)?t.findIndex(n=>jl(n,e)):Ne(t)&&jl(t,e)?0:-1}const Bl=e=>e[0]==="_"||e==="$stable",ia=e=>ke(e)?e.map(zt):[zt(e)],hd=(e,t,n)=>{if(t._n)return t;const r=De((...i)=>ia(t(...i)),n);return r._c=!1,r},$l=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Bl(i))continue;const o=e[i];if(Ne(o))t[i]=hd(i,o,r);else if(o!=null){const a=ia(o);t[i]=()=>a}}},Fl=(e,t)=>{const n=ia(t);e.slots.default=()=>n},pd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),ci(t,"_",n)):$l(t,e.slots={})}else e.slots={},t&&Fl(e,t);ci(e.slots,Ni,1)},gd=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=He;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:(et(i,t),!n&&s===1&&delete i._):(o=!t.$stable,$l(t,i)),a=t}else t&&(Fl(e,t),a={default:1});if(o)for(const s in i)!Bl(s)&&a[s]==null&&delete i[s]};function oa(e,t,n,r,i=!1){if(ke(e)){e.forEach((u,g)=>oa(u,t&&(ke(t)?t[g]:t),n,r,i));return}if(Sr(r)&&!i)return;const o=r.shapeFlag&4?Mi(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:l}=e,p=t&&t.r,c=s.refs===He?s.refs={}:s.refs,f=s.setupState;if(p!=null&&p!==l&&(Qe(p)?(c[p]=null,Me(f,p)&&(f[p]=null)):Je(p)&&(p.value=null)),Ne(l))nn(l,s,12,[a,c]);else{const u=Qe(l),g=Je(l);if(u||g){const h=()=>{if(e.f){const m=u?Me(f,l)?f[l]:c[l]:l.value;i?ke(m)&&Io(m,o):ke(m)?m.includes(o)||m.push(o):u?(c[l]=[o],Me(f,l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else u?(c[l]=a,Me(f,l)&&(f[l]=a)):g&&(l.value=a,e.k&&(c[e.k]=a))};a?(h.id=-1,_t(h,n)):h()}}}const _t=Hf;function md(e){return vd(e)}function vd(e,t){const n=Ms();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:p,setElementText:c,parentNode:f,nextSibling:u,setScopeId:g=It,insertStaticContent:h}=e,m=(R,z,oe,ce=null,le=null,Y=null,ie=void 0,se=null,ue=!!z.dynamicChildren)=>{if(R===z)return;R&&!Pr(R,z)&&(ce=U(R),P(R,le,Y,!0),R=null),z.patchFlag===-2&&(ue=!1,z.dynamicChildren=null);const{type:re,ref:pe,shapeFlag:ge}=z;switch(re){case Ii:d(R,z,oe,ce);break;case kn:v(R,z,oe,ce);break;case Ai:R==null&&_(z,oe,ce,ie);break;case Oe:E(R,z,oe,ce,le,Y,ie,se,ue);break;default:ge&1?w(R,z,oe,ce,le,Y,ie,se,ue):ge&6?L(R,z,oe,ce,le,Y,ie,se,ue):(ge&64||ge&128)&&re.process(R,z,oe,ce,le,Y,ie,se,ue,$)}pe!=null&&le&&oa(pe,R&&R.ref,Y,z||R,!z)},d=(R,z,oe,ce)=>{if(R==null)r(z.el=s(z.children),oe,ce);else{const le=z.el=R.el;z.children!==R.children&&p(le,z.children)}},v=(R,z,oe,ce)=>{R==null?r(z.el=l(z.children||""),oe,ce):z.el=R.el},_=(R,z,oe,ce)=>{[R.el,R.anchor]=h(R.children,z,oe,ce,R.el,R.anchor)},C=({el:R,anchor:z},oe,ce)=>{let le;for(;R&&R!==z;)le=u(R),r(R,oe,ce),R=le;r(z,oe,ce)},y=({el:R,anchor:z})=>{let oe;for(;R&&R!==z;)oe=u(R),i(R),R=oe;i(z)},w=(R,z,oe,ce,le,Y,ie,se,ue)=>{z.type==="svg"?ie="svg":z.type==="math"&&(ie="mathml"),R==null?A(z,oe,ce,le,Y,ie,se,ue):N(R,z,le,Y,ie,se,ue)},A=(R,z,oe,ce,le,Y,ie,se)=>{let ue,re;const{props:pe,shapeFlag:ge,transition:me,dirs:Ce}=R;if(ue=R.el=a(R.type,Y,pe&&pe.is,pe),ge&8?c(ue,R.children):ge&16&&S(R.children,ue,null,ce,le,aa(R,Y),ie,se),Ce&&jn(R,null,ce,"created"),I(ue,R,R.scopeId,ie,ce),pe){for(const we in pe)we!=="value"&&!yr(we)&&o(ue,we,null,pe[we],Y,R.children,ce,le,B);"value"in pe&&o(ue,"value",null,pe.value,Y),(re=pe.onVnodeBeforeMount)&&Kt(re,ce,R)}Ce&&jn(R,null,ce,"beforeMount");const Ee=yd(le,me);Ee&&me.beforeEnter(ue),r(ue,z,oe),((re=pe&&pe.onVnodeMounted)||Ee||Ce)&&_t(()=>{re&&Kt(re,ce,R),Ee&&me.enter(ue),Ce&&jn(R,null,ce,"mounted")},le)},I=(R,z,oe,ce,le)=>{if(oe&&g(R,oe),ce)for(let Y=0;Y<ce.length;Y++)g(R,ce[Y]);if(le){let Y=le.subTree;if(z===Y){const ie=le.vnode;I(R,ie,ie.scopeId,ie.slotScopeIds,le.parent)}}},S=(R,z,oe,ce,le,Y,ie,se,ue=0)=>{for(let re=ue;re<R.length;re++){const pe=R[re]=se?En(R[re]):zt(R[re]);m(null,pe,z,oe,ce,le,Y,ie,se)}},N=(R,z,oe,ce,le,Y,ie)=>{const se=z.el=R.el;let{patchFlag:ue,dynamicChildren:re,dirs:pe}=z;ue|=R.patchFlag&16;const ge=R.props||He,me=z.props||He;let Ce;if(oe&&Dn(oe,!1),(Ce=me.onVnodeBeforeUpdate)&&Kt(Ce,oe,z,R),pe&&jn(z,R,oe,"beforeUpdate"),oe&&Dn(oe,!0),re?T(R.dynamicChildren,re,se,oe,ce,aa(z,le),Y):ie||fe(R,z,se,null,oe,ce,aa(z,le),Y,!1),ue>0){if(ue&16)k(se,z,ge,me,oe,ce,le);else if(ue&2&&ge.class!==me.class&&o(se,"class",null,me.class,le),ue&4&&o(se,"style",ge.style,me.style,le),ue&8){const Ee=z.dynamicProps;for(let we=0;we<Ee.length;we++){const je=Ee[we],Se=ge[je],Ke=me[je];(Ke!==Se||je==="value")&&o(se,je,Se,Ke,le,R.children,oe,ce,B)}}ue&1&&R.children!==z.children&&c(se,z.children)}else!ie&&re==null&&k(se,z,ge,me,oe,ce,le);((Ce=me.onVnodeUpdated)||pe)&&_t(()=>{Ce&&Kt(Ce,oe,z,R),pe&&jn(z,R,oe,"updated")},ce)},T=(R,z,oe,ce,le,Y,ie)=>{for(let se=0;se<z.length;se++){const ue=R[se],re=z[se],pe=ue.el&&(ue.type===Oe||!Pr(ue,re)||ue.shapeFlag&70)?f(ue.el):oe;m(ue,re,pe,null,ce,le,Y,ie,!0)}},k=(R,z,oe,ce,le,Y,ie)=>{if(oe!==ce){if(oe!==He)for(const se in oe)!yr(se)&&!(se in ce)&&o(R,se,oe[se],null,ie,z.children,le,Y,B);for(const se in ce){if(yr(se))continue;const ue=ce[se],re=oe[se];ue!==re&&se!=="value"&&o(R,se,re,ue,ie,z.children,le,Y,B)}"value"in ce&&o(R,"value",oe.value,ce.value,ie)}},E=(R,z,oe,ce,le,Y,ie,se,ue)=>{const re=z.el=R?R.el:s(""),pe=z.anchor=R?R.anchor:s("");let{patchFlag:ge,dynamicChildren:me,slotScopeIds:Ce}=z;Ce&&(se=se?se.concat(Ce):Ce),R==null?(r(re,oe,ce),r(pe,oe,ce),S(z.children||[],oe,pe,le,Y,ie,se,ue)):ge>0&&ge&64&&me&&R.dynamicChildren?(T(R.dynamicChildren,me,oe,le,Y,ie,se),(z.key!=null||le&&z===le.subTree)&&Vl(R,z,!0)):fe(R,z,oe,pe,le,Y,ie,se,ue)},L=(R,z,oe,ce,le,Y,ie,se,ue)=>{z.slotScopeIds=se,R==null?z.shapeFlag&512?le.ctx.activate(z,oe,ce,ie,ue):V(z,oe,ce,le,Y,ie,ue):K(R,z,ue)},V=(R,z,oe,ce,le,Y,ie)=>{const se=R.component=Od(R,ce,le);if(wl(R)&&(se.ctx.renderer=$),Id(se),se.asyncDep){if(le&&le.registerDep(se,W),!R.el){const ue=se.subTree=_e(kn);v(null,ue,z,oe)}}else W(se,R,z,oe,le,Y,ie)},K=(R,z,oe)=>{const ce=z.component=R.component;if(Df(R,z,oe))if(ce.asyncDep&&!ce.asyncResolved){te(ce,z,oe);return}else ce.next=z,Pf(ce.update),ce.effect.dirty=!0,ce.update();else z.el=R.el,ce.vnode=z},W=(R,z,oe,ce,le,Y,ie)=>{const se=()=>{if(R.isMounted){let{next:pe,bu:ge,u:me,parent:Ce,vnode:Ee}=R;{const Dt=Hl(R);if(Dt){pe&&(pe.el=Ee.el,te(R,pe,ie)),Dt.asyncDep.then(()=>{R.isUnmounted||se()});return}}let we=pe,je;Dn(R,!1),pe?(pe.el=Ee.el,te(R,pe,ie)):pe=Ee,ge&&li(ge),(je=pe.props&&pe.props.onVnodeBeforeUpdate)&&Kt(je,Ce,pe,Ee),Dn(R,!0);const Se=Zo(R),Ke=R.subTree;R.subTree=Se,m(Ke,Se,f(Ke.el),U(Ke),R,le,Y),pe.el=Se.el,we===null&&Bf(R,Se.el),me&&_t(me,le),(je=pe.props&&pe.props.onVnodeUpdated)&&_t(()=>Kt(je,Ce,pe,Ee),le)}else{let pe;const{el:ge,props:me}=z,{bm:Ce,m:Ee,parent:we}=R,je=Sr(z);if(Dn(R,!1),Ce&&li(Ce),!je&&(pe=me&&me.onVnodeBeforeMount)&&Kt(pe,we,z),Dn(R,!0),ge&&J){const Se=()=>{R.subTree=Zo(R),J(ge,R.subTree,R,le,null)};je?z.type.__asyncLoader().then(()=>!R.isUnmounted&&Se()):Se()}else{const Se=R.subTree=Zo(R);m(null,Se,oe,ce,R,le,Y),z.el=Se.el}if(Ee&&_t(Ee,le),!je&&(pe=me&&me.onVnodeMounted)){const Se=z;_t(()=>Kt(pe,we,Se),le)}(z.shapeFlag&256||we&&Sr(we.vnode)&&we.vnode.shapeFlag&256)&&R.a&&_t(R.a,le),R.isMounted=!0,z=oe=ce=null}},ue=R.effect=new Lo(se,It,()=>Ko(re),R.scope),re=R.update=()=>{ue.dirty&&ue.run()};re.id=R.uid,Dn(R,!0),re()},te=(R,z,oe)=>{z.component=R;const ce=R.vnode.props;R.vnode=z,R.next=null,dd(R,z.props,ce,oe),gd(R,z.children,oe),gn(),dl(R),mn()},fe=(R,z,oe,ce,le,Y,ie,se,ue=!1)=>{const re=R&&R.children,pe=R?R.shapeFlag:0,ge=z.children,{patchFlag:me,shapeFlag:Ce}=z;if(me>0){if(me&128){j(re,ge,oe,ce,le,Y,ie,se,ue);return}else if(me&256){ee(re,ge,oe,ce,le,Y,ie,se,ue);return}}Ce&8?(pe&16&&B(re,le,Y),ge!==re&&c(oe,ge)):pe&16?Ce&16?j(re,ge,oe,ce,le,Y,ie,se,ue):B(re,le,Y,!0):(pe&8&&c(oe,""),Ce&16&&S(ge,oe,ce,le,Y,ie,se,ue))},ee=(R,z,oe,ce,le,Y,ie,se,ue)=>{R=R||Qn,z=z||Qn;const re=R.length,pe=z.length,ge=Math.min(re,pe);let me;for(me=0;me<ge;me++){const Ce=z[me]=ue?En(z[me]):zt(z[me]);m(R[me],Ce,oe,null,le,Y,ie,se,ue)}re>pe?B(R,le,Y,!0,!1,ge):S(z,oe,ce,le,Y,ie,se,ue,ge)},j=(R,z,oe,ce,le,Y,ie,se,ue)=>{let re=0;const pe=z.length;let ge=R.length-1,me=pe-1;for(;re<=ge&&re<=me;){const Ce=R[re],Ee=z[re]=ue?En(z[re]):zt(z[re]);if(Pr(Ce,Ee))m(Ce,Ee,oe,null,le,Y,ie,se,ue);else break;re++}for(;re<=ge&&re<=me;){const Ce=R[ge],Ee=z[me]=ue?En(z[me]):zt(z[me]);if(Pr(Ce,Ee))m(Ce,Ee,oe,null,le,Y,ie,se,ue);else break;ge--,me--}if(re>ge){if(re<=me){const Ce=me+1,Ee=Ce<pe?z[Ce].el:ce;for(;re<=me;)m(null,z[re]=ue?En(z[re]):zt(z[re]),oe,Ee,le,Y,ie,se,ue),re++}}else if(re>me)for(;re<=ge;)P(R[re],le,Y,!0),re++;else{const Ce=re,Ee=re,we=new Map;for(re=Ee;re<=me;re++){const it=z[re]=ue?En(z[re]):zt(z[re]);it.key!=null&&we.set(it.key,re)}let je,Se=0;const Ke=me-Ee+1;let Dt=!1,ur=0;const Bt=new Array(Ke);for(re=0;re<Ke;re++)Bt[re]=0;for(re=Ce;re<=ge;re++){const it=R[re];if(Se>=Ke){P(it,le,Y,!0);continue}let st;if(it.key!=null)st=we.get(it.key);else for(je=Ee;je<=me;je++)if(Bt[je-Ee]===0&&Pr(it,z[je])){st=je;break}st===void 0?P(it,le,Y,!0):(Bt[st-Ee]=re+1,st>=ur?ur=st:Dt=!0,m(it,z[st],oe,null,le,Y,ie,se,ue),Se++)}const ln=Dt?_d(Bt):Qn;for(je=ln.length-1,re=Ke-1;re>=0;re--){const it=Ee+re,st=z[it],Jt=it+1<pe?z[it+1].el:ce;Bt[re]===0?m(null,st,oe,Jt,le,Y,ie,se,ue):Dt&&(je<0||re!==ln[je]?O(st,oe,Jt,2):je--)}}},O=(R,z,oe,ce,le=null)=>{const{el:Y,type:ie,transition:se,children:ue,shapeFlag:re}=R;if(re&6){O(R.component.subTree,z,oe,ce);return}if(re&128){R.suspense.move(z,oe,ce);return}if(re&64){ie.move(R,z,oe,$);return}if(ie===Oe){r(Y,z,oe);for(let ge=0;ge<ue.length;ge++)O(ue[ge],z,oe,ce);r(R.anchor,z,oe);return}if(ie===Ai){C(R,z,oe);return}if(ce!==2&&re&1&&se)if(ce===0)se.beforeEnter(Y),r(Y,z,oe),_t(()=>se.enter(Y),le);else{const{leave:ge,delayLeave:me,afterLeave:Ce}=se,Ee=()=>r(Y,z,oe),we=()=>{ge(Y,()=>{Ee(),Ce&&Ce()})};me?me(Y,Ee,we):we()}else r(Y,z,oe)},P=(R,z,oe,ce=!1,le=!1)=>{const{type:Y,props:ie,ref:se,children:ue,dynamicChildren:re,shapeFlag:pe,patchFlag:ge,dirs:me}=R;if(se!=null&&oa(se,null,oe,R,!0),pe&256){z.ctx.deactivate(R);return}const Ce=pe&1&&me,Ee=!Sr(R);let we;if(Ee&&(we=ie&&ie.onVnodeBeforeUnmount)&&Kt(we,z,R),pe&6)Q(R.component,oe,ce);else{if(pe&128){R.suspense.unmount(oe,ce);return}Ce&&jn(R,null,z,"beforeUnmount"),pe&64?R.type.remove(R,z,oe,le,$,ce):re&&(Y!==Oe||ge>0&&ge&64)?B(re,z,oe,!1,!0):(Y===Oe&&ge&384||!le&&pe&16)&&B(ue,z,oe),ce&&M(R)}(Ee&&(we=ie&&ie.onVnodeUnmounted)||Ce)&&_t(()=>{we&&Kt(we,z,R),Ce&&jn(R,null,z,"unmounted")},oe)},M=R=>{const{type:z,el:oe,anchor:ce,transition:le}=R;if(z===Oe){Z(oe,ce);return}if(z===Ai){y(R);return}const Y=()=>{i(oe),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(R.shapeFlag&1&&le&&!le.persisted){const{leave:ie,delayLeave:se}=le,ue=()=>ie(oe,Y);se?se(R.el,Y,ue):ue()}else Y()},Z=(R,z)=>{let oe;for(;R!==z;)oe=u(R),i(R),R=oe;i(z)},Q=(R,z,oe)=>{const{bum:ce,scope:le,update:Y,subTree:ie,um:se}=R;ce&&li(ce),le.stop(),Y&&(Y.active=!1,P(ie,R,z,oe)),se&&_t(se,z),_t(()=>{R.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},B=(R,z,oe,ce=!1,le=!1,Y=0)=>{for(let ie=Y;ie<R.length;ie++)P(R[ie],z,oe,ce,le)},U=R=>R.shapeFlag&6?U(R.component.subTree):R.shapeFlag&128?R.suspense.next():u(R.anchor||R.el);let D=!1;const q=(R,z,oe)=>{R==null?z._vnode&&P(z._vnode,null,null,!0):m(z._vnode||null,R,z,null,null,null,oe),D||(D=!0,dl(),hl(),D=!1),z._vnode=R},$={p:m,um:P,m:O,r:M,mt:V,mc:S,pc:fe,pbc:T,n:U,o:e};let H,J;return t&&([H,J]=t($)),{render:q,hydrate:H,createApp:cd(q,H)}}function aa({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Dn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vl(e,t,n=!1){const r=e.children,i=t.children;if(ke(r)&&ke(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=En(i[o]),s.el=a.el),n||Vl(a,s)),s.type===Ii&&(s.el=a.el)}}function _d(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const p=e[r];if(p!==0){if(i=n[n.length-1],e[i]<p){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<p?o=s+1:a=s;p<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hl(t)}const bd=e=>e.__isTeleport,Oe=Symbol.for("v-fgt"),Ii=Symbol.for("v-txt"),kn=Symbol.for("v-cmt"),Ai=Symbol.for("v-stc"),Tr=[];let Lt=null;function X(e=!1){Tr.push(Lt=e?null:[])}function Cd(){Tr.pop(),Lt=Tr[Tr.length-1]||null}let Nr=1;function Ul(e){Nr+=e}function zl(e){return e.dynamicChildren=Nr>0?Lt||Qn:null,Cd(),Nr>0&&Lt&&Lt.push(e),e}function ne(e,t,n,r,i,o){return zl(b(e,t,n,r,i,o,!0))}function Te(e,t,n,r,i){return zl(_e(e,t,n,r,i,!0))}function Ti(e){return e?e.__v_isVNode===!0:!1}function Pr(e,t){return e.type===t.type&&e.key===t.key}const Ni="__vInternal",Kl=({key:e})=>e??null,Pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qe(e)||Je(e)||Ne(e)?{i:We,r:e,k:t,f:!!n}:e:null);function b(e,t=null,n=null,r=0,i=null,o=e===Oe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kl(t),ref:t&&Pi(t),scopeId:Ci,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return s?(sa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Qe(n)?8:16),Nr>0&&!a&&Lt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Lt.push(l),l}const _e=wd;function wd(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===vl)&&(e=kn),Ti(e)){const s=nr(e,t,!0);return n&&sa(s,n),Nr>0&&!o&&Lt&&(s.shapeFlag&6?Lt[Lt.indexOf(e)]=s:Lt.push(s)),s.patchFlag|=-2,s}if(Rd(e)&&(e=e.__vccOpts),t){t=xd(t);let{class:s,style:l}=t;s&&!Qe(s)&&(t.class=Ie(s)),Ue(l)&&(al(l)&&!ke(l)&&(l=et({},l)),t.style=tt(l))}const a=Qe(e)?1:Vf(e)?128:bd(e)?64:Ue(e)?4:Ne(e)?2:0;return b(e,t,n,r,i,a,o,!0)}function xd(e){return e?al(e)||Ni in e?et({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:a}=e,s=t?la(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Kl(s),ref:t&&t.ref?n&&i?ke(i)?i.concat(Pi(t)):[i,Pi(t)]:Pi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fe(e=" ",t=0){return _e(Ii,null,e,t)}function Lr(e,t){const n=_e(Ai,null,e);return n.staticCount=t,n}function ye(e="",t=!1){return t?(X(),Te(kn,null,e)):_e(kn,null,e)}function zt(e){return e==null||typeof e=="boolean"?_e(kn):ke(e)?_e(Oe,null,e.slice()):typeof e=="object"?En(e):_e(Ii,null,String(e))}function En(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function sa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),sa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ni in t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[Fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function la(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Ie([t.class,r.class]));else if(i==="style")t.style=tt([t.style,r.style]);else if(oi(i)){const o=t[i],a=r[i];a&&o!==a&&!(ke(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Kt(e,t,n,r=null){Pt(e,t,7,[n,r])}const kd=Nl();let Ed=0;function Od(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||kd,o={uid:Ed++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ds(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rl(r,i),emitsOptions:gl(r,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:r.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Mf.bind(null,o),e.ce&&e.ce(o),o}let rt=null;const Sd=()=>rt||We;let Li,ca;{const e=Ms(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};Li=t("__VUE_INSTANCE_SETTERS__",n=>rt=n),ca=t("__VUE_SSR_SETTERS__",n=>Ri=n)}const Rr=e=>{const t=rt;return Li(e),e.scope.on(),()=>{e.scope.off(),Li(t)}},Zl=()=>{rt&&rt.scope.off(),Li(null)};function Ql(e){return e.vnode.shapeFlag&4}let Ri=!1;function Id(e,t=!1){t&&ca(t);const{props:n,children:r}=e.vnode,i=Ql(e);fd(e,n,i,t),pd(e,r);const o=i?Ad(e,t):void 0;return t&&ca(!1),o}function Ad(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yi(new Proxy(e.ctx,nd));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Nd(e):null,o=Rr(e);gn();const a=nn(r,e,0,[e.props,i]);if(mn(),o(),Ts(a)){if(a.then(Zl,Zl),t)return a.then(s=>{Xl(e,s,t)}).catch(s=>{_i(s,e,0)});e.asyncDep=a}else Xl(e,a,t)}else Wl(e,t)}function Xl(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=ll(t)),Wl(e,n)}let Jl;function Wl(e,t,n){const r=e.type;if(!e.render){if(!t&&Jl&&!r.render){const i=r.template||ta(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,p=et(et({isCustomElement:o,delimiters:s},a),l);r.render=Jl(i,p)}}e.render=r.render||It}{const i=Rr(e);gn();try{rd(e)}finally{mn(),i()}}}function Td(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function Nd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Td(e)},slots:e.slots,emit:e.emit,expose:t}}function Mi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ll(yi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ir)return Ir[n](e)},has(t,n){return n in t||n in Ir}}))}const Pd=/(?:^|[-_])(\w)/g,Ld=e=>e.replace(Pd,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gl(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Yl(e,t,n=!1){let r=Gl(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=o=>{for(const a in o)if(o[a]===t)return a};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Ld(r):n?"App":"Anonymous"}function Rd(e){return Ne(e)&&"__vccOpts"in e}const be=(e,t)=>vf(e,t,Ri);function Md(e,t,n=He){const r=Sd(),i=vt(t),o=Et(t),a=wf((l,p)=>{let c;return Kf(()=>{const f=e[t];Vt(c,f)&&(c=f,p())}),{get(){return l(),n.get?n.get(c):c},set(f){const u=r.vnode.props;!(u&&(t in u||i in u||o in u)&&(`onUpdate:${t}`in u||`onUpdate:${i}`in u||`onUpdate:${o}`in u))&&Vt(f,c)&&(c=f,p()),r.emit(`update:${t}`,n.set?n.set(f):f)}}}),s=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?e[s]||{}:a,done:!1}:{done:!0}}}},a}function qd(e,t,n){const r=arguments.length;return r===2?Ue(t)&&!ke(t)?Ti(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ti(n)&&(n=[n]),_e(e,t,n))}const jd="3.4.21";/**
17
17
  * @vue/runtime-dom v3.4.21
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
@@ -25,7 +25,7 @@
25
25
  * vue-router-lwc v1.0.4
26
26
  * (c) 2024 Eduardo San Martin Morote
27
27
  * @license MIT
28
- */var Ec;(function(e){e.pop="pop",e.push="push"})(Ec||(Ec={}));var Oc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oc||(Oc={}));var Sc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Sc||(Sc={}));const H0=Symbol(""),U0=Symbol("");function Vi(){return xn(H0)}function ba(){return xn(U0)}function bt(e){if(typeof e=="string"&&(e=JSON.parse(e)),e!=null&&e.errorMessage)throw new Error(e==null?void 0:e.errorMessage);return e}const Ca={xx_ord1__item__c:"xx_ord1__item__c",xx_ord1__sales_price__c:"xx_ord1__negotiated_price__c",xx_ord1__nrc__c:"xx_ord1__nrc_for_new__c",xx_ord1__line_description__c:"xx_ord1__line_description__c",xx_ord1__list_price__c:"xx_ord1__list_price2__c",xx_ord1__cost__c:"xx_ord1__cost2__c",xx_ord1__rate_plan__c:"xx_ord1__rate_plan__c",xx_ord1__allowed_discount__c:"xx_ord1__allowed_discount__c",xx_ord1__billing_period__c:"xx_ord1__billing_period__c",xx_ord1__ship_to_account__c:"xx_ord1__ship_to_account__c",xx_ord1__erp_item_number__c:"xx_ord1__erp_item_number__c",xx_ord1__mrc__c:"xx_ord1__mrc__c",xx_ord1__qty__c:"xx_ord1__qty__c",id:"id"},Ic={xx_ord1__item__c:"xx_ord1__item__c",xx_ord1__negotiated_price__c:"xx_ord1__sales_price__c",xx_ord1__nrc_for_new__c:"xx_ord1__nrc__c",xx_ord1__line_description__c:"xx_ord1__line_description__c",xx_ord1__list_price2__c:"xx_ord1__list_price__c",xx_ord1__cost2__c:"xx_ord1__cost__c",xx_ord1__rate_plan__c:"xx_ord1__rate_plan__c",xx_ord1__allowed_discount__c:"xx_ord1__allowed_discount__c",xx_ord1__billing_period__c:"xx_ord1__billing_period__c",xx_ord1__ship_to_account__c:"xx_ord1__ship_to_account__c",xx_ord1__erp_item_number__c:"xx_ord1__erp_item_number__c",xx_ord1__mrc__c:"xx_ord1__mrc__c",xx_ord1__qty__c:"xx_ord1__qty__c",id:"id"},z0=e=>{var n;let t=[];for(let r of e)if(r.trim()!=="xx_ord1__item__r.xx_ord1__decimal_precision__c")if(r.includes(".")){let o=r.split(".")[0];o=o.slice(0,-1)+"c";const a=((n=Ca[o==null?void 0:o.toLowerCase()])==null?void 0:n.trim())||"";a&&(t.includes(a)||t.push(a||""),t.push(r))}else t.includes(Ca[r==null?void 0:r.toLowerCase()])||t.push(Ca[r==null?void 0:r.toLowerCase()]||"");return t.filter(r=>r!=="")},K0=Rt("actions",()=>{const e=Ui(),t=An(),n=ae(!1);return{openAdaptiveSearch:(s,l=!1)=>{console.info("openAdaptiveSearch",s),e.chatHistory[e.chatHistory.length-1].links=[],e.sendMessage("Open Adaptive Search",!1,{internalCall:!0}),n.value=l},openQuoteItem:s=>{console.info("openQuoteItem",s),e.chatHistory[e.chatHistory.length-1].links=[],e.sendMessage("Open Quote Item",!1,{internalCall:!0})},openQuoteDocument:s=>{console.info("openQuoteDocument",s),e.chatHistory[e.chatHistory.length-1].links=[],e.chatHistory.push({type:"response",message:"Opening quote document",loading:!0});const p=`/apex/XX_ORD1__Expedite_Commerce?scpq=true&oid=${t.quoteId}&atpverified=true&ecCache=false&origin=AI`;window.location.href=`${i0(window.location.href)}${p}`},undo:()=>{const s=e==null?void 0:e.latestDMLRequest;e.sendMessage(`UNDO-${s}`,!1,{internalCall:!0})},isStaticActionCall:n}}),Ac=Rt("adaptiveSearch",()=>{const e=An(),t=ar(),n=Ui(),r=K0(),i=ae(null),o=ae(null),a=ae(!1),s=ae(!1),l=ae([]),p=ae(""),c=ae(!1),f=ae(null),u=ae(!1),g=ae([]),h=an(),m=ae([]),d=ae(0),v=ae(!1),_=ae({rowLimt:10,paging:!0,offset:0,currentPage:1,totalPages:1});async function C(){a.value=!0;try{const O=JSON.stringify({layoutType:"Search Selection",layoutObject:"xx_ord1__ecatalog_item__c"});let P={};return P=await window.salesforceConnector.getDynamicPageLayout(O),o.value=xc(P,"Unable to find the Search Selection Layout for your user profile"),_.value.rowLimt=o.value.configuration.rowLimit||10,o.value.configuration.columns.forEach(M=>{!M.field&&M.label==="QTY"&&(M.field="xx_ord1__qty__c")}),a.value=!1,y(),P}catch(O){a.value=!1,h.handleError("Failed to get Adaptive Search Layout. Please try again."),console.info("[ERROR]: getAdaptiveSearchLayout() error = ",O)}}function y(){var O,P,M;f.value=(M=(P=(O=o.value)==null?void 0:O.configuration)==null?void 0:P.dynamicFilters)==null?void 0:M.filters.map(Z=>({...Z,field:Z.field.toLowerCase(),filtervalue:Z.filtervalue||[],filtervaluefrom:Z.filtervaluefrom||"",filtervalueTo:Z.filtervalueTo||""}))}function w(){var P;let O=[];for(const M of o.value.configuration.columns){let Z=M.field;if(O.includes(Z)||O.push(Z),Z!=null&&Z.includes(".")){let B=Z.split(".")[0];B=B.slice(0,-1)+"c",O.includes(B)||O.push(B)}}return(P=o.value.configuration)!=null&&P.cardHeader&&O.push(o.value.configuration.cardHeader.imageField),o.value.configuration.objectName.toLowerCase()==="xx_ord1__ecatalog_item__c"&&O.push("xx_ord1__item__r.xx_ord1__decimal_precision__c"),O=O.filter(M=>!!M),O.filter(M=>M.toLowerCase()!=="xx_ord1__qty__c"&&M.toLowerCase()!=="xx_ord1__competitor_sku__c")}function A(O,P=!1){if(!O||O.includes("undefined"))return!1;const M=/[!@#$%^&*()+=[\]{};':"\\|.<>/?]+/;if(P){const Z=Array.isArray(O)?O:O.split(",");for(const Q of Z){const B=Q.trim();if(M.test(B))return h.handleError(`Invalid character found in value: ${B}`),!1}}else if(M.test(O))return h.handleError("Special characters are not allowed in filter values"),!1;return!0}function I(O,P){return{field:O.field,operator:O.operator||"contains",value:P,dataType:O.dataType.trim()}}function S(O){if(!O.filtervalue)return null;const P=Array.isArray(O.filtervalue),M=P?O.filtervalue.join(","):O.filtervalue.trim();return A(M,P)?M:null}function N(O){var Q,B;const P=(Q=O.filtervaluefrom)==null?void 0:Q.trim(),M=(B=O.filtervalueTo)==null?void 0:B.trim();if(!P||!M)return null;const Z=`${P}, ${M}`;return Z!==", "&&A(Z)?Z:null}function T(O){const P=`${wc(O.filtervaluefrom)}, ${wc(O.filtervalueTo)}`;return P!==", "&&A(P)?P:null}function k(O){var M;const P=(M=O.filtervaluefrom)==null?void 0:M.trim();return A(P)?P:null}function E(O){const P=[];return O.forEach(M=>{const Z=M.dataType.trim();let Q=null;switch(Z){case"PICKLIST":case"MULTIPICKLIST":Q=S(M);break;case"DOUBLE":case"CURRENCY":Q=N(M);break;case"DATETIME":case"DATE":Q=T(M);break;default:Q=k(M)}Q&&P.push(I(M,Q))}),g.value=P,P}async function L(O="",P=[],M=[]){var Q,B,U,D,q,$,H,J,R,z;let Z=[];if(P.length&&(Z=E(P)),!Z.length&&O.trim()===""){l.value=[],c.value=!1;return}try{c.value=!1,s.value=!0;const oe=O.trim();M.length||(M=w());const ce={fields:M,...P.length?{dynamicFilters:Z}:{},searchText:oe||p.value.trim(),accountId:t.accountId,...t.eCatalogId?{catalogId:t.eCatalogId}:{},...t.objectType==="opportunity"?{opportunityId:t.id}:{},...(B=(Q=o.value)==null?void 0:Q.configuration)!=null&&B.sort?{primarySortBy:o.value.configuration.sort.primary.field,primarySortOrder:o.value.configuration.sort.primary.direction,secondarySortBy:o.value.configuration.sort.secondary.field,secondarySortOrder:o.value.configuration.sort.secondary.direction}:{},rowLimt:(D=(U=o.value)==null?void 0:U.configuration)==null?void 0:D.rowLimit,paging:($=(q=o.value)==null?void 0:q.configuration)==null?void 0:$.paging,...((H=_.value)==null?void 0:H.offset)!==0?{offset:_.value.offset}:{},objectName:(R=(J=o.value)==null?void 0:J.configuration)==null?void 0:R.objectName,currencyCode:t.currencyCode},le=await window.salesforceConnector.getItems(JSON.stringify(ce));if(le!=null&&le.errorMessage){h.handleError(le.errorMessage);return}le!=null&&le.itemCount&&(_.value.totalPages=Math.ceil((le==null?void 0:le.itemCount)/_.value.rowLimt)),l.value=$i(le.lstItems,{xx_ord1__qty__c:"1"}),(z=le.lstItems)!=null&&z.length||(c.value=!0),s.value=!1}catch(oe){h.handleError("Failed to fetch Results. Please try again."),s.value=!1,console.info("[ERROR]: Adaptive Search getItems() error = ",oe)}}async function V(O){try{u.value=!0;const P=JSON.stringify({lstQLIRequest:K(O),quoteId:e.quoteId});let M=await window.salesforceConnector.createQLI(P);typeof M=="string"&&(M=JSON.parse(M));let Z=!1;if((M==null?void 0:M.length)>0&&M.forEach(Q=>{Q.errorMessage&&(Z=!0,h.handleError(Q.errorMessage))}),u.value=!1,Z){m.value=M;const Q=m.value.reduce((B,U)=>(B[U.eCatalogItemId]=U.errorMessage,B),{});l.value=l.value.map(B=>({...B,backendError:Q[B.Id]||""}));return}return M}catch(P){h.handleError("Failed to add item to Quote. Please try again."),console.info("[ERROR]: addToQuote() error = ",P)}}function K(O){const P=[];for(const M of O)if(!M.addedToQuote&&M.id){const Z=W(M);d.value++,P.push({fields:Z,recordId:M.id,...O.length===1?{maxSequenceNumber:d.value}:{}})}return P}function W(O){const P=[],M=te();return Object.keys(O).forEach(Z=>{if(M.includes(Z)){const Q=Ic[Z.toLowerCase()];Q&&P.push({fieldname:Q,value:O[Z]})}}),P}function te(){const O=[];return o.value.configuration.columns.forEach(P=>{P.field&&!P.field.includes(".")&&P.isEditable&&P.visible&&O.push(P.field)}),O}function fe(){var P,M;const O=[];return o.value.configuration.columns.forEach(Z=>{const Q=Z.field.toLowerCase();O.includes(Q)||O.push(Q)}),(P=o.value.configuration)!=null&&P.dynamicFilters&&o.value.configuration.dynamicFilters.filters.forEach(Z=>{const Q=Z.field.toLowerCase();O.includes(Q)||O.push(Q)}),(M=o.value.configuration)!=null&&M.cardHeader&&O.push(o.value.configuration.cardHeader.imageField),O}async function ee(){var M;const O=fe(),P=((M=o.value.configuration)==null?void 0:M.saveObjectName)||o.value.configuration.objectName;if(P==="xx_ord1__ecatalog_item__c"){const Z=O.indexOf("xx_ord1__qty__c");Z>-1&&O.splice(Z,1)}await e.getFieldsData(O,P),e.fieldsData.xx_ord1__qty__c||e.getFieldsData(["xx_ord1__qty__c"],"xx_ord1__quote_line_item__c")}async function j({searchTerm:O="",filters:P=[]}={}){if(v.value=!0,O&&(p.value=O),P.length&&(g.value=P),await C()){await ee(),v.value=!1;const Z=p.value;Z&&(p.value=Z,await L(Z,e.dynamicFilters)),console.info("actionStore.isStaticActionCall = ",r.isStaticActionCall),r.isStaticActionCall&&(r.isStaticActionCall=!1,n.chatHistory[n.chatHistory.length-1]={type:"response",message:"Adaptive search is now open. Please search for the products you require and add it quote",loading:!1,links:[{action:"quoteItem",label:"Quote Item"},{action:"quoteDocument",label:"Quote Document"}]})}v.value=!1}return{selectedItem:i,AdaptiveSearchLayout:o,searchText:p,loadingAdaptiveLayout:a,getAdaptiveSearchLayout:C,getItems:L,lstItems:l,rowItemsLoading:s,noSearchRecords:c,dynamicFilters:f,setDynamicFilters:y,createQliErrors:m,addToQuote:V,addingToQuote:u,getFieldsData:ee,pagingData:_,appliedDynamicFilters:g,maxSequenceNumber:d,loadingAdaptiveSearch:v,initAdaptiveSearch:j}}),Z0="XX_ORD1__Quote__c",Q0="xxord1salespricec",Hi="xx_ord1__item__c",X0="xxord1productnrcc",J0=Rt("cartStore",()=>{const e=An(),t=Ac(),n=an(),r=ae(""),i=ae("$0"),o=ae("$0"),a=ae(null),s=ae({}),l=ae({}),p=ae({}),c=ae(""),f=ae(""),u=ae({}),g=ae(""),h=ae(""),m=ae({});async function d(){A()}async function v(){try{let N=await window.salesforceConnector.getProductCount(e.quoteId);if(N=bt(N),N!=null&&N.errorMessage){n.handleError(N.errorMessage);return}return r.value=N,N}catch{n.handleError("Failed to get Product Count. Please try again.")}}async function _(){try{let N=await window.salesforceConnector.getQuoteTotal(e.quoteId);if(N=bt(N),N!=null&&N.errorMessage){n.handleError(N.errorMessage);return}return o.value=N.monthlyTotal,i.value=N.onetimeTotal,N}catch{n.handleError("Failed to get Total Amount. Please try again.")}}async function C(N,T,k,E=""){if(!e.sectionDataMap.get(k).parentQLIs[T].removingItem){e.sectionDataMap.get(k).parentQLIs[T].removingItem=!0,h.value=N.id,await y(N.id)==="Success"&&(e.fetchAllQuoteLineItems(),E&&E(N,T,k));let V=e.sectionDataMap.get(k).parentQLIs.filter(K=>K[Hi]===N[Hi]).length;h.value="",t.lstItems.forEach(K=>{K[Hi]===N[Hi]&&(K.addedToQuote===!0&&(K.addedToQuote=!1),V===0&&(K.removedFromQuote=!0))})}}async function y(N){try{let T=await window.salesforceConnector.deleteQLI(N);if(T!=null&&T.errorMessage){n.handleError(T.errorMessage);return}return v(),_(),T}catch{n.handleError("Failed to remove Quote Item. Please try again.")}}function w(N){var E,L;const T=(E=N==null?void 0:N[X0])==null?void 0:E.match(/\.\d+/);T&&(T.value=T[0].length-1);const k=(L=N==null?void 0:N[Q0])==null?void 0:L.match(/\.\d+/);return k&&(k.value=k[0].length-1),T||k}function A(N=!0){v(),_(),N&&e.fetchTemplates(Z0).then(()=>{e.getFilteredListWithFields()})}function I(N){const T=e.sectionDataMap;for(const[,k]of T.entries())k.parentQLIs.forEach(E=>{E.id===N.id&&(k.columns.forEach(L=>{if(L.dataType==="CURRENCY"){const V=L.field.replace(/_/g,"");E[V]=S(E[V],N[L.field])}}),N!=null&&N.billingPeriodValue&&(N!=null&&N.formattedBillingPeriodValue)&&(E.formattedBillingPeriodValue=S(E.formattedBillingPeriodValue,N.billingPeriodValue)),N!=null&&N.oneTimeValue&&(N!=null&&N.formattedOneTimeValue)&&(E.formattedOneTimeValue=S(E.formattedOneTimeValue,N.oneTimeValue)))})}function S(N,T){const k=Number(T);if(isNaN(k))return N;const E=N.match(/(\d[\d,]*)(\.\d+)?/);if(!E)return N;const L=E[2]||"",V=L.length?L.length-1:0,K=k.toLocaleString("en-US",{minimumFractionDigits:V,maximumFractionDigits:V});return N.replace(E[1]+L,K)}return{initializeCart:d,loadCartState:A,productCount:r,onetimeTotal:i,monthlyTotal:o,filterCartItem:a,billingPeriodValue:c,hasOneTimeValue:f,hasBillingPeriodInList:s,oneTimeFieldAvailable:l,billingPeriodFieldAvailable:p,priceDecimalPrecision:u,cartItemUpdatingId:g,removingItemLoaderId:h,cartItemColumnsMap:m,getProductCount:v,getQuoteTotal:_,removeItem:C,removeQuoteItem:y,getDecimalPrecisionFromSalesPriceOrNRC:w,updateFormattedValues:I,formateCurrencyValue:S}}),W0=e=>[{title:"Apply Discount",subOptions:[...e.map(t=>`Apply Discount on ${t} for `),"Show Maximum discount allowed","Apply Maximum Discount Allowed",...e.map(t=>`Apply Discount on ${t} for a specific total`)]},{title:"Update Fields",subOptions:["Update the price of","Update the quantity of","Update the term start date to","Update the term end date to","Update the line description for"]},{title:"Price Ramp",subOptions:["Add a price ramp for"]}],G0={salesforceUserLocale:"en_US",chatRoomId:"00DA0000000cDUJMA2__0052G00000AHBNAQA5__a0jKb000004VSaMIAW",status:"SUCCESS",statusCode:200,requestId:"9b1d1f0a9f07aa6cdc",errorMessage:"",payload:{uiModification:{addColumn:[],removeColumn:[],filter:[],groupBy:[{sectionName:"MRC $50 and Above",filters:[{datatype:"currency",field:"XX_ORD1__MRC__c",operator:"greater or equal",value:"50"}],tableId:"4vIEgoK5CbSPrLYPbq"},{sectionName:"MRC Below $50",filters:[{datatype:"currency",field:"XX_ORD1__MRC__c",operator:"less than",value:"50"}],tableId:"BlOPCp7eLBCZ84nDT2"}],showOptions:!0}},agentResponse:{role:"agent",requestId:"9b1d1f0a9f07aa6cdc",content:"Grouped the quote items into two sections: one for MRC $50 and above, and another for MRC below $50.",error:!1,epoch:1759936160464,isDML:!1},redirectObjects:{qliId:"",itemId:"",componentName:"QuoteItem"},actionFunction:"Reload",links:[{action:"quoteDocument",label:"Quote Document"},{action:"addProducts",label:"Add Products"}]},Y0=[{label:"Line Description",field:"xx_ord1__line_description__c",isEditable:!0,dataType:"STRING"},{label:"QTY",field:"xx_ord1__qty__c",isEditable:!0,dataType:"DOUBLE"},{label:"Extended Price",field:"xx_ord1__extended_price__c",isEditable:!1,dataType:"CURRENCY"},{label:"Billing Period",field:"xx_ord1__billing_period__c",isEditable:!0,dataType:"PICKLIST",picklistValues:["Monthly","Quarterly","Yearly"]}],An=Rt("quote",()=>{const e=an(),t=J0(),n=ar(),r=ae(""),i=ae(""),o=ae(0),a=ae(""),s=ae([]),l=ae({template:!0,filteredList:!1}),p=ae(null),c=ae(new Map),f=ae({}),u=ae(!1),g=ae(!0),h=ae(!1),m=ae({text:"Hide Options",altText:"Show Options",handler:()=>{g.value=!g.value,S()},color:"#136E05",isActive:!1}),d=be(()=>{const j=Array.from(c.value.values()).map(O=>O.sectionName);return W0(j)});St(a,()=>{l.value.template||I()});function v(){const j=new Map,O=[];for(const[M,Z]of c.value.entries())j.set(M,Z.selected),O.push(Z);const P=JSON.parse(JSON.stringify(O));return P.forEach(M=>{delete M.selected;const Z=new Map,Q=[];M.lineItems.forEach(B=>{B.Selected=j.get(M.tableId).get(B.id)||!1,B.xx_ord1__parent_qli__c?(Z.has(B.xx_ord1__parent_qli__c)||Z.set(B.xx_ord1__parent_qli__c,[]),Z.get(B.xx_ord1__parent_qli__c).push(B)):Q.push(B)}),M.lineItems=Q.map(B=>({...B,options:Z.get(B.id)||[]})),delete M.loading,delete M.parentQLIs,delete M.totalValues}),{showOptions:g.value,sections:P,templateId:a.value}}async function _(j){try{let O=await window.salesforceConnector.getPrimaryQuote(j);O=bt(O),O!==void 0&&(console.info("getPrimaryQuote",JSON.stringify(O)),r.value=O.recordId,console.info("quoteId",r.value),i.value=O.name,a.value=O==null?void 0:O.templateId,o.value=(O==null?void 0:O.lineItemsCount)||0)}catch(O){e.handleError(O.message),console.info("[ERROR]: getPrimaryQuote() error = ",O)}}async function C(j){var O,P;try{l.value.template=!0;let M=await window.salesforceConnector.fetchContentTemplates(JSON.stringify({lstObjectName:[j],templateType:"Document",templateId:null,fetchOnlyDefault:!1}));M=bt(M);const Z=M==null?void 0:M.templates[j];return a.value||(a.value=(O=Z.find(Q=>Q.XX_ORD1__Default__c))==null?void 0:O.Id),a.value||(a.value=(P=Z[0])==null?void 0:P.Id),s.value=Z,l.value.template=!1,s.value}catch(M){e.handleError(M.message),console.info("[ERROR]: fetchTemplates() error = ",M)}}function y(j){if(!j)return null;const O=/\{!\$(\w+):([\w.]+)\}/,P=j.match(O);return P?{function:P[1],apiname:P[2].split(".")[1]}:null}async function w(j){try{const O={Id:r.value,XX_ORD1__Document_Template__c:j};return await window.salesforceConnector.updateQuote(JSON.stringify([O]))}catch(O){e.handleError(O.message),console.info("[ERROR]: updateQuote() error = ",O)}}async function A(){try{l.value.filteredList=!0;let j=await window.salesforceConnector.getQuoteEPageLayout();c.value.clear(),t.cartItemColumnsMap={},j=bt(j);const O=j.map(M=>({label:M.fieldLabel,field:M.fieldName.toLowerCase(),isEditable:M.isEditable,dataType:M.dataType,...M.picklistValues?{picklistValues:M.picklistValues}:{}})),P=or();return c.value.set(P,{loading:!0,lineItems:[],parentQLIs:[],columns:O,tableId:P,sectionName:"All Rows",selected:new Map,filters:[],primarysort:"XX_ORD1__Sequence__c",primarysortdesc:""}),t.cartItemColumnsMap[P]=O,m.value.isActive=!1,g.value=!0,p.value={lstCB:[{columns:O,footer:null,title:"All Rows",sectionName:"All Rows",tableId:P,filters:[],primarysort:"XX_ORD1__Sequence__c",primarysortdesc:""}]},S(),l.value.filteredList=!1,j}catch(j){e.handleError(j.message),console.info("[ERROR]: getQuoteEPageLayout() error = ",j)}}async function I(){if(s.value.length===0){A();return}try{l.value.filteredList=!0;let j=await window.salesforceConnector.getFilteredListWithFields(JSON.stringify({templateId:a.value}));w(a.value),j=bt(j),console.info("res.lstCB = ",j.lstCB);const O=j==null?void 0:j.objectFieldsMap;return c.value.clear(),t.cartItemColumnsMap={},j.lstCB=j.lstCB.map(P=>{const{fields:M,filters:Z,primarysort:Q,primarysortdesc:B}=JSON.parse(P.XX_ORD1__Block_Properties__c),U=M.map(q=>{var $;return{label:($=O[q.api])==null?void 0:$.label,field:q.api.toLowerCase(),isEditable:q.api.includes(".")?!1:O[q.api].isEditable,dataType:O[q.api].dataType,...O[q.api].picklistValues?{picklistValues:O[q.api].picklistValues}:{}}}),D=P.Id||or();return c.value.set(D,{loading:!0,lineItems:[],parentQLIs:[],columns:U,tableId:D,sectionName:P.Name,selected:new Map,footer:y(P.XX_ORD1__Table_Footer_HTML__c),filters:Z,primarysort:Q,primarysortdesc:B}),t.cartItemColumnsMap[D]=U,m.value.isActive=!1,g.value=!0,{columns:U,footer:y(P.XX_ORD1__Table_Footer_HTML__c),title:P.Name,sectionName:P.Name,tableId:D,filters:Z,primarysort:Q,primarysortdesc:B}}),p.value=j,S(),l.value.filteredList=!1,j}catch(j){e.handleError(j.message),console.info("[ERROR]: getFilteredListWithFields() error = ",j)}}async function S(j=!0){const O=[];for(const[P]of c.value)O.push(k(P,j));return await Promise.all(O),t.getProductCount(),!0}function N(j,O){return c.value.get(j).columns.some(P=>P.field.toLowerCase()===O)||t.cartItemColumnsMap[j].some(P=>P.field.toLowerCase()===O)}function T(j,O){let P=$i(j);const M=n.pricingSchema,Z=N(O,"xx_ord1__nrc__c"),Q=N(O,"xx_ord1__sales_price__c"),B=N(O,"xx_ord1__qty__c");return P=P.map(U=>{let D={};M==="nrc/mrc"&&(U!=null&&U.xx_ord1__billing_period__c)?D={...Q?{billingPeriodValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedBillingPeriodValue:U==null?void 0:U.xxord1salespricec}:{},...Z?{oneTimeValue:(U==null?void 0:U.xx_ord1__nrc__c)===0?"0":(U==null?void 0:U.xx_ord1__nrc__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1nrcc}:{}}:M==="nrc/mrc"&&!(U!=null&&U.xx_ord1__billing_period__c)?Q&&(D={oneTimeValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1salespricec}):M!=="nrc/mrc"&&(U!=null&&U.xx_ord1__billing_period__c)?Q&&(D={billingPeriodValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedBillingPeriodValue:U==null?void 0:U.xxord1salespricec}):M!=="nrc/mrc"&&!(U!=null&&U.xx_ord1__billing_period__c)&&Q&&(D={oneTimeValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?0:(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1salespricec});const{xx_ord1__qty__c:q,xx_ord1__sales_price__c:$,xx_ord1__nrc__c:H,...J}=U,R={...J,id:U.id,description:(U==null?void 0:U.xx_ord1__line_description__c)||"",xx_ord1__billing_period__c:U==null?void 0:U.xx_ord1__billing_period__c,...B?{xx_ord1__qty__c:q}:{},xx_ord1__item__c:U==null?void 0:U.xx_ord1__item__c,"xx_ord1__item__r.xx_ord1__decimal_precision__c":U["xx_ord1__item__r.xx_ord1__decimal_precision__c"]||"0",...D};return R!=null&&R.billingPeriodValue&&(t.hasBillingPeriodInList[O]=!0,t.billingPeriodValue=R==null?void 0:R.xx_ord1__billing_period__c),"oneTimeValue"in R&&(t.oneTimeFieldAvailable[O]=!0),"billingPeriodValue"in R&&(t.billingPeriodFieldAvailable[O]=!0),(R==null?void 0:R.oneTimeValue)!==""&&(R==null?void 0:R.oneTimeValue)!==null&&(t.hasOneTimeValue=!0),R}),P}async function k(j,O=!0){var P,M;try{const Z=c.value.get(j);if(console.info("sectionData = ",Z.sectionName),!Z)return;Z.loading=O,O&&(Z.lineItems=[]);const{columns:Q,filters:B,primarysort:U,primarysortdesc:D,footer:q}=Z,$=Q.map(le=>le.field.toLowerCase());$.includes("xx_ord1__parent_qli__c")||$.push("xx_ord1__parent_qli__c"),$.includes("xx_ord1__item__c")||$.push("xx_ord1__item__c"),$.includes("xx_ord1__sys_configuration_status2__c")||$.push("xx_ord1__sys_configuration_status2__c"),(P=t.cartItemColumnsMap[j])==null||P.forEach(le=>{$.includes(le.field)||$.push(le.field)});const H=await E({fields:$,recordId:r.value,filters:B||[],primarySortBy:U||"",primarySortOrder:D?"DESC":"ASC",includeOptions:g.value,totalFields:q?[q.apiname]:[]}),J=H.lineItems,R=new Map;let z=[];const oe=(M=H.fieldTotals)==null?void 0:M.map(le=>le.totalValue);J.forEach(le=>{le.XX_ORD1__Parent_QLI__c?R.has(le.XX_ORD1__Parent_QLI__c)?R.get(le.XX_ORD1__Parent_QLI__c).push(le):R.set(le.XX_ORD1__Parent_QLI__c,[le]):z.push(le)});const ce=[];return z.forEach(le=>{ce.push(le),R.has(le.Id)&&ce.push(...R.get(le.Id))}),z=T(z,j),Z.lineItems=$i(ce),Z.parentQLIs=z,Z.totalValues=oe,Z.loading=!1,c.value=new Map(c.value),ce}catch(Z){console.info("[ERROR]: fetchQuoteLineItems()123 error = ",Z.message);const Q=c.value.get(j);Q&&(Q.loading=!1)}}async function E(j){try{let O=await window.salesforceConnector.getQuoteLineItemsWithFilteredTable(JSON.stringify(j));return O=bt(O),O}catch(O){e.handleError(O.message),console.info("[ERROR]: getQuoteLineItemsWithFilteredTable() error = ",O)}}async function L(j){try{console.info("updateQli() payload = ",j);let O=await window.salesforceConnector.updateQli(JSON.stringify(j));return O=bt(O),S(!1),O}catch(O){e.handleError(O.message),console.info("[ERROR]: updateQli() error = ",O)}}async function V(j){try{let O=await window.salesforceConnector.deleteQLI(j);return O=bt(O),S(),O}catch(O){e.handleError(O.message),console.info("[ERROR]: deleteQLI() error = ",O)}}async function K(j,O){try{u.value=!0;const P={fields:j};O&&(P.objectName=O),j.includes("xx_ord1__qty__c")&&O==="xx_ord1__ecatalog_item__c"&&(P.fields=P.fields.filter(Z=>Z!=="xx_ord1__qty__c")),j.includes("xx_ord1__sales_price__c")&&O!=="xx_ord1__quote_line_item__c"&&(P.fields=P.fields.filter(Z=>Z!=="xx_ord1__sales_price__c"));let M=await window.salesforceConnector.getFieldsData(JSON.stringify(P));return typeof M=="string"&&(M=JSON.parse(M)),M!=null&&M.errorMessage?(e.handleError(M.errorMessage),null):(f.value={...f.value,...M},console.info("fieldsData.value = ",JSON.stringify(f.value)),M)}catch(P){return e.handleError("Failed to get Fields Data. Please try again."),console.info("[ERROR]: getFieldsData() error = ",P),null}finally{u.value=!1}}function W(j=""){var O;return!j||j.includes(".")?!1:j.includes("xx_ord1__qty__c")?!0:((O=f.value[j])==null?void 0:O.isEditable)||!1}function te(){fe(G0)}async function fe(j){var O,P,M,Z,Q,B,U,D,q;if(j.payload){if((O=j.payload)!=null&&O.uiModification){const $=j.payload.uiModification;if(((P=$.addColumn)==null?void 0:P.length)>0)if($.addColumn.forEach(H=>{H.columns.forEach(J=>{J.field=J.field.toLowerCase()})}),$.addColumn[0].sectionName==="all_section")for(const[H,J]of c.value)J.columns=[...J.columns,...$.addColumn[0].columns];else $.addColumn.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).columns=[...c.value.get(H.tableId).columns,...H.columns])});if(((M=$.removeColumn)==null?void 0:M.length)>0)if($.removeColumn.forEach(H=>{H.columns=H.columns.map(J=>J.toLowerCase())}),$.removeColumn[0].sectionName==="all_section")for(const[H,J]of c.value)J.columns=J.columns.filter(R=>!$.removeColumn[0].columns.includes(R.field));else $.removeColumn.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).columns=c.value.get(H.tableId).columns.filter(J=>!H.columns.includes(J.field)))});if(((Z=$.filter)==null?void 0:Z.length)>0)if($.filter[0].sectionName==="all_section")for(const[H,J]of c.value)J.filters=[...J.filters,...$.filter[0].filters];else $.filter.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).filters=[...c.value.get(H.tableId).filters,...H.filters])});if(((Q=$.groupBy)==null?void 0:Q.length)>0){const H=((B=[...c.value.values()][0])==null?void 0:B.columns)||Y0;c.value.clear(),t.cartItemColumnsMap={},$.groupBy.forEach(J=>{t.cartItemColumnsMap[J.tableId]=J.columns||H,c.value.set(J.tableId,{loading:!0,lineItems:[],parentQLIs:[],columns:J.columns||H,tableId:J.tableId,sectionName:J.sectionName,selected:new Map,footer:y(J.footer),filters:J.filters,primarysort:J.primarysort,primarysortdesc:J.primarysortdesc})})}$.showOptions!==void 0&&(g.value=$.showOptions)}if(((D=(U=j.payload)==null?void 0:U.sections)==null?void 0:D.length)>0){const $=(q=j.payload)==null?void 0:q.sections;c.value.clear(),$.forEach(H=>{H.tableId||(H.tableId=or()),H.selected=new Map,c.value.set(H.tableId,H)}),S()}}j.actionFunction==="Reload"&&(S(),console.info("Reloading quote line items"))}async function ee(j){var O,P;try{const M=new Set;for(const Z of c.value.keys())(O=c.value.get(Z).lineItems)==null||O.forEach(B=>{B.attributes=null,M.add(B.id)});if(j){const Z={lineItemIds:[...M]},Q=await window.productManagerController.getLineItemAttributes({request:JSON.stringify(Z)}),B=JSON.parse(Q.data);for(const U of c.value.keys())(P=c.value.get(U).lineItems)==null||P.forEach(q=>{q.attributes=B[q.id]||null})}}catch(M){console.info("[ERROR]: fetchAttributesData() error = ",M)}}return{showAttributes:h,quoteId:r,quoteName:i,templateId:a,templateOptions:s,loading:l,currentTemplateData:p,fieldsData:f,fieldsDataLoading:u,showOptionHeaderButton:m,sectionDataMap:c,promptSuggestions:d,lineItemsCount:o,addColumns:te,getQuoteEPageLayout:A,getPayload:v,getPrimaryQuote:_,fetchTemplates:C,getFilteredListWithFields:I,getQuoteLineItemsWithFilteredTable:E,updateQli:L,getFieldsData:K,deleteQLI:V,performAIAction:fe,isEditableField:W,fetchQuoteLineItems:k,fetchAllQuoteLineItems:S,fetchAttributesData:ee}}),e5=Rt("quickSelection",()=>{const e=an(),t=ar(),n=An(),r=ae(null),i=ae(!1),o=ae([]),a=ae([]),s=ae(!1),l=ae({}),p=ae({rowLimit:10,paging:!0,offset:0,currentPage:1,totalPages:1}),c=ae(!1);async function f(){i.value=!0;try{const w=JSON.stringify({layoutType:"Quick Selection",layoutObject:"xx_ord1__ecatalog_item__c",...t.objectType?{contextObject:t.objectType}:{}});let A={};A=await window.salesforceConnector.getDynamicPageLayout(w),r.value=xc(A,"Unable to find the Quick Selection Layout for your user profile"),console.info("quickSelectionLayout.value = ",r.value),p.value.rowLimit=r.value.configuration.rowLimit||10,r.value.data.columns.forEach(I=>{!I.field&&I.label==="QTY"&&(I.field="xx_ord1__qty__c")}),i.value=!1}catch(w){i.value=!1,e.handleError("Failed to get Page structure data. Please try again."),console.info("[ERROR]: getAdaptiveSearchLayout() error = ",w)}}function u(){const w=new Map;return r.value.data.columns.forEach(A=>{w.set(A.field,!0)}),r.value.data.searchResultColumns.forEach(A=>{w.set(A.field,!0)}),Array.from(w.keys())}async function g(w){var A,I;try{let S=await window.salesforceConnector.saveCompetitorSKU(w);if(S!=null&&S.errorMessage){e.handleError(S.errorMessage);return}if((A=S[0])!=null&&A.errorMessage){e.handleError((I=S[0])==null?void 0:I.errorMessage);return}return S}catch(S){e.handleError("Failed to Match Item. Please try again."),console.info("[ERROR]: saveCompetitorSKU() error = ",S)}}async function h(w="",A=[]){try{let I=r.value.data,S=r.value.configuration;const N=w.trim();if(console.info("searchTextValue.trim() = ",w.trim()),!N)return[];let T=null;console.info("useMappings = ",c.value),c.value?T=z0(m()):T=m(),console.info("fields before filter = ",T),T=T.filter(V=>V!=="xx_ord1__qty__c"),console.info("fields after filter = ",T);const k={fields:T,...A.length?{dynamicFilters:n.getDynamicFilters(A)}:{},searchText:N,accountId:t.accountId,...t.eCatalogId?{catalogId:t.eCatalogId}:{},...t.objectType==="opportunity"?{opportunityId:t.id}:{},...I!=null&&I.sort?{primarySortBy:I.sort.primary.field,primarySortOrder:I.sort.primary.direction,secondarySortBy:I.sort.secondary.field,secondarySortOrder:I.sort.secondary.direction}:{},rowLimt:(S==null?void 0:S.rowLimit)||20,paging:(S==null?void 0:S.paging)||!1,...p.value.offset!==0?{offset:p.value.offset}:{},objectName:I.objectName,currencyCode:t.currencyCode};console.info("getQuickSelectionItems payload = ",JSON.stringify(k));const E=await window.salesforceConnector.getItems(JSON.stringify(k));if(console.info("getQuickSelectionItems Res = ",JSON.stringify(E)),E!=null&&E.errorMessage){e.handleError(E.errorMessage);return}return E!=null&&E.itemCount&&(p.value.totalPages=Math.ceil((E==null?void 0:E.itemCount)/p.value.rowLimit)),$i(E.lstItems,{xx_ord1__qty__c:"1"})}catch(I){e.handleError("Failed to fetch Results. Please try again."),console.info("[ERROR]: getQuickSelectionItems() error = ",I)}}function m(){let w=[];for(const A of r.value.data.columns){let I=A.field;if(I!=null&&I.includes(".")){w.includes(I)||w.push(I);let N=I.split(".")[0];N=N.slice(0,-1)+"c",w.includes(N)||w.push(N)}else w.includes(I)||w.push(I)}return console.info("getAllQuickSelectionFields() fields = ",w),w.filter(A=>A.toLowerCase()!=="xx_ord1__qty__c")}async function d(w,A,I,S){console.info("searchText:",JSON.stringify(w)),console.info("row:",JSON.stringify(A)),console.info("rowIndex:",JSON.stringify(I)),console.info("column:",JSON.stringify(S));const N=I+(p.value.currentPage-1)*p.value.rowLimit;if(S.field.toLowerCase().includes("xx_ord1__item__r")){if(o.value[N].itemLookupLoading=!0,c.value=!0,a.value=await h(w),a.value.length>0){const T=[];for(let k=0;k<a.value.length;k++)o.value[N].itemDataRetrieved=!0,a.value[k].xx_ord1__item__c&&T.push({name:a.value[k]["xx_ord1__item__r.name"],value:a.value[k].xx_ord1__item__c,label:a.value[k][S.field.toLowerCase()]});o.value[N][S.field.toLowerCase()+"_options"]=T}o.value[N].itemLookupLoading=!1}else if(S.field.toLowerCase().includes("xx_ord1__competitor_item__r")){o.value[N].competitorLookupLoading=!0;const T=await v(w);T!=null&&T.items&&(o.value[N][S.field.toLowerCase()+"_options"]=T.items.map(k=>({name:k.fields[2].value,value:k.fields[1].value,label:k.fields[0].value}))),o.value[N].competitorLookupLoading=!1,console.info("getLookupData:: Search Lookup Handler Response = ",T)}}async function v(w){var I,S;console.info("getLookupData() searchText = ",w);const A={searchText:w,obj:"xx_ord1__competitor_item__c",filters:null,displayFields:["xx_ord1__sku__c"]};try{let N=await window.salesforceConnector.getLookupData(JSON.stringify(A));if(typeof N=="string"&&(N=JSON.parse(N)),N!=null&&N.errorMessage){e.handleError(N.errorMessage);return}if((I=N[0])!=null&&I.errorMessage){e.handleError((S=N[0])==null?void 0:S.errorMessage);return}return N}catch(N){e.handleError("Failed to Search For Item. Please try again."),console.info("[ERROR]: getLookupData() error = ",N)}}async function _(w,A){var S;console.info("Update Other Fields Value = ",w),console.info("Update Other Fields Row Index = ",A);const I=A+(p.value.currentPage-1)*p.value.rowLimit;console.info("actualRowIndex = ",I);try{if(w){const N=a.value.filter(T=>T.xx_ord1__item__c===w)[0];if(N){s.value=!0;const T=r.value.data.columns[1].field;o.value[I][T]&&await C(N,I),(S=o.value[I])!=null&&S.itemDataRetrieved&&(o.value[I].status="New Match Requested",o.value[I].noMatchCleared=!0),Object.keys(N).forEach(k=>{const E=Ic[k.toLowerCase()];console.info("Mapped Key = ",E),E&&(o.value[I][E]=N[k])}),s.value=!1}else o.value[I].status=""}else o.value[I].status="No Match"}catch(N){e.handleError("Unable to request a match for this item please try again."),console.info("Error in updateOtherFields = ",N)}}async function C(w,A){const I=o.value[A],S=r.value.data.columns[1].field,N=[{sku:I[S],name:I[S],productDescription:I.xx_ord1__line_description__c||"",productURL:null,status:"Match Requested",competitorAccountId:null,itemId:w.xx_ord1__item__c}];let T=await g(JSON.stringify(N));console.info("Match Item: ",JSON.stringify(T)),o.value[A][`${S}_options`]=[{value:T[0].competitorItemId,label:T[0].sku}],o.value[A][S]=T[0].competitorItemId}async function y(w){try{let A=await window.salesforceConnector.createQLI(JSON.stringify(w));typeof A=="string"&&(A=JSON.parse(A));let I=!1;if((A==null?void 0:A.length)>0)for(let S=0;S<A.length;S++)A[S].errorMessage&&(I=!0,A[S].errorMessage.includes("Line Description: data value too large")&&(A[S].errorMessage="Error: The description is too long—it must be under 200 characters."));if(I){A.forEach(S=>{l.value[S.eCatalogItemId]=S});return}else l.value=[];return A}catch(A){e.handleError("Failed to add item to Quote. Please try again."),console.info("[ERROR]: addAllItemsToQuote() error = ",A)}}return{quickSelectionLayout:r,quickSelectionLayoutLoading:i,processedRecords:o,useMappings:c,currentSearchData:a,createQliErrors:l,getQuickSelectionLayout:f,getAllFieldsForQuickSelectionLayout:u,saveCompetitorSKU:g,getQuickSelectionItems:h,searchLookupHandler:d,updateOtherFields:_,addAllItemsToQuote:y}}),t5="Preparing Your Quote Please Wait...",n5={message:"Your quote is ready! Begin adding products to complete it.",type:"response",requestId:"no-request-id"},r5=18e4,Ui=Rt("ai",()=>{const e=ar(),t=An(),n=Ac(),r=e5(),i=sn(),o=ba(),a=ae(""),s=ae(""),l=ae([]),p=ae(""),c=ae([]),f=ae(!1),u=ae(null),g=Vi(),h=ae({}),m=ae(null),d=ae(null),v=ae(null),_=ae(null),C=ae(null),y=ae(t5),w=ae([]),A=be(()=>e.orgId+"__"+e.user.Id+"__"+t.quoteId),I=be(()=>u.value.readyState==WebSocket.OPEN),S=()=>{h.value={salesforceOrgId:e.orgId,salesforceOrgType:e.orgType,salesforceUserId:e.user.Id,userType:"Salesforce",chatRoomId:A.value,requestId:"",prompt:"",initiatedFrom:e.origin||"Quote",internalCall:!1,contextObjectId:t.quoteId,contextObjectType:"Quote",payload:{lineItemsCount:t.lineItemsCount},origin:"Genesis AI",defaultBatchSize:10,actionType:"",packageVersion:e.packageVersion,relatedIds:{eCatalogId:e.eCatalogId,accountId:e.accountId}}};async function N(){const q=s.value+"?chatRoomId="+A.value;u.value=new WebSocket(q),u.value.addEventListener("open",T),u.value.addEventListener("message",L),u.value.addEventListener("close",k),u.value.addEventListener("error",E)}const T=()=>{V(),te()},k=()=>{K()},E=()=>{Z(),K()},L=q=>{var H,J;V();const $=JSON.parse(q.data);if($.status!=="ALIVE"){if($.loading){y.value=$.message;return}else Array.isArray($.messages)?(y.value=null,l.value.push(n5),$.messages.length>0&&O($.messages)):$.agentResponse&&($.errorMessage&&($.agentResponse.content=$.errorMessage,$.agentResponse.error=!0),y.value=null,l.value.push({message:$.agentResponse.content,type:$.agentResponse.role,requestId:$.requestId,epoch:$.agentResponse.epoch,error:$.agentResponse.error,isDML:$.agentResponse.isDML,...(H=$.agentResponse)!=null&&H.filesData?{filesData:(J=$.agentResponse)==null?void 0:J.filesData}:{}}));w.value=$.links||[],B($)}},V=()=>{K(),m.value=setTimeout(()=>{if(I.value){const q={action:"heartbeat"};u.value.send(JSON.stringify(q)),V()}},r5)},K=()=>{m.value&&(clearInterval(m.value),m.value=null)};function W(q){const $={...h.value};$.requestType="Action",$.actionType="Undo",$.undoRequestId=q,$.requestId=or(),j($)}function te(){const q={...h.value};q.requestType="Action",q.actionType="History",q.requestId=or(),j(q)}function fe(q){return o.path.startsWith("/configurator")&&i.isChangedConfiguration?(_.value={save:()=>{i.maintainQuoteConfiguration()}},a.value=q,!0):(a.value="",!1)}function ee(q,$=!0,H=null){if(!fe(q)&&q.trim()){let J={...h.value};J.prompt=q.trim(),J.requestType="Chat",J.requestId=or(),J.internalCall=!1,J.payload=P(),J.componentName=M.value,J.templateId=t.templateId,J.payload.lineItemsCount=t.lineItemsCount,H&&(J={...J,...H}),Q(),$&&l.value.push({message:q.trim(),type:"user",...C.value&&{fileData:[C.value]},requestId:J.requestId}),j(J),V()}}function j(q){const $={action:"prompt",data:q};u.value.send(JSON.stringify($))}const O=q=>{const $=q.filter(({content:H})=>!!H).map(H=>({message:H.content,type:H.role,requestId:H.requestId,epoch:H.epoch,isDML:H.isDML,undone:H.undone}));$.forEach((H,J)=>{H.isDML===!0&&J!==$.length-1&&(H.isDML=!1)}),l.value=[...l.value,...$]};function P(){return o.path==="/quote-item"?t.getPayload():{}}const M=be(()=>o.path==="/quote-item"?"QuoteItem":""),Z=()=>{l.value.push({type:"response",message:"Oops! Something went wrong while processing your request. Please try again later.",error:!0})},Q=()=>{l.value=l.value.map(q=>({...q,links:[]}))};function B(q){var J,R,z;const $=((J=q==null?void 0:q.redirectObjects)==null?void 0:J.componentName)||(q==null?void 0:q.componentName),H=(q==null?void 0:q.redirectObjects)||{};if($==="AdaptiveSearch"){const oe=(R=q==null?void 0:q.payload)==null?void 0:R.searchTerm,ce=(z=q==null?void 0:q.payload)==null?void 0:z.applyFilters;oe&&oe!==n.searchText&&n.initAdaptiveSearch({searchTerm:oe,filters:ce}),g.push("/adaptive-search")}else $==="Configurator"?g.push(`/configurator/${H.itemId}/${H.qliId}`):$==="QuoteReview"?g.push("/quote-item"):$==="QuoteItem"||$==="QuoteList"?(g.push("/quote-item"),t.performAIAction(q)):$==="QuickSelection"&&(r.quickSelectionLayout=q.payload,console.info("Loading QuickSelection data = ",JSON.stringify(r.quickSelectionLayout)),g.push("/match-records"))}function U(){if(I.value){const q={action:"cancel",data:{requestId:h.value.requestId,chatRoomId:A.value}};u.value.send(JSON.stringify(q))}}const D=()=>{d.value&&(clearInterval(d.value),d.value=null),m.value&&(clearInterval(m.value),m.value=null),v.value&&(clearTimeout(v.value),v.value=null)};return Ei(()=>{D()}),{unsavedChanges:_,loadingMessage:y,promptMessage:a,buttonLinks:w,websocketUrl:s,chatHistory:l,latestDMLRequest:p,strikethroughHistory:c,attachmentData:C,dataManuallyChanged:f,undoAction:W,connectSocket:N,sendMessage:ee,setInitialPayload:S,cancelRequest:U}}),ar=Rt("root",()=>{const e=Ui(),t=an(),n=An(),r=ae(""),i=ae(""),o=ae("Genesis AI"),a=ae(""),s=ae({}),l=ae(""),p=ae(""),c=ae(""),f=ae(""),u=ae({}),g=ae(""),h=ae(""),m=ae(""),d=ae(""),v=ae(""),_=ae(""),C=ae(""),y=ae("Single"),w=ae("closed"),A=be(()=>n.quoteName),I=be(()=>y.value==="Single");async function S(){r.value=Cc("id"),i.value=Cc("origin"),await T(),await N()}async function N(){try{let E=await window.salesforceConnector.getRecordInfo(r.value);return E=bt(E),E!==void 0&&(u.value=E,g.value=E.name,h.value=E.objectType,m.value=E.accountId,d.value=E.eCatalogId,v.value=E.currencyCode,_.value=E.userLocale,C.value=E.opportunityId),(E==null?void 0:E.objectType)==="XX_ORD1__Quote__c"?(n.quoteId=E==null?void 0:E.recordId,n.templateId=E==null?void 0:E.templateId,n.quoteName=E==null?void 0:E.name,n.lineItemsCount=(E==null?void 0:E.lineItemsCount)||0):(E==null?void 0:E.objectType)==="Opportunity"&&await n.getPrimaryQuote(E.recordId),E}catch(E){t.handleError(E.message)}}async function T(){var L,V;const E=await window.salesforceConnector.getOrgInformation();e.websocketUrl=E.websocketUrl,a.value=(L=E.locale)==null?void 0:L.replace("_","-"),s.value=E.user,l.value=E.orgName,p.value=E.orgId,c.value=E.orgType,f.value=E.packageVersion,y.value=(V=E==null?void 0:E.pricingSchema)==null?void 0:V.toLowerCase()}function k(E){o.value=E,o0(E)}return{id:r,origin:i,title:A,subTitle:o,locale:a,user:s,orgName:l,orgId:p,orgType:c,packageVersion:f,objectType:h,recordInfo:u,name:g,accountId:m,eCatalogId:d,currencyCode:v,userLocale:_,opportunityId:C,pricingSchema:y,isSinglePricingSchema:I,flyoutState:w,start:S,getRecordInfo:N,setSubTitle:k}}),i5="https://api-svc.blink.expedite1.com/api/product-pricing/evaluateConfigurationSelection",o5={productJSON:{productItem:{configRules:[{publishKey:"rule-a1",name:"If latest is optA include optB",priority:1,enforceRule:!0,ruleJson:'{"latestSelected":"optA","actionType":"include","affectedOptions":["optB"]}'}]}},currentConfig:{product:{publishKey:"prod-1",attributes:[]},options:[]},selected:{publishKey:"optA",attributes:[]}};async function a5(e=o5){const t=i5;try{const n=await fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status} ${n.statusText}`);return await n.json()}catch(n){throw console.info("Error fetching data with Fetch API:",n),n}}function s5(e){const t=n=>Math.min(...n.options.map(r=>r.relationshipInfo.primarySortOrder));return e.forEach(n=>{n.itemTypes.forEach(r=>{r.options.sort((i,o)=>i.relationshipInfo.primarySortOrder-o.relationshipInfo.primarySortOrder||i.itemName.localeCompare(o.itemName))}),n.itemTypes.sort((r,i)=>t(r)-t(i)||r.itemTypeName.localeCompare(i.itemTypeName))}),e.sort((n,r)=>{const i=Math.min(...n.itemTypes.map(t)),o=Math.min(...r.itemTypes.map(t));return i-o||n.category.localeCompare(r.category)}),e}const l5=(e,t)=>{const n=(r,i)=>typeof i=="function"?void 0:i;return JSON.stringify(e,n)===JSON.stringify(t,n)},sn=Rt("configurator-main",()=>{const e=ba(),t=ar(),n=An(),r=an(),i=Vi(),o=ae(null),a=ae(null),s=ae(null),l=ae(null),p=ae([]),c=ae(null),f=ae(null),u=ae(new Map),g=ae(!1),h=ae({configuration:!1,lineItem:!1,productOptionsPricing:!1,bestOfferPrice:!1,lineItemAttributes:!1,save:!1}),m=ae(!1),d=be(()=>v.value&&!t.isSinglePricingSchema),v=be(()=>{let D=!0,q=!0,$=!0,H=null;for(const J of s.value.categoryOptions)for(const R of J.itemTypes)for(const z of R.options)z.billingPeriod&&(H&&H!==z.billingPeriod&&($=!1),H=z.billingPeriod,!z.yrcPrice&&z.billingPeriod==="Monthly"&&(D=!1),!z.mrcPrice&&z.billingPeriod==="Yearly"&&(q=!1));return D&&q&&$}),_=be(()=>!l5(s.value,l.value)),C=be(()=>{const D=s.value.categoryOptions;return D.forEach(q=>{q.itemTypes.forEach($=>{$.selectedOptions=$.options.filter(H=>$.selected.includes(H.itemId)),$.totalPrice=function(){return $.selectedOptions.reduce((H,J)=>H+J.price*J.qty,0)||0},$.oneTimePrice=function(){return $.selectedOptions.filter(H=>!H.billingPeriod).reduce((H,J)=>H+J.price*J.qty,0)||0},$.recurringPrice=function(){return $.selectedOptions.filter(H=>H.billingPeriod).reduce((H,J)=>H+J.price*J.qty,0)||0}}),q.selectedItemTypes=q.itemTypes.filter($=>$.selected.length>0),q.totalPrice=function(){return q.itemTypes.reduce(($,H)=>$+H.totalPrice(),0)},q.oneTimePrice=function(){return q.itemTypes.reduce(($,H)=>$+H.oneTimePrice(),0)},q.recurringPrice=function(){return q.itemTypes.reduce(($,H)=>$+H.recurringPrice(),0)}}),D.filter(q=>q.itemTypes.filter($=>$.selected.length>0).length>0)}),y=be(()=>C.value.reduce((D,q)=>D+q.totalPrice(),0)),w=be(()=>{const D=C.value.reduce((H,J)=>H+J.totalPrice(),0);let q=C.value.reduce((H,J)=>H+J.oneTimePrice(),0),$=C.value.reduce((H,J)=>H+J.recurringPrice(),0);return s.value.billingPeriod?$=($+s.value.price)*s.value.qty:q=(q+s.value.price)*s.value.qty,{basePrice:s.value.price,addOns:D,oneTimePrice:q,recurringPrice:$,total:s.value.price*s.value.qty+D*s.value.qty+q+$}}),A=be(()=>{const D=new Map;return D.set(c.value.productLineItem.XX_ORD1__Item__c,c.value.productLineItem),c.value.options.forEach(q=>{D.set(q.XX_ORD1__Item__c,q)}),D}),I=be(()=>{const D=new Map;return s.value.categoryOptions.forEach(q=>{q.itemTypes.forEach($=>{$.options.forEach(H=>{D.set(H.relationshipInfo.publishKey,H)})})}),D}),S=be(()=>{const D=new Map;return D.set(f.value.product.XX_ORD1__Item__c,f.value.product),f.value.options.forEach(q=>{D.set(q.XX_ORD1__Item__c,q)}),D});function N(D){s.value.qliId&&(s.value.qliBillingPeriod==="Monthly"&&!D?s.value.price=s.value.qliSalesPrice||s.value.qliMrcPrice:s.value.qliBillingPeriod==="Yearly"&&D&&(s.value.price=s.value.qliSalesPrice)),s.value.categoryOptions.forEach(q=>{q.itemTypes.forEach($=>{$.options.forEach(H=>{H.billingPeriod&&(H.price=(D?H.yrcPrice.offerPrice:H.mrcPrice.offerPrice)||H.price,H.qliId&&(H.qliBillingPeriod==="Monthly"&&!D?H.price=H.qliSalesPrice||H.qliMrcPrice:H.qliBillingPeriod==="Yearly"&&D&&(H.price=H.qliSalesPrice)))})})})}function T(){s.value=null,l.value=null,p.value=[],c.value=null,f.value=null,u.value=new Map,g.value=!1,h.value.configuration=!1,h.value.lineItem=!1,h.value.productOptionsPricing=!1,h.value.bestOfferPrice=!1,h.value.lineItemAttributes=!1,h.value.save=!1}async function k(D,q){T(),o.value=D||e.params.itemId,a.value=q||e.params.qliId,console.info("initConfigurator",o.value,a.value,n.quoteId);const $=await E();await te(),await fe(),s.value=V($);const H=await j();L(H),await W();let J=!1;for(const R of c.value.options)R.XX_ORD1__Billing_Period__c==="Yearly"&&(J=!0);J&&(m.value=!0,N(!0)),l.value=JSON.parse(JSON.stringify(s.value))}async function E(){try{console.info("itemId",o.value);const D=await window.productManagerController.getProductConfiguration({itemId:o.value});console.info("getProductConfiguration:result",D);const q=JSON.parse(D.data).productItem;return q.categoryOptions=s5(q.categoryOptions),q}catch(D){return console.info("error",D.message),!1}}function L(D){const q=new Map;q.set(f.value.product.Id,f.value.product.XX_ORD1__Item__c),f.value.options.forEach(H=>{q.set(H.Id,H.XX_ORD1__Item__c)});const $=new Map;if(D.forEach(H=>{const J={};H.pricingTypes.forEach(R=>{R.appliedOnField==="Catalog Price"?J.catalogPrice=R:R.appliedOnField==="MRC"?J.mrcPrice=R:R.appliedOnField==="YRC"&&(J.yrcPrice=R)}),J.billingPeriod=H.billingPeriod,J.mrcPrice&&!t.isSinglePricingSchema?J.price=J.mrcPrice.offerPrice:J.catalogPrice&&t.isSinglePricingSchema&&(J.price=J.catalogPrice.offerPrice),J.offer={offerDiscount:H.offerDiscount,offerId:H.offerId,offerType:H.offerType},$.set(q.get(H.eCatalogItemId),J)}),$.has(s.value.itemId)){const H=$.get(s.value.itemId),J=s.value.price;Object.assign(s.value,H),s.value.qliId&&(s.value.price=J)}s.value.categoryOptions.forEach(H=>{H.itemTypes.forEach(J=>{J.options.forEach(R=>{if($.has(R.itemId)){const z=$.get(R.itemId),oe=R.price;Object.assign(R,z),R.qliId&&(R.price=oe)}})})})}function V(D){D.isAttributes=D.attributes&&D.attributes.length>0,u.value.set(a.value,D.attributes),p.value=D.configRules;const q=new Set;return p.value.forEach($=>{const H=JSON.parse($.ruleJson);H.optionSelected.forEach(J=>{q.add(J)}),H.affectedOptions.forEach(J=>{q.add(J)})}),K(D),D.categoryOptions.forEach($=>{$.key=$.category.toLowerCase().replace(/\s+/g,"-").replace(/[&]/g,""),$.itemTypes.forEach(H=>{H.selected=[],H.options=H.options.filter(J=>S.value.has(J.itemId)),H.numberOfColumns||(H.numberOfColumns=1),H.numberOfColumns>1&&(H.lightboxAttributes=!0),H.maxNumber||(H.maxNumber=100),H.minNumber||(H.minNumber=0),H.maxQuantity||(H.maxQuantity=1e4),H.minQuantity||(H.minQuantity=1),H.maxNumber===1?(H.isRadio=!0,H.minMessage="Please select 1 option",H.maxMessage="",H.isKit=H.options.some(J=>J.relationshipInfo.relationship==="Kit")):(H.minMessage=`Minimum of ${H.minNumber} selection${H.minNumber!==1?"s":""} required`,H.maxMessage=`Maximum of ${H.maxNumber} selection${H.maxNumber!==1?"s":""} allowed`),H.options.forEach(J=>{$.showImage=$.showImage||!!J.defaultImageURL,J.showAttributesModal=!1,J.calculateRules=q.has(J.relationshipInfo.publishKey),J.qty=H.minQuantity||1,J.getTags=()=>(J.attributes=J.attributes||[],J.attributes.filter(R=>R.value!==null&&R.value!=="").map(R=>({label:R.label,value:R.value}))),Object.defineProperty(J,"isDisabled",{get:function(){return J.relationshipInfo.relationship==="Kit"||(H.isRadio?H.isKit:!H.selected.includes(J.itemId)&&H.maxNumber===H.selected.length)}}),K(J),(A.value.has(J.itemId)||J.relationshipInfo.relationship==="Kit")&&H.selected.push(J.itemId)})})}),D}function K(D){D.isAttributes=D.attributes&&D.attributes.length>0;const q=S.value.get(D.itemId);if(A.value.has(D.itemId)){const $=A.value.get(D.itemId);D.qliId=$.Id,D.qty=$.XX_ORD1__QTY__c,D.itemName=$.XX_ORD1__Line_Description__c,D.billingPeriod=$.XX_ORD1__Billing_Period__c,D.price=$.XX_ORD1__Sales_Price__c,D.billingPeriod?D.price=$.XX_ORD1__Sales_Price__c||$.XX_ORD1__MRC__c:D.price=$.XX_ORD1__NRC__c||$.XX_ORD1__Sales_Price__c,D.qliSalesPrice=$.XX_ORD1__Sales_Price__c,D.qliNrcPrice=$.XX_ORD1__NRC__c,D.qliMrcPrice=$.XX_ORD1__MRC__c,D.qliBillingPeriod=$.XX_ORD1__Billing_Period__c,u.value.set(D.qliId,D.attributes)}else D.itemName=q.XX_ORD1__Line_Description__c||D.itemName,D.price=q.XX_ORD1__Negotiated_Price__c||q.XX_ORD1__NRC_for_New__c,D.nrcPrice=q.XX_ORD1__NRC_for_New__c}async function W(){console.info("getLineItemAttributes"),h.value.lineItemAttributes=!0;const q={lineItemIds:[c.value.productLineItem.Id,...c.value.options.map(J=>J.Id)]},$=await window.productManagerController.getLineItemAttributes({request:JSON.stringify(q)});console.info("getLineItemAttributes:result",$);const H=JSON.parse($.data);for(const[J,R]of Object.entries(H))if(u.value.has(J)){const z=u.value.get(J),oe=new Map;R==null||R.forEach(ce=>{oe.set(ce.apiName,ce)}),z==null||z.forEach(ce=>{oe.get(ce.apiName)&&(ce.value=oe.get(ce.apiName).value||"",ce.dataType==="REFERENCE"&&(ce.referenceRecordId=oe.get(ce.apiName).referenceRecordId||"",ce.referenceRecordId?ce.options=[{Name:ce.value||"",Id:ce.referenceRecordId}]:ce.options=[]))})}h.value.lineItemAttributes=!1}async function te(){h.value.lineItem=!0,console.info("getLineItems",n.quoteId,a.value);try{const D={objectId:n.quoteId,filters:{},additionalFields:["Name","XX_ORD1__Line_Description__c"],primarySort:{field:"CreatedDate",direction:"DESC"},productPage:{recordLimit:200,offset:0,productLineItemId:a.value}},q=await window.productManagerController.getLineItems({request:JSON.stringify(D)});return console.info("getLineItems:result",q),c.value=JSON.parse(q.data).products[0],console.info("result",q),h.value.lineItem=!1,q}catch(D){return console.info("error",D.message),h.value.lineItem=!1,!1}}async function fe(){h.value.productOptionsPricing=!0,console.info("getProductOptionsPricing");try{const D={objectId:n.quoteId,itemId:o.value},q=await window.productManagerController.getProductOptionsPricing({request:JSON.stringify(D)});return console.info("getProductOptionsPricing:result",q),f.value=JSON.parse(q.data),h.value.productOptionsPricing=!1,f.value}catch(D){return console.info("error",D.message),h.value.productOptionsPricing=!1,!1}}async function ee(D){console.info("getRecords");try{const q=await window.productManagerController.getRecords({request:JSON.stringify(D)});return console.info("getRecords:result",q),JSON.parse(q.data)}catch(q){return console.info("error",q.message),!1}}async function j(){h.value.bestOfferPrice=!0,console.info("getBestOfferPrice");const D=[f.value.product.Id];f.value.options.forEach(q=>{D.push(q.Id)});try{const q=await O(D);return h.value.bestOfferPrice=!1,q}catch(q){return console.info("error",q.message),h.value.bestOfferPrice=!1,!1}}async function O(D){const q={accountId:t.accountId,eCatalogItemIds:D,pricePreference:"Heighest Priority"},$=await window.productManagerController.calculateBestOfferPrice({request:JSON.stringify(q)});return console.info("calculateBestOfferPrice:result",$),h.value.bestOfferPrice=!1,JSON.parse($.data)}async function P(){g.value=!0,h.value.save=!0,console.info("maintainQuoteConfiguration");const D=[],q=[];s.value.categoryOptions.forEach(J=>{J.itemTypes.forEach(R=>{R.options.forEach(z=>{R.selected.includes(z.itemId)?D.push(M(z)):z.qliId&&q.push(z.qliId)})})});const $={objectId:n.quoteId,eCatalogId:t.eCatalogId,isGenesisAI:!0,blinkUser:!1,optionsToRemove:q,grandFatheredOptionsToRemove:[],productLineItem:{...M(s.value),optionLineItems:D}};console.info("maintainQuoteConfiguration:request",$);const H=await window.productManagerController.maintainQuoteConfiguration({request:JSON.stringify($)});if(console.info("maintainQuoteConfiguration:result",H),H!=null&&H.error){const J={title:"Unable to Save Configuration",description:H.error,button:{label:"Back to Configuration",action:()=>{g.value=!1}},cancel:{label:"Quote List",action:()=>{i.push("/quote-item?id="+n.quoteId)}}};r.errorPopup=J}else l.value=JSON.parse(JSON.stringify(s.value)),console.info("maintainQuoteConfiguration:result",H);h.value.save=!1}function M(D){const q={};D.isAttributes&&D.attributes.forEach(H=>{H.apiName.includes(".")||(H.dataType==="BOOLEAN"?q[H.apiName]=H.value?"true":"false":H.dataType==="REFERENCE"?q[H.apiName]=H.referenceRecordId:q[H.apiName]=H.value)});const $={attributes:q,itemId:D.itemId,lineItemId:D.qliId,lineDescription:D.itemName,qty:D.qty,billingPeriod:D.billingPeriod,...D.offer};return D.billingPeriod&&v.value&&!t.isSinglePricingSchema&&($.billingPeriod=m.value?"Yearly":"Monthly"),!t.isSinglePricingSchema&&!D.billingPeriod?$.nrcPrice=D.price:($.applyOnField="Catalog Price",$.salesPrice=D.price,$.nrcPrice=D.nrcPrice),$}async function Z(){const D={objectId:t.eCatalogId,productItemId:o.value};try{let q=await window.productManagerController.getProductCrossSells({request:JSON.stringify(D)});if(console.info("getProductCrossSells:result",q),q=q.data?JSON.parse(q.data):{},q.crossSells.length===0)return q;const $=q.crossSells.map(R=>R.Id),H=await O($),J=new Map;return H.forEach(R=>{J.set(R.eCatalogItemId,{...R,...R.pricingTypes[0]})}),q.crossSells.forEach(R=>{R.loading=!1,R.Name=R.XX_ORD1__Line_Description__c||R.XX_ORD1__Item__r.Name,R.Description=R.XX_ORD1__Item__r.XX_ORD1__Product_Description__c,J.has(R.Id)?(R.Price=J.get(R.Id).offerPrice,R.priceFormatted=J.get(R.Id).formattedOfferPrice,R.offer={offerDiscount:J.get(R.Id).offerDiscount,offerId:J.get(R.Id).offerId,offerType:J.get(R.Id).offerType}):(R.Price=R.XX_ORD1__List_Price2__c,R.priceFormatted=R.XX_ORD1__List_Price2__c,R.offer={offerDiscount:0,offerId:null,offerType:null})}),q}catch(q){return console.info("error",q.message),!1}}async function Q(D,q){var R,z;const $={product:{publishKey:s.value.publishKey,lineDescription:s.value.itemName},options:[]};s.value.categoryOptions.forEach(oe=>{oe.itemTypes.forEach(ce=>{ce.options.forEach(le=>{ce.selected.includes(le.itemId)&&$.options.push({publishKey:le.relationshipInfo.publishKey,lineDescription:le.itemName})})})}),console.info("evaluateConfigSelection:currentConfig.options",$.options);const H={productJSON:{productItem:{configRules:p.value}},currentConfig:$,selected:D?{publishKey:(R=D.relationshipInfo)==null?void 0:R.publishKey,attributes:D.attributes,lineDescription:D.itemName}:{},unselected:q?{publishKey:(z=q.relationshipInfo)==null?void 0:z.publishKey,attributes:q.attributes,lineDescription:q.itemName}:{}};return await a5(H)}async function B(){try{const D=["Name","XX_ORD1__Line_Description__c","XX_ORD1__Item__r.XX_ORD1__Product_Description__c","XX_ORD1__Sales_Price__c","XX_ORD1__SYS_Configuration_Status2__c"],$=(await n.getQuoteLineItemsWithFilteredTable({fields:D,recordId:n.quoteId,filters:[],includeOptions:!1,totalFields:[]})).lineItems;return console.info("fetchQuoteLineItems:res",$),$}catch(D){console.info("[ERROR]: fetchQuoteLineItems()123 error = ",D.message)}}async function U(D){const q={quoteId:n.quoteId,lstQLIRequest:[{eCatalogItemId:D.Id,quantity:1,offerApplicable:D.offer}]};try{const $=await window.productManagerController.createQuoteProducts({request:JSON.stringify(q)});console.info("getProductCrossSells:result",$)}catch($){return console.info("error",$.message),!1}}return{itemId:o,configuration:s,_configurationCopy:l,lineItem:c,savedScreen:g,loading:h,summary:C,addOns:y,summaryPrices:w,optionByItemId:A,attributesByQLIId:u,optionByPublishKey:I,showYearlyPricing:m,isYearlyPricingExist:v,isChangedConfiguration:_,isRecurringPricingSchema:d,changePricingScheme:N,createQuoteProducts:U,resetConfigurator:T,fetchQuoteLineItems:B,getRecords:ee,getProductCrossSells:Z,initConfigurator:k,maintainQuoteConfiguration:P,evaluateConfigSelection:Q}}),c5={class:"ect-p-4 ect-flex ect-gap-2 ect-items-center ect-justify-between ect-border-b ect-border-gray-200"},u5={class:"ect-flex ect-items-center ect-gap-3"},f5={class:"ect-text-xl ect-font-semibold ect-text-gray-700 ect-leading-relaxed"},d5={key:0,class:"ect-flex ect-gap-1.5 ect-items-center"},h5=b("span",{class:"ect-text-sm ect-text-gray-700 ect-leading-relaxed"},"Saving configuration...",-1),p5={key:1,class:"ect-flex ect-gap-1.5 ect-items-center"},g5=b("span",{class:"ect-text-sm ect-text-gray-700 ect-leading-relaxed"},"Configuration Saved Successfully",-1),m5={key:1,class:"ect-flex ect-flex-col ect-gap-4 ect-flex-1 ect-overflow-y-auto ect-mb-16"},v5=b("h3",{class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0"},"You may consider these products",-1),y5={class:"ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0 ect-overflow-y-auto"},_5=["data-test-id"],b5={class:"ect-flex-1 ect-flex ect-flex-col ect-gap-2"},C5={class:"ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight"},w5={class:"ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed ect-line-clamp-2"},x5={class:"ect-flex ect-flex-row ect-justify-between ect-items-center"},k5={class:"ect-text-sm ect-font-semibold ect-text-gray-800"},E5={key:2,class:"ect-flex ect-flex-col ect-gap-4 ect-m-4 ect-flex-1 ect-overflow-y-auto"},O5=b("h3",{class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed"},"What do you want to do next?",-1),S5={class:"ect-flex ect-flex-col ect-gap-4"},I5=["data-test-id","onClick"],A5={class:"ect-flex ect-items-center ect-justify-center"},T5={class:"ect-flex ect-flex-col ect-items-center ect-gap-2 ect-w-full"},N5=["data-test-id"],P5=["data-test-id"],L5={key:3,class:"ect-bg-light-bg-x ect-border-t ect-border-gray-200 ect-flex-shrink-0 ect-sticky ect-bottom-0 ect-pb-4"},R5={class:"ect-flex ect-flex-col ect-gap-4"},M5={class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0"},q5={class:"ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0 ect-overflow-y-auto"},j5={class:"ect-bg-white ect-border ect-border-gray-300 ect-rounded-md ect-p-3 ect-flex ect-flex-col","data-test-id":"configurator-recommend-card-next-product"},D5={class:"ect-flex-1 ect-flex ect-flex-col ect-gap-2"},B5={class:"ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight"},$5={class:"ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed ect-line-clamp-2"},F5={class:"ect-flex ect-flex-row ect-justify-between ect-items-center"},V5={class:"ect-text-sm ect-font-semibold ect-text-gray-800"},H5={__name:"ConfiguratorRecommend",setup(e){const t=sn(),n=An(),r=Vi(),i=be(()=>t.configuration),o=ae(!0),a=ae(""),s=ae([{icon:"configuration",title:"Back to current Product Configuration",description:"Returns to the active product configuration page.",link:"/item/overview",action:"backToConfiguration"},{icon:"menu",title:"Back to Quote List Page",description:"Returns to the main quote list page.",link:"/quote-item",action:"backToQuoteList"}]),l=ae(null),p=ae([]),c=async h=>{h.loading=!0,await t.createQuoteProducts(h),h.disabled=!0,h.loading=!1},f=h=>{h.action==="backToConfiguration"?t.savedScreen=!1:h.action==="backToQuoteList"?r.push("/quote-item?id="+n.quoteId):h.link&&r.push(h.link)};async function u(){const h=await t.fetchQuoteLineItems();console.info("getQuoteLineItems1:_quoteLineItems",h);const m=h.filter(v=>v.XX_ORD1__SYS_Configuration_Status2__c=="Needs Configuration").length;console.info("getQuoteLineItems2:needsConfigurationCount",m),a.value=`(${h.length-m}/${h.length})`;const d=h.find(v=>v.XX_ORD1__SYS_Configuration_Status2__c=="Needs Configuration"&&v.Id!=t.qliId);return console.info("getQuoteLineItems3:result",d),l.value=d?{Name:d.XX_ORD1__Line_Description__c,Description:d.XX_ORD1__Item__r.XX_ORD1__Product_Description__c,Price:d.XX_ORD1__Sales_Price__c,XX_ORD1__Item__c:d.XX_ORD1__Item__c,Id:d.Id}:null,console.info("getQuoteLineItems4:configueredProduct",l.value),h}async function g(){t.resetConfigurator(),r.push({path:"/configurator/"+l.value.XX_ORD1__Item__c+"/"+l.value.Id}),t.initConfigurator(l.value.XX_ORD1__Item__c,l.value.Id)}return Cn(async()=>{o.value=!0;const h=await u(),m=await t.getProductCrossSells(),d=new Set;h.forEach(v=>{d.add(v.XX_ORD1__Item__c)}),m.crossSells.forEach(v=>{v.disabled=d.has(v.XX_ORD1__Item__c)}),p.value=m.crossSells||[],o.value=!1}),(h,m)=>(X(),ne(Oe,null,[b("div",c5,[b("div",u5,[_e(Ge,{icon:"arrow",symbol:"",size:12,onClick:m[0]||(m[0]=d=>Xe(t).savedScreen=!1)}),b("h2",f5,ve(i.value.itemName),1)]),Xe(t).loading.save?(X(),ne("div",d5,[_e(kc,{svg:""}),h5])):(X(),ne("div",p5,[_e(Ge,{icon:"check",color:"#136E05",size:14,"data-test-id":"item-tabs-before-button-icon"}),g5]))]),o.value?(X(),Te(_a,{key:0,type:"recommendations",rows:4})):p.value.length>0?(X(),ne("div",m5,[v5,b("div",y5,[(X(!0),ne(Oe,null,ze(p.value,(d,v)=>(X(),ne("div",{key:d.Id||v,class:"ect-bg-white ect-border ect-border-gray-300 ect-rounded-md ect-p-3 ect-flex ect-flex-col","data-test-id":`configurator-recommend-card-${d.Id||v}`},[b("div",b5,[b("h4",C5,ve(d.Name),1),b("p",w5,ve(d.Description),1)]),b("div",x5,[b("div",k5,ve(h.$formatCurrency(d.Price)),1),_e(Nt,{btype:d.disabled?"secondary":"primary","button-style":d.disabled?"normal":"outlined",size:"medium",class:Ie({"ect-w-[120px]":d.loading}),loading:d.loading,disabled:d.disabled||d.loading,"data-test-id":`configurator-recommend-button-add-${d.Id||v}`,onClick:_=>c(d)},{default:De(()=>[Fe(ve(d.loading?"":d.disabled?"Added to Quote":"Add to Quote"),1)]),_:2},1032,["btype","button-style","class","loading","disabled","data-test-id","onClick"])])],8,_5))),128))])])):(X(),ne("div",E5,[O5,b("div",S5,[(X(!0),ne(Oe,null,ze(s.value,(d,v)=>(X(),ne("div",{key:d.title||v,class:"ect-bg-white ect-border ect-border-[#DEDEDE] ect-rounded-xl ect-p-4 md:ect-p-5 lg:ect-p-6 ect-flex ect-flex-col ect-items-center ect-gap-4 md:ect-gap-6 lg:ect-gap-8 ect-cursor-pointer ect-transition-all ect-duration-200 hover:ect-shadow-md hover:ect-border-gray-400","data-test-id":`configurator-recommend-redirect-card-${v}`,onClick:_=>f(d)},[b("div",A5,[_e(Ge,{icon:d.icon,size:20,color:"#000000","data-test-id":`configurator-recommend-redirect-icon-${v}`},null,8,["icon","data-test-id"])]),b("div",T5,[b("h4",{class:"ect-text-sm ect-font-semibold ect-text-[#5F5F5F] ect-text-center ect-leading-[1.43]","data-test-id":`configurator-recommend-redirect-title-${v}`},ve(d.title),9,N5),b("p",{class:"ect-text-sm ect-font-normal ect-text-[#828282] ect-text-center ect-leading-[1.71]","data-test-id":`configurator-recommend-redirect-description-${v}`},ve(d.description),9,P5)])],8,I5))),128))])])),l.value?(X(),ne("footer",L5,[b("div",R5,[b("h3",M5," Configuere next product from your quote "+ve(a.value),1),b("div",q5,[b("div",j5,[b("div",D5,[b("h4",B5,ve(l.value.Name),1),b("p",$5,ve(l.value.Description),1)]),b("div",F5,[b("div",V5,ve(h.$formatCurrency(l.value.Price)),1),_e(Nt,{btype:"primary","button-style":"filled",size:"medium","data-test-id":"configurator-recommend-button-add-next-product",onClick:g},{default:De(()=>[Fe(" Configure Now ")]),_:1})])])])])])):ye("",!0)],64))}},U5=["data-test-id"],z5=Ve({__name:"AppPill",props:{variant:{type:String,default:"",validator:e=>["success","error",""].includes(e)},dataTestId:{type:String,default:""}},setup(e){return(t,n)=>(X(),ne("span",{class:Ie(["ect-pill",{"ect-pill-success":e.variant==="success","ect-pill-error":e.variant==="error","ect-pill-default":!e.variant}]),"data-test-id":e.dataTestId},[Ze(t.$slots,"default",{},void 0,!0)],10,U5))}},[["__scopeId","data-v-c7f05fa0"]]),K5=["data-test-id"],Z5=["data-test-id"],Q5=["data-test-id","onClick"],X5=["data-test-id"],J5=Ve({__name:"AppTabsV2",props:{showTabs:{type:Boolean,default:!0},modelValue:{type:String,default:""},border:{type:Boolean,default:!1},tabs:{type:Array,required:!0,validator:e=>e.every(t=>typeof t=="object"&&t.title&&t.key&&(t.sections===void 0||Array.isArray(t.sections)))},dataTestId:{type:String,required:!0}},emits:["update:modelValue","tab-change"],setup(e,{emit:t}){const n=e,r=t,i=be(()=>{var a;return n.modelValue||((a=n.tabs[0])==null?void 0:a.key)||""}),o=a=>{r("update:modelValue",a),r("tab-change",a)};return(a,s)=>(X(),ne("div",{class:"ect-page-tabs","data-test-id":e.dataTestId},[e.showTabs?(X(),ne("div",{key:0,class:Ie(["ect-page-tabs-header",[{"ect-tab-border":e.border}]]),"data-test-id":`${e.dataTestId}-header`},[(X(!0),ne(Oe,null,ze(e.tabs,l=>(X(),ne("button",{key:l.key,class:Ie(["ect-page-tab-button",`ect-page-tab-button${i.value===l.key?"-active":""} ${l.tabClass||""}`]),"data-test-id":`${e.dataTestId}-tab-${l.key}`,onClick:p=>o(l.key)},[Fe(ve(l.title)+" ",1),l.pill!==void 0&&l.pill!==null?(X(),Te(z5,{key:0,class:"ect-ml-2",variant:l.pillStyle,"data-test-id":`${e.dataTestId}-tab-${l.key}-pill`},{default:De(()=>[Fe(ve(l.pill),1)]),_:2},1032,["variant","data-test-id"])):ye("",!0)],10,Q5))),128))],10,Z5)):ye("",!0),b("div",{class:"ect-page-tab-content","data-test-id":`${e.dataTestId}-content`},null,8,X5)],8,K5))}},[["__scopeId","data-v-f22cb1ed"]]),W5=["data-test-id"],G5=["disabled","data-test-id"],Y5=["value","disabled","data-test-id"],eh=["disabled","data-test-id"],zi={__name:"CounterButton",props:{value:{type:Number,required:!0,default:null},min:{type:Number,default:1},max:{type:Number,default:999},empty:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestId:{type:String,required:!0}},emits:["update:value","change"],setup(e,{emit:t}){const n=e,r=t,i=be(()=>n.min==null?0:n.min),o=be(()=>n.max==null?999:n.max),a=(y,w,A)=>Math.min(Math.max(y,w),A),s=y=>{if(y==null||y==="")return NaN;const w=Number(y);return Number.isFinite(w)?w:NaN},l=ae(null),p=ae(n.value??i.value),c=y=>{p.value=a(y,i.value,o.value)};n.value!==null&&c(n.value);const f=be(()=>p.value),u=be(()=>l.value!=null?l.value:String(f.value)),g=be(()=>n.disabled||f.value<=i.value),h=be(()=>n.disabled||f.value>=o.value);function m(y){y!==n.value&&(p.value=y,r("update:value",y),r("change",y))}function d(){if(g.value)return;const y=a(f.value-1,i.value,o.value);l.value=null,m(y)}function v(){if(h.value)return;const y=a(f.value+1,i.value,o.value);l.value=null,m(y)}function _(y){const A=String(y.target.value??"").replace(/\D+/g,"");l.value=A}function C(){const y=s(l.value),w=i.value,A=a(Number.isNaN(y)?w:y,i.value,o.value);l.value=null,m(A)}return(y,w)=>(X(),ne("div",{class:"ect-flex ect-items-center ect-gap-1","data-test-id":e.dataTestId},[b("button",{type:"button",class:Ie(["ect-h-7 ect-w-7 ect-border ect-border-gray ect-rounded-md ect-flex ect-items-center ect-justify-center ect-text-gray-700 ect-text-sm hover:ect-border-gray-400 ect-transition-colors ect-bg-white",{"ect-opacity-50":g.value,"ect-cursor-not-allowed":g.value}]),disabled:g.value,"data-test-id":`${e.dataTestId}-decrement`,onClick:d}," - ",10,G5),b("input",{type:"text",inputmode:"numeric",pattern:"[0-9]*",value:e.empty?"":u.value,disabled:e.disabled,class:"ect-h-7 ect-w-[48px] ect-px-2 ect-border ect-border-gray ect-rounded-md ect-text-center ect-text-sm ect-font-medium ect-text-gray-900 focus:ect-outline-none focus:ect-border-gray-400 ect-bg-white","data-test-id":`${e.dataTestId}-input`,onInput:_,onBlur:C},null,40,Y5),b("button",{type:"button",class:Ie(["ect-h-7 ect-w-7 ect-border ect-border-gray ect-rounded-md ect-flex ect-items-center ect-justify-center ect-text-gray-700 ect-text-sm hover:ect-border-gray-400 ect-transition-colors ect-bg-white",{"ect-opacity-50":h.value,"ect-cursor-not-allowed":h.value}]),disabled:h.value,"data-test-id":`${e.dataTestId}-increment`,onClick:v}," + ",10,eh)],8,W5))}},th={class:"ect-flex ect-justify-end ect-items-center ect-gap-2.5 ect-px-6 ect-pb-6 ect-pt-4 ect-bg-white ect-border-t ect-border-gray-300 ect-shadow-[0_-2px_4px_0px_rgba(0,0,0,0.11)]","data-test-id":"configurator-footer"},nh={"data-test-id":"configurator-footer-quantity"},rh={class:"ect-flex ect-justify-end ect-items-center ect-gap-6 ect-px-8 ect-py-0 ect-flex-1","data-test-id":"configurator-footer-prices"},ih=["data-test-id"],oh=["data-test-id"],ah=["data-test-id"],sh=["data-test-id"],lh={__name:"ConfiguratorFooter",props:{item:{type:Object,required:!0,default:()=>{}},disabled:{type:Boolean,default:!1},btnText:{type:String,default:"Save"}},emits:["update:qty","continue"],setup(e,{emit:t}){const n=sn(),r=e,i=ae(r.item),o=be(()=>{const l=n.summaryPrices,p=[];return n.isRecurringPricingSchema?(p.push({label:"One Time Price",value:l.oneTimePrice,highlight:!1}),p.push({label:n.showYearlyPricing?"Yearly Price":"Monthly Price",value:l.recurringPrice,highlight:!1})):(p.push({label:"Base Price",value:l.basePrice,highlight:!1}),p.push({label:"Add Ons",value:l.addOns,highlight:!1}),p.push({label:"Total Price",value:l.total,highlight:!1})),p}),a=t,s=()=>{r.disabled||a("continue")};return(l,p)=>(X(),ne("footer",th,[b("div",nh,[_e(zi,{value:i.value.qty,"onUpdate:value":p[0]||(p[0]=c=>i.value.qty=c),min:1,max:999,disabled:e.disabled,"is-selected":!0,"data-test-id":"configurator-footer-counter-button"},null,8,["value","disabled"])]),b("div",rh,[(X(!0),ne(Oe,null,ze(o.value,(c,f)=>(X(),ne(Oe,{key:f},[b("div",{class:"ect-flex ect-flex-col ect-justify-center","data-test-id":`configurator-footer-price-${f}`},[b("span",{class:"ect-text-xs ect-font-normal ect-text-gray-500 ect-text-left","data-test-id":`configurator-footer-price-label-${f}`},ve(c.label),9,oh),b("span",{class:Ie(["ect-text-left",c.highlight?"ect-text-lg ect-font-bold ect-text-green-700":"ect-text-sm ect-font-medium ect-text-gray-800 "]),"data-test-id":`configurator-footer-price-value-${f}`},ve(l.$formatCurrency(c.value)),11,ah)],8,ih),f<o.value.length-1?(X(),ne("div",{key:0,class:"ect-w-0 ect-h-5 ect-border-l ect-border-gray-400","data-test-id":`configurator-footer-divider-${f}`},null,8,sh)):ye("",!0)],64))),128))]),_e(Nt,{class:"ect-min-w-[100px]",btype:e.disabled?"secondary":"primary",disabled:e.disabled,"button-style":"primary",size:"medium","data-test-id":"configurator-footer-button-continue",onClick:s},{default:De(()=>[Fe(ve(e.btnText),1)]),_:1},8,["btype","disabled"])]))}},ch={class:"ect-w-full ect-bg-white ect-mb-4","data-test-id":"configurator-type-section"},uh={class:"ect-sticky ect-top-0 ect-z-30 ect-bg-white ect-shadow-sm ect-p-3 ect-px-4 ect-border-b ect-border-gray-200 ect-flex ect-justify-between ect-items-center","data-test-id":"configurator-type-header-sticky"},fh={class:"ect-flex ect-flex-col"},dh={class:"ect-font-bold ect-text-text-success ect-leading-tight"},hh=["innerHTML"],ph={key:0,class:"ect-flex ect-items-center ect-gap-2 ect-px-2 ect-py-1","data-test-id":"configurator-type-message"},gh={class:"ect-text-xs ect-font-medium ect-text-gray-600 ect-leading-tight ect-min-w-[190px]"},mh={class:"ect-divide-y ect-divide-gray-100 ect-overflow-y-auto"},vh={__name:"ConfiguratorType",props:{title:{type:String,required:!0},description:{type:String,default:""},message:{type:String,default:""}},setup(e){return(t,n)=>(X(),ne("section",ch,[b("header",uh,[b("div",fh,[b("h2",dh,ve(e.title),1),e.description?(X(),ne("p",{key:0,class:"ect-mt-1 ect-text-xs ect-text-gray-500 ect-leading-tight",innerHTML:e.description},null,8,hh)):ye("",!0)]),e.message?(X(),ne("div",ph,[_e(Ge,{icon:"info",symbol:"",color:"#198708",size:14,"data-test-id":"configurator-type-message-icon"}),b("span",gh,ve(e.message),1)])):ye("",!0)]),b("div",mh,[Ze(t.$slots,"default")])]))}},yh={__name:"ShadowDisplay",props:{content:{type:String,required:!0}},setup(e){const t=e,n=ae(null);let r=null;return wn(()=>{n.value&&!r&&(r=n.value.attachShadow({mode:"open"}),r.innerHTML=t.content)}),St(()=>t.content,i=>{r&&(r.innerHTML=i)}),(i,o)=>(X(),ne("div",{ref_key:"host",ref:n},null,512))}},_h=["data-test-id"],bh=["data-test-id"],Ch=["data-test-id"],wh=[b("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("g",{id:"Group"},[b("path",{id:"Vector",d:"M7 1.3125V12.6875",stroke:"#A86200","stroke-linecap":"round","stroke-linejoin":"round"}),b("path",{id:"Vector_2",d:"M1.3125 7H12.6875",stroke:"#A86200","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)],xh=["data-test-id"],kh=["data-test-id"],Eh=["data-test-id"],Oh=["data-test-id"],Sh=["data-test-id"],Ih=["data-test-id","innerHTML"],Zt={__name:"Tag",props:{label:{type:String,default:""},value:{type:String,default:""},addButton:{type:Boolean,default:!1},editButton:{type:Boolean,default:!1},dataTestId:{type:String,default:""}},setup(e){const t=e,n=be(()=>{const r=t.value;if(typeof r!="string")return!1;const i=new DOMParser().parseFromString(r,"text/html");return Array.from(i.body.childNodes).some(o=>o.nodeType===1)});return(r,i)=>e.addButton?(X(),ne("div",{key:0,class:"ect-bg-orange-4 ect-flex ect-gap-1 ect-justify-center ect-items-center ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-text-center ect-rounded-md ect-border ect-border-solid ect-border-orange-secondary","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-orange-secondary ect-flex ect-items-center ect-gap-1","data-test-id":`${e.dataTestId}-content`},[b("div",{"data-test-id":`${e.dataTestId}-add-icon`},wh,8,Ch),Fe(" "+ve(e.label),1)],8,bh)],8,_h)):e.editButton?(X(),ne("div",{key:1,class:"ect-bg-white ect-flex ect-gap-1 ect-justify-center ect-items-center ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-text-center ect-rounded-md ect-border ect-border-solid ect-border-success","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-success ect-flex ect-items-center ect-gap-1","data-test-id":`${e.dataTestId}-content`},ve(e.label),9,kh)],8,xh)):(X(),ne("div",{key:2,class:"ect-bg-white ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-rounded-md ect-border ect-border-solid ect-border-neutral-200","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-zinc-500","data-test-id":`${e.dataTestId}-label`},ve(e.label),9,Oh),e.value?(X(),ne("span",{key:0,class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-zinc-500","data-test-id":`${e.dataTestId}-separator`}," : ",8,Sh)):ye("",!0),n.value?(X(),Te(yh,{key:1,content:e.value},null,8,["content"])):e.value?(X(),ne("span",{key:2,class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-neutral-700","data-test-id":`${e.dataTestId}-value`,innerHTML:e.value},null,8,Ih)):ye("",!0)],8,Eh))}},Ah=["data-test-id"],Th=["data-test-id"],Nh=["data-test-id"],Ph=["type","step","min","data-test-id"],wa=Ve({__name:"InputEdit",props:{modelValue:{type:String,required:!0},type:{type:String,default:"string",validator:e=>["string","number","currency"].includes(e)},tag:{type:String,default:"span"},disabled:{type:Boolean,default:!1},dataTestId:{type:String,required:!0}},emits:["update:modelValue","change"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=ae(!1),a=ae(!1),s=ae(""),l=ae(null),p=be(()=>r.type==="currency"?v(r.modelValue):r.type==="number"?_(r.modelValue):r.modelValue),c=be(()=>r.type==="string"?"text":"number"),f=be(()=>r.type==="currency"?"0.01":void 0),u=be(()=>r.type==="currency"?"0":void 0),g=()=>{r.disabled||(r.type==="currency"?s.value=parseFloat(r.modelValue)||"0.00":r.type==="number"?s.value=parseFloat(r.modelValue)||"0":s.value=r.modelValue,o.value=!0,Ut(()=>{l.value&&(l.value.focus(),l.value.select())}))},h=()=>{let C=s.value;if(r.type==="number"||r.type==="currency"){const y=parseFloat(s.value);isNaN(y)?C=r.modelValue:C=r.type==="currency"?y.toFixed(2):y.toString()}C!==r.modelValue&&(i("update:modelValue",C),i("change",C)),o.value=!1},m=()=>{s.value=r.modelValue,o.value=!1},d=()=>{o.value&&h()},v=C=>!C||isNaN(C)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(parseFloat(C)),_=C=>!C||isNaN(C)?"0":new Intl.NumberFormat("en-US").format(parseFloat(C));return St(()=>r.modelValue,C=>{o.value||(s.value=C)}),t({startEditing:g,saveChanges:h,cancelEditing:m}),(C,y)=>{const w=Ff("click-outside");return X(),ne("div",{class:"ect-relative ect-inline-block ect-min-w-[60px] ect-h-[30px]","data-test-id":e.dataTestId,onMouseenter:y[1]||(y[1]=A=>a.value=!0),onMouseleave:y[2]||(y[2]=A=>a.value=!1)},[o.value?bn((X(),ne("div",{key:1,class:"ect-w-full ect-h-full","data-test-id":`${e.dataTestId}-input-wrapper`},[bn(b("input",{ref_key:"inputRef",ref:l,"onUpdate:modelValue":y[0]||(y[0]=A=>s.value=A),type:c.value,step:f.value,min:u.value,class:Ie(["ect-w-full ect-h-full ect-px-3 ect-bg-white ect-border ect-border-green-500 ect-rounded-sm ect-text-gray-700 ect-text-base ect-font-sans ect-outline-none ect-duration-200",C.$attrs.class]),"data-test-id":`${e.dataTestId}-input`,onKeyup:[qr(h,["enter"]),qr(m,["esc"])],onBlur:h},null,42,Ph),[[l1,s.value]])],8,Nh)),[[w,d]]):(X(),ne("div",{key:0,class:Ie(["ect-flex ect-items-center ect-gap-2 ect-rounded ect-transition-colors ect-duration-200",{"ect-cursor-pointer":!e.disabled}]),"data-test-id":`${e.dataTestId}-display`,onClick:g},[(X(),Te(yl(e.tag),la(C.$attrs,{class:"ect-m-0 ect-text-inherit","data-test-id":`${e.dataTestId}-text`}),{default:De(()=>[Fe(ve(p.value)+" ",1),_e(Ge,{class:Ie(a.value&&!e.disabled?"ect-visible":"ect-invisible"),icon:"edit",size:"12",color:"#828282","data-test-id":`${e.dataTestId}-edit-icon`},null,8,["class","data-test-id"])]),_:1},16,["data-test-id"]))],10,Th))],40,Ah)}}},[["__scopeId","data-v-07416d80"]]),Lh=["data-test-id","data-publish-key"],Rh={key:0,class:"ect-text-xs ect-text-gray-500 ect-text-white ect-font-medium ect-leading-tight ect-absolute ect-top-[-.7rem] ect-left-[-1rem] ect-bg-text-success ect-rounded-xl ect-px-2 ect-py-1"},Mh={key:1,class:"ect-flex ect-items-start ect-gap-4 ect-p-3 ect-px-4"},qh={key:0,class:"ect-w-16 ect-h-16 ect-flex ect-items-center ect-justify-center ect-rounded-lg ect-bg-gray-200 ect-flex-shrink-0"},jh=["src","alt"],Dh={class:"ect-flex-1 ect-min-w-0"},Bh={class:"ect-flex ect-gap-4 ect-items-center ect-justify-between"},$h={class:"ect-flex ect-flex-row ect-gap-3"},Fh=b("div",{class:"ect-w-px ect-h-auto ect-bg-gray-200 ect-mx-2"},null,-1),Vh={class:"ect-flex ect-flex-col ect-max-w-[125px]"},Hh={class:"ect-flex ect-items-start ect-justify-center ect-ml-2 ect-mt-0"},Uh=["innerHTML"],zh={key:0,class:"ect-flex ect-flex-wrap ect-gap-2.5 ect-mt-2"},Kh=["data-test-id"],Zh=["data-test-id"],Qh={key:1,class:"ect-inline-block ect-mb-2"},Xh={key:2,class:"ect-flex ect-flex-col ect-gap-3 ect-p-3 ect-h-full ect-justify-between"},Jh={class:"ect-flex ect-items-start ect-gap-2"},Wh={class:"ect-w-16 ect-h-16 ect-rounded-lg ect-bg-gray-200 ect-flex-shrink-0 ect-overflow-hidden"},Gh=["src","alt"],Yh={class:"ect-flex-1 ect-min-w-0"},e9={class:"ect-text-sm ect-font-semibold ect-text-gray-900 ect-leading-tight"},t9={class:"ect-mt-1 ect-text-sm ect-text-gray-700 ect-leading-tight"},n9={class:"ect-flex ect-items-start ect-justify-center ect-ml-2 ect-mt-0"},r9={key:0,class:"ect-flex ect-flex-wrap ect-gap-1.5"},i9=["data-test-id"],o9=["data-test-id"],a9={key:1,class:"ect-inline-block ect-mb-2"},s9={class:"ect-flex ect-justify-between ect-items-center"},l9={class:"ect-flex ect-flex-col"},c9=b("p",{class:"ect-text-xs ect-text-gray-500 ect-font-medium ect-leading-tight"},"Price",-1),u9={key:3,"data-test-id":"configurator-item-slot-details",class:"ect-bg-white ect-rounded-md"},f9={__name:"ConfiguratorItem",props:{item:{type:Object,required:!0},name:{type:String,required:!0},description:{type:String,default:""},imageUrl:{type:String,default:""},price:{type:Number,required:!0},quantity:{type:Number,default:1},selected:{type:Boolean,default:!1},tags:{type:Array,default:()=>[]},attributes:{type:Array,default:()=>[]},size:{type:Number,default:1},minQuantity:{type:Number,default:null},maxQuantity:{type:Number,default:null},showImage:{type:Boolean,default:!1},option:{type:Object,default:null},isAttributes:{type:Boolean,default:!1},showAttributes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:quantity","update:name","edit-attributes"],setup(e,{emit:t}){const n=e,r=t,i=ae(null),o=ae(0),a=ae(n.item),s=be(()=>a.value.relationshipInfo.relationship==="Kit"?"ect-bg-green-3 ect-border-gray-200 ect-border-success":n.disabled?"ect-bg-light-bg-x ect-border-gray-200":n.selected?"ect-bg-green-3 ect-border-gray-200 ect-border-success":"ect-bg-white ect-border-gray-200 hover:ect-border-success"),l=be({get:()=>n.quantity,set:h=>r("update:quantity",h)}),p=be({get:()=>n.name,set:h=>r("update:name",h)}),c=h=>{r("update:quantity",h)},f=be(()=>{if(o.value===0)return n.tags;const m=Math.floor(o.value/120);return n.tags.slice(0,Math.max(1,m))}),u=be(()=>Math.max(0,n.tags.length-f.value.length)),g=()=>{if(i.value){const h=i.value,m=80,d=120,v=32,_=64;o.value=h.offsetWidth-m-d-v-_}};return wn(()=>{Ut(()=>{g()})}),St(()=>n.tags,()=>{Ut(()=>{g()})},{deep:!0}),wn(()=>{window.addEventListener("resize",g)}),(h,m)=>(X(),ne("div",{ref_key:"containerRef",ref:i,class:Ie(["ect-w-full ect-rounded-md ect-border-1 ect-transition-colors ect-relative",s.value]),"data-test-id":`configurator-item-${e.item.itemId}`,"data-publish-key":e.item.publishKey},[e.item.relationshipInfo.relationship==="Kit"?(X(),ne("div",Rh," KIT ")):ye("",!0),e.size===1?(X(),ne("div",Mh,[e.showImage?(X(),ne("div",qh,[e.imageUrl?(X(),ne("img",{key:0,src:e.imageUrl,alt:p.value,class:"ect-w-full ect-h-full ect-object-cover"},null,8,jh)):(X(),Te(Ge,{key:1,disabled:"",icon:"image",symbol:"",size:20,color:"#ACACAC"}))])):ye("",!0),b("div",Dh,[b("div",Bh,[_e(wa,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=d=>p.value=d),tag:"h3",class:"ect-text-sm ect-font-semibold ect-text-gray-900 ect-leading-tight"},null,8,["modelValue"]),b("div",$h,[b("div",{onClick:m[2]||(m[2]=Tt(()=>{},["stop"]))},[_e(zi,{value:l.value,"onUpdate:value":m[1]||(m[1]=d=>l.value=d),min:e.minQuantity,max:e.maxQuantity,"data-test-id":`configurator-item-counter-${e.item.itemId}`,onChange:c},null,8,["value","min","max","data-test-id"])]),Fh,b("div",Vh,[_e(wa,{modelValue:a.value.price,"onUpdate:modelValue":m[3]||(m[3]=d=>a.value.price=d),tag:"p",type:"currency",class:"ect-text-base ect-font-bold"},null,8,["modelValue"])]),b("div",Hh,[Ze(h.$slots,"selection-control")])])]),b("p",{class:"ect-mt-2 ect-text-sm ect-text-gray-700 ect-leading-tight",innerHTML:e.description},null,8,Uh),e.isAttributes&&e.showAttributes&&e.selected?(X(),ne("div",zh,[a.value.getTags().length>0?(X(),ne(Oe,{key:0},[(X(!0),ne(Oe,null,ze(f.value,(d,v)=>(X(),ne("span",{key:v,class:"ect-inline-block"},[_e(Zt,{label:d.label,value:d.value},null,8,["label","value"])]))),128)),u.value>0?(X(),ne("button",{key:0,type:"button",class:"ect-text-xs ect-text-gray-700 ect-border ect-border-gray-300 ect-rounded-md ect-px-2 ect-py-0.5","data-test-id":`configurator-item-button-more-tags-${e.item.itemId}`,onClick:m[4]||(m[4]=Tt(()=>{},["stop"]))}," +"+ve(u.value)+" more ",9,Kh)):ye("",!0),e.selected?(X(),ne("button",{key:1,"data-test-id":`configurator-item-button-edit-attributes-${e.item.itemId}`,onClick:m[5]||(m[5]=d=>r("edit-attributes"))},[_e(Zt,{label:"Edit attributes","edit-button":""})],8,Zh)):ye("",!0)],64)):(X(),ne("span",Qh,[b("button",{"data-test-id":"configurator-info-button-add-attributes",onClick:m[6]||(m[6]=d=>r("edit-attributes"))},[_e(Zt,{label:"Add attributes","add-button":""})])]))])):ye("",!0)])])):(X(),ne("div",Xh,[b("div",Jh,[b("div",Wh,[e.imageUrl?(X(),ne("img",{key:0,src:e.imageUrl,alt:e.name,class:"ect-w-full ect-h-full ect-object-cover"},null,8,Gh)):ye("",!0)]),b("div",Yh,[b("h3",e9,ve(e.name),1),b("p",t9,ve(e.description),1)]),b("div",n9,[Ze(h.$slots,"selection-control")])]),e.isAttributes&&e.showAttributes&&e.selected?(X(),ne("div",r9,[a.value.getTags().length>0?(X(),ne(Oe,{key:0},[(X(!0),ne(Oe,null,ze(f.value,(d,v)=>(X(),ne("span",{key:v,class:"ect-inline-block"},[_e(Zt,{label:d.label,value:d.value},null,8,["label","value"])]))),128)),u.value>0?(X(),ne("button",{key:0,type:"button",class:"ect-text-xs ect-text-gray-700 ect-border ect-border-gray-300 ect-rounded-md ect-px-2 ect-py-0.5","data-test-id":`configurator-item-button-more-tags-${e.item.itemId}`,onClick:m[7]||(m[7]=Tt(()=>{},["stop"]))}," +"+ve(u.value)+" more ",9,i9)):ye("",!0),e.selected?(X(),ne("button",{key:1,class:"ect-ml-auto","data-test-id":`configurator-item-button-edit-attributes-${e.item.itemId}`,onClick:m[8]||(m[8]=d=>r("edit-attributes"))},[_e(Zt,{label:"Edit attributes","edit-button":""})],8,o9)):ye("",!0)],64)):(X(),ne("span",a9,[b("button",{"data-test-id":"configurator-info-button-add-attributes",onClick:m[9]||(m[9]=d=>r("edit-attributes"))},[_e(Zt,{label:"Add attributes","add-button":""})])]))])):ye("",!0),b("div",s9,[b("div",{onClick:m[11]||(m[11]=Tt(()=>{},["stop"]))},[_e(zi,{value:l.value,"onUpdate:value":m[10]||(m[10]=d=>l.value=d),min:e.minQuantity,max:e.maxQuantity,"data-test-id":`configurator-item-counter-${e.item.itemId}`,onChange:c},null,8,["value","min","max","data-test-id"])]),b("div",l9,[c9,_e(wa,{modelValue:a.value.price,"onUpdate:modelValue":m[12]||(m[12]=d=>a.value.price=d),tag:"p",type:"currency",class:"ect-w-[125px] ect-text-base ect-font-bold"},null,8,["modelValue"])])])])),e.selected&&e.isAttributes?(X(),ne("div",u9,[Ze(h.$slots,"default")])):ye("",!0)],10,Lh))}},d9={"af-ZA":",","sq-AL":",","ar-DZ":",","ar-BH":"٫","ar-EG":"٫","ar-IQ":"٫","ar-JO":"٫","ar-KW":"٫","ar-LB":"٫","ar-LY":",","ar-MA":",","ar-OM":"٫","ar-QA":"٫","ar-SA":"٫","ar-SD":"٫","ar-SY":"٫","ar-TN":",","ar-AE":"٫","ar-YE":"٫","hy-AM":",","az-AZ":",","bn-BD":".","bn-IN":".","eu-ES":",","be-BY":",","bs-BA":",","bg-BG":",","my-MM":".","ca-ES":",","ca-ES-EURO":",","zh-CN":".","zh-CN-PINYIN":".","zh-CN-STROKE":".","zh-HK":".","zh-HK-STROKE":".","zh-MO":".","zh-SG":".","zh-TW":".","zh-TW-STROKE":".","hr-HR":",","cs-CZ":",","da-DK":",","nl-AW":",","nl-BE":",","nl-NL":",","nl-SR":",","dz-BT":".","en-AG":".","en-AU":".","en-BS":".","en-BB":".","en-BZ":".","en-BM":".","en-BW":".","en-CM":".","en-CA":".","en-DE":",","en-KY":".","en-ER":".","en-FK":".","en-FJ":".","en-GM":".","en-GH":".","en-GI":".","en-GY":".","en-HK":".","en-IN":".","en-ID":".","en-IE":".","en-IE-EURO":".","en-JM":".","en-KE":".","en-LR":".","en-MG":".","en-MW":".","en-MY":".","en-MU":".","en-NA":".","en-NZ":".","en-NG":".","en-PK":".","en-PG":".","en-PH":".","en-RW":".","en-WS":".","en-SC":".","en-SL":".","en-SG":".","en-SX":".","en-SB":".","en-ZA":",","en-SH":".","en-SZ":".","en-TZ":".","en-TO":".","en-TT":".","en-UG":".","en-GB":".","en-US":".","en-VU":".","et-EE":",","fi-FI":",","fi-FI-EURO":",","fr-BE":",","fr-CA":",","fr-KM":",","fr-FR":",","fr-FR-EURO":",","fr-GN":",","fr-HT":",","fr-LU":",","fr-MR":",","fr-MC":",","fr-CH":",","fr-WF":",","ka-GE":",","de-AT":",","de-AT-EURO":",","de-BE":",","de-DE":",","de-DE-EURO":",","de-LU":",","de-LU-EURO":",","de-CH":".","el-GR":",","gu-IN":".","iw-IL":".","hi-IN":".","hu-HU":",","is-IS":",","in-ID":",","ga-IE":".","it-IT":",","it-CH":".","ja-JP":".","kn-IN":".","kk-KZ":",","km-KH":",","ko-KP":".","ko-KR":".","ky-KG":",","lo-LA":",","lv-LV":",","lt-LT":",","lu-CD":",","lb-LU":",","mk-MK":",","ms-BN":",","ms-MY":".","ml-IN":".","mt-MT":".","mi-NZ":".","mr-IN":".","ne-NP":".","no-NO":",","ps-AF":"٫","fa-IR":"٫","pl-PL":",","pt-AO":",","pt-BR":",","pt-CV":",","pt-MZ":",","pt-PT":",","pt-ST":",","ro-MD":",","ro-RO":",","rm-CH":".","rn-BI":",","ru-KZ":",","ru-RU":",","sr-BA":",","sr-RS":",","sh-BA":",","sh-ME":",","sh-ME-USD":",","sh-CS":",","sk-SK":",","sl-SI":",","so-DJ":".","so-SO":".","es-AR":",","es-BO":",","es-CL":",","es-CO":",","es-CR":",","es-CU":".","es-DO":".","es-EC":",","es-SV":".","es-GT":".","es-HN":".","es-MX":".","es-NI":".","es-PA":".","es-PY":",","es-PE":".","es-PR":".","es-ES":",","es-ES-EURO":",","es-US":".","es-UY":",","es-VE":",","sw-KE":".","sv-SE":",","tl-PH":".","tg-TJ":",","ta-IN":".","ta-LK":".","te-IN":".","th-TH":".","ti-ET":".","tr-TR":",","uk-UA":",","ur-PK":".","uz-LATN-UZ":",","vi-VN":",","cy-GB":".","xh-ZA":".","yo-BJ":".","zu-ZA":"."},h9={name:"CustomInput",components:{AppIcon:Ge},props:{editMode:{type:Boolean,default:!0},type:{type:String,default:"text"},max:{type:Number,default:500},label:{type:String,default:""},name:{type:String,default:""},showLabel:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},highlight:{type:Boolean,default:!1},placeholder:{type:String,default:""},error:{type:[Boolean,String],default:!1},cssClass:{type:Object,default:()=>({})},tooltip:{type:String,default:null},locale:{type:String,default:"en-US"},icon:{type:String,default:null},itooltip:{type:String,default:null},icolor:{type:String,default:"#7d7d7d"},ihover:{type:String,default:"#57c046"},icustom:{type:Boolean,default:!1},idisabled:{type:Boolean,default:!1},height:{type:Number,default:32},textAlignment:{type:String,default:"left"},decimalPrecision:{type:Number,default:0},allowNegatives:{type:Boolean,default:!1},size:{type:String,default:"medium"},dataTestId:{type:String,required:!0}},emits:["update:modelValue","iclick","blur"],data(){return{initialValue:"",decimalSeprator:".",ctrl:!1}},computed:{getValue(){return this.modelValue?this.type==="currency"?String(this.modelValue).replace(".",this.decimalSeprator):String(this.modelValue):""},error_message(){return typeof this.error=="string"?this.error:this.error===""?!1:this.error===!0?`${this.label||"Field"} is required`:this.error},isHighlight(){return(this.initialValue===""||this.initialValue===null)&&(this.modelValue===""||this.modelValue===null)?!1:this.initialValue!==this.modelValue}},created(){this.initialValue=this.modelValue,this.decimalSeprator=this.type==="currency"?d9[this.locale]:"."},methods:{handlerInput(e){const t=e.target.value;this.type==="currency"?this.$emit("update:modelValue",t.replace(this.decimalSeprator,".")):this.$emit("update:modelValue",t)},preventNonNumeric(e){if(this.type==="number"){const t=this.decimalPrecision,n=e.target.value,r=e.key;if(["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(r)||this.allowNegatives&&r==="-")return;if(r==="."&&t===0){e.preventDefault();return}if(r==="."&&n.includes(".")){e.preventDefault();return}if(r==="."||n.includes(".")&&!n.endsWith(".")&&r!=="Backspace"){const i=n.split(".");if(i.length>1&&i[1].length>=t){e.preventDefault();return}}if(isNaN(r)&&![".","Backspace","Tab"].includes(r)){e.preventDefault();return}}if(e.key==="Backspace"||this.ctrl)return!0;if(e.key==="Control"&&(this.ctrl=!0),this.type==="currency"||this.type==="number"){if(!this.getValue.includes(this.decimalSeprator)&&e.key===this.decimalSeprator)return!0;/[\deE+\-]/.test(e.key)||e.preventDefault()}return!0},handlerKeyup(e){e.key==="Control"&&(this.ctrl=!1)}}},p9=["data-test-id"],g9=["for","data-test-id"],m9=["data-test-id"],v9=["id","type","name","disabled","placeholder","value","maxlength","readonly","data-test-id"],y9=["data-test-id"],_9=["data-test-id"];function b9(e,t,n,r,i,o){const a=Or("AppIcon");return X(),ne("div",{class:"input","data-test-id":n.dataTestId},[n.label&&n.showLabel?(X(),ne("label",{key:0,class:Ie({error_color:!!n.error}),for:n.label,"data-test-id":`${n.dataTestId}-label`},[Fe(ve(n.label)+" ",1),n.required?(X(),ne("span",{key:0,class:Ie({error_color:!!n.error})},"*",2)):ye("",!0)],10,g9)):ye("",!0),n.editMode?(X(),ne("div",{key:1,class:Ie(["input-wrapper ect-w-full",{errorBorder_color:!!n.error,highlight:o.isHighlight&&n.highlight}]),"data-test-id":`${n.dataTestId}-wrapper`},[n.icon?(X(),Te(a,{key:0,class:"input-wrapper_icon",icon:n.icon,hover:n.ihover,color:n.icolor,size:19,disabled:n.idisabled,custom:n.icustom,tooltip:n.itooltip,"data-test-id":`${n.dataTestId}-icon`,direction:"top-right",onClick:t[0]||(t[0]=s=>e.$emit("iclick"))},null,8,["icon","hover","color","disabled","custom","tooltip","data-test-id"])):ye("",!0),b("input",{id:n.label,class:Ie(`ectheme-input-box ${n.size}`),type:n.type,style:tt({width:n.icon?"calc(100% - 36px)":"100%",height:`${n.height}px`,textAlign:n.textAlignment}),name:n.name,disabled:n.disabled,placeholder:n.placeholder,value:o.getValue,maxlength:n.max,readonly:n.isReadOnly,"data-test-id":`${n.dataTestId}-input`,onInput:t[1]||(t[1]=(...s)=>o.handlerInput&&o.handlerInput(...s)),onKeydown:t[2]||(t[2]=(...s)=>o.preventNonNumeric&&o.preventNonNumeric(...s)),onKeyup:t[3]||(t[3]=(...s)=>o.handlerKeyup&&o.handlerKeyup(...s)),onBlur:t[4]||(t[4]=s=>e.$emit("blur"))},null,46,v9)],10,m9)):ye("",!0),n.editMode?ye("",!0):(X(),ne("p",{key:2,class:"value","data-test-id":`${n.dataTestId}-value`},ve(o.getValue),9,y9)),o.error_message?(X(),ne("div",{key:3,class:"error_tooltip error_tooltip-bottom-right","data-test-id":`${n.dataTestId}-error`},ve(o.error_message),9,_9)):ye("",!0)],8,p9)}const C9=Ve(h9,[["render",b9],["__scopeId","data-v-032ca141"]]),w9={name:"AtomSpinner",props:{dataTestId:{type:String,default:""}}},x9=["data-test-id"];function k9(e,t,n,r,i,o){return X(),ne("div",{class:"spinner","data-test-id":n.dataTestId},null,8,x9)}const E9={name:"CustomDropdown",components:{AppIcon:Ge,AtomSpinner:Ve(w9,[["render",k9],["__scopeId","data-v-771ed032"]])},props:{label:{type:String,default:""},placeholder:{type:String,default:""},options:{type:Array,default:()=>[]},display:{type:Array,default:()=>[]},modelValue:{type:String,default:""},error:{type:[Boolean,String],default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},select:{type:Boolean,default:!1},lookup:{type:Boolean,default:!1},search:{type:Boolean,default:!1},badge:{type:String,default:void 0},highlight:{type:Boolean,default:!1},property:{type:Object,default:()=>({key:"value",value:"label",assigned:"assigned"})},dropdownTheme:{type:String,default:"light"},icon:{type:String,default:""},size:{type:String,default:"medium"},dataTestId:{type:String,required:!0}},emits:["search","focus-in","focus-out","update:modelValue"],data:()=>({inputFocused:!1,value:"",isHover:!1,highlightedIndex:-1,initialValue:"",teleportStyle:{position:"absolute",top:"0px",left:"0px",width:"0px"}}),computed:{isHighlight(){return(this.initialValue===""||this.initialValue==null)&&(this.modelValue===""||this.modelValue==null)?!1:this.initialValue!==this.modelValue},error_message(){return this.error===""?!1:this.error===!0?`${this.label||"Field"} is required`:this.error},getOptions(){if(this.select&&this.search){const e=this.value.toLowerCase();return this.options.filter(t=>JSON.stringify(t).toLowerCase().includes(e))}else return this.options},getSelected(){let e=null;if(this.modelValue)e=this.options.find(t=>t[this.property.key]===this.modelValue);else if(!this.search){const t=this.options.find(n=>n[this.property.key]==="");t?e=t:this.placeholder?e={[this.property.value]:this.placeholder,[this.property.key]:""}:e={[this.property.value]:"--Select--",[this.property.key]:""}}return e||{[this.property.value]:this.placeholder||"--Select--",[this.property.key]:""}},shouldShowAbove(){if(!this.$refs.triggerElement)return!1;const e=this.$refs.triggerElement.getBoundingClientRect(),t=250,n=window.innerHeight-e.bottom,r=e.top;return n<t&&r>t},dropdownStyle(){if(!this.$refs.triggerElement)return{};const e=this.$refs.triggerElement.getBoundingClientRect(),t=250,n=window.innerHeight-e.bottom,r=e.top,i=n<t&&r>t;return{position:"absolute",top:i?"auto":"100%",bottom:i?"100%":"auto",left:"0",width:"100%",zIndex:1e3}}},created(){this.initialValue=this.modelValue},mounted(){window.addEventListener("resize",this.updateDropdownPosition),window.addEventListener("scroll",this.updateDropdownPosition,!0)},beforeUnmount(){window.removeEventListener("resize",this.updateDropdownPosition),window.removeEventListener("scroll",this.updateDropdownPosition,!0)},methods:{updateDropdownPosition(){if(!this.$refs.triggerElement)return;const e=this.$refs.triggerElement.getBoundingClientRect(),t=200,n=window.innerHeight-e.bottom,r=e.top,i=n<t&&r>t;this.teleportStyle={position:"absolute",top:`${i?e.top-t:e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:9999}},subFieldsText(e){if(!this.display||this.display.length<1)return"";const t=[];return this.display.forEach(n=>{const r=this.subField(e,n);r&&t.push(r)}),t.join(" | ")},subField(e,t){return t?t.split(".").reduce((i,o)=>i[o]||"",e):e},lookupSearchHandler:bc(function(e){this.value=e,this.search&&!this.select&&this.$emit("search",e)}),handlerFocusIn(){!(this.modelValue&&this.search)&&!this.disabled&&(this.inputFocused=!0,this.updateDropdownPosition(),this.$emit("focus-in"))},updateSelected(e){e&&(this.value="",this.$emit("update:modelValue",e[this.property.key]),this.search&&!this.select&&!this.lookup&&this.$emit("search",""),this.onInputFocusedOut(!0))},clear(){this.disabled||(this.value="",this.$emit("update:modelValue",null),this.search&&!this.select&&!this.lookup&&this.$emit("search",""))},onInputFocusedOut(e=!1){(!this.isHover||e)&&!this.disabled&&(e?(this.highlightedIndex=-1,this.inputFocused=!1,this.$emit("focus-out")):setTimeout(()=>{this.highlightedIndex=-1,this.inputFocused=!1,this.$emit("focus-out")},100))},highlightNextOption(){this.highlightedIndex<this.options.length-1&&this.highlightedIndex++},highlightPreviousOption(){this.highlightedIndex>0&&this.highlightedIndex--}}},O9=["data-test-id"],S9=["for","data-test-id"],I9={class:"input-container-box ect-grow ect-w-full"},A9=["data-test-id"],T9=["placeholder","disabled","data-test-id"],N9=["data-test-id"],P9=["title","data-test-id"],L9=["data-test-id"],R9=["data-test-id"],M9=["data-test-id"],q9=["data-test-id"],j9=["data-test-id","onClick"],D9=["data-test-id"],B9={class:"ect-text-font-clr-light ect-flex ect-gap-2 ect-items-center ect-justify-between ect-w-full"},$9=["data-test-id"],F9=["data-test-id"],V9=["data-test-id"],H9=["title","data-test-id"],U9=["data-test-id"];function z9(e,t,n,r,i,o){const a=Or("AppIcon"),s=Or("AtomSpinner");return X(),ne("div",{ref:"dropdownWrapper",class:Ie(["customdropdown input-container",{dark:n.dropdownTheme==="dark"}]),"data-test-id":n.dataTestId,onMouseenter:t[7]||(t[7]=l=>e.isHover=!0),onMouseleave:t[8]||(t[8]=l=>e.isHover=!1)},[n.label?(X(),ne("label",{key:0,class:Ie(["title_label",{error_color:!!n.error}]),for:n.label,"data-test-id":`${n.dataTestId}-label`},[Fe(ve(n.label)+" ",1),n.required?(X(),ne("span",{key:0,class:Ie({error_color:!!n.error})},"*",2)):ye("",!0)],10,S9)):ye("",!0),b("div",I9,[b("div",{ref:"triggerElement",class:Ie(["input-wrapper ectheme-input-box ect-w-full",{disabled:n.disabled,"input-error":n.error,highlight:o.isHighlight&&n.highlight,"size-large":n.size==="large","size-medium":n.size==="medium"||n.size==="small"}]),"data-test-id":`${n.dataTestId}-trigger`,tabindex:"0",onFocusin:t[2]||(t[2]=(...l)=>o.handlerFocusIn&&o.handlerFocusIn(...l)),onFocusout:t[3]||(t[3]=l=>o.onInputFocusedOut(!1)),onKeydown:[t[4]||(t[4]=qr(l=>o.updateSelected(n.options[e.highlightedIndex]),["enter"])),t[5]||(t[5]=qr(Tt((...l)=>o.highlightPreviousOption&&o.highlightPreviousOption(...l),["prevent"]),["up"])),t[6]||(t[6]=qr(Tt((...l)=>o.highlightNextOption&&o.highlightNextOption(...l),["prevent"]),["down"]))]},[!n.modelValue&&n.search?bn((X(),ne("input",{key:0,ref:"searchInput","onUpdate:modelValue":t[0]||(t[0]=l=>e.value=l),type:"text",name:"search",placeholder:n.placeholder,autocomplete:"off",disabled:n.disabled,"data-test-id":`${n.dataTestId}-search-input`,onInput:t[1]||(t[1]=Tt(l=>o.lookupSearchHandler(l.target.value),["prevent"]))},null,40,T9)),[[Di,e.value]]):(X(),ne("div",{key:1,class:Ie(["selection-name ect-text-text-primary-dark ect-flex ect-justify-between ect-items-center",{"size-large":n.size==="large","size-medium":n.size==="medium"||n.size==="small"}]),"data-test-id":`${n.dataTestId}-selection`},[o.getSelected?(X(),ne(Oe,{key:0},[b("span",{title:o.getSelected[n.property.value],class:Ie(["ect-flex ect-items-center ect-gap-2 ect-font-medium",{"ect-text-font-clr-light":!n.modelValue}]),"data-test-id":`${n.dataTestId}-selection-value`},[n.icon?(X(),Te(a,{key:0,class:"ect-mr-0",icon:n.icon,size:14,color:"#5F5F5F","data-test-id":`${n.dataTestId}-selection-icon`},null,8,["icon","data-test-id"])):ye("",!0),Fe(" "+ve(o.getSelected[n.property.value]),1)],10,P9),n.badge&&o.getSelected[n.badge]?(X(),ne("span",{key:0,class:"badge ect-bg-btn ect-rounded-[5px] ect-py-[2px] ect-px-[10px] ect-text-white","data-test-id":`${n.dataTestId}-selection-badge`},ve(o.getSelected[n.badge]),9,L9)):ye("",!0)],64)):ye("",!0)],10,N9)),n.search?(X(),ne(Oe,{key:2},[n.loading?(X(),Te(s,{key:0,class:"spinner","data-test-id":`${n.dataTestId}-loading-spinner`},null,8,["data-test-id"])):(X(),ne("div",{key:1,class:"clear-button","data-test-id":`${n.dataTestId}-action-button`},[e.value||n.modelValue?(X(),Te(a,{key:0,disabled:n.disabled,icon:"close",color:"#acacac",size:10,"data-test-id":`${n.dataTestId}-clear-button`,onClick:o.clear},null,8,["disabled","data-test-id","onClick"])):(X(),Te(a,{key:1,icon:"search",size:14,color:"#acacac",disabled:n.disabled,"data-test-id":`${n.dataTestId}-search-button`},null,8,["disabled","data-test-id"]))],8,R9))],64)):(X(),Te(a,{key:3,class:"clear-button",color:o.error_message?"#ff6a6a":"#acacac",icon:"arrow_drop_up",size:12,disabled:n.disabled,"data-test-id":`${n.dataTestId}-dropdown-arrow`},null,8,["color","disabled","data-test-id"]))],42,A9),o.error_message?(X(),ne("div",{key:0,class:"error_tooltip error_tooltip-bottom-right","data-test-id":`${n.dataTestId}-error`},ve(o.error_message),9,M9)):ye("",!0),o.getOptions&&e.inputFocused&&!n.disabled&&(n.select||n.lookup)?(X(),ne("div",{key:1,ref:"dropdown",class:Ie(["dropdown",{"dropdown-above":o.shouldShowAbove}]),style:tt(o.dropdownStyle),"data-test-id":`${n.dataTestId}-dropdown`},[(X(!0),ne(Oe,null,ze(o.getOptions,(l,p)=>(X(),ne("div",{key:l[n.property.key],class:Ie(["dropdown-item",{highlighted:p===e.highlightedIndex,"ect-pointer-events-none":l[n.property.assigned]}]),"data-test-id":`${n.dataTestId}-option-${p}`,onClick:c=>o.updateSelected(l)},[b("div",{class:"name ect-items-center","data-test-id":`${n.dataTestId}-option-${p}-name`},[b("span",B9,[b("span",{class:Ie({"ect-text-zinc-400":l[n.property.assigned]}),"data-test-id":`${n.dataTestId}-option-${p}-value`},ve(l[n.property.value]==null?"Key and Value is Wrong":l[n.property.value]),11,$9),l[n.property.assigned]?(X(),ne("span",{key:0,class:"ect-text-xs ect-leading-4 ect-text-zinc-600","data-test-id":`${n.dataTestId}-option-${p}-assigned`},"Assigned",8,F9)):ye("",!0)]),n.badge?(X(),ne("span",{key:0,class:"badge ect-bg-btn ect-rounded-[5px] ect-py-[2px] ect-px-[10px] ect-text-white","data-test-id":`${n.dataTestId}-option-${p}-badge`},ve(l[n.badge]),9,V9)):ye("",!0)],8,D9),b("div",{class:"info",title:o.subFieldsText(l),"data-test-id":`${n.dataTestId}-option-${p}-info`},[b("span",null,ve(o.subFieldsText(l)),1)],8,H9)],10,j9))),128)),!o.getOptions.length&&!n.loading&&(e.value||n.select)?(X(),ne("div",{key:0,class:"no-items-found","data-test-id":`${n.dataTestId}-no-options`}," no options found ",8,U9)):ye("",!0)],14,q9)):ye("",!0)])],42,O9)}const Tc=Ve(E9,[["render",z9],["__scopeId","data-v-5ae4f6dc"]]);var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pc={exports:{}};/*!
28
+ */var Ec;(function(e){e.pop="pop",e.push="push"})(Ec||(Ec={}));var Oc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oc||(Oc={}));var Sc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Sc||(Sc={}));const H0=Symbol(""),U0=Symbol("");function Vi(){return xn(H0)}function ba(){return xn(U0)}function bt(e){if(typeof e=="string"&&(e=JSON.parse(e)),e!=null&&e.errorMessage)throw new Error(e==null?void 0:e.errorMessage);return e}const Ca={xx_ord1__item__c:"xx_ord1__item__c",xx_ord1__sales_price__c:"xx_ord1__negotiated_price__c",xx_ord1__nrc__c:"xx_ord1__nrc_for_new__c",xx_ord1__line_description__c:"xx_ord1__line_description__c",xx_ord1__list_price__c:"xx_ord1__list_price2__c",xx_ord1__cost__c:"xx_ord1__cost2__c",xx_ord1__rate_plan__c:"xx_ord1__rate_plan__c",xx_ord1__allowed_discount__c:"xx_ord1__allowed_discount__c",xx_ord1__billing_period__c:"xx_ord1__billing_period__c",xx_ord1__ship_to_account__c:"xx_ord1__ship_to_account__c",xx_ord1__erp_item_number__c:"xx_ord1__erp_item_number__c",xx_ord1__mrc__c:"xx_ord1__mrc__c",xx_ord1__qty__c:"xx_ord1__qty__c",id:"id"},Ic={xx_ord1__item__c:"xx_ord1__item__c",xx_ord1__negotiated_price__c:"xx_ord1__sales_price__c",xx_ord1__nrc_for_new__c:"xx_ord1__nrc__c",xx_ord1__line_description__c:"xx_ord1__line_description__c",xx_ord1__list_price2__c:"xx_ord1__list_price__c",xx_ord1__cost2__c:"xx_ord1__cost__c",xx_ord1__rate_plan__c:"xx_ord1__rate_plan__c",xx_ord1__allowed_discount__c:"xx_ord1__allowed_discount__c",xx_ord1__billing_period__c:"xx_ord1__billing_period__c",xx_ord1__ship_to_account__c:"xx_ord1__ship_to_account__c",xx_ord1__erp_item_number__c:"xx_ord1__erp_item_number__c",xx_ord1__mrc__c:"xx_ord1__mrc__c",xx_ord1__qty__c:"xx_ord1__qty__c",id:"id"},z0=e=>{var n;let t=[];for(let r of e)if(r.trim()!=="xx_ord1__item__r.xx_ord1__decimal_precision__c")if(r.includes(".")){let o=r.split(".")[0];o=o.slice(0,-1)+"c";const a=((n=Ca[o==null?void 0:o.toLowerCase()])==null?void 0:n.trim())||"";a&&(t.includes(a)||t.push(a||""),t.push(r))}else t.includes(Ca[r==null?void 0:r.toLowerCase()])||t.push(Ca[r==null?void 0:r.toLowerCase()]||"");return t.filter(r=>r!=="")},K0=Rt("actions",()=>{const e=Ui(),t=An(),n=ae(!1);return{openAdaptiveSearch:(s,l=!1)=>{console.info("openAdaptiveSearch",s),e.chatHistory[e.chatHistory.length-1].links=[],e.sendMessage("Open Adaptive Search",!1,{internalCall:!0}),n.value=l},openQuoteItem:s=>{console.info("openQuoteItem",s),e.chatHistory[e.chatHistory.length-1].links=[],e.sendMessage("Open Quote Item",!1,{internalCall:!0})},openQuoteDocument:s=>{console.info("openQuoteDocument",s),e.chatHistory[e.chatHistory.length-1].links=[],e.chatHistory.push({type:"response",message:"Opening quote document",loading:!0});const p=`/apex/XX_ORD1__Expedite_Commerce?scpq=true&oid=${t.quoteId}&atpverified=true&ecCache=false&origin=AI`;window.location.href=`${i0(window.location.href)}${p}`},undo:()=>{const s=e==null?void 0:e.latestDMLRequest;e.sendMessage(`UNDO-${s}`,!1,{internalCall:!0})},isStaticActionCall:n}}),Ac=Rt("adaptiveSearch",()=>{const e=An(),t=ar(),n=Ui(),r=K0(),i=ae(null),o=ae(null),a=ae(!1),s=ae(!1),l=ae([]),p=ae(""),c=ae(!1),f=ae(null),u=ae(!1),g=ae([]),h=an(),m=ae([]),d=ae(0),v=ae(!1),_=ae({rowLimt:10,paging:!0,offset:0,currentPage:1,totalPages:1});async function C(){a.value=!0;try{const O=JSON.stringify({layoutType:"Search Selection",layoutObject:"xx_ord1__ecatalog_item__c"});let P={};return P=await window.salesforceConnector.getDynamicPageLayout(O),o.value=xc(P,"Unable to find the Search Selection Layout for your user profile"),_.value.rowLimt=o.value.configuration.rowLimit||10,o.value.configuration.columns.forEach(M=>{!M.field&&M.label==="QTY"&&(M.field="xx_ord1__qty__c")}),a.value=!1,y(),P}catch(O){a.value=!1,h.handleError("Failed to get Adaptive Search Layout. Please try again."),console.info("[ERROR]: getAdaptiveSearchLayout() error = ",O)}}function y(){var O,P,M;f.value=(M=(P=(O=o.value)==null?void 0:O.configuration)==null?void 0:P.dynamicFilters)==null?void 0:M.filters.map(Z=>({...Z,field:Z.field.toLowerCase(),filtervalue:Z.filtervalue||[],filtervaluefrom:Z.filtervaluefrom||"",filtervalueTo:Z.filtervalueTo||""}))}function w(){var P;let O=[];for(const M of o.value.configuration.columns){let Z=M.field;if(O.includes(Z)||O.push(Z),Z!=null&&Z.includes(".")){let B=Z.split(".")[0];B=B.slice(0,-1)+"c",O.includes(B)||O.push(B)}}return(P=o.value.configuration)!=null&&P.cardHeader&&O.push(o.value.configuration.cardHeader.imageField),o.value.configuration.objectName.toLowerCase()==="xx_ord1__ecatalog_item__c"&&O.push("xx_ord1__item__r.xx_ord1__decimal_precision__c"),O=O.filter(M=>!!M),O.filter(M=>M.toLowerCase()!=="xx_ord1__qty__c"&&M.toLowerCase()!=="xx_ord1__competitor_sku__c")}function A(O,P=!1){if(!O||O.includes("undefined"))return!1;const M=/[!@#$%^&*()+=[\]{};':"\\|.<>/?]+/;if(P){const Z=Array.isArray(O)?O:O.split(",");for(const Q of Z){const B=Q.trim();if(M.test(B))return h.handleError(`Invalid character found in value: ${B}`),!1}}else if(M.test(O))return h.handleError("Special characters are not allowed in filter values"),!1;return!0}function I(O,P){return{field:O.field,operator:O.operator||"contains",value:P,dataType:O.dataType.trim()}}function S(O){if(!O.filtervalue)return null;const P=Array.isArray(O.filtervalue),M=P?O.filtervalue.join(","):O.filtervalue.trim();return A(M,P)?M:null}function N(O){var Q,B;const P=(Q=O.filtervaluefrom)==null?void 0:Q.trim(),M=(B=O.filtervalueTo)==null?void 0:B.trim();if(!P||!M)return null;const Z=`${P}, ${M}`;return Z!==", "&&A(Z)?Z:null}function T(O){const P=`${wc(O.filtervaluefrom)}, ${wc(O.filtervalueTo)}`;return P!==", "&&A(P)?P:null}function k(O){var M;const P=(M=O.filtervaluefrom)==null?void 0:M.trim();return A(P)?P:null}function E(O){const P=[];return O.forEach(M=>{const Z=M.dataType.trim();let Q=null;switch(Z){case"PICKLIST":case"MULTIPICKLIST":Q=S(M);break;case"DOUBLE":case"CURRENCY":Q=N(M);break;case"DATETIME":case"DATE":Q=T(M);break;default:Q=k(M)}Q&&P.push(I(M,Q))}),g.value=P,P}async function L(O="",P=[],M=[]){var Q,B,U,D,q,$,H,J,R,z;let Z=[];if(P.length&&(Z=E(P)),!Z.length&&O.trim()===""){l.value=[],c.value=!1;return}try{c.value=!1,s.value=!0;const oe=O.trim();M.length||(M=w());const ce={fields:M,...P.length?{dynamicFilters:Z}:{},searchText:oe||p.value.trim(),accountId:t.accountId,...t.eCatalogId?{catalogId:t.eCatalogId}:{},...t.objectType==="opportunity"?{opportunityId:t.id}:{},...(B=(Q=o.value)==null?void 0:Q.configuration)!=null&&B.sort?{primarySortBy:o.value.configuration.sort.primary.field,primarySortOrder:o.value.configuration.sort.primary.direction,secondarySortBy:o.value.configuration.sort.secondary.field,secondarySortOrder:o.value.configuration.sort.secondary.direction}:{},rowLimt:(D=(U=o.value)==null?void 0:U.configuration)==null?void 0:D.rowLimit,paging:($=(q=o.value)==null?void 0:q.configuration)==null?void 0:$.paging,...((H=_.value)==null?void 0:H.offset)!==0?{offset:_.value.offset}:{},objectName:(R=(J=o.value)==null?void 0:J.configuration)==null?void 0:R.objectName,currencyCode:t.currencyCode},le=await window.salesforceConnector.getItems(JSON.stringify(ce));if(le!=null&&le.errorMessage){h.handleError(le.errorMessage);return}le!=null&&le.itemCount&&(_.value.totalPages=Math.ceil((le==null?void 0:le.itemCount)/_.value.rowLimt)),l.value=$i(le.lstItems,{xx_ord1__qty__c:"1"}),(z=le.lstItems)!=null&&z.length||(c.value=!0),s.value=!1}catch(oe){h.handleError("Failed to fetch Results. Please try again."),s.value=!1,console.info("[ERROR]: Adaptive Search getItems() error = ",oe)}}async function V(O){try{u.value=!0;const P=JSON.stringify({lstQLIRequest:K(O),quoteId:e.quoteId});let M=await window.salesforceConnector.createQLI(P);typeof M=="string"&&(M=JSON.parse(M));let Z=!1;if((M==null?void 0:M.length)>0&&M.forEach(Q=>{Q.errorMessage&&(Z=!0,h.handleError(Q.errorMessage))}),u.value=!1,Z){m.value=M;const Q=m.value.reduce((B,U)=>(B[U.eCatalogItemId]=U.errorMessage,B),{});l.value=l.value.map(B=>({...B,backendError:Q[B.Id]||""}));return}return M}catch(P){h.handleError("Failed to add item to Quote. Please try again."),console.info("[ERROR]: addToQuote() error = ",P)}}function K(O){const P=[];for(const M of O)if(!M.addedToQuote&&M.id){const Z=W(M);d.value++,P.push({fields:Z,recordId:M.id,...O.length===1?{maxSequenceNumber:d.value}:{}})}return P}function W(O){const P=[],M=te();return Object.keys(O).forEach(Z=>{if(M.includes(Z)){const Q=Ic[Z.toLowerCase()];Q&&P.push({fieldname:Q,value:O[Z]})}}),P}function te(){const O=[];return o.value.configuration.columns.forEach(P=>{P.field&&!P.field.includes(".")&&P.isEditable&&P.visible&&O.push(P.field)}),O}function fe(){var P,M;const O=[];return o.value.configuration.columns.forEach(Z=>{const Q=Z.field.toLowerCase();O.includes(Q)||O.push(Q)}),(P=o.value.configuration)!=null&&P.dynamicFilters&&o.value.configuration.dynamicFilters.filters.forEach(Z=>{const Q=Z.field.toLowerCase();O.includes(Q)||O.push(Q)}),(M=o.value.configuration)!=null&&M.cardHeader&&O.push(o.value.configuration.cardHeader.imageField),O}async function ee(){var M;const O=fe(),P=((M=o.value.configuration)==null?void 0:M.saveObjectName)||o.value.configuration.objectName;if(P==="xx_ord1__ecatalog_item__c"){const Z=O.indexOf("xx_ord1__qty__c");Z>-1&&O.splice(Z,1)}await e.getFieldsData(O,P),e.fieldsData.xx_ord1__qty__c||e.getFieldsData(["xx_ord1__qty__c"],"xx_ord1__quote_line_item__c")}async function j({searchTerm:O="",filters:P=[]}={}){if(v.value=!0,O&&(p.value=O),P.length&&(g.value=P),await C()){await ee(),v.value=!1;const Z=p.value;Z&&(p.value=Z,await L(Z,e.dynamicFilters)),console.info("actionStore.isStaticActionCall = ",r.isStaticActionCall),r.isStaticActionCall&&(r.isStaticActionCall=!1,n.chatHistory[n.chatHistory.length-1]={type:"response",message:"Adaptive search is now open. Please search for the products you require and add it quote",loading:!1,links:[{action:"quoteItem",label:"Quote Item"},{action:"quoteDocument",label:"Quote Document"}]})}v.value=!1}return{selectedItem:i,AdaptiveSearchLayout:o,searchText:p,loadingAdaptiveLayout:a,getAdaptiveSearchLayout:C,getItems:L,lstItems:l,rowItemsLoading:s,noSearchRecords:c,dynamicFilters:f,setDynamicFilters:y,createQliErrors:m,addToQuote:V,addingToQuote:u,getFieldsData:ee,pagingData:_,appliedDynamicFilters:g,maxSequenceNumber:d,loadingAdaptiveSearch:v,initAdaptiveSearch:j}}),Z0="XX_ORD1__Quote__c",Q0="xxord1salespricec",Hi="xx_ord1__item__c",X0="xxord1productnrcc",J0=Rt("cartStore",()=>{const e=An(),t=Ac(),n=an(),r=ae(""),i=ae("$0"),o=ae("$0"),a=ae(null),s=ae({}),l=ae({}),p=ae({}),c=ae(""),f=ae(""),u=ae({}),g=ae(""),h=ae(""),m=ae({});async function d(){A()}async function v(){try{let N=await window.salesforceConnector.getProductCount(e.quoteId);if(N=bt(N),N!=null&&N.errorMessage){n.handleError(N.errorMessage);return}return r.value=N,N}catch{n.handleError("Failed to get Product Count. Please try again.")}}async function _(){try{let N=await window.salesforceConnector.getQuoteTotal(e.quoteId);if(N=bt(N),N!=null&&N.errorMessage){n.handleError(N.errorMessage);return}return o.value=N.monthlyTotal,i.value=N.onetimeTotal,N}catch{n.handleError("Failed to get Total Amount. Please try again.")}}async function C(N,T,k,E=""){if(!e.sectionDataMap.get(k).parentQLIs[T].removingItem){e.sectionDataMap.get(k).parentQLIs[T].removingItem=!0,h.value=N.id,await y(N.id)==="Success"&&(e.fetchAllQuoteLineItems(),E&&E(N,T,k));let V=e.sectionDataMap.get(k).parentQLIs.filter(K=>K[Hi]===N[Hi]).length;h.value="",t.lstItems.forEach(K=>{K[Hi]===N[Hi]&&(K.addedToQuote===!0&&(K.addedToQuote=!1),V===0&&(K.removedFromQuote=!0))})}}async function y(N){try{let T=await window.salesforceConnector.deleteQLI(N);if(T!=null&&T.errorMessage){n.handleError(T.errorMessage);return}return v(),_(),T}catch{n.handleError("Failed to remove Quote Item. Please try again.")}}function w(N){var E,L;const T=(E=N==null?void 0:N[X0])==null?void 0:E.match(/\.\d+/);T&&(T.value=T[0].length-1);const k=(L=N==null?void 0:N[Q0])==null?void 0:L.match(/\.\d+/);return k&&(k.value=k[0].length-1),T||k}function A(N=!0){v(),_(),N&&e.fetchTemplates(Z0).then(()=>{e.getFilteredListWithFields()})}function I(N){const T=e.sectionDataMap;for(const[,k]of T.entries())k.parentQLIs.forEach(E=>{E.id===N.id&&(k.columns.forEach(L=>{if(L.dataType==="CURRENCY"){const V=L.field.replace(/_/g,"");E[V]=S(E[V],N[L.field])}}),N!=null&&N.billingPeriodValue&&(N!=null&&N.formattedBillingPeriodValue)&&(E.formattedBillingPeriodValue=S(E.formattedBillingPeriodValue,N.billingPeriodValue)),N!=null&&N.oneTimeValue&&(N!=null&&N.formattedOneTimeValue)&&(E.formattedOneTimeValue=S(E.formattedOneTimeValue,N.oneTimeValue)))})}function S(N,T){const k=Number(T);if(isNaN(k))return N;const E=N.match(/(\d[\d,]*)(\.\d+)?/);if(!E)return N;const L=E[2]||"",V=L.length?L.length-1:0,K=k.toLocaleString("en-US",{minimumFractionDigits:V,maximumFractionDigits:V});return N.replace(E[1]+L,K)}return{initializeCart:d,loadCartState:A,productCount:r,onetimeTotal:i,monthlyTotal:o,filterCartItem:a,billingPeriodValue:c,hasOneTimeValue:f,hasBillingPeriodInList:s,oneTimeFieldAvailable:l,billingPeriodFieldAvailable:p,priceDecimalPrecision:u,cartItemUpdatingId:g,removingItemLoaderId:h,cartItemColumnsMap:m,getProductCount:v,getQuoteTotal:_,removeItem:C,removeQuoteItem:y,getDecimalPrecisionFromSalesPriceOrNRC:w,updateFormattedValues:I,formateCurrencyValue:S}}),W0=e=>[{title:"Apply Discount",subOptions:[...e.map(t=>`Apply Discount on ${t} for `),"Show Maximum discount allowed","Apply Maximum Discount Allowed",...e.map(t=>`Apply Discount on ${t} for a specific total`)]},{title:"Update Fields",subOptions:["Update the price of","Update the quantity of","Update the term start date to","Update the term end date to","Update the line description for"]},{title:"Price Ramp",subOptions:["Add a price ramp for"]}],G0={salesforceUserLocale:"en_US",chatRoomId:"00DA0000000cDUJMA2__0052G00000AHBNAQA5__a0jKb000004VSaMIAW",status:"SUCCESS",statusCode:200,requestId:"9b1d1f0a9f07aa6cdc",errorMessage:"",payload:{uiModification:{addColumn:[],removeColumn:[],filter:[],groupBy:[{sectionName:"MRC $50 and Above",filters:[{datatype:"currency",field:"XX_ORD1__MRC__c",operator:"greater or equal",value:"50"}],tableId:"4vIEgoK5CbSPrLYPbq"},{sectionName:"MRC Below $50",filters:[{datatype:"currency",field:"XX_ORD1__MRC__c",operator:"less than",value:"50"}],tableId:"BlOPCp7eLBCZ84nDT2"}],showOptions:!0}},agentResponse:{role:"agent",requestId:"9b1d1f0a9f07aa6cdc",content:"Grouped the quote items into two sections: one for MRC $50 and above, and another for MRC below $50.",error:!1,epoch:1759936160464,isDML:!1},redirectObjects:{qliId:"",itemId:"",componentName:"QuoteItem"},actionFunction:"Reload",links:[{action:"quoteDocument",label:"Quote Document"},{action:"addProducts",label:"Add Products"}]},Y0=[{label:"Line Description",field:"xx_ord1__line_description__c",isEditable:!0,dataType:"STRING"},{label:"QTY",field:"xx_ord1__qty__c",isEditable:!0,dataType:"DOUBLE"},{label:"Extended Price",field:"xx_ord1__extended_price__c",isEditable:!1,dataType:"CURRENCY"},{label:"Billing Period",field:"xx_ord1__billing_period__c",isEditable:!0,dataType:"PICKLIST",picklistValues:["Monthly","Quarterly","Yearly"]}],An=Rt("quote",()=>{const e=an(),t=J0(),n=ar(),r=ae(""),i=ae(""),o=ae(0),a=ae(""),s=ae([]),l=ae({template:!0,filteredList:!1}),p=ae(null),c=ae(new Map),f=ae({}),u=ae(!1),g=ae(!0),h=ae(!1),m=ae({text:"Hide Options",altText:"Show Options",handler:()=>{g.value=!g.value,S()},color:"#136E05",isActive:!1}),d=be(()=>{const j=Array.from(c.value.values()).map(O=>O.sectionName);return W0(j)});St(a,()=>{l.value.template||I()});function v(){const j=new Map,O=[];for(const[M,Z]of c.value.entries())j.set(M,Z.selected),O.push(Z);const P=JSON.parse(JSON.stringify(O));return P.forEach(M=>{delete M.selected;const Z=new Map,Q=[];M.lineItems.forEach(B=>{B.Selected=j.get(M.tableId).get(B.id)||!1,B.xx_ord1__parent_qli__c?(Z.has(B.xx_ord1__parent_qli__c)||Z.set(B.xx_ord1__parent_qli__c,[]),Z.get(B.xx_ord1__parent_qli__c).push(B)):Q.push(B)}),M.lineItems=Q.map(B=>({...B,options:Z.get(B.id)||[]})),delete M.loading,delete M.parentQLIs,delete M.totalValues}),{showOptions:g.value,sections:P,templateId:a.value}}async function _(j){try{let O=await window.salesforceConnector.getPrimaryQuote(j);O=bt(O),O!==void 0&&(console.info("getPrimaryQuote",JSON.stringify(O)),r.value=O.recordId,console.info("quoteId",r.value),i.value=O.name,a.value=O==null?void 0:O.templateId,o.value=(O==null?void 0:O.lineItemsCount)||0)}catch(O){e.handleError(O.message),console.info("[ERROR]: getPrimaryQuote() error = ",O)}}async function C(j){var O,P;try{l.value.template=!0;let M=await window.salesforceConnector.fetchContentTemplates(JSON.stringify({lstObjectName:[j],templateType:"Document",templateId:null,fetchOnlyDefault:!1}));M=bt(M);const Z=M==null?void 0:M.templates[j];return a.value||(a.value=(O=Z.find(Q=>Q.XX_ORD1__Default__c))==null?void 0:O.Id),a.value||(a.value=(P=Z[0])==null?void 0:P.Id),s.value=Z,l.value.template=!1,s.value}catch(M){e.handleError(M.message),console.info("[ERROR]: fetchTemplates() error = ",M)}}function y(j){if(!j)return null;const O=/\{!\$(\w+):([\w.]+)\}/,P=j.match(O);return P?{function:P[1],apiname:P[2].split(".")[1]}:null}async function w(j){try{const O={Id:r.value,XX_ORD1__Document_Template__c:j};return await window.salesforceConnector.updateQuote(JSON.stringify([O]))}catch(O){e.handleError(O.message),console.info("[ERROR]: updateQuote() error = ",O)}}async function A(){try{l.value.filteredList=!0;let j=await window.salesforceConnector.getQuoteEPageLayout();c.value.clear(),t.cartItemColumnsMap={},j=bt(j);const O=j.map(M=>({label:M.fieldLabel,field:M.fieldName.toLowerCase(),isEditable:M.isEditable,dataType:M.dataType,...M.picklistValues?{picklistValues:M.picklistValues}:{}})),P=or();return c.value.set(P,{loading:!0,lineItems:[],parentQLIs:[],columns:O,tableId:P,sectionName:"All Rows",selected:new Map,filters:[],primarysort:"XX_ORD1__Sequence__c",primarysortdesc:""}),t.cartItemColumnsMap[P]=O,m.value.isActive=!1,g.value=!0,p.value={lstCB:[{columns:O,footer:null,title:"All Rows",sectionName:"All Rows",tableId:P,filters:[],primarysort:"XX_ORD1__Sequence__c",primarysortdesc:""}]},S(),l.value.filteredList=!1,j}catch(j){e.handleError(j.message),console.info("[ERROR]: getQuoteEPageLayout() error = ",j)}}async function I(){if(s.value.length===0){A();return}try{l.value.filteredList=!0;let j=await window.salesforceConnector.getFilteredListWithFields(JSON.stringify({templateId:a.value}));w(a.value),j=bt(j),console.info("res.lstCB = ",j.lstCB);const O=j==null?void 0:j.objectFieldsMap;return c.value.clear(),t.cartItemColumnsMap={},j.lstCB=j.lstCB.map(P=>{const{fields:M,filters:Z,primarysort:Q,primarysortdesc:B}=JSON.parse(P.XX_ORD1__Block_Properties__c),U=M.map(q=>{var $;return{label:($=O[q.api])==null?void 0:$.label,field:q.api.toLowerCase(),isEditable:q.api.includes(".")?!1:O[q.api].isEditable,dataType:O[q.api].dataType,...O[q.api].picklistValues?{picklistValues:O[q.api].picklistValues}:{}}}),D=P.Id||or();return c.value.set(D,{loading:!0,lineItems:[],parentQLIs:[],columns:U,tableId:D,sectionName:P.Name,selected:new Map,footer:y(P.XX_ORD1__Table_Footer_HTML__c),filters:Z,primarysort:Q,primarysortdesc:B}),t.cartItemColumnsMap[D]=U,m.value.isActive=!1,g.value=!0,{columns:U,footer:y(P.XX_ORD1__Table_Footer_HTML__c),title:P.Name,sectionName:P.Name,tableId:D,filters:Z,primarysort:Q,primarysortdesc:B}}),p.value=j,S(),l.value.filteredList=!1,j}catch(j){e.handleError(j.message),console.info("[ERROR]: getFilteredListWithFields() error = ",j)}}async function S(j=!0){const O=[];for(const[P]of c.value)O.push(k(P,j));return await Promise.all(O),t.getProductCount(),!0}function N(j,O){return c.value.get(j).columns.some(P=>P.field.toLowerCase()===O)||t.cartItemColumnsMap[j].some(P=>P.field.toLowerCase()===O)}function T(j,O){let P=$i(j);const M=n.pricingSchema,Z=N(O,"xx_ord1__nrc__c"),Q=N(O,"xx_ord1__sales_price__c"),B=N(O,"xx_ord1__qty__c");return P=P.map(U=>{let D={};M==="nrc/mrc"&&(U!=null&&U.xx_ord1__billing_period__c)?D={...Q?{billingPeriodValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedBillingPeriodValue:U==null?void 0:U.xxord1salespricec}:{},...Z?{oneTimeValue:(U==null?void 0:U.xx_ord1__nrc__c)===0?"0":(U==null?void 0:U.xx_ord1__nrc__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1nrcc}:{}}:M==="nrc/mrc"&&!(U!=null&&U.xx_ord1__billing_period__c)?Q&&(D={oneTimeValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1salespricec}):M!=="nrc/mrc"&&(U!=null&&U.xx_ord1__billing_period__c)?Q&&(D={billingPeriodValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?"0":(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedBillingPeriodValue:U==null?void 0:U.xxord1salespricec}):M!=="nrc/mrc"&&!(U!=null&&U.xx_ord1__billing_period__c)&&Q&&(D={oneTimeValue:(U==null?void 0:U.xx_ord1__sales_price__c)===0?0:(U==null?void 0:U.xx_ord1__sales_price__c)||null,formattedOneTimeValue:U==null?void 0:U.xxord1salespricec});const{xx_ord1__qty__c:q,xx_ord1__sales_price__c:$,xx_ord1__nrc__c:H,...J}=U,R={...J,id:U.id,description:(U==null?void 0:U.xx_ord1__line_description__c)||"",xx_ord1__billing_period__c:U==null?void 0:U.xx_ord1__billing_period__c,...B?{xx_ord1__qty__c:q}:{},xx_ord1__item__c:U==null?void 0:U.xx_ord1__item__c,"xx_ord1__item__r.xx_ord1__decimal_precision__c":U["xx_ord1__item__r.xx_ord1__decimal_precision__c"]||"0",...D};return R!=null&&R.billingPeriodValue&&(t.hasBillingPeriodInList[O]=!0,t.billingPeriodValue=R==null?void 0:R.xx_ord1__billing_period__c),"oneTimeValue"in R&&(t.oneTimeFieldAvailable[O]=!0),"billingPeriodValue"in R&&(t.billingPeriodFieldAvailable[O]=!0),(R==null?void 0:R.oneTimeValue)!==""&&(R==null?void 0:R.oneTimeValue)!==null&&(t.hasOneTimeValue=!0),R}),P}async function k(j,O=!0){var P,M;try{const Z=c.value.get(j);if(console.info("sectionData = ",Z.sectionName),!Z)return;Z.loading=O,O&&(Z.lineItems=[]);const{columns:Q,filters:B,primarysort:U,primarysortdesc:D,footer:q}=Z,$=Q.map(le=>le.field.toLowerCase());$.includes("xx_ord1__parent_qli__c")||$.push("xx_ord1__parent_qli__c"),$.includes("xx_ord1__item__c")||$.push("xx_ord1__item__c"),$.includes("xx_ord1__sys_configuration_status2__c")||$.push("xx_ord1__sys_configuration_status2__c"),(P=t.cartItemColumnsMap[j])==null||P.forEach(le=>{$.includes(le.field)||$.push(le.field)});const H=await E({fields:$,recordId:r.value,filters:B||[],primarySortBy:U||"",primarySortOrder:D?"DESC":"ASC",includeOptions:g.value,totalFields:q?[q.apiname]:[]}),J=H.lineItems,R=new Map;let z=[];const oe=(M=H.fieldTotals)==null?void 0:M.map(le=>le.totalValue);J.forEach(le=>{le.XX_ORD1__Parent_QLI__c?R.has(le.XX_ORD1__Parent_QLI__c)?R.get(le.XX_ORD1__Parent_QLI__c).push(le):R.set(le.XX_ORD1__Parent_QLI__c,[le]):z.push(le)});const ce=[];return z.forEach(le=>{ce.push(le),R.has(le.Id)&&ce.push(...R.get(le.Id))}),z=T(z,j),Z.lineItems=$i(ce),Z.parentQLIs=z,Z.totalValues=oe,Z.loading=!1,c.value=new Map(c.value),ce}catch(Z){console.info("[ERROR]: fetchQuoteLineItems()123 error = ",Z.message);const Q=c.value.get(j);Q&&(Q.loading=!1)}}async function E(j){try{let O=await window.salesforceConnector.getQuoteLineItemsWithFilteredTable(JSON.stringify(j));return O=bt(O),O}catch(O){e.handleError(O.message),console.info("[ERROR]: getQuoteLineItemsWithFilteredTable() error = ",O)}}async function L(j){try{console.info("updateQli() payload = ",j);let O=await window.salesforceConnector.updateQli(JSON.stringify(j));return O=bt(O),S(!1),O}catch(O){e.handleError(O.message),console.info("[ERROR]: updateQli() error = ",O)}}async function V(j){try{let O=await window.salesforceConnector.deleteQLI(j);return O=bt(O),S(),O}catch(O){e.handleError(O.message),console.info("[ERROR]: deleteQLI() error = ",O)}}async function K(j,O){try{u.value=!0;const P={fields:j};O&&(P.objectName=O),j.includes("xx_ord1__qty__c")&&O==="xx_ord1__ecatalog_item__c"&&(P.fields=P.fields.filter(Z=>Z!=="xx_ord1__qty__c")),j.includes("xx_ord1__sales_price__c")&&O!=="xx_ord1__quote_line_item__c"&&(P.fields=P.fields.filter(Z=>Z!=="xx_ord1__sales_price__c"));let M=await window.salesforceConnector.getFieldsData(JSON.stringify(P));return typeof M=="string"&&(M=JSON.parse(M)),M!=null&&M.errorMessage?(e.handleError(M.errorMessage),null):(f.value={...f.value,...M},console.info("fieldsData.value = ",JSON.stringify(f.value)),M)}catch(P){return e.handleError("Failed to get Fields Data. Please try again."),console.info("[ERROR]: getFieldsData() error = ",P),null}finally{u.value=!1}}function W(j=""){var O;return!j||j.includes(".")?!1:j.includes("xx_ord1__qty__c")?!0:((O=f.value[j])==null?void 0:O.isEditable)||!1}function te(){fe(G0)}async function fe(j){var O,P,M,Z,Q,B,U,D,q;if(j.payload){if((O=j.payload)!=null&&O.uiModification){const $=j.payload.uiModification;if(((P=$.addColumn)==null?void 0:P.length)>0)if($.addColumn.forEach(H=>{H.columns.forEach(J=>{J.field=J.field.toLowerCase()})}),$.addColumn[0].sectionName==="all_section")for(const[H,J]of c.value)J.columns=[...J.columns,...$.addColumn[0].columns];else $.addColumn.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).columns=[...c.value.get(H.tableId).columns,...H.columns])});if(((M=$.removeColumn)==null?void 0:M.length)>0)if($.removeColumn.forEach(H=>{H.columns=H.columns.map(J=>J.toLowerCase())}),$.removeColumn[0].sectionName==="all_section")for(const[H,J]of c.value)J.columns=J.columns.filter(R=>!$.removeColumn[0].columns.includes(R.field));else $.removeColumn.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).columns=c.value.get(H.tableId).columns.filter(J=>!H.columns.includes(J.field)))});if(((Z=$.filter)==null?void 0:Z.length)>0)if($.filter[0].sectionName==="all_section")for(const[H,J]of c.value)J.filters=[...J.filters,...$.filter[0].filters];else $.filter.forEach(H=>{c.value.get(H.tableId)&&(c.value.get(H.tableId).filters=[...c.value.get(H.tableId).filters,...H.filters])});if(((Q=$.groupBy)==null?void 0:Q.length)>0){const H=((B=[...c.value.values()][0])==null?void 0:B.columns)||Y0;c.value.clear(),t.cartItemColumnsMap={},$.groupBy.forEach(J=>{t.cartItemColumnsMap[J.tableId]=J.columns||H,c.value.set(J.tableId,{loading:!0,lineItems:[],parentQLIs:[],columns:J.columns||H,tableId:J.tableId,sectionName:J.sectionName,selected:new Map,footer:y(J.footer),filters:J.filters,primarysort:J.primarysort,primarysortdesc:J.primarysortdesc})})}$.showOptions!==void 0&&(g.value=$.showOptions)}if(((D=(U=j.payload)==null?void 0:U.sections)==null?void 0:D.length)>0){const $=(q=j.payload)==null?void 0:q.sections;c.value.clear(),$.forEach(H=>{H.tableId||(H.tableId=or()),H.selected=new Map,c.value.set(H.tableId,H)}),S()}}j.actionFunction==="Reload"&&(S(),console.info("Reloading quote line items"))}async function ee(j){var O,P;try{const M=new Set;for(const Z of c.value.keys())(O=c.value.get(Z).lineItems)==null||O.forEach(B=>{B.attributes=null,M.add(B.id)});if(j){const Z={lineItemIds:[...M]},Q=await window.productManagerController.getLineItemAttributes({request:JSON.stringify(Z)}),B=JSON.parse(Q.data);for(const U of c.value.keys())(P=c.value.get(U).lineItems)==null||P.forEach(q=>{q.attributes=B[q.id]||null})}}catch(M){console.info("[ERROR]: fetchAttributesData() error = ",M)}}return{showAttributes:h,quoteId:r,quoteName:i,templateId:a,templateOptions:s,loading:l,currentTemplateData:p,fieldsData:f,fieldsDataLoading:u,showOptionHeaderButton:m,sectionDataMap:c,promptSuggestions:d,lineItemsCount:o,addColumns:te,getQuoteEPageLayout:A,getPayload:v,getPrimaryQuote:_,fetchTemplates:C,getFilteredListWithFields:I,getQuoteLineItemsWithFilteredTable:E,updateQli:L,getFieldsData:K,deleteQLI:V,performAIAction:fe,isEditableField:W,fetchQuoteLineItems:k,fetchAllQuoteLineItems:S,fetchAttributesData:ee}}),e5=Rt("quickSelection",()=>{const e=an(),t=ar(),n=An(),r=ae(null),i=ae(!1),o=ae([]),a=ae([]),s=ae(!1),l=ae({}),p=ae({rowLimit:10,paging:!0,offset:0,currentPage:1,totalPages:1}),c=ae(!1);async function f(){i.value=!0;try{const w=JSON.stringify({layoutType:"Quick Selection",layoutObject:"xx_ord1__ecatalog_item__c",...t.objectType?{contextObject:t.objectType}:{}});let A={};A=await window.salesforceConnector.getDynamicPageLayout(w),r.value=xc(A,"Unable to find the Quick Selection Layout for your user profile"),console.info("quickSelectionLayout.value = ",r.value),p.value.rowLimit=r.value.configuration.rowLimit||10,r.value.data.columns.forEach(I=>{!I.field&&I.label==="QTY"&&(I.field="xx_ord1__qty__c")}),i.value=!1}catch(w){i.value=!1,e.handleError("Failed to get Page structure data. Please try again."),console.info("[ERROR]: getAdaptiveSearchLayout() error = ",w)}}function u(){const w=new Map;return r.value.data.columns.forEach(A=>{w.set(A.field,!0)}),r.value.data.searchResultColumns.forEach(A=>{w.set(A.field,!0)}),Array.from(w.keys())}async function g(w){var A,I;try{let S=await window.salesforceConnector.saveCompetitorSKU(w);if(S!=null&&S.errorMessage){e.handleError(S.errorMessage);return}if((A=S[0])!=null&&A.errorMessage){e.handleError((I=S[0])==null?void 0:I.errorMessage);return}return S}catch(S){e.handleError("Failed to Match Item. Please try again."),console.info("[ERROR]: saveCompetitorSKU() error = ",S)}}async function h(w="",A=[]){try{let I=r.value.data,S=r.value.configuration;const N=w.trim();if(console.info("searchTextValue.trim() = ",w.trim()),!N)return[];let T=null;console.info("useMappings = ",c.value),c.value?T=z0(m()):T=m(),console.info("fields before filter = ",T),T=T.filter(V=>V!=="xx_ord1__qty__c"),console.info("fields after filter = ",T);const k={fields:T,...A.length?{dynamicFilters:n.getDynamicFilters(A)}:{},searchText:N,accountId:t.accountId,...t.eCatalogId?{catalogId:t.eCatalogId}:{},...t.objectType==="opportunity"?{opportunityId:t.id}:{},...I!=null&&I.sort?{primarySortBy:I.sort.primary.field,primarySortOrder:I.sort.primary.direction,secondarySortBy:I.sort.secondary.field,secondarySortOrder:I.sort.secondary.direction}:{},rowLimt:(S==null?void 0:S.rowLimit)||20,paging:(S==null?void 0:S.paging)||!1,...p.value.offset!==0?{offset:p.value.offset}:{},objectName:I.objectName,currencyCode:t.currencyCode};console.info("getQuickSelectionItems payload = ",JSON.stringify(k));const E=await window.salesforceConnector.getItems(JSON.stringify(k));if(console.info("getQuickSelectionItems Res = ",JSON.stringify(E)),E!=null&&E.errorMessage){e.handleError(E.errorMessage);return}return E!=null&&E.itemCount&&(p.value.totalPages=Math.ceil((E==null?void 0:E.itemCount)/p.value.rowLimit)),$i(E.lstItems,{xx_ord1__qty__c:"1"})}catch(I){e.handleError("Failed to fetch Results. Please try again."),console.info("[ERROR]: getQuickSelectionItems() error = ",I)}}function m(){let w=[];for(const A of r.value.data.columns){let I=A.field;if(I!=null&&I.includes(".")){w.includes(I)||w.push(I);let N=I.split(".")[0];N=N.slice(0,-1)+"c",w.includes(N)||w.push(N)}else w.includes(I)||w.push(I)}return console.info("getAllQuickSelectionFields() fields = ",w),w.filter(A=>A.toLowerCase()!=="xx_ord1__qty__c")}async function d(w,A,I,S){console.info("searchText:",JSON.stringify(w)),console.info("row:",JSON.stringify(A)),console.info("rowIndex:",JSON.stringify(I)),console.info("column:",JSON.stringify(S));const N=I+(p.value.currentPage-1)*p.value.rowLimit;if(S.field.toLowerCase().includes("xx_ord1__item__r")){if(o.value[N].itemLookupLoading=!0,c.value=!0,a.value=await h(w),a.value.length>0){const T=[];for(let k=0;k<a.value.length;k++)o.value[N].itemDataRetrieved=!0,a.value[k].xx_ord1__item__c&&T.push({name:a.value[k]["xx_ord1__item__r.name"],value:a.value[k].xx_ord1__item__c,label:a.value[k][S.field.toLowerCase()]});o.value[N][S.field.toLowerCase()+"_options"]=T}o.value[N].itemLookupLoading=!1}else if(S.field.toLowerCase().includes("xx_ord1__competitor_item__r")){o.value[N].competitorLookupLoading=!0;const T=await v(w);T!=null&&T.items&&(o.value[N][S.field.toLowerCase()+"_options"]=T.items.map(k=>({name:k.fields[2].value,value:k.fields[1].value,label:k.fields[0].value}))),o.value[N].competitorLookupLoading=!1,console.info("getLookupData:: Search Lookup Handler Response = ",T)}}async function v(w){var I,S;console.info("getLookupData() searchText = ",w);const A={searchText:w,obj:"xx_ord1__competitor_item__c",filters:null,displayFields:["xx_ord1__sku__c"]};try{let N=await window.salesforceConnector.getLookupData(JSON.stringify(A));if(typeof N=="string"&&(N=JSON.parse(N)),N!=null&&N.errorMessage){e.handleError(N.errorMessage);return}if((I=N[0])!=null&&I.errorMessage){e.handleError((S=N[0])==null?void 0:S.errorMessage);return}return N}catch(N){e.handleError("Failed to Search For Item. Please try again."),console.info("[ERROR]: getLookupData() error = ",N)}}async function _(w,A){var S;console.info("Update Other Fields Value = ",w),console.info("Update Other Fields Row Index = ",A);const I=A+(p.value.currentPage-1)*p.value.rowLimit;console.info("actualRowIndex = ",I);try{if(w){const N=a.value.filter(T=>T.xx_ord1__item__c===w)[0];if(N){s.value=!0;const T=r.value.data.columns[1].field;o.value[I][T]&&await C(N,I),(S=o.value[I])!=null&&S.itemDataRetrieved&&(o.value[I].status="New Match Requested",o.value[I].noMatchCleared=!0),Object.keys(N).forEach(k=>{const E=Ic[k.toLowerCase()];console.info("Mapped Key = ",E),E&&(o.value[I][E]=N[k])}),s.value=!1}else o.value[I].status=""}else o.value[I].status="No Match"}catch(N){e.handleError("Unable to request a match for this item please try again."),console.info("Error in updateOtherFields = ",N)}}async function C(w,A){const I=o.value[A],S=r.value.data.columns[1].field,N=[{sku:I[S],name:I[S],productDescription:I.xx_ord1__line_description__c||"",productURL:null,status:"Match Requested",competitorAccountId:null,itemId:w.xx_ord1__item__c}];let T=await g(JSON.stringify(N));console.info("Match Item: ",JSON.stringify(T)),o.value[A][`${S}_options`]=[{value:T[0].competitorItemId,label:T[0].sku}],o.value[A][S]=T[0].competitorItemId}async function y(w){try{let A=await window.salesforceConnector.createQLI(JSON.stringify(w));typeof A=="string"&&(A=JSON.parse(A));let I=!1;if((A==null?void 0:A.length)>0)for(let S=0;S<A.length;S++)A[S].errorMessage&&(I=!0,A[S].errorMessage.includes("Line Description: data value too large")&&(A[S].errorMessage="Error: The description is too long—it must be under 200 characters."));if(I){A.forEach(S=>{l.value[S.eCatalogItemId]=S});return}else l.value=[];return A}catch(A){e.handleError("Failed to add item to Quote. Please try again."),console.info("[ERROR]: addAllItemsToQuote() error = ",A)}}return{quickSelectionLayout:r,quickSelectionLayoutLoading:i,processedRecords:o,useMappings:c,currentSearchData:a,createQliErrors:l,getQuickSelectionLayout:f,getAllFieldsForQuickSelectionLayout:u,saveCompetitorSKU:g,getQuickSelectionItems:h,searchLookupHandler:d,updateOtherFields:_,addAllItemsToQuote:y}}),t5="Preparing Your Quote Please Wait...",n5={message:"Your quote is ready! Begin adding products to complete it.",type:"response",requestId:"no-request-id"},r5=18e4,Ui=Rt("ai",()=>{const e=ar(),t=An(),n=Ac(),r=e5(),i=sn(),o=ba(),a=ae(""),s=ae(""),l=ae([]),p=ae(""),c=ae([]),f=ae(!1),u=ae(null),g=Vi(),h=ae({}),m=ae(null),d=ae(null),v=ae(null),_=ae(null),C=ae(null),y=ae(t5),w=ae([]),A=be(()=>e.orgId+"__"+e.user.Id+"__"+t.quoteId),I=be(()=>u.value.readyState==WebSocket.OPEN),S=()=>{h.value={salesforceOrgId:e.orgId,salesforceOrgType:e.orgType,salesforceUserId:e.user.Id,userType:"Salesforce",chatRoomId:A.value,requestId:"",prompt:"",initiatedFrom:e.origin||"Quote",internalCall:!1,contextObjectId:t.quoteId,contextObjectType:"Quote",payload:{lineItemsCount:t.lineItemsCount},origin:"Genesis AI",defaultBatchSize:10,actionType:"",packageVersion:e.packageVersion,relatedIds:{eCatalogId:e.eCatalogId,accountId:e.accountId}}};async function N(){const q=s.value+"?chatRoomId="+A.value;u.value=new WebSocket(q),u.value.addEventListener("open",T),u.value.addEventListener("message",L),u.value.addEventListener("close",k),u.value.addEventListener("error",E)}const T=()=>{V(),te()},k=()=>{K()},E=()=>{Z(),K()},L=q=>{var H,J;V();const $=JSON.parse(q.data);if($.status!=="ALIVE"){if($.loading){y.value=$.message;return}else Array.isArray($.messages)?(y.value=null,l.value.push(n5),$.messages.length>0&&O($.messages)):$.agentResponse&&($.errorMessage&&($.agentResponse.content=$.errorMessage,$.agentResponse.error=!0),y.value=null,l.value.push({message:$.agentResponse.content,type:$.agentResponse.role,requestId:$.requestId,epoch:$.agentResponse.epoch,error:$.agentResponse.error,isDML:$.agentResponse.isDML,...(H=$.agentResponse)!=null&&H.filesData?{filesData:(J=$.agentResponse)==null?void 0:J.filesData}:{}}));w.value=$.links||[],B($)}},V=()=>{K(),m.value=setTimeout(()=>{if(I.value){const q={action:"heartbeat"};u.value.send(JSON.stringify(q)),V()}},r5)},K=()=>{m.value&&(clearInterval(m.value),m.value=null)};function W(q){const $={...h.value};$.requestType="Action",$.actionType="Undo",$.undoRequestId=q,$.requestId=or(),j($)}function te(){const q={...h.value};q.requestType="Action",q.actionType="History",q.requestId=or(),j(q)}function fe(q){return o.path.startsWith("/configurator")&&i.isChangedConfiguration?(_.value={save:()=>{i.maintainQuoteConfiguration()}},a.value=q,!0):(a.value="",!1)}function ee(q,$=!0,H=null){if(!fe(q)&&q.trim()){let J={...h.value};J.prompt=q.trim(),J.requestType="Chat",J.requestId=or(),J.internalCall=!1,J.payload=P(),J.componentName=M.value,J.templateId=t.templateId,J.payload.lineItemsCount=t.lineItemsCount,H&&(J={...J,...H}),Q(),$&&l.value.push({message:q.trim(),type:"user",...C.value&&{fileData:[C.value]},requestId:J.requestId}),j(J),V()}}function j(q){const $={action:"prompt",data:q};u.value.send(JSON.stringify($))}const O=q=>{const $=q.filter(({content:H})=>!!H).map(H=>({message:H.content,type:H.role,requestId:H.requestId,epoch:H.epoch,isDML:H.isDML,undone:H.undone}));$.forEach((H,J)=>{H.isDML===!0&&J!==$.length-1&&(H.isDML=!1)}),l.value=[...l.value,...$]};function P(){return o.path==="/quote-item"?t.getPayload():{}}const M=be(()=>o.path==="/quote-item"?"QuoteItem":""),Z=()=>{l.value.push({type:"response",message:"Oops! Something went wrong while processing your request. Please try again later.",error:!0})},Q=()=>{l.value=l.value.map(q=>({...q,links:[]}))};function B(q){var J,R,z;const $=((J=q==null?void 0:q.redirectObjects)==null?void 0:J.componentName)||(q==null?void 0:q.componentName),H=(q==null?void 0:q.redirectObjects)||{};if($==="AdaptiveSearch"){const oe=(R=q==null?void 0:q.payload)==null?void 0:R.searchTerm,ce=(z=q==null?void 0:q.payload)==null?void 0:z.applyFilters;oe&&oe!==n.searchText&&n.initAdaptiveSearch({searchTerm:oe,filters:ce}),g.push("/adaptive-search")}else $==="Configurator"?g.push(`/configurator/${H.itemId}/${H.qliId}`):$==="QuoteReview"?g.push("/quote-item"):$==="QuoteItem"||$==="QuoteList"?(g.push("/quote-item"),t.performAIAction(q)):$==="QuickSelection"&&(r.quickSelectionLayout=q.payload,console.info("Loading QuickSelection data = ",JSON.stringify(r.quickSelectionLayout)),g.push("/match-records"))}function U(){if(I.value){const q={action:"cancel",data:{requestId:h.value.requestId,chatRoomId:A.value}};u.value.send(JSON.stringify(q))}}const D=()=>{d.value&&(clearInterval(d.value),d.value=null),m.value&&(clearInterval(m.value),m.value=null),v.value&&(clearTimeout(v.value),v.value=null)};return Ei(()=>{D()}),{unsavedChanges:_,loadingMessage:y,promptMessage:a,buttonLinks:w,websocketUrl:s,chatHistory:l,latestDMLRequest:p,strikethroughHistory:c,attachmentData:C,dataManuallyChanged:f,undoAction:W,connectSocket:N,sendMessage:ee,setInitialPayload:S,cancelRequest:U}}),ar=Rt("root",()=>{const e=Ui(),t=an(),n=An(),r=ae(""),i=ae(""),o=ae("Genesis AI"),a=ae(""),s=ae({}),l=ae(""),p=ae(""),c=ae(""),f=ae(""),u=ae({}),g=ae(""),h=ae(""),m=ae(""),d=ae(""),v=ae(""),_=ae(""),C=ae(""),y=ae("Single"),w=ae("closed"),A=be(()=>n.quoteName),I=be(()=>y.value==="Single");async function S(E){r.value=E||Cc("id"),i.value=Cc("origin"),await T(),await N()}async function N(){try{console.info("getRecordInfo",r.value);let E=await window.salesforceConnector.getRecordInfo(r.value);return E=bt(E),E!==void 0&&(u.value=E,g.value=E.name,h.value=E.objectType,m.value=E.accountId,d.value=E.eCatalogId,v.value=E.currencyCode,_.value=E.userLocale,C.value=E.opportunityId),(E==null?void 0:E.objectType)==="XX_ORD1__Quote__c"?(n.quoteId=E==null?void 0:E.recordId,n.templateId=E==null?void 0:E.templateId,n.quoteName=E==null?void 0:E.name,n.lineItemsCount=(E==null?void 0:E.lineItemsCount)||0):(E==null?void 0:E.objectType)==="Opportunity"&&await n.getPrimaryQuote(E.recordId),E}catch(E){t.handleError(E.message)}}async function T(){var L,V;console.info("getOrgInformation",r.value);const E=await window.salesforceConnector.getOrgInformation();e.websocketUrl=E.websocketUrl,a.value=(L=E.locale)==null?void 0:L.replace("_","-"),s.value=E.user,l.value=E.orgName,p.value=E.orgId,c.value=E.orgType,f.value=E.packageVersion,y.value=(V=E==null?void 0:E.pricingSchema)==null?void 0:V.toLowerCase()}function k(E){o.value=E,o0(E)}return{id:r,origin:i,title:A,subTitle:o,locale:a,user:s,orgName:l,orgId:p,orgType:c,packageVersion:f,objectType:h,recordInfo:u,name:g,accountId:m,eCatalogId:d,currencyCode:v,userLocale:_,opportunityId:C,pricingSchema:y,isSinglePricingSchema:I,flyoutState:w,start:S,getRecordInfo:N,setSubTitle:k}}),i5="https://api-svc.blink.expedite1.com/api/product-pricing/evaluateConfigurationSelection",o5={productJSON:{productItem:{configRules:[{publishKey:"rule-a1",name:"If latest is optA include optB",priority:1,enforceRule:!0,ruleJson:'{"latestSelected":"optA","actionType":"include","affectedOptions":["optB"]}'}]}},currentConfig:{product:{publishKey:"prod-1",attributes:[]},options:[]},selected:{publishKey:"optA",attributes:[]}};async function a5(e=o5){const t=i5;try{const n=await fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)});if(!n.ok)throw new Error(`HTTP error! status: ${n.status} ${n.statusText}`);return await n.json()}catch(n){throw console.info("Error fetching data with Fetch API:",n),n}}function s5(e){const t=n=>Math.min(...n.options.map(r=>r.relationshipInfo.primarySortOrder));return e.forEach(n=>{n.itemTypes.forEach(r=>{r.options.sort((i,o)=>i.relationshipInfo.primarySortOrder-o.relationshipInfo.primarySortOrder||i.itemName.localeCompare(o.itemName))}),n.itemTypes.sort((r,i)=>t(r)-t(i)||r.itemTypeName.localeCompare(i.itemTypeName))}),e.sort((n,r)=>{const i=Math.min(...n.itemTypes.map(t)),o=Math.min(...r.itemTypes.map(t));return i-o||n.category.localeCompare(r.category)}),e}const l5=(e,t)=>{const n=(r,i)=>typeof i=="function"?void 0:i;return JSON.stringify(e,n)===JSON.stringify(t,n)},sn=Rt("configurator-main",()=>{const e=ba(),t=ar(),n=An(),r=an(),i=Vi(),o=ae(null),a=ae(null),s=ae(null),l=ae(null),p=ae([]),c=ae(null),f=ae(null),u=ae(new Map),g=ae(!1),h=ae({configuration:!1,lineItem:!1,productOptionsPricing:!1,bestOfferPrice:!1,lineItemAttributes:!1,save:!1}),m=ae(!1),d=be(()=>v.value&&!t.isSinglePricingSchema),v=be(()=>{let D=!0,q=!0,$=!0,H=null;for(const J of s.value.categoryOptions)for(const R of J.itemTypes)for(const z of R.options)z.billingPeriod&&(H&&H!==z.billingPeriod&&($=!1),H=z.billingPeriod,!z.yrcPrice&&z.billingPeriod==="Monthly"&&(D=!1),!z.mrcPrice&&z.billingPeriod==="Yearly"&&(q=!1));return D&&q&&$}),_=be(()=>!l5(s.value,l.value)),C=be(()=>{const D=s.value.categoryOptions;return D.forEach(q=>{q.itemTypes.forEach($=>{$.selectedOptions=$.options.filter(H=>$.selected.includes(H.itemId)),$.totalPrice=function(){return $.selectedOptions.reduce((H,J)=>H+J.price*J.qty,0)||0},$.oneTimePrice=function(){return $.selectedOptions.filter(H=>!H.billingPeriod).reduce((H,J)=>H+J.price*J.qty,0)||0},$.recurringPrice=function(){return $.selectedOptions.filter(H=>H.billingPeriod).reduce((H,J)=>H+J.price*J.qty,0)||0}}),q.selectedItemTypes=q.itemTypes.filter($=>$.selected.length>0),q.totalPrice=function(){return q.itemTypes.reduce(($,H)=>$+H.totalPrice(),0)},q.oneTimePrice=function(){return q.itemTypes.reduce(($,H)=>$+H.oneTimePrice(),0)},q.recurringPrice=function(){return q.itemTypes.reduce(($,H)=>$+H.recurringPrice(),0)}}),D.filter(q=>q.itemTypes.filter($=>$.selected.length>0).length>0)}),y=be(()=>C.value.reduce((D,q)=>D+q.totalPrice(),0)),w=be(()=>{const D=C.value.reduce((H,J)=>H+J.totalPrice(),0);let q=C.value.reduce((H,J)=>H+J.oneTimePrice(),0),$=C.value.reduce((H,J)=>H+J.recurringPrice(),0);return s.value.billingPeriod?$=($+s.value.price)*s.value.qty:q=(q+s.value.price)*s.value.qty,{basePrice:s.value.price,addOns:D,oneTimePrice:q,recurringPrice:$,total:s.value.price*s.value.qty+D*s.value.qty+q+$}}),A=be(()=>{const D=new Map;return D.set(c.value.productLineItem.XX_ORD1__Item__c,c.value.productLineItem),c.value.options.forEach(q=>{D.set(q.XX_ORD1__Item__c,q)}),D}),I=be(()=>{const D=new Map;return s.value.categoryOptions.forEach(q=>{q.itemTypes.forEach($=>{$.options.forEach(H=>{D.set(H.relationshipInfo.publishKey,H)})})}),D}),S=be(()=>{const D=new Map;return D.set(f.value.product.XX_ORD1__Item__c,f.value.product),f.value.options.forEach(q=>{D.set(q.XX_ORD1__Item__c,q)}),D});function N(D){s.value.qliId&&(s.value.qliBillingPeriod==="Monthly"&&!D?s.value.price=s.value.qliSalesPrice||s.value.qliMrcPrice:s.value.qliBillingPeriod==="Yearly"&&D&&(s.value.price=s.value.qliSalesPrice)),s.value.categoryOptions.forEach(q=>{q.itemTypes.forEach($=>{$.options.forEach(H=>{H.billingPeriod&&(H.price=(D?H.yrcPrice.offerPrice:H.mrcPrice.offerPrice)||H.price,H.qliId&&(H.qliBillingPeriod==="Monthly"&&!D?H.price=H.qliSalesPrice||H.qliMrcPrice:H.qliBillingPeriod==="Yearly"&&D&&(H.price=H.qliSalesPrice)))})})})}function T(){s.value=null,l.value=null,p.value=[],c.value=null,f.value=null,u.value=new Map,g.value=!1,h.value.configuration=!1,h.value.lineItem=!1,h.value.productOptionsPricing=!1,h.value.bestOfferPrice=!1,h.value.lineItemAttributes=!1,h.value.save=!1}async function k(D,q){T(),o.value=D||e.params.itemId,a.value=q||e.params.qliId,console.info("initConfigurator",o.value,a.value,n.quoteId);const $=await E();await te(),await fe(),s.value=V($);const H=await j();L(H),await W();let J=!1;for(const R of c.value.options)R.XX_ORD1__Billing_Period__c==="Yearly"&&(J=!0);J&&(m.value=!0,N(!0)),l.value=JSON.parse(JSON.stringify(s.value))}async function E(){try{console.info("itemId",o.value);const D=await window.productManagerController.getProductConfiguration({itemId:o.value});console.info("getProductConfiguration:result",D);const q=JSON.parse(D.data).productItem;return q.categoryOptions=s5(q.categoryOptions),q}catch(D){return console.info("error",D.message),!1}}function L(D){const q=new Map;q.set(f.value.product.Id,f.value.product.XX_ORD1__Item__c),f.value.options.forEach(H=>{q.set(H.Id,H.XX_ORD1__Item__c)});const $=new Map;if(D.forEach(H=>{const J={};H.pricingTypes.forEach(R=>{R.appliedOnField==="Catalog Price"?J.catalogPrice=R:R.appliedOnField==="MRC"?J.mrcPrice=R:R.appliedOnField==="YRC"&&(J.yrcPrice=R)}),J.billingPeriod=H.billingPeriod,J.mrcPrice&&!t.isSinglePricingSchema?J.price=J.mrcPrice.offerPrice:J.catalogPrice&&t.isSinglePricingSchema&&(J.price=J.catalogPrice.offerPrice),J.offer={offerDiscount:H.offerDiscount,offerId:H.offerId,offerType:H.offerType},$.set(q.get(H.eCatalogItemId),J)}),$.has(s.value.itemId)){const H=$.get(s.value.itemId),J=s.value.price;Object.assign(s.value,H),s.value.qliId&&(s.value.price=J)}s.value.categoryOptions.forEach(H=>{H.itemTypes.forEach(J=>{J.options.forEach(R=>{if($.has(R.itemId)){const z=$.get(R.itemId),oe=R.price;Object.assign(R,z),R.qliId&&(R.price=oe)}})})})}function V(D){D.isAttributes=D.attributes&&D.attributes.length>0,u.value.set(a.value,D.attributes),p.value=D.configRules;const q=new Set;return p.value.forEach($=>{const H=JSON.parse($.ruleJson);H.optionSelected.forEach(J=>{q.add(J)}),H.affectedOptions.forEach(J=>{q.add(J)})}),K(D),D.categoryOptions.forEach($=>{$.key=$.category.toLowerCase().replace(/\s+/g,"-").replace(/[&]/g,""),$.itemTypes.forEach(H=>{H.selected=[],H.options=H.options.filter(J=>S.value.has(J.itemId)),H.numberOfColumns||(H.numberOfColumns=1),H.numberOfColumns>1&&(H.lightboxAttributes=!0),H.maxNumber||(H.maxNumber=100),H.minNumber||(H.minNumber=0),H.maxQuantity||(H.maxQuantity=1e4),H.minQuantity||(H.minQuantity=1),H.maxNumber===1?(H.isRadio=!0,H.minMessage="Please select 1 option",H.maxMessage="",H.isKit=H.options.some(J=>J.relationshipInfo.relationship==="Kit")):(H.minMessage=`Minimum of ${H.minNumber} selection${H.minNumber!==1?"s":""} required`,H.maxMessage=`Maximum of ${H.maxNumber} selection${H.maxNumber!==1?"s":""} allowed`),H.options.forEach(J=>{$.showImage=$.showImage||!!J.defaultImageURL,J.showAttributesModal=!1,J.calculateRules=q.has(J.relationshipInfo.publishKey),J.qty=H.minQuantity||1,J.getTags=()=>(J.attributes=J.attributes||[],J.attributes.filter(R=>R.value!==null&&R.value!=="").map(R=>({label:R.label,value:R.value}))),Object.defineProperty(J,"isDisabled",{get:function(){return J.relationshipInfo.relationship==="Kit"||(H.isRadio?H.isKit:!H.selected.includes(J.itemId)&&H.maxNumber===H.selected.length)}}),K(J),(A.value.has(J.itemId)||J.relationshipInfo.relationship==="Kit")&&H.selected.push(J.itemId)})})}),D}function K(D){D.isAttributes=D.attributes&&D.attributes.length>0;const q=S.value.get(D.itemId);if(A.value.has(D.itemId)){const $=A.value.get(D.itemId);D.qliId=$.Id,D.qty=$.XX_ORD1__QTY__c,D.itemName=$.XX_ORD1__Line_Description__c,D.billingPeriod=$.XX_ORD1__Billing_Period__c,D.price=$.XX_ORD1__Sales_Price__c,D.billingPeriod?D.price=$.XX_ORD1__Sales_Price__c||$.XX_ORD1__MRC__c:D.price=$.XX_ORD1__NRC__c||$.XX_ORD1__Sales_Price__c,D.qliSalesPrice=$.XX_ORD1__Sales_Price__c,D.qliNrcPrice=$.XX_ORD1__NRC__c,D.qliMrcPrice=$.XX_ORD1__MRC__c,D.qliBillingPeriod=$.XX_ORD1__Billing_Period__c,u.value.set(D.qliId,D.attributes)}else D.itemName=q.XX_ORD1__Line_Description__c||D.itemName,D.price=q.XX_ORD1__Negotiated_Price__c||q.XX_ORD1__NRC_for_New__c,D.nrcPrice=q.XX_ORD1__NRC_for_New__c}async function W(){console.info("getLineItemAttributes"),h.value.lineItemAttributes=!0;const q={lineItemIds:[c.value.productLineItem.Id,...c.value.options.map(J=>J.Id)]},$=await window.productManagerController.getLineItemAttributes({request:JSON.stringify(q)});console.info("getLineItemAttributes:result",$);const H=JSON.parse($.data);for(const[J,R]of Object.entries(H))if(u.value.has(J)){const z=u.value.get(J),oe=new Map;R==null||R.forEach(ce=>{oe.set(ce.apiName,ce)}),z==null||z.forEach(ce=>{oe.get(ce.apiName)&&(ce.value=oe.get(ce.apiName).value||"",ce.dataType==="REFERENCE"&&(ce.referenceRecordId=oe.get(ce.apiName).referenceRecordId||"",ce.referenceRecordId?ce.options=[{Name:ce.value||"",Id:ce.referenceRecordId}]:ce.options=[]))})}h.value.lineItemAttributes=!1}async function te(){h.value.lineItem=!0,console.info("getLineItems",n.quoteId,a.value);try{const D={objectId:n.quoteId,filters:{},additionalFields:["Name","XX_ORD1__Line_Description__c"],primarySort:{field:"CreatedDate",direction:"DESC"},productPage:{recordLimit:200,offset:0,productLineItemId:a.value}},q=await window.productManagerController.getLineItems({request:JSON.stringify(D)});return console.info("getLineItems:result",q),c.value=JSON.parse(q.data).products[0],console.info("result",q),h.value.lineItem=!1,q}catch(D){return console.info("error",D.message),h.value.lineItem=!1,!1}}async function fe(){h.value.productOptionsPricing=!0,console.info("getProductOptionsPricing");try{const D={objectId:n.quoteId,itemId:o.value},q=await window.productManagerController.getProductOptionsPricing({request:JSON.stringify(D)});return console.info("getProductOptionsPricing:result",q),f.value=JSON.parse(q.data),h.value.productOptionsPricing=!1,f.value}catch(D){return console.info("error",D.message),h.value.productOptionsPricing=!1,!1}}async function ee(D){console.info("getRecords");try{const q=await window.productManagerController.getRecords({request:JSON.stringify(D)});return console.info("getRecords:result",q),JSON.parse(q.data)}catch(q){return console.info("error",q.message),!1}}async function j(){h.value.bestOfferPrice=!0,console.info("getBestOfferPrice");const D=[f.value.product.Id];f.value.options.forEach(q=>{D.push(q.Id)});try{const q=await O(D);return h.value.bestOfferPrice=!1,q}catch(q){return console.info("error",q.message),h.value.bestOfferPrice=!1,!1}}async function O(D){const q={accountId:t.accountId,eCatalogItemIds:D,pricePreference:"Heighest Priority"},$=await window.productManagerController.calculateBestOfferPrice({request:JSON.stringify(q)});return console.info("calculateBestOfferPrice:result",$),h.value.bestOfferPrice=!1,JSON.parse($.data)}async function P(){g.value=!0,h.value.save=!0,console.info("maintainQuoteConfiguration");const D=[],q=[];s.value.categoryOptions.forEach(J=>{J.itemTypes.forEach(R=>{R.options.forEach(z=>{R.selected.includes(z.itemId)?D.push(M(z)):z.qliId&&q.push(z.qliId)})})});const $={objectId:n.quoteId,eCatalogId:t.eCatalogId,isGenesisAI:!0,blinkUser:!1,optionsToRemove:q,grandFatheredOptionsToRemove:[],productLineItem:{...M(s.value),optionLineItems:D}};console.info("maintainQuoteConfiguration:request",$);const H=await window.productManagerController.maintainQuoteConfiguration({request:JSON.stringify($)});if(console.info("maintainQuoteConfiguration:result",H),H!=null&&H.error){const J={title:"Unable to Save Configuration",description:H.error,button:{label:"Back to Configuration",action:()=>{g.value=!1}},cancel:{label:"Quote List",action:()=>{i.push("/quote-item?id="+n.quoteId)}}};r.errorPopup=J}else l.value=JSON.parse(JSON.stringify(s.value)),console.info("maintainQuoteConfiguration:result",H);h.value.save=!1}function M(D){const q={};D.isAttributes&&D.attributes.forEach(H=>{H.apiName.includes(".")||(H.dataType==="BOOLEAN"?q[H.apiName]=H.value?"true":"false":H.dataType==="REFERENCE"?q[H.apiName]=H.referenceRecordId:q[H.apiName]=H.value)});const $={attributes:q,itemId:D.itemId,lineItemId:D.qliId,lineDescription:D.itemName,qty:D.qty,billingPeriod:D.billingPeriod,...D.offer};return D.billingPeriod&&v.value&&!t.isSinglePricingSchema&&($.billingPeriod=m.value?"Yearly":"Monthly"),!t.isSinglePricingSchema&&!D.billingPeriod?$.nrcPrice=D.price:($.applyOnField="Catalog Price",$.salesPrice=D.price,$.nrcPrice=D.nrcPrice),$}async function Z(){const D={objectId:t.eCatalogId,productItemId:o.value};try{let q=await window.productManagerController.getProductCrossSells({request:JSON.stringify(D)});if(console.info("getProductCrossSells:result",q),q=q.data?JSON.parse(q.data):{},q.crossSells.length===0)return q;const $=q.crossSells.map(R=>R.Id),H=await O($),J=new Map;return H.forEach(R=>{J.set(R.eCatalogItemId,{...R,...R.pricingTypes[0]})}),q.crossSells.forEach(R=>{R.loading=!1,R.Name=R.XX_ORD1__Line_Description__c||R.XX_ORD1__Item__r.Name,R.Description=R.XX_ORD1__Item__r.XX_ORD1__Product_Description__c,J.has(R.Id)?(R.Price=J.get(R.Id).offerPrice,R.priceFormatted=J.get(R.Id).formattedOfferPrice,R.offer={offerDiscount:J.get(R.Id).offerDiscount,offerId:J.get(R.Id).offerId,offerType:J.get(R.Id).offerType}):(R.Price=R.XX_ORD1__List_Price2__c,R.priceFormatted=R.XX_ORD1__List_Price2__c,R.offer={offerDiscount:0,offerId:null,offerType:null})}),q}catch(q){return console.info("error",q.message),!1}}async function Q(D,q){var R,z;const $={product:{publishKey:s.value.publishKey,lineDescription:s.value.itemName},options:[]};s.value.categoryOptions.forEach(oe=>{oe.itemTypes.forEach(ce=>{ce.options.forEach(le=>{ce.selected.includes(le.itemId)&&$.options.push({publishKey:le.relationshipInfo.publishKey,lineDescription:le.itemName})})})}),console.info("evaluateConfigSelection:currentConfig.options",$.options);const H={productJSON:{productItem:{configRules:p.value}},currentConfig:$,selected:D?{publishKey:(R=D.relationshipInfo)==null?void 0:R.publishKey,attributes:D.attributes,lineDescription:D.itemName}:{},unselected:q?{publishKey:(z=q.relationshipInfo)==null?void 0:z.publishKey,attributes:q.attributes,lineDescription:q.itemName}:{}};return await a5(H)}async function B(){try{const D=["Name","XX_ORD1__Line_Description__c","XX_ORD1__Item__r.XX_ORD1__Product_Description__c","XX_ORD1__Sales_Price__c","XX_ORD1__SYS_Configuration_Status2__c"],$=(await n.getQuoteLineItemsWithFilteredTable({fields:D,recordId:n.quoteId,filters:[],includeOptions:!1,totalFields:[]})).lineItems;return console.info("fetchQuoteLineItems:res",$),$}catch(D){console.info("[ERROR]: fetchQuoteLineItems()123 error = ",D.message)}}async function U(D){const q={quoteId:n.quoteId,lstQLIRequest:[{eCatalogItemId:D.Id,quantity:1,offerApplicable:D.offer}]};try{const $=await window.productManagerController.createQuoteProducts({request:JSON.stringify(q)});console.info("getProductCrossSells:result",$)}catch($){return console.info("error",$.message),!1}}return{itemId:o,configuration:s,_configurationCopy:l,lineItem:c,savedScreen:g,loading:h,summary:C,addOns:y,summaryPrices:w,optionByItemId:A,attributesByQLIId:u,optionByPublishKey:I,showYearlyPricing:m,isYearlyPricingExist:v,isChangedConfiguration:_,isRecurringPricingSchema:d,changePricingScheme:N,createQuoteProducts:U,resetConfigurator:T,fetchQuoteLineItems:B,getRecords:ee,getProductCrossSells:Z,initConfigurator:k,maintainQuoteConfiguration:P,evaluateConfigSelection:Q}}),c5={class:"ect-p-4 ect-flex ect-gap-2 ect-items-center ect-justify-between ect-border-b ect-border-gray-200"},u5={class:"ect-flex ect-items-center ect-gap-3"},f5={class:"ect-text-xl ect-font-semibold ect-text-gray-700 ect-leading-relaxed"},d5={key:0,class:"ect-flex ect-gap-1.5 ect-items-center"},h5=b("span",{class:"ect-text-sm ect-text-gray-700 ect-leading-relaxed"},"Saving configuration...",-1),p5={key:1,class:"ect-flex ect-gap-1.5 ect-items-center"},g5=b("span",{class:"ect-text-sm ect-text-gray-700 ect-leading-relaxed"},"Configuration Saved Successfully",-1),m5={key:1,class:"ect-flex ect-flex-col ect-gap-4 ect-flex-1 ect-overflow-y-auto ect-mb-16"},v5=b("h3",{class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0"},"You may consider these products",-1),y5={class:"ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0 ect-overflow-y-auto"},_5=["data-test-id"],b5={class:"ect-flex-1 ect-flex ect-flex-col ect-gap-2"},C5={class:"ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight"},w5={class:"ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed ect-line-clamp-2"},x5={class:"ect-flex ect-flex-row ect-justify-between ect-items-center"},k5={class:"ect-text-sm ect-font-semibold ect-text-gray-800"},E5={key:2,class:"ect-flex ect-flex-col ect-gap-4 ect-m-4 ect-flex-1 ect-overflow-y-auto"},O5=b("h3",{class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed"},"What do you want to do next?",-1),S5={class:"ect-flex ect-flex-col ect-gap-4"},I5=["data-test-id","onClick"],A5={class:"ect-flex ect-items-center ect-justify-center"},T5={class:"ect-flex ect-flex-col ect-items-center ect-gap-2 ect-w-full"},N5=["data-test-id"],P5=["data-test-id"],L5={key:3,class:"ect-bg-light-bg-x ect-border-t ect-border-gray-200 ect-flex-shrink-0 ect-sticky ect-bottom-0 ect-pb-4"},R5={class:"ect-flex ect-flex-col ect-gap-4"},M5={class:"ect-text-lg ect-font-semibold ect-text-gray-700 ect-leading-relaxed ect-p-4 ect-pb-0"},q5={class:"ect-flex ect-flex-col ect-gap-4 ect-p-4 ect-pt-0 ect-overflow-y-auto"},j5={class:"ect-bg-white ect-border ect-border-gray-300 ect-rounded-md ect-p-3 ect-flex ect-flex-col","data-test-id":"configurator-recommend-card-next-product"},D5={class:"ect-flex-1 ect-flex ect-flex-col ect-gap-2"},B5={class:"ect-text-sm ect-font-semibold ect-text-gray-800 ect-leading-tight"},$5={class:"ect-text-sm ect-font-medium ect-text-gray-600 ect-leading-relaxed ect-line-clamp-2"},F5={class:"ect-flex ect-flex-row ect-justify-between ect-items-center"},V5={class:"ect-text-sm ect-font-semibold ect-text-gray-800"},H5={__name:"ConfiguratorRecommend",setup(e){const t=sn(),n=An(),r=Vi(),i=be(()=>t.configuration),o=ae(!0),a=ae(""),s=ae([{icon:"configuration",title:"Back to current Product Configuration",description:"Returns to the active product configuration page.",link:"/item/overview",action:"backToConfiguration"},{icon:"menu",title:"Back to Quote List Page",description:"Returns to the main quote list page.",link:"/quote-item",action:"backToQuoteList"}]),l=ae(null),p=ae([]),c=async h=>{h.loading=!0,await t.createQuoteProducts(h),h.disabled=!0,h.loading=!1},f=h=>{h.action==="backToConfiguration"?t.savedScreen=!1:h.action==="backToQuoteList"?r.push("/quote-item?id="+n.quoteId):h.link&&r.push(h.link)};async function u(){const h=await t.fetchQuoteLineItems();console.info("getQuoteLineItems1:_quoteLineItems",h);const m=h.filter(v=>v.XX_ORD1__SYS_Configuration_Status2__c=="Needs Configuration").length;console.info("getQuoteLineItems2:needsConfigurationCount",m),a.value=`(${h.length-m}/${h.length})`;const d=h.find(v=>v.XX_ORD1__SYS_Configuration_Status2__c=="Needs Configuration"&&v.Id!=t.qliId);return console.info("getQuoteLineItems3:result",d),l.value=d?{Name:d.XX_ORD1__Line_Description__c,Description:d.XX_ORD1__Item__r.XX_ORD1__Product_Description__c,Price:d.XX_ORD1__Sales_Price__c,XX_ORD1__Item__c:d.XX_ORD1__Item__c,Id:d.Id}:null,console.info("getQuoteLineItems4:configueredProduct",l.value),h}async function g(){t.resetConfigurator(),r.push({path:"/configurator/"+l.value.XX_ORD1__Item__c+"/"+l.value.Id}),t.initConfigurator(l.value.XX_ORD1__Item__c,l.value.Id)}return Cn(async()=>{o.value=!0;const h=await u(),m=await t.getProductCrossSells(),d=new Set;h.forEach(v=>{d.add(v.XX_ORD1__Item__c)}),m.crossSells.forEach(v=>{v.disabled=d.has(v.XX_ORD1__Item__c)}),p.value=m.crossSells||[],o.value=!1}),(h,m)=>(X(),ne(Oe,null,[b("div",c5,[b("div",u5,[_e(Ge,{icon:"arrow",symbol:"",size:12,onClick:m[0]||(m[0]=d=>Xe(t).savedScreen=!1)}),b("h2",f5,ve(i.value.itemName),1)]),Xe(t).loading.save?(X(),ne("div",d5,[_e(kc,{svg:""}),h5])):(X(),ne("div",p5,[_e(Ge,{icon:"check",color:"#136E05",size:14,"data-test-id":"item-tabs-before-button-icon"}),g5]))]),o.value?(X(),Te(_a,{key:0,type:"recommendations",rows:4})):p.value.length>0?(X(),ne("div",m5,[v5,b("div",y5,[(X(!0),ne(Oe,null,ze(p.value,(d,v)=>(X(),ne("div",{key:d.Id||v,class:"ect-bg-white ect-border ect-border-gray-300 ect-rounded-md ect-p-3 ect-flex ect-flex-col","data-test-id":`configurator-recommend-card-${d.Id||v}`},[b("div",b5,[b("h4",C5,ve(d.Name),1),b("p",w5,ve(d.Description),1)]),b("div",x5,[b("div",k5,ve(h.$formatCurrency(d.Price)),1),_e(Nt,{btype:d.disabled?"secondary":"primary","button-style":d.disabled?"normal":"outlined",size:"medium",class:Ie({"ect-w-[120px]":d.loading}),loading:d.loading,disabled:d.disabled||d.loading,"data-test-id":`configurator-recommend-button-add-${d.Id||v}`,onClick:_=>c(d)},{default:De(()=>[Fe(ve(d.loading?"":d.disabled?"Added to Quote":"Add to Quote"),1)]),_:2},1032,["btype","button-style","class","loading","disabled","data-test-id","onClick"])])],8,_5))),128))])])):(X(),ne("div",E5,[O5,b("div",S5,[(X(!0),ne(Oe,null,ze(s.value,(d,v)=>(X(),ne("div",{key:d.title||v,class:"ect-bg-white ect-border ect-border-[#DEDEDE] ect-rounded-xl ect-p-4 md:ect-p-5 lg:ect-p-6 ect-flex ect-flex-col ect-items-center ect-gap-4 md:ect-gap-6 lg:ect-gap-8 ect-cursor-pointer ect-transition-all ect-duration-200 hover:ect-shadow-md hover:ect-border-gray-400","data-test-id":`configurator-recommend-redirect-card-${v}`,onClick:_=>f(d)},[b("div",A5,[_e(Ge,{icon:d.icon,size:20,color:"#000000","data-test-id":`configurator-recommend-redirect-icon-${v}`},null,8,["icon","data-test-id"])]),b("div",T5,[b("h4",{class:"ect-text-sm ect-font-semibold ect-text-[#5F5F5F] ect-text-center ect-leading-[1.43]","data-test-id":`configurator-recommend-redirect-title-${v}`},ve(d.title),9,N5),b("p",{class:"ect-text-sm ect-font-normal ect-text-[#828282] ect-text-center ect-leading-[1.71]","data-test-id":`configurator-recommend-redirect-description-${v}`},ve(d.description),9,P5)])],8,I5))),128))])])),l.value?(X(),ne("footer",L5,[b("div",R5,[b("h3",M5," Configuere next product from your quote "+ve(a.value),1),b("div",q5,[b("div",j5,[b("div",D5,[b("h4",B5,ve(l.value.Name),1),b("p",$5,ve(l.value.Description),1)]),b("div",F5,[b("div",V5,ve(h.$formatCurrency(l.value.Price)),1),_e(Nt,{btype:"primary","button-style":"filled",size:"medium","data-test-id":"configurator-recommend-button-add-next-product",onClick:g},{default:De(()=>[Fe(" Configure Now ")]),_:1})])])])])])):ye("",!0)],64))}},U5=["data-test-id"],z5=Ve({__name:"AppPill",props:{variant:{type:String,default:"",validator:e=>["success","error",""].includes(e)},dataTestId:{type:String,default:""}},setup(e){return(t,n)=>(X(),ne("span",{class:Ie(["ect-pill",{"ect-pill-success":e.variant==="success","ect-pill-error":e.variant==="error","ect-pill-default":!e.variant}]),"data-test-id":e.dataTestId},[Ze(t.$slots,"default",{},void 0,!0)],10,U5))}},[["__scopeId","data-v-c7f05fa0"]]),K5=["data-test-id"],Z5=["data-test-id"],Q5=["data-test-id","onClick"],X5=["data-test-id"],J5=Ve({__name:"AppTabsV2",props:{showTabs:{type:Boolean,default:!0},modelValue:{type:String,default:""},border:{type:Boolean,default:!1},tabs:{type:Array,required:!0,validator:e=>e.every(t=>typeof t=="object"&&t.title&&t.key&&(t.sections===void 0||Array.isArray(t.sections)))},dataTestId:{type:String,required:!0}},emits:["update:modelValue","tab-change"],setup(e,{emit:t}){const n=e,r=t,i=be(()=>{var a;return n.modelValue||((a=n.tabs[0])==null?void 0:a.key)||""}),o=a=>{r("update:modelValue",a),r("tab-change",a)};return(a,s)=>(X(),ne("div",{class:"ect-page-tabs","data-test-id":e.dataTestId},[e.showTabs?(X(),ne("div",{key:0,class:Ie(["ect-page-tabs-header",[{"ect-tab-border":e.border}]]),"data-test-id":`${e.dataTestId}-header`},[(X(!0),ne(Oe,null,ze(e.tabs,l=>(X(),ne("button",{key:l.key,class:Ie(["ect-page-tab-button",`ect-page-tab-button${i.value===l.key?"-active":""} ${l.tabClass||""}`]),"data-test-id":`${e.dataTestId}-tab-${l.key}`,onClick:p=>o(l.key)},[Fe(ve(l.title)+" ",1),l.pill!==void 0&&l.pill!==null?(X(),Te(z5,{key:0,class:"ect-ml-2",variant:l.pillStyle,"data-test-id":`${e.dataTestId}-tab-${l.key}-pill`},{default:De(()=>[Fe(ve(l.pill),1)]),_:2},1032,["variant","data-test-id"])):ye("",!0)],10,Q5))),128))],10,Z5)):ye("",!0),b("div",{class:"ect-page-tab-content","data-test-id":`${e.dataTestId}-content`},null,8,X5)],8,K5))}},[["__scopeId","data-v-f22cb1ed"]]),W5=["data-test-id"],G5=["disabled","data-test-id"],Y5=["value","disabled","data-test-id"],eh=["disabled","data-test-id"],zi={__name:"CounterButton",props:{value:{type:Number,required:!0,default:null},min:{type:Number,default:1},max:{type:Number,default:999},empty:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestId:{type:String,required:!0}},emits:["update:value","change"],setup(e,{emit:t}){const n=e,r=t,i=be(()=>n.min==null?0:n.min),o=be(()=>n.max==null?999:n.max),a=(y,w,A)=>Math.min(Math.max(y,w),A),s=y=>{if(y==null||y==="")return NaN;const w=Number(y);return Number.isFinite(w)?w:NaN},l=ae(null),p=ae(n.value??i.value),c=y=>{p.value=a(y,i.value,o.value)};n.value!==null&&c(n.value);const f=be(()=>p.value),u=be(()=>l.value!=null?l.value:String(f.value)),g=be(()=>n.disabled||f.value<=i.value),h=be(()=>n.disabled||f.value>=o.value);function m(y){y!==n.value&&(p.value=y,r("update:value",y),r("change",y))}function d(){if(g.value)return;const y=a(f.value-1,i.value,o.value);l.value=null,m(y)}function v(){if(h.value)return;const y=a(f.value+1,i.value,o.value);l.value=null,m(y)}function _(y){const A=String(y.target.value??"").replace(/\D+/g,"");l.value=A}function C(){const y=s(l.value),w=i.value,A=a(Number.isNaN(y)?w:y,i.value,o.value);l.value=null,m(A)}return(y,w)=>(X(),ne("div",{class:"ect-flex ect-items-center ect-gap-1","data-test-id":e.dataTestId},[b("button",{type:"button",class:Ie(["ect-h-7 ect-w-7 ect-border ect-border-gray ect-rounded-md ect-flex ect-items-center ect-justify-center ect-text-gray-700 ect-text-sm hover:ect-border-gray-400 ect-transition-colors ect-bg-white",{"ect-opacity-50":g.value,"ect-cursor-not-allowed":g.value}]),disabled:g.value,"data-test-id":`${e.dataTestId}-decrement`,onClick:d}," - ",10,G5),b("input",{type:"text",inputmode:"numeric",pattern:"[0-9]*",value:e.empty?"":u.value,disabled:e.disabled,class:"ect-h-7 ect-w-[48px] ect-px-2 ect-border ect-border-gray ect-rounded-md ect-text-center ect-text-sm ect-font-medium ect-text-gray-900 focus:ect-outline-none focus:ect-border-gray-400 ect-bg-white","data-test-id":`${e.dataTestId}-input`,onInput:_,onBlur:C},null,40,Y5),b("button",{type:"button",class:Ie(["ect-h-7 ect-w-7 ect-border ect-border-gray ect-rounded-md ect-flex ect-items-center ect-justify-center ect-text-gray-700 ect-text-sm hover:ect-border-gray-400 ect-transition-colors ect-bg-white",{"ect-opacity-50":h.value,"ect-cursor-not-allowed":h.value}]),disabled:h.value,"data-test-id":`${e.dataTestId}-increment`,onClick:v}," + ",10,eh)],8,W5))}},th={class:"ect-flex ect-justify-end ect-items-center ect-gap-2.5 ect-px-6 ect-pb-6 ect-pt-4 ect-bg-white ect-border-t ect-border-gray-300 ect-shadow-[0_-2px_4px_0px_rgba(0,0,0,0.11)]","data-test-id":"configurator-footer"},nh={"data-test-id":"configurator-footer-quantity"},rh={class:"ect-flex ect-justify-end ect-items-center ect-gap-6 ect-px-8 ect-py-0 ect-flex-1","data-test-id":"configurator-footer-prices"},ih=["data-test-id"],oh=["data-test-id"],ah=["data-test-id"],sh=["data-test-id"],lh={__name:"ConfiguratorFooter",props:{item:{type:Object,required:!0,default:()=>{}},disabled:{type:Boolean,default:!1},btnText:{type:String,default:"Save"}},emits:["update:qty","continue"],setup(e,{emit:t}){const n=sn(),r=e,i=ae(r.item),o=be(()=>{const l=n.summaryPrices,p=[];return n.isRecurringPricingSchema?(p.push({label:"One Time Price",value:l.oneTimePrice,highlight:!1}),p.push({label:n.showYearlyPricing?"Yearly Price":"Monthly Price",value:l.recurringPrice,highlight:!1})):(p.push({label:"Base Price",value:l.basePrice,highlight:!1}),p.push({label:"Add Ons",value:l.addOns,highlight:!1}),p.push({label:"Total Price",value:l.total,highlight:!1})),p}),a=t,s=()=>{r.disabled||a("continue")};return(l,p)=>(X(),ne("footer",th,[b("div",nh,[_e(zi,{value:i.value.qty,"onUpdate:value":p[0]||(p[0]=c=>i.value.qty=c),min:1,max:999,disabled:e.disabled,"is-selected":!0,"data-test-id":"configurator-footer-counter-button"},null,8,["value","disabled"])]),b("div",rh,[(X(!0),ne(Oe,null,ze(o.value,(c,f)=>(X(),ne(Oe,{key:f},[b("div",{class:"ect-flex ect-flex-col ect-justify-center","data-test-id":`configurator-footer-price-${f}`},[b("span",{class:"ect-text-xs ect-font-normal ect-text-gray-500 ect-text-left","data-test-id":`configurator-footer-price-label-${f}`},ve(c.label),9,oh),b("span",{class:Ie(["ect-text-left",c.highlight?"ect-text-lg ect-font-bold ect-text-green-700":"ect-text-sm ect-font-medium ect-text-gray-800 "]),"data-test-id":`configurator-footer-price-value-${f}`},ve(l.$formatCurrency(c.value)),11,ah)],8,ih),f<o.value.length-1?(X(),ne("div",{key:0,class:"ect-w-0 ect-h-5 ect-border-l ect-border-gray-400","data-test-id":`configurator-footer-divider-${f}`},null,8,sh)):ye("",!0)],64))),128))]),_e(Nt,{class:"ect-min-w-[100px]",btype:e.disabled?"secondary":"primary",disabled:e.disabled,"button-style":"primary",size:"medium","data-test-id":"configurator-footer-button-continue",onClick:s},{default:De(()=>[Fe(ve(e.btnText),1)]),_:1},8,["btype","disabled"])]))}},ch={class:"ect-w-full ect-bg-white ect-mb-4","data-test-id":"configurator-type-section"},uh={class:"ect-sticky ect-top-0 ect-z-30 ect-bg-white ect-shadow-sm ect-p-3 ect-px-4 ect-border-b ect-border-gray-200 ect-flex ect-justify-between ect-items-center","data-test-id":"configurator-type-header-sticky"},fh={class:"ect-flex ect-flex-col"},dh={class:"ect-font-bold ect-text-text-success ect-leading-tight"},hh=["innerHTML"],ph={key:0,class:"ect-flex ect-items-center ect-gap-2 ect-px-2 ect-py-1","data-test-id":"configurator-type-message"},gh={class:"ect-text-xs ect-font-medium ect-text-gray-600 ect-leading-tight ect-min-w-[190px]"},mh={class:"ect-divide-y ect-divide-gray-100 ect-overflow-y-auto"},vh={__name:"ConfiguratorType",props:{title:{type:String,required:!0},description:{type:String,default:""},message:{type:String,default:""}},setup(e){return(t,n)=>(X(),ne("section",ch,[b("header",uh,[b("div",fh,[b("h2",dh,ve(e.title),1),e.description?(X(),ne("p",{key:0,class:"ect-mt-1 ect-text-xs ect-text-gray-500 ect-leading-tight",innerHTML:e.description},null,8,hh)):ye("",!0)]),e.message?(X(),ne("div",ph,[_e(Ge,{icon:"info",symbol:"",color:"#198708",size:14,"data-test-id":"configurator-type-message-icon"}),b("span",gh,ve(e.message),1)])):ye("",!0)]),b("div",mh,[Ze(t.$slots,"default")])]))}},yh={__name:"ShadowDisplay",props:{content:{type:String,required:!0}},setup(e){const t=e,n=ae(null);let r=null;return wn(()=>{n.value&&!r&&(r=n.value.attachShadow({mode:"open"}),r.innerHTML=t.content)}),St(()=>t.content,i=>{r&&(r.innerHTML=i)}),(i,o)=>(X(),ne("div",{ref_key:"host",ref:n},null,512))}},_h=["data-test-id"],bh=["data-test-id"],Ch=["data-test-id"],wh=[b("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("g",{id:"Group"},[b("path",{id:"Vector",d:"M7 1.3125V12.6875",stroke:"#A86200","stroke-linecap":"round","stroke-linejoin":"round"}),b("path",{id:"Vector_2",d:"M1.3125 7H12.6875",stroke:"#A86200","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)],xh=["data-test-id"],kh=["data-test-id"],Eh=["data-test-id"],Oh=["data-test-id"],Sh=["data-test-id"],Ih=["data-test-id","innerHTML"],Zt={__name:"Tag",props:{label:{type:String,default:""},value:{type:String,default:""},addButton:{type:Boolean,default:!1},editButton:{type:Boolean,default:!1},dataTestId:{type:String,default:""}},setup(e){const t=e,n=be(()=>{const r=t.value;if(typeof r!="string")return!1;const i=new DOMParser().parseFromString(r,"text/html");return Array.from(i.body.childNodes).some(o=>o.nodeType===1)});return(r,i)=>e.addButton?(X(),ne("div",{key:0,class:"ect-bg-orange-4 ect-flex ect-gap-1 ect-justify-center ect-items-center ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-text-center ect-rounded-md ect-border ect-border-solid ect-border-orange-secondary","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-orange-secondary ect-flex ect-items-center ect-gap-1","data-test-id":`${e.dataTestId}-content`},[b("div",{"data-test-id":`${e.dataTestId}-add-icon`},wh,8,Ch),Fe(" "+ve(e.label),1)],8,bh)],8,_h)):e.editButton?(X(),ne("div",{key:1,class:"ect-bg-white ect-flex ect-gap-1 ect-justify-center ect-items-center ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-text-center ect-rounded-md ect-border ect-border-solid ect-border-success","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-success ect-flex ect-items-center ect-gap-1","data-test-id":`${e.dataTestId}-content`},ve(e.label),9,kh)],8,xh)):(X(),ne("div",{key:2,class:"ect-bg-white ect-px-2 ect-py-0.5 ect-text-xs ect-font-medium ect-rounded-md ect-border ect-border-solid ect-border-neutral-200","data-test-id":e.dataTestId},[b("span",{class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-zinc-500","data-test-id":`${e.dataTestId}-label`},ve(e.label),9,Oh),e.value?(X(),ne("span",{key:0,class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-zinc-500","data-test-id":`${e.dataTestId}-separator`}," : ",8,Sh)):ye("",!0),n.value?(X(),Te(yh,{key:1,content:e.value},null,8,["content"])):e.value?(X(),ne("span",{key:2,class:"ect-self-stretch ect-my-auto ect-text-xs ect-leading-5 ect-text-neutral-700","data-test-id":`${e.dataTestId}-value`,innerHTML:e.value},null,8,Ih)):ye("",!0)],8,Eh))}},Ah=["data-test-id"],Th=["data-test-id"],Nh=["data-test-id"],Ph=["type","step","min","data-test-id"],wa=Ve({__name:"InputEdit",props:{modelValue:{type:String,required:!0},type:{type:String,default:"string",validator:e=>["string","number","currency"].includes(e)},tag:{type:String,default:"span"},disabled:{type:Boolean,default:!1},dataTestId:{type:String,required:!0}},emits:["update:modelValue","change"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=ae(!1),a=ae(!1),s=ae(""),l=ae(null),p=be(()=>r.type==="currency"?v(r.modelValue):r.type==="number"?_(r.modelValue):r.modelValue),c=be(()=>r.type==="string"?"text":"number"),f=be(()=>r.type==="currency"?"0.01":void 0),u=be(()=>r.type==="currency"?"0":void 0),g=()=>{r.disabled||(r.type==="currency"?s.value=parseFloat(r.modelValue)||"0.00":r.type==="number"?s.value=parseFloat(r.modelValue)||"0":s.value=r.modelValue,o.value=!0,Ut(()=>{l.value&&(l.value.focus(),l.value.select())}))},h=()=>{let C=s.value;if(r.type==="number"||r.type==="currency"){const y=parseFloat(s.value);isNaN(y)?C=r.modelValue:C=r.type==="currency"?y.toFixed(2):y.toString()}C!==r.modelValue&&(i("update:modelValue",C),i("change",C)),o.value=!1},m=()=>{s.value=r.modelValue,o.value=!1},d=()=>{o.value&&h()},v=C=>!C||isNaN(C)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(parseFloat(C)),_=C=>!C||isNaN(C)?"0":new Intl.NumberFormat("en-US").format(parseFloat(C));return St(()=>r.modelValue,C=>{o.value||(s.value=C)}),t({startEditing:g,saveChanges:h,cancelEditing:m}),(C,y)=>{const w=Ff("click-outside");return X(),ne("div",{class:"ect-relative ect-inline-block ect-min-w-[60px] ect-h-[30px]","data-test-id":e.dataTestId,onMouseenter:y[1]||(y[1]=A=>a.value=!0),onMouseleave:y[2]||(y[2]=A=>a.value=!1)},[o.value?bn((X(),ne("div",{key:1,class:"ect-w-full ect-h-full","data-test-id":`${e.dataTestId}-input-wrapper`},[bn(b("input",{ref_key:"inputRef",ref:l,"onUpdate:modelValue":y[0]||(y[0]=A=>s.value=A),type:c.value,step:f.value,min:u.value,class:Ie(["ect-w-full ect-h-full ect-px-3 ect-bg-white ect-border ect-border-green-500 ect-rounded-sm ect-text-gray-700 ect-text-base ect-font-sans ect-outline-none ect-duration-200",C.$attrs.class]),"data-test-id":`${e.dataTestId}-input`,onKeyup:[qr(h,["enter"]),qr(m,["esc"])],onBlur:h},null,42,Ph),[[l1,s.value]])],8,Nh)),[[w,d]]):(X(),ne("div",{key:0,class:Ie(["ect-flex ect-items-center ect-gap-2 ect-rounded ect-transition-colors ect-duration-200",{"ect-cursor-pointer":!e.disabled}]),"data-test-id":`${e.dataTestId}-display`,onClick:g},[(X(),Te(yl(e.tag),la(C.$attrs,{class:"ect-m-0 ect-text-inherit","data-test-id":`${e.dataTestId}-text`}),{default:De(()=>[Fe(ve(p.value)+" ",1),_e(Ge,{class:Ie(a.value&&!e.disabled?"ect-visible":"ect-invisible"),icon:"edit",size:"12",color:"#828282","data-test-id":`${e.dataTestId}-edit-icon`},null,8,["class","data-test-id"])]),_:1},16,["data-test-id"]))],10,Th))],40,Ah)}}},[["__scopeId","data-v-07416d80"]]),Lh=["data-test-id","data-publish-key"],Rh={key:0,class:"ect-text-xs ect-text-gray-500 ect-text-white ect-font-medium ect-leading-tight ect-absolute ect-top-[-.7rem] ect-left-[-1rem] ect-bg-text-success ect-rounded-xl ect-px-2 ect-py-1"},Mh={key:1,class:"ect-flex ect-items-start ect-gap-4 ect-p-3 ect-px-4"},qh={key:0,class:"ect-w-16 ect-h-16 ect-flex ect-items-center ect-justify-center ect-rounded-lg ect-bg-gray-200 ect-flex-shrink-0"},jh=["src","alt"],Dh={class:"ect-flex-1 ect-min-w-0"},Bh={class:"ect-flex ect-gap-4 ect-items-center ect-justify-between"},$h={class:"ect-flex ect-flex-row ect-gap-3"},Fh=b("div",{class:"ect-w-px ect-h-auto ect-bg-gray-200 ect-mx-2"},null,-1),Vh={class:"ect-flex ect-flex-col ect-max-w-[125px]"},Hh={class:"ect-flex ect-items-start ect-justify-center ect-ml-2 ect-mt-0"},Uh=["innerHTML"],zh={key:0,class:"ect-flex ect-flex-wrap ect-gap-2.5 ect-mt-2"},Kh=["data-test-id"],Zh=["data-test-id"],Qh={key:1,class:"ect-inline-block ect-mb-2"},Xh={key:2,class:"ect-flex ect-flex-col ect-gap-3 ect-p-3 ect-h-full ect-justify-between"},Jh={class:"ect-flex ect-items-start ect-gap-2"},Wh={class:"ect-w-16 ect-h-16 ect-rounded-lg ect-bg-gray-200 ect-flex-shrink-0 ect-overflow-hidden"},Gh=["src","alt"],Yh={class:"ect-flex-1 ect-min-w-0"},e9={class:"ect-text-sm ect-font-semibold ect-text-gray-900 ect-leading-tight"},t9={class:"ect-mt-1 ect-text-sm ect-text-gray-700 ect-leading-tight"},n9={class:"ect-flex ect-items-start ect-justify-center ect-ml-2 ect-mt-0"},r9={key:0,class:"ect-flex ect-flex-wrap ect-gap-1.5"},i9=["data-test-id"],o9=["data-test-id"],a9={key:1,class:"ect-inline-block ect-mb-2"},s9={class:"ect-flex ect-justify-between ect-items-center"},l9={class:"ect-flex ect-flex-col"},c9=b("p",{class:"ect-text-xs ect-text-gray-500 ect-font-medium ect-leading-tight"},"Price",-1),u9={key:3,"data-test-id":"configurator-item-slot-details",class:"ect-bg-white ect-rounded-md"},f9={__name:"ConfiguratorItem",props:{item:{type:Object,required:!0},name:{type:String,required:!0},description:{type:String,default:""},imageUrl:{type:String,default:""},price:{type:Number,required:!0},quantity:{type:Number,default:1},selected:{type:Boolean,default:!1},tags:{type:Array,default:()=>[]},attributes:{type:Array,default:()=>[]},size:{type:Number,default:1},minQuantity:{type:Number,default:null},maxQuantity:{type:Number,default:null},showImage:{type:Boolean,default:!1},option:{type:Object,default:null},isAttributes:{type:Boolean,default:!1},showAttributes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:quantity","update:name","edit-attributes"],setup(e,{emit:t}){const n=e,r=t,i=ae(null),o=ae(0),a=ae(n.item),s=be(()=>a.value.relationshipInfo.relationship==="Kit"?"ect-bg-green-3 ect-border-gray-200 ect-border-success":n.disabled?"ect-bg-light-bg-x ect-border-gray-200":n.selected?"ect-bg-green-3 ect-border-gray-200 ect-border-success":"ect-bg-white ect-border-gray-200 hover:ect-border-success"),l=be({get:()=>n.quantity,set:h=>r("update:quantity",h)}),p=be({get:()=>n.name,set:h=>r("update:name",h)}),c=h=>{r("update:quantity",h)},f=be(()=>{if(o.value===0)return n.tags;const m=Math.floor(o.value/120);return n.tags.slice(0,Math.max(1,m))}),u=be(()=>Math.max(0,n.tags.length-f.value.length)),g=()=>{if(i.value){const h=i.value,m=80,d=120,v=32,_=64;o.value=h.offsetWidth-m-d-v-_}};return wn(()=>{Ut(()=>{g()})}),St(()=>n.tags,()=>{Ut(()=>{g()})},{deep:!0}),wn(()=>{window.addEventListener("resize",g)}),(h,m)=>(X(),ne("div",{ref_key:"containerRef",ref:i,class:Ie(["ect-w-full ect-rounded-md ect-border-1 ect-transition-colors ect-relative",s.value]),"data-test-id":`configurator-item-${e.item.itemId}`,"data-publish-key":e.item.publishKey},[e.item.relationshipInfo.relationship==="Kit"?(X(),ne("div",Rh," KIT ")):ye("",!0),e.size===1?(X(),ne("div",Mh,[e.showImage?(X(),ne("div",qh,[e.imageUrl?(X(),ne("img",{key:0,src:e.imageUrl,alt:p.value,class:"ect-w-full ect-h-full ect-object-cover"},null,8,jh)):(X(),Te(Ge,{key:1,disabled:"",icon:"image",symbol:"",size:20,color:"#ACACAC"}))])):ye("",!0),b("div",Dh,[b("div",Bh,[_e(wa,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=d=>p.value=d),tag:"h3",class:"ect-text-sm ect-font-semibold ect-text-gray-900 ect-leading-tight"},null,8,["modelValue"]),b("div",$h,[b("div",{onClick:m[2]||(m[2]=Tt(()=>{},["stop"]))},[_e(zi,{value:l.value,"onUpdate:value":m[1]||(m[1]=d=>l.value=d),min:e.minQuantity,max:e.maxQuantity,"data-test-id":`configurator-item-counter-${e.item.itemId}`,onChange:c},null,8,["value","min","max","data-test-id"])]),Fh,b("div",Vh,[_e(wa,{modelValue:a.value.price,"onUpdate:modelValue":m[3]||(m[3]=d=>a.value.price=d),tag:"p",type:"currency",class:"ect-text-base ect-font-bold"},null,8,["modelValue"])]),b("div",Hh,[Ze(h.$slots,"selection-control")])])]),b("p",{class:"ect-mt-2 ect-text-sm ect-text-gray-700 ect-leading-tight",innerHTML:e.description},null,8,Uh),e.isAttributes&&e.showAttributes&&e.selected?(X(),ne("div",zh,[a.value.getTags().length>0?(X(),ne(Oe,{key:0},[(X(!0),ne(Oe,null,ze(f.value,(d,v)=>(X(),ne("span",{key:v,class:"ect-inline-block"},[_e(Zt,{label:d.label,value:d.value},null,8,["label","value"])]))),128)),u.value>0?(X(),ne("button",{key:0,type:"button",class:"ect-text-xs ect-text-gray-700 ect-border ect-border-gray-300 ect-rounded-md ect-px-2 ect-py-0.5","data-test-id":`configurator-item-button-more-tags-${e.item.itemId}`,onClick:m[4]||(m[4]=Tt(()=>{},["stop"]))}," +"+ve(u.value)+" more ",9,Kh)):ye("",!0),e.selected?(X(),ne("button",{key:1,"data-test-id":`configurator-item-button-edit-attributes-${e.item.itemId}`,onClick:m[5]||(m[5]=d=>r("edit-attributes"))},[_e(Zt,{label:"Edit attributes","edit-button":""})],8,Zh)):ye("",!0)],64)):(X(),ne("span",Qh,[b("button",{"data-test-id":"configurator-info-button-add-attributes",onClick:m[6]||(m[6]=d=>r("edit-attributes"))},[_e(Zt,{label:"Add attributes","add-button":""})])]))])):ye("",!0)])])):(X(),ne("div",Xh,[b("div",Jh,[b("div",Wh,[e.imageUrl?(X(),ne("img",{key:0,src:e.imageUrl,alt:e.name,class:"ect-w-full ect-h-full ect-object-cover"},null,8,Gh)):ye("",!0)]),b("div",Yh,[b("h3",e9,ve(e.name),1),b("p",t9,ve(e.description),1)]),b("div",n9,[Ze(h.$slots,"selection-control")])]),e.isAttributes&&e.showAttributes&&e.selected?(X(),ne("div",r9,[a.value.getTags().length>0?(X(),ne(Oe,{key:0},[(X(!0),ne(Oe,null,ze(f.value,(d,v)=>(X(),ne("span",{key:v,class:"ect-inline-block"},[_e(Zt,{label:d.label,value:d.value},null,8,["label","value"])]))),128)),u.value>0?(X(),ne("button",{key:0,type:"button",class:"ect-text-xs ect-text-gray-700 ect-border ect-border-gray-300 ect-rounded-md ect-px-2 ect-py-0.5","data-test-id":`configurator-item-button-more-tags-${e.item.itemId}`,onClick:m[7]||(m[7]=Tt(()=>{},["stop"]))}," +"+ve(u.value)+" more ",9,i9)):ye("",!0),e.selected?(X(),ne("button",{key:1,class:"ect-ml-auto","data-test-id":`configurator-item-button-edit-attributes-${e.item.itemId}`,onClick:m[8]||(m[8]=d=>r("edit-attributes"))},[_e(Zt,{label:"Edit attributes","edit-button":""})],8,o9)):ye("",!0)],64)):(X(),ne("span",a9,[b("button",{"data-test-id":"configurator-info-button-add-attributes",onClick:m[9]||(m[9]=d=>r("edit-attributes"))},[_e(Zt,{label:"Add attributes","add-button":""})])]))])):ye("",!0),b("div",s9,[b("div",{onClick:m[11]||(m[11]=Tt(()=>{},["stop"]))},[_e(zi,{value:l.value,"onUpdate:value":m[10]||(m[10]=d=>l.value=d),min:e.minQuantity,max:e.maxQuantity,"data-test-id":`configurator-item-counter-${e.item.itemId}`,onChange:c},null,8,["value","min","max","data-test-id"])]),b("div",l9,[c9,_e(wa,{modelValue:a.value.price,"onUpdate:modelValue":m[12]||(m[12]=d=>a.value.price=d),tag:"p",type:"currency",class:"ect-w-[125px] ect-text-base ect-font-bold"},null,8,["modelValue"])])])])),e.selected&&e.isAttributes?(X(),ne("div",u9,[Ze(h.$slots,"default")])):ye("",!0)],10,Lh))}},d9={"af-ZA":",","sq-AL":",","ar-DZ":",","ar-BH":"٫","ar-EG":"٫","ar-IQ":"٫","ar-JO":"٫","ar-KW":"٫","ar-LB":"٫","ar-LY":",","ar-MA":",","ar-OM":"٫","ar-QA":"٫","ar-SA":"٫","ar-SD":"٫","ar-SY":"٫","ar-TN":",","ar-AE":"٫","ar-YE":"٫","hy-AM":",","az-AZ":",","bn-BD":".","bn-IN":".","eu-ES":",","be-BY":",","bs-BA":",","bg-BG":",","my-MM":".","ca-ES":",","ca-ES-EURO":",","zh-CN":".","zh-CN-PINYIN":".","zh-CN-STROKE":".","zh-HK":".","zh-HK-STROKE":".","zh-MO":".","zh-SG":".","zh-TW":".","zh-TW-STROKE":".","hr-HR":",","cs-CZ":",","da-DK":",","nl-AW":",","nl-BE":",","nl-NL":",","nl-SR":",","dz-BT":".","en-AG":".","en-AU":".","en-BS":".","en-BB":".","en-BZ":".","en-BM":".","en-BW":".","en-CM":".","en-CA":".","en-DE":",","en-KY":".","en-ER":".","en-FK":".","en-FJ":".","en-GM":".","en-GH":".","en-GI":".","en-GY":".","en-HK":".","en-IN":".","en-ID":".","en-IE":".","en-IE-EURO":".","en-JM":".","en-KE":".","en-LR":".","en-MG":".","en-MW":".","en-MY":".","en-MU":".","en-NA":".","en-NZ":".","en-NG":".","en-PK":".","en-PG":".","en-PH":".","en-RW":".","en-WS":".","en-SC":".","en-SL":".","en-SG":".","en-SX":".","en-SB":".","en-ZA":",","en-SH":".","en-SZ":".","en-TZ":".","en-TO":".","en-TT":".","en-UG":".","en-GB":".","en-US":".","en-VU":".","et-EE":",","fi-FI":",","fi-FI-EURO":",","fr-BE":",","fr-CA":",","fr-KM":",","fr-FR":",","fr-FR-EURO":",","fr-GN":",","fr-HT":",","fr-LU":",","fr-MR":",","fr-MC":",","fr-CH":",","fr-WF":",","ka-GE":",","de-AT":",","de-AT-EURO":",","de-BE":",","de-DE":",","de-DE-EURO":",","de-LU":",","de-LU-EURO":",","de-CH":".","el-GR":",","gu-IN":".","iw-IL":".","hi-IN":".","hu-HU":",","is-IS":",","in-ID":",","ga-IE":".","it-IT":",","it-CH":".","ja-JP":".","kn-IN":".","kk-KZ":",","km-KH":",","ko-KP":".","ko-KR":".","ky-KG":",","lo-LA":",","lv-LV":",","lt-LT":",","lu-CD":",","lb-LU":",","mk-MK":",","ms-BN":",","ms-MY":".","ml-IN":".","mt-MT":".","mi-NZ":".","mr-IN":".","ne-NP":".","no-NO":",","ps-AF":"٫","fa-IR":"٫","pl-PL":",","pt-AO":",","pt-BR":",","pt-CV":",","pt-MZ":",","pt-PT":",","pt-ST":",","ro-MD":",","ro-RO":",","rm-CH":".","rn-BI":",","ru-KZ":",","ru-RU":",","sr-BA":",","sr-RS":",","sh-BA":",","sh-ME":",","sh-ME-USD":",","sh-CS":",","sk-SK":",","sl-SI":",","so-DJ":".","so-SO":".","es-AR":",","es-BO":",","es-CL":",","es-CO":",","es-CR":",","es-CU":".","es-DO":".","es-EC":",","es-SV":".","es-GT":".","es-HN":".","es-MX":".","es-NI":".","es-PA":".","es-PY":",","es-PE":".","es-PR":".","es-ES":",","es-ES-EURO":",","es-US":".","es-UY":",","es-VE":",","sw-KE":".","sv-SE":",","tl-PH":".","tg-TJ":",","ta-IN":".","ta-LK":".","te-IN":".","th-TH":".","ti-ET":".","tr-TR":",","uk-UA":",","ur-PK":".","uz-LATN-UZ":",","vi-VN":",","cy-GB":".","xh-ZA":".","yo-BJ":".","zu-ZA":"."},h9={name:"CustomInput",components:{AppIcon:Ge},props:{editMode:{type:Boolean,default:!0},type:{type:String,default:"text"},max:{type:Number,default:500},label:{type:String,default:""},name:{type:String,default:""},showLabel:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},isReadOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},highlight:{type:Boolean,default:!1},placeholder:{type:String,default:""},error:{type:[Boolean,String],default:!1},cssClass:{type:Object,default:()=>({})},tooltip:{type:String,default:null},locale:{type:String,default:"en-US"},icon:{type:String,default:null},itooltip:{type:String,default:null},icolor:{type:String,default:"#7d7d7d"},ihover:{type:String,default:"#57c046"},icustom:{type:Boolean,default:!1},idisabled:{type:Boolean,default:!1},height:{type:Number,default:32},textAlignment:{type:String,default:"left"},decimalPrecision:{type:Number,default:0},allowNegatives:{type:Boolean,default:!1},size:{type:String,default:"medium"},dataTestId:{type:String,required:!0}},emits:["update:modelValue","iclick","blur"],data(){return{initialValue:"",decimalSeprator:".",ctrl:!1}},computed:{getValue(){return this.modelValue?this.type==="currency"?String(this.modelValue).replace(".",this.decimalSeprator):String(this.modelValue):""},error_message(){return typeof this.error=="string"?this.error:this.error===""?!1:this.error===!0?`${this.label||"Field"} is required`:this.error},isHighlight(){return(this.initialValue===""||this.initialValue===null)&&(this.modelValue===""||this.modelValue===null)?!1:this.initialValue!==this.modelValue}},created(){this.initialValue=this.modelValue,this.decimalSeprator=this.type==="currency"?d9[this.locale]:"."},methods:{handlerInput(e){const t=e.target.value;this.type==="currency"?this.$emit("update:modelValue",t.replace(this.decimalSeprator,".")):this.$emit("update:modelValue",t)},preventNonNumeric(e){if(this.type==="number"){const t=this.decimalPrecision,n=e.target.value,r=e.key;if(["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(r)||this.allowNegatives&&r==="-")return;if(r==="."&&t===0){e.preventDefault();return}if(r==="."&&n.includes(".")){e.preventDefault();return}if(r==="."||n.includes(".")&&!n.endsWith(".")&&r!=="Backspace"){const i=n.split(".");if(i.length>1&&i[1].length>=t){e.preventDefault();return}}if(isNaN(r)&&![".","Backspace","Tab"].includes(r)){e.preventDefault();return}}if(e.key==="Backspace"||this.ctrl)return!0;if(e.key==="Control"&&(this.ctrl=!0),this.type==="currency"||this.type==="number"){if(!this.getValue.includes(this.decimalSeprator)&&e.key===this.decimalSeprator)return!0;/[\deE+\-]/.test(e.key)||e.preventDefault()}return!0},handlerKeyup(e){e.key==="Control"&&(this.ctrl=!1)}}},p9=["data-test-id"],g9=["for","data-test-id"],m9=["data-test-id"],v9=["id","type","name","disabled","placeholder","value","maxlength","readonly","data-test-id"],y9=["data-test-id"],_9=["data-test-id"];function b9(e,t,n,r,i,o){const a=Or("AppIcon");return X(),ne("div",{class:"input","data-test-id":n.dataTestId},[n.label&&n.showLabel?(X(),ne("label",{key:0,class:Ie({error_color:!!n.error}),for:n.label,"data-test-id":`${n.dataTestId}-label`},[Fe(ve(n.label)+" ",1),n.required?(X(),ne("span",{key:0,class:Ie({error_color:!!n.error})},"*",2)):ye("",!0)],10,g9)):ye("",!0),n.editMode?(X(),ne("div",{key:1,class:Ie(["input-wrapper ect-w-full",{errorBorder_color:!!n.error,highlight:o.isHighlight&&n.highlight}]),"data-test-id":`${n.dataTestId}-wrapper`},[n.icon?(X(),Te(a,{key:0,class:"input-wrapper_icon",icon:n.icon,hover:n.ihover,color:n.icolor,size:19,disabled:n.idisabled,custom:n.icustom,tooltip:n.itooltip,"data-test-id":`${n.dataTestId}-icon`,direction:"top-right",onClick:t[0]||(t[0]=s=>e.$emit("iclick"))},null,8,["icon","hover","color","disabled","custom","tooltip","data-test-id"])):ye("",!0),b("input",{id:n.label,class:Ie(`ectheme-input-box ${n.size}`),type:n.type,style:tt({width:n.icon?"calc(100% - 36px)":"100%",height:`${n.height}px`,textAlign:n.textAlignment}),name:n.name,disabled:n.disabled,placeholder:n.placeholder,value:o.getValue,maxlength:n.max,readonly:n.isReadOnly,"data-test-id":`${n.dataTestId}-input`,onInput:t[1]||(t[1]=(...s)=>o.handlerInput&&o.handlerInput(...s)),onKeydown:t[2]||(t[2]=(...s)=>o.preventNonNumeric&&o.preventNonNumeric(...s)),onKeyup:t[3]||(t[3]=(...s)=>o.handlerKeyup&&o.handlerKeyup(...s)),onBlur:t[4]||(t[4]=s=>e.$emit("blur"))},null,46,v9)],10,m9)):ye("",!0),n.editMode?ye("",!0):(X(),ne("p",{key:2,class:"value","data-test-id":`${n.dataTestId}-value`},ve(o.getValue),9,y9)),o.error_message?(X(),ne("div",{key:3,class:"error_tooltip error_tooltip-bottom-right","data-test-id":`${n.dataTestId}-error`},ve(o.error_message),9,_9)):ye("",!0)],8,p9)}const C9=Ve(h9,[["render",b9],["__scopeId","data-v-032ca141"]]),w9={name:"AtomSpinner",props:{dataTestId:{type:String,default:""}}},x9=["data-test-id"];function k9(e,t,n,r,i,o){return X(),ne("div",{class:"spinner","data-test-id":n.dataTestId},null,8,x9)}const E9={name:"CustomDropdown",components:{AppIcon:Ge,AtomSpinner:Ve(w9,[["render",k9],["__scopeId","data-v-771ed032"]])},props:{label:{type:String,default:""},placeholder:{type:String,default:""},options:{type:Array,default:()=>[]},display:{type:Array,default:()=>[]},modelValue:{type:String,default:""},error:{type:[Boolean,String],default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},select:{type:Boolean,default:!1},lookup:{type:Boolean,default:!1},search:{type:Boolean,default:!1},badge:{type:String,default:void 0},highlight:{type:Boolean,default:!1},property:{type:Object,default:()=>({key:"value",value:"label",assigned:"assigned"})},dropdownTheme:{type:String,default:"light"},icon:{type:String,default:""},size:{type:String,default:"medium"},dataTestId:{type:String,required:!0}},emits:["search","focus-in","focus-out","update:modelValue"],data:()=>({inputFocused:!1,value:"",isHover:!1,highlightedIndex:-1,initialValue:"",teleportStyle:{position:"absolute",top:"0px",left:"0px",width:"0px"}}),computed:{isHighlight(){return(this.initialValue===""||this.initialValue==null)&&(this.modelValue===""||this.modelValue==null)?!1:this.initialValue!==this.modelValue},error_message(){return this.error===""?!1:this.error===!0?`${this.label||"Field"} is required`:this.error},getOptions(){if(this.select&&this.search){const e=this.value.toLowerCase();return this.options.filter(t=>JSON.stringify(t).toLowerCase().includes(e))}else return this.options},getSelected(){let e=null;if(this.modelValue)e=this.options.find(t=>t[this.property.key]===this.modelValue);else if(!this.search){const t=this.options.find(n=>n[this.property.key]==="");t?e=t:this.placeholder?e={[this.property.value]:this.placeholder,[this.property.key]:""}:e={[this.property.value]:"--Select--",[this.property.key]:""}}return e||{[this.property.value]:this.placeholder||"--Select--",[this.property.key]:""}},shouldShowAbove(){if(!this.$refs.triggerElement)return!1;const e=this.$refs.triggerElement.getBoundingClientRect(),t=250,n=window.innerHeight-e.bottom,r=e.top;return n<t&&r>t},dropdownStyle(){if(!this.$refs.triggerElement)return{};const e=this.$refs.triggerElement.getBoundingClientRect(),t=250,n=window.innerHeight-e.bottom,r=e.top,i=n<t&&r>t;return{position:"absolute",top:i?"auto":"100%",bottom:i?"100%":"auto",left:"0",width:"100%",zIndex:1e3}}},created(){this.initialValue=this.modelValue},mounted(){window.addEventListener("resize",this.updateDropdownPosition),window.addEventListener("scroll",this.updateDropdownPosition,!0)},beforeUnmount(){window.removeEventListener("resize",this.updateDropdownPosition),window.removeEventListener("scroll",this.updateDropdownPosition,!0)},methods:{updateDropdownPosition(){if(!this.$refs.triggerElement)return;const e=this.$refs.triggerElement.getBoundingClientRect(),t=200,n=window.innerHeight-e.bottom,r=e.top,i=n<t&&r>t;this.teleportStyle={position:"absolute",top:`${i?e.top-t:e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:9999}},subFieldsText(e){if(!this.display||this.display.length<1)return"";const t=[];return this.display.forEach(n=>{const r=this.subField(e,n);r&&t.push(r)}),t.join(" | ")},subField(e,t){return t?t.split(".").reduce((i,o)=>i[o]||"",e):e},lookupSearchHandler:bc(function(e){this.value=e,this.search&&!this.select&&this.$emit("search",e)}),handlerFocusIn(){!(this.modelValue&&this.search)&&!this.disabled&&(this.inputFocused=!0,this.updateDropdownPosition(),this.$emit("focus-in"))},updateSelected(e){e&&(this.value="",this.$emit("update:modelValue",e[this.property.key]),this.search&&!this.select&&!this.lookup&&this.$emit("search",""),this.onInputFocusedOut(!0))},clear(){this.disabled||(this.value="",this.$emit("update:modelValue",null),this.search&&!this.select&&!this.lookup&&this.$emit("search",""))},onInputFocusedOut(e=!1){(!this.isHover||e)&&!this.disabled&&(e?(this.highlightedIndex=-1,this.inputFocused=!1,this.$emit("focus-out")):setTimeout(()=>{this.highlightedIndex=-1,this.inputFocused=!1,this.$emit("focus-out")},100))},highlightNextOption(){this.highlightedIndex<this.options.length-1&&this.highlightedIndex++},highlightPreviousOption(){this.highlightedIndex>0&&this.highlightedIndex--}}},O9=["data-test-id"],S9=["for","data-test-id"],I9={class:"input-container-box ect-grow ect-w-full"},A9=["data-test-id"],T9=["placeholder","disabled","data-test-id"],N9=["data-test-id"],P9=["title","data-test-id"],L9=["data-test-id"],R9=["data-test-id"],M9=["data-test-id"],q9=["data-test-id"],j9=["data-test-id","onClick"],D9=["data-test-id"],B9={class:"ect-text-font-clr-light ect-flex ect-gap-2 ect-items-center ect-justify-between ect-w-full"},$9=["data-test-id"],F9=["data-test-id"],V9=["data-test-id"],H9=["title","data-test-id"],U9=["data-test-id"];function z9(e,t,n,r,i,o){const a=Or("AppIcon"),s=Or("AtomSpinner");return X(),ne("div",{ref:"dropdownWrapper",class:Ie(["customdropdown input-container",{dark:n.dropdownTheme==="dark"}]),"data-test-id":n.dataTestId,onMouseenter:t[7]||(t[7]=l=>e.isHover=!0),onMouseleave:t[8]||(t[8]=l=>e.isHover=!1)},[n.label?(X(),ne("label",{key:0,class:Ie(["title_label",{error_color:!!n.error}]),for:n.label,"data-test-id":`${n.dataTestId}-label`},[Fe(ve(n.label)+" ",1),n.required?(X(),ne("span",{key:0,class:Ie({error_color:!!n.error})},"*",2)):ye("",!0)],10,S9)):ye("",!0),b("div",I9,[b("div",{ref:"triggerElement",class:Ie(["input-wrapper ectheme-input-box ect-w-full",{disabled:n.disabled,"input-error":n.error,highlight:o.isHighlight&&n.highlight,"size-large":n.size==="large","size-medium":n.size==="medium"||n.size==="small"}]),"data-test-id":`${n.dataTestId}-trigger`,tabindex:"0",onFocusin:t[2]||(t[2]=(...l)=>o.handlerFocusIn&&o.handlerFocusIn(...l)),onFocusout:t[3]||(t[3]=l=>o.onInputFocusedOut(!1)),onKeydown:[t[4]||(t[4]=qr(l=>o.updateSelected(n.options[e.highlightedIndex]),["enter"])),t[5]||(t[5]=qr(Tt((...l)=>o.highlightPreviousOption&&o.highlightPreviousOption(...l),["prevent"]),["up"])),t[6]||(t[6]=qr(Tt((...l)=>o.highlightNextOption&&o.highlightNextOption(...l),["prevent"]),["down"]))]},[!n.modelValue&&n.search?bn((X(),ne("input",{key:0,ref:"searchInput","onUpdate:modelValue":t[0]||(t[0]=l=>e.value=l),type:"text",name:"search",placeholder:n.placeholder,autocomplete:"off",disabled:n.disabled,"data-test-id":`${n.dataTestId}-search-input`,onInput:t[1]||(t[1]=Tt(l=>o.lookupSearchHandler(l.target.value),["prevent"]))},null,40,T9)),[[Di,e.value]]):(X(),ne("div",{key:1,class:Ie(["selection-name ect-text-text-primary-dark ect-flex ect-justify-between ect-items-center",{"size-large":n.size==="large","size-medium":n.size==="medium"||n.size==="small"}]),"data-test-id":`${n.dataTestId}-selection`},[o.getSelected?(X(),ne(Oe,{key:0},[b("span",{title:o.getSelected[n.property.value],class:Ie(["ect-flex ect-items-center ect-gap-2 ect-font-medium",{"ect-text-font-clr-light":!n.modelValue}]),"data-test-id":`${n.dataTestId}-selection-value`},[n.icon?(X(),Te(a,{key:0,class:"ect-mr-0",icon:n.icon,size:14,color:"#5F5F5F","data-test-id":`${n.dataTestId}-selection-icon`},null,8,["icon","data-test-id"])):ye("",!0),Fe(" "+ve(o.getSelected[n.property.value]),1)],10,P9),n.badge&&o.getSelected[n.badge]?(X(),ne("span",{key:0,class:"badge ect-bg-btn ect-rounded-[5px] ect-py-[2px] ect-px-[10px] ect-text-white","data-test-id":`${n.dataTestId}-selection-badge`},ve(o.getSelected[n.badge]),9,L9)):ye("",!0)],64)):ye("",!0)],10,N9)),n.search?(X(),ne(Oe,{key:2},[n.loading?(X(),Te(s,{key:0,class:"spinner","data-test-id":`${n.dataTestId}-loading-spinner`},null,8,["data-test-id"])):(X(),ne("div",{key:1,class:"clear-button","data-test-id":`${n.dataTestId}-action-button`},[e.value||n.modelValue?(X(),Te(a,{key:0,disabled:n.disabled,icon:"close",color:"#acacac",size:10,"data-test-id":`${n.dataTestId}-clear-button`,onClick:o.clear},null,8,["disabled","data-test-id","onClick"])):(X(),Te(a,{key:1,icon:"search",size:14,color:"#acacac",disabled:n.disabled,"data-test-id":`${n.dataTestId}-search-button`},null,8,["disabled","data-test-id"]))],8,R9))],64)):(X(),Te(a,{key:3,class:"clear-button",color:o.error_message?"#ff6a6a":"#acacac",icon:"arrow_drop_up",size:12,disabled:n.disabled,"data-test-id":`${n.dataTestId}-dropdown-arrow`},null,8,["color","disabled","data-test-id"]))],42,A9),o.error_message?(X(),ne("div",{key:0,class:"error_tooltip error_tooltip-bottom-right","data-test-id":`${n.dataTestId}-error`},ve(o.error_message),9,M9)):ye("",!0),o.getOptions&&e.inputFocused&&!n.disabled&&(n.select||n.lookup)?(X(),ne("div",{key:1,ref:"dropdown",class:Ie(["dropdown",{"dropdown-above":o.shouldShowAbove}]),style:tt(o.dropdownStyle),"data-test-id":`${n.dataTestId}-dropdown`},[(X(!0),ne(Oe,null,ze(o.getOptions,(l,p)=>(X(),ne("div",{key:l[n.property.key],class:Ie(["dropdown-item",{highlighted:p===e.highlightedIndex,"ect-pointer-events-none":l[n.property.assigned]}]),"data-test-id":`${n.dataTestId}-option-${p}`,onClick:c=>o.updateSelected(l)},[b("div",{class:"name ect-items-center","data-test-id":`${n.dataTestId}-option-${p}-name`},[b("span",B9,[b("span",{class:Ie({"ect-text-zinc-400":l[n.property.assigned]}),"data-test-id":`${n.dataTestId}-option-${p}-value`},ve(l[n.property.value]==null?"Key and Value is Wrong":l[n.property.value]),11,$9),l[n.property.assigned]?(X(),ne("span",{key:0,class:"ect-text-xs ect-leading-4 ect-text-zinc-600","data-test-id":`${n.dataTestId}-option-${p}-assigned`},"Assigned",8,F9)):ye("",!0)]),n.badge?(X(),ne("span",{key:0,class:"badge ect-bg-btn ect-rounded-[5px] ect-py-[2px] ect-px-[10px] ect-text-white","data-test-id":`${n.dataTestId}-option-${p}-badge`},ve(l[n.badge]),9,V9)):ye("",!0)],8,D9),b("div",{class:"info",title:o.subFieldsText(l),"data-test-id":`${n.dataTestId}-option-${p}-info`},[b("span",null,ve(o.subFieldsText(l)),1)],8,H9)],10,j9))),128)),!o.getOptions.length&&!n.loading&&(e.value||n.select)?(X(),ne("div",{key:0,class:"no-items-found","data-test-id":`${n.dataTestId}-no-options`}," no options found ",8,U9)):ye("",!0)],14,q9)):ye("",!0)])],42,O9)}const Tc=Ve(E9,[["render",z9],["__scopeId","data-v-5ae4f6dc"]]);var ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pc={exports:{}};/*!
29
29
  * Quill Editor v1.3.7
30
30
  * https://quilljs.com/
31
31
  * Copyright (c) 2014, Jason Chen
@@ -65,7 +65,7 @@
65
65
  `),ie}function oe(Y,ie){if(B(Y)&&Y.nextElementSibling!=null&&!Q(ie,`
66
66
 
67
67
  `)){var se=Y.offsetHeight+parseFloat(Z(Y).marginTop)+parseFloat(Z(Y).marginBottom);Y.nextElementSibling.offsetTop>Y.offsetTop+se*1.5&&ie.insert(`
68
- `)}return ie}function ce(Y,ie){var se={},ue=Y.style||{};return ue.fontStyle&&Z(Y).fontStyle==="italic"&&(se.italic=!0),ue.fontWeight&&(Z(Y).fontWeight.startsWith("bold")||parseInt(Z(Y).fontWeight)>=700)&&(se.bold=!0),Object.keys(se).length>0&&(ie=M(ie,se)),parseFloat(ue.textIndent||0)>0&&(ie=new f.default().insert(" ").concat(ie)),ie}function le(Y,ie){var se=Y.data;if(Y.parentNode.tagName==="O:P")return ie.insert(se.trim());if(se.trim().length===0&&Y.parentNode.classList.contains("ql-clipboard"))return ie;if(!Z(Y.parentNode).whiteSpace.startsWith("pre")){var ue=function(pe,ge){return ge=ge.replace(/[^\u00a0]/g,""),ge.length<1&&pe?" ":ge};se=se.replace(/\r\n/g," ").replace(/\n/g," "),se=se.replace(/\s\s+/g,ue.bind(ue,!0)),(Y.previousSibling==null&&B(Y.parentNode)||Y.previousSibling!=null&&B(Y.previousSibling))&&(se=se.replace(/^\s+/,ue.bind(ue,!1))),(Y.nextSibling==null&&B(Y.parentNode)||Y.nextSibling!=null&&B(Y.nextSibling))&&(se=se.replace(/\s+$/,ue.bind(ue,!1)))}return ie.insert(se)}r.default=P,r.matchAttributor=q,r.matchBlot=$,r.matchNewline=z,r.matchSpacing=oe,r.matchText=le},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(6),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(){return c(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"optimize",value:function(v){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);g.blotName="bold",g.tagName=["STRONG","B"],r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var o=function(){function k(E,L){var V=[],K=!0,W=!1,te=void 0;try{for(var fe=E[Symbol.iterator](),ee;!(K=(ee=fe.next()).done)&&(V.push(ee.value),!(L&&V.length===L));K=!0);}catch(j){W=!0,te=j}finally{try{!K&&fe.return&&fe.return()}finally{if(W)throw te}}return V}return function(E,L){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return k(E,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function k(E,L){for(var V=0;V<L.length;V++){var K=L[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(E,K.key,K)}}return function(E,L,V){return L&&k(E.prototype,L),V&&k(E,V),E}}(),s=i(2),l=v(s),p=i(0),c=v(p),f=i(5),u=v(f),g=i(10),h=v(g),m=i(9),d=v(m);function v(k){return k&&k.__esModule?k:{default:k}}function _(k,E,L){return E in k?Object.defineProperty(k,E,{value:L,enumerable:!0,configurable:!0,writable:!0}):k[E]=L,k}function C(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}function y(k,E){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:k}function w(k,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);k.prototype=Object.create(E&&E.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(k,E):k.__proto__=E)}var A=(0,h.default)("quill:toolbar"),I=function(k){w(E,k);function E(L,V){C(this,E);var K=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,L,V));if(Array.isArray(K.options.container)){var W=document.createElement("div");N(W,K.options.container),L.container.parentNode.insertBefore(W,L.container),K.container=W}else typeof K.options.container=="string"?K.container=document.querySelector(K.options.container):K.container=K.options.container;if(!(K.container instanceof HTMLElement)){var te;return te=A.error("Container required for toolbar",K.options),y(K,te)}return K.container.classList.add("ql-toolbar"),K.controls=[],K.handlers={},Object.keys(K.options.handlers).forEach(function(fe){K.addHandler(fe,K.options.handlers[fe])}),[].forEach.call(K.container.querySelectorAll("button, select"),function(fe){K.attach(fe)}),K.quill.on(u.default.events.EDITOR_CHANGE,function(fe,ee){fe===u.default.events.SELECTION_CHANGE&&K.update(ee)}),K.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var fe=K.quill.selection.getRange(),ee=o(fe,1),j=ee[0];K.update(j)}),K}return a(E,[{key:"addHandler",value:function(V,K){this.handlers[V]=K}},{key:"attach",value:function(V){var K=this,W=[].find.call(V.classList,function(fe){return fe.indexOf("ql-")===0});if(W){if(W=W.slice(3),V.tagName==="BUTTON"&&V.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){A.warn("ignoring attaching to disabled format",W,V);return}if(c.default.query(W)==null){A.warn("ignoring attaching to nonexistent format",W,V);return}}var te=V.tagName==="SELECT"?"change":"click";V.addEventListener(te,function(fe){var ee=void 0;if(V.tagName==="SELECT"){if(V.selectedIndex<0)return;var j=V.options[V.selectedIndex];j.hasAttribute("selected")?ee=!1:ee=j.value||!1}else V.classList.contains("ql-active")?ee=!1:ee=V.value||!V.hasAttribute("value"),fe.preventDefault();K.quill.focus();var O=K.quill.selection.getRange(),P=o(O,1),M=P[0];if(K.handlers[W]!=null)K.handlers[W].call(K,ee);else if(c.default.query(W).prototype instanceof c.default.Embed){if(ee=prompt("Enter "+W),!ee)return;K.quill.updateContents(new l.default().retain(M.index).delete(M.length).insert(_({},W,ee)),u.default.sources.USER)}else K.quill.format(W,ee,u.default.sources.USER);K.update(M)}),this.controls.push([W,V])}}},{key:"update",value:function(V){var K=V==null?{}:this.quill.getFormat(V);this.controls.forEach(function(W){var te=o(W,2),fe=te[0],ee=te[1];if(ee.tagName==="SELECT"){var j=void 0;if(V==null)j=null;else if(K[fe]==null)j=ee.querySelector("option[selected]");else if(!Array.isArray(K[fe])){var O=K[fe];typeof O=="string"&&(O=O.replace(/\"/g,'\\"')),j=ee.querySelector('option[value="'+O+'"]')}j==null?(ee.value="",ee.selectedIndex=-1):j.selected=!0}else if(V==null)ee.classList.remove("ql-active");else if(ee.hasAttribute("value")){var P=K[fe]===ee.getAttribute("value")||K[fe]!=null&&K[fe].toString()===ee.getAttribute("value")||K[fe]==null&&!ee.getAttribute("value");ee.classList.toggle("ql-active",P)}else ee.classList.toggle("ql-active",K[fe]!=null)})}}]),E}(d.default);I.DEFAULTS={};function S(k,E,L){var V=document.createElement("button");V.setAttribute("type","button"),V.classList.add("ql-"+E),L!=null&&(V.value=L),k.appendChild(V)}function N(k,E){Array.isArray(E[0])||(E=[E]),E.forEach(function(L){var V=document.createElement("span");V.classList.add("ql-formats"),L.forEach(function(K){if(typeof K=="string")S(V,K);else{var W=Object.keys(K)[0],te=K[W];Array.isArray(te)?T(V,W,te):S(V,W,te)}}),k.appendChild(V)})}function T(k,E,L){var V=document.createElement("select");V.classList.add("ql-"+E),L.forEach(function(K){var W=document.createElement("option");K!==!1?W.setAttribute("value",K):W.setAttribute("selected","selected"),V.appendChild(W)}),k.appendChild(V)}I.DEFAULTS={container:null,handlers:{clean:function(){var E=this,L=this.quill.getSelection();if(L!=null)if(L.length==0){var V=this.quill.getFormat();Object.keys(V).forEach(function(K){c.default.query(K,c.default.Scope.INLINE)!=null&&E.quill.format(K,!1)})}else this.quill.removeFormat(L,u.default.sources.USER)},direction:function(E){var L=this.quill.getFormat().align;E==="rtl"&&L==null?this.quill.format("align","right",u.default.sources.USER):!E&&L==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",E,u.default.sources.USER)},indent:function(E){var L=this.quill.getSelection(),V=this.quill.getFormat(L),K=parseInt(V.indent||0);if(E==="+1"||E==="-1"){var W=E==="+1"?1:-1;V.direction==="rtl"&&(W*=-1),this.quill.format("indent",K+W,u.default.sources.USER)}},link:function(E){E===!0&&(E=prompt("Enter link URL:")),this.quill.format("link",E,u.default.sources.USER)},list:function(E){var L=this.quill.getSelection(),V=this.quill.getFormat(L);E==="check"?V.list==="checked"||V.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",E,u.default.sources.USER)}}},r.default=I,r.addControls=N},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(28),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(d,v){c(this,m);var _=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,d));return _.label.innerHTML=v,_.container.classList.add("ql-color-picker"),[].slice.call(_.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(C){C.classList.add("ql-primary")}),_}return o(m,[{key:"buildItem",value:function(v){var _=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,v);return _.style.backgroundColor=v.getAttribute("value")||"",_}},{key:"selectItem",value:function(v,_){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,_);var C=this.label.querySelector(".ql-color-label"),y=v&&v.getAttribute("data-value")||"";C&&(C.tagName==="line"?C.style.stroke=y:C.style.fill=y)}}]),m}(l.default);r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(28),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(d,v){c(this,m);var _=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,d));return _.container.classList.add("ql-icon-picker"),[].forEach.call(_.container.querySelectorAll(".ql-picker-item"),function(C){C.innerHTML=v[C.getAttribute("data-value")||""]}),_.defaultItem=_.container.querySelector(".ql-selected"),_.selectItem(_.defaultItem),_}return o(m,[{key:"selectItem",value:function(v,_){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,_),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),m}(l.default);r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function l(p,c){for(var f=0;f<c.length;f++){var u=c[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,u.key,u)}}return function(p,c,f){return c&&l(p.prototype,c),f&&l(p,f),p}}();function a(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(p,c){var f=this;a(this,l),this.quill=p,this.boundsContainer=c||document.body,this.root=p.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return o(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var f=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),m=0;if(h.right>g.right&&(m=g.right-h.right,this.root.style.left=f+m+"px"),h.left<g.left&&(m=g.left-h.left,this.root.style.left=f+m+"px"),h.bottom>g.bottom){var d=h.bottom-h.top,v=c.bottom-c.top+d;this.root.style.top=u-v+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function T(k,E){var L=[],V=!0,K=!1,W=void 0;try{for(var te=k[Symbol.iterator](),fe;!(V=(fe=te.next()).done)&&(L.push(fe.value),!(E&&L.length===E));V=!0);}catch(ee){K=!0,W=ee}finally{try{!V&&te.return&&te.return()}finally{if(K)throw W}}return L}return function(k,E){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return T(k,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function T(k,E,L){k===null&&(k=Function.prototype);var V=Object.getOwnPropertyDescriptor(k,E);if(V===void 0){var K=Object.getPrototypeOf(k);return K===null?void 0:T(K,E,L)}else{if("value"in V)return V.value;var W=V.get;return W===void 0?void 0:W.call(L)}},s=function(){function T(k,E){for(var L=0;L<E.length;L++){var V=E[L];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(k,V.key,V)}}return function(k,E,L){return E&&T(k.prototype,E),L&&T(k,L),k}}(),l=i(3),p=C(l),c=i(8),f=C(c),u=i(43),g=C(u),h=i(27),m=C(h),d=i(15),v=i(41),_=C(v);function C(T){return T&&T.__esModule?T:{default:T}}function y(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function w(T,k){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:T}function A(T,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(T,k):T.__proto__=k)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=function(T){A(k,T);function k(E,L){y(this,k),L.modules.toolbar!=null&&L.modules.toolbar.container==null&&(L.modules.toolbar.container=I);var V=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E,L));return V.quill.container.classList.add("ql-snow"),V}return s(k,[{key:"extendToolbar",value:function(L){L.container.classList.add("ql-snow"),this.buildButtons([].slice.call(L.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(L.container.querySelectorAll("select")),_.default),this.tooltip=new N(this.quill,this.options.bounds),L.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(V,K){L.handlers.link.call(L,!K.format.link)})}}]),k}(g.default);S.DEFAULTS=(0,p.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){if(k){var E=this.quill.getSelection();if(E==null||E.length==0)return;var L=this.quill.getText(E);/^\S+@\S+\.\S+$/.test(L)&&L.indexOf("mailto:")!==0&&(L="mailto:"+L);var V=this.quill.theme.tooltip;V.edit("link",L)}else this.quill.format("link",!1)}}}}});var N=function(T){A(k,T);function k(E,L){y(this,k);var V=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E,L));return V.preview=V.root.querySelector("a.ql-preview"),V}return s(k,[{key:"listen",value:function(){var L=this;a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(V){L.root.classList.contains("ql-editing")?L.save():L.edit("link",L.preview.textContent),V.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(V){if(L.linkRange!=null){var K=L.linkRange;L.restoreFocus(),L.quill.formatText(K,"link",!1,f.default.sources.USER),delete L.linkRange}V.preventDefault(),L.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(V,K,W){if(V!=null){if(V.length===0&&W===f.default.sources.USER){var te=L.quill.scroll.descendant(m.default,V.index),fe=o(te,2),ee=fe[0],j=fe[1];if(ee!=null){L.linkRange=new d.Range(V.index-j,ee.length());var O=m.default.formats(ee.domNode);L.preview.textContent=O,L.preview.setAttribute("href",O),L.show(),L.position(L.quill.getBounds(L.linkRange));return}}else delete L.linkRange;L.hide()}})}},{key:"show",value:function(){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),k}(u.BaseTooltip);N.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=S},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(29),a=re(o),s=i(36),l=i(38),p=i(64),c=i(65),f=re(c),u=i(66),g=re(u),h=i(67),m=re(h),d=i(37),v=i(26),_=i(39),C=i(40),y=i(56),w=re(y),A=i(68),I=re(A),S=i(27),N=re(S),T=i(69),k=re(T),E=i(70),L=re(E),V=i(71),K=re(V),W=i(72),te=re(W),fe=i(73),ee=re(fe),j=i(13),O=re(j),P=i(74),M=re(P),Z=i(75),Q=re(Z),B=i(57),U=re(B),D=i(41),q=re(D),$=i(28),H=re($),J=i(59),R=re(J),z=i(60),oe=re(z),ce=i(61),le=re(ce),Y=i(108),ie=re(Y),se=i(62),ue=re(se);function re(pe){return pe&&pe.__esModule?pe:{default:pe}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":C.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":C.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":p.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":_.FontClass,"formats/size":C.SizeClass,"formats/blockquote":f.default,"formats/code-block":O.default,"formats/header":g.default,"formats/list":m.default,"formats/bold":w.default,"formats/code":j.Code,"formats/italic":I.default,"formats/link":N.default,"formats/script":k.default,"formats/strike":L.default,"formats/underline":K.default,"formats/image":te.default,"formats/video":ee.default,"formats/list/item":h.ListItem,"modules/formula":M.default,"modules/syntax":Q.default,"modules/toolbar":U.default,"themes/bubble":ie.default,"themes/snow":ue.default,"ui/icons":q.default,"ui/picker":H.default,"ui/icon-picker":oe.default,"ui/color-picker":R.default,"ui/tooltip":le.default},!0),r.default=a.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var o=function(){function m(d,v){for(var _=0;_<v.length;_++){var C=v[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(d,C.key,C)}}return function(d,v,_){return v&&m(d.prototype,v),_&&m(d,_),d}}(),a=function m(d,v,_){d===null&&(d=Function.prototype);var C=Object.getOwnPropertyDescriptor(d,v);if(C===void 0){var y=Object.getPrototypeOf(d);return y===null?void 0:m(y,v,_)}else{if("value"in C)return C.value;var w=C.get;return w===void 0?void 0:w.call(_)}},s=i(0),l=p(s);function p(m){return m&&m.__esModule?m:{default:m}}function c(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function f(m,d){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:m}function u(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(m,d):m.__proto__=d)}var g=function(m){u(d,m);function d(){return c(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return o(d,[{key:"add",value:function(_,C){if(C==="+1"||C==="-1"){var y=this.value(_)||0;C=C==="+1"?y+1:y-1}return C===0?(this.remove(_),!0):a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"add",this).call(this,_,C)}},{key:"canAdd",value:function(_,C){return a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,_,C)||a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,_,parseInt(C))}},{key:"value",value:function(_){return parseInt(a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,_))||void 0}}]),d}(l.default.Attributor.Class),h=new g("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(h,m){for(var d=0;d<m.length;d++){var v=m[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}return function(h,m,d){return m&&g(h.prototype,m),d&&g(h,d),h}}(),a=i(4),s=l(a);function l(g){return g&&g.__esModule?g:{default:g}}function p(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}function c(g,h){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:g}function f(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);g.prototype=Object.create(h&&h.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(g,h):g.__proto__=h)}var u=function(g){f(h,g);function h(){return p(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,null,[{key:"formats",value:function(d){return this.tagName.indexOf(d.tagName)+1}}]),h}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var o=function(){function y(w,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,A,I){return A&&y(w.prototype,A),I&&y(w,I),w}}(),a=function y(w,A,I){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,A);if(S===void 0){var N=Object.getPrototypeOf(w);return N===null?void 0:y(N,A,I)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(I)}},s=i(0),l=g(s),p=i(4),c=g(p),f=i(25),u=g(f);function g(y){return y&&y.__esModule?y:{default:y}}function h(y,w,A){return w in y?Object.defineProperty(y,w,{value:A,enumerable:!0,configurable:!0,writable:!0}):y[w]=A,y}function m(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function d(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function v(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var _=function(y){v(w,y);function w(){return m(this,w),d(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"format",value:function(I,S){I===C.blotName&&!S?this.replaceWith(l.default.create(this.statics.scope)):a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,I,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,S){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,S),this):(this.parent.unwrap(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,I,S))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:a(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,I)}}]),w}(c.default);_.blotName="list-item",_.tagName="LI";var C=function(y){v(w,y),o(w,null,[{key:"create",value:function(I){var S=I==="ordered"?"OL":"UL",N=a(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return(I==="checked"||I==="unchecked")&&N.setAttribute("data-checked",I==="checked"),N}},{key:"formats",value:function(I){if(I.tagName==="OL")return"ordered";if(I.tagName==="UL")return I.hasAttribute("data-checked")?I.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(A){m(this,w);var I=d(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,A)),S=function(T){if(T.target.parentNode===A){var k=I.statics.formats(A),E=l.default.find(T.target);k==="checked"?E.format("list","unchecked"):k==="unchecked"&&E.format("list","checked")}};return A.addEventListener("touchstart",S),A.addEventListener("mousedown",S),I}return o(w,[{key:"format",value:function(I,S){this.children.length>0&&this.children.tail.format(I,S)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,S){if(I instanceof _)a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,I,S);else{var N=S==null?this.length():S.offset(this),T=this.split(N);T.parent.insertBefore(I,T)}}},{key:"optimize",value:function(I){a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,I);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var S=l.default.create(this.statics.defaultChild);I.moveChildren(S),this.appendChild(S)}a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,I)}}]),w}(u.default);C.blotName="list",C.scope=l.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[_],r.ListItem=_,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(6),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(){return c(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),m}(l.default);g.blotName="script",g.tagName=["SUB","SUP"],r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="strike",f.tagName="S",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="underline",f.tagName="U",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function d(v,_){for(var C=0;C<_.length;C++){var y=_[C];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,_,C){return _&&d(v.prototype,_),C&&d(v,C),v}}(),a=function d(v,_,C){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,_);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:d(w,_,C)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(C)}},s=i(0),l=c(s),p=i(27);function c(d){return d&&d.__esModule?d:{default:d}}function f(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var h=["alt","height","width"],m=function(d){g(v,d);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(C,y){h.indexOf(C)>-1?y?this.domNode.setAttribute(C,y):this.domNode.removeAttribute(C):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,C,y)}}],[{key:"create",value:function(C){var y=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,C);return typeof C=="string"&&y.setAttribute("src",this.sanitize(C)),y}},{key:"formats",value:function(C){return h.reduce(function(y,w){return C.hasAttribute(w)&&(y[w]=C.getAttribute(w)),y},{})}},{key:"match",value:function(C){return/\.(jpe?g|gif|png)$/.test(C)||/^data:image\/.+;base64/.test(C)}},{key:"sanitize",value:function(C){return(0,p.sanitize)(C,["http","https","data"])?C:"//:0"}},{key:"value",value:function(C){return C.getAttribute("src")}}]),v}(l.default.Embed);m.blotName="image",m.tagName="IMG",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function d(v,_){for(var C=0;C<_.length;C++){var y=_[C];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,_,C){return _&&d(v.prototype,_),C&&d(v,C),v}}(),a=function d(v,_,C){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,_);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:d(w,_,C)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(C)}},s=i(4),l=i(27),p=c(l);function c(d){return d&&d.__esModule?d:{default:d}}function f(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var h=["height","width"],m=function(d){g(v,d);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(C,y){h.indexOf(C)>-1?y?this.domNode.setAttribute(C,y):this.domNode.removeAttribute(C):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,C,y)}}],[{key:"create",value:function(C){var y=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,C);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(C)),y}},{key:"formats",value:function(C){return h.reduce(function(y,w){return C.hasAttribute(w)&&(y[w]=C.getAttribute(w)),y},{})}},{key:"sanitize",value:function(C){return p.default.sanitize(C)}},{key:"value",value:function(C){return C.getAttribute("src")}}]),v}(s.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var o=function(){function C(y,w){for(var A=0;A<w.length;A++){var I=w[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(y,I.key,I)}}return function(y,w,A){return w&&C(y.prototype,w),A&&C(y,A),y}}(),a=function C(y,w,A){y===null&&(y=Function.prototype);var I=Object.getOwnPropertyDescriptor(y,w);if(I===void 0){var S=Object.getPrototypeOf(y);return S===null?void 0:C(S,w,A)}else{if("value"in I)return I.value;var N=I.get;return N===void 0?void 0:N.call(A)}},s=i(35),l=g(s),p=i(5),c=g(p),f=i(9),u=g(f);function g(C){return C&&C.__esModule?C:{default:C}}function h(C,y){if(!(C instanceof y))throw new TypeError("Cannot call a class as a function")}function m(C,y){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:C}function d(C,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);C.prototype=Object.create(y&&y.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(C,y):C.__proto__=y)}var v=function(C){d(y,C);function y(){return h(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(A){var I=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",A)),I}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),y}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var _=function(C){d(y,C),o(y,null,[{key:"register",value:function(){c.default.register(v,!0)}}]);function y(){h(this,y);var w=m(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return y}(u.default);r.FormulaBlot=v,r.default=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var o=function(){function A(I,S){for(var N=0;N<S.length;N++){var T=S[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(I,T.key,T)}}return function(I,S,N){return S&&A(I.prototype,S),N&&A(I,N),I}}(),a=function A(I,S,N){I===null&&(I=Function.prototype);var T=Object.getOwnPropertyDescriptor(I,S);if(T===void 0){var k=Object.getPrototypeOf(I);return k===null?void 0:A(k,S,N)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(N)}},s=i(0),l=m(s),p=i(5),c=m(p),f=i(9),u=m(f),g=i(13),h=m(g);function m(A){return A&&A.__esModule?A:{default:A}}function d(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function v(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function _(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var C=function(A){_(I,A);function I(){return d(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return o(I,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),a(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var T=this.domNode.textContent;this.cachedText!==T&&((T.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),I}(h.default);C.className="ql-syntax";var y=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(A){_(I,A),o(I,null,[{key:"register",value:function(){c.default.register(y,!0),c.default.register(C,!0)}}]);function I(S,N){d(this,I);var T=v(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,S,N));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var k=null;return T.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(k),k=setTimeout(function(){T.highlight(),k=null},T.options.interval)}),T.highlight(),T}return o(I,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(C).forEach(function(k){k.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),T!=null&&this.quill.setSelection(T,c.default.sources.SILENT)}}}]),I}(u.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var I=window.hljs.highlightAuto(A);return I.value}}(),interval:1e3},r.CodeBlock=C,r.CodeToken=y,r.default=w},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var o=function I(S,N,T){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,N);if(k===void 0){var E=Object.getPrototypeOf(S);return E===null?void 0:I(E,N,T)}else{if("value"in k)return k.value;var L=k.get;return L===void 0?void 0:L.call(T)}},a=function(){function I(S,N){for(var T=0;T<N.length;T++){var k=N[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,N,T){return N&&I(S.prototype,N),T&&I(S,T),S}}(),s=i(3),l=d(s),p=i(8),c=d(p),f=i(43),u=d(f),g=i(15),h=i(41),m=d(h);function d(I){return I&&I.__esModule?I:{default:I}}function v(I,S){if(!(I instanceof S))throw new TypeError("Cannot call a class as a function")}function _(I,S){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:I}function C(I,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);I.prototype=Object.create(S&&S.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(I,S):I.__proto__=S)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(I){C(S,I);function S(N,T){v(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=y);var k=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,N,T));return k.quill.container.classList.add("ql-bubble"),k}return a(S,[{key:"extendToolbar",value:function(T){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),m.default)}}]),S}(u.default);w.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(I){C(S,I);function S(N,T){v(this,S);var k=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,N,T));return k.quill.on(c.default.events.EDITOR_CHANGE,function(E,L,V,K){if(E===c.default.events.SELECTION_CHANGE)if(L!=null&&L.length>0&&K===c.default.sources.USER){k.show(),k.root.style.left="0px",k.root.style.width="",k.root.style.width=k.root.offsetWidth+"px";var W=k.quill.getLines(L.index,L.length);if(W.length===1)k.position(k.quill.getBounds(L));else{var te=W[W.length-1],fe=k.quill.getIndex(te),ee=Math.min(te.length()-1,L.index+L.length-fe),j=k.quill.getBounds(new g.Range(fe,ee));k.position(j)}}else document.activeElement!==k.textbox&&k.quill.hasFocus()&&k.hide()}),k}return a(S,[{key:"listen",value:function(){var T=this;o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var k=T.quill.getSelection();k!=null&&T.position(T.quill.getBounds(k))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var k=o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,T),E=this.root.querySelector(".ql-tooltip-arrow");if(E.style.marginLeft="",k===0)return k;E.style.marginLeft=-1*k-E.offsetWidth/2+"px"}}]),S}(f.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=A,r.default=w},function(n,r,i){n.exports=i(63)}]).default})})(Pc);var K9=Pc.exports;const xa=Nc(K9);var Qt=-1,Mt=1,Ct=0;function Br(e,t,n,r){if(e===t)return e?[[Ct,e]]:[];if(n!=null){var i=W9(e,t,n);if(i)return i}var o=ka(e,t),a=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=Ea(e,t);var s=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var l=Z9(e,t);return a&&l.unshift([Ct,a]),s&&l.push([Ct,s]),Rc(l,r),l}function Z9(e,t){var n;if(!e)return[[Mt,t]];if(!t)return[[Qt,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,o=r.indexOf(i);if(o!==-1)return n=[[Mt,r.substring(0,o)],[Ct,i],[Mt,r.substring(o+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Qt),n;if(i.length===1)return[[Qt,e],[Mt,t]];var a=X9(e,t);if(a){var s=a[0],l=a[1],p=a[2],c=a[3],f=a[4],u=Br(s,p),g=Br(l,c);return u.concat([[Ct,f]],g)}return Q9(e,t)}function Q9(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),o=i,a=2*i,s=new Array(a),l=new Array(a),p=0;p<a;p++)s[p]=-1,l[p]=-1;s[o+1]=0,l[o+1]=0;for(var c=n-r,f=c%2!==0,u=0,g=0,h=0,m=0,d=0;d<i;d++){for(var v=-d+u;v<=d-g;v+=2){var _=o+v,C;v===-d||v!==d&&s[_-1]<s[_+1]?C=s[_+1]:C=s[_-1]+1;for(var y=C-v;C<n&&y<r&&e.charAt(C)===t.charAt(y);)C++,y++;if(s[_]=C,C>n)g+=2;else if(y>r)u+=2;else if(f){var w=o+c-v;if(w>=0&&w<a&&l[w]!==-1){var A=n-l[w];if(C>=A)return Lc(e,t,C,y)}}}for(var I=-d+h;I<=d-m;I+=2){var w=o+I,A;I===-d||I!==d&&l[w-1]<l[w+1]?A=l[w+1]:A=l[w-1]+1;for(var S=A-I;A<n&&S<r&&e.charAt(n-A-1)===t.charAt(r-S-1);)A++,S++;if(l[w]=A,A>n)m+=2;else if(S>r)h+=2;else if(!f){var _=o+c-I;if(_>=0&&_<a&&s[_]!==-1){var C=s[_],y=o+C-_;if(A=n-A,C>=A)return Lc(e,t,C,y)}}}}return[[Qt,e],[Mt,t]]}function Lc(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),s=t.substring(r),l=Br(i,o),p=Br(a,s);return l.concat(p)}function ka(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return Mc(e.charCodeAt(i-1))&&i--,i}function Ea(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return qc(e.charCodeAt(e.length-i))&&i--,i}function X9(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(g,h,m){for(var d=g.substring(m,m+Math.floor(g.length/4)),v=-1,_="",C,y,w,A;(v=h.indexOf(d,v+1))!==-1;){var I=ka(g.substring(m),h.substring(v)),S=Ea(g.substring(0,m),h.substring(0,v));_.length<S+I&&(_=h.substring(v-S,v)+h.substring(v,v+I),C=g.substring(0,m-S),y=g.substring(m+I),w=h.substring(0,v-S),A=h.substring(v+I))}return _.length*2>=g.length?[C,y,w,A,_]:null}var o=i(n,r,Math.ceil(n.length/4)),a=i(n,r,Math.ceil(n.length/2)),s;if(!o&&!a)return null;a?o?s=o[4].length>a[4].length?o:a:s=a:s=o;var l,p,c,f;e.length>t.length?(l=s[0],p=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],p=s[3]);var u=s[4];return[l,p,c,f,u]}function Rc(e,t){e.push([Ct,""]);for(var n=0,r=0,i=0,o="",a="",s;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Mt:i++,a+=e[n][1],n++;break;case Qt:r++,o+=e[n][1],n++;break;case Ct:var l=n-i-r-1;if(t){if(l>=0&&Dc(e[l][1])){var p=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),o=p+o,a=p+a,!e[l][1]){e.splice(l,1),n--;var c=l-1;e[c]&&e[c][0]===Mt&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===Qt&&(r++,o=e[c][1]+o,c--),l=c}}if(jc(e[n][1])){var p=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),o+=p,a+=p}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(o.length>0||a.length>0){o.length>0&&a.length>0&&(s=ka(a,o),s!==0&&(l>=0?e[l][1]+=a.substring(0,s):(e.splice(0,0,[Ct,a.substring(0,s)]),n++),a=a.substring(s),o=o.substring(s)),s=Ea(a,o),s!==0&&(e[n][1]=a.substring(a.length-s)+e[n][1],a=a.substring(0,a.length-s),o=o.substring(0,o.length-s)));var f=i+r;o.length===0&&a.length===0?(e.splice(n-f,f),n=n-f):o.length===0?(e.splice(n-f,f,[Mt,a]),n=n-f+1):a.length===0?(e.splice(n-f,f,[Qt,o]),n=n-f+1):(e.splice(n-f,f,[Qt,o],[Mt,a]),n=n-f+2)}n!==0&&e[n-1][0]===Ct?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,o="",a="";break}}e[e.length-1][1]===""&&e.pop();var u=!1;for(n=1;n<e.length-1;)e[n-1][0]===Ct&&e[n+1][0]===Ct&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=!0)),n++;u&&Rc(e,t)}function Mc(e){return e>=55296&&e<=56319}function qc(e){return e>=56320&&e<=57343}function jc(e){return qc(e.charCodeAt(0))}function Dc(e){return Mc(e.charCodeAt(e.length-1))}function J9(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Oa(e,t,n,r){return Dc(e)||jc(r)?null:J9([[Ct,e],[Qt,t],[Mt,n],[Ct,r]])}function W9(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,o=e.length,a=t.length;if(r.length===0&&(i===null||i.length===0)){var s=r.index,l=e.slice(0,s),p=e.slice(s),c=i?i.index:null;e:{var f=s+a-o;if(c!==null&&c!==f||f<0||f>a)break e;var u=t.slice(0,f),g=t.slice(f);if(g!==p)break e;var h=Math.min(s,f),m=l.slice(0,h),d=u.slice(0,h);if(m!==d)break e;var v=l.slice(h),_=u.slice(h);return Oa(m,v,_,p)}e:{if(c!==null&&c!==s)break e;var C=s,u=t.slice(0,C),g=t.slice(C);if(u!==l)break e;var y=Math.min(o-C,a-C),w=p.slice(p.length-y),A=g.slice(g.length-y);if(w!==A)break e;var v=p.slice(0,p.length-y),_=g.slice(0,g.length-y);return Oa(l,v,_,w)}}if(r.length>0&&i&&i.length===0)e:{var m=e.slice(0,r.index),w=e.slice(r.index+r.length),h=m.length,y=w.length;if(a<h+y)break e;var d=t.slice(0,h),A=t.slice(a-y);if(m!==d||w!==A)break e;var v=e.slice(h,o-y),_=t.slice(h,a-y);return Oa(m,v,_,w)}return null}function Ki(e,t,n){return Br(e,t,n,!0)}Ki.INSERT=Mt,Ki.DELETE=Qt,Ki.EQUAL=Ct;var G9=Ki,Zi={exports:{}};Zi.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",p="[object Error]",c="[object Function]",f="[object GeneratorFunction]",u="[object Map]",g="[object Number]",h="[object Object]",m="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",C="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",S="[object Float64Array]",N="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",E="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",K="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,fe=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,j={};j[o]=j[a]=j[w]=j[A]=j[s]=j[l]=j[I]=j[S]=j[N]=j[T]=j[k]=j[u]=j[g]=j[h]=j[d]=j[v]=j[_]=j[C]=j[E]=j[L]=j[V]=j[K]=!0,j[p]=j[c]=j[y]=!1;var O=typeof ot=="object"&&ot&&ot.Object===Object&&ot,P=typeof self=="object"&&self&&self.Object===Object&&self,M=O||P||Function("return this")(),Z=t&&!t.nodeType&&t,Q=Z&&!0&&e&&!e.nodeType&&e,B=Q&&Q.exports===Z;function U(x,F){return x.set(F[0],F[1]),x}function D(x,F){return x.add(F),x}function q(x,F){for(var G=-1,he=x?x.length:0;++G<he&&F(x[G],G,x)!==!1;);return x}function $(x,F){for(var G=-1,he=F.length,Ae=x.length;++G<he;)x[Ae+G]=F[G];return x}function H(x,F,G,he){var Ae=-1,xe=x?x.length:0;for(he&&xe&&(G=x[++Ae]);++Ae<xe;)G=F(G,x[Ae],Ae,x);return G}function J(x,F){for(var G=-1,he=Array(x);++G<x;)he[G]=F(G);return he}function R(x,F){return x==null?void 0:x[F]}function z(x){var F=!1;if(x!=null&&typeof x.toString!="function")try{F=!!(x+"")}catch{}return F}function oe(x){var F=-1,G=Array(x.size);return x.forEach(function(he,Ae){G[++F]=[Ae,he]}),G}function ce(x,F){return function(G){return x(F(G))}}function le(x){var F=-1,G=Array(x.size);return x.forEach(function(he){G[++F]=he}),G}var Y=Array.prototype,ie=Function.prototype,se=Object.prototype,ue=M["__core-js_shared__"],re=function(){var x=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),pe=ie.toString,ge=se.hasOwnProperty,me=se.toString,Ce=RegExp("^"+pe.call(ge).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=B?M.Buffer:void 0,we=M.Symbol,je=M.Uint8Array,Se=ce(Object.getPrototypeOf,Object),Ke=Object.create,Dt=se.propertyIsEnumerable,ur=Y.splice,Bt=Object.getOwnPropertySymbols,ln=Ee?Ee.isBuffer:void 0,it=ce(Object.keys,Object),st=Ft(M,"DataView"),Jt=Ft(M,"Map"),$t=Ft(M,"Promise"),fr=Ft(M,"Set"),Zr=Ft(M,"WeakMap"),Vn=Ft(Object,"create"),Qr=mt(st),Hn=mt(Jt),Xr=mt($t),Jr=mt(fr),Wr=mt(Zr),Tn=we?we.prototype:void 0,ho=Tn?Tn.valueOf:void 0;function cn(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Ka(){this.__data__=Vn?Vn(null):{}}function Za(x){return this.has(x)&&delete this.__data__[x]}function Qa(x){var F=this.__data__;if(Vn){var G=F[x];return G===r?void 0:G}return ge.call(F,x)?F[x]:void 0}function po(x){var F=this.__data__;return Vn?F[x]!==void 0:ge.call(F,x)}function Gr(x,F){var G=this.__data__;return G[x]=Vn&&F===void 0?r:F,this}cn.prototype.clear=Ka,cn.prototype.delete=Za,cn.prototype.get=Qa,cn.prototype.has=po,cn.prototype.set=Gr;function lt(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Xa(){this.__data__=[]}function Ja(x){var F=this.__data__,G=hr(F,x);if(G<0)return!1;var he=F.length-1;return G==he?F.pop():ur.call(F,G,1),!0}function Wa(x){var F=this.__data__,G=hr(F,x);return G<0?void 0:F[G][1]}function Ga(x){return hr(this.__data__,x)>-1}function Ya(x,F){var G=this.__data__,he=hr(G,x);return he<0?G.push([x,F]):G[he][1]=F,this}lt.prototype.clear=Xa,lt.prototype.delete=Ja,lt.prototype.get=Wa,lt.prototype.has=Ga,lt.prototype.set=Ya;function dt(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function es(){this.__data__={hash:new cn,map:new(Jt||lt),string:new cn}}function ts(x){return zn(this,x).delete(x)}function ns(x){return zn(this,x).get(x)}function rs(x){return zn(this,x).has(x)}function is(x,F){return zn(this,x).set(x,F),this}dt.prototype.clear=es,dt.prototype.delete=ts,dt.prototype.get=ns,dt.prototype.has=rs,dt.prototype.set=is;function xt(x){this.__data__=new lt(x)}function os(){this.__data__=new lt}function as(x){return this.__data__.delete(x)}function ss(x){return this.__data__.get(x)}function ls(x){return this.__data__.has(x)}function cs(x,F){var G=this.__data__;if(G instanceof lt){var he=G.__data__;if(!Jt||he.length<n-1)return he.push([x,F]),this;G=this.__data__=new dt(he)}return G.set(x,F),this}xt.prototype.clear=os,xt.prototype.delete=as,xt.prototype.get=ss,xt.prototype.has=ls,xt.prototype.set=cs;function dr(x,F){var G=ni(x)||gr(x)?J(x.length,String):[],he=G.length,Ae=!!he;for(var xe in x)(F||ge.call(x,xe))&&!(Ae&&(xe=="length"||xs(xe,he)))&&G.push(xe);return G}function go(x,F,G){var he=x[F];(!(ge.call(x,F)&&bo(he,G))||G===void 0&&!(F in x))&&(x[F]=G)}function hr(x,F){for(var G=x.length;G--;)if(bo(x[G][0],F))return G;return-1}function Wt(x,F){return x&&ti(F,ii(F),x)}function Yr(x,F,G,he,Ae,xe,Re){var qe;if(he&&(qe=xe?he(x,Ae,xe,Re):he(x)),qe!==void 0)return qe;if(!Yt(x))return x;var Ye=ni(x);if(Ye){if(qe=Cs(x),!F)return ys(x,qe)}else{var Be=fn(x),ht=Be==c||Be==f;if(Co(x))return pr(x,F);if(Be==h||Be==o||ht&&!xe){if(z(x))return xe?x:{};if(qe=Gt(ht?{}:x),!F)return _s(x,Wt(qe,x))}else{if(!j[Be])return xe?x:{};qe=ws(x,Be,Yr,F)}}Re||(Re=new xt);var kt=Re.get(x);if(kt)return kt;if(Re.set(x,qe),!Ye)var nt=G?bs(x):ii(x);return q(nt||x,function(pt,ct){nt&&(ct=pt,pt=x[ct]),go(qe,ct,Yr(pt,F,G,he,ct,x,Re))}),qe}function us(x){return Yt(x)?Ke(x):{}}function fs(x,F,G){var he=F(x);return ni(x)?he:$(he,G(x))}function ds(x){return me.call(x)}function hs(x){if(!Yt(x)||Es(x))return!1;var F=ri(x)||z(x)?Ce:fe;return F.test(mt(x))}function ps(x){if(!yo(x))return it(x);var F=[];for(var G in Object(x))ge.call(x,G)&&G!="constructor"&&F.push(G);return F}function pr(x,F){if(F)return x.slice();var G=new x.constructor(x.length);return x.copy(G),G}function ei(x){var F=new x.constructor(x.byteLength);return new je(F).set(new je(x)),F}function Un(x,F){var G=F?ei(x.buffer):x.buffer;return new x.constructor(G,x.byteOffset,x.byteLength)}function mo(x,F,G){var he=F?G(oe(x),!0):oe(x);return H(he,U,new x.constructor)}function vo(x){var F=new x.constructor(x.source,te.exec(x));return F.lastIndex=x.lastIndex,F}function gs(x,F,G){var he=F?G(le(x),!0):le(x);return H(he,D,new x.constructor)}function ms(x){return ho?Object(ho.call(x)):{}}function vs(x,F){var G=F?ei(x.buffer):x.buffer;return new x.constructor(G,x.byteOffset,x.length)}function ys(x,F){var G=-1,he=x.length;for(F||(F=Array(he));++G<he;)F[G]=x[G];return F}function ti(x,F,G,he){G||(G={});for(var Ae=-1,xe=F.length;++Ae<xe;){var Re=F[Ae],qe=he?he(G[Re],x[Re],Re,G,x):void 0;go(G,Re,qe===void 0?x[Re]:qe)}return G}function _s(x,F){return ti(x,un(x),F)}function bs(x){return fs(x,ii,un)}function zn(x,F){var G=x.__data__;return ks(F)?G[typeof F=="string"?"string":"hash"]:G.map}function Ft(x,F){var G=R(x,F);return hs(G)?G:void 0}var un=Bt?ce(Bt,Object):Ss,fn=ds;(st&&fn(new st(new ArrayBuffer(1)))!=A||Jt&&fn(new Jt)!=u||$t&&fn($t.resolve())!=m||fr&&fn(new fr)!=v||Zr&&fn(new Zr)!=y)&&(fn=function(x){var F=me.call(x),G=F==h?x.constructor:void 0,he=G?mt(G):void 0;if(he)switch(he){case Qr:return A;case Hn:return u;case Xr:return m;case Jr:return v;case Wr:return y}return F});function Cs(x){var F=x.length,G=x.constructor(F);return F&&typeof x[0]=="string"&&ge.call(x,"index")&&(G.index=x.index,G.input=x.input),G}function Gt(x){return typeof x.constructor=="function"&&!yo(x)?us(Se(x)):{}}function ws(x,F,G,he){var Ae=x.constructor;switch(F){case w:return ei(x);case s:case l:return new Ae(+x);case A:return Un(x,he);case I:case S:case N:case T:case k:case E:case L:case V:case K:return vs(x,he);case u:return mo(x,he,G);case g:case _:return new Ae(x);case d:return vo(x);case v:return gs(x,he,G);case C:return ms(x)}}function xs(x,F){return F=F??i,!!F&&(typeof x=="number"||ee.test(x))&&x>-1&&x%1==0&&x<F}function ks(x){var F=typeof x;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?x!=="__proto__":x===null}function Es(x){return!!re&&re in x}function yo(x){var F=x&&x.constructor,G=typeof F=="function"&&F.prototype||se;return x===G}function mt(x){if(x!=null){try{return pe.call(x)}catch{}try{return x+""}catch{}}return""}function _o(x){return Yr(x,!0,!0)}function bo(x,F){return x===F||x!==x&&F!==F}function gr(x){return Os(x)&&ge.call(x,"callee")&&(!Dt.call(x,"callee")||me.call(x)==o)}var ni=Array.isArray;function mr(x){return x!=null&&wo(x.length)&&!ri(x)}function Os(x){return xo(x)&&mr(x)}var Co=ln||Is;function ri(x){var F=Yt(x)?me.call(x):"";return F==c||F==f}function wo(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=i}function Yt(x){var F=typeof x;return!!x&&(F=="object"||F=="function")}function xo(x){return!!x&&typeof x=="object"}function ii(x){return mr(x)?dr(x):ps(x)}function Ss(){return[]}function Is(){return!1}e.exports=_o}(Zi,Zi.exports);var Bc=Zi.exports,Qi={exports:{}};Qi.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",p="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",u="[object Error]",g="[object Function]",h="[object GeneratorFunction]",m="[object Map]",d="[object Number]",v="[object Null]",_="[object Object]",C="[object Promise]",y="[object Proxy]",w="[object RegExp]",A="[object Set]",I="[object String]",S="[object Symbol]",N="[object Undefined]",T="[object WeakMap]",k="[object ArrayBuffer]",E="[object DataView]",L="[object Float32Array]",V="[object Float64Array]",K="[object Int8Array]",W="[object Int16Array]",te="[object Int32Array]",fe="[object Uint8Array]",ee="[object Uint8ClampedArray]",j="[object Uint16Array]",O="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,Q={};Q[L]=Q[V]=Q[K]=Q[W]=Q[te]=Q[fe]=Q[ee]=Q[j]=Q[O]=!0,Q[s]=Q[l]=Q[k]=Q[c]=Q[E]=Q[f]=Q[u]=Q[g]=Q[m]=Q[d]=Q[_]=Q[w]=Q[A]=Q[I]=Q[T]=!1;var B=typeof ot=="object"&&ot&&ot.Object===Object&&ot,U=typeof self=="object"&&self&&self.Object===Object&&self,D=B||U||Function("return this")(),q=t&&!t.nodeType&&t,$=q&&!0&&e&&!e.nodeType&&e,H=$&&$.exports===q,J=H&&B.process,R=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),z=R&&R.isTypedArray;function oe(x,F){for(var G=-1,he=x==null?0:x.length,Ae=0,xe=[];++G<he;){var Re=x[G];F(Re,G,x)&&(xe[Ae++]=Re)}return xe}function ce(x,F){for(var G=-1,he=F.length,Ae=x.length;++G<he;)x[Ae+G]=F[G];return x}function le(x,F){for(var G=-1,he=x==null?0:x.length;++G<he;)if(F(x[G],G,x))return!0;return!1}function Y(x,F){for(var G=-1,he=Array(x);++G<x;)he[G]=F(G);return he}function ie(x){return function(F){return x(F)}}function se(x,F){return x.has(F)}function ue(x,F){return x==null?void 0:x[F]}function re(x){var F=-1,G=Array(x.size);return x.forEach(function(he,Ae){G[++F]=[Ae,he]}),G}function pe(x,F){return function(G){return x(F(G))}}function ge(x){var F=-1,G=Array(x.size);return x.forEach(function(he){G[++F]=he}),G}var me=Array.prototype,Ce=Function.prototype,Ee=Object.prototype,we=D["__core-js_shared__"],je=Ce.toString,Se=Ee.hasOwnProperty,Ke=function(){var x=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),Dt=Ee.toString,ur=RegExp("^"+je.call(Se).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=H?D.Buffer:void 0,ln=D.Symbol,it=D.Uint8Array,st=Ee.propertyIsEnumerable,Jt=me.splice,$t=ln?ln.toStringTag:void 0,fr=Object.getOwnPropertySymbols,Zr=Bt?Bt.isBuffer:void 0,Vn=pe(Object.keys,Object),Qr=un(D,"DataView"),Hn=un(D,"Map"),Xr=un(D,"Promise"),Jr=un(D,"Set"),Wr=un(D,"WeakMap"),Tn=un(Object,"create"),ho=mt(Qr),cn=mt(Hn),Ka=mt(Xr),Za=mt(Jr),Qa=mt(Wr),po=ln?ln.prototype:void 0,Gr=po?po.valueOf:void 0;function lt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Xa(){this.__data__=Tn?Tn(null):{},this.size=0}function Ja(x){var F=this.has(x)&&delete this.__data__[x];return this.size-=F?1:0,F}function Wa(x){var F=this.__data__;if(Tn){var G=F[x];return G===r?void 0:G}return Se.call(F,x)?F[x]:void 0}function Ga(x){var F=this.__data__;return Tn?F[x]!==void 0:Se.call(F,x)}function Ya(x,F){var G=this.__data__;return this.size+=this.has(x)?0:1,G[x]=Tn&&F===void 0?r:F,this}lt.prototype.clear=Xa,lt.prototype.delete=Ja,lt.prototype.get=Wa,lt.prototype.has=Ga,lt.prototype.set=Ya;function dt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function es(){this.__data__=[],this.size=0}function ts(x){var F=this.__data__,G=pr(F,x);if(G<0)return!1;var he=F.length-1;return G==he?F.pop():Jt.call(F,G,1),--this.size,!0}function ns(x){var F=this.__data__,G=pr(F,x);return G<0?void 0:F[G][1]}function rs(x){return pr(this.__data__,x)>-1}function is(x,F){var G=this.__data__,he=pr(G,x);return he<0?(++this.size,G.push([x,F])):G[he][1]=F,this}dt.prototype.clear=es,dt.prototype.delete=ts,dt.prototype.get=ns,dt.prototype.has=rs,dt.prototype.set=is;function xt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function os(){this.size=0,this.__data__={hash:new lt,map:new(Hn||dt),string:new lt}}function as(x){var F=Ft(this,x).delete(x);return this.size-=F?1:0,F}function ss(x){return Ft(this,x).get(x)}function ls(x){return Ft(this,x).has(x)}function cs(x,F){var G=Ft(this,x),he=G.size;return G.set(x,F),this.size+=G.size==he?0:1,this}xt.prototype.clear=os,xt.prototype.delete=as,xt.prototype.get=ss,xt.prototype.has=ls,xt.prototype.set=cs;function dr(x){var F=-1,G=x==null?0:x.length;for(this.__data__=new xt;++F<G;)this.add(x[F])}function go(x){return this.__data__.set(x,r),this}function hr(x){return this.__data__.has(x)}dr.prototype.add=dr.prototype.push=go,dr.prototype.has=hr;function Wt(x){var F=this.__data__=new dt(x);this.size=F.size}function Yr(){this.__data__=new dt,this.size=0}function us(x){var F=this.__data__,G=F.delete(x);return this.size=F.size,G}function fs(x){return this.__data__.get(x)}function ds(x){return this.__data__.has(x)}function hs(x,F){var G=this.__data__;if(G instanceof dt){var he=G.__data__;if(!Hn||he.length<n-1)return he.push([x,F]),this.size=++G.size,this;G=this.__data__=new xt(he)}return G.set(x,F),this.size=G.size,this}Wt.prototype.clear=Yr,Wt.prototype.delete=us,Wt.prototype.get=fs,Wt.prototype.has=ds,Wt.prototype.set=hs;function ps(x,F){var G=gr(x),he=!G&&bo(x),Ae=!G&&!he&&mr(x),xe=!G&&!he&&!Ae&&xo(x),Re=G||he||Ae||xe,qe=Re?Y(x.length,String):[],Ye=qe.length;for(var Be in x)(F||Se.call(x,Be))&&!(Re&&(Be=="length"||Ae&&(Be=="offset"||Be=="parent")||xe&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||ws(Be,Ye)))&&qe.push(Be);return qe}function pr(x,F){for(var G=x.length;G--;)if(_o(x[G][0],F))return G;return-1}function ei(x,F,G){var he=F(x);return gr(x)?he:ce(he,G(x))}function Un(x){return x==null?x===void 0?N:v:$t&&$t in Object(x)?fn(x):yo(x)}function mo(x){return Yt(x)&&Un(x)==s}function vo(x,F,G,he,Ae){return x===F?!0:x==null||F==null||!Yt(x)&&!Yt(F)?x!==x&&F!==F:gs(x,F,G,he,vo,Ae)}function gs(x,F,G,he,Ae,xe){var Re=gr(x),qe=gr(F),Ye=Re?l:Gt(x),Be=qe?l:Gt(F);Ye=Ye==s?_:Ye,Be=Be==s?_:Be;var ht=Ye==_,kt=Be==_,nt=Ye==Be;if(nt&&mr(x)){if(!mr(F))return!1;Re=!0,ht=!1}if(nt&&!ht)return xe||(xe=new Wt),Re||xo(x)?ti(x,F,G,he,Ae,xe):_s(x,F,Ye,G,he,Ae,xe);if(!(G&i)){var pt=ht&&Se.call(x,"__wrapped__"),ct=kt&&Se.call(F,"__wrapped__");if(pt||ct){var Nn=pt?x.value():x,dn=ct?F.value():F;return xe||(xe=new Wt),Ae(Nn,dn,G,he,xe)}}return nt?(xe||(xe=new Wt),bs(x,F,G,he,Ae,xe)):!1}function ms(x){if(!wo(x)||ks(x))return!1;var F=Co(x)?ur:M;return F.test(mt(x))}function vs(x){return Yt(x)&&ri(x.length)&&!!Q[Un(x)]}function ys(x){if(!Es(x))return Vn(x);var F=[];for(var G in Object(x))Se.call(x,G)&&G!="constructor"&&F.push(G);return F}function ti(x,F,G,he,Ae,xe){var Re=G&i,qe=x.length,Ye=F.length;if(qe!=Ye&&!(Re&&Ye>qe))return!1;var Be=xe.get(x);if(Be&&xe.get(F))return Be==F;var ht=-1,kt=!0,nt=G&o?new dr:void 0;for(xe.set(x,F),xe.set(F,x);++ht<qe;){var pt=x[ht],ct=F[ht];if(he)var Nn=Re?he(ct,pt,ht,F,x,xe):he(pt,ct,ht,x,F,xe);if(Nn!==void 0){if(Nn)continue;kt=!1;break}if(nt){if(!le(F,function(dn,Kn){if(!se(nt,Kn)&&(pt===dn||Ae(pt,dn,G,he,xe)))return nt.push(Kn)})){kt=!1;break}}else if(!(pt===ct||Ae(pt,ct,G,he,xe))){kt=!1;break}}return xe.delete(x),xe.delete(F),kt}function _s(x,F,G,he,Ae,xe,Re){switch(G){case E:if(x.byteLength!=F.byteLength||x.byteOffset!=F.byteOffset)return!1;x=x.buffer,F=F.buffer;case k:return!(x.byteLength!=F.byteLength||!xe(new it(x),new it(F)));case c:case f:case d:return _o(+x,+F);case u:return x.name==F.name&&x.message==F.message;case w:case I:return x==F+"";case m:var qe=re;case A:var Ye=he&i;if(qe||(qe=ge),x.size!=F.size&&!Ye)return!1;var Be=Re.get(x);if(Be)return Be==F;he|=o,Re.set(x,F);var ht=ti(qe(x),qe(F),he,Ae,xe,Re);return Re.delete(x),ht;case S:if(Gr)return Gr.call(x)==Gr.call(F)}return!1}function bs(x,F,G,he,Ae,xe){var Re=G&i,qe=zn(x),Ye=qe.length,Be=zn(F),ht=Be.length;if(Ye!=ht&&!Re)return!1;for(var kt=Ye;kt--;){var nt=qe[kt];if(!(Re?nt in F:Se.call(F,nt)))return!1}var pt=xe.get(x);if(pt&&xe.get(F))return pt==F;var ct=!0;xe.set(x,F),xe.set(F,x);for(var Nn=Re;++kt<Ye;){nt=qe[kt];var dn=x[nt],Kn=F[nt];if(he)var Mu=Re?he(Kn,dn,nt,F,x,xe):he(dn,Kn,nt,x,F,xe);if(!(Mu===void 0?dn===Kn||Ae(dn,Kn,G,he,xe):Mu)){ct=!1;break}Nn||(Nn=nt=="constructor")}if(ct&&!Nn){var ko=x.constructor,Eo=F.constructor;ko!=Eo&&"constructor"in x&&"constructor"in F&&!(typeof ko=="function"&&ko instanceof ko&&typeof Eo=="function"&&Eo instanceof Eo)&&(ct=!1)}return xe.delete(x),xe.delete(F),ct}function zn(x){return ei(x,ii,Cs)}function Ft(x,F){var G=x.__data__;return xs(F)?G[typeof F=="string"?"string":"hash"]:G.map}function un(x,F){var G=ue(x,F);return ms(G)?G:void 0}function fn(x){var F=Se.call(x,$t),G=x[$t];try{x[$t]=void 0;var he=!0}catch{}var Ae=Dt.call(x);return he&&(F?x[$t]=G:delete x[$t]),Ae}var Cs=fr?function(x){return x==null?[]:(x=Object(x),oe(fr(x),function(F){return st.call(x,F)}))}:Ss,Gt=Un;(Qr&&Gt(new Qr(new ArrayBuffer(1)))!=E||Hn&&Gt(new Hn)!=m||Xr&&Gt(Xr.resolve())!=C||Jr&&Gt(new Jr)!=A||Wr&&Gt(new Wr)!=T)&&(Gt=function(x){var F=Un(x),G=F==_?x.constructor:void 0,he=G?mt(G):"";if(he)switch(he){case ho:return E;case cn:return m;case Ka:return C;case Za:return A;case Qa:return T}return F});function ws(x,F){return F=F??a,!!F&&(typeof x=="number"||Z.test(x))&&x>-1&&x%1==0&&x<F}function xs(x){var F=typeof x;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?x!=="__proto__":x===null}function ks(x){return!!Ke&&Ke in x}function Es(x){var F=x&&x.constructor,G=typeof F=="function"&&F.prototype||Ee;return x===G}function yo(x){return Dt.call(x)}function mt(x){if(x!=null){try{return je.call(x)}catch{}try{return x+""}catch{}}return""}function _o(x,F){return x===F||x!==x&&F!==F}var bo=mo(function(){return arguments}())?mo:function(x){return Yt(x)&&Se.call(x,"callee")&&!st.call(x,"callee")},gr=Array.isArray;function ni(x){return x!=null&&ri(x.length)&&!Co(x)}var mr=Zr||Is;function Os(x,F){return vo(x,F)}function Co(x){if(!wo(x))return!1;var F=Un(x);return F==g||F==h||F==p||F==y}function ri(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function wo(x){var F=typeof x;return x!=null&&(F=="object"||F=="function")}function Yt(x){return x!=null&&typeof x=="object"}var xo=z?ie(z):vs;function ii(x){return ni(x)?ps(x):ys(x)}function Ss(){return[]}function Is(){return!1}e.exports=Os}(Qi,Qi.exports);var $c=Qi.exports,Sa={},Fc=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sa,"__esModule",{value:!0});var Y9=Fc(Bc),e2=Fc($c),Ia;(function(e){function t(o,a,s){o===void 0&&(o={}),a===void 0&&(a={}),typeof o!="object"&&(o={}),typeof a!="object"&&(a={});var l=Y9.default(a);s||(l=Object.keys(l).reduce(function(c,f){return l[f]!=null&&(c[f]=l[f]),c},{}));for(var p in o)o[p]!==void 0&&a[p]===void 0&&(l[p]=o[p]);return Object.keys(l).length>0?l:void 0}e.compose=t;function n(o,a){o===void 0&&(o={}),a===void 0&&(a={}),typeof o!="object"&&(o={}),typeof a!="object"&&(a={});var s=Object.keys(o).concat(Object.keys(a)).reduce(function(l,p){return e2.default(o[p],a[p])||(l[p]=a[p]===void 0?null:a[p]),l},{});return Object.keys(s).length>0?s:void 0}e.diff=n;function r(o,a){o===void 0&&(o={}),a===void 0&&(a={}),o=o||{};var s=Object.keys(a).reduce(function(l,p){return a[p]!==o[p]&&o[p]!==void 0&&(l[p]=a[p]),l},{});return Object.keys(o).reduce(function(l,p){return o[p]!==a[p]&&a[p]===void 0&&(l[p]=null),l},s)}e.invert=r;function i(o,a,s){if(s===void 0&&(s=!1),typeof o!="object")return a;if(typeof a=="object"){if(!s)return a;var l=Object.keys(a).reduce(function(p,c){return o[c]===void 0&&(p[c]=a[c]),p},{});return Object.keys(l).length>0?l:void 0}}e.transform=i})(Ia||(Ia={})),Sa.default=Ia;var Xi={},Ji={},Vc;function t2(){if(Vc)return Ji;Vc=1;var e=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ji,"__esModule",{value:!0});var t=e(Uc()),n=function(){function r(i){this.ops=i,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(i){i||(i=1/0);var o=this.ops[this.index];if(o){var a=this.offset,s=t.default.length(o);if(i>=s-a?(i=s-a,this.index+=1,this.offset=0):this.offset+=i,typeof o.delete=="number")return{delete:i};var l={};return o.attributes&&(l.attributes=o.attributes),typeof o.retain=="number"?l.retain=i:typeof o.insert=="string"?l.insert=o.insert.substr(a,i):l.insert=o.insert,l}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var i=this.offset,o=this.index,a=this.next(),s=this.ops.slice(this.index);return this.offset=i,this.index=o,[a].concat(s)}else return[]},r}();return Ji.default=n,Ji}var Hc;function Uc(){if(Hc)return Xi;Hc=1;var e=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xi,"__esModule",{value:!0});var t=e(t2()),n;return function(r){function i(a){return new t.default(a)}r.iterator=i;function o(a){return typeof a.delete=="number"?a.delete:typeof a.retain=="number"?a.retain:typeof a.insert=="string"?a.insert.length:1}r.length=o}(n||(n={})),Xi.default=n,Xi}var $r=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wi=$r(G9),n2=$r(Bc),Aa=$r($c),Fr=$r(Sa),at=$r(Uc()),r2="\0",i2=function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)},e.prototype.push=function(t){var n=this.ops.length,r=this.ops[n-1];if(t=n2.default(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Aa.default(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],r=[];return this.forEach(function(i){var o=t(i)?n:r;o.push(i)}),[n,r]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+at.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+at.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var r=[],i=at.default.iterator(this.ops),o=0;o<n&&i.hasNext();){var a=void 0;o<t?a=i.next(t-o):(a=i.next(n-o),r.push(a)),o+=at.default.length(a)}return new e(r)},e.prototype.compose=function(t){var n=at.default.iterator(this.ops),r=at.default.iterator(t.ops),i=[],o=r.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var a=o.retain;n.peekType()==="insert"&&n.peekLength()<=a;)a-=n.peekLength(),i.push(n.next());o.retain-a>0&&r.next(o.retain-a)}for(var s=new e(i);n.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(n.peekType()==="delete")s.push(n.next());else{var l=Math.min(n.peekLength(),r.peekLength()),p=n.next(l),c=r.next(l);if(typeof c.retain=="number"){var f={};typeof p.retain=="number"?f.retain=l:f.insert=p.insert;var u=Fr.default.compose(p.attributes,c.attributes,typeof p.retain=="number");if(u&&(f.attributes=u),s.push(f),!r.hasNext()&&Aa.default(s.ops[s.ops.length-1],f)){var g=new e(n.rest());return s.concat(g).chop()}}else typeof c.delete=="number"&&typeof p.retain=="number"&&s.push(c)}return s.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map(function(l){return l.map(function(p){if(p.insert!=null)return typeof p.insert=="string"?p.insert:r2;var c=l===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")}),i=new e,o=Wi.default(r[0],r[1],n),a=at.default.iterator(this.ops),s=at.default.iterator(t.ops);return o.forEach(function(l){for(var p=l[1].length;p>0;){var c=0;switch(l[0]){case Wi.default.INSERT:c=Math.min(s.peekLength(),p),i.push(s.next(c));break;case Wi.default.DELETE:c=Math.min(p,a.peekLength()),a.next(c),i.delete(c);break;case Wi.default.EQUAL:c=Math.min(a.peekLength(),s.peekLength(),p);var f=a.next(c),u=s.next(c);Aa.default(f.insert,u.insert)?i.retain(c,Fr.default.diff(f.attributes,u.attributes)):i.push(u).delete(c);break}p-=c}}),i.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=`
68
+ `)}return ie}function ce(Y,ie){var se={},ue=Y.style||{};return ue.fontStyle&&Z(Y).fontStyle==="italic"&&(se.italic=!0),ue.fontWeight&&(Z(Y).fontWeight.startsWith("bold")||parseInt(Z(Y).fontWeight)>=700)&&(se.bold=!0),Object.keys(se).length>0&&(ie=M(ie,se)),parseFloat(ue.textIndent||0)>0&&(ie=new f.default().insert(" ").concat(ie)),ie}function le(Y,ie){var se=Y.data;if(Y.parentNode.tagName==="O:P")return ie.insert(se.trim());if(se.trim().length===0&&Y.parentNode.classList.contains("ql-clipboard"))return ie;if(!Z(Y.parentNode).whiteSpace.startsWith("pre")){var ue=function(pe,ge){return ge=ge.replace(/[^\u00a0]/g,""),ge.length<1&&pe?" ":ge};se=se.replace(/\r\n/g," ").replace(/\n/g," "),se=se.replace(/\s\s+/g,ue.bind(ue,!0)),(Y.previousSibling==null&&B(Y.parentNode)||Y.previousSibling!=null&&B(Y.previousSibling))&&(se=se.replace(/^\s+/,ue.bind(ue,!1))),(Y.nextSibling==null&&B(Y.parentNode)||Y.nextSibling!=null&&B(Y.nextSibling))&&(se=se.replace(/\s+$/,ue.bind(ue,!1)))}return ie.insert(se)}r.default=P,r.matchAttributor=q,r.matchBlot=$,r.matchNewline=z,r.matchSpacing=oe,r.matchText=le},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(6),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(){return c(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"optimize",value:function(v){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(l.default);g.blotName="bold",g.tagName=["STRONG","B"],r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var o=function(){function k(E,L){var V=[],K=!0,W=!1,te=void 0;try{for(var fe=E[Symbol.iterator](),ee;!(K=(ee=fe.next()).done)&&(V.push(ee.value),!(L&&V.length===L));K=!0);}catch(j){W=!0,te=j}finally{try{!K&&fe.return&&fe.return()}finally{if(W)throw te}}return V}return function(E,L){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return k(E,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function k(E,L){for(var V=0;V<L.length;V++){var K=L[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(E,K.key,K)}}return function(E,L,V){return L&&k(E.prototype,L),V&&k(E,V),E}}(),s=i(2),l=v(s),p=i(0),c=v(p),f=i(5),u=v(f),g=i(10),h=v(g),m=i(9),d=v(m);function v(k){return k&&k.__esModule?k:{default:k}}function _(k,E,L){return E in k?Object.defineProperty(k,E,{value:L,enumerable:!0,configurable:!0,writable:!0}):k[E]=L,k}function C(k,E){if(!(k instanceof E))throw new TypeError("Cannot call a class as a function")}function y(k,E){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:k}function w(k,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);k.prototype=Object.create(E&&E.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(k,E):k.__proto__=E)}var A=(0,h.default)("quill:toolbar"),I=function(k){w(E,k);function E(L,V){C(this,E);var K=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,L,V));if(Array.isArray(K.options.container)){var W=document.createElement("div");N(W,K.options.container),L.container.parentNode.insertBefore(W,L.container),K.container=W}else typeof K.options.container=="string"?K.container=document.querySelector(K.options.container):K.container=K.options.container;if(!(K.container instanceof HTMLElement)){var te;return te=A.error("Container required for toolbar",K.options),y(K,te)}return K.container.classList.add("ql-toolbar"),K.controls=[],K.handlers={},Object.keys(K.options.handlers).forEach(function(fe){K.addHandler(fe,K.options.handlers[fe])}),[].forEach.call(K.container.querySelectorAll("button, select"),function(fe){K.attach(fe)}),K.quill.on(u.default.events.EDITOR_CHANGE,function(fe,ee){fe===u.default.events.SELECTION_CHANGE&&K.update(ee)}),K.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var fe=K.quill.selection.getRange(),ee=o(fe,1),j=ee[0];K.update(j)}),K}return a(E,[{key:"addHandler",value:function(V,K){this.handlers[V]=K}},{key:"attach",value:function(V){var K=this,W=[].find.call(V.classList,function(fe){return fe.indexOf("ql-")===0});if(W){if(W=W.slice(3),V.tagName==="BUTTON"&&V.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){A.warn("ignoring attaching to disabled format",W,V);return}if(c.default.query(W)==null){A.warn("ignoring attaching to nonexistent format",W,V);return}}var te=V.tagName==="SELECT"?"change":"click";V.addEventListener(te,function(fe){var ee=void 0;if(V.tagName==="SELECT"){if(V.selectedIndex<0)return;var j=V.options[V.selectedIndex];j.hasAttribute("selected")?ee=!1:ee=j.value||!1}else V.classList.contains("ql-active")?ee=!1:ee=V.value||!V.hasAttribute("value"),fe.preventDefault();K.quill.focus();var O=K.quill.selection.getRange(),P=o(O,1),M=P[0];if(K.handlers[W]!=null)K.handlers[W].call(K,ee);else if(c.default.query(W).prototype instanceof c.default.Embed){if(ee=prompt("Enter "+W),!ee)return;K.quill.updateContents(new l.default().retain(M.index).delete(M.length).insert(_({},W,ee)),u.default.sources.USER)}else K.quill.format(W,ee,u.default.sources.USER);K.update(M)}),this.controls.push([W,V])}}},{key:"update",value:function(V){var K=V==null?{}:this.quill.getFormat(V);this.controls.forEach(function(W){var te=o(W,2),fe=te[0],ee=te[1];if(ee.tagName==="SELECT"){var j=void 0;if(V==null)j=null;else if(K[fe]==null)j=ee.querySelector("option[selected]");else if(!Array.isArray(K[fe])){var O=K[fe];typeof O=="string"&&(O=O.replace(/\"/g,'\\"')),j=ee.querySelector('option[value="'+O+'"]')}j==null?(ee.value="",ee.selectedIndex=-1):j.selected=!0}else if(V==null)ee.classList.remove("ql-active");else if(ee.hasAttribute("value")){var P=K[fe]===ee.getAttribute("value")||K[fe]!=null&&K[fe].toString()===ee.getAttribute("value")||K[fe]==null&&!ee.getAttribute("value");ee.classList.toggle("ql-active",P)}else ee.classList.toggle("ql-active",K[fe]!=null)})}}]),E}(d.default);I.DEFAULTS={};function S(k,E,L){var V=document.createElement("button");V.setAttribute("type","button"),V.classList.add("ql-"+E),L!=null&&(V.value=L),k.appendChild(V)}function N(k,E){Array.isArray(E[0])||(E=[E]),E.forEach(function(L){var V=document.createElement("span");V.classList.add("ql-formats"),L.forEach(function(K){if(typeof K=="string")S(V,K);else{var W=Object.keys(K)[0],te=K[W];Array.isArray(te)?T(V,W,te):S(V,W,te)}}),k.appendChild(V)})}function T(k,E,L){var V=document.createElement("select");V.classList.add("ql-"+E),L.forEach(function(K){var W=document.createElement("option");K!==!1?W.setAttribute("value",K):W.setAttribute("selected","selected"),V.appendChild(W)}),k.appendChild(V)}I.DEFAULTS={container:null,handlers:{clean:function(){var E=this,L=this.quill.getSelection();if(L!=null)if(L.length==0){var V=this.quill.getFormat();Object.keys(V).forEach(function(K){c.default.query(K,c.default.Scope.INLINE)!=null&&E.quill.format(K,!1)})}else this.quill.removeFormat(L,u.default.sources.USER)},direction:function(E){var L=this.quill.getFormat().align;E==="rtl"&&L==null?this.quill.format("align","right",u.default.sources.USER):!E&&L==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",E,u.default.sources.USER)},indent:function(E){var L=this.quill.getSelection(),V=this.quill.getFormat(L),K=parseInt(V.indent||0);if(E==="+1"||E==="-1"){var W=E==="+1"?1:-1;V.direction==="rtl"&&(W*=-1),this.quill.format("indent",K+W,u.default.sources.USER)}},link:function(E){E===!0&&(E=prompt("Enter link URL:")),this.quill.format("link",E,u.default.sources.USER)},list:function(E){var L=this.quill.getSelection(),V=this.quill.getFormat(L);E==="check"?V.list==="checked"||V.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",E,u.default.sources.USER)}}},r.default=I,r.addControls=N},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(28),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(d,v){c(this,m);var _=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,d));return _.label.innerHTML=v,_.container.classList.add("ql-color-picker"),[].slice.call(_.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(C){C.classList.add("ql-primary")}),_}return o(m,[{key:"buildItem",value:function(v){var _=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,v);return _.style.backgroundColor=v.getAttribute("value")||"",_}},{key:"selectItem",value:function(v,_){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,_);var C=this.label.querySelector(".ql-color-label"),y=v&&v.getAttribute("data-value")||"";C&&(C.tagName==="line"?C.style.stroke=y:C.style.fill=y)}}]),m}(l.default);r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(28),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(d,v){c(this,m);var _=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,d));return _.container.classList.add("ql-icon-picker"),[].forEach.call(_.container.querySelectorAll(".ql-picker-item"),function(C){C.innerHTML=v[C.getAttribute("data-value")||""]}),_.defaultItem=_.container.querySelector(".ql-selected"),_.selectItem(_.defaultItem),_}return o(m,[{key:"selectItem",value:function(v,_){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,v,_),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),m}(l.default);r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function l(p,c){for(var f=0;f<c.length;f++){var u=c[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,u.key,u)}}return function(p,c,f){return c&&l(p.prototype,c),f&&l(p,f),p}}();function a(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(p,c){var f=this;a(this,l),this.quill=p,this.boundsContainer=c||document.body,this.root=p.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return o(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var f=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),m=0;if(h.right>g.right&&(m=g.right-h.right,this.root.style.left=f+m+"px"),h.left<g.left&&(m=g.left-h.left,this.root.style.left=f+m+"px"),h.bottom>g.bottom){var d=h.bottom-h.top,v=c.bottom-c.top+d;this.root.style.top=u-v+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function T(k,E){var L=[],V=!0,K=!1,W=void 0;try{for(var te=k[Symbol.iterator](),fe;!(V=(fe=te.next()).done)&&(L.push(fe.value),!(E&&L.length===E));V=!0);}catch(ee){K=!0,W=ee}finally{try{!V&&te.return&&te.return()}finally{if(K)throw W}}return L}return function(k,E){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return T(k,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function T(k,E,L){k===null&&(k=Function.prototype);var V=Object.getOwnPropertyDescriptor(k,E);if(V===void 0){var K=Object.getPrototypeOf(k);return K===null?void 0:T(K,E,L)}else{if("value"in V)return V.value;var W=V.get;return W===void 0?void 0:W.call(L)}},s=function(){function T(k,E){for(var L=0;L<E.length;L++){var V=E[L];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(k,V.key,V)}}return function(k,E,L){return E&&T(k.prototype,E),L&&T(k,L),k}}(),l=i(3),p=C(l),c=i(8),f=C(c),u=i(43),g=C(u),h=i(27),m=C(h),d=i(15),v=i(41),_=C(v);function C(T){return T&&T.__esModule?T:{default:T}}function y(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function w(T,k){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:T}function A(T,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(T,k):T.__proto__=k)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=function(T){A(k,T);function k(E,L){y(this,k),L.modules.toolbar!=null&&L.modules.toolbar.container==null&&(L.modules.toolbar.container=I);var V=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E,L));return V.quill.container.classList.add("ql-snow"),V}return s(k,[{key:"extendToolbar",value:function(L){L.container.classList.add("ql-snow"),this.buildButtons([].slice.call(L.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(L.container.querySelectorAll("select")),_.default),this.tooltip=new N(this.quill,this.options.bounds),L.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(V,K){L.handlers.link.call(L,!K.format.link)})}}]),k}(g.default);S.DEFAULTS=(0,p.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){if(k){var E=this.quill.getSelection();if(E==null||E.length==0)return;var L=this.quill.getText(E);/^\S+@\S+\.\S+$/.test(L)&&L.indexOf("mailto:")!==0&&(L="mailto:"+L);var V=this.quill.theme.tooltip;V.edit("link",L)}else this.quill.format("link",!1)}}}}});var N=function(T){A(k,T);function k(E,L){y(this,k);var V=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E,L));return V.preview=V.root.querySelector("a.ql-preview"),V}return s(k,[{key:"listen",value:function(){var L=this;a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(V){L.root.classList.contains("ql-editing")?L.save():L.edit("link",L.preview.textContent),V.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(V){if(L.linkRange!=null){var K=L.linkRange;L.restoreFocus(),L.quill.formatText(K,"link",!1,f.default.sources.USER),delete L.linkRange}V.preventDefault(),L.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(V,K,W){if(V!=null){if(V.length===0&&W===f.default.sources.USER){var te=L.quill.scroll.descendant(m.default,V.index),fe=o(te,2),ee=fe[0],j=fe[1];if(ee!=null){L.linkRange=new d.Range(V.index-j,ee.length());var O=m.default.formats(ee.domNode);L.preview.textContent=O,L.preview.setAttribute("href",O),L.show(),L.position(L.quill.getBounds(L.linkRange));return}}else delete L.linkRange;L.hide()}})}},{key:"show",value:function(){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),k}(u.BaseTooltip);N.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=S},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(29),a=re(o),s=i(36),l=i(38),p=i(64),c=i(65),f=re(c),u=i(66),g=re(u),h=i(67),m=re(h),d=i(37),v=i(26),_=i(39),C=i(40),y=i(56),w=re(y),A=i(68),I=re(A),S=i(27),N=re(S),T=i(69),k=re(T),E=i(70),L=re(E),V=i(71),K=re(V),W=i(72),te=re(W),fe=i(73),ee=re(fe),j=i(13),O=re(j),P=i(74),M=re(P),Z=i(75),Q=re(Z),B=i(57),U=re(B),D=i(41),q=re(D),$=i(28),H=re($),J=i(59),R=re(J),z=i(60),oe=re(z),ce=i(61),le=re(ce),Y=i(108),ie=re(Y),se=i(62),ue=re(se);function re(pe){return pe&&pe.__esModule?pe:{default:pe}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":_.FontClass,"attributors/class/size":C.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":_.FontStyle,"attributors/style/size":C.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":p.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":_.FontClass,"formats/size":C.SizeClass,"formats/blockquote":f.default,"formats/code-block":O.default,"formats/header":g.default,"formats/list":m.default,"formats/bold":w.default,"formats/code":j.Code,"formats/italic":I.default,"formats/link":N.default,"formats/script":k.default,"formats/strike":L.default,"formats/underline":K.default,"formats/image":te.default,"formats/video":ee.default,"formats/list/item":h.ListItem,"modules/formula":M.default,"modules/syntax":Q.default,"modules/toolbar":U.default,"themes/bubble":ie.default,"themes/snow":ue.default,"ui/icons":q.default,"ui/picker":H.default,"ui/icon-picker":oe.default,"ui/color-picker":R.default,"ui/tooltip":le.default},!0),r.default=a.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var o=function(){function m(d,v){for(var _=0;_<v.length;_++){var C=v[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(d,C.key,C)}}return function(d,v,_){return v&&m(d.prototype,v),_&&m(d,_),d}}(),a=function m(d,v,_){d===null&&(d=Function.prototype);var C=Object.getOwnPropertyDescriptor(d,v);if(C===void 0){var y=Object.getPrototypeOf(d);return y===null?void 0:m(y,v,_)}else{if("value"in C)return C.value;var w=C.get;return w===void 0?void 0:w.call(_)}},s=i(0),l=p(s);function p(m){return m&&m.__esModule?m:{default:m}}function c(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function f(m,d){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:m}function u(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(m,d):m.__proto__=d)}var g=function(m){u(d,m);function d(){return c(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return o(d,[{key:"add",value:function(_,C){if(C==="+1"||C==="-1"){var y=this.value(_)||0;C=C==="+1"?y+1:y-1}return C===0?(this.remove(_),!0):a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"add",this).call(this,_,C)}},{key:"canAdd",value:function(_,C){return a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,_,C)||a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,_,parseInt(C))}},{key:"value",value:function(_){return parseInt(a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,_))||void 0}}]),d}(l.default.Attributor.Class),h=new g("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(h,m){for(var d=0;d<m.length;d++){var v=m[d];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}return function(h,m,d){return m&&g(h.prototype,m),d&&g(h,d),h}}(),a=i(4),s=l(a);function l(g){return g&&g.__esModule?g:{default:g}}function p(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}function c(g,h){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:g}function f(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);g.prototype=Object.create(h&&h.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(g,h):g.__proto__=h)}var u=function(g){f(h,g);function h(){return p(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return o(h,null,[{key:"formats",value:function(d){return this.tagName.indexOf(d.tagName)+1}}]),h}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],r.default=u},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var o=function(){function y(w,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,A,I){return A&&y(w.prototype,A),I&&y(w,I),w}}(),a=function y(w,A,I){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,A);if(S===void 0){var N=Object.getPrototypeOf(w);return N===null?void 0:y(N,A,I)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(I)}},s=i(0),l=g(s),p=i(4),c=g(p),f=i(25),u=g(f);function g(y){return y&&y.__esModule?y:{default:y}}function h(y,w,A){return w in y?Object.defineProperty(y,w,{value:A,enumerable:!0,configurable:!0,writable:!0}):y[w]=A,y}function m(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function d(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function v(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var _=function(y){v(w,y);function w(){return m(this,w),d(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"format",value:function(I,S){I===C.blotName&&!S?this.replaceWith(l.default.create(this.statics.scope)):a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,I,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,S){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,S),this):(this.parent.unwrap(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,I,S))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:a(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,I)}}]),w}(c.default);_.blotName="list-item",_.tagName="LI";var C=function(y){v(w,y),o(w,null,[{key:"create",value:function(I){var S=I==="ordered"?"OL":"UL",N=a(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return(I==="checked"||I==="unchecked")&&N.setAttribute("data-checked",I==="checked"),N}},{key:"formats",value:function(I){if(I.tagName==="OL")return"ordered";if(I.tagName==="UL")return I.hasAttribute("data-checked")?I.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(A){m(this,w);var I=d(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,A)),S=function(T){if(T.target.parentNode===A){var k=I.statics.formats(A),E=l.default.find(T.target);k==="checked"?E.format("list","unchecked"):k==="unchecked"&&E.format("list","checked")}};return A.addEventListener("touchstart",S),A.addEventListener("mousedown",S),I}return o(w,[{key:"format",value:function(I,S){this.children.length>0&&this.children.tail.format(I,S)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,S){if(I instanceof _)a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,I,S);else{var N=S==null?this.length():S.offset(this),T=this.split(N);T.parent.insertBefore(I,T)}}},{key:"optimize",value:function(I){a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,I);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var S=l.default.create(this.statics.defaultChild);I.moveChildren(S),this.appendChild(S)}a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,I)}}]),w}(u.default);C.blotName="list",C.scope=l.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[_],r.ListItem=_,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(m,d){for(var v=0;v<d.length;v++){var _=d[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,d,v){return d&&h(m.prototype,d),v&&h(m,v),m}}(),a=function h(m,d,v){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,d);if(_===void 0){var C=Object.getPrototypeOf(m);return C===null?void 0:h(C,d,v)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(v)}},s=i(6),l=p(s);function p(h){return h&&h.__esModule?h:{default:h}}function c(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function u(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var g=function(h){u(m,h);function m(){return c(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),m}(l.default);g.blotName="script",g.tagName=["SUB","SUP"],r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="strike",f.tagName="S",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}function p(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:u}function c(u,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}var f=function(u){c(g,u);function g(){return l(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(a.default);f.blotName="underline",f.tagName="U",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function d(v,_){for(var C=0;C<_.length;C++){var y=_[C];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,_,C){return _&&d(v.prototype,_),C&&d(v,C),v}}(),a=function d(v,_,C){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,_);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:d(w,_,C)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(C)}},s=i(0),l=c(s),p=i(27);function c(d){return d&&d.__esModule?d:{default:d}}function f(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var h=["alt","height","width"],m=function(d){g(v,d);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(C,y){h.indexOf(C)>-1?y?this.domNode.setAttribute(C,y):this.domNode.removeAttribute(C):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,C,y)}}],[{key:"create",value:function(C){var y=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,C);return typeof C=="string"&&y.setAttribute("src",this.sanitize(C)),y}},{key:"formats",value:function(C){return h.reduce(function(y,w){return C.hasAttribute(w)&&(y[w]=C.getAttribute(w)),y},{})}},{key:"match",value:function(C){return/\.(jpe?g|gif|png)$/.test(C)||/^data:image\/.+;base64/.test(C)}},{key:"sanitize",value:function(C){return(0,p.sanitize)(C,["http","https","data"])?C:"//:0"}},{key:"value",value:function(C){return C.getAttribute("src")}}]),v}(l.default.Embed);m.blotName="image",m.tagName="IMG",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function d(v,_){for(var C=0;C<_.length;C++){var y=_[C];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,_,C){return _&&d(v.prototype,_),C&&d(v,C),v}}(),a=function d(v,_,C){v===null&&(v=Function.prototype);var y=Object.getOwnPropertyDescriptor(v,_);if(y===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:d(w,_,C)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(C)}},s=i(4),l=i(27),p=c(l);function c(d){return d&&d.__esModule?d:{default:d}}function f(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var h=["height","width"],m=function(d){g(v,d);function v(){return f(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(C,y){h.indexOf(C)>-1?y?this.domNode.setAttribute(C,y):this.domNode.removeAttribute(C):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,C,y)}}],[{key:"create",value:function(C){var y=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,C);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(C)),y}},{key:"formats",value:function(C){return h.reduce(function(y,w){return C.hasAttribute(w)&&(y[w]=C.getAttribute(w)),y},{})}},{key:"sanitize",value:function(C){return p.default.sanitize(C)}},{key:"value",value:function(C){return C.getAttribute("src")}}]),v}(s.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var o=function(){function C(y,w){for(var A=0;A<w.length;A++){var I=w[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(y,I.key,I)}}return function(y,w,A){return w&&C(y.prototype,w),A&&C(y,A),y}}(),a=function C(y,w,A){y===null&&(y=Function.prototype);var I=Object.getOwnPropertyDescriptor(y,w);if(I===void 0){var S=Object.getPrototypeOf(y);return S===null?void 0:C(S,w,A)}else{if("value"in I)return I.value;var N=I.get;return N===void 0?void 0:N.call(A)}},s=i(35),l=g(s),p=i(5),c=g(p),f=i(9),u=g(f);function g(C){return C&&C.__esModule?C:{default:C}}function h(C,y){if(!(C instanceof y))throw new TypeError("Cannot call a class as a function")}function m(C,y){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:C}function d(C,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);C.prototype=Object.create(y&&y.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(C,y):C.__proto__=y)}var v=function(C){d(y,C);function y(){return h(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(A){var I=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",A)),I}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),y}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var _=function(C){d(y,C),o(y,null,[{key:"register",value:function(){c.default.register(v,!0)}}]);function y(){h(this,y);var w=m(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return y}(u.default);r.FormulaBlot=v,r.default=_},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var o=function(){function A(I,S){for(var N=0;N<S.length;N++){var T=S[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(I,T.key,T)}}return function(I,S,N){return S&&A(I.prototype,S),N&&A(I,N),I}}(),a=function A(I,S,N){I===null&&(I=Function.prototype);var T=Object.getOwnPropertyDescriptor(I,S);if(T===void 0){var k=Object.getPrototypeOf(I);return k===null?void 0:A(k,S,N)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(N)}},s=i(0),l=m(s),p=i(5),c=m(p),f=i(9),u=m(f),g=i(13),h=m(g);function m(A){return A&&A.__esModule?A:{default:A}}function d(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function v(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function _(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var C=function(A){_(I,A);function I(){return d(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return o(I,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),a(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var T=this.domNode.textContent;this.cachedText!==T&&((T.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),I}(h.default);C.className="ql-syntax";var y=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(A){_(I,A),o(I,null,[{key:"register",value:function(){c.default.register(y,!0),c.default.register(C,!0)}}]);function I(S,N){d(this,I);var T=v(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,S,N));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var k=null;return T.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(k),k=setTimeout(function(){T.highlight(),k=null},T.options.interval)}),T.highlight(),T}return o(I,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(C).forEach(function(k){k.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),T!=null&&this.quill.setSelection(T,c.default.sources.SILENT)}}}]),I}(u.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var I=window.hljs.highlightAuto(A);return I.value}}(),interval:1e3},r.CodeBlock=C,r.CodeToken=y,r.default=w},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var o=function I(S,N,T){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,N);if(k===void 0){var E=Object.getPrototypeOf(S);return E===null?void 0:I(E,N,T)}else{if("value"in k)return k.value;var L=k.get;return L===void 0?void 0:L.call(T)}},a=function(){function I(S,N){for(var T=0;T<N.length;T++){var k=N[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,N,T){return N&&I(S.prototype,N),T&&I(S,T),S}}(),s=i(3),l=d(s),p=i(8),c=d(p),f=i(43),u=d(f),g=i(15),h=i(41),m=d(h);function d(I){return I&&I.__esModule?I:{default:I}}function v(I,S){if(!(I instanceof S))throw new TypeError("Cannot call a class as a function")}function _(I,S){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:I}function C(I,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);I.prototype=Object.create(S&&S.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(I,S):I.__proto__=S)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(I){C(S,I);function S(N,T){v(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=y);var k=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,N,T));return k.quill.container.classList.add("ql-bubble"),k}return a(S,[{key:"extendToolbar",value:function(T){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),m.default)}}]),S}(u.default);w.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(I){C(S,I);function S(N,T){v(this,S);var k=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,N,T));return k.quill.on(c.default.events.EDITOR_CHANGE,function(E,L,V,K){if(E===c.default.events.SELECTION_CHANGE)if(L!=null&&L.length>0&&K===c.default.sources.USER){k.show(),k.root.style.left="0px",k.root.style.width="",k.root.style.width=k.root.offsetWidth+"px";var W=k.quill.getLines(L.index,L.length);if(W.length===1)k.position(k.quill.getBounds(L));else{var te=W[W.length-1],fe=k.quill.getIndex(te),ee=Math.min(te.length()-1,L.index+L.length-fe),j=k.quill.getBounds(new g.Range(fe,ee));k.position(j)}}else document.activeElement!==k.textbox&&k.quill.hasFocus()&&k.hide()}),k}return a(S,[{key:"listen",value:function(){var T=this;o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var k=T.quill.getSelection();k!=null&&T.position(T.quill.getBounds(k))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var k=o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,T),E=this.root.querySelector(".ql-tooltip-arrow");if(E.style.marginLeft="",k===0)return k;E.style.marginLeft=-1*k-E.offsetWidth/2+"px"}}]),S}(f.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=A,r.default=w},function(n,r,i){n.exports=i(63)}]).default})})(Pc);var K9=Pc.exports;const xa=Nc(K9);var Qt=-1,Mt=1,Ct=0;function Br(e,t,n,r){if(e===t)return e?[[Ct,e]]:[];if(n!=null){var i=W9(e,t,n);if(i)return i}var o=ka(e,t),a=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=Ea(e,t);var s=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var l=Z9(e,t);return a&&l.unshift([Ct,a]),s&&l.push([Ct,s]),Rc(l,r),l}function Z9(e,t){var n;if(!e)return[[Mt,t]];if(!t)return[[Qt,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,o=r.indexOf(i);if(o!==-1)return n=[[Mt,r.substring(0,o)],[Ct,i],[Mt,r.substring(o+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Qt),n;if(i.length===1)return[[Qt,e],[Mt,t]];var a=X9(e,t);if(a){var s=a[0],l=a[1],p=a[2],c=a[3],f=a[4],u=Br(s,p),g=Br(l,c);return u.concat([[Ct,f]],g)}return Q9(e,t)}function Q9(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),o=i,a=2*i,s=new Array(a),l=new Array(a),p=0;p<a;p++)s[p]=-1,l[p]=-1;s[o+1]=0,l[o+1]=0;for(var c=n-r,f=c%2!==0,u=0,g=0,h=0,m=0,d=0;d<i;d++){for(var v=-d+u;v<=d-g;v+=2){var _=o+v,C;v===-d||v!==d&&s[_-1]<s[_+1]?C=s[_+1]:C=s[_-1]+1;for(var y=C-v;C<n&&y<r&&e.charAt(C)===t.charAt(y);)C++,y++;if(s[_]=C,C>n)g+=2;else if(y>r)u+=2;else if(f){var w=o+c-v;if(w>=0&&w<a&&l[w]!==-1){var A=n-l[w];if(C>=A)return Lc(e,t,C,y)}}}for(var I=-d+h;I<=d-m;I+=2){var w=o+I,A;I===-d||I!==d&&l[w-1]<l[w+1]?A=l[w+1]:A=l[w-1]+1;for(var S=A-I;A<n&&S<r&&e.charAt(n-A-1)===t.charAt(r-S-1);)A++,S++;if(l[w]=A,A>n)m+=2;else if(S>r)h+=2;else if(!f){var _=o+c-I;if(_>=0&&_<a&&s[_]!==-1){var C=s[_],y=o+C-_;if(A=n-A,C>=A)return Lc(e,t,C,y)}}}}return[[Qt,e],[Mt,t]]}function Lc(e,t,n,r){var i=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),s=t.substring(r),l=Br(i,o),p=Br(a,s);return l.concat(p)}function ka(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return Mc(e.charCodeAt(i-1))&&i--,i}function Ea(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return qc(e.charCodeAt(e.length-i))&&i--,i}function X9(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(g,h,m){for(var d=g.substring(m,m+Math.floor(g.length/4)),v=-1,_="",C,y,w,A;(v=h.indexOf(d,v+1))!==-1;){var I=ka(g.substring(m),h.substring(v)),S=Ea(g.substring(0,m),h.substring(0,v));_.length<S+I&&(_=h.substring(v-S,v)+h.substring(v,v+I),C=g.substring(0,m-S),y=g.substring(m+I),w=h.substring(0,v-S),A=h.substring(v+I))}return _.length*2>=g.length?[C,y,w,A,_]:null}var o=i(n,r,Math.ceil(n.length/4)),a=i(n,r,Math.ceil(n.length/2)),s;if(!o&&!a)return null;a?o?s=o[4].length>a[4].length?o:a:s=a:s=o;var l,p,c,f;e.length>t.length?(l=s[0],p=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],p=s[3]);var u=s[4];return[l,p,c,f,u]}function Rc(e,t){e.push([Ct,""]);for(var n=0,r=0,i=0,o="",a="",s;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Mt:i++,a+=e[n][1],n++;break;case Qt:r++,o+=e[n][1],n++;break;case Ct:var l=n-i-r-1;if(t){if(l>=0&&Dc(e[l][1])){var p=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),o=p+o,a=p+a,!e[l][1]){e.splice(l,1),n--;var c=l-1;e[c]&&e[c][0]===Mt&&(i++,a=e[c][1]+a,c--),e[c]&&e[c][0]===Qt&&(r++,o=e[c][1]+o,c--),l=c}}if(jc(e[n][1])){var p=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),o+=p,a+=p}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(o.length>0||a.length>0){o.length>0&&a.length>0&&(s=ka(a,o),s!==0&&(l>=0?e[l][1]+=a.substring(0,s):(e.splice(0,0,[Ct,a.substring(0,s)]),n++),a=a.substring(s),o=o.substring(s)),s=Ea(a,o),s!==0&&(e[n][1]=a.substring(a.length-s)+e[n][1],a=a.substring(0,a.length-s),o=o.substring(0,o.length-s)));var f=i+r;o.length===0&&a.length===0?(e.splice(n-f,f),n=n-f):o.length===0?(e.splice(n-f,f,[Mt,a]),n=n-f+1):a.length===0?(e.splice(n-f,f,[Qt,o]),n=n-f+1):(e.splice(n-f,f,[Qt,o],[Mt,a]),n=n-f+2)}n!==0&&e[n-1][0]===Ct?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,o="",a="";break}}e[e.length-1][1]===""&&e.pop();var u=!1;for(n=1;n<e.length-1;)e[n-1][0]===Ct&&e[n+1][0]===Ct&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),u=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),u=!0)),n++;u&&Rc(e,t)}function Mc(e){return e>=55296&&e<=56319}function qc(e){return e>=56320&&e<=57343}function jc(e){return qc(e.charCodeAt(0))}function Dc(e){return Mc(e.charCodeAt(e.length-1))}function J9(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Oa(e,t,n,r){return Dc(e)||jc(r)?null:J9([[Ct,e],[Qt,t],[Mt,n],[Ct,r]])}function W9(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,o=e.length,a=t.length;if(r.length===0&&(i===null||i.length===0)){var s=r.index,l=e.slice(0,s),p=e.slice(s),c=i?i.index:null;e:{var f=s+a-o;if(c!==null&&c!==f||f<0||f>a)break e;var u=t.slice(0,f),g=t.slice(f);if(g!==p)break e;var h=Math.min(s,f),m=l.slice(0,h),d=u.slice(0,h);if(m!==d)break e;var v=l.slice(h),_=u.slice(h);return Oa(m,v,_,p)}e:{if(c!==null&&c!==s)break e;var C=s,u=t.slice(0,C),g=t.slice(C);if(u!==l)break e;var y=Math.min(o-C,a-C),w=p.slice(p.length-y),A=g.slice(g.length-y);if(w!==A)break e;var v=p.slice(0,p.length-y),_=g.slice(0,g.length-y);return Oa(l,v,_,w)}}if(r.length>0&&i&&i.length===0)e:{var m=e.slice(0,r.index),w=e.slice(r.index+r.length),h=m.length,y=w.length;if(a<h+y)break e;var d=t.slice(0,h),A=t.slice(a-y);if(m!==d||w!==A)break e;var v=e.slice(h,o-y),_=t.slice(h,a-y);return Oa(m,v,_,w)}return null}function Ki(e,t,n){return Br(e,t,n,!0)}Ki.INSERT=Mt,Ki.DELETE=Qt,Ki.EQUAL=Ct;var G9=Ki,Zi={exports:{}};Zi.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",p="[object Error]",c="[object Function]",f="[object GeneratorFunction]",u="[object Map]",g="[object Number]",h="[object Object]",m="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",C="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",S="[object Float64Array]",N="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",E="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",K="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,fe=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,j={};j[o]=j[a]=j[w]=j[A]=j[s]=j[l]=j[I]=j[S]=j[N]=j[T]=j[k]=j[u]=j[g]=j[h]=j[d]=j[v]=j[_]=j[C]=j[E]=j[L]=j[V]=j[K]=!0,j[p]=j[c]=j[y]=!1;var O=typeof ot=="object"&&ot&&ot.Object===Object&&ot,P=typeof self=="object"&&self&&self.Object===Object&&self,M=O||P||Function("return this")(),Z=t&&!t.nodeType&&t,Q=Z&&!0&&e&&!e.nodeType&&e,B=Q&&Q.exports===Z;function U(x,F){return x.set(F[0],F[1]),x}function D(x,F){return x.add(F),x}function q(x,F){for(var G=-1,he=x?x.length:0;++G<he&&F(x[G],G,x)!==!1;);return x}function $(x,F){for(var G=-1,he=F.length,Ae=x.length;++G<he;)x[Ae+G]=F[G];return x}function H(x,F,G,he){var Ae=-1,xe=x?x.length:0;for(he&&xe&&(G=x[++Ae]);++Ae<xe;)G=F(G,x[Ae],Ae,x);return G}function J(x,F){for(var G=-1,he=Array(x);++G<x;)he[G]=F(G);return he}function R(x,F){return x==null?void 0:x[F]}function z(x){var F=!1;if(x!=null&&typeof x.toString!="function")try{F=!!(x+"")}catch{}return F}function oe(x){var F=-1,G=Array(x.size);return x.forEach(function(he,Ae){G[++F]=[Ae,he]}),G}function ce(x,F){return function(G){return x(F(G))}}function le(x){var F=-1,G=Array(x.size);return x.forEach(function(he){G[++F]=he}),G}var Y=Array.prototype,ie=Function.prototype,se=Object.prototype,ue=M["__core-js_shared__"],re=function(){var x=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),pe=ie.toString,ge=se.hasOwnProperty,me=se.toString,Ce=RegExp("^"+pe.call(ge).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=B?M.Buffer:void 0,we=M.Symbol,je=M.Uint8Array,Se=ce(Object.getPrototypeOf,Object),Ke=Object.create,Dt=se.propertyIsEnumerable,ur=Y.splice,Bt=Object.getOwnPropertySymbols,ln=Ee?Ee.isBuffer:void 0,it=ce(Object.keys,Object),st=Ft(M,"DataView"),Jt=Ft(M,"Map"),$t=Ft(M,"Promise"),fr=Ft(M,"Set"),Zr=Ft(M,"WeakMap"),Vn=Ft(Object,"create"),Qr=mt(st),Hn=mt(Jt),Xr=mt($t),Jr=mt(fr),Wr=mt(Zr),Tn=we?we.prototype:void 0,ho=Tn?Tn.valueOf:void 0;function cn(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Ka(){this.__data__=Vn?Vn(null):{}}function Za(x){return this.has(x)&&delete this.__data__[x]}function Qa(x){var F=this.__data__;if(Vn){var G=F[x];return G===r?void 0:G}return ge.call(F,x)?F[x]:void 0}function po(x){var F=this.__data__;return Vn?F[x]!==void 0:ge.call(F,x)}function Gr(x,F){var G=this.__data__;return G[x]=Vn&&F===void 0?r:F,this}cn.prototype.clear=Ka,cn.prototype.delete=Za,cn.prototype.get=Qa,cn.prototype.has=po,cn.prototype.set=Gr;function lt(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Xa(){this.__data__=[]}function Ja(x){var F=this.__data__,G=hr(F,x);if(G<0)return!1;var he=F.length-1;return G==he?F.pop():ur.call(F,G,1),!0}function Wa(x){var F=this.__data__,G=hr(F,x);return G<0?void 0:F[G][1]}function Ga(x){return hr(this.__data__,x)>-1}function Ya(x,F){var G=this.__data__,he=hr(G,x);return he<0?G.push([x,F]):G[he][1]=F,this}lt.prototype.clear=Xa,lt.prototype.delete=Ja,lt.prototype.get=Wa,lt.prototype.has=Ga,lt.prototype.set=Ya;function dt(x){var F=-1,G=x?x.length:0;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function es(){this.__data__={hash:new cn,map:new(Jt||lt),string:new cn}}function ts(x){return zn(this,x).delete(x)}function ns(x){return zn(this,x).get(x)}function rs(x){return zn(this,x).has(x)}function is(x,F){return zn(this,x).set(x,F),this}dt.prototype.clear=es,dt.prototype.delete=ts,dt.prototype.get=ns,dt.prototype.has=rs,dt.prototype.set=is;function xt(x){this.__data__=new lt(x)}function os(){this.__data__=new lt}function as(x){return this.__data__.delete(x)}function ss(x){return this.__data__.get(x)}function ls(x){return this.__data__.has(x)}function cs(x,F){var G=this.__data__;if(G instanceof lt){var he=G.__data__;if(!Jt||he.length<n-1)return he.push([x,F]),this;G=this.__data__=new dt(he)}return G.set(x,F),this}xt.prototype.clear=os,xt.prototype.delete=as,xt.prototype.get=ss,xt.prototype.has=ls,xt.prototype.set=cs;function dr(x,F){var G=ni(x)||gr(x)?J(x.length,String):[],he=G.length,Ae=!!he;for(var xe in x)(F||ge.call(x,xe))&&!(Ae&&(xe=="length"||xs(xe,he)))&&G.push(xe);return G}function go(x,F,G){var he=x[F];(!(ge.call(x,F)&&bo(he,G))||G===void 0&&!(F in x))&&(x[F]=G)}function hr(x,F){for(var G=x.length;G--;)if(bo(x[G][0],F))return G;return-1}function Wt(x,F){return x&&ti(F,ii(F),x)}function Yr(x,F,G,he,Ae,xe,Re){var qe;if(he&&(qe=xe?he(x,Ae,xe,Re):he(x)),qe!==void 0)return qe;if(!Yt(x))return x;var Ye=ni(x);if(Ye){if(qe=Cs(x),!F)return ys(x,qe)}else{var $e=fn(x),ht=$e==c||$e==f;if(Co(x))return pr(x,F);if($e==h||$e==o||ht&&!xe){if(z(x))return xe?x:{};if(qe=Gt(ht?{}:x),!F)return _s(x,Wt(qe,x))}else{if(!j[$e])return xe?x:{};qe=ws(x,$e,Yr,F)}}Re||(Re=new xt);var kt=Re.get(x);if(kt)return kt;if(Re.set(x,qe),!Ye)var nt=G?bs(x):ii(x);return q(nt||x,function(pt,ct){nt&&(ct=pt,pt=x[ct]),go(qe,ct,Yr(pt,F,G,he,ct,x,Re))}),qe}function us(x){return Yt(x)?Ke(x):{}}function fs(x,F,G){var he=F(x);return ni(x)?he:$(he,G(x))}function ds(x){return me.call(x)}function hs(x){if(!Yt(x)||Es(x))return!1;var F=ri(x)||z(x)?Ce:fe;return F.test(mt(x))}function ps(x){if(!yo(x))return it(x);var F=[];for(var G in Object(x))ge.call(x,G)&&G!="constructor"&&F.push(G);return F}function pr(x,F){if(F)return x.slice();var G=new x.constructor(x.length);return x.copy(G),G}function ei(x){var F=new x.constructor(x.byteLength);return new je(F).set(new je(x)),F}function Un(x,F){var G=F?ei(x.buffer):x.buffer;return new x.constructor(G,x.byteOffset,x.byteLength)}function mo(x,F,G){var he=F?G(oe(x),!0):oe(x);return H(he,U,new x.constructor)}function vo(x){var F=new x.constructor(x.source,te.exec(x));return F.lastIndex=x.lastIndex,F}function gs(x,F,G){var he=F?G(le(x),!0):le(x);return H(he,D,new x.constructor)}function ms(x){return ho?Object(ho.call(x)):{}}function vs(x,F){var G=F?ei(x.buffer):x.buffer;return new x.constructor(G,x.byteOffset,x.length)}function ys(x,F){var G=-1,he=x.length;for(F||(F=Array(he));++G<he;)F[G]=x[G];return F}function ti(x,F,G,he){G||(G={});for(var Ae=-1,xe=F.length;++Ae<xe;){var Re=F[Ae],qe=he?he(G[Re],x[Re],Re,G,x):void 0;go(G,Re,qe===void 0?x[Re]:qe)}return G}function _s(x,F){return ti(x,un(x),F)}function bs(x){return fs(x,ii,un)}function zn(x,F){var G=x.__data__;return ks(F)?G[typeof F=="string"?"string":"hash"]:G.map}function Ft(x,F){var G=R(x,F);return hs(G)?G:void 0}var un=Bt?ce(Bt,Object):Ss,fn=ds;(st&&fn(new st(new ArrayBuffer(1)))!=A||Jt&&fn(new Jt)!=u||$t&&fn($t.resolve())!=m||fr&&fn(new fr)!=v||Zr&&fn(new Zr)!=y)&&(fn=function(x){var F=me.call(x),G=F==h?x.constructor:void 0,he=G?mt(G):void 0;if(he)switch(he){case Qr:return A;case Hn:return u;case Xr:return m;case Jr:return v;case Wr:return y}return F});function Cs(x){var F=x.length,G=x.constructor(F);return F&&typeof x[0]=="string"&&ge.call(x,"index")&&(G.index=x.index,G.input=x.input),G}function Gt(x){return typeof x.constructor=="function"&&!yo(x)?us(Se(x)):{}}function ws(x,F,G,he){var Ae=x.constructor;switch(F){case w:return ei(x);case s:case l:return new Ae(+x);case A:return Un(x,he);case I:case S:case N:case T:case k:case E:case L:case V:case K:return vs(x,he);case u:return mo(x,he,G);case g:case _:return new Ae(x);case d:return vo(x);case v:return gs(x,he,G);case C:return ms(x)}}function xs(x,F){return F=F??i,!!F&&(typeof x=="number"||ee.test(x))&&x>-1&&x%1==0&&x<F}function ks(x){var F=typeof x;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?x!=="__proto__":x===null}function Es(x){return!!re&&re in x}function yo(x){var F=x&&x.constructor,G=typeof F=="function"&&F.prototype||se;return x===G}function mt(x){if(x!=null){try{return pe.call(x)}catch{}try{return x+""}catch{}}return""}function _o(x){return Yr(x,!0,!0)}function bo(x,F){return x===F||x!==x&&F!==F}function gr(x){return Os(x)&&ge.call(x,"callee")&&(!Dt.call(x,"callee")||me.call(x)==o)}var ni=Array.isArray;function mr(x){return x!=null&&wo(x.length)&&!ri(x)}function Os(x){return xo(x)&&mr(x)}var Co=ln||Is;function ri(x){var F=Yt(x)?me.call(x):"";return F==c||F==f}function wo(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=i}function Yt(x){var F=typeof x;return!!x&&(F=="object"||F=="function")}function xo(x){return!!x&&typeof x=="object"}function ii(x){return mr(x)?dr(x):ps(x)}function Ss(){return[]}function Is(){return!1}e.exports=_o}(Zi,Zi.exports);var Bc=Zi.exports,Qi={exports:{}};Qi.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",p="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",u="[object Error]",g="[object Function]",h="[object GeneratorFunction]",m="[object Map]",d="[object Number]",v="[object Null]",_="[object Object]",C="[object Promise]",y="[object Proxy]",w="[object RegExp]",A="[object Set]",I="[object String]",S="[object Symbol]",N="[object Undefined]",T="[object WeakMap]",k="[object ArrayBuffer]",E="[object DataView]",L="[object Float32Array]",V="[object Float64Array]",K="[object Int8Array]",W="[object Int16Array]",te="[object Int32Array]",fe="[object Uint8Array]",ee="[object Uint8ClampedArray]",j="[object Uint16Array]",O="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,Q={};Q[L]=Q[V]=Q[K]=Q[W]=Q[te]=Q[fe]=Q[ee]=Q[j]=Q[O]=!0,Q[s]=Q[l]=Q[k]=Q[c]=Q[E]=Q[f]=Q[u]=Q[g]=Q[m]=Q[d]=Q[_]=Q[w]=Q[A]=Q[I]=Q[T]=!1;var B=typeof ot=="object"&&ot&&ot.Object===Object&&ot,U=typeof self=="object"&&self&&self.Object===Object&&self,D=B||U||Function("return this")(),q=t&&!t.nodeType&&t,$=q&&!0&&e&&!e.nodeType&&e,H=$&&$.exports===q,J=H&&B.process,R=function(){try{return J&&J.binding&&J.binding("util")}catch{}}(),z=R&&R.isTypedArray;function oe(x,F){for(var G=-1,he=x==null?0:x.length,Ae=0,xe=[];++G<he;){var Re=x[G];F(Re,G,x)&&(xe[Ae++]=Re)}return xe}function ce(x,F){for(var G=-1,he=F.length,Ae=x.length;++G<he;)x[Ae+G]=F[G];return x}function le(x,F){for(var G=-1,he=x==null?0:x.length;++G<he;)if(F(x[G],G,x))return!0;return!1}function Y(x,F){for(var G=-1,he=Array(x);++G<x;)he[G]=F(G);return he}function ie(x){return function(F){return x(F)}}function se(x,F){return x.has(F)}function ue(x,F){return x==null?void 0:x[F]}function re(x){var F=-1,G=Array(x.size);return x.forEach(function(he,Ae){G[++F]=[Ae,he]}),G}function pe(x,F){return function(G){return x(F(G))}}function ge(x){var F=-1,G=Array(x.size);return x.forEach(function(he){G[++F]=he}),G}var me=Array.prototype,Ce=Function.prototype,Ee=Object.prototype,we=D["__core-js_shared__"],je=Ce.toString,Se=Ee.hasOwnProperty,Ke=function(){var x=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),Dt=Ee.toString,ur=RegExp("^"+je.call(Se).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=H?D.Buffer:void 0,ln=D.Symbol,it=D.Uint8Array,st=Ee.propertyIsEnumerable,Jt=me.splice,$t=ln?ln.toStringTag:void 0,fr=Object.getOwnPropertySymbols,Zr=Bt?Bt.isBuffer:void 0,Vn=pe(Object.keys,Object),Qr=un(D,"DataView"),Hn=un(D,"Map"),Xr=un(D,"Promise"),Jr=un(D,"Set"),Wr=un(D,"WeakMap"),Tn=un(Object,"create"),ho=mt(Qr),cn=mt(Hn),Ka=mt(Xr),Za=mt(Jr),Qa=mt(Wr),po=ln?ln.prototype:void 0,Gr=po?po.valueOf:void 0;function lt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function Xa(){this.__data__=Tn?Tn(null):{},this.size=0}function Ja(x){var F=this.has(x)&&delete this.__data__[x];return this.size-=F?1:0,F}function Wa(x){var F=this.__data__;if(Tn){var G=F[x];return G===r?void 0:G}return Se.call(F,x)?F[x]:void 0}function Ga(x){var F=this.__data__;return Tn?F[x]!==void 0:Se.call(F,x)}function Ya(x,F){var G=this.__data__;return this.size+=this.has(x)?0:1,G[x]=Tn&&F===void 0?r:F,this}lt.prototype.clear=Xa,lt.prototype.delete=Ja,lt.prototype.get=Wa,lt.prototype.has=Ga,lt.prototype.set=Ya;function dt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function es(){this.__data__=[],this.size=0}function ts(x){var F=this.__data__,G=pr(F,x);if(G<0)return!1;var he=F.length-1;return G==he?F.pop():Jt.call(F,G,1),--this.size,!0}function ns(x){var F=this.__data__,G=pr(F,x);return G<0?void 0:F[G][1]}function rs(x){return pr(this.__data__,x)>-1}function is(x,F){var G=this.__data__,he=pr(G,x);return he<0?(++this.size,G.push([x,F])):G[he][1]=F,this}dt.prototype.clear=es,dt.prototype.delete=ts,dt.prototype.get=ns,dt.prototype.has=rs,dt.prototype.set=is;function xt(x){var F=-1,G=x==null?0:x.length;for(this.clear();++F<G;){var he=x[F];this.set(he[0],he[1])}}function os(){this.size=0,this.__data__={hash:new lt,map:new(Hn||dt),string:new lt}}function as(x){var F=Ft(this,x).delete(x);return this.size-=F?1:0,F}function ss(x){return Ft(this,x).get(x)}function ls(x){return Ft(this,x).has(x)}function cs(x,F){var G=Ft(this,x),he=G.size;return G.set(x,F),this.size+=G.size==he?0:1,this}xt.prototype.clear=os,xt.prototype.delete=as,xt.prototype.get=ss,xt.prototype.has=ls,xt.prototype.set=cs;function dr(x){var F=-1,G=x==null?0:x.length;for(this.__data__=new xt;++F<G;)this.add(x[F])}function go(x){return this.__data__.set(x,r),this}function hr(x){return this.__data__.has(x)}dr.prototype.add=dr.prototype.push=go,dr.prototype.has=hr;function Wt(x){var F=this.__data__=new dt(x);this.size=F.size}function Yr(){this.__data__=new dt,this.size=0}function us(x){var F=this.__data__,G=F.delete(x);return this.size=F.size,G}function fs(x){return this.__data__.get(x)}function ds(x){return this.__data__.has(x)}function hs(x,F){var G=this.__data__;if(G instanceof dt){var he=G.__data__;if(!Hn||he.length<n-1)return he.push([x,F]),this.size=++G.size,this;G=this.__data__=new xt(he)}return G.set(x,F),this.size=G.size,this}Wt.prototype.clear=Yr,Wt.prototype.delete=us,Wt.prototype.get=fs,Wt.prototype.has=ds,Wt.prototype.set=hs;function ps(x,F){var G=gr(x),he=!G&&bo(x),Ae=!G&&!he&&mr(x),xe=!G&&!he&&!Ae&&xo(x),Re=G||he||Ae||xe,qe=Re?Y(x.length,String):[],Ye=qe.length;for(var $e in x)(F||Se.call(x,$e))&&!(Re&&($e=="length"||Ae&&($e=="offset"||$e=="parent")||xe&&($e=="buffer"||$e=="byteLength"||$e=="byteOffset")||ws($e,Ye)))&&qe.push($e);return qe}function pr(x,F){for(var G=x.length;G--;)if(_o(x[G][0],F))return G;return-1}function ei(x,F,G){var he=F(x);return gr(x)?he:ce(he,G(x))}function Un(x){return x==null?x===void 0?N:v:$t&&$t in Object(x)?fn(x):yo(x)}function mo(x){return Yt(x)&&Un(x)==s}function vo(x,F,G,he,Ae){return x===F?!0:x==null||F==null||!Yt(x)&&!Yt(F)?x!==x&&F!==F:gs(x,F,G,he,vo,Ae)}function gs(x,F,G,he,Ae,xe){var Re=gr(x),qe=gr(F),Ye=Re?l:Gt(x),$e=qe?l:Gt(F);Ye=Ye==s?_:Ye,$e=$e==s?_:$e;var ht=Ye==_,kt=$e==_,nt=Ye==$e;if(nt&&mr(x)){if(!mr(F))return!1;Re=!0,ht=!1}if(nt&&!ht)return xe||(xe=new Wt),Re||xo(x)?ti(x,F,G,he,Ae,xe):_s(x,F,Ye,G,he,Ae,xe);if(!(G&i)){var pt=ht&&Se.call(x,"__wrapped__"),ct=kt&&Se.call(F,"__wrapped__");if(pt||ct){var Nn=pt?x.value():x,dn=ct?F.value():F;return xe||(xe=new Wt),Ae(Nn,dn,G,he,xe)}}return nt?(xe||(xe=new Wt),bs(x,F,G,he,Ae,xe)):!1}function ms(x){if(!wo(x)||ks(x))return!1;var F=Co(x)?ur:M;return F.test(mt(x))}function vs(x){return Yt(x)&&ri(x.length)&&!!Q[Un(x)]}function ys(x){if(!Es(x))return Vn(x);var F=[];for(var G in Object(x))Se.call(x,G)&&G!="constructor"&&F.push(G);return F}function ti(x,F,G,he,Ae,xe){var Re=G&i,qe=x.length,Ye=F.length;if(qe!=Ye&&!(Re&&Ye>qe))return!1;var $e=xe.get(x);if($e&&xe.get(F))return $e==F;var ht=-1,kt=!0,nt=G&o?new dr:void 0;for(xe.set(x,F),xe.set(F,x);++ht<qe;){var pt=x[ht],ct=F[ht];if(he)var Nn=Re?he(ct,pt,ht,F,x,xe):he(pt,ct,ht,x,F,xe);if(Nn!==void 0){if(Nn)continue;kt=!1;break}if(nt){if(!le(F,function(dn,Kn){if(!se(nt,Kn)&&(pt===dn||Ae(pt,dn,G,he,xe)))return nt.push(Kn)})){kt=!1;break}}else if(!(pt===ct||Ae(pt,ct,G,he,xe))){kt=!1;break}}return xe.delete(x),xe.delete(F),kt}function _s(x,F,G,he,Ae,xe,Re){switch(G){case E:if(x.byteLength!=F.byteLength||x.byteOffset!=F.byteOffset)return!1;x=x.buffer,F=F.buffer;case k:return!(x.byteLength!=F.byteLength||!xe(new it(x),new it(F)));case c:case f:case d:return _o(+x,+F);case u:return x.name==F.name&&x.message==F.message;case w:case I:return x==F+"";case m:var qe=re;case A:var Ye=he&i;if(qe||(qe=ge),x.size!=F.size&&!Ye)return!1;var $e=Re.get(x);if($e)return $e==F;he|=o,Re.set(x,F);var ht=ti(qe(x),qe(F),he,Ae,xe,Re);return Re.delete(x),ht;case S:if(Gr)return Gr.call(x)==Gr.call(F)}return!1}function bs(x,F,G,he,Ae,xe){var Re=G&i,qe=zn(x),Ye=qe.length,$e=zn(F),ht=$e.length;if(Ye!=ht&&!Re)return!1;for(var kt=Ye;kt--;){var nt=qe[kt];if(!(Re?nt in F:Se.call(F,nt)))return!1}var pt=xe.get(x);if(pt&&xe.get(F))return pt==F;var ct=!0;xe.set(x,F),xe.set(F,x);for(var Nn=Re;++kt<Ye;){nt=qe[kt];var dn=x[nt],Kn=F[nt];if(he)var Mu=Re?he(Kn,dn,nt,F,x,xe):he(dn,Kn,nt,x,F,xe);if(!(Mu===void 0?dn===Kn||Ae(dn,Kn,G,he,xe):Mu)){ct=!1;break}Nn||(Nn=nt=="constructor")}if(ct&&!Nn){var ko=x.constructor,Eo=F.constructor;ko!=Eo&&"constructor"in x&&"constructor"in F&&!(typeof ko=="function"&&ko instanceof ko&&typeof Eo=="function"&&Eo instanceof Eo)&&(ct=!1)}return xe.delete(x),xe.delete(F),ct}function zn(x){return ei(x,ii,Cs)}function Ft(x,F){var G=x.__data__;return xs(F)?G[typeof F=="string"?"string":"hash"]:G.map}function un(x,F){var G=ue(x,F);return ms(G)?G:void 0}function fn(x){var F=Se.call(x,$t),G=x[$t];try{x[$t]=void 0;var he=!0}catch{}var Ae=Dt.call(x);return he&&(F?x[$t]=G:delete x[$t]),Ae}var Cs=fr?function(x){return x==null?[]:(x=Object(x),oe(fr(x),function(F){return st.call(x,F)}))}:Ss,Gt=Un;(Qr&&Gt(new Qr(new ArrayBuffer(1)))!=E||Hn&&Gt(new Hn)!=m||Xr&&Gt(Xr.resolve())!=C||Jr&&Gt(new Jr)!=A||Wr&&Gt(new Wr)!=T)&&(Gt=function(x){var F=Un(x),G=F==_?x.constructor:void 0,he=G?mt(G):"";if(he)switch(he){case ho:return E;case cn:return m;case Ka:return C;case Za:return A;case Qa:return T}return F});function ws(x,F){return F=F??a,!!F&&(typeof x=="number"||Z.test(x))&&x>-1&&x%1==0&&x<F}function xs(x){var F=typeof x;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?x!=="__proto__":x===null}function ks(x){return!!Ke&&Ke in x}function Es(x){var F=x&&x.constructor,G=typeof F=="function"&&F.prototype||Ee;return x===G}function yo(x){return Dt.call(x)}function mt(x){if(x!=null){try{return je.call(x)}catch{}try{return x+""}catch{}}return""}function _o(x,F){return x===F||x!==x&&F!==F}var bo=mo(function(){return arguments}())?mo:function(x){return Yt(x)&&Se.call(x,"callee")&&!st.call(x,"callee")},gr=Array.isArray;function ni(x){return x!=null&&ri(x.length)&&!Co(x)}var mr=Zr||Is;function Os(x,F){return vo(x,F)}function Co(x){if(!wo(x))return!1;var F=Un(x);return F==g||F==h||F==p||F==y}function ri(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function wo(x){var F=typeof x;return x!=null&&(F=="object"||F=="function")}function Yt(x){return x!=null&&typeof x=="object"}var xo=z?ie(z):vs;function ii(x){return ni(x)?ps(x):ys(x)}function Ss(){return[]}function Is(){return!1}e.exports=Os}(Qi,Qi.exports);var $c=Qi.exports,Sa={},Fc=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sa,"__esModule",{value:!0});var Y9=Fc(Bc),e2=Fc($c),Ia;(function(e){function t(o,a,s){o===void 0&&(o={}),a===void 0&&(a={}),typeof o!="object"&&(o={}),typeof a!="object"&&(a={});var l=Y9.default(a);s||(l=Object.keys(l).reduce(function(c,f){return l[f]!=null&&(c[f]=l[f]),c},{}));for(var p in o)o[p]!==void 0&&a[p]===void 0&&(l[p]=o[p]);return Object.keys(l).length>0?l:void 0}e.compose=t;function n(o,a){o===void 0&&(o={}),a===void 0&&(a={}),typeof o!="object"&&(o={}),typeof a!="object"&&(a={});var s=Object.keys(o).concat(Object.keys(a)).reduce(function(l,p){return e2.default(o[p],a[p])||(l[p]=a[p]===void 0?null:a[p]),l},{});return Object.keys(s).length>0?s:void 0}e.diff=n;function r(o,a){o===void 0&&(o={}),a===void 0&&(a={}),o=o||{};var s=Object.keys(a).reduce(function(l,p){return a[p]!==o[p]&&o[p]!==void 0&&(l[p]=a[p]),l},{});return Object.keys(o).reduce(function(l,p){return o[p]!==a[p]&&a[p]===void 0&&(l[p]=null),l},s)}e.invert=r;function i(o,a,s){if(s===void 0&&(s=!1),typeof o!="object")return a;if(typeof a=="object"){if(!s)return a;var l=Object.keys(a).reduce(function(p,c){return o[c]===void 0&&(p[c]=a[c]),p},{});return Object.keys(l).length>0?l:void 0}}e.transform=i})(Ia||(Ia={})),Sa.default=Ia;var Xi={},Ji={},Vc;function t2(){if(Vc)return Ji;Vc=1;var e=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ji,"__esModule",{value:!0});var t=e(Uc()),n=function(){function r(i){this.ops=i,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(i){i||(i=1/0);var o=this.ops[this.index];if(o){var a=this.offset,s=t.default.length(o);if(i>=s-a?(i=s-a,this.index+=1,this.offset=0):this.offset+=i,typeof o.delete=="number")return{delete:i};var l={};return o.attributes&&(l.attributes=o.attributes),typeof o.retain=="number"?l.retain=i:typeof o.insert=="string"?l.insert=o.insert.substr(a,i):l.insert=o.insert,l}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var i=this.offset,o=this.index,a=this.next(),s=this.ops.slice(this.index);return this.offset=i,this.index=o,[a].concat(s)}else return[]},r}();return Ji.default=n,Ji}var Hc;function Uc(){if(Hc)return Xi;Hc=1;var e=ot&&ot.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xi,"__esModule",{value:!0});var t=e(t2()),n;return function(r){function i(a){return new t.default(a)}r.iterator=i;function o(a){return typeof a.delete=="number"?a.delete:typeof a.retain=="number"?a.retain:typeof a.insert=="string"?a.insert.length:1}r.length=o}(n||(n={})),Xi.default=n,Xi}var $r=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wi=$r(G9),n2=$r(Bc),Aa=$r($c),Fr=$r(Sa),at=$r(Uc()),r2="\0",i2=function(){function e(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return e.prototype.insert=function(t,n){var r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))},e.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},e.prototype.retain=function(t,n){if(t<=0)return this;var r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)},e.prototype.push=function(t){var n=this.ops.length,r=this.ops[n-1];if(t=n2.default(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Aa.default(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this},e.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},e.prototype.filter=function(t){return this.ops.filter(t)},e.prototype.forEach=function(t){this.ops.forEach(t)},e.prototype.map=function(t){return this.ops.map(t)},e.prototype.partition=function(t){var n=[],r=[];return this.forEach(function(i){var o=t(i)?n:r;o.push(i)}),[n,r]},e.prototype.reduce=function(t,n){return this.ops.reduce(t,n)},e.prototype.changeLength=function(){return this.reduce(function(t,n){return n.insert?t+at.default.length(n):n.delete?t-n.delete:t},0)},e.prototype.length=function(){return this.reduce(function(t,n){return t+at.default.length(n)},0)},e.prototype.slice=function(t,n){t===void 0&&(t=0),n===void 0&&(n=1/0);for(var r=[],i=at.default.iterator(this.ops),o=0;o<n&&i.hasNext();){var a=void 0;o<t?a=i.next(t-o):(a=i.next(n-o),r.push(a)),o+=at.default.length(a)}return new e(r)},e.prototype.compose=function(t){var n=at.default.iterator(this.ops),r=at.default.iterator(t.ops),i=[],o=r.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var a=o.retain;n.peekType()==="insert"&&n.peekLength()<=a;)a-=n.peekLength(),i.push(n.next());o.retain-a>0&&r.next(o.retain-a)}for(var s=new e(i);n.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(n.peekType()==="delete")s.push(n.next());else{var l=Math.min(n.peekLength(),r.peekLength()),p=n.next(l),c=r.next(l);if(typeof c.retain=="number"){var f={};typeof p.retain=="number"?f.retain=l:f.insert=p.insert;var u=Fr.default.compose(p.attributes,c.attributes,typeof p.retain=="number");if(u&&(f.attributes=u),s.push(f),!r.hasNext()&&Aa.default(s.ops[s.ops.length-1],f)){var g=new e(n.rest());return s.concat(g).chop()}}else typeof c.delete=="number"&&typeof p.retain=="number"&&s.push(c)}return s.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map(function(l){return l.map(function(p){if(p.insert!=null)return typeof p.insert=="string"?p.insert:r2;var c=l===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")}),i=new e,o=Wi.default(r[0],r[1],n),a=at.default.iterator(this.ops),s=at.default.iterator(t.ops);return o.forEach(function(l){for(var p=l[1].length;p>0;){var c=0;switch(l[0]){case Wi.default.INSERT:c=Math.min(s.peekLength(),p),i.push(s.next(c));break;case Wi.default.DELETE:c=Math.min(p,a.peekLength()),a.next(c),i.delete(c);break;case Wi.default.EQUAL:c=Math.min(a.peekLength(),s.peekLength(),p);var f=a.next(c),u=s.next(c);Aa.default(f.insert,u.insert)?i.retain(c,Fr.default.diff(f.attributes,u.attributes)):i.push(u).delete(c);break}p-=c}}),i.chop()},e.prototype.eachLine=function(t,n){n===void 0&&(n=`
69
69
  `);for(var r=at.default.iterator(this.ops),i=new e,o=0;r.hasNext();){if(r.peekType()!=="insert")return;var a=r.peek(),s=at.default.length(a)-r.peekLength(),l=typeof a.insert=="string"?a.insert.indexOf(n,s)-s:-1;if(l<0)i.push(r.next());else if(l>0)i.push(r.next(l));else{if(t(i,r.next(1).attributes||{},o)===!1)return;o+=1,i=new e}}i.length()>0&&t(i,{},o)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(r,i){if(i.insert)n.delete(at.default.length(i));else{if(i.retain&&i.attributes==null)return n.retain(i.retain),r+i.retain;if(i.delete||i.retain&&i.attributes){var o=i.delete||i.retain,a=t.slice(r,r+o);return a.forEach(function(s){i.delete?n.push(s):i.retain&&i.attributes&&n.retain(at.default.length(s),Fr.default.invert(i.attributes,s.attributes))}),r+o}}return r},0),n.chop()},e.prototype.transform=function(t,n){if(n===void 0&&(n=!1),n=!!n,typeof t=="number")return this.transformPosition(t,n);for(var r=t,i=at.default.iterator(this.ops),o=at.default.iterator(r.ops),a=new e;i.hasNext()||o.hasNext();)if(i.peekType()==="insert"&&(n||o.peekType()!=="insert"))a.retain(at.default.length(i.next()));else if(o.peekType()==="insert")a.push(o.next());else{var s=Math.min(i.peekLength(),o.peekLength()),l=i.next(s),p=o.next(s);if(l.delete)continue;p.delete?a.push(p):a.retain(s,Fr.default.transform(l.attributes,p.attributes,n))}return a.chop()},e.prototype.transformPosition=function(t,n){n===void 0&&(n=!1),n=!!n;for(var r=at.default.iterator(this.ops),i=0;r.hasNext()&&i<=t;){var o=r.peekLength(),a=r.peekType();if(r.next(),a==="delete"){t-=Math.min(o,t-i);continue}else a==="insert"&&(i<t||!n)&&(t+=o);i+=o}return t},e.Op=at.default,e.AttributeMap=Fr.default,e}(),o2=i2;const a2=Nc(o2);/*!
70
70
  * VueQuill @vueup/vue-quill v1.2.0
71
71
  * https://vueup.github.io/vue-quill/
@@ -83,4 +83,4 @@
83
83
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[du]=this[du]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=zr(a);r[s]||(_3(i,a),r[s]=!0)}return de.isArray(t)?t.forEach(o):o(t),this}}io.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(io.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),de.freezeMethods(io);const jt=io;function $a(e,t){const n=this||Da,r=t||n,i=jt.from(r.headers);let o=r.data;return de.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function hu(e){return!!(e&&e.__CANCEL__)}function cr(e,t,n){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(cr,Pe,{__CANCEL__:!0});function pu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Pe("Request failed with status code "+n.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function b3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function C3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const p=Date.now(),c=r[o];a||(a=p),n[i]=l,r[i]=p;let f=o,u=0;for(;f!==i;)u+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),p-a<t)return;const g=c&&p-c;return g?Math.round(u*1e3/g):void 0}}function w3(e,t){let n=0,r=1e3/t,i,o;const a=(p,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...p)};return[(...p)=>{const c=Date.now(),f=c-n;f>=r?a(p,c):(i=p,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const oo=(e,t,n=3)=>{let r=0;const i=C3(50,250);return w3(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,p=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-a)/p:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},gu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mu=e=>(...t)=>de.asap(()=>e(...t)),x3=ft.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ft.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ft.origin),ft.navigator&&/(msie|trident)/i.test(ft.navigator.userAgent)):()=>!0,k3=ft.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];de.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),de.isString(r)&&s.push(`path=${r}`),de.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),de.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function E3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function O3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vu(e,t,n){let r=!E3(t);return e&&(r||n==!1)?O3(e,t):t}const yu=e=>e instanceof jt?{...e}:e;function Fn(e,t){t=t||{};const n={};function r(p,c,f,u){return de.isPlainObject(p)&&de.isPlainObject(c)?de.merge.call({caseless:u},p,c):de.isPlainObject(c)?de.merge({},c):de.isArray(c)?c.slice():c}function i(p,c,f,u){if(de.isUndefined(c)){if(!de.isUndefined(p))return r(void 0,p,f,u)}else return r(p,c,f,u)}function o(p,c){if(!de.isUndefined(c))return r(void 0,c)}function a(p,c){if(de.isUndefined(c)){if(!de.isUndefined(p))return r(void 0,p)}else return r(void 0,c)}function s(p,c,f){if(f in t)return r(p,c);if(f in e)return r(void 0,p)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(p,c,f)=>i(yu(p),yu(c),f,!0)};return de.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||i,u=f(e[c],t[c],c);de.isUndefined(u)&&f!==s||(n[c]=u)}),n}const _u=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=jt.from(a),t.url=lu(vu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),de.isFormData(n)){if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(de.isFunction(n.getHeaders)){const l=n.getHeaders(),p=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{p.includes(c.toLowerCase())&&a.set(c,f)})}}if(ft.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&x3(t.url))){const l=i&&o&&k3.read(o);l&&a.set(i,l)}return t},S3=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=_u(e);let o=i.data;const a=jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:p}=i,c,f,u,g,h;function m(){g&&g(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(i.method.toUpperCase(),i.url,!0),d.timeout=i.timeout;function v(){if(!d)return;const C=jt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:C,config:e,request:d};pu(function(I){n(I),m()},function(I){r(I),m()},w),d=null}"onloadend"in d?d.onloadend=v:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(v)},d.onabort=function(){d&&(r(new Pe("Request aborted",Pe.ECONNABORTED,e,d)),d=null)},d.onerror=function(y){const w=y&&y.message?y.message:"Network Error",A=new Pe(w,Pe.ERR_NETWORK,e,d);A.event=y||null,r(A),d=null},d.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||uu;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),r(new Pe(y,w.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,d)),d=null},o===void 0&&a.setContentType(null),"setRequestHeader"in d&&de.forEach(a.toJSON(),function(y,w){d.setRequestHeader(w,y)}),de.isUndefined(i.withCredentials)||(d.withCredentials=!!i.withCredentials),s&&s!=="json"&&(d.responseType=i.responseType),p&&([u,h]=oo(p,!0),d.addEventListener("progress",u)),l&&d.upload&&([f,g]=oo(l),d.upload.addEventListener("progress",f),d.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(c=C=>{d&&(r(!C||C.type?new cr(null,e,d):C),d.abort(),d=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const _=b3(i.url);if(_&&ft.protocols.indexOf(_)===-1){r(new Pe("Unsupported protocol "+_+":",Pe.ERR_BAD_REQUEST,e));return}d.send(o||null)})},I3=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(p){if(!i){i=!0,s();const c=p instanceof Error?p:this.reason;r.abort(c instanceof Pe?c:new cr(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),e=null)};e.forEach(p=>p.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>de.asap(s),l}},A3=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},T3=async function*(e,t){for await(const n of N3(e))yield*A3(n,t)},N3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},bu=(e,t,n,r)=>{const i=T3(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:p,value:c}=await i.next();if(p){s(),l.close();return}let f=c.byteLength;if(n){let u=o+=f;n(u)}l.enqueue(new Uint8Array(c))}catch(p){throw s(p),p}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Cu=64*1024,{isFunction:ao}=de,P3=(({Request:e,Response:t})=>({Request:e,Response:t}))(de.global),{ReadableStream:wu,TextEncoder:xu}=de.global,ku=(e,...t)=>{try{return!!e(...t)}catch{return!1}},L3=e=>{e=de.merge.call({skipUndefined:!0},P3,e);const{fetch:t,Request:n,Response:r}=e,i=t?ao(t):typeof fetch=="function",o=ao(n),a=ao(r);if(!i)return!1;const s=i&&ao(wu),l=i&&(typeof xu=="function"?(h=>m=>h.encode(m))(new xu):async h=>new Uint8Array(await new n(h).arrayBuffer())),p=o&&s&&ku(()=>{let h=!1;const m=new n(ft.origin,{body:new wu,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!m}),c=a&&s&&ku(()=>de.isReadableStream(new r("").body)),f={stream:c&&(h=>h.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!f[h]&&(f[h]=(m,d)=>{let v=m&&m[h];if(v)return v.call(m);throw new Pe(`Response type '${h}' is not supported`,Pe.ERR_NOT_SUPPORT,d)})});const u=async h=>{if(h==null)return 0;if(de.isBlob(h))return h.size;if(de.isSpecCompliantForm(h))return(await new n(ft.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(de.isArrayBufferView(h)||de.isArrayBuffer(h))return h.byteLength;if(de.isURLSearchParams(h)&&(h=h+""),de.isString(h))return(await l(h)).byteLength},g=async(h,m)=>{const d=de.toFiniteNumber(h.getContentLength());return d??u(m)};return async h=>{let{url:m,method:d,data:v,signal:_,cancelToken:C,timeout:y,onDownloadProgress:w,onUploadProgress:A,responseType:I,headers:S,withCredentials:N="same-origin",fetchOptions:T}=_u(h),k=t||fetch;I=I?(I+"").toLowerCase():"text";let E=I3([_,C&&C.toAbortSignal()],y),L=null;const V=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let K;try{if(A&&p&&d!=="get"&&d!=="head"&&(K=await g(S,v))!==0){let O=new n(m,{method:"POST",body:v,duplex:"half"}),P;if(de.isFormData(v)&&(P=O.headers.get("content-type"))&&S.setContentType(P),O.body){const[M,Z]=gu(K,oo(mu(A)));v=bu(O.body,Cu,M,Z)}}de.isString(N)||(N=N?"include":"omit");const W=o&&"credentials"in n.prototype,te={...T,signal:E,method:d.toUpperCase(),headers:S.normalize().toJSON(),body:v,duplex:"half",credentials:W?N:void 0};L=o&&new n(m,te);let fe=await(o?k(L,T):k(m,te));const ee=c&&(I==="stream"||I==="response");if(c&&(w||ee&&V)){const O={};["status","statusText","headers"].forEach(Q=>{O[Q]=fe[Q]});const P=de.toFiniteNumber(fe.headers.get("content-length")),[M,Z]=w&&gu(P,oo(mu(w),!0))||[];fe=new r(bu(fe.body,Cu,M,()=>{Z&&Z(),V&&V()}),O)}I=I||"text";let j=await f[de.findKey(f,I)||"text"](fe,h);return!ee&&V&&V(),await new Promise((O,P)=>{pu(O,P,{data:j,headers:jt.from(fe.headers),status:fe.status,statusText:fe.statusText,config:h,request:L})})}catch(W){throw V&&V(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,h,L),{cause:W.cause||W}):Pe.from(W,W&&W.code,h,L)}}},R3=new Map,Eu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,p,c=R3;for(;s--;)l=o[s],p=c.get(l),p===void 0&&c.set(l,p=s?new Map:L3(t)),c=p;return p};Eu();const Fa={http:n3,xhr:S3,fetch:{get:Eu}};de.forEach(Fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ou=e=>`- ${e}`,M3=e=>de.isFunction(e)||e===null||e===!1;function q3(e,t){e=de.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!M3(r)&&(i=Fa[(s=String(r)).toLowerCase()],i===void 0))throw new Pe(`Unknown adapter '${s}'`);if(i&&(de.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
84
84
  `+a.map(Ou).join(`
85
85
  `):" "+Ou(a[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const Su={getAdapter:q3,adapters:Fa};function Va(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cr(null,e)}function Iu(e){return Va(e),e.headers=jt.from(e.headers),e.data=$a.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Su.getAdapter(e.adapter||Da.adapter,e)(e).then(function(r){return Va(e),r.data=$a.call(e,e.transformResponse,r),r.headers=jt.from(r.headers),r},function(r){return hu(r)||(Va(e),r&&r.response&&(r.response.data=$a.call(e,e.transformResponse,r.response),r.response.headers=jt.from(r.response.headers))),Promise.reject(r)})}const Au="1.13.2",so={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{so[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tu={};so.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Au+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Pe(i(a," has been removed"+(n?" in "+n:"")),Pe.ERR_DEPRECATED);return n&&!Tu[a]&&(Tu[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}},so.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function j3(e,t,n){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Pe("option "+o+" must be "+l,Pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Pe("Unknown option "+o,Pe.ERR_BAD_OPTION)}}const lo={assertOptions:j3,validators:so},Xt=lo.validators;class co{constructor(t){this.defaults=t||{},this.interceptors={request:new cu,response:new cu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
86
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lo.assertOptions(r,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),i!=null&&(de.isFunction(i)?n.paramsSerializer={serialize:i}:lo.assertOptions(i,{encode:Xt.function,serialize:Xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),lo.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=jt.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const p=[];this.interceptors.response.forEach(function(m){p.push(m.fulfilled,m.rejected)});let c,f=0,u;if(!l){const h=[Iu.bind(this),void 0];for(h.unshift(...s),h.push(...p),u=h.length,c=Promise.resolve(n);f<u;)c=c.then(h[f++],h[f++]);return c}u=s.length;let g=n;for(;f<u;){const h=s[f++],m=s[f++];try{g=h(g)}catch(d){m.call(this,d);break}}try{c=Iu.call(this,g)}catch(h){return Promise.reject(h)}for(f=0,u=p.length;f<u;)c=c.then(p[f++],p[f++]);return c}getUri(t){t=Fn(this.defaults,t);const n=vu(t.baseURL,t.url,t.allowAbsoluteUrls);return lu(n,t.params,t.paramsSerializer)}}de.forEach(["delete","get","head","options"],function(t){co.prototype[t]=function(n,r){return this.request(Fn(r||{},{method:t,url:n,data:(r||{}).data}))}}),de.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fn(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}co.prototype[t]=n(),co.prototype[t+"Form"]=n(!0)});const uo=co;class Ha{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new cr(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ha(function(i){t=i}),cancel:t}}}const D3=Ha;function B3(e){return function(n){return e.apply(null,n)}}function $3(e){return de.isObject(e)&&e.isAxiosError===!0}const Ua={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ua).forEach(([e,t])=>{Ua[t]=e});const F3=Ua;function Nu(e){const t=new uo(e),n=Zc(uo.prototype.request,t);return de.extend(n,uo.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Nu(Fn(e,i))},n}const $e=Nu(Da);$e.Axios=uo,$e.CanceledError=cr,$e.CancelToken=D3,$e.isCancel=hu,$e.VERSION=Au,$e.toFormData=no,$e.AxiosError=Pe,$e.Cancel=$e.CanceledError,$e.all=function(t){return Promise.all(t)},$e.spread=B3,$e.isAxiosError=$3,$e.mergeConfig=Fn,$e.AxiosHeaders=jt,$e.formToJSON=e=>fu(de.isHTMLForm(e)?new FormData(e):e),$e.getAdapter=Su.getAdapter,$e.HttpStatusCode=F3,$e.default=$e;class V3{constructor(t){this.restURL=t+"/services/apexrest/XX_ORD1/router"}async getProductConfiguration(t){return(await $e.post(`${this.restURL}?methodName=getProductConfiguration`,t,{headers:{"Content-Type":"application/json"}})).data}async getLineItems({request:t}){return(await $e.post(`${this.restURL}?methodName=getLineItems`,t,{headers:{"Content-Type":"application/json"}})).data}async getLineItemAttributes({request:t}){return(await $e.post(`${this.restURL}?methodName=getLineItemAttributes`,t,{headers:{"Content-Type":"application/json"}})).data}async getProductOptionsPricing({request:t}){return(await $e.post(`${this.restURL}?methodName=getProductOptionsPricing`,t,{headers:{"Content-Type":"application/json"}})).data}async calculateBestOfferPrice({request:t}){return(await $e.post(`${this.restURL}?methodName=calculateBestOfferPrice`,t,{headers:{"Content-Type":"application/json"}})).data}async getRecords({request:t}){return(await $e.post(`${this.restURL}?methodName=getRecords`,t,{headers:{"Content-Type":"application/json"}})).data}async maintainQuoteConfiguration({request:t}){return(await $e.post(`${this.restURL}?methodName=maintainQuoteConfiguration`,t,{headers:{"Content-Type":"application/json"}})).data}async getProductCrossSells({request:t}){return(await $e.post(`${this.restURL}?methodName=getProductCrossSells`,t,{headers:{"Content-Type":"application/json"}})).data}async createQuoteProducts({request:t}){return(await $e.post(`${this.restURL}?methodName=createQuoteProducts`,t,{headers:{"Content-Type":"application/json"}})).data}}const H3=(e=>(Yn("data-v-51274a68"),e=e(),er(),e))(()=>b("div",{class:"dropdowntp"},null,-1)),U3={class:"app-wrapper"},z3=Ve({__name:"ExpediteConfigurator",props:{itemId:{type:String,required:!0},qliId:{type:String,required:!1},restUrl:{type:String,required:"https://ec-ord1-dev-ed.my.salesforce-sites.com/Order"}},setup(e){const t=ar(),n=Ui(),r=an(),i=ae(!1),o=e;return Cn(async()=>{window.productManagerController=new V3(o.restUrl),i.value=!0,await t.start(),i.value=!1}),(a,s)=>(X(),ne(Oe,null,[_e(f0),_e(m0),Xe(r).errorPopup?(X(),Te(G1,{key:0,data:Xe(r).errorPopup,onClose:s[0]||(s[0]=l=>Xe(r).errorPopup=null)},null,8,["data"])):ye("",!0),Xe(n).unsavedChanges?(X(),Te(t0,{key:1,data:Xe(n).unsavedChanges,onClose:s[1]||(s[1]=l=>Xe(n).unsavedChanges=null)},null,8,["data"])):ye("",!0),H3,b("div",U3,[i.value?(X(),Te(_a,{key:1})):(X(),Te(vp,{key:0,"item-id":o.itemId,"qli-id":o.qliId},null,8,["item-id","qli-id"]))])],64))}},[["__scopeId","data-v-51274a68"]]),K3=Rt("mygpt",()=>{const e=ae("");async function t(r,i="gpt-3.5-turbo",o=300){var a,s,l;if(!e.value)throw new Error("Secret key is required. Please set it in the store.");try{const p=await fetch("https://api.openai.com/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.value}`},body:JSON.stringify({model:i,messages:r,max_tokens:Math.min(o,300),temperature:.7})});if(!p.ok){const f=await p.json().catch(()=>({}));throw new Error(((a=f.error)==null?void 0:a.message)||`API Error: ${p.status} ${p.statusText}`)}return((l=(s=(await p.json()).choices[0])==null?void 0:s.message)==null?void 0:l.content)||"No response generated"}catch(p){throw new Error(p.message||"Failed to get response from GPT")}}function n(r){e.value=r}return{secretKey:e,getGptResponse:t,setSecretKey:n}}),Kr=e=>(Yn("data-v-46273585"),e=e(),er(),e),Z3={class:"custom-gpt-container"},Q3={class:"gpt-header"},X3=Kr(()=>b("h3",{class:"gpt-title"},"GPT Chat",-1)),J3={class:"gpt-response-area"},W3={key:0,class:"loading-indicator"},G3=[Kr(()=>b("div",{class:"spinner"},null,-1)),Kr(()=>b("span",null,"Thinking...",-1))],Y3={key:1,class:"error-message"},e8=Kr(()=>b("strong",null,"Error:",-1)),t8={key:2,class:"response-content"},n8={key:3,class:"empty-state"},r8=[Kr(()=>b("p",null,"Enter a message below to start a conversation with GPT 5.0",-1))],i8={class:"gpt-input-area"},o8={class:"input-wrapper"},a8=["placeholder","disabled"],s8=["disabled"],l8={key:0},c8={key:1},u8={key:0,class:"warning-message"},f8=Ve({__name:"ExpediteGPT",props:{secretKey:{type:String,required:!1,default:""},model:{type:String,required:!1,default:"gpt-3.5-turbo"},maxTokens:{type:Number,required:!1,default:300},placeholder:{type:String,required:!1,default:"Enter your message..."}},setup(e){const t=e,n=K3(),r=be(()=>t.secretKey||n.secretKey),i=ae(""),o=ae(""),a=ae(!1),s=ae(null),l=ae([]),p=be(()=>o.value.trim().length>0),c=be(()=>i.value.trim().length>0&&!a.value&&r.value),f=async()=>{if(!c.value)return;const h=i.value.trim();if(h){a.value=!0,s.value=null,i.value="";try{l.value.push({role:"user",content:h});const m=l.value.reduce((_,C)=>_+Math.ceil(C.content.length/4),0);let d=[...l.value];m>t.maxTokens&&(d=l.value.slice(-3));const v=await n.getGptResponse(d,t.model,t.maxTokens);o.value=v,l.value.push({role:"assistant",content:v})}catch(m){s.value=m.message||"Failed to get response from GPT",console.error("GPT API Error:",m)}finally{a.value=!1}}},u=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),f())},g=()=>{l.value=[],o.value="",s.value=null};return Cn(()=>{n.setSecretKey(t.secretKey)}),(h,m)=>(X(),ne("div",Z3,[b("div",Q3,[X3,p.value||l.value.length>0?(X(),ne("button",{key:0,onClick:g,class:"clear-button",type:"button"}," Clear ")):ye("",!0)]),b("div",J3,[a.value?(X(),ne("div",W3,G3)):s.value?(X(),ne("div",Y3,[e8,Fe(" "+ve(s.value),1)])):p.value?(X(),ne("div",t8,ve(o.value),1)):(X(),ne("div",n8,r8))]),b("div",i8,[b("div",o8,[bn(b("textarea",{"onUpdate:modelValue":m[0]||(m[0]=d=>i.value=d),placeholder:e.placeholder,disabled:a.value||!r.value,onKeypress:u,class:"gpt-input",rows:"3"},null,40,a8),[[Di,i.value]]),b("button",{onClick:f,disabled:!c.value,class:"send-button",type:"button"},[a.value?(X(),ne("span",l8,"...")):(X(),ne("span",c8,"Send"))],8,s8)]),r.value?ye("",!0):(X(),ne("div",u8," ⚠️ Secret key is required to use this component. Set it via prop or in the store. "))])]))}},[["__scopeId","data-v-46273585"]]);let fo=null;if(typeof window<"u"){try{fo=m1()}catch{}fo||(fo=v1(),jr(fo))}const Pu=e=>class extends e{connectedCallback(){super.connectedCallback&&super.connectedCallback();try{const t=new URL("./style.css",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Zn&&Zn.src||new URL("vue-expedite-components.umd.cjs",document.baseURI).href).href;if(this.shadowRoot&&!this.shadowRoot.querySelector("link[data-vue-expedite-style]")){const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("data-vue-expedite-style","true"),n.href=t,this.shadowRoot.prepend(n)}}catch{}}},Lu=Pu(lc(z3)),Ru=Pu(lc(f8));function za(){typeof window<"u"&&(customElements.get("vue-expedite-configurator")||customElements.define("vue-expedite-configurator",Lu),customElements.get("vue-expedite-gpt")||customElements.define("vue-expedite-gpt",Ru))}typeof window<"u"&&za();const d8={register:za};en.ExpediteConfiguratorElement=Lu,en.ExpediteGPTElement=Ru,en.default=d8,en.registerWebComponents=za,Object.defineProperties(en,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
86
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&lo.assertOptions(r,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),i!=null&&(de.isFunction(i)?n.paramsSerializer={serialize:i}:lo.assertOptions(i,{encode:Xt.function,serialize:Xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),lo.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=jt.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const p=[];this.interceptors.response.forEach(function(m){p.push(m.fulfilled,m.rejected)});let c,f=0,u;if(!l){const h=[Iu.bind(this),void 0];for(h.unshift(...s),h.push(...p),u=h.length,c=Promise.resolve(n);f<u;)c=c.then(h[f++],h[f++]);return c}u=s.length;let g=n;for(;f<u;){const h=s[f++],m=s[f++];try{g=h(g)}catch(d){m.call(this,d);break}}try{c=Iu.call(this,g)}catch(h){return Promise.reject(h)}for(f=0,u=p.length;f<u;)c=c.then(p[f++],p[f++]);return c}getUri(t){t=Fn(this.defaults,t);const n=vu(t.baseURL,t.url,t.allowAbsoluteUrls);return lu(n,t.params,t.paramsSerializer)}}de.forEach(["delete","get","head","options"],function(t){co.prototype[t]=function(n,r){return this.request(Fn(r||{},{method:t,url:n,data:(r||{}).data}))}}),de.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fn(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}co.prototype[t]=n(),co.prototype[t+"Form"]=n(!0)});const uo=co;class Ha{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new cr(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ha(function(i){t=i}),cancel:t}}}const D3=Ha;function B3(e){return function(n){return e.apply(null,n)}}function $3(e){return de.isObject(e)&&e.isAxiosError===!0}const Ua={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ua).forEach(([e,t])=>{Ua[t]=e});const F3=Ua;function Nu(e){const t=new uo(e),n=Zc(uo.prototype.request,t);return de.extend(n,uo.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Nu(Fn(e,i))},n}const Be=Nu(Da);Be.Axios=uo,Be.CanceledError=cr,Be.CancelToken=D3,Be.isCancel=hu,Be.VERSION=Au,Be.toFormData=no,Be.AxiosError=Pe,Be.Cancel=Be.CanceledError,Be.all=function(t){return Promise.all(t)},Be.spread=B3,Be.isAxiosError=$3,Be.mergeConfig=Fn,Be.AxiosHeaders=jt,Be.formToJSON=e=>fu(de.isHTMLForm(e)?new FormData(e):e),Be.getAdapter=Su.getAdapter,Be.HttpStatusCode=F3,Be.default=Be;class V3{constructor(t){this.restURL=t+"/services/apexrest/XX_ORD1/router"}async getProductConfiguration(t){return(await Be.post(`${this.restURL}?methodName=getProductConfiguration`,t,{headers:{"Content-Type":"application/json"}})).data}async getLineItems({request:t}){return(await Be.post(`${this.restURL}?methodName=getLineItems`,t,{headers:{"Content-Type":"application/json"}})).data}async getLineItemAttributes({request:t}){return(await Be.post(`${this.restURL}?methodName=getLineItemAttributes`,t,{headers:{"Content-Type":"application/json"}})).data}async getProductOptionsPricing({request:t}){return(await Be.post(`${this.restURL}?methodName=getProductOptionsPricing`,t,{headers:{"Content-Type":"application/json"}})).data}async calculateBestOfferPrice({request:t}){return(await Be.post(`${this.restURL}?methodName=calculateBestOfferPrice`,t,{headers:{"Content-Type":"application/json"}})).data}async getRecords({request:t}){return(await Be.post(`${this.restURL}?methodName=getRecords`,t,{headers:{"Content-Type":"application/json"}})).data}async maintainQuoteConfiguration({request:t}){return(await Be.post(`${this.restURL}?methodName=maintainQuoteConfiguration`,t,{headers:{"Content-Type":"application/json"}})).data}async getProductCrossSells({request:t}){return(await Be.post(`${this.restURL}?methodName=getProductCrossSells`,t,{headers:{"Content-Type":"application/json"}})).data}async createQuoteProducts({request:t}){return(await Be.post(`${this.restURL}?methodName=createQuoteProducts`,t,{headers:{"Content-Type":"application/json"}})).data}}class H3{constructor(t){this.restURL=t+"/services/apexrest/XX_ORD1/router"}getReturn(t){return{error:null,data:JSON.stringify(t.data),isSuccess:!0}}async getOrgInformation(){return(await Be.post(`${this.restURL}?methodName=getOrgInformation`,{},{headers:{"Content-Type":"application/json"}})).data}async getRecordInfo(t){return(await Be.post(`${this.restURL}?methodName=getRecordInfo`,t,{headers:{"Content-Type":"application/json"}})).data}getPrimaryQuote(){return new Promise((t,n)=>{setTimeout(()=>{t({userLocale:null,templateId:"a1RA000000XMtU7MAL",recordId:"a0jKb000004V2dsIACC",orgType:null,orgId:null,opportunityId:null,objectType:"XX_ORD1__Quote__c",name:"QUOTE-1379639",maxSequenceNumber:null,lineItemsCount:1,eCatalogId:"a1BKb000004oKC9MAM",currencycode:null,accountId:"0012G0000277jkgQAA"})},500)})}}const U3=(e=>(Yn("data-v-adfc84e9"),e=e(),er(),e))(()=>b("div",{class:"dropdowntp"},null,-1)),z3={class:"app-wrapper"},K3=Ve({__name:"ExpediteConfigurator",props:{itemId:{type:String,required:!0},qliId:{type:String,required:!1},quoteId:{type:String,required:!1},restUrl:{type:String,required:"https://ec-ord1-dev-ed.my.salesforce-sites.com/Order"}},setup(e){const t=ar(),n=Ui(),r=an(),i=ae(!1),o=e;return Cn(async()=>{window.productManagerController=new V3(o.restUrl),window.salesforceConnector=new H3(o.restUrl),i.value=!0,await t.start(o.quoteId),i.value=!1}),(a,s)=>(X(),ne(Oe,null,[_e(f0),_e(m0),Xe(r).errorPopup?(X(),Te(G1,{key:0,data:Xe(r).errorPopup,onClose:s[0]||(s[0]=l=>Xe(r).errorPopup=null)},null,8,["data"])):ye("",!0),Xe(n).unsavedChanges?(X(),Te(t0,{key:1,data:Xe(n).unsavedChanges,onClose:s[1]||(s[1]=l=>Xe(n).unsavedChanges=null)},null,8,["data"])):ye("",!0),U3,b("div",z3,[i.value?(X(),Te(_a,{key:1})):(X(),Te(vp,{key:0,"item-id":o.itemId,"qli-id":o.qliId},null,8,["item-id","qli-id"]))])],64))}},[["__scopeId","data-v-adfc84e9"]]),Z3=Rt("mygpt",()=>{const e=ae("");async function t(r,i="gpt-3.5-turbo",o=300){var a,s,l;if(!e.value)throw new Error("Secret key is required. Please set it in the store.");try{const p=await fetch("https://api.openai.com/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.value}`},body:JSON.stringify({model:i,messages:r,max_tokens:Math.min(o,300),temperature:.7})});if(!p.ok){const f=await p.json().catch(()=>({}));throw new Error(((a=f.error)==null?void 0:a.message)||`API Error: ${p.status} ${p.statusText}`)}return((l=(s=(await p.json()).choices[0])==null?void 0:s.message)==null?void 0:l.content)||"No response generated"}catch(p){throw new Error(p.message||"Failed to get response from GPT")}}function n(r){e.value=r}return{secretKey:e,getGptResponse:t,setSecretKey:n}}),Kr=e=>(Yn("data-v-46273585"),e=e(),er(),e),Q3={class:"custom-gpt-container"},X3={class:"gpt-header"},J3=Kr(()=>b("h3",{class:"gpt-title"},"GPT Chat",-1)),W3={class:"gpt-response-area"},G3={key:0,class:"loading-indicator"},Y3=[Kr(()=>b("div",{class:"spinner"},null,-1)),Kr(()=>b("span",null,"Thinking...",-1))],e8={key:1,class:"error-message"},t8=Kr(()=>b("strong",null,"Error:",-1)),n8={key:2,class:"response-content"},r8={key:3,class:"empty-state"},i8=[Kr(()=>b("p",null,"Enter a message below to start a conversation with GPT 5.0",-1))],o8={class:"gpt-input-area"},a8={class:"input-wrapper"},s8=["placeholder","disabled"],l8=["disabled"],c8={key:0},u8={key:1},f8={key:0,class:"warning-message"},d8=Ve({__name:"ExpediteGPT",props:{secretKey:{type:String,required:!1,default:""},model:{type:String,required:!1,default:"gpt-3.5-turbo"},maxTokens:{type:Number,required:!1,default:300},placeholder:{type:String,required:!1,default:"Enter your message..."}},setup(e){const t=e,n=Z3(),r=be(()=>t.secretKey||n.secretKey),i=ae(""),o=ae(""),a=ae(!1),s=ae(null),l=ae([]),p=be(()=>o.value.trim().length>0),c=be(()=>i.value.trim().length>0&&!a.value&&r.value),f=async()=>{if(!c.value)return;const h=i.value.trim();if(h){a.value=!0,s.value=null,i.value="";try{l.value.push({role:"user",content:h});const m=l.value.reduce((_,C)=>_+Math.ceil(C.content.length/4),0);let d=[...l.value];m>t.maxTokens&&(d=l.value.slice(-3));const v=await n.getGptResponse(d,t.model,t.maxTokens);o.value=v,l.value.push({role:"assistant",content:v})}catch(m){s.value=m.message||"Failed to get response from GPT",console.error("GPT API Error:",m)}finally{a.value=!1}}},u=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),f())},g=()=>{l.value=[],o.value="",s.value=null};return Cn(()=>{n.setSecretKey(t.secretKey)}),(h,m)=>(X(),ne("div",Q3,[b("div",X3,[J3,p.value||l.value.length>0?(X(),ne("button",{key:0,onClick:g,class:"clear-button",type:"button"}," Clear ")):ye("",!0)]),b("div",W3,[a.value?(X(),ne("div",G3,Y3)):s.value?(X(),ne("div",e8,[t8,Fe(" "+ve(s.value),1)])):p.value?(X(),ne("div",n8,ve(o.value),1)):(X(),ne("div",r8,i8))]),b("div",o8,[b("div",a8,[bn(b("textarea",{"onUpdate:modelValue":m[0]||(m[0]=d=>i.value=d),placeholder:e.placeholder,disabled:a.value||!r.value,onKeypress:u,class:"gpt-input",rows:"3"},null,40,s8),[[Di,i.value]]),b("button",{onClick:f,disabled:!c.value,class:"send-button",type:"button"},[a.value?(X(),ne("span",c8,"...")):(X(),ne("span",u8,"Send"))],8,l8)]),r.value?ye("",!0):(X(),ne("div",f8," ⚠️ Secret key is required to use this component. Set it via prop or in the store. "))])]))}},[["__scopeId","data-v-46273585"]]);let fo=null;if(typeof window<"u"){try{fo=m1()}catch{}fo||(fo=v1(),jr(fo))}const Pu=e=>class extends e{connectedCallback(){super.connectedCallback&&super.connectedCallback();try{const t=new URL("./style.css",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Zn&&Zn.src||new URL("vue-expedite-components.umd.cjs",document.baseURI).href).href;if(this.shadowRoot&&!this.shadowRoot.querySelector("link[data-vue-expedite-style]")){const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("data-vue-expedite-style","true"),n.href=t,this.shadowRoot.prepend(n)}}catch{}}},Lu=Pu(lc(K3)),Ru=Pu(lc(d8));function za(){typeof window<"u"&&(customElements.get("vue-expedite-configurator")||customElements.define("vue-expedite-configurator",Lu),customElements.get("vue-expedite-gpt")||customElements.define("vue-expedite-gpt",Ru))}typeof window<"u"&&za();const h8={register:za};en.ExpediteConfiguratorElement=Lu,en.ExpediteGPTElement=Ru,en.default=h8,en.registerWebComponents=za,Object.defineProperties(en,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});