ablok-components 0.1.93 ā 0.1.95
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.
|
@@ -18364,7 +18364,7 @@ const _k = { class: "input input-dropdown" }, xk = { class: "dropdown" }, Ok = {
|
|
|
18364
18364
|
label: h.text,
|
|
18365
18365
|
required: t.required,
|
|
18366
18366
|
disabled: h.selectable === !1,
|
|
18367
|
-
class: "form-check-input"
|
|
18367
|
+
class: "form-check-input visually-hidden"
|
|
18368
18368
|
}, null, 8, Rk)), [
|
|
18369
18369
|
[nS, i.value]
|
|
18370
18370
|
]),
|
|
@@ -130,7 +130,7 @@ ${u}`:c)}else throw s},onCacheKey:s=>S1(A,e,s)}}function nT(t){if(nA(t))return t
|
|
|
130
130
|
* vue-i18n v9.8.0
|
|
131
131
|
* (c) 2023 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
|
-
*/const iT="9.8.0";function sT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=ot.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},oT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see š https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(oT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),oe={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:aT,args:A}:void 0)}const aT={[oe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[oe.INVALID_ARGUMENT]:"Invalid argument",[oe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[oe.NOT_INSTALLED]:"Need to install with `app.use` function",[oe.UNEXPECTED_ERROR]:"Unexpected error",[oe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[oe.REQUIRED_VALUE]:"Required in value: {0}",[oe.INVALID_VALUE]:"Invalid value",[oe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[oe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[oe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[oe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[oe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define āi18nā option or custom block in Composition API with using local scope in Legacy API mode",[oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),lT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!kA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))kA(t[A])&&Js(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!kA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),kA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:Be(n)?{}:{[t]:{}};if(Be(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Vs(u,s[c])):Vs(u,s)}else nA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function cT(t,A,e){let n=kA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(kA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(kA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],uT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const fT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function dT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=YA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:nA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:nA(t.fallbackLocale)||Be(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:YA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:YA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:YA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=jA(t.missing)?t.missing:null,F=jA(t.missing)?lm(t.missing):null,I=jA(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:YA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const N=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:iT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:F===null?void 0:F,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=TA(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=TA(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=TA(H)?H.__v_emitter:void 0);const X=YS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const z=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),lA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),uA=p.computed(()=>u.value),aA=p.computed(()=>f.value),LA=p.computed(()=>h.value);function Ae(){return jA(I)?I:null}function xA(K){I=K,H.postTranslation=K}function CA(){return b}function vA(K){K!==null&&(F=lm(K)),b=K,H.missing=F}function re(K,X){return K!=="translate"||!X.resolvedMessage}const RA=(K,X,UA,VA,_t,Tn)=>{V();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?XS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(UA!=="translate exists"&&Ye(Xt)&&Xt===Ca||UA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&nA(xt)&&re(UA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:UA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:UA,key:xt,to:"global",groupId:`${UA}:${xt}`})}return e&&w?VA(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(oe.UNEXPECTED_RETURN_TYPE)}};function WA(...K){return RA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>nA(X))}function we(...K){const[X,UA,VA]=K;if(VA&&!kA(VA))throw Qr(oe.INVALID_ARGUMENT);return WA(X,UA,ze({resolvedMessage:!0},VA||{}))}function Ce(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>nA(X))}function Ue(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>nA(X))}function ee(K){return K.map(X=>nA(X)||Ye(X)||YA(X)?im(String(X)):X)}const lt={normalize:ee,interpolate:K=>K,type:"vnode"};function ct(...K){return RA(X=>{let UA;const VA=X;try{VA.processor=lt,UA=Reflect.apply(GB,null,[VA,...K])}finally{VA.processor=null}return UA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>Be(X))}function je(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>nA(X)||Be(X))}function ke(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>nA(X)||Be(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return RA(()=>{if(!K)return!1;const UA=nA(X)?X:a.value,VA=k(UA),_t=H.messageResolver(VA,K);return si(_t)||Pt(_t)||nA(_t)},()=>[K],"translate exists",UA=>Reflect.apply(UA.te,UA,[K,X]),uT,UA=>YA(UA))}function x(K){let X=null;const UA=vB(H,c.value,a.value);for(let VA=0;VA<UA.length;VA++){const _t=u.value[UA[VA]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function Z(K,X){if(i){const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K]}u.value[K]=X,H.messages=u.value}function oA(K,X){u.value[K]=u.value[K]||{};const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K],Vs(X,u.value[K]),H.messages=u.value}function IA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Re(K,X){f.value[K]=ze(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=ze(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ie={id:am,locale:z,fallbackLocale:lA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:uA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return E},set escapeParameter(K){E=K,H.escapeParameter=K},t:WA,getLocaleMessage:k,setLocaleMessage:Z,mergeLocaleMessage:oA,getPostTranslationHandler:Ae,setPostTranslationHandler:xA,getMissingHandler:CA,setMissingHandler:vA,[lT]:ut};return ie.datetimeFormats=aA,ie.numberFormats=LA,ie.rt=we,ie.te=Tt,ie.tm=v,ie.d=Ce,ie.n=Ue,ie.getDateTimeFormat=IA,ie.setDateTimeFormat=ft,ie.mergeDateTimeFormat=Re,ie.getNumberFormat=Ke,ie.setNumberFormat=Sn,ie.mergeNumberFormat=un,ie[nm]=n,ie[Lu]=ct,ie[Hu]=ke,ie[Mu]=je,process.env.NODE_ENV!=="production"&&(ie[Nu]=K=>{H.__v_emitter=K},ie[Du]=()=>{H.__v_emitter=void 0}),ie}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}ze({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ye(t)||!isNaN(t)}},Ku);function pT(t){return Be(t)&&!nA(t[0])}function um(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),nA(t.format)?s.key=t.format:kA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?ze({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];Be(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return pT(U)&&(U[0].key=`${g.type}-${m}`),U}):nA(c)&&(u=[c]);const f=ze({},i),h=nA(t.tag)||kA(t.tag)?t.tag:cm();return p.h(h,f,u)}}ze({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),ze({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const gT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(oe.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(oe.NOT_INSTALLED);const e=BT(A),n=wT(e),r=rm(A),i=mT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(oe.NOT_AVAILABLE_IN_LEGACY_MODE);return QT(A,i,n,t)}if(i==="global")return cT(n,t,r),n;if(i==="parent"){let c=CT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=ze({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),ET(s,A,a),s.__setInstance(A,a)}return a}function BT(t){{const A=p.inject(t.isCE?gT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?oe.NOT_INSTALLED_WITH_PROVIDE:oe.UNEXPECTED_ERROR);return A}}function mT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wT(t){return t.mode==="composition"?t.global:t.global.__composer}function CT(t,A,e=!1){let n=null;const r=A.root;let i=yT(A,e);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,e&&n&&!n[nm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function yT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function ET(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=D1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function QT(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(oe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=YA(n.inheritLocale)?n.inheritLocale:!nA(n.locale),a=p.ref(!r||s?e.locale.value:nA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:nA(n.fallbackLocale)||Be(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:YA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:YA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:YA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=jA(n.missing)?n.missing:null,F=jA(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:YA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,E=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),V=p.computed(()=>i.value?i.value.messages.value:u.value),z=p.computed(()=>f.value),lA=p.computed(()=>h.value);function uA(){return i.value?i.value.getPostTranslationHandler():F}function aA(v){i.value&&i.value.setPostTranslationHandler(v)}function LA(){return i.value?i.value.getMissingHandler():b}function Ae(v){i.value&&i.value.setMissingHandler(v)}function xA(v){return T(),v()}function CA(...v){return i.value?xA(()=>Reflect.apply(i.value.t,null,[...v])):xA(()=>"")}function vA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function re(...v){return i.value?xA(()=>Reflect.apply(i.value.d,null,[...v])):xA(()=>"")}function RA(...v){return i.value?xA(()=>Reflect.apply(i.value.n,null,[...v])):xA(()=>"")}function WA(v){return i.value?i.value.tm(v):{}}function we(v,k){return i.value?i.value.te(v,k):!1}function Ce(v){return i.value?i.value.getLocaleMessage(v):{}}function Ue(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function ee(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function ye(v){return i.value?i.value.getDateTimeFormat(v):{}}function lt(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function je(v){return i.value?i.value.getNumberFormat(v):{}}function ke(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:V,datetimeFormats:z,numberFormats:lA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:CA,getPostTranslationHandler:uA,setPostTranslationHandler:aA,getMissingHandler:LA,setMissingHandler:Ae,rt:vA,d:re,n:RA,tm:WA,te:we,getLocaleMessage:Ce,setLocaleMessage:Ue,mergeLocaleMessage:ee,getDateTimeFormat:ye,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:je,setNumberFormat:ke,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(sT(),__INTLIFY_JIT_COMPILATION__?_B(jS):_B(ZS),GS(FS),WS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,OS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const FT={class:"input input-dropdown"},UT={class:"dropdown"},bT={class:"caption"},vT=["innerHTML"],IT={class:"caption__text"},ST={class:"d-block text-truncate"},TT={class:"dropdown-menu"},_T={class:"form-check"},xT=["value","id","name","label","required","disabled"],OT=["value","id","name","label","required","disabled"],LT=["for"],HT=p.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},value:{type:String},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&n.modelValue.includes(c.value)}))),a=p.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",FT,[p.createElementVNode("div",UT,[p.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:p.withCtx(()=>[p.createElementVNode("span",bT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,vT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",IT,[p.createElementVNode("span",ST,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",TT,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",_T,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,xT)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,OT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,LT)])],2)]))),128))])])])}}});var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
133
|
+
*/const iT="9.8.0";function sT(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Rn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Rn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rn().__INTLIFY_PROD_DEVTOOLS__=!1)}const em=ot.__EXTEND_POINT__,Er=Eu(em),Vt={FALLBACK_TO_ROOT:em,NOT_SUPPORTED_PRESERVE:Er(),NOT_SUPPORTED_FORMATTER:Er(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Er(),NOT_SUPPORTED_GET_CHOICE_INDEX:Er(),COMPONENT_NAME_LEGACY_COMPATIBLE:Er(),NOT_FOUND_PARENT_SCOPE:Er(),IGNORE_OBJ_FLATTEN:Er(),NOTICE_DROP_ALLOW_COMPOSITION:Er()},oT={[Vt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Vt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Vt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Vt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Vt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Vt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Vt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Vt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Vt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see š https://tinyurl.com/2p97mcze"};function Ou(t,...A){return yu(oT[t],...A)}const tm=_e.__EXTEND_POINT__,mt=Eu(tm),oe={UNEXPECTED_RETURN_TYPE:tm,INVALID_ARGUMENT:mt(),MUST_BE_CALL_SETUP_TOP:mt(),NOT_INSTALLED:mt(),NOT_AVAILABLE_IN_LEGACY_MODE:mt(),REQUIRED_VALUE:mt(),INVALID_VALUE:mt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mt(),NOT_INSTALLED_WITH_PROVIDE:mt(),UNEXPECTED_ERROR:mt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mt(),BRIDGE_SUPPORT_VUE_2_ONLY:mt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mt(),__EXTEND_POINT__:mt()};function Qr(t,...A){return Pi(t,null,process.env.NODE_ENV!=="production"?{messages:aT,args:A}:void 0)}const aT={[oe.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[oe.INVALID_ARGUMENT]:"Invalid argument",[oe.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[oe.NOT_INSTALLED]:"Need to install with `app.use` function",[oe.UNEXPECTED_ERROR]:"Unexpected error",[oe.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[oe.REQUIRED_VALUE]:"Required in value: {0}",[oe.INVALID_VALUE]:"Invalid value",[oe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[oe.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[oe.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[oe.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[oe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define āi18nā option or custom block in Composition API with using local scope in Legacy API mode",[oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Lu=kn("__translateVNode"),Hu=kn("__datetimeParts"),Mu=kn("__numberParts"),Nu=kn("__enableEmitter"),Du=kn("__disableEmitter"),lT=kn("__setPluralRules"),nm=kn("__injectWithOption"),ku=kn("__dispose");function Js(t){if(!kA(t))return t;for(const A in t)if(Ps(t,A))if(!A.includes("."))kA(t[A])&&Js(t[A]);else{const e=A.split("."),n=e.length-1;let r=t,i=!1;for(let s=0;s<n;s++){if(e[s]in r||(r[e[s]]={}),!kA(r[e[s]])){process.env.NODE_ENV!=="production"&&wr(Ou(Vt.IGNORE_OBJ_FLATTEN,{key:e[s]})),i=!0;break}r=r[e[s]]}i||(r[e[n]]=t[A],delete t[A]),kA(r[e[n]])&&Js(r[e[n]])}return t}function Ru(t,A){const{messages:e,__i18n:n,messageResolver:r,flatJson:i}=A,s=TA(e)?e:Be(n)?{}:{[t]:{}};if(Be(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(s[c]=s[c]||{},Vs(u,s[c])):Vs(u,s)}else nA(a)&&Vs(JSON.parse(a),s)}),r==null&&i)for(const a in s)Ps(s,a)&&Js(s[a]);return s}function rm(t){return t.type}function cT(t,A,e){let n=kA(A.messages)?A.messages:{};"__i18nGlobal"in e&&(n=Ru(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(kA(A.datetimeFormats)){const i=Object.keys(A.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,A.datetimeFormats[s])})}if(kA(A.numberFormats)){const i=Object.keys(A.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,A.numberFormats[s])})}}}function im(t){return p.createVNode(p.Text,null,t,0)}const sm="__INTLIFY_META__",om=()=>[],uT=()=>!1;let am=0;function lm(t){return(A,e,n,r)=>t(e,n,p.getCurrentInstance()||void 0,r)}const fT=()=>{const t=p.getCurrentInstance();let A=null;return t&&(A=rm(t)[sm])?{[sm]:A}:null};function dT(t={},A){const{__root:e,__injectWithOption:n}=t,r=e===void 0,i=t.flatJson;let s=YA(t.inheritLocale)?t.inheritLocale:!0;const a=p.ref(e&&s?e.locale.value:nA(t.locale)?t.locale:Ws),c=p.ref(e&&s?e.fallbackLocale.value:nA(t.fallbackLocale)||Be(t.fallbackLocale)||TA(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=p.ref(Ru(a.value,t)),f=p.ref(TA(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=e?e.missingWarn:YA(t.missingWarn)||Ki(t.missingWarn)?t.missingWarn:!0,m=e?e.fallbackWarn:YA(t.fallbackWarn)||Ki(t.fallbackWarn)?t.fallbackWarn:!0,w=e?e.fallbackRoot:YA(t.fallbackRoot)?t.fallbackRoot:!0,U=!!t.fallbackFormat,b=jA(t.missing)?t.missing:null,F=jA(t.missing)?lm(t.missing):null,I=jA(t.postTranslation)?t.postTranslation:null,M=e?e.warnHtmlMessage:YA(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const N=e?e.modifiers:TA(t.modifiers)?t.modifiers:{};let T=t.pluralRules||e&&e.pluralRules,H;H=(()=>{r&&MB(null);const K={version:iT,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:N,pluralRules:T,missing:F===null?void 0:F,missingWarn:g,fallbackWarn:m,fallbackFormat:U,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:M,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=f.value,K.numberFormats=h.value,K.__datetimeFormatters=TA(H)?H.__datetimeFormatters:void 0,K.__numberFormatters=TA(H)?H.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(K.__v_emitter=TA(H)?H.__v_emitter:void 0);const X=YS(K);return r&&MB(X),X})(),$s(H,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const z=p.computed({get:()=>a.value,set:K=>{a.value=K,H.locale=a.value}}),lA=p.computed({get:()=>c.value,set:K=>{c.value=K,H.fallbackLocale=c.value,$s(H,a.value,K)}}),uA=p.computed(()=>u.value),aA=p.computed(()=>f.value),LA=p.computed(()=>h.value);function Ae(){return jA(I)?I:null}function xA(K){I=K,H.postTranslation=K}function CA(){return b}function vA(K){K!==null&&(F=lm(K)),b=K,H.missing=F}function re(K,X){return K!=="translate"||!X.resolvedMessage}const RA=(K,X,UA,VA,_t,Tn)=>{V();let Xt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=e?XS():void 0),Xt=K(H)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(H.fallbackContext=void 0)}if(UA!=="translate exists"&&Ye(Xt)&&Xt===Ca||UA==="translate exists"&&!Xt){const[xt,fi]=X();if(process.env.NODE_ENV!=="production"&&e&&nA(xt)&&re(UA,fi)&&(w&&(Ea(m,xt)||DB(g,xt))&&wr(Ou(Vt.FALLBACK_TO_ROOT,{key:xt,type:UA})),process.env.NODE_ENV!=="production")){const{__v_emitter:R}=H;R&&w&&R.emit("fallback",{type:UA,key:xt,to:"global",groupId:`${UA}:${xt}`})}return e&&w?VA(e):_t(xt)}else{if(Tn(Xt))return Xt;throw Qr(oe.UNEXPECTED_RETURN_TYPE)}};function WA(...K){return RA(X=>Reflect.apply(GB,null,[X,...K]),()=>Tu(...K),"translate",X=>Reflect.apply(X.t,X,[...K]),X=>X,X=>nA(X))}function we(...K){const[X,UA,VA]=K;if(VA&&!kA(VA))throw Qr(oe.INVALID_ARGUMENT);return WA(X,UA,ze({resolvedMessage:!0},VA||{}))}function Ce(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>Reflect.apply(X.d,X,[...K]),()=>ya,X=>nA(X))}function Ue(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>Reflect.apply(X.n,X,[...K]),()=>ya,X=>nA(X))}function ee(K){return K.map(X=>nA(X)||Ye(X)||YA(X)?im(String(X)):X)}const lt={normalize:ee,interpolate:K=>K,type:"vnode"};function ct(...K){return RA(X=>{let UA;const VA=X;try{VA.processor=lt,UA=Reflect.apply(GB,null,[VA,...K])}finally{VA.processor=null}return UA},()=>Tu(...K),"translate",X=>X[Lu](...K),X=>[im(X)],X=>Be(X))}function je(...K){return RA(X=>Reflect.apply(ZB,null,[X,...K]),()=>xu(...K),"number format",X=>X[Mu](...K),om,X=>nA(X)||Be(X))}function ke(...K){return RA(X=>Reflect.apply(YB,null,[X,...K]),()=>_u(...K),"datetime format",X=>X[Hu](...K),om,X=>nA(X)||Be(X))}function ut(K){T=K,H.pluralRules=T}function Tt(K,X){return RA(()=>{if(!K)return!1;const UA=nA(X)?X:a.value,VA=k(UA),_t=H.messageResolver(VA,K);return si(_t)||Pt(_t)||nA(_t)},()=>[K],"translate exists",UA=>Reflect.apply(UA.te,UA,[K,X]),uT,UA=>YA(UA))}function x(K){let X=null;const UA=vB(H,c.value,a.value);for(let VA=0;VA<UA.length;VA++){const _t=u.value[UA[VA]]||{},Tn=H.messageResolver(_t,K);if(Tn!=null){X=Tn;break}}return X}function v(K){const X=x(K);return X??(e?e.tm(K)||{}:{})}function k(K){return u.value[K]||{}}function Z(K,X){if(i){const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K]}u.value[K]=X,H.messages=u.value}function oA(K,X){u.value[K]=u.value[K]||{};const UA={[K]:X};for(const VA in UA)Ps(UA,VA)&&Js(UA[VA]);X=UA[K],Vs(X,u.value[K]),H.messages=u.value}function IA(K){return f.value[K]||{}}function ft(K,X){f.value[K]=X,H.datetimeFormats=f.value,qB(H,K,X)}function Re(K,X){f.value[K]=ze(f.value[K]||{},X),H.datetimeFormats=f.value,qB(H,K,X)}function Ke(K){return h.value[K]||{}}function Sn(K,X){h.value[K]=X,H.numberFormats=h.value,Am(H,K,X)}function un(K,X){h.value[K]=ze(h.value[K]||{},X),H.numberFormats=h.value,Am(H,K,X)}am++,e&&mr&&(p.watch(e.locale,K=>{s&&(a.value=K,H.locale=K,$s(H,a.value,c.value))}),p.watch(e.fallbackLocale,K=>{s&&(c.value=K,H.fallbackLocale=K,$s(H,a.value,c.value))}));const ie={id:am,locale:z,fallbackLocale:lA,get inheritLocale(){return s},set inheritLocale(K){s=K,K&&e&&(a.value=e.locale.value,c.value=e.fallbackLocale.value,$s(H,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:uA,get modifiers(){return N},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return g},set missingWarn(K){g=K,H.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(K){m=K,H.fallbackWarn=m},get fallbackRoot(){return w},set fallbackRoot(K){w=K},get fallbackFormat(){return U},set fallbackFormat(K){U=K,H.fallbackFormat=U},get warnHtmlMessage(){return M},set warnHtmlMessage(K){M=K,H.warnHtmlMessage=K},get escapeParameter(){return E},set escapeParameter(K){E=K,H.escapeParameter=K},t:WA,getLocaleMessage:k,setLocaleMessage:Z,mergeLocaleMessage:oA,getPostTranslationHandler:Ae,setPostTranslationHandler:xA,getMissingHandler:CA,setMissingHandler:vA,[lT]:ut};return ie.datetimeFormats=aA,ie.numberFormats=LA,ie.rt=we,ie.te=Tt,ie.tm=v,ie.d=Ce,ie.n=Ue,ie.getDateTimeFormat=IA,ie.setDateTimeFormat=ft,ie.mergeDateTimeFormat=Re,ie.getNumberFormat=Ke,ie.setNumberFormat=Sn,ie.mergeNumberFormat=un,ie[nm]=n,ie[Lu]=ct,ie[Hu]=ke,ie[Mu]=je,process.env.NODE_ENV!=="production"&&(ie[Nu]=K=>{H.__v_emitter=K},ie[Du]=()=>{H.__v_emitter=void 0}),ie}const Ku={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function hT({slots:t},A){return A.length===1&&A[0]==="default"?(t.default?t.default():[]).reduce((n,r)=>[...n,...r.type===p.Fragment?r.children:[r]],[]):A.reduce((e,n)=>{const r=t[n];return r&&(e[n]=r()),e},{})}function cm(t){return p.Fragment}ze({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Ye(t)||!isNaN(t)}},Ku);function pT(t){return Be(t)&&!nA(t[0])}function um(t,A,e,n){const{slots:r,attrs:i}=A;return()=>{const s={part:!0};let a={};t.locale&&(s.locale=t.locale),nA(t.format)?s.key=t.format:kA(t.format)&&(nA(t.format.key)&&(s.key=t.format.key),a=Object.keys(t.format).reduce((g,m)=>e.includes(m)?ze({},g,{[m]:t.format[m]}):g,{}));const c=n(t.value,s,a);let u=[s.key];Be(c)?u=c.map((g,m)=>{const w=r[g.type],U=w?w({[g.type]:g.value,index:m,parts:c}):[g.value];return pT(U)&&(U[0].key=`${g.type}-${m}`),U}):nA(c)&&(u=[c]);const f=ze({},i),h=nA(t.tag)||kA(t.tag)?t.tag:cm();return p.h(h,f,u)}}ze({value:{type:Number,required:!0},format:{type:[String,Object]}},Ku),ze({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ku);function fm(t,A){}const gT=kn("global-vue-i18n");function Qa(t={}){const A=p.getCurrentInstance();if(A==null)throw Qr(oe.MUST_BE_CALL_SETUP_TOP);if(!A.isCE&&A.appContext.app!=null&&!A.appContext.app.__VUE_I18N_SYMBOL__)throw Qr(oe.NOT_INSTALLED);const e=BT(A),n=wT(e),r=rm(A),i=mT(t,r);if(__VUE_I18N_LEGACY_API__&&e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Qr(oe.NOT_AVAILABLE_IN_LEGACY_MODE);return QT(A,i,n,t)}if(i==="global")return cT(n,t,r),n;if(i==="parent"){let c=CT(e,A,t.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&wr(Ou(Vt.NOT_FOUND_PARENT_SCOPE)),c=n),c}const s=e;let a=s.__getInstance(A);if(a==null){const c=ze({},t);"__i18n"in r&&(c.__i18n=r.__i18n),n&&(c.__root=n),a=dT(c),s.__composerExtend&&(a[ku]=s.__composerExtend(a)),ET(s,A,a),s.__setInstance(A,a)}return a}function BT(t){{const A=p.inject(t.isCE?gT:t.appContext.app.__VUE_I18N_SYMBOL__);if(!A)throw Qr(t.isCE?oe.NOT_INSTALLED_WITH_PROVIDE:oe.UNEXPECTED_ERROR);return A}}function mT(t,A){return ma(t)?"__i18n"in A?"local":"global":t.useScope?t.useScope:"local"}function wT(t){return t.mode==="composition"?t.global:t.global.__composer}function CT(t,A,e=!1){let n=null;const r=A.root;let i=yT(A,e);for(;i!=null;){const s=t;if(t.mode==="composition")n=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=s.__getInstance(i);a!=null&&(n=a.__composer,e&&n&&!n[nm]&&(n=null))}if(n!=null||r===i)break;i=i.parent}return n}function yT(t,A=!1){return t==null?null:A&&t.vnode.ctx||t.parent}function ET(t,A,e){let n=null;p.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&A.vnode.el){A.vnode.el.__VUE_I18N__=e,n=D1();const r=e;r[Nu]&&r[Nu](n),n.on("*",fm)}},A),p.onUnmounted(()=>{const r=e;process.env.NODE_ENV!=="production"&&A.vnode.el&&A.vnode.el.__VUE_I18N__&&(n&&n.off("*",fm),r[Du]&&r[Du](),delete A.vnode.el.__VUE_I18N__),t.__deleteInstance(A);const i=r[ku];i&&(i(),delete r[ku])},A)}function QT(t,A,e,n={}){const r=A==="local",i=p.shallowRef(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Qr(oe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=YA(n.inheritLocale)?n.inheritLocale:!nA(n.locale),a=p.ref(!r||s?e.locale.value:nA(n.locale)?n.locale:Ws),c=p.ref(!r||s?e.fallbackLocale.value:nA(n.fallbackLocale)||Be(n.fallbackLocale)||TA(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=p.ref(Ru(a.value,n)),f=p.ref(TA(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),h=p.ref(TA(n.numberFormats)?n.numberFormats:{[a.value]:{}}),g=r?e.missingWarn:YA(n.missingWarn)||Ki(n.missingWarn)?n.missingWarn:!0,m=r?e.fallbackWarn:YA(n.fallbackWarn)||Ki(n.fallbackWarn)?n.fallbackWarn:!0,w=r?e.fallbackRoot:YA(n.fallbackRoot)?n.fallbackRoot:!0,U=!!n.fallbackFormat,b=jA(n.missing)?n.missing:null,F=jA(n.postTranslation)?n.postTranslation:null,I=r?e.warnHtmlMessage:YA(n.warnHtmlMessage)?n.warnHtmlMessage:!0,M=!!n.escapeParameter,E=r?e.modifiers:TA(n.modifiers)?n.modifiers:{},N=n.pluralRules||r&&e.pluralRules;function T(){return[a.value,c.value,u.value,f.value,h.value]}const H=p.computed({get:()=>i.value?i.value.locale.value:a.value,set:v=>{i.value&&(i.value.locale.value=v),a.value=v}}),Y=p.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:v=>{i.value&&(i.value.fallbackLocale.value=v),c.value=v}}),V=p.computed(()=>i.value?i.value.messages.value:u.value),z=p.computed(()=>f.value),lA=p.computed(()=>h.value);function uA(){return i.value?i.value.getPostTranslationHandler():F}function aA(v){i.value&&i.value.setPostTranslationHandler(v)}function LA(){return i.value?i.value.getMissingHandler():b}function Ae(v){i.value&&i.value.setMissingHandler(v)}function xA(v){return T(),v()}function CA(...v){return i.value?xA(()=>Reflect.apply(i.value.t,null,[...v])):xA(()=>"")}function vA(...v){return i.value?Reflect.apply(i.value.rt,null,[...v]):""}function re(...v){return i.value?xA(()=>Reflect.apply(i.value.d,null,[...v])):xA(()=>"")}function RA(...v){return i.value?xA(()=>Reflect.apply(i.value.n,null,[...v])):xA(()=>"")}function WA(v){return i.value?i.value.tm(v):{}}function we(v,k){return i.value?i.value.te(v,k):!1}function Ce(v){return i.value?i.value.getLocaleMessage(v):{}}function Ue(v,k){i.value&&(i.value.setLocaleMessage(v,k),u.value[v]=k)}function ee(v,k){i.value&&i.value.mergeLocaleMessage(v,k)}function ye(v){return i.value?i.value.getDateTimeFormat(v):{}}function lt(v,k){i.value&&(i.value.setDateTimeFormat(v,k),f.value[v]=k)}function ct(v,k){i.value&&i.value.mergeDateTimeFormat(v,k)}function je(v){return i.value?i.value.getNumberFormat(v):{}}function ke(v,k){i.value&&(i.value.setNumberFormat(v,k),h.value[v]=k)}function ut(v,k){i.value&&i.value.mergeNumberFormat(v,k)}const Tt={get id(){return i.value?i.value.id:-1},locale:H,fallbackLocale:Y,messages:V,datetimeFormats:z,numberFormats:lA,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(v){i.value&&(i.value.inheritLocale=v)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:E},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:g},set missingWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackWarn(){return i.value?i.value.fallbackWarn:m},set fallbackWarn(v){i.value&&(i.value.missingWarn=v)},get fallbackRoot(){return i.value?i.value.fallbackRoot:w},set fallbackRoot(v){i.value&&(i.value.fallbackRoot=v)},get fallbackFormat(){return i.value?i.value.fallbackFormat:U},set fallbackFormat(v){i.value&&(i.value.fallbackFormat=v)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(v){i.value&&(i.value.warnHtmlMessage=v)},get escapeParameter(){return i.value?i.value.escapeParameter:M},set escapeParameter(v){i.value&&(i.value.escapeParameter=v)},t:CA,getPostTranslationHandler:uA,setPostTranslationHandler:aA,getMissingHandler:LA,setMissingHandler:Ae,rt:vA,d:re,n:RA,tm:WA,te:we,getLocaleMessage:Ce,setLocaleMessage:Ue,mergeLocaleMessage:ee,getDateTimeFormat:ye,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:je,setNumberFormat:ke,mergeNumberFormat:ut};function x(v){v.locale.value=a.value,v.fallbackLocale.value=c.value,Object.keys(u.value).forEach(k=>{v.mergeLocaleMessage(k,u.value[k])}),Object.keys(f.value).forEach(k=>{v.mergeDateTimeFormat(k,f.value[k])}),Object.keys(h.value).forEach(k=>{v.mergeNumberFormat(k,h.value[k])}),v.escapeParameter=M,v.fallbackFormat=U,v.fallbackRoot=w,v.fallbackWarn=m,v.missingWarn=g,v.warnHtmlMessage=I}return p.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Qr(oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const v=i.value=t.proxy.$i18n.__composer;A==="global"?(a.value=v.locale.value,c.value=v.fallbackLocale.value,u.value=v.messages.value,f.value=v.datetimeFormats.value,h.value=v.numberFormats.value):r&&x(v)}),Tt}if(sT(),__INTLIFY_JIT_COMPILATION__?_B(jS):_B(ZS),GS(FS),WS(vB),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=Rn();t.__INTLIFY__=!0,OS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const FT={class:"input input-dropdown"},UT={class:"dropdown"},bT={class:"caption"},vT=["innerHTML"],IT={class:"caption__text"},ST={class:"d-block text-truncate"},TT={class:"dropdown-menu"},_T={class:"form-check"},xT=["value","id","name","label","required","disabled"],OT=["value","id","name","label","required","disabled"],LT=["for"],HT=p.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},value:{type:String},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const{t:e}=Qa(),n=t,r=A,i=p.computed({get(){return n.multiple&&!n.modelValue?[]:n.modelValue},set(c){r("update:modelValue",c)}}),s=p.computed(()=>n.options&&n.options.map(c=>(c=typeof c=="string"?{text:c,value:c}:c,{...c,active:n.modelValue&&n.modelValue.includes(c.value)}))),a=p.computed(()=>n.modelValue&&n.modelValue.length?Array.isArray(n.modelValue)&&n.modelValue.length?s.value.reduce((c,u)=>n.modelValue.includes(u.value)?`${c}${c?", ":""}${u.text}`:c,""):s.value.reduce((c,u)=>u.value===n.modelValue?`${c}${u.text}`:c,""):n.placeholder||`${e("common.select")}`);return(c,u)=>{const f=p.resolveComponent("base-button");return p.openBlock(),p.createElementBlock("div",FT,[p.createElementVNode("div",UT,[p.createVNode(f,{"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:p.withCtx(()=>[p.createElementVNode("span",bT,[p.createVNode(p.Transition,{name:"bounce"},{default:p.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(p.openBlock(),p.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,vT)):p.createCommentVNode("",!0)]),_:1}),p.createElementVNode("span",IT,[p.createElementVNode("span",ST,p.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["title","color","outlined","disabled"]),p.createElementVNode("ul",TT,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(s.value,(h,g)=>(p.openBlock(),p.createElementBlock("li",{key:`${h.value}-${g}`},[p.createElementVNode("div",{class:p.normalizeClass(["dropdown-item",h.active&&"active"])},[p.createElementVNode("div",_T,[t.multiple?p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__if`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,xT)),[[p.vModelCheckbox,i.value]]):p.withDirectives((p.openBlock(),p.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${g}__else`,id:`${t.name}-${h.value}-${g}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,OT)),[[p.vModelRadio,i.value]]),p.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${g}`},p.toDisplayString(h.text),9,LT)])],2)]))),128))])])])}}}),TG="";var Xs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fa={exports:{}};/**
|
|
134
134
|
* @license
|
|
135
135
|
* Lodash <https://lodash.com/>
|
|
136
136
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -156,7 +156,7 @@ __p += '`),MA&&($+=`' +
|
|
|
156
156
|
function print() { __p += __j.call(arguments, '') }
|
|
157
157
|
`:`;
|
|
158
158
|
`)+$+`return __p
|
|
159
|
-
}`;var FA=Jy(function(){return KA(Q,sA+"return "+$).apply(e,S)});if(FA.source=$,$d(FA))throw FA;return FA}function g2(o){return GA(o).toLowerCase()}function B2(o){return GA(o).toUpperCase()}function m2(o,l,d){if(o=GA(o),o&&(d||l===e))return t0(o);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=fn(l),Q=n0(B,C),S=r0(B,C)+1;return Kr(B,Q,S).join("")}function w2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.slice(0,s0(o)+1);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=r0(B,fn(l))+1;return Kr(B,0,C).join("")}function C2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.replace($f,"");if(!o||!(l=Ht(l)))return o;var B=fn(o),C=n0(B,fn(l));return Kr(B,C).join("")}function y2(o,l){var d=z,B=lA;if(ae(l)){var C="separator"in l?l.separator:C;d="length"in l?yA(l.length):d,B="omission"in l?Ht(l.omission):B}o=GA(o);var Q=o.length;if(ls(o)){var S=fn(o);Q=S.length}if(d>=Q)return o;var _=d-cs(B);if(_<1)return B;var L=S?Kr(S,0,_).join(""):o.slice(0,_);if(C===e)return L+B;if(S&&(_+=L.length-_),Jd(C)){if(o.slice(_).search(C)){var G,W=L;for(C.global||(C=ld(C.source,GA(FC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var $=G.index;L=L.slice(0,$===e?_:$)}}else if(o.indexOf(Ht(C),_)!=_){var q=L.lastIndexOf(C);q>-1&&(L=L.slice(0,q))}return L+B}function E2(o){return o=GA(o),o&&Jn.test(o)?o.replace($n,qk):o}var Q2=Bs(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),zd=X0("toUpperCase");function $y(o,l,d){return o=GA(o),l=d?e:l,l===e?$k(o)?AR(o):Nk(o):o.match(l)||[]}var Jy=bA(function(o,l){try{return Ot(o,e,l)}catch(d){return $d(d)?d:new BA(d)}}),F2=Zn(function(o,l){return zt(l,function(d){d=On(d),zn(o,d,Gd(o[d],o))}),o});function U2(o){var l=o==null?0:o.length,d=dA();return o=l?se(o,function(B){if(typeof B[1]!="function")throw new qt(s);return[d(B[0]),B[1]]}):[],bA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(Ot(Q[0],this,B))return Ot(Q[1],this,B)}})}function b2(o){return qR(jt(o,h))}function qd(o){return function(){return o}}function v2(o,l){return o==null||o!==o?l:o}var I2=z0(),S2=z0(!0);function Ft(o){return o}function Zd(o){return b0(typeof o=="function"?o:jt(o,h))}function T2(o){return I0(jt(o,h))}function _2(o,l){return S0(o,jt(l,h))}var x2=bA(function(o,l){return function(d){return Io(d,o,l)}}),O2=bA(function(o,l){return function(d){return Io(o,d,l)}});function jd(o,l,d){var B=Oe(l),C=Kl(l,B);d==null&&!(ae(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=Kl(l,Oe(l)));var Q=!(ae(d)&&"chain"in d)||!!d.chain,S=Ar(o);return zt(C,function(_){var L=l[_];o[_]=L,S&&(o.prototype[_]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),$=W.__actions__=yt(this.__actions__);return $.push({func:L,args:arguments,thisArg:o}),W.__chain__=G,W}return L.apply(o,Hr([this.value()],arguments))})}),o}function L2(){return Ve._===this&&(Ve._=sR),this}function Ah(){}function H2(o){return o=yA(o),bA(function(l){return T0(l,o)})}var M2=_d(se),N2=_d(qC),D2=_d(td);function Xy(o){return Dd(o)?nd(On(o)):h4(o)}function k2(o){return function(l){return o==null?e:mi(o,l)}}var R2=Z0(),K2=Z0(!0);function eh(){return[]}function th(){return!1}function P2(){return{}}function V2(){return""}function G2(){return!0}function W2(o,l){if(o=yA(o),o<1||o>vA)return[];var d=WA,B=At(o,WA);l=dA(l),o-=WA;for(var C=sd(B,l);++d<o;)l(d);return C}function $2(o){return mA(o)?se(o,On):Mt(o)?[o]:yt(hy(GA(o)))}function J2(o){var l=++rR;return GA(o)+l}var X2=Jl(function(o,l){return o+l},0),Y2=xd("ceil"),z2=Jl(function(o,l){return o/l},1),q2=xd("floor");function Z2(o){return o&&o.length?Rl(o,Ft,Bd):e}function j2(o,l){return o&&o.length?Rl(o,dA(l,2),Bd):e}function AG(o){return A0(o,Ft)}function eG(o,l){return A0(o,dA(l,2))}function tG(o){return o&&o.length?Rl(o,Ft,yd):e}function nG(o,l){return o&&o.length?Rl(o,dA(l,2),yd):e}var rG=Jl(function(o,l){return o*l},1),iG=xd("round"),sG=Jl(function(o,l){return o-l},0);function oG(o){return o&&o.length?id(o,Ft):0}function aG(o,l){return o&&o.length?id(o,dA(l,2)):0}return y.after=TP,y.ary=Uy,y.assign=BV,y.assignIn=ky,y.assignInWith=sc,y.assignWith=mV,y.at=wV,y.before=by,y.bind=Gd,y.bindAll=F2,y.bindKey=vy,y.castArray=PP,y.chain=Ey,y.chunk=q4,y.compact=Z4,y.concat=j4,y.cond=U2,y.conforms=b2,y.constant=qd,y.countBy=oP,y.create=CV,y.curry=Iy,y.curryRight=Sy,y.debounce=Ty,y.defaults=yV,y.defaultsDeep=EV,y.defer=_P,y.delay=xP,y.difference=AK,y.differenceBy=eK,y.differenceWith=tK,y.drop=nK,y.dropRight=rK,y.dropRightWhile=iK,y.dropWhile=sK,y.fill=oK,y.filter=lP,y.flatMap=fP,y.flatMapDeep=dP,y.flatMapDepth=hP,y.flatten=my,y.flattenDeep=aK,y.flattenDepth=lK,y.flip=OP,y.flow=I2,y.flowRight=S2,y.fromPairs=cK,y.functions=SV,y.functionsIn=TV,y.groupBy=pP,y.initial=fK,y.intersection=dK,y.intersectionBy=hK,y.intersectionWith=pK,y.invert=xV,y.invertBy=OV,y.invokeMap=BP,y.iteratee=Zd,y.keyBy=mP,y.keys=Oe,y.keysIn=Qt,y.map=Ac,y.mapKeys=HV,y.mapValues=MV,y.matches=T2,y.matchesProperty=_2,y.memoize=tc,y.merge=NV,y.mergeWith=Ry,y.method=x2,y.methodOf=O2,y.mixin=jd,y.negate=nc,y.nthArg=H2,y.omit=DV,y.omitBy=kV,y.once=LP,y.orderBy=wP,y.over=M2,y.overArgs=HP,y.overEvery=N2,y.overSome=D2,y.partial=Wd,y.partialRight=_y,y.partition=CP,y.pick=RV,y.pickBy=Ky,y.property=Xy,y.propertyOf=k2,y.pull=wK,y.pullAll=Cy,y.pullAllBy=CK,y.pullAllWith=yK,y.pullAt=EK,y.range=R2,y.rangeRight=K2,y.rearg=MP,y.reject=QP,y.remove=QK,y.rest=NP,y.reverse=Pd,y.sampleSize=UP,y.set=PV,y.setWith=VV,y.shuffle=bP,y.slice=FK,y.sortBy=SP,y.sortedUniq=_K,y.sortedUniqBy=xK,y.split=f2,y.spread=DP,y.tail=OK,y.take=LK,y.takeRight=HK,y.takeRightWhile=MK,y.takeWhile=NK,y.tap=ZK,y.throttle=kP,y.thru=jl,y.toArray=My,y.toPairs=Py,y.toPairsIn=Vy,y.toPath=$2,y.toPlainObject=Dy,y.transform=GV,y.unary=RP,y.union=DK,y.unionBy=kK,y.unionWith=RK,y.uniq=KK,y.uniqBy=PK,y.uniqWith=VK,y.unset=WV,y.unzip=Vd,y.unzipWith=yy,y.update=$V,y.updateWith=JV,y.values=Cs,y.valuesIn=XV,y.without=GK,y.words=$y,y.wrap=KP,y.xor=WK,y.xorBy=$K,y.xorWith=JK,y.zip=XK,y.zipObject=YK,y.zipObjectDeep=zK,y.zipWith=qK,y.entries=Py,y.entriesIn=Vy,y.extend=ky,y.extendWith=sc,jd(y,y),y.add=X2,y.attempt=Jy,y.camelCase=ZV,y.capitalize=Gy,y.ceil=Y2,y.clamp=YV,y.clone=VP,y.cloneDeep=WP,y.cloneDeepWith=$P,y.cloneWith=GP,y.conformsTo=JP,y.deburr=Wy,y.defaultTo=v2,y.divide=z2,y.endsWith=jV,y.eq=hn,y.escape=A2,y.escapeRegExp=e2,y.every=aP,y.find=cP,y.findIndex=gy,y.findKey=QV,y.findLast=uP,y.findLastIndex=By,y.findLastKey=FV,y.floor=q2,y.forEach=Qy,y.forEachRight=Fy,y.forIn=UV,y.forInRight=bV,y.forOwn=vV,y.forOwnRight=IV,y.get=Xd,y.gt=XP,y.gte=YP,y.has=_V,y.hasIn=Yd,y.head=wy,y.identity=Ft,y.includes=gP,y.indexOf=uK,y.inRange=zV,y.invoke=LV,y.isArguments=yi,y.isArray=mA,y.isArrayBuffer=zP,y.isArrayLike=Et,y.isArrayLikeObject=de,y.isBoolean=qP,y.isBuffer=Pr,y.isDate=ZP,y.isElement=jP,y.isEmpty=AV,y.isEqual=eV,y.isEqualWith=tV,y.isError=$d,y.isFinite=nV,y.isFunction=Ar,y.isInteger=xy,y.isLength=rc,y.isMap=Oy,y.isMatch=rV,y.isMatchWith=iV,y.isNaN=sV,y.isNative=oV,y.isNil=lV,y.isNull=aV,y.isNumber=Ly,y.isObject=ae,y.isObjectLike=ce,y.isPlainObject=Lo,y.isRegExp=Jd,y.isSafeInteger=cV,y.isSet=Hy,y.isString=ic,y.isSymbol=Mt,y.isTypedArray=ws,y.isUndefined=uV,y.isWeakMap=fV,y.isWeakSet=dV,y.join=gK,y.kebabCase=t2,y.last=en,y.lastIndexOf=BK,y.lowerCase=n2,y.lowerFirst=r2,y.lt=hV,y.lte=pV,y.max=Z2,y.maxBy=j2,y.mean=AG,y.meanBy=eG,y.min=tG,y.minBy=nG,y.stubArray=eh,y.stubFalse=th,y.stubObject=P2,y.stubString=V2,y.stubTrue=G2,y.multiply=rG,y.nth=mK,y.noConflict=L2,y.noop=Ah,y.now=ec,y.pad=i2,y.padEnd=s2,y.padStart=o2,y.parseInt=a2,y.random=qV,y.reduce=yP,y.reduceRight=EP,y.repeat=l2,y.replace=c2,y.result=KV,y.round=iG,y.runInContext=O,y.sample=FP,y.size=vP,y.snakeCase=u2,y.some=IP,y.sortedIndex=UK,y.sortedIndexBy=bK,y.sortedIndexOf=vK,y.sortedLastIndex=IK,y.sortedLastIndexBy=SK,y.sortedLastIndexOf=TK,y.startCase=d2,y.startsWith=h2,y.subtract=sG,y.sum=oG,y.sumBy=aG,y.template=p2,y.times=W2,y.toFinite=er,y.toInteger=yA,y.toLength=Ny,y.toLower=g2,y.toNumber=tn,y.toSafeInteger=gV,y.toString=GA,y.toUpper=B2,y.trim=m2,y.trimEnd=w2,y.trimStart=C2,y.truncate=y2,y.unescape=E2,y.uniqueId=J2,y.upperCase=Q2,y.upperFirst=zd,y.each=Qy,y.eachRight=Fy,y.first=wy,jd(y,function(){var o={};return _n(y,function(l,d){$A.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),zt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:ve(yA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,WA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),zt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==LA||d==xA;OA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),zt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),zt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=bA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return Io(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(nc(dA(o)))},OA.prototype.slice=function(o,l){o=yA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=yA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(WA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var S=this.__wrapped__,_=B?[1]:arguments,L=S instanceof OA,G=_[0],W=L||mA(S),$=function(SA){var MA=C.apply(y,Hr([SA],_));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(L=W=!1);var q=this.__chain__,sA=!!this.__actions__.length,hA=Q&&!q,FA=L&&!sA;if(!Q&&W){S=FA?S:new OA(this);var pA=o.apply(S,_);return pA.__actions__.push({func:jl,args:[$],thisArg:e}),new Zt(pA,q)}return hA&&FA?o.apply(this,_):(pA=this.thru($),hA?B?pA.value()[0]:pA.value():pA)})}),zt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ul[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(mA(Q)?Q:[],C)}return this[d](function(S){return l.apply(mA(S)?S:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";$A.call(hs,B)||(hs[B]=[]),hs[B].push({name:l,func:d})}}),hs[$l(e,F).name]=[{name:"wrapper",func:e}],OA.prototype.clone=ER,OA.prototype.reverse=QR,OA.prototype.value=FR,y.prototype.at=jK,y.prototype.chain=AP,y.prototype.commit=eP,y.prototype.next=tP,y.prototype.plant=rP,y.prototype.reverse=iP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=sP,y.prototype.first=y.prototype.head,yo&&(y.prototype[yo]=nP),y},us=eR();di?((di.exports=us)._=us,Zf._=us):Ve._=us}).call(Xs)}(Fa,Fa.exports);var dm=Fa.exports;const MT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAA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AACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",NT={class:"camera__preview"},DT={class:"camera__bg-notification"},kT={class:p.normalizeClass("d-block light--text")},RT=["width","height"],KT=["width","height"],PT={key:0,class:"camera__countdown-overlay"},VT=["innerHTML","data-countdown"],GT=["src"],WT={class:"camera__controls"},$T={class:"container"},JT={class:"row"},XT={class:"col"},YT={class:"btn-group"},zT={key:0},qT={key:1},ZT={key:0,class:"camera__switch-cam"},jT={name:"BaseCamera",inheritAttrs:!1};function A_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const e_=p.defineComponent({...jT,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>MT},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref(),u=p.ref(),f=p.ref(!1),h=p.ref(!1),g=p.ref(0),m=p.ref(0),w=p.ref(),U=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return r.enableMirrorCamera&&z===0?"mirror-cam":""}),b=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return U.value?`mirror-cam mirror-device-${z}`:""});function F(){g.value=s.value&&s.value.clientWidth,m.value=s.value&&s.value.clientHeight}const I=dm.debounce(()=>{F()},300,{trailing:!0,leading:!1});function M(){c.value.length>1&&(u.value=u.value&&u.value.deviceId===c.value[0].deviceId?c.value[1]:c.value[0])}function E(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}}).then(z=>{s.value.srcObject=z}).catch(z=>{console.log(z,"May the browser didnt support or there is some errors.")})}function N(){s.value.srcObject.getTracks().forEach(lA=>{lA.stop()})}function T(){f.value?(f.value=!1,h.value=!1,N()):(f.value=!0,E())}function H(){r.countdown?(w.value=w.value?w.value-1:r.countdown,w.value?setTimeout(H,1e3):Y()):Y()}A({onCapture:H});function Y(){h.value=!0,console.log("capture");const z=a.value.getContext("2d"),lA=s.value,uA=lA&&lA.srcObject&&lA.srcObject.getTracks(),{width:aA,height:LA}=uA.length&&uA[0].getSettings(),Ae=aA/LA;let xA=a.value.width,CA=xA/Ae;CA<a.value.height&&(CA=a.value.height,xA=CA*Ae);const vA=U.value?-1:1;z.save(),z.scale(vA,1),z.drawImage(lA,xA>a.value.width?(a.value.width-xA)/2:0,CA>a.value.height?(a.value.height-CA)/2:0,xA*vA,CA),z.restore();const re=a.value.toDataURL("image/png");V(re)}function V(z){const lA=A_(z);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:lA,size:lA.size})}return p.onBeforeMount(async()=>{const z=await navigator.mediaDevices.enumerateDevices();c.value=z.filter(lA=>lA.kind==="videoinput"),u.value=c.value[0],r.defaultRearCamera&&M()}),p.onMounted(()=>{window.addEventListener("resize",I),F(),T()}),p.onBeforeUnmount(()=>{f.value=!1,h.value=!1,N(),window.removeEventListener("resize",I)}),(z,lA)=>{const uA=p.resolveComponent("loading-spinner"),aA=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",b.value])},[p.createElementVNode("div",NT,[p.createElementVNode("div",DT,[p.createVNode(uA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",kT,p.toDisplayString(z.$t("camera.waitForCameraNotification")),1)]),_:1})]),p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:g.value,height:m.value,autoplay:"",playsinline:""},null,8,RT),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:g.value,height:m.value},null,8,KT),[[p.vShow,h.value]]),w.value?(p.openBlock(),p.createElementBlock("div",PT,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:w.value,innerHTML:w.value,"data-countdown":w.value},null,8,VT))])):p.createCommentVNode("",!0),t.enableGuide&&f.value?(p.openBlock(),p.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,GT)):p.createCommentVNode("",!0)]),p.createElementVNode("div",WT,[p.createElementVNode("div",$T,[p.createElementVNode("div",JT,[p.createElementVNode("div",XT,[p.createElementVNode("div",YT,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[f.value?(p.openBlock(),p.createElementBlock("span",qT,p.toDisplayString(z.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",zT,p.toDisplayString(z.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:H},p.toDisplayString(z.$t("camera.capture")),1)])])])])]),c.value&&c.value.length>1?(p.openBlock(),p.createElementBlock("div",ZT,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(M,["prevent"])},[p.createVNode(aA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0)],2)}}}),TG="",t_=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,r_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function i_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){s_(t);return}return A}function s_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function o_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.at(-1)==='"'&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!r_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(t_.test(t)||n_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,i_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const a_=/#/g,l_=/&/g,c_=/=/g,Pu=/\+/g,u_=/%5e/gi,f_=/%60/gi,d_=/%7c/gi,h_=/%20/gi;function p_(t){return encodeURI(""+t).replace(d_,"|")}function Vu(t){return p_(typeof t=="string"?t:JSON.stringify(t)).replace(Pu,"%2B").replace(h_,"+").replace(a_,"%23").replace(l_,"%26").replace(f_,"`").replace(u_,"^")}function Gu(t){return Vu(t).replace(c_,"%3D")}function hm(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function g_(t){return hm(t.replace(Pu," "))}function B_(t){return hm(t.replace(Pu," "))}function m_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=g_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=B_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function w_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Gu(t)}=${Vu(e)}`).join("&"):`${Gu(t)}=${Vu(A)}`:Gu(t)}function C_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>w_(A,t[A])).filter(Boolean).join("&")}const y_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,E_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Q_=/^([/\\]\s*){2,}[^/\\]/;function pm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?y_.test(t):E_.test(t)||(A.acceptRelative?Q_.test(t):!1)}const F_=/\/$|\/\?|\/#/;function Wu(t="",A){return A?F_.test(t):t.endsWith("/")}function U_(t="",A){if(!A)return(Wu(t)?t.slice(0,-1):t)||"/";if(!Wu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return(i.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function b_(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(Wu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function v_(t,A){if(S_(A)||pm(t))return t;const e=U_(A);return t.startsWith(e)?t:x_(e,t)}function I_(t,A){const e=gm(t),n={...m_(e.search),...A};return e.search=C_(n),O_(e)}function S_(t){return!t||t==="/"}function T_(t){return t&&t!=="/"}const __=/^\.?\//;function x_(t,...A){let e=t||"";for(const n of A.filter(r=>T_(r)))if(e){const r=n.replace(__,"");e=b_(e)+r}else e=n;return e}function gm(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!pm(t,{acceptRelative:!0}))return A?gm(A+t):Bm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=Bm(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f}}function Bm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function O_(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+r+i+A+e+n}class L_ extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function H_(t){var c,u,f,h,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((f=t.request)==null?void 0:f.method)||((h=t.options)==null?void 0:h.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new L_(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const M_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function mm(t="GET"){return M_.has(t.toUpperCase())}function N_(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const D_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),k_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function R_(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return k_.test(A)?"json":D_.has(A)||A.startsWith("text/")?"text":"blob"}function K_(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const P_=new Set([408,409,425,429,500,502,503,504]),V_=new Set([101,204,205,304]);function wm(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=mm(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):P_.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1,timeout:a.options.timeout})}}const u=H_(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var g;const f={request:c,options:K_(u,t.defaults,e),response:void 0,error:void 0};if(f.options.method=(g=f.options.method)==null?void 0:g.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=v_(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=I_(f.request,{...f.options.params,...f.options.query}))),f.options.body&&mm(f.options.method)&&(N_(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half"))),!f.options.signal&&f.options.timeout){const m=new n;setTimeout(()=>m.abort(),f.options.timeout),f.options.signal=m.signal}try{f.response=await A(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}if(f.response.body&&!V_.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||R_(f.response.headers.get("content-type")||"");switch(m){case"json":{const w=await f.response.text(),U=f.options.parseResponse||o_;f.response._data=U(w);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[m]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>wm({...t,defaults:{...t.defaults,...a}}),s}const $u=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),G_=$u.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),W_=$u.Headers,$_=$u.AbortController,J_=wm({fetch:G_,Headers:W_,AbortController:$_}),X_={class:"file-upload"},Y_=["src"],z_=["onClick"],q_=["for"],Z_=p.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),j_={key:0,class:"file-upload__loading-spinner"},Ax=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function ex(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const tx=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await ex(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),e.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||J_)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",X_,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,U)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:"file-upload__thumbnail"},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,Y_),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(U),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,z_)]))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[Z_]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",j_,Ax)):p.createCommentVNode("",!0)]),_:1})],8,q_)])}}}),xG="",nx={class:"upload-group"},rx=["innerHTML"],ix={class:"row"},sx={class:"img-container"},ox=["src"],ax=["onClick"],lx={class:"col-auto mb-4"},cx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Cm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",nx,[p.createElementVNode("label",{innerHTML:t.label},null,8,rx),p.createElementVNode("div",ix,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",sx,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,ox),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,ax)])]))),128)),p.createElementVNode("div",lx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:p.withCtx(()=>[p.createElementVNode("span",cx,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),OG="",ux={class:"upload-group"},fx=["innerHTML"],dx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",ux,[p.createElementVNode("label",{innerHTML:t.label},null,8,fx),p.createVNode(Cm,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),LG="",hx={class:"carousel d-flex"},px={class:"carousel__track d-flex justify-center align-items-center"},gx=["onClick"],ym=p.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref();function r(){n.value.scrollTo({top:0,left:0,behavior:"smooth"})}function i(){n.value.scrollTo({top:0,left:n.value.clientWidth,behavior:"smooth"})}function s(a){e("update:modelValue",a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",hx,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(r,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",px,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(f,h)=>p.renderSlot(a.$slots,"carousel-item",{key:f.src,item:f,index:h},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",h===t.modelValue?"selected":""]),onClick:g=>s(h)},p.toDisplayString(f),11,gx)])),128))])],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),HG="",Bx={class:"media-thumbnails"},mx=["onClick"],wx={class:"img-container ratio ratio-1x1"},Cx=["src"],yx=p.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Bx,[p.createVNode(ym,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",wx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,Cx)])],8,mx)]),_:1},8,["items"])]))}}),MG="",Ex={class:"progress-steps"},Qx={class:"progress-steps__list"},Fx={class:"progress-step"},Ux=["checked","id","value","disabled","read-only","required","onChange"],bx=["for"],vx=["innerHTML"],Ix=["for"],Sx=["innerHTML"],Tx=p.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Ex,[p.createElementVNode("ul",Qx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",Fx,[p.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,Ux),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,vx)])],8,bx),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,Sx)])],8,Ix)])])],2))),128))])]))}}),NG="";/*!
|
|
159
|
+
}`;var FA=Jy(function(){return KA(Q,sA+"return "+$).apply(e,S)});if(FA.source=$,$d(FA))throw FA;return FA}function g2(o){return GA(o).toLowerCase()}function B2(o){return GA(o).toUpperCase()}function m2(o,l,d){if(o=GA(o),o&&(d||l===e))return t0(o);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=fn(l),Q=n0(B,C),S=r0(B,C)+1;return Kr(B,Q,S).join("")}function w2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.slice(0,s0(o)+1);if(!o||!(l=Ht(l)))return o;var B=fn(o),C=r0(B,fn(l))+1;return Kr(B,0,C).join("")}function C2(o,l,d){if(o=GA(o),o&&(d||l===e))return o.replace($f,"");if(!o||!(l=Ht(l)))return o;var B=fn(o),C=n0(B,fn(l));return Kr(B,C).join("")}function y2(o,l){var d=z,B=lA;if(ae(l)){var C="separator"in l?l.separator:C;d="length"in l?yA(l.length):d,B="omission"in l?Ht(l.omission):B}o=GA(o);var Q=o.length;if(ls(o)){var S=fn(o);Q=S.length}if(d>=Q)return o;var _=d-cs(B);if(_<1)return B;var L=S?Kr(S,0,_).join(""):o.slice(0,_);if(C===e)return L+B;if(S&&(_+=L.length-_),Jd(C)){if(o.slice(_).search(C)){var G,W=L;for(C.global||(C=ld(C.source,GA(FC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var $=G.index;L=L.slice(0,$===e?_:$)}}else if(o.indexOf(Ht(C),_)!=_){var q=L.lastIndexOf(C);q>-1&&(L=L.slice(0,q))}return L+B}function E2(o){return o=GA(o),o&&Jn.test(o)?o.replace($n,qk):o}var Q2=Bs(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),zd=X0("toUpperCase");function $y(o,l,d){return o=GA(o),l=d?e:l,l===e?$k(o)?AR(o):Nk(o):o.match(l)||[]}var Jy=bA(function(o,l){try{return Ot(o,e,l)}catch(d){return $d(d)?d:new BA(d)}}),F2=Zn(function(o,l){return zt(l,function(d){d=On(d),zn(o,d,Gd(o[d],o))}),o});function U2(o){var l=o==null?0:o.length,d=dA();return o=l?se(o,function(B){if(typeof B[1]!="function")throw new qt(s);return[d(B[0]),B[1]]}):[],bA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(Ot(Q[0],this,B))return Ot(Q[1],this,B)}})}function b2(o){return qR(jt(o,h))}function qd(o){return function(){return o}}function v2(o,l){return o==null||o!==o?l:o}var I2=z0(),S2=z0(!0);function Ft(o){return o}function Zd(o){return b0(typeof o=="function"?o:jt(o,h))}function T2(o){return I0(jt(o,h))}function _2(o,l){return S0(o,jt(l,h))}var x2=bA(function(o,l){return function(d){return Io(d,o,l)}}),O2=bA(function(o,l){return function(d){return Io(o,d,l)}});function jd(o,l,d){var B=Oe(l),C=Kl(l,B);d==null&&!(ae(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=Kl(l,Oe(l)));var Q=!(ae(d)&&"chain"in d)||!!d.chain,S=Ar(o);return zt(C,function(_){var L=l[_];o[_]=L,S&&(o.prototype[_]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),$=W.__actions__=yt(this.__actions__);return $.push({func:L,args:arguments,thisArg:o}),W.__chain__=G,W}return L.apply(o,Hr([this.value()],arguments))})}),o}function L2(){return Ve._===this&&(Ve._=sR),this}function Ah(){}function H2(o){return o=yA(o),bA(function(l){return T0(l,o)})}var M2=_d(se),N2=_d(qC),D2=_d(td);function Xy(o){return Dd(o)?nd(On(o)):h4(o)}function k2(o){return function(l){return o==null?e:mi(o,l)}}var R2=Z0(),K2=Z0(!0);function eh(){return[]}function th(){return!1}function P2(){return{}}function V2(){return""}function G2(){return!0}function W2(o,l){if(o=yA(o),o<1||o>vA)return[];var d=WA,B=At(o,WA);l=dA(l),o-=WA;for(var C=sd(B,l);++d<o;)l(d);return C}function $2(o){return mA(o)?se(o,On):Mt(o)?[o]:yt(hy(GA(o)))}function J2(o){var l=++rR;return GA(o)+l}var X2=Jl(function(o,l){return o+l},0),Y2=xd("ceil"),z2=Jl(function(o,l){return o/l},1),q2=xd("floor");function Z2(o){return o&&o.length?Rl(o,Ft,Bd):e}function j2(o,l){return o&&o.length?Rl(o,dA(l,2),Bd):e}function AG(o){return A0(o,Ft)}function eG(o,l){return A0(o,dA(l,2))}function tG(o){return o&&o.length?Rl(o,Ft,yd):e}function nG(o,l){return o&&o.length?Rl(o,dA(l,2),yd):e}var rG=Jl(function(o,l){return o*l},1),iG=xd("round"),sG=Jl(function(o,l){return o-l},0);function oG(o){return o&&o.length?id(o,Ft):0}function aG(o,l){return o&&o.length?id(o,dA(l,2)):0}return y.after=TP,y.ary=Uy,y.assign=BV,y.assignIn=ky,y.assignInWith=sc,y.assignWith=mV,y.at=wV,y.before=by,y.bind=Gd,y.bindAll=F2,y.bindKey=vy,y.castArray=PP,y.chain=Ey,y.chunk=q4,y.compact=Z4,y.concat=j4,y.cond=U2,y.conforms=b2,y.constant=qd,y.countBy=oP,y.create=CV,y.curry=Iy,y.curryRight=Sy,y.debounce=Ty,y.defaults=yV,y.defaultsDeep=EV,y.defer=_P,y.delay=xP,y.difference=AK,y.differenceBy=eK,y.differenceWith=tK,y.drop=nK,y.dropRight=rK,y.dropRightWhile=iK,y.dropWhile=sK,y.fill=oK,y.filter=lP,y.flatMap=fP,y.flatMapDeep=dP,y.flatMapDepth=hP,y.flatten=my,y.flattenDeep=aK,y.flattenDepth=lK,y.flip=OP,y.flow=I2,y.flowRight=S2,y.fromPairs=cK,y.functions=SV,y.functionsIn=TV,y.groupBy=pP,y.initial=fK,y.intersection=dK,y.intersectionBy=hK,y.intersectionWith=pK,y.invert=xV,y.invertBy=OV,y.invokeMap=BP,y.iteratee=Zd,y.keyBy=mP,y.keys=Oe,y.keysIn=Qt,y.map=Ac,y.mapKeys=HV,y.mapValues=MV,y.matches=T2,y.matchesProperty=_2,y.memoize=tc,y.merge=NV,y.mergeWith=Ry,y.method=x2,y.methodOf=O2,y.mixin=jd,y.negate=nc,y.nthArg=H2,y.omit=DV,y.omitBy=kV,y.once=LP,y.orderBy=wP,y.over=M2,y.overArgs=HP,y.overEvery=N2,y.overSome=D2,y.partial=Wd,y.partialRight=_y,y.partition=CP,y.pick=RV,y.pickBy=Ky,y.property=Xy,y.propertyOf=k2,y.pull=wK,y.pullAll=Cy,y.pullAllBy=CK,y.pullAllWith=yK,y.pullAt=EK,y.range=R2,y.rangeRight=K2,y.rearg=MP,y.reject=QP,y.remove=QK,y.rest=NP,y.reverse=Pd,y.sampleSize=UP,y.set=PV,y.setWith=VV,y.shuffle=bP,y.slice=FK,y.sortBy=SP,y.sortedUniq=_K,y.sortedUniqBy=xK,y.split=f2,y.spread=DP,y.tail=OK,y.take=LK,y.takeRight=HK,y.takeRightWhile=MK,y.takeWhile=NK,y.tap=ZK,y.throttle=kP,y.thru=jl,y.toArray=My,y.toPairs=Py,y.toPairsIn=Vy,y.toPath=$2,y.toPlainObject=Dy,y.transform=GV,y.unary=RP,y.union=DK,y.unionBy=kK,y.unionWith=RK,y.uniq=KK,y.uniqBy=PK,y.uniqWith=VK,y.unset=WV,y.unzip=Vd,y.unzipWith=yy,y.update=$V,y.updateWith=JV,y.values=Cs,y.valuesIn=XV,y.without=GK,y.words=$y,y.wrap=KP,y.xor=WK,y.xorBy=$K,y.xorWith=JK,y.zip=XK,y.zipObject=YK,y.zipObjectDeep=zK,y.zipWith=qK,y.entries=Py,y.entriesIn=Vy,y.extend=ky,y.extendWith=sc,jd(y,y),y.add=X2,y.attempt=Jy,y.camelCase=ZV,y.capitalize=Gy,y.ceil=Y2,y.clamp=YV,y.clone=VP,y.cloneDeep=WP,y.cloneDeepWith=$P,y.cloneWith=GP,y.conformsTo=JP,y.deburr=Wy,y.defaultTo=v2,y.divide=z2,y.endsWith=jV,y.eq=hn,y.escape=A2,y.escapeRegExp=e2,y.every=aP,y.find=cP,y.findIndex=gy,y.findKey=QV,y.findLast=uP,y.findLastIndex=By,y.findLastKey=FV,y.floor=q2,y.forEach=Qy,y.forEachRight=Fy,y.forIn=UV,y.forInRight=bV,y.forOwn=vV,y.forOwnRight=IV,y.get=Xd,y.gt=XP,y.gte=YP,y.has=_V,y.hasIn=Yd,y.head=wy,y.identity=Ft,y.includes=gP,y.indexOf=uK,y.inRange=zV,y.invoke=LV,y.isArguments=yi,y.isArray=mA,y.isArrayBuffer=zP,y.isArrayLike=Et,y.isArrayLikeObject=de,y.isBoolean=qP,y.isBuffer=Pr,y.isDate=ZP,y.isElement=jP,y.isEmpty=AV,y.isEqual=eV,y.isEqualWith=tV,y.isError=$d,y.isFinite=nV,y.isFunction=Ar,y.isInteger=xy,y.isLength=rc,y.isMap=Oy,y.isMatch=rV,y.isMatchWith=iV,y.isNaN=sV,y.isNative=oV,y.isNil=lV,y.isNull=aV,y.isNumber=Ly,y.isObject=ae,y.isObjectLike=ce,y.isPlainObject=Lo,y.isRegExp=Jd,y.isSafeInteger=cV,y.isSet=Hy,y.isString=ic,y.isSymbol=Mt,y.isTypedArray=ws,y.isUndefined=uV,y.isWeakMap=fV,y.isWeakSet=dV,y.join=gK,y.kebabCase=t2,y.last=en,y.lastIndexOf=BK,y.lowerCase=n2,y.lowerFirst=r2,y.lt=hV,y.lte=pV,y.max=Z2,y.maxBy=j2,y.mean=AG,y.meanBy=eG,y.min=tG,y.minBy=nG,y.stubArray=eh,y.stubFalse=th,y.stubObject=P2,y.stubString=V2,y.stubTrue=G2,y.multiply=rG,y.nth=mK,y.noConflict=L2,y.noop=Ah,y.now=ec,y.pad=i2,y.padEnd=s2,y.padStart=o2,y.parseInt=a2,y.random=qV,y.reduce=yP,y.reduceRight=EP,y.repeat=l2,y.replace=c2,y.result=KV,y.round=iG,y.runInContext=O,y.sample=FP,y.size=vP,y.snakeCase=u2,y.some=IP,y.sortedIndex=UK,y.sortedIndexBy=bK,y.sortedIndexOf=vK,y.sortedLastIndex=IK,y.sortedLastIndexBy=SK,y.sortedLastIndexOf=TK,y.startCase=d2,y.startsWith=h2,y.subtract=sG,y.sum=oG,y.sumBy=aG,y.template=p2,y.times=W2,y.toFinite=er,y.toInteger=yA,y.toLength=Ny,y.toLower=g2,y.toNumber=tn,y.toSafeInteger=gV,y.toString=GA,y.toUpper=B2,y.trim=m2,y.trimEnd=w2,y.trimStart=C2,y.truncate=y2,y.unescape=E2,y.uniqueId=J2,y.upperCase=Q2,y.upperFirst=zd,y.each=Qy,y.eachRight=Fy,y.first=wy,jd(y,function(){var o={};return _n(y,function(l,d){$A.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),zt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:ve(yA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,WA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),zt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==LA||d==xA;OA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),zt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),zt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=bA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return Io(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(nc(dA(o)))},OA.prototype.slice=function(o,l){o=yA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=yA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(WA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var S=this.__wrapped__,_=B?[1]:arguments,L=S instanceof OA,G=_[0],W=L||mA(S),$=function(SA){var MA=C.apply(y,Hr([SA],_));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(L=W=!1);var q=this.__chain__,sA=!!this.__actions__.length,hA=Q&&!q,FA=L&&!sA;if(!Q&&W){S=FA?S:new OA(this);var pA=o.apply(S,_);return pA.__actions__.push({func:jl,args:[$],thisArg:e}),new Zt(pA,q)}return hA&&FA?o.apply(this,_):(pA=this.thru($),hA?B?pA.value()[0]:pA.value():pA)})}),zt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ul[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(mA(Q)?Q:[],C)}return this[d](function(S){return l.apply(mA(S)?S:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";$A.call(hs,B)||(hs[B]=[]),hs[B].push({name:l,func:d})}}),hs[$l(e,F).name]=[{name:"wrapper",func:e}],OA.prototype.clone=ER,OA.prototype.reverse=QR,OA.prototype.value=FR,y.prototype.at=jK,y.prototype.chain=AP,y.prototype.commit=eP,y.prototype.next=tP,y.prototype.plant=rP,y.prototype.reverse=iP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=sP,y.prototype.first=y.prototype.head,yo&&(y.prototype[yo]=nP),y},us=eR();di?((di.exports=us)._=us,Zf._=us):Ve._=us}).call(Xs)}(Fa,Fa.exports);var dm=Fa.exports;const MT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAA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gLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",NT={class:"camera__preview"},DT={class:"camera__bg-notification"},kT={class:p.normalizeClass("d-block light--text")},RT=["width","height"],KT=["width","height"],PT={key:0,class:"camera__countdown-overlay"},VT=["innerHTML","data-countdown"],GT=["src"],WT={class:"camera__controls"},$T={class:"container"},JT={class:"row"},XT={class:"col"},YT={class:"btn-group"},zT={key:0},qT={key:1},ZT={key:0,class:"camera__switch-cam"},jT={name:"BaseCamera",inheritAttrs:!1};function A_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const e_=p.defineComponent({...jT,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>MT},countdown:{type:Number,default:3},ratio:{type:String,default:"16-9"}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1-1":{width:720,height:720},"4-3":{width:640,height:480},"3-4":{width:480,height:640},"16-9":{width:1280,height:720},"9-16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref(),u=p.ref(),f=p.ref(!1),h=p.ref(!1),g=p.ref(0),m=p.ref(0),w=p.ref(),U=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return r.enableMirrorCamera&&z===0?"mirror-cam":""}),b=p.computed(()=>{const z=u.value&&c.value.findIndex(lA=>lA.deviceId===u.value.deviceId);return U.value?`mirror-cam mirror-device-${z}`:""});function F(){g.value=s.value&&s.value.clientWidth,m.value=s.value&&s.value.clientHeight}const I=dm.debounce(()=>{F()},300,{trailing:!0,leading:!1});function M(){c.value.length>1&&(u.value=u.value&&u.value.deviceId===c.value[0].deviceId?c.value[1]:c.value[0])}function E(){navigator.mediaDevices.getUserMedia({audio:!1,video:{width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}}).then(z=>{s.value.srcObject=z}).catch(z=>{console.log(z,"May the browser didnt support or there is some errors.")})}function N(){s.value.srcObject.getTracks().forEach(lA=>{lA.stop()})}function T(){f.value?(f.value=!1,h.value=!1,N()):(f.value=!0,E())}function H(){r.countdown?(w.value=w.value?w.value-1:r.countdown,w.value?setTimeout(H,1e3):Y()):Y()}A({onCapture:H});function Y(){h.value=!0,console.log("capture");const z=a.value.getContext("2d"),lA=s.value,uA=lA&&lA.srcObject&&lA.srcObject.getTracks(),{width:aA,height:LA}=uA.length&&uA[0].getSettings(),Ae=aA/LA;let xA=a.value.width,CA=xA/Ae;CA<a.value.height&&(CA=a.value.height,xA=CA*Ae);const vA=U.value?-1:1;z.save(),z.scale(vA,1),z.drawImage(lA,xA>a.value.width?(a.value.width-xA)/2:0,CA>a.value.height?(a.value.height-CA)/2:0,xA*vA,CA),z.restore();const re=a.value.toDataURL("image/png");V(re)}function V(z){const lA=A_(z);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:lA,size:lA.size})}return p.onBeforeMount(async()=>{const z=await navigator.mediaDevices.enumerateDevices();c.value=z.filter(lA=>lA.kind==="videoinput"),u.value=c.value[0],r.defaultRearCamera&&M()}),p.onMounted(()=>{window.addEventListener("resize",I),F(),T()}),p.onBeforeUnmount(()=>{f.value=!1,h.value=!1,N(),window.removeEventListener("resize",I)}),(z,lA)=>{const uA=p.resolveComponent("loading-spinner"),aA=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",b.value])},[p.createElementVNode("div",NT,[p.createElementVNode("div",DT,[p.createVNode(uA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",kT,p.toDisplayString(z.$t("camera.waitForCameraNotification")),1)]),_:1})]),p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:g.value,height:m.value,autoplay:"",playsinline:""},null,8,RT),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:g.value,height:m.value},null,8,KT),[[p.vShow,h.value]]),w.value?(p.openBlock(),p.createElementBlock("div",PT,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:w.value,innerHTML:w.value,"data-countdown":w.value},null,8,VT))])):p.createCommentVNode("",!0),t.enableGuide&&f.value?(p.openBlock(),p.createElementBlock("img",{key:1,class:"camera__guide",src:t.guideSrc},null,8,GT)):p.createCommentVNode("",!0)]),p.createElementVNode("div",WT,[p.createElementVNode("div",$T,[p.createElementVNode("div",JT,[p.createElementVNode("div",XT,[p.createElementVNode("div",YT,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:T},[f.value?(p.openBlock(),p.createElementBlock("span",qT,p.toDisplayString(z.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",zT,p.toDisplayString(z.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:H},p.toDisplayString(z.$t("camera.capture")),1)])])])])]),c.value&&c.value.length>1?(p.openBlock(),p.createElementBlock("div",ZT,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(M,["prevent"])},[p.createVNode(aA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0)],2)}}}),_G="",t_=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,r_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function i_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){s_(t);return}return A}function s_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function o_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.at(-1)==='"'&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!r_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(t_.test(t)||n_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,i_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const a_=/#/g,l_=/&/g,c_=/=/g,Pu=/\+/g,u_=/%5e/gi,f_=/%60/gi,d_=/%7c/gi,h_=/%20/gi;function p_(t){return encodeURI(""+t).replace(d_,"|")}function Vu(t){return p_(typeof t=="string"?t:JSON.stringify(t)).replace(Pu,"%2B").replace(h_,"+").replace(a_,"%23").replace(l_,"%26").replace(f_,"`").replace(u_,"^")}function Gu(t){return Vu(t).replace(c_,"%3D")}function hm(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function g_(t){return hm(t.replace(Pu," "))}function B_(t){return hm(t.replace(Pu," "))}function m_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=g_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=B_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function w_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Gu(t)}=${Vu(e)}`).join("&"):`${Gu(t)}=${Vu(A)}`:Gu(t)}function C_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>w_(A,t[A])).filter(Boolean).join("&")}const y_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,E_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Q_=/^([/\\]\s*){2,}[^/\\]/;function pm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?y_.test(t):E_.test(t)||(A.acceptRelative?Q_.test(t):!1)}const F_=/\/$|\/\?|\/#/;function Wu(t="",A){return A?F_.test(t):t.endsWith("/")}function U_(t="",A){if(!A)return(Wu(t)?t.slice(0,-1):t)||"/";if(!Wu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return(i.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function b_(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(Wu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function v_(t,A){if(S_(A)||pm(t))return t;const e=U_(A);return t.startsWith(e)?t:x_(e,t)}function I_(t,A){const e=gm(t),n={...m_(e.search),...A};return e.search=C_(n),O_(e)}function S_(t){return!t||t==="/"}function T_(t){return t&&t!=="/"}const __=/^\.?\//;function x_(t,...A){let e=t||"";for(const n of A.filter(r=>T_(r)))if(e){const r=n.replace(__,"");e=b_(e)+r}else e=n;return e}function gm(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!pm(t,{acceptRelative:!0}))return A?gm(A+t):Bm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=Bm(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f}}function Bm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function O_(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol?t.protocol+"//":"")+r+i+A+e+n}class L_ extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function H_(t){var c,u,f,h,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((f=t.request)==null?void 0:f.method)||((h=t.options)==null?void 0:h.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new L_(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const M_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function mm(t="GET"){return M_.has(t.toUpperCase())}function N_(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const D_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),k_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function R_(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return k_.test(A)?"json":D_.has(A)||A.startsWith("text/")?"text":"blob"}function K_(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const P_=new Set([408,409,425,429,500,502,503,504]),V_=new Set([101,204,205,304]);function wm(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=mm(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):P_.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1,timeout:a.options.timeout})}}const u=H_(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var g;const f={request:c,options:K_(u,t.defaults,e),response:void 0,error:void 0};if(f.options.method=(g=f.options.method)==null?void 0:g.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=v_(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=I_(f.request,{...f.options.params,...f.options.query}))),f.options.body&&mm(f.options.method)&&(N_(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half"))),!f.options.signal&&f.options.timeout){const m=new n;setTimeout(()=>m.abort(),f.options.timeout),f.options.signal=m.signal}try{f.response=await A(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}if(f.response.body&&!V_.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||R_(f.response.headers.get("content-type")||"");switch(m){case"json":{const w=await f.response.text(),U=f.options.parseResponse||o_;f.response._data=U(w);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[m]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>wm({...t,defaults:{...t.defaults,...a}}),s}const $u=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),G_=$u.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),W_=$u.Headers,$_=$u.AbortController,J_=wm({fetch:G_,Headers:W_,AbortController:$_}),X_={class:"file-upload"},Y_=["src"],z_=["onClick"],q_=["for"],Z_=p.createElementVNode("span",{class:"btn btn-outline-dark"}," Select Image ",-1),j_={key:0,class:"file-upload__loading-spinner"},Ax=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function ex(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const tx=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await ex(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),e.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||J_)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",X_,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,U)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:"file-upload__thumbnail"},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,Y_),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(U),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,z_)]))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[Z_]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",j_,Ax)):p.createCommentVNode("",!0)]),_:1})],8,q_)])}}}),OG="",nx={class:"upload-group"},rx=["innerHTML"],ix={class:"row"},sx={class:"img-container"},ox=["src"],ax=["onClick"],lx={class:"col-auto mb-4"},cx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Cm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",nx,[p.createElementVNode("label",{innerHTML:t.label},null,8,rx),p.createElementVNode("div",ix,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",sx,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,ox),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,ax)])]))),128)),p.createElementVNode("div",lx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:p.withCtx(()=>[p.createElementVNode("span",cx,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),LG="",ux={class:"upload-group"},fx=["innerHTML"],dx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Ee()},id:{type:String,default:()=>Ee()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",ux,[p.createElementVNode("label",{innerHTML:t.label},null,8,fx),p.createVNode(Cm,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),HG="",hx={class:"carousel d-flex"},px={class:"carousel__track d-flex justify-center align-items-center"},gx=["onClick"],ym=p.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref();function r(){n.value.scrollTo({top:0,left:0,behavior:"smooth"})}function i(){n.value.scrollTo({top:0,left:n.value.clientWidth,behavior:"smooth"})}function s(a){e("update:modelValue",a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",hx,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(r,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",px,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(f,h)=>p.renderSlot(a.$slots,"carousel-item",{key:f.src,item:f,index:h},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",h===t.modelValue?"selected":""]),onClick:g=>s(h)},p.toDisplayString(f),11,gx)])),128))])],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(u,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),MG="",Bx={class:"media-thumbnails"},mx=["onClick"],wx={class:"img-container ratio ratio-1x1"},Cx=["src"],yx=p.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Bx,[p.createVNode(ym,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",wx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,Cx)])],8,mx)]),_:1},8,["items"])]))}}),NG="",Ex={class:"progress-steps"},Qx={class:"progress-steps__list"},Fx={class:"progress-step"},Ux=["checked","id","value","disabled","read-only","required","onChange"],bx=["for"],vx=["innerHTML"],Ix=["for"],Sx=["innerHTML"],Tx=p.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Ex,[p.createElementVNode("ul",Qx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",Fx,[p.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,Ux),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,vx)])],8,bx),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,Sx)])],8,Ix)])])],2))),128))])]))}}),DG="";/*!
|
|
160
160
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
161
161
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
162
162
|
* Released under MIT License
|
|
@@ -177,4 +177,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
177
177
|
content: "" !important;
|
|
178
178
|
display: none !important;
|
|
179
179
|
}`,gN=function(t){BN(t,"."+kf+hN+dC+`
|
|
180
|
-
.`+Rf+pN+dC)},BN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},hC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),mN=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Pf(A)||EN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return at(this,void 0,void 0,function(){var e,n,r,i,s=this;return qe(this,function(a){switch(a.label){case 0:return e=hC.isSameOrigin(A),n=!Kf(A)&&this._options.useCORS===!0&&De.SUPPORT_CORS_IMAGES&&!e,r=!Kf(A)&&!e&&!Pf(A)&&typeof this._options.proxy=="string"&&De.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Kf(A)&&!Pf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(QN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=De.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),wN=/^data:image\/svg\+xml/i,CN=/^data:image\/.*;base64,/i,yN=/^data:image\/.*/i,EN=function(t){return De.SUPPORT_SVG_DRAWING||!FN(t)},Kf=function(t){return yN.test(t)},QN=function(t){return CN.test(t)},Pf=function(t){return t.substr(0,4)==="blob"},FN=function(t){return t.substr(-3).toLowerCase()==="svg"||wN.test(t)},j=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),es=function(t,A,e){return new j(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},ul=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=es(this.start,this.startControl,A),r=es(this.startControl,this.endControl,A),i=es(this.endControl,this.end,A),s=es(n,r,A),a=es(r,i,A),c=es(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),$t=function(t){return t.type===1},UN=function(){function t(A){var e=A.styles,n=A.bounds,r=ao(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=ao(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=ao(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=ao(e.borderBottomLeftRadius,n.width,n.height),w=m[0],U=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+U)/n.height),b.push((u+g)/n.height);var F=Math.max.apply(Math,b);F>1&&(i/=F,s/=F,c/=F,u/=F,h/=F,g/=F,w/=F,U/=F);var I=n.width-c,M=n.height-g,E=n.width-h,N=n.height-U,T=e.borderTopWidth,H=e.borderRightWidth,Y=e.borderBottomWidth,V=e.borderLeftWidth,z=qA(e.paddingTop,A.bounds.width),lA=qA(e.paddingRight,A.bounds.width),uA=qA(e.paddingBottom,A.bounds.width),aA=qA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ne(n.left+V/3,n.top+T/3,i-V/3,s-T/3,PA.TOP_LEFT):new j(n.left+V/3,n.top+T/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ne(n.left+I,n.top+T/3,c-H/3,u-T/3,PA.TOP_RIGHT):new j(n.left+n.width-H/3,n.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?ne(n.left+E,n.top+M,h-H/3,g-Y/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/3,n.top+n.height-Y/3),this.bottomLeftBorderDoubleOuterBox=w>0||U>0?ne(n.left+V/3,n.top+N,w-V/3,U-Y/3,PA.BOTTOM_LEFT):new j(n.left+V/3,n.top+n.height-Y/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ne(n.left+V*2/3,n.top+T*2/3,i-V*2/3,s-T*2/3,PA.TOP_LEFT):new j(n.left+V*2/3,n.top+T*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ne(n.left+I,n.top+T*2/3,c-H*2/3,u-T*2/3,PA.TOP_RIGHT):new j(n.left+n.width-H*2/3,n.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?ne(n.left+E,n.top+M,h-H*2/3,g-Y*2/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H*2/3,n.top+n.height-Y*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||U>0?ne(n.left+V*2/3,n.top+N,w-V*2/3,U-Y*2/3,PA.BOTTOM_LEFT):new j(n.left+V*2/3,n.top+n.height-Y*2/3),this.topLeftBorderStroke=i>0||s>0?ne(n.left+V/2,n.top+T/2,i-V/2,s-T/2,PA.TOP_LEFT):new j(n.left+V/2,n.top+T/2),this.topRightBorderStroke=i>0||s>0?ne(n.left+I,n.top+T/2,c-H/2,u-T/2,PA.TOP_RIGHT):new j(n.left+n.width-H/2,n.top+T/2),this.bottomRightBorderStroke=h>0||g>0?ne(n.left+E,n.top+M,h-H/2,g-Y/2,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/2,n.top+n.height-Y/2),this.bottomLeftBorderStroke=w>0||U>0?ne(n.left+V/2,n.top+N,w-V/2,U-Y/2,PA.BOTTOM_LEFT):new j(n.left+V/2,n.top+n.height-Y/2),this.topLeftBorderBox=i>0||s>0?ne(n.left,n.top,i,s,PA.TOP_LEFT):new j(n.left,n.top),this.topRightBorderBox=c>0||u>0?ne(n.left+I,n.top,c,u,PA.TOP_RIGHT):new j(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?ne(n.left+E,n.top+M,h,g,PA.BOTTOM_RIGHT):new j(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||U>0?ne(n.left,n.top+N,w,U,PA.BOTTOM_LEFT):new j(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ne(n.left+V,n.top+T,Math.max(0,i-V),Math.max(0,s-T),PA.TOP_LEFT):new j(n.left+V,n.top+T),this.topRightPaddingBox=c>0||u>0?ne(n.left+Math.min(I,n.width-H),n.top+T,I>n.width+H?0:Math.max(0,c-H),Math.max(0,u-T),PA.TOP_RIGHT):new j(n.left+n.width-H,n.top+T),this.bottomRightPaddingBox=h>0||g>0?ne(n.left+Math.min(E,n.width-V),n.top+Math.min(M,n.height-Y),Math.max(0,h-H),Math.max(0,g-Y),PA.BOTTOM_RIGHT):new j(n.left+n.width-H,n.top+n.height-Y),this.bottomLeftPaddingBox=w>0||U>0?ne(n.left+V,n.top+Math.min(N,n.height-Y),Math.max(0,w-V),Math.max(0,U-Y),PA.BOTTOM_LEFT):new j(n.left+V,n.top+n.height-Y),this.topLeftContentBox=i>0||s>0?ne(n.left+V+aA,n.top+T+z,Math.max(0,i-(V+aA)),Math.max(0,s-(T+z)),PA.TOP_LEFT):new j(n.left+V+aA,n.top+T+z),this.topRightContentBox=c>0||u>0?ne(n.left+Math.min(I,n.width+V+aA),n.top+T+z,I>n.width+V+aA?0:c-V+aA,u-(T+z),PA.TOP_RIGHT):new j(n.left+n.width-(H+lA),n.top+T+z),this.bottomRightContentBox=h>0||g>0?ne(n.left+Math.min(E,n.width-(V+aA)),n.top+Math.min(M,n.height+T+z),Math.max(0,h-(H+lA)),g-(Y+uA),PA.BOTTOM_RIGHT):new j(n.left+n.width-(H+lA),n.top+n.height-(Y+uA)),this.bottomLeftContentBox=w>0||U>0?ne(n.left+V+aA,n.top+N,Math.max(0,w-(V+aA)),U-(Y+uA),PA.BOTTOM_LEFT):new j(n.left+V+aA,n.top+n.height-(Y+uA))}return t}(),PA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(PA||(PA={}));var ne=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case PA.TOP_LEFT:return new ul(new j(t,u),new j(t,u-a),new j(c-s,A),new j(c,A));case PA.TOP_RIGHT:return new ul(new j(t,A),new j(t+s,A),new j(c,u-a),new j(c,u));case PA.BOTTOM_RIGHT:return new ul(new j(c,A),new j(c,A+a),new j(t+s,u),new j(t,u));case PA.BOTTOM_LEFT:default:return new ul(new j(c,u),new j(c-s,u),new j(t,A+a),new j(t,A))}},fl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},bN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},dl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},vN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),hl=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),IN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),SN=function(t){return t.type===0},pC=function(t){return t.type===1},TN=function(t){return t.type===2},gC=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},_N=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},BC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),mC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new UN(this.container),this.container.styles.opacity<1&&this.effects.push(new IN(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new vN(n,r,i))}if(this.container.styles.overflowX!==0){var s=fl(this.curves),a=dl(this.curves);gC(s,a)?this.effects.push(new hl(s,6)):(this.effects.push(new hl(s,2)),this.effects.push(new hl(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!pC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=fl(n.curves),a=dl(n.curves);gC(s,a)||r.unshift(new hl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Fe(c.target,A)})},t}(),Vf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Fe(r.flags,4),s=Fe(r.flags,2),a=new mC(r,t);Fe(r.styles.display,2048)&&n.push(a);var c=Fe(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new BC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,U){return h>w.element.container.styles.zIndex.order?(g=U,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,U){return h>=w.element.container.styles.zIndex.order?(m=U+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Vf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Vf(a,A,e,c);Fe(r.flags,8)&&wC(r,c)})},wC=function(t,A){for(var e=t instanceof xf?t.start:1,n=t instanceof xf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Gw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=po(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},xN=function(t){var A=new mC(t,null),e=new BC(A),n=[];return Vf(A,e,e,n),wC(A.container,n),e},CC=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ON=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Jt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},LN=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},HN=function(t,A){switch(A){case 0:return pl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return pl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return pl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return pl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},pl=function(t,A){var e=[];return $t(t)?e.push(t.subdivide(.5,!1)):e.push(t),$t(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Jt=function(t,A,e,n){var r=[];return $t(t)?r.push(t.subdivide(.5,!1)):r.push(t),$t(e)?r.push(e.subdivide(.5,!0)):r.push(e),$t(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),$t(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},yC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},gl=function(t){var A=t.styles,e=t.bounds,n=qA(A.paddingLeft,e.width),r=qA(A.paddingRight,e.width),i=qA(A.paddingTop,e.width),s=qA(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},MN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},NN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},Gf=function(t,A,e){var n=MN(ns(t.styles.backgroundOrigin,A),t),r=NN(ns(t.styles.backgroundClip,A),t),i=DN(ns(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=ao(ns(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=kN(ns(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},ts=function(t){return XA(t)&&t.value===qi.AUTO},Bl=function(t){return typeof t=="number"},DN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(me(s)&&a&&me(a))return[qA(s,e.width),qA(a,e.height)];var c=Bl(i);if(XA(s)&&(s.value===qi.CONTAIN||s.value===qi.COVER)){if(Bl(i)){var u=e.width/e.height;return u<i!=(s.value===qi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Bl(n),h=Bl(r),g=f||h;if(ts(s)&&(!a||ts(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var U=f?n:e.width,b=h?r:e.height;return[U,b]}if(c){var F=0,I=0;return me(s)?F=qA(s,e.width):me(a)&&(I=qA(a,e.height)),ts(s)?F=I*i:(!a||ts(a))&&(I=F/i),[F,I]}var M=null,E=null;if(me(s)?M=qA(s,e.width):a&&me(a)&&(E=qA(a,e.height)),M!==null&&(!a||ts(a))&&(E=f&&h?M/n*r:e.height),E!==null&&ts(s)&&(M=f&&h?E/r*n:e.width),M!==null&&E!==null)return[M,E];throw new Error("Unable to calculate background-size for element")},ns=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},kN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new j(Math.round(n.left),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(c+n.top+s)),new j(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new j(Math.round(n.left+i),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.height+n.top)),new j(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new j(Math.round(n.left+i),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s+c)),new j(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new j(Math.round(r.left),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.height+r.top)),new j(Math.round(r.left),Math.round(r.height+r.top))]}},RN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",EC="Hidden Text",KN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=RN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(EC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(EC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),QC=function(){function t(A,e){this.context=A,this.options=e}return t}(),PN=1e4,VN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new KN(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),TN(e)&&(this.ctx.globalAlpha=e.opacity),SN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),pC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return at(this,void 0,void 0,function(){return qe(this,function(n){switch(n.label){case 0:if(Fe(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=_f(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=XN(e.fontFamily).join(", "),i=oo(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return qe(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(U){switch(U){case 0:g.ctx.fillStyle=xe(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(F){g.ctx.shadowColor=xe(F.color),g.ctx.shadowOffsetX=F.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=F.offsetY.number*g.options.scale,g.ctx.shadowBlur=F.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=xe(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(F){switch(F){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=xe(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=gl(e),s=dl(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,I,I,u,f,h,g,E,m,w,N,U,b,F,I,M,E,N;return qe(this,function(T){switch(T.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,T.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:T.sent(),T.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof Kw))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Pw&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Vw))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Xw&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=T.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),T.label=14;case 14:if(n instanceof Of&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===il?n.checked&&(this.ctx.save(),this.path([new j(n.bounds.left+h*.39363,n.bounds.top+h*.79),new j(n.bounds.left+h*.16,n.bounds.top+h*.5549),new j(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new j(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new j(n.bounds.left+h*.72983,n.bounds.top+h*.23),new j(n.bounds.left+h*.84,n.bounds.top+h*.34085),new j(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore()):n.type===sl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore())),GN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$N(n.styles.textAlign),N=gl(n),U=0,n.styles.textAlign){case 1:U+=N.width/2;break;case 2:U+=N.width;break}b=N.add(U,0,0,-N.height/2+1),this.ctx.save(),this.path([new j(N.left,N.top),new j(N.left+N.width,N.top),new j(N.left+N.width,N.top+N.height),new j(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fo(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fe(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(F=n.styles.listStyleImage,F.type!==0)return[3,18];I=void 0,M=F.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return I=T.sent(),this.ctx.drawImage(I,n.bounds.left-(I.width+10),n.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+M),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new Pn(n.bounds.left,n.bounds.top+qA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ew(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fo(e.listValue,N),i.letterSpacing,Ew(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,F,i,s,F,a,c,F,u,f,F,h,g,F,m,w,F,U,b,F;return qe(this,function(I){switch(I.label){case 0:if(Fe(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:I.sent(),n=0,r=e.negativeZIndex,I.label=2;case 2:return n<r.length?(F=r[n],[4,this.renderStack(F)]):[3,5];case 3:I.sent(),I.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:I.sent(),i=0,s=e.nonInlineLevel,I.label=7;case 7:return i<s.length?(F=s[i],[4,this.renderNode(F)]):[3,10];case 8:I.sent(),I.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,I.label=11;case 11:return a<c.length?(F=c[a],[4,this.renderStack(F)]):[3,14];case 12:I.sent(),I.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,I.label=15;case 15:return u<f.length?(F=f[u],[4,this.renderStack(F)]):[3,18];case 16:I.sent(),I.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,I.label=19;case 19:return h<g.length?(F=g[h],[4,this.renderNode(F)]):[3,22];case 20:I.sent(),I.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return m<w.length?(F=w[m],[4,this.renderStack(F)]):[3,26];case 24:I.sent(),I.label=25;case 25:return m++,[3,23];case 26:U=0,b=e.positiveZIndex,I.label=27;case 27:return U<b.length?(F=b[U],[4,this.renderStack(F)]):[3,30];case 28:I.sent(),I.label=29;case 29:return U++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=$t(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),$t(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c;return qe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,z,xA,CA,aA,LA,Y,w,z,xA,CA,aA,LA,U,b,F,I,M,E,N,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue,ee;return qe(this,function(ye){switch(ye.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=ye.sent(),[3,4];case 3:return ye.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Gf(e,n,[h.width,h.height,h.width/h.height]),z=m[0],xA=m[1],CA=m[2],aA=m[3],LA=m[4],Y=i.ctx.createPattern(i.resizeImage(h,aA,LA),"repeat"),i.renderRepeat(z,Y,xA,CA)),[3,6];case 5:SL(f)?(w=Gf(e,n,[null,null,null]),z=w[0],xA=w[1],CA=w[2],aA=w[3],LA=w[4],U=FL(f.angle,aA,LA),b=U[0],F=U[1],I=U[2],M=U[3],E=U[4],N=document.createElement("canvas"),N.width=aA,N.height=LA,T=N.getContext("2d"),H=T.createLinearGradient(F,M,I,E),uw(f.stops,b).forEach(function(lt){return H.addColorStop(lt.stop,xe(lt.color))}),T.fillStyle=H,T.fillRect(0,0,aA,LA),aA>0&&LA>0&&(Y=i.ctx.createPattern(N,"repeat"),i.renderRepeat(z,Y,xA,CA))):TL(f)&&(V=Gf(e,n,[null,null,null]),z=V[0],lA=V[1],uA=V[2],aA=V[3],LA=V[4],Ae=f.position.length===0?[gf]:f.position,xA=qA(Ae[0],aA),CA=qA(Ae[Ae.length-1],LA),vA=UL(f,xA,CA,aA,LA),re=vA[0],RA=vA[1],re>0&&RA>0&&(WA=i.ctx.createRadialGradient(lA+xA,uA+CA,0,lA+xA,uA+CA,re),uw(f.stops,re*2).forEach(function(lt){return WA.addColorStop(lt.stop,xe(lt.color))}),i.path(z),i.ctx.fillStyle=WA,re!==RA?(we=e.bounds.left+.5*e.bounds.width,Ce=e.bounds.top+.5*e.bounds.height,Ue=RA/re,ee=1/Ue,i.ctx.save(),i.ctx.translate(we,Ce),i.ctx.transform(1,0,0,Ue,0,0),i.ctx.translate(-we,-Ce),i.ctx.fillRect(lA,ee*(uA-Ce)+Ce,aA,LA*ee),i.ctx.restore()):i.ctx.fill())),ye.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return at(this,void 0,void 0,function(){return qe(this,function(i){return this.path(CC(r,n)),this.ctx.fillStyle=xe(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return qe(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=ON(i,r),this.path(s),this.ctx.fillStyle=xe(e),this.ctx.fill(),a=LN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return qe(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Sr(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=WN(ns(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Sr(n.backgroundColor)||(this.ctx.fillStyle=xe(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var w=fl(e.curves),U=m.inset?0:PN,b=_N(w,-U+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+U,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=xe(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?xe(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Sr(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,T,N,T;return qe(this,function(H){return this.ctx.save(),a=HN(i,r),c=CC(i,r),s===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),$t(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,U=n<3?n*2:n,s===3&&(w=n,U=n),b=!0,m<=w*2?b=!1:m<=w*2+U?(F=m/(2*w+U),w*=F,U*=F):(I=Math.floor((m+U)/(w+U)),M=(m-I*w)/(I-1),E=(m-(I+1)*w)/I,U=E<=0||Math.abs(U-M)<Math.abs(U-E)?M:E),b&&(s===3?this.ctx.setLineDash([0,w+U]):this.ctx.setLineDash([w,U])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=xe(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($t(c[0])&&(N=c[3],T=c[0],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke()),$t(c[1])&&(N=c[1],T=c[2],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=xN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(QC),GN=function(t){return t instanceof Jw||t instanceof $w?!0:t instanceof Of&&t.type!==sl&&t.type!==il},WN=function(t,A){switch(t){case 0:return fl(A);case 2:return bN(A);case 1:default:return dl(A)}},$N=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},JN=["-apple-system","system-ui"],XN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return JN.indexOf(A)===-1}):t},YN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n,r;return qe(this,function(i){switch(i.label){case 0:return n=Tf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,zN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(QC),zN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},qN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ua([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),ZN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new qN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new mN(this,A)}return t.instanceCount=1,t}(),jN=function(t,A){return A===void 0&&(A={}),AD(t,A)};typeof window<"u"&&hC.setContext(window);var AD=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,H,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue;return qe(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(Y=A.allowTaint)!==null&&Y!==void 0?Y:!1,imageTimeout:(V=A.imageTimeout)!==null&&V!==void 0?V:15e3,proxy:A.proxy,useCORS:(z=A.useCORS)!==null&&z!==void 0?z:!1},i=Xu({logging:(lA=A.logging)!==null&&lA!==void 0?lA:!0,cache:A.cache},r),s={windowWidth:(uA=A.windowWidth)!==null&&uA!==void 0?uA:n.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(Ae=A.scrollY)!==null&&Ae!==void 0?Ae:n.pageYOffset},a=new Pn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new ZN(i,a),u=(xA=A.foreignObjectRendering)!==null&&xA!==void 0?xA:!1,f={allowTaint:(CA=A.allowTaint)!==null&&CA!==void 0?CA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new fC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ee.sent(),w=Hf(g)||eN(g)?_x(g.ownerDocument):ba(c,g),U=w.width,b=w.height,F=w.left,I=w.top,M=eD(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:M,scale:(re=(vA=A.scale)!==null&&vA!==void 0?vA:n.devicePixelRatio)!==null&&re!==void 0?re:1,x:((RA=A.x)!==null&&RA!==void 0?RA:0)+F,y:((WA=A.y)!==null&&WA!==void 0?WA:0)+I,width:(we=A.width)!==null&&we!==void 0?we:Math.ceil(U),height:(Ce=A.height)!==null&&Ce!==void 0?Ce:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),H=new YN(c,E),[4,H.render(g)]):[3,3];case 2:return N=ee.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+F+","+I+" with size "+U+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),T=zw(c,g),M===T.styles.backgroundColor&&(T.styles.backgroundColor=Gn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),H=new VN(c,E),[4,H.render(T)];case 4:N=ee.sent(),ee.label=5;case 5:return(!((Ue=A.removeContainer)!==null&&Ue!==void 0)||Ue)&&(fC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,N]}})})},eD=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?lo(t,getComputedStyle(n.documentElement).backgroundColor):Gn.TRANSPARENT,i=n.body?lo(t,getComputedStyle(n.body).backgroundColor):Gn.TRANSPARENT,s=typeof e=="string"?lo(t,e):e===null?Gn.TRANSPARENT:4294967295;return A===n.documentElement?Sr(r)?Sr(i)?s:i:r:s};const tD=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await jN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=dm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),nD={class:"link-sharing"},rD={key:0,class:"link-sharing__links container"},iD={class:"row"},sD={key:0,class:"col-12 col-md-6"},oD=["href"],aD={class:"caption"},lD={key:1,class:"col-12 col-md-6"},cD=["href"],uD={class:"caption"},fD={key:2,class:"col-12 col-md-6"},dD={class:"caption"},hD={key:3,class:"col-12 col-md-6"},pD=["href"],gD={class:"caption"},BD={key:4,class:"col-12 col-md-6"},mD=["href"],wD={class:"caption"},CD={key:5,class:"col-12 col-md-6"},yD={class:"caption"},ED={key:6,class:"col-12 col-md-6"},QD=["href"],FD={class:"caption"},UD={key:1,class:"link-sharing__instructions pt-5"},bD={class:"row"},vD={class:"col-12 text-center py-0"},ID={class:"mb-5"},SD=t=>t.replace(/<(?:.|\n)*?>/gm,""),TD=p.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>SD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),document.execCommand("copy"),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",nD,[e.value?(p.openBlock(),p.createElementBlock("div",UD,[p.createElementVNode("div",bD,[p.createElementVNode("div",vD,[p.createElementVNode("div",ID,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",rD,[p.createElementVNode("div",iD,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",sD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",aD,p.toDisplayString(a.$t("sharing.facebook")),1)],8,oD)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",lD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",uD,p.toDisplayString(a.$t("sharing.x")),1)],8,cD)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",fD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",dD,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",hD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",gD,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,pD)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",BD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",wD,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,mD)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",CD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",yD,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",ED,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",FD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,QD)])):p.createCommentVNode("",!0)])]))])}}}),DG="",_D={class:"base-form"},xD=p.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(p.openBlock(),p.createElementBlock("div",_D,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),kG="",OD={class:"modal-dialog__content"},LD={class:"modal-dialog__header d-flex p-2"},HD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},MD={class:"modal-dialog__body"},ND={key:0,class:"modal-dialog__footer d-flex p-2"},DD=p.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g?s():a()}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h)}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",OD,[p.createElementVNode("div",LD,[t.title?(p.openBlock(),p.createElementBlock("h5",HD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto","aria-label":"Close",onClick:a})]),p.createElementVNode("div",MD,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",ND,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),RG="";NA.Accordion=yE,NA.AccordionItem=gE,NA.AssetUploader=dx,NA.BaseButton=QE,NA.BaseCamera=e_,NA.BaseCarousel=ym,NA.BaseForm=xD,NA.BaseHeadline=sE,NA.BaseInput=vE,NA.BaseParagraph=aE,NA.CheckGroup=kE,NA.DomRenderer=tD,NA.FileUpload=tx,NA.InputCheckbox=HE,NA.InputColor=v1,NA.InputDropdown=HT,NA.InputFile=ZE,NA.InputTextarea=_E,NA.LinkSharing=TD,NA.LoadingSpinner=iE,NA.MediaThumbnails=yx,NA.ModalDialog=DD,NA.ProgressSteps=Tx,NA.RadioGroup=GE,NA.RteEditor=Q1,NA.SvgIcon=jy,NA.UploadGroup=Cm,Object.defineProperty(NA,Symbol.toStringTag,{value:"Module"})});
|
|
180
|
+
.`+Rf+pN+dC)},BN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},hC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),mN=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Pf(A)||EN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return at(this,void 0,void 0,function(){var e,n,r,i,s=this;return qe(this,function(a){switch(a.label){case 0:return e=hC.isSameOrigin(A),n=!Kf(A)&&this._options.useCORS===!0&&De.SUPPORT_CORS_IMAGES&&!e,r=!Kf(A)&&!e&&!Pf(A)&&typeof this._options.proxy=="string"&&De.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Kf(A)&&!Pf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(QN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=De.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),wN=/^data:image\/svg\+xml/i,CN=/^data:image\/.*;base64,/i,yN=/^data:image\/.*/i,EN=function(t){return De.SUPPORT_SVG_DRAWING||!FN(t)},Kf=function(t){return yN.test(t)},QN=function(t){return CN.test(t)},Pf=function(t){return t.substr(0,4)==="blob"},FN=function(t){return t.substr(-3).toLowerCase()==="svg"||wN.test(t)},j=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),es=function(t,A,e){return new j(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},ul=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=es(this.start,this.startControl,A),r=es(this.startControl,this.endControl,A),i=es(this.endControl,this.end,A),s=es(n,r,A),a=es(r,i,A),c=es(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),$t=function(t){return t.type===1},UN=function(){function t(A){var e=A.styles,n=A.bounds,r=ao(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=ao(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=ao(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=ao(e.borderBottomLeftRadius,n.width,n.height),w=m[0],U=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+U)/n.height),b.push((u+g)/n.height);var F=Math.max.apply(Math,b);F>1&&(i/=F,s/=F,c/=F,u/=F,h/=F,g/=F,w/=F,U/=F);var I=n.width-c,M=n.height-g,E=n.width-h,N=n.height-U,T=e.borderTopWidth,H=e.borderRightWidth,Y=e.borderBottomWidth,V=e.borderLeftWidth,z=qA(e.paddingTop,A.bounds.width),lA=qA(e.paddingRight,A.bounds.width),uA=qA(e.paddingBottom,A.bounds.width),aA=qA(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ne(n.left+V/3,n.top+T/3,i-V/3,s-T/3,PA.TOP_LEFT):new j(n.left+V/3,n.top+T/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ne(n.left+I,n.top+T/3,c-H/3,u-T/3,PA.TOP_RIGHT):new j(n.left+n.width-H/3,n.top+T/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?ne(n.left+E,n.top+M,h-H/3,g-Y/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/3,n.top+n.height-Y/3),this.bottomLeftBorderDoubleOuterBox=w>0||U>0?ne(n.left+V/3,n.top+N,w-V/3,U-Y/3,PA.BOTTOM_LEFT):new j(n.left+V/3,n.top+n.height-Y/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ne(n.left+V*2/3,n.top+T*2/3,i-V*2/3,s-T*2/3,PA.TOP_LEFT):new j(n.left+V*2/3,n.top+T*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ne(n.left+I,n.top+T*2/3,c-H*2/3,u-T*2/3,PA.TOP_RIGHT):new j(n.left+n.width-H*2/3,n.top+T*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?ne(n.left+E,n.top+M,h-H*2/3,g-Y*2/3,PA.BOTTOM_RIGHT):new j(n.left+n.width-H*2/3,n.top+n.height-Y*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||U>0?ne(n.left+V*2/3,n.top+N,w-V*2/3,U-Y*2/3,PA.BOTTOM_LEFT):new j(n.left+V*2/3,n.top+n.height-Y*2/3),this.topLeftBorderStroke=i>0||s>0?ne(n.left+V/2,n.top+T/2,i-V/2,s-T/2,PA.TOP_LEFT):new j(n.left+V/2,n.top+T/2),this.topRightBorderStroke=i>0||s>0?ne(n.left+I,n.top+T/2,c-H/2,u-T/2,PA.TOP_RIGHT):new j(n.left+n.width-H/2,n.top+T/2),this.bottomRightBorderStroke=h>0||g>0?ne(n.left+E,n.top+M,h-H/2,g-Y/2,PA.BOTTOM_RIGHT):new j(n.left+n.width-H/2,n.top+n.height-Y/2),this.bottomLeftBorderStroke=w>0||U>0?ne(n.left+V/2,n.top+N,w-V/2,U-Y/2,PA.BOTTOM_LEFT):new j(n.left+V/2,n.top+n.height-Y/2),this.topLeftBorderBox=i>0||s>0?ne(n.left,n.top,i,s,PA.TOP_LEFT):new j(n.left,n.top),this.topRightBorderBox=c>0||u>0?ne(n.left+I,n.top,c,u,PA.TOP_RIGHT):new j(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?ne(n.left+E,n.top+M,h,g,PA.BOTTOM_RIGHT):new j(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||U>0?ne(n.left,n.top+N,w,U,PA.BOTTOM_LEFT):new j(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ne(n.left+V,n.top+T,Math.max(0,i-V),Math.max(0,s-T),PA.TOP_LEFT):new j(n.left+V,n.top+T),this.topRightPaddingBox=c>0||u>0?ne(n.left+Math.min(I,n.width-H),n.top+T,I>n.width+H?0:Math.max(0,c-H),Math.max(0,u-T),PA.TOP_RIGHT):new j(n.left+n.width-H,n.top+T),this.bottomRightPaddingBox=h>0||g>0?ne(n.left+Math.min(E,n.width-V),n.top+Math.min(M,n.height-Y),Math.max(0,h-H),Math.max(0,g-Y),PA.BOTTOM_RIGHT):new j(n.left+n.width-H,n.top+n.height-Y),this.bottomLeftPaddingBox=w>0||U>0?ne(n.left+V,n.top+Math.min(N,n.height-Y),Math.max(0,w-V),Math.max(0,U-Y),PA.BOTTOM_LEFT):new j(n.left+V,n.top+n.height-Y),this.topLeftContentBox=i>0||s>0?ne(n.left+V+aA,n.top+T+z,Math.max(0,i-(V+aA)),Math.max(0,s-(T+z)),PA.TOP_LEFT):new j(n.left+V+aA,n.top+T+z),this.topRightContentBox=c>0||u>0?ne(n.left+Math.min(I,n.width+V+aA),n.top+T+z,I>n.width+V+aA?0:c-V+aA,u-(T+z),PA.TOP_RIGHT):new j(n.left+n.width-(H+lA),n.top+T+z),this.bottomRightContentBox=h>0||g>0?ne(n.left+Math.min(E,n.width-(V+aA)),n.top+Math.min(M,n.height+T+z),Math.max(0,h-(H+lA)),g-(Y+uA),PA.BOTTOM_RIGHT):new j(n.left+n.width-(H+lA),n.top+n.height-(Y+uA)),this.bottomLeftContentBox=w>0||U>0?ne(n.left+V+aA,n.top+N,Math.max(0,w-(V+aA)),U-(Y+uA),PA.BOTTOM_LEFT):new j(n.left+V+aA,n.top+n.height-(Y+uA))}return t}(),PA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(PA||(PA={}));var ne=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case PA.TOP_LEFT:return new ul(new j(t,u),new j(t,u-a),new j(c-s,A),new j(c,A));case PA.TOP_RIGHT:return new ul(new j(t,A),new j(t+s,A),new j(c,u-a),new j(c,u));case PA.BOTTOM_RIGHT:return new ul(new j(c,A),new j(c,A+a),new j(t+s,u),new j(t,u));case PA.BOTTOM_LEFT:default:return new ul(new j(c,u),new j(c-s,u),new j(t,A+a),new j(t,A))}},fl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},bN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},dl=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},vN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),hl=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),IN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),SN=function(t){return t.type===0},pC=function(t){return t.type===1},TN=function(t){return t.type===2},gC=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},_N=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},BC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),mC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new UN(this.container),this.container.styles.opacity<1&&this.effects.push(new IN(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new vN(n,r,i))}if(this.container.styles.overflowX!==0){var s=fl(this.curves),a=dl(this.curves);gC(s,a)?this.effects.push(new hl(s,6)):(this.effects.push(new hl(s,2)),this.effects.push(new hl(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!pC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=fl(n.curves),a=dl(n.curves);gC(s,a)||r.unshift(new hl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Fe(c.target,A)})},t}(),Vf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Fe(r.flags,4),s=Fe(r.flags,2),a=new mC(r,t);Fe(r.styles.display,2048)&&n.push(a);var c=Fe(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new BC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,U){return h>w.element.container.styles.zIndex.order?(g=U,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,U){return h>=w.element.container.styles.zIndex.order?(m=U+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Vf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Vf(a,A,e,c);Fe(r.flags,8)&&wC(r,c)})},wC=function(t,A){for(var e=t instanceof xf?t.start:1,n=t instanceof xf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof Gw&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=po(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},xN=function(t){var A=new mC(t,null),e=new BC(A),n=[];return Vf(A,e,e,n),wC(A.container,n),e},CC=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ON=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Jt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Jt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Jt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},LN=function(t,A){switch(A){case 0:return Jt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Jt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Jt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Jt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},HN=function(t,A){switch(A){case 0:return pl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return pl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return pl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return pl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},pl=function(t,A){var e=[];return $t(t)?e.push(t.subdivide(.5,!1)):e.push(t),$t(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Jt=function(t,A,e,n){var r=[];return $t(t)?r.push(t.subdivide(.5,!1)):r.push(t),$t(e)?r.push(e.subdivide(.5,!0)):r.push(e),$t(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),$t(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},yC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},gl=function(t){var A=t.styles,e=t.bounds,n=qA(A.paddingLeft,e.width),r=qA(A.paddingRight,e.width),i=qA(A.paddingTop,e.width),s=qA(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},MN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},NN=function(t,A){return t===0?A.bounds:t===2?gl(A):yC(A)},Gf=function(t,A,e){var n=MN(ns(t.styles.backgroundOrigin,A),t),r=NN(ns(t.styles.backgroundClip,A),t),i=DN(ns(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=ao(ns(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=kN(ns(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},ts=function(t){return XA(t)&&t.value===qi.AUTO},Bl=function(t){return typeof t=="number"},DN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(me(s)&&a&&me(a))return[qA(s,e.width),qA(a,e.height)];var c=Bl(i);if(XA(s)&&(s.value===qi.CONTAIN||s.value===qi.COVER)){if(Bl(i)){var u=e.width/e.height;return u<i!=(s.value===qi.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Bl(n),h=Bl(r),g=f||h;if(ts(s)&&(!a||ts(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var U=f?n:e.width,b=h?r:e.height;return[U,b]}if(c){var F=0,I=0;return me(s)?F=qA(s,e.width):me(a)&&(I=qA(a,e.height)),ts(s)?F=I*i:(!a||ts(a))&&(I=F/i),[F,I]}var M=null,E=null;if(me(s)?M=qA(s,e.width):a&&me(a)&&(E=qA(a,e.height)),M!==null&&(!a||ts(a))&&(E=f&&h?M/n*r:e.height),E!==null&&ts(s)&&(M=f&&h?E/r*n:e.width),M!==null&&E!==null)return[M,E];throw new Error("Unable to calculate background-size for element")},ns=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},kN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new j(Math.round(n.left),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(n.top+s)),new j(Math.round(n.left+n.width),Math.round(c+n.top+s)),new j(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new j(Math.round(n.left+i),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.top)),new j(Math.round(n.left+i+a),Math.round(n.height+n.top)),new j(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new j(Math.round(n.left+i),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s)),new j(Math.round(n.left+i+a),Math.round(n.top+s+c)),new j(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new j(Math.round(r.left),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.top)),new j(Math.round(r.left+r.width),Math.round(r.height+r.top)),new j(Math.round(r.left),Math.round(r.height+r.top))]}},RN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",EC="Hidden Text",KN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=RN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(EC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(EC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),QC=function(){function t(A,e){this.context=A,this.options=e}return t}(),PN=1e4,VN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new KN(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),TN(e)&&(this.ctx.globalAlpha=e.opacity),SN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),pC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return at(this,void 0,void 0,function(){return qe(this,function(n){switch(n.label){case 0:if(Fe(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=_f(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=XN(e.fontFamily).join(", "),i=oo(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return qe(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(U){switch(U){case 0:g.ctx.fillStyle=xe(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(F){g.ctx.shadowColor=xe(F.color),g.ctx.shadowOffsetX=F.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=F.offsetY.number*g.options.scale,g.ctx.shadowBlur=F.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=xe(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(F){switch(F){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=xe(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=gl(e),s=dl(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,I,I,u,f,h,g,E,m,w,N,U,b,F,I,M,E,N;return qe(this,function(T){switch(T.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,T.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:T.sent(),T.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof Kw))return[3,8];T.label=5;case 5:return T.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,8];case 7:return T.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Pw&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Vw))return[3,12];T.label=9;case 9:return T.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return I=T.sent(),this.renderReplacedElement(n,r,I),[3,12];case 11:return T.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Xw&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=T.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),T.label=14;case 14:if(n instanceof Of&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===il?n.checked&&(this.ctx.save(),this.path([new j(n.bounds.left+h*.39363,n.bounds.top+h*.79),new j(n.bounds.left+h*.16,n.bounds.top+h*.5549),new j(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new j(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new j(n.bounds.left+h*.72983,n.bounds.top+h*.23),new j(n.bounds.left+h*.84,n.bounds.top+h*.34085),new j(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore()):n.type===sl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=xe(Ww),this.ctx.fill(),this.ctx.restore())),GN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=$N(n.styles.textAlign),N=gl(n),U=0,n.styles.textAlign){case 1:U+=N.width/2;break;case 2:U+=N.width;break}b=N.add(U,0,0,-N.height/2+1),this.ctx.save(),this.path([new j(N.left,N.top),new j(N.left+N.width,N.top),new j(N.left+N.width,N.top+N.height),new j(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fo(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fe(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(F=n.styles.listStyleImage,F.type!==0)return[3,18];I=void 0,M=F.url,T.label=15;case 15:return T.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return I=T.sent(),this.ctx.drawImage(I,n.bounds.left-(I.width+10),n.bounds.top),[3,18];case 17:return T.sent(),this.context.logger.error("Error loading list-style-image "+M),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=xe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new Pn(n.bounds.left,n.bounds.top+qA(n.styles.paddingTop,n.bounds.width),n.bounds.width,Ew(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fo(e.listValue,N),i.letterSpacing,Ew(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),T.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,F,i,s,F,a,c,F,u,f,F,h,g,F,m,w,F,U,b,F;return qe(this,function(I){switch(I.label){case 0:if(Fe(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:I.sent(),n=0,r=e.negativeZIndex,I.label=2;case 2:return n<r.length?(F=r[n],[4,this.renderStack(F)]):[3,5];case 3:I.sent(),I.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:I.sent(),i=0,s=e.nonInlineLevel,I.label=7;case 7:return i<s.length?(F=s[i],[4,this.renderNode(F)]):[3,10];case 8:I.sent(),I.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,I.label=11;case 11:return a<c.length?(F=c[a],[4,this.renderStack(F)]):[3,14];case 12:I.sent(),I.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,I.label=15;case 15:return u<f.length?(F=f[u],[4,this.renderStack(F)]):[3,18];case 16:I.sent(),I.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,I.label=19;case 19:return h<g.length?(F=g[h],[4,this.renderNode(F)]):[3,22];case 20:I.sent(),I.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return m<w.length?(F=w[m],[4,this.renderStack(F)]):[3,26];case 24:I.sent(),I.label=25;case 25:return m++,[3,23];case 26:U=0,b=e.positiveZIndex,I.label=27;case 27:return U<b.length?(F=b[U],[4,this.renderStack(F)]):[3,30];case 28:I.sent(),I.label=29;case 29:return U++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=$t(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),$t(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c;return qe(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,z,xA,CA,aA,LA,Y,w,z,xA,CA,aA,LA,U,b,F,I,M,E,N,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue,ee;return qe(this,function(ye){switch(ye.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=ye.sent(),[3,4];case 3:return ye.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Gf(e,n,[h.width,h.height,h.width/h.height]),z=m[0],xA=m[1],CA=m[2],aA=m[3],LA=m[4],Y=i.ctx.createPattern(i.resizeImage(h,aA,LA),"repeat"),i.renderRepeat(z,Y,xA,CA)),[3,6];case 5:SL(f)?(w=Gf(e,n,[null,null,null]),z=w[0],xA=w[1],CA=w[2],aA=w[3],LA=w[4],U=FL(f.angle,aA,LA),b=U[0],F=U[1],I=U[2],M=U[3],E=U[4],N=document.createElement("canvas"),N.width=aA,N.height=LA,T=N.getContext("2d"),H=T.createLinearGradient(F,M,I,E),uw(f.stops,b).forEach(function(lt){return H.addColorStop(lt.stop,xe(lt.color))}),T.fillStyle=H,T.fillRect(0,0,aA,LA),aA>0&&LA>0&&(Y=i.ctx.createPattern(N,"repeat"),i.renderRepeat(z,Y,xA,CA))):TL(f)&&(V=Gf(e,n,[null,null,null]),z=V[0],lA=V[1],uA=V[2],aA=V[3],LA=V[4],Ae=f.position.length===0?[gf]:f.position,xA=qA(Ae[0],aA),CA=qA(Ae[Ae.length-1],LA),vA=UL(f,xA,CA,aA,LA),re=vA[0],RA=vA[1],re>0&&RA>0&&(WA=i.ctx.createRadialGradient(lA+xA,uA+CA,0,lA+xA,uA+CA,re),uw(f.stops,re*2).forEach(function(lt){return WA.addColorStop(lt.stop,xe(lt.color))}),i.path(z),i.ctx.fillStyle=WA,re!==RA?(we=e.bounds.left+.5*e.bounds.width,Ce=e.bounds.top+.5*e.bounds.height,Ue=RA/re,ee=1/Ue,i.ctx.save(),i.ctx.translate(we,Ce),i.ctx.transform(1,0,0,Ue,0,0),i.ctx.translate(-we,-Ce),i.ctx.fillRect(lA,ee*(uA-Ce)+Ce,aA,LA*ee),i.ctx.restore()):i.ctx.fill())),ye.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return at(this,void 0,void 0,function(){return qe(this,function(i){return this.path(CC(r,n)),this.ctx.fillStyle=xe(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return qe(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=ON(i,r),this.path(s),this.ctx.fillStyle=xe(e),this.ctx.fill(),a=LN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return qe(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Sr(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=WN(ns(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Sr(n.backgroundColor)||(this.ctx.fillStyle=xe(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var w=fl(e.curves),U=m.inset?0:PN,b=_N(w,-U+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+U,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=xe(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?xe(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Sr(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,T,N,T;return qe(this,function(H){return this.ctx.save(),a=HN(i,r),c=CC(i,r),s===2&&(this.path(c),this.ctx.clip()),$t(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),$t(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,U=n<3?n*2:n,s===3&&(w=n,U=n),b=!0,m<=w*2?b=!1:m<=w*2+U?(F=m/(2*w+U),w*=F,U*=F):(I=Math.floor((m+U)/(w+U)),M=(m-I*w)/(I-1),E=(m-(I+1)*w)/I,U=E<=0||Math.abs(U-M)<Math.abs(U-E)?M:E),b&&(s===3?this.ctx.setLineDash([0,w+U]):this.ctx.setLineDash([w,U])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=xe(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&($t(c[0])&&(N=c[3],T=c[0],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke()),$t(c[1])&&(N=c[1],T=c[2],this.ctx.beginPath(),this.formatPath([new j(N.end.x,N.end.y),new j(T.start.x,T.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return qe(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=xN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(QC),GN=function(t){return t instanceof Jw||t instanceof $w?!0:t instanceof Of&&t.type!==sl&&t.type!==il},WN=function(t,A){switch(t){case 0:return fl(A);case 2:return bN(A);case 1:default:return dl(A)}},$N=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},JN=["-apple-system","system-ui"],XN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return JN.indexOf(A)===-1}):t},YN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n,r;return qe(this,function(i){switch(i.label){case 0:return n=Tf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,zN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(QC),zN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},qN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ua([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ua([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),ZN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new qN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new mN(this,A)}return t.instanceCount=1,t}(),jN=function(t,A){return A===void 0&&(A={}),AD(t,A)};typeof window<"u"&&hC.setContext(window);var AD=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,U,b,F,I,M,E,N,H,T,H,Y,V,z,lA,uA,aA,LA,Ae,xA,CA,vA,re,RA,WA,we,Ce,Ue;return qe(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(Y=A.allowTaint)!==null&&Y!==void 0?Y:!1,imageTimeout:(V=A.imageTimeout)!==null&&V!==void 0?V:15e3,proxy:A.proxy,useCORS:(z=A.useCORS)!==null&&z!==void 0?z:!1},i=Xu({logging:(lA=A.logging)!==null&&lA!==void 0?lA:!0,cache:A.cache},r),s={windowWidth:(uA=A.windowWidth)!==null&&uA!==void 0?uA:n.innerWidth,windowHeight:(aA=A.windowHeight)!==null&&aA!==void 0?aA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(Ae=A.scrollY)!==null&&Ae!==void 0?Ae:n.pageYOffset},a=new Pn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new ZN(i,a),u=(xA=A.foreignObjectRendering)!==null&&xA!==void 0?xA:!1,f={allowTaint:(CA=A.allowTaint)!==null&&CA!==void 0?CA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new fC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ee.sent(),w=Hf(g)||eN(g)?_x(g.ownerDocument):ba(c,g),U=w.width,b=w.height,F=w.left,I=w.top,M=eD(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:M,scale:(re=(vA=A.scale)!==null&&vA!==void 0?vA:n.devicePixelRatio)!==null&&re!==void 0?re:1,x:((RA=A.x)!==null&&RA!==void 0?RA:0)+F,y:((WA=A.y)!==null&&WA!==void 0?WA:0)+I,width:(we=A.width)!==null&&we!==void 0?we:Math.ceil(U),height:(Ce=A.height)!==null&&Ce!==void 0?Ce:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),H=new YN(c,E),[4,H.render(g)]):[3,3];case 2:return N=ee.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+F+","+I+" with size "+U+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),T=zw(c,g),M===T.styles.backgroundColor&&(T.styles.backgroundColor=Gn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),H=new VN(c,E),[4,H.render(T)];case 4:N=ee.sent(),ee.label=5;case 5:return(!((Ue=A.removeContainer)!==null&&Ue!==void 0)||Ue)&&(fC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,N]}})})},eD=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?lo(t,getComputedStyle(n.documentElement).backgroundColor):Gn.TRANSPARENT,i=n.body?lo(t,getComputedStyle(n.body).backgroundColor):Gn.TRANSPARENT,s=typeof e=="string"?lo(t,e):e===null?Gn.TRANSPARENT:4294967295;return A===n.documentElement?Sr(r)?Sr(i)?s:i:r:s};const tD=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await jN(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=dm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),nD={class:"link-sharing"},rD={key:0,class:"link-sharing__links container"},iD={class:"row"},sD={key:0,class:"col-12 col-md-6"},oD=["href"],aD={class:"caption"},lD={key:1,class:"col-12 col-md-6"},cD=["href"],uD={class:"caption"},fD={key:2,class:"col-12 col-md-6"},dD={class:"caption"},hD={key:3,class:"col-12 col-md-6"},pD=["href"],gD={class:"caption"},BD={key:4,class:"col-12 col-md-6"},mD=["href"],wD={class:"caption"},CD={key:5,class:"col-12 col-md-6"},yD={class:"caption"},ED={key:6,class:"col-12 col-md-6"},QD=["href"],FD={class:"caption"},UD={key:1,class:"link-sharing__instructions pt-5"},bD={class:"row"},vD={class:"col-12 text-center py-0"},ID={class:"mb-5"},SD=t=>t.replace(/<(?:.|\n)*?>/gm,""),TD=p.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>SD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),document.execCommand("copy"),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",nD,[e.value?(p.openBlock(),p.createElementBlock("div",UD,[p.createElementVNode("div",bD,[p.createElementVNode("div",vD,[p.createElementVNode("div",ID,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",rD,[p.createElementVNode("div",iD,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",sD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",aD,p.toDisplayString(a.$t("sharing.facebook")),1)],8,oD)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",lD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",uD,p.toDisplayString(a.$t("sharing.x")),1)],8,cD)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",fD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"])),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",dD,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",hD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",gD,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,pD)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",BD,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",wD,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,mD)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",CD,[p.createElementVNode("button",{class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"]),target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",yD,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",ED,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",FD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,QD)])):p.createCommentVNode("",!0)])]))])}}}),kG="",_D={class:"base-form"},xD=p.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(p.openBlock(),p.createElementBlock("div",_D,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),RG="",OD={class:"modal-dialog__content"},LD={class:"modal-dialog__header d-flex p-2"},HD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},MD={class:"modal-dialog__body"},ND={key:0,class:"modal-dialog__footer d-flex p-2"},DD=p.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g?s():a()}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h)}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",OD,[p.createElementVNode("div",LD,[t.title?(p.openBlock(),p.createElementBlock("h5",HD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto","aria-label":"Close",onClick:a})]),p.createElementVNode("div",MD,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",ND,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),KG="";NA.Accordion=yE,NA.AccordionItem=gE,NA.AssetUploader=dx,NA.BaseButton=QE,NA.BaseCamera=e_,NA.BaseCarousel=ym,NA.BaseForm=xD,NA.BaseHeadline=sE,NA.BaseInput=vE,NA.BaseParagraph=aE,NA.CheckGroup=kE,NA.DomRenderer=tD,NA.FileUpload=tx,NA.InputCheckbox=HE,NA.InputColor=v1,NA.InputDropdown=HT,NA.InputFile=ZE,NA.InputTextarea=_E,NA.LinkSharing=TD,NA.LoadingSpinner=iE,NA.MediaThumbnails=yx,NA.ModalDialog=DD,NA.ProgressSteps=Tx,NA.RadioGroup=GE,NA.RteEditor=Q1,NA.SvgIcon=jy,NA.UploadGroup=Cm,Object.defineProperty(NA,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.svg-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.accordion-button__toggle{transition:transform .24s ease-in-out;transform:rotateX(180deg);transform-origin:center}.collapsed .accordion-button__toggle{transform:rotateX(0)}:root,*:before,*:after{--button-color: #fff}.btn{display:inline-flex;justify-content:center;align-items:center;gap:.5em;transition:all .2s ease;text-decoration:none}.btn:disabled{cursor:not-allowed}.input{display:flex;flex-direction:column}.input>*{order:2}.input__label{order:0;text-align:start}.input__input-group,.input>input,.input>select,.input>textarea{flex-wrap:nowrap;order:1}.input__error{display:none}.input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.input input[type=checkbox],.input input[type=radio]{flex:none}.input input[type=color]{display:block;height:100%;padding:0;border-width:0}.input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.input input[type=color]::-webkit-color-swatch{border:none}.form-switch{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:0;gap:1rem}.form-switch .input-group{width:auto}.form-switch .form-check-input{width:2.5rem;height:1.3125rem;margin-left:0}.form-switch .form-check-label{margin:0}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}.check-group>.form-check{order:1}.check-group label{order:0}.check-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.check-group--row label{flex:1 0 100%}.radio-group>.form-check{order:1}.radio-group label{order:0}.radio-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.radio-group--row label{flex:1 0 100%}.rte-editor{height:100%;display:flex;flex-direction:column}.rte-editor__content{flex:1 1 auto}.rte-editor .ProseMirror{height:100%}.ProseMirror>*+*{margin-top:.75em}.ProseMirror ul,.ProseMirror ol{padding:0 1rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.1}.ProseMirror code{background-color:#6161611a;color:#616161}.ProseMirror pre{background:#0D0D0D;color:#fff;font-family:JetBrainsMono,monospace;padding:.75rem 1rem;border-radius:.5rem}.ProseMirror pre code{color:inherit;padding:0;background:none;font-size:.8rem}.ProseMirror img{max-width:100%;height:auto}.ProseMirror blockquote{padding-left:1rem;border-left:2px solid rgba(13,13,13,.1)}.ProseMirror hr{border:none;border-top:2px solid rgba(13,13,13,.1);margin:2rem 0}.base-input{display:flex;flex-direction:column}.base-input>*{order:2}.base-input__label{order:0}.base-input__input-group,.base-input>input,.base-input>select,.base-input>textarea{flex-wrap:nowrap;order:1}.base-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.base-input input[type=checkbox],.base-input input[type=radio]{flex:none}.base-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.base-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.base-input input[type=color]::-webkit-color-swatch{border:none}.camera,.camera__preview{position:relative;height:100%}.camera__preview canvas{position:relative;left:0;top:0}.camera__preview img,.camera__preview video{display:block;width:100%;height:100%;object-fit:cover}.camera__controls{position:absolute;bottom:0;width:100%;z-index:1;text-align:center;margin:0 0 2rem}.camera.mirror-cam img,.camera.mirror-cam video{transform:scaleX(-1)}.camera__switch-cam{position:absolute;z-index:1;right:0;top:0;margin:1rem}.camera__switch-cam .btn{display:block;background-color:#ffffff3d;border-radius:.3125rem}.camera__switch-cam .svg-icon{display:block;font-size:1.6667rem}.camera__bg-notification{position:absolute;z-index:0;left:0;top:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.camera__bg-notification+video{position:relative;z-index:1}.camera .camera__guide{position:absolute;left:0;top:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none;object-fit:contain}.camera__countdown-overlay{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:hidden}.camera__countdown-overlay .countdown{position:relative;font-size:6rem;color:#fffc;font-weight:700}.camera__countdown-overlay .countdown:before,.camera__countdown-overlay .countdown:after{position:absolute;left:0;top:0;z-index:1;content:attr(data-countdown);transform-origin:center;animation-name:pulse;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:ease-out}.camera__countdown-overlay .countdown:after{animation-duration:.1 .25s;animation-delay:.25s}@keyframes blur{0%{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}to{-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}}@keyframes pulse{0%{transform:scale(1);opacity:.5}to{transform:scale(5);opacity:0}}.file-upload{display:inline-block}.file-upload__thumbnail{position:relative}.file-upload__thumbnail img{width:100%;background:var(--bs-light)}.file-upload__thumbnail .btn{position:absolute;right:0;top:0;margin:.5rem;padding:.125rem .3125rem;border-radius:.2rem}.file-upload__thumbnail .btn:hover{background:rgba(255,255,255,.62)}.file-upload__label{position:relative}.file-upload__loading-spinner{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#ffffffa3;display:grid;place-content:center}.file-upload .fade-enter-active,.file-upload .fade-leave-active{transition:opacity .5s}.file-upload .fade-enter,.file-upload .fade-leave-to{opacity:0}.upload-group .img-thumbnail{width:5rem;aspect-ratio:1/1}.upload-group .file-upload__thumbnail{display:none}.upload-group .img-container{position:relative}.upload-group .img-container .btn--close{position:absolute;right:0;top:0;margin:.25rem;padding:.125rem}:root,*:before,*:after{--carousel-gutter-width: .75rem}.carousel__viewport{position:relative;overflow-x:auto;scroll-behavior:smooth;margin-right:calc(0px - var(--carousel-gutter-width) / 2);margin-left:calc(0px - var(--carousel-gutter-width) / 2)}.carousel__item{flex:0 0 auto;width:20%;padding:0 calc(var(--carousel-gutter-width) / 2)}.carousel>.btn{padding-left:0;padding-right:0}.media-thumbnails{position:relative;padding:.5rem 0;border-radius:.3125rem;background-color:#aaaaaa80}.media-thumbnails .carousel-cell{padding:0 .5rem}.progress-steps ul{display:flex;justify-content:center;gap:4rem;margin:0;padding:0;list-style:none}.progress-steps__step{position:relative}.progress-steps__step:not(:first-of-type):before{content:"";display:block;height:.2em;width:4rem;background-color:var(--bs-gray-300);position:absolute;right:100%;top:50%;transform:translateY(-50%)}.progress-steps__step--active .progress-step .btn{box-shadow:0 0 0 .5em var(--bs-gray-300)}.progress-steps__step--disabled .progress-step .btn{background-color:var(--bs-gray-300);color:var(--bs-dark)}.progress-steps__step input[type=radio]{position:absolute;opacity:0;width:0;height:0}.progress-steps__step .btn{width:2em;height:2em;padding:0;background-color:var(--bs-black);color:var(--bs-white);font-weight:700}.progress-steps__step .form-check-label{position:absolute;left:50%;top:100%;min-width:12rem;transform:translate(-50%) translateY(50%);text-align:center}.progress-steps .progress-step{position:relative}.link-sharing .btn{width:100%;margin-bottom:.5rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button:read-only{cursor:not-allowed}.base-button:disabled{cursor:not-allowed}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}dialog{opacity:0;transition:opacity .8s;position:absolute;animation:modal-in .32s forwards ease}dialog[open]{width:100%;opacity:1;pointer-events:inherit}dialog::backdrop{-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);background-color:#0009}@keyframes modal-in{0%{translate:0 -100%;opacity:0}}.modal-dialog{background-color:var(--page-background-color, #fff);color:var(--body-color);border:none;box-shadow:0 0 .25rem #fff6;min-width:300px;max-width:500px}.modal-dialog--sm{max-width:300px}.modal-dialog--md{max-width:600px}.modal-dialog--lg{max-width:800px}.modal-dialog--xl{max-width:1140px}:root{--scroll-position: 0}body:has(dialog[open]){overflow:hidden;position:fixed;width:100%;top:calc(-1 * var(--scroll-position))}
|
|
1
|
+
.svg-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1}.svg-icon svg{display:block;stroke-width:0;stroke:currentColor;fill:currentColor;width:1.5em;height:1.5em}.svg-icon--xxl svg{width:12rem;height:12rem}.svg-icon--xl svg{width:8rem;height:8rem}.svg-icon--large svg{width:4rem;height:4rem}.loading-spinner{min-width:2rem}.accordion-button__toggle{transition:transform .24s ease-in-out;transform:rotateX(180deg);transform-origin:center}.collapsed .accordion-button__toggle{transform:rotateX(0)}:root,*:before,*:after{--button-color: #fff}.btn{display:inline-flex;justify-content:center;align-items:center;gap:.5em;transition:all .2s ease;text-decoration:none}.btn:disabled{cursor:not-allowed}.input{display:flex;flex-direction:column}.input>*{order:2}.input__label{order:0;text-align:start}.input__input-group,.input>input,.input>select,.input>textarea{flex-wrap:nowrap;order:1}.input__error{display:none}.input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.input input[type=checkbox],.input input[type=radio]{flex:none}.input input[type=color]{display:block;height:100%;padding:0;border-width:0}.input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.input input[type=color]::-webkit-color-swatch{border:none}.form-switch{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:0;gap:1rem}.form-switch .input-group{width:auto}.form-switch .form-check-input{width:2.5rem;height:1.3125rem;margin-left:0}.form-switch .form-check-label{margin:0}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}.check-group>.form-check{order:1}.check-group label{order:0}.check-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.check-group--row label{flex:1 0 100%}.radio-group>.form-check{order:1}.radio-group label{order:0}.radio-group--row{display:inline-flex;flex-flow:row wrap;gap:.5rem}.radio-group--row label{flex:1 0 100%}.rte-editor{height:100%;display:flex;flex-direction:column}.rte-editor__content{flex:1 1 auto}.rte-editor .ProseMirror{height:100%}.ProseMirror>*+*{margin-top:.75em}.ProseMirror ul,.ProseMirror ol{padding:0 1rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.1}.ProseMirror code{background-color:#6161611a;color:#616161}.ProseMirror pre{background:#0D0D0D;color:#fff;font-family:JetBrainsMono,monospace;padding:.75rem 1rem;border-radius:.5rem}.ProseMirror pre code{color:inherit;padding:0;background:none;font-size:.8rem}.ProseMirror img{max-width:100%;height:auto}.ProseMirror blockquote{padding-left:1rem;border-left:2px solid rgba(13,13,13,.1)}.ProseMirror hr{border:none;border-top:2px solid rgba(13,13,13,.1);margin:2rem 0}.base-input{display:flex;flex-direction:column}.base-input>*{order:2}.base-input__label{order:0}.base-input__input-group,.base-input>input,.base-input>select,.base-input>textarea{flex-wrap:nowrap;order:1}.base-input__color-swatch{flex:0 0 3rem;display:block;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);overflow:hidden;border:thin solid var(--border-color);border-left:none}.base-input input[type=checkbox],.base-input input[type=radio]{flex:none}.base-input input[type=color]{display:block;height:100%;padding:0;border-width:0}.base-input input[type=color]::-webkit-color-swatch-wrapper{padding:0}.base-input input[type=color]::-webkit-color-swatch{border:none}.dropdown-item:has(input[type=radio]){padding:0}.dropdown-item:has(input[type=radio]) .form-check{padding:0}.dropdown-item:has(input[type=radio]) .form-check-label{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x)}.camera,.camera__preview{position:relative;height:100%}.camera__preview canvas{position:relative;left:0;top:0}.camera__preview img,.camera__preview video{display:block;width:100%;height:100%;object-fit:cover}.camera__controls{position:absolute;bottom:0;width:100%;z-index:1;text-align:center;margin:0 0 2rem}.camera.mirror-cam img,.camera.mirror-cam video{transform:scaleX(-1)}.camera__switch-cam{position:absolute;z-index:1;right:0;top:0;margin:1rem}.camera__switch-cam .btn{display:block;background-color:#ffffff3d;border-radius:.3125rem}.camera__switch-cam .svg-icon{display:block;font-size:1.6667rem}.camera__bg-notification{position:absolute;z-index:0;left:0;top:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.camera__bg-notification+video{position:relative;z-index:1}.camera .camera__guide{position:absolute;left:0;top:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none;object-fit:contain}.camera__countdown-overlay{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);overflow:hidden}.camera__countdown-overlay .countdown{position:relative;font-size:6rem;color:#fffc;font-weight:700}.camera__countdown-overlay .countdown:before,.camera__countdown-overlay .countdown:after{position:absolute;left:0;top:0;z-index:1;content:attr(data-countdown);transform-origin:center;animation-name:pulse;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:ease-out}.camera__countdown-overlay .countdown:after{animation-duration:.1 .25s;animation-delay:.25s}@keyframes blur{0%{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}to{-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}}@keyframes pulse{0%{transform:scale(1);opacity:.5}to{transform:scale(5);opacity:0}}.file-upload{display:inline-block}.file-upload__thumbnail{position:relative}.file-upload__thumbnail img{width:100%;background:var(--bs-light)}.file-upload__thumbnail .btn{position:absolute;right:0;top:0;margin:.5rem;padding:.125rem .3125rem;border-radius:.2rem}.file-upload__thumbnail .btn:hover{background:rgba(255,255,255,.62)}.file-upload__label{position:relative}.file-upload__loading-spinner{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#ffffffa3;display:grid;place-content:center}.file-upload .fade-enter-active,.file-upload .fade-leave-active{transition:opacity .5s}.file-upload .fade-enter,.file-upload .fade-leave-to{opacity:0}.upload-group .img-thumbnail{width:5rem;aspect-ratio:1/1}.upload-group .file-upload__thumbnail{display:none}.upload-group .img-container{position:relative}.upload-group .img-container .btn--close{position:absolute;right:0;top:0;margin:.25rem;padding:.125rem}:root,*:before,*:after{--carousel-gutter-width: .75rem}.carousel__viewport{position:relative;overflow-x:auto;scroll-behavior:smooth;margin-right:calc(0px - var(--carousel-gutter-width) / 2);margin-left:calc(0px - var(--carousel-gutter-width) / 2)}.carousel__item{flex:0 0 auto;width:20%;padding:0 calc(var(--carousel-gutter-width) / 2)}.carousel>.btn{padding-left:0;padding-right:0}.media-thumbnails{position:relative;padding:.5rem 0;border-radius:.3125rem;background-color:#aaaaaa80}.media-thumbnails .carousel-cell{padding:0 .5rem}.progress-steps ul{display:flex;justify-content:center;gap:4rem;margin:0;padding:0;list-style:none}.progress-steps__step{position:relative}.progress-steps__step:not(:first-of-type):before{content:"";display:block;height:.2em;width:4rem;background-color:var(--bs-gray-300);position:absolute;right:100%;top:50%;transform:translateY(-50%)}.progress-steps__step--active .progress-step .btn{box-shadow:0 0 0 .5em var(--bs-gray-300)}.progress-steps__step--disabled .progress-step .btn{background-color:var(--bs-gray-300);color:var(--bs-dark)}.progress-steps__step input[type=radio]{position:absolute;opacity:0;width:0;height:0}.progress-steps__step .btn{width:2em;height:2em;padding:0;background-color:var(--bs-black);color:var(--bs-white);font-weight:700}.progress-steps__step .form-check-label{position:absolute;left:50%;top:100%;min-width:12rem;transform:translate(-50%) translateY(50%);text-align:center}.progress-steps .progress-step{position:relative}.link-sharing .btn{width:100%;margin-bottom:.5rem}.base-button{display:flex;justify-content:center;align-items:center;box-sizing:border-box;transition:all .2s ease;text-decoration:none;width:100%;margin:0;padding:1.036em 1.625em;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;border-radius:.4375em;font-size:.875em;line-height:1.125em;text-transform:uppercase;font-weight:700}@media screen and (min-width: 600px){.base-button{width:auto}}.base-button .icon{width:16px;height:16px;margin-top:-1px}.base-button.s-collapsed>.caption{display:none}.base-button.s-pending{background-repeat:no-repeat;background-position:center center}.base-button.s-pending .caption{margin-left:25px;visibility:hidden}@media screen and (min-width: 600px){.base-button.s-pending{background-position:1.625em center}.base-button.s-pending .caption{visibility:visible}}.base-button:read-only{cursor:not-allowed}.base-button:disabled{cursor:not-allowed}:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}dialog{opacity:0;transition:opacity .8s;position:absolute;animation:modal-in .32s forwards ease}dialog[open]{width:100%;opacity:1;pointer-events:inherit}dialog::backdrop{-webkit-backdrop-filter:blur(.25rem);backdrop-filter:blur(.25rem);background-color:#0009}@keyframes modal-in{0%{translate:0 -100%;opacity:0}}.modal-dialog{background-color:var(--page-background-color, #fff);color:var(--body-color);border:none;box-shadow:0 0 .25rem #fff6;min-width:300px;max-width:500px}.modal-dialog--sm{max-width:300px}.modal-dialog--md{max-width:600px}.modal-dialog--lg{max-width:800px}.modal-dialog--xl{max-width:1140px}:root{--scroll-position: 0}body:has(dialog[open]){overflow:hidden;position:fixed;width:100%;top:calc(-1 * var(--scroll-position))}
|