1const _we=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}};_we();function wwe(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const Cwe=()=>{},xwe=Object.assign,Ewe=Object.prototype.hasOwnProperty,QH=(e,t)=>Ewe.call(e,t),p3=Array.isArray,wz=e=>wde(e)==="[object Map]",Swe=e=>typeof e=="function",Twe=e=>typeof e=="string",Aee=e=>typeof e=="symbol",GI=e=>e!==null&&typeof e=="object",Awe=Object.prototype.toString,wde=e=>Awe.call(e),kwe=e=>wde(e).slice(8,-1),kee=e=>Twe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Oee=(e,t)=>!Object.is(e,t),Owe=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let Qy;const D$=[];class Cde{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Qy&&(this.parent=Qy,this.index=(Qy.scopes||(Qy.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(D$.push(this),Qy=this)}off(){this.active&&(D$.pop(),Qy=D$[D$.length-1])}stop(t){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function xde(e){return new Cde(e)}function Mwe(e,t){t=t||Qy,t&&t.active&&t.effects.push(e)}function Nwe(){return Qy}function Ede(e){Qy&&Qy.cleanups.push(e)}const Mee=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sde=e=>(e.w&z8)>0,Tde=e=>(e.n&z8)>0,Dwe=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=z8},Iwe=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Sde(i)&&!Tde(i)?i.delete(e):t[n++]=i,i.w&=~z8,i.n&=~z8}t.length=n}},kQ=new WeakMap;let DD=0,z8=1;const OQ=30,fD=[];let pC;const mC=Symbol(""),MQ=Symbol("");class Nee{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],Mwe(this,r)}run(){if(!this.active)return this.fn();if(!fD.includes(this))try{return fD.push(pC=this),Rwe(),z8=1<<++DD,DD<=OQ?Dwe(this):Lae(this),this.fn()}finally{DD<=OQ&&Iwe(this),z8=1<<--DD,G8(),fD.pop();const t=fD.length;pC=t>0?fD[t-1]:void 0}}stop(){this.active&&(Lae(this),this.onStop&&this.onStop(),this.active=!1)}}function Lae(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let FA=!0;const Dee=[];function IC(){Dee.push(FA),FA=!1}function Rwe(){Dee.push(FA),FA=!0}function G8(){const e=Dee.pop();FA=e===void 0?!0:e}function kp(e,t,n){if(!Ade())return;let r=kQ.get(e);r||kQ.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Mee()),kde(i)}function Ade(){return FA&&pC!==void 0}function kde(e,t){let n=!1;DD<=OQ?Tde(e)||(e.n|=z8,n=!Sde(e)):n=!e.has(pC),n&&(e.add(pC),pC.deps.push(e))}function y3(e,t,n,r,i,l){const u=kQ.get(e);if(!u)return;let f=[];if(t==="clear")f=[...u.values()];else if(n==="length"&&p3(e))u.forEach((v,h)=>{(h==="length"||h>=r)&&f.push(v)});else switch(n!==void 0&&f.push(u.get(n)),t){case"add":p3(e)?kee(n)&&f.push(u.get("length")):(f.push(u.get(mC)),wz(e)&&f.push(u.get(MQ)));break;case"delete":p3(e)||(f.push(u.get(mC)),wz(e)&&f.push(u.get(MQ)));break;case"set":wz(e)&&f.push(u.get(mC));break}if(f.length===1)f[0]&&NQ(f[0]);else{const v=[];for(const h of f)h&&v.push(...h);NQ(Mee(v))}}function NQ(e,t){for(const n of p3(e)?e:[...e])(n!==pC||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Lwe=wwe("__proto__,__v_isRef,__isVue"),Ode=new Set(Object.getOwnPropertyNames(Symbol).map(e=>
vendor: 10,821 bytes, line 1
1Symbol[e]).filter(Aee)),Bwe=Iee(),Pwe=Iee(!1,!0),Fwe=Iee(!0),Bae=$we();function $we(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ls(this);for(let l=0,u=this.length;l<u;l++)kp(r,"get",l+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(ls)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){IC();const r=ls(this)[t].apply(this,n);return G8(),r}}),e}function Iee(e=!1,t=!1){return function(r,i,l){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&l===(e?t?t9e:Rde:t?Ide:Dde).get(r))return r;const u=p3(r);if(!e&&u&&QH(Bae,i))return Reflect.get(Bae,i,l);const f=Reflect.get(r,i,l);return(Aee(i)?Ode.has(i):Lwe(i))||(e||kp(r,"get",i),t)?f:El(f)?!u||!kee(i)?f.value:f:GI(f)?e?u7(f):gi(f):f}}const zwe=Mde(),Hwe=Mde(!0);function Mde(e=!1){return function(n,r,i,l){let u=n[r];if(!e&&(i=ls(i),u=ls(u),!p3(n)&&El(u)&&!El(i)))return u.value=i,!0;const f=p3(n)&&kee(r)?Number(r)<n.length:QH(n,r),v=Reflect.set(n,r,i,l);return n===ls(l)&&(f?Oee(i,u)&&y3(n,"set",r,i):y3(n,"add",r,i)),v}}function Vwe(e,t){const n=QH(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&y3(e,"delete",t,void 0),r}function Uwe(e,t){const n=Reflect.has(e,t);return(!Aee(t)||!Ode.has(t))&&kp(e,"has",t),n}function jwe(e){return kp(e,"iterate",p3(e)?"length":mC),Reflect.ownKeys(e)}const Nde={get:Bwe,set:zwe,deleteProperty:Vwe,has:Uwe,ownKeys:jwe},Wwe={get:Fwe,set(e,t){return!0},deleteProperty(e,t){return!0}},Gwe=xwe({},Nde,{get:Pwe,set:Hwe}),Ree=e=>GI(e)?gi(e):e,Lee=e=>GI(e)?u7(e):e,Bee=e=>e,JH=e=>Reflect.getPrototypeOf(e);function I$(e,t,n=!1,r=!1){e=e.__v_raw;const i=ls(e),l=ls(t);t!==l&&!n&&kp(i,"get",t),!n&&kp(i,"get",l);const{has:u}=JH(i),f=r?Bee:n?Lee:Ree;if(u.call(i,t))return f(e.get(t));if(u.call(i,l))return f(e.get(l));e!==i&&e.get(t)}function R$(e,t=!1){const n=this.__v_raw,r=ls(n),i=ls(e);return e!==i&&!t&&kp(r,"has",e),!t&&kp(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function L$(e,t=!1){return e=e.__v_raw,!t&&kp(ls(e),"iterate",mC),Reflect.get(e,"size",e)}function Pae(e){e=ls(e);const t=ls(this);return JH(t).has.call(t,e)||(t.add(e),y3(t,"add",e,e)),this}function Fae(e,t){t=ls(t);const n=ls(this),{has:r,get:i}=JH(n);let l=r.call(n,e);l||(e=ls(e),l=r.call(n,e));const u=i.call(n,e);return n.set(e,t),l?Oee(t,u)&&y3(n,"set",e,t):y3(n,"add",e,t),this}function $ae(e){const t=ls(this),{has:n,get:r}=JH(t);let i=n.call(t,e);i||(e=ls(e),i=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return i&&y3(t,"delete",e,void 0),l}function zae(){const e=ls(this),t=e.size!==0,n=e.clear();return t&&y3(e,"clear",void 0,void 0),n}function B$(e,t){return function(r,i){const l=this,u=l.__v_raw,f=ls(u),v=t?Bee:e?Lee:Ree;return!e&&kp(f,"iterate",mC),u.forEach((h,g)=>r.call(i,v(h),v(g),l))}}function P$(e,t,n){return function(...r){const i=this.__v_raw,l=ls(i),u=wz(l),f=e==="entries"||e===Symbol.iterator&&u,v=e==="keys"&&u,h=i[e](...r),g=n?Bee:t?Lee:Ree;return!t&&kp(l,"iterate",v?MQ:mC),{next(){const{value:y,done:w}=h.next();return w?{value:y,done:w}:{value:f?[g(y[0]),g(y[1])]:g(y),done:w}},[Symbol.iterator](){return this}}}}function v8(e){return function(...t){return e==="delete"?!1:this}}function Kwe(){const e={get(l){return I$(this,l)},get size(){return L$(this)},has:R$,add:Pae,set:Fae,delete:$ae,clear:zae,forEach:B$(!1,!1)},t={get(l){return I$(this,l,!1,!0)},get size(){return L$(this)},has:R$,add:Pae,set:Fae,delete:$ae,clear:zae,forEach:B$(!1,!0)},n={get(l){return I$(this,l,!0)},get size(){return L$(this,!0)},has(l){return R$.call(this,l,!0)},add:v8("add"),set:v8("set"),delete:v8("delete"),clear:v8("clear"),forEach:B$(!0,!1)},r={get(l){return I$(this,l,!0,!0)},get size(){return L$(this,!0)},has(l){return R$.call(this,l,!0)},add:v8("add"),set:v8("set"),delete:v8("delete"),clear:v8("clear"),forEach:B$(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=P$(l,!1,!1),n[l]=P$(l,!0,!1),t[l]=P$(l,!1,!0),r[l]=P$(l,!0,!0)}),[e,n,t,r]}const[Ywe,qwe,Xwe,Zwe]=Kwe();function Pee(e,t){const n=t?e?Zwe:Xwe:e?qwe:Ywe;return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(QH(n,i)&&i in r?n:r,i,l)}const Qwe={get:Pee(!1,!1)},Jwe={get:Pee(!1,!0)},e9e={get:Pee(!0,!1)},Dde=new WeakMap,Ide=new WeakMap,Rde=new WeakMap,t9e=new WeakMap;function n9e(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function r9e(e){return e.__v_skip||!Object.isExtensible(e)?0:n9e(kwe(e))}function gi(e){return e&&e.__v_isReadonly?e:$ee(e,!1,Nde,Qwe,Dde)}function Fee(e){return $ee(e,!1,Gwe,Jwe,Ide)}function u7(e){return $ee(e,!0,Wwe,e9e,Rde)}function $ee(e,t,n,r,i){if(!GI(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=i.get(e);if(l)return l;const u=r9e(e);if(u===0)return e;const f=new Proxy(e,u===2?r:n);return i.set(e,f),f}function TA(e){return Lde(e)?TA(e.__v_raw):!!(e&&e.__v_isReactive)}function Lde(e){return!!(e&&e.__v_isReadonly)}function Bde(e){return TA(e)||Lde(e)}function ls(e){const t=e&&e.__v_raw;return t?ls(t):e}function gC(e){return Owe(e,"__v_skip",!0),e}function Pde(e){Ade()&&(e=ls(e),e.dep||(e.dep=Mee()),kde(e.dep))}function zee(e,t){e=ls(e),e.dep&&NQ(e.dep)}const Hae=e=>GI(e)?gi(e):e;function El(e){return Boolean(e&&e.__v_isRef===!0)}function et(e){return Fde(e,!1)}function al(e){return Fde(e,!0)}class o9e{constructor(t,n){this._shallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ls(t),this._value=n?t:Hae(t)}get value(){return Pde(this),this._value}set value(t){t=this._shallow?t:ls(t),Oee(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Hae(t),zee(this))}}function Fde(e,t){return El(e)?e:new o9e(e,t)}function dD(e){zee(e)}function L(e){return El(e)?e.value:e}const a9e={get:(e,t,n)=>L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return El(i)&&!El(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $de(e){return TA(e)?e:new Proxy(e,a9e)}function Dc(e){const t=p3(e)?new Array(e.length):{};for(const n in e)t[n]=Kl(e,n);return t}class i9e{constructor(t,n){this._object=t,this._key=n,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function Kl(e,t){const n=e[t];return El(n)?n:new i9e(e,t)}class s9e{constructor(t,n,r){this._setter=n,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Nee(t,()=>{this._dirty||(this._dirty=!0,zee(this))}),this.__v_isReadonly=r}get value(){const t=ls(this);return Pde(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ne(e,t){let n,r;const i=Swe(e);return i?(n=e,r=Cwe):(n=e.get,r=e.set),new s9e(n,r,i||!r)}Promise.resolve();function l9e(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}function Pr(e){if(Rl(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Iv(r)?f9e(r):Pr(r);if(i)for(const l in i)t[l]=i[l]}return t}else{if(Iv(e))return e;if(bh(e))return e}}const u9e=/;(?![^(]*\))/g,c9e=/:(.+)/;function f9e(e){const t={};return e.split(u9e).forEach(n=>{if(n){const r=n.split(c9e);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function He(e){let t="";if(Iv(e))t=e;else if(Rl(e))for(let n=0;n<e.length;n++){const r=He(e[n]);r&&(t+=r+" ")}else if(bh(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function qg(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Iv(t)&&(e.class=He(t)),n&&(e.style=Pr(n)),e}const Zn=e=>e==null?"":Rl(e)||bh(e)&&(e.toString===Gde||!ys(e.toString))?JSON.stringify(e,zde,2):String(e),zde=(e,t)=>t&&t.__v_isRef?zde(e,t.value):Ude(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:jde(t)?{[`Set(${t.size})`]:[...t.values()]}:bh(t)&&!Rl(t)&&!Kde(t)?String(t):t,Eu={},AA=[],P8=()=>{},d9e=()=>!1,v9e=/^on[^a-z]/,Hee=e=>v9e.test(e),Hde=e=>e.startsWith("onUpdate:"),n2=Object.assign,Vde=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h9e=Object.prototype.hasOwnProperty,su=(e,t)=>h9e.call(e,t),Rl=Array.isArray,Ude=e=>Vee(e)==="[object Map]",jde=e=>Vee(e)==="[object Set]",ys=e=>typeof e=="function",Iv=e=>typeof e=="string",bh=e=>e!==null&&typeof e=="object",Wde=e=>bh(e)&&ys(e.then)&&ys(e.catch),Gde=Object.prototype.toString,Vee=e=>Gde.call(e),Kde=e=>Vee(e)==="[object Object]",Cz=l9e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),eV=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},p9e=/-(\w)/g,lb=eV(e=>e.replace(p9e,(t,n)=>n?n.toUpperCase():"")),m9e=/\B([A-Z])/g,tV=eV(e=>e.replace(m9e,"-$1").toLowerCase()),Uee=eV(e=>e.charAt(0).toUpperCase()+e.slice(1)),xz=eV(e=>e?`on${Uee(e)}`:""),Vae=(e,t)=>!Object.is(e,t),QX=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},DQ=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},g9e=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function y9e(e,t,...n){const r=e.vnode.props||Eu;let i=n;const l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in r){const g=`${u==="modelValue"?"model":u}Modifiers`,{number:y,trim:w}=r[g]||Eu;w?i=n.map(C=>C.trim()):y&&(i=n.map(g9e))}let f,v=r[f=xz(t)]||r[f=xz(lb(t))];!v&&l&&(v=r[f=xz(tV(t))]),v&&r2(v,e,6,i);const h=r[f+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,r2(h,e,6,i)}}function Yde(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let u={},f=!1;if(!ys(e)){const v=h=>{const g=Yde(h,t,!0);g&&(f=!0,n2(u,g))};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}return!l&&!f?(r.set(e,null),null):(Rl(l)?l.forEach(v=>u[v]=null):n2(u,l),r.set(e,u),u)}function jee(e,t){return!e||!Hee(t)?!1:(t=t.slice(2).replace(/Once$/,""),su(e,t[0].toLowerCase()+t.slice(1))||su(e,tV(t))||su(e,t))}let wp=null,nV=null;function uH(e){const t=wp;return wp=e,nV=e&&e.type.__scopeId||null,t}function pb(e){nV=e}function mb(){nV=null}function Dt(e,t=wp,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Jae(-1);const l=uH(t),u=e(...i);return uH(l),r._d&&Jae(1),u};return r._n=!0,r._c=!0,r._d=!0,r}function JX(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:l,propsOptions:[u],slots:f,attrs:v,emit:h,render:g,renderCache:y,data:w,setupState:C,ctx:S,inheritAttrs:T}=e;let B,F;const R=uH(e);try{if(n.shapeFlag&4){const A=i||r;B=Jy(g.call(A,A,y,l,C,w,S)),F=v}else{const A=t;B=Jy(A.length>1?A(l,{attrs:v,slots:f,emit:h}):A(l,null)),F=t.props?v:b9e(v)}}catch(A){zD.length=0,lV(A,e,1),B=gt(b0)}let N=B;if(F&&T!==!1){const A=Object.keys(F),{shapeFlag:X}=N;A.length&&X&7&&(u&&A.some(Hde)&&(F=_9e(F,u)),N=EC(N,F))}return n.dirs&&(N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),B=N,uH(R),B}const b9e=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hee(n))&&((t||(t={}))[n]=e[n]);return t},_9e=(e,t)=>
1{const n={};for(const r in e)(!Hde(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function w9e(e,t,n){const{props:r,children:i,component:l}=e,{props:u,children:f,patchFlag:v}=t,h=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&v>=0){if(v&1024)return!0;if(v&16)return r?Uae(r,u,h):!!u;if(v&8){const g=t.dynamicProps;for(let y=0;y<g.length;y++){const w=g[y];if(u[w]!==r[w]&&!jee(h,w))return!0}}}else return(i||f)&&(!f||!f.$stable)?!0:r===u?!1:r?u?Uae(r,u,h):!0:!!u;return!1}function Uae(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const l=r[i];if(t[l]!==e[l]&&!jee(n,l))return!0}return!1}function C9e({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const x9e=e=>e.__isSuspense;function E9e(e,t){t&&t.pendingBranch?Rl(e)?t.effects.push(...e):t.effects.push(e):bCe(e)}function $a(e,t){if(m1){let n=m1.provides;const r=m1.parent&&m1.parent.provides;r===n&&(n=m1.provides=Object.create(r)),n[e]=t}}function jr(e,t,n=!1){const r=m1||wp;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ys(t)?t.call(r.proxy):t}}function qde(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ia(()=>{e.isMounted=!0}),Bl(()=>{e.isUnmounting=!0}),e}const _m=[Function,Array],S9e={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_m,onEnter:_m,onAfterEnter:_m,onEnterCancelled:_m,onBeforeLeave:_m,onLeave:_m,onAfterLeave:_m,onLeaveCancelled:_m,onBeforeAppear:_m,onAppear:_m,onAfterAppear:_m,onAppearCancelled:_m},setup(e,{slots:t}){const n=va(),r=qde();let i;return()=>{const l=t.default&&Wee(t.default(),!0);if(!l||!l.length)return;const u=ls(e),{mode:f}=u,v=l[0];if(r.isLeaving)return eZ(v);const h=jae(v);if(!h)return eZ(v);const g=cI(h,u,r,n);fI(h,g);const y=n.subTree,w=y&&jae(y);let C=!1;const{getTransitionKey:S}=h.type;if(S){const T=S();i===void 0?i=T:T!==i&&(i=T,C=!0)}if(w&&w.type!==b0&&(!tC(h,w)||C)){const T=cI(w,u,r,n);if(fI(w,T),f==="out-in")return r.isLeaving=!0,T.afterLeave=()=>{r.isLeaving=!1,n.update()},eZ(v);f==="in-out"&&h.type!==b0&&(T.delayLeave=(B,F,R)=>{const N=Zde(r,w);N[String(w.key)]=w,B._leaveCb=()=>{F(),B._leaveCb=void 0,delete g.delayedLeave},g.delayedLeave=R})}return v}}},Xde=S9e;function Zde(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function cI(e,t,n,r){const{appear:i,mode:l,persisted:u=!1,onBeforeEnter:f,onEnter:v,onAfterEnter:h,onEnterCancelled:g,onBeforeLeave:y,onLeave:w,onAfterLeave:C,onLeaveCancelled:S,onBeforeAppear:T,onAppear:B,onAfterAppear:F,onAppearCancelled:R}=t,N=String(e.key),A=Zde(n,e),X=(z,Y)=>{z&&r2(z,r,9,Y)},Z={mode:l,persisted:u,beforeEnter(z){let Y=f;if(!n.isMounted)if(i)Y=T||f;else return;z._leaveCb&&z._leaveCb(!0);const Q=A[N];Q&&tC(e,Q)&&Q.el._leaveCb&&Q.el._leaveCb(),X(Y,[z])},enter(z){let Y=v,Q=h,$=g;if(!n.isMounted)if(i)Y=B||v,Q=F||h,$=R||g;else return;let te=!1;const V=z._enterCb=K=>{te||(te=!0,K?X($,[z]):X(Q,[z]),Z.delayedLeave&&Z.delayedLeave(),z._enterCb=void 0)};Y?(Y(z,V),Y.length<=1&&V()):V()},leave(z,Y){const Q=String(e.key);if(z._enterCb&&z._enterCb(!0),n.isUnmounting)return Y();X(y,[z]);let $=!1;const te=z._leaveCb=V=>{$||($=!0,Y(),V?X(S,[z]):X(C,[z]),z._leaveCb=void 0,A[Q]===e&&delete A[Q])};A[Q]=e,w?(w(z,te),w.length<=1&&te()):te()},clone(z){return cI(z,t,n,r)}};return Z}function eZ(e){if(rV(e))return e=EC(e),e.children=null,e}function jae(e){return rV(e)?e.children?e.children[0]:void 0:e}function fI(e,t){e.shapeFlag&6&&e.component?fI(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Wee(e,t=!1){let n=[],r=0;for(let i=0;i<e.length;i++){const l=e[i];l.type===Ur?(l.patchFlag&128&&r++,n=n.concat(Wee(l.children,t))):(t||l.type!==b0
vendor: 18,426 bytes, line 1
1)&&n.push(l)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function Zt(e){return ys(e)?{setup:e,name:e.name}:e}const IQ=e=>!!e.type.__asyncLoader,rV=e=>e.type.__isKeepAlive;function Qde(e,t){Jde(e,"a",t)}function Gee(e,t){Jde(e,"da",t)}function Jde(e,t,n=m1){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}e()});if(oV(t,r,n),n){let i=n.parent;for(;i&&i.parent;)rV(i.parent.vnode)&&T9e(r,t,n,i),i=i.parent}}function T9e(e,t,n,r){const i=oV(t,e,r,!0);T3(()=>{Vde(r[t],i)},n)}function oV(e,t,n=m1,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...u)=>{if(n.isUnmounted)return;IC(),zA(n);const f=r2(t,n,e,u);return bC(),G8(),f});return r?i.unshift(l):i.push(l),l}}const E3=e=>(t,n=m1)=>(!zQ||e==="sp")&&oV(e,t,n),aV=E3("bm"),ia=E3("m"),e1e=E3("bu"),S3=E3("u"),Bl=E3("bum"),T3=E3("um"),A9e=E3("sp"),k9e=E3("rtg"),O9e=E3("rtc");function M9e(e,t=m1){oV("ec",e,t)}let RQ=!0;function N9e(e){const t=n1e(e),n=e.proxy,r=e.ctx;RQ=!1,t.beforeCreate&&Wae(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:u,watch:f,provide:v,inject:h,created:g,beforeMount:y,mounted:w,beforeUpdate:C,updated:S,activated:T,deactivated:B,beforeDestroy:F,beforeUnmount:R,destroyed:N,unmounted:A,render:X,renderTracked:Z,renderTriggered:z,errorCaptured:Y,serverPrefetch:Q,expose:$,inheritAttrs:te,components:V,directives:K,filters:fe}=t;if(h&&D9e(h,r,null,e.appContext.config.unwrapInjectedRef),u)for(const le in u){const _e=u[le];ys(_e)&&(r[le]=_e.bind(n))}if(i){const le=i.call(n,n);bh(le)&&(e.data=gi(le))}if(RQ=!0,l)for(const le in l){const _e=l[le],M=ys(_e)?_e.bind(n,n):ys(_e.get)?_e.get.bind(n,n):P8,P=!ys(_e)&&ys(_e.set)?_e.set.bind(n):P8,U=Ne({get:M,set:P});Object.defineProperty(r,le,{enumerable:!0,configurable:!0,get:()=>U.value,set:j=>U.value=j})}if(f)for(const le in f)t1e(f[le],r,n,le);if(v){const le=ys(v)?v.call(n):v;Reflect.ownKeys(le).forEach(_e=>{$a(_e,le[_e])})}g&&Wae(g,e,"c");function ne(le,_e){Rl(_e)?_e.forEach(M=>le(M.bind(n))):_e&&le(_e.bind(n))}if(ne(aV,y),ne(ia,w),ne(e1e,C),ne(S3,S),ne(Qde,T),ne(Gee,B),ne(M9e,Y),ne(O9e,Z),ne(k9e,z),ne(Bl,R),ne(T3,A),ne(A9e,Q),Rl($))if($.length){const le=e.exposed||(e.exposed={});$.forEach(_e=>{Object.defineProperty(le,_e,{get:()=>n[_e],set:M=>n[_e]=M})})}else e.exposed||(e.exposed={});X&&e.render===P8&&(e.render=X),te!=null&&(e.inheritAttrs=te),V&&(e.components=V),K&&(e.directives=K)}function D9e(e,t,n=P8,r=!1){Rl(e)&&(e=LQ(e));for(const i in e){const l=e[i];let u;bh(l)?"default"in l?u=jr(l.from||i,l.default,!0):u=jr(l.from||i):u=jr(l),El(u)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):t[i]=u}}function Wae(e,t,n){r2(Rl(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function t1e(e,t,n,r){const i=r.includes(".")?S1e(n,r):()=>n[r];if(Iv(e)){const l=t[e];ys(l)&&$n(i,l)}else if(ys(e))$n(i,e.bind(n));else if(bh(e))if(Rl(e))e.forEach(l=>t1e(l,t,n,r));else{const l=ys(e.handler)?e.handler.bind(n):t[e.handler];ys(l)&&$n(i,l,e)}}function n1e(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(t);let v;return f?v=f:!i.length&&!n&&!r?v=t:(v={},i.length&&i.forEach(h=>cH(v,h,u,!0)),cH(v,t,u)),l.set(t,v),v}function cH(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&cH(e,l,n,!0),i&&i.forEach(u=>cH(e,u,n,!0));for(const u in t)if(!(r&&u==="expose")){const f=I9e[u]||n&&n[u];e[u]=f?f(e[u],t[u]):t[u]}return e}const I9e={data:Gae,props:X9,emits:X9,methods:X9,computed:X9,beforeCreate:ph,created:ph,beforeMount:ph,mounted:ph,beforeUpdate:ph,updated:ph,beforeDestroy:ph,beforeUnmount:ph,destroyed:ph,unmounted:ph,activated:ph,deactivated:ph,errorCaptured:ph,serverPrefetch:ph,components:X9,directives:X9,watch:L9e,provide:Gae,inject:R9e};function Gae(e,t){return t?e?function(){return n2(ys(e)?e.call(this,this):e,ys(t)?t.call(this,this):t)}:t:e}function R9e(e,t){return X9(LQ(e),LQ(t))}function LQ(e){if(Rl(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ph(e,t){return e?[...new Set([].concat(e,t))]:t}function X9(e,t){return e?n2(n2(Object.create(null),e),t):t}function L9e(e,t){if(!e)return t;if(!t)return e;const n=n2(Object.create(null),e);for(const r in t)n[r]=ph(e[r],t[r]);return n}function B9e(e,t,n,r=!1){const i={},l={};DQ(l,iV,1),e.propsDefaults=Object.create(null),r1e(e,t,i,l);for(const u in e.propsOptions[0])u in i||(i[u]=void 0);n?e.props=r?i:Fee(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function P9e(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:u}}=e,f=ls(i),[v]=e.propsOptions;let h=!1;if((r||u>0)&&!(u&16)){if(u&8){const g=e.vnode.dynamicProps;for(let y=0;y<g.length;y++){let w=g[y];const C=t[w];if(v)if(su(l,w))C!==l[w]&&(l[w]=C,h=!0);else{const S=lb(w);i[S]=BQ(v,f,S,C,e,!1)}else C!==l[w]&&(l[w]=C,h=!0)}}}else{r1e(e,t,i,l)&&(h=!0);let g;for(const y in f)(!t||!su(t,y)&&((g=tV(y))===y||!su(t,g)))&&(v?n&&(n[y]!==void 0||n[g]!==void 0)&&(i[y]=BQ(v,f,y,void 0,e,!0)):delete i[y]);if(l!==f)for(const y in l)(!t||!su(t,y))&&(delete l[y],h=!0)}h&&y3(e,"set","$attrs")}function r1e(e,t,n,r){const[i,l]=e.propsOptions;let u=!1,f;if(t)for(let v in t){if(Cz(v))continue;const h=t[v];let g;i&&su(i,g=lb(v))?!l||!l.includes(g)?n[g]=h:(f||(f={}))[g]=h:jee(e.emitsOptions,v)||h!==r[v]&&(r[v]=h,u=!0)}if(l){const v=ls(n),h=f||Eu;for(let g=0;g<l.length;g++){const y=l[g];n[y]=BQ(i,v,y,h[y],e,!su(h,y))}}return u}function BQ(e,t,n,r,i,l){const u=e[n];if(u!=null){const f=su(u,"default");if(f&&r===void 0){const v=u.default;if(u.type!==Function&&ys(v)){const{propsDefaults:h}=i;n in h?r=h[n]:(zA(i),r=h[n]=v.call(null,t),bC())}else r=v}u[0]&&(l&&!f?r=!1:u[1]&&(r===""||r===tV(n))&&(r=!0))}return r}function o1e(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const l=e.props,u={},f=[];let v=!1;if(!ys(e)){const g=y=>{v=!0;const[w,C]=o1e(y,t,!0);n2(u,w),C&&f.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!l&&!v)return r.set(e,AA),AA;if(Rl(l))for(let g=0;g<l.length;g++){const y=lb(l[g]);Kae(y)&&(u[y]=Eu)}else if(l)for(const g in l){const y=lb(g);if(Kae(y)){const w=l[g],C=u[y]=Rl(w)||ys(w)?{type:w}:w;if(C){const S=Xae(Boolean,C.type),T=Xae(String,C.type);C[0]=S>-1,C[1]=T<0||S<T,(S>-1||su(C,"default"))&&f.push(y)}}}const h=[u,f];return r.set(e,h),h}function Kae(e){return e[0]!=="$"}function Yae(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function qae(e,t){return Yae(e)===Yae(t)}function Xae(e,t){return Rl(t)?t.findIndex(n=>qae(n,e)):ys(t)&&qae(t,e)?0:-1}const a1e=e=>e[0]==="_"||e==="$stable",Kee=e=>Rl(e)?e.map(Jy):[Jy(e)],F9e=(e,t,n)=>{const r=Dt((...i)=>Kee(t(...i)),n);return r._c=!1,r},i1e=(e,t,n)=>{const r=e._ctx;for(const i in e){if(a1e(i))continue;const l=e[i];if(ys(l))t[i]=F9e(i,l,r);else if(l!=null){const u=Kee(l);t[i]=()=>u}}},s1e=(e,t)=>{const n=Kee(t);e.slots.default=()=>n},$9e=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ls(t),DQ(t,"_",n)):i1e(t,e.slots={})}else e.slots={},t&&s1e(e,t);DQ(e.slots,iV,1)},z9e=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,u=Eu;if(r.shapeFlag&32){const f=t._;f?n&&f===1?l=!1:(n2(i,t),!n&&f===1&&delete i._):(l=!t.$stable,i1e(t,i)),u=t}else t&&(s1e(e,t),u={default:1});if(l)for(const f in i)!a1e(f)&&!(f in u)&&delete i[f]};function ea(e,t){const n=wp;if(n===null)return e;const r=n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[u,f,v,h=Eu]=t[l];ys(u)&&(u={mounted:u,updated:u}),u.deep&&iC(f),i.push({dir:u,instance:r,value:f,oldValue:void 0,arg:v,modifiers:h})}return e}function H9(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let u=0;u<i.length;u++){const f=i[u];l&&(f.oldValue=l[u].value);let v=f.dir[r];v&&(IC(),r2(v,n,8,[e.el,f,e,t]),G8())}}function l1e(){return{app:null,config:{isNativeTag:d9e,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let H9e=0;function V9e(e,t){return function(r,i=null){i!=null&&!bh(i)&&(i=null);const l=l1e(),u=new Set;let f=!1;const v=l.app={_uid:H9e++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:wCe,get config(){return l.config},set config(h){},use(h,...g){return u.has(h)||(h&&ys(h.install)?(u.add(h),h.install(v,...g)):ys(h)&&(u.add(h),h(v,...g))),v},mixin(h){return l.mixins.includes(h)||l.mixins.push(h),v},component(h,g){return g?(l.components[h]=g,v):l.components[h]},directive(h,g){return g?(l.directives[h]=g,v):l.directives[h]},mount(h,g,y){if(!f){const w=gt(r,i);return w.appContext=l,g&&t?t(w,h):e(w,h,y),f=!0,v._container=h,h.__vue_app__=v,Qee(w.component)||w.component.proxy}},unmount(){f&&(e(null,v._container),delete v._container.__vue_app__)},provide(h,g){return l.provides[h]=g,v}};return v}}const mh=E9e;function U9e(e){return j9e(e)}function j9e(e,t){const{insert:n,remove:r,patchProp:i,createElement:l,createText:u,createComment:f,setText:v,setElementText:h,parentNode:g,nextSibling:y,setScopeId:w=P8,cloneNode:C,insertStaticContent:S}=e,T=(Oe,De,$e,rt=null,ct=null,lt=null,ot=!1,Fe=null,We=!!De.dynamicChildren)=>{if(Oe===De)return;Oe&&!tC(Oe,De)&&(rt=re(Oe),j(Oe,ct,lt,!0),Oe=null),De.patchFlag===-2&&(We=!1,De.dynamicChildren=null);const{type:Ye,ref:Ke,shapeFlag:mt}=De;switch(Ye){case YI:B(Oe,De,$e,rt);break;case b0:F(Oe,De,$e,rt);break;case Ez:Oe==null&&R(De,$e,rt,ot);break;case Ur:V(Oe,De,$e,rt,ct,lt,ot,Fe,We);break;default:mt&1?X(Oe,De,$e,rt,ct,lt,ot,Fe,We):mt&6?K(Oe,De,$e,rt,ct,lt,ot,Fe,We):(mt&64||mt&128)&&Ye.process(Oe,De,$e,rt,ct,lt,ot,Fe,We,Ae)}Ke!=null&&ct&&PQ(Ke,Oe&&Oe.ref,lt,De||Oe,!De)},B=(Oe,De,$e,rt)=>{if(Oe==null)n(De.el=u(De.children),$e,rt);else{const ct=De.el=Oe.el;De.children!==Oe.children&&v(ct,De.children)}},F=(Oe,De,$e,rt)=>{Oe==null?n(De.el=f(De.children||""),$e,rt):De.el=Oe.el},R=(Oe,De,$e,rt)=>{[Oe.el,Oe.anchor]=S(Oe.children,De,$e,rt)},N=({el:Oe,anchor:De},$e,rt)=>{let ct;for(;Oe&&Oe!==De;)ct=y(Oe),n(Oe,$e,rt),Oe=ct;n(De,$e,rt)},A=({el:Oe,anchor:De})=>{let $e;for(;Oe&&Oe!==De;)$e=y(Oe),r(Oe),Oe=$e;r(De)},X=(Oe,De,$e,rt,ct,lt,ot,Fe,We)=>{ot=ot||De.type==="svg",Oe==null?Z(De,$e,rt,ct,lt,ot,Fe,We):Q(Oe,De,ct,lt,ot,Fe,We)},Z=(Oe,De,$e,rt,ct,lt,ot,Fe)=>{let We,Ye;const{type:Ke,props:mt,shapeFlag:Ct,transition:bt,patchFlag:tn,dirs:Ft}=Oe;if(Oe.el&&C!==void 0&&tn===-1)We=Oe.el=C(Oe.el);else{if(We=Oe.el=l(Oe.type,lt,mt&&mt.is,mt),Ct&8?h(We,Oe.children):Ct&16&&Y(Oe.children,We,null,rt,ct,lt&&Ke!=="foreignObject",ot,Fe),Ft&&H9(Oe,null,rt,"created"),mt){for(const Et in mt)Et!=="value"&&!Cz(Et)&&i(We,Et,null,mt[Et],lt,Oe.children,rt,ct,he);"value"in mt&&i(We,"value",null,mt.value),(Ye=mt.onVnodeBeforeMount)&&Yy(Ye,rt,Oe)}z(We,Oe,Oe.scopeId,ot,rt)}Ft&&H9(Oe,null,rt,"beforeMount");const It=(!ct||ct&&!ct.pendingBranch)&&bt&&!bt.persisted;It&&bt.beforeEnter(We),n(We,De,$e),((Ye=mt&&mt.onVnodeMounted)||It||Ft)&&mh(()=>{Ye&&Yy(Ye,rt,Oe),It&&bt.enter(We),Ft&&H9(Oe,null,rt,"mounted")},ct)},z=(Oe,De,$e,rt,ct)=>{if($e&&w(Oe,$e),rt)for(let lt=0;lt<rt.length;lt++)w(Oe,rt[lt]);if(ct){let lt=ct.subTree;if(De===lt){const ot=ct.vnode;z(Oe,ot,ot.scopeId,ot.slotScopeIds,ct.parent)}}},Y=(Oe,De,$e,rt,ct,lt,ot,Fe,We=0)=>{for(let Ye=We;Ye<Oe.length;Ye++){const Ke=Oe[Ye]=Fe?O8(Oe[Ye]):Jy(Oe[Ye]);T(null,Ke,De,$e,rt,ct,lt,ot,Fe)}},Q=(Oe,De,$e,rt,ct,lt,ot)=>{const Fe=De.el=Oe.el;let{patchFlag:We,dynamicChildren:Ye,dirs:Ke}=De;We|=Oe.patchFlag&16;const mt=Oe.props||Eu,Ct=De.props||Eu;let bt;(bt=Ct.onVnodeBeforeUpdate)&&Yy(bt,$e,De,Oe),Ke&&H9(De,Oe,$e,"beforeUpdate");const tn=ct&&De.type!=="foreignObject";if(Ye?$(Oe.dynamicChildren,Ye,Fe,$e,rt,tn,lt):ot||_e(Oe,De,Fe,null,$e,rt,tn,lt,!1),We>0){if(We&16)te(Fe,De,mt,Ct,$e,rt,ct);else if(We&2&&mt.class!==Ct.class&&i(Fe,"class",null,Ct.class,ct),We&4&&i(Fe,"style",mt.style,Ct.style,ct),We&8){const Ft=De.dynamicProps;for(let It=0;It<Ft.length;It++){const Et=Ft[It],At=mt[Et],vt=Ct[Et];(vt!==At||Et==="value")&&i(Fe,Et,At,vt,ct,Oe.children,$e,rt,he)}}We&1&&Oe.children!==De.children&&h(Fe,De.children)}else!ot&&Ye==null&&te(Fe,De,mt,Ct,$e,rt,ct);((bt=Ct.onVnodeUpdated)||Ke)&&mh(()=>{bt&&Yy(bt,$e,De,Oe),Ke&&H9(De,Oe,$e,"updated")},rt)},$=(Oe,De,$e,rt,ct,lt,ot)=>{for(let Fe=0;Fe<De.length;Fe++){const We=Oe[Fe],Ye=De[Fe],Ke=We.el&&(We.type===Ur||!tC(We,Ye)||We.shapeFlag&70)?g(We.el):$e;T(We,Ye,Ke,null,rt,ct,lt,ot,!0)}},te=(Oe,De,$e,rt,ct,lt,ot)=>{if($e!==rt){for(const Fe in rt){if(Cz(Fe))continue;const We=rt[Fe],Ye=$e[Fe];We!==Ye&&Fe!=="value"&&i(Oe,Fe,Ye,We,ot,De.children,ct,lt,he)}if($e!==Eu)for(const Fe in $e)!Cz(Fe)&&!(Fe in rt)&&i(Oe,Fe,$e[Fe],null,ot,De.children,ct,lt,he);"value"in rt&&i(Oe,"value",$e.value,rt.value)}},V=(Oe,De,$e,rt,ct,lt,ot,Fe,We)=>{const Ye=De.el=Oe?Oe.el:u(""),Ke=De.anchor=Oe?Oe.anchor:u("");let{patchFlag:mt,dynamicChildren:Ct,slotScopeIds:bt}=De;bt&&(Fe=Fe?Fe.concat(bt):bt),Oe==null?(n(Ye,$e,rt),n(Ke,$e,rt),Y(De.children,$e,Ke,ct,lt,ot,Fe,We)):mt>0&&mt&64&&Ct&&Oe.dynamicChildren?($(Oe.dynamicChildren,Ct,$e,ct,lt,ot,Fe),(De.key!=null||ct&&De===ct.subTree)&&Yee(Oe,De,!0)):_e(Oe,De,$e,Ke,ct,lt,ot,Fe,We)},K=(Oe,De,$e,rt,ct,lt,ot,Fe,We)=>{De.slotScopeIds=Fe,Oe==null?De.shapeFlag&512?ct.ctx.activate(De,$e,rt,ot,We):fe(De,$e,rt,ct,lt,ot,We):de(Oe,De,We)},fe=(Oe,De,$e,rt,ct,lt,ot)=>{const Fe=Oe.component=rCe(Oe,rt,ct);if(rV(Oe)&&(Fe.ctx.renderer=Ae),oCe(Fe),Fe.asyncDep){if(ct&&ct.registerDep(Fe,ne),!Oe.el){const We=Fe.subTree=gt(b0);F(null,We,De,$e)}return}ne(Fe,Oe,De,$e,ct,lt,ot)},de=(Oe,De,$e)=>{const rt=De.component=Oe.component;if(w9e(Oe,De,$e))if(rt.asyncDep&&!rt.asyncResolved){le(rt,De,$e);return}else rt.next=De,gCe(rt.update),rt.update();else De.component=Oe.component,De.el=Oe.el,rt.vnode=De},ne=(Oe,De,$e,rt,ct,lt,ot)=>{const Fe=()=>{if(Oe.isMounted){let{next:Ke,bu:mt,u:Ct,parent:bt,vnode:tn}=Oe,Ft=Ke,It;We.allowRecurse=!1,Ke?(Ke.el=tn.el,le(Oe,Ke,ot)):Ke=tn,mt&&QX(mt),(It=Ke.props&&Ke.props.onVnodeBeforeUpdate)&&Yy(It,bt,Ke,tn),We.allowRecurse=!0;const Et=JX(Oe),At=Oe.subTree;Oe.subTree=Et,T(At,Et,g(At.el),re(At),Oe,ct,lt),Ke.el=Et.el,Ft===null&&C9e(Oe,Et.el),Ct&&mh(Ct,ct),(It=Ke.props&&Ke.props.onVnodeUpdated)&&mh(()=>Yy(It,bt,Ke,tn),ct)}else{let Ke;const{el:mt,props:Ct}=De,{bm:bt,m:tn,parent:Ft}=Oe,It=IQ(De);if(We.allowRecurse=!1,bt&&QX(bt),!It&&(Ke=Ct&&Ct.onVnodeBeforeMount)&&Yy(Ke,Ft,De),We.allowRecurse=!0,mt&&Ue){const Et=()=>{Oe.subTree=JX(Oe),Ue(mt,Oe.subTree,Oe,ct,null)};It?De.type.__asyncLoader().then(()=>!Oe.isUnmounted&&Et()):Et()}else{const Et=Oe.subTree=JX(Oe);T(null,Et,$e,rt,Oe,ct,lt),De.el=Et.el}if(tn&&mh(tn,ct),!It&&(Ke=Ct&&Ct.onVnodeMounted)){const Et=De;mh(()=>Yy(Ke,Ft,Et),ct)}De.shapeFlag&256&&Oe.a&&mh(Oe.a,ct),Oe.isMounted=!0,De=$e=rt=null}},We=new Nee(Fe,()=>_1e(Oe.update),Oe.scope),Ye=Oe.update=We.run.bind(We);Ye.id=Oe.uid,We.allowRecurse=Ye.allowRecurse=!0,Ye()},le=(Oe,De,$e)=>{De.component=Oe;const rt=Oe.vnode.props;Oe.vnode=De,Oe.next=null,P9e(Oe,De.props,rt,$e),z9e(Oe,De.children,$e),IC(),ete(void 0,Oe.update),G8()},_e=(Oe,De,$e,rt,ct,lt,ot,Fe,We=!1)=>{const Ye=Oe&&Oe.children,Ke=Oe?Oe.shapeFlag:0,mt=De.children,{patchFlag:Ct,shapeFlag:bt}=De;if(Ct>0){if(Ct&128){P(Ye,mt,$e,rt,ct,lt,ot,Fe,We);return}else if(Ct&256){M(Ye,mt,$e,rt,ct,lt,ot,Fe,We);return}}bt&8?(Ke&16&&he(Ye,ct,lt),mt!==Ye&&h($e,mt)):Ke&16?bt&16?P(Ye,mt,$e,rt,ct,lt,ot,Fe,We):he(Ye,ct,lt,!0):(Ke&8&&h($e,""),bt&16&&Y(mt,$e,rt,ct,lt,ot,Fe,We))},M=(Oe,De,$e,rt,ct,lt,ot,Fe,We)=>{Oe=Oe||AA,De=De||AA;const Ye=Oe.length,Ke=De.length,mt=Math.min(Ye,Ke);let Ct;for(Ct=0;Ct<mt;Ct++){const bt=De[Ct]=We?O8(De[Ct]):Jy(De[Ct]);T(Oe[Ct],bt,$e,null,ct,lt,ot,Fe,We)}Ye>Ke?he(Oe,ct,lt,!0,!1,mt):Y(De,$e,rt,ct,lt,ot,Fe,We,mt)},P=(Oe,De,$e,rt,ct,lt,ot,Fe,We)=>{let Ye=0;const Ke=De.length;let mt=Oe.length-1,Ct=Ke-1;for(;Ye<=mt&&Ye<=Ct;){const bt=Oe[Ye],tn=De[Ye]=We?O8(De[Ye]):Jy(De[Ye]);if(tC(bt,tn))T(bt,tn,$e,null,ct,lt,ot,Fe,We);else break;Ye++}for(;Ye<=mt&&Ye<=Ct;){const bt=Oe[mt],tn=De[Ct]=We?O8(De[Ct]):Jy(De[Ct]);if(tC(bt,tn))T(bt,tn,$e,null,ct,lt,ot,Fe,We);else break;mt--,Ct--}if(Ye>mt){if(Ye<=Ct){const bt=Ct+1,tn=bt<Ke?De[bt].el:rt;for(;Ye<=Ct;)T(null,De[Ye]=We?O8(De[Ye]):Jy(De[Ye]),$e,tn,ct,lt,ot,Fe,We),Ye++}}else if(Ye>Ct)for(;Ye<=mt;)j(Oe[Ye],ct,lt,!0),Ye++;else{const bt=Ye,tn=Ye,Ft=new Map;for(Ye=tn;Ye<=Ct;Ye++){const at=De[Ye]=We?O8(De[Ye]):Jy(De[Ye]);at.key!=null&&Ft.set(at.key,Ye)}let It,Et=0;const At=Ct-tn+1;let vt=!1,Tt=0;const Wt=new Array(At);for(Ye=0;Ye<At;Ye++)Wt[Ye]=0;for(Ye=bt;Ye<=mt;Ye++){const at=Oe[Ye];if(Et>=At){j(at,ct,lt,!0);continue}let _t;if(at.key!=null)_t=Ft.get(at.key);else for(It=tn;It<=Ct;It++)if(Wt[It-tn]===0&&tC(at,De[It])){_t=It;break}_t===void 0?j(at,ct,lt,!0):(Wt[_t-tn]=Ye+1,_t>=Tt?Tt=_t:vt=!0,T(at,De[_t],$e,null,ct,lt,ot,Fe,We),Et++)}const xt=vt?W9e(Wt):AA;for(It=xt.length-1,Ye=At-1;Ye>=0;Ye--){const at=tn+Ye,_t=De[at],en=at+1<Ke?De[at+1].el:rt;Wt[Ye]===0?T(null,_t,$e,en,ct,lt,ot,Fe,We):vt&&(It<0||Ye!==xt[It]?U(_t,$e,en,2):It--)}}},U=(Oe,De,$e,rt,ct=null)=>{const{el:lt,type:ot,transition:Fe,children:We,shapeFlag:Ye}=Oe;if(Ye&6){U(Oe.component.subTree,De,$e,rt);return}if(Ye&128){Oe.suspense.move(De,$e,rt);return}if(Ye&64){ot.move(Oe,De,$e,Ae);return}if(ot===Ur){n(lt,De,$e);for(let mt=0;mt<We.length;mt++)U(We[mt],De,$e,rt);n(Oe.anchor,De,$e);return}if(ot===Ez){N(Oe,De,$e);return}if(rt!==2&&Ye&1&&Fe)if(rt===0)Fe.beforeEnter(lt),n(lt,De,$e),mh(()=>Fe.enter(lt),ct);else{const{leave:mt,delayLeave:Ct,afterLeave:bt}=Fe,tn=()=>n(lt,De,$e),Ft=()=>{mt(lt,()=>{tn(),bt&&bt()})};Ct?Ct(lt,tn,Ft):Ft()}else n(lt,De,$e)},j=(Oe,De,$e,rt=!1,ct=!1)=>{const{type:lt,props:ot,ref:Fe,children:We,dynamicChildren:Ye,shapeFlag:Ke,patchFlag:mt,dirs:Ct}=Oe;if(Fe!=null&&PQ(Fe,null,$e,Oe,!0),Ke&256){De.ctx.deactivate(Oe);return}const bt=Ke&1&&Ct,tn=!IQ(Oe);let Ft;if(tn&&(Ft=ot&&ot.onVnodeBeforeUnmount)&&Yy(Ft,De,Oe),Ke&6)ie(Oe.component,$e,rt);else{if(Ke&128){Oe.suspense.unmount($e,rt);return}bt&&H9(Oe,null,De,"beforeUnmount"),Ke&64?Oe.type.remove(Oe,De,$e,ct,Ae,rt):Ye&&(lt!==Ur||mt>0&&mt&64)?he(Ye,De,$e,!1,!0):(lt===Ur&&mt&384||!ct&&Ke&16)&&he(We,De,$e),rt&&ee(Oe)}(tn&&(Ft=ot&&ot.onVnodeUnmounted)||bt)&&mh(()=>{Ft&&Yy(Ft,De,Oe),bt&&H9(Oe,null,De,"unmounted")},$e)},ee=Oe=>{const{type:De,el:$e,anchor:rt,transition:ct}=Oe;if(De===Ur){ye($e,rt);return}if(De===Ez){A(Oe);return}const lt=()=>{r($e),ct&&!ct.persisted&&ct.afterLeave&&ct.afterLeave()};if(Oe.shapeFlag&1&&ct&&!ct.persisted){const{leave:ot,delayLeave:Fe}=ct,We=()=>ot($e,lt);Fe?Fe(Oe.el,lt,We):We()}else lt()},ye=(Oe,De)=>
1{let $e;for(;Oe!==De;)$e=y(Oe),r(Oe),Oe=$e;r(De)},ie=(Oe,De,$e)=>{const{bum:rt,scope:ct,update:lt,subTree:ot,um:Fe}=Oe;rt&&QX(rt),ct.stop(),lt&&(lt.active=!1,j(ot,Oe,De,$e)),Fe&&mh(Fe,De),mh(()=>{Oe.isUnmounted=!0},De),De&&De.pendingBranch&&!De.isUnmounted&&Oe.asyncDep&&!Oe.asyncResolved&&Oe.suspenseId===De.pendingId&&(De.deps--,De.deps===0&&De.resolve())},he=(Oe,De,$e,rt=!1,ct=!1,lt=0)=>{for(let ot=lt;ot<Oe.length;ot++)j(Oe[ot],De,$e,rt,ct)},re=Oe=>Oe.shapeFlag&6?re(Oe.component.subTree):Oe.shapeFlag&128?Oe.suspense.next():y(Oe.anchor||Oe.el),be=(Oe,De,$e)=>{Oe==null?De._vnode&&j(De._vnode,null,null,!0):T(De._vnode||null,Oe,De,null,null,null,$e),x1e(),De._vnode=Oe},Ae={p:T,um:j,m:U,r:ee,mt:fe,mc:Y,pc:_e,pbc:$,n:re,o:e};let Te,Ue;return t&&([Te,Ue]=t(Ae)),{render:be,hydrate:Te,createApp:V9e(be,Te)}}function PQ(e,t,n,r,i=!1){if(Rl(e)){e.forEach((w,C)=>PQ(w,t&&(Rl(t)?t[C]:t),n,r,i));return}if(IQ(r)&&!i)return;const l=r.shapeFlag&4?Qee(r.component)||r.component.proxy:r.el,u=i?null:l,{i:f,r:v}=e,h=t&&t.r,g=f.refs===Eu?f.refs={}:f.refs,y=f.setupState;if(h!=null&&h!==v&&(Iv(h)?(g[h]=null,su(y,h)&&(y[h]=null)):El(h)&&(h.value=null)),Iv(v)){const w=()=>{g[v]=u,su(y,v)&&(y[v]=u)};u?(w.id=-1,mh(w,n)):w()}else if(El(v)){const w=()=>{v.value=u};u?(w.id=-1,mh(w,n)):w()}else ys(v)&&m3(v,f,12,[u,g])}function Yy(e,t,n,r=null){r2(e,t,7,[n,r])}function Yee(e,t,n=!1){const r=e.children,i=t.children;if(Rl(r)&&Rl(i))for(let l=0;l<r.length;l++){const u=r[l];let f=i[l];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=i[l]=O8(i[l]),f.el=u.el),n||Yee(u,f))}}function W9e(e){const t=e.slice(),n=[0];let r,i,l,u,f;const v=e.length;for(r=0;r<v;r++){const h=e[r];if(h!==0){if(i=n[n.length-1],e[i]<h){t[r]=i,n.push(r);continue}for(l=0,u=n.length-1;l<u;)f=l+u>>1,e[n[f]]<h?l=f+1:u=f;h<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,u=n[l-1];l-- >0;)n[l]=u,u=t[u];return n}const G9e=e=>e.__isTeleport,$D=e=>e&&(e.disabled||e.disabled===""),Zae=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,FQ=(e,t)=>{const n=e&&e.to;return Iv(n)?t?t(n):null:n},K9e={__isTeleport:!0,process(e,t,n,r,i,l,u,f,v,h){const{mc:g,pc:y,pbc:w,o:{insert:C,querySelector:S,createText:T,createComment:B}}=h,F=$D(t.props);let{shapeFlag:R,children:N,dynamicChildren:A}=t;if(e==null){const X=t.el=T(""),Z=t.anchor=T("");C(X,n,r),C(Z,n,r);const z=t.target=FQ(t.props,S),Y=t.targetAnchor=T("");z&&(C(Y,z),u=u||Zae(z));const Q=($,te)=>{R&16&&g(N,$,te,i,l,u,f,v)};F?Q(n,Z):z&&Q(z,Y)}else{t.el=e.el;const X=t.anchor=e.anchor,Z=t.target=e.target,z=t.targetAnchor=e.targetAnchor,Y=$D(e.props),Q=Y?n:Z,$=Y?X:z;if(u=u||Zae(Z),A?(w(e.dynamicChildren,A,Q,i,l,u,f),Yee(e,t,!0)):v||y(e,t,Q,$,i,l,u,f,!1),F)Y||F$(t,n,X,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=FQ(t.props,S);te&&F$(t,te,null,h,0)}else Y&&F$(t,Z,z,h,1)}},remove(e,t,n,r,{um:i,o:{remove:l}},u){const{shapeFlag:f,children:v,anchor:h,targetAnchor:g,target:y,props:w}=e;if(y&&l(g),(u||!$D(w))&&(l(h),f&16))for(let C=0;C<v.length;C++){const S=v[C];i(S,t,n,!0,!!S.dynamicChildren)}},move:F$,hydrate:Y9e};function F$(e,t,n,{o:{insert:r},m:i},l=2){l===0&&r(e.targetAnchor,t,n);const{el:u,anchor:f,shapeFlag:v,children:h,props:g}=e,y=l===2;if(y&&r(u,t,n),(!y||$D(g))&&v&16)for(let w=0;w<h.length;w++)i(h[w],t,n,2);y&&r(f,t,n)}function Y9e(e,t,n,r,i,l,{o:{nextSibling:u,parentNode:f,querySelector:v}},h){const g=t.target=FQ(t.props,v);if(g){const y=g._lpa||g.firstChild;t.shapeFlag&16&&($D(t.props)?(t.anchor=h(u(e),t,f(e),n,r,i,l),t.targetAnchor=y):(t.anchor=u(e),t.targetAnchor=h(y,t,g,n,r,i,l)),g._lpa=t.targetAnchor&&u(t.targetAnchor))}return t.anchor&&u(t.anchor)}const KI=K9e,qee="components",q9e="directives";function Kr(e,t){return Xee(qee,e,!0,t)||e}const u1e=Symbol();function Fa(e){return Iv(e)?Xee(qee,e,!1)||e:e||u1e}function $A(e){return Xee(q9e,e)}function Xee(e,t,n=!0,r=!1){const i=wp||m1;if(i){const l=i.type;if(e===qee){const f=m1e(l);if(f&&(f===t||f===lb(t)||f===Uee(lb(t))))return l}const u=Qae(i[e]||l[e],t)||Qae(i.appContext[e],t);return!u&&r?l:u}}function Qae(e,t){return e&&(e[t]||e[lb(t)]||e[Uee(lb(t))])}const Ur=Symbol(void 0),YI=Symbol(void 0),b0=Symbol(void 0),Ez=Symbol(void 0),zD=[];let yC=null;function Ce(e=!1){zD.push(yC=e?null:[])}function X9e(){zD.pop(),yC=zD[zD.length-1]||null}let fH=1;function Jae(e){fH+=e}function c1e(e){return e.dynamicChildren=fH>0?yC||AA:null,X9e(),fH>0&&yC&&yC.push(e),e}function Ie(e,t,n,r,i,l){return c1e(ce(e,t,n,r,i,l,!0))}function yn(e,t,n,r,i){return c1e(gt(e,t,n,r,i,!0))}function cu(e){return e?e.__v_isVNode===!0:!1}function tC(e,t){return e.type===t.type&&e.key===t.key}const iV="__vInternal",f1e=({key:e})=>e!=null?e:null,Sz=({ref:e})=>e!=null?Iv(e)||El(e)||ys(e)?{i:wp,r:e}:e:null;function ce(e,t=null,n=null,r=0,i=null,l=e===Ur?0:1,u=!1,f=!1){const v={__v_isVNode:!0,__v_skip:!0,t
vendor: 4,441 bytes, line 1
1ype:e,props:t,key:t&&f1e(t),ref:t&&Sz(t),scopeId:nV,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return f?(Zee(v,n),l&128&&e.normalize(v)):n&&(v.shapeFlag|=Iv(n)?8:16),fH>0&&!u&&yC&&(v.patchFlag>0||l&6)&&v.patchFlag!==32&&yC.push(v),v}const gt=Z9e;function Z9e(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===u1e)&&(e=b0),cu(e)){const f=EC(e,t,!0);return n&&Zee(f,n),f}if(uCe(e)&&(e=e.__vccOpts),t){t=sV(t);let{class:f,style:v}=t;f&&!Iv(f)&&(t.class=He(f)),bh(v)&&(Bde(v)&&!Rl(v)&&(v=n2({},v)),t.style=Pr(v))}const u=Iv(e)?1:x9e(e)?128:G9e(e)?64:bh(e)?4:ys(e)?2:0;return ce(e,t,n,r,i,u,l,!0)}function sV(e){return e?Bde(e)||iV in e?n2({},e):e:null}function EC(e,t,n=!1){const{props:r,ref:i,patchFlag:l,children:u}=e,f=t?Pa(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&f1e(f),ref:t&&t.ref?n&&i?Rl(i)?i.concat(Sz(t)):[i,Sz(t)]:Sz(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ur?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&EC(e.ssContent),ssFallback:e.ssFallback&&EC(e.ssFallback),el:e.el,anchor:e.anchor}}function lo(e=" ",t=0){return gt(YI,null,e,t)}function Q9e(e,t){const n=gt(Ez,null,e);return n.staticCount=t,n}function on(e="",t=!1){return t?(Ce(),yn(b0,null,e)):gt(b0,null,e)}function Jy(e){return e==null||typeof e=="boolean"?gt(b0):Rl(e)?gt(Ur,null,e.slice()):typeof e=="object"?O8(e):gt(YI,null,String(e))}function O8(e){return e.el===null||e.memo?e:EC(e)}function Zee(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rl(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Zee(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(iV in t)?t._ctx=wp:i===3&&wp&&(wp.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ys(t)?(t={default:t,_ctx:wp},n=32):(t=String(t),r&64?(n=16,t=[lo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pa(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=He([t.class,r.class]));else if(i==="style")t.style=Pr([t.style,r.style]);else if(Hee(i)){const l=t[i],u=r[i];l!==u&&(t[i]=l?[].concat(l,u):u)}else i!==""&&(t[i]=r[i])}return t}function La(e,t,n,r){let i;const l=n&&n[r];if(Rl(e)||Iv(e)){i=new Array(e.length);for(let u=0,f=e.length;u<f;u++)i[u]=t(e[u],u,void 0,l&&l[u])}else if(typeof e=="number"){i=new Array(e);for(let u=0;u<e;u++)i[u]=t(u+1,u,void 0,l&&l[u])}else if(bh(e))if(e[Symbol.iterator])i=Array.from(e,(u,f)=>t(u,f,void 0,l&&l[f]));else{const u=Object.keys(e);i=new Array(u.length);for(let f=0,v=u.length;f<v;f++){const h=u[f];i[f]=t(e[h],h,f,l&&l[f])}}else i=[];return n&&(n[r]=i),i}function b3(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Rl(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.fn)}return e}function Fn(e,t,n={},r,i){if(wp.isCE)return gt("slot",t==="default"?null:{name:t},r&&r());let l=e[t];l&&l._c&&(l._d=!1),Ce();const u=l&&d1e(l(n)),f=yn(Ur,{key:n.key||`_${t}`},u||(r?r():[]),u&&e._===1?64:-2);return!i&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),l&&l._c&&(l._d=!0),f}function d1e(e){return e.some(t=>cu(t)?!(t.type===b0||t.type===Ur&&!d1e(t.children)):!0)?e:null}function J9e(e){const t={};for(const n in e)t[xz(n)]=e[n];return t}const $Q=e=>e?v1e(e)?Qee(e)||e.proxy:$Q(e.parent):null,dH=n2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>$Q(e.parent),$root:e=>$Q(e.root),$emit:e=>e.emit,$options:e=>n1e(e),$forceUpdate:e=>()=>_1e(e.update),$nextTick:e=>Gr.bind(e.proxy),$watch:e=>_Ce.bind(e)}),eCe={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:u,type:f,appContext:v}=e;let h;if(t[0]!=="$"){const C=u[t];if(C!==void 0)switch(C){case 0:return r[t];case 1:return i[t];case 3:return n[t];case 2:return l[t]}else{if(r!==Eu&&su(r,t))return u[t]=0,r[t];if(i!==Eu&&su(i,t))return u[t]=1,i[t];if((h=e.propsOptions[0])&&su(h,t))return u[t]=2,l[t];if(n!==Eu&&su(n,t))return u[t]=3,n[t];RQ&&(u[t]=4)}
1}const g=dH[t];let y,w;if(g)return t==="$attrs"&&kp(e,"get",t),g(e);if((y=f.__cssModules)&&(y=y[t]))return y;if(n!==Eu&&su(n,t))return u[t]=3,n[t];if(w=v.config.globalProperties,su(w,t))return w[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;if(i!==Eu&&su(i,t))i[t]=n;else if(r!==Eu&&su(r,t))r[t]=n;else if(su(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},u){let f;return n[u]!==void 0||e!==Eu&&su(e,u)||t!==Eu&&su(t,u)||(f=l[0])&&su(f,u)||su(r,u)||su(dH,u)||su(i.config.globalProperties,u)}},tCe=l1e();let nCe=0;function rCe(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||tCe,l={uid:nCe++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,scope:new Cde(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:o1e(r,i),emitsOptions:Yde(r,i),emit:null,emitted:null,propsDefaults:Eu,inheritAttrs:r.inheritAttrs,ctx:Eu,data:Eu,props:Eu,attrs:Eu,slots:Eu,refs:Eu,setupState:Eu,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=y9e.bind(null,l),e.ce&&e.ce(l),l}let m1=null;const va=()=>m1||wp,zA=e=>{m1=e,e.scope.on()},bC=()=>{m1&&m1.scope.off(),m1=null};function v1e(e){return e.vnode.shapeFlag&4}let zQ=!1;function oCe(e,t=!1){zQ=t;const{props:n,children:r}=e.vnode,i=v1e(e);B9e(e,n,i,t),$9e(e,r);const l=i?aCe(e,t):void 0;return zQ=!1,l}function aCe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=gC(new Proxy(e.ctx,eCe));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?p1e(e):null;zA(e),IC();const l=m3(r,e,0,[e.props,i]);if(G8(),bC(),Wde(l)){if(l.then(bC,bC),t)return l.then(u=>{eie(e,u)}).catch(u=>{lV(u,e,0)});e.asyncDep=l}else eie(e,l)}else h1e(e)}function eie(e,t,n){ys(t)?e.render=t:bh(t)&&(e.setupState=$de(t)),h1e(e)}function h1e(e,t,n){const r=e.type;e.render||(e.render=r.render||P8),zA(e),IC(),N9e(e),G8(),bC()}function iCe(e){return new Proxy(e.attrs,{get(t,n){return kp(e,"get","$attrs"),t[n]}})}function p1e(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=iCe(e))},slots:e.slots,emit:e.emit,expose:t}}function Qee(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($de(gC(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dH)return dH[n](e)}}))}const sCe=/(?:^|[-_])(\w)/g,lCe=e=>e.replace(sCe,t=>t.toUpperCase()).replace(/[-_]/g,"");function m1e(e){return ys(e)&&e.displayName||e.name}function g1e(e,t,n=!1){let r=m1e(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=l=>{for(const u in l)if(l[u]===t)return u};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?lCe(r):n?"App":"Anonymous"}function uCe(e){return ys(e)&&"__vccOpts"in e}const HD=[];function cCe(e,...t){IC();const n=HD.length?HD[HD.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=fCe();if(r)m3(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:l})=>`at <${g1e(n,l.type)}>`).join(` 2`),i]);else{const l=[`[Vue warn]: ${e}`,...t];i.length&&l.push(` 3`,...dCe(i)),console.warn(...l)}G8()}function fCe(){let e=HD[HD.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function dCe(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` 4`],...vCe(n))}),t}function vCe({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${g1e(e.component,e.type,r)}`,l=">"+n;return e.props?[i,...hCe(e.props),l]:[i+l]}function hCe(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...y1e(r,e[r]))}),n.length>3&&t.push(" ..."),t}function y1e(e,t,n){return Iv(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:El(t)?(t=y1e(e,ls(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ys(t)?[`${e}
4=fn${t.name?`<${t.name}>`:""}`]:(t=ls(t),n?t:[`${e}=`,t])}function m3(e,t,n,r){let i;try{i=r?e(...r):e()}catch(l){lV(l,t,n)}return i}function r2(e,t,n,r){if(ys(e)){const l=m3(e,t,n,r);return l&&Wde(l)&&l.catch(u=>{lV(u,t,n)}),l}const i=[];for(let l=0;l<e.length;l++)i.push(r2(e[l],t,n,r));return i}function lV(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let l=t.parent;const u=t.proxy,f=n;for(;l;){const h=l.ec;if(h){for(let g=0;g<h.length;g++)if(h[g](e,u,f)===!1)return}l=l.parent}const v=t.appContext.config.errorHandler;if(v){m3(v,null,10,[e,u,f]);return}}pCe(e,n,i,r)}function pCe(e,t,n,r=!0){console.error(e)}let vH=!1,HQ=!1;const _p=[];let d3=0;const VD=[];let ID=null,aA=0;const UD=[];let E8=null,iA=0;const b1e=Promise.resolve();let Jee=null,VQ=null;function Gr(e){const t=Jee||b1e;return e?t.then(this?e.bind(this):e):t}function mCe(e){let t=d3+1,n=_p.length;for(;t<n;){const r=t+n>>>1;dI(_p[r])<e?t=r+1:n=r}return t}function _1e(e){(!_p.length||!_p.includes(e,vH&&e.allowRecurse?d3+1:d3))&&e!==VQ&&(e.id==null?_p.push(e):_p.splice(mCe(e.id),0,e),w1e())}function w1e(){!vH&&!HQ&&(HQ=!0,Jee=b1e.then(E1e))}function gCe(e){const t=_p.indexOf(e);t>d3&&_p.splice(t,1)}function C1e(e,t,n,r){Rl(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),w1e()}function yCe(e){C1e(e,ID,VD,aA)}function bCe(e){C1e(e,E8,UD,iA)}function ete(e,t=null){if(VD.length){for(VQ=t,ID=[...new Set(VD)],VD.length=0,aA=0;aA<ID.length;aA++)ID[aA]();ID=null,aA=0,VQ=null,ete(e,t)}}function x1e(e){if(UD.length){const t=[...new Set(UD)];if(UD.length=0,E8){E8.push(...t);return}for(E8=t,E8.sort((n,r)=>dI(n)-dI(r)),iA=0;iA<E8.length;iA++)E8[iA]();E8=null,iA=0}}const dI=e=>e.id==null?1/0:e.id;function E1e(e){HQ=!1,vH=!0,ete(e),_p.sort((n,r)=>dI(n)-dI(r));const t=P8;try{for(d3=0;d3<_p.length;d3++){const n=_p[d3];n&&n.active!==!1&&m3(n,null,14)}}finally{d3=0,_p.length=0,x1e(),vH=!1,Jee=null,(_p.length||VD.length||UD.length)&&E1e(e)}}function h0(e,t){return tte(e,null,t)}const tie={};function $n(e,t,n){return tte(e,t,n)}function tte(e,t,{immediate:n,deep:r,flush:i,onTrack:l,onTrigger:u}=Eu){const f=m1;let v,h=!1,g=!1;if(El(e)?(v=()=>e.value,h=!!e._shallow):TA(e)?(v=()=>e,r=!0):Rl(e)?(g=!0,h=e.some(TA),v=()=>e.map(F=>{if(El(F))return F.value;if(TA(F))return iC(F);if(ys(F))return m3(F,f,2)})):ys(e)?t?v=()=>m3(e,f,2):v=()=>{if(!(f&&f.isUnmounted))return y&&y(),r2(e,f,3,[w])}:v=P8,t&&r){const F=v;v=()=>iC(F())}let y,w=F=>{y=B.onStop=()=>{m3(F,f,4)}},C=g?[]:tie;const S=()=>{if(!!B.active)if(t){const F=B.run();(r||h||(g?F.some((R,N)=>Vae(R,C[N])):Vae(F,C)))&&(y&&y(),r2(t,f,3,[F,C===tie?void 0:C,w]),C=F)}else B.run()};S.allowRecurse=!!t;let T;i==="sync"?T=S:i==="post"?T=()=>mh(S,f&&f.suspense):T=()=>{!f||f.isMounted?yCe(S):S()};const B=new Nee(v,T);return t?n?S():C=B.run():i==="post"?mh(B.run.bind(B),f&&f.suspense):B.run(),()=>{B.stop(),f&&f.scope&&Vde(f.scope.effects,B)}}function _Ce(e,t,n){const r=this.proxy,i=Iv(e)?e.includes(".")?S1e(r,e):()=>r[e]:e.bind(r,r);let l;ys(t)?l=t:(l=t.handler,n=t);const u=m1;zA(this);const f=tte(i,l.bind(r),n);return u?zA(u):bC(),f}function S1e(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function iC(e,t){if(!bh(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),El(e))iC(e.value,t);else if(Rl(e))for(let n=0;n<e.length;n++)iC(e[n],t);else if(jde(e)||Ude(e))e.forEach(n=>{iC(n,t)});else if(Kde(e))for(const n in e)iC(e[n],t);return e}function g1(){return T1e().slots}function RC(){return T1e().attrs}function T1e(){const e=va();return e.setupContext||(e.setupContext=p1e(e))}function oo(e,t,n){const r=arguments.length;return r===2?bh(t)&&!Rl(t)?cu(t)?gt(e,null,[t]):gt(e,t):gt(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&cu(n)&&(n=[n]),gt(e,t,n))}const wCe="3.2.13";function CCe(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const xCe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ECe=CCe(xCe);function A1e(e){return!!e||e===""}function SCe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=HA(e[r],t[r]);return n}function HA(e,t){if(e===t)return!0;let n=nie(e),r=nie(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_3(e),r=_3(t),n||r)return n&&r?SCe(e,t):!1;if(n=UQ(e),r=UQ(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const u in e){const f=e.hasOwnProperty(u),v=t.hasOwnProperty(u);if(f&&!v||!f&&v||!HA(e[u],t[u]))return!1}}return String(e)===String(t)}function k1e(e,t){return e.findIndex(n=>HA(n,t))}const TCe=/^on[^a-z]/,ACe=e=>TCe.test(e),kCe=e=>e.startsWith("onUpdate:"),uV=Object.assign,_3=Array.isArray,O1e=e=>MCe(e)==="[object Set]",nie=e=>e instanceof Date,M1e=e=>typeof e=="function",hH=e=>typeof e=="string",UQ=e=>e!==null&&typeof e=="object",OCe=Object.prototype.toString,MCe=e=>OCe.call(e),N1e=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},NCe=/\B([A-Z])/g,nte=N1e(e=>e.replace(NCe,"-$1").toLowerCase()),DCe=N1e(e=>e.charAt(0).toUpperCase()+e.slice(1)),ICe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jQ=e=>{const t=parseFloat(e);return isNaN(t)?e:t},RCe="http://www.w3.org/2000/svg",KT=typeof document!="undefined"?document:null,rie=new Map,LCe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?KT.createElementNS(RCe,e):KT.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>KT.createTextNode(e),createComment:e=>KT.createComment(e),setText:(e,t)=>
4{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>KT.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const i=n?n.previousSibling:t.lastChild;let l=rie.get(e);if(!l){const u=KT.createElement("template");if(u.innerHTML=r?`<svg>${e}</svg>`:e,l=u.content,r){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}rie.set(e,l)}return t.insertBefore(l.cloneNode(!0),n),[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function BCe(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function PCe(e,t,n){const r=e.style,i=r.display;if(!n)e.removeAttribute("style");else if(hH(n))t!==n&&(r.cssText=n);else{for(const l in n)WQ(r,l,n[l]);if(t&&!hH(t))for(const l in t)n[l]==null&&WQ(r,l,"")}"_vod"in e&&(r.display=i)}const oie=/\s*!important$/;function WQ(e,t,n){if(_3(n))n.forEach(r=>WQ(e,t,r));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=FCe(e,t);oie.test(n)?e.setProperty(nte(r),n.replace(oie,""),"important"):e[r]=n}}const aie=["Webkit","Moz","ms"],tZ={};function FCe(e,t){const n=tZ[t];if(n)return n;let r=lb(t);if(r!=="filter"&&r in e)return tZ[t]=r;r=DCe(r);for(let i=0;i<aie.length;i++){const l=aie[i]+r;if(l in e)return tZ[t]=l}return t}const iie="http://www.w3.org/1999/xlink";function $Ce(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(iie,t.slice(6,t.length)):e.setAttributeNS(iie,t,n);else{const l=ECe(t);n==null||l&&!A1e(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function zCe(e,t,n,r,i,l,u){if(t==="innerHTML"||t==="textContent"){r&&u(r,i,l),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"){e._value=n;const f=n==null?"":n;e.value!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}if(n===""||n==null){const f=typeof e[t];if(f==="boolean"){e[t]=A1e(n);return}else if(n==null&&f==="string"){e[t]="",e.removeAttribute(t);return}else if(f==="number"){try{e[t]=0}catch{}e.removeAttribute(t);return}}try{e[t]=n}catch{}}let pH=Date.now,D1e=!1;if(typeof window!="undefined"){pH()>document.createEvent("Event").timeStamp&&(pH=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);D1e=!!(e&&Number(e[1])<=53)}let GQ=0;const HCe=Promise.resolve(),VCe=()=>{GQ=0},UCe=()=>GQ||(HCe.then(VCe),GQ=pH());function I8(e,t,n,r){e.addEventListener(t,n,r)}function jCe(e,t,n,r){e.removeEventListener(t,n,r)}function WCe(e,t,n,r,i=null){const l=e._vei||(e._vei={}),u=l[t];if(r&&u)u.value=r;else{const[f,v]=GCe(t);if(r){const h=l[t]=KCe(r,i);I8(e,f,h,v)}else u&&(jCe(e,f,u,v),l[t]=void 0)}}const sie=/(?:Once|Passive|Capture)$/;function GCe(e){let t;if(sie.test(e)){t={};let n;for(;n=e.match(sie);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[nte(e.slice(2)),t]}function KCe(e,t){const n=r=>{const i=r.timeStamp||pH();(D1e||i>=n.attached-1)&&r2(YCe(r,n.value),t,5,[r])};return n.value=e,n.attached=UCe(),n}function YCe(e,t){if(_3(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r(i))}else return t}const lie=/^on[a-z]/,qCe=(e,t,n,r,i=!1,l,u,f,v)=>{t==="class"?BCe(e,r,i):t==="style"?PCe(e,n,r):ACe(t)?kCe(t)||WCe(e,t,n,r,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):XCe(e,t,r,i))?zCe(e,t,r,l,u,f,v):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),$Ce(e,t,r,i))};function XCe(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&lie.test(t)&&M1e(n)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||lie.test(t)&&hH(n)?!1:t in e}const h8="transition",vD="animation",Ic=(e,{slots:t})=>oo(Xde,R1e(e),t);Ic.displayName="Transition";const I1e={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ZCe=Ic.props=uV({},Xde.props,I1e),V9=(e,t=[])=>{_3(e)?e.forEach(n=>n(...t)):e&&e(...t)},uie=e=>e?_3(e)?e.some(t=>t.length>1):e.length>1:!1;function R1e(e){const t={};for(const V in e)V in I1e||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:l=`${n}
4-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:v=l,appearActiveClass:h=u,appearToClass:g=f,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:w=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,S=QCe(i),T=S&&S[0],B=S&&S[1],{onBeforeEnter:F,onEnter:R,onEnterCancelled:N,onLeave:A,onLeaveCancelled:X,onBeforeAppear:Z=F,onAppear:z=R,onAppearCancelled:Y=N}=t,Q=(V,K,fe)=>{Z9(V,K?g:f),Z9(V,K?h:u),fe&&fe()},$=(V,K)=>{Z9(V,C),Z9(V,w),K&&K()},te=V=>(K,fe)=>{const de=V?z:R,ne=()=>Q(K,V,fe);V9(de,[K,ne]),cie(()=>{Z9(K,V?v:l),s3(K,V?g:f),uie(de)||fie(K,r,T,ne)})};return uV(t,{onBeforeEnter(V){V9(F,[V]),s3(V,l),s3(V,u)},onBeforeAppear(V){V9(Z,[V]),s3(V,v),s3(V,h)},onEnter:te(!1),onAppear:te(!0),onLeave(V,K){const fe=()=>$(V,K);s3(V,y),B1e(),s3(V,w),cie(()=>{Z9(V,y),s3(V,C),uie(A)||fie(V,r,B,fe)}),V9(A,[V,fe])},onEnterCancelled(V){Q(V,!1),V9(N,[V])},onAppearCancelled(V){Q(V,!0),V9(Y,[V])},onLeaveCancelled(V){$(V),V9(X,[V])}})}function QCe(e){if(e==null)return null;if(UQ(e))return[nZ(e.enter),nZ(e.leave)];{const t=nZ(e);return[t,t]}}function nZ(e){return jQ(e)}function s3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Z9(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function cie(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let JCe=0;function fie(e,t,n,r){const i=e._endId=++JCe,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);const{type:u,timeout:f,propCount:v}=L1e(e,t);if(!u)return r();const h=u+"end";let g=0;const y=()=>{e.removeEventListener(h,w),l()},w=C=>{C.target===e&&++g>=v&&y()};setTimeout(()=>{g<v&&y()},f+1),e.addEventListener(h,w)}function L1e(e,t){const n=window.getComputedStyle(e),r=S=>(n[S]||"").split(", "),i=r(h8+"Delay"),l=r(h8+"Duration"),u=die(i,l),f=r(vD+"Delay"),v=r(vD+"Duration"),h=die(f,v);let g=null,y=0,w=0;t===h8?u>0&&(g=h8,y=u,w=l.length):t===vD?h>0&&(g=vD,y=h,w=v.length):(y=Math.max(u,h),g=y>0?u>h?h8:vD:null,w=g?g===h8?l.length:v.length:0);const C=g===h8&&/\b(transform|all)(,|$)/.test(n[h8+"Property"]);return{type:g,timeout:y,propCount:w,hasTransform:C}}function die(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>vie(n)+vie(e[r])))}function vie(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function B1e(){return document.body.offsetHeight}const P1e=new WeakMap,F1e=new WeakMap,exe={name:"TransitionGroup",props:uV({},ZCe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=va(),r=qde();let i,l;return S3(()=>{if(!i.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!oxe(i[0].el,n.vnode.el,u))return;i.forEach(txe),i.forEach(nxe);const f=i.filter(rxe);B1e(),f.forEach(v=>{const h=v.el,g=h.style;s3(h,u),g.transform=g.webkitTransform=g.transitionDuration="";const y=h._moveCb=w=>{w&&w.target!==h||(!w||/transform$/.test(w.propertyName))&&(h.removeEventListener("transitionend",y),h._moveCb=null,Z9(h,u))};h.addEventListener("transitionend",y)})}),()=>{const u=ls(e),f=R1e(u);let v=u.tag||Ur;i=l,l=t.default?Wee(t.default()):[];for(let h=0;h<l.length;h++){const g=l[h];g.key!=null&&fI(g,cI(g,f,r,n))}if(i)for(let h=0;h<i.length;h++){const g=i[h];fI(g,cI(g,f,r,n)),P1e.set(g,g.el.getBoundingClientRect())}return gt(v,null,l)}}},$1e=exe;function txe(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function nxe(e){F1e.set(e,e.el.getBoundingClientRect())}function rxe(e){const t=P1e.get(e),n=F1e.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${i}px)`,l.transitionDuration="0s",e}}function oxe(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(u=>{u.split(/\s+/).forEach(f=>f&&r.classList.remove(f))}),n.split(/\s+/).forEach(u=>u&&r.classList.add(u)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=L1e(r);return i.removeChild(r),l}const VA=e=>{const t=e.props["onUpdate:modelValue"];return _3(t)?n=>ICe(t,n):t};function axe(e){e.target.composing=!0}function hie(e){const t=e.target;t.composing&&(t.composing=!1,ixe(t,"input"))}function ixe(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const UA={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=VA(i);const l=r||i.props&&i.props.type==="number";I8(e,t?"change":"input",u=>{if(u.target.composing)return;let f=e.value;n?f=f.trim():l&&(f=jQ(f)),e._assign(f)}),n&&I8(e,"change",()=>{e.value=e.value.trim()}),t||(I8(e,"compositionstart",axe),I8(e,"compositionend",hie),I8(e,"change",hie))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},l){if(e._assign=VA(l),e.composing||document.activeElement===e&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&jQ(e.value)===t))return;const u=t==null?"":t;e.value!==u&&(e.value=u)}},mH={deep:!0,created(e,t,n){e._assign=VA(n),I8(e,"change",()=>{const r=e._modelValue,i=H1e(e),l=e.checked,u=e._assign;if(_3(r)){const f=k1e(r,i),v=f!==-1;if(l&&!v)u(r.concat(i));else if(!l&&v){const h=[...r];h.splice(f,1),u(h)}}else if(O1e(r)){const f=new Set(r);l?f.add(i):f.delete(i),u(f)}else u(V1e(e,l))})},mounted:pie,beforeUpdate(e,t,n){e._assign=VA(n),pie(e,t,n)}};function pie(e,{value:t,oldValue:n},r){e._modelValue=t,_3(t)?e.checked=k1e(t,r.props.value)>-1:O1e(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=HA(t,V1e(e,!0)))}const z1e={created(e,{value:t},n){e.checked=HA(t,n.props.value),e._assign=VA(n),I8(e,"change",()=>{e._assign(H1e(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=VA(r),t!==n&&(e.checked=HA(t,r.props.value))}};function H1e(e){return"_value"in e?e._value:e.value}function V1e(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}
vendor: 4,161 bytes, line 4
4const sxe=["ctrl","shift","alt","meta"],lxe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sxe.some(n=>e[`${n}Key`]&&!t.includes(n))},Do=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const l=lxe[t[i]];if(l&&l(n,t))return}return e(n,...r)},uxe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mi=(e,t)=>n=>{if(!("key"in n))return;const r=nte(n.key);if(t.some(i=>i===r||uxe[i]===r))return e(n)},Ti={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hD(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),hD(e,!0),r.enter(e)):r.leave(e,()=>{hD(e,!1)}):hD(e,t))},beforeUnmount(e,{value:t}){hD(e,t)}};function hD(e,t){e.style.display=t?e._vod:"none"}const cxe=uV({patchProp:qCe},LCe);let mie;function U1e(){return mie||(mie=U9e(cxe))}const jA=(...e)=>{U1e().render(...e)},j1e=(...e)=>{const t=U1e().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=fxe(r);if(!i)return;const l=t._component;!M1e(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.innerHTML="";const u=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),u},t};function fxe(e){return hH(e)?document.querySelector(e):e}var dxe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAA70lEQVQokY3RsUoDQRSF4W9DwC6PIJZCYiOiaCtY+gqCsojg7oNoIcRoo29jm0YEqwiCTZ4hFmMxs7JO1uiphjv3n3vnnCKEcIR1PPqfSsz7GGITa7j7AzrFDj6KEEKBKj3wjPtfoDPsYoabIoTQXFQY4QWTjkl7CbqGXuvyFq/YwkUH9NZA0J6YT37CAocJumo3dYFwgoN0nuIhb+jlhaRF6/zZ1dDvqJWi5dME7WOA8SrwHNvin5r1BmJUlWjg0qplgmZ+GjEWIxqhzsFmve+cMk3EqIa4JLpap8KS5R1qonovQgjH2JB9foVqzL8AyfBCBCbMmGgAAAAASUVORK5CYII=",vxe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC6ElEQVRYhbWXvU9TURjGf/f0g9Z+UMRCE5RoqBElltIFBxOiGGPQCRY1hkVMjLgYE3EyJi7gon+AjgQHjSZidCE4aPwYiGliHGyBwQSQRSkWQ7E43NPQQrn3LYFnvOc5z/vc856P9zXiw2mE8ANngRNAHDgAVOux38AU8AUYB14BixJRQ2AgCgwAFwCf0OwfYAQYAlJWRGUx5gEGga9AXwXB0dw+PXdIa1VkoAn4gPnn7goCr4cbuKW1olIDCeA9Zp63C3Hgnda2NBAF3gD12xi8gHqtXbISxQa8wFMgvAPBCwgDz3SsDQbuAq07GLyAmI4FrB3DJuAb4JIonG700R0N0lzjxjAMUr+WeZ7OMDqVkZrIAUeAlFN/uC0NfqOtlt7D1SXfEnUeEnUe2sIe7n2el8i4dMw+BQQwLxlbxPZ4NgQvRnc0wMl94uviPBBQQBfCS6a/tcaWc/WoPUfDB3QpoFPCdhgGLburbHkHQ25CVQ6piU6FuSttEfY68Lmsbu41NPid9iQTMYV5AmzhdhhSUZyGmNukgKCE2dGwS2ygY6+YG5StKXDx0Oa7fz16okFcSrYKCliwI7VHvER84rwSdCvpcVxQgG1FcqqxklLARNd+v4SWVkBSKpZflRs4FvHakyCpgDE71qfZJa6MzSBMK/3jM7yYFL0LY0Z8OB0AZhDchjcTtVxqtt6MLycz3Pkoeg+yQEQBGeCJZMbraftCd3R6EeFCjQCZwtYeBHqxeBEDbsW1WA0/FnM4lcG/PGRX8gB4nQZOZbCSX+VyS4jphRw/sytWwXOYxSoFAyngAWYBWRaZ5TzX387K/s0eD4HvsLEisj0R24AkRRVRsYEloAcQ7aAtYl7HyJYzAGYqzgBzOxB8TmuXdErl3oIJ4Djbm46k1pxYP7DZY5QC2oH7mDt2q8hpjXY26RGtXsO/mK1ZC/CIorwJsAQ81nMHtFZZSLrjAvzAOUrb85Ae+0Vpez6KsD3/D1cinPEx7mlkAAAAAElFTkSuQmCC",hxe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEDklEQVRYhb2XbUxbVRjHf/felt4OCh1QGSTbonSbEd3ED0Ozmai4ZYlDQNzAl+gHWWTGGadTlvj+RuicX1yCxs1pzF7CwmKMukAM0yzdeMlGWBOdCSRDSCAMYaUvFNq19cO97aj05cJg/0/tOc/5//99zuk5zyOMrM5HIzKAJ4BHgfuBO4EsdW4SuAr0Ar8DvwIeLaSCBgNWoB54BkjXaNYLnARsQH+yQDHJnAw0An8CtfMQR42tVdfaVK64SJSBQqAFJdWLgV5gB3GyES8DDwDnF1Eclcuucic1YAVagbxFFI8gT+W2JjJgREm7ZQnEI7AAp1WtOQY+BDYsoXgE61Ut4OYhLASuAPrbYAAgANwD9EcysP82iqNq7QdlC0wol8zCIUlYOntYMTCMpeMi6S+/omVVDWCS9plNlcCzt2RAEAi7XQQudqNbdzfGJyswPL4VX/NJCIcTrUoDLotA6Xz15PJKTPXvoN9QrAyEQgR6LiFmZuHcvYvJvXvQ33sfWY0HU1GV6lBOpSakbSwh8zMbujVrAdAXFzNR8zQAYZ8PaeUqctvOMlq0BsPPP2HcUc3kW3uTUa7XofwDUkIuK8d86KuYsdDYGGkbH0SurCLsduHcsxvTyDDmL5vw/Xgauaw8FW2hDshMFWXYsnWOeMTUbJGwx4O36RCZjQfx288xXrE9FXWmLlWEeEceyw9/H/0ecFxm5rc2Qm4XiCKGTQ9jKN0CgCDLhJxOnHW1AIR6e1LRIwKupBY/aYh+dr5ax8Rz1YS8HsTsHIJDg1x/6UXGy7YRGv+XZbvqlExJUkphFS5hZHV+J1CSKGLFwDAAEzsr8Xd3Yem4hJR/8wmfOnoE18fvk7ZpM9nHTwHg/boJd+OnWgx0iYAjVVRwaBB/dxemdz9QzFRXERwaBECueAoA/3l7NF7MzdEiDuAQgfZkEeHp
4aYR0pRgSJB3+C3b8XR3R+Zk/zgJgeOSx6JjvVLNWA+0icAalhosLZ10tYnYOxp01uD56jxt/XyG3tR1p5Sp8Lc1MvvEaotmMuekbQNkSf3enFvEp4Iy0z2zyA3cRp1oBCA5cJXR9gqyGA0j5BczYz3Gjrw/fiWP4Oy6w7PkXWP7dMQS9HretAc8XNq2//gegJfIcW4G/SPIi6tauI+P1N5EKCgheu4YgiEhWK4IsM9PWivfoYYKD/2gVDwBFQN/sotQGvK2V4RbxeURrtgEj0Mk83oYFwgE8hHIGYkoyH1AFjC2h+JiqMRUZ+H9V3A9sA0aXQHxU5Y7pDeL1BT3AZjRcUPOAQ+Wc8zgkas36Ua7nAygndqEIqBwlJOgRk/WG0yhNaRFwhFn7pgE+4Ft1bb3KFRdauuMIMoDtxLbnZnXOSWx7/gsa2/P/AHK1Lf7pX2S8AAAAAElFTkSuQmCC";var tv=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const pxe={name:"App",data(){return{showLogin:!1,agreement:!1,agreementData:{},type:2,checked:!1,form:{phone:"",password:"",smsCode:"",captchaVerification:""},rules:{phone:this.$form.rule("\u624B\u673A\u53F7","blur","required,maxSize[50]"),account:this.$form.rule("\u8D26\u53F7","blur","required,maxSize[50]"),password:this.$form.rule("\u5BC6\u7801","blur","required,minSize[6]"),smsCode:this.$form.rule("\u9A8C\u8BC1\u7801","blur","required")},timing:0,timingFlag:!1,newTelBindFlag:!1,newPhoneForm:{identityKey:"",phone:"",smsKey:"",smsCode:""}}},created(){this.$ajax.loadData("/api/systemArticle/page",{programaId:"1821444941493186562"},e=>{this.agreementData=e}),this.$watch(()=>this.$store.getters.showLogin,(e,t)=>{this.showLogin=e}),this.$watch(()=>this.type,(e,t)=>{e==1&&setTimeout(()=>{var n=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/threeLogin/weixin";new WxLogin({self_redirect:!1,id:"login_container",appid:"wx7e5621395210b604",scope:"snsapi_login",redirect_uri:encodeURIComponent(n),state:"",style:"",href:""})},50)})},mounted(){this.checkDevice()},methods:{checkDevice(){var e=navigator.userAgent||navigator.vendor||window.opera;if(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e)){var t=window.location.pathname,n=window.location.search,r=window.location.hash,i=t+n+r;location.href="/wap"+i}},onSubmit(e){this.form.loginType=e,this.$refs.form.validate(t=>{if(t){if(!this.checked&&e==1){this.$message.error("\u8BF7\u540C\u610F\u7528\u6237\u534F\u8BAE");return}e==1?this.loginVerifySuccess({captchaVerification:""}):e==2&&this.$refs.loginVerify.show()}})},loginVerifySuccess(e){this.form.captchaVerification=e.captchaVerification,this.$ajax.prompt("/api/home/login",this.form,{1:t=>{this.$message.success(t.msg),this.$store.commit("token",t.token),this.showLogin=!1,t.isBindPhone?this.$alert("\u4E3A\u4E86\u60A8\u7684\u4FE1\u606F\u5B89\u5168\uFF0C\u8BF7\u7ED1\u5B9A\u624B\u673A\u53F7\u7801","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",showClose:!1,callback:()=>{this.newTelBindFlag=!0}}):location.reload()},"-1":t=>{this.$message.error(t.msg),this.form.validateCode=""}})},sendSmsCode(){if(!/^1[3456789]\d{9}$/.test(this.form.phone)){this.$message.error("\u8BF7\u8F93\u5165\u6B63\u786E\u624B\u673A\u53F7");return}this.$refs.sendSmsCodeVerify.show()},sendSmsCodeVerifySuccess(e){this.form.smsType=1,this.form.captchaVerification=e.captchaVerification,this.$ajax.prompt("/api/home/sendSmsCode",this.form,{1:t=>{this.$message.success(t.msg),this.form.smsKey=t.smsKey,this.form.smsCode=t.smsCode;var n=this;n.timing=60,n.timingFlag=!0;var r=setInterval(()=>{n.timing--,n.timing<=0&&(n.timingFlag=!1,clearInterval(r))},1e3)},"-1":t=>{this.$message.error(t.msg)}})},changeType(e){var t=this;t.type=e},closeLogin(){this.$store.commit("showLogin",!1)},sendBindCode(){this.$refs.newPhoneForm.validateField("phone",e=>{e&&this.$ajax.loadData("/api/home/checkRegister",{phone:this.newPhoneForm.phone},t=>{t.isRegister?this.$message.error("\u624B\u673A\u53F7\u5DF2\u6CE8\u518C"):this.$refs.newVerify.show()})})},newVerifySuccess(e){this.$ajax.prompt("/api/home/sendSmsCode",{smsType:4,phone:this.newPhoneForm.phone,captchaVerification:e.captchaVerification},{1:t=>{this.$message.success(t.msg),this.newPhoneForm.smsKey=t.smsKey,this.newPhoneForm.smsCode=t.smsCode;var n=this;n.timing=60,n.timingFlag=!0;var r=setInterval(()=>{n.timing--,n.timing<=0&&(n.timingFlag=!1,clearInterval(r))},1e3)}})},saveNewPhone(){this.$refs.newPhoneForm.validate(e=>{e&&this.$ajax.prompt("/api/member/changePhone",this.newPhoneForm,{1:t=>{this.$message.success(t.msg),this.newTelBindFlag=!1,setTimeout(function(){location.reload()},1e3)}})})}}},mxe=ce("h3",{class:"login-title"},"\u767B\u5F55\u53E4\u6708\u5C45\u7545\u4EAB\u66F4\u591A\u6743\u76CA",-1),gxe={class:"login-type"},yxe={key:0,class:""},bxe=ce("div",{id:"login_container",style:{"text-align":"center"}},null,-1),_xe=[bxe],wxe={key:1,class:"",style:{width:"350px",margin:"0 auto"}},Cxe={class:"codeBox"},xxe=lo("\u767B\u5F55/\u6CE8\u518C"),Exe={class:"login-link2"},Sxe=lo("\u672A\u6CE8\u518C\u624B\u673A\u9A8C\u8BC1\u540E\u81EA\u52A8\u767B\u5F55\uFF0C\u6CE8\u518C\u5373\u4EE3\u8868\u540C\u610F"),Txe=lo("\u300A\u7528\u6237\u534F\u8BAE\u300B"),Axe={key:2,class:"",style:{width:"350px",margin:"0 auto"}},kxe=lo("\u767B\u5F55"),Oxe={class:"login-link"},Mxe=lo("\u5FD8\u8BB0\u5BC6\u7801\uFF1F"),Nxe=ce("div",{class:"login-other"},[ce("span",null,"\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F"),ce("p",null,[ce("a",{href:"/api/home/threeLogin?name=qq",class:"login-other-link"},[ce("img",{src:vxe,alt:""})]),ce("a",{href:"/api/home/threeLogin?name=weibo",class:"login-other-link"},[ce("img",{src:hxe,alt:""})])])],-1),Dxe=ce("h3",{style:{"border-bottom":"1px solid #f3f3f3","text-align":"center",color:"#333","padding-bottom":"10px"}}," \u7528\u6237\u534F\u8BAE",-1),Ixe=["innerHTML"],Rxe=ce("h3",{class:"title"},"\u7ED1\u5B9A\u624B\u673A\u53F7",-1),Lxe={class:"telBind-list"},Bxe={class:"telBind-form"},Pxe={class:"telBind-form-tel"},Fxe=ce("span",null,"+86",-1),$xe={class:"telBind-form-item"};function zxe(e,t,n,r,i,l){const u=Kr("router-view"),f=Kr("el-input"),v=Kr("el-form-item"),h=Kr("verify"),g=Kr("el-button"),y=Kr("el-checkbox"),w=Kr("router-link"),C=Kr("el-form"),S=Kr("el-dialog");return Ce(),Ie(Ur,null,[gt(u),gt(S,{ref:"loginDialog",modelValue:i.showLogin,"onUpdate:modelValue":t[18]||(t[18]=T=>i.showLogin=T),width:"450",class:"login","align-center":"true","show-close":!1,closeOnClickModal:!1},{default:Dt(()=>
4[ce("img",{src:dxe,alt:"",class:"login-close",onClick:t[0]||(t[0]=(...T)=>l.closeLogin&&l.closeLogin(...T))}),mxe,ce("p",gxe,[ce("span",{class:He(i.type==1?"on":""),onClick:t[1]||(t[1]=T=>l.changeType(1))},"\u5FAE\u4FE1\u767B\u5F55",2),ce("span",{class:He(i.type==2?"on":""),onClick:t[2]||(t[2]=T=>l.changeType(2))},"\u624B\u673A\u53F7\u767B\u5F55",2),ce("span",{class:He(i.type==3?"on":""),onClick:t[3]||(t[3]=T=>l.changeType(3))},"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55",2)]),i.type==1?(Ce(),Ie("div",yxe,_xe)):on("",!0),i.type==2?(Ce(),Ie("div",wxe,[gt(C,{model:i.form,rules:i.rules,ref:"form",onSubmit:t[10]||(t[10]=Do(()=>{},["prevent"])),onKeyup:t[11]||(t[11]=mi(T=>l.onSubmit(1),["enter","native"]))},{default:Dt(()=>[ce("div",null,[gt(v,{"label-width":"0",prop:"phone",style:{"margin-bottom":"10px"}},{default:Dt(()=>[gt(f,{modelValue:i.form.phone,"onUpdate:modelValue":t[4]||(t[4]=T=>i.form.phone=T),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",class:"tel"},null,8,["modelValue"])]),_:1})]),ce("div",Cxe,[gt(v,{"label-width":"0",prop:"smsCode",style:{"margin-bottom":"10px"}},{default:Dt(()=>[gt(f,{modelValue:i.form.smsCode,"onUpdate:modelValue":t[5]||(t[5]=T=>i.form.smsCode=T),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",class:"code"},null,8,["modelValue"]),ce("span",{onClick:t[6]||(t[6]=(...T)=>l.sendSmsCode&&l.sendSmsCode(...T)),class:He(i.timingFlag?"dis":"")},Zn(i.timingFlag?i.timing+"s\u540E\u91CD\u65B0\u83B7\u53D6":"\u83B7\u53D6\u9A8C\u8BC1\u7801"),3)]),_:1})]),gt(h,{ref:"sendSmsCodeVerify",captchaType:"blockPuzzle",mode:"pop",onSuccess:l.sendSmsCodeVerifySuccess},null,8,["onSuccess"]),gt(g,{type:"primary",onClick:t[7]||(t[7]=T=>l.onSubmit(1)),style:{height:"48px","font-size":"16px",width:"100%","margin-top":"20px",background:"#0079fe","border-radius":"5px"}},{default:Dt(()=>[xxe]),_:1}),ce("p",Exe,[gt(y,{modelValue:i.checked,"onUpdate:modelValue":t[8]||(t[8]=T=>i.checked=T),class:"checkbox",style:{"vertical-align":"top"}},{default:Dt(()=>[Sxe]),_:1},8,["modelValue"]),gt(w,{to:"",class:"login-link-list",onClick:t[9]||(t[9]=T=>i.agreement=!i.agreement)},{default:Dt(()=>[Txe]),_:1})])]),_:1},8,["model","rules"])])):on("",!0),i.type==3?(Ce(),Ie("div",Axe,[gt(C,{model:i.form,rules:i.rules,ref:"form",onSubmit:t[15]||(t[15]=Do(()=>{},["prevent"])),onKeyup:t[16]||(t[16]=mi(T=>l.onSubmit(2),["enter","native"]))},{default:Dt(()=>[gt(v,{"label-width":"0",prop:"account",style:{"margin-bottom":"10px"}},{default:Dt(()=>[gt(f,{modelValue:i.form.account,"onUpdate:modelValue":t[12]||(t[12]=T=>i.form.account=T),placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7/\u90AE\u7BB1/\u624B\u673A\u53F7",class:"account"},null,8,["modelValue"])]),_:1}),gt(v,{"label-width":"0",prop:"password",style:{"margin-bottom":"10px"}},{default:Dt(()=>[gt(f,{modelValue:i.form.password,"onUpdate:modelValue":t[13]||(t[13]=T=>i.form.password=T),type:"password",placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF0C\u9ED8\u8BA4\u521D\u59CB\u5BC6\u7801\u4E3A123456",class:"pwd"},null,8,["modelValue"])]),_:1}),gt(g,{type:"primary",onClick:t[14]||(t[14]=T=>l.onSubmit(2)),style:{height:"48px","font-size":"16px",width:"100%","margin-top":"20px",background:"#0079fe","border-radius":"5px"}},{default:Dt(()=>[kxe]),_:1}),gt(h,{ref:"loginVerify",captchaType:"blockPuzzle",mode:"pop",onSuccess:l.loginVerifySuccess},null,8,["onSuccess"])]),_:1},8,["model","rules"]),ce("p",Oxe,[gt(w,{to:"/findpwd",class:"login-link-list",onClick:t[17]||(t[17]=T=>e.login=!1)},{default:Dt(()=>[Mxe]),_:1})])])):on("",!0),Nxe]),_:1},8,["modelValue"]),gt(S,{modelValue:i.agreement,"onUpdate:modelValue":t[19]||(t[19]=T=>i.agreement=T),width:"1200",class:"agreement","align-center":"true"},{default:Dt(()=>
4[ce("div",null,[Dxe,ce("div",{class:"html",style:{padding:"20px"},innerHTML:i.agreementData.entity.pageContent},null,8,Ixe)])]),_:1},8,["modelValue"]),gt(S,{modelValue:i.newTelBindFlag,"onUpdate:modelValue":t[25]||(t[25]=T=>i.newTelBindFlag=T),"show-close":!1,width:"380",class:"common newTelBind","align-center":"true"},{default:Dt(()=>[Rxe,ce("div",Lxe,[ce("div",Bxe,[gt(C,{model:i.newPhoneForm,"label-width":"0",rules:i.rules,ref:"newPhoneForm",onSubmit:t[23]||(t[23]=Do(()=>{},["prevent"]))},{default:Dt(()=>[gt(v,{prop:"phone",rules:e.$form.rule("\u624B\u673A\u53F7","blur","required,mobilephone")},{default:Dt(()=>[ce("div",Pxe,[Fxe,ea(ce("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=T=>i.newPhoneForm.phone=T),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"},null,512),[[UA,i.newPhoneForm.phone]])])]),_:1},8,["rules"]),gt(v,{prop:"smsCode",rules:e.$form.rule("\u9A8C\u8BC1\u7801","blur","required")},{default:Dt(()=>[ce("div",$xe,[ea(ce("input",{type:"text","onUpdate:modelValue":t[21]||(t[21]=T=>i.newPhoneForm.smsCode=T),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,512),[[UA,i.newPhoneForm.smsCode]]),ce("span",{onClick:t[22]||(t[22]=T=>l.sendBindCode()),class:He(i.timingFlag?"dis":"")},Zn(i.timingFlag?i.timing+"s\u540E\u91CD\u65B0\u83B7\u53D6":"\u83B7\u53D6\u9A8C\u8BC1\u7801"),3)])]),_:1},8,["rules"]),gt(h,{ref:"newVerify",captchaType:"blockPuzzle",mode:"pop",onSuccess:l.newVerifySuccess},null,8,["onSuccess"])]),_:1},8,["model","rules"])]),ce("div",{class:"telBind-btn",onClick:t[24]||(t[24]=(...T)=>l.saveNewPhone&&l.saveNewPhone(...T))},"\u63D0\u4EA4")])]),_:1},8,["modelValue"])],64)}var Hxe=tv(pxe,[["render",zxe]]);const Vxe="modulepreload",gie={},Uxe="/",Ra=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Uxe}${r}`,r in gie)return;gie[r]=!0;const i=r.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":Vxe,i||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),i)return new Promise((f,v)=>{u.addEventListener("load",f),u.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};function jxe(){return W1e().__VUE_DEVTOOLS_GLOBAL_HOOK__}function W1e(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:{}}const Wxe=typeof Proxy=="function",Gxe="devtools-plugin:setup",Kxe="plugin:settings:set";let YT,KQ;function Yxe(){var e;return YT!==void 0||(typeof window!="undefined"&&window.performance?(YT=!0,KQ=window.performance):typeof globalThis!="undefined"&&((e=globalThis.perf_hooks)===null||e===void 0?void 0:e.performance)?(YT=!0,KQ=globalThis.perf_hooks.performance):YT=!1),YT}function qxe(){return Yxe()?KQ.now():Date.now()}class Xxe{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const u in t.settings){const f=t.settings[u];r[u]=f.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},r);try{const u=localStorage.getItem(i),f=JSON.parse(u);Object.assign(l,f)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(i,JSON.stringify(u))}catch{}l=u},now(){return qxe()}},n&&n.on(Kxe,(u,f)=>{u===this.plugin.id&&this.fallbacks.setSettings(f)}),this.proxiedOn=new Proxy({},{get:(u,f)=>this.target?this.target.on[f]:(...v)=>{this.onQueue.push({method:f,args:v})}}),this.proxiedTarget=new Proxy({},{get:(u,f)=>this.target?this.target[f]:f==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(f)?(...v)=>(this.targetQueue.push({method:f,args:v,resolve:()=>{}}),this.fallbacks[f](...v)):(...v)=>new Promise(h=>{this.targetQueue.push({method:f,args:v,resolve:h})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Zxe(e,t){const n=e,r=W1e(),i=jxe(),l=Wxe&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))i.emit(Gxe,e,t);else{const u=l?new Xxe(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*! 5 * vue-router v4.4.0 6 * (c) 2024 Eduardo San Martin Morote 7 * @license MIT 8 */const sA=typeof document!="undefined";
vendor: 27,442 bytes, line 8
8function Qxe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Gl=Object.assign;function rZ(e,t){const n={};for(const r in t){const i=t[r];n[r]=o2(i)?i.map(e):e(i)}return n}const jD=()=>{},o2=Array.isArray,G1e=/#/g,Jxe=/&/g,eEe=/\//g,tEe=/=/g,nEe=/\?/g,K1e=/\+/g,rEe=/%5B/g,oEe=/%5D/g,Y1e=/%5E/g,aEe=/%60/g,q1e=/%7B/g,iEe=/%7C/g,X1e=/%7D/g,sEe=/%20/g;function rte(e){return encodeURI(""+e).replace(iEe,"|").replace(rEe,"[").replace(oEe,"]")}function lEe(e){return rte(e).replace(q1e,"{").replace(X1e,"}").replace(Y1e,"^")}function YQ(e){return rte(e).replace(K1e,"%2B").replace(sEe,"+").replace(G1e,"%23").replace(Jxe,"%26").replace(aEe,"`").replace(q1e,"{").replace(X1e,"}").replace(Y1e,"^")}function uEe(e){return YQ(e).replace(tEe,"%3D")}function cEe(e){return rte(e).replace(G1e,"%23").replace(nEe,"%3F")}function fEe(e){return e==null?"":cEe(e).replace(eEe,"%2F")}function vI(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const dEe=/\/$/,vEe=e=>e.replace(dEe,"");function oZ(e,t,n="/"){let r,i={},l="",u="";const f=t.indexOf("#");let v=t.indexOf("?");return f<v&&f>=0&&(v=-1),v>-1&&(r=t.slice(0,v),l=t.slice(v+1,f>-1?f:t.length),i=e(l)),f>-1&&(r=r||t.slice(0,f),u=t.slice(f,t.length)),r=gEe(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+u,path:r,query:i,hash:vI(u)}}function hEe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yie(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pEe(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&WA(t.matched[r],n.matched[i])&&Z1e(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function WA(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Z1e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mEe(e[n],t[n]))return!1;return!0}function mEe(e,t){return o2(e)?bie(e,t):o2(t)?bie(t,e):e===t}function bie(e,t){return o2(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function gEe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let l=n.length-1,u,f;for(u=0;u<r.length;u++)if(f=r[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(u).join("/")}const p8={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var hI;(function(e){e.pop="pop",e.push="push"})(hI||(hI={}));var WD;(function(e){e.back="back",e.forward="forward",e.unknown=""})(WD||(WD={}));function yEe(e){if(!e)if(sA){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vEe(e)}const bEe=/^[^#]+#/;function _Ee(e,t){return e.replace(bEe,"#")+t}function wEe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const cV=()=>({left:window.scrollX,top:window.scrollY});function CEe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=wEe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _ie(e,t){return(history.state?history.state.position-t:-1)+e}const qQ=new Map;function xEe(e,t){qQ.set(e,t)}function EEe(e){const t=qQ.get(e);return qQ.delete(e),t}let SEe=()=>location.protocol+"//"+location.host;function Q1e(e,t){const{pathname:n,search:r,hash:i}=t,l=e.indexOf("#");if(l>-1){let f=i.includes(e.slice(l))?e.slice(l).length:1,v=i.slice(f);return v[0]!=="/"&&(v="/"+v),yie(v,"")}return yie(n,e)+r+i}function TEe(e,t,n,r){let i=[],l=[],u=null;const f=({state:w})=>{const C=Q1e(e,location),S=n.value,T=t.value;let B=0;if(w){if(n.value=C,t.value=w,u&&u===S){u=null;return}B=T?w.position-T.position:0}else r(C);i.forEach(F=>{F(n.value,S,{delta:B,type:hI.pop,direction:B?B>0?WD.forward:WD.back:WD.unknown})})};function v(){u=n.value}function h(w){i.push(w);const C=()=>{const S=i.indexOf(w);S>-1&&i.splice(S,1)};return l.push(C),C}function g(){const{history:w}=window;!w.state||w.replaceState(Gl({},w.state,{scroll:cV()}),"")}function y(){for(const w of l)w();l=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:v,listen:h,destroy:y}}function wie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?cV():null}}function AEe(e){const{history:t,location:n}=window,r={value:Q1e(e,n)},i={value:t.state};i.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(v,h,g){const y=e.indexOf("#"),w=y>-1?(n.host&&document.querySelector("base")?e:e.slice(y))+v:SEe()+e+v;try{t[g?"replaceState":"pushState"](h,"",w),i.value=h}catch(C){console.error(C),n[g?"replace":"assign"](w)}}function u(v,h){const g=Gl({},t.state,wie(i.value.back,v,i.value.forward,!0),h,{position:i.value.position});l(v,g,!0),r.value=v}function f(v,h){const g=Gl({},i.value,t.state,{forward:v,scroll:cV()});l(g.current,g,!0);const y=Gl({},wie(r.value,v,null),{position:g.position+1},h);l(v,y,!1),r.value=v}return{location:r,state:i,push:f,replace:u}}function kEe(e){e=yEe(e);const t=AEe(e),n=TEe(e,t.state,t.location,t.replace);function r(l,u=!0){u||n.pauseListeners(),history.go(l)}const i=Gl({location:"",base:e,go:r,createHref:_Ee.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function OEe(e){return typeof e=="string"||e&&typeof e=="object"}function J1e(e){return typeof e=="string"||typeof e=="symbol"}const eve=Symbol("");var Cie;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Cie||(Cie={}));function GA(e,t){return Gl(new Error,{type:e,[eve]:!0},t)}function e3(e,t){return e instanceof Error&&eve in e&&(t==null||!!(e.type&t))}const xie="[^/]+?",MEe={sensitive:!1,strict:!1,start:!0,end:!0},NEe=/[.+*?^${}()[\]/\\]/g;function DEe(e,t){const n=Gl({},MEe,t),r=[];let i=n.start?"^":"";const l=[];for(const h of e){const g=h.length?[]:[90];n.strict&&!h.length&&(i+="/");for(let y=0;y<h.length;y++){const w=h[y];let C=40+(n.sensitive?.25:0);if(w.type===0)y||(i+="/"),i+=w.value.replace(NEe,"\\$&"),C+=40;else if(w.type===1){const{value:S,repeatable:T,optional:B,regexp:F}=w;l.push({name:S,repeatable:T,optional:B});const R=F||xie;if(R!==xie){C+=10;try{new RegExp(`(${R})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${S}" (${R}): `+A.message)}}let N=T?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;y||(N=B&&h.length<2?`(?:/${N})`:"/"+N),B&&(N+="?"),i+=N,C+=20,B&&(C+=-8),T&&(C+=-20),R===".*"&&(C+=-50)}g.push(C)}r.push(g)}if(n.strict&&n.end){const h=r.length-1;r[h][r[h].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const u=new RegExp(i,n.sensitive?"":"i");function f(h){const g=h.match(u),y={};if(!g)return null;for(let w=1;w<g.length;w++){const C=g[w]||"",S=l[w-1];y[S.name]=C&&S.repeatable?C.split("/"):C}return y}function v(h){let g="",y=!1;for(const w of e){(!y||!g.endsWith("/"))&&(g+="/"),y=!1;for(const C of w)if(C.type===0)g+=C.value;else if(C.type===1){const{value:S,repeatable:T,optional:B}=C,F=S in h?h[S]:"";if(o2(F)&&!T)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const R=o2(F)?F.join("/"):F;if(!R)if(B)w.length<2&&(g.endsWith("/")?g=g.slice(0,-1):y=!0);else throw new Error(`Missing required param "${S}"`);g+=R}}return g||"/"}return{re:u,score:r,keys:l,parse:f,stringify:v}}function IEe(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function tve(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const l=IEe(r[n],i[n]);if(l)return l;n++}if(Math.abs(i.length-r.length)===1){if(Eie(r))return 1;if(Eie(i))return-1}return i.length-r.length}function Eie(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const REe={type:0,value:""},LEe=/[a-zA-Z0-9_]/;function BEe(e){if(!e)return[[]];if(e==="/")return[[REe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${h}": ${C}`)}let n=0,r=n;const i=[];let l;function u(){l&&i.push(l),l=[]}let f=0,v,h="",g="";function y(){!h||(n===0?l.push({type:0,value:h}):n===1||n===2||n===3?(l.length>1&&(v==="*"||v==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:h,regexp:g,repeatable:v==="*"||v==="+",optional:v==="*"||v==="?"})):t("Invalid state to consume buffer"),h="")}function w(){h+=v}for(;f<e.length;){if(v=e[f++],v==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:v==="/"?(h&&y(),u()):v===":"?(y(),n=1):w();break;case 4:w(),n=r;break;case 1:v==="("?n=2:LEe.test(v)?w():(y(),n=0,v!=="*"&&v!=="?"&&v!=="+"&&f--);break;case 2:v===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+v:n=3:g+=v;break;case 3:y(),n=0,v!=="*"&&v!=="?"&&v!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${h}"`),y(),u(),i}function PEe(e,t,n){const r=DEe(BEe(e.path),n),i=Gl(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function FEe(e,t){const n=[],r=new Map;t=Aie({strict:!1,end:!0,sensitive:!1},t);function i(y){return r.get(y)}function l(y,w,C){const S=!C,T=$Ee(y);T.aliasOf=C&&C.record;const B=Aie(t,y),F=[T];if("alias"in y){const A=typeof y.alias=="string"?[y.alias]:y.alias;for(const X of A)F.push(Gl({},T,{components:C?C.record.components:T.components,path:X,aliasOf:C?C.record:T}))}let R,N;for(const A of F){const{path:X}=A;if(w&&X[0]!=="/"){const Z=w.record.path,z=Z[Z.length-1]==="/"?"":"/";A.path=w.record.path+(X&&z+X)}if(R=PEe(A,w,B),C?C.alias.push(R):(N=N||R,N!==R&&N.alias.push(R),S&&y.name&&!Tie(R)&&u(y.name)),nve(R)&&v(R),T.children){const Z=T.children;for(let z=0;z<Z.length;z++)l(Z[z],R,C&&C.children[z])}C=C||R}return N?()=>{u(N)}:jD}function u(y){if(J1e(y)){const w=r.get(y);w&&(r.delete(y),n.splice(n.indexOf(w),1),w.children.forEach(u),w.alias.forEach(u))}else{const w=n.indexOf(y);w>-1&&(n.splice(w,1),y.record.name&&r.delete(y.record.name),y.children.forEach(u),y.alias.forEach(u))}}function f(){return n}function v(y){const w=VEe(y,n);n.splice(w,0,y),y.record.name&&!Tie(y)&&r.set(y.record.name,y)}function h(y,w){let C,S={},T,B;if("name"in y&&y.name){if(C=r.get(y.name),!C)throw GA(1,{location:y});B=C.record.name,S=Gl(Sie(w.params,C.keys.filter(N=>!N.optional).concat(C.parent?C.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),y.params&&Sie(y.params,C.keys.map(N=>N.name))),T=C.stringify(S)}else if(y.path!=null)T=y.path,C=n.find(N=>N.re.test(T)),C&&(S=C.parse(T),B=C.record.name);else{if(C=w.name?r.get(w.name):n.find(N=>N.re.test(w.path)),!C)throw GA(1,{location:y,currentLocation:w});B=C.record.name,S=Gl({},w.params,y.params),T=C.stringify(S)}const F=[];let R=C;for(;R;)F.unshift(R.record),R=R.parent;return{name:B,path:T,params:S,matched:F,meta:HEe(F)}}e.forEach(y=>l(y));function g(){n.length=0,r.clear()}return{addRoute:l,resolve:h,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:i}}function Sie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $Ee(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:zEe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function zEe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Tie(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function HEe(e){return e.reduce((t,n)=>Gl(t,n.meta),{})}function Aie(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VEe(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;tve(e,t[l])<0?r=l:n=l+1}const i=UEe(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function UEe(e){let t=e;for(;t=t.parent;)if(nve(t)&&tve(e,t)===0)return t}function nve({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jEe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const l=r[i].replace(K1e," "),u=l.indexOf("="),f=vI(u<0?l:l.slice(0,u)),v=u<0?null:vI(l.slice(u+1));if(f in t){let h=t[f];o2(h)||(h=t[f]=[h]),h.push(v)}else t[f]=v}return t}function kie(e){let t="";for(let n in e){const r=e[n];if(n=uEe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(o2(r)?r.map(l=>l&&YQ(l)):[r&&YQ(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function WEe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=o2(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const GEe=Symbol(""),Oie=Symbol(""),ote=Symbol(""),rve=Symbol(""),XQ=Symbol("");function pD(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function M8(e,t,n,r,i,l=u=>u()){const u=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((f,v)=>{const h=w=>{w===!1?v(GA(4,{from:n,to:t})):w instanceof Error?v(w):OEe(w)?v(GA(2,{from:t,to:w})):(u&&r.enterCallbacks[i]===u&&typeof w=="function"&&u.push(w),f())},g=l(()=>e.call(r&&r.instances[i],t,n,h));let y=Promise.resolve(g);e.length<3&&(y=y.then(h)),y.catch(w=>v(w))})}function aZ(e,t,n,r,i=l=>l()){const l=[];for(const u of e)for(const f in u.components){let v=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(KEe(v)){const g=(v.__vccOpts||v)[t];g&&l.push(M8(g,n,r,u,f,i))}else{let h=v();l.push(()=>h.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const y=Qxe(g)?g.default:g;u.components[f]=y;const C=(y.__vccOpts||y)[t];return C&&M8(C,n,r,u,f,i)()}))}}return l}function KEe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mie(e){const t=jr(ote),n=jr(rve),r=Ne(()=>{const v=L(e.to);return t.resolve(v)}),i=Ne(()=>{const{matched:v}=r.value,{length:h}=v,g=v[h-1],y=n.matched;if(!g||!y.length)return-1;const w=y.findIndex(WA.bind(null,g));if(w>-1)return w;const C=Nie(v[h-2]);return h>1&&Nie(g)===C&&y[y.length-1].path!==C?y.findIndex(WA.bind(null,v[h-2])):w}),l=Ne(()=>i.value>-1&&ZEe(n.params,r.value.params)),u=Ne(()=>i.value>-1&&i.value===n.matched.length-1&&Z1e(n.params,r.value.params));function f(v={}){return XEe(v)?t[L(e.replace)?"replace":"push"](L(e.to)).catch(jD):Promise.resolve()}return{route:r,href:Ne(()=>r.value.href),isActive:l,isExactActive:u,navigate:f}}const YEe=Zt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Mie,setup(e,{slots:t}){const n=gi(Mie(e)),{options:r}=jr(ote),i=Ne(()=>({[Die(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Die(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:oo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},l)}}}),qEe=YEe;function XEe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ZEe(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!o2(i)||i.length!==r.length||r.some((l,u)=>l!==i[u]))return!1}return!0}function Nie(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Die=(e,t,n)=>e!=null?e:t!=null?t:n,QEe=Zt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=jr(XQ),i=Ne(()=>e.route||r.value),l=jr(Oie,0),u=Ne(()=>{let h=L(l);const{matched:g}=i.value;let y;for(;(y=g[h])&&!y.components;)h++;return h}),f=Ne(()=>i.value.matched[u.value]);$a(Oie,Ne(()=>u.value+1)),$a(GEe,f),$a(XQ,i);const v=et();return $n(()=>[v.value,f.value,e.name],([h,g,y],[w,C,S])=>{g&&(g.instances[y]=h,C&&C!==g&&h&&h===w&&(g.leaveGuards.size||(g.leaveGuards=C.leaveGuards),g.updateGuards.size||(g.updateGuards=C.updateGuards))),h&&g&&(!C||!WA(g,C)||!w)&&(g.enterCallbacks[y]||[]).forEach(T=>T(h))},{flush:"post"}),()=>{const h=i.value,g=e.name,y=f.value,w=y&&y.components[g];if(!w)return Iie(n.default,{Component:w,route:h});const C=y.props[g],S=C?C===!0?h.params:typeof C=="function"?C(h):C:null,B=oo(w,Gl({},S,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(y.instances[g]=null)},ref:v}));return Iie(n.default,{Component:B,route:h})||B}}});function Iie(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const JEe=QEe;function eSe(e){const t=FEe(e.routes,e),n=e.parseQuery||jEe,r=e.stringifyQuery||kie,i=e.history,l=pD(),u=pD(),f=pD(),v=al(p8);let h=p8;sA&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=rZ.bind(null,re=>""+re),y=rZ.bind(null,fEe),w=rZ.bind(null,vI);function C(re,be){let Ae,Te;return J1e(re)?(Ae=t.getRecordMatcher(re),Te=be):Te=re,t.addRoute(Te,Ae)}function S(re){const be=t.getRecordMatcher(re);be&&t.removeRoute(be)}function T(){return t.getRoutes().map(re=>re.record)}function B(re){return!!t.getRecordMatcher(re)}function F(re,be){if(be=Gl({},be||v.value),typeof re=="string"){const $e=oZ(n,re,be.path),rt=t.resolve({path:$e.path},be),ct=i.createHref($e.fullPath);return Gl($e,rt,{params:w(rt.params),hash:vI($e.hash),redirectedFrom:void 0,href:ct})}let Ae;if(re.path!=null)Ae=Gl({},re,{path:oZ(n,re.path,be.path).path});else{const $e=Gl({},re.params);for(const rt in $e)$e[rt]==null&&delete $e[rt];Ae=Gl({},re,{params:y($e)}),be.params=y(be.params)}const Te=t.resolve(Ae,be),Ue=re.hash||"";Te.params=g(w(Te.params));const Oe=hEe(r,Gl({},re,{hash:lEe(Ue),path:Te.path})),De=i.createHref(Oe);return Gl({fullPath:Oe,hash:Ue,query:r===kie?WEe(re.query):re.query||{}},Te,{redirectedFrom:void 0,href:De})}function R(re){return typeof re=="string"?oZ(n,re,v.value.path):Gl({},re)}function N(re,be){if(h!==re)return GA(8,{from:be,to:re})}function A(re){return z(re)}function X(re){return A(Gl(R(re),{replace:!0}))}function Z(re){const be=re.matched[re.matched.length-1];if(be&&be.redirect){const{redirect:Ae}=be;let Te=typeof Ae=="function"?Ae(re):Ae;return typeof Te=="string"&&(Te=Te.includes("?")||Te.includes("#")?Te=R(Te):{path:Te},Te.params={}),Gl({query:re.query,hash:re.hash,params:Te.path!=null?{}:re.params},Te)}}function z(re,be){const Ae=h=F(re),Te=v.value,Ue=re.state,Oe=re.force,De=re.replace===!0,$e=Z(Ae);if($e)return z(Gl(R($e),{state:typeof $e=="object"?Gl({},Ue,$e.state):Ue,force:Oe,replace:De}),be||Ae);const rt=Ae;rt.redirectedFrom=be;let ct;return!Oe&&pEe(r,Te,Ae)&&(ct=GA(16,{to:rt,from:Te}),U(Te,Te,!0,!1)),(ct?Promise.resolve(ct):$(rt,Te)).catch(lt=>e3(lt)?e3(lt,2)?lt:P(lt):_e(lt,rt,Te)).then(lt=>{if(lt){if(e3(lt,2))return z(Gl({replace:De},R(lt.to),{state:typeof lt.to=="object"?Gl({},Ue,lt.to.state):Ue,force:Oe}),be||rt)}else lt=V(rt,Te,!0,De,Ue);return te(rt,Te,lt),lt})}function Y(re,be){const Ae=N(re,be);return Ae?Promise.reject(Ae):Promise.resolve()}function Q(re){const be=ye.values().next().value;return be&&typeof be.runWithContext=="function"?be.runWithContext(re):re()}function $(re,be){let Ae;const[Te,Ue,Oe]=tSe(re,be);Ae=aZ(Te.reverse(),"beforeRouteLeave",re,be);for(const $e of Te)$e.leaveGuards.forEach(rt=>{Ae.push(M8(rt,re,be))});const De=Y.bind(null,re,be);return Ae.push(De),he(Ae).then(()=>{Ae=[];for(const $e of l.list())Ae.push(M8($e,re,be));return Ae.push(De),he(Ae)}).then(()=>{Ae=aZ(Ue,"beforeRouteUpdate",re,be);for(const $e of Ue)$e.updateGuards.forEach(rt=>{Ae.push(M8(rt,re,be))});return Ae.push(De),he(Ae)}).then(()=>{Ae=[];for(const $e of Oe)if($e.beforeEnter)if(o2($e.beforeEnter))for(const rt of $e.beforeEnter)Ae.push(M8(rt,re,be));else Ae.push(M8($e.beforeEnter,re,be));return Ae.push(De),he(Ae)}).then(()=>(re.matched.forEach($e=>$e.enterCallbacks={}),Ae=aZ(Oe,"beforeRouteEnter",re,be,Q),Ae.push(De),he(Ae))).then(()=>{Ae=[];for(const $e of u.list())Ae.push(M8($e,re,be));return Ae.push(De),he(Ae)}).catch($e=>e3($e,8)?$e:Promise.reject($e))}function te(re,be,Ae){f.list().forEach(Te=>Q(()=>Te(re,be,Ae)))}function V(re,be,Ae,Te,Ue){const Oe=N(re,be);if(Oe)return Oe;const De=be===p8,$e=sA?history.state:{};Ae&&(Te||De?i.replace(re.fullPath,Gl({scroll:De&&$e&&$e.scroll},Ue)):i.push(re.fullPath,Ue)),v.value=re,U(re,be,Ae,De),P()}let K;function fe(){K||(K=i.listen((re,be,Ae)=>{if(!ie.listening)return;const Te=F(re),Ue=Z(Te);if(Ue){z(Gl(Ue,{replace:!0}),Te).catch(jD);return}h=Te;const Oe=v.value;sA&&xEe(_ie(Oe.fullPath,Ae.delta),cV()),$(Te,Oe).catch(De=>e3(De,12)?De:e3(De,2)?(z(De.to,Te).then($e=>{e3($e,20)&&!Ae.delta&&Ae.type===hI.pop&&i.go(-1,!1)}).catch(jD),Promise.reject()):(Ae.delta&&i.go(-Ae.delta,!1),_e(De,Te,Oe))).then(De=>{De=De||V(Te,Oe,!1),De&&(Ae.delta&&!e3(De,8)?i.go(-Ae.delta,!1):Ae.type===hI.pop&&e3(De,20)&&i.go(-1,!1)),te(Te,Oe,De)}).catch(jD)}))}let de=pD(),ne=pD(),le;function _e(re,be,Ae){P(re);const Te=ne.list();return Te.length?Te.forEach(Ue=>Ue(re,be,Ae)):console.error(re),Promise.reject(re)}function M(){return le&&v.value!==p8?Promise.resolve():new Promise((re,be)=>{de.add([re,be])})}function P(re){return le||(le=!re,fe(),de.list().forEach(([be,Ae])=>re?Ae(re):be()),de.reset()),re}function U(re,be,Ae,Te){const{scrollBehavior:Ue}=e;if(!sA||!Ue)return Promise.resolve();const Oe=!Ae&&EEe(_ie(re.fullPath,0))||(Te||!Ae)&&history.state&&history.state.scroll||null;return Gr().then(()=>Ue(re,be,Oe)).then(De=>De&&CEe(De)).catch(De=>_e(De,re,be))}const j=re=>i.go(re);let ee;const ye=new Set,ie={currentRoute:v,listening:!0,addRoute:C,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:T,resolve:F,options:e,push:A,replace:X,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:ne.add,isReady:M,install(re){const be=this;re.component("RouterLink",qEe),re.component("RouterView",JEe),re.config.globalProperties.$router=be,Object.defineProperty(re.config.globalProperties,"$route",{enumerable:!0,get:()=>L(v)}),sA&&!ee&&v.value===p8&&(ee=!0,A(i.location).catch(Ue=>{}));const Ae={};for(const Ue in p8)Object.defineProperty(Ae,Ue,{get:()=>v.value[Ue],enumerable:!0});re.provide(ote,be),re.provide(rve,Fee(Ae)),re.provide(XQ,v);const Te=re.unmount;ye.add(re),re.unmount=function(){ye.delete(re),ye.size<1&&(h=p8,K&&K(),K=null,v.value=p8,ee=!1,le=!1),Te()}}};function he(re){return re.reduce((be,Ae)=>be.then(()=>Q(Ae)),Promise.resolve())}return ie}function tSe(e,t){const n=[],r=[],i=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(h=>WA(h,f))?r.push(f):n.push(f));const v=e.matched[u];v&&(t.matched.find(h=>WA(h,v))||i.push(v))}return[n,r,i]}var nSe=[{path:"/main",component:()=>Ra(()=>import("./main.557ddc83.js"),["assets/main.557ddc83.js","assets/main.4de626d6.css","assets/indexHead-ss.b4b30766.js","assets/circle.59dabb15.js","assets/help.a1ecbe93.js"]),children:[{path:"/",component:()=>Ra(()=>import("./index.a40a2176.js"),["assets/index.a40a2176.js","assets/index.13d65599.css","assets/index-left-nav-foot.b95a7d35.js","assets/index-left-nav-foot-on.3d660854.js"])},{path:"/search",component:()=>Ra(()=>import("./search.0cc105fa.js"),["assets/search.0cc105fa.js","assets/search.0b7e5e83.css"])},{path:"/detail",component:()=>Ra(()=>import("./detail.2e49f668.js"),["assets/detail.2e49f668.js","assets/detail.e6b0c24d.css","assets/commentList.9f396afe.js","assets/commentList.f022a2b9.css","assets/detail-foot-right.82f2a22b.js","assets/detail-right-top-btn22.f64487b9.js","assets/run.32e31e09.js"])},{path:"/notice",component:()=>Ra(()=>import("./index.d9d82656.js"),["assets/index.d9d82656.js","assets/index.8186a886.css"])},{path:"/letter",component:()=>Ra(()=>import("./letter.9813ed70.js"),["assets/letter.9813ed70.js","assets/letter.309451df.css"])},{path:"/userDetail",component:()=>Ra(()=>import("./userDetail.24605b1a.js"),["assets/userDetail.24605b1a.js","assets/userDetail.aa11037e.css","assets/time.a4efbe82.js"])},{path:"/programaDetail",component:()=>Ra(()=>import("./programaDetail.bdea744c.js"),["assets/programaDetail.bdea744c.js","assets/programaDetail.8258ed81.css","assets/detail-right-top-btn22.f64487b9.js"])},{path:"/member",component:()=>Ra(()=>import("./index.c5bdafed.js"),["assets/index.c5bdafed.js","assets/index.34cf04e6.css","assets/edit.e169ae46.js","assets/time.a4efbe82.js"])},{path:"/account",component:()=>Ra(()=>import("./account.3cf08cf8.js"),["assets/account.3cf08cf8.js","assets/account.92241326.css"])},{path:"/edit",component:()=>Ra(()=>import("./edit.bbf47a2b.js"),["assets/edit.bbf47a2b.js","assets/edit.2f9b7dd7.css"])},{path:"/collect",component:()=>Ra(()=>import("./collect.568386a4.js"),["assets/collect.568386a4.js","assets/collect.7310fbe3.css"])},{path:"/creation",component:()=>Ra(()=>import("./index.3f4e2ff7.js"),["assets/index.3f4e2ff7.js","assets/index.1087d531.css"])},{path:"/ArticleManagement",component:()=>Ra(()=>import("./ArticleManagement.a6baa556.js"),["assets/ArticleManagement.a6baa556.js","assets/ArticleManagement.4646b935.css","assets/indexHead-ss.b4b30766.js","assets/edit.e169ae46.js"])},{path:"/questionManagement",component:()=>Ra(()=>import("./questionManagement.b03d7b3d.js"),["assets/questionManagement.b03d7b3d.js","assets/questionManagement.6ad6d907.css","assets/indexHead-ss.b4b30766.js","assets/edit.e169ae46.js"])},{path:"/projectManagement",component:()=>Ra(()=>import("./projectManagement.93a1b463.js"),["assets/projectManagement.93a1b463.js","assets/projectManagement.25f13fca.css","assets/indexHead-ss.b4b30766.js","assets/edit.e169ae46.js"])},{path:"/specialColumnManagement",component:()=>Ra(()=>import("./specialColumnManagement.2a59585a.js"),["assets/specialColumnManagement.2a59585a.js","assets/specialColumnManagement.a8f5f09b.css","assets/indexHead-ss.b4b30766.js","assets/edit.e169ae46.js"])},{path:"/specialColumnArticle",component:()=>Ra(()=>import("./specialColumnArticle.c44e4664.js"),["assets/specialColumnArticle.c44e4664.js","assets/specialColumnArticle.7ece26a0.css","assets/indexHead-ss.b4b30766.js","assets/edit.e169ae46.js"])},{path:"/favorites",component:()=>Ra(()=>import("./favorites.9942fe8d.js"),["assets/favorites.9942fe8d.js","assets/favorites.0d00b482.css"])},{path:"/faq",component:()=>Ra(()=>import("./faq.7b9c8a90.js"),["assets/faq.7b9c8a90.js","assets/faq.4af20858.css"])},{path:"/ContentData",component:()=>Ra(()=>import("./ContentData.1070d9a8.js"),["assets/ContentData.1070d9a8.js","assets/ContentData.9725b719.css","assets/index.1c525f1
8a.js"])},{path:"/fansContentData",component:()=>Ra(()=>import("./fansContentData.8c8b0d5c.js"),["assets/fansContentData.8c8b0d5c.js","assets/fansContentData.bc5c35d3.css","assets/index.1c525f1a.js"])},{path:"/grow",component:()=>Ra(()=>import("./index.f12b9003.js"),["assets/index.f12b9003.js","assets/index.cb7f1ad9.css","assets/next.d552ad1f.js"])},{path:"/integralList",component:()=>Ra(()=>import("./integralList.a6821329.js"),["assets/integralList.a6821329.js","assets/integralList.704dd8b6.css"])},{path:"/level",component:()=>Ra(()=>import("./level.c0969779.js"),["assets/level.c0969779.js","assets/level.d102cadd.css","assets/next.d552ad1f.js"])},{path:"/levelList",component:()=>Ra(()=>import("./levelList.2cd16e0c.js"),["assets/levelList.2cd16e0c.js","assets/levelList.e967f2d7.css"])},{path:"/redemption",component:()=>Ra(()=>import("./redemption.01a1023a.js"),["assets/redemption.01a1023a.js","assets/redemption.fe497c35.css"])},{path:"/redemptionDetail",component:()=>Ra(()=>import("./redemptionDetail.dc2fd432.js"),["assets/redemptionDetail.dc2fd432.js","assets/redemptionDetail.a88fd06b.css"])},{path:"/redemptionRecord",component:()=>Ra(()=>import("./redemptionRecord.479dc896.js"),["assets/redemptionRecord.479dc896.js","assets/redemptionRecord.2452bd12.css","assets/help.a1ecbe93.js"])},{path:"/interlocution",component:()=>Ra(()=>import("./index.6a2f7eef.js"),["assets/index.6a2f7eef.js","assets/index.7776118a.css","assets/index-left-nav-foot.b95a7d35.js","assets/index-left-nav-foot-on.3d660854.js"])},{path:"/bubble/index",component:()=>Ra(()=>import("./index.6a2f7eef.js"),["assets/index.6a2f7eef.js","assets/index.7776118a.css","assets/index-left-nav-foot.b95a7d35.js","assets/index-left-nav-foot-on.3d660854.js"])},{path:"/community",component:()=>Ra(()=>import("./community.8dbbf6b7.js"),["assets/community.8dbbf6b7.js","assets/community.e4f805c7.css","assets/community-icon02.c14aaa8c.js"])},{path:"/userCommunity",component:()=>Ra(()=>import("./userCommunity.e7d5f94a.js"),["assets/userCommunity.e7d5f94a.js","assets/userCommunity.32eb68d8.css","assets/community-icon02.c14aaa8c.js"])},{path:"/interlocutionDetail",component:()=>Ra(()=>import("./interlocutionDetail.7ed93874.js"),["assets/interlocutionDetail.7ed93874.js","assets/interlocutionDetail.fd64a685.css","assets/commentList.9f396afe.js","assets/commentList.f022a2b9.css","assets/detail-foot-right.82f2a22b.js","assets/index-left-nav-foot-on.3d660854.js","assets/detail-right-top-btn22.f64487b9.js","assets/run.32e31e09.js"])},{path:"/project",component:()=>Ra(()=>import("./index.8ad5c5c2.js"),["assets/index.8ad5c5c2.js","assets/index.76cb5e61.css"])},{path:"/projectDetail",component:()=>Ra(()=>import("./projectDetail.365abe3d.js"),["assets/projectDetail.365abe3d.js","assets/projectDetail.a66cd08d.css","assets/commentList.9f396afe.js","assets/commentList.f022a2b9.css","assets/detail-right-top-btn22.f64487b9.js","assets/run.32e31e09.js"])},{path:"/findpwd",component:()=>Ra(()=>import("./findpwd.c3f164c7.js"),["assets/findpwd.c3f164c7.js","assets/findpwd.b0c5470b.css"])},{path:"/event",component:()=>Ra(()=>import("./index.f0605a7a.js"),["assets/index.f0605a7a.js","assets/index.ececb61a.css","assets/contest.f0bbbe08.js"])},{path:"/contest",component:()=>Ra(()=>import("./contest.0aa7422d.js"),["assets/contest.0aa7422d.js","assets/contest.fe41ee8e.css","assets/contest.f0bbbe08.js"])},{path:"/contestDetail",component:()=>Ra(()=>import("./contestDetail.716b873e.js"),["assets/contestDetail.716b873e.js","assets/contestDetail.0e86548c.css"])},{path:"/activityDetail",component:()=>Ra(()=>import("./activityDetail.c72c23a3.js"),["assets/activityDetail.c72c23a3.js","assets/activityDetail.77683a1a.css"])},{path:"/product",component:()=>Ra(()=>import("./index.b20d5680.js"),["assets/index.b20d5680.js","assets/index.f3e5bfd0.css"])},{path:"/page",component:()=>Ra(()=>import("./page.d411b38a.js"),["assets/page.d411b38a.js","assets/page.6cebf7e1.css"])},{path:"/chat",component:()=>Ra(()=>import("./index.f69f14a7.js"),["assets/index.f69f14a7.js","assets/index.69a1f79b.css"])},{path:"/run",component:()=>Ra(()=>import("./index.282b4e23.js"),["assets/index.282b4e23.js","assets/index.13ac08e4.css"])},{path:"/activityApply",component:()=>Ra(()=>import("./activityApply.c50ca001.js"),["assets/activityApply.c50ca001.js","assets/activityApply.613bcaa9.css","assets/indexHead-ss.b4b30766.js"])},{path:"/robot",component:()=>Ra(()=>import("./index.2239294a.js"),["assets/index.2239294a.js","assets/index.f4cdc159.css"])},{path:"/robotDetail",component:()=>Ra(()=>import("./robotDetail.b5a96436.js"),["assets/robotDetail.b5a96436.js","assets/robotDetail.d09031f2.css"])},{path:"/ROSCon",component:()=>Ra(()=>import("./index.a62fc1b6.js"),["assets/index.a62fc1b6.js","assets/index.9f41d551.css"])},{path:"/ROSConDetail",component:()=>Ra(()=>import("./ROSConDetail.3d10c2c8.js"),["assets/ROSConDetail.3d10c2c8.js","assets/ROSConDetail.dc1034c8.css"])},{path:"/ROSConChina",component:()=>Ra(()=>import("./ROSConChina.e3ba0867.js"),["assets/ROSConChina.e3ba0867.js","assets/ROSConChina.47033eaa.css"])}]},{path:"/essay",component:()=>Ra(()=>import("./essay.7e3373a3.js"),["assets/essay.7e3373a3.js","assets/essay.901ca348.css","assets/edit-icon04.e660cfe3.js","assets/circle.59dabb15.js","assets/run.32e31e09.js","assets/edit-img04.c983cb34.js","assets/fm.b0e30d90.js","assets/close-black.452e3dac.js"])},{path:"/recruit",component:()=>Ra(()=>import("./recruit.8f368c44.js"),["assets/recruit.8f368c44.js","assets/recruit.b85a33e3.css","assets/edit-icon04.e660cfe3.js","assets/circle.59dabb15.js","assets/run.32e31e09.js","assets/edit-img04.c983cb34.js","assets/fm.b0e30d90.js"])},{path:"/question",component:()=>Ra(()=>import("./question.1ea0473d.js"),["assets/question.1ea0473d.js","assets/question.bb233bf9.css","assets/edit-icon04.e660cfe3.js","assets/circle.59dabb15.js","assets/run.32e31e09.js","assets/close-black.452e3dac.js"])},{path:"/editorProject",component:()=>Ra(()=>import("./project.e93b24c7.js"),["assets/project.e93b24c7.js","assets/project.15e3740a.css","assets/edit-icon04.e660cfe3.js","assets/circle.59dabb15.js","assets/run.32e31e09.js","assets/fm.b0e30d90.js","assets/close-black.452e3dac.js"])},{path:"/threeLogin/:name",component:()=>Ra(()=>import("./threeLogin.cf5966ed.js"),[])},{path:"/threeBind/:name",component:()=>Ra(()=>import("./threeBind.3e4daff7.js"),[])},{path:"/:id",component:()=>Ra(()=>import("./old.20393553.js"),[])},{path:"/:pathMatch(.*)*",redirect:"/"}];const rSe=function(t,n,r){return r||{top:0}},oSe=eSe({history:kEe(""),routes:nSe,scrollBehavior:rSe});/*! 9 * vuex v4.1.0 10 * (c) 2022 Evan You 11 * @license MIT 12 */var aSe="store";function c7(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function iSe(e){return e!==null&&typeof e=="object"}function sSe(e){return e&&typeof e.then=="function"}function lSe(e,t){return function(){return e(t)}}function ove(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function ave(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;fV(e,n,[],e._modules.root,!0),ate(e,n,t)}function ate(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var l=e._wrappedGetters,u={},f={},v=xde(!0);v.run(function(){c7(l,function(h,g){u[g]=lSe(h,e),f[g]=Ne(function(){return u[g]()}),Object.defineProperty(e.getters,g,{get:function(){return f[g].value},enumerable:!0})})}),e._state=gi({data:t}),e._scope=v,e.strict&&vSe(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function fV(e,t,n,r,i){var l=!n.length,u=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[u],e._modulesNamespaceMap[u]=r),!l&&!i){var f=ite(t,n.slice(0,-1)),v=n[n.length-1];e._withCommit(function(){f[v]=r.state})}var h=r.context=uSe(e,u,n);r.forEachMutation(function(g,y){var w=u+y;cSe(e,w,g,h)}),r.forEachAction(function(g,y){var w=g.root?y:u+y,C=g.handler||g;fSe(e,w,C,h)}),r.forEachGetter(function(g,y){var w=u+y;dSe(e,w,g,h)}),r.forEachChild(function(g,y){fV(e,t,n.concat(y),g,i)})}
12function uSe(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(l,u,f){var v=gH(l,u,f),h=v.payload,g=v.options,y=v.type;return(!g||!g.root)&&(y=t+y),e.dispatch(y,h)},commit:r?e.commit:function(l,u,f){var v=gH(l,u,f),h=v.payload,g=v.options,y=v.type;(!g||!g.root)&&(y=t+y),e.commit(y,h,g)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return ive(e,t)}},state:{get:function(){return ite(e.state,n)}}}),i}function ive(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var l=i.slice(r);Object.defineProperty(n,l,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function cSe(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(u){n.call(e,r.state,u)})}function fSe(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(u){var f=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},u);return sSe(f)||(f=Promise.resolve(f)),e._devtoolHook?f.catch(function(v){throw e._devtoolHook.emit("vuex:error",v),v}):f})}function dSe(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(l){return n(r.state,r.getters,l.state,l.getters)})}function vSe(e){$n(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function ite(e,t){return t.reduce(function(n,r){return n[r]},e)}function gH(e,t,n){return iSe(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var hSe="vuex bindings",Rie="vuex:mutations",iZ="vuex:actions",qT="vuex",pSe=0;function mSe(e,t){Zxe({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[hSe]},function(n){n.addTimelineLayer({id:Rie,label:"Vuex Mutations",color:Lie}),n.addTimelineLayer({id:iZ,label:"Vuex Actions",color:Lie}),n.addInspector({id:qT,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===qT)if(r.filter){var i=[];cve(i,t._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[uve(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===qT){var i=r.nodeId;ive(t,i),r.state=bSe(wSe(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===qT){var i=r.nodeId,l=r.path;i!=="root"&&(l=i.split("/").filter(Boolean).concat(l)),t._withCommit(function(){r.set(t._state.data,l,r.state.value)})}}),t.subscribe(function(r,i){var l={};r.payload&&(l.payload=r.payload),l.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(qT),n.sendInspectorState(qT),n.addTimelineEvent({layerId:Rie,event:{time:Date.now(),title:r.type,data:l}})}),t.subscribeAction({before:function(r,i){var l={};r.payload&&(l.payload=r.payload),r._id=pSe++,r._time=Date.now(),l.state=i,n.addTimelineEvent({layerId:iZ,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:l}})},after:function(r,i){var l={},u=Date.now()-r._time;l.duration={_custom:{type:"duration",display:u+"ms",tooltip:"Action duration",value:u}},r.payload&&(l.payload=r.payload),l.state=i,n.addTimelineEvent({layerId:iZ,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:l}})}})})}var Lie=8702998,gSe=6710886,ySe=16777215,sve={label:"namespaced",textColor:ySe,backgroundColor:gSe};function lve(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function uve(e,t){return{id:t||"root",label:lve(t),tags:e.namespaced?[sve]:[],children:Object.keys(e._children).map(function(n){return uve(e._children[n],t+n+"/")})}}function cve(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[sve]:[]}),Object.keys(t._children).forEach(function(i){cve(e,t._children[i],n,r+i+"/")})}function bSe(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(u){return{key:u,editable:!0,value:e.state[u]}})};if(r.length){var l=_Se(t);i.getters=Object.keys(l).map(function(u){return{key:u.endsWith("/")?lve(u):u,editable:!1,value:ZQ(function(){return l[u]})}})}return i}function _Se(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,l=r.pop();r.forEach(function(u){i[u]||(i[u]={_custom:{value:{},display:u,tooltip:"Module",abstract:!0}}),i=i[u]._custom.value}),i[l]=ZQ(function(){return e[n]})}else t[n]=ZQ(function(){return e[n]})}),t}function wSe(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,i,l){var u=r[i];if(!u)throw new Error('Missing module "'+i+'" for path "'+t+'".');return l===n.length-1?u:u._children},t==="root"?e:e.root._children)}function ZQ(e){try{return e()}catch(t){return t}}var i2=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},fve={namespaced:{configurable:!0}};fve.namespaced.get=function(){return!!this._rawModule.namespaced};i2.prototype.addChild=function(t,n){this._children[t]=n};i2.prototype.removeChild=function(t){delete this._children[t]};i2.prototype.getChild=function(t){return this._children[t]};i2.prototype.hasChild=function(t){return t in this._children};i2.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};i2.prototype.forEachChild=function(t){c7(this._children,t)};i2.prototype.forEachGetter=function(t){this._rawModule.getters&&c7(this._rawModule.getters,t)};i2.prototype.forEachAction=function(t){this._rawModule.actions&&c7(this._rawModule.actions,t)};i2.prototype.forEachMutation=function(t){this._rawModule.mutations&&c7(this._rawModule.mutations,t)};Object.defineProperties(i2.prototype,fve);var LC=function(t){this.register([],t,!1)};LC.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};LC.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};LC.prototype.update=function(t){dve([],this.root,t)};LC.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var l=new i2(n,r);if(t.length===0)this.root=l;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],l)}n.modules&&c7(n.modules,function(f,v){i.register(t.concat(v),f,r)})};LC.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);!i||!i.runtime||n.removeChild(r)};LC.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function dve(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;dve(e.concat(r),t.getChild(r),n.modules[r])}}function CSe(e){return new _0(e)}var _0=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1);var l=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new LC(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=l;var u=this,f=this,v=f.dispatch,h=f.commit;this.dispatch=function(w,C){return v.call(u,w,C)},this.commit=function(w,C,S){return h.call(u,w,C,S)},this.strict=i;var g=this._modules.root.state;fV(this,g,[],this._modules.root),ate(this,g),r.forEach(function(y){return y(n)})},ste={state:{configurable:!0}};_0.prototype.install=function(t,n){t.provide(n||aSe,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&mSe(t,this)};ste.state.get=function(){return this._state.data};ste.state.set=function(e){};_0.prototype.commit=function(t,n,r){var i=this,l=gH(t,n,r),u=l.type,f=l.payload,v={type:u,payload:f},h=this._mutations[u];!h||(this._withCommit(function(){h.forEach(function(y){y(f)})}
12),this._subscribers.slice().forEach(function(g){return g(v,i.state)}))};_0.prototype.dispatch=function(t,n){var r=this,i=gH(t,n),l=i.type,u=i.payload,f={type:l,payload:u},v=this._actions[l];if(!!v){try{this._actionSubscribers.slice().filter(function(g){return g.before}).forEach(function(g){return g.before(f,r.state)})}catch{}var h=v.length>1?Promise.all(v.map(function(g){return g(u)})):v[0](u);return new Promise(function(g,y){h.then(function(w){try{r._actionSubscribers.filter(function(C){return C.after}).forEach(function(C){return C.after(f,r.state)})}catch{}g(w)},function(w){try{r._actionSubscribers.filter(function(C){return C.error}).forEach(function(C){return C.error(f,r.state,w)})}catch{}y(w)})})}};_0.prototype.subscribe=function(t,n){return ove(t,this._subscribers,n)};_0.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return ove(r,this._actionSubscribers,n)};_0.prototype.watch=function(t,n,r){var i=this;return $n(function(){return t(i.state,i.getters)},n,Object.assign({},r))};_0.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};_0.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),fV(this,this.state,t,this._modules.get(t),r.preserveState),ate(this,this.state)};_0.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=ite(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),ave(this)};_0.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};_0.prototype.hotUpdate=function(t){this._modules.update(t),ave(this,!0)};_0.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(_0.prototype,ste);const Tz=CSe({state:{token:"",navName:""},mutations:{token(e,t){e.token=t,t!=""?localStorage.setItem("token",t):localStorage.removeItem("token")},navName(e,t){e.navName=t,t!=""?localStorage.setItem("navName",t):localStorage.removeItem("navName")},showLogin(e,t){e.showLogin=t,t!=""?localStorage.setItem("showLogin",t):localStorage.removeItem("showLogin")},editNav(e,t){e.editNav=t,t!=""?localStorage.setItem("editNav",t):localStorage.removeItem("editNav")},editGrow(e,t){e.editGrow=t,t!=""?localStorage.setItem("editGrow",t):localStorage.removeItem("editGrow")},editCreation(e,t){e.editCreation=t,t!=""?localStorage.setItem("editCreation",t):localStorage.removeItem("editCreation")}},getters:{token(e){return e.token==""&&localStorage.getItem("token")!=null&&(e.token=localStorage.getItem("token")),e.token},navName(e){return e.navName==""&&localStorage.getItem("navName")!=null&&(e.navName=localStorage.getItem("navName")),e.navName},showLogin(e){return e.showLogin==""&&localStorage.getItem("showLogin")!=null&&(e.showLogin=localStorage.getItem("showLogin")),e.showLogin},editNav(e){return e.editNav==""&&localStorage.getItem("editNav")!=null&&(e.editNav=localStorage.getItem("editNav")),e.editNav},editGrow(e){return e.editGrow==""&&localStorage.getItem("editGrow")!=null&&(e.editGrow=localStorage.getItem("editGrow")),e.editGrow},editCreation(e){return e.editCreation==""&&localStorage.getItem("editCreation")!=null&&(e.editCreation=localStorage.getItem("editCreation")),e.editCreation}}});function vve(e,t){return function(){return e.apply(t,arguments)}}const{toString:xSe}=Object.prototype,{getPrototypeOf:lte}=Object,dV=(e=>t=>{const n=xSe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s2=e=>(e=e.toLowerCase(),t=>dV(t)===e),vV=e=>t=>typeof t===e,{isArray:f7}=Array,pI=vV("undefined");function ESe(e){return e!==null&&!pI(e)&&e.constructor!==null&&!pI(e.constructor)&&Am(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hve=s2("ArrayBuffer");function SSe(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hve(e.buffer),t}const TSe=vV("string"),Am=vV("function"),pve=vV("number"),hV=e=>e!==null&&typeof e=="object",ASe=e=>e===!0||e===!1,Az=e=>{if(dV(e)!=="object")return!1;const t=lte(e);
12return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kSe=s2("Date"),OSe=s2("File"),MSe=s2("Blob"),NSe=s2("FileList"),DSe=e=>hV(e)&&Am(e.pipe),ISe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Am(e.append)&&((t=dV(e))==="formdata"||t==="object"&&Am(e.toString)&&e.toString()==="[object FormData]"))},RSe=s2("URLSearchParams"),[LSe,BSe,PSe,FSe]=["ReadableStream","Request","Response","Headers"].map(s2),$Se=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qI(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,i;if(typeof e!="object"&&(e=[e]),f7(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let f;for(r=0;r<u;r++)f=l[r],t.call(null,e[f],f,e)}}function mve(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const gve=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),yve=e=>!pI(e)&&e!==gve;function QQ(){const{caseless:e}=yve(this)&&this||{},t={},n=(r,i)=>{const l=e&&mve(t,i)||i;Az(t[l])&&Az(r)?t[l]=QQ(t[l],r):Az(r)?t[l]=QQ({},r):f7(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&qI(arguments[r],n);return t}const zSe=(e,t,n,{allOwnKeys:r}={})=>(qI(t,(i,l)=>{n&&Am(i)?e[l]=vve(i,n):e[l]=i},{allOwnKeys:r}),e),HSe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VSe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},USe=(e,t,n,r)=>{let i,l,u;const f={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)u=i[l],(!r||r(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&<e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jSe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},WSe=e=>{if(!e)return null;if(f7(e))return e;let t=e.length;if(!pve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},GSe=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&<e(Uint8Array)),KSe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;
vendor: 5,359 bytes, line 12
12(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},YSe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qSe=s2("HTMLFormElement"),XSe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Bie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZSe=s2("RegExp"),bve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qI(n,(i,l)=>{let u;(u=t(i,l,e))!==!1&&(r[l]=u||i)}),Object.defineProperties(e,r)},QSe=e=>{bve(e,(t,n)=>{if(Am(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!Am(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JSe=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return f7(e)?r(e):r(String(e).split(t)),n},eTe=()=>{},tTe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,sZ="abcdefghijklmnopqrstuvwxyz",Pie="0123456789",_ve={DIGIT:Pie,ALPHA:sZ,ALPHA_DIGIT:sZ+sZ.toUpperCase()+Pie},nTe=(e=16,t=_ve.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function rTe(e){return!!(e&&Am(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const oTe=e=>{const t=new Array(10),n=(r,i)=>{if(hV(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=f7(r)?[]:{};return qI(r,(u,f)=>{const v=n(u,i+1);!pI(v)&&(l[f]=v)}),t[i]=void 0,l}}return r};return n(e,0)},aTe=s2("AsyncFunction"),iTe=e=>e&&(hV(e)||Am(e))&&Am(e.then)&&Am(e.catch);var Ar={isArray:f7,isArrayBuffer:hve,isBuffer:ESe,isFormData:ISe,isArrayBufferView:SSe,isString:TSe,isNumber:pve,isBoolean:ASe,isObject:hV,isPlainObject:Az,isReadableStream:LSe,isRequest:BSe,isResponse:PSe,isHeaders:FSe,isUndefined:pI,isDate:kSe,isFile:OSe,isBlob:MSe,isRegExp:ZSe,isFunction:Am,isStream:DSe,isURLSearchParams:RSe,isTypedArray:GSe,isFileList:NSe,forEach:qI,merge:QQ,extend:zSe,trim:$Se,stripBOM:HSe,inherits:VSe,toFlatObject:USe,kindOf:dV,kindOfTest:s2,endsWith:jSe,toArray:WSe,forEachEntry:KSe,matchAll:YSe,isHTMLForm:qSe,hasOwnProperty:Bie,hasOwnProp:Bie,reduceDescriptors:bve,freezeMethods:QSe,toObjectSet:JSe,toCamelCase:XSe,noop:eTe,toFiniteNumber:tTe,findKey:mve,global:gve,isContextDefined:yve,ALPHABET:_ve,generateString:nTe,isSpecCompliantForm:rTe,toJSONObject:oTe,isAsyncFn:aTe,isThenable:iTe};function Qi(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Ar.inherits(Qi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wve=Qi.prototype,Cve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cve[e]={value:e}});Object.defineProperties(Qi,Cve);Object.defineProperty(wve,"isAxiosError",{value:!0});Qi.from=(e,t,n,r,i,l)=>{const u=Object.create(wve);return Ar.toFlatObject(e,u,function(v){return v!==Error.prototype},f=>f!=="isAxiosError"),Qi.call(u,e.message,t,n,r,i),u.cause=e,u.name=e.name,l&&Object.assign(u,l),u};var sTe=null;function JQ(e){return Ar.isPlainObject(e)||Ar.isArray(e)}function xve(e){return Ar.endsWith(e,"[]")?e.slice(0,-2):e}function Fie(e,t,n){return e?e.concat(t).map(function(i,l){return i=xve(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function lTe(e){return Ar.isArray(e)&&!e.some(JQ)}const uTe=Ar.toFlatObject(Ar,{},null,function(t){return/^is[A-Z]/.test(t)});function pV(e,t,n){if(!Ar.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ar.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,B){return!Ar.isUndefined(B[T])});const r=n.metaTokens,i=n.visitor||g,l=n.dots,u=n.indexes,v=(n.Blob||typeof Blob!="undefined"&&Blob)&&Ar.isSpecCompliantForm(t);if(!Ar.isFunction(i))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(Ar.isDate(S))return S.toISOString();if(!v&&Ar.isBlob(S))throw new Qi("Blob is not supported. Use a Buffer instead.");return Ar.isArrayBuffer(S)||Ar.isTypedArray(S)?v&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,T,B){let F=S;if(S&&!B&&typeof S=="object"){if(Ar.endsWith(T,"{}"))T=r?T:T.slice(0,-2),S=JSON.stringify(S);else if(Ar.isArray(S)&&lTe(S)||(Ar.isFileList(S)||Ar.endsWith(T,"[]"))&&(F=Ar.toArray(S)))return T=xve(T),F.forEach(function(N,A){!(Ar.isUndefined(N)||N===null)&&t.append(u===!0?Fie([T],A,l):u===null?T:T+"[]",h(N))}),!1}return JQ(S)?!0:(t.append(Fie(B,T,l),h(S)),!1)}const y=[],w=Object.assign(uTe,{defaultVisitor:g,convertValue:h,isVisitable:JQ});function C(S,T){if(!Ar.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+T.join("."));y.push(S),Ar.forEach(S,function(F,R){(!(Ar.isUndefined(F)||F===null)&&i.call(t,F,Ar.isString(R)?R.trim():R,T,w))===!0&&C(F,T?T.concat(R):[R])}),y.pop()}}if(!Ar.isObject(e))throw new TypeError("data must be an object");return C(e),t}
12function $ie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ute(e,t){this._pairs=[],e&&pV(e,this,t)}const Eve=ute.prototype;Eve.append=function(t,n){this._pairs.push([t,n])};Eve.toString=function(t){const n=t?function(r){return t.call(this,r,$ie)}:$ie;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function cTe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sve(e,t,n){if(!t)return e;const r=n&&n.encode||cTe,i=n&&n.serialize;let l;if(i?l=i(t,n):l=Ar.isURLSearchParams(t)?t.toString():new ute(t,n).toString(r),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class fTe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ar.forEach(this.handlers,function(r){r!==null&&t(r)})}}var zie=fTe,Tve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dTe=typeof URLSearchParams!="undefined"?URLSearchParams:ute,vTe=typeof FormData!="undefined"?FormData:null,hTe=typeof Blob!="undefined"?Blob:null,pTe={isBrowser:!0,classes:{URLSearchParams:dTe,FormData:vTe,Blob:hTe},protocols:["http","https","file","blob","url","data"]};const cte=typeof window!="undefined"&&typeof document!="undefined",mTe=(e=>cte&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),gTe=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yTe=cte&&window.location.href||"http://localhost";var bTe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cte,hasStandardBrowserWebWorkerEnv:gTe,hasStandardBrowserEnv:mTe,origin:yTe},Symbol.toStringTag,{value:"Module"})),Zg={...bTe,...pTe};function _Te(e,t){return pV(e,new Zg.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Zg.isNode&&Ar.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function wTe(e){return Ar.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CTe(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r<i;r++)l=n[r],t[l]=e[l];return t}function Ave(e){function t(n,r,i,l){let u=n[l++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),v=l>=n.length;return u=!u&&Ar.isArray(i)?i.length:u,v?(Ar.hasOwnProp(i,u)?i[u]=[i[u],r]:i[u]=r,!f):((!i[u]||!Ar.isObject(i[u]))&&(i[u]=[]),t(n,r,i[u],l)&&Ar.isArray(i[u])&&(i[u]=CTe(i[u])),!f)}if(Ar.isFormData(e)&&Ar.isFunction(e.entries)){const n={};return Ar.forEachEntry(e,(r,i)=>{t(wTe(r),i,n,0)}),n}return null}function xTe(e,t,n){if(Ar.isString(e))try{return(t||JSON.parse)(e),Ar.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const fte={transitional:Tve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=Ar.isObject(t);if(l&&Ar.isHTMLForm(t)&&(t=new FormData(t)),Ar.isFormData(t))return i?JSON.stringify(Ave(t)):t;if(Ar.isArrayBuffer(t)||Ar.isBuffer(t)||Ar.isStream(t)||Ar.isFile(t)||Ar.isBlob(t)||Ar.isReadableStream(t))return t;if(Ar.isArrayBufferView(t))return t.buffer;if(Ar.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _Te(t,this.formSerializer).toString();if((f=Ar.isFileList(t))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return pV(f?{"files[]":t}:t,v&&new v,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),xTe(t)):t}],transformResponse:[function(t){const n=this.transitional||fte.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ar.isResponse(t)||Ar.isReadableStream(t))return t;if(t&&Ar.isString(t)&&(r&&!this.responseType||i)){const u=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(f){if(u)throw f.name==="SyntaxError"?Qi.from(f,Qi.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zg.classes.FormData,Blob:Zg.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ar.forEach(["delete","get","head","post","put","patch"],e=>{fte.headers[e]={}});var dte=fte;const ETe=Ar.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var STe=e=>{const t={};let n,r,i;return e&&e.split(` 13`).forEach(function(u){i=u.indexOf(":"),n=u.substring(0,i).trim().toLowerCase(),r=u.substring(i+1).trim(),!(!n||t[n]&&ETe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const Hie=Symbol("internals");function mD(e){return e&&String(e).trim().toLowerCase()}function kz(e){return e===!1||e==null?e:Ar.isArray(e)?e.map(kz):String(e)}function TTe(e){const t=Object.create(null),n=/([^\s,;
13=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ATe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lZ(e,t,n,r,i){if(Ar.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ar.isString(t)){if(Ar.isString(r))return t.indexOf(r)!==-1;if(Ar.isRegExp(r))return r.test(t)}}function kTe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function OTe(e,t){const n=Ar.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,u){return this[r].call(this,t,i,l,u)},configurable:!0})})}class mV{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(f,v,h){const g=mD(v);if(!g)throw new Error("header name must be a non-empty string");const y=Ar.findKey(i,g);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||v]=kz(f))}const u=(f,v)=>Ar.forEach(f,(h,g)=>l(h,g,v));if(Ar.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Ar.isString(t)&&(t=t.trim())&&!ATe(t))u(STe(t),n);else if(Ar.isHeaders(t))for(const[f,v]of t.entries())l(v,f,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=mD(t),t){const r=Ar.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return TTe(i);if(Ar.isFunction(n))return n.call(this,i,r);if(Ar.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=mD(t),t){const r=Ar.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||lZ(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(u){if(u=mD(u),u){const f=Ar.findKey(r,u);f&&(!n||lZ(r,r[f],f,n))&&(delete r[f],i=!0)}}return Ar.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||lZ(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return Ar.forEach(this,(i,l)=>{const u=Ar.findKey(r,l);if(u){n[u]=kz(i),delete n[l];return}const f=t?kTe(l):String(l).trim();f!==l&&delete n[l],n[f]=kz(i),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ar.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ar.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 14`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Hie]=this[Hie]={accessors:{}}).accessors,i=this.prototype;function l(u){const f=mD(u);r[f]||(OTe(i,u),r[f]=!0)}return Ar.isArray(t)?t.forEach(l):l(t),this}}mV.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ar.reduceDescriptors(mV.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ar.freezeMethods(mV);var Qg=mV;function uZ(e,t){const n=this||dte,r=t||n,i=Qg.from(r.headers);let l=r.data;return Ar.forEach(e,function(f){l=f.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function kve(e){return!!(e&&e.__CANCEL__)}function d7(e,t,n){Qi.call(this,e==null?"canceled":e,Qi.ERR_CANCELED,t,n),this.name="CanceledError"}Ar.inherits(d7,Qi,{__CANCEL__:!0});function Ove(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Qi("Request failed with status code "+n.status,[Qi.ERR_BAD_REQUEST,Qi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function MTe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NTe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,u;return t=t!==void 0?t:1e3,function(v){const h=Date.now(),g=r[l];u||(u=h),n[i]=v,r[i]=h;let y=l,w=0;for(;y!==i;)w+=n[y++],y=y%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),h-u<t)return;const C=g&&h-g;return C?Math.round(w*1e3/C):void 0}}function DTe(e,t){let n=0;const r=1e3/t;let i=null;return function(){const u=this===!0,f=Date.now();if(u||f-n>r)return i&&(clearTimeout(i),i=null),n=f,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(f-n)))}}var yH=(e,t,n=3)=>{let r=0;const i=NTe(50,250);return DTe(l=>{const u=l.loaded,f=l.lengthComputable?l.total:void 0,v=u-r,h=i(v),g=u<=f;r=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:v,rate:h||void 0,estimated:h&&f&&g?(f-u)/h:void 0,event:l,lengthComputable:f!=null};y[t?"download":"upload"]=!0,e(y)},n)},ITe=Zg.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(l){let u=l;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(u){const f=Ar.isString(u)?i(u):u;return f.protocol===r.protocol&&f.host===r.host}}():function(){return function(){return!0}}(),RTe=Zg.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const u=[e+"="+encodeURIComponent(t)];Ar.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Ar.isString(r)&&u.push("path="+r),Ar.isString(i)&&u.push("domain="+i),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function LTe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function BTe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mve(e,t){return e&&!LTe(t)?BTe(e,t):t}const Vie=e=>e instanceof Qg?{...e}:e;function SC(e,t){t=t||{};const n={};function r(h,g,y){return Ar.isPlainObject(h)&&Ar.isPlainObject(g)?Ar.merge.call({caseless:y},h,g):Ar.isPlainObject(g)?Ar.merge({},g):Ar.isArray(g)?g.slice():g}function i(h,g,y){if(Ar.isUndefined(g)){if(!Ar.isUndefined(h))return r(void 0,h,y)}else return r(h,g,y)}function l(h,g){if(!Ar.isUndefined(g))return r(void 0,g)}function u(h,g){if(Ar.isUndefined(g)){if(!Ar.isUndefined(h))return r(void 0,h)}else return r(void 0,g)}
14function f(h,g,y){if(y in t)return r(h,g);if(y in e)return r(void 0,h)}const v={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,g)=>i(Vie(h),Vie(g),!0)};return Ar.forEach(Object.keys(Object.assign({},e,t)),function(g){const y=v[g]||i,w=y(e[g],t[g],g);Ar.isUndefined(w)&&y!==f||(n[g]=w)}),n}var Nve=e=>{const t=SC({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:u,auth:f}=t;t.headers=u=Qg.from(u),t.url=Sve(Mve(t.baseURL,t.url),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let v;if(Ar.isFormData(n)){if(Zg.hasStandardBrowserEnv||Zg.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((v=u.getContentType())!==!1){const[h,...g]=v?v.split(";").map(y=>y.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...g].join("; "))}}if(Zg.hasStandardBrowserEnv&&(r&&Ar.isFunction(r)&&(r=r(t)),r||r!==!1&&ITe(t.url))){const h=i&&l&&RTe.read(l);h&&u.set(i,h)}return t};const PTe=typeof XMLHttpRequest!="undefined";var FTe=PTe&&function(e){return new Promise(function(n,r){const i=Nve(e);let l=i.data;const u=Qg.from(i.headers).normalize();let{responseType:f}=i,v;function h(){i.cancelToken&&i.cancelToken.unsubscribe(v),i.signal&&i.signal.removeEventListener("abort",v)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function y(){if(!g)return;const C=Qg.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),T={data:!f||f==="text"||f==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Ove(function(F){n(F),h()},function(F){r(F),h()},T),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){!g||(r(new Qi("Request aborted",Qi.ECONNABORTED,i,g)),g=null)},g.onerror=function(){r(new Qi("Network Error",Qi.ERR_NETWORK,i,g)),g=null},g.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||Tve;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Qi(S,T.clarifyTimeoutError?Qi.ETIMEDOUT:Qi.ECONNABORTED,i,g)),g=null},l===void 0&&u.setContentType(null),"setRequestHeader"in g&&Ar.forEach(u.toJSON(),function(S,T){g.setRequestHeader(T,S)}),Ar.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),f&&f!=="json"&&(g.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&g.addEventListener("progress",yH(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",yH(i.onUploadProgress)),(i.cancelToken||i.signal)&&(v=C=>{!g||(r(!C||C.type?new d7(null,e,g):C),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(v),i.signal&&(i.signal.aborted?v():i.signal.addEventListener("abort",v)));const w=MTe(i.url);if(w&&Zg.protocols.indexOf(w)===-1){r(new Qi("Unsupported protocol "+w+":",Qi.ERR_BAD_REQUEST,e));return}g.send(l||null)})};const $Te=(e,t)=>{let n=new AbortController,r;const i=function(v){if(!r){r=!0,u();const h=v instanceof Error?v:this.reason;n.abort(h instanceof Qi?h:new d7(h instanceof Error?h.message:h))}};let l=t&&setTimeout(()=>{i(new Qi(`timeout ${t} of ms exceeded`,Qi.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(v=>{v&&(v.removeEventListener?v.removeEventListener("abort",i):v.unsubscribe(i))}),e=null)};e.forEach(v=>v&&v.addEventListener&&v.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=u,[f,()=>{l&&clearTimeout(l),l=null}]};var zTe=$Te;const HTe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i}
14,VTe=async function*(e,t,n){for await(const r of e)yield*HTe(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Uie=(e,t,n,r,i)=>{const l=VTe(e,t,i);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:v,value:h}=await l.next();if(v){f.close(),r();return}let g=h.byteLength;n&&n(u+=g),f.enqueue(new Uint8Array(h))},cancel(f){return r(f),l.return()}},{highWaterMark:2})},jie=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},gV=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dve=gV&&typeof ReadableStream=="function",eJ=gV&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),UTe=Dve&&(()=>{let e=!1;const t=new Request(Zg.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Wie=64*1024,tJ=Dve&&!!(()=>{try{return Ar.isReadableStream(new Response("").body)}catch{}})(),bH={stream:tJ&&(e=>e.body)};gV&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bH[t]&&(bH[t]=Ar.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Qi(`Response type '${t}' is not supported`,Qi.ERR_NOT_SUPPORT,r)})})})(new Response);const jTe=async e=>{if(e==null)return 0;if(Ar.isBlob(e))return e.size;if(Ar.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Ar.isArrayBufferView(e))return e.byteLength;if(Ar.isURLSearchParams(e)&&(e=e+""),Ar.isString(e))return(await eJ(e)).byteLength},WTe=async(e,t)=>{const n=Ar.toFiniteNumber(e.getContentLength());return n==null?jTe(t):n};var GTe=gV&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:u,onDownloadProgress:f,onUploadProgress:v,responseType:h,headers:g,withCredentials:y="same-origin",fetchOptions:w}=Nve(e);h=h?(h+"").toLowerCase():"text";let[C,S]=i||l||u?zTe([i,l],u):[],T,B;const F=()=>{!T&&setTimeout(()=>{C&&C.unsubscribe()}),T=!0};let R;try{if(v&&UTe&&n!=="get"&&n!=="head"&&(R=await WTe(g,r))!==0){let Z=new Request(t,{method:"POST",body:r,duplex:"half"}),z;Ar.isFormData(r)&&(z=Z.headers.get("content-type"))&&g.setContentType(z),Z.body&&(r=Uie(Z.body,Wie,jie(R,yH(v)),null,eJ))}Ar.isString(y)||(y=y?"cors":"omit"),B=new Request(t,{...w,signal:C,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",withCredentials:y});let N=await fetch(B);const A=tJ&&(h==="stream"||h==="response");if(tJ&&(f||A)){const Z={};["status","statusText","headers"].forEach(Y=>{Z[Y]=N[Y]});const z=Ar.toFiniteNumber(N.headers.get("content-length"));N=new Response(Uie(N.body,Wie,f&&jie(z,yH(f,!0)),A&&F,eJ),Z)}h=h||"text";let X=await bH[Ar.findKey(bH,h)||"text"](N,e);return!A&&F(),S&&S(),await new Promise((Z,z)=>{Ove(Z,z,{data:X,headers:Qg.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:B})})}catch(N){throw F(),N&&N.name==="TypeError"&&/fetch/i.test(N.message)?Object.assign(new Qi("Network Error",Qi.ERR_NETWORK,e,B),{cause:N.cause||N}):Qi.from(N,N&&N.code,e,B)}});const nJ={http:sTe,xhr:FTe,fetch:GTe};Ar.forEach(nJ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gie=e=>`- ${e}`,KTe=e=>Ar.isFunction(e)||e===null||e===!1;var Ive={getAdapter:e=>{e=Ar.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l<t;l++){n=e[l];let u;if(r=n,!KTe(n)&&(r=nJ[(u=String(n)).toLowerCase()],r===void 0))throw new Qi(`Unknown adapter '${u}'`);if(r)break;i[u||"#"+l]=r}if(!r){const l=Object.entries(i).map(([f,v])=>`adapter ${f} `+(v===!1?"is not supported by the environment":"is not available in the build"));let u=t?l.length>1?`since : 15`+l.map(Gie).join(` 16`):" "+Gie(l[0]):"as no adapter specified";throw new Qi("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:nJ};function cZ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new d7(null,e)}function Kie(e){return cZ(e),e.headers=Qg.from(e.headers),e.data=uZ.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ive.getAdapter(e.adapter||dte.adapter)(e).then(function(r){return cZ(e),r.data=uZ.call(e,e.transformResponse,r),r.headers=Qg.from(r.headers),r},function(r){return kve(r)||(cZ(e),r&&r.response&&(r.response.data=uZ.call(e,e.transformResponse,r.response),r.response.headers=Qg.from(r.response.headers))),Promise.reject(r)})}const Rve="1.7.2",vte={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vte[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yie={};vte.transitional=function(t,n,r){function i(l,u){return"[Axios v"+Rve+"] Transitional option '"+l+"'"+u+(r?". "+r:"")}return(l,u,f)=>{if(t===!1)throw new Qi(i(u," has been removed"+(n?" in "+n:"")),Qi.ERR_DEPRECATED);return n&&!Yie[u]&&(Yie[u]=!0,console.warn(i(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,u,f):!0}};function YTe(e,t,n){if(typeof e!="object")throw new Qi("options must be an object",Qi.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],u=t[l];if(u){const f=e[l],v=f===void 0||u(f,l,e);if(v!==!0)throw new Qi("option "+l+" must be "+v,Qi.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Qi("Unknown option "+l,Qi.ERR_BAD_OPTION)}}var rJ={assertOptions:YTe,validators:vte};const m8=rJ.validators;class _H{constructor(t){this.defaults=t,this.interceptors={request:new zie,response:new zie}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` 17`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=SC(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&rJ.assertOptions(r,{silentJSONParsing:m8.transitional(m8.boolean),forcedJSONParsing:m8.transitional(m8.boolean),clarifyTimeoutError:m8.transitional(m8.boolean)}
vendor: 2,635 bytes, line 17
17,!1),i!=null&&(Ar.isFunction(i)?n.paramsSerializer={serialize:i}:rJ.assertOptions(i,{encode:m8.function,serialize:m8.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=l&&Ar.merge(l.common,l[n.method]);l&&Ar.forEach(["delete","get","head","post","put","patch","common"],S=>{delete l[S]}),n.headers=Qg.concat(u,l);const f=[];let v=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(v=v&&T.synchronous,f.unshift(T.fulfilled,T.rejected))});const h=[];this.interceptors.response.forEach(function(T){h.push(T.fulfilled,T.rejected)});let g,y=0,w;if(!v){const S=[Kie.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,h),w=S.length,g=Promise.resolve(n);y<w;)g=g.then(S[y++],S[y++]);return g}w=f.length;let C=n;for(y=0;y<w;){const S=f[y++],T=f[y++];try{C=S(C)}catch(B){T.call(this,B);break}}try{g=Kie.call(this,C)}catch(S){return Promise.reject(S)}for(y=0,w=h.length;y<w;)g=g.then(h[y++],h[y++]);return g}getUri(t){t=SC(this.defaults,t);const n=Mve(t.baseURL,t.url);return Sve(n,t.params,t.paramsSerializer)}}Ar.forEach(["delete","get","head","options"],function(t){_H.prototype[t]=function(n,r){return this.request(SC(r||{},{method:t,url:n,data:(r||{}).data}))}});Ar.forEach(["post","put","patch"],function(t){function n(r){return function(l,u,f){return this.request(SC(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}_H.prototype[t]=n(),_H.prototype[t+"Form"]=n(!0)});var Oz=_H;class hte{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(i=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const u=new Promise(f=>{r.subscribe(f),l=f}).then(i);return u.cancel=function(){r.unsubscribe(l)},u},t(function(l,u,f){r.reason||(r.reason=new d7(l,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new hte(function(i){t=i}),cancel:t}}}var qTe=hte;function XTe(e){return function(n){return e.apply(null,n)}}function ZTe(e){return Ar.isObject(e)&&e.isAxiosError===!0}const oJ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
17alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oJ).forEach(([e,t])=>{oJ[t]=e});var QTe=oJ;function Lve(e){const t=new Oz(e),n=vve(Oz.prototype.request,t);return Ar.extend(n,Oz.prototype,t,{allOwnKeys:!0}),Ar.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Lve(SC(e,i))},n}const wd=Lve(dte);wd.Axios=Oz;wd.CanceledError=d7;wd.CancelToken=qTe;wd.isCancel=kve;wd.VERSION=Rve;wd.toFormData=pV;wd.AxiosError=Qi;wd.Cancel=wd.CanceledError;wd.all=function(t){return Promise.all(t)};wd.spread=XTe;wd.isAxiosError=ZTe;wd.mergeConfig=SC;wd.AxiosHeaders=Qg;wd.formToJSON=e=>Ave(Ar.isHTMLForm(e)?new FormData(e):e);wd.getAdapter=Ive.getAdapter;wd.HttpStatusCode=QTe;wd.default=wd;var pte=wd;const JTe=pte.create(),eAe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',tAe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,qie=e=>Array.from(e.querySelectorAll(eAe)).filter(t=>nAe(t)&&tAe(t)),nAe=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Mz=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Bve=e=>!e.getAttribute("aria-owns"),Pve=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const i=r.querySelectorAll(n),l=Array.prototype.indexOf.call(i,e);return i[l+t]||null},Nz=e=>{!e||(e.focus(),!Bve(e)&&e.click())},Yu=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const l=e==null?void 0:e(i);if(n===!1||!l)return t==null?void 0:t(i)},Xie=e=>t=>t.pointerType==="mouse"?e(t):void 0;var rAe=Object.defineProperty,oAe=Object.defineProperties,aAe=Object.getOwnPropertyDescriptors,Zie=Object.getOwnPropertySymbols,iAe=Object.prototype.hasOwnProperty,sAe=Object.prototype.propertyIsEnumerable,Qie=(e,t,n)=>t in e?rAe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lAe=(e,t)=>{for(var n in t||(t={}))iAe.call(t,n)&&Qie(e,n,t[n]);if(Zie)for(var n of Zie(t))sAe.call(t,n)&&Qie(e,n,t[n]);return e},uAe=(e,t)=>
17oAe(e,aAe(t));function Jie(e,t){var n;const r=al();return h0(()=>{r.value=e()},uAe(lAe({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),u7(r)}var ese;const _i=typeof window!="undefined",cAe=e=>typeof e!="undefined",fAe=e=>typeof e=="function",dAe=e=>typeof e=="string",KA=()=>{},Fve=_i&&((ese=window==null?void 0:window.navigator)==null?void 0:ese.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function H8(e){return typeof e=="function"?e():L(e)}function $ve(e,t){function n(...r){return new Promise((i,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(l)})}return n}function vAe(e,t={}){let n,r,i=KA;const l=f=>{clearTimeout(f),i(),i=KA};return f=>{const v=H8(e),h=H8(t.maxWait);return n&&l(n),v<=0||h!==void 0&&h<=0?(r&&(l(r),r=null),Promise.resolve(f())):new Promise((g,y)=>{i=t.rejectOnCancel?y:g,h&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,g(f())},h)),n=setTimeout(()=>{r&&l(r),r=null,g(f())},v)})}}function hAe(e,t=!0,n=!0,r=!1){let i=0,l,u=!0,f=KA,v;const h=()=>{l&&(clearTimeout(l),l=void 0,f(),f=KA)};return y=>{const w=H8(e),C=Date.now()-i,S=()=>v=y();return h(),w<=0?(i=Date.now(),S()):(C>w&&(n||!u)?(i=Date.now(),S()):t&&(v=new Promise((T,B)=>{f=r?B:T,l=setTimeout(()=>{i=Date.now(),u=!0,T(S()),h()},Math.max(0,w-C))})),!n&&!l&&(l=setTimeout(()=>u=!0,w)),u=!1,v)}}function pAe(e){return e}function yV(e){return Nwe()?(Ede(e),!0):!1}function mAe(e,t=200,n={}){return $ve(vAe(t,n),e)}function gAe(e,t=200,n={}){const r=et(e.value),i=mAe(()=>{r.value=e.value},t,n);return $n(e,()=>i()),r}function zve(e,t=200,n=!1,r=!0,i=!1){return $ve(hAe(t,n,r,i),e)}function mte(e,t=!0){va()?ia(e):t?e():Gr(e)}function TC(e,t,n={}){const{immediate:r=!0}=n,i=et(!1);let l=null;function u(){l&&(clearTimeout(l),l=null)}function f(){i.value=!1,u()}function v(...h){u(),i.value=!0,l=setTimeout(()=>{i.value=!1,l=null,e(...h)},H8(t))}return r&&(i.value=!0,_i&&v()),yV(f),{isPending:u7(i),start:v,stop:f}}function Cp(e){var t;const n=H8(e);return(t=n==null?void 0:n.$el)!=null?t:n}const v7=_i?window:void 0,yAe=_i?window.document:void 0;function Yl(...e){let t,n,r,i;if(dAe(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=v7):[t,n,r,i]=e,!t)return KA;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],u=()=>{l.forEach(g=>g()),l.length=0},f=(g,y,w,C)=>(g.addEventListener(y,w,C),()=>g.removeEventListener(y,w,C)),v=$n(()=>[Cp(t),H8(i)],([g,y])=>{u(),g&&l.push(...n.flatMap(w=>r.map(C=>f(g,w,C,y))))},{immediate:!0,flush:"post"}),h=()=>{v(),u()};return yV(h),h}let tse=!1;function gte(e,t,n={}){const{window:r=v7,ignore:i=[],capture:l=!0,detectIframe:u=!1}=n;if(!r)return;Fve&&!tse&&(tse=!0,Array.from(r.document.body.children).forEach(w=>w.addEventListener("click",KA)));let f=!0;const v=w=>i.some(C=>{if(typeof C=="string")return Array.from(r.document.querySelectorAll(C)).some(S=>S===w.target||w.composedPath().includes(S));{const S=Cp(C);return S&&(w.target===S||w.composedPath().includes(S))}}),g=[Yl(r,"click",w=>{const C=Cp(e);if(!(!C||C===w.target||w.composedPath().includes(C))){if(w.detail===0&&(f=!v(w)),!f){f=!0;return}t(w)}},{passive:!0,capture:l}),Yl(r,"pointerdown",w=>{const C=Cp(e);C&&(f=!w.composedPath().includes(C)&&!v(w))},{passive:!0}),u&&Yl(r,"blur",w=>{var C;const S=Cp(e);((C=r.document.activeElement)==null?void 0:C.tagName)==="IFRAME"&&!(S!=null&&S.contains(r.document.activeElement))&&t(w)})].filter(Boolean);return()=>g.forEach(w=>w())}function bAe(e,t=!1){const n=et(),r=()=>n.value=Boolean(e());return r(),mte(r,t),n}function _Ae(e){return JSON.parse(JSON.stringify(e))}const aJ=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},iJ="__vueuse_ssr_handlers__";aJ[iJ]=aJ[iJ]||{};aJ[iJ];function wAe(e,t,{window:n=v7,initialValue:r=""}={}){const i=et(r),l=Ne(()=>{var u;return Cp(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return $n([l,()=>H8(e)],([u,f])=>{var v;if(u&&n){const h=(v=n.getComputedStyle(u).getPropertyValue(f))==null?void 0:v.trim();i.value=h||r}},{immediate:!0}),$n(i,u=>{var f;(f=l.value)!=null&&f.style&&l.value.style.setProperty(H8(e),u)}),i}function CAe({document:e=yAe}={}){if(!e)return et("visible");const t=et(e.visibilityState);return Yl(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var nse=Object.getOwnPropertySymbols,xAe=Object.prototype.hasOwnProperty,EAe=Object.prototype.propertyIsEnumerable,SAe=(e,t)=>
17{var n={};for(var r in e)xAe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&nse)for(var r of nse(e))t.indexOf(r)<0&&EAe.call(e,r)&&(n[r]=e[r]);return n};function Rv(e,t,n={}){const r=n,{window:i=v7}=r,l=SAe(r,["window"]);let u;const f=bAe(()=>i&&"ResizeObserver"in i),v=()=>{u&&(u.disconnect(),u=void 0)},h=$n(()=>Cp(e),y=>{v(),f.value&&i&&y&&(u=new ResizeObserver(t),u.observe(y,l))},{immediate:!0,flush:"post"}),g=()=>{v(),h()};return yV(g),{isSupported:f,stop:g}}function rse(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:l=!0}=t,u=et(0),f=et(0),v=et(0),h=et(0),g=et(0),y=et(0),w=et(0),C=et(0);function S(){const T=Cp(e);if(!T){n&&(u.value=0,f.value=0,v.value=0,h.value=0,g.value=0,y.value=0,w.value=0,C.value=0);return}const B=T.getBoundingClientRect();u.value=B.height,f.value=B.bottom,v.value=B.left,h.value=B.right,g.value=B.top,y.value=B.width,w.value=B.x,C.value=B.y}return Rv(e,S),$n(()=>Cp(e),T=>!T&&S()),i&&Yl("scroll",S,{capture:!0,passive:!0}),r&&Yl("resize",S,{passive:!0}),mte(()=>{l&&S()}),{height:u,bottom:f,left:v,right:h,top:g,width:y,x:w,y:C,update:S}}var ose;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ose||(ose={}));var TAe=Object.defineProperty,ase=Object.getOwnPropertySymbols,AAe=Object.prototype.hasOwnProperty,kAe=Object.prototype.propertyIsEnumerable,ise=(e,t,n)=>t in e?TAe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OAe=(e,t)=>{for(var n in t||(t={}))AAe.call(t,n)&&ise(e,n,t[n]);if(ase)for(var n of ase(t))kAe.call(t,n)&&ise(e,n,t[n]);return e};const MAe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};OAe({linear:pAe},MAe);function NAe(e,t,n,r={}){var i,l,u;const{clone:f=!1,passive:v=!1,eventName:h,deep:g=!1,defaultValue:y}=r,w=va(),C=n||(w==null?void 0:w.emit)||((i=w==null?void 0:w.$emit)==null?void 0:i.bind(w))||((u=(l=w==null?void 0:w.proxy)==null?void 0:l.$emit)==null?void 0:u.bind(w==null?void 0:w.proxy));let S=h;t||(t="modelValue"),S=h||S||`update:${t.toString()}`;const T=F=>f?fAe(f)?f(F):_Ae(F):F,B=()=>cAe(e[t])?T(e[t]):y;if(v){const F=B(),R=et(F);return $n(()=>e[t],N=>R.value=T(N)),$n(R,N=>{(N!==e[t]||g)&&C(S,N)},{deep:g}),R}else return Ne({get(){return B()},set(F){C(S,F)}})}function DAe({window:e=v7}={}){if(!e)return et(!1);const t=et(e.document.hasFocus());return Yl(e,"blur",()=>{t.value=!1}),Yl(e,"focus",()=>{t.value=!0}),t}function IAe(e={}){const{window:t=v7,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:l=!0}=e,u=et(n),f=et(r),v=()=>{t&&(l?(u.value=t.innerWidth,f.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,f.value=t.document.documentElement.clientHeight))};return v(),mte(v),Yl("resize",v,{passive:!0}),i&&Yl("orientationchange",v,{passive:!0}),{width:u,height:f}}const Hve=()=>_i&&/firefox/i.test(window.navigator.userAgent),RAe=(e,t)=>{if(!_i||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},sse=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},LAe=(e,t)=>Math.abs(sse(e)-sse(t)),yte=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};/** 18* @vue/shared v3.4.30 19* (c) 2018-present Yuxi (Evan) You and Vue contributors 20* @license MIT
21**/const Ku=()=>{},BAe=Object.prototype.hasOwnProperty,J1=(e,t)=>BAe.call(e,t),Oa=Array.isArray,mI=e=>Vve(e)==="[object Date]",Ji=e=>typeof e=="function",Ga=e=>typeof e=="string",Qs=e=>e!==null&&typeof e=="object",sJ=e=>(Qs(e)||Ji(e))&&Ji(e.then)&&Ji(e.catch),PAe=Object.prototype.toString,Vve=e=>PAe.call(e),fZ=e=>Vve(e).slice(8,-1),bte=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},FAe=/-(\w)/g,Uve=bte(e=>e.replace(FAe,(t,n)=>n?n.toUpperCase():"")),$Ae=/\B([A-Z])/g,zAe=bte(e=>e.replace($Ae,"-$1").toLowerCase()),HAe=bte(e=>e.charAt(0).toUpperCase()+e.slice(1));var VAe=typeof global=="object"&&global&&global.Object===Object&&global,jve=VAe,UAe=typeof self=="object"&&self&&self.Object===Object&&self,jAe=jve||UAe||Function("return this")(),l2=jAe,WAe=l2.Symbol,Mm=WAe,Wve=Object.prototype,GAe=Wve.hasOwnProperty,KAe=Wve.toString,gD=Mm?Mm.toStringTag:void 0;function YAe(e){var t=GAe.call(e,gD),n=e[gD];try{e[gD]=void 0;var r=!0}catch{}var i=KAe.call(e);return r&&(t?e[gD]=n:delete e[gD]),i}var qAe=Object.prototype,XAe=qAe.toString;function ZAe(e){return XAe.call(e)}var QAe="[object Null]",JAe="[object Undefined]",lse=Mm?Mm.toStringTag:void 0;function BC(e){return e==null?e===void 0?JAe:QAe:lse&&lse in Object(e)?YAe(e):ZAe(e)}function ub(e){return e!=null&&typeof e=="object"}var e7e="[object Symbol]";function bV(e){return typeof e=="symbol"||ub(e)&&BC(e)==e7e}function Gve(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var t7e=Array.isArray,_h=t7e,n7e=1/0,use=Mm?Mm.prototype:void 0,cse=use?use.toString:void 0;function Kve(e){if(typeof e=="string")return e;if(_h(e))return Gve(e,Kve)+"";if(bV(e))return cse?cse.call(e):"";var t=e+"";return t=="0"&&1/e==-n7e?"-0":t}var r7e=/\s/;function o7e(e){for(var t=e.length;t--&&r7e.test(e.charAt(t)););return t}var a7e=/^\s+/;function i7e(e){return e&&e.slice(0,o7e(e)+1).replace(a7e,"")}function wh(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fse=0/0,s7e=/^[-+]0x[0-9a-f]+$/i,l7e=/^0b[01]+$/i,u7e=/^0o[0-7]+$/i,c7e=parseInt;function dse(e){if(typeof e=="number")return e;if(bV(e))return fse;if(wh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=i7e(e);var n=l7e.test(e);return n||u7e.test(e)?c7e(e.slice(2),n?2:8):s7e.test(e)?fse:+e}function _te(e){return e}var f7e="[object AsyncFunction]",d7e="[object Function]",v7e="[object GeneratorFunction]",h7e="[object Proxy]";function wte(e){if(!wh(e))return!1;var t=BC(e);return t==d7e||t==v7e||t==f7e||t==h7e}var p7e=l2["__core-js_shared__"],dZ=p7e,vse=function(){var e=/[^.]+$/.exec(dZ&&dZ.keys&&dZ.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function m7e(e){return!!vse&&vse in e}var g7e=Function.prototype,y7e=g7e.toString;function PC(e){if(e!=null){try{return y7e.call(e)}catch{}try{return e+""}catch{}}return""}var b7e=/[\\^$.*+?()[\]{}|]/g,_7e=/^\[object .+?Constructor\]$/,w7e=Function.prototype,C7e=Object.prototype,x7e=w7e.toString,E7e=C7e.hasOwnProperty,S7e=RegExp("^"+x7e.call(E7e).replace(b7e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T7e(e){if(!wh(e)||m7e(e))return!1;var t=wte(e)?S7e:_7e;return t.test(PC(e))}function A7e(e,t){return e==null?void 0:e[t]}function FC(e,t){var n=A7e(e,t);return T7e(n)?n:void 0}var k7e=FC(l2,"WeakMap"),lJ=k7e,hse=Object.create,O7e=function(){function e(){}return function(t){if(!wh(t))return{};if(hse)return hse(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),M7e=O7e;function N7e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function D7e(){}function Yve(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var I7e=800,R7e=16,L7e=Date.now;function B7e(e){var t=0,n=0;return function(){var r=L7e(),i=R7e-(r-n);if(n=r,i>0){if(++t>=I7e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function P7e(e){return function(){return e}}var F7e=function(){try{var e=FC(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wH=F7e,$7e=wH?function(e,t){return wH(e,"toString",{configurable:!0,enumerable:!1,value:P7e(t),writable:!0})}:_te,z7e=$7e,H7e=B7e(z7e),qve=H7e;function V7e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function U7e(e,t,n,r){for(var i=e.length,l=n+(r?1:-1);r?l--:++l<i;)if(t(e[l],l,e))return l;return-1}function j7e(e){return e!==e}function W7e(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function G7e(e,t,n){return t===t?W7e(e,t,n):U7e(e,j7e,n)}function K7e(e,t){var n=e==null?0:e.length;return!!n&&G7e(e,t,0)>-1}var Y7e=9007199254740991,q7e=/^(?:0|[1-9]\d*)$/;function _V(e,t){var n=typeof e;return t=t==null?Y7e:t,!!t&&(n=="number"||n!="symbol"&&q7e.test(e))&&e>-1&&e%1==0&&e<t}function Cte(e,t,n){t=="__proto__"&&wH?wH(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function XI(e,t){return e===t||e!==e&&t!==t}var X7e=Object.prototype,Z7e=X7e.hasOwnProperty;function xte(e,t,n){var r=e[t];(!(Z7e.call(e,t)&&XI(r,n))||n===void 0&&!(t in e))&&Cte(e,t,n)}function ZI(e,t,n,r){var i=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var f=t[l],v=r?r(n[f],e[f],f,n,e):void 0;v===void 0&&(v=e[f]),i?Cte(n,f,v):xte(n,f,v)}return n}var pse=Math.max;function Xve(e,t,n){return t=pse(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,l=pse(r.length-t,0),u=Array(l);++i<l;)u[i]=r[t+i];i=-1;for(var f=Array(t+1);++i<t;)f[i]=r[i];return f[t]=n(u),N7e(e,this,f)}}function Zve(e,t){return qve(Xve(e,t,_te),e+"")}var Q7e=9007199254740991;function Ete(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q7e}function h7(e){return e!=null&&Ete(e.length)&&!wte(e)}function J7e(e,t,n){if(!wh(n))return!1;var r=typeof t;return(r=="number"?h7(n)&&_V(t,n.length):r=="string"&&t in n)?XI(n[t],e):!1}function eke(e){return Zve(function(t,n){var r=-1,i=n.length,l=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(i--,l):void 0,u&&J7e(n[0],n[1],u)&&(l=i<3?void 0:l,i=1),t=Object(t);++r<i;){var f=n[r];f&&e(t,f,r,l)}return t})}var tke=Object.prototype;function Ste(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tke;return e===n}function nke(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var rke="[object Arguments]";function mse(e){return ub(e)&&BC(e)==rke}var Qve=Object.prototype,oke=Qve.hasOwnProperty,ake=Qve.propertyIsEnumerable,ike=mse(function(){return arguments}())?mse:function(e){return ub(e)&&oke.call(e,"callee")&&!ake.call(e,"callee")},gI=ike;function ske(){return!1}var Jve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gse=Jve&&typeof module=="object"&&module&&!module.nodeType&&module,lke=gse&&gse.exports===Jve,yse=lke?l2.Buffer:void 0,uke=yse?yse.isBuffer:void 0,cke=uke||ske,yI=cke,fke="[object Arguments]",dke="[object Array]",vke="[object Boolean]",hke="[object Date]",pke="[object Error]",mke="[object Function]",gke="[object Map]",yke="[object Number]",bke="[object Object]",_ke="[object RegExp]",wke="[object Set]",Cke="[object String]",xke="[object WeakMap]",Eke="[object ArrayBuffer]",Ske="[object DataView]",Tke="[object Float32Array]",Ake="[object Float64Array
21]",kke="[object Int8Array]",Oke="[object Int16Array]",Mke="[object Int32Array]",Nke="[object Uint8Array]",Dke="[object Uint8ClampedArray]",Ike="[object Uint16Array]",Rke="[object Uint32Array]",vc={};vc[Tke]=vc[Ake]=vc[kke]=vc[Oke]=vc[Mke]=vc[Nke]=vc[Dke]=vc[Ike]=vc[Rke]=!0;vc[fke]=vc[dke]=vc[Eke]=vc[vke]=vc[Ske]=vc[hke]=vc[pke]=vc[mke]=vc[gke]=vc[yke]=vc[bke]=vc[_ke]=vc[wke]=vc[Cke]=vc[xke]=!1;function Lke(e){return ub(e)&&Ete(e.length)&&!!vc[BC(e)]}function Tte(e){return function(t){return e(t)}}var ehe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,GD=ehe&&typeof module=="object"&&module&&!module.nodeType&&module,Bke=GD&&GD.exports===ehe,vZ=Bke&&jve.process,Pke=function(){try{var e=GD&&GD.require&&GD.require("util").types;return e||vZ&&vZ.binding&&vZ.binding("util")}catch{}}(),YA=Pke,bse=YA&&YA.isTypedArray,Fke=bse?Tte(bse):Lke,Ate=Fke,$ke=Object.prototype,zke=$ke.hasOwnProperty;function the(e,t){var n=_h(e),r=!n&&gI(e),i=!n&&!r&&yI(e),l=!n&&!r&&!i&&Ate(e),u=n||r||i||l,f=u?nke(e.length,String):[],v=f.length;for(var h in e)(t||zke.call(e,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||l&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||_V(h,v)))&&f.push(h);return f}function nhe(e,t){return function(n){return e(t(n))}}var Hke=nhe(Object.keys,Object),Vke=Hke,Uke=Object.prototype,jke=Uke.hasOwnProperty;function Wke(e){if(!Ste(e))return Vke(e);var t=[];for(var n in Object(e))jke.call(e,n)&&n!="constructor"&&t.push(n);return t}function QI(e){return h7(e)?the(e):Wke(e)}function Gke(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Kke=Object.prototype,Yke=Kke.hasOwnProperty;function qke(e){if(!wh(e))return Gke(e);var t=Ste(e),n=[];for(var r in e)r=="constructor"&&(t||!Yke.call(e,r))||n.push(r);return n}function JI(e){return h7(e)?the(e,!0):qke(e)}var Xke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zke=/^\w*$/;function kte(e,t){if(_h(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bV(e)?!0:Zke.test(e)||!Xke.test(e)||t!=null&&e in Object(t)}var Qke=FC(Object,"create"),bI=Qke;function Jke(){this.__data__=bI?bI(null):{},this.size=0}function eOe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tOe="__lodash_hash_undefined__",nOe=Object.prototype,rOe=nOe.hasOwnProperty;function oOe(e){var t=this.__data__;if(bI){var n=t[e];return n===tOe?void 0:n}return rOe.call(t,e)?t[e]:void 0}var aOe=Object.prototype,iOe=aOe.hasOwnProperty;function sOe(e){var t=this.__data__;return bI?t[e]!==void 0:iOe.call(t,e)}var lOe="__lodash_hash_undefined__";function uOe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bI&&t===void 0?lOe:t,this}function AC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}AC.prototype.clear=Jke;AC.prototype.delete=eOe;AC.prototype.get=oOe;AC.prototype.has=sOe;AC.prototype.set=uOe;function cOe(){this.__data__=[],this.size=0}function wV(e,t){for(var n=e.length;n--;)if(XI(e[n][0],t))return n;return-1}var fOe=Array.prototype,dOe=fOe.splice;function vOe(e){var t=this.__data__,n=wV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dOe.call(t,n,1),--this.size,!0}function hOe(e){var t=this.__data__,n=wV(t,e);return n<0?void 0:t[n][1]}function pOe(e){return wV(this.__data__,e)>-1}function mOe(e,t){var n=this.__data__,r=wV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function A3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}A3.prototype.clear=cOe;A3.prototype.delete=vOe;A3.prototype.get=hOe;A3.prototype.has=pOe;A3.prototype.set=mOe;var gOe=FC(l2,"Map"),_I=gOe;function yOe(){this.size=0,this.__data__={hash:new AC,map:new(_I||A3),string:new AC}}function bOe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function CV(e,t){var n=e.__data__;return bOe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function _Oe(e){var t=CV(this,e).delete(e);return this.size-=t?1:0,t}function wOe(e){return CV(this,e).get(e)}function COe(e){return CV(this,e).has(e)}function xOe(e,t){var n=CV(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function k3(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}k3.prototype.clear=yOe;
21k3.prototype.delete=_Oe;k3.prototype.get=wOe;k3.prototype.has=COe;k3.prototype.set=xOe;var EOe="Expected a function";function xV(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(EOe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],l=n.cache;if(l.has(i))return l.get(i);var u=e.apply(this,r);return n.cache=l.set(i,u)||l,u};return n.cache=new(xV.Cache||k3),n}xV.Cache=k3;var SOe=500;function TOe(e){var t=xV(e,function(r){return n.size===SOe&&n.clear(),r}),n=t.cache;return t}var AOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kOe=/\\(\\)?/g,OOe=TOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AOe,function(n,r,i,l){t.push(i?l.replace(kOe,"$1"):r||n)}),t}),MOe=OOe;function NOe(e){return e==null?"":Kve(e)}function EV(e,t){return _h(e)?e:kte(e,t)?[e]:MOe(NOe(e))}var DOe=1/0;function eR(e){if(typeof e=="string"||bV(e))return e;var t=e+"";return t=="0"&&1/e==-DOe?"-0":t}function Ote(e,t){t=EV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[eR(t[n++])];return n&&n==r?e:void 0}function lu(e,t,n){var r=e==null?void 0:Ote(e,t);return r===void 0?n:r}function Mte(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var _se=Mm?Mm.isConcatSpreadable:void 0;function IOe(e){return _h(e)||gI(e)||!!(_se&&e&&e[_se])}function tR(e,t,n,r,i){var l=-1,u=e.length;for(n||(n=IOe),i||(i=[]);++l<u;){var f=e[l];t>0&&n(f)?t>1?tR(f,t-1,n,r,i):Mte(i,f):r||(i[i.length]=f)}return i}function rhe(e){var t=e==null?0:e.length;return t?tR(e,1):[]}function ROe(e){return qve(Xve(e,void 0,rhe),e+"")}var LOe=nhe(Object.getPrototypeOf,Object),Nte=LOe,BOe="[object Object]",POe=Function.prototype,FOe=Object.prototype,ohe=POe.toString,$Oe=FOe.hasOwnProperty,zOe=ohe.call(Object);function HOe(e){if(!ub(e)||BC(e)!=BOe)return!1;var t=Nte(e);if(t===null)return!0;var n=$Oe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ohe.call(n)==zOe}function qA(){if(!arguments.length)return[];var e=arguments[0];return _h(e)?e:[e]}function VOe(){this.__data__=new A3,this.size=0}function UOe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function jOe(e){return this.__data__.get(e)}function WOe(e){return this.__data__.has(e)}var GOe=200;function KOe(e,t){var n=this.__data__;if(n instanceof A3){var r=n.__data__;if(!_I||r.length<GOe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new k3(r)}return n.set(e,t),this.size=n.size,this}function Jg(e){var t=this.__data__=new A3(e);this.size=t.size}Jg.prototype.clear=VOe;Jg.prototype.delete=UOe;Jg.prototype.get=jOe;Jg.prototype.has=WOe;Jg.prototype.set=KOe;function YOe(e,t){return e&&ZI(t,QI(t),e)}function qOe(e,t){return e&&ZI(t,JI(t),e)}var ahe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wse=ahe&&typeof module=="object"&&module&&!module.nodeType&&module,XOe=wse&&wse.exports===ahe,Cse=XOe?l2.Buffer:void 0,xse=Cse?Cse.allocUnsafe:void 0;function ihe(e,t){if(t)return e.slice();var n=e.length,r=xse?xse(n):new e.constructor(n);return e.copy(r),r}function ZOe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var u=e[n];t(u,n,e)&&(l[i++]=u)}return l}function she(){return[]}var QOe=Object.prototype,JOe=QOe.propertyIsEnumerable,Ese=Object.getOwnPropertySymbols,eMe=Ese?function(e){return e==null?[]:(e=Object(e),ZOe(Ese(e),function(t){return JOe.call(e,t)}))}:she,Dte=eMe;function tMe(e,t){return ZI(e,Dte(e),t)}var nMe=Object.getOwnPropertySymbols,rMe=nMe?function(e){for(var t=[];e;)Mte(t,Dte(e)),e=Nte(e);return t}:she,lhe=rMe;function oMe(e,t){return ZI(e,lhe(e),t)}function uhe(e,t,n){var r=t(e);return _h(e)?r:Mte(r,n(e))}function uJ(e){return uhe(e,QI,Dte)}function aMe(e){return uhe(e,JI,lhe)}var iMe=FC(l2,"DataView"),cJ=iMe,sMe=FC(l2,"Promise"),fJ=sMe,lMe=FC(l2,"Set"),kA=lMe,Sse="[object Map]",uMe="[object Object]",Tse="[object Promise]",Ase="[object Set]",kse="[object WeakMap]",Ose="[object DataView]",cMe=PC(cJ),fMe=PC(_I),dMe=PC(fJ),vMe=PC(kA),hMe=PC(lJ),Q9=BC;(cJ&&Q9(new cJ(new ArrayBuffer(1)))!=Ose||_I&&Q9(new _I)!=Sse||fJ&&Q9(fJ.resolve())!=Tse||kA&&Q9(ne
vendor: 5,614 bytes, line 21
21w kA)!=Ase||lJ&&Q9(new lJ)!=kse)&&(Q9=function(e){var t=BC(e),n=t==uMe?e.constructor:void 0,r=n?PC(n):"";if(r)switch(r){case cMe:return Ose;case fMe:return Sse;case dMe:return Tse;case vMe:return Ase;case hMe:return kse}return t});var wI=Q9,pMe=Object.prototype,mMe=pMe.hasOwnProperty;function gMe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&mMe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var yMe=l2.Uint8Array,CH=yMe;function Ite(e){var t=new e.constructor(e.byteLength);return new CH(t).set(new CH(e)),t}function bMe(e,t){var n=t?Ite(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _Me=/\w*$/;function wMe(e){var t=new e.constructor(e.source,_Me.exec(e));return t.lastIndex=e.lastIndex,t}var Mse=Mm?Mm.prototype:void 0,Nse=Mse?Mse.valueOf:void 0;function CMe(e){return Nse?Object(Nse.call(e)):{}}function che(e,t){var n=t?Ite(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var xMe="[object Boolean]",EMe="[object Date]",SMe="[object Map]",TMe="[object Number]",AMe="[object RegExp]",kMe="[object Set]",OMe="[object String]",MMe="[object Symbol]",NMe="[object ArrayBuffer]",DMe="[object DataView]",IMe="[object Float32Array]",RMe="[object Float64Array]",LMe="[object Int8Array]",BMe="[object Int16Array]",PMe="[object Int32Array]",FMe="[object Uint8Array]",$Me="[object Uint8ClampedArray]",zMe="[object Uint16Array]",HMe="[object Uint32Array]";function VMe(e,t,n){var r=e.constructor;switch(t){case NMe:return Ite(e);case xMe:case EMe:return new r(+e);case DMe:return bMe(e,n);case IMe:case RMe:case LMe:case BMe:case PMe:case FMe:case $Me:case zMe:case HMe:return che(e,n);case SMe:return new r;case TMe:case OMe:return new r(e);case AMe:return wMe(e);case kMe:return new r;case MMe:return CMe(e)}}function fhe(e){return typeof e.constructor=="function"&&!Ste(e)?M7e(Nte(e)):{}}var UMe="[object Map]";function jMe(e){return ub(e)&&wI(e)==UMe}var Dse=YA&&YA.isMap,WMe=Dse?Tte(Dse):jMe,GMe=WMe,KMe="[object Set]";function YMe(e){return ub(e)&&wI(e)==KMe}var Ise=YA&&YA.isSet,qMe=Ise?Tte(Ise):YMe,XMe=qMe,ZMe=1,QMe=2,JMe=4,dhe="[object Arguments]",eNe="[object Array]",tNe="[object Boolean]",nNe="[object Date]",rNe="[object Error]",vhe="[object Function]",oNe="[object GeneratorFunction]",aNe="[object Map]",iNe="[object Number]",hhe="[object Object]",sNe="[object RegExp]",lNe="[object Set]",uNe="[object String]",cNe="[object Symbol]",fNe="[object WeakMap]",dNe="[object ArrayBuffer]",vNe="[object DataView]",hNe="[object Float32Array]",pNe="[object Float64Array]",mNe="[object Int8Array]",gNe="[object Int16Array]",yNe="[object Int32Array]",bNe="[object Uint8Array]",_Ne="[object Uint8ClampedArray]",wNe="[object Uint16Array]",CNe="[object Uint32Array]",ju={};ju[dhe]=ju[eNe]=ju[dNe]=ju[vNe]=ju[tNe]=ju[nNe]=ju[hNe]=ju[pNe]=ju[mNe]=ju[gNe]=ju[yNe]=ju[aNe]=ju[iNe]=ju[hhe]=ju[sNe]=ju[lNe]=ju[uNe]=ju[cNe]=ju[bNe]=ju[_Ne]=ju[wNe]=ju[CNe]=!0;ju[rNe]=ju[vhe]=ju[fNe]=!1;function KD(e,t,n,r,i,l){var u,f=t&ZMe,v=t&QMe,h=t&JMe;if(n&&(u=i?n(e,r,i,l):n(e)),u!==void 0)return u;if(!wh(e))return e;var g=_h(e);if(g){if(u=gMe(e),!f)return Yve(e,u)}else{var y=wI(e),w=y==vhe||y==oNe;if(yI(e))return ihe(e,f);if(y==hhe||y==dhe||w&&!i){if(u=v||w?{}:fhe(e),!f)return v?oMe(e,qOe(u,e)):tMe(e,YOe(u,e))}else{if(!ju[y])return i?e:{};u=VMe(e,y,f)}}l||(l=new Jg);var C=l.get(e);if(C)return C;l.set(e,u),XMe(e)?e.forEach(function(B){u.add(KD(B,t,n,B,e,l))}):GMe(e)&&e.forEach(function(B,F){u.set(F,KD(B,t,n,F,e,l))});var S=h?v?aMe:uJ:v?JI:QI,T=g?void 0:S(e);return V7e(T||e,function(B,F){T&&(F=B,B=e[F]),xte(u,F,KD(B,t,n,F,e,l))}),u}var xNe=4;function Rse(e){return KD(e,xNe)}var ENe=1,SNe=4;function xH(e){return KD(e,ENe|SNe)}var TNe="__lodash_hash_undefined__";function ANe(e){return this.__data__.set(e,TNe),this}function kNe(e){return this.__data__.has(e)}function CI(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new k3;++t<n;)this.add(e[t])}CI.prototype.add=CI.prototype.push=ANe;CI.prototype.has=kNe;function ONe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function phe(e,t){return e.has(t)}var MNe=1,NNe=2;function mhe(e,t,n,r,i,l){var u=n&MNe,f=e.length,v=t.length;if(f!=v&&!(u&&v>f))return!1;var h=l.get(e),g=l.get(t);if(h&&g)return h==t&&g==e;var y=-1,w=!0,C=n&NNe?new CI:void 0;for(l.set(e,t),l.set(t,e);++y<f;){var S=e[y],T=t[y];if(r)var B=u?r(T,S,y,t,e,l):r(S,T,y,e,t,l);if(B!==void 0){if(B)continue;w=!1;break}if(C){if(!ONe(t,function(F,R){if(!phe(C,R)&&(S===F||i(S,F,n,r,l)))return C.push(R)})){w=!1;break}}else if(!(S===T||i(S,T,n,r,l))){w=!1;break}}return l.delete(e),l.delete(t),w}function DNe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Rte(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var INe=1,RNe=2,LNe="[object Boolean]",BNe="[object Date]",PNe="[object Error]",FNe="[object Map]",$Ne="[object Number]",zNe="[object RegExp]",HNe="[object Set]",VNe="[object String]",UNe="[object Symbol]",jNe="[object ArrayBuffer]",WNe="[object DataView]",Lse=Mm?Mm.prototype:void 0,hZ=Lse?Lse.valueOf:void 0;function GNe(e,t,n,r,i,l,u){switch(n){case WNe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jNe:return!(e.byteLength!=t.byteLength||!l(new CH(e),new CH(t)));case LNe:case BNe:case $Ne:return XI(+e,+t);case PNe:return e.name==t.name&&e.message==t.message;case zNe:case VNe:return e==t+"";case FNe:var f=DNe;case HNe:var v=r&INe;if(f||(f=Rte),e.size!=t.size&&!v)return!1;var h=u.get(e);if(h)return h==t;r|=RNe,u.set(e,t);var g=mhe(f(e),f(t),r,i,l,u);return u.delete(e),g;
vendor: 1,174 bytes, line 21
21case UNe:if(hZ)return hZ.call(e)==hZ.call(t)}return!1}var KNe=1,YNe=Object.prototype,qNe=YNe.hasOwnProperty;function XNe(e,t,n,r,i,l){var u=n&KNe,f=uJ(e),v=f.length,h=uJ(t),g=h.length;if(v!=g&&!u)return!1;for(var y=v;y--;){var w=f[y];if(!(u?w in t:qNe.call(t,w)))return!1}var C=l.get(e),S=l.get(t);if(C&&S)return C==t&&S==e;var T=!0;l.set(e,t),l.set(t,e);for(var B=u;++y<v;){w=f[y];var F=e[w],R=t[w];if(r)var N=u?r(R,F,w,t,e,l):r(F,R,w,e,t,l);if(!(N===void 0?F===R||i(F,R,n,r,l):N)){T=!1;break}B||(B=w=="constructor")}if(T&&!B){var A=e.constructor,X=t.constructor;A!=X&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof X=="function"&&X instanceof X)&&(T=!1)}return l.delete(e),l.delete(t),T}var ZNe=1,Bse="[object Arguments]",Pse="[object Array]",$$="[object Object]",QNe=Object.prototype,Fse=QNe.hasOwnProperty;function JNe(e,t,n,r,i,l){var u=_h(e),f=_h(t),v=u?Pse:wI(e),h=f?Pse:wI(t);v=v==Bse?$$:v,h=h==Bse?$$:h;var g=v==$$,y=h==$$,w=v==h;if(w&&yI(e)){if(!yI(t))return!1;u=!0,g=!1}if(w&&!g)return l||(l=new Jg),u||Ate(e)?mhe(e,t,n,r,i,l):GNe(e,t,v,n,r,i,l);if(!(n&ZNe)){var C=g&&Fse.call(e,"__wrapped__"),S=y&&Fse.call(t,"__wrapped__");
vendor: 6,122 bytes, line 21
21if(C||S){var T=C?e.value():e,B=S?t.value():t;return l||(l=new Jg),i(T,B,n,r,l)}}return w?(l||(l=new Jg),XNe(e,t,n,r,i,l)):!1}function SV(e,t,n,r,i){return e===t?!0:e==null||t==null||!ub(e)&&!ub(t)?e!==e&&t!==t:JNe(e,t,n,r,SV,i)}var eDe=1,tDe=2;function nDe(e,t,n,r){var i=n.length,l=i,u=!r;if(e==null)return!l;for(e=Object(e);i--;){var f=n[i];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++i<l;){f=n[i];var v=f[0],h=e[v],g=f[1];if(u&&f[2]){if(h===void 0&&!(v in e))return!1}else{var y=new Jg;if(r)var w=r(h,g,v,e,t,y);if(!(w===void 0?SV(g,h,eDe|tDe,r,y):w))return!1}}return!0}function ghe(e){return e===e&&!wh(e)}function rDe(e){for(var t=QI(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ghe(i)]}return t}function yhe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function oDe(e){var t=rDe(e);return t.length==1&&t[0][2]?yhe(t[0][0],t[0][1]):function(n){return n===e||nDe(n,e,t)}}function aDe(e,t){return e!=null&&t in Object(e)}function iDe(e,t,n){t=EV(t,e);for(var r=-1,i=t.length,l=!1;++r<i;){var u=eR(t[r]);if(!(l=e!=null&&n(e,u)))break;e=e[u]}return l||++r!=i?l:(i=e==null?0:e.length,!!i&&Ete(i)&&_V(u,i)&&(_h(e)||gI(e)))}function bhe(e,t){return e!=null&&iDe(e,t,aDe)}var sDe=1,lDe=2;function uDe(e,t){return kte(e)&&ghe(t)?yhe(eR(e),t):function(n){var r=lu(n,e);return r===void 0&&r===t?bhe(n,e):SV(t,r,sDe|lDe)}}function cDe(e){return function(t){return t==null?void 0:t[e]}}function fDe(e){return function(t){return Ote(t,e)}}function dDe(e){return kte(e)?cDe(eR(e)):fDe(e)}function vDe(e){return typeof e=="function"?e:e==null?_te:typeof e=="object"?_h(e)?uDe(e[0],e[1]):oDe(e):dDe(e)}function hDe(e){return function(t,n,r){for(var i=-1,l=Object(t),u=r(t),f=u.length;f--;){var v=u[e?f:++i];if(n(l[v],v,l)===!1)break}return t}}var pDe=hDe(),_he=pDe;function mDe(e,t){return e&&_he(e,t,QI)}function gDe(e,t){return function(n,r){if(n==null)return n;if(!h7(n))return e(n,r);for(var i=n.length,l=t?i:-1,u=Object(n);(t?l--:++l<i)&&r(u[l],l,u)!==!1;);return n}}var yDe=gDe(mDe),bDe=yDe,_De=function(){return l2.Date.now()},pZ=_De,wDe="Expected a function",CDe=Math.max,xDe=Math.min;function Lv(e,t,n){var r,i,l,u,f,v,h=0,g=!1,y=!1,w=!0;if(typeof e!="function")throw new TypeError(wDe);t=dse(t)||0,wh(n)&&(g=!!n.leading,y="maxWait"in n,l=y?CDe(dse(n.maxWait)||0,t):l,w="trailing"in n?!!n.trailing:w);function C(Z){var z=r,Y=i;return r=i=void 0,h=Z,u=e.apply(Y,z),u}function S(Z){return h=Z,f=setTimeout(F,t),g?C(Z):u}function T(Z){var z=Z-v,Y=Z-h,Q=t-z;return y?xDe(Q,l-Y):Q}function B(Z){var z=Z-v,Y=Z-h;return v===void 0||z>=t||z<0||y&&Y>=l}function F(){var Z=pZ();if(B(Z))return R(Z);f=setTimeout(F,T(Z))}function R(Z){return f=void 0,w&&r?C(Z):(r=i=void 0,u)}function N(){f!==void 0&&clearTimeout(f),h=0,r=v=i=f=void 0}function A(){return f===void 0?u:R(pZ())}function X(){var Z=pZ(),z=B(Z);if(r=arguments,i=this,v=Z,z){if(f===void 0)return S(v);if(y)return clearTimeout(f),f=setTimeout(F,t),C(v)}return f===void 0&&(f=setTimeout(F,t)),u}return X.cancel=N,X.flush=A,X}function dJ(e,t,n){(n!==void 0&&!XI(e[t],n)||n===void 0&&!(t in e))&&Cte(e,t,n)}function whe(e){return ub(e)&&h7(e)}function vJ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function EDe(e){return ZI(e,JI(e))}function SDe(e,t,n,r,i,l,u){var f=vJ(e,n),v=vJ(t,n),h=u.get(v);if(h){dJ(e,n,h);return}var g=l?l(f,v,n+"",e,t,u):void 0,y=g===void 0;if(y){var w=_h(v),C=!w&&yI(v),S=!w&&!C&&Ate(v);g=v,w||C||S?_h(f)?g=f:whe(f)?g=Yve(f):C?(y=!1,g=ihe(v,!0)):S?(y=!1,g=che(v,!0)):g=[]:HOe(v)||gI(v)?(g=f,gI(f)?g=EDe(f):(!wh(f)||wte(f))&&(g=fhe(v))):y=!1}y&&(u.set(v,g),i(g,v,r,l,u),u.delete(v)),dJ(e,n,g)}function Che(e,t,n,r,i){e!==t&&_he(t,function(l,u){if(i||(i=new Jg),wh(l))SDe(e,t,u,n,Che,r,i);else{var f=r?r(vJ(e,u),l,u+"",e,t,i):void 0;f===void 0&&(f=l),dJ(e,u,f)}},JI)}function TDe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ADe(e,t){var n=-1,r=h7(e)?Array(e.length):[];return bDe(e,function(i,l,u){r[++n]=t(i,l,u)}),r}function kDe(e,t){var n=_h(e)?Gve:ADe;return n(e,vDe(t))}function ODe(e,t){return tR(kDe(e,t),1)}var MDe=1/0;function NDe(e){var t=e==null?0:e.length;return t?tR(e,MDe):[]}function EH(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function p0(e,t){return SV(e,t)}function jf(e){return e==null}function DDe(e){return e===void 0}var IDe=eke(function(e,t,n){Che(e,t,n)}),xhe=IDe;function Ehe(e,t,n,r){if(!wh(e))return e;t=EV(t,e);for(var i=-1,l=t.length,u=l-1,f=e;f!=null&&++i<l;){var v=eR(t[i]),h=n;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(i!=u){var g=f[v];h=r?r(g,v,f):void 0,h===void 0&&(h=wh(g)?g:_V(t[i+1])?[]:{})}xte(f,v,h),f=f[v]}return e}function RDe(e,t,n){for(var r=-1,i=t.length,l={};++r<i;){var u=t[r],f=Ote(e,u);n(f,u)&&Ehe(l,EV(u,e),f)}return l}function LDe(e,t){return RDe(e,t,function(n,r){return bhe(e,r)})}var BDe=ROe(function(e,t){return e==null?{}:LDe(e,t)}),h3=BDe;function PDe(e,t,n){return e==null?e:Ehe(e,t,n)}var FDe="Expected a function";function F8(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(FDe);return wh(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lv(e,t,{leading:r,maxWait:t,trailing:i})}var $De=1/0,zDe=kA&&1/Rte(new kA([,-0]))[1]==$De?function(e){return new kA(e)}:D7e,HDe=zDe,VDe=200;function UDe(e,t,n){var r=-1,i=K7e,l=e.length,u=!0,f=[],v=f;if(n)u=!1,i=TDe;else if(l>=VDe){var h=t?null:HDe(e);if(h)return Rte(h);u=!1,i=phe,v=new CI}else v=t?[]:f;e:for(;++r<l;){var g=e[r],y=t?t(g):g;if(g=n||g!==0?g:0,u&&y===y){for(var w=v.length;w--;)if(v[w]===y)continue e;t&&v.push(y),f.push(g)}else i(v,y,n)||(v!==f&&v.push(y),f.push(g))}return f}var jDe=Zve(function(e){return UDe(tR(e,1,whe,!0))}),mZ=jDe;const Vd=e=>e===void 0,Wf=e=>typeof e=="boolean",$o=e=>typeof e=="number",Sm=e=>!e&&e!==0||Oa(e)&&e.length===0||Qs(e)&&!Object.keys(e).length,Nm=e=>typeof Element=="undefined"?!1:e instanceof Element,WDe=e=>jf(e),GDe=e=>Ga(e)?!Number.isNaN(Number(e)):!1,She=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),nb=e=>HAe(e),xI=e=>Object.keys(e),KDe=e=>
21Object.entries(e),Dz=(e,t,n)=>({get value(){return lu(e,t,n)},set value(r){PDe(e,t,r)}});class YDe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Gf(e,t){throw new YDe(`[${e}] ${t}`)}const The=(e="")=>e.split(" ").filter(t=>!!t.trim()),e2=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},ob=(e,t)=>{!e||!t.trim()||e.classList.add(...The(t))},m0=(e,t)=>{!e||!t.trim()||e.classList.remove(...The(t))},R8=(e,t)=>{var n;if(!_i||!e||!t)return"";let r=Uve(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[r]:""}catch{return e.style[r]}};function Nc(e,t="px"){if(!e)return"";if($o(e)||GDe(e))return`${e}${t}`;if(Ga(e))return e}const qDe=(e,t)=>{if(!_i)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=R8(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},Lte=(e,t)=>{if(!_i)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(qDe(n,t))return n;n=n.parentNode}return n};let z$;const Ahe=e=>{var t;if(!_i)return 0;if(z$!==void 0)return z$;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const l=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),z$=r-l,z$};function khe(e,t){if(!_i)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((v,h)=>v+h.offsetTop,0),l=i+t.offsetHeight,u=e.scrollTop,f=u+e.clientHeight;i<u?e.scrollTop=i:l>f&&(e.scrollTop=l-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var XDe={name:"AddLocation"},Qt=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},ZDe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},QDe=ce("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),JDe=ce("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),eIe=ce("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1),tIe=[QDe,JDe,eIe];function nIe(e,t,n,r,i,l){return Ce(),Ie("svg",ZDe,tIe)}var rIe=Qt(XDe,[["render",nIe],["__file","add-location.vue"]]),oIe={name:"Aim"},aIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iIe=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sIe=ce("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),lIe=[iIe,sIe];function uIe(e,t,n,r,i,l){return Ce(),Ie("svg",aIe,lIe)}var cIe=Qt(oIe,[["render",uIe],["__file","aim.vue"]]),fIe={name:"AlarmClock"},dIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vIe=ce("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),hIe=ce("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),pIe=[vIe,hIe];function mIe(e,t,n,r,i,l){return Ce(),Ie("svg",dIe,pIe)}var gIe=Qt(fIe,[["render",mIe],["__file","alarm-clock.vue"]]),yIe={name:"Apple"},bIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_Ie=ce("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),wIe=[_Ie];function CIe(e,t,n,r,i,l){return Ce(),Ie("svg",bIe,wIe)}var xIe=Qt(yIe,[["render",CIe],["__file","apple.vue"]]),EIe={name:"ArrowDownBold"},SIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},TIe=ce("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),AIe=[TIe];function kIe(e,t,n,r,i,l){return Ce(),Ie("svg",SIe,AIe)}
21var OIe=Qt(EIe,[["render",kIe],["__file","arrow-down-bold.vue"]]),MIe={name:"ArrowDown"},NIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},DIe=ce("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),IIe=[DIe];function RIe(e,t,n,r,i,l){return Ce(),Ie("svg",NIe,IIe)}var O3=Qt(MIe,[["render",RIe],["__file","arrow-down.vue"]]),LIe={name:"ArrowLeftBold"},BIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PIe=ce("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),FIe=[PIe];function $Ie(e,t,n,r,i,l){return Ce(),Ie("svg",BIe,FIe)}var zIe=Qt(LIe,[["render",$Ie],["__file","arrow-left-bold.vue"]]),HIe={name:"ArrowLeft"},VIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UIe=ce("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),jIe=[UIe];function WIe(e,t,n,r,i,l){return Ce(),Ie("svg",VIe,jIe)}var w3=Qt(HIe,[["render",WIe],["__file","arrow-left.vue"]]),GIe={name:"ArrowRightBold"},KIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},YIe=ce("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),qIe=[YIe];function XIe(e,t,n,r,i,l){return Ce(),Ie("svg",KIe,qIe)}var ZIe=Qt(GIe,[["render",XIe],["__file","arrow-right-bold.vue"]]),QIe={name:"ArrowRight"},JIe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eRe=ce("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),tRe=[eRe];function nRe(e,t,n,r,i,l){return Ce(),Ie("svg",JIe,tRe)}var Nv=Qt(QIe,[["render",nRe],["__file","arrow-right.vue"]]),rRe={name:"ArrowUpBold"},oRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aRe=ce("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1),iRe=[aRe];function sRe(e,t,n,r,i,l){return Ce(),Ie("svg",oRe,iRe)}var lRe=Qt(rRe,[["render",sRe],["__file","arrow-up-bold.vue"]]),uRe={name:"ArrowUp"},cRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fRe=ce("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),dRe=[fRe];function vRe(e,t,n,r,i,l){return Ce(),Ie("svg",cRe,dRe)}var nR=Qt(uRe,[["render",vRe],["__file","arrow-up.vue"]]),hRe={name:"Avatar"},pRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mRe=ce("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),gRe=[mRe];function yRe(e,t,n,r,i,l){return Ce(),Ie("svg",pRe,gRe)}var bRe=Qt(hRe,[["render",yRe],["__file","avatar.vue"]]),_Re={name:"Back"},wRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CRe=ce("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),xRe=ce("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),ERe=[CRe,xRe];function SRe(e,t,n,r,i,l){return Ce(),Ie("svg",wRe,ERe)}var Ohe=Qt(_Re,[["render",SRe],["__file","back.vue"]]),TRe={name:"Baseball"},ARe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kRe=ce("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),ORe=ce("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1),MRe=[kRe,ORe];function NRe(e,t,n,r,i,l){return Ce(),Ie("svg",ARe,MRe)}var DRe=Qt(TRe,[["render",NRe],["__file","baseball.vue"]]),IRe={name:"Basketball"},RRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LRe=ce("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1),BRe=[LRe];function PRe(e,t,n,r,i,l){return Ce(),Ie("svg",RRe,BRe)}var FRe=Qt(IRe,[["render",PRe],["__file","basketball.vue"]]),$Re={name:"BellFilled"},zRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HRe=ce("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1),VRe=[HRe];function URe(e,t,n,r,i,l){return Ce(),Ie("svg",zRe,VRe)}var jRe=Qt($Re,[["render",URe],["__file","bell-filled.vue"]]),WRe={name:"Bell"},GRe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KRe=ce("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),YRe=ce("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),qRe=ce("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1),XRe=[KRe,YRe,qRe];function ZRe(e,t,n,r,i,l){return Ce(),Ie("svg",GRe,XRe)}var QRe=Qt(WRe,[["render",ZRe],["__file","bell.vue"]]),JRe={name:"Bicycle"},eLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}
21,tLe=Q9e('<path fill="currentColor" d="M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"></path><path fill="currentColor" d="M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z"></path><path fill="currentColor" d="m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"></path>',5),nLe=[tLe];function rLe(e,t,n,r,i,l){return Ce(),Ie("svg",eLe,nLe)}var oLe=Qt(JRe,[["render",rLe],["__file","bicycle.vue"]]),aLe={name:"BottomLeft"},iLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sLe=ce("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),lLe=ce("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1),uLe=[sLe,lLe];function cLe(e,t,n,r,i,l){return Ce(),Ie("svg",iLe,uLe)}var fLe=Qt(aLe,[["render",cLe],["__file","bottom-left.vue"]]),dLe={name:"BottomRight"},vLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hLe=ce("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),pLe=ce("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1),mLe=[hLe,pLe];function gLe(e,t,n,r,i,l){return Ce(),Ie("svg",vLe,mLe)}var yLe=Qt(dLe,[["render",gLe],["__file","bottom-right.vue"]]),bLe={name:"Bottom"},_Le={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wLe=ce("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),CLe=[wLe];function xLe(e,t,n,r,i,l){return Ce(),Ie("svg",_Le,CLe)}var ELe=Qt(bLe,[["render",xLe],["__file","bottom.vue"]]),SLe={name:"Bowl"},TLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ALe=ce("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1),kLe=[ALe];function OLe(e,t,n,r,i,l){return Ce(),Ie("svg",TLe,kLe)}var MLe=Qt(SLe,[["render",OLe],["__file","bowl.vue"]]),NLe={name:"Box"},DLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ILe=ce("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),RLe=ce("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),LLe=ce("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1),BLe=[ILe,RLe,LLe];function PLe(e,t,n,r,i,l){return Ce(),Ie("svg",DLe,BLe)}var FLe=Qt(NLe,[["render",PLe],["__file","box.vue"]]),$Le={name:"Briefcase"},zLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HLe=ce("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1),VLe=[HLe];function ULe(e,t,n,r,i,l){return Ce(),Ie("svg",zLe,VLe)}var jLe=Qt($Le,[["render",ULe],["__file","briefcase.vue"]]),WLe={name:"BrushFilled"},GLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KLe=ce("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1),YLe=[KLe];function qLe(e,t,n,r,i,l){return Ce(),Ie("svg",GLe,YLe)}var XLe=Qt(WLe,[["render",qLe],["__file","brush-filled.vue"]]),ZLe={name:"Brush"},QLe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JLe=ce("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1),eBe=[JLe];function tBe(e,t,n,r,i,l){return Ce(),Ie("svg",QLe,eBe)}var nBe=Qt(ZLe,[["render",tBe],["__file","brush.vue"]]),rBe={name:"Burger"},oBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aBe=ce("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1),iBe=[aBe];function sBe(e,t,n,r,i,l){return Ce(),Ie("svg",oBe,iBe)}var lBe=Qt(rBe,[["render",sBe],["__file","burger.vue"]]),uBe={name:"Calendar"},cBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fBe=ce("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),dBe=[fBe];function vBe(e,t,n,r,i,l){return Ce(),Ie("svg",cBe,dBe)}var Mhe=Qt(uBe,[["render",vBe],["__file","calendar.vue"]]),hBe={name:"CameraFilled"},pBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mBe=ce("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),gBe=[mBe];function yBe(e,t,n,r,i,l){return Ce(),Ie("svg",pBe,gBe)}var bBe=Qt(hBe,[["render",yBe],["__file","camera-filled.vue"]]),_Be={name:"Camera"},wBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CBe=ce("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1),xBe=[CBe];function EBe(e,t,n,r,i,l){return Ce(),Ie("svg",wBe,xBe)}var SBe=Qt(_Be,[["render",EBe],["__file","camera.vue"]]),TBe={name:"CaretBottom"},ABe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kBe=ce("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),OBe=[kBe];function MBe(e,t,n,r,i,l){return Ce(),Ie("svg",ABe,OBe)}var NBe=Qt(TBe,[["render",MBe],["__file","caret-bottom.vue"]]),DBe={name:"CaretLeft"},IBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RBe=ce("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1),LBe=[RBe];function BBe(e,t,n,r,i,l){return Ce(),Ie("svg",IBe,LBe)}var PBe=Qt(DBe,[["render",BBe],["__file","caret-left.vue"]]),FBe={name:"CaretRight"},$Be={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zBe=ce("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),HBe=[zBe];function VBe(e,t,n,r,i,l){return Ce(),Ie("svg",$Be,HBe)}var Bte=Qt(FBe,[["render",VBe],["__file","caret-right.vue"]]),UBe={name:"CaretTop"},jBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WBe=ce("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),GBe=[WBe];function KBe(e,t,n,r,i,l){return Ce(),Ie("svg",jBe,GBe)}var Nhe=Qt(UBe,[["render",KBe],["__file","caret-top.vue"]]),YBe={name:"Cellphone"},qBe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XBe=ce("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),ZBe=[XBe];function QBe(e,t,n,r,i,l){return Ce(),Ie("svg",qBe,ZBe)}var JBe=Qt(YBe,[["render",QBe],["__file","cellphone.vue"]]),ePe={name:"ChatDotRound"},tPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nPe=ce("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68
2111.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),rPe=ce("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),oPe=[nPe,rPe];function aPe(e,t,n,r,i,l){return Ce(),Ie("svg",tPe,oPe)}var iPe=Qt(ePe,[["render",aPe],["__file","chat-dot-round.vue"]]),sPe={name:"ChatDotSquare"},lPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uPe=ce("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),cPe=ce("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),fPe=[uPe,cPe];function dPe(e,t,n,r,i,l){return Ce(),Ie("svg",lPe,fPe)}var vPe=Qt(sPe,[["render",dPe],["__file","chat-dot-square.vue"]]),hPe={name:"ChatLineRound"},pPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mPe=ce("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68
2111.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),gPe=ce("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),yPe=[mPe,gPe];function bPe(e,t,n,r,i,l){return Ce(),Ie("svg",pPe,yPe)}var _Pe=Qt(hPe,[["render",bPe],["__file","chat-line-round.vue"]]),wPe={name:"ChatLineSquare"},CPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xPe=ce("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),EPe=ce("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),SPe=[xPe,EPe];function TPe(e,t,n,r,i,l){return Ce(),Ie("svg",CPe,SPe)}var APe=Qt(wPe,[["render",TPe],["__file","chat-line-square.vue"]]),kPe={name:"ChatRound"},OPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MPe=ce("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1),NPe=[MPe];function DPe(e,t,n,r,i,l){return Ce(),Ie("svg",OPe,NPe)}var IPe=Qt(kPe,[["render",DPe],["__file","chat-round.vue"]]),RPe={name:"ChatSquare"},LPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BPe=ce("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),PPe=[BPe];function FPe(e,t,n,r,i,l){return Ce(),Ie("svg",LPe,PPe)}var $Pe=Qt(RPe,[["render",FPe],["__file","chat-square.vue"]]),zPe={name:"Check"},HPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},VPe=ce("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),UPe=[VPe];function jPe(e,t,n,r,i,l){return Ce(),Ie("svg",HPe,UPe)}var p7=Qt(zPe,[["render",jPe],["__file","check.vue"]]),WPe={name:"Checked"},GPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KPe=ce("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1),YPe=[KPe];function qPe(e,t,n,r,i,l){return Ce(),Ie("svg",GPe,YPe)}var XPe=Qt(WPe,[["render",qPe],["__file","checked.vue"]]),ZPe={name:"Cherry"},QPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JPe=ce("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1),eFe=[JPe];function tFe(e,t,n,r,i,l){return Ce(),Ie("svg",QPe,eFe)}var nFe=Qt(ZPe,[["render",tFe],["__file","cherry.vue"]]),rFe={name:"Chicken"},oFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aFe=ce("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208
21-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1),iFe=[aFe];function sFe(e,t,n,r,i,l){return Ce(),Ie("svg",oFe,iFe)}var lFe=Qt(rFe,[["render",sFe],["__file","chicken.vue"]]),uFe={name:"ChromeFilled"},cFe={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},fFe=ce("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"},null,-1),dFe=ce("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z"},null,-1),vFe=ce("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"},null,-1),hFe=[fFe,dFe,vFe];function pFe(e,t,n,r,i,l){return Ce(),Ie("svg",cFe,hFe)}var mFe=Qt(uFe,[["render",pFe],["__file","chrome-filled.vue"]]),gFe={name:"CircleCheckFilled"},yFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bFe=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_Fe=[bFe];function wFe(e,t,n,r,i,l){return Ce(),Ie("svg",yFe,_Fe)}var Dhe=Qt(gFe,[["render",wFe],["__file","circle-check-filled.vue"]]),CFe={name:"CircleCheck"},xFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EFe=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),SFe=ce("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),TFe=[EFe,SFe];function AFe(e,t,n,r,i,l){return Ce(),Ie("svg",xFe,TFe)}
21var TV=Qt(CFe,[["render",AFe],["__file","circle-check.vue"]]),kFe={name:"CircleCloseFilled"},OFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MFe=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),NFe=[MFe];function DFe(e,t,n,r,i,l){return Ce(),Ie("svg",OFe,NFe)}var AV=Qt(kFe,[["render",DFe],["__file","circle-close-filled.vue"]]),IFe={name:"CircleClose"},RFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LFe=ce("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),BFe=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),PFe=[LFe,BFe];function FFe(e,t,n,r,i,l){return Ce(),Ie("svg",RFe,PFe)}var M3=Qt(IFe,[["render",FFe],["__file","circle-close.vue"]]),$Fe={name:"CirclePlusFilled"},zFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HFe=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1),VFe=[HFe];function UFe(e,t,n,r,i,l){return Ce(),Ie("svg",zFe,VFe)}var jFe=Qt($Fe,[["render",UFe],["__file","circle-plus-filled.vue"]]),WFe={name:"CirclePlus"},GFe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KFe=ce("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),YFe=ce("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),qFe=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),XFe=[KFe,YFe,qFe];function ZFe(e,t,n,r,i,l){return Ce(),Ie("svg",GFe,XFe)}var QFe=Qt(WFe,[["render",ZFe],["__file","circle-plus.vue"]]),JFe={name:"Clock"},e$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},t$e=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),n$e=ce("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),r$e=ce("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),o$e=[t$e,n$e,r$e];function a$e(e,t,n,r,i,l){return Ce(),Ie("svg",e$e,o$e)}var Pte=Qt(JFe,[["render",a$e],["__file","clock.vue"]]),i$e={name:"CloseBold"},s$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},l$e=ce("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),u$e=[l$e];function c$e(e,t,n,r,i,l){return Ce(),Ie("svg",s$e,u$e)}var f$e=Qt(i$e,[["render",c$e],["__file","close-bold.vue"]]),d$e={name:"Close"},v$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},h$e=ce("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),p$e=[h$e];function m$e(e,t,n,r,i,l){return Ce(),Ie("svg",v$e,p$e)}var Dm=Qt(d$e,[["render",m$e],["__file","close.vue"]]),g$e={name:"Cloudy"},y$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},b$e=ce("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_$e=[b$e];function w$e(e,t,n,r,i,l){return Ce(),Ie("svg",y$e,_$e)}var C$e=Qt(g$e,[["render",w$e],["__file","cloudy.vue"]]),x$e={name:"CoffeeCup"},E$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S$e=ce("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),T$e=[S$e];function A$e(e,t,n,r,i,l){return Ce(),Ie("svg",E$e,T$e)}var k$e=Qt(x$e,[["render",A$e],["__file","coffee-cup.vue"]]),O$e={name:"Coffee"},M$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},N$e=ce("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),D$e=[N$e];function I$e(e,t,n,r,i,l){return Ce(),Ie("svg",M$e,D$e)}var R$e=Qt(O$e,[["render",I$e],["__file","coffee.vue"]]),L$e={name:"Coin"},B$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},P$e=ce("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),F$e=ce("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),$$e=ce("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),z$e=[P$e,F$e,$$e];function H$e(e,t,n,r,i,l){return Ce(),Ie("svg",B$e,z$e)}var V$e=Qt(L$e,[["render",H$e],["__file","coin.vue"]]),U$e={name:"ColdDrink"},j$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W$e=ce("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1),G$e=[W$e];function K$e(e,t,n,r,i,l){return Ce(),Ie("svg",j$e,G$e)}var Y$e=Qt(U$e,[["render",K$e],["__file","cold-drink.vue"]]),q$e={name:"CollectionTag"},X$e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Z$e=ce("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1),Q$e=[Z$e];function J$e(e,t,n,r,i,l){return Ce(),Ie("svg",X$e,Q$e)}var eze=Qt(q$e,[["render",J$e],["__file","collection-tag.vue"]]),tze={name:"Collection"},nze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rze=ce("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),oze=ce("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),aze=[rze,oze];function ize(e,t,n,r,i,l){return Ce(),Ie("svg",nze,aze)}var sze=Qt(tze,[["render",ize],["__file","collection.vue"]]),lze={name:"Comment"},uze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cze=ce("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),fze=[cze];function dze(e,t,n,r,i,l){return Ce(),Ie("svg",uze,fze)}var vze=Qt(lze,[["render",dze],["__file","comment.vue"]]),hze={name:"Compass"},pze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mze=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm
210 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),gze=ce("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1),yze=[mze,gze];function bze(e,t,n,r,i,l){return Ce(),Ie("svg",pze,yze)}var _ze=Qt(hze,[["render",bze],["__file","compass.vue"]]),wze={name:"Connection"},Cze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xze=ce("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),Eze=ce("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1),Sze=[xze,Eze];function Tze(e,t,n,r,i,l){return Ce(),Ie("svg",Cze,Sze)}var Aze=Qt(wze,[["render",Tze],["__file","connection.vue"]]),kze={name:"Coordinate"},Oze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mze=ce("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),Nze=ce("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),Dze=[Mze,Nze];function Ize(e,t,n,r,i,l){return Ce(),Ie("svg",Oze,Dze)}var Rze=Qt(kze,[["render",Ize],["__file","coordinate.vue"]]),Lze={name:"CopyDocument"},Bze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pze=ce("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),Fze=ce("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),$ze=[Pze,Fze];function zze(e,t,n,r,i,l){return Ce(),Ie("svg",Bze,$ze)}var Hze=Qt(Lze,[["render",zze],["__file","copy-document.vue"]]),Vze={name:"Cpu"},Uze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jze=ce("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),Wze=ce("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1),Gze=[jze,Wze];function Kze(e,t,n,r,i,l){return Ce(),Ie("svg",Uze,Gze)}var Yze=Qt(Vze,[["render",Kze],["__file","cpu.vue"]]),qze={name:"CreditCard"},Xze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zze=ce("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),Qze=ce("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1),Jze=[Zze,Qze];function eHe(e,t,n,r,i,l){return Ce(),Ie("svg",Xze,Jze)}var tHe=Qt(qze,[["render",eHe],["__file","credit-card.vue"]]),nHe={name:"Crop"},rHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oHe=ce("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),aHe=ce("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1),iHe=[oHe,aHe];function sHe(e,t,n,r,i,l){return Ce(),Ie("svg",rHe,iHe)}var lHe=Qt(nHe,[["render",sHe],["__file","crop.vue"]]),uHe={name:"DArrowLeft"},cHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fHe=ce("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),dHe=[fHe];function vHe(e,t,n,r,i,l){return Ce(),Ie("svg",cHe,dHe)}var kC=Qt(uHe,[["render",vHe],["__file","d-arrow-left.vue"]]),hHe={name:"DArrowRight"},pHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mHe=ce("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),gHe=[mHe];function yHe(e,t,n,r,i,l){return Ce(),Ie("svg",pHe,gHe)}var OC=Qt(hHe,[["render",yHe],["__file","d-arrow-right.vue"]]),bHe={name:"DCaret"},_He={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wHe=ce("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576
21h576L512 896 224 576z"},null,-1),CHe=[wHe];function xHe(e,t,n,r,i,l){return Ce(),Ie("svg",_He,CHe)}var EHe=Qt(bHe,[["render",xHe],["__file","d-caret.vue"]]),SHe={name:"DataAnalysis"},THe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},AHe=ce("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1),kHe=[AHe];function OHe(e,t,n,r,i,l){return Ce(),Ie("svg",THe,kHe)}var MHe=Qt(SHe,[["render",OHe],["__file","data-analysis.vue"]]),NHe={name:"DataBoard"},DHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},IHe=ce("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),RHe=ce("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),LHe=ce("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1),BHe=[IHe,RHe,LHe];function PHe(e,t,n,r,i,l){return Ce(),Ie("svg",DHe,BHe)}var FHe=Qt(NHe,[["render",PHe],["__file","data-board.vue"]]),$He={name:"DataLine"},zHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HHe=ce("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1),VHe=[HHe];function UHe(e,t,n,r,i,l){return Ce(),Ie("svg",zHe,VHe)}var jHe=Qt($He,[["render",UHe],["__file","data-line.vue"]]),WHe={name:"DeleteFilled"},GHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KHe=ce("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),YHe=[KHe];function qHe(e,t,n,r,i,l){return Ce(),Ie("svg",GHe,YHe)}var XHe=Qt(WHe,[["render",qHe],["__file","delete-filled.vue"]]),ZHe={name:"DeleteLocation"},QHe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JHe=ce("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),eVe=ce("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),tVe=ce("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),nVe=[JHe,eVe,tVe];function rVe(e,t,n,r,i,l){return Ce(),Ie("svg",QHe,nVe)}var oVe=Qt(ZHe,[["render",rVe],["__file","delete-location.vue"]]),aVe={name:"Delete"},iVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sVe=ce("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),lVe=[sVe];function uVe(e,t,n,r,i,l){return Ce(),Ie("svg",iVe,lVe)}var Ihe=Qt(aVe,[["render",uVe],["__file","delete.vue"]]),cVe={name:"Dessert"},fVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dVe=ce("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1),vVe=[dVe];function hVe(e,t,n,r,i,l){return Ce(),Ie("svg",fVe,vVe)}var pVe=Qt(cVe,[["render",hVe],["__file","dessert.vue"]]),mVe={name:"Discount"},gVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yVe=ce("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-2
2112.096a128 128 0 0 1 162.112 0z"},null,-1),bVe=ce("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_Ve=[yVe,bVe];function wVe(e,t,n,r,i,l){return Ce(),Ie("svg",gVe,_Ve)}var CVe=Qt(mVe,[["render",wVe],["__file","discount.vue"]]),xVe={name:"DishDot"},EVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SVe=ce("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1),TVe=[SVe];function AVe(e,t,n,r,i,l){return Ce(),Ie("svg",EVe,TVe)}var kVe=Qt(xVe,[["render",AVe],["__file","dish-dot.vue"]]),OVe={name:"Dish"},MVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NVe=ce("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1),DVe=[NVe];function IVe(e,t,n,r,i,l){return Ce(),Ie("svg",MVe,DVe)}var RVe=Qt(OVe,[["render",IVe],["__file","dish.vue"]]),LVe={name:"DocumentAdd"},BVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PVe=ce("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1),FVe=[PVe];function $Ve(e,t,n,r,i,l){return Ce(),Ie("svg",BVe,FVe)}var zVe=Qt(LVe,[["render",$Ve],["__file","document-add.vue"]]),HVe={name:"DocumentChecked"},VVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UVe=ce("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1),jVe=[UVe];function WVe(e,t,n,r,i,l){return Ce(),Ie("svg",VVe,jVe)}var GVe=Qt(HVe,[["render",WVe],["__file","document-checked.vue"]]),KVe={name:"DocumentCopy"},YVe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qVe=ce("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),XVe=[qVe];function ZVe(e,t,n,r,i,l){return Ce(),Ie("svg",YVe,XVe)}var QVe=Qt(KVe,[["render",ZVe],["__file","document-copy.vue"]]),JVe={name:"DocumentDelete"},eUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tUe=ce("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1),nUe=[tUe];function rUe(e,t,n,r,i,l){return Ce(),Ie("svg",eUe,nUe)}var oUe=Qt(JVe,[["render",rUe],["__file","document-delete.vue"]]),aUe={name:"DocumentRemove"},iUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sUe=ce("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1),lUe=[sUe];function uUe(e,t,n,r,i,l){return Ce(),Ie("svg",iUe,lUe)}var cUe=Qt(aUe,[["render",uUe],["__file","document-remove.vue"]]),fUe={name:"Document"},dUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vUe=ce("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),hUe=[vUe];function pUe(e,t,n,r,i,l){return Ce(),Ie("svg",dUe,hUe)}var Rhe=Qt(fUe,[["render",pUe],["__file","document.vue"]]),mUe={name:"Download"},gUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yUe=ce("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),bUe=[yUe];function _Ue(e,t,n,r,i,l){return Ce(),Ie("svg",gUe,bUe)}var wUe=Qt(mUe,[["render",_Ue],["__file","download.vue"]]),CUe={name:"Drizzling"},xUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EUe=ce("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1),SUe=[EUe];function TUe(e,t,n,r,i,l){return Ce(),Ie("svg",xUe,SUe)}var AUe=Qt(CUe,[["render",TUe],["__file","drizzling.vue"]]),kUe={name:"EditPen"},OUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MUe=ce("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z"},null,-1),NUe=[MUe];function DUe(e,t,n,r,i,l){return Ce(),Ie("svg",OUe,NUe)}var IUe=Qt(kUe,[["render",DUe],["__file","edit-pen.vue"]]),RUe={name:"Edit"},LUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BUe=ce("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),PUe=ce("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),FUe=[BUe,PUe];function $Ue(e,t,n,r,i,l){return Ce(),Ie("svg",LUe,FUe)}var zUe=Qt(RUe,[["render",$Ue],["__file","edit.vue"]]),HUe={name:"ElemeFilled"},VUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UUe=ce("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1),jUe=[UUe];function WUe(e,t,n,r,i,l){return Ce(),Ie("svg",VUe,jUe)}var GUe=Qt(HUe,[["render",WUe],["__file","eleme-filled.vue"]]),KUe={name:"Eleme"},YUe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qUe=ce("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1),XUe=[qUe];function ZUe(e,t,n,r,i,l){return Ce(),Ie("svg",YUe,XUe)}
21var QUe=Qt(KUe,[["render",ZUe],["__file","eleme.vue"]]),JUe={name:"ElementPlus"},eje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tje=ce("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"},null,-1),nje=[tje];function rje(e,t,n,r,i,l){return Ce(),Ie("svg",eje,nje)}var oje=Qt(JUe,[["render",rje],["__file","element-plus.vue"]]),aje={name:"Expand"},ije={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sje=ce("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1),lje=[sje];function uje(e,t,n,r,i,l){return Ce(),Ie("svg",ije,lje)}var cje=Qt(aje,[["render",uje],["__file","expand.vue"]]),fje={name:"Failed"},dje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vje=ce("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1),hje=[vje];function pje(e,t,n,r,i,l){return Ce(),Ie("svg",dje,hje)}var mje=Qt(fje,[["render",pje],["__file","failed.vue"]]),gje={name:"Female"},yje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bje=ce("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_je=ce("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),wje=ce("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),Cje=[bje,_je,wje];function xje(e,t,n,r,i,l){return Ce(),Ie("svg",yje,Cje)}var Eje=Qt(gje,[["render",xje],["__file","female.vue"]]),Sje={name:"Files"},Tje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Aje=ce("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1),kje=[Aje];function Oje(e,t,n,r,i,l){return Ce(),Ie("svg",Tje,kje)}
21var Mje=Qt(Sje,[["render",Oje],["__file","files.vue"]]),Nje={name:"Film"},Dje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ije=ce("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),Rje=ce("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1),Lje=[Ije,Rje];function Bje(e,t,n,r,i,l){return Ce(),Ie("svg",Dje,Lje)}var Pje=Qt(Nje,[["render",Bje],["__file","film.vue"]]),Fje={name:"Filter"},$je={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zje=ce("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1),Hje=[zje];function Vje(e,t,n,r,i,l){return Ce(),Ie("svg",$je,Hje)}var Uje=Qt(Fje,[["render",Vje],["__file","filter.vue"]]),jje={name:"Finished"},Wje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gje=ce("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),Kje=[Gje];function Yje(e,t,n,r,i,l){return Ce(),Ie("svg",Wje,Kje)}var qje=Qt(jje,[["render",Yje],["__file","finished.vue"]]),Xje={name:"FirstAidKit"},Zje={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qje=ce("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),Jje=ce("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),eWe=[Qje,Jje];function tWe(e,t,n,r,i,l){return Ce(),Ie("svg",Zje,eWe)}var nWe=Qt(Xje,[["render",tWe],["__file","first-aid-kit.vue"]]),rWe={name:"Flag"},oWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aWe=ce("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1),iWe=[aWe];function sWe(e,t,n,r,i,l){return Ce(),Ie("svg",oWe,iWe)}var lWe=Qt(rWe,[["render",sWe],["__file","flag.vue"]]),uWe={name:"Fold"},cWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fWe=ce("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1),dWe=[fWe];function vWe(e,t,n,r,i,l){return Ce(),Ie("svg",cWe,dWe)}var hWe=Qt(uWe,[["render",vWe],["__file","fold.vue"]]),pWe={name:"FolderAdd"},mWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gWe=ce("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1),yWe=[gWe];function bWe(e,t,n,r,i,l){return Ce(),Ie("svg",mWe,yWe)}var _We=Qt(pWe,[["render",bWe],["__file","folder-add.vue"]]),wWe={name:"FolderChecked"},CWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xWe=ce("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1),EWe=[xWe];function SWe(e,t,n,r,i,l){return Ce(),Ie("svg",CWe,EWe)}var TWe=Qt(wWe,[["render",SWe],["__file","folder-checked.vue"]]),AWe={name:"FolderDelete"},kWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},OWe=ce("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1),MWe=[OWe];function NWe(e,t,n,r,i,l){return Ce(),Ie("svg",kWe,MWe)}var DWe=Qt(AWe,[["render",NWe],["__file","folder-delete.vue"]]),IWe={name:"FolderOpened"},RWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LWe=ce("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),BWe=[LWe];function PWe(e,t,n,r,i,l){return Ce(),Ie("svg",RWe,BWe)}var FWe=Qt(IWe,[["render",PWe],["__file","folder-opened.vue"]]),$We={name:"FolderRemove"},zWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HWe=ce("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1),VWe=[HWe];function UWe(e,t,n,r,i,l){return Ce(),Ie("svg",zWe,VWe)}var jWe=Qt($We,[["render",UWe],["__file","folder-remove.vue"]]),WWe={name:"Folder"},GWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KWe=ce("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),YWe=[KWe];function qWe(e,t,n,r,i,l){return Ce(),Ie("svg",GWe,YWe)}var XWe=Qt(WWe,[["render",qWe],["__file","folder.vue"]]),ZWe={name:"Food"},QWe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JWe=ce("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1),eGe=[JWe];function tGe(e,t,n,r,i,l){return Ce(),Ie("svg",QWe,eGe)}var nGe=Qt(ZWe,[["render",tGe],["__file","food.vue"]]),rGe={name:"Football"},oGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aGe=ce("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),iGe=ce("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1),sGe=[aGe,iGe];function lGe(e,t,n,r,i,l){return Ce(),Ie("svg",oGe,sGe)}var uGe=Qt(rGe,[["render",lGe],["__file","football.vue"]]),cGe={name:"ForkSpoon"},fGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dGe=ce("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 12
216.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1),vGe=[dGe];function hGe(e,t,n,r,i,l){return Ce(),Ie("svg",fGe,vGe)}var pGe=Qt(cGe,[["render",hGe],["__file","fork-spoon.vue"]]),mGe={name:"Fries"},gGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yGe=ce("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1),bGe=[yGe];function _Ge(e,t,n,r,i,l){return Ce(),Ie("svg",gGe,bGe)}var wGe=Qt(mGe,[["render",_Ge],["__file","fries.vue"]]),CGe={name:"FullScreen"},xGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EGe=ce("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),SGe=[EGe];function TGe(e,t,n,r,i,l){return Ce(),Ie("svg",xGe,SGe)}var Lhe=Qt(CGe,[["render",TGe],["__file","full-screen.vue"]]),AGe={name:"GobletFull"},kGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},OGe=ce("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1),MGe=[OGe];function NGe(e,t,n,r,i,l){return Ce(),Ie("svg",kGe,MGe)}var DGe=Qt(AGe,[["render",NGe],["__file","goblet-full.vue"]]),IGe={name:"GobletSquareFull"},RGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LGe=ce("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1),BGe=[LGe];function PGe(e,t,n,r,i,l){return Ce(),Ie("svg",RGe,BGe)}var FGe=Qt(IGe,[["render",PGe],["__file","goblet-square-full.vue"]]),$Ge={name:"GobletSquare"},zGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},HGe=ce("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1),VGe=[HGe];function UGe(e,t,n,r,i,l){return Ce(),Ie("svg",zGe,VGe)}var jGe=Qt($Ge,[["render",UGe],["__file","goblet-square.vue"]]),WGe={name:"Goblet"},GGe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KGe=ce("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1),YGe=[KGe];function qGe(e,t,n,r,i,l){return Ce(),Ie("svg",GGe,YGe)}var XGe=Qt(WGe,[["render",qGe],["__file","goblet.vue"]]),ZGe={name:"GoldMedal"},QGe={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},JGe=ce("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03
211.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"},null,-1),eKe=ce("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"},null,-1),tKe=[JGe,eKe];function nKe(e,t,n,r,i,l){return Ce(),Ie("svg",QGe,tKe)}var rKe=Qt(ZGe,[["render",nKe],["__file","gold-medal.vue"]]),oKe={name:"GoodsFilled"},aKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iKe=ce("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1),sKe=[iKe];function lKe(e,t,n,r,i,l){return Ce(),Ie("svg",aKe,sKe)}var uKe=Qt(oKe,[["render",lKe],["__file","goods-filled.vue"]]),cKe={name:"Goods"},fKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dKe=ce("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1),vKe=[dKe];function hKe(e,t,n,r,i,l){return Ce(),Ie("svg",fKe,vKe)}var pKe=Qt(cKe,[["render",hKe],["__file","goods.vue"]]),mKe={name:"Grape"},gKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yKe=ce("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),bKe=[yKe];function _Ke(e,t,n,r,i,l){return Ce(),Ie("svg",gKe,bKe)}var wKe=Qt(mKe,[["render",_Ke],["__file","grape.vue"]]),CKe={name:"Grid"},xKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EKe=ce("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1),SKe=[EKe];function TKe(e,t,n,r,i,l){return Ce(),Ie("svg",xKe,SKe)}var AKe=Qt(CKe,[["render",TKe],["__file","grid.vue"]]),kKe={name:"Guide"},OKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MKe=ce("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),NKe=ce("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1),DKe=[MKe,NKe];function IKe(e,t,n,r,i,l){return Ce(),Ie("svg",OKe,DKe)}var RKe=Qt(kKe,[["render",IKe],["__file","guide.vue"]]),LKe={name:"Handbag"},BKe={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},PKe=ce("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z"},null,-1),FKe=[PKe];function $Ke(e,t,n,r,i,l){return Ce(),Ie("svg",BKe,FKe)}var zKe=Qt(LKe,[["render",$Ke],["__file","handbag.vue"]]),HKe={name:"Headset"},VKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UKe=ce("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1),jKe=[UKe];function WKe(e,t,n,r,i,l){return Ce(),Ie("svg",VKe,jKe)}var GKe=Qt(HKe,[["render",WKe],["__file","headset.vue"]]),KKe={name:"HelpFilled"},YKe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qKe=ce("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1),XKe=[qKe];function ZKe(e,t,n,r,i,l){return Ce(),Ie("svg",YKe,XKe)}
21var QKe=Qt(KKe,[["render",ZKe],["__file","help-filled.vue"]]),JKe={name:"Help"},eYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tYe=ce("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),nYe=[tYe];function rYe(e,t,n,r,i,l){return Ce(),Ie("svg",eYe,nYe)}var oYe=Qt(JKe,[["render",rYe],["__file","help.vue"]]),aYe={name:"Hide"},iYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sYe=ce("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),lYe=ce("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),uYe=[sYe,lYe];function cYe(e,t,n,r,i,l){return Ce(),Ie("svg",iYe,uYe)}var Bhe=Qt(aYe,[["render",cYe],["__file","hide.vue"]]),fYe={name:"Histogram"},dYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vYe=ce("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),hYe=[vYe];function pYe(e,t,n,r,i,l){return Ce(),Ie("svg",dYe,hYe)}var mYe=Qt(fYe,[["render",pYe],["__file","histogram.vue"]]),gYe={name:"HomeFilled"},yYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bYe=ce("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1),_Ye=[bYe];function wYe(e,t,n,r,i,l){return Ce(),Ie("svg",yYe,_Ye)}var CYe=Qt(gYe,[["render",wYe],["__file","home-filled.vue"]]),xYe={name:"HotWater"},EYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SYe=ce("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1),TYe=[SYe];function AYe(e,t,n,r,i,l){return Ce(),Ie("svg",EYe,TYe)}var kYe=Qt(xYe,[["render",AYe],["__file","hot-water.vue"]]),OYe={name:"House"},MYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NYe=ce("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1),DYe=[NYe];function IYe(e,t,n,r,i,l){return Ce(),Ie("svg",MYe,DYe)}var RYe=Qt(OYe,[["render",IYe],["__file","house.vue"]]),LYe={name:"IceCreamRound"},BYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},PYe=ce("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1),FYe=[PYe];function $Ye(e,t,n,r,i,l){return Ce(),Ie("svg",BYe,FYe)}var zYe=Qt(LYe,[["render",$Ye],["__file","ice-cream-round.vue"]]),HYe={name:"IceCreamSquare"},VYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UYe=ce("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1),jYe=[UYe];function WYe(e,t,n,r,i,l){return Ce(),Ie("svg",VYe,jYe)}var GYe=Qt(HYe,[["render",WYe],["__file","ice-cream-square.vue"]]),KYe={name:"IceCream"},YYe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qYe=ce("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184
21-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1),XYe=[qYe];function ZYe(e,t,n,r,i,l){return Ce(),Ie("svg",YYe,XYe)}var QYe=Qt(KYe,[["render",ZYe],["__file","ice-cream.vue"]]),JYe={name:"IceDrink"},eqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tqe=ce("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1),nqe=[tqe];function rqe(e,t,n,r,i,l){return Ce(),Ie("svg",eqe,nqe)}var oqe=Qt(JYe,[["render",rqe],["__file","ice-drink.vue"]]),aqe={name:"IceTea"},iqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sqe=ce("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1),lqe=[sqe];function uqe(e,t,n,r,i,l){return Ce(),Ie("svg",iqe,lqe)}var cqe=Qt(aqe,[["render",uqe],["__file","ice-tea.vue"]]),fqe={name:"InfoFilled"},dqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vqe=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),hqe=[vqe];function pqe(e,t,n,r,i,l){return Ce(),Ie("svg",dqe,hqe)}var kV=Qt(fqe,[["render",pqe],["__file","info-filled.vue"]]),mqe={name:"Iphone"},gqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yqe=ce("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1),bqe=[yqe];function _qe(e,t,n,r,i,l){return Ce(),Ie("svg",gqe,bqe)}var wqe=Qt(mqe,[["render",_qe],["__file","iphone.vue"]]),Cqe={name:"Key"},xqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eqe=ce("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),Sqe=[Eqe];function Tqe(e,t,n,r,i,l){return Ce(),Ie("svg",xqe,Sqe)}var Aqe=Qt(Cqe,[["render",Tqe],["__file","key.vue"]]),kqe={name:"KnifeFork"},Oqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mqe=ce("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1),Nqe=[Mqe];function Dqe(e,t,n,r,i,l){return Ce(),Ie("svg",Oqe,Nqe)}var Iqe=Qt(kqe,[["render",Dqe],["__file","knife-fork.vue"]]),Rqe={name:"Lightning"},Lqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bqe=ce("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),Pqe=ce("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1),Fqe=[Bqe,Pqe];function $qe(e,t,n,r,i,l){return Ce(),Ie("svg",Lqe,Fqe)}var zqe=Qt(Rqe,[["render",$qe],["__file","lightning.vue"]]),Hqe={name:"Link"},Vqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uqe=ce("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),jqe=[Uqe];function Wqe(e,t,n,r,i,l){return Ce(),Ie("svg",Vqe,jqe)}var Gqe=Qt(Hqe,[["render",Wqe],["__file","link.vue"]]),Kqe={name:"List"},Yqe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qqe=ce("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1),Xqe=[qqe];function Zqe(e,t,n,r,i,l){return Ce(),Ie("svg",Yqe,Xqe)}var Qqe=Qt(Kqe,[["render",Zqe],["__file","list.vue"]]),Jqe={name:"Loading"},eXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tXe=ce("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm
210 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),nXe=[tXe];function rXe(e,t,n,r,i,l){return Ce(),Ie("svg",eXe,nXe)}var N3=Qt(Jqe,[["render",rXe],["__file","loading.vue"]]),oXe={name:"LocationFilled"},aXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iXe=ce("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1),sXe=[iXe];function lXe(e,t,n,r,i,l){return Ce(),Ie("svg",aXe,sXe)}var uXe=Qt(oXe,[["render",lXe],["__file","location-filled.vue"]]),cXe={name:"LocationInformation"},fXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dXe=ce("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),vXe=ce("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),hXe=ce("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),pXe=[dXe,vXe,hXe];function mXe(e,t,n,r,i,l){return Ce(),Ie("svg",fXe,pXe)}var gXe=Qt(cXe,[["render",mXe],["__file","location-information.vue"]]),yXe={name:"Location"},bXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_Xe=ce("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),wXe=ce("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),CXe=[_Xe,wXe];function xXe(e,t,n,r,i,l){return Ce(),Ie("svg",bXe,CXe)}var EXe=Qt(yXe,[["render",xXe],["__file","location.vue"]]),SXe={name:"Lock"},TXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},AXe=ce("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),kXe=ce("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1),OXe=[AXe,kXe];function MXe(e,t,n,r,i,l){return Ce(),Ie("svg",TXe,OXe)}var NXe=Qt(SXe,[["render",MXe],["__file","lock.vue"]]),DXe={name:"Lollipop"},IXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RXe=ce("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1),LXe=[RXe];function BXe(e,t,n,r,i,l){return Ce(),Ie("svg",IXe,LXe)}var PXe=Qt(DXe,[["render",BXe],["__file","lollipop.vue"]]),FXe={name:"MagicStick"},$Xe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zXe=ce("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),HXe=[zXe];function VXe(e,t,n,r,i,l){return Ce(),Ie("svg",$Xe,HXe)}var UXe=Qt(FXe,[["render",VXe],["__file","magic-stick.vue"]]),jXe={name:"Magnet"},WXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},GXe=ce("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1),KXe=[GXe];function YXe(e,t,n,r,i,l){return Ce(),Ie("svg",WXe,KXe)}var qXe=Qt(jXe,[["render",YXe],["__file","magnet.vue"]]),XXe={name:"Male"},ZXe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},QXe=ce("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),JXe=ce("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"}
21,null,-1),eZe=ce("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1),tZe=[QXe,JXe,eZe];function nZe(e,t,n,r,i,l){return Ce(),Ie("svg",ZXe,tZe)}var rZe=Qt(XXe,[["render",nZe],["__file","male.vue"]]),oZe={name:"Management"},aZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iZe=ce("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1),sZe=[iZe];function lZe(e,t,n,r,i,l){return Ce(),Ie("svg",aZe,sZe)}var uZe=Qt(oZe,[["render",lZe],["__file","management.vue"]]),cZe={name:"MapLocation"},fZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dZe=ce("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),vZe=ce("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1),hZe=[dZe,vZe];function pZe(e,t,n,r,i,l){return Ce(),Ie("svg",fZe,hZe)}var mZe=Qt(cZe,[["render",pZe],["__file","map-location.vue"]]),gZe={name:"Medal"},yZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bZe=ce("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_Ze=ce("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1),wZe=[bZe,_Ze];function CZe(e,t,n,r,i,l){return Ce(),Ie("svg",yZe,wZe)}var xZe=Qt(gZe,[["render",CZe],["__file","medal.vue"]]),EZe={name:"Memo"},SZe={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},TZe=ce("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1),AZe=ce("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z"},null,-1),kZe=ce("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z"},null,-1),OZe=[TZe,AZe,kZe];function MZe(e,t,n,r,i,l){return Ce(),Ie("svg",SZe,OZe)}var NZe=Qt(EZe,[["render",MZe],["__file","memo.vue"]]),DZe={name:"Menu"},IZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RZe=ce("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1),LZe=[RZe];function BZe(e,t,n,r,i,l){return Ce(),Ie("svg",IZe,LZe)}var PZe=Qt(DZe,[["render",BZe],["__file","menu.vue"]]),FZe={name:"MessageBox"},$Ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zZe=ce("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1),HZe=[zZe];function VZe(e,t,n,r,i,l){return Ce(),Ie("svg",$Ze,HZe)}var UZe=Qt(FZe,[["render",VZe],["__file","message-box.vue"]]),jZe={name:"Message"},WZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},GZe=ce("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),KZe=ce("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944
210 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1),YZe=[GZe,KZe];function qZe(e,t,n,r,i,l){return Ce(),Ie("svg",WZe,YZe)}var XZe=Qt(jZe,[["render",qZe],["__file","message.vue"]]),ZZe={name:"Mic"},QZe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},JZe=ce("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),eQe=[JZe];function tQe(e,t,n,r,i,l){return Ce(),Ie("svg",QZe,eQe)}var nQe=Qt(ZZe,[["render",tQe],["__file","mic.vue"]]),rQe={name:"Microphone"},oQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aQe=ce("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1),iQe=[aQe];function sQe(e,t,n,r,i,l){return Ce(),Ie("svg",oQe,iQe)}var lQe=Qt(rQe,[["render",sQe],["__file","microphone.vue"]]),uQe={name:"MilkTea"},cQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fQe=ce("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1),dQe=[fQe];function vQe(e,t,n,r,i,l){return Ce(),Ie("svg",cQe,dQe)}var hQe=Qt(uQe,[["render",vQe],["__file","milk-tea.vue"]]),pQe={name:"Minus"},mQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gQe=ce("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),yQe=[gQe];function bQe(e,t,n,r,i,l){return Ce(),Ie("svg",mQe,yQe)}var Phe=Qt(pQe,[["render",bQe],["__file","minus.vue"]]),_Qe={name:"Money"},wQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},CQe=ce("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),xQe=ce("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),EQe=ce("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),SQe=[CQe,xQe,EQe];function TQe(e,t,n,r,i,l){return Ce(),Ie("svg",wQe,SQe)}var AQe=Qt(_Qe,[["render",TQe],["__file","money.vue"]]),kQe={name:"Monitor"},OQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},MQe=ce("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1),NQe=[MQe];function DQe(e,t,n,r,i,l){return Ce(),Ie("svg",OQe,NQe)}var IQe=Qt(kQe,[["render",DQe],["__file","monitor.vue"]]),RQe={name:"MoonNight"},LQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BQe=ce("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),PQe=ce("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1),FQe=[BQe,PQe];function $Qe(e,t,n,r,i,l){return Ce(),Ie("svg",LQe,FQe)}var zQe=Qt(RQe,[["render",$Qe],["__file","moon-night.vue"]]),HQe={name:"Moon"},VQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},UQe=ce("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),jQe=[UQe];function WQe(e,t,n,r,i,l){return Ce(),Ie("svg",VQe,jQe)}var GQe=Qt(HQe,[["render",WQe],["__file","moon.vue"]]),KQe={name:"MoreFilled"},YQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qQe=ce("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),XQe=[qQe];function ZQe(e,t,n,r,i,l){return Ce(),Ie("svg",YQe,XQe)}var hJ=Qt(KQe,[["render",ZQe],["__file","more-filled.vue"]]),QQe={name:"More"},JQe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eJe=ce("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),tJe=[eJe];function nJe(e,t,n,r,i,l){return Ce(),Ie("svg",JQe,tJe)}var Fhe=Qt(QQe,[["render",nJe],["__file","more.vue"]]),rJe={name:"MostlyCloudy"},oJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aJe=ce("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1),iJe=[aJe];function sJe(e,t,n,r,i,l){return Ce(),Ie("svg",oJe,iJe)}
21var lJe=Qt(rJe,[["render",sJe],["__file","mostly-cloudy.vue"]]),uJe={name:"Mouse"},cJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fJe=ce("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),dJe=ce("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1),vJe=[fJe,dJe];function hJe(e,t,n,r,i,l){return Ce(),Ie("svg",cJe,vJe)}var pJe=Qt(uJe,[["render",hJe],["__file","mouse.vue"]]),mJe={name:"Mug"},gJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yJe=ce("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1),bJe=[yJe];function _Je(e,t,n,r,i,l){return Ce(),Ie("svg",gJe,bJe)}var wJe=Qt(mJe,[["render",_Je],["__file","mug.vue"]]),CJe={name:"MuteNotification"},xJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},EJe=ce("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),SJe=ce("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),TJe=[EJe,SJe];function AJe(e,t,n,r,i,l){return Ce(),Ie("svg",xJe,TJe)}var kJe=Qt(CJe,[["render",AJe],["__file","mute-notification.vue"]]),OJe={name:"Mute"},MJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NJe=ce("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),DJe=ce("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),IJe=[NJe,DJe];function RJe(e,t,n,r,i,l){return Ce(),Ie("svg",MJe,IJe)}var LJe=Qt(OJe,[["render",RJe],["__file","mute.vue"]]),BJe={name:"NoSmoking"},PJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},FJe=ce("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),$Je=[FJe];function zJe(e,t,n,r,i,l){return Ce(),Ie("svg",PJe,$Je)}var HJe=Qt(BJe,[["render",zJe],["__file","no-smoking.vue"]]),VJe={name:"Notebook"},UJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jJe=ce("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),WJe=ce("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm
210 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),GJe=[jJe,WJe];function KJe(e,t,n,r,i,l){return Ce(),Ie("svg",UJe,GJe)}var YJe=Qt(VJe,[["render",KJe],["__file","notebook.vue"]]),qJe={name:"Notification"},XJe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ZJe=ce("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),QJe=ce("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1),JJe=[ZJe,QJe];function eet(e,t,n,r,i,l){return Ce(),Ie("svg",XJe,JJe)}var tet=Qt(qJe,[["render",eet],["__file","notification.vue"]]),net={name:"Odometer"},ret={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oet=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),aet=ce("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),iet=ce("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1),set=[oet,aet,iet];function uet(e,t,n,r,i,l){return Ce(),Ie("svg",ret,set)}var cet=Qt(net,[["render",uet],["__file","odometer.vue"]]),fet={name:"OfficeBuilding"},det={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vet=ce("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),het=ce("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),pet=ce("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1),met=[vet,het,pet];function get(e,t,n,r,i,l){return Ce(),Ie("svg",det,met)}var yet=Qt(fet,[["render",get],["__file","office-building.vue"]]),bet={name:"Open"},_et={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wet=ce("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),Cet=ce("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),xet=[wet,Cet];function Eet(e,t,n,r,i,l){return Ce(),Ie("svg",_et,xet)}var Tet=Qt(bet,[["render",Eet],["__file","open.vue"]]),Aet={name:"Operation"},ket={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Oet=ce("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),Met=[Oet];function Net(e,t,n,r,i,l){return Ce(),Ie("svg",ket,Met)}var Det=Qt(Aet,[["render",Net],["__file","operation.vue"]]),Iet={name:"Opportunity"},Ret={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Let=ce("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1),Bet=[Let];function Pet(e,t,n,r,i,l){return Ce(),Ie("svg",Ret,Bet)}var Fet=Qt(Iet,[["render",Pet],["__file","opportunity.vue"]]),$et={name:"Orange"},zet={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Het=ce("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1),Vet=[Het];function Uet(e,t,n,r,i,l){return Ce(),Ie("svg",zet,Vet)}var jet=Qt($et,[["render",Uet],["__file","orange.vue"]]),Wet={name:"Paperclip"},Get={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ket=ce("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1),Yet=[Ket];function qet(e,t,n,r,i,l){return Ce(),Ie("svg",Get,Yet)}var Xet=Qt(Wet,[["render",qet],["__file","paperclip.vue"]]),Zet={name:"PartlyCloudy"},Qet={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jet=ce("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),ett=ce("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1),ttt=[Jet,ett];function ntt(e,t,n,r,i,l){return Ce(),Ie("svg",Qet,ttt)}var rtt=Qt(Zet,[["render",ntt],["__file","partly-cloudy.vue"]]),ott={name:"Pear"},att={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},itt=ce("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1),stt=[itt];function ltt(e,t,n,r,i,l){return Ce(),Ie("svg",att,stt)}var utt=Qt(ott,[["render",ltt],["__file","pear.vue"]]),ctt={name:"PhoneFilled"},ftt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dtt=ce("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1),vtt=[dtt];function htt(e,t,n,r,i,l){return Ce(),Ie("svg",ftt,vtt)}var ptt=Qt(ctt,[["render",htt],["__file","phone-filled.vue"]]),mtt={name:"Phone"},gtt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ytt=ce("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1),btt=[ytt];function _tt(e,t,n,r,i,l){return Ce(),Ie("svg",gtt,btt)}var wtt=Qt(mtt,[["render",_tt],["__file","phone.vue"]]),Ctt={name:"PictureFilled"},xtt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ett=ce("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Stt=[Ett];function Ttt(e,t,n,r,i,l){return Ce(),Ie("svg",xtt,Stt)}var $he=Qt(Ctt,[["render",Ttt],["__file","picture-filled.vue"]]),Att={name:"PictureRounded"},ktt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ott=ce("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"},null,-1),Mtt=ce("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.
216a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1),Ntt=[Ott,Mtt];function Dtt(e,t,n,r,i,l){return Ce(),Ie("svg",ktt,Ntt)}var Itt=Qt(Att,[["render",Dtt],["__file","picture-rounded.vue"]]),Rtt={name:"Picture"},Ltt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Btt=ce("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),Ptt=ce("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),Ftt=[Btt,Ptt];function $tt(e,t,n,r,i,l){return Ce(),Ie("svg",Ltt,Ftt)}var ztt=Qt(Rtt,[["render",$tt],["__file","picture.vue"]]),Htt={name:"PieChart"},Vtt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Utt=ce("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),jtt=ce("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1),Wtt=[Utt,jtt];function Gtt(e,t,n,r,i,l){return Ce(),Ie("svg",Vtt,Wtt)}var Ktt=Qt(Htt,[["render",Gtt],["__file","pie-chart.vue"]]),Ytt={name:"Place"},qtt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xtt=ce("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),Ztt=ce("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),Qtt=ce("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1),Jtt=[Xtt,Ztt,Qtt];function ent(e,t,n,r,i,l){return Ce(),Ie("svg",qtt,Jtt)}var tnt=Qt(Ytt,[["render",ent],["__file","place.vue"]]),nnt={name:"Platform"},rnt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ont=ce("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1),ant=[ont];function int(e,t,n,r,i,l){return Ce(),Ie("svg",rnt,ant)}var snt=Qt(nnt,[["render",int],["__file","platform.vue"]]),lnt={name:"Plus"},unt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cnt=ce("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),fnt=[cnt];function dnt(e,t,n,r,i,l){return Ce(),Ie("svg",unt,fnt)}var Fte=Qt(lnt,[["render",dnt],["__file","plus.vue"]]),vnt={name:"Pointer"},hnt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pnt=ce("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1),mnt=[pnt];function gnt(e,t,n,r,i,l){return Ce(),Ie("svg",hnt,mnt)}var ynt=Qt(vnt,[["render",gnt],["__file","pointer.vue"]]),bnt={name:"Position"},_nt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wnt=ce("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),Cnt=[wnt];function xnt(e,t,n,r,i,l){return Ce(),Ie("svg",_nt,Cnt)}var Ent=Qt(bnt,[["render",xnt],["__file","position.vue"]]),Snt={name:"Postcard"},Tnt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ant=ce("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),knt=ce("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm
210 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),Ont=[Ant,knt];function Mnt(e,t,n,r,i,l){return Ce(),Ie("svg",Tnt,Ont)}var Nnt=Qt(Snt,[["render",Mnt],["__file","postcard.vue"]]),Dnt={name:"Pouring"},Int={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rnt=ce("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1),Lnt=[Rnt];function Bnt(e,t,n,r,i,l){return Ce(),Ie("svg",Int,Lnt)}var Pnt=Qt(Dnt,[["render",Bnt],["__file","pouring.vue"]]),Fnt={name:"Present"},$nt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},znt=ce("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),Hnt=ce("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),Vnt=ce("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Unt=ce("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),jnt=[znt,Hnt,Vnt,Unt];function Wnt(e,t,n,r,i,l){return Ce(),Ie("svg",$nt,jnt)}var Gnt=Qt(Fnt,[["render",Wnt],["__file","present.vue"]]),Knt={name:"PriceTag"},Ynt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qnt=ce("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),Xnt=ce("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Znt=[qnt,Xnt];function Qnt(e,t,n,r,i,l){return Ce(),Ie("svg",Ynt,Znt)}var Jnt=Qt(Knt,[["render",Qnt],["__file","price-tag.vue"]]),ert={name:"Printer"},trt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nrt=ce("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),rrt=[nrt];function ort(e,t,n,r,i,l){return Ce(),Ie("svg",trt,rrt)}var art=Qt(ert,[["render",ort],["__file","printer.vue"]]),irt={name:"Promotion"},srt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lrt=ce("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),urt=[lrt];function crt(e,t,n,r,i,l){return Ce(),Ie("svg",srt,urt)}var frt=Qt(irt,[["render",crt],["__file","promotion.vue"]]),drt={name:"QuartzWatch"},vrt={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},hrt=ce("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z"},null,-1),prt=ce("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z"},null,-1),mrt=ce("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z"},null,-1),grt=[hrt,prt,mrt];function yrt(e,t,n,r,i,l){return Ce(),Ie("svg",vrt,grt)}var brt=Qt(drt,[["render",yrt],["__file","quartz-watch.vue"]]),_rt={name:"QuestionFilled"},wrt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Crt=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),xrt=[Crt];function Ert(e,t,n,r,i,l){return Ce(),Ie("svg",wrt,xrt)}var zhe=Qt(_rt,[["render",Ert],["__file","question-filled.vue"]]),Srt={name:"Rank"},Trt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Art=ce("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1),krt=[Art];function Ort(e,t,n,r,i,l){return Ce(),Ie("svg",Trt,krt)}var Mrt=Qt(Srt,[["render",Ort],["__file","rank.vue"]]),Nrt={name:"ReadingLamp"},Drt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Irt=ce("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),Rrt=ce("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1),Lrt=[Irt,Rrt];function Brt(e,t,n,r,i,l){return Ce(),Ie("svg",Drt,Lrt)}
21var Prt=Qt(Nrt,[["render",Brt],["__file","reading-lamp.vue"]]),Frt={name:"Reading"},$rt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zrt=ce("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),Hrt=ce("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1),Vrt=[zrt,Hrt];function Urt(e,t,n,r,i,l){return Ce(),Ie("svg",$rt,Vrt)}var jrt=Qt(Frt,[["render",Urt],["__file","reading.vue"]]),Wrt={name:"RefreshLeft"},Grt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Krt=ce("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),Yrt=[Krt];function qrt(e,t,n,r,i,l){return Ce(),Ie("svg",Grt,Yrt)}var Hhe=Qt(Wrt,[["render",qrt],["__file","refresh-left.vue"]]),Xrt={name:"RefreshRight"},Zrt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qrt=ce("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),Jrt=[Qrt];function eot(e,t,n,r,i,l){return Ce(),Ie("svg",Zrt,Jrt)}var Vhe=Qt(Xrt,[["render",eot],["__file","refresh-right.vue"]]),tot={name:"Refresh"},not={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rot=ce("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),oot=[rot];function aot(e,t,n,r,i,l){return Ce(),Ie("svg",not,oot)}var iot=Qt(tot,[["render",aot],["__file","refresh.vue"]]),sot={name:"Refrigerator"},lot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uot=ce("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1),cot=[uot];function fot(e,t,n,r,i,l){return Ce(),Ie("svg",lot,cot)}var dot=Qt(sot,[["render",fot],["__file","refrigerator.vue"]]),vot={name:"RemoveFilled"},hot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pot=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1),mot=[pot];function got(e,t,n,r,i,l){return Ce(),Ie("svg",hot,mot)}var yot=Qt(vot,[["render",got],["__file","remove-filled.vue"]]),bot={name:"Remove"},_ot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wot=ce("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),Cot=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),xot=[wot,Cot];function Eot(e,t,n,r,i,l){return Ce(),Ie("svg",_ot,xot)}var Sot=Qt(bot,[["render",Eot],["__file","remove.vue"]]),Tot={name:"Right"},Aot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kot=ce("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1),Oot=[kot];function Mot(e,t,n,r,i,l){return Ce(),Ie("svg",Aot,Oot)}var Not=Qt(Tot,[["render",Mot],["__file","right.vue"]]),Dot={name:"ScaleToOriginal"},Iot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rot=ce("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),Lot=[Rot];function Bot(e,t,n,r,i,l){return Ce(),Ie("svg",Iot,Lot)}var Uhe=Qt(Dot,[["render",Bot],["__file","scale-to-original.vue"]]),Pot={name:"School"},Fot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$ot=ce("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),zot=ce("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),Hot=ce("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1),Vot=[$ot,zot,Hot];function Uot(e,t,n,r,i,l){return Ce(),Ie("svg",Fot,Vot)}var jot=Qt(Pot,[["render",Uot],["__file","school.vue"]]),Wot={name:"Scissor"},Got={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kot=ce("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1),Yot=[Kot];function qot(e,t,n,r,i,l){return Ce(),Ie("svg",Got,Yot)}var Xot=Qt(Wot,[["render",qot],["__file","scissor.vue"]]),Zot={name:"Search"},Qot={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jot=ce("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),eat=[Jot];function tat(e,t,n,r,i,l){return Ce(),Ie("svg",Qot,eat)}var jhe=Qt(Zot,[["render",tat],["__file","search.vue"]]),nat={name:"Select"},rat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oat=ce("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1),aat=[oat];function iat(e,t,n,r,i,l){return Ce(),Ie("svg",rat,aat)}var sat=Qt(nat,[["render",iat],["__file","select.vue"]]),lat={name:"Sell"},uat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cat=ce("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l5
217.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1),fat=[cat];function dat(e,t,n,r,i,l){return Ce(),Ie("svg",uat,fat)}var vat=Qt(lat,[["render",dat],["__file","sell.vue"]]),hat={name:"SemiSelect"},pat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mat=ce("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1),gat=[mat];function yat(e,t,n,r,i,l){return Ce(),Ie("svg",pat,gat)}var bat=Qt(hat,[["render",yat],["__file","semi-select.vue"]]),_at={name:"Service"},wat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cat=ce("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1),xat=[Cat];function Eat(e,t,n,r,i,l){return Ce(),Ie("svg",wat,xat)}var Sat=Qt(_at,[["render",Eat],["__file","service.vue"]]),Tat={name:"SetUp"},Aat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kat=ce("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),Oat=ce("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Mat=ce("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),Nat=ce("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),Dat=[kat,Oat,Mat,Nat];function Iat(e,t,n,r,i,l){return Ce(),Ie("svg",Aat,Dat)}var Rat=Qt(Tat,[["render",Iat],["__file","set-up.vue"]]),Lat={name:"Setting"},Bat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pat=ce("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),Fat=[Pat];function $at(e,t,n,r,i,l){return Ce(),Ie("svg",Bat,Fat)}var zat=Qt(Lat,[["render",$at],["__file","setting.vue"]]),Hat={name:"Share"},Vat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uat=ce("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96
21a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),jat=[Uat];function Wat(e,t,n,r,i,l){return Ce(),Ie("svg",Vat,jat)}var Gat=Qt(Hat,[["render",Wat],["__file","share.vue"]]),Kat={name:"Ship"},Yat={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qat=ce("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1),Xat=[qat];function Zat(e,t,n,r,i,l){return Ce(),Ie("svg",Yat,Xat)}var Qat=Qt(Kat,[["render",Zat],["__file","ship.vue"]]),Jat={name:"Shop"},eit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tit=ce("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1),nit=[tit];function rit(e,t,n,r,i,l){return Ce(),Ie("svg",eit,nit)}var oit=Qt(Jat,[["render",rit],["__file","shop.vue"]]),ait={name:"ShoppingBag"},iit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sit=ce("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),lit=ce("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1),uit=[sit,lit];function cit(e,t,n,r,i,l){return Ce(),Ie("svg",iit,uit)}var fit=Qt(ait,[["render",cit],["__file","shopping-bag.vue"]]),dit={name:"ShoppingCartFull"},vit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hit=ce("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),pit=ce("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1),mit=[hit,pit];function git(e,t,n,r,i,l){return Ce(),Ie("svg",vit,mit)}var yit=Qt(dit,[["render",git],["__file","shopping-cart-full.vue"]]),bit={name:"ShoppingCart"},_it={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wit=ce("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),Cit=[wit];function xit(e,t,n,r,i,l){return Ce(),Ie("svg",_it,Cit)}var Eit=Qt(bit,[["render",xit],["__file","shopping-cart.vue"]]),Sit={name:"ShoppingTrolley"},Tit={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Ait=ce("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z"},null,-1),kit=[Ait];function Oit(e,t,n,r,i,l){return Ce(),Ie("svg",Tit,kit)}var Mit=Qt(Sit,[["render",Oit],["__file","shopping-trolley.vue"]]),Nit={name:"Smoking"},Dit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Iit=ce("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),Rit=ce("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),Lit=[Iit,Rit];function Bit(e,t,n,r,i,l){return Ce(),Ie("svg",Dit,Lit)}var Pit=Qt(Nit,[["render",Bit],["__file","smoking.vue"]]),Fit={name:"Soccer"},$it={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zit=ce("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1),Hit=[zit];function Vit(e,t,n,r,i,l){return Ce(),Ie("svg",$it,Hit)}var Uit=Qt(Fit,[["render",Vit],["__file","soccer.vue"]]),jit={name:"SoldOut"},Wit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Git=ce("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l5
217.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1),Kit=[Git];function Yit(e,t,n,r,i,l){return Ce(),Ie("svg",Wit,Kit)}var qit=Qt(jit,[["render",Yit],["__file","sold-out.vue"]]),Xit={name:"SortDown"},Zit={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qit=ce("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),Jit=[Qit];function est(e,t,n,r,i,l){return Ce(),Ie("svg",Zit,Jit)}var Whe=Qt(Xit,[["render",est],["__file","sort-down.vue"]]),tst={name:"SortUp"},nst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rst=ce("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),ost=[rst];function ast(e,t,n,r,i,l){return Ce(),Ie("svg",nst,ost)}var Ghe=Qt(tst,[["render",ast],["__file","sort-up.vue"]]),ist={name:"Sort"},sst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lst=ce("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1),ust=[lst];function cst(e,t,n,r,i,l){return Ce(),Ie("svg",sst,ust)}var fst=Qt(ist,[["render",cst],["__file","sort.vue"]]),dst={name:"Stamp"},vst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hst=ce("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1),pst=[hst];function mst(e,t,n,r,i,l){return Ce(),Ie("svg",vst,pst)}var gst=Qt(dst,[["render",mst],["__file","stamp.vue"]]),yst={name:"StarFilled"},bst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_st=ce("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),wst=[_st];function Cst(e,t,n,r,i,l){return Ce(),Ie("svg",bst,wst)}var RD=Qt(yst,[["render",Cst],["__file","star-filled.vue"]]),xst={name:"Star"},Est={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sst=ce("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),Tst=[Sst];function Ast(e,t,n,r,i,l){return Ce(),Ie("svg",Est,Tst)}var Khe=Qt(xst,[["render",Ast],["__file","star.vue"]]),kst={name:"Stopwatch"},Ost={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mst=ce("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Nst=ce("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1),Dst=[Mst,Nst];function Ist(e,t,n,r,i,l){return Ce(),Ie("svg",Ost,Dst)}var Rst=Qt(kst,[["render",Ist],["__file","stopwatch.vue"]]),Lst={name:"SuccessFilled"},Bst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pst=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Fst=[Pst];function $st(e,t,n,r,i,l){return Ce(),Ie("svg",Bst,Fst)}var $te=Qt(Lst,[["render",$st],["__file","success-filled.vue"]]),zst={name:"Sugar"},Hst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vst=ce("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),Ust=[Vst];function jst(e,t,n,r,i,l){return Ce(),Ie("svg",Hst,Ust)}var Wst=Qt(zst,[["render",jst],["__file","sugar.vue"]]),Gst={name:"SuitcaseLine"},Kst={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Yst=ce("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.
2168-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z"},null,-1),qst=[Yst];function Xst(e,t,n,r,i,l){return Ce(),Ie("svg",Kst,qst)}var Zst=Qt(Gst,[["render",Xst],["__file","suitcase-line.vue"]]),Qst={name:"Suitcase"},Jst={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},elt=ce("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),tlt=ce("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1),nlt=[elt,tlt];function rlt(e,t,n,r,i,l){return Ce(),Ie("svg",Jst,nlt)}var olt=Qt(Qst,[["render",rlt],["__file","suitcase.vue"]]),alt={name:"Sunny"},ilt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},slt=ce("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),llt=[slt];function ult(e,t,n,r,i,l){return Ce(),Ie("svg",ilt,llt)}var clt=Qt(alt,[["render",ult],["__file","sunny.vue"]]),flt={name:"Sunrise"},dlt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},vlt=ce("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1),hlt=[vlt];function plt(e,t,n,r,i,l){return Ce(),Ie("svg",dlt,hlt)}var mlt=Qt(flt,[["render",plt],["__file","sunrise.vue"]]),glt={name:"Sunset"},ylt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},blt=ce("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_lt=[blt];function wlt(e,t,n,r,i,l){return Ce(),Ie("svg",ylt,_lt)}var Clt=Qt(glt,[["render",wlt],["__file","sunset.vue"]]),xlt={name:"SwitchButton"},Elt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Slt=ce("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),Tlt=ce("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1),Alt=[Slt,Tlt];function klt(e,t,n,r,i,l){return Ce(),Ie("svg",Elt,Alt)}var Olt=Qt(xlt,[["render",klt],["__file","switch-button.vue"]]),Mlt={name:"SwitchFilled"},Nlt={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Dlt=ce("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"},null,-1),Ilt=ce("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.8
211-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"},null,-1),Rlt=[Dlt,Ilt];function Llt(e,t,n,r,i,l){return Ce(),Ie("svg",Nlt,Rlt)}var Blt=Qt(Mlt,[["render",Llt],["__file","switch-filled.vue"]]),Plt={name:"Switch"},Flt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$lt=ce("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),zlt=[$lt];function Hlt(e,t,n,r,i,l){return Ce(),Ie("svg",Flt,zlt)}var Vlt=Qt(Plt,[["render",Hlt],["__file","switch.vue"]]),Ult={name:"TakeawayBox"},jlt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wlt=ce("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1),Glt=[Wlt];function Klt(e,t,n,r,i,l){return Ce(),Ie("svg",jlt,Glt)}var Ylt=Qt(Ult,[["render",Klt],["__file","takeaway-box.vue"]]),qlt={name:"Ticket"},Xlt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zlt=ce("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1),Qlt=[Zlt];function Jlt(e,t,n,r,i,l){return Ce(),Ie("svg",Xlt,Qlt)}var eut=Qt(qlt,[["render",Jlt],["__file","ticket.vue"]]),tut={name:"Tickets"},nut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rut=ce("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),out=[rut];function aut(e,t,n,r,i,l){return Ce(),Ie("svg",nut,out)}var iut=Qt(tut,[["render",aut],["__file","tickets.vue"]]),sut={name:"Timer"},lut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uut=ce("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),cut=ce("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),fut=ce("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1),dut=[uut,cut,fut];function vut(e,t,n,r,i,l){return Ce(),Ie("svg",lut,dut)}var hut=Qt(sut,[["render",vut],["__file","timer.vue"]]),put={name:"ToiletPaper"},mut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gut=ce("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h4
2116zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),yut=ce("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1),but=[gut,yut];function _ut(e,t,n,r,i,l){return Ce(),Ie("svg",mut,but)}var wut=Qt(put,[["render",_ut],["__file","toilet-paper.vue"]]),Cut={name:"Tools"},xut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eut=ce("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),Sut=[Eut];function Tut(e,t,n,r,i,l){return Ce(),Ie("svg",xut,Sut)}var Aut=Qt(Cut,[["render",Tut],["__file","tools.vue"]]),kut={name:"TopLeft"},Out={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mut=ce("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),Nut=ce("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1),Dut=[Mut,Nut];function Iut(e,t,n,r,i,l){return Ce(),Ie("svg",Out,Dut)}var Rut=Qt(kut,[["render",Iut],["__file","top-left.vue"]]),Lut={name:"TopRight"},But={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Put=ce("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),Fut=ce("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1),$ut=[Put,Fut];function zut(e,t,n,r,i,l){return Ce(),Ie("svg",But,$ut)}var Hut=Qt(Lut,[["render",zut],["__file","top-right.vue"]]),Vut={name:"Top"},Uut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jut=ce("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),Wut=[jut];function Gut(e,t,n,r,i,l){return Ce(),Ie("svg",Uut,Wut)}var Kut=Qt(Vut,[["render",Gut],["__file","top.vue"]]),Yut={name:"TrendCharts"},qut={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xut=ce("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),Zut=[Xut];function Qut(e,t,n,r,i,l){return Ce(),Ie("svg",qut,Zut)}var Jut=Qt(Yut,[["render",Qut],["__file","trend-charts.vue"]]),ect={name:"TrophyBase"},tct={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},nct=ce("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-11
215.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z"},null,-1),rct=[nct];function oct(e,t,n,r,i,l){return Ce(),Ie("svg",tct,rct)}var act=Qt(ect,[["render",oct],["__file","trophy-base.vue"]]),ict={name:"Trophy"},sct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lct=ce("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1),uct=[lct];function cct(e,t,n,r,i,l){return Ce(),Ie("svg",sct,uct)}var fct=Qt(ict,[["render",cct],["__file","trophy.vue"]]),dct={name:"TurnOff"},vct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hct=ce("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),pct=ce("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),mct=[hct,pct];function gct(e,t,n,r,i,l){return Ce(),Ie("svg",vct,mct)}var yct=Qt(dct,[["render",gct],["__file","turn-off.vue"]]),bct={name:"Umbrella"},_ct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wct=ce("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1),Cct=[wct];function xct(e,t,n,r,i,l){return Ce(),Ie("svg",_ct,Cct)}var Ect=Qt(bct,[["render",xct],["__file","umbrella.vue"]]),Sct={name:"Unlock"},Tct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Act=ce("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),kct=ce("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1),Oct=[Act,kct];function Mct(e,t,n,r,i,l){return Ce(),Ie("svg",Tct,Oct)}var Nct=Qt(Sct,[["render",Mct],["__file","unlock.vue"]]),Dct={name:"UploadFilled"},Ict={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rct=ce("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),Lct=[Rct];function Bct(e,t,n,r,i,l){return Ce(),Ie("svg",Ict,Lct)}var Pct=Qt(Dct,[["render",Bct],["__file","upload-filled.vue"]]),Fct={name:"Upload"},$ct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zct=ce("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),Hct=[zct];function Vct(e,t,n,r,i,l){return Ce(),Ie("svg",$ct,Hct)}var Uct=Qt(Fct,[["render",Vct],["__file","upload.vue"]]),jct={name:"UserFilled"},Wct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gct=ce("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1),Kct=[Gct];function Yct(e,t,n,r,i,l){return Ce(),Ie("svg",Wct,Kct)}var qct=Qt(jct,[["render",Yct],["__file","user-filled.vue"]]),Xct={name:"User"},Zct={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qct=ce("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),Jct=[Qct];function eft(e,t,n,r,i,l){return Ce(),Ie("svg",Zct,Jct)}var tft=Qt(Xct,[["render",eft],["__file","user.vue"]]),nft={name:"Van"},rft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oft=ce("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1),aft=[oft];function ift(e,t,n,r,i,l){return Ce(),Ie("svg",rft,aft)}var sft=Qt(nft,[["render",ift],["__file","van.vue"]]),lft={name:"VideoCameraFilled"},uft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cft=ce("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1),fft=[cft];function dft(e,t,n,r,i,l){return Ce(),Ie("svg",uft,fft)}var vft=Qt(lft,[["render",dft],["__file","video-camera-filled.vue"]]),hft={name:"VideoCamera"},pft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mft=ce("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1),gft=[mft];function yft(e,t,n,r,i,l){return Ce(),Ie("svg",pft,gft)}var bft=Qt(hft,[["render",yft],["__file","video-camera.vue"]]),_ft={name:"VideoPause"},wft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cft=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),xft=[Cft];function Eft(e,t,n,r,i,l){return Ce(),Ie("svg",wft,xft)}var Sft=Qt(_ft,[["render",Eft],["__file","video-pause.vue"]]),Tft={name:"VideoPlay"},Aft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kft=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),Oft=[kft];function Mft(e,t,n,r,i,l){return Ce(),Ie("svg",Aft,Oft)}var Nft=Qt(Tft,[["render",Mft],["__file","video-play.vue"]]),Dft={name:"View"},Ift={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rft=ce("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Lft=[Rft];function Bft(e,t,n,r,i,l){return Ce(),Ie("svg",Ift,Lft)}
21var Yhe=Qt(Dft,[["render",Bft],["__file","view.vue"]]),Pft={name:"WalletFilled"},Fft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$ft=ce("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1),zft=[$ft];function Hft(e,t,n,r,i,l){return Ce(),Ie("svg",Fft,zft)}var Vft=Qt(Pft,[["render",Hft],["__file","wallet-filled.vue"]]),Uft={name:"Wallet"},jft={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Wft=ce("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),Gft=ce("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),Kft=ce("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),Yft=[Wft,Gft,Kft];function qft(e,t,n,r,i,l){return Ce(),Ie("svg",jft,Yft)}var Xft=Qt(Uft,[["render",qft],["__file","wallet.vue"]]),Zft={name:"WarnTriangleFilled"},Qft={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},Jft=ce("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z"},null,-1),edt=[Jft];function tdt(e,t,n,r,i,l){return Ce(),Ie("svg",Qft,edt)}var ndt=Qt(Zft,[["render",tdt],["__file","warn-triangle-filled.vue"]]),rdt={name:"WarningFilled"},odt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},adt=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),idt=[adt];function sdt(e,t,n,r,i,l){return Ce(),Ie("svg",odt,idt)}var rR=Qt(rdt,[["render",sdt],["__file","warning-filled.vue"]]),ldt={name:"Warning"},udt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cdt=ce("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),fdt=[cdt];function ddt(e,t,n,r,i,l){return Ce(),Ie("svg",udt,fdt)}var vdt=Qt(ldt,[["render",ddt],["__file","warning.vue"]]),hdt={name:"Watch"},pdt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mdt=ce("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),gdt=ce("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),ydt=ce("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1),bdt=[mdt,gdt,ydt];function _dt(e,t,n,r,i,l){return Ce(),Ie("svg",pdt,bdt)}var wdt=Qt(hdt,[["render",_dt],["__file","watch.vue"]]),Cdt={name:"Watermelon"},xdt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Edt=ce("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1),Sdt=[Edt];function Tdt(e,t,n,r,i,l){return Ce(),Ie("svg",xdt,Sdt)}var Adt=Qt(Cdt,[["render",Tdt],["__file","watermelon.vue"]]),kdt={name:"WindPower"},Odt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mdt=ce("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.
2112zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1),Ndt=[Mdt];function Ddt(e,t,n,r,i,l){return Ce(),Ie("svg",Odt,Ndt)}var Idt=Qt(kdt,[["render",Ddt],["__file","wind-power.vue"]]),Rdt={name:"ZoomIn"},Ldt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bdt=ce("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),Pdt=[Bdt];function Fdt(e,t,n,r,i,l){return Ce(),Ie("svg",Ldt,Pdt)}var zte=Qt(Rdt,[["render",Fdt],["__file","zoom-in.vue"]]),$dt={name:"ZoomOut"},zdt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hdt=ce("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),Vdt=[Hdt];function Udt(e,t,n,r,i,l){return Ce(),Ie("svg",zdt,Vdt)}var qhe=Qt($dt,[["render",Udt],["__file","zoom-out.vue"]]),$se=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:rIe,Aim:cIe,AlarmClock:gIe,Apple:xIe,ArrowDown:O3,ArrowDownBold:OIe,ArrowLeft:w3,ArrowLeftBold:zIe,ArrowRight:Nv,ArrowRightBold:ZIe,ArrowUp:nR,ArrowUpBold:lRe,Avatar:bRe,Back:Ohe,Baseball:DRe,Basketball:FRe,Bell:QRe,BellFilled:jRe,Bicycle:oLe,Bottom:ELe,BottomLeft:fLe,BottomRight:yLe,Bowl:MLe,Box:FLe,Briefcase:jLe,Brush:nBe,BrushFilled:XLe,Burger:lBe,Calendar:Mhe,Camera:SBe,CameraFilled:bBe,CaretBottom:NBe,CaretLeft:PBe,CaretRight:Bte,CaretTop:Nhe,Cellphone:JBe,ChatDotRound:iPe,ChatDotSquare:vPe,ChatLineRound:_Pe,ChatLineSquare:APe,ChatRound:IPe,ChatSquare:$Pe,Check:p7,Checked:XPe,Cherry:nFe,Chicken:lFe,ChromeFilled:mFe,CircleCheck:TV,CircleCheckFilled:Dhe,CircleClose:M3,CircleCloseFilled:AV,CirclePlus:QFe,CirclePlusFilled:jFe,Clock:Pte,Close:Dm,CloseBold:f$e,Cloudy:C$e,Coffee:R$e,CoffeeCup:k$e,Coin:V$e,ColdDrink:Y$e,Collection:sze,CollectionTag:eze,Comment:vze,Compass:_ze,Connection:Aze,Coordinate:Rze,CopyDocument:Hze,Cpu:Yze,CreditCard:tHe,Crop:lHe,DArrowLeft:kC,DArrowRight:OC,DCaret:EHe,DataAnalysis:MHe,DataBoard:FHe,DataLine:jHe,Delete:Ihe,DeleteFilled:XHe,DeleteLocation:oVe,Dessert:pVe,Discount:CVe,Dish:RVe,DishDot:kVe,Document:Rhe,DocumentAdd:zVe,DocumentChecked:GVe,DocumentCopy:QVe,DocumentDelete:oUe,DocumentRemove:cUe,Download:wUe,Drizzling:AUe,Edit:zUe,EditPen:IUe,Eleme:QUe,ElemeFilled:GUe,ElementPlus:oje,Expand:cje,Failed:mje,Female:Eje,Files:Mje,Film:Pje,Filter:Uje,Finished:qje,FirstAidKit:nWe,Flag:lWe,Fold:hWe,Folder:XWe,FolderAdd:_We,FolderChecked:TWe,FolderDelete:DWe,FolderOpened:FWe,FolderRemove:jWe,Food:nGe,Football:uGe,ForkSpoon:pGe,Fries:wGe,FullScreen:Lhe,Goblet:XGe,GobletFull:DGe,GobletSquare:jGe,GobletSquareFull:FGe,GoldMedal:rKe,Goods:pKe,GoodsFilled:uKe,Grape:wKe,Grid:AKe,Guide:RKe,Handbag:zKe,Headset:GKe,Help:oYe,HelpFilled:QKe,Hide:Bhe,Histogram:mYe,HomeFilled:CYe,HotWater:kYe,House:RYe,IceCream:QYe,IceCreamRound:zYe,IceCreamSquare:GYe,IceDrink:oqe,IceTea:cqe,InfoFilled:kV,Iphone:wqe,Key:Aqe,KnifeFork:Iqe,Lightning:zqe,Link:Gqe,List:Qqe,Loading:N3,Location:EXe,LocationFilled:uXe,LocationInformation:gXe,Lock:NXe,Lollipop:PXe,MagicStick:UXe,Magnet:qXe,Male:rZe,Management:uZe,MapLocation:mZe,Medal:xZe,Memo:NZe,Menu:PZe,Message:XZe,MessageBox:UZe,Mic:nQe,Microphone:lQe,MilkTea:hQe,Minus:Phe,Money:AQe,Monitor:IQe,Moon:GQe,MoonNight:zQe,More:Fhe,MoreFilled:hJ,MostlyCloudy:lJe,Mouse:pJe,Mug:wJe,Mute:LJe,MuteNotification:kJe,NoSmoking:HJe,Notebook:YJe,Notification:tet,Odometer:cet,OfficeBuilding:yet,Open:Tet,Operation:Det,Opportunity:Fet,Orange:jet,Paperclip:Xet,PartlyCloudy:rtt,Pear:utt,Phone:wtt,PhoneFilled:ptt,Picture:ztt,PictureFilled:$he,PictureRounded:Itt,PieChart:Ktt,Place:tnt,Platform:snt,Plus:Fte,Pointer:ynt,Position:Ent,Postcard:Nnt,Pouring:Pnt,Present:Gnt,PriceTag:Jnt,Printer:art,Promotion:frt,QuartzWatch:brt,QuestionFilled:zhe,Rank:Mrt,Reading:jrt,ReadingLamp:Prt,Refresh:iot,RefreshLeft:Hhe,RefreshRight:Vhe,Refrigerator:dot,Remove:Sot,RemoveFilled:yot,Right:Not,ScaleToOriginal:Uhe,School:jot,Scissor:Xot,Search:jhe,Select:sat,Sell:vat,SemiSelect:bat,Service:Sat,SetUp:Rat,Setting:zat,Share:Gat,Ship:Qat,Shop:oit,ShoppingBag:fit,ShoppingCart:Eit,ShoppingCartFull:yit,ShoppingTrolley:Mit,Smoking:Pit,Soccer:Uit,SoldOut:qit,Sort:fst,SortDown:Whe,SortUp:Ghe,Stamp:gst,Star:Khe,StarFilled:RD,Stopwatch:Rst,SuccessFilled:$te,Sugar:Wst,Suitcase:olt,SuitcaseLine:Zst,Sunny:clt,Sunrise:mlt,Sunset:Clt,Switch:Vlt,SwitchButton:Olt,SwitchFilled:Blt,TakeawayBox:Ylt,Ticket:eut,Tickets:iut,Timer:hut,ToiletPaper:wut,Tools:Aut,Top:Kut,TopLeft:Rut,TopRight:Hut,TrendCharts:Jut,Trophy:fct,TrophyBase:act,TurnOff:yct,Umbrella:Ect,Unlock:Nct,Upload:Uct,UploadFilled:Pct,User:tft,UserFilled:qct,Van:sft,VideoCamera:bft,VideoCameraFilled:vft,VideoPause:Sft,VideoPlay:Nft,View:Yhe,Wallet:Xft,WalletFilled:Vft,WarnTriangleFilled:ndt,Warning:vdt,WarningFilled:rR,Watch:wdt,Watermelon:Adt,WindPower:Idt,ZoomIn:zte,ZoomOut:qhe},Symbol.toStringTag,{value:"Module"}));const Xhe="__epPropKey",gn=e=>e,jdt=e=>Qs(e)&&!!e[Xhe],u2=(e,t)=>{if(!Qs(e)||jdt(e))return e;const{values:n,required:r,default:i,type:l,validator:u}=e,v={type:l,required:!!r,validator:n||u?h=>{let g=!1,y=[];if(n&&(y=Array.from(n),J1(e,"default")&&y.push(i),g||(g=y.includes(h))),u&&(g||(g=u(h))),!g&&y.length>0){const w=[...new Set(y)].map(C=>JSON.stringify(C)).join(", ");cCe(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${w}], got value ${JSON.stringify(h)}.`)}return g}:void 0,[Xhe]:!0};return J1(e,"default")&&(v.default=i),v},hr=e=>EH(Object.entries(e).map(([t,n])=>[t,u2(n,t)])),xl=gn([String,Object,Function]),Zhe={Close:Dm},Hte={Close:Dm,SuccessFilled:$te,InfoFilled:kV,WarningFilled:rR,CircleCloseFilled:AV},V8={success:$te,warning:rR,error:AV,info:kV},Qhe={validating:N3,success:TV,error:M3},Ca=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Jhe=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Wdt=(e,t)=>
21(e.install=n=>{n.directive(t,e)},e),qu=e=>(e.install=Ku,e),OV=(...e)=>t=>{e.forEach(n=>{Ji(n)?n(t):n.value=t})},ao={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Gdt=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],gZ=["sun","mon","tue","wed","thu","fri","sat"],Ma="update:modelValue",Ll="change",yh="input",zse=Symbol("INSTALLED_KEY"),gb=["","default","small","large"],Kdt={large:40,default:32,small:24},Ydt=e=>Kdt[e||"default"],MV=e=>["",...gb].includes(e);var Cm=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Cm||{});function pJ(e){return cu(e)&&e.type===Ur}function qdt(e){return cu(e)&&e.type===b0}function Xdt(e){return cu(e)&&!pJ(e)&&!qdt(e)}const Zdt=e=>{if(!cu(e))return{};const t=e.props||{},n=(cu(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(i=>{J1(n[i],"default")&&(r[i]=n[i].default)}),Object.keys(t).forEach(i=>{r[Uve(i)]=t[i]}),r},Qdt=e=>{if(!Oa(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},OA=e=>{const t=Oa(e)?e:[e],n=[];return t.forEach(r=>{var i;Oa(r)?n.push(...OA(r)):cu(r)&&Oa(r.children)?n.push(...OA(r.children)):(n.push(r),cu(r)&&((i=r.component)==null?void 0:i.subTree)&&n.push(...OA(r.component.subTree)))}),n},Hse=e=>[...new Set(e)],g3=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],NV=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),EI=e=>_i?window.requestAnimationFrame(e):setTimeout(e,16),DV=e=>_i?window.cancelAnimationFrame(e):clearTimeout(e),IV=()=>Math.floor(Math.random()*1e4),uu=e=>e,Jdt=["class","style"],e1t=/^on[A-Z]/,Vte=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=Ne(()=>((n==null?void 0:n.value)||[]).concat(Jdt)),i=va();return Ne(i?()=>{var l;return EH(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([u])=>!r.value.includes(u)&&!(t&&e1t.test(u))))}:()=>({}))},cb=({from:e,replacement:t,scope:n,version:r,ref:i,type:l="API"},u)=>{$n(()=>L(u),f=>{},{immediate:!0})},e0e=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=f=>{const v=f.clientX,h=f.clientY,{offsetX:g,offsetY:y}=r,w=e.value.getBoundingClientRect(),C=w.left,S=w.top,T=w.width,B=w.height,F=document.documentElement.clientWidth,R=document.documentElement.clientHeight,N=-C+g,A=-S+y,X=F-C-T+g,Z=R-S-B+y,z=Q=>{const $=Math.min(Math.max(g+Q.clientX-v,N),X),te=Math.min(Math.max(y+Q.clientY-h,A),Z);r={offsetX:$,offsetY:te},e.value.style.transform=`translate(${Nc($)}, ${Nc(te)})`},Y=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",Y)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",Y)},l=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},u=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};ia(()=>{h0(()=>{n.value?l():u()})}),Bl(()=>{u()})},t1t=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var n1t={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",n
21ov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const r1t=e=>(t,n)=>o1t(t,n,L(e)),o1t=(e,t,n)=>lu(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),a1t=e=>{const t=Ne(()=>L(e).name),n=El(e)?e:et(e);return{lang:t,locale:n,t:r1t(e)}},t0e=Symbol("localeContextKey"),Ni=e=>{const t=e||jr(t0e,et());return a1t(Ne(()=>t.value||n1t))},SH="el",i1t="is-",U9=(e,t,n,r,i)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),i&&(l+=`--${i}`),l},n0e=Symbol("namespaceContextKey"),Ute=e=>{const t=e||jr(n0e,et(SH));return Ne(()=>L(t)||SH)},Vn=(e,t)=>{const n=Ute(t);return{namespace:n,b:(T="")=>U9(n.value,e,T,"",""),e:T=>T?U9(n.value,e,"",T,""):"",m:T=>T?U9(n.value,e,"","",T):"",be:(T,B)=>T&&B?U9(n.value,e,T,B,""):"",em:(T,B)=>T&&B?U9(n.value,e,"",T,B):"",bm:(T,B)=>T&&B?U9(n.value,e,T,"",B):"",bem:(T,B,F)=>T&&B&&F?U9(n.value,e,T,B,F):"",is:(T,...B)=>{const F=B.length>=1?B[0]:!0;return T&&F?`${i1t}${T}`:""},cssVar:T=>{const B={};for(const F in T)T[F]&&(B[`--${n.value}-${F}`]=T[F]);return B},cssVarName:T=>`--${n.value}-${T}`,cssVarBlock:T=>{const B={};for(const F in T)T[F]&&(B[`--${n.value}-${e}-${F}`]=T[F]);return B},cssVarBlockName:T=>`--${n.value}-${e}-${T}`}},r0e=(e,t={})=>{El(e)||Gf("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Vn("popup"),r=Ne(()=>n.bm("parent","hidden"));if(!_i||e2(document.body,r.value))return;let i=0,l=!1,u="0";const f=()=>{setTimeout(()=>{m0(document==null?void 0:document.body,r.value),l&&document&&(document.body.style.width=u)},200)};$n(e,v=>{if(!v){f();return}l=!e2(document.body,r.value),l&&(u=document.body.style.width),i=Ahe(n.namespace.value);const h=document.documentElement.clientHeight<document.body.scrollHeight,g=R8(document.body,"overflowY");i>0&&(h||g==="scroll")&&l&&(document.body.style.width=`calc(100% - ${i}px)`),ob(document.body,r.value)}),Ede(()=>f())},s1t=u2({type:gn(Boolean),default:null}),l1t=u2({type:gn(Function)}),u1t=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:s1t,[n]:l1t};return{useModelToggle:({indicator:u,toggleReason:f,shouldHideWhenRouteChanges:v,shouldProceed:h,onShow:g,onHide:y})=>{const w=va(),{emit:C}=w,S=w.props,T=Ne(()=>Ji(S[n])),B=Ne(()=>S[e]===null),F=z=>{u.value!==!0&&(u.value=!0,f&&(f.value=z),Ji(g)&&g(z))},R=z=>{u.value!==!1&&(u.value=!1,f&&(f.value=z),Ji(y)&&y(z))},N=z=>{if(S.disabled===!0||Ji(h)&&!h())return;const Y=T.value&&_i;Y&&C(t,!0),(B.value||!Y)&&F(z)},A=z=>{if(S.disabled===!0||!_i)return;const Y=T.value&&_i;Y&&C(t,!1),(B.value||!Y)&&R(z)},X=z=>{!Wf(z)||(S.disabled&&z?T.value&&C(t,!1):u.value!==z&&(z?F():R()))},Z=()=>{u.value?A():N()};return $n(()=>S[e],X),v&&w.appContext.config.globalProperties.$route!==void 0&&$n(()=>({...w.proxy.$route}),()=>{v.value&&u.value&&A()}),ia(()=>{X(S[e])}),{hide:A,show:N,toggle:Z,hasUpdateHandler:T}},useModelToggleProps:i,useModelToggleEmits:r}},o0e=e=>{const t=va();return Ne(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var g0="top",Im="bottom",Rm="right",y0="left",jte="auto",oR=[g0,Im,Rm,y0],XA="start",SI="end",c1t="clippingParents",a0e="viewport",yD="popper",f1t="reference",Vse=oR.reduce(function(e,t){return e.concat([t+"-"+XA,t+"-"+SI])},[]),$C=[].concat(oR,[jte]).reduce(function(e,t){return e.concat([t,t+"-"+XA,t+"-"+SI])},[]),d1t="beforeRead",v1t="read",h1t="afterRead",p1t="beforeMain",m1t="main",g1t="afterMain",y1t="beforeWrite",b1t="write",_1t="afterWrite",w1t=[d1t,v1t,h1t,p1t,m1t,g1t,y1t,b1t,_1t];function fb(e){return e?(e.nodeName||"").toLowerCase():null}function c2(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ZA(e){var t=c2(e).Element;return e instanceof t||e instanceof Element}function km(e){var t=c2(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wte(e){if(typeof ShadowRoot=="undefined")return!1;var t=c2(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function C1t(e){var t=e.state;
vendor: 4,254 bytes, line 21
21Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},l=t.elements[n];!km(l)||!fb(l)||(Object.assign(l.style,r),Object.keys(i).forEach(function(u){var f=i[u];f===!1?l.removeAttribute(u):l.setAttribute(u,f===!0?"":f)}))})}function x1t(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],l=t.attributes[r]||{},u=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),f=u.reduce(function(v,h){return v[h]="",v},{});!km(i)||!fb(i)||(Object.assign(i.style,f),Object.keys(l).forEach(function(v){i.removeAttribute(v)}))})}}var Gte={name:"applyStyles",enabled:!0,phase:"write",fn:C1t,effect:x1t,requires:["computeStyles"]};function ib(e){return e.split("-")[0]}var _C=Math.max,TH=Math.min,QA=Math.round;function JA(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(km(e)&&t){var l=e.offsetHeight,u=e.offsetWidth;u>0&&(r=QA(n.width)/u||1),l>0&&(i=QA(n.height)/l||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Kte(e){var t=JA(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function i0e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wte(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C3(e){return c2(e).getComputedStyle(e)}function E1t(e){return["table","td","th"].indexOf(fb(e))>=0}function K8(e){return((ZA(e)?e.ownerDocument:e.document)||window.document).documentElement}function RV(e){return fb(e)==="html"?e:e.assignedSlot||e.parentNode||(Wte(e)?e.host:null)||K8(e)}function Use(e){return!km(e)||C3(e).position==="fixed"?null:e.offsetParent}function S1t(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&km(e)){var r=C3(e);if(r.position==="fixed")return null}var i=RV(e);for(Wte(i)&&(i=i.host);km(i)&&["html","body"].indexOf(fb(i))<0;){var l=C3(i);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return i;i=i.parentNode}return null}function aR(e){for(var t=c2(e),n=Use(e);n&&E1t(n)&&C3(n).position==="static";)n=Use(n);return n&&(fb(n)==="html"||fb(n)==="body"&&C3(n).position==="static")?t:n||S1t(e)||t}function Yte(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YD(e,t,n){return _C(e,TH(t,n))}function T1t(e,t,n){var r=YD(e,t,n);return r>n?n:r}function s0e(){return{top:0,right:0,bottom:0,left:0}}function l0e(e){return Object.assign({},s0e(),e)}function u0e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var A1t=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,l0e(typeof e!="number"?e:u0e(e,oR))};function k1t(e){var t,n=e.state,r=e.name,i=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,f=ib(n.placement),v=Yte(f),h=[y0,Rm].indexOf(f)>=0,g=h?"height":"width";if(!(!l||!u)){var y=A1t(i.padding,n),w=Kte(l),C=v==="y"?g0:y0,S=v==="y"?Im:Rm,T=n.rects.reference[g]+n.rects.reference[v]-u[v]-n.rects.popper[g],B=u[v]-n.rects.reference[v],F=aR(l),R=F?v==="y"?F.clientHeight||0:F.clientWidth||0:0,N=T/2-B/2,A=y[C],X=R-w[g]-y[S],Z=R/2-w[g]/2+N,z=YD(A,Z,X),Y=v;n.modifiersData[r]=(t={},t[Y]=z,t.centerOffset=z-Z,t)}}function O1t(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!i0e(t.elements.popper,i)||(t.elements.arrow=i))}var M1t={name:"arrow",enabled:!0,phase:"main",fn:k1t,effect:O1t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function e7(e){return e.split("-")[1]}var N1t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D1t(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:QA(t*i)/i||0,y:QA(n*i)/i||0}}
vendor: 6,311 bytes, line 21
21function jse(e){var t,n=e.popper,r=e.popperRect,i=e.placement,l=e.variation,u=e.offsets,f=e.position,v=e.gpuAcceleration,h=e.adaptive,g=e.roundOffsets,y=e.isFixed,w=u.x,C=w===void 0?0:w,S=u.y,T=S===void 0?0:S,B=typeof g=="function"?g({x:C,y:T}):{x:C,y:T};C=B.x,T=B.y;var F=u.hasOwnProperty("x"),R=u.hasOwnProperty("y"),N=y0,A=g0,X=window;if(h){var Z=aR(n),z="clientHeight",Y="clientWidth";if(Z===c2(n)&&(Z=K8(n),C3(Z).position!=="static"&&f==="absolute"&&(z="scrollHeight",Y="scrollWidth")),Z=Z,i===g0||(i===y0||i===Rm)&&l===SI){A=Im;var Q=y&&Z===X&&X.visualViewport?X.visualViewport.height:Z[z];T-=Q-r.height,T*=v?1:-1}if(i===y0||(i===g0||i===Im)&&l===SI){N=Rm;var $=y&&Z===X&&X.visualViewport?X.visualViewport.width:Z[Y];C-=$-r.width,C*=v?1:-1}}var te=Object.assign({position:f},h&&N1t),V=g===!0?D1t({x:C,y:T}):{x:C,y:T};if(C=V.x,T=V.y,v){var K;return Object.assign({},te,(K={},K[A]=R?"0":"",K[N]=F?"0":"",K.transform=(X.devicePixelRatio||1)<=1?"translate("+C+"px, "+T+"px)":"translate3d("+C+"px, "+T+"px, 0)",K))}return Object.assign({},te,(t={},t[A]=R?T+"px":"",t[N]=F?C+"px":"",t.transform="",t))}function I1t(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,l=n.adaptive,u=l===void 0?!0:l,f=n.roundOffsets,v=f===void 0?!0:f,h={placement:ib(t.placement),variation:e7(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jse(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:v})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jse(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:v})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var c0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:I1t,data:{}},H$={passive:!0};function R1t(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,l=i===void 0?!0:i,u=r.resize,f=u===void 0?!0:u,v=c2(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&h.forEach(function(g){g.addEventListener("scroll",n.update,H$)}),f&&v.addEventListener("resize",n.update,H$),function(){l&&h.forEach(function(g){g.removeEventListener("scroll",n.update,H$)}),f&&v.removeEventListener("resize",n.update,H$)}}var f0e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:R1t,data:{}},L1t={left:"right",right:"left",bottom:"top",top:"bottom"};function Iz(e){return e.replace(/left|right|bottom|top/g,function(t){return L1t[t]})}var B1t={start:"end",end:"start"};function Wse(e){return e.replace(/start|end/g,function(t){return B1t[t]})}function qte(e){var t=c2(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Xte(e){return JA(K8(e)).left+qte(e).scrollLeft}function P1t(e){var t=c2(e),n=K8(e),r=t.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,f=0;return r&&(i=r.width,l=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=r.offsetLeft,f=r.offsetTop)),{width:i,height:l,x:u+Xte(e),y:f}}function F1t(e){var t,n=K8(e),r=qte(e),i=(t=e.ownerDocument)==null?void 0:t.body,l=_C(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=_C(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+Xte(e),v=-r.scrollTop;return C3(i||n).direction==="rtl"&&(f+=_C(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:u,x:f,y:v}}function Zte(e){var t=C3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function d0e(e){return["html","body","#document"].indexOf(fb(e))>=0?e.ownerDocument.body:km(e)&&Zte(e)?e:d0e(RV(e))}function qD(e,t){var n;t===void 0&&(t=[]);var r=d0e(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),l=c2(r),u=i?[l].concat(l.visualViewport||[],Zte(r)?r:[]):r,f=t.concat(u);return i?f:f.concat(qD(RV(u)))}function mJ(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $1t(e){var t=JA(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Gse(e,t){return t===a0e?mJ(P1t(e)):ZA(t)?$1t(t):mJ(F1t(K8(e)))}function z1t(e){var t=qD(RV(e)),n=["absolute","fixed"].indexOf(C3(e).position)>=0,r=n&&km(e)?aR(e):e;return ZA(r)?t.filter(function(i){return ZA(i)&&i0e(i,r)&&fb(i)!=="body"}):[]}function H1t(e,t,n){var r=t==="clippingParents"?z1t(e):[].concat(t),i=[].concat(r,[n]),l=i[0],u=i.reduce(function(f,v){var h=Gse(e,v);return f.top=_C(h.top,f.top),f.right=TH(h.right,f.right),f.bottom=TH(h.bottom,f.bottom),f.left=_C(h.left,f.left),f},Gse(e,l));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function v0e(e){var t=e.reference,n=e.element,r=e.placement,i=r?ib(r):null,l=r?e7(r):null,u=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,v;switch(i){case g0:v={x:u,y:t.y-n.height};break;case Im:v={x:u,y:t.y+t.height};break;case Rm:v={x:t.x+t.width,y:f};break;case y0:v={x:t.x-n.width,y:f};break;default:v={x:t.x,y:t.y}}var h=i?Yte(i):null;if(h!=null){var g=h==="y"?"height":"width";switch(l){case XA:v[h]=v[h]-(t[g]/2-n[g]/2);break;case SI:v[h]=v[h]+(t[g]/2-n[g]/2);break}}return v}function TI(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,l=n.boundary,u=l===void 0?c1t:l,f=n.rootBoundary,v=f===void 0?a0e:f,h=n.elementContext,g=h===void 0?yD:h,y=n.altBoundary,w=y===void 0?!1:y,C=n.padding,S=C===void 0?0:C,T=l0e(typeof S!="number"?S:u0e(S,oR)),B=g===yD?f1t:yD,F=e.rects.popper,R=e.elements[w?B:g],N=H1t(ZA(R)?R:R.contextElement||K8(e.elements.popper),u,v),A=JA(e.elements.reference),X=v0e({reference:A,element:F,strategy:"absolute",placement:i}),Z=mJ(Object.assign({},F,X)),z=g===yD?Z:A,Y={top:N.top-z.top+T.top,bottom:z.bottom-N.bottom+T.bottom,left:N.left-z.left+T.left,right:z.right-N.right+T.right},Q=e.modifiersData.offset;if(g===yD&&Q){var $=Q[i];Object.keys(Y).forEach(function(te){var V=[Rm,Im].indexOf(te)>=0?1:-1,K=[g0,Im].indexOf(te)>=0?"y":"x";Y[te]+=$[K]*V})}return Y}function V1t(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,l=n.rootBoundary,u=n.padding,f
vendor: 8,195 bytes, line 21
21=n.flipVariations,v=n.allowedAutoPlacements,h=v===void 0?$C:v,g=e7(r),y=g?f?Vse:Vse.filter(function(S){return e7(S)===g}):oR,w=y.filter(function(S){return h.indexOf(S)>=0});w.length===0&&(w=y);var C=w.reduce(function(S,T){return S[T]=TI(e,{placement:T,boundary:i,rootBoundary:l,padding:u})[ib(T)],S},{});return Object.keys(C).sort(function(S,T){return C[S]-C[T]})}function U1t(e){if(ib(e)===jte)return[];var t=Iz(e);return[Wse(e),t,Wse(t)]}function j1t(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,l=i===void 0?!0:i,u=n.altAxis,f=u===void 0?!0:u,v=n.fallbackPlacements,h=n.padding,g=n.boundary,y=n.rootBoundary,w=n.altBoundary,C=n.flipVariations,S=C===void 0?!0:C,T=n.allowedAutoPlacements,B=t.options.placement,F=ib(B),R=F===B,N=v||(R||!S?[Iz(B)]:U1t(B)),A=[B].concat(N).reduce(function(ye,ie){return ye.concat(ib(ie)===jte?V1t(t,{placement:ie,boundary:g,rootBoundary:y,padding:h,flipVariations:S,allowedAutoPlacements:T}):ie)},[]),X=t.rects.reference,Z=t.rects.popper,z=new Map,Y=!0,Q=A[0],$=0;$<A.length;$++){var te=A[$],V=ib(te),K=e7(te)===XA,fe=[g0,Im].indexOf(V)>=0,de=fe?"width":"height",ne=TI(t,{placement:te,boundary:g,rootBoundary:y,altBoundary:w,padding:h}),le=fe?K?Rm:y0:K?Im:g0;X[de]>Z[de]&&(le=Iz(le));var _e=Iz(le),M=[];if(l&&M.push(ne[V]<=0),f&&M.push(ne[le]<=0,ne[_e]<=0),M.every(function(ye){return ye})){Q=te,Y=!1;break}z.set(te,M)}if(Y)for(var P=S?3:1,U=function(ye){var ie=A.find(function(he){var re=z.get(he);if(re)return re.slice(0,ye).every(function(be){return be})});if(ie)return Q=ie,"break"},j=P;j>0;j--){var ee=U(j);if(ee==="break")break}t.placement!==Q&&(t.modifiersData[r]._skip=!0,t.placement=Q,t.reset=!0)}}var W1t={name:"flip",enabled:!0,phase:"main",fn:j1t,requiresIfExists:["offset"],data:{_skip:!1}};function Kse(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Yse(e){return[g0,Rm,Im,y0].some(function(t){return e[t]>=0})}function G1t(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,u=TI(t,{elementContext:"reference"}),f=TI(t,{altBoundary:!0}),v=Kse(u,r),h=Kse(f,i,l),g=Yse(v),y=Yse(h);t.modifiersData[n]={referenceClippingOffsets:v,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":y})}var K1t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:G1t};function Y1t(e,t,n){var r=ib(e),i=[y0,g0].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=l[0],f=l[1];return u=u||0,f=(f||0)*i,[y0,Rm].indexOf(r)>=0?{x:f,y:u}:{x:u,y:f}}function q1t(e){var t=e.state,n=e.options,r=e.name,i=n.offset,l=i===void 0?[0,0]:i,u=$C.reduce(function(g,y){return g[y]=Y1t(y,t.rects,l),g},{}),f=u[t.placement],v=f.x,h=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=v,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=u}var X1t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q1t};function Z1t(e){var t=e.state,n=e.name;t.modifiersData[n]=v0e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var h0e={name:"popperOffsets",enabled:!0,phase:"read",fn:Z1t,data:{}};function Q1t(e){return e==="x"?"y":"x"}function J1t(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,l=i===void 0?!0:i,u=n.altAxis,f=u===void 0?!1:u,v=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.padding,w=n.tether,C=w===void 0?!0:w,S=n.tetherOffset,T=S===void 0?0:S,B=TI(t,{boundary:v,rootBoundary:h,padding:y,altBoundary:g}),F=ib(t.placement),R=e7(t.placement),N=!R,A=Yte(F),X=Q1t(A),Z=t.modifiersData.popperOffsets,z=t.rects.reference,Y=t.rects.popper,Q=typeof T=="function"?T(Object.assign({},t.rects,{placement:t.placement})):T,$=typeof Q=="number"?{mainAxis:Q,altAxis:Q}:Object.assign({mainAxis:0,altAxis:0},Q),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(Z){if(l){var K,fe=A==="y"?g0:y0,de=A==="y"?Im:Rm,ne=A==="y"?"height":"width",le=Z[A],_e=le+B[fe],M=le-B[de],P=C?-Y[ne]/2:0,U=R===XA?z[ne]:Y[ne],j=R===XA?-Y[ne]:-z[ne],ee=t.elements.arrow,ye=C&&ee?Kte(ee):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:s0e(),he=ie[fe],re=ie[de],be=YD(0,z[ne],ye[ne]),Ae=N?z[ne]/2-P-be-he-$.mainAxis:U-be-he-$.mainAxis,Te=N?-z[ne]/2+P+be+re+$.mainAxis:j+be+re+$.mainAxis,Ue=t.elements.arrow&&aR(t.elements.arrow),Oe=Ue?A==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,De=(K=te==null?void 0:te[A])!=null?K:0,$e=le+Ae-De-Oe,rt=le+Te-De,ct=YD(C?TH(_e,$e):_e,le,C?_C(M,rt):M);Z[A]=ct,V[A]=ct-le}if(f){var lt,ot=A==="x"?g0:y0,Fe=A==="x"?Im:Rm,We=Z[X],Ye=X==="y"?"height":"width",Ke=We+B[ot],mt=We-B[Fe],Ct=[g0,y0].indexOf(F)!==-1,bt=(lt=te==null?void 0:te[X])!=null?lt:0,tn=Ct?Ke:We-z[Ye]-Y[Ye]-bt+$.altAxis,Ft=Ct?We+z[Ye]+Y[Ye]-bt-$.altAxis:mt,It=C&&Ct?T1t(tn,We,Ft):YD(C?tn:Ke,We,C?Ft:mt);Z[X]=It,V[X]=It-We}t.modifiersData[r]=V}}var evt={name:"preventOverflow",enabled:!0,phase:"main",fn:J1t,requiresIfExists:["offset"]};function tvt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nvt(e){return e===c2(e)||!km(e)?qte(e):tvt(e)}function rvt(e){var t=e.getBoundingClientRect(),n=QA(t.width)/e.offsetWidth||1,r=QA(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ovt(e,t,n){n===void 0&&(n=!1);var r=km(t),i=km(t)&&rvt(t),l=K8(t),u=JA(e,i),f={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(r||!r&&!n)&&((fb(t)!=="body"||Zte(l))&&(f=nvt(t)),km(t)?(v=JA(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):l&&(v.x=Xte(l))),{x:u.left+f.scrollLeft-v.x,y:u.top+f.scrollTop-v.y,width:u.width,height:u.height}}function avt(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function i(l){n.add(l.name);var u=[].concat(l.requires||[],l.requiresIfExists||[]);u.forEach(function(f){if(!n.has(f)){var v=t.get(f);v&&i(v)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||i(l)}),r}function ivt(e){var t=avt(e);return w1t.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function svt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lvt(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qse={placement:"bottom",modifiers:[],strategy:"absolute"};function Xse(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Qte(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,l=i===void 0?qse:i;return function(u,f,v){v===void 0&&(v=l);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},qse,l),modifiersData:{},elements:{reference:u,popper:f},attributes:{},styles:{}},g=[],y=!1,w={state:h,setOptions:function(T){var B=typeof T=="function"?T(h.options):T;S(),h.options=Object.assign({},l,h.options,B),h.scrollParents={reference:ZA(u)?qD(u):u.contextElement?qD(u.contextElement):[],popper:qD(f)};var F=ivt(lvt([].concat(r,h.options.modifiers)));return h.orderedModifiers=F.filter(function(R){return R.enabled}),C(),w.update()},forceUpdate:function(){if(!y){var T=h.elements,B=T.reference,F=T.popper;if(Xse(B,F)){h.rects={reference:ovt(B,aR(F),h.options.strategy==="fixed"),popper:Kte(F)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(Y){return h.modifiersData[Y.name]=Object.assign({},Y.data)});for(var R=0;R<h.orderedModifiers.length;R++){if(h.reset===!0){h.reset=!1,R=-1;continue}var N=h.orderedModifiers[R],A=N.fn,X=N.options,Z=X===void 0?{}:X,z=N.name;typeof A=="function"&&(h=A({state:h,options:Z,name:z,instance:w})||h)}}}},update:svt(function(){return new Promise(function(T){w.forceUpdate(),T(h)})}),destroy:function(){S(),y=!0}};if(!Xse(u,f))return w;w.setOptions(v).then(function(T){!y&&v.onFirstUpdate&&v.onFirstUpdate(T)});
21function C(){h.orderedModifiers.forEach(function(T){var B=T.name,F=T.options,R=F===void 0?{}:F,N=T.effect;if(typeof N=="function"){var A=N({state:h,name:B,instance:w,options:R}),X=function(){};g.push(A||X)}})}function S(){g.forEach(function(T){return T()}),g=[]}return w}}Qte();var uvt=[f0e,h0e,c0e,Gte];Qte({defaultModifiers:uvt});var cvt=[f0e,h0e,c0e,Gte,X1t,W1t,evt,M1t,K1t],Jte=Qte({defaultModifiers:cvt});const fvt=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:v})=>{const h=dvt(v);Object.assign(u.value,h)},requires:["computeStyles"]},i=Ne(()=>{const{onFirstUpdate:v,placement:h,strategy:g,modifiers:y}=L(n);return{onFirstUpdate:v,placement:h||"bottom",strategy:g||"absolute",modifiers:[...y||[],r,{name:"applyStyles",enabled:!1}]}}),l=al(),u=et({styles:{popper:{position:L(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return $n(i,v=>{const h=L(l);h&&h.setOptions(v)},{deep:!0}),$n([e,t],([v,h])=>{f(),!(!v||!h)&&(l.value=Jte(v,h,L(i)))}),Bl(()=>{f()}),{state:Ne(()=>{var v;return{...((v=L(l))==null?void 0:v.state)||{}}}),styles:Ne(()=>L(u).styles),attributes:Ne(()=>L(u).attributes),update:()=>{var v;return(v=L(l))==null?void 0:v.update()},forceUpdate:()=>{var v;return(v=L(l))==null?void 0:v.forceUpdate()},instanceRef:Ne(()=>L(l))}};function dvt(e){const t=Object.keys(e.elements),n=EH(t.map(i=>[i,e.styles[i]||{}])),r=EH(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const ene=e=>{if(!e)return{onClick:Ku,onMousedown:Ku,onMouseup:Ku};let t=!1,n=!1;return{onClick:u=>{t&&n&&e(u),t=n=!1},onMousedown:u=>{t=u.target===u.currentTarget},onMouseup:u=>{n=u.target===u.currentTarget}}},vvt=(e,t=0)=>{if(t===0)return e;const n=et(!1);let r=0;const i=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return ia(i),$n(()=>e.value,l=>{l?i():n.value=l}),n};function Zse(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return yV(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Qse={prefix:Math.floor(Math.random()*1e4),current:0},hvt=Symbol("elIdInjection"),p0e=()=>va()?jr(hvt,Qse):Qse,Lm=e=>{const t=p0e(),n=Ute();return Ne(()=>L(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let lA=[];const Jse=e=>{const t=e;t.key===ao.esc&&lA.forEach(n=>n(t))},pvt=e=>{ia(()=>{lA.length===0&&document.addEventListener("keydown",Jse),_i&&lA.push(e)}),Bl(()=>{lA=lA.filter(t=>t!==e),lA.length===0&&_i&&document.removeEventListener("keydown",Jse)})};let ele;const m0e=()=>{const e=Ute(),t=p0e(),n=Ne(()=>`${e.value}-popper-container-${t.prefix}`),r=Ne(()=>`#${n.value}`);return{id:n,selector:r}},mvt=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},gvt=()=>{const{id:e,selector:t}=m0e();return aV(()=>{!_i||!ele&&!document.body.querySelector(t.value)&&(ele=mvt(e.value))}),{id:e,selector:t}},yvt=hr({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),g0e=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:l}=Zse(),{registerTimeout:u,cancelTimeout:f}=Zse();return{onOpen:g=>{l(()=>{r(g);const y=L(n);$o(y)&&y>0&&u(()=>{i(g)},y)},L(e))},onClose:g=>{f(),l(()=>{i(g)},L(t))}}},y0e=Symbol("elForwardRef"),bvt=e=>{$a(y0e,{setForwardRef:n=>{e.value=n}})},_vt=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),tle=et(0),b0e=2e3,_0e=Symbol("zIndexContextKey"),m7=e=>{const t=e||jr(_0e,void 0),n=Ne(()=>{const l=L(t);return $o(l)?l:b0e}),r=Ne(()=>n.value+tle.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(tle.value++,r.value)}};const AI=Math.min,MA=Math.max,AH=Math.round,U8=e=>({x:e,y:e});function wvt(e,t,n){return MA(e,AI(t,n))}function w0e(e,t){return typeof e=="function"?e(t):e}function tne(e){return e.split("-")[0]}function nne(e){return e.split("-")[1]}function Cvt(e){return e==="x"?"y":"x"}function C0e(e){return e==="y"?"height":"width"}function rne(e){return["top","bottom"].includes(tne(e))?"y":"x"}function x0e(e){return Cvt(rne(e))}function xvt(e){return{top:0,right:0,bottom:0,left:0,...e}}function Evt(e){return typeof e!="number"?xvt(e):{top:e,right:e,bottom:e,left:e}}function E0e(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function nle(e,t,n){let{reference:r,floating:i}=e;const l=rne(t),u=x0e(t),f=C0e(u),v=tne(t),h=l==="y",g=r.x+r.width/2-i.width/2,y=r.y+r.height/2-i.height/2,w=r[f]/2-i[f]/2;let C;switch(v){case"top":C={x:g,y:r.y-i.height};break;case"bottom":C={x:g,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y};break;case"left":C={x:r.x-i.width,y};break;default:C={x:r.x,y:r.y}}switch(nne(t)){case"start":C[u]-=w*(n&&h?-1:1);break;case"end":C[u]+=w*(n&&h?-1:1);break}return C}const Svt=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),v=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:i}
vendor: 8,555 bytes, line 21
21),{x:g,y}=nle(h,r,v),w=r,C={},S=0;for(let T=0;T<f.length;T++){const{name:B,fn:F}=f[T],{x:R,y:N,data:A,reset:X}=await F({x:g,y,initialPlacement:r,placement:w,strategy:i,middlewareData:C,rects:h,platform:u,elements:{reference:e,floating:t}});g=R!=null?R:g,y=N!=null?N:y,C={...C,[B]:{...C[B],...A}},X&&S<=50&&(S++,typeof X=="object"&&(X.placement&&(w=X.placement),X.rects&&(h=X.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):X.rects),{x:g,y}=nle(h,w,v)),T=-1)}return{x:g,y,placement:w,strategy:i,middlewareData:C}};const Tvt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:u,elements:f,middlewareData:v}=t,{element:h,padding:g=0}=w0e(e,t)||{};if(h==null)return{};const y=Evt(g),w={x:n,y:r},C=x0e(i),S=C0e(C),T=await u.getDimensions(h),B=C==="y",F=B?"top":"left",R=B?"bottom":"right",N=B?"clientHeight":"clientWidth",A=l.reference[S]+l.reference[C]-w[C]-l.floating[S],X=w[C]-l.reference[C],Z=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let z=Z?Z[N]:0;(!z||!await(u.isElement==null?void 0:u.isElement(Z)))&&(z=f.floating[N]||l.floating[S]);const Y=A/2-X/2,Q=z/2-T[S]/2-1,$=AI(y[F],Q),te=AI(y[R],Q),V=$,K=z-T[S]-te,fe=z/2-T[S]/2+Y,de=wvt(V,fe,K),ne=!v.arrow&&nne(i)!=null&&fe!==de&&l.reference[S]/2-(fe<V?$:te)-T[S]/2<0,le=ne?fe<V?fe-V:fe-K:0;return{[C]:w[C]+le,data:{[C]:de,centerOffset:fe-de-le,...ne&&{alignmentOffset:le}},reset:ne}}});async function Avt(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),u=tne(n),f=nne(n),v=rne(n)==="y",h=["left","top"].includes(u)?-1:1,g=l&&v?-1:1,y=w0e(t,e);let{mainAxis:w,crossAxis:C,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return f&&typeof S=="number"&&(C=f==="end"?S*-1:S),v?{x:C*g,y:w*h}:{x:w*h,y:C*g}}const kvt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:u,middlewareData:f}=t,v=await Avt(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:i+v.x,y:l+v.y,data:{...v,placement:u}}}}};function g7(e){return S0e(e)?(e.nodeName||"").toLowerCase():"#document"}function Tp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Y8(e){var t;return(t=(S0e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function S0e(e){return e instanceof Node||e instanceof Tp(e).Node}function db(e){return e instanceof Element||e instanceof Tp(e).Element}function vb(e){return e instanceof HTMLElement||e instanceof Tp(e).HTMLElement}function rle(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Tp(e).ShadowRoot}function iR(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=a2(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ovt(e){return["table","td","th"].includes(g7(e))}function LV(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function one(e){const t=ane(),n=a2(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Mvt(e){let t=j8(e);for(;vb(t)&&!t7(t);){if(LV(t))return null;if(one(t))return t;t=j8(t)}return null}function ane(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function t7(e){return["html","body","#document"].includes(g7(e))}function a2(e){return Tp(e).getComputedStyle(e)}function BV(e){return db(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function j8(e){if(g7(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rle(e)&&e.host||Y8(e);return rle(t)?t.host:t}function T0e(e){const t=j8(e);return t7(t)?e.ownerDocument?e.ownerDocument.body:e.body:vb(t)&&iR(t)?t:T0e(t)}function gJ(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=T0e(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),u=Tp(i);return l?t.concat(u,u.visualViewport||[],iR(i)?i:[],u.frameElement&&n?gJ(u.frameElement):[]):t.concat(i,gJ(i,[],n))}function A0e(e){const t=a2(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vb(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:r,f=AH(n)!==l||AH(r)!==u;return f&&(n=l,r=u),{width:n,height:r,$:f}}function k0e(e){return db(e)?e:e.contextElement}function NA(e){const t=k0e(e);if(!vb(t))return U8(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=A0e(t);let u=(l?AH(n.width):n.width)/r,f=(l?AH(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const Nvt=U8(0);function O0e(e){const t=Tp(e);return!ane()||!t.visualViewport?Nvt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dvt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tp(e)?!1:t}function kI(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=k0e(e);let u=U8(1);t&&(r?db(r)&&(u=NA(r)):u=NA(e));const f=Dvt(l,n,r)?O0e(l):U8(0);let v=(i.left+f.x)/u.x,h=(i.top+f.y)/u.y,g=i.width/u.x,y=i.height/u.y;if(l){const w=Tp(l),C=r&&db(r)?Tp(r):r;let S=w,T=S.frameElement;for(;T&&r&&C!==S;){const B=NA(T),F=T.getBoundingClientRect(),R=a2(T),N=F.left+(T.clientLeft+parseFloat(R.paddingLeft))*B.x,A=F.top+(T.clientTop+parseFloat(R.paddingTop))*B.y;v*=B.x,h*=B.y,g*=B.x,y*=B.y,v+=N,h+=A,S=Tp(T),T=S.frameElement}}return E0e({width:g,height:y,x:v,y:h})}function Ivt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",u=Y8(r),f=t?LV(t.floating):!1;if(r===u||f&&l)return n;let v={scrollLeft:0,scrollTop:0},h=U8(1);const g=U8(0),y=vb(r);if((y||!y&&!l)&&((g7(r)!=="body"||iR(u))&&(v=BV(r)),vb(r))){const w=kI(r);h=NA(r),g.x=w.x+r.clientLeft,g.y=w.y+r.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-v.scrollLeft*h.x+g.x,y:n.y*h.y-v.scrollTop*h.y+g.y}}function Rvt(e){return Array.from(e.getClientRects())}function M0e(e){return kI(Y8(e)).left+BV(e).scrollLeft}function Lvt(e){const t=Y8(e),n=BV(e),r=e.ownerDocument.body,i=MA(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=MA(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+M0e(e);const f=-n.scrollTop;return a2(r).direction==="rtl"&&(u+=MA(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:u,y:f}}function Bvt(e,t){const n=Tp(e),r=Y8(e),i=n.visualViewport;let l=r.clientWidth,u=r.clientHeight,f=0,v=0;if(i){l=i.width,u=i.height;const h=ane();(!h||h&&t==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:l,height:u,x:f,y:v}}function Pvt(e,t){const n=kI(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=vb(e)?NA(e):U8(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,v=i*l.x,h=r*l.y;return{width:u,height:f,x:v,y:h}}function ole(e,t,n){let r;if(t==="viewport")r=Bvt(e,n);else if(t==="document")r=Lvt(Y8(e));else if(db(t))r=Pvt(t,n);else{const i=O0e(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return E0e(r)}function N0e(e,t){const n=j8(e);return n===t||!db(n)||t7(n)?!1:a2(n).position==="fixed"||N0e(n,t)}function Fvt(e,t){const n=t.get(e);if(n)return n;let r=gJ(e,[],!1).filter(f=>db(f)&&g7(f)!=="body"),i=null;const l=a2(e).position==="fixed";let u=l?j8(e):e;for(;db(u)&&!t7(u);){const f=a2(u),v=one(u);!v&&f.position==="fixed"&&(i=null),(l?!v&&!i:!v&&f.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||iR(u)&&!v&&N0e(e,u))?r=r.filter(g=>g!==u):i=f,u=j8(u)}return t.set(e,r),r}function $vt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const u=[...n==="clippingAncestors"?LV(t)?[]:Fvt(t,this._c):[].concat(n),r],f=u[0],v=u.reduce((h,g)=>{const y=ole(t,g,i);return h.top=MA(y.top,h.top),h.right=AI(y.right,h.right),h.bottom=AI(y.bottom,h.bottom),h.left=MA(y.left,h.left),h},ole(t,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function zvt(e){const{width:t,height:n}=A0e(e);return{width:t,height:n}}function Hvt(e,t,n){const r=vb(t),i=Y8(t),l=n==="fixed",u=kI(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const v=U8(0);if(r||!r&&!l)if((g7(t)!=="body"||iR(i))&&(f=BV(t)),r){const y=kI(t,!0,l,t);v.x=y.x+t.clientLeft,v.y=y.y+t.clientTop}else i&&(v.x=M0e(i));const h=u.left+f.scrollLeft-v.x,g=u.top+f.scrollTop-v.y;return{x:h,y:g,width:u.width,height:u.height}}function yZ(e){return a2(e).position==="static"}
21function ale(e,t){return!vb(e)||a2(e).position==="fixed"?null:t?t(e):e.offsetParent}function D0e(e,t){const n=Tp(e);if(LV(e))return n;if(!vb(e)){let i=j8(e);for(;i&&!t7(i);){if(db(i)&&!yZ(i))return i;i=j8(i)}return n}let r=ale(e,t);for(;r&&Ovt(r)&&yZ(r);)r=ale(r,t);return r&&t7(r)&&yZ(r)&&!one(r)?n:r||Mvt(e)||n}const Vvt=async function(e){const t=this.getOffsetParent||D0e,n=this.getDimensions,r=await n(e.floating);return{reference:Hvt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Uvt(e){return a2(e).direction==="rtl"}const jvt={convertOffsetParentRelativeRectToViewportRelativeRect:Ivt,getDocumentElement:Y8,getClippingRect:$vt,getOffsetParent:D0e,getElementRects:Vvt,getClientRects:Rvt,getDimensions:zvt,getScale:NA,isElement:db,isRTL:Uvt},Wvt=kvt,Gvt=Tvt,Kvt=(e,t,n)=>{const r=new Map,i={platform:jvt,...n},l={...i.platform,_c:r};return Svt(e,t,{...i,platform:l})};hr({});const Yvt=e=>{if(!_i)return;if(!e)return e;const t=Cp(e);return t||(El(e)?t:e)},qvt=({middleware:e,placement:t,strategy:n})=>{const r=et(),i=et(),l=et(),u=et(),f=et({}),v={x:l,y:u,placement:t,strategy:n,middlewareData:f},h=async()=>{if(!_i)return;const g=Yvt(r),y=Cp(i);if(!g||!y)return;const w=await Kvt(g,y,{placement:L(t),strategy:L(n),middleware:L(e)});xI(v).forEach(C=>{v[C].value=w[C]})};return ia(()=>{h0(()=>{h()})}),{...v,update:h,referenceRef:r,contentRef:i}},Xvt=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=L(e);return r?Gvt({element:r,padding:t}).fn(n):{}}});function Zvt(e){const t=et();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:l,value:u}=e.value;if(i==null||l==null)return;const f=u.slice(0,Math.max(0,i)),v=u.slice(Math.max(0,l));t.value={selectionStart:i,selectionEnd:l,value:u,beforeTxt:f,afterTxt:v}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:l,afterTxt:u,selectionStart:f}=t.value;if(l==null||u==null||f==null)return;let v=i.length;if(i.endsWith(u))v=i.length-u.length;else if(i.startsWith(l))v=l.length;else{const h=l[f-1],g=i.indexOf(h,f-1);g!==-1&&(v=g+1)}e.value.setSelectionRange(v,v)}return[n,r]}const Qvt=(e,t,n)=>OA(e.subTree).filter(l=>{var u;return cu(l)&&((u=l.type)==null?void 0:u.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),ine=(e,t)=>{const n={},r=al([]);return{children:r,addChild:u=>{n[u.uid]=u,r.value=Qvt(e,t,n)},removeChild:u=>{delete n[u],r.value=r.value.filter(f=>f.uid!==u)}}},ev=u2({type:String,values:gb,required:!1}),I0e=Symbol("size"),Jvt=()=>{const e=jr(I0e,{});return Ne(()=>L(e.size)||"")};function eht(e,{afterFocus:t,afterBlur:n}={}){const r=va(),{emit:i}=r,l=al(),u=et(!1),f=g=>{u.value||(u.value=!0,i("focus",g),t==null||t())},v=g=>{var y;g.relatedTarget&&((y=l.value)==null?void 0:y.contains(g.relatedTarget))||(u.value=!1,i("blur",g),n==null||n())},h=()=>{var g;(g=e.value)==null||g.focus()};return $n(l,g=>{g&&(g.setAttribute("role","button"),g.setAttribute("tabindex","-1"))}),Yl(l,"click",h),{wrapperRef:l,isFocused:u,handleFocus:f,handleBlur:v}}const R0e=Symbol(),kH=et();function PV(e,t=void 0){const n=va()?jr(R0e,kH):kH;return e?Ne(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}function FV(e,t){const n=PV(),r=Vn(e,Ne(()=>{var f;return((f=n.value)==null?void 0:f.namespace)||SH})),i=Ni(Ne(()=>{var f;return(f=n.value)==null?void 0:f.locale})),l=m7(Ne(()=>{var f;return((f=n.value)==null?void 0:f.zIndex)||b0e})),u=Ne(()=>{var f;return L(t)||((f=n.value)==null?void 0:f.size)||""});return sne(Ne(()=>L(n)||{})),{ns:r,locale:i,zIndex:l,size:u}}const sne=(e,t,n=!1)=>{var r;const i=!!va(),l=i?PV():void 0,u=(r=t==null?void 0:t.provide)!=null?r:i?$a:void 0;if(!u)return;const f=Ne(()=>{const v=L(e);return l!=null&&l.value?tht(l.value,v):v});return u(R0e,f),u(t0e,Ne(()=>f.value.locale)),u(n0e,Ne(()=>f.value.namespace)),u(_0e,Ne(()=>f.value.zIndex)),u(I0e,{size:Ne(()=>f.value.size||"")}),(n||!kH.value)&&(kH.value=f.value),f},tht=(e,t)=>{var n;const r=[...new Set([...xI(e),...xI(t)])],i={};for(const l of r)i[l]=(n=t[l])!=null?n:e[l];return i},nht=hr({a11y:{type:Boolean,default:!0},locale:{type:gn(Object)},size:ev,button:{type:gn(Object)},experimentalFeatures:{type:gn(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:gn(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),yJ={},rht=Zt({name:"ElConfigProvider",props:nht,setup(e,{slots:t}){$n(()=>e.message,r=>{Object.assign(yJ,r!=null?r:{})},{immediate:!0,deep:!0});const n=sne(e);return()=>Fn(t,"default",{config:n==null?void 0:n.value})}}),oht=Ca(rht),aht="2.3.8",iht=(e=[])=>({version:aht,install:(n,r)=>{n[zse]||(n[zse]=!0,e.forEach(i=>
21n.use(i)),r&&sne(r,n,!0))}}),sht=hr({zIndex:{type:gn([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),lht={scroll:({scrollTop:e,fixed:t})=>$o(e)&&Wf(t),[Ll]:e=>Wf(e)};var vr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const L0e="ElAffix",uht=Zt({name:L0e}),cht=Zt({...uht,props:sht,emits:lht,setup(e,{expose:t,emit:n}){const r=e,i=Vn("affix"),l=al(),u=al(),f=al(),{height:v}=IAe(),{height:h,width:g,top:y,bottom:w,update:C}=rse(u,{windowScroll:!1}),S=rse(l),T=et(!1),B=et(0),F=et(0),R=Ne(()=>({height:T.value?`${h.value}px`:"",width:T.value?`${g.value}px`:""})),N=Ne(()=>{if(!T.value)return{};const Z=r.offset?Nc(r.offset):0;return{height:`${h.value}px`,width:`${g.value}px`,top:r.position==="top"?Z:"",bottom:r.position==="bottom"?Z:"",transform:F.value?`translateY(${F.value}px)`:"",zIndex:r.zIndex}}),A=()=>{if(!!f.value)if(B.value=f.value instanceof Window?document.documentElement.scrollTop:f.value.scrollTop||0,r.position==="top")if(r.target){const Z=S.bottom.value-r.offset-h.value;T.value=r.offset>y.value&&S.bottom.value>0,F.value=Z<0?Z:0}else T.value=r.offset>y.value;else if(r.target){const Z=v.value-S.top.value-r.offset-h.value;T.value=v.value-r.offset<w.value&&v.value>S.top.value,F.value=Z<0?-Z:0}else T.value=v.value-r.offset<w.value},X=()=>{C(),n("scroll",{scrollTop:B.value,fixed:T.value})};return $n(T,Z=>n("change",Z)),ia(()=>{var Z;r.target?(l.value=(Z=document.querySelector(r.target))!=null?Z:void 0,l.value||Gf(L0e,`Target is not existed: ${r.target}`)):l.value=document.documentElement,f.value=Lte(u.value,!0),C()}),Yl(f,"scroll",X),h0(A),t({update:A,updateRoot:C}),(Z,z)=>(Ce(),Ie("div",{ref_key:"root",ref:u,class:He(L(i).b()),style:Pr(L(R))},[ce("div",{class:He({[L(i).m("fixed")]:T.value}),style:Pr(L(N))},[Fn(Z.$slots,"default")],6)],6))}});var fht=vr(cht,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const dht=Ca(fht),vht=hr({size:{type:gn([Number,String])},color:{type:String}}),hht=Zt({name:"ElIcon",inheritAttrs:!1}),pht=Zt({...hht,props:vht,setup(e){const t=e,n=Vn("icon"),r=Ne(()=>{const{size:i,color:l}=t;return!i&&!l?{}:{fontSize:Vd(i)?void 0:Nc(i),"--color":l}});return(i,l)=>(Ce(),Ie("i",Pa({class:L(n).b(),style:L(r)},i.$attrs),[Fn(i.$slots,"default")],16))}});var mht=vr(pht,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Zr=Ca(mht),ght=["light","dark"],yht=hr({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:xI(V8),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:ght,default:"light"}}),bht={close:e=>e instanceof MouseEvent},_ht=Zt({name:"ElAlert"}),wht=Zt({..._ht,props:yht,emits:bht,setup(e,{emit:t}){const n=e,{Close:r}=Hte,i=g1(),l=Vn("alert"),u=et(!0),f=Ne(()=>V8[n.type]),v=Ne(()=>[l.e("icon"),{[l.is("big")]:!!n.description||!!i.default}]),h=Ne(()=>({[l.is("bold")]:n.description||i.default})),g=y=>{u.value=!1,t("close",y)};return(y,w)=>(Ce(),yn(Ic,{name:L(l).b("fade"),persisted:""},{default:Dt(()=>[ea(ce("div",{class:He([L(l).b(),L(l).m(y.type),L(l).is("center",y.center),L(l).is(y.effect)]),role:"alert"},[y.showIcon&&L(f)?(Ce(),yn(L(Zr),{key:0,class:He(L(v))},{default:Dt(()=>[(Ce(),yn(Fa(L(f))))]),_:1},8,["class"])):on("v-if",!0),ce("div",{class:He(L(l).e("content"))},[y.title||y.$slots.title?(Ce(),Ie("span",{key:0,class:He([L(l).e("title"),L(h)])},[Fn(y.$slots,"title",{},()=>[lo(Zn(y.title),1)])],2)):on("v-if",!0),y.$slots.default||y.description?(Ce(),Ie("p",{key:1,class:He(L(l).e("description"))},[Fn(y.$slots,"default",{},()=>[lo(Zn(y.description),1)])],2)):on("v-if",!0),y.closable?(Ce(),Ie(Ur,{key:2},[y.closeText?(Ce(),Ie("div",{key:0,class:He([L(l).e("close-btn"),L(l).is("customed")]),onClick:g},Zn(y.closeText),3)):(Ce(),yn(L(Zr),{key:1,class:He(L(l).e("close-btn")),onClick:g},{default:Dt(()=>[gt(L(r))]),_:1},8,["class"]))],64)):on("v-if",!0)],2)],2),[[Ti,u.value]])]),_:3},8,["name"]))}});var Cht=vr(wht,[["__file","/home/runner/work/element-plus/element-plus/packages/components/
21alert/src/alert.vue"]]);const xht=Ca(Cht),zC=Symbol("formContextKey"),hb=Symbol("formItemContextKey"),Kf=(e,t={})=>{const n=et(void 0),r=t.prop?n:o0e("size"),i=t.global?n:Jvt(),l=t.form?{size:void 0}:jr(zC,void 0),u=t.formItem?{size:void 0}:jr(hb,void 0);return Ne(()=>r.value||L(e)||(u==null?void 0:u.size)||(l==null?void 0:l.size)||i.value||"")},w0=e=>{const t=o0e("disabled"),n=jr(zC,void 0);return Ne(()=>t.value||L(e)||(n==null?void 0:n.disabled)||!1)},xh=()=>{const e=jr(zC,void 0),t=jr(hb,void 0);return{form:e,formItem:t}},q8=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=et(!1)),r||(r=et(!1));const i=et();let l;const u=Ne(()=>{var f;return!!(!e.label&&t&&t.inputIds&&((f=t.inputIds)==null?void 0:f.length)<=1)});return ia(()=>{l=$n([Kl(e,"id"),n],([f,v])=>{const h=f!=null?f:v?void 0:Lm().value;h!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!v&&h&&t.addInputId(h)),i.value=h)},{immediate:!0})}),T3(()=>{l&&l(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:u,inputId:i}},Eht=hr({size:{type:String,values:gb},disabled:Boolean}),Sht=hr({...Eht,model:Object,rules:{type:gn(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Tht={validate:(e,t,n)=>(Oa(e)||Ga(e))&&Wf(t)&&Ga(n)};function Aht(){const e=et([]),t=Ne(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const u=e.value.indexOf(l);return u===-1&&t.value,u}function r(l,u){if(l&&u){const f=n(u);e.value.splice(f,1,l)}else l&&e.value.push(l)}function i(l){const u=n(l);u>-1&&e.value.splice(u,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const V$=(e,t)=>{const n=qA(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},kht="ElForm",Oht=Zt({name:kht}),Mht=Zt({...Oht,props:Sht,emits:Tht,setup(e,{expose:t,emit:n}){const r=e,i=[],l=Kf(),u=Vn("form"),f=Ne(()=>{const{labelPosition:R,inline:N}=r;return[u.b(),u.m(l.value||"default"),{[u.m(`label-${R}`)]:R,[u.m("inline")]:N}]}),v=R=>{i.push(R)},h=R=>{R.prop&&i.splice(i.indexOf(R),1)},g=(R=[])=>{!r.model||V$(i,R).forEach(N=>N.resetField())},y=(R=[])=>{V$(i,R).forEach(N=>N.clearValidate())},w=Ne(()=>!!r.model),C=R=>{if(i.length===0)return[];const N=V$(i,R);return N.length?N:[]},S=async R=>B(void 0,R),T=async(R=[])=>{if(!w.value)return!1;const N=C(R);if(N.length===0)return!0;let A={};for(const X of N)try{await X.validate("")}catch(Z){A={...A,...Z}}return Object.keys(A).length===0?!0:Promise.reject(A)},B=async(R=[],N)=>{const A=!Ji(N);try{const X=await T(R);return X===!0&&(N==null||N(X)),X}catch(X){if(X instanceof Error)throw X;const Z=X;return r.scrollToError&&F(Object.keys(Z)[0]),N==null||N(!1,Z),A&&Promise.reject(Z)}},F=R=>{var N;const A=V$(i,R)[0];A&&((N=A.$el)==null||N.scrollIntoView(r.scrollIntoViewOptions))};return $n(()=>r.rules,()=>{r.validateOnRuleChange&&S().catch(R=>void 0)},{deep:!0}),$a(zC,gi({...Dc(r),emit:n,resetFields:g,clearValidate:y,validateField:B,addField:v,removeField:h,...Aht()})),t({validate:S,validateField:B,resetFields:g,clearValidate:y,scrollToField:F}),(R,N)=>(Ce(),Ie("form",{class:He(L(f))},[Fn(R.$slots,"default")],2))}});var Nht=vr(Mht,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function sC(){return sC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sC.apply(this,arguments)}function Dht(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,OI(e,t)}function bJ(e){return bJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bJ(e)}
21function OI(e,t){return OI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OI(e,t)}function Iht(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rz(e,t,n){return Iht()?Rz=Reflect.construct.bind():Rz=function(i,l,u){var f=[null];f.push.apply(f,l);var v=Function.bind.apply(i,f),h=new v;return u&&OI(h,u.prototype),h},Rz.apply(null,arguments)}function Rht(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _J(e){var t=typeof Map=="function"?new Map:void 0;return _J=function(r){if(r===null||!Rht(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Rz(r,arguments,bJ(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),OI(i,r)},_J(e)}var Lht=/%[sdj%]/g,Bht=function(){};typeof process!="undefined"&&process.env;function wJ(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function xp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var u=e.replace(Lht,function(f){if(f==="%%")return"%";if(i>=l)return f;switch(f){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return f}});return u}return e}function Pht(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ud(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Pht(t)&&typeof e=="string"&&!e)}function Fht(e,t,n){var r=[],i=0,l=e.length;function u(f){r.push.apply(r,f||[]),i++,i===l&&n(r)}e.forEach(function(f){t(f,u)})}function ile(e,t,n){var r=0,i=e.length;function l(u){if(u&&u.length){n(u);return}var f=r;r=r+1,f<i?t(e[f],l):n([])}l([])}function $ht(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var sle=function(e){Dht(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(_J(Error));function zht(e,t,n,r,i){if(t.first){var l=new Promise(function(w,C){var S=function(F){return r(F),F.length?C(new sle(F,wJ(F))):w(i)},T=$ht(e);ile(T,n,S)});return l.catch(function(w){return w}),l}var u=t.firstFields===!0?Object.keys(e):t.firstFields||[],f=Object.keys(e),v=f.length,h=0,g=[],y=new Promise(function(w,C){var S=function(B){if(g.push.apply(g,B),h++,h===v)return r(g),g.length?C(new sle(g,wJ(g))):w(i)};f.length||(r(g),w(i)),f.forEach(function(T){var B=e[T];u.indexOf(T)!==-1?ile(B,n,S):Fht(B,n,S)})});return y.catch(function(w){return w}),y}function Hht(e){return!!(e&&e.message!==void 0)}function Vht(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function lle(e,t){return function(n){var r;return e.fullFields?r=Vht(t,e.fullFields):r=t[n.field||e.fullField],Hht(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function ule(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=sC({},e[n],r):e[n]=r}}return e}var B0e=function(t,n,r,i,l,u){t.required&&(!r.hasOwnProperty(t.field)||Ud(n,u||t.type))&&i.push(xp(l.messages.required,t.fullField))},Uht=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(xp(l.messages.whitespace,t.fullField))},U$,jht=function(){if(U$)return U$;var e="[a-fA-F\\d:]",t=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(` 22(?: 23(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 24(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 25(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 26(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 27(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 28(?:`+r+":){2}(?:(?::"+r+"){0,3}
28:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 29(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 30(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 31)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 32`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),u=new RegExp("^"+n+"$"),f=new RegExp("^"+i+"$"),v=function(A){return A&&A.exact?l:new RegExp("(?:"+t(A)+n+t(A)+")|(?:"+t(A)+i+t(A)+")","g")};v.v4=function(N){return N&&N.exact?u:new RegExp(""+t(N)+n+t(N),"g")},v.v6=function(N){return N&&N.exact?f:new RegExp(""+t(N)+i+t(N),"g")};var h="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",y=v.v4().source,w=v.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",T="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",B="(?::\\d{2,5})?",F='(?:[/?#][^\\s"]*)?',R="(?:"+h+"|www\\.)"+g+"(?:localhost|"+y+"|"+w+"|"+C+S+T+")"+B+F;return U$=new RegExp("(?:^"+R+"$)","i"),U$},cle={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},LD={integer:function(t){return LD.number(t)&&parseInt(t,10)===t},float:function(t){return LD.number(t)&&!LD.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!LD.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cle.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jht())},hex:function(t){return typeof t=="string"&&!!t.match(cle.hex)}},Wht=function(t,n,r,i,l){if(t.required&&n===void 0){B0e(t,n,r,i,l);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],f=t.type;u.indexOf(f)>-1?LD[f](n)||i.push(xp(l.messages.types[f],t.fullField,t.type)):f&&typeof n!==t.type&&i.push(xp(l.messages.types[f],t.fullField,t.type))},Ght=function(t,n,r,i,l){var u=typeof t.len=="number",f=typeof t.min=="number",v=typeof t.max=="number",h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,y=null,w=typeof n=="number",C=typeof n=="string",S=Array.isArray(n);if(w?y="number":C?y="string":S&&(y="array"),!y)return!1;S&&(g=n.length),C&&(g=n.replace(h,"_").length),u?g!==t.len&&i.push(xp(l.messages[y].len,t.fullField,t.len)):f&&!v&&g<t.min?i.push(xp(l.messages[y].min,t.fullField,t.min)):v&&!f&&g>t.max?i.push(xp(l.messages[y].max,t.fullField,t.max)):f&&v&&(g<t.min||g>t.max)&&i.push(xp(l.messages[y].range,t.fullField,t.min,t.max))},XT="enum",Kht=function(t,n,r,i,l){t[XT]=Array.isArray(t[XT])?t[XT]:[],t[XT].indexOf(n)===-1&&i.push(xp(l.messages[XT],t.fullField,t[XT].join(", ")))},Yht=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(xp(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(n)||i.push(xp(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ls={required:B0e,whitespace:Uht,type:Wht,range:Ght,enum:Kht,pattern:Yht},qht=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n,"string")&&!t.required)return r();Ls.required(t,n,i,u,l,"string"),Ud(n,"string")||(Ls.type(t,n,i,u,l),Ls.range(t,n,i,u,l),Ls.pattern(t,n,i,u,l),t.whitespace===!0&&Ls.whitespace(t,n,i,u,l))}r(u)},Xht=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&Ls.type(t,n,i,u,l)}r(u)},Zht=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(n===""&&(n=void 0),Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&(Ls.type(t,n,i,u,l),Ls.range(t,n,i,u,l))}r(u)},Qht=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&Ls.type(t,n,i,u,l)}r(u)},Jht=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),Ud(n)||Ls.type(t,n,i,u,l)}r(u)},e0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&(Ls.type(t,n,i,u,l),Ls.range(t,n,i,u,l))}r(u)},t0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&(Ls.type(t,n,i,u,l),Ls.range(t,n,i,u,l))}r(u)},n0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(n==null&&!t.required)return r();Ls.required(t,n,i,u,l,"array"),n!=null&&(Ls.type(t,n,i,u,l),Ls.range(t,n,i,u,l))}r(u)},r0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&Ls.type(t,n,i,u,l)}r(u)},o0t="enum",a0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l),n!==void 0&&Ls[o0t](t,n,i,u,l)}r(u)},i0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n,"string")&&!t.required)return r();Ls.required(t,n,i,u,l),Ud(n,"string")||Ls.pattern(t,n,i,u,l)}r(u)},s0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n,"date")&&!t.required)return r();if(Ls.required(t,n,i,u,l),!Ud(n,"date")){var v;n instanceof Date?v=n:v=new Date(n),Ls.type(t,v,i,u,l),v&&Ls.range(t,v.getTime(),i,u,l)}}r(u)},l0t=function(t,n,r,i,l){var u=[],f=Array.isArray(n)?"array":typeof n;Ls.required(t,n,i,u,l,f),r(u)},bZ=function(t,n,r,i,l){var u=t.type,f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(Ud(n,u)&&!t.required)return r();Ls.required(t,n,i,f,l,u),Ud(n,u)||Ls.type(t,n,i,f,l)}r(f)},u0t=function(t,n,r,i,l){var u=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(Ud(n)&&!t.required)return r();Ls.required(t,n,i,u,l)}r(u)},XD={string:qht,method:Xht,number:Zht,boolean:Qht,regexp:Jht,integer:e0t,float:t0t,array:n0t,object:r0t,enum:a0t,pattern:i0t,date:s0t,url:bZ,hex:bZ,email:bZ,required:l0t,any:u0t};function CJ(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invali
32d for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var xJ=CJ(),sR=function(){function e(n){this.rules=null,this._messages=xJ,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(l){var u=r[l];i.rules[l]=Array.isArray(u)?u:[u]})},t.messages=function(r){return r&&(this._messages=ule(CJ(),r)),this._messages},t.validate=function(r,i,l){var u=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var f=r,v=i,h=l;if(typeof v=="function"&&(h=v,v={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,f),Promise.resolve(f);function g(T){var B=[],F={};function R(A){if(Array.isArray(A)){var X;B=(X=B).concat.apply(X,A)}else B.push(A)}for(var N=0;N<T.length;N++)R(T[N]);B.length?(F=wJ(B),h(B,F)):h(null,f)}if(v.messages){var y=this.messages();y===xJ&&(y=CJ()),ule(y,v.messages),v.messages=y}else v.messages=this.messages();var w={},C=v.keys||Object.keys(this.rules);C.forEach(function(T){var B=u.rules[T],F=f[T];B.forEach(function(R){var N=R;typeof N.transform=="function"&&(f===r&&(f=sC({},f)),F=f[T]=N.transform(F)),typeof N=="function"?N={validator:N}:N=sC({},N),N.validator=u.getValidationMethod(N),N.validator&&(N.field=T,N.fullField=N.fullField||T,N.type=u.getType(N),w[T]=w[T]||[],w[T].push({rule:N,value:F,source:f,field:T}))})});var S={};return zht(w,v,function(T,B){var F=T.rule,R=(F.type==="object"||F.type==="array")&&(typeof F.fields=="object"||typeof F.defaultField=="object");R=R&&(F.required||!F.required&&T.value),F.field=T.field;function N(Z,z){return sC({},z,{fullField:F.fullField+"."+Z,fullFields:F.fullFields?[].concat(F.fullFields,[Z]):[Z]})}function A(Z){Z===void 0&&(Z=[]);var z=Array.isArray(Z)?Z:[Z];!v.suppressWarning&&z.length&&e.warning("async-validator:",z),z.length&&F.message!==void 0&&(z=[].concat(F.message));var Y=z.map(lle(F,f));if(v.first&&Y.length)return S[F.field]=1,B(Y);if(!R)B(Y);else{if(F.required&&!T.value)return F.message!==void 0?Y=[].concat(F.message).map(lle(F,f)):v.error&&(Y=[v.error(F,xp(v.messages.required,F.field))]),B(Y);var Q={};F.defaultField&&Object.keys(T.value).map(function(V){Q[V]=F.defaultField}),Q=sC({},Q,T.rule.fields);var $={};Object.keys(Q).forEach(function(V){var K=Q[V],fe=Array.isArray(K)?K:[K];$[V]=fe.map(N.bind(null,V))});var te=new e($);te.messages(v.messages),T.rule.options&&(T.rule.options.messages=v.messages,T.rule.options.error=v.error),te.validate(T.value,T.rule.options||v,function(V){var K=[];Y&&Y.length&&K.push.apply(K,Y),V&&V.length&&K.push.apply(K,V),B(K.length?K:null)})}}var X;if(F.asyncValidator)X=F.asyncValidator(F,T.value,A,T.source,v);else if(F.validator){try{X=F.validator(F,T.value,A,T.source,v)}catch(Z){console.error==null||console.error(Z),v.suppressValidatorError||setTimeout(function(){throw Z},0),A(Z.message)}X===!0?A():X===!1?A(typeof F.message=="function"?F.message(F.fullField||F.field):F.message||(F.fullField||F.field)+" fails"):X instanceof Array?A(X):X instanceof Error&&A(X.message)}X&&X.then&&X.then(function(){return A()},function(Z){return A(Z)})},function(T){g(T)},f)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!XD.hasOwnProperty(r.type))throw new Error(xp("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),l=i.indexOf("message");return l!==-1&&i.splice(l,1),i.length===1&&i[0]==="required"?XD.required:XD[this.getType(r)]||void 0},e}();sR.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");XD[t]=n};sR.warning=Bht;sR.messages=xJ;sR.validators=XD;const c0t=["","error","validating","success"],f0t=hr({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:gn([String,Array])},required:{type:Boolean,default:void 0},rules:{type:gn([Object,Array])},error:String,validateStatus:{type:String,values:c0t},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:gb}}),fle="ElLabelWrap";var d0t=Zt({name:fle,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=jr(zC,void 0),r=jr(hb);r||Gf(fle,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Vn("form"),l=et(),u=et(0),f=()=>{var g;if((g=l.value)!=null&&g.firstElementChild){const y=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(y))}else return 0},v=(g="update")=>{Gr(()=>{t.default&&e.isAutoWidth&&(g==="update"?u.value=f():g==="remove"&&(n==null||n.deregisterLabelWidth(u.value)))})},h=()=>v("update");return ia(()=>{h()}),Bl(()=>{v("remove")}),S3(()=>h()),$n(u,(g,y)=>{e.updateAll&&(n==null||n.registerLabelWidth(g,y))}),Rv(Ne(()=>{var g,y;return(y=(g=l.value)==null?void 0:g.firstElementChild)!=null?y:null}),h),()=>{var g,y;if(!t)return null;const{isAutoWidth:w}=e;if(w){const C=n==null?void 0:n.autoLabelWidth,S=r==null?void 0:r.hasLabel,T={};
32if(S&&C&&C!=="auto"){const B=Math.max(0,Number.parseInt(C,10)-u.value),F=n.labelPosition==="left"?"marginRight":"marginLeft";B&&(T[F]=`${B}px`)}return gt("div",{ref:l,class:[i.be("item","label-wrap")],style:T},[(g=t.default)==null?void 0:g.call(t)])}else return gt(Ur,{ref:l},[(y=t.default)==null?void 0:y.call(t)])}}});const v0t=["role","aria-labelledby"],h0t=Zt({name:"ElFormItem"}),p0t=Zt({...h0t,props:f0t,setup(e,{expose:t}){const n=e,r=g1(),i=jr(zC,void 0),l=jr(hb,void 0),u=Kf(void 0,{formItem:!1}),f=Vn("form-item"),v=Lm().value,h=et([]),g=et(""),y=gAe(g,100),w=et(""),C=et();let S,T=!1;const B=Ne(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const re=Nc(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return re?{width:re}:{}}),F=Ne(()=>{if((i==null?void 0:i.labelPosition)==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&Q)return{};const re=Nc(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:re}:{}}),R=Ne(()=>[f.b(),f.m(u.value),f.is("error",g.value==="error"),f.is("validating",g.value==="validating"),f.is("success",g.value==="success"),f.is("required",fe.value||n.required),f.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[f.m("feedback")]:i==null?void 0:i.statusIcon}]),N=Ne(()=>Wf(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),A=Ne(()=>[f.e("error"),{[f.em("error","inline")]:N.value}]),X=Ne(()=>n.prop?Ga(n.prop)?n.prop:n.prop.join("."):""),Z=Ne(()=>!!(n.label||r.label)),z=Ne(()=>n.for||h.value.length===1?h.value[0]:void 0),Y=Ne(()=>!z.value&&Z.value),Q=!!l,$=Ne(()=>{const re=i==null?void 0:i.model;if(!(!re||!n.prop))return Dz(re,n.prop).value}),te=Ne(()=>{const{required:re}=n,be=[];n.rules&&be.push(...qA(n.rules));const Ae=i==null?void 0:i.rules;if(Ae&&n.prop){const Te=Dz(Ae,n.prop).value;Te&&be.push(...qA(Te))}if(re!==void 0){const Te=be.map((Ue,Oe)=>[Ue,Oe]).filter(([Ue])=>Object.keys(Ue).includes("required"));if(Te.length>0)for(const[Ue,Oe]of Te)Ue.required!==re&&(be[Oe]={...Ue,required:re});else be.push({required:re})}return be}),V=Ne(()=>te.value.length>0),K=re=>te.value.filter(Ae=>!Ae.trigger||!re?!0:Array.isArray(Ae.trigger)?Ae.trigger.includes(re):Ae.trigger===re).map(({trigger:Ae,...Te})=>Te),fe=Ne(()=>te.value.some(re=>re.required)),de=Ne(()=>{var re;return y.value==="error"&&n.showMessage&&((re=i==null?void 0:i.showMessage)!=null?re:!0)}),ne=Ne(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),le=re=>{g.value=re},_e=re=>{var be,Ae;const{errors:Te,fields:Ue}=re;(!Te||!Ue)&&console.error(re),le("error"),w.value=Te?(Ae=(be=Te==null?void 0:Te[0])==null?void 0:be.message)!=null?Ae:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,w.value)},M=()=>{le("success"),i==null||i.emit("validate",n.prop,!0,"")},P=async re=>{const be=X.value;return new sR({[be]:re}).validate({[be]:$.value},{firstFields:!0}).then(()=>(M(),!0)).catch(Te=>(_e(Te),Promise.reject(Te)))},U=async(re,be)=>{if(T||!n.prop)return!1;const Ae=Ji(be);if(!V.value)return be==null||be(!1),!1;const Te=K(re);return Te.length===0?(be==null||be(!0),!0):(le("validating"),P(Te).then(()=>(be==null||be(!0),!0)).catch(Ue=>{const{fields:Oe}=Ue;return be==null||be(!1,Oe),Ae?!1:Promise.reject(Oe)}))},j=()=>{le(""),w.value="",T=!1},ee=async()=>{const re=i==null?void 0:i.model;if(!re||!n.prop)return;const be=Dz(re,n.prop);T=!0,be.value=Rse(S),await Gr(),j(),T=!1},ye=re=>{h.value.includes(re)||h.value.push(re)},ie=re=>{h.value=h.value.filter(be=>be!==re)};$n(()=>n.error,re=>{w.value=re||"",le(re?"error":"")},{immediate:!0}),$n(()=>n.validateStatus,re=>le(re||""));const he=gi({...Dc(n),$el:C,size:u,validateState:g,labelId:v,inputIds:h,isGroup:Y,hasLabel:Z,addInputId:ye,removeInputId:ie,resetField:ee,clearValidate:j,validate:U});return $a(hb,he),ia(()=>{n.prop&&(i==null||i.addField(he),S=Rse($.value))}),Bl(()=>{i==null||i.removeField(he)}),t({size:u,validateMessage:w,validateState:g,validate:U,clearValidate:j,resetField:ee}),(re,be)=>{var Ae;return Ce(),Ie("div",{ref_key:"formItemRef",ref:C,class:He(L(R)),role:L(Y)?"group":void 0,"aria-labelledby":L(Y)?L(v):void 0},[gt(L(d0t),{"is-auto-width":L(B).width==="auto","update-all":((Ae=L(i))==null?void 0:Ae.labelWidth)==="auto"},{default:Dt(()=>[L(Z)?(Ce(),yn(Fa(L(z)?"label":"div"),{key:0,id:L(v),for:L(z),class:He(L(f).e("label")),style:Pr(L(B))},{default:Dt(()=>[Fn(re.$slots,"label",{label:L(ne)},()=>[lo(Zn(L(ne)),1)])]),_:3},8,["id","for","class","style"])):on("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ce("div",{class:He(L(f).e("content")),style:Pr(L(F))},[Fn(re.$slots,"default"),gt($1e,{name:`${L(f).namespace.value}-zoom-in-top`},{default:Dt(()=>[L(de)?Fn(re.$slots,"error",{key:0,error:w.value},()=>[ce("div",{class:He(L(A))},Zn(w.value),3)]):on("v-if",!0)]),_:3},8,["name"])],6)],10,v0t)}}});var P0e=vr(p0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const m0t=Ca(Nht,{FormItem:P0e}),g0t=qu(P0e);let Vg;const y0t=` 33 height:0 !important; 34 visibility:hidden !important; 35 ${Hve()?"":"overflow:hidden !important;"} 36 position:absolute !important; 37 z-index:-1000 !important; 38 top:0 !important; 39 right:0 !important; 40`,b0t=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function _0t(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:b0t.map(u=>`${u}:${t.getPropertyValue(u)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}
40function dle(e,t=1,n){var r;Vg||(Vg=document.createElement("textarea"),document.body.appendChild(Vg));const{paddingSize:i,borderSize:l,boxSizing:u,contextStyle:f}=_0t(e);Vg.setAttribute("style",`${f};${y0t}`),Vg.value=e.value||e.placeholder||"";let v=Vg.scrollHeight;const h={};u==="border-box"?v=v+l:u==="content-box"&&(v=v-i),Vg.value="";const g=Vg.scrollHeight-i;if($o(t)){let y=g*t;u==="border-box"&&(y=y+i+l),v=Math.max(y,v),h.minHeight=`${y}px`}if($o(n)){let y=g*n;u==="border-box"&&(y=y+i+l),v=Math.min(y,v)}return h.height=`${v}px`,(r=Vg.parentNode)==null||r.removeChild(Vg),Vg=void 0,h}const w0t=hr({id:{type:String,default:void 0},size:ev,disabled:Boolean,modelValue:{type:gn([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:gn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:xl},prefixIcon:{type:xl},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:gn([Object,Array,String]),default:()=>uu({})}}),C0t={[Ma]:e=>Ga(e),input:e=>Ga(e),change:e=>Ga(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},x0t=["role"],E0t=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],S0t=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],T0t=Zt({name:"ElInput",inheritAttrs:!1}),A0t=Zt({...T0t,props:w0t,emits:C0t,setup(e,{expose:t,emit:n}){const r=e,i=RC(),l=g1(),u=Ne(()=>{const bt={};return r.containerRole==="combobox"&&(bt["aria-haspopup"]=i["aria-haspopup"],bt["aria-owns"]=i["aria-owns"],bt["aria-expanded"]=i["aria-expanded"]),bt}),f=Ne(()=>[r.type==="textarea"?B.b():T.b(),T.m(C.value),T.is("disabled",S.value),T.is("exceed",ye.value),{[T.b("group")]:l.prepend||l.append,[T.bm("group","append")]:l.append,[T.bm("group","prepend")]:l.prepend,[T.m("prefix")]:l.prefix||r.prefixIcon,[T.m("suffix")]:l.suffix||r.suffixIcon||r.clearable||r.showPassword,[T.bm("suffix","password-clear")]:P.value&&U.value},i.class]),v=Ne(()=>[T.e("wrapper"),T.is("focus",$.value)]),h=Vte({excludeKeys:Ne(()=>Object.keys(u.value))}),{form:g,formItem:y}=xh(),{inputId:w}=q8(r,{formItemContext:y}),C=Kf(),S=w0(),T=Vn("input"),B=Vn("textarea"),F=al(),R=al(),N=et(!1),A=et(!1),X=et(!1),Z=et(),z=al(r.inputStyle),Y=Ne(()=>F.value||R.value),{wrapperRef:Q,isFocused:$,handleFocus:te,handleBlur:V}=eht(Y,{afterBlur(){var bt;r.validateEvent&&((bt=y==null?void 0:y.validate)==null||bt.call(y,"blur").catch(tn=>void 0))}}),K=Ne(()=>{var bt;return(bt=g==null?void 0:g.statusIcon)!=null?bt:!1}),fe=Ne(()=>(y==null?void 0:y.validateState)||""),de=Ne(()=>fe.value&&Qhe[fe.value]),ne=Ne(()=>X.value?Yhe:Bhe),le=Ne(()=>[i.style,r.inputStyle]),_e=Ne(()=>[r.inputStyle,z.value,{resize:r.resize}]),M=Ne(()=>jf(r.modelValue)?"":String(r.modelValue)),P=Ne(()=>r.clearable&&!S.value&&!r.readonly&&!!M.value&&($.value||N.value)),U=Ne(()=>r.showPassword&&!S.value&&!r.readonly&&!!M.value&&(!!M.value||$.value)),j=Ne(()=>r.showWordLimit&&!!h.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!S.value&&!r.readonly&&!r.showPassword),ee=Ne(()=>M.value.length),ye=Ne(()=>!!j.value&&ee.value>Number(h.value.maxlength)),ie=Ne(()=>!!l.suffix||!!r.suffixIcon||P.value||r.showPassword||j.value||!!fe.value&&K.value),[he,re]=Zvt(F);Rv(R,bt=>{if(Te(),!j.value||r.resize!=="both")return;const tn=bt[0],{width:Ft}=tn.contentRect;Z.value={right:`calc(100% - ${Ft+15+6}px)`}});const be=()=>{const{type:bt,autosize:tn}=r;if(!(!_i||bt!=="textarea"||!R.value))if(tn){const Ft=Qs(tn)?tn.minRows:void 0,It=Qs(tn)?tn.maxRows:void 0,Et=dle(R.value,Ft,It);z.value={overflowY:"hidden",...Et},Gr(()=>{R.value.offsetHeight,z.value=Et})}else z.value={minHeight:dle(R.value).minHeight}},Te=(bt=>{let tn=!1;return()=>{var Ft;if(tn||!r.autosize)return;((Ft=R.value)==null?void 0:Ft.offsetParent)===null||(bt(),tn=!0)}})(be),Ue=()=>{const bt=Y.value,tn=r.formatter?r.formatter(M.value):M.value;!bt||bt.value===tn||(bt.value=tn)},Oe=async bt=>{he();let{value:tn}=bt.target;if(r.formatter&&(tn=r.parser?r.parser(tn):tn),!A.value){if(tn===M.value){Ue();return}n(Ma,tn),n("input",tn),await Gr(),Ue(),re()}},De=bt=>{n("change",bt.target.value)},$e=bt=>{n("compositionstart",bt),A.value=!0},rt=bt=>{var tn;n("compositionupdate",bt);const Ft=(tn=bt.target)==null?void 0:tn.value,It=Ft[Ft.length-1]||"";A.value=!NV(It)},ct=bt=>{n("compositionend",bt),A.value&&(A.value=!1,Oe(bt))},lt=()=>{X.value=!X.value,ot()},ot=async()=>{var bt;await Gr(),(bt=Y.value)==null||bt.focus()},Fe=()=>{var bt;return(bt=Y.value)==null?void 0:bt.blur()},We=bt=>{N.value=!1,n("mouseleave",bt)},Ye=bt=>{N.value=!0,n("mouseenter",bt)},Ke=bt=>{n("keydown",bt)},mt=()=>{var bt;(bt=Y.value)==null||bt.select()},Ct=()=>{n(Ma,""),n("change",""),n("clear"),n("input","")};return $n(()=>r.modelValue,()=>{var bt;Gr(()=>be()),r.validateEvent&&((bt=y==null?void 0:y.validate)==null||bt.call(y,"change").catch(tn=>void 0))}),$n(M,()=>Ue()),$n(()=>r.type,async()=>{await Gr(),Ue(),be()}),ia(()=>{!r.formatter&&r.parser,Ue(),Gr(be)}),t({input:F,textarea:R,ref:Y,textareaStyle:_e,autosize:Kl(r,"autosize"),focus:ot,blur:Fe,select:mt,clear:Ct,resizeTextarea:be}),(bt,tn)=>ea((Ce(),Ie("div",Pa(L(u),{class:L(f),style:L(le),role:bt.containerRole,onMouseenter:Ye,onMouseleave:We}),[on(" input "),bt.type!=="textarea"?(Ce(),Ie(Ur,{key:0},[on(" prepend slot "),bt.$slots.prepend?(Ce(),Ie("div",{key:0,class:He(L(T).be("group","prepe
40nd"))},[Fn(bt.$slots,"prepend")],2)):on("v-if",!0),ce("div",{ref_key:"wrapperRef",ref:Q,class:He(L(v))},[on(" prefix slot "),bt.$slots.prefix||bt.prefixIcon?(Ce(),Ie("span",{key:0,class:He(L(T).e("prefix"))},[ce("span",{class:He(L(T).e("prefix-inner"))},[Fn(bt.$slots,"prefix"),bt.prefixIcon?(Ce(),yn(L(Zr),{key:0,class:He(L(T).e("icon"))},{default:Dt(()=>[(Ce(),yn(Fa(bt.prefixIcon)))]),_:1},8,["class"])):on("v-if",!0)],2)],2)):on("v-if",!0),ce("input",Pa({id:L(w),ref_key:"input",ref:F,class:L(T).e("inner")},L(h),{type:bt.showPassword?X.value?"text":"password":bt.type,disabled:L(S),formatter:bt.formatter,parser:bt.parser,readonly:bt.readonly,autocomplete:bt.autocomplete,tabindex:bt.tabindex,"aria-label":bt.label,placeholder:bt.placeholder,style:bt.inputStyle,form:r.form,onCompositionstart:$e,onCompositionupdate:rt,onCompositionend:ct,onInput:Oe,onFocus:tn[0]||(tn[0]=(...Ft)=>L(te)&&L(te)(...Ft)),onBlur:tn[1]||(tn[1]=(...Ft)=>L(V)&&L(V)(...Ft)),onChange:De,onKeydown:Ke}),null,16,E0t),on(" suffix slot "),L(ie)?(Ce(),Ie("span",{key:1,class:He(L(T).e("suffix"))},[ce("span",{class:He(L(T).e("suffix-inner"))},[!L(P)||!L(U)||!L(j)?(Ce(),Ie(Ur,{key:0},[Fn(bt.$slots,"suffix"),bt.suffixIcon?(Ce(),yn(L(Zr),{key:0,class:He(L(T).e("icon"))},{default:Dt(()=>[(Ce(),yn(Fa(bt.suffixIcon)))]),_:1},8,["class"])):on("v-if",!0)],64)):on("v-if",!0),L(P)?(Ce(),yn(L(Zr),{key:1,class:He([L(T).e("icon"),L(T).e("clear")]),onMousedown:Do(L(Ku),["prevent"]),onClick:Ct},{default:Dt(()=>[gt(L(M3))]),_:1},8,["class","onMousedown"])):on("v-if",!0),L(U)?(Ce(),yn(L(Zr),{key:2,class:He([L(T).e("icon"),L(T).e("password")]),onClick:lt},{default:Dt(()=>[(Ce(),yn(Fa(L(ne))))]),_:1},8,["class"])):on("v-if",!0),L(j)?(Ce(),Ie("span",{key:3,class:He(L(T).e("count"))},[ce("span",{class:He(L(T).e("count-inner"))},Zn(L(ee))+" / "+Zn(L(h).maxlength),3)],2)):on("v-if",!0),L(fe)&&L(de)&&L(K)?(Ce(),yn(L(Zr),{key:4,class:He([L(T).e("icon"),L(T).e("validateIcon"),L(T).is("loading",L(fe)==="validating")])},{default:Dt(()=>[(Ce(),yn(Fa(L(de))))]),_:1},8,["class"])):on("v-if",!0)],2)],2)):on("v-if",!0)],2),on(" append slot "),bt.$slots.append?(Ce(),Ie("div",{key:1,class:He(L(T).be("group","append"))},[Fn(bt.$slots,"append")],2)):on("v-if",!0)],64)):(Ce(),Ie(Ur,{key:1},[on(" textarea "),ce("textarea",Pa({id:L(w),ref_key:"textarea",ref:R,class:L(B).e("inner")},L(h),{tabindex:bt.tabindex,disabled:L(S),readonly:bt.readonly,autocomplete:bt.autocomplete,style:L(_e),"aria-label":bt.label,placeholder:bt.placeholder,form:r.form,onCompositionstart:$e,onCompositionupdate:rt,onCompositionend:ct,onInput:Oe,onFocus:tn[2]||(tn[2]=(...Ft)=>L(te)&&L(te)(...Ft)),onBlur:tn[3]||(tn[3]=(...Ft)=>L(V)&&L(V)(...Ft)),onChange:De,onKeydown:Ke}),null,16,S0t),L(j)?(Ce(),Ie("span",{key:0,style:Pr(Z.value),class:He(L(T).e("count"))},Zn(L(ee))+" / "+Zn(L(h).maxlength),7)):on("v-if",!0)],64))],16,x0t)),[[Ti,bt.type!=="hidden"]])}});var k0t=vr(A0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ov=Ca(k0t),gA=4,F0e={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},O0t=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),$0e=Symbol("scrollbarContextKey"),M0t=hr({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),N0t="Thumb",D0t=Zt({__name:"thumb",props:M0t,setup(e){const t=e,n=jr($0e),r=Vn("scrollbar");n||Gf(N0t,"can not inject scrollbar context");const i=et(),l=et(),u=et({}),f=et(!1);let v=!1,h=!1,g=_i?document.onselectstart:null;const y=Ne(()=>F0e[t.vertical?"vertical":"horizontal"]),w=Ne(()=>O0t({size:t.size,move:t.move,bar:y.value})),C=Ne(()=>i.value[y.value.offset]**2/n.wrapElement[y.value.scrollSize]/t.ratio/l.value[y.value.offset]),S=Z=>{var z;if(Z.stopPropagation(),Z.ctrlKey||[1,2].includes(Z.button))return;(z=window.getSelection())==null||z.removeAllRanges(),B(Z);const Y=Z.currentTarget;!Y||(u.value[y.value.axis]=Y[y.value.offset]-(Z[y.value.client]-Y.getBoundingClientRect()[y.value.direction]))},T=Z=>{if(!l.value||!i.value||!n.wrapElement)return;const z=Math.abs(Z.target.getBoundingClientRect()[y.value.direction]-Z[y.value.client]),Y=l.value[y.value.offset]/2,Q=(z-Y)*100*C.value/i.value[y.value.offset];n.wrapElement[y.value.scroll]=Q*n.wrapElement[y.value.scrollSize]/100},B=Z=>{Z.stopImmediatePropagation(),v=!0,document.addEventListener("mousemove",F),document.addEventListener("mouseup",R),g=document.onselectstart,document.onselectstart=()=>!1},F=Z=>{if(!i.value||!l.value||v===!1)return;const z=u.value[y.value.axis];if(!z)return;const Y=(i.value.getBoundingClientRect()[y.value.direction]-Z[y.value.client])*-1,Q=l.value[y.value.offset]-z,$=(Y-Q)*100*C.value/i.value[y.value.offset];n.wrapElement[y.value.scroll]=$*n.wrapElement[y.value.scrollSize]/100},R=()=>{v=!1,u.value[y.value.axis]=0,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",R),X(),h&&(f.value=!1)},N=()=>{h=!1,f.value=!!t.size},A=()=>{h=!0,f.value=v};Bl(()=>{X(),document.removeEventListener("mouseup",R)});const X=()=>{document.onselectstart!==g&&(document.onselectstart=g)};return Yl(Kl(n,"scrollbarElement"),"mousemove",N),Yl(Kl(n,"scrollbarElement"),"mouseleave",A),(Z,z)=>(Ce(),yn(Ic,{name:L(r).b("fade"),persisted:""},{default:Dt(()=>[ea(ce("div",{ref_key:"instance",ref:i,class:He([L(r).e("bar"),L(r).is(L(y).key)]),onMousedown:T},[ce("div",{ref_key:"thumb",ref:l,class:He(L(r).e("thumb")),style:Pr(L(w)),onMousedown:S},null,38)],34),[[Ti,Z.always||f.value]])]),_:1},8,["name"]))}});var vle=vr(D0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const I0t=hr({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),R0t=Zt({__name:"bar",props:I0t,setup(e,{expose:t}){const n=e,r=et(0),i=et(0);return t({handleScroll:u=>{if(u){const f=u.offsetHeight-gA,v=u.offsetWidth-gA;i.value=u.scrollTop*100/f*n.ratioY,r.value=u.scrollLeft*100/v*n.ratioX}}}),(u,f)=>(Ce(),Ie(Ur,null,[gt(vle,{move:r.value,ratio:u.ratioX,size:u.width,always:u.always},null,8,["move","ratio","size","always"]),gt(vle,{move:i.value,ratio:u.ratioY,size:u.height,vertical:"",always:u.always},null,8,["move","ratio","size","always"])],64))}});var L0t=vr(R0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const B0t=hr({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:gn([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),P0t={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($o)}
40,F0t="ElScrollbar",$0t=Zt({name:F0t}),z0t=Zt({...$0t,props:B0t,emits:P0t,setup(e,{expose:t,emit:n}){const r=e,i=Vn("scrollbar");let l,u;const f=et(),v=et(),h=et(),g=et("0"),y=et("0"),w=et(),C=et(1),S=et(1),T=Ne(()=>{const z={};return r.height&&(z.height=Nc(r.height)),r.maxHeight&&(z.maxHeight=Nc(r.maxHeight)),[r.wrapStyle,z]}),B=Ne(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),F=Ne(()=>[i.e("view"),r.viewClass]),R=()=>{var z;v.value&&((z=w.value)==null||z.handleScroll(v.value),n("scroll",{scrollTop:v.value.scrollTop,scrollLeft:v.value.scrollLeft}))};function N(z,Y){Qs(z)?v.value.scrollTo(z):$o(z)&&$o(Y)&&v.value.scrollTo(z,Y)}const A=z=>{!$o(z)||(v.value.scrollTop=z)},X=z=>{!$o(z)||(v.value.scrollLeft=z)},Z=()=>{if(!v.value)return;const z=v.value.offsetHeight-gA,Y=v.value.offsetWidth-gA,Q=z**2/v.value.scrollHeight,$=Y**2/v.value.scrollWidth,te=Math.max(Q,r.minSize),V=Math.max($,r.minSize);C.value=Q/(z-Q)/(te/(z-te)),S.value=$/(Y-$)/(V/(Y-V)),y.value=te+gA<z?`${te}px`:"",g.value=V+gA<Y?`${V}px`:""};return $n(()=>r.noresize,z=>{z?(l==null||l(),u==null||u()):({stop:l}=Rv(h,Z),u=Yl("resize",Z))},{immediate:!0}),$n(()=>[r.maxHeight,r.height],()=>{r.native||Gr(()=>{var z;Z(),v.value&&((z=w.value)==null||z.handleScroll(v.value))})}),$a($0e,gi({scrollbarElement:f,wrapElement:v})),ia(()=>{r.native||Gr(()=>{Z()})}),S3(()=>Z()),t({wrapRef:v,update:Z,scrollTo:N,setScrollTop:A,setScrollLeft:X,handleScroll:R}),(z,Y)=>(Ce(),Ie("div",{ref_key:"scrollbarRef",ref:f,class:He(L(i).b())},[ce("div",{ref_key:"wrapRef",ref:v,class:He(L(B)),style:Pr(L(T)),onScroll:R},[(Ce(),yn(Fa(z.tag),{ref_key:"resizeRef",ref:h,class:He(L(F)),style:Pr(z.viewStyle)},{default:Dt(()=>[Fn(z.$slots,"default")]),_:3},8,["class","style"]))],38),z.native?on("v-if",!0):(Ce(),yn(L0t,{key:0,ref_key:"barRef",ref:w,height:y.value,width:g.value,always:z.always,"ratio-x":S.value,"ratio-y":C.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var H0t=vr(z0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const D3=Ca(H0t),lne=Symbol("popper"),z0e=Symbol("popperContent"),V0t=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],H0e=hr({role:{type:String,values:V0t,default:"tooltip"}}),U0t=Zt({name:"ElPopper",inheritAttrs:!1}),j0t=Zt({...U0t,props:H0e,setup(e,{expose:t}){const n=e,r=et(),i=et(),l=et(),u=et(),f=Ne(()=>n.role),v={triggerRef:r,popperInstanceRef:i,contentRef:l,referenceRef:u,role:f};return t(v),$a(lne,v),(h,g)=>Fn(h.$slots,"default")}});var W0t=vr(j0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const V0e=hr({arrowOffset:{type:Number,default:5}}),G0t=Zt({name:"ElPopperArrow",inheritAttrs:!1}),K0t=Zt({...G0t,props:V0e,setup(e,{expose:t}){const n=e,r=Vn("popper"),{arrowOffset:i,arrowRef:l,arrowStyle:u}=jr(z0e,void 0);return $n(()=>n.arrowOffset,f=>{i.value=f}),Bl(()=>{l.value=void 0}),t({arrowRef:l}),(f,v)=>(Ce(),Ie("span",{ref_key:"arrowRef",ref:l,class:He(L(r).e("arrow")),style:Pr(L(u)),"data-popper-arrow":""},null,6))}});var Y0t=vr(K0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const q0t="ElOnlyChild",U0e=Zt({name:q0t,setup(e,{slots:t,attrs:n}){var r;const i=jr(y0e),l=_vt((r=i==null?void 0:i.setForwardRef)!=null?r:Ku);return()=>{var u;const f=(u=t.default)==null?void 0:u.call(t,n);if(!f||f.length>1)return null;const v=j0e(f);return v?ea(EC(v,n),[[l]]):null}}});function j0e(e){if(!e)return null;const t=e;for(const n of t){if(Qs(n))switch(n.type){case b0:continue;case YI:case"svg":return hle(n);case Ur:return j0e(n.children);default:return n}return hle(n)}return null}function hle(e){const t=Vn("only-child");return gt("span",{class:t.e("content")},[e])}const W0e=hr({virtualRef:{type:gn(Object)},virtualTriggering:Boolean,onMouseenter:{type:gn(Function)},onMouseleave:{type:gn(Function)},onClick:{type:gn(Function)},onKeydown:{type:gn(Function)},onFocus:{type:gn(Function)},onBlur:{type:gn(Function)},onContextmenu:{type:gn(Function)},id:String,open:Boolean}),X0t=Zt({name:"ElPopperTrigger",inheritAttrs:!1}),Z0t=Zt({...X0t,props:W0e,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=jr(lne,void 0);bvt(i);const l=Ne(()=>f.value?n.id:void 0),u=Ne(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),f=Ne(()=>{if(r&&r.value!=="tooltip")return r.value}),v=Ne(()=>f.value?`${n.open}`:void 0);let h;return ia(()=>{$n(()=>n.virtualRef,g=>{g&&(i.value=Cp(g))},{immediate:!0}),$n(i,(g,y)=>{h==null||h(),h=void 0,Nm(g)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(w=>{var C;const S=n[w];S&&(g.addEventListener(w.slice(2).toLowerCase(),S),(C=y==null?void 0:y.removeEventListener)==null||C.call(y,w.slice(2).toLowerCase(),S))}),h=$n([l,u,f,v],w=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((C,S)=>{jf(w[S])?g.removeAttribute(C):g.setAttribute(C,w[S])})},{immediate:!0})),Nm(y)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(w=>y.removeAttribute(w))},{immediate:!0})}),Bl(()=>{h==null||h(),h=void 0}),t({triggerRef:i}),(g,y)=>g.virtualTriggering?on("v-if",!0):(Ce(),yn(L(U0e),Pa({key:0},g.$attrs,{"aria-controls":L(l),"aria-describedby":L(u),"aria-expanded":L(v),"aria-haspopup":L(f)}),{default:Dt(()=>[Fn(g.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Q0t=vr(Z0t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const _Z="focus-trap.focus-after-trapped",wZ="focus-trap.focus-after-released",J0t="focus-trap.focusout-prevented",ple={cancelable:!0,bubbles:!1},ept={cancelable:!0,bubbles:!1},mle="focusAfterTrapped",gle="focusAfterReleased",une=Symbol("elFocusTrap"),cne=et(),$V=et(0),fne=et(0);let j$=0;const G0e=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},yle=(e,t)=>
40{for(const n of e)if(!tpt(n,t))return n},tpt=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},npt=e=>{const t=G0e(e),n=yle(t,e),r=yle(t.reverse(),e);return[n,r]},rpt=e=>e instanceof HTMLInputElement&&"select"in e,S8=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),fne.value=window.performance.now(),e!==n&&rpt(e)&&t&&e.select()}};function ble(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const opt=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=ble(e,r),e.unshift(r)},remove:r=>{var i,l;e=ble(e,r),(l=(i=e[0])==null?void 0:i.resume)==null||l.call(i)}}},apt=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(S8(r,t),document.activeElement!==n)return},_le=opt(),ipt=()=>$V.value>fne.value,W$=()=>{cne.value="pointer",$V.value=window.performance.now()},wle=()=>{cne.value="keyboard",$V.value=window.performance.now()},spt=()=>(ia(()=>{j$===0&&(document.addEventListener("mousedown",W$),document.addEventListener("touchstart",W$),document.addEventListener("keydown",wle)),j$++}),Bl(()=>{j$--,j$<=0&&(document.removeEventListener("mousedown",W$),document.removeEventListener("touchstart",W$),document.removeEventListener("keydown",wle))}),{focusReason:cne,lastUserFocusTimestamp:$V,lastAutomatedFocusTimestamp:fne}),G$=e=>new CustomEvent(J0t,{...ept,detail:e}),lpt=Zt({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[mle,gle,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=et();let r,i;const{focusReason:l}=spt();pvt(S=>{e.trapped&&!u.paused&&t("release-requested",S)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},f=S=>{if(!e.loop&&!e.trapped||u.paused)return;const{key:T,altKey:B,ctrlKey:F,metaKey:R,currentTarget:N,shiftKey:A}=S,{loop:X}=e,Z=T===ao.tab&&!B&&!F&&!R,z=document.activeElement;if(Z&&z){const Y=N,[Q,$]=npt(Y);if(Q&&$){if(!A&&z===$){const V=G$({focusReason:l.value});t("focusout-prevented",V),V.defaultPrevented||(S.preventDefault(),X&&S8(Q,!0))}else if(A&&[Q,Y].includes(z)){const V=G$({focusReason:l.value});t("focusout-prevented",V),V.defaultPrevented||(S.preventDefault(),X&&S8($,!0))}}else if(z===Y){const V=G$({focusReason:l.value});t("focusout-prevented",V),V.defaultPrevented||S.preventDefault()}}};$a(une,{focusTrapRef:n,onKeydown:f}),$n(()=>e.focusTrapEl,S=>{S&&(n.value=S)},{immediate:!0}),$n([n],([S],[T])=>{S&&(S.addEventListener("keydown",f),S.addEventListener("focusin",g),S.addEventListener("focusout",y)),T&&(T.removeEventListener("keydown",f),T.removeEventListener("focusin",g),T.removeEventListener("focusout",y))});const v=S=>{t(mle,S)},h=S=>t(gle,S),g=S=>{const T=L(n);if(!T)return;const B=S.target,F=S.relatedTarget,R=B&&T.contains(B);e.trapped||F&&T.contains(F)||(r=F),R&&t("focusin",S),!u.paused&&e.trapped&&(R?i=B:S8(i,!0))},y=S=>{const T=L(n);if(!(u.paused||!T))if(e.trapped){const B=S.relatedTarget;!jf(B)&&!T.contains(B)&&setTimeout(()=>{if(!u.paused&&e.trapped){const F=G$({focusReason:l.value});t("focusout-prevented",F),F.defaultPrevented||S8(i,!0)}},0)}else{const B=S.target;B&&T.contains(B)||t("focusout",S)}};async function w(){await Gr();const S=L(n);if(S){_le.push(u);const T=S.contains(document.activeElement)?r:document.activeElement;if(r=T,!S.contains(T)){const F=new Event(_Z,ple);S.addEventListener(_Z,v),S.dispatchEvent(F),F.defaultPrevented||Gr(()=>{let R=e.focusStartEl;Ga(R)||(S8(R),document.activeElement!==R&&(R="first")),R==="first"&&apt(G0e(S),!0),(document.activeElement===T||R==="container")&&S8(S)})}}}function C(){const S=L(n);if(S){S.removeEventListener(_Z,v);
40const T=new CustomEvent(wZ,{...ple,detail:{focusReason:l.value}});S.addEventListener(wZ,h),S.dispatchEvent(T),!T.defaultPrevented&&(l.value=="keyboard"||!ipt()||S.contains(document.activeElement))&&S8(r!=null?r:document.body),S.removeEventListener(wZ,v),_le.remove(u)}}return ia(()=>{e.trapped&&w(),$n(()=>e.trapped,S=>{S?w():C()})}),Bl(()=>{e.trapped&&C()}),{onKeydown:f}}});function upt(e,t,n,r,i,l){return Fn(e.$slots,"default",{handleKeydown:e.onKeydown})}var zV=vr(lpt,[["render",upt],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const cpt=["fixed","absolute"],fpt=hr({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:gn(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:$C,default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},strategy:{type:String,values:cpt,default:"absolute"}}),K0e=hr({...fpt,id:String,style:{type:gn([String,Array,Object])},className:{type:gn([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:gn([String,Array,Object])},popperStyle:{type:gn([String,Array,Object])},referenceEl:{type:gn(Object)},triggerTargetEl:{type:gn(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),dpt={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},vpt=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,l={placement:n,strategy:r,...i,modifiers:[...ppt(e),...t]};return mpt(l,i==null?void 0:i.modifiers),l},hpt=e=>{if(!!_i)return Cp(e)};function ppt(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function mpt(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const gpt=0,ypt=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=jr(lne,void 0),l=et(),u=et(),f=Ne(()=>({name:"eventListeners",enabled:!!e.visible})),v=Ne(()=>{var F;const R=L(l),N=(F=L(u))!=null?F:gpt;return{name:"arrow",enabled:!DDe(R),options:{element:R,padding:N}}}),h=Ne(()=>({onFirstUpdate:()=>{S()},...vpt(e,[L(v),L(f)])})),g=Ne(()=>hpt(e.referenceEl)||L(r)),{attributes:y,state:w,styles:C,update:S,forceUpdate:T,instanceRef:B}=fvt(g,n,h);return $n(B,F=>t.value=F),ia(()=>{$n(()=>{var F;return(F=L(g))==null?void 0:F.getBoundingClientRect()},()=>{S()})}),{attributes:y,arrowRef:l,contentRef:n,instanceRef:B,state:w,styles:C,role:i,forceUpdate:T,update:S}},bpt=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=m7(),l=Vn("popper"),u=Ne(()=>L(t).popper),f=et(e.zIndex||i()),v=Ne(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),h=Ne(()=>[{zIndex:L(f)},L(n).popper,e.popperStyle||{}]),g=Ne(()=>r.value==="dialog"?"false":void 0),y=Ne(()=>L(n).arrow||{});return{ariaModal:g,arrowStyle:y,contentAttrs:u,contentClass:v,contentStyle:h,contentZIndex:f,updateZIndex:()=>{f.value=e.zIndex||i()}}},_pt=(e,t)=>{const n=et(!1),r=et();return{focusStartRef:r,trapped:n,onFocusAfterReleased:h=>{var g;((g=h.detail)==null?void 0:g.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:h=>{e.visible&&!n.value&&(h.target&&(r.value=h.target),n.value=!0)},onFocusoutPrevented:h=>{e.trapping||(h.detail.focusReason==="pointer"&&h.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},wpt=Zt({name:"ElPopperContent"}),Cpt=Zt({...wpt,props:K0e,emits:dpt,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:l,onFocusAfterReleased:u,onFocusAfterTrapped:f,onFocusInTrap:v,onFocusoutPrevented:h,onReleaseRequested:g}=_pt(r,n),{attributes:y,arrowRef:w,contentRef:C,styles:S,instanceRef:T,role:B,update:F}=ypt(r),{ariaModal:R,arrowStyle:N,contentAttrs:A,contentClass:X,contentStyle:Z,updateZIndex:z}=bpt(r,{styles:S,attributes:y,role:B}),Y=jr(hb,void 0),Q=et();$a(z0e,{arrowStyle:N,arrowRef:w,arrowOffset:Q}),Y&&(Y.addInputId||Y.removeInputId)&&$a(hb,{...Y,addInputId:Ku,removeInputId:Ku});let $;const te=(K=!0)=>{F(),K&&z()},V=()=>{te(!1),r.visible&&r.focusOnShow?l.value=!0:r.visible===!1&&(l.value=!1)};return ia(()=>{$n(()=>r.triggerTargetEl,(K,fe)=>{$==null||$(),$=void 0;const de=L(K||C.value),ne=L(fe||C.value);Nm(de)&&($=$n([B,()=>r.ariaLabel,R,()=>r.id],le=>{["role","aria-label","aria-modal","id"].forEach((_e,M)=>{jf(le[M])?de.removeAttribute(_e):de.setAttribute(_e,le[M])})},{immediate:!0})),ne!==de&&Nm(ne)&&["role","aria-label","aria-modal","id"].forEach(le=>{ne.removeAttribute(le)})},{immediate:!0}),$n(()=>r.visible,V,{immediate:!0})}),Bl(()=>{$==null||$(),$=void 0}),t({popperContentRef:C,popperInstanceRef:T,updatePopper:te,contentStyle:Z}),(K,fe)=>(Ce(),Ie("div",Pa({ref_key:"contentRef",ref:C}
40,L(A),{style:L(Z),class:L(X),tabindex:"-1",onMouseenter:fe[0]||(fe[0]=de=>K.$emit("mouseenter",de)),onMouseleave:fe[1]||(fe[1]=de=>K.$emit("mouseleave",de))}),[gt(L(zV),{trapped:L(l),"trap-on-focus-in":!0,"focus-trap-el":L(C),"focus-start-el":L(i),onFocusAfterTrapped:L(f),onFocusAfterReleased:L(u),onFocusin:L(v),onFocusoutPrevented:L(h),onReleaseRequested:L(g)},{default:Dt(()=>[Fn(K.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var xpt=vr(Cpt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Y0e=Ca(W0t),HV=Symbol("elTooltip"),h1=hr({...yvt,...K0e,appendTo:{type:gn([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:gn(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),MI=hr({...W0e,disabled:Boolean,trigger:{type:gn([String,Array]),default:"hover"},triggerKeys:{type:gn(Array),default:()=>[ao.enter,ao.space]}}),{useModelToggleProps:Ept,useModelToggleEmits:Spt,useModelToggle:Tpt}=u1t("visible"),Apt=hr({...H0e,...Ept,...h1,...MI,...V0e,showArrow:{type:Boolean,default:!0}}),kpt=[...Spt,"before-show","before-hide","show","hide","open","close"],Opt=(e,t)=>Oa(e)?e.includes(t):e===t,ZT=(e,t,n)=>r=>{Opt(L(e),t)&&n(r)},Mpt=Zt({name:"ElTooltipTrigger"}),Npt=Zt({...Mpt,props:MI,setup(e,{expose:t}){const n=e,r=Vn("tooltip"),{controlled:i,id:l,open:u,onOpen:f,onClose:v,onToggle:h}=jr(HV,void 0),g=et(null),y=()=>
40{if(L(i)||n.disabled)return!0},w=Kl(n,"trigger"),C=Yu(y,ZT(w,"hover",f)),S=Yu(y,ZT(w,"hover",v)),T=Yu(y,ZT(w,"click",A=>{A.button===0&&h(A)})),B=Yu(y,ZT(w,"focus",f)),F=Yu(y,ZT(w,"focus",v)),R=Yu(y,ZT(w,"contextmenu",A=>{A.preventDefault(),h(A)})),N=Yu(y,A=>{const{code:X}=A;n.triggerKeys.includes(X)&&(A.preventDefault(),h(A))});return t({triggerRef:g}),(A,X)=>(Ce(),yn(L(Q0t),{id:L(l),"virtual-ref":A.virtualRef,open:L(u),"virtual-triggering":A.virtualTriggering,class:He(L(r).e("trigger")),onBlur:L(F),onClick:L(T),onContextmenu:L(R),onFocus:L(B),onMouseenter:L(C),onMouseleave:L(S),onKeydown:L(N)},{default:Dt(()=>[Fn(A.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Dpt=vr(Npt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Ipt=Zt({name:"ElTooltipContent",inheritAttrs:!1}),Rpt=Zt({...Ipt,props:h1,setup(e,{expose:t}){const n=e,{selector:r}=m0e(),i=Vn("tooltip"),l=et(null),u=et(!1),{controlled:f,id:v,open:h,trigger:g,onClose:y,onOpen:w,onShow:C,onHide:S,onBeforeShow:T,onBeforeHide:B}=jr(HV,void 0),F=Ne(()=>n.transition||`${i.namespace.value}-fade-in-linear`),R=Ne(()=>n.persistent);Bl(()=>{u.value=!0});const N=Ne(()=>L(R)?!0:L(h)),A=Ne(()=>n.disabled?!1:L(h)),X=Ne(()=>n.appendTo||r.value),Z=Ne(()=>{var le;return(le=n.style)!=null?le:{}}),z=Ne(()=>!L(h)),Y=()=>{S()},Q=()=>{if(L(f))return!0},$=Yu(Q,()=>{n.enterable&&L(g)==="hover"&&w()}),te=Yu(Q,()=>{L(g)==="hover"&&y()}),V=()=>{var le,_e;(_e=(le=l.value)==null?void 0:le.updatePopper)==null||_e.call(le),T==null||T()},K=()=>{B==null||B()},fe=()=>{C(),ne=gte(Ne(()=>{var le;return(le=l.value)==null?void 0:le.popperContentRef}),()=>{if(L(f))return;L(g)!=="hover"&&y()})},de=()=>{n.virtualTriggering||y()};let ne;return $n(()=>L(h),le=>{le||ne==null||ne()},{flush:"post"}),$n(()=>n.content,()=>{var le,_e;(_e=(le=l.value)==null?void 0:le.updatePopper)==null||_e.call(le)}),t({contentRef:l}),(le,_e)=>(Ce(),yn(KI,{disabled:!le.teleported,to:L(X)},[gt(Ic,{name:L(F),onAfterLeave:Y,onBeforeEnter:V,onAfterEnter:fe,onBeforeLeave:K},{default:Dt(()=>[L(N)?ea((Ce(),yn(L(xpt),Pa({key:0,id:L(v),ref_key:"contentRef",ref:l},le.$attrs,{"aria-label":le.ariaLabel,"aria-hidden":L(z),"boundaries-padding":le.boundariesPadding,"fallback-placements":le.fallbackPlacements,"gpu-acceleration":le.gpuAcceleration,offset:le.offset,placement:le.placement,"popper-options":le.popperOptions,strategy:le.strategy,effect:le.effect,enterable:le.enterable,pure:le.pure,"popper-class":le.popperClass,"popper-style":[le.popperStyle,L(Z)],"reference-el":le.referenceEl,"trigger-target-el":le.triggerTargetEl,visible:L(A),"z-index":le.zIndex,onMouseenter:L($),onMouseleave:L(te),onBlur:de,onClose:L(y)}),{default:Dt(()=>[u.value?on("v-if",!0):Fn(le.$slots,"default",{key:0})]),_:3}
40,16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Ti,L(A)]]):on("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Lpt=vr(Rpt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Bpt=["innerHTML"],Ppt={key:1},Fpt=Zt({name:"ElTooltip"}),$pt=Zt({...Fpt,props:Apt,emits:kpt,setup(e,{expose:t,emit:n}){const r=e;gvt();const i=Lm(),l=et(),u=et(),f=()=>{var F;const R=L(l);R&&((F=R.popperInstanceRef)==null||F.update())},v=et(!1),h=et(),{show:g,hide:y,hasUpdateHandler:w}=Tpt({indicator:v,toggleReason:h}),{onOpen:C,onClose:S}=g0e({showAfter:Kl(r,"showAfter"),hideAfter:Kl(r,"hideAfter"),autoClose:Kl(r,"autoClose"),open:g,close:y}),T=Ne(()=>Wf(r.visible)&&!w.value);$a(HV,{controlled:T,id:i,open:u7(v),trigger:Kl(r,"trigger"),onOpen:F=>{C(F)},onClose:F=>{S(F)},onToggle:F=>{L(v)?S(F):C(F)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:f}),$n(()=>r.disabled,F=>{F&&v.value&&(v.value=!1)});const B=()=>{var F,R;const N=(R=(F=u.value)==null?void 0:F.contentRef)==null?void 0:R.popperContentRef;return N&&N.contains(document.activeElement)};return Gee(()=>v.value&&y()),t({popperRef:l,contentRef:u,isFocusInsideContent:B,updatePopper:f,onOpen:C,onClose:S,hide:y}),(F,R)=>(Ce(),yn(L(Y0e),{ref_key:"popperRef",ref:l,role:F.role},{default:Dt(()=>[gt(Dpt,{disabled:F.disabled,trigger:F.trigger,"trigger-keys":F.triggerKeys,"virtual-ref":F.virtualRef,"virtual-triggering":F.virtualTriggering},{default:Dt(()=>[F.$slots.default?Fn(F.$slots,"default",{key:0}):on("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),gt(Lpt,{ref_key:"contentRef",ref:u,"aria-label":F.ariaLabel,"boundaries-padding":F.boundariesPadding,content:F.content,disabled:F.disabled,effect:F.effect,enterable:F.enterable,"fallback-placements":F.fallbackPlacements,"hide-after":F.hideAfter,"gpu-acceleration":F.gpuAcceleration,offset:F.offset,persistent:F.persistent,"popper-class":F.popperClass,"popper-style":F.popperStyle,placement:F.placement,"popper-options":F.popperOptions,pure:F.pure,"raw-content":F.rawContent,"reference-el":F.referenceEl,"trigger-target-el":F.triggerTargetEl,"show-after":F.showAfter,strategy:F.strategy,teleported:F.teleported,transition:F.transition,"virtual-triggering":F.virtualTriggering,"z-index":F.zIndex,"append-to":F.appendTo},{default:Dt(()=>[Fn(F.$slots,"content",{},()=>[F.rawContent?(Ce(),Ie("span",{key:0,innerHTML:F.content},null,8,Bpt)):(Ce(),Ie("span",Ppt,Zn(F.content),1))]),F.showArrow?(Ce(),yn(L(Y0t),{key:0,"arrow-offset":F.arrowOffset},null,8,["arrow-offset"])):on("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var zpt=vr($pt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ch=Ca(zpt),Hpt=hr({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:gn(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:gn([Function,Array]),default:Ku},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:h1.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),Vpt={[Ma]:e=>Ga(e),[yh]:e=>Ga(e),[Ll]:e=>Ga(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Qs(e)},Upt=["aria-expanded","aria-owns"],jpt={key:0},Wpt=["id","aria-selected","onClick"],q0e="ElAutocomplete",Gpt=Zt({name:q0e,inheritAttrs:!1}),Kpt=Zt({...Gpt,props:Hpt,emits:Vpt,setup(e,{expose:t,emit:n}){const r=e,i=Vte(),l=RC(),u=w0(),f=Vn("autocomplete"),v=et(),h=et(),g=et(),y=et();let w=!1,C=!1;const S=et([]),T=et(-1),B=et(""),F=et(!1),R=et(!1),N=et(!1),A=Ne(()=>f.b(String(IV()))),X=Ne(()=>l.style),Z=Ne(()=>(S.value.length>0||N.value)&&F.value),z=Ne(()=>
40!r.hideLoading&&N.value),Y=Ne(()=>v.value?Array.from(v.value.$el.querySelectorAll("input")):[]),Q=async()=>{await Gr(),Z.value&&(B.value=`${v.value.$el.offsetWidth}px`)},$=()=>{T.value=-1},V=Lv(async he=>{if(R.value)return;const re=be=>{N.value=!1,!R.value&&(Oa(be)?(S.value=be,T.value=r.highlightFirstItem?0:-1):Gf(q0e,"autocomplete suggestions must be an array"))};if(N.value=!0,Oa(r.fetchSuggestions))re(r.fetchSuggestions);else{const be=await r.fetchSuggestions(he,re);Oa(be)&&re(be)}},r.debounce),K=he=>{const re=!!he;if(n(yh,he),n(Ma,he),R.value=!1,F.value||(F.value=re),!r.triggerOnFocus&&!he){R.value=!0,S.value=[];return}V(he)},fe=he=>{var re;u.value||(((re=he.target)==null?void 0:re.tagName)!=="INPUT"||Y.value.includes(document.activeElement))&&(F.value=!0)},de=he=>{n(Ll,he)},ne=he=>{C?C=!1:(F.value=!0,n("focus",he),r.triggerOnFocus&&!w&&V(String(r.modelValue)))},le=he=>{setTimeout(()=>{var re;if((re=g.value)!=null&&re.isFocusInsideContent()){C=!0;return}F.value&&U(),n("blur",he)})},_e=()=>{F.value=!1,n(Ma,""),n("clear")},M=async()=>{Z.value&&T.value>=0&&T.value<S.value.length?ye(S.value[T.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),S.value=[],T.value=-1)},P=he=>{Z.value&&(he.preventDefault(),he.stopPropagation(),U())},U=()=>{F.value=!1},j=()=>{var he;(he=v.value)==null||he.focus()},ee=()=>{var he;(he=v.value)==null||he.blur()},ye=async he=>{n(yh,he[r.valueKey]),n(Ma,he[r.valueKey]),n("select",he),S.value=[],T.value=-1},ie=he=>{if(!Z.value||N.value)return;if(he<0){T.value=-1;return}he>=S.value.length&&(he=S.value.length-1);const re=h.value.querySelector(`.${f.be("suggestion","wrap")}`),Ae=re.querySelectorAll(`.${f.be("suggestion","list")} li`)[he],Te=re.scrollTop,{offsetTop:Ue,scrollHeight:Oe}=Ae;Ue+Oe>Te+re.clientHeight&&(re.scrollTop+=Oe),Ue<Te&&(re.scrollTop-=Oe),T.value=he,v.value.ref.setAttribute("aria-activedescendant",`${A.value}-item-${T.value}`)};return gte(y,()=>{Z.value&&U()}),ia(()=>{v.value.ref.setAttribute("role","textbox"),v.value.ref.setAttribute("aria-autocomplete","list"),v.value.ref.setAttribute("aria-controls","id"),v.value.ref.setAttribute("aria-activedescendant",`${A.value}-item-${T.value}`),w=v.value.ref.hasAttribute("readonly")}),t({highlightedIndex:T,activated:F,loading:N,inputRef:v,popperRef:g,suggestions:S,handleSelect:ye,handleKeyEnter:M,focus:j,blur:ee,close:U,highlight:ie}),(he,re)=>(Ce(),yn(L(Ch),{ref_key:"popperRef",ref:g,visible:L(Z),placement:he.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[L(f).e("popper"),he.popperClass],teleported:he.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${L(f).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:Q,onHide:$},{content:Dt(()=>[ce("div",{ref_key:"regionRef",ref:h,class:He([L(f).b("suggestion"),L(f).is("loading",L(z))]),style:Pr({[he.fitInputWidth?"width":"minWidth"]:B.value,outline:"none"}),role:"region"},[gt(L(D3),{id:L(A),tag:"ul","wrap-class":L(f).be("suggestion","wrap"),"view-class":L(f).be("suggestion","list"),role:"listbox"},{default:Dt(()=>[L(z)?(Ce(),Ie("li",jpt,[gt(L(Zr),{class:He(L(f).is("loading"))},{default:Dt(()=>[gt(L(N3))]),_:1},8,["class"])])):(Ce(!0),Ie(Ur,{key:1},La(S.value,(be,Ae)=>(Ce(),Ie("li",{id:`${L(A)}-item-${Ae}`,key:Ae,class:He({highlighted:T.value===Ae}),role:"option","aria-selected":T.value===Ae,onClick:Te=>ye(be)},[Fn(he.$slots,"default",{item:be},()=>[lo(Zn(be[he.valueKey]),1)])],10,Wpt))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Dt(()=>
40[ce("div",{ref_key:"listboxRef",ref:y,class:He([L(f).b(),he.$attrs.class]),style:Pr(L(X)),role:"combobox","aria-haspopup":"listbox","aria-expanded":L(Z),"aria-owns":L(A)},[gt(L(Ov),Pa({ref_key:"inputRef",ref:v},L(i),{clearable:he.clearable,disabled:L(u),name:he.name,"model-value":he.modelValue,onInput:K,onChange:de,onFocus:ne,onBlur:le,onClear:_e,onKeydown:[re[0]||(re[0]=mi(Do(be=>ie(T.value-1),["prevent"]),["up"])),re[1]||(re[1]=mi(Do(be=>ie(T.value+1),["prevent"]),["down"])),mi(M,["enter"]),mi(U,["tab"]),mi(P,["esc"])],onMousedown:fe}),b3({_:2},[he.$slots.prepend?{name:"prepend",fn:Dt(()=>[Fn(he.$slots,"prepend")])}:void 0,he.$slots.append?{name:"append",fn:Dt(()=>[Fn(he.$slots,"append")])}:void 0,he.$slots.prefix?{name:"prefix",fn:Dt(()=>[Fn(he.$slots,"prefix")])}:void 0,he.$slots.suffix?{name:"suffix",fn:Dt(()=>[Fn(he.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,Upt)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Ypt=vr(Kpt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const qpt=Ca(Ypt),Xpt=hr({size:{type:[Number,String],values:gb,default:"",validator:e=>$o(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:xl},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:gn(String),default:"cover"}}),Zpt={error:e=>e instanceof Event},Qpt=["src","alt","srcset"],Jpt=Zt({name:"ElAvatar"}),emt=Zt({...Jpt,props:Xpt,emits:Zpt,setup(e,{emit:t}){const n=e,r=Vn("avatar"),i=et(!1),l=Ne(()=>{const{size:h,icon:g,shape:y}=n,w=[r.b()];return Ga(h)&&w.push(r.m(h)),g&&w.push(r.m("icon")),y&&w.push(r.m(y)),w}),u=Ne(()=>{const{size:h}=n;return $o(h)?r.cssVarBlock({size:Nc(h)||""}):void 0}),f=Ne(()=>({objectFit:n.fit}));$n(()=>n.src,()=>i.value=!1);function v(h){i.value=!0,t("error",h)}return(h,g)=>(Ce(),Ie("span",{class:He(L(l)),style:Pr(L(u))},[(h.src||h.srcSet)&&!i.value?(Ce(),Ie("img",{key:0,src:h.src,alt:h.alt,srcset:h.srcSet,style:Pr(L(f)),onError:v},null,44,Qpt)):h.icon?(Ce(),yn(L(Zr),{key:1},{default:Dt(()=>[(Ce(),yn(Fa(h.icon)))]),_:1})):Fn(h.$slots,"default",{key:2})],6))}});var tmt=vr(emt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const nmt=Ca(tmt),rmt={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},omt={click:e=>e instanceof MouseEvent},amt=(e,t,n)=>{const r=al(),i=al(),l=et(!1),u=()=>{r.value&&(l.value=r.value.scrollTop>=e.visibilityHeight)},f=h=>{var g;(g=r.value)==null||g.scrollTo({top:0,behavior:"smooth"}),t("click",h)},v=zve(u,300,!0);return Yl(i,"scroll",v),ia(()=>{var h;i.value=document,r.value=document.documentElement,e.target&&(r.value=(h=document.querySelector(e.target))!=null?h:void 0,r.value||Gf(n,`target does not exist: ${e.target}`),i.value=r.value),u()}),{visible:l,handleClick:f}},X0e="ElBacktop",imt=Zt({name:X0e}),smt=Zt({...imt,props:rmt,emits:omt,setup(e,{emit:t}){const n=e,r=Vn("backtop"),{handleClick:i,visible:l}=amt(n,t,X0e),u=Ne(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(f,v)=>(Ce(),yn(Ic,{name:`${L(r).namespace.value}-fade-in`},{default:Dt(()=>[L(l)?(Ce(),Ie("div",{key:0,style:Pr(L(u)),class:He(L(r).b()),onClick:v[0]||(v[0]=Do((...h)=>L(i)&&L(i)(...h),["stop"]))},[Fn(f.$slots,"default",{},()=>[gt(L(Zr),{class:He(L(r).e("icon"))},{default:Dt(()=>[gt(L(Nhe))]),_:1},8,["class"])])],6)):on("v-if",!0)]),_:3},8,["name"]))}});var lmt=vr(smt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const umt=Ca(lmt),cmt=hr({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),fmt=["textContent"],dmt=Zt({name:"ElBadge"}),vmt=Zt({...dmt,props:cmt,setup(e,{expose:t}){const n=e,r=Vn("badge"),i=Ne(()=>n.isDot?"":$o(n.value)&&$o(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(l,u)=>(Ce(),Ie("div",{class:He(L(r).b())},[Fn(l.$slots,"default"),gt(Ic,{name:`${L(r).namespace.value}-zoom-in-center`,persisted:""},{default:Dt(()=>[ea(ce("sup",{class:He([L(r).e("content"),L(r).em("content",l.type),L(r).is("fixed",!!l.$slots.default),L(r).is("dot",l.isDot)]),textContent:Zn(L(i))},null,10,fmt),[[Ti,!l.hidden&&(L(i)||l.isDot)]])]),_:1},8,["name"])],2))}});var hmt=vr(vmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Z0e=Ca(hmt),Q0e=Symbol("breadcrumbKey"),pmt=hr({separator:{type:String,default:"/"},separatorIcon:{type:xl}}),mmt=Zt({name:"ElBreadcrumb"}),gmt=Zt({...mmt,props:pmt,setup(e){const t=e,n=Vn("breadcrumb"),r=et();return $a(Q0e,t),ia(()=>{const i=r.value.querySelectorAll(`.${n.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,l)=>(Ce(),Ie("div",{ref_key:"breadcrumb",ref:r,class:He(L(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Fn(i.$slots,"default")],2))}});var ymt=vr(gmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const bmt=hr({to:{type:gn([String,Object]),default:""},replace:{type:Boolean,default:!1}}),_mt=Zt({name:"ElBreadcrumbItem"}),wmt=Zt({..._mt,props:bmt,setup(e){const t=e,n=va(),r=jr(Q0e,void 0),i=Vn("breadcrumb"),{separator:l,separatorIcon:u}=Dc(r),f=n.appContext.config.globalProperties.$router,v=et(),h=()=>{!t.to||!f||(t.replace?f.replace(t.to):f.push(t.to))};return(g,y)=>(Ce(),Ie("span",{class:He(L(i).e("item"))},[ce("span",{ref_key:"link",ref:v,class:He([L(i).e("inner"),L(i).is("link",!!g.to)]),role:"link",onClick:h},[Fn(g.$slots,"default")],2),L(u)?(Ce(),yn(L(Zr),{key:0,class:He(L(i).e("separator"))},{default:Dt(()=>[(Ce(),yn(Fa(L(u))))]),_:1},8,["class"])):(Ce(),Ie("span",{key:1,class:He(L(i).e("separator")),role:"presentation"},Zn(L(l)),3))],2))}});var J0e=vr(wmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);
40const Cmt=Ca(ymt,{BreadcrumbItem:J0e}),xmt=qu(J0e),epe=Symbol("buttonGroupContextKey"),Emt=(e,t)=>{cb({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Ne(()=>e.type==="text"));const n=jr(epe,void 0),r=PV("button"),{form:i}=xh(),l=Kf(Ne(()=>n==null?void 0:n.size)),u=w0(),f=et(),v=g1(),h=Ne(()=>e.type||(n==null?void 0:n.type)||""),g=Ne(()=>{var S,T,B;return(B=(T=e.autoInsertSpace)!=null?T:(S=r.value)==null?void 0:S.autoInsertSpace)!=null?B:!1}),y=Ne(()=>e.tag==="button"?{ariaDisabled:u.value||e.loading,disabled:u.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),w=Ne(()=>{var S;const T=(S=v.default)==null?void 0:S.call(v);if(g.value&&(T==null?void 0:T.length)===1){const B=T[0];if((B==null?void 0:B.type)===YI){const F=B.children;return/^\p{Unified_Ideograph}{2}$/u.test(F.trim())}}return!1});return{_disabled:u,_size:l,_type:h,_ref:f,_props:y,shouldAddSpace:w,handleClick:S=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",S)}}},EJ=["default","primary","success","warning","info","danger","text",""],Smt=["button","submit","reset"],SJ=hr({size:ev,disabled:Boolean,type:{type:String,values:EJ,default:""},icon:{type:xl},nativeType:{type:String,values:Smt,default:"button"},loading:Boolean,loadingIcon:{type:xl,default:()=>N3},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:gn([String,Object]),default:"button"}}),Tmt={click:e=>e instanceof MouseEvent};function X1(e,t){Amt(e)&&(e="100%");var n=kmt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function K$(e){return Math.min(1,Math.max(0,e))}function Amt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function kmt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function tpe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Y$(e){return e<=1?"".concat(Number(e)*100,"%"):e}function lC(e){return e.length===1?"0"+e:String(e)}function Omt(e,t,n){return{r:X1(e,255)*255,g:X1(t,255)*255,b:X1(n,255)*255}}function Cle(e,t,n){e=X1(e,255),t=X1(t,255),n=X1(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,u=0,f=(r+i)/2;if(r===i)u=0,l=0;else{var v=r-i;switch(u=f>.5?v/(2-r-i):v/(r+i),r){case e:l=(t-n)/v+(t<n?6:0);break;case t:l=(n-e)/v+2;break;case n:l=(e-t)/v+4;break}l/=6}return{h:l,s:u,l:f}}function CZ(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mmt(e,t,n){var r,i,l;if(e=X1(e,360),t=X1(t,100),n=X1(n,100),t===0)i=n,l=n,r=n;else{var u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;r=CZ(f,u,e+1/3),i=CZ(f,u,e),l=CZ(f,u,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function xle(e,t,n){e=X1(e,255),t=X1(t,255),n=X1(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,u=r,f=r-i,v=r===0?0:f/r;if(r===i)l=0;else{switch(r){case e:l=(t-n)/f+(t<n?6:0);break;case t:l=(n-e)/f+2;break;case n:l=(e-t)/f+4;break}l/=6}return{h:l,s:v,v:u}}function Nmt(e,t,n){e=X1(e,360)*6,t=X1(t,100),n=X1(n,100);var r=Math.floor(e),i=e-r,l=n*(1-t),u=n*(1-i*t),f=n*(1-(1-i)*t),v=r%6,h=[n,u,l,l,f,n][v],g=[f,n,n,u,l,l][v],y=[l,l,f,n,n,u][v];return{r:h*255,g:g*255,b:y*255}}function Ele(e,t,n,r){var i=[lC(Math.round(e).toString(16)),lC(Math.round(t).toString(16)),lC(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Dmt(e,t,n,r,i){var l=[lC(Math.round(e).toString(16)),lC(Math.round(t).toString(16)),lC(Math.round(n).toString(16)),lC(Imt(r))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function Imt(e){return Math.round(parseFloat(e)*255).toString(16)}function Sle(e){return yp(e)/255}function yp(e){return parseInt(e,16)}function Rmt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var TJ={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
40almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Lmt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,u=!1,f=!1;return typeof e=="string"&&(e=Fmt(e)),typeof e=="object"&&(t3(e.r)&&t3(e.g)&&t3(e.b)?(t=Omt(e.r,e.g,e.b),u=!0,f=String(e.r).substr(-1)==="%"?"prgb":"rgb"):t3(e.h)&&t3(e.s)&&t3(e.v)?(r=Y$(e.s),i=Y$(e.v),t=Nmt(e.h,r,i),u=!0,f="hsv"):t3(e.h)&&t3(e.s)&&t3(e.l)&&(r=Y$(e.s),l=Y$(e.l),t=Mmt(e.h,r,l),u=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=tpe(n),{ok:u,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Bmt="[-\\+]?\\d+%?",Pmt="[-\\+]?\\d*\\.\\d+%?",L8="(?:".concat(Pmt,")|(?:").concat(Bmt,")"),xZ="[\\s|\\(]+(".concat(L8,")[,|\\s]+(").concat(L8,")[,|\\s]+(").concat(L8,")\\s*\\)?"),EZ="[\\s|\\(]+(".concat(L8,")[,|\\s]+(").concat(L8,")[,|\\s]+(").concat(L8,")[,|\\s]+(").concat(L8,")\\s*\\)?"),jg={CSS_UNIT:new RegExp(L8),rgb:new RegExp("rgb"+xZ),rgba:new RegExp("rgba"+EZ),hsl:new RegExp("hsl"+xZ),hsla:new RegExp("hsla"+EZ),hsv:new RegExp("hsv"+xZ),hsva:new RegExp("hsva"
40+EZ),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Fmt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(TJ[e])e=TJ[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=jg.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=jg.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=jg.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=jg.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=jg.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=jg.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=jg.hex8.exec(e),n?{r:yp(n[1]),g:yp(n[2]),b:yp(n[3]),a:Sle(n[4]),format:t?"name":"hex8"}:(n=jg.hex6.exec(e),n?{r:yp(n[1]),g:yp(n[2]),b:yp(n[3]),format:t?"name":"hex"}:(n=jg.hex4.exec(e),n?{r:yp(n[1]+n[1]),g:yp(n[2]+n[2]),b:yp(n[3]+n[3]),a:Sle(n[4]+n[4]),format:t?"name":"hex8"}:(n=jg.hex3.exec(e),n?{r:yp(n[1]+n[1]),g:yp(n[2]+n[2]),b:yp(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function t3(e){return Boolean(jg.CSS_UNIT.exec(String(e)))}var npe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Rmt(t)),this.originalInput=t;var i=Lmt(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,l=t.r/255,u=t.g/255,f=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),u<=.03928?r=u/12.92:r=Math.pow((u+.055)/1.055,2.4),f<=.03928?i=f/12.92:i=Math.pow((f+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=tpe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=xle(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=xle(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Cle(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Cle(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ele(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Dmt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(X1(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(X1(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ele(this.r,this.g,this.b,!1),n=0,r=Object.entries(TJ);n<r.length;n++){var i=r[n],l=i[0],u=i[1];if(t===u)return l}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,l=!n&&i&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=K$(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=K$(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=K$(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=K$(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),l=n/100,u={r:(i.r-r.r)*l+r.r,g:(i.g-r.g)*l+r.g,b:(i.b-r.b)*l+r.b,a:(i.a-r.a)*l+r.a};return new e(u)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,l=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,l.push(new e(r));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,l=n.v,u=[],f=1/t;t--;)u.push(new e({h:r,s:i,v:l})),l=(l+f)%1;return u},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]}
40,e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],l=360/t,u=1;u<t;u++)i.push(new e({h:(r+u*l)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function g8(e,t=20){return e.mix("#141414",t).toString()}function $mt(e){const t=w0(),n=Vn("button");return Ne(()=>{let r={};const i=e.color;if(i){const l=new npe(i),u=e.dark?l.tint(20).toString():g8(l,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?g8(l,90):l.tint(90).toString(),"text-color":i,"border-color":e.dark?g8(l,50):l.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":u,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":u}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?g8(l,90):l.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?g8(l,50):l.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?g8(l,80):l.tint(80).toString());else{const f=e.dark?g8(l,30):l.tint(30).toString(),v=l.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":v,"border-color":i,"hover-bg-color":f,"hover-text-color":v,"hover-border-color":f,"active-bg-color":u,"active-border-color":u}),t.value){const h=e.dark?g8(l,50):l.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=h,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=h}}}return r})}const zmt=Zt({name:"ElButton"}),Hmt=Zt({...zmt,props:SJ,emits:Tmt,setup(e,{expose:t,emit:n}){const r=e,i=$mt(r),l=Vn("button"),{_ref:u,_size:f,_type:v,_disabled:h,_props:g,shouldAddSpace:y,handleClick:w}=Emt(r,n);return t({ref:u,size:f,type:v,disabled:h,shouldAddSpace:y}),(C,S)=>(Ce(),yn(Fa(C.tag),Pa({ref_key:"_ref",ref:u},L(g),{class:[L(l).b(),L(l).m(L(v)),L(l).m(L(f)),L(l).is("disabled",L(h)),L(l).is("loading",C.loading),L(l).is("plain",C.plain),L(l).is("round",C.round),L(l).is("circle",C.circle),L(l).is("text",C.text),L(l).is("link",C.link),L(l).is("has-bg",C.bg)],style:L(i),onClick:L(w)}),{default:Dt(()=>[C.loading?(Ce(),Ie(Ur,{key:0},[C.$slots.loading?Fn(C.$slots,"loading",{key:0}):(Ce(),yn(L(Zr),{key:1,class:He(L(l).is("loading"))},{default:Dt(()=>[(Ce(),yn(Fa(C.loadingIcon)))]),_:1},8,["class"]))],64)):C.icon||C.$slots.icon?(Ce(),yn(L(Zr),{key:1},{default:Dt(()=>[C.icon?(Ce(),yn(Fa(C.icon),{key:0})):Fn(C.$slots,"icon",{key:1})]),_:3})):on("v-if",!0),C.$slots.default?(Ce(),Ie("span",{key:2,class:He({[L(l).em("text","expand")]:L(y)})},[Fn(C.$slots,"default")],2)):on("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Vmt=vr(Hmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Umt={size:SJ.size,type:SJ.type},jmt=Zt({name:"ElButtonGroup"}),Wmt=Zt({...jmt,props:Umt,setup(e){const t=e;$a(epe,gi({size:Kl(t,"size"),type:Kl(t,"type")}));const n=Vn("button");return(r,i)=>(Ce(),Ie("div",{class:He(`${L(n).b("group")}`)},[Fn(r.$slots,"default")],2))}});var rpe=vr(Wmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Z1=Ca(Vmt,{ButtonGroup:rpe}),ope=qu(rpe);var oi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Gmt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ape={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=1e3,r=6e4,i=36e5,l="millisecond",u="second",f="minute",v="hour",h="day",g="week",y="month",w="quarter",C="year",S="date",T="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,169 bytes, line 40
40|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(fe){var de=["th","st","nd","rd"],ne=fe%100;return"["+fe+(de[(ne-20)%10]||de[ne]||de[0])+"]"}},N=function(fe,de,ne){var le=String(fe);return!le||le.length>=de?fe:""+Array(de+1-le.length).join(ne)+fe},A={s:N,z:function(fe){var de=-fe.utcOffset(),ne=Math.abs(de),le=Math.floor(ne/60),_e=ne%60;return(de<=0?"+":"-")+N(le,2,"0")+":"+N(_e,2,"0")},m:function fe(de,ne){if(de.date()<ne.date())return-fe(ne,de);var le=12*(ne.year()-de.year())+(ne.month()-de.month()),_e=de.clone().add(le,y),M=ne-_e<0,P=de.clone().add(le+(M?-1:1),y);return+(-(le+(ne-_e)/(M?_e-P:P-_e))||0)},a:function(fe){return fe<0?Math.ceil(fe)||0:Math.floor(fe)},p:function(fe){return{M:y,y:C,w:g,d:h,D:S,h:v,m:f,s:u,ms:l,Q:w}[fe]||String(fe||"").toLowerCase().replace(/s$/,"")},u:function(fe){return fe===void 0}},X="en",Z={};Z[X]=R;var z="$isDayjsObject",Y=function(fe){return fe instanceof V||!(!fe||!fe[z])},Q=function fe(de,ne,le){var _e;if(!de)return X;if(typeof de=="string"){var M=de.toLowerCase();Z[M]&&(_e=M),ne&&(Z[M]=ne,_e=M);var P=de.split("-");if(!_e&&P.length>1)return fe(P[0])}else{var U=de.name;Z[U]=de,_e=U}return!le&&_e&&(X=_e),_e||!le&&X},$=function(fe,de){if(Y(fe))return fe.clone();var ne=typeof de=="object"?de:{};return ne.date=fe,ne.args=arguments,new V(ne)},te=A;te.l=Q,te.i=Y,te.w=function(fe,de){return $(fe,{locale:de.$L,utc:de.$u,x:de.$x,$offset:de.$offset})};var V=function(){function fe(ne){this.$L=Q(ne.locale,null,!0),this.parse(ne),this.$x=this.$x||ne.x||{},this[z]=!0}var de=fe.prototype;return de.parse=function(ne){this.$d=function(le){var _e=le.date,M=le.utc;if(_e===null)return new Date(NaN);if(te.u(_e))return new Date;if(_e instanceof Date)return new Date(_e);if(typeof _e=="string"&&!/Z$/i.test(_e)){var P=_e.match(B);if(P){var U=P[2]-1||0,j=(P[7]||"0").substring(0,3);return M?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)}}return new Date(_e)}(ne),this.init()},de.init=function(){var ne=this.$d;this.$y=ne.getFullYear(),this.$M=ne.getMonth(),this.$D=ne.getDate(),this.$W=ne.getDay(),this.$H=ne.getHours(),this.$m=ne.getMinutes(),this.$s=ne.getSeconds(),this.$ms=ne.getMilliseconds()},de.$utils=function(){return te},de.isValid=function(){return this.$d.toString()!==T},de.isSame=function(ne,le){var _e=$(ne);return this.startOf(le)<=_e&&_e<=this.endOf(le)},de.isAfter=function(ne,le){return $(ne)<this.startOf(le)},de.isBefore=function(ne,le){return this.endOf(le)<$(ne)},de.$g=function(ne,le,_e){return te.u(ne)?this[le]:this.set(_e,ne)},de.unix=function(){return Math.floor(this.valueOf()/1e3)},de.valueOf=function(){return this.$d.getTime()},de.startOf=function(ne,le){var _e=this,M=!!te.u(le)||le,P=te.p(ne),U=function(Ae,Te){var Ue=te.w(_e.$u?Date.UTC(_e.$y,Te,Ae):new Date(_e.$y,Te,Ae),_e);return M?Ue:Ue.endOf(h)},j=function(Ae,Te){return te.w(_e.toDate()[Ae].apply(_e.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(Te)),_e)},ee=this.$W,ye=this.$M,ie=this.$D,he="set"+(this.$u?"UTC":"");switch(P){case C:return M?U(1,0):U(31,11);case y:return M?U(1,ye):U(0,ye+1);case g:var re=this.$locale().weekStart||0,be=(ee<re?ee+7:ee)-re;return U(M?ie-be:ie+(6-be),ye);case h:case S:return j(he+"Hours",0);case v:return j(he+"Minutes",1);case f:return j(he+"Seconds",2);case u:return j(he+"Milliseconds",3);default:return this.clone()}},de.endOf=function(ne){return this.startOf(ne,!1)},de.$set=function(ne,le){var _e,M=te.p(ne),P="set"+(this.$u?"UTC":""),U=(_e={},_e[h]=P+"Date",_e[S]=P+"Date",_e[y]=P+"Month",_e[C]=P+"FullYear",_e[v]=P+"Hours",_e[f]=P+"Minutes",_e[u]=P+"Seconds",_e[l]=P+"Milliseconds",_e)[M],j=M===h?this.$D+(le-this.$W):le;if(M===y||M===C){var ee=this.clone().set(S,1);ee.$d[U](j),ee.init(),this.$d=ee.set(S,Math.min(this.$D,ee.daysInMonth())).$d}else U&&this.$d[U](j);return this.init(),this},de.set=function(ne,le){return this.clone().$set(ne,le)},de.get=function(ne){return this[te.p(ne)]()},de.add=function(ne,le){var _e,M=this;
vendor: 2,680 bytes, line 40
40ne=Number(ne);var P=te.p(le),U=function(ye){var ie=$(M);return te.w(ie.date(ie.date()+Math.round(ye*ne)),M)};if(P===y)return this.set(y,this.$M+ne);if(P===C)return this.set(C,this.$y+ne);if(P===h)return U(1);if(P===g)return U(7);var j=(_e={},_e[f]=r,_e[v]=i,_e[u]=n,_e)[P]||1,ee=this.$d.getTime()+ne*j;return te.w(ee,this)},de.subtract=function(ne,le){return this.add(-1*ne,le)},de.format=function(ne){var le=this,_e=this.$locale();if(!this.isValid())return _e.invalidDate||T;var M=ne||"YYYY-MM-DDTHH:mm:ssZ",P=te.z(this),U=this.$H,j=this.$m,ee=this.$M,ye=_e.weekdays,ie=_e.months,he=_e.meridiem,re=function(Te,Ue,Oe,De){return Te&&(Te[Ue]||Te(le,M))||Oe[Ue].slice(0,De)},be=function(Te){return te.s(U%12||12,Te,"0")},Ae=he||function(Te,Ue,Oe){var De=Te<12?"AM":"PM";return Oe?De.toLowerCase():De};return M.replace(F,function(Te,Ue){return Ue||function(Oe){switch(Oe){case"YY":return String(le.$y).slice(-2);case"YYYY":return te.s(le.$y,4,"0");case"M":return ee+1;case"MM":return te.s(ee+1,2,"0");case"MMM":return re(_e.monthsShort,ee,ie,3);case"MMMM":return re(ie,ee);case"D":return le.$D;case"DD":return te.s(le.$D,2,"0");case"d":return String(le.$W);case"dd":return re(_e.weekdaysMin,le.$W,ye,2);case"ddd":return re(_e.weekdaysShort,le.$W,ye,3);case"dddd":return ye[le.$W];case"H":return String(U);case"HH":return te.s(U,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return Ae(U,j,!0);case"A":return Ae(U,j,!1);case"m":return String(j);case"mm":return te.s(j,2,"0");case"s":return String(le.$s);case"ss":return te.s(le.$s,2,"0");case"SSS":return te.s(le.$ms,3,"0");case"Z":return P}return null}(Te)||P.replace(":","")})},de.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},de.diff=function(ne,le,_e){var M,P=this,U=te.p(le),j=$(ne),ee=(j.utcOffset()-this.utcOffset())*r,ye=this-j,ie=function(){return te.m(P,j)};switch(U){case C:M=ie()/12;break;case y:M=ie();break;case w:M=ie()/3;break;case g:M=(ye-ee)/6048e5;break;case h:M=(ye-ee)/864e5;break;case v:M=ye/i;break;case f:M=ye/r;break;case u:M=ye/n;break;default:M=ye}return _e?M:te.a(M)},de.daysInMonth=function(){return this.endOf(y).$D},de.$locale=function(){return Z[this.$L]},de.locale=function(ne,le){if(!ne)return this.$L;var _e=this.clone(),M=Q(ne,le,!0);return M&&(_e.$L=M),_e},de.clone=function(){return te.w(this.$d,this)},de.toDate=function(){return new Date(this.valueOf())},de.toJSON=function(){return this.isValid()?this.toISOString():null},de.toISOString=function(){return this.$d.toISOString()},de.toString=function(){return this.$d.toUTCString()},fe}(),K=V.prototype;return $.prototype=K,[["$ms",l],["$s",u],["$m",f],["$H",v],["$W",h],["$M",y],["$y",C],["$D",S]].forEac
vendor: 3,767 bytes, line 40
40h(function(fe){K[fe[1]]=function(de){return this.$g(de,fe[0],fe[1])}}),$.extend=function(fe,de){return fe.$i||(fe(de,V,$),fe.$i=!0),$},$.locale=Q,$.isDayjs=Y,$.unix=function(fe){return $(1e3*fe)},$.en=Z[X],$.Ls=Z,$.p={},$})})(ape);var wa=ape.exports,ipe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,f={},v=function(T){return(T=+T)+(T>68?1900:2e3)},h=function(T){return function(B){this[T]=+B}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(T){(this.zone||(this.zone={})).offset=function(B){if(!B||B==="Z")return 0;var F=B.match(/([+-]|\d\d)/g),R=60*F[1]+(+F[2]||0);return R===0?0:F[0]==="+"?-R:R}(T)}],y=function(T){var B=f[T];return B&&(B.indexOf?B:B.s.concat(B.f))},w=function(T,B){var F,R=f.meridiem;if(R){for(var N=1;N<=24;N+=1)if(T.indexOf(R(N,0,B))>-1){F=N>12;break}}else F=T===(B?"pm":"PM");return F},C={A:[u,function(T){this.afternoon=w(T,!1)}],a:[u,function(T){this.afternoon=w(T,!0)}],S:[/\d/,function(T){this.milliseconds=100*+T}],SS:[i,function(T){this.milliseconds=10*+T}],SSS:[/\d{3}/,function(T){this.milliseconds=+T}],s:[l,h("seconds")],ss:[l,h("seconds")],m:[l,h("minutes")],mm:[l,h("minutes")],H:[l,h("hours")],h:[l,h("hours")],HH:[l,h("hours")],hh:[l,h("hours")],D:[l,h("day")],DD:[i,h("day")],Do:[u,function(T){var B=f.ordinal,F=T.match(/\d+/);if(this.day=F[0],B)for(var R=1;R<=31;R+=1)B(R).replace(/\[|\]/g,"")===T&&(this.day=R)}],M:[l,h("month")],MM:[i,h("month")],MMM:[u,function(T){var B=y("months"),F=(y("monthsShort")||B.map(function(R){return R.slice(0,3)})).indexOf(T)+1;if(F<1)throw new Error;this.month=F%12||F}],MMMM:[u,function(T){var B=y("months").indexOf(T)+1;if(B<1)throw new Error;this.month=B%12||B}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(T){this.year=v(T)}],YYYY:[/\d{4}/,h("year")],Z:g,ZZ:g};function S(T){var B,F;B=T,F=f&&f.formats;for(var R=(T=B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,$,te){var V=te&&te.toUpperCase();return $||F[te]||n[te]||F[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,fe,de){return fe||de.slice(1)})})).match(r),N=R.length,A=0;A<N;A+=1){var X=R[A],Z=C[X],z=Z&&Z[0],Y=Z&&Z[1];R[A]=Y?{regex:z,parser:Y}:X.replace(/^\[|\]$/g,"")}return function(Q){for(var $={},te=0,V=0;te<N;te+=1){var K=R[te];if(typeof K=="string")V+=K.length;else{var fe=K.regex,de=K.parser,ne=Q.slice(V),le=fe.exec(ne)[0];de.call($,le),Q=Q.replace(le,"")}}return function(_e){var M=_e.afternoon;if(M!==void 0){var P=_e.hours;M?P<12&&(_e.hours+=12):P===12&&(_e.hours=0),delete _e.afternoon}}($),$}}return function(T,B,F){F.p.customParseFormat=!0,T&&T.parseTwoDigitYear&&(v=T.parseTwoDigitYear);var R=B.prototype,N=R.parse;R.parse=function(A){var X=A.date,Z=A.utc,z=A.args;this.$u=Z;var Y=z[1];if(typeof Y=="string"){var Q=z[2]===!0,$=z[3]===!0,te=Q||$,V=z[2];$&&(V=z[2]),f=this.$locale(),!Q&&V&&(f=F.Ls[V]),this.$d=function(ne,le,_e){try{if(["x","X"].indexOf(le)>-1)return new Date((le==="X"?1e3:1)*ne);var M=S(le)(ne),P=M.year,U=M.month,j=M.day,ee=M.hours,ye=M.minutes,ie=M.seconds,he=M.milliseconds,re=M.zone,be=new Date,Ae=j||(P||U?1:be.getDate()),Te=P||be.getFullYear(),Ue=0;P&&!U||(Ue=U>0?U-1:be.getMonth());var Oe=ee||0,De=ye||0,$e=ie||0,rt=he||0;return re?new Date(Date.UTC(Te,Ue,Ae,Oe,De,$e,rt+60*re.offset*1e3)):_e?new Date(Date.UTC(Te,Ue,Ae,Oe,De,$e,rt)):new Date(Te,Ue,Ae,Oe,De,$e,rt)}catch{return new Date("")}}(X,Y,Z),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),te&&X!=this.format(Y)&&(this.$d=new Date("")),f={}}else if(Y instanceof Array)for(var K=Y.length,fe=1;fe<=K;fe+=1){z[1]=Y[fe-1];var de=F.apply(this,z);
40if(de.isValid()){this.$d=de.$d,this.$L=de.$L,this.init();break}fe===K&&(this.$d=new Date(""))}else N.call(this,A)}}})})(ipe);var dne=ipe.exports;const Tle=["hours","minutes","seconds"],AJ="HH:mm:ss",uA="YYYY-MM-DD",Kmt={date:uA,dates:uA,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${uA} ${AJ}`,monthrange:"YYYY-MM",daterange:uA,datetimerange:`${uA} ${AJ}`},SZ=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],$8=e=>Array.from(Array.from({length:e}).keys()),spe=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),lpe=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Ale=function(e,t){const n=mI(e),r=mI(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},kle=function(e,t){const n=Oa(e),r=Oa(t);return n&&r?e.length!==t.length?!1:e.every((i,l)=>Ale(i,t[l])):!n&&!r?Ale(e,t):!1},Ole=function(e,t,n){const r=Sm(t)||t==="x"?wa(e).locale(n):wa(e,t).locale(n);return r.isValid()?r:void 0},Mle=function(e,t,n){return Sm(t)?e:t==="x"?+e:wa(e).locale(n).format(t)},TZ=(e,t)=>{var n;const r=[],i=t==null?void 0:t();for(let l=0;l<e;l++)r.push((n=i==null?void 0:i.includes(l))!=null?n:!1);return r},upe=hr({disabledHours:{type:gn(Function)},disabledMinutes:{type:gn(Function)},disabledSeconds:{type:gn(Function)}}),cpe=hr({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),vne=hr({id:{type:gn([Array,String])},name:{type:gn([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:gn([String,Object]),default:M3},editable:{type:Boolean,default:!0},prefixIcon:{type:gn([String,Object]),default:""},size:ev,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:gn(Object),default:()=>({})},modelValue:{type:gn([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:gn([Date,Array])},defaultTime:{type:gn([Date,Array])},isRange:{type:Boolean,default:!1},...upe,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:gn([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),Ymt=["id","name","placeholder","value","disabled","readonly"],qmt=["id","name","placeholder","value","disabled","readonly"],Xmt=Zt({name:"Picker"}),Zmt=Zt({...Xmt,props:vne,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,i=RC(),{lang:l}=Ni(),u=Vn("date"),f=Vn("input"),v=Vn("range"),{form:h,formItem:g}=xh(),y=jr("ElPopperOptions",{}),w=et(),C=et(),S=et(!1),T=et(!1),B=et(null);let F=!1,R=!1;const N=Ne(()=>[u.b("editor"),u.bm("editor",r.type),f.e("wrapper"),u.is("disabled",j.value),u.is("active",S.value),v.b("editor"),lt?v.bm("editor",lt.value):"",i.class]),A=Ne(()=>[f.e("icon"),v.e("close-icon"),Ae.value?"":v.e("close-icon--hidden")]);$n(S,at=>{at?Gr(()=>{at&&(B.value=r.modelValue)}):(We.value=null,Gr(()=>{X(r.modelValue)}))});const X=(at,_t)=>{(_t||!kle(at,B.value))&&(n("change",at),r.validateEvent&&(g==null||g.validate("change").catch(en=>void 0)))},Z=at=>{if(!kle(r.modelValue,at)){let _t;Oa(at)?_t=at.map(en=>Mle(en,r.valueFormat,l.value)):at&&(_t=Mle(at,r.valueFormat,l.value)),n("update:modelValue",at&&_t,l.value)}},z=at=>{n("keydown",at)},Y=Ne(()=>{if(C.value){const at=ct.value?C.value:C.value.$el;return Array.from(at.querySelectorAll("input"))}return[]}),Q=(at,_t,en)=>{const An=Y.value;!An.length||(!en||en==="min"?(An[0].setSelectionRange(at,_t),An[0].focus()):en==="max"&&(An[1].setSelectionRange(at,_t),An[1].focus()))},$=()=>{_e(!0,!0),Gr(()=>{R=!1})},te=(at="",_t=!1)=>{_t||(R=!0),S.value=_t;let en;Oa(at)?en=at.map(An=>An.toDate()):en=at&&at.toDate(),We.value=null,Z(en)},V=()=>{T.value=!0},K=()=>{n("visible-change",!0)},fe=at=>{(at==null?void 0:at.key)===ao.esc&&_e(!0,!0)},de=()=>{T.value=!1,S.value=!1,R=!1,n("visible-change",!1)},ne=()=>{S.value=!0},le=()=>{S.value=!1},_e=(at=!0,_t=!1)=>{R=_t;const[en,An]=L(Y);let Vt=en;!at&&ct.value&&(Vt=An),Vt&&Vt.focus()},M=at=>{r.readonly||j.value||S.value||R||(S.value=!0,n("focus",at))};let P;const U=at=>{const _t=async()=>{setTimeout(()=>{var en;P===_t&&(!(((en=w.value)==null?void 0:en.isFocusInsideContent())&&!F)&&Y.value.filter(An=>An.contains(document.activeElement)).length===0&&(Ye(),S.value=!1,n("blur",at),r.validateEvent&&(g==null||g.validate("blur").catch(An=>void 0))),F=!1)},0)};P=_t,_t()},j=Ne(()=>r.disabled||(h==null?void 0:h.disabled)),ee=Ne(()=>{let at;if(Ue.value?vt.value.getDefaultValue&&(at=vt.value.getDefaultValue()):Oa(r.modelValue)?at=r.modelValue.map(_t=>Ole(_t,r.valueFormat,l.value)):at=Ole(r.modelValue,r.valueFormat,l.value),vt.value.getRangeAvailableTime){const _t=vt.value.getRangeAvailableTime(at);p0(_t,at)||(at=_t,Z(Oa(at)?at.map(en=>en.toDate()):at.toDate()))}return Oa(at)&&at.some(_t=>!_t)&&(at=[]),at}),ye=Ne(()=>{if(!vt.value.panelReady)return"";const at=mt(ee.value);return Oa(We.value)?[We.value[0]||at&&at[0]||"",We.value[1]||at&&at[1]||""]:We.value!==null?We.value:!he.value&&Ue.value||!S.value&&Ue.value?"":at?re.value?at.join(", "):at:""}),ie=Ne(()=>r.type.includes("time")),he=Ne(()=>r.type.startsWith("time")),re=Ne(()=>r.type==="dates"),be=Ne(()=>r.prefixIcon||(ie.value?Pte:Mhe)),Ae=et(!1),Te=at=>
40{r.readonly||j.value||Ae.value&&(at.stopPropagation(),$(),Z(null),X(null,!0),Ae.value=!1,S.value=!1,vt.value.handleClear&&vt.value.handleClear())},Ue=Ne(()=>{const{modelValue:at}=r;return!at||Oa(at)&&!at.filter(Boolean).length}),Oe=async at=>{var _t;r.readonly||j.value||(((_t=at.target)==null?void 0:_t.tagName)!=="INPUT"||Y.value.includes(document.activeElement))&&(S.value=!0)},De=()=>{r.readonly||j.value||!Ue.value&&r.clearable&&(Ae.value=!0)},$e=()=>{Ae.value=!1},rt=at=>{var _t;r.readonly||j.value||(((_t=at.touches[0].target)==null?void 0:_t.tagName)!=="INPUT"||Y.value.includes(document.activeElement))&&(S.value=!0)},ct=Ne(()=>r.type.includes("range")),lt=Kf(),ot=Ne(()=>{var at,_t;return(_t=(at=L(w))==null?void 0:at.popperRef)==null?void 0:_t.contentRef}),Fe=Ne(()=>{var at;return L(ct)?L(C):(at=L(C))==null?void 0:at.$el});gte(Fe,at=>{const _t=L(ot),en=L(Fe);_t&&(at.target===_t||at.composedPath().includes(_t))||at.target===en||at.composedPath().includes(en)||(S.value=!1)});const We=et(null),Ye=()=>{if(We.value){const at=Ke(ye.value);at&&Ct(at)&&(Z(Oa(at)?at.map(_t=>_t.toDate()):at.toDate()),We.value=null)}We.value===""&&(Z(null),X(null),We.value=null)},Ke=at=>at?vt.value.parseUserInput(at):null,mt=at=>at?vt.value.formatToString(at):null,Ct=at=>vt.value.isValidValue(at),bt=async at=>{if(r.readonly||j.value)return;const{code:_t}=at;if(z(at),_t===ao.esc){S.value===!0&&(S.value=!1,at.preventDefault(),at.stopPropagation());return}if(_t===ao.down&&(vt.value.handleFocusPicker&&(at.preventDefault(),at.stopPropagation()),S.value===!1&&(S.value=!0,await Gr()),vt.value.handleFocusPicker)){vt.value.handleFocusPicker();return}if(_t===ao.tab){F=!0;return}if(_t===ao.enter||_t===ao.numpadEnter){(We.value===null||We.value===""||Ct(Ke(ye.value)))&&(Ye(),S.value=!1),at.stopPropagation();return}if(We.value){at.stopPropagation();return}vt.value.handleKeydownInput&&vt.value.handleKeydownInput(at)},tn=at=>{We.value=at,S.value||(S.value=!0)},Ft=at=>{const _t=at.target;We.value?We.value=[_t.value,We.value[1]]:We.value=[_t.value,null]},It=at=>{const _t=at.target;We.value?We.value=[We.value[0],_t.value]:We.value=[null,_t.value]},Et=()=>{var at;const _t=We.value,en=Ke(_t&&_t[0]),An=L(ee);if(en&&en.isValid()){We.value=[mt(en),((at=ye.value)==null?void 0:at[1])||null];const Vt=[en,An&&(An[1]||null)];Ct(Vt)&&(Z(Vt),We.value=null)}},At=()=>{var at;const _t=L(We),en=Ke(_t&&_t[1]),An=L(ee);if(en&&en.isValid()){We.value=[((at=L(ye))==null?void 0:at[0])||null,mt(en)];const Vt=[An&&An[0],en];Ct(Vt)&&(Z(Vt),We.value=null)}},vt=et({}),Tt=at=>{vt.value[at[0]]=at[1],vt.value.panelReady=!0},Wt=at=>{n("calendar-change",at)},xt=(at,_t,en)=>{n("panel-change",at,_t,en)};return $a("EP_PICKER_BASE",{props:r}),t({focus:_e,handleFocusInput:M,handleBlurInput:U,handleOpen:ne,handleClose:le,onPick:te}),(at,_t)=>(Ce(),yn(L(Ch),Pa({ref_key:"refPopper",ref:w,visible:S.value,effect:"light",pure:"",trigger:"click"},at.$attrs,{role:"dialog",teleported:"",transition:`${L(u).namespace.value}-zoom-in-top`,"popper-class":[`${L(u).namespace.value}-picker__popper`,at.popperClass],"popper-options":L(y),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:V,onShow:K,onHide:de}),{default:Dt(()=>[L(ct)?(Ce(),Ie("div",{key:1,ref_key:"inputRef",ref:C,class:He(L(N)),style:Pr(at.$attrs.style),onClick:M,onMouseenter:De,onMouseleave:$e,onTouchstart:rt,onKeydown:bt},[L(be)?(Ce(),yn(L(Zr),{key:0,class:He([L(f).e("icon"),L(v).e("icon")]),onMousedown:Do(Oe,["prevent"]),onTouchstart:rt},{default:Dt(()=>[(Ce(),yn(Fa(L(be))))]),_:1},8,["class","onMousedown"])):on("v-if",!0),ce("input",{id:at.id&&at.id[0],autocomplete:"off",name:at.name&&at.name[0],placeholder:at.startPlaceholder,value:L(ye)&&L(ye)[0],disabled:L(j),readonly:!at.editable||at.readonly,class:He(L(v).b("input")),onMousedown:Oe,onInput:Ft,onChange:Et,onFocus:M,onBlur:U},null,42,Ymt),Fn(at.$slots,"range-separator",{},()=>[ce("span",{class:He(L(v).b("separator"))},Zn(at.rangeSeparator),3)]),ce("input",{id:at.id&&at.id[1],autocomplete:"off",name:at.name&&at.name[1],placeholder:at.endPlaceholder,value:L(ye)&&L(ye)[1],disabled:L(j),readonly:!at.editable||at.readonly,class:He(L(v).b("input")),onMousedown:Oe,onFocus:M,onBlur:U,onInput:It,onChange:At},null,42,qmt),at.clearIcon?(Ce(),yn(L(Zr),{key:1,class:He(L(A)),onClick:Te},{default:Dt(()=>[(Ce(),yn(Fa(at.clearIcon)))]),_:1},8,["class"])):on("v-if",!0)],38)):(Ce(),yn(L(Ov),{key:0,id:at.id,ref_key:"inputRef",ref:C,"container-role":"combobox","model-value":L(ye),name:at.name,size:L(lt),disabled:L(j),placeholder:at.placeholder,class:He([L(u).b("editor"),L(u).bm("editor",at.type),at.$attrs.class]),style:Pr(at.$attrs.style),readonly:!at.editable||at.readonly||L(re)||at.type==="week",label:at.label,tabindex:at.tabindex,"validate-event":!1,onInput:tn,onFocus:M,onBlur:U,onKeydown:bt,onChange:Ye,onMousedown:Oe,onMouseenter:De,onMouseleave:$e,onTouchstart:rt,onClick:_t[0]||(_t[0]=Do(()=>{},["stop"]))},{prefix:Dt(()=>[L(be)?(Ce(),yn(L(Zr),{key:0,class:He(L(f).e("icon")),onMousedown:Do(Oe,["prevent"]),onTouchstart:rt},{default:Dt(()=>[(Ce(),yn(Fa(L(be))))]),_:1},8,["class","onMousedown"])):on("v-if",!0)]),suffix:Dt(()=>[Ae.value&&at.clearIcon?(Ce(),yn(L(Zr),{key:0,class:He(`${L(f).e("icon")} clear-icon`),onClick:Do(Te,["stop"])},{default:Dt(()=>[(Ce(),yn(Fa(at.clearIcon)))]),_:1},8,["class","onClick"])):on("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:Dt(()=>[Fn(at.$slots,"default",{visible:S.value,actualVisible:T.value,parsedValue:L(ee),format:at.format,unlinkPanels:at.unlinkPanels,type:at.type,defaultValue:at.defaultValue,onPick:te,onSelectRange:Q,onSetPickerOption:Tt,onCalendarChange:Wt,onPanelChange:xt,onKeydown:fe,onMousedown:_t[1]||(_t[1]=Do(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var fpe=vr(Zmt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const Qmt=hr({...cpe,datetimeRole:String,parsedValue:{type:gn(Object)}}),dpe=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(u,f,v,h)=>{const g={hour:e,minute:t,second:n};let y=u;return["hour","minute","second"].forEach(w=>{if(g[w]){let C;const S=g[w];switch(w){case"minute":{C=S(y.hour(),f,h);break}case"second":{C=S(y.hour(),y.minute(),f,h);break}default:{C=S(f,h);break}}if((C==null?void 0:C.length)&&!C.includes(y[w]())){const T=v?0:C.length-1;y=y[w](C[T])}}}),y},i={};return{timePickerOptions:i,getAvailableTime:r,onSetOption:([u,f])=>{i[u]=f}}},AZ=e=>{const t=(r,i)=>r||i,n=r=>r!==!0;return e.map(t).filter(n)},vpe=(e,t,n)=>({getHoursList:(u,f)=>TZ(24,e&&(()=>e==null?void 0:e(u,f))),getMinutesList:(u,f,v)=>TZ(60,t&&(()=>t==null?void 0:t(u,f,v))),getSecondsList:(u,f,v,h)=>TZ(60,n&&(()=>n==null?void 0:n(u,f,v,h)))}),hpe=(e,t,n)=>{const{getHoursList:r,getMinutesList:i,getSecondsList:l}=vpe(e,t,n);return{getAvailableHours:(h,g)=>AZ(r(h,g)),getAvailableMinutes:(h,g,y)=>AZ(i(h,g,y)),getAvailableSeconds:(h,g,y,w)=>AZ(l(h,g,y,w))}},ppe=e=>{const t=et(e.parsedValue);return $n(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},T8=new Map;let Nle;_i&&(document.addEventListener("mousedown",e=>Nle=e),document.addEventListener("mouseup",e=>{for(const t of T8.values())for(const{documentHandler:n}of t)n(e,Nle)}));function Dle(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Nm(t.arg)&&n.push(t.arg),function(r,i){const l=t.instance.popperRef,u=r.target,f=i==null?void 0:i.target,v=!t||!t.instance,h=!u||!f,g=e.contains(u)||e.contains(f),y=e===u,w=n.length&&n.some(S=>S==null?void 0:S.contains(u))||n.length&&n.includes(f),C=l&&(l.contains(u)||l.contains(f));v||h||g||y||w||C||t.value(r,i)}}const W8={beforeMount(e,t){T8.has(e)||T8.set(e,[]),T8.get(e).push({documentHandler:Dle(e,t),bindingFn:t.value})},updated(e,t){T8.has(e)||T8.set(e,[]);const n=T8.get(e),r=n.findIndex(l=>l.bindingFn===t.oldValue),i={documentHandler:Dle(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){T8.delete(e)}},Jmt=100,egt=600,OH={beforeMount(e,t){const n=t.value,{interval:r=Jmt,delay:i=egt}=Ji(n)?{}:n;let l,u;const f=()=>Ji(n)?n():n.handler(),v=()=>{u&&(clearTimeout(u),u=void 0),l&&(clearInterval(l),l=void 0)};e.addEventListener("mousedown",h=>{h.button===0&&(v(),f(),document.addEventListener("mouseup",()=>v(),{once:!0}),u=setTimeout(()=>{l=setInterval(()=>{f()},r)}
vendor: 4,154 bytes, lines 40-53
40,i))})}},kJ="_trap-focus-children",uC=[],Ile=e=>{if(uC.length===0)return;const t=uC[uC.length-1][kJ];if(t.length>0&&e.code===ao.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],i=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},tgt={beforeMount(e){e[kJ]=qie(e),uC.push(e),uC.length<=1&&document.addEventListener("keydown",Ile)},updated(e){Gr(()=>{e[kJ]=qie(e)})},unmounted(){uC.shift(),uC.length===0&&document.removeEventListener("keydown",Ile)}};var Rle=!1,nC,OJ,MJ,Lz,Bz,mpe,Pz,NJ,DJ,IJ,gpe,RJ,LJ,ype,bpe;function c0(){if(!Rle){Rle=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(RJ=/\b(iPhone|iP[ao]d)/.exec(e),LJ=/\b(iP[ao]d)/.exec(e),IJ=/Android/i.exec(e),ype=/FBAN\/\w+;/i.exec(e),bpe=/Mobile/i.exec(e),gpe=!!/Win64/.exec(e),t){nC=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,nC&&document&&document.documentMode&&(nC=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);mpe=r?parseFloat(r[1])+4:nC,OJ=t[2]?parseFloat(t[2]):NaN,MJ=t[3]?parseFloat(t[3]):NaN,Lz=t[4]?parseFloat(t[4]):NaN,Lz?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Bz=t&&t[1]?parseFloat(t[1]):NaN):Bz=NaN}else nC=OJ=MJ=Bz=Lz=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Pz=i?parseFloat(i[1].replace("_",".")):!0}else Pz=!1;NJ=!!n[2],DJ=!!n[3]}else Pz=NJ=DJ=!1}}var BJ={ie:function(){return c0()||nC},ieCompatibilityMode:function(){return c0()||mpe>nC},ie64:function(){return BJ.ie()&&gpe},firefox:function(){return c0()||OJ},opera:function(){return c0()||MJ},webkit:function(){return c0()||Lz},safari:function(){return BJ.webkit()},chrome:function(){return c0()||Bz},windows:function(){return c0()||NJ},osx:function(){return c0()||Pz},linux:function(){return c0()||DJ},iphone:function(){return c0()||RJ},mobile:function(){return c0()||RJ||LJ||IJ||bpe},nativeApp:function(){return c0()||ype},android:function(){return c0()||IJ},ipad:function(){return c0()||LJ}},ngt=BJ,q$=!!(typeof window<"u"&&window.document&&window.document.createElement),rgt={canUseDOM:q$,canUseWorkers:typeof Worker<"u",canUseEventListeners:q$&&!!(window.addEventListener||window.attachEvent),canUseViewport:q$&&!!window.screen,isInWorker:!q$},_pe=rgt,wpe;_pe.canUseDOM&&(wpe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function ogt(e,t){if(!_pe.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&wpe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var agt=ogt,Lle=10,Ble=40,Ple=800;function Cpe(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Lle,i=n*Lle,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=Ble,i*=Ble):(r*=Ple,i*=Ple)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}Cpe.getEventType=function(){return ngt.firefox()?"DOMMouseScroll":agt("wheel")?"wheel":"mousewheel"};var igt=Cpe;/** 41* Checks if an event is supported in the current execution environment. 42* 43* NOTE: This will not work correctly for non-generic events such as `change`, 44* `reset`, `load`, `error`, and `select`. 45* 46* Borrows from Modernizr. 47* 48* @param {string} eventNameSuffix Event name, e.g. "click". 49* @param {?boolean} capture Check if the capture phase is supported. 50* @return {boolean} True if the event is supported. 51* @internal 52* @license Modernizr 3.0.0pre (Custom Build) | MIT 53*/const sgt=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=igt(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}}
53,lgt={beforeMount(e,t){sgt(e,t.value)}},ugt=hr({role:{type:String,required:!0},spinnerDate:{type:gn(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:gn(String),default:""},...upe}),cgt=["onClick"],fgt=["onMouseenter"],dgt=Zt({__name:"basic-time-spinner",props:ugt,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Vn("time"),{getHoursList:i,getMinutesList:l,getSecondsList:u}=vpe(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const v=et(),h=et(),g=et(),y=et(),w={hours:h,minutes:g,seconds:y},C=Ne(()=>n.showSeconds?Tle:Tle.slice(0,2)),S=Ne(()=>{const{spinnerDate:M}=n,P=M.hour(),U=M.minute(),j=M.second();return{hours:P,minutes:U,seconds:j}}),T=Ne(()=>{const{hours:M,minutes:P}=L(S);return{hours:i(n.role),minutes:l(M,n.role),seconds:u(M,P,n.role)}}),B=Ne(()=>{const{hours:M,minutes:P,seconds:U}=L(S);return{hours:SZ(M,23),minutes:SZ(P,59),seconds:SZ(U,59)}}),F=Lv(M=>{f=!1,A(M)},200),R=M=>{if(!!!n.amPmMode)return"";const U=n.amPmMode==="A";let j=M<12?" am":" pm";return U&&(j=j.toUpperCase()),j},N=M=>{let P;switch(M){case"hours":P=[0,2];break;case"minutes":P=[3,5];break;case"seconds":P=[6,8];break}const[U,j]=P;t("select-range",U,j),v.value=M},A=M=>{z(M,L(S)[M])},X=()=>{A("hours"),A("minutes"),A("seconds")},Z=M=>M.querySelector(`.${r.namespace.value}-scrollbar__wrap`),z=(M,P)=>{if(n.arrowControl)return;const U=L(w[M]);U&&U.$el&&(Z(U.$el).scrollTop=Math.max(0,P*Y(M)))},Y=M=>{const P=L(w[M]),U=P==null?void 0:P.$el.querySelector("li");return U&&Number.parseFloat(R8(U,"height"))||0},Q=()=>{te(1)},$=()=>{te(-1)},te=M=>{v.value||N("hours");const P=v.value,U=L(S)[P],j=v.value==="hours"?24:60,ee=V(P,U,M,j);K(P,ee),z(P,ee),Gr(()=>N(P))},V=(M,P,U,j)=>{let ee=(P+U+j)%j;const ye=L(T)[M];for(;ye[ee]&&ee!==P;)ee=(ee+U+j)%j;return ee},K=(M,P)=>{if(L(T)[M][P])return;const{hours:ee,minutes:ye,seconds:ie}=L(S);let he;switch(M){case"hours":he=n.spinnerDate.hour(P).minute(ye).second(ie);break;case"minutes":he=n.spinnerDate.hour(ee).minute(P).second(ie);break;case"seconds":he=n.spinnerDate.hour(ee).minute(ye).second(P);break}t("change",he)},fe=(M,{value:P,disabled:U})=>{U||(K(M,P),N(M),z(M,P))},de=M=>{f=!0,F(M);const P=Math.min(Math.round((Z(L(w[M]).$el).scrollTop-(ne(M)*.5-10)/Y(M)+3)/Y(M)),M==="hours"?23:59);K(M,P)},ne=M=>L(w[M]).$el.offsetHeight,le=()=>{const M=P=>{const U=L(w[P]);U&&U.$el&&(Z(U.$el).onscroll=()=>{de(P)})};M("hours"),M("minutes"),M("seconds")};ia(()=>{Gr(()=>{!n.arrowControl&&le(),X(),n.role==="start"&&N("hours")})});const _e=(M,P)=>{w[P].value=M};return t("set-option",[`${n.role}_scrollDown`,te]),t("set-option",[`${n.role}_emitSelectRange`,N]),$n(()=>n.spinnerDate,()=>{f||X()}),(M,P)=>(Ce(),Ie("div",{class:He([L(r).b("spinner"),{"has-seconds":M.showSeconds}])},[M.arrowControl?on("v-if",!0):(Ce(!0),Ie(Ur,{key:0},La(L(C),U=>(Ce(),yn(L(D3),{key:U,ref_for:!0,ref:j=>_e(j,U),class:He(L(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":L(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>N(U),onMousemove:j=>A(U)},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(L(T)[U],(j,ee)=>(Ce(),Ie("li",{key:ee,class:He([L(r).be("spinner","item"),L(r).is("active",ee===L(S)[U]),L(r).is("disabled",j)]),onClick:ye=>fe(U,{value:ee,disabled:j})},[U==="hours"?(Ce(),Ie(Ur,{key:0},[lo(Zn(("0"+(M.amPmMode?ee%12||12:ee)).slice(-2))+Zn(R(ee)),1)],64)):(Ce(),Ie(Ur,{key:1}
53,[lo(Zn(("0"+ee).slice(-2)),1)],64))],10,cgt))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),M.arrowControl?(Ce(!0),Ie(Ur,{key:1},La(L(C),U=>(Ce(),Ie("div",{key:U,class:He([L(r).be("spinner","wrapper"),L(r).is("arrow")]),onMouseenter:j=>N(U)},[ea((Ce(),yn(L(Zr),{class:He(["arrow-up",L(r).be("spinner","arrow")])},{default:Dt(()=>[gt(L(nR))]),_:1},8,["class"])),[[L(OH),$]]),ea((Ce(),yn(L(Zr),{class:He(["arrow-down",L(r).be("spinner","arrow")])},{default:Dt(()=>[gt(L(O3))]),_:1},8,["class"])),[[L(OH),Q]]),ce("ul",{class:He(L(r).be("spinner","list"))},[(Ce(!0),Ie(Ur,null,La(L(B)[U],(j,ee)=>(Ce(),Ie("li",{key:ee,class:He([L(r).be("spinner","item"),L(r).is("active",j===L(S)[U]),L(r).is("disabled",L(T)[U][j])])},[typeof j=="number"?(Ce(),Ie(Ur,{key:0},[U==="hours"?(Ce(),Ie(Ur,{key:0},[lo(Zn(("0"+(M.amPmMode?j%12||12:j)).slice(-2))+Zn(R(j)),1)],64)):(Ce(),Ie(Ur,{key:1},[lo(Zn(("0"+j).slice(-2)),1)],64))],64)):on("v-if",!0)],2))),128))],2)],42,fgt))),128)):on("v-if",!0)],2))}});var PJ=vr(dgt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const vgt=Zt({__name:"panel-time-pick",props:Qmt,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=jr("EP_PICKER_BASE"),{arrowControl:i,disabledHours:l,disabledMinutes:u,disabledSeconds:f,defaultValue:v}=r.props,{getAvailableHours:h,getAvailableMinutes:g,getAvailableSeconds:y}=hpe(l,u,f),w=Vn("time"),{t:C,lang:S}=Ni(),T=et([0,2]),B=ppe(n),F=Ne(()=>Vd(n.actualVisible)?`${w.namespace.value}-zoom-in-top`:""),R=Ne(()=>n.format.includes("ss")),N=Ne(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),A=_e=>{const M=wa(_e).locale(S.value),P=fe(M);return M.isSame(P)},X=()=>{t("pick",B.value,!1)},Z=(_e=!1,M=!1)=>{M||t("pick",n.parsedValue,_e)},z=_e=>{if(!n.visible)return;const M=fe(_e).millisecond(0);t("pick",M,!0)},Y=(_e,M)=>{t("select-range",_e,M),T.value=[_e,M]},Q=_e=>{const M=[0,3].concat(R.value?[6]:[]),P=["hours","minutes"].concat(R.value?["seconds"]:[]),j=(M.indexOf(T.value[0])+_e+M.length)%M.length;te.start_emitSelectRange(P[j])},$=_e=>{const M=_e.code,{left:P,right:U,up:j,down:ee}=ao;if([P,U].includes(M)){Q(M===P?-1:1),_e.preventDefault();return}if([j,ee].includes(M)){const ye=M===j?-1:1;te.start_scrollDown(ye),_e.preventDefault();return}},{timePickerOptions:te,onSetOption:V,getAvailableTime:K}=dpe({getAvailableHours:h,getAvailableMinutes:g,getAvailableSeconds:y}),fe=_e=>K(_e,n.datetimeRole||"",!0),de=_e=>_e?wa(_e,n.format).locale(S.value):null,ne=_e=>_e?_e.format(n.format):null,le=()=>wa(v).locale(S.value);return t("set-picker-option",["isValidValue",A]),t("set-picker-option",["formatToString",ne]),t("set-picker-option",["parseUserInput",de]),t("set-picker-option",["handleKeydownInput",$]),t("set-picker-option",["getRangeAvailableTime",fe]),t("set-picker-option",["getDefaultValue",le]),(_e,M)=>(Ce(),yn(Ic,{name:L(F)},{default:Dt(()=>[_e.actualVisible||_e.visible?(Ce(),Ie("div",{key:0,class:He(L(w).b("panel"))},[ce("div",{class:He([L(w).be("panel","content"),{"has-seconds":L(R)}])},[gt(PJ,{ref:"spinner",role:_e.datetimeRole||"start","arrow-control":L(i),"show-seconds":L(R),"am-pm-mode":L(N),"spinner-date":_e.parsedValue,"disabled-hours":L(l),"disabled-minutes":L(u),"disabled-seconds":L(f),onChange:z,onSetOption:L(V),onSelectRange:Y},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),ce("div",{class:He(L(w).be("panel","footer"))},[ce("button",{type:"button",class:He([L(w).be("panel","btn"),"cancel"]),onClick:X},Zn(L(C)("el.datepicker.cancel")),3),ce("button",{type:"button",class:He([L(w).be("panel","btn"),"confirm"]),onClick:M[0]||(M[0]=P=>Z())},Zn(L(C)("el.datepicker.confirm")),3)],2)],2)):on("v-if",!0)]),_:1},8,["name"]))}});var MH=vr(vgt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const hgt=hr({...cpe,parsedValue:{type:gn(Array)}}),pgt=["disabled"],mgt=Zt({__name:"panel-time-range",props:hgt,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Ue,Oe)=>{const De=[];for(let $e=Ue;$e<=Oe;$e++)De.push($e);return De},{t:i,lang:l}=Ni(),u=Vn("time"),f=Vn("picker"),v=jr("EP_PICKER_BASE"),{arrowControl:h,disabledHours:g,disabledMinutes:y,disabledSeconds:w,defaultValue:C}=v.props,S=Ne(()=>[u.be("range-picker","body"),u.be("panel","content"),u.is("arrow",h),A.value?"has-seconds":""]),T=Ne(()=>[u.be("range-picker","body"),u.be("panel","content"),u.is("arrow",h),A.value?"has-seconds":""]),B=Ne(()=>n.parsedValue[0]),F=Ne(()=>n.parsedValue[1]),R=ppe(n),N=()=>{t("pick",R.value,!1)},A=Ne(()=>n.format.includes("ss")),X=Ne(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),Z=(Ue=!1)=>{t("pick",[B.value,F.value],Ue)},z=Ue=>{$(Ue.millisecond(0),F.value)},Y=Ue=>{$(B.value,Ue.millisecond(0))},Q=Ue=>{const Oe=Ue.map($e=>wa($e).locale(l.value)),De=U(Oe);return Oe[0].isSame(De[0])&&Oe[1].isSame(De[1])},$=(Ue,Oe)=>{t("pick",[Ue,Oe],!0)},te=Ne(()=>B.value>F.value),V=et([0,2]),K=(Ue,Oe)=>{t("select-range",Ue,Oe,"min"),V.value=[Ue,Oe]},fe=Ne(()=>A.value?11:8),de=(Ue,Oe)=>{t("select-range",Ue,Oe,"max");const De=L(fe);V.value=[Ue+De,Oe+De]},ne=Ue=>{const Oe=A.value?[0,3,6,11,14,17]:[0,3,8,11],De=["hours","minutes"].concat(A.value?["seconds"]:[]),rt=(Oe.indexOf(V.value[0])+Ue+Oe.length)%Oe.length,ct=Oe.length/2;rt<ct?ie.start_emitSelectRange(De[rt]):ie.end_emitSelectRange(De[rt-ct])},le=Ue=>
53{const Oe=Ue.code,{left:De,right:$e,up:rt,down:ct}=ao;if([De,$e].includes(Oe)){ne(Oe===De?-1:1),Ue.preventDefault();return}if([rt,ct].includes(Oe)){const lt=Oe===rt?-1:1,ot=V.value[0]<fe.value?"start":"end";ie[`${ot}_scrollDown`](lt),Ue.preventDefault();return}},_e=(Ue,Oe)=>{const De=g?g(Ue):[],$e=Ue==="start",ct=(Oe||($e?F.value:B.value)).hour(),lt=$e?r(ct+1,23):r(0,ct-1);return mZ(De,lt)},M=(Ue,Oe,De)=>{const $e=y?y(Ue,Oe):[],rt=Oe==="start",ct=De||(rt?F.value:B.value),lt=ct.hour();if(Ue!==lt)return $e;const ot=ct.minute(),Fe=rt?r(ot+1,59):r(0,ot-1);return mZ($e,Fe)},P=(Ue,Oe,De,$e)=>{const rt=w?w(Ue,Oe,De):[],ct=De==="start",lt=$e||(ct?F.value:B.value),ot=lt.hour(),Fe=lt.minute();if(Ue!==ot||Oe!==Fe)return rt;const We=lt.second(),Ye=ct?r(We+1,59):r(0,We-1);return mZ(rt,Ye)},U=([Ue,Oe])=>[he(Ue,"start",!0,Oe),he(Oe,"end",!1,Ue)],{getAvailableHours:j,getAvailableMinutes:ee,getAvailableSeconds:ye}=hpe(_e,M,P),{timePickerOptions:ie,getAvailableTime:he,onSetOption:re}=dpe({getAvailableHours:j,getAvailableMinutes:ee,getAvailableSeconds:ye}),be=Ue=>Ue?Oa(Ue)?Ue.map(Oe=>wa(Oe,n.format).locale(l.value)):wa(Ue,n.format).locale(l.value):null,Ae=Ue=>Ue?Oa(Ue)?Ue.map(Oe=>Oe.format(n.format)):Ue.format(n.format):null,Te=()=>{if(Oa(C))return C.map(Oe=>wa(Oe).locale(l.value));const Ue=wa(C).locale(l.value);return[Ue,Ue.add(60,"m")]};return t("set-picker-option",["formatToString",Ae]),t("set-picker-option",["parseUserInput",be]),t("set-picker-option",["isValidValue",Q]),t("set-picker-option",["handleKeydownInput",le]),t("set-picker-option",["getDefaultValue",Te]),t("set-picker-option",["getRangeAvailableTime",U]),(Ue,Oe)=>Ue.actualVisible?(Ce(),Ie("div",{key:0,class:He([L(u).b("range-picker"),L(f).b("panel")])},[ce("div",{class:He(L(u).be("range-picker","content"))},[ce("div",{class:He(L(u).be("range-picker","cell"))},[ce("div",{class:He(L(u).be("range-picker","header"))},Zn(L(i)("el.datepicker.startTime")),3),ce("div",{class:He(L(S))},[gt(PJ,{ref:"minSpinner",role:"start","show-seconds":L(A),"am-pm-mode":L(X),"arrow-control":L(h),"spinner-date":L(B),"disabled-hours":_e,"disabled-minutes":M,"disabled-seconds":P,onChange:z,onSetOption:L(re),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ce("div",{class:He(L(u).be("range-picker","cell"))},[ce("div",{class:He(L(u).be("range-picker","header"))},Zn(L(i)("el.datepicker.endTime")),3),ce("div",{class:He(L(T))},[gt(PJ,{ref:"maxSpinner",role:"end","show-seconds":L(A),"am-pm-mode":L(X),"arrow-control":L(h),"spinner-date":L(F),"disabled-hours":_e,"disabled-minutes":M,"disabled-seconds":P,onChange:Y,onSetOption:L(re),onSelectRange:de},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ce("div",{class:He(L(u).be("panel","footer"))},[ce("button",{type:"button",class:He([L(u).be("panel","btn"),"cancel"]),onClick:Oe[0]||(Oe[0]=De=>N())},Zn(L(i)("el.datepicker.cancel")),3),ce("button",{type:"button",class:He([L(u).be("panel","btn"),"confirm"]),disabled:L(te),onClick:Oe[1]||(Oe[1]=De=>Z())},Zn(L(i)("el.datepicker.confirm")),11,pgt)],2)],2)):on("v-if",!0)}});var ggt=vr(mgt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);wa.extend(dne);var ygt=Zt({name:"ElTimePicker",install:null,props:{...vne,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=et(),[r,i]=e.isRange?["timerange",ggt]:["time",MH],l=u=>t.emit("update:modelValue",u);return $a("ElPopperOptions",e.popperOptions),t.expose({focus:u=>{var f;(f=n.value)==null||f.handleFocusInput(u)},blur:u=>{var f;(f=n.value)==null||f.handleBlurInput(u)},handleOpen:()=>{var u;(u=n.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=n.value)==null||u.handleClose()}}),()=>{var u;const f=(u=e.format)!=null?u:AJ;return gt(fpe,Pa(e,{ref:n,type:r,format:f,"onUpdate:modelValue":l}),{default:v=>gt(i,v,null)})}}});const Fz=ygt;Fz.install=e=>{e.component(Fz.name,Fz)};const bgt=Fz,_gt=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return $8(t).map((r,i)=>n-(t-i-1))},wgt=e=>{const t=e.daysInMonth();return $8(t).map((n,r)=>r+1)},Cgt=e=>$8(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),xgt=hr({selectedDay:{type:gn(Object)},range:{type:gn(Array)},date:{type:gn(Object),required:!0},hideHeader:{type:Boolean}}),Egt={pick:e=>Qs(e)};var xpe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){var l=r.prototype,u=function(y){return y&&(y.indexOf?y:y.s)},f=function(y,w,C,S,T){var B=y.name?y:y.$locale(),F=u(B[w]),R=u(B[C]),N=F||R.map(function(X){return X.slice(0,S)});if(!T)return N;var A=B.weekStart;return N.map(function(X,Z){return N[(Z+(A||0))%7]})},v=function(){return i.Ls[i.locale()]},h=function(y,w){return y.formats[w]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,T,B){return T||B.slice(1)})}(y.formats[w.toUpperCase()])},g=function(){var y=this;return{months:function(w){return w?w.format("MMMM"):f(y,"months")},monthsShort:function(w){return w?w.format("MMM"):f(y,"monthsShort","months",3)},firstDayOfWeek:function(){return y.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):f(y,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):f(y,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):f(y,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return h(y.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return g.bind(this)()},i.localeData=function(){var y=v();return{firstDayOfWeek:function(){return y.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(w){return h(y,w)},meridiem:y.meridiem,ordinal:y.ordinal}},i.months=function(){return f(v(),"months")},i.monthsShort=function(){return f(v(),"monthsShort","months",3)},i.weekdays=function(y){return f(v(),"weekdays",null,null,y)},i.weekdaysShort=function(y){return f(v(),"weekdaysShort","weekdays",3,y)},i.weekdaysMin=function(y){return f(v(),"weekdaysMin","weekdays",2,y)}}})})(xpe);var Epe=xpe.exports;const Sgt=(e,t)=>{wa.extend(Epe);const n=wa.localeData().firstDayOfWeek(),{t:r,lang:i}=Ni(),l=wa().locale(i.value),u=Ne(()=>!!e.range&&!!e.range.length),f=Ne(()=>{let w=[];if(u.value){const[C,S]=e.range,T=$8(S.date()-C.date()+1).map(R=>({text:C.date()+R,type:"current"}));let B=T.length%7;B=B===0?0:7-B;const F=$8(B).map((R,N)=>({text:N+1,type:"next"}));w=T.concat(F)}else{const C=e.date.startOf("month").day(),S=_gt(e.date,(C-n+7)%7).map(R=>({text:R,type:"prev"})),T=wgt(e.date).map(R=>({text:R,type:"current"}));w=[...S,...T];const B=7-(w.length%7||7),F=$8(B).map((R,N)=>({text:N+1,type:"next"}));w=w.concat(F)}return Cgt(w)}),v=Ne(()=>{const w=n;return w===0?gZ.map(C=>r(`el.datepicker.weeks.${C}`)):gZ.slice(w).concat(gZ.slice(0,w)).map(C=>r(`el.datepicker.weeks.${C}`))}),h=(w,C)=>{switch(C){case"prev":return e.date.startOf("month").subtract(1,"month").date(w);case"next":return e.date.startOf("month").add(1,"month").date(w);case"current":return e.date.date(w)}};return{now:l,isInRange:u,rows:f,weekDays:v,getFormattedDate:h,handlePickDay:({text:w,type:C})=>{const S=h(w,C);t("pick",S)},getSlotData:({text:w,type:C})=>{const S=h(w,C);return{isSelected:S.isSame(e.selectedDay),type:`${C}-month`,day:S.format("YYYY-MM-DD"),date:S.toDate()}}}},Tgt={key:0},Agt=["onClick"],kgt=Zt({name:"DateTable"}),Ogt=Zt({...kgt,props:xgt,emits:Egt,setup(e,{expose:t,emit:n}){const r=e,{isInRange:i,now:l,rows:u,weekDays:f,getFormattedDate:v,handlePickDay:h,getSlotData:g}=Sgt(r,n),y=Vn("calendar-table"),w=Vn("calendar-day"),C=({text:S,type:T})=>{const B=[T];if(T==="current"){const F=v(S,T);F.isSame(r.selectedDay,"day")&&B.push(w.is("selected")),F.isSame(l,"day")&&B.push(w.is("today"))}return B};return t({getFormattedDate:v}),(S,T)=>(Ce(),Ie("table",{class:He([L(y).b(),L(y).is("range",L(i))]),cellspacing:"0",cellpadding:"0"},[S.hideHeader?on("v-if",!0):(Ce(),Ie("thead",Tgt,[(Ce(!0),Ie(Ur,null,La(L(f),B=>(Ce(),Ie("th",{key:B},Zn(B),1))),128))])),ce("tbody",null,[(Ce(!0),Ie(Ur,null,La(L(u),(B,F)=>(Ce(),Ie("tr",{key:F,class:He({[L(y).e("row")]:!0,[L(y).em("row","hide-border")]:
53F===0&&S.hideHeader})},[(Ce(!0),Ie(Ur,null,La(B,(R,N)=>(Ce(),Ie("td",{key:N,class:He(C(R)),onClick:A=>L(h)(R)},[ce("div",{class:He(L(w).b())},[Fn(S.$slots,"date-cell",{data:L(g)(R)},()=>[ce("span",null,Zn(R.text),1)])],2)],10,Agt))),128))],2))),128))])],2))}});var Fle=vr(Ogt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Mgt=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),l=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[l.startOf("week"),t]]},Ngt=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r,l=i.endOf("month"),u=t.startOf("month"),f=l.isSame(u,"week")?u.add(1,"week"):u;return[[e,n],[i.startOf("week"),l],[f.startOf("week"),t]]},Dgt=(e,t,n)=>{const r=g1(),{lang:i}=Ni(),l=et(),u=wa().locale(i.value),f=Ne({get(){return e.modelValue?h.value:l.value},set(F){if(!F)return;l.value=F;const R=F.toDate();t(yh,R),t(Ma,R)}}),v=Ne(()=>{if(!e.range)return[];const F=e.range.map(A=>wa(A).locale(i.value)),[R,N]=F;return R.isAfter(N)?[]:R.isSame(N,"month")?S(R,N):R.add(1,"month").month()!==N.month()?[]:S(R,N)}),h=Ne(()=>e.modelValue?wa(e.modelValue).locale(i.value):f.value||(v.value.length?v.value[0][0]:u)),g=Ne(()=>h.value.subtract(1,"month").date(1)),y=Ne(()=>h.value.add(1,"month").date(1)),w=Ne(()=>h.value.subtract(1,"year").date(1)),C=Ne(()=>h.value.add(1,"year").date(1)),S=(F,R)=>{const N=F.startOf("week"),A=R.endOf("week"),X=N.get("month"),Z=A.get("month");return X===Z?[[N,A]]:(X+1)%12===Z?Mgt(N,A):X+2===Z||(X+1)%11===Z?Ngt(N,A):[]},T=F=>{f.value=F},B=F=>{const N={"prev-month":g.value,"next-month":y.value,"prev-year":w.value,"next-year":C.value,today:u}[F];N.isSame(h.value,"day")||T(N)};return cb({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},Ne(()=>!!r.dateCell)),{calculateValidatedDateRange:S,date:h,realSelectedDay:f,pickDay:T,selectDate:B,val
53idatedRange:v}},Igt=e=>Oa(e)&&e.length===2&&e.every(t=>mI(t)),Rgt=hr({modelValue:{type:Date},range:{type:gn(Array),validator:Igt}}),Lgt={[Ma]:e=>mI(e),[yh]:e=>mI(e)},Bgt="ElCalendar",Pgt=Zt({name:Bgt}),Fgt=Zt({...Pgt,props:Rgt,emits:Lgt,setup(e,{expose:t,emit:n}){const r=e,i=Vn("calendar"),{calculateValidatedDateRange:l,date:u,pickDay:f,realSelectedDay:v,selectDate:h,validatedRange:g}=Dgt(r,n),{t:y}=Ni(),w=Ne(()=>{const C=`el.datepicker.month${u.value.format("M")}`;return`${u.value.year()} ${y("el.datepicker.year")} ${y(C)}`});return t({selectedDay:v,pickDay:f,selectDate:h,calculateValidatedDateRange:l}),(C,S)=>(Ce(),Ie("div",{class:He(L(i).b())},[ce("div",{class:He(L(i).e("header"))},[Fn(C.$slots,"header",{date:L(w)},()=>[ce("div",{class:He(L(i).e("title"))},Zn(L(w)),3),L(g).length===0?(Ce(),Ie("div",{key:0,class:He(L(i).e("button-group"))},[gt(L(ope),null,{default:Dt(()=>[gt(L(Z1),{size:"small",onClick:S[0]||(S[0]=T=>L(h)("prev-month"))},{default:Dt(()=>[lo(Zn(L(y)("el.datepicker.prevMonth")),1)]),_:1}),gt(L(Z1),{size:"small",onClick:S[1]||(S[1]=T=>L(h)("today"))},{default:Dt(()=>[lo(Zn(L(y)("el.datepicker.today")),1)]),_:1}),gt(L(Z1),{size:"small",onClick:S[2]||(S[2]=T=>L(h)("next-month"))},{default:Dt(()=>[lo(Zn(L(y)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):on("v-if",!0)])],2),L(g).length===0?(Ce(),Ie("div",{key:0,class:He(L(i).e("body"))},[gt(Fle,{date:L(u),"selected-day":L(v),onPick:L(f)},b3({_:2},[C.$slots["date-cell"]||C.$slots.dateCell?{name:"date-cell",fn:Dt(T=>[C.$slots["date-cell"]?Fn(C.$slots,"date-cell",qg(Pa({key:0},T))):Fn(C.$slots,"dateCell",qg(Pa({key:1},T)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(Ce(),Ie("div",{key:1,class:He(L(i).e("body"))},[(Ce(!0),Ie(Ur,null,La(L(g),(T,B)=>(Ce(),yn(Fle,{key:B,date:T[0],"selected-day":L(v),range:T,"hide-header":B!==0,onPick:L(f)},b3({_:2},[C.$slots["date-cell"]||C.$slots.dateCell?{name:"date-cell",fn:Dt(F=>[C.$slots["date-cell"]?Fn(C.$slots,"date-cell",qg(Pa({key:0},F))):Fn(C.$slots,"dateCell",qg(Pa({key:1},F)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var $gt=vr(Fgt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const zgt=Ca($gt),Hgt=hr({header:{type:String,default:""},bodyStyle:{type:gn([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),Vgt=Zt({name:"ElCard"}),Ugt=Zt({...Vgt,props:Hgt,setup(e){const t=Vn("card");return(n,r)=>(Ce(),Ie("div",{class:He([L(t).b(),L(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(Ce(),Ie("div",{key:0,class:He(L(t).e("header"))},[Fn(n.$slots,"header",{},()=>[lo(Zn(n.header),1)])],2)):on("v-if",!0),ce("div",{class:He(L(t).e("body")),style:Pr(n.bodyStyle)},[Fn(n.$slots,"default")],6)],2))}});var jgt=vr(Ugt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const Wgt=Ca(jgt),Ggt=hr({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),Kgt={change:(e,t)=>
53[e,t].every($o)},Spe=Symbol("carouselContextKey"),$le=300,Ygt=(e,t,n)=>{const{children:r,addChild:i,removeChild:l}=ine(va(),"ElCarouselItem"),u=et(-1),f=et(null),v=et(!1),h=et(),g=et(0),y=Ne(()=>e.arrow!=="never"&&!L(S)),w=Ne(()=>r.value.some(M=>M.props.label.toString().length>0)),C=Ne(()=>e.type==="card"),S=Ne(()=>e.direction==="vertical"),T=Ne(()=>e.height!=="auto"?{height:e.height}:{height:`${g.value}px`,overflow:"hidden"}),B=F8(M=>{X(M)},$le,{trailing:!0}),F=F8(M=>{K(M)},$le);function R(){f.value&&(clearInterval(f.value),f.value=null)}function N(){e.interval<=0||!e.autoplay||f.value||(f.value=setInterval(()=>A(),e.interval))}const A=()=>{u.value<r.value.length-1?u.value=u.value+1:e.loop&&(u.value=0)};function X(M){if(Ga(M)){const j=r.value.filter(ee=>ee.props.name===M);j.length>0&&(M=r.value.indexOf(j[0]))}if(M=Number(M),Number.isNaN(M)||M!==Math.floor(M))return;const P=r.value.length,U=u.value;M<0?u.value=e.loop?P-1:0:M>=P?u.value=e.loop?0:P-1:u.value=M,U===u.value&&Z(U),ne()}function Z(M){r.value.forEach((P,U)=>{P.translateItem(U,u.value,M)})}function z(M,P){var U,j,ee,ye;const ie=L(r),he=ie.length;if(he===0||!M.states.inStage)return!1;const re=P+1,be=P-1,Ae=he-1,Te=ie[Ae].states.active,Ue=ie[0].states.active,Oe=(j=(U=ie[re])==null?void 0:U.states)==null?void 0:j.active,De=(ye=(ee=ie[be])==null?void 0:ee.states)==null?void 0:ye.active;return P===Ae&&Ue||Oe?"left":P===0&&Te||De?"right":!1}function Y(){v.value=!0,e.pauseOnHover&&R()}function Q(){v.value=!1,N()}function $(M){L(S)||r.value.forEach((P,U)=>{M===z(P,U)&&(P.states.hover=!0)})}function te(){L(S)||r.value.forEach(M=>{M.states.hover=!1})}function V(M){u.value=M}function K(M){e.trigger==="hover"&&M!==u.value&&(u.value=M)}function fe(){X(u.value-1)}function de(){X(u.value+1)}function ne(){R(),N()}function le(M){e.height==="auto"&&(g.value=M)}$n(()=>u.value,(M,P)=>{Z(P),P>-1&&t("change",M,P)}),$n(()=>e.autoplay,M=>{M?N():R()}),$n(()=>e.loop,()=>{X(u.value)}),$n(()=>e.interval,()=>{ne()}),$n(()=>r.value,()=>{r.value.length>0&&X(e.initialIndex)});const _e=al();return ia(()=>{_e.value=Rv(h.value,()=>{Z()}),N()}),Bl(()=>{R(),h.value&&_e.value&&_e.value.stop()}),$a(Spe,{root:h,isCardType:C,isVertical:S,items:r,loop:e.loop,addItem:i,removeItem:l,setActiveItem:X,setContainerHeight:le}),{root:h,activeIndex:u,arrowDisplay:y,hasLabel:w,hover:v,isCardType:C,items:r,isVertical:S,containerStyle:T,handleButtonEnter:$,handleButtonLeave:te,handleIndicatorClick:V,handleMouseEnter:Y,handleMouseLeave:Q,setActiveItem:X,prev:fe,next:de,throttledArrowClick:B,throttledIndicatorHover:F}},qgt=["onMouseenter","onClick"],Xgt={key:0},Zgt="ElCarousel",Qgt=Zt({name:Zgt}),Jgt=Zt({...Qgt,props:Ggt,emits:Kgt,setup(e,{expose:t,emit:n}){const r=e,{root:i,activeIndex:l,arrowDisplay:u,hasLabel:f,hover:v,isCardType:h,items:g,isVertical:y,containerStyle:w,handleButtonEnter:C,handleButtonLeave:S,handleIndicatorClick:T,handleMouseEnter:B,handleMouseLeave:F,setActiveItem:R,prev:N,next:A,throttledArrowClick:X,throttledIndicatorHover:Z}=Ygt(r,n),z=Vn("carousel"),Y=Ne(()=>{const $=[z.b(),z.m(r.direction)];return L(h)&&$.push(z.m("card")),$}),Q=Ne(()=>{const $=[z.e("indicators"),z.em("indicators",r.direction)];return L(f)&&$.push(z.em("indicators","labels")),r.indicatorPosition==="outside"&&$.push(z.em("indicators","outside")),L(y)&&$.push(z.em("indicators","right")),$});return t({setActiveItem:R,prev:N,next:A}),($,te)=>(Ce(),Ie("div",{ref_key:"root",ref:i,class:He(L(Y)),onMouseenter:te[6]||(te[6]=Do((...V)=>L(B)&&L(B)(...V),["stop"])),onMouseleave:te[7]||(te[7]=Do((...V)=>L(F)&&L(F)(...V),["stop"]))},[ce("div",{class:He(L(z).e("container")),style:Pr(L(w))},[L(u)?(Ce(),yn(Ic,{key:0,name:"carousel-arrow-left",persisted:""},{default:Dt(()=>[ea(ce("button",{type:"button",class:He([L(z).e("arrow"),L(z).em("arrow","left")]),onMouseenter:te[0]||(te[0]=V=>L(C)("left")),onMouseleave:te[1]||(te[1]=(...V)=>L(S)&&L(S)(...V)),onClick:te[2]||(te[2]=Do(V=>L(X)(L(l)-1),["stop"]))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1})],34),[[Ti,($.arrow==="always"||L(v))&&(r.loop||L(l)>0)]])]),_:1})):on("v-if",!0),L(u)?(Ce(),yn(Ic,{key:1,name:"carousel-arrow-right",persisted:""},{default:Dt(()=>[ea(ce("button",{type:"button",class:He([L(z).e("arrow"),L(z).em("arrow","right")]),onMouseenter:te[3]||(te[3]=V=>L(C)("right")),onMouseleave:te[4]||(te[4]=(...V)=>L(S)&&L(S)(...V)),onClick:te[5]||(te[5]=Do(V=>L(X)(L(l)+1),["stop"]))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})],34),[[Ti,($.arrow==="always"||L(v))&&(r.loop||L(l)<L(g).length-1)]])]),_:1})):on("v-if",!0),Fn($.$slots,"default")],6),$.indicatorPosition!=="none"?(Ce(),Ie("ul",{key:0,class:He(L(Q))},[(Ce(!0),Ie(Ur,null,La(L(g),(V,K)=>(Ce(),Ie("li",{key:K,class:He([L(z).e("indicator"),L(z).em("indicator",$.direction),L(z).is("active",K===L(l))]),onMouseenter:fe=>L(Z)(K),onClick:Do(fe=>L(T)(K),["stop"])},[ce("button",{class:He(L(z).e("button"))},[L(f)?(Ce(),Ie("span",Xgt,Zn(V.props.label),1)):on("v-if",!0)],2)],42,qgt))),128))],2)):on("v-if",!0)],34))}});var e2t=vr(Jgt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const t2t=hr({name:{type:String,default:""},label:{type:[String,Number],default:""}}),n2t=(e,t)=>{const n=jr(Spe),r=va(),i=.83,l=et(),u=et(!1),f=et(0),v=et(1),h=et(!1),g=et(!1),y=et(!1),w=et(!1),{isCardType:C,isVertical:S}=n;function T(A,X,Z){const z=Z-1,Y=X-1,Q=X+1,$=Z/2;return X===0&&A===z?-1:X===z&&A===0?Z:A<Y&&X-A>=$?Z+1:A>Q&&A-X>=$?-2:A}function B(A,X){var Z,z;const Y=L(S)?((Z=n.root.value)==null?void 0:Z.offsetHeight)||0:((z=n.root.value)==null?void 0:z.offsetWidth)||0;return y.value?Y*((2-i)*(A-X)+1)/4:A<X?-(1+i)*Y/4:(3+i)*Y/4}function F(A,X,Z){const z=n.root.value;return z?((Z?z.offsetHeight:z.offsetWidth)||0)*(A-X):0}const R=(A,X,Z)=>{var z;const Y=L(C),Q=(z=n.items.value.length)!=null?z:Number.NaN,$=A===X;!Y&&!Vd(Z)&&(w.value=$||A===Z),!$&&Q>2&&n.loop&&(A=T(A,X,Q));const te=L(S);h.value=$,Y?(y.value=Math.round(Math.abs(A-X))<=1,f.value=B(A,X),v.value=L(h)?1:i):f.value=F(A,X,te),g.value=!0,$&&l.value&&n.setContainerHeight(l.value.offsetHeight)};function N(){if(n&&L(C)){const A=n.items.value.findIndex(({uid:X})=>X===r.uid);n.setActiveItem(A)}}return ia(()=>{n.addItem({props:e,states:gi({hover:u,translate:f,scale:v,active:h,ready:g,inStage:y,animating:w}),uid:r.uid,translateItem:R})}),T3(()=>{n.removeItem(r.uid)}),{carouselItemRef:l,active:h,animating:w,hover:u,inStage:y,isVertical:S,translate:f,isCardType:C,scale:v,ready:g,handleItem
53Click:N}},r2t=Zt({name:"ElCarouselItem"}),o2t=Zt({...r2t,props:t2t,setup(e){const t=e,n=Vn("carousel"),{carouselItemRef:r,active:i,animating:l,hover:u,inStage:f,isVertical:v,translate:h,isCardType:g,scale:y,ready:w,handleItemClick:C}=n2t(t),S=Ne(()=>{const B=`${`translate${L(v)?"Y":"X"}`}(${L(h)}px)`,F=`scale(${L(y)})`;return{transform:[B,F].join(" ")}});return(T,B)=>ea((Ce(),Ie("div",{ref_key:"carouselItemRef",ref:r,class:He([L(n).e("item"),L(n).is("active",L(i)),L(n).is("in-stage",L(f)),L(n).is("hover",L(u)),L(n).is("animating",L(l)),{[L(n).em("item","card")]:L(g),[L(n).em("item","card-vertical")]:L(g)&&L(v)}]),style:Pr(L(S)),onClick:B[0]||(B[0]=(...F)=>L(C)&&L(C)(...F))},[L(g)?ea((Ce(),Ie("div",{key:0,class:He(L(n).e("mask"))},null,2)),[[Ti,!L(i)]]):on("v-if",!0),Fn(T.$slots,"default")],6)),[[Ti,L(w)]])}});var Tpe=vr(o2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const a2t=Ca(e2t,{CarouselItem:Tpe}),i2t=qu(Tpe),Ape={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:ev,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},kpe={[Ma]:e=>Ga(e)||$o(e)||Wf(e),change:e=>Ga(e)||$o(e)||Wf(e)},y7=Symbol("checkboxGroupContextKey"),s2t=({model:e,isChecked:t})=>{const n=jr(y7,void 0),r=Ne(()=>{var l,u;const f=(l=n==null?void 0:n.max)==null?void 0:l.value,v=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Vd(f)&&e.value.length>=f&&!t.value||!Vd(v)&&e.value.length<=v&&t.value});return{isDisabled:w0(Ne(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},l2t=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:l})=>{const u=jr(y7,void 0),{formItem:f}=xh(),{emit:v}=va();function h(S){var T,B;return S===e.trueLabel||S===!0?(T=e.trueLabel)!=null?T:!0:(B=e.falseLabel)!=null?B:!1}function g(S,T){v("change",h(S),T)}function y(S){if(n.value)return;const T=S.target;v("change",h(T.checked),S)}async function w(S){n.value||!r.value&&!i.value&&l.value&&(S.composedPath().some(F=>F.tagName==="LABEL")||(t.value=h([!1,e.falseLabel].includes(t.value)),await Gr(),g(t.value,S)))}const C=Ne(()=>(u==null?void 0:u.validateEvent)||e.validateEvent);return $n(()=>e.modelValue,()=>{C.value&&(f==null||f.validate("change").catch(S=>void 0))}),{handleChange:y,onClickRoot:w}},u2t=e=>{const t=et(!1),{emit:n}=va(),r=jr(y7,void 0),i=Ne(()=>Vd(r)===!1),l=et(!1);return{model:Ne({get(){var f,v;return i.value?(f=r==null?void 0:r.modelValue)==null?void 0:f.value:(v=e.modelValue)!=null?v:t.value},set(f){var v,h;i.value&&Oa(f)?(l.value=((v=r==null?void 0:r.max)==null?void 0:v.value)!==void 0&&f.length>(r==null?void 0:r.max.value),l.value===!1&&((h=r==null?void 0:r.changeEvent)==null||h.call(r,f))):(n(Ma,f),t.value=f)}}),isGroup:i,isLimitExceeded:l}},c2t=(e,t,{model:n})=>{const r=jr(y7,void 0),i=et(!1),l=Ne(()=>{const h=n.value;return Wf(h)?h:Oa(h)?Qs(e.label)?h.map(ls).some(g=>p0(g,e.label)):h.map(ls).includes(e.label):h!=null?h===e.trueLabel:!!h}),u=Kf(Ne(()=>{var h;return(h=r==null?void 0:r.size)==null?void 0:h.value}),{prop:!0}),f=Kf(Ne(()=>{var h;return(h=r==null?void 0:r.size)==null?void 0:h.value})),v=Ne(()=>!!(t.default||e.label));return{checkboxButtonSize:u,isChecked:l,isFocused:i,checkboxSize:f,hasOwnLabel:v}},f2t=(e,{model:t})=>{function n(){Oa(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},Ope=(e,t)=>{const{formItem:n}=xh(),{model:r,isGroup:i,isLimitExceeded:l}=u2t(e),{isFocused:u,isChecked:f,checkboxButtonSize:v,checkboxSize:h,hasOwnLabel:g}=c2t(e,t,{model:r}),{isDisabled:y}=s2t({model:r,isChecked:f}),{inputId:w,isLabeledByFormItem:C}=q8(e,{formItemContext:n,disableIdGeneration:g,disableIdManagement:i}),{handleChange:S,onClickRoot:T}=l2t(e,{model:r,isLimitExceeded:l,hasOwnLabel:g,isDisabled:y,isLabeledByFormItem:C});return f2t(e,{model:r}),{inputId:w,isLabeledByFormItem:C,isChecked:f,isDisabled:y,isFocused:u,checkboxButtonSize:v,checkboxSize:h,hasOwnLabel:g,model:r,handleChange:S,onClickRoot:T}},d2t=["tabindex","role","aria-checked"],v2t=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],h2t=["id","aria-hidden","disabled","value","name","tabindex"],p2t=Zt({name:"ElCheckbox"}),m2t=Zt({...p2t,props:Ape,emits:kpe,setup(e){const t=e,n=g1(),{inputId:r,isLabeledByFormItem:i,isChecked:l,isDisabled:u,isFocused:f,checkboxSize:v,hasOwnLabel:h,model:g,handleChange:y,onClickRoot:w}=Ope(t,n),C=Vn("checkbox"),S=Ne(()=>[C.b(),C.m(v.value),C.is("disabled",u.value),C.is("bordered",t.border),C.is("checked",l.value)]),T=Ne(()=>[C.e("input"),C.is("disabled",u.value),C.is("checked",l.value),C.is("indeterminate",t.indeterminate),C.is("focus",f.value)]);return(B,F)=>(Ce(),yn(Fa(!L(h)&&L(i)?"span":"label"),{class:He(L(S)),"aria-controls":B.indeterminate?B.controls:null,onClick:L(w)},{default:Dt(()=>
53[ce("span",{class:He(L(T)),tabindex:B.indeterminate?0:void 0,role:B.indeterminate?"checkbox":void 0,"aria-checked":B.indeterminate?"mixed":void 0},[B.trueLabel||B.falseLabel?ea((Ce(),Ie("input",{key:0,id:L(r),"onUpdate:modelValue":F[0]||(F[0]=R=>El(g)?g.value=R:null),class:He(L(C).e("original")),type:"checkbox","aria-hidden":B.indeterminate?"true":"false",name:B.name,tabindex:B.tabindex,disabled:L(u),"true-value":B.trueLabel,"false-value":B.falseLabel,onChange:F[1]||(F[1]=(...R)=>L(y)&&L(y)(...R)),onFocus:F[2]||(F[2]=R=>f.value=!0),onBlur:F[3]||(F[3]=R=>f.value=!1)},null,42,v2t)),[[mH,L(g)]]):ea((Ce(),Ie("input",{key:1,id:L(r),"onUpdate:modelValue":F[4]||(F[4]=R=>El(g)?g.value=R:null),class:He(L(C).e("original")),type:"checkbox","aria-hidden":B.indeterminate?"true":"false",disabled:L(u),value:B.label,name:B.name,tabindex:B.tabindex,onChange:F[5]||(F[5]=(...R)=>L(y)&&L(y)(...R)),onFocus:F[6]||(F[6]=R=>f.value=!0),onBlur:F[7]||(F[7]=R=>f.value=!1)},null,42,h2t)),[[mH,L(g)]]),ce("span",{class:He(L(C).e("inner"))},null,2)],10,d2t),L(h)?(Ce(),Ie("span",{key:0,class:He(L(C).e("label"))},[Fn(B.$slots,"default"),B.$slots.default?on("v-if",!0):(Ce(),Ie(Ur,{key:0},[lo(Zn(B.label),1)],64))],2)):on("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var g2t=vr(m2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const y2t=["name","tabindex","disabled","true-value","false-value"],b2t=["name","tabindex","disabled","value"],_2t=Zt({name:"ElCheckboxButton"}),w2t=Zt({..._2t,props:Ape,emits:kpe,setup(e){const t=e,n=g1(),{isFocused:r,isChecked:i,isDisabled:l,checkboxButtonSize:u,model:f,handleChange:v}=Ope(t,n),h=jr(y7,void 0),g=Vn("checkbox"),y=Ne(()=>{var C,S,T,B;const F=(S=(C=h==null?void 0:h.fill)==null?void 0:C.value)!=null?S:"";return{backgroundColor:F,borderColor:F,color:(B=(T=h==null?void 0:h.textColor)==null?void 0:T.value)!=null?B:"",boxShadow:F?`-1px 0 0 0 ${F}`:void 0}}),w=Ne(()=>[g.b("button"),g.bm("button",u.value),g.is("disabled",l.value),g.is("checked",i.value),g.is("focus",r.value)]);return(C,S)=>(Ce(),Ie("label",{class:He(L(w))},[C.trueLabel||C.falseLabel?ea((Ce(),Ie("input",{key:0,"onUpdate:modelValue":S[0]||(S[0]=T=>El(f)?f.value=T:null),class:He(L(g).be("button","original")),type:"checkbox",name:C.name,tabindex:C.tabindex,disabled:L(l),"true-value":C.trueLabel,"false-value":C.falseLabel,onChange:S[1]||(S[1]=(...T)=>L(v)&&L(v)(...T)),onFocus:S[2]||(S[2]=T=>r.value=!0),onBlur:S[3]||(S[3]=T=>r.value=!1)},null,42,y2t)),[[mH,L(f)]]):ea((Ce(),Ie("input",{key:1,"onUpdate:modelValue":S[4]||(S[4]=T=>El(f)?f.value=T:null),class:He(L(g).be("button","original")),type:"checkbox",name:C.name,tabindex:C.tabindex,disabled:L(l),value:C.label,onChange:S[5]||(S[5]=(...T)=>L(v)&&L(v)(...T)),onFocus:S[6]||(S[6]=T=>r.value=!0),onBlur:S[7]||(S[7]=T=>r.value=!1)},null,42,b2t)),[[mH,L(f)]]),C.$slots.default||C.label?(Ce(),Ie("span",{key:2,class:He(L(g).be("button","inner")),style:Pr(L(i)?L(y):void 0)},[Fn(C.$slots,"default",{},()=>[lo(Zn(C.label),1)])],6)):on("v-if",!0)],2))}});var Mpe=vr(w2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const C2t=hr({modelValue:{type:gn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ev,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),x2t={[Ma]:e=>Oa(e),change:e=>Oa(e)},E2t=Zt({name:"ElCheckboxGroup"}),S2t=Zt({...E2t,props:C2t,emits:x2t,setup(e,{emit:t}){const n=e,r=Vn("checkbox"),{formItem:i}=xh(),{inputId:l,isLabeledByFormItem:u}=q8(n,{formItemContext:i}),f=async h=>{t(Ma,h),await Gr(),t("change",h)},v=Ne({get(){return n.modelValue},set(h){f(h)}});return $a(y7,{...h3(Dc(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:v,changeEvent:f}),$n(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(h=>void 0))}),(h,g)=>{var y;return Ce(),yn(Fa(h.tag),{id:L(l),class:He(L(r).b("group")),role:"group","aria-label":L(u)?void 0:h.label||"checkbox-group","aria-labelledby":L(u)?(y=L(i))==null?void 0:y.labelId:void 0},{default:Dt(()=>[Fn(h.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Npe=vr(S2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Bm=Ca(g2t,{CheckboxButton:Mpe,CheckboxGroup:Npe}),T2t=qu(Mpe),Dpe=qu(Npe),Ipe=hr({size:ev,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),A2t=hr({...Ipe,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""}
53,border:Boolean}),Rpe={[Ma]:e=>Ga(e)||$o(e)||Wf(e),[Ll]:e=>Ga(e)||$o(e)||Wf(e)},Lpe=Symbol("radioGroupKey"),Bpe=(e,t)=>{const n=et(),r=jr(Lpe,void 0),i=Ne(()=>!!r),l=Ne({get(){return i.value?r.modelValue:e.modelValue},set(g){i.value?r.changeEvent(g):t&&t(Ma,g),n.value.checked=e.modelValue===e.label}}),u=Kf(Ne(()=>r==null?void 0:r.size)),f=w0(Ne(()=>r==null?void 0:r.disabled)),v=et(!1),h=Ne(()=>f.value||i.value&&l.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:v,size:u,disabled:f,tabIndex:h,modelValue:l}},k2t=["value","name","disabled"],O2t=Zt({name:"ElRadio"}),M2t=Zt({...O2t,props:A2t,emits:Rpe,setup(e,{emit:t}){const n=e,r=Vn("radio"),{radioRef:i,radioGroup:l,focus:u,size:f,disabled:v,modelValue:h}=Bpe(n,t);function g(){Gr(()=>t("change",h.value))}return(y,w)=>{var C;return Ce(),Ie("label",{class:He([L(r).b(),L(r).is("disabled",L(v)),L(r).is("focus",L(u)),L(r).is("bordered",y.border),L(r).is("checked",L(h)===y.label),L(r).m(L(f))])},[ce("span",{class:He([L(r).e("input"),L(r).is("disabled",L(v)),L(r).is("checked",L(h)===y.label)])},[ea(ce("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":w[0]||(w[0]=S=>El(h)?h.value=S:null),class:He(L(r).e("original")),value:y.label,name:y.name||((C=L(l))==null?void 0:C.name),disabled:L(v),type:"radio",onFocus:w[1]||(w[1]=S=>u.value=!0),onBlur:w[2]||(w[2]=S=>u.value=!1),onChange:g},null,42,k2t),[[z1e,L(h)]]),ce("span",{class:He(L(r).e("inner"))},null,2)],2),ce("span",{class:He(L(r).e("label")),onKeydown:w[3]||(w[3]=Do(()=>{},["stop"]))},[Fn(y.$slots,"default",{},()=>[lo(Zn(y.label),1)])],34)],2)}}});var N2t=vr(M2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const D2t=hr({...Ipe,name:{type:String,default:""}}),I2t=["value","name","disabled"],R2t=Zt({name:"ElRadioButton"}),L2t=Zt({...R2t,props:D2t,setup(e){const t=e,n=Vn("radio"),{radioRef:r,focus:i,size:l,disabled:u,modelValue:f,radioGroup:v}=Bpe(t),h=Ne(()=>({backgroundColor:(v==null?void 0:v.fill)||"",borderColor:(v==null?void 0:v.fill)||"",boxShadow:v!=null&&v.fill?`-1px 0 0 0 ${v.fill}`:"",color:(v==null?void 0:v.textColor)||""}));return(g,y)=>{var w;return Ce(),Ie("label",{class:He([L(n).b("button"),L(n).is("active",L(f)===g.label),L(n).is("disabled",L(u)),L(n).is("focus",L(i)),L(n).bm("button",L(l))])},[ea(ce("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":y[0]||(y[0]=C=>El(f)?f.value=C:null),class:He(L(n).be("button","original-radio")),value:g.label,type:"radio",name:g.name||((w=L(v))==null?void 0:w.name),disabled:L(u),onFocus:y[1]||(y[1]=C=>i.value=!0),onBlur:y[2]||(y[2]=C=>i.value=!1)},null,42,I2t),[[z1e,L(f)]]),ce("span",{class:He(L(n).be("button","inner")),style:Pr(L(f)===g.label?L(h):{}),onKeydown:y[3]||(y[3]=Do(()=>{},["stop"]))},[Fn(g.$slots,"default",{},()=>[lo(Zn(g.label),1)])],38)],2)}}});var Ppe=vr(L2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const B2t=hr({id:{type:String,default:void 0},size:ev,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),P2t=Rpe,F2t=["id","aria-label","aria-labelledby"],$2t=Zt({name:"ElRadioGroup"}),z2t=Zt({...$2t,props:B2t,emits:P2t,setup(e,{emit:t}){const n=e,r=Vn("radio"),i=Lm(),l=et(),{formItem:u}=xh(),{inputId:f,isLabeledByFormItem:v}=q8(n,{formItemContext:u}),h=y=>{t(Ma,y),Gr(()=>t("change",y))};ia(()=>{const y=l.value.querySelectorAll("[type=radio]"),w=y[0];!Array.from(y).some(C=>C.checked)&&w&&(w.tabIndex=0)});const g=Ne(()=>n.name||i.value);return $a(Lpe,gi({...Dc(n),changeEvent:h,name:g})),$n(()=>n.modelValue,()=>{n.validateEvent&&(u==null||u.validate("change").catch(y=>void 0))}),(y,w)=>(Ce(),Ie("div",{id:L(f),ref_key:"radioGroupRef",ref:l,class:He(L(r).b("group")),role:"radiogroup","aria-label":L(v)?void 0:y.label||"radio-group","aria-labelledby":L(v)?L(u).labelId:void 0},[Fn(y.$slots,"default")],10,F2t))}});var Fpe=vr(z2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const $pe=Ca(N2t,{RadioButton:Ppe,RadioGroup:Fpe}),H2t=qu(Fpe),V2t=qu(Ppe);var U2t=Zt({name:"NodeContent",setup(){return{ns:Vn("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:i}=t,{renderLabelFn:l}=n;return oo("span",{class:e.e("label")},l?l({node:t,data:r}):i)}});const hne=Symbol(),j2t=Zt({name:"ElCascaderNode",components:{ElCheckbox:Bm,ElRadio:$pe,NodeContent:U2t,ElIcon:Zr,Check:p7,Loading:N3,ArrowRight:Nv},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=jr(hne),r=Vn("cascader-node"),i=Ne(()=>n.isHoverMenu),l=Ne(()=>n.config.multiple),u=Ne(()=>n.config.checkStrictly),f=Ne(()=>{var Z;return(Z=n.checkedNodes[0])==null?void 0:Z.uid}),v=Ne(()=>e.node.isDisabled),h=Ne(()=>e.node.isLeaf),g=Ne(()=>u.value&&!h.value||!v.value),y=Ne(()=>C(n.expandingNode)),w=Ne(()=>u.value&&n.checkedNodes.some(C)),C=Z=>{var z;const{level:Y,uid:Q}=e.node;return((z=Z==null?void 0:Z.pathNodes[Y-1])==null?void 0:z.uid)===Q},S=()=>{y.value||n.expandNode(e.node)},T=Z=>{const{node:z}=e;Z!==z.checked&&n.handleCheckChange(z,Z)},B=()=>{n.lazyLoad(e.node,()=>{h.value||S()})},F=Z=>{!i.value||(R(),!h.value&&t("expand",Z))},R=()=>{const{node:Z}=e;!g.value||Z.loading||(Z.loaded?S():B())},N=()=>{i.value&&!h.value||(h.value&&!v.value&&!u.value&&!l.value?X(!0):R())},A=Z=>{u.value?(T(Z),e.node.loaded&&S()):X(Z)},X=Z=>{e.node.loaded?(T(Z),!u.value&&S()):B()};return{panel:n,isHoverMenu:i,multiple:l,checkStrictly:u,checkedNodeId:f,isDisabled:v,isLeaf:h,expandable:g,inExpandingPath:y,inCheckedPath:w,ns:r,handleHoverExpand:F,handleExpand:R,handleClick:N,handleCheck:X,handleSelectCheck:A}}}),W2t=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],G2t=ce("span",null,null,-1);function K2t(e,t,n,r,i,l){const u=Kr("el-checkbox"),f=Kr("el-radio"),v=Kr("check"),h=Kr("el-icon"),g=Kr("node-content"),y=Kr("loading"),w=Kr("arrow-right");return Ce(),Ie("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:He([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...C)=>e.handleHoverExpand&&e.handleHoverExpand(...C)),onFocus:t[3]||(t[3]=(...C)=>e.handleHoverExpand&&e.handleHoverExpand(...C)),onClick:t[4]||(t[4]=(...C)=>e.handleClick&&e.handleClick(...C))},[on(" prefix "),e.multiple?(Ce(),yn(u,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Do(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(Ce(),yn(f,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Do(()=>{},["stop"]))},{default:Dt(()=>[on(` 54 Add an empty element to avoid render label, 55 do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 56 `),G2t]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(Ce(),yn(h,{key:2,class:He(e.ns.e("prefix"))},{default:Dt(()=>[gt(v)]),_:1},8,["class"])):on("v-if",!0),on(" content "),gt(g),on(" postfix "),e.isLeaf?on("v-if",!0):(Ce(),Ie(Ur,{key:3},[e.node.loading?(Ce(),yn(h,{key:0,class:He([e.ns.is("loading"),e.ns.e("postfix")])},{default:Dt(()=>[gt(y)]),_:1},8,["class"])):(Ce(),yn(h,{key:1,class:He(["arrow-right",e.ns.e("postfix")])},{default:Dt(()=>[gt(w)]),_:1},8,["class"]))],64))],42,W2t)}var Y2t=vr(j2t,[["render",K2t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const q2t=Zt({name:"ElCascaderMenu",components:{Loading:N3,ElIcon:Zr,ElScrollbar:D3,ElCascaderNode:Y2t},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=va(),n=Vn("cascader-menu"),{t:r}=Ni(),i=IV();let l=null,u=null;const f=jr(hne),v=et(null),h=Ne(()=>!e.nodes.length),g=Ne(()=>!f.initialLoaded),y=Ne(()=>`cascader-menu-${i}-${e.index}`),w=B=>{l=B.target},C=B=>{if(!(!f.isHoverMenu||!l||!v.value))if(l.contains(B.target)){S();const F=t.vnode.el,{left:R}=F.getBoundingClientRect(),{offsetWidth:N,offsetHeight:A}=F,X=B.clientX-R,Z=l.offsetTop,z=Z+l.offsetHeight;v.value.innerHTML=` 57 <path style="pointer-events: auto;" fill="transparent" d="M${X} ${Z} L${N} 0 V${Z} Z" /> 58 <path style="pointer-events: auto;" fill="transparent" d="M${X} ${z} L${N} ${A} V${z} Z" /> 59 `}else u||(u=window.setTimeout(T,f.config.hoverThreshold))},S=()=>{!u||(clearTimeout(u),u=null)},T=()=>{!v.value||(v.value.innerHTML="",S())};return{ns:n,panel:f,hoverZone:v,isEmpty:h,isLoading:g,menuId:y,t:r,handleExpand:w,handleMouseMove:C,clearHoverZone:T}}});function X2t(e,t,n,r,i,l){const u=Kr("el-cascader-node"),f=Kr("loading"),v=Kr("el-icon"),h=Kr("el-scrollbar");return Ce(),yn(h,{key:e.menuId,tag:"ul",role:"menu",class:He(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Dt(()=>{var g;return[(Ce(!0),Ie(Ur,null,La(e.nodes,y=>(Ce(),yn(u,{key:y.uid,node:y,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(Ce(),Ie("div",{key:0,class:He(e.ns.e("empty-text"))},[gt(v,{size:"14",class:He(e.ns.is("loading"))},{default:Dt(()=>[gt(f)]),_:1},8,["class"]),lo(" "+Zn(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(Ce(),Ie("div",{key:1,class:He(e.ns.e("empty-text"))},Zn(e.t("el.cascader.noData")),3)):(g=e.panel)!=null&&g.isHoverMenu?(Ce(),Ie("svg",{key:2,ref:"hoverZone",class:He(e.ns.e("hover-zone"))},null,2)):on("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Z2t=vr(q2t,[["render",X2t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let Q2t=0;const J2t=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class n7{constructor(t,n,r,i=!1){this.data=t,this.config=n,this.parent=r,this.root=i,this.uid=Q2t++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:u,children:f}=n,v=t[f],h=J2t(this);this.level=i?0:r?r.level+1:1,this.value=t[l],this.label=t[u],this.pathNodes=h,this.pathValues=h.map(g=>g.value),this.pathLabels=h.map(g=>g.label),this.childrenData=v,this.children=(v||[]).map(g=>new n7(g,n,this)),this.loaded=!n.lazy||this.isLeaf||!Sm(v)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:i,checkStrictly:l}=r;return(Ji(i)?i(t,this):!!t[i])||!l&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:i}=this,{lazy:l,leaf:u}=n,f=Ji(u)?u(t,this):t[u];return Vd(f)?l&&!i?!1:!(Array.isArray(r)&&r.length):!!f}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,i=new n7(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(i),i}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${nb(t)}`;
59this.children.forEach(i=>{i&&(i.broadcast(t,...n),i[r]&&i[r](...n))})}emit(t,...n){const{parent:r}=this,i=`onChild${nb(t)}`;r&&(r[i]&&r[i](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(i=>!i.isDisabled),r=n.length?n.every(i=>i.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((i,l)=>{const u=l.checked?1:l.indeterminate?.5:0;return i+u},0);this.checked=this.loaded&&this.children.filter(i=>!i.isDisabled).every(i=>i.loaded&&i.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const FJ=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(FJ(r.children,t))),n),[]);class zle{constructor(t,n){this.config=n;const r=(t||[]).map(i=>new n7(i,this.config));this.nodes=r,this.allNodes=FJ(r,!1),this.leafNodes=FJ(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new n7(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(i=>p0(i.value,t)||p0(i.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:i})=>p0(t.value,r)&&t.level===i)||null}}const zpe=hr({modelValue:{type:gn([Number,String,Array])},options:{type:gn(Array),default:()=>[]},props:{type:gn(Object),default:()=>({})}}),eyt={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Ku,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},tyt=e=>Ne(()=>({...eyt,...e.props})),Hle=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},nyt=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Bve(e)&&e.click()},ryt=(e,t)=>{const n=t.slice(0),r=n.map(l=>l.uid),i=e.reduce((l,u)=>{const f=r.indexOf(u.uid);return f>-1&&(l.push(u),n.splice(f,1),r.splice(f,1)),l},[]);return i.push(...n),i},oyt=Zt({name:"ElCascaderPanel",components:{ElCascaderMenu:Z2t},props:{...zpe,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Ma,Ll,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const i=Vn("cascader"),l=tyt(e);let u=null;const f=et(!0),v=et([]),h=et(null),g=et([]),y=et(null),w=et([]),C=Ne(()=>l.value.expandTrigger==="hover"),S=Ne(()=>e.renderLabel||n.default),T=()=>{const{options:V}=e,K=l.value;r=!1,u=new zle(V,K),g.value=[u.getNodes()],K.lazy&&Sm(e.options)?(f.value=!1,B(void 0,fe=>{fe&&(u=new zle(fe,K),g.value=[u.getNodes()]),f.value=!0,Y(!1,!0)})):Y(!1,!0)},B=(V,K)=>{const fe=l.value;V=V||new n7({},fe,void 0,!0),V.loading=!0;const de=ne=>{const le=V,_e=le.root?null:le;ne&&(u==null||u.appendNodes(ne,_e)),le.loading=!1,le.loaded=!0,le.childrenData=le.childrenData||[],K&&K(ne)};fe.lazyLoad(V,de)},F=(V,K)=>{var fe;const{level:de}=V,ne=g.value.slice(0,de);let le;V.isLeaf?le=V.pathNodes[de-2]:(le=V,ne.push(V.children)),((fe=y.value)==null?void 0:fe.uid)!==(le==null?void 0:le.uid)&&(y.value=V,g.value=ne,!K&&t("expand-change",(V==null?void 0:V.pathValues)||[]))},R=(V,K,fe=!0)=>{const{checkStrictly:de,multiple:ne}=l.value,le=w.value[0];r=!0,!ne&&(le==null||le.doCheck(!1)),V.doCheck(K),z(),fe&&!ne&&!de&&t("close"),!fe&&!ne&&!de&&N(V)},N=V=>{!V||(V=V.parent,N(V),V&&F(V))},A=V=>u==null?void 0:u.getFlattedNodes(V),X=V=>{var K;return(K=A(V))==null?void 0:K.filter(fe=>fe.checked!==!1)},Z=()=>{w.value.forEach(V=>V.doCheck(!1)),z(),g.value=g.value.slice(0,1),y.value=null,t("expand-change",[])},z=()=>{var V;const{checkStrictly:K,multiple:fe}
59=l.value,de=w.value,ne=X(!K),le=ryt(de,ne),_e=le.map(M=>M.valueByOption);w.value=le,h.value=fe?_e:(V=_e[0])!=null?V:null},Y=(V=!1,K=!1)=>{const{modelValue:fe}=e,{lazy:de,multiple:ne,checkStrictly:le}=l.value,_e=!le;if(!(!f.value||r||!K&&p0(fe,h.value)))if(de&&!V){const P=Hse(NDe(g3(fe))).map(U=>u==null?void 0:u.getNodeByValue(U)).filter(U=>!!U&&!U.loaded&&!U.loading);P.length?P.forEach(U=>{B(U,()=>Y(!1,K))}):Y(!0,K)}else{const M=ne?g3(fe):[fe],P=Hse(M.map(U=>u==null?void 0:u.getNodeByValue(U,_e)));Q(P,K),h.value=xH(fe)}},Q=(V,K=!0)=>{const{checkStrictly:fe}=l.value,de=w.value,ne=V.filter(M=>!!M&&(fe||M.isLeaf)),le=u==null?void 0:u.getSameNode(y.value),_e=K&&le||ne[0];_e?_e.pathNodes.forEach(M=>F(M,!0)):y.value=null,de.forEach(M=>M.doCheck(!1)),ne.forEach(M=>M.doCheck(!0)),w.value=ne,Gr($)},$=()=>{!_i||v.value.forEach(V=>{const K=V==null?void 0:V.$el;if(K){const fe=K.querySelector(`.${i.namespace.value}-scrollbar__wrap`),de=K.querySelector(`.${i.b("node")}.${i.is("active")}`)||K.querySelector(`.${i.b("node")}.in-active-path`);khe(fe,de)}})},te=V=>{const K=V.target,{code:fe}=V;switch(fe){case ao.up:case ao.down:{V.preventDefault();const de=fe===ao.up?-1:1;Nz(Pve(K,de,`.${i.b("node")}[tabindex="-1"]`));break}case ao.left:{V.preventDefault();const de=v.value[Hle(K)-1],ne=de==null?void 0:de.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);Nz(ne);break}case ao.right:{V.preventDefault();const de=v.value[Hle(K)+1],ne=de==null?void 0:de.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);Nz(ne);break}case ao.enter:nyt(K);break}};return $a(hne,gi({config:l,expandingNode:y,checkedNodes:w,isHoverMenu:C,initialLoaded:f,renderLabelFn:S,lazyLoad:B,expandNode:F,handleCheckChange:R})),$n([l,()=>e.options],T,{deep:!0,immediate:!0}),$n(()=>e.modelValue,()=>{r=!1,Y()},{deep:!0}),$n(()=>h.value,V=>{p0(V,e.modelValue)||(t(Ma,V),t(Ll,V))}),e1e(()=>v.value=[]),ia(()=>!Sm(e.modelValue)&&Y()),{ns:i,menuList:v,menus:g,checkedNodes:w,handleKeyDown:te,handleCheckChange:R,getFlattedNodes:A,getCheckedNodes:X,clearCheckedNodes:Z,calculateCheckedValue:z,scrollToExpandingNode:$}}});function ayt(e,t,n,r,i,l){const u=Kr("el-cascader-menu");return Ce(),Ie("div",{class:He([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...f)=>e.handleKeyDown&&e.handleKeyDown(...f))},[(Ce(!0),Ie(Ur,null,La(e.menus,(f,v)=>(Ce(),yn(u,{key:v,ref_for:!0,ref:h=>e.menuList[v]=h,index:v,nodes:[...f]},null,8,["index","nodes"]))),128))],34)}var $z=vr(oyt,[["render",ayt],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);$z.install=e=>{e.component($z.name,$z)};const Hpe=$z,iyt=Hpe,pne=hr({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:gb,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),syt={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},lyt=Zt({name:"ElTag"}),uyt=Zt({...lyt,props:pne,emits:syt,setup(e,{emit:t}){const n=e,r=Kf(),i=Vn("tag"),l=Ne(()=>{const{type:v,hit:h,effect:g,closable:y,round:w}=n;return[i.b(),i.is("closable",y),i.m(v),i.m(r.value),i.m(g),i.is("hit",h),i.is("roun
59d",w)]}),u=v=>{t("close",v)},f=v=>{t("click",v)};return(v,h)=>v.disableTransitions?(Ce(),Ie("span",{key:0,class:He(L(l)),style:Pr({backgroundColor:v.color}),onClick:f},[ce("span",{class:He(L(i).e("content"))},[Fn(v.$slots,"default")],2),v.closable?(Ce(),yn(L(Zr),{key:0,class:He(L(i).e("close")),onClick:Do(u,["stop"])},{default:Dt(()=>[gt(L(Dm))]),_:1},8,["class","onClick"])):on("v-if",!0)],6)):(Ce(),yn(Ic,{key:1,name:`${L(i).namespace.value}-zoom-in-center`,appear:""},{default:Dt(()=>[ce("span",{class:He(L(l)),style:Pr({backgroundColor:v.color}),onClick:f},[ce("span",{class:He(L(i).e("content"))},[Fn(v.$slots,"default")],2),v.closable?(Ce(),yn(L(Zr),{key:0,class:He(L(i).e("close")),onClick:Do(u,["stop"])},{default:Dt(()=>[gt(L(Dm))]),_:1},8,["class","onClick"])):on("v-if",!0)],6)]),_:3},8,["name"]))}});var cyt=vr(uyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const NI=Ca(cyt),fyt=hr({...zpe,size:ev,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:gn(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:gn(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:h1.teleported,tagType:{...pne.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),dyt={[Ma]:e=>!!e||e===null,[Ll]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Wf(e),expandChange:e=>!!e,removeTag:e=>!!e},vyt={key:0},hyt=["placeholder","onKeydown"],pyt=["onClick"],myt="ElCascader",gyt=Zt({name:myt}),yyt=Zt({...gyt,props:fyt,emits:dyt,setup(e,{expose:t,emit:n}){const r=e,i={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:vt})=>{const{modifiersData:Tt,placement:Wt}=vt;["right","left","bottom","top"].includes(Wt)||(Tt.arrow.x=35)},requires:["arrow"]}]},l=RC();let u=0,f=0;const v=Vn("cascader"),h=Vn("input"),{t:g}=Ni(),{form:y,formItem:w}=xh(),C=et(null),S=et(null),T=et(null),B=et(null),F=et(null),R=et(!1),N=et(!1),A=et(!1),X=et(!1),Z=et(""),z=et(""),Y=et([]),Q=et([]),$=et([]),te=et(!1),V=Ne(()=>l.style),K=Ne(()=>r.disabled||(y==null?void 0:y.disabled)),fe=Ne(()=>r.placeholder||g("el.cascader.placeholder")),de=Ne(()=>z.value||Y.value.length>0||te.value?"":fe.value),ne=Kf(),le=Ne(()=>["small"].includes(ne.value)?"small":"default"),_e=Ne(()=>!!r.props.multiple),M=Ne(()=>!r.filterable||_e.value),P=Ne(()=>_e.value?z.value:Z.value),U=Ne(()=>{var vt;return((vt=B.value)==null?void 0:vt.checkedNodes)||[]}),j=Ne(()=>!r.clearable||K.value||A.value||!N.value?!1:!!U.value.length),ee=Ne(()=>{const{showAllLevels:vt,separator:Tt}=r,Wt=U.value;return Wt.length?_e.value?"":Wt[0].calcText(vt,Tt):""}),ye=Ne({get(){return xH(r.modelValue)},set(vt){n(Ma,vt),n(Ll,vt),r.validateEvent&&(w==null||w.validate("change").catch(Tt=>void 0))}}),ie=Ne(()=>[v.b(),v.m(ne.value),v.is("disabled",K.value),l.class]),he=Ne(()=>[h.e("icon"),"icon-arrow-down",v.is("reverse",R.value)]),re=Ne(()=>v.is("focus",R.value||X.value)),be=Ne(()=>{var vt,Tt;return(Tt=(vt=C.value)==null?void 0:vt.popperRef)==null?void 0:Tt.contentRef}),Ae=vt=>{var Tt,Wt,xt;K.value||(vt=vt!=null?vt:!R.value,vt!==R.value&&(R.value=vt,(Wt=(Tt=S.value)==null?void 0:Tt.input)==null||Wt.setAttribute("aria-expanded",`${vt}`),vt?(Te(),Gr((xt=B.value)==null?void 0:xt.scrollToExpandingNode)):r.filterable&&mt(),n("visibleChange",vt)))},Te=()=>{Gr(()=>{var vt;(vt=C.value)==null||vt.updatePopper()})},Ue=()=>{A.value=!1},Oe=vt=>{const{showAllLevels:Tt,separator:Wt}=r;return{node:vt,key:vt.uid,text:vt.calcText(Tt,Wt),hitState:!1,closable:!K.value&&!vt.isDisabled,isCollapseTag:!1}},De=vt=>{var Tt;const Wt=vt.node;Wt.doCheck(!1),(Tt=B.value)==null||Tt.calculateCheckedValue(),n("removeTag",Wt.valueByOption)},$e=()=>{if(!_e.value)return;const vt=U.value,Tt=[],Wt=[];if(vt.forEach(xt=>Wt.push(Oe(xt))),Q.value=Wt,vt.length){const[xt,...at]=vt,_t=at.length;
59Tt.push(Oe(xt)),_t&&(r.collapseTags?Tt.push({key:-1,text:`+ ${_t}`,closable:!1,isCollapseTag:!0}):at.forEach(en=>Tt.push(Oe(en))))}Y.value=Tt},rt=()=>{var vt,Tt;const{filterMethod:Wt,showAllLevels:xt,separator:at}=r,_t=(Tt=(vt=B.value)==null?void 0:vt.getFlattedNodes(!r.props.checkStrictly))==null?void 0:Tt.filter(en=>en.isDisabled?!1:(en.calcText(xt,at),Wt(en,P.value)));_e.value&&(Y.value.forEach(en=>{en.hitState=!1}),Q.value.forEach(en=>{en.hitState=!1})),A.value=!0,$.value=_t,Te()},ct=()=>{var vt;let Tt;A.value&&F.value?Tt=F.value.$el.querySelector(`.${v.e("suggestion-item")}`):Tt=(vt=B.value)==null?void 0:vt.$el.querySelector(`.${v.b("node")}[tabindex="-1"]`),Tt&&(Tt.focus(),!A.value&&Tt.click())},lt=()=>{var vt,Tt;const Wt=(vt=S.value)==null?void 0:vt.input,xt=T.value,at=(Tt=F.value)==null?void 0:Tt.$el;if(!(!_i||!Wt)){if(at){const _t=at.querySelector(`.${v.e("suggestion-list")}`);_t.style.minWidth=`${Wt.offsetWidth}px`}if(xt){const{offsetHeight:_t}=xt,en=Y.value.length>0?`${Math.max(_t+6,u)}px`:`${u}px`;Wt.style.height=en,Te()}}},ot=vt=>{var Tt;return(Tt=B.value)==null?void 0:Tt.getCheckedNodes(vt)},Fe=vt=>{Te(),n("expandChange",vt)},We=vt=>{var Tt;const Wt=(Tt=vt.target)==null?void 0:Tt.value;if(vt.type==="compositionend")te.value=!1,Gr(()=>At(Wt));else{const xt=Wt[Wt.length-1]||"";te.value=!NV(xt)}},Ye=vt=>{if(!te.value)switch(vt.code){case ao.enter:Ae();break;case ao.down:Ae(!0),Gr(ct),vt.preventDefault();break;case ao.esc:R.value===!0&&(vt.preventDefault(),vt.stopPropagation(),Ae(!1));break;case ao.tab:Ae(!1);break}},Ke=()=>{var vt;(vt=B.value)==null||vt.clearCheckedNodes(),!R.value&&r.filterable&&mt(),Ae(!1)},mt=()=>{const{value:vt}=ee;Z.value=vt,z.value=vt},Ct=vt=>{var Tt,Wt;const{checked:xt}=vt;_e.value?(Tt=B.value)==null||Tt.handleCheckChange(vt,!xt,!1):(!xt&&((Wt=B.value)==null||Wt.handleCheckChange(vt,!0,!1)),Ae(!1))},bt=vt=>{const Tt=vt.target,{code:Wt}=vt;switch(Wt){case ao.up:case ao.down:{const xt=Wt===ao.up?-1:1;Nz(Pve(Tt,xt,`.${v.e("suggestion-item")}[tabindex="-1"]`));break}case ao.enter:Tt.click();break}},tn=()=>{const vt=Y.value,Tt=vt[vt.length-1];f=z.value?0:f+1,!(!Tt||!f||r.collapseTags&&vt.length>1)&&(Tt.hitState?De(Tt):Tt.hitState=!0)}
59,Ft=vt=>{const Tt=vt.target,Wt=v.e("search-input");Tt.className===Wt&&(X.value=!0),n("focus",vt)},It=vt=>{X.value=!1,n("blur",vt)},Et=Lv(()=>{const{value:vt}=P;if(!vt)return;const Tt=r.beforeFilter(vt);sJ(Tt)?Tt.then(rt).catch(()=>{}):Tt!==!1?rt():Ue()},r.debounce),At=(vt,Tt)=>{!R.value&&Ae(!0),!(Tt!=null&&Tt.isComposing)&&(vt?Et():Ue())};return $n(A,Te),$n([U,K],$e),$n(Y,()=>{Gr(()=>lt())}),$n(ee,mt,{immediate:!0}),ia(()=>{const vt=S.value.input,Tt=Number.parseFloat(wAe(h.cssVarName("input-height"),vt).value)-2;u=vt.offsetHeight||Tt,Rv(vt,lt)}),t({getCheckedNodes:ot,cascaderPanelRef:B,togglePopperVisible:Ae,contentRef:be}),(vt,Tt)=>(Ce(),yn(L(Ch),{ref_key:"tooltipRef",ref:C,visible:R.value,teleported:vt.teleported,"popper-class":[L(v).e("dropdown"),vt.popperClass],"popper-options":i,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${L(v).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:Ue},{default:Dt(()=>[ea((Ce(),Ie("div",{class:He(L(ie)),style:Pr(L(V)),onClick:Tt[5]||(Tt[5]=()=>Ae(L(M)?void 0:!0)),onKeydown:Ye,onMouseenter:Tt[6]||(Tt[6]=Wt=>N.value=!0),onMouseleave:Tt[7]||(Tt[7]=Wt=>N.value=!1)},[gt(L(Ov),{ref_key:"input",ref:S,modelValue:Z.value,"onUpdate:modelValue":Tt[1]||(Tt[1]=Wt=>Z.value=Wt),placeholder:L(de),readonly:L(M),disabled:L(K),"validate-event":!1,size:L(ne),class:He(L(re)),tabindex:L(_e)&&vt.filterable&&!L(K)?-1:void 0,onCompositionstart:We,onCompositionupdate:We,onCompositionend:We,onFocus:Ft,onBlur:It,onInput:At},{suffix:Dt(()=>[L(j)?(Ce(),yn(L(Zr),{key:"clear",class:He([L(h).e("icon"),"icon-circle-close"]),onClick:Do(Ke,["stop"])},{default:Dt(()=>[gt(L(M3))]),_:1},8,["class","onClick"])):(Ce(),yn(L(Zr),{key:"arrow-down",class:He(L(he)),onClick:Tt[0]||(Tt[0]=Do(Wt=>Ae(),["stop"]))},{default:Dt(()=>[gt(L(O3))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),L(_e)?(Ce(),Ie("div",{key:0,ref_key:"tagWrapper",ref:T,class:He(L(v).e("tags"))},[(Ce(!0),Ie(Ur,null,La(Y.value,Wt=>(Ce(),yn(L(NI),{key:Wt.key,type:vt.tagType,size:L(le),hit:Wt.hitState,closable:Wt.closable,"disable-transitions":"",onClose:xt=>De(Wt)},{default:Dt(()=>[Wt.isCollapseTag===!1?(Ce(),Ie("span",vyt,Zn(Wt.text),1)):(Ce(),yn(L(Ch),{key:1,disabled:R.value||!vt.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Dt(()=>
59[ce("span",null,Zn(Wt.text),1)]),content:Dt(()=>[ce("div",{class:He(L(v).e("collapse-tags"))},[(Ce(!0),Ie(Ur,null,La(Q.value.slice(1),(xt,at)=>(Ce(),Ie("div",{key:at,class:He(L(v).e("collapse-tag"))},[(Ce(),yn(L(NI),{key:xt.key,class:"in-tooltip",type:vt.tagType,size:L(le),hit:xt.hitState,closable:xt.closable,"disable-transitions":"",onClose:_t=>De(xt)},{default:Dt(()=>[ce("span",null,Zn(xt.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),vt.filterable&&!L(K)?ea((Ce(),Ie("input",{key:0,"onUpdate:modelValue":Tt[2]||(Tt[2]=Wt=>z.value=Wt),type:"text",class:He(L(v).e("search-input")),placeholder:L(ee)?"":L(fe),onInput:Tt[3]||(Tt[3]=Wt=>At(z.value,Wt)),onClick:Tt[4]||(Tt[4]=Do(Wt=>Ae(!0),["stop"])),onKeydown:mi(tn,["delete"]),onCompositionstart:We,onCompositionupdate:We,onCompositionend:We,onFocus:Ft,onBlur:It},null,42,hyt)),[[UA,z.value]]):on("v-if",!0)],2)):on("v-if",!0)],38)),[[L(W8),()=>Ae(!1),L(be)]])]),content:Dt(()=>[ea(gt(L(Hpe),{ref_key:"cascaderPanelRef",ref:B,modelValue:L(ye),"onUpdate:modelValue":Tt[8]||(Tt[8]=Wt=>El(ye)?ye.value=Wt:null),options:vt.options,props:r.props,border:!1,"render-label":vt.$slots.default,onExpandChange:Fe,onClose:Tt[9]||(Tt[9]=Wt=>vt.$nextTick(()=>Ae(!1)))},null,8,["modelValue","options","props","render-label"]),[[Ti,!A.value]]),vt.filterable?ea((Ce(),yn(L(D3),{key:0,ref_key:"suggestionPanel",ref:F,tag:"ul",class:He(L(v).e("suggestion-panel")),"view-class":L(v).e("suggestion-list"),onKeydown:bt},{default:Dt(()=>[$.value.length?(Ce(!0),Ie(Ur,{key:0},La($.value,Wt=>(Ce(),Ie("li",{key:Wt.uid,class:He([L(v).e("suggestion-item"),L(v).is("checked",Wt.checked)]),tabindex:-1,onClick:xt=>Ct(Wt)},[ce("span",null,Zn(Wt.text),1),Wt.checked?(Ce(),yn(L(Zr),{key:0},{default:Dt(()=>[gt(L(p7))]),_:1})):on("v-if",!0)],10,pyt))),128)):Fn(vt.$slots,"empty",{key:1},()=>[ce("li",{class:He(L(v).e("empty-text"))},Zn(L(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Ti,A.value]]):on("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var zz=vr(yyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);zz.install=e=>{e.component(zz.name,zz)};const byt=zz,_yt=byt,wyt=hr({checked:{type:Boolean,default:!1}}),Cyt={"update:checked":e=>Wf(e),[Ll]:e=>Wf(e)},xyt=Zt({name:"ElCheckTag"}),Eyt=Zt({...xyt,props:wyt,emits:Cyt,setup(e,{emit:t}){const n=e,r=Vn("check-tag"),i=Ne(()=>[r.b(),r.is("checked",n.checked)]),l=()=>{const u=!n.checked;t(Ll,u),t("update:checked",u)};return(u,f)=>(Ce(),Ie("span",{class:He(L(i)),onClick:l},[Fn(u.$slots,"default")],2))}});var Syt=vr(Eyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const Tyt=Ca(Syt),Vpe=Symbol("rowContextKey"),Ayt=["start","center","end","space-around","space-between","space-evenly"],kyt=["top","middle","bottom"],Oyt=hr({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Ayt,default:"start"},align:{type:String,values:kyt,default:"top"}}),Myt=Zt({name:"ElRow"}),Nyt=Zt({...Myt,props:Oyt,setup(e){const t=e,n=Vn("row"),r=Ne(()=>t.gutter);$a(Vpe,{gutter:r});const i=Ne(()=>{const u={};return t.gutter&&(u.marginRight=u.marginLeft=`-${t.gutter/2}px`),u}),l=Ne(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(u,f)=>(Ce(),yn(Fa(u.tag),{class:He(L(l)),style:Pr(L(i))},{default:Dt(()=>[Fn(u.$slots,"default")]),_:3},8,["class","style"]))}});var Dyt=vr(Nyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Iyt=Ca(Dyt),Ryt=hr({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:gn([Number,Object]),default:()=>uu({})},sm:{type:gn([Number,Object]),default:()=>uu({})},md:{type:gn([Number,Object]),default:()=>uu({})},lg:{type:gn([Number,Object]),default:()=>uu({})},xl:{type:gn([Number,Object]),default:()=>uu({})}}),Lyt=Zt({name:"ElCol"}),Byt=Zt({...Lyt,props:Ryt,setup(e){const t=e,{gutter:n}
59=jr(Vpe,{gutter:Ne(()=>0)}),r=Vn("col"),i=Ne(()=>{const u={};return n.value&&(u.paddingLeft=u.paddingRight=`${n.value/2}px`),u}),l=Ne(()=>{const u=[];return["span","offset","pull","push"].forEach(h=>{const g=t[h];$o(g)&&(h==="span"?u.push(r.b(`${t[h]}`)):g>0&&u.push(r.b(`${h}-${t[h]}`)))}),["xs","sm","md","lg","xl"].forEach(h=>{$o(t[h])?u.push(r.b(`${h}-${t[h]}`)):Qs(t[h])&&Object.entries(t[h]).forEach(([g,y])=>{u.push(g!=="span"?r.b(`${h}-${g}-${y}`):r.b(`${h}-${y}`))})}),n.value&&u.push(r.is("guttered")),[r.b(),u]});return(u,f)=>(Ce(),yn(Fa(u.tag),{class:He(L(l)),style:Pr(L(i))},{default:Dt(()=>[Fn(u.$slots,"default")]),_:3},8,["class","style"]))}});var Pyt=vr(Byt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Fyt=Ca(Pyt),Vle=e=>typeof $o(e),$yt=hr({accordion:Boolean,modelValue:{type:gn([Array,String,Number]),default:()=>uu([])}}),zyt={[Ma]:Vle,[Ll]:Vle},Upe=Symbol("collapseContextKey"),Hyt=(e,t)=>{const n=et(qA(e.modelValue)),r=l=>{n.value=l;const u=e.accordion?n.value[0]:n.value;t(Ma,u),t(Ll,u)},i=l=>{if(e.accordion)r([n.value[0]===l?"":l]);else{const u=[...n.value],f=u.indexOf(l);f>-1?u.splice(f,1):u.push(l),r(u)}};return $n(()=>e.modelValue,()=>n.value=qA(e.modelValue),{deep:!0}),$a(Upe,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},Vyt=()=>{const e=Vn("collapse");return{rootKls:Ne(()=>e.b())}},Uyt=Zt({name:"ElCollapse"}),jyt=Zt({...Uyt,props:$yt,emits:zyt,setup(e,{expose:t,emit:n}){const r=e,{activeNames:i,setActiveNames:l}=Hyt(r,n),{rootKls:u}=Vyt();return t({activeNames:i,setActiveNames:l}),(f,v)=>(Ce(),Ie("div",{class:He(L(u)),role:"tablist","aria-multiselectable":"true"},[Fn(f.$slots,"default")],2))}});var Wyt=vr(jyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const Gyt=Zt({name:"ElCollapseTransition"}),Kyt=Zt({...Gyt,setup(e){const t=Vn("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(Ce(),yn(Ic,Pa({name:L(t).b()},J9e(n)),{default:Dt(()=>[Fn(r.$slots,"default")]),_:3},16,["name"]))}});var Hz=vr(Kyt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Hz.install=e=>{e.component(Hz.name,Hz)};const VV=Hz,Yyt=VV,qyt=hr({title:{type:String,default:""},name:{type:gn([String,Number]),default:()=>IV()},disabled:Boolean}),Xyt=e=>{const t=jr(Upe),n=et(!1),r=et(!1),i=et(IV()),l=Ne(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:i,isActive:l,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},Zyt=(e,{focusing:t,isActive:n,id:r})=>{const i=Vn("collapse"),l=Ne(()=>[i.b("item"),i.is("active",L(n)),i.is("disabled",e.disabled)]),u=Ne(()=>[i.be("item","header"),i.is("active",L(n)),{focusing:L(t)&&!e.disabled}]),f=Ne(()=>[i.be("item","arrow"),i.is("active",L(n))]),v=Ne(()=>
59i.be("item","wrap")),h=Ne(()=>i.be("item","content")),g=Ne(()=>i.b(`content-${L(r)}`)),y=Ne(()=>i.b(`head-${L(r)}`));return{arrowKls:f,headKls:u,rootKls:l,itemWrapperKls:v,itemContentKls:h,scopedContentId:g,scopedHeadId:y}},Qyt=["aria-expanded","aria-controls","aria-describedby"],Jyt=["id","tabindex"],ebt=["id","aria-hidden","aria-labelledby"],tbt=Zt({name:"ElCollapseItem"}),nbt=Zt({...tbt,props:qyt,setup(e,{expose:t}){const n=e,{focusing:r,id:i,isActive:l,handleFocus:u,handleHeaderClick:f,handleEnterClick:v}=Xyt(n),{arrowKls:h,headKls:g,rootKls:y,itemWrapperKls:w,itemContentKls:C,scopedContentId:S,scopedHeadId:T}=Zyt(n,{focusing:r,isActive:l,id:i});return t({isActive:l}),(B,F)=>(Ce(),Ie("div",{class:He(L(y))},[ce("div",{role:"tab","aria-expanded":L(l),"aria-controls":L(S),"aria-describedby":L(S)},[ce("div",{id:L(T),class:He(L(g)),role:"button",tabindex:B.disabled?-1:0,onClick:F[0]||(F[0]=(...R)=>L(f)&&L(f)(...R)),onKeypress:F[1]||(F[1]=mi(Do((...R)=>L(v)&&L(v)(...R),["stop","prevent"]),["space","enter"])),onFocus:F[2]||(F[2]=(...R)=>L(u)&&L(u)(...R)),onBlur:F[3]||(F[3]=R=>r.value=!1)},[Fn(B.$slots,"title",{},()=>[lo(Zn(B.title),1)]),gt(L(Zr),{class:He(L(h))},{default:Dt(()=>[gt(L(Nv))]),_:1},8,["class"])],42,Jyt)],8,Qyt),gt(L(VV),null,{default:Dt(()=>[ea(ce("div",{id:L(S),class:He(L(w)),role:"tabpanel","aria-hidden":!L(l),"aria-labelledby":L(T)},[ce("div",{class:He(L(C))},[Fn(B.$slots,"default")],2)],10,ebt),[[Ti,L(l)]])]),_:3})],2))}});var jpe=vr(nbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const rbt=Ca(Wyt,{CollapseItem:jpe}),obt=qu(jpe),abt=hr({color:{type:gn(Object),required:!0},vertical:{type:Boolean,default:!1}});let kZ=!1;function DI(e,t){if(!_i)return;const n=function(l){var u;(u=t.drag)==null||u.call(t,l)},r=function(l){var u;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,kZ=!1,(u=t.end)==null||u.call(t,l)},i=function(l){var u;kZ||(l.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),kZ=!0,(u=t.start)==null||u.call(t,l))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const ibt=e=>{const t=va(),n=al(),r=al();function i(u){u.target!==n.value&&l(u)}function l(u){if(!r.value||!n.value)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:h,clientY:g}=yte(u);if(e.vertical){let y=g-v.top;y=Math.max(n.value.offsetHeight/2,y),y=Math.min(y,v.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((y-n.value.offsetHeight/2)/(v.height-n.value.offsetHeight)*100))}else{let y=h-v.left;y=Math.max(n.value.offsetWidth/2,y),y=Math.min(y,v.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((y-n.value.offsetWidth/2)/(v.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:l,handleClick:i}},sbt=(e,{bar:t,thumb:n,handleDrag:r})=>{const i=va(),l=Vn("color-alpha-slider"),u=et(0),f=et(0),v=et();function h(){if(!n.value||e.vertical)return 0;const R=i.vnode.el,N=e.color.get("alpha");return R?Math.round(N*(R.offsetWidth-n.value.offsetWidth/2)/100):0}function g(){if(!n.value)return 0;const R=i.vnode.el;if(!e.vertical)return 0;const N=e.color.get("alpha");return R?Math.round(N*(R.offsetHeight-n.value.offsetHeight/2)/100):0}function y(){if(e.color&&e.color.value){const{r:R,g:N,b:A}=e.color.toRgb();return`linear-gradient(to right, rgba(${R}, ${N}, ${A}, 0) 0%, rgba(${R}, ${N}, ${A}, 1) 100%)`}return""}function w(){u.value=h(),f.value=g(),v.value=y()}ia(()=>{if(!t.value||!n.value)return;const R={drag:N=>{r(N)},end:N=>{r(N)}};DI(t.value,R),DI(n.value,R),w()}),$n(()=>e.color.get("alpha"),()=>w()),$n(()=>e.color.value,()=>w());const C=Ne(()=>[l.b(),l.is("vertical",e.vertical)]),S=Ne(()=>l.e("bar")),T=Ne(()=>l.e("thumb")),B=Ne(()=>({background:v.value})),F=Ne(()=>({left:Nc(u.value),top:Nc(f.value)}));return{rootKls:C,barKls:S,barStyle:B,thumbKls:T,thumbStyle:F,update:w}},lbt="ElColorAlphaSlider",ubt=Zt({name:lbt}),cbt=Zt({...ubt,props:abt,setup(e,{expose:t}){const n=e,{bar:r,thumb:i,handleDrag:l,handleClick:u}=ibt(n),{rootKls:f,barKls:v,barStyle:h,thumbKls:g,thumbStyle:y,update:w}=sbt(n,{bar:r,thumb:i,handleDrag:l});return t({update:w,bar:r,thumb:i}),(C,S)=>(Ce(),Ie("div",{class:He(L(f))},[ce("div",{ref_key:"bar",ref:r,class:He(L(v)),style:Pr(L(h)),onClick:S[0]||(S[0]=(...T)=>L(u)&&L(u)(...T))},null,6),ce("div",{ref_key:"thumb",ref:i,class:He(L(g)),style:Pr(L(y))},null,6)],2))}});var fbt=vr(cbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/
59alpha-slider.vue"]]);const dbt=Zt({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Vn("color-hue-slider"),n=va(),r=et(),i=et(),l=et(0),u=et(0),f=Ne(()=>e.color.get("hue"));$n(()=>f.value,()=>{w()});function v(C){C.target!==r.value&&h(C)}function h(C){if(!i.value||!r.value)return;const T=n.vnode.el.getBoundingClientRect(),{clientX:B,clientY:F}=yte(C);let R;if(e.vertical){let N=F-T.top;N=Math.min(N,T.height-r.value.offsetHeight/2),N=Math.max(r.value.offsetHeight/2,N),R=Math.round((N-r.value.offsetHeight/2)/(T.height-r.value.offsetHeight)*360)}else{let N=B-T.left;N=Math.min(N,T.width-r.value.offsetWidth/2),N=Math.max(r.value.offsetWidth/2,N),R=Math.round((N-r.value.offsetWidth/2)/(T.width-r.value.offsetWidth)*360)}e.color.set("hue",R)}function g(){if(!r.value)return 0;const C=n.vnode.el;if(e.vertical)return 0;const S=e.color.get("hue");return C?Math.round(S*(C.offsetWidth-r.value.offsetWidth/2)/360):0}function y(){if(!r.value)return 0;const C=n.vnode.el;if(!e.vertical)return 0;const S=e.color.get("hue");return C?Math.round(S*(C.offsetHeight-r.value.offsetHeight/2)/360):0}function w(){l.value=g(),u.value=y()}return ia(()=>{if(!i.value||!r.value)return;const C={drag:S=>{h(S)},end:S=>{h(S)}};DI(i.value,C),DI(r.value,C),w()}),{bar:i,thumb:r,thumbLeft:l,thumbTop:u,hueValue:f,handleClick:v,update:w,ns:t}}});function vbt(e,t,n,r,i,l){return Ce(),Ie("div",{class:He([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ce("div",{ref:"bar",class:He(e.ns.e("bar")),onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},null,2),ce("div",{ref:"thumb",class:He(e.ns.e("thumb")),style:Pr({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var hbt=vr(dbt,[["render",vbt],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const pbt=hr({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ev,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:gn(Array)},validateEvent:{type:Boolean,default:!0}}),mbt={[Ma]:e=>Ga(e)||jf(e),[Ll]:e=>Ga(e)||jf(e),activeChange:e=>Ga(e)||jf(e)},Wpe=Symbol("colorPickerContextKey"),Ule=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},gbt=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},ybt=function(e){return typeof e=="string"&&e.includes("%")},DA=function(e,t){gbt(e)&&(e="100%");const n=ybt(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},jle={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Vz=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${jle[t]||t}${jle[n]||n}`},Wle=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Vz(e)}${Vz(t)}${Vz(n)}`},OZ={A:10,B:11,C:12,D:13,E:14,F:15},j9=function(e){return e.length===2?(OZ[e[0].toUpperCase()]||+e[0])*16+(OZ[e[1].toUpperCase()]||+e[1]):OZ[e[1].toUpperCase()]||+e[1]},bbt=function(e,t,n){t=t/100,n=n/100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const l=(n+t)/2,u=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:u*100,v:l*100}},Gle=(e,t,n)=>{e=DA(e,255),t=DA(t,255),n=DA(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let l;const u=r,f=r-i,v=r===0?0:f/r;if(r===i)l=0;else{switch(r){case e:{l=(t-n)/f+(t<n?6:0);break}case t:{l=(n-e)/f+2;break}case n:{l=(e-t)/f+4;break}}l/=6}return{h:l*360,s:v*100,v:u*100}},bD=function(e,t,n){e=DA(e,360)*6,t=DA(t,100),n=DA(n,100);const r=Math.floor(e),i=e-r,l=n*(1-t),u=n*(1-i*t),f=n*(1-(1-i)*t),v=r%6,h=[n,u,l,l,f,n][v],g=[f,n,n,u,l,l][v],y=[l,l,f,n,n,u][v];return{r:Math.round(h*255),g:Math.round(g*255),b:Math.round(y*255)}};class ZD{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)J1(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)J1(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}
59get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return bD(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,l)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,l)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:u}=bbt(r[0],r[1],r[2]);n(i,l,u)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:u}=Gle(r[0],r[1],r[2]);n(i,l,u)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,l,u;r.length===3?(i=j9(r[0]+r[0]),l=j9(r[1]+r[1]),u=j9(r[2]+r[2])):(r.length===6||r.length===8)&&(i=j9(r.slice(0,2)),l=j9(r.slice(2,4)),u=j9(r.slice(4,6))),r.length===8?this._alpha=j9(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:f,s:v,v:h}=Gle(i,l,u);n(f,v,h)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:l}=this;if(this.enableAlpha)switch(l){case"hsl":{const u=Ule(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(u[1]*100)}%, ${Math.round(u[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Wle(bD(t,n,r))}${Vz(i*255/100)}`;break}default:{const{r:u,g:f,b:v}=bD(t,n,r);this.value=`rgba(${u}, ${f}, ${v}, ${this.get("alpha")/100})`}}else switch(l){case"hsl":{const u=Ule(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(u[1]*100)}%, ${Math.round(u[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:u,g:f,b:v}=bD(t,n,r);this.value=`rgb(${u}, ${f}, ${v})`;break}default:this.value=Wle(bD(t,n,r))}}}const _bt=Zt({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Vn("color-predefine"),{currentColor:n}=jr(Wpe),r=et(l(e.colors,e.color));$n(()=>n.value,u=>{const f=new ZD;f.fromString(u),r.value.forEach(v=>{v.selected=f.compare(v)})}),h0(()=>{r.value=l(e.colors,e.color)});function i(u){e.color.fromString(e.colors[u])}function l(u,f){return u.map(v=>{const h=new ZD;
59return h.enableAlpha=!0,h.format="rgba",h.fromString(v),h.selected=h.value===f.value,h})}return{rgbaColors:r,handleSelect:i,ns:t}}}),wbt=["onClick"];function Cbt(e,t,n,r,i,l){return Ce(),Ie("div",{class:He(e.ns.b())},[ce("div",{class:He(e.ns.e("colors"))},[(Ce(!0),Ie(Ur,null,La(e.rgbaColors,(u,f)=>(Ce(),Ie("div",{key:e.colors[f],class:He([e.ns.e("color-selector"),e.ns.is("alpha",u._alpha<100),{selected:u.selected}]),onClick:v=>e.handleSelect(f)},[ce("div",{style:Pr({backgroundColor:u.value})},null,4)],10,wbt))),128))],2)],2)}var xbt=vr(_bt,[["render",Cbt],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Ebt=Zt({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Vn("color-svpanel"),n=va(),r=et(0),i=et(0),l=et("hsl(0, 100%, 50%)"),u=Ne(()=>{const h=e.color.get("hue"),g=e.color.get("value");return{hue:h,value:g}});function f(){const h=e.color.get("saturation"),g=e.color.get("value"),y=n.vnode.el,{clientWidth:w,clientHeight:C}=y;i.value=h*w/100,r.value=(100-g)*C/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function v(h){const y=n.vnode.el.getBoundingClientRect(),{clientX:w,clientY:C}=yte(h);let S=w-y.left,T=C-y.top;S=Math.max(0,S),S=Math.min(S,y.width),T=Math.max(0,T),T=Math.min(T,y.height),i.value=S,r.value=T,e.color.set({saturation:S/y.width*100,value:100-T/y.height*100})}return $n(()=>u.value,()=>{f()}),ia(()=>{DI(n.vnode.el,{drag:h=>{v(h)},end:h=>{v(h)}}),f()}),{cursorTop:r,cursorLeft:i,background:l,colorValue:u,handleDrag:v,update:f,ns:t}}}),Sbt=ce("div",null,null,-1),Tbt=[Sbt];function Abt(e,t,n,r,i,l){return Ce(),Ie("div",{class:He(e.ns.b()),style:Pr({backgroundColor:e.background})},[ce("div",{class:He(e.ns.e("white"))},null,2),ce("div",{class:He(e.ns.e("black"))},null,2),ce("div",{class:He(e.ns.e("cursor")),style:Pr({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Tbt,6)],6)}var kbt=vr(Ebt,[["render",Abt],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Obt=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Mbt=Zt({name:"ElColorPicker"}),Nbt=Zt({...Mbt,props:pbt,emits:mbt,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Ni(),l=Vn("color"),{formItem:u}=xh(),f=Kf(),v=w0(),{inputId:h,isLabeledByFormItem:g}=q8(r,{formItemContext:u}),y=et(),w=et(),C=et(),S=et();let T=!0;const B=gi(new ZD({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),F=et(!1),R=et(!1),N=et(""),A=Ne(()=>!r.modelValue&&!R.value?"transparent":Q(B,r.showAlpha)),X=Ne(()=>!r.modelValue&&!R.value?"":B.value),Z=Ne(()=>g.value?void 0:r.label||i("el.colorpicker.defaultLabel")),z=Ne(()=>g.value?u==null?void 0:u.labelId:void 0),Y=Ne(()=>[l.b("picker"),l.is("disabled",v.value),l.bm("picker",f.value)]);function Q(M,P){if(!(M instanceof ZD))throw new TypeError("color should be instance of _color Class");const{r:U,g:j,b:ee}=M.toRgb();return P?`rgba(${U}, ${j}, ${ee}, ${M.get("alpha")/100})`:`rgb(${U}, ${j}, ${ee})`}function $(M){F.value=M}const te=Lv($,100);function V(){v.value||$(!0)}function K(){te(!1),fe()}function fe(){Gr(()=>{r.modelValue?B.fromString(r.modelValue):(B.value="",Gr(()=>{R.value=!1}))})}function de(){v.value||te(!F.value)}function ne(){B.fromString(N.value)}function le(){const M=B.value;n(Ma,M),n("change",M),r.validateEvent&&(u==null||u.validate("change").catch(P=>void 0)),te(!1),Gr(()=>{const P=new ZD({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});B.compare(P)||fe()})}function _e(){te(!1),n(Ma,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(u==null||u.validate("change").catch(M=>void 0)),fe()}return ia(()=>{r.modelValue&&(N.value=X.value)}),$n(()=>r.modelValue,M=>{M?M&&M!==B.value&&(T=!1,B.fromString(M)):R.value=!1}),$n(()=>X.value,M=>{N.value=M,T&&n("activeChange",M),T=!0}),$n(()=>B.value,()=>{!r.modelValue&&!R.value&&(R.value=!0)}),$n(()=>F.value,()=>{Gr(()=>{var M,P,U;(M=y.value)==null||M.update(),(P=w.value)==null||P.update(),(U=C.value)==null||U.update()})}),$a(Wpe,{currentColor:X}),t({color:B,show:V,hide:K}),(M,P)=>(Ce(),yn(L(Ch),{ref_key:"popper",ref:S,visible:F.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[L(l).be("picker","panel"),L(l).b("dropdown"),M.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${L(l).namespace.value}-zoom-in-top`,persistent:""},{content:Dt(()=>[ea((Ce(),Ie("div",null,[ce("div",{class:He(L(l).be("dropdown","main-wrapper"))},[gt(hbt,{ref_key:"hue",ref:y,class:"hue-slider",color:L(B),vertical:""},null,8,["color"]),gt(kbt,{ref_key:"sv",ref:w,color:L(B)},null,8,["color"])],2),M.showAlpha?(Ce(),yn(fbt,{key:0,ref_key:"alpha",ref:C,color:L(B)},null,8,["color"])):on("v-if",!0),M.predefine?(Ce(),yn(xbt,{key:1,ref:"predefine",color:L(B),colors:M.predefine},null,8,["color","colors"])):on("v-if",!0),ce("div",{class:He(L(l).be("dropdown","btns"))},[ce("span",{class:He(L(l).be("dropdown","value"))},[gt(L(Ov),{modelValue:N.value,"onUpdate:modelValue":P[0]||(P[0]=U=>N.value=U),"validate-event":!1,size:"small",onKeyup:mi(ne,["enter"]),onBlur:ne},null,8,["modelValue","onKeyup"])],2),gt(L(Z1),{class:He(L(l).be("dropdown","link-btn")),text:"",size:"small",onClick:_e},{default:Dt(()=>[lo(Zn(L(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),gt(L(Z1),{plain:"",size:"small",class:He(L(l).be("dropdown","btn")),onClick:le},{default:Dt(()=>[lo(Zn(L(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[L(W8),K]])]),default:Dt(()=>
59[ce("div",{id:L(h),class:He(L(Y)),role:"button","aria-label":L(Z),"aria-labelledby":L(z),"aria-description":L(i)("el.colorpicker.description",{color:M.modelValue||""}),tabindex:M.tabindex,onKeydown:mi(de,["enter"])},[L(v)?(Ce(),Ie("div",{key:0,class:He(L(l).be("picker","mask"))},null,2)):on("v-if",!0),ce("div",{class:He(L(l).be("picker","trigger")),onClick:de},[ce("span",{class:He([L(l).be("picker","color"),L(l).is("alpha",M.showAlpha)])},[ce("span",{class:He(L(l).be("picker","color-inner")),style:Pr({backgroundColor:L(A)})},[ea(gt(L(Zr),{class:He([L(l).be("picker","icon"),L(l).is("icon-arrow-down")])},{default:Dt(()=>[gt(L(O3))]),_:1},8,["class"]),[[Ti,M.modelValue||R.value]]),!M.modelValue&&!R.value?(Ce(),yn(L(Zr),{key:0,class:He([L(l).be("picker","empty"),L(l).is("icon-close")])},{default:Dt(()=>[gt(L(Dm))]),_:1},8,["class"])):on("v-if",!0)],6)],2)],2)],42,Obt)]),_:1},8,["visible","popper-class","transition"]))}});var Dbt=vr(Nbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Ibt=Ca(Dbt),Rbt=Zt({name:"ElContainer"}),Lbt=Zt({...Rbt,props:{direction:{type:String}},setup(e){const t=e,n=g1(),r=Vn("container"),i=Ne(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(u=>{const f=u.type.name;return f==="ElHeader"||f==="ElFooter"}):!1);return(l,u)=>(Ce(),Ie("section",{class:He([L(r).b(),L(r).is("vertical",L(i))])},[Fn(l.$slots,"default")],2))}});var Bbt=vr(Lbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Pbt=Zt({name:"ElAside"}),Fbt=Zt({...Pbt,props:{width:{type:String,default:null}},setup(e){const t=e,n=Vn("aside"),r=Ne(()=>t.width?n.cssVarBlock({width:t.width}):{});return(i,l)=>(Ce(),Ie("aside",{class:He(L(n).b()),style:Pr(L(r))},[Fn(i.$slots,"default")],6))}});var Gpe=vr(Fbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const $bt=Zt({name:"ElFooter"}),zbt=Zt({...$bt,props:{height:{type:String,default:null}},setup(e){const t=e,n=Vn("footer"),r=Ne(()=>t.height?n.cssVarBlock({height:t.height}):{});return(i,l)=>(Ce(),Ie("footer",{class:He(L(n).b()),style:Pr(L(r))},[Fn(i.$slots,"default")],6))}});var Kpe=vr(zbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Hbt=Zt({name:"ElHeader"}),Vbt=Zt({...Hbt,props:{height:{type:String,default:null}},setup(e){const t=e,n=Vn("header"),r=Ne(()=>t.height?n.cssVarBlock({height:t.height}):{});return(i,l)=>(Ce(),Ie("header",{class:He(L(n).b()),style:Pr(L(r))},[Fn(i.$slots,"default")],6))}});var Ype=vr(Vbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Ubt=Zt({name:"ElMain"}),jbt=Zt({...Ubt,setup(e){const t=Vn("main");return(n,r)=>(Ce(),Ie("main",{class:He(L(t).b())},[Fn(n.$slots,"default")],2))}});var qpe=vr(jbt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Wbt=Ca(Bbt,{Aside:Gpe,Footer:Kpe,Header:Ype,Main:qpe}),Gbt=qu(Gpe),Kbt=qu(Kpe),Ybt=qu(Ype),qbt=qu(qpe);var Xpe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){var i=r.prototype,l=i.format;i.format=function(u){var f=this,v=this.$locale();if(!this.isValid())return l.bind(this)(u);var h=this.$utils(),g=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return v.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return v.ordinal(f.week(),"W");case"w":case"ww":return h.s(f.week(),y==="w"?1:2,"0");case"W":case"WW":return h.s(f.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return h.s(String(f.$H===0?24:f.$H),y==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return y}});return l.bind(this)(g)}}})})(Xpe);var Xbt=Xpe.exports,Zpe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n="week",r="year";return function(i,l,u){var f=l.prototype;f.week=function(v){if(v===void 0&&(v=null),v!==null)return this.add(7*(v-this.week()),"day");var h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=u(this).startOf(r).add(1,r).date(h),y=u(this).endOf(n);if(g.isBefore(y))return 1}var w=u(this).startOf(r).date(h).startOf(n).subtract(1,"millisecond"),C=this.diff(w,n,!0);return C<0?u(this).startOf("week").week():Math.ceil(C)},f.weeks=function(v){return v===void 0&&(v=null),this.week(v)}}})})(Zpe);
59var Zbt=Zpe.exports,Qpe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),l=this.week(),u=this.year();return l===1&&i===11?u+1:i===0&&l>=52?u-1:u}}})})(Qpe);var Qbt=Qpe.exports,Jpe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r,i){r.prototype.dayOfYear=function(l){var u=Math.round((i(this).startOf("day")-i(this).startOf("year"))/864e5)+1;return l==null?u:this.add(l-u,"day")}}})})(Jpe);var Jbt=Jpe.exports,eme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.isSameOrAfter=function(i,l){return this.isSame(i,l)||this.isAfter(i,l)}}})})(eme);var e4t=eme.exports,tme={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){return function(n,r){r.prototype.isSameOrBefore=function(i,l){return this.isSame(i,l)||this.isBefore(i,l)}}})})(tme);var t4t=tme.exports;const mne=Symbol(),n4t=hr({...vne,type:{type:gn(String),default:"date"}}),r4t=["date","dates","year","month","week","range"],gne=hr({disabledDate:{type:gn(Function)},date:{type:gn(Object),required:!0},minDate:{type:gn(Object)},maxDate:{type:gn(Object)},parsedValue:{type:gn([Object,Array])},rangeState:{type:gn(Object),default:()=>({endDate:null,selecting:!1})}}),nme=hr({type:{type:gn(String),required:!0,values:Gdt}}),rme=hr({unlinkPanels:Boolean,parsedValue:{type:gn(Array)}}),ome=e=>({type:String,values:r4t,default:e}),o4t=hr({...nme,parsedValue:{type:gn([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),a4t=hr({...gne,cellClassName:{type:gn(Function)},showWeekNumber:Boolean,selectionMode:ome("date")}),$J=e=>{if(!Oa(e))return!1;const[t,n]=e;return wa.isDayjs(t)&&wa.isDayjs(n)&&t.isSameOrBefore(n)},ame=(e,{lang:t,unit:n,unlinkPanels:r})=>{let i;if(Oa(e)){let[l,u]=e.map(f=>wa(f).locale(t));return r||(u=l.add(1,n)),[l,u]}else e?i=wa(e):i=wa();return i=i.locale(t),[i,i.add(1,n)]},i4t=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:i,now:l,unit:u,relativeDateGetter:f,setCellMetadata:v,setRowMetadata:h})=>{for(let g=0;g<e.row;g++){const y=t[g];for(let w=0;w<e.column;w++){let C=y[w+n];C||(C={row:g,column:w,type:"normal",inRange:!1,start:!1,end:!1});const S=g*e.column+w,T=f(S);C.dayjs=T,C.date=T.toDate(),C.timestamp=T.valueOf(),C.type="normal",C.inRange=!!(r&&T.isSameOrAfter(r,u)&&i&&T.isSameOrBefore(i,u))||!!(r&&T.isSameOrBefore(r,u)&&i&&T.isSameOrAfter(i,u)),r!=null&&r.isSameOrAfter(i)?(C.start=!!i&&T.isSame(i,u),C.end=r&&T.isSame(r,u)):(C.start=!!r&&T.isSame(r,u),C.end=!!i&&T.isSame(i,u)),T.isSame(l,u)&&(C.type="today"),v==null||v(C,{rowIndex:g,columnIndex:w}),y[w+n]=C}h==null||h(y)}},s4t=hr({cell:{type:gn(Object)}});var l4t=Zt({name:"ElDatePickerCell",props:s4t,setup(e){const t=Vn("date-table-cell"),{slots:n}=jr(mne);return()=>{const{cell:r}=e;if(n.default){const i=n.default(r).filter(l=>l.patchFlag!==-2&&l.type.toString()!=="Symbol(Comment)");if(i.length)return i}return gt("div",{class:t.b()},[gt("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const u4t=["aria-label","onMousedown"],c4t={key:0,scope:"col"},f4t=["aria-label"],d4t=["aria-current","aria-selected","tabindex"],v4t=Zt({__name:"basic-date-table",props:a4t,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,i=Vn("date-table"),{t:l,lang:u}=Ni(),f=et(),v=et(),h=et(),g=et(),y=et([[],[],[],[],[],[]]);let w=!1;const C=r.date.$locale().weekStart||7,S=r.date.locale("en").localeData().weekdaysShort().map(j=>j.toLowerCase()),T=Ne(()=>C>3?7-C:-C),B=Ne(()=>{const j=r.date.startOf("month");return j.subtract(j.day()||7,"day")}),F=Ne(()=>S.concat(S).slice(C,C+7)),R=Ne(()=>rhe(Y.value).some(j=>j.isCurrent)),N=Ne(()=>{const j=r.date.startOf("month"),ee=j.day()||7,ye=j.daysInMonth(),ie=j.subtract(1,"month").daysInMonth();return{startOfMonthDay:ee,dateCountOfMonth:ye,dateCountOfLastMonth:ie}}),A=Ne(()=>r.selectionMode==="dates"?g3(r.parsedValue):[]),X=(j,{count:ee,rowIndex:ye,columnIndex:ie})=>{const{startOfMonthDay:he,dateCountOfMonth:re,dateCountOfLastMonth:be}=L(N),Ae=L(T);if(ye>=0&&ye<=1){const Te=he+Ae<0?7+he+Ae:he+Ae;if(ie+ye*7>=Te)return j.text=ee,!0;j.text=be-(Te-ie%7)+1+ye*7,j.type="prev-month"}else return ee<=re?j.text=ee:(j.text=ee-re,j.type="next-month"),!0;return!1},Z=(j,{columnIndex:ee,rowIndex:ye},ie)=>{const{disabledDate:he,cellClassName:re}=r,be=L(A),Ae=X(j,{count:ie,rowIndex:ye,columnIndex:ee}),Te=j.dayjs.toDate();return j.selected=be.find(Ue=>Ue.valueOf()===j.dayjs.valueOf()),j.isSelected=!!j.selected,j.isCurrent=te(j),j.disabled=he==null?void 0:he(Te),j.customClass=re==null?void 0:re(Te),Ae},z=j=>{if(r.selectionMode==="week"){const[ee,ye]=r.showWeekNumber?[1,7]:[0,6],ie=U(j[ee+1]);j[ee].inRange=ie,j[ee].start=ie,j[ye].inRange=ie,j[ye].end=ie}},Y=Ne(()=>{const{minDate:j,maxDate:ee,rangeState:ye,showWeekNumber:ie}=r,he=T.value,re=y.value,be="day";let Ae=1;if(ie)for(let Te=0;Te<6;Te++)re[Te][0]||(re[Te][0]={type:"week",text:B.value.add(Te*7+1,be).week()});return i4t({row:6,column:7},re,{startDate:j,columnIndexOffset:ie?1:0,nextEndDate:ye.endDate||ee||ye.selecting&&j||null,now:wa().locale(L(u)).startOf(be),unit:be,relativeDateGetter:Te=>B.value.add(Te-he,be),setCellMetadata:(...Te)=>{Z(...Te,Ae)&&(Ae+=1)},setRowMetadata:z}),re});$n(()=>r.date,async()=>{var j,ee;(j=f.value)!=null&&j.contains(document.activeElement)&&(await Gr(),(ee=v.value)==null||ee.focus())});const Q=async()=>{var j;(j=v.value)==null||j.focus()},$=(j="")=>["normal","today"].includes(j),te=j=>r.selectionMode==="date"&&$(j.type)&&V(j,r.parsedValue),V=(j,ee)=>ee?wa(ee).locale(u.value).isSame(r.date.date(Number(j.text)),"day"):!1,K=j=>{const ee=[];return $(j.type)&&!j.disabled?(ee.push("available"),j.type==="today"&&ee.push("today")):ee.push(j.type),te(j)&&ee.push("current"),j.inRange&&($(j.type)||r.selectionMode==="week")&&(ee.push("in-range"),j.start&&ee.push("start-date"),j.end&&ee.push("end-date")),j.disabled&&ee.push("disabled"),j.selected&&ee.push("selected"),j.customClass&&ee.push(j.customClass),ee.join(" ")},fe=(j,ee)=>{const ye=j*7+(ee-(r.showWeekNumber?1:0))-T.value;return B.value.add(ye,"day")},de=j=>{var ee;if(!r.rangeState.selecting)return;let ye=j.target;if(ye.tagName==="SPAN"&&(ye=(ee=ye.parentNode)==null?void 0:ee.parentNode),ye.tagName==="DIV"&&(ye=ye.parentNode),ye.tagName!=="TD")return;const ie=ye.parentNode.rowIndex-1,he=ye.cellIndex;Y.value[ie][he].disabled||(ie!==h.value||he!==g.value)&&(h.value=ie,g.value=he,n("changerange",{selecting:!0,endDate:fe(ie,he)}))},ne=j=>!R.value&&(j==null?void 0:j.text)===1&&j.type==="normal"||j.isCurrent,le=j=>{w||R.value||r.selectionMode!=="date"||P(j,!0)},_e=j=>{!j.target.closest("td")||(w=!0)},M=j=>{!j.target.closest("td")||(w=!1)},P=(j,ee=!1)=>{const ye=j.target.closest("td");if(!ye)return;const ie=ye.parentNode.rowIndex-1,he=ye.cellIndex,re=Y.value[ie][he];if(re.disabled||re.type==="week")return;const be=fe(ie,he);if(r.selectionMode==="range")!r.rangeState.selecting||!r.minDate?(n("pick",{minDate:be,maxDate:null}),n("select",!0)):(be>=r.minDate?n("pick",{minDate:r.minDate,maxDate:be}):n("pick",{minDate:be,maxDate:r.minDate}),n("select",!1));else if(r.selectionMode==="date")n("pick",be,ee);else if(r.selectionMode==="week"){const Ae=be.week(),Te=`${be.year()}w${Ae}`;n("pick",{year:be.year(),week:Ae,value:Te,date:be.startOf("week")})}else if(r.selectionMode==="dates"){const Ae=re.selected?g3(r.parsedValue).filter(Te=>(Te==null?void 0:Te.valueOf())!==be.valueOf()):g3(r.parsedValue).concat([be]);n("pick",Ae)}},U=j=>{if(r.selectionMode!=="week")return!1;let ee=r.date.startOf("day");if(j.type==="prev-month"&&(ee=ee.subtract(1,"month")),j.type==="next-month"&&(ee=ee.add(1,"month")),ee=ee.date(Number.parseInt(j.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const ye=(r.parsedValue.day()-C+7)%7-1;return r.parsedValue.subtract(ye,"day").isSame(ee,"day")}return!1};return t({focus:Q}),(j,ee)=>(Ce(),Ie("table",{role:"grid","aria-label":L(l)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:He([L(i).b(),{"is-week-mode":j.selectionMode==="week"}]),onClick:P,onMousemove:de,onMousedown:Do(_e,["prevent"]),onMouseup:M},[ce("tbody",{ref_key:"tbodyRef",ref:f},[ce("tr",null,[j.showWeekNumber?(Ce(),Ie("th",c4t,Zn(L(l)("el.datepicker.week")),1)):on("v-if",!0),(Ce(!0),Ie(Ur,null,La(L(F),(ye,ie)=>(Ce(),Ie("th",{key:ie,scope:"col","aria-label":L(l)("el.datepicker.weeksFull."+ye)},Zn(L(l)("el.datepicker.weeks."+ye)),9,f4t))),128))]),(Ce(!0),Ie(Ur,null,La(L(Y),(ye,ie)=>(Ce(),Ie("tr",{key:ie,class:He([L(i).e("row"),{current:U(ye[1])}])},[(Ce(!0),Ie(Ur,null,La(ye,(he,re)=>(Ce(),Ie("td",{key:`${ie}.${re}`,ref_for:!0,ref:be=>ne(he)&&(v.value=be),class:He(K(he)),"aria-current":he.isCurrent?"date":void 0,"aria-selected":he.isCurrent,tabindex:ne(he)?0:-1,onFocus:le},[gt(L(l4t),{cell:he},null,8,["cell"])],42,d4t))),128))],2))),128))],512)],42,u4t))}});var zJ=vr(v4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const h4t=hr({...gne,selectionMode:ome("month")}),p4t=["aria-label"],m4t=["aria-selected","aria-label","tabindex","onKeydown"],g4t={class:"cell"},y4t=Zt({__name:"basic-month-table",props:h4t,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,i=(A,X,Z)=>{const z=wa().locale(Z).startOf("month").month(X).year(A),Y=z.daysInMonth();return $8(Y).map(Q=>z.add(Q,"day").toDate())},l=Vn("month-table"),{t:u,lang:f}=Ni(),v=et(),h=et(),g=et(r.date.locale("en").localeData().monthsShort().map(A=>A.toLowerCase())),y=et([[],[],[]]),w=et(),C=et(),S=Ne(()=>{var A,X;const Z=y.value,z=wa().locale(f.value).startOf("month");for(let Y=0;Y<3;Y++){const Q=Z[Y];for(let $=0;$<4;$++){const te=Q[$]||(Q[$]={row:Y,column:$,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});te.type="normal";const V=Y*4+$,K=r.date.startOf("year").month(V),fe=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;te.inRange=!!(r.minDate&&K.isSameOrAfter(r.minDate,"month")&&fe&&K.isSameOrBefore(fe,"month"))||!!(r.minDate&&K.isSameOrBefore(r.minDate,"month")&&fe&&K.isSameOrAfter(fe,"month")),(A=r.minDate)!=null&&A.isSameOrAfter(fe)?(te.start=!!(fe&&K.isSame(fe,"month")),te.end=r.minDate&&K.isSame(r.minDate,"month")):(te.start=!!(r.minDate&&K.isSame(r.minDate,"month")),te.end=!!(fe&&K.isSame(fe,"month"))),z.isSame(K)&&(te.type="today"),te.text=V,te.disabled=((X=r.disabledDate)==null?void 0:X.call(r,K.toDate()))||!1}}return Z}),T=()=>{var A;(A=h.value)==null||A.focus()},B=A=>{const X={},Z=r.date.year(),z=new Date,Y=A.text;return X.disabled=r.disabledDate?i(Z,Y,f.value).every(r.disabledDate):!1,X.current=g3(r.parsedValue).findIndex(Q=>wa.isDayjs(Q)&&Q.year()===Z&&Q.month()===Y)>=0,X.today=z.getFullYear()===Z&&z.getMonth()===Y,A.inRange&&(X["in-range"]=!0,A.start&&(X["start-date"]=!0),A.end&&(X["end-date"]=!0)),X},F=A=>{const X=r.date.year(),Z=A.text;return g3(r.date).findIndex(z=>z.year()===X&&z.month()===Z)>=0},R=A=>{var X;if(!r.rangeState.selecting)return;let Z=A.target;if(Z.tagName==="A"&&(Z=(X=Z.parentNode)==null?void 0:X.parentNode),Z.tagName==="DIV"&&(Z=Z.parentNode),Z.tagName!=="TD")return;const z=Z.parentNode.rowIndex,Y=Z.cellIndex;S.value[z][Y].disabled||(z!==w.value||Y!==C.value)&&(w.value=z,C.value=Y,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(z*4+Y)}))},N=A=>{var X;const Z=(X=A.target)==null?void 0:X.closest("td");if((Z==null?void 0:Z.tagName)!=="TD"||e2(Z,"disabled"))return;const z=Z.cellIndex,Q=Z.parentNode.rowIndex*4+z,$=r.date.startOf("year").month(Q);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&$>=r.minDate?n("pick",{minDate:r.minDate,maxDate:$}):n("pick",{minDate:$,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:$,maxDate:null}),n("select",!0)):n("pick",Q)};return $n(()=>r.date,async()=>{var A,X;(A=v.value)!=null&&A.contains(document.activeElement)&&(await Gr(),(X=h.value)==null||X.focus())}),t({focus:T}),(A,X)=>(Ce(),Ie("table",{role:"grid","aria-label":L(u)("el.datepicker.monthTablePrompt"),class:He(L(l).b()),onClick:N,onMousemove:R},[ce("tbody",{ref_key:"tbodyRef",ref:v},[(Ce(!0),Ie(Ur,null,La(L(S),(Z,z)=>(Ce(),Ie("tr",{key:z},[(Ce(!0),Ie(Ur,null,La(Z,(Y,Q)=>(Ce(),Ie("td",{key:Q,ref_for:!0,ref:$=>F(Y)&&(h.value=$),class:He(B(Y)),"aria-selected":`${F(Y)}`,"aria-label":L(u)(`el.datepicker.month${+Y.text+1}`),tabindex:F(Y)?0:-1,onKeydown:[mi(Do(N,["prevent","stop"]),["space"]),mi(Do(N,["prevent","stop"]),["enter"])]},[ce("div",null,[ce("span",g4t,Zn(L(u)("el.datepicker.months."+g.value[Y.text])),1)])],42,m4t))),128))]))),128))],512)],42,p4t))}});var HJ=vr(y4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:b4t,disabledDate:_4t,parsedValue:w4t}=gne,C4t=hr({date:b4t,disabledDate:_4t,parsedValue:w4t}),x4t=["aria-label"],E4t=["aria-selected","tabindex","onKeydown"],S4t={class:"cell"},T4t={key:1},A4t=Zt({__name:"basic-year-table",props:C4t,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,i=(T,B)=>{const F=wa(String(T)).locale(B).startOf("year"),N=F.endOf("year").dayOfYear();return $8(N).map(A=>F.add(A,"day").toDate())},l=Vn("year-table"),{t:u,lang:f}=Ni(),v=et(),h=et(),g=Ne(()=>Math.floor(r.date.year()/10)*10),y=()=>{var T;(T=h.value)==null||T.focus()},w=T=>{const B={},F=wa().locale(f.value);return B.disabled=r.disabledDate?i(T,f.value).every(r.disabledDate):!1,B.current=g3(r.parsedValue).findIndex(R=>R.year()===T)>
59=0,B.today=F.year()===T,B},C=T=>T===g.value&&r.date.year()<g.value&&r.date.year()>g.value+9||g3(r.date).findIndex(B=>B.year()===T)>=0,S=T=>{const F=T.target.closest("td");if(F&&F.textContent){if(e2(F,"disabled"))return;const R=F.textContent||F.innerText;n("pick",Number(R))}};return $n(()=>r.date,async()=>{var T,B;(T=v.value)!=null&&T.contains(document.activeElement)&&(await Gr(),(B=h.value)==null||B.focus())}),t({focus:y}),(T,B)=>(Ce(),Ie("table",{role:"grid","aria-label":L(u)("el.datepicker.yearTablePrompt"),class:He(L(l).b()),onClick:S},[ce("tbody",{ref_key:"tbodyRef",ref:v},[(Ce(),Ie(Ur,null,La(3,(F,R)=>ce("tr",{key:R},[(Ce(),Ie(Ur,null,La(4,(N,A)=>(Ce(),Ie(Ur,{key:R+"_"+A},[R*4+A<10?(Ce(),Ie("td",{key:0,ref_for:!0,ref:X=>C(L(g)+R*4+A)&&(h.value=X),class:He(["available",w(L(g)+R*4+A)]),"aria-selected":`${C(L(g)+R*4+A)}`,tabindex:C(L(g)+R*4+A)?0:-1,onKeydown:[mi(Do(S,["prevent","stop"]),["space"]),mi(Do(S,["prevent","stop"]),["enter"])]},[ce("span",S4t,Zn(L(g)+R*4+A),1)],42,E4t)):(Ce(),Ie("td",T4t))],64))),64))])),64))],512)],10,x4t))}});var k4t=vr(A4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const O4t=["onClick"],M4t=["aria-label"],N4t=["aria-label"],D4t=["aria-label"],I4t=["aria-label"],R4t=Zt({__name:"panel-date-pick",props:o4t,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Et,At,vt)=>!0,i=Vn("picker-panel"),l=Vn("date-picker"),u=RC(),f=g1(),{t:v,lang:h}=Ni(),g=jr("EP_PICKER_BASE"),y=jr(HV),{shortcuts:w,disabledDate:C,cellClassName:S,defaultTime:T,arrowControl:B}=g.props,F=Kl(g.props,"defaultValue"),R=et(),N=et(wa().locale(h.value)),A=et(!1),X=Ne(()=>wa(T).locale(h.value)),Z=Ne(()=>N.value.month()),z=Ne(()=>N.value.year()),Y=et([]),Q=et(null),$=et(null),te=Et=>Y.value.length>0?r(Et,Y.value,n.format||"HH:mm:ss"):!0,V=Et=>T&&!Oe.value&&!A.value?X.value.year(Et.year()).month(Et.month()).date(Et.date()):he.value?Et.millisecond(0):Et.startOf("day"),K=(Et,...At)=>{if(!Et)t("pick",Et,...At);else if(Oa(Et)){const vt=Et.map(V);t("pick",vt,...At)}else t("pick",V(Et),...At);Q.value=null,$.value=null,A.value=!1},fe=(Et,At)=>{if(P.value==="date"){Et=Et;let vt=n.parsedValue?n.parsedValue.year(Et.year()).month(Et.month()).date(Et.date()):Et;te(vt)||(vt=Y.value[0][0].year(Et.year()).month(Et.month()).date(Et.date())),N.value=vt,K(vt,he.value||At)}else P.value==="week"?K(Et.date):P.value==="dates"&&K(Et,!0)},de=Et=>{const At=Et?"add":"subtract";N.value=N.value[At](1,"month"),It("month")},ne=Et=>{const At=N.value,vt=Et?"add":"subtract";N.value=le.value==="year"?At[vt](10,"year"):At[vt](1,"year"),It("year")},le=et("date"),_e=Ne(()=>{const Et=v("el.datepicker.year");if(le.value==="year"){const At=Math.floor(z.value/10)*10;return Et?`${At} ${Et} - ${At+9} ${Et}`:`${At} - ${At+9}`}return`${z.value} ${Et}`}),M=Et=>{const At=Ji(Et.value)?Et.value():Et.value;if(At){K(wa(At).locale(h.value));return}Et.onClick&&Et.onClick({attrs:u,slots:f,emit:t})},P=Ne(()=>{const{type:Et}=n;return["week","month","year","dates"].includes(Et)?Et:"date"}),U=Ne(()=>P.value==="date"?le.value:P.value),j=Ne(()=>!!w.length),ee=async Et=>{N.value=N.value.startOf("month").month(Et),P.value==="month"?K(N.value,!1):(le.value="date",["month","year","date","week"].includes(P.value)&&(K(N.value,!0),await Gr(),bt())),It("month")},ye=async Et=>{P.value==="year"?(N.value=N.value.startOf("year").year(Et),K(N.value,!1)):(N.value=N.value.year(Et),le.value="month",["month","year","date","week"].includes(P.value)&&(K(N.value,!0),await Gr(),bt())),It("year")},ie=async Et=>{le.value=Et,await Gr(),bt()},he=Ne(()=>n.type==="datetime"||n.type==="datetimerange"),re=Ne(()=>he.value||P.value==="dates"),be=()=>{if(P.value==="dates")K(n.parsedValue);else{let Et=n.parsedValue;if(!Et){const At=wa(T).locale(h.value),vt=Ct();Et=At.year(vt.year()).month(vt.month()).date(vt.date())}N.value=Et,K(Et)}},Ae=()=>{const At=wa().locale(h.value).toDate();A.value=!0,(!C||!C(At))&&te(At)&&(N.value=wa().locale(h.value),K(N.value))},Te=Ne(()=>lpe(n.format)),Ue=Ne(()=>spe(n.format)),Oe=Ne(()=>{if($.value)return $.value;if(!(!n.parsedValue&&!F.value))return(n.parsedValue||N.value).format(Te.value)}),De=Ne(()=>{if(Q.value)return Q.value;if(!(!n.parsedValue&&!F.value))return(n.parsedValue||N.value).format(Ue.value)}),$e=et(!1),rt=()=>{$e.value=!0},ct=()=>{$e.value=!1},lt=Et=>({hour:Et.hour(),minute:Et.minute(),second:Et.second(),year:Et.year(),month:Et.month(),date:Et.date()}),ot=(Et,At,vt)=>{const{hour:Tt,minute:Wt,second:xt}=lt(Et),at=n.parsedValue?n.parsedValue.hour(Tt).minute(Wt).second(xt):Et;N.value=at,K(N.value,!0),vt||($e.value=At)},Fe=Et=>{const At=wa(Et,Te.value).locale(h.value);if(At.isValid()&&te(At)){const{year:vt,month:Tt,date:Wt}=lt(N.value);N.value=At.year(vt).month(Tt).date(Wt),$.value=null,$e.value=!1,K(N.value,!0)}},We=Et=>{const At=wa(Et,Ue.value).locale(h.value);if(At.isValid()){if(C&&C(At.toDate()))return;const{hour:vt,minute:Tt,second:Wt}=lt(N.value);N.value=At.hour(vt).minute(Tt).second(Wt),Q.value=null,K(N.value,!0)}},Ye=Et=>wa.isDayjs(Et)&&Et.isValid()&&(C?!C(Et.toDate()):!0),Ke=Et=>P.value==="dates"?Et.map(At=>At.format(n.format)):Et.format(n.format),mt=Et=>wa(Et,n.format).locale(h.value),Ct=()=>{const Et=wa(F.value).locale(h.value);if(!F.value){const At=X.value;return wa().hour(At.hour()).minute(At.minute()).second(At.second()).locale(h.value)}return Et},bt=async()=>{var Et;["week","month","year","date"].includes(P.value)&&((Et=R.value)==null||Et.focus(),P.value==="week"&&Ft(ao.down))},tn=Et=>{const{code:At}=Et;[ao.up,ao.down,ao.left,ao.right,ao.home,ao.end,ao.pageUp,ao.pageDown].includes(At)&&(Ft
59(At),Et.stopPropagation(),Et.preventDefault()),[ao.enter,ao.space,ao.numpadEnter].includes(At)&&Q.value===null&&$.value===null&&(Et.preventDefault(),K(N.value,!1))},Ft=Et=>{var At;const{up:vt,down:Tt,left:Wt,right:xt,home:at,end:_t,pageUp:en,pageDown:An}=ao,Vt={year:{[vt]:-4,[Tt]:4,[Wt]:-1,[xt]:1,offset:(Mt,pn)=>Mt.setFullYear(Mt.getFullYear()+pn)},month:{[vt]:-4,[Tt]:4,[Wt]:-1,[xt]:1,offset:(Mt,pn)=>Mt.setMonth(Mt.getMonth()+pn)},week:{[vt]:-1,[Tt]:1,[Wt]:-1,[xt]:1,offset:(Mt,pn)=>Mt.setDate(Mt.getDate()+pn*7)},date:{[vt]:-7,[Tt]:7,[Wt]:-1,[xt]:1,[at]:Mt=>-Mt.getDay(),[_t]:Mt=>-Mt.getDay()+6,[en]:Mt=>-new Date(Mt.getFullYear(),Mt.getMonth(),0).getDate(),[An]:Mt=>new Date(Mt.getFullYear(),Mt.getMonth()+1,0).getDate(),offset:(Mt,pn)=>Mt.setDate(Mt.getDate()+pn)}},_n=N.value.toDate();for(;Math.abs(N.value.diff(_n,"year",!0))<1;){const Mt=Vt[U.value];if(!Mt)return;if(Mt.offset(_n,Ji(Mt[Et])?Mt[Et](_n):(At=Mt[Et])!=null?At:0),C&&C(_n))break;const pn=wa(_n).locale(h.value);N.value=pn,t("pick",pn,!0);break}},It=Et=>{t("panel-change",N.value.toDate(),Et,le.value)};return $n(()=>P.value,Et=>{if(["month","year"].includes(Et)){le.value=Et;return}le.value="date"},{immediate:!0}),$n(()=>le.value,()=>{y==null||y.updatePopper()}),$n(()=>F.value,Et=>{Et&&(N.value=Ct())},{immediate:!0}),$n(()=>n.parsedValue,Et=>{if(Et){if(P.value==="dates"||Array.isArray(Et))return;N.value=Et}else N.value=Ct()},{immediate:!0}),t("set-picker-option",["isValidValue",Ye]),t("set-picker-option",["formatToString",Ke]),t("set-picker-option",["parseUserInput",mt]),t("set-picker-option",["handleFocusPicker",bt]),(Et,At)=>(Ce(),Ie("div",{class:He([L(i).b(),L(l).b(),{"has-sidebar":Et.$slots.sidebar||L(j),"has-time":L(he)}])},[ce("div",{class:He(L(i).e("body-wrapper"))},[Fn(Et.$slots,"sidebar",{class:He(L(i).e("sidebar"))}),L(j)?(Ce(),Ie("div",{key:0,class:He(L(i).e("sidebar"))},[(Ce(!0),Ie(Ur,null,La(L(w),(vt,Tt)=>(Ce(),Ie("button",{key:Tt,type:"button",class:He(L(i).e("shortcut")),onClick:Wt=>M(vt)},Zn(vt.text),11,O4t))),128))],2)):on("v-if",!0),ce("div",{class:He(L(i).e("body"))},[L(he)?(Ce(),Ie("div",{key:0,class:He(L(l).e("time-header"))},[ce("span",{class:He(L(l).e("editor-wrap"))},[gt(L(Ov),{placeholder:L(v)("el.datepicker.selectDate"),"model-value":L(De),size:"small","validate-event":!1,onInput:At[0]||(At[0]=vt=>Q.value=vt),onChange:We},null,8,["placeholder","model-value"])],2),ea((Ce(),Ie("span",{class:He(L(l).e("editor-wrap"))},[gt(L(Ov),{placeholder:L(v)("el.datepicker.selectTime"),"model-value":L(Oe),size:"small","validate-event":!1,onFocus:rt,onInput:At[1]||(At[1]=vt=>$.value=vt),onChange:Fe},null,8,["placeholder","model-value"]),gt(L(MH),{visible:$e.value,format:L(Te),"time-arrow-control":L(B),"parsed-value":N.value,onPick:ot},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[L(W8),
59ct]])],2)):on("v-if",!0),ea(ce("div",{class:He([L(l).e("header"),(le.value==="year"||le.value==="month")&&L(l).e("header--bordered")])},[ce("span",{class:He(L(l).e("prev-btn"))},[ce("button",{type:"button","aria-label":L(v)("el.datepicker.prevYear"),class:He(["d-arrow-left",L(i).e("icon-btn")]),onClick:At[2]||(At[2]=vt=>ne(!1))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(kC))]),_:1})],10,M4t),ea(ce("button",{type:"button","aria-label":L(v)("el.datepicker.prevMonth"),class:He([L(i).e("icon-btn"),"arrow-left"]),onClick:At[3]||(At[3]=vt=>de(!1))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1})],10,N4t),[[Ti,le.value==="date"]])],2),ce("span",{role:"button",class:He(L(l).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:At[4]||(At[4]=mi(vt=>ie("year"),["enter"])),onClick:At[5]||(At[5]=vt=>ie("year"))},Zn(L(_e)),35),ea(ce("span",{role:"button","aria-live":"polite",tabindex:"0",class:He([L(l).e("header-label"),{active:le.value==="month"}]),onKeydown:At[6]||(At[6]=mi(vt=>ie("month"),["enter"])),onClick:At[7]||(At[7]=vt=>ie("month"))},Zn(L(v)(`el.datepicker.month${L(Z)+1}`)),35),[[Ti,le.value==="date"]]),ce("span",{class:He(L(l).e("next-btn"))},[ea(ce("button",{type:"button","aria-label":L(v)("el.datepicker.nextMonth"),class:He([L(i).e("icon-btn"),"arrow-right"]),onClick:At[8]||(At[8]=vt=>de(!0))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})],10,D4t),[[Ti,le.value==="date"]]),ce("button",{type:"button","aria-label":L(v)("el.datepicker.nextYear"),class:He([L(i).e("icon-btn"),"d-arrow-right"]),onClick:At[9]||(At[9]=vt=>ne(!0))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(OC))]),_:1})],10,I4t)],2)],2),[[Ti,le.value!=="time"]]),ce("div",{class:He(L(i).e("content")),onKeydown:tn},[le.value==="date"?(Ce(),yn(zJ,{key:0,ref_key:"currentViewRef",ref:R,"selection-mode":L(P),date:N.value,"parsed-value":Et.parsedValue,"disabled-date":L(C),"cell-class-name":L(S),onPick:fe},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):on("v-if",!0),le.value==="year"?(Ce(),yn(k4t,{key:1,ref_key:"currentViewRef",ref:R,date:N.value,"disabled-date":L(C),"parsed-value":Et.parsedValue,onPick:ye},null,8,["date","disabled-date","parsed-value"])):on("v-if",!0),le.value==="month"?(Ce(),yn(HJ,{key:2,ref_key:"currentViewRef",ref:R,date:N.value,"parsed-value":Et.parsedValue,"disabled-date":L(C),onPick:ee},null,8,["date","parsed-value","disabled-date"])):on("v-if",!0)],34)],2)],2),ea(ce("div",{class:He(L(i).e("footer"))},[ea(gt(L(Z1),{text:"",size:"small",class:He(L(i).e("link-btn")),onClick:Ae},{default:Dt(()=>[lo(Zn(L(v)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Ti,L(P)!=="dates"]]),gt(L(Z1),{plain:"",size:"small",class:He(L(i).e("link-btn")),onClick:be},{default:Dt(()=>[lo(Zn(L(v)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Ti,L(re)&&le.value==="date"]])],2))}});var L4t=vr(R4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const B4t=hr({...nme,...rme}),P4t=e=>{const{emit:t}=va(),n=RC(),r=g1();return l=>{const u=Ji(l.value)?l.value():l.value;if(u){t("pick",[wa(u[0]).locale(e.value),wa(u[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:r,emit:t})}},ime=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:i,onParsedValueChanged:l})=>{const{emit:u}=va(),{pickerNs:f}=jr(mne),v=Vn("date-range-picker"),{t:h,lang:g}=Ni(),y=P4t(g),w=et(),C=et(),S=et({endDate:null,selecting:!1}),T=N=>{S.value=N},B=(N=!1)=>{const A=L(w),X=L(C);$J([A,X])&&u("pick",[A,X],N)},F=N=>{S.value.selecting=N,N||(S.value.endDate=null)},R=()=>{const[N,A]=ame(L(t),{lang:L(g),unit:i,unlinkPanels:e.unlinkPanels});w.value=void 0,C.value=void 0,n.value=N,r.value=A};return $n(t,N=>{N&&R()},{immediate:!0}),$n(()=>e.parsedValue,N=>{if(Oa(N)&&N.length===2){const[A,X]=N;w.value=A,n.value=A,C.value=X,l(L(w),L(C))}else R()},{immediate:!0}),{minDate:w,maxDate:C,rangeState:S,lang:g,ppNs:f,drpNs:v,handleChangeRange:T,handleRangeConfirm:B,handleShortcutClick:y,onSelect:F,t:h}},F4t=["onClick"],$4t=["disabled"],z4t=["disabled"],H4t=["disabled"],V4t=["disabled"],X$="month",U4t=Zt({__name:"panel-date-range",props:B4t,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=jr("EP_PICKER_BASE"),{disabledDate:i,cellClassName:l,format:u,defaultTime:f,arrowControl:v,clearable:h}=r.props,g=Kl(r.props,"shortcuts"),y=Kl(r.props,"defaultValue"),{lang:w}=Ni(),C=et(wa().locale(w.value)),S=et(wa().locale(w.value).add(1,X$)),{minDate:T,maxDate:B,rangeState:F,ppNs:R,drpNs:N,handleChangeRange:A,handleRangeConfirm:X,handleShortcutClick:Z,onSelect:z,t:Y}=ime(n,{defaultValue:y,leftDate:C,rightDate:S,unit:X$,onParsedValueChanged:Tt}),Q=et({min:null,max:null}),$=et({min:null,max:null}),te=Ne(()=>`${C.value.year()} ${Y("el.datepicker.year")} ${Y(`el.datepicker.month${C.value.month()+1}`)}`),V=Ne(()=>`${S.value.year()} ${Y("el.datepicker.year")} ${Y(`el.datepicker.month${S.value.month()+1}`)}`),K=Ne(()=>C.value.year()),fe=Ne(()=>C.value.month()),de=Ne(()=>S.value.year()),ne=Ne(()=>S.value.month()),le=Ne(()=>!!g.value.length),_e=Ne(()=>Q.value.min!==null?Q.value.min:T.value?T.value.format(ee.value):""),M=Ne(()=>Q.value.max!==null?Q.value.max:B.value||T.value?(B.value||T.value).format(ee.value):""),P=Ne(()=>$.value.min!==null?$.value.min:T.value?T.value.format(j.value):""),U=Ne(()=>$.value.max!==null?$.value.max:B.value||T.value?(B.value||T.value).format(j.value):""),j=Ne(()=>lpe(u)),ee=Ne(()=>spe(u)),ye=()=>{C.value=C.value.subtract(1,"year"),n.unlinkPanels||(S.value=C.value.add(1,"month")),Oe("year")},ie=()=>{C.value=C.value.subtract(1,"month"),n.unlinkPanels||(S.value=C.value.add(1,"month")),Oe("month")},he=()=>{n.unlinkPanels?S.value=S.value.add(1,"year"):(C.value=C.value.add(1,"year"),S.value=C.value.add(1,"month")),Oe("year")},re=()=>{n.unlinkPanels?S.value=S.value.add(1,"month"):(C.value=C.value.add(1,"month"),S.value=C.value.add(1,"month")),Oe("month")},be=()=>{C.value=C.value.add(1,"year"),Oe("year")},Ae=()=>{C.value=C.value.add(1,"month"),Oe("month")},Te=()=>{S.value=S.value.subtract(1,"year"),Oe("year")},Ue=()=>{S.value=S.value.subtract(1,"month"),Oe("month")},Oe=Wt=>{t("panel-change",[C.value.toDate(),S.value.toDate()],Wt)},De=Ne(()=>{const Wt=(fe.value+1)%12,xt=fe.value+1>=12?1:0;return n.unlinkPanels&&new Date(K.value+xt,Wt)<new Date(de.value,ne.value)}),$e=Ne(()=>n.unlinkPanels&&de.value*12+ne.value-(K.value*12+fe.value+1)>=12),rt=Ne(()=>!(T.value&&B.value&&!F.value.selecting&&$J([T.value,B.value]))),ct=Ne(()=>n.type==="datetime"||n.type==="datetimerange"),lt=(Wt,xt)=>{if(!!Wt)return f?wa(f[xt]||f).locale(w.value).year(Wt.year()).month(Wt.month()).date(Wt.date()):Wt},ot=(Wt,xt=!0)=>{const at=Wt.minDate,_t=Wt.maxDate,en=lt(at,0),An=lt(_t,1);B.value===An&&T.value===en||(t("calendar-change",[at.toDate(),_t&&_t.toDate()]),B.value=An,T.value=en,!(!xt||ct.value)&&X())},Fe=et(!1),We=et(!1),Ye=()=>{Fe.value=!1},Ke=()=>{We.value=!1},mt=(Wt,xt)=>{Q.value[xt]=Wt;
59const at=wa(Wt,ee.value).locale(w.value);if(at.isValid()){if(i&&i(at.toDate()))return;xt==="min"?(C.value=at,T.value=(T.value||C.value).year(at.year()).month(at.month()).date(at.date()),!n.unlinkPanels&&(!B.value||B.value.isBefore(T.value))&&(S.value=at.add(1,"month"),B.value=T.value.add(1,"month"))):(S.value=at,B.value=(B.value||S.value).year(at.year()).month(at.month()).date(at.date()),!n.unlinkPanels&&(!T.value||T.value.isAfter(B.value))&&(C.value=at.subtract(1,"month"),T.value=B.value.subtract(1,"month")))}},Ct=(Wt,xt)=>{Q.value[xt]=null},bt=(Wt,xt)=>{$.value[xt]=Wt;const at=wa(Wt,j.value).locale(w.value);at.isValid()&&(xt==="min"?(Fe.value=!0,T.value=(T.value||C.value).hour(at.hour()).minute(at.minute()).second(at.second()),(!B.value||B.value.isBefore(T.value))&&(B.value=T.value)):(We.value=!0,B.value=(B.value||S.value).hour(at.hour()).minute(at.minute()).second(at.second()),S.value=B.value,B.value&&B.value.isBefore(T.value)&&(T.value=B.value)))},tn=(Wt,xt)=>{$.value[xt]=null,xt==="min"?(C.value=T.value,Fe.value=!1):(S.value=B.value,We.value=!1)},Ft=(Wt,xt,at)=>{$.value.min||(Wt&&(C.value=Wt,T.value=(T.value||C.value).hour(Wt.hour()).minute(Wt.minute()).second(Wt.second())),at||(Fe.value=xt),(!B.value||B.value.isBefore(T.value))&&(B.value=T.value,S.value=Wt))},It=(Wt,xt,at)=>{$.value.max||(Wt&&(S.value=Wt,B.value=(B.value||S.value).hour(Wt.hour()).minute(Wt.minute()).second(Wt.second())),at||(We.value=xt),B.value&&B.value.isBefore(T.value)&&(T.value=B.value))},Et=()=>{C.value=ame(L(y),{lang:L(w),unit:"month",unlinkPanels:n.unlinkPanels})[0],S.value=C.value.add(1,"month"),t("pick",null)},At=Wt=>Oa(Wt)?Wt.map(xt=>xt.format(u)):Wt.format(u),vt=Wt=>Oa(Wt)?Wt.map(xt=>wa(xt,u).locale(w.value)):wa(Wt,u).locale(w.value);function Tt(Wt,xt){if(n.unlinkPanels&&xt){const at=(Wt==null?void 0:Wt.year())||0,_t=(Wt==null?void 0:Wt.month())||0,en=xt.year(),An=xt.month();S.value=at===en&&_t===An?xt.add(1,X$):xt}else S.value=C.value.add(1,X$),xt&&(S.value=S.value.hour(xt.hour()).minute(xt.minute()).second(xt.second()))}return t("set-picker-option",["isValidValue",$J]),t("set-picker-option",["parseUserInput",vt]),t("set-picker-option",["formatToString",At]),t("set-picker-option",["handleClear",Et]),(Wt,xt)=>(Ce(),Ie("div",{class:He([L(R).b(),L(N).b(),{"has-sidebar":Wt.$slots.sidebar||L(le),"has-time":L(ct)}])},[ce("div",{class:He(L(R).e("body-wrapper"))},[Fn(Wt.$slots,"sidebar",{class:He(L(R).e("sidebar"))}),L(le)?(Ce(),Ie("div",{key:0,class:He(L(R).e("sidebar"))},[(Ce(!0),Ie(Ur,null,La(L(g),(at,_t)=>(Ce(),Ie("button",{key:_t,type:"button",class:He(L(R).e("shortcut")),onClick:en=>L(Z)(at)},Zn(at.text),11,F4t))),128))],2)):on("v-if",!0),ce("div",{class:He(L(R).e("body"))},[L(ct)?(Ce(),Ie("div",{key:0,class:He(L(N).e("time-header"))},[ce("span",{class:He(L(N).e("editors-wrap"))},[ce("span",{class:He(L(N).e("time-picker-wrap"))},[gt(L(Ov),{size:"small",disabled:L(F).selecting,placeholder:L(Y)("el.datepicker.startDate"),class:He(L(N).e("editor")),"model-value":L(_e),"validate-event":!1,onInput:xt[0]||(xt[0]=at=>mt(at,"min")),onChange:xt[1]||(xt[1]=at=>Ct(at,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),ea((Ce(),Ie("span",{class:He(L(N).e("time-picker-wrap"))},[gt(L(Ov),{size:"small",class:He(L(N).e("editor")),disabled:L(F).selecting,placeholder:L(Y)("el.datepicker.startTime"),"model-value":L(P),"validate-event":!1,onFocus:xt[2]||(xt[2]=at=>Fe.value=!0),onInput:xt[3]||(xt[3]=at=>bt(at,"min")),onChange:xt[4]||(xt[4]=at=>tn(at,"min"))},null,8,["class","disabled","placeholder","model-value"]),gt(L(MH),{visible:Fe.value,format:L(j),"datetime-role":"start","time-arrow-control":L(v),"parsed-value":C.value,onPick:Ft},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[L(W8),Ye]])],2),ce("span",null,[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})]),ce("span",{class:He([L(N).e("editors-wrap"),"is-right"])},[ce("span",{class:He(L(N).e("time-picker-wrap"))},[gt(L(Ov),{size:"small",class:He(L(N).e("editor")),disabled:L(F).selecting,placeholder:L(Y)("el.datepicker.endDate"),"model-value":L(M),readonly:!L(T),"validate-event":!1,onInput:xt[5]||(xt[5]=at=>mt(at,"max")),onChange:xt[6]||(xt[6]=at=>Ct(at,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ea((Ce(),Ie("span",{class:He(L(N).e("time-picker-wrap"))},[gt(L(Ov),{size:"small",class:He(L(N).e("editor")),disabled:L(F).selecting,placeholder:L(Y)("el.datepicker.endTime"),"model-value":L(U),readonly:!L(T),"validate-event":!1,onFocus:xt[7]||(xt[7]=at=>L(T)&&(We.value=!0)),onInput:xt[8]||(xt[8]=at=>bt(at,"max")),onChange:xt[9]||(xt[9]=at=>tn(at,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),gt(L(MH),{"datetime-role":"end",visible:We.value,format:L(j),"time-arrow-control":L(v),"parsed-value":S.value,onPick:It}
59,null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[L(W8),Ke]])],2)],2)):on("v-if",!0),ce("div",{class:He([[L(R).e("content"),L(N).e("content")],"is-left"])},[ce("div",{class:He(L(N).e("header"))},[ce("button",{type:"button",class:He([L(R).e("icon-btn"),"d-arrow-left"]),onClick:ye},[gt(L(Zr),null,{default:Dt(()=>[gt(L(kC))]),_:1})],2),ce("button",{type:"button",class:He([L(R).e("icon-btn"),"arrow-left"]),onClick:ie},[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1})],2),Wt.unlinkPanels?(Ce(),Ie("button",{key:0,type:"button",disabled:!L($e),class:He([[L(R).e("icon-btn"),{"is-disabled":!L($e)}],"d-arrow-right"]),onClick:be},[gt(L(Zr),null,{default:Dt(()=>[gt(L(OC))]),_:1})],10,$4t)):on("v-if",!0),Wt.unlinkPanels?(Ce(),Ie("button",{key:1,type:"button",disabled:!L(De),class:He([[L(R).e("icon-btn"),{"is-disabled":!L(De)}],"arrow-right"]),onClick:Ae},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})],10,z4t)):on("v-if",!0),ce("div",null,Zn(L(te)),1)],2),gt(zJ,{"selection-mode":"range",date:C.value,"min-date":L(T),"max-date":L(B),"range-state":L(F),"disabled-date":L(i),"cell-class-name":L(l),onChangerange:L(A),onPick:ot,onSelect:L(z)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ce("div",{class:He([[L(R).e("content"),L(N).e("content")],"is-right"])},[ce("div",{class:He(L(N).e("header"))},[Wt.unlinkPanels?(Ce(),Ie("button",{key:0,type:"button",disabled:!L($e),class:He([[L(R).e("icon-btn"),{"is-disabled":!L($e)}],"d-arrow-left"]),onClick:Te},[gt(L(Zr),null,{default:Dt(()=>[gt(L(kC))]),_:1})],10,H4t)):on("v-if",!0),Wt.unlinkPanels?(Ce(),Ie("button",{key:1,type:"button",disabled:!L(De),class:He([[L(R).e("icon-btn"),{"is-disabled":!L(De)}],"arrow-left"]),onClick:Ue},[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1})],10,V4t)):on("v-if",!0),ce("button",{type:"button",class:He([L(R).e("icon-btn"),"d-arrow-right"]),onClick:he},[gt(L(Zr),null,{default:Dt(()=>[gt(L(OC))]),_:1})],2),ce("button",{type:"button",class:He([L(R).e("icon-btn"),"arrow-right"]),onClick:re},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})],2),ce("div",null,Zn(L(V)),1)],2),gt(zJ,{"selection-mode":"range",date:S.value,"min-date":L(T),"max-date":L(B),"range-state":L(F),"disabled-date":L(i),"cell-class-name":L(l),onChangerange:L(A),onPick:ot,onSelect:L(z)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),L(ct)?(Ce(),Ie("div",{key:0,class:He(L(R).e("footer"))},[L(h)?(Ce(),yn(L(Z1),{key:0,text:"",size:"small",class:He(L(R).e("link-btn")),onClick:Et},{default:Dt(()=>[lo(Zn(L(Y)("el.datepicker.clear")),1)]),_:1},8,["class"])):on("v-if",!0),gt(L(Z1),{plain:"",size:"small",class:He(L(R).e("link-btn")),disabled:L(rt),onClick:xt[10]||(xt[10]=at=>L(X)(!1))},{default:Dt(()=>[lo(Zn(L(Y)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):on("v-if",!0)],2))}});var j4t=vr(U4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const W4t=hr({...rme}),G4t=["pick","set-picker-option"],K4t=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Ni(),i=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},l=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},u=()=>{t.value=t.value.add(1,"year")},f=()=>{n.value=n.value.subtract(1,"year")},v=Ne(()=>`${t.value.year()} ${r("el.datepicker.year")}`),h=Ne(()=>`${n.value.year()} ${r("el.datepicker.year")}`),g=Ne(()=>t.value.year()),y=Ne(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:i,rightNextYear:l,leftNextYear:u,rightPrevYear:f,leftLabel:v,rightLabel:h,leftYear:g,rightYear:y}},Y4t=["onClick"],q4t=["disabled"],X4t=["disabled"],Z$="year",Z4t=Zt({name:"DatePickerMonthRange"}),Q4t=Zt({...Z4t,props:W4t,emits:G4t,setup(e,{emit:t}){const n=e,{lang:r}=Ni(),i=jr("EP_PICKER_BASE"),{shortcuts:l,disabledDate:u,format:f}=i.props,v=Kl(i.props,"defaultValue"),h=et(wa().locale(r.value)),g=et(wa().locale(r.value).add(1,Z$)),{minDate:y,maxDate:w,rangeState:C,ppNs:S,drpNs:T,handleChangeRange:B,handleRangeConfirm:F,handleShortcutClick:R,onSelect:N}=ime(n,{defaultValue:v,leftDate:h,rightDate:g,unit:Z$,onParsedValueChanged:ne}),A=Ne(()=>!!l.length),{leftPrevYear:X,rightNextYear:Z,leftNextYear:z,rightPrevYear:Y,leftLabel:Q,rightLabel:$,leftYear:te,rightYear:V}=K4t({unlinkPanels:Kl(n,"unlinkPanels"),leftDate:h,rightDate:g}),K=Ne(()=>n.unlinkPanels&&V.value>te.value+1),fe=(le,_e=!0)=>{const M=le.minDate,P=le.maxDate;w.value===P&&y.value===M||(w.value=P,y.value=M,_e&&F())},de=le=>le.map(_e=>_e.format(f));function ne(le,_e){if(n.unlinkPanels&&_e){const M=(le==null?void 0:le.year())||0,P=_e.year();g.value=M===P?_e.add(1,Z$):_e}else g.value=h.value.add(1,Z$)}return t("set-picker-option",["formatToString",de]),(le,_e)=>(Ce(),Ie("div",{class:He([L(S).b(),L(T).b(),{"has-sidebar":Boolean(le.$slots.sidebar)||L(A)}])},[ce("div",{class:He(L(S).e("body-wrapper"))},[Fn(le.$slots,"sidebar",{class:He(L(S).e("sidebar"))}),L(A)?(Ce(),Ie("div",{key:0,class:He(L(S).e("sidebar"))},[(Ce(!0),Ie(Ur,null,La(L(l),(M,P)=>(Ce(),Ie("button",{key:P,type:"button",class:He(L(S).e("shortcut")),onClick:U=>L(R)(M)},Zn(M.text),11,Y4t))),128))],2)):on("v-if",!0),ce("div",{class:He(L(S).e("body"))},[ce("div",{class:He([[L(S).e("content"),L(T).e("content")],"is-left"])},[ce("div",{class:He(L(T).e("header"))},[ce("button",{type:"button",class:He([L(S).e("icon-btn"),"d-arrow-left"]),onClick:_e[0]||(_e[0]=(...M)=>L(X)&&L(X)(...M))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(kC))]),_:1}
59)],2),le.unlinkPanels?(Ce(),Ie("button",{key:0,type:"button",disabled:!L(K),class:He([[L(S).e("icon-btn"),{[L(S).is("disabled")]:!L(K)}],"d-arrow-right"]),onClick:_e[1]||(_e[1]=(...M)=>L(z)&&L(z)(...M))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(OC))]),_:1})],10,q4t)):on("v-if",!0),ce("div",null,Zn(L(Q)),1)],2),gt(HJ,{"selection-mode":"range",date:h.value,"min-date":L(y),"max-date":L(w),"range-state":L(C),"disabled-date":L(u),onChangerange:L(B),onPick:fe,onSelect:L(N)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),ce("div",{class:He([[L(S).e("content"),L(T).e("content")],"is-right"])},[ce("div",{class:He(L(T).e("header"))},[le.unlinkPanels?(Ce(),Ie("button",{key:0,type:"button",disabled:!L(K),class:He([[L(S).e("icon-btn"),{"is-disabled":!L(K)}],"d-arrow-left"]),onClick:_e[2]||(_e[2]=(...M)=>L(Y)&&L(Y)(...M))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(kC))]),_:1})],10,X4t)):on("v-if",!0),ce("button",{type:"button",class:He([L(S).e("icon-btn"),"d-arrow-right"]),onClick:_e[3]||(_e[3]=(...M)=>L(Z)&&L(Z)(...M))},[gt(L(Zr),null,{default:Dt(()=>[gt(L(OC))]),_:1})],2),ce("div",null,Zn(L($)),1)],2),gt(HJ,{"selection-mode":"range",date:g.value,"min-date":L(y),"max-date":L(w),"range-state":L(C),"disabled-date":L(u),onChangerange:L(B),onPick:fe,onSelect:L(N)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var J4t=vr(Q4t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const e3t=function(e){switch(e){case"daterange":case"datetimerange":return j4t;case"monthrange":return J4t;default:return L4t}};wa.extend(Epe);wa.extend(Xbt);wa.extend(dne);wa.extend(Zbt);wa.extend(Qbt);wa.extend(Jbt);wa.extend(e4t);wa.extend(t4t);var t3t=Zt({name:"ElDatePicker",install:null,props:n4t,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const i=Vn("picker-panel");$a("ElPopperOptions",gi(Kl(e,"popperOptions"))),$a(mne,{slots:r,pickerNs:i});const l=et();t({focus:(v=!0)=>{var h;(h=l.value)==null||h.focus(v)},handleOpen:()=>{var v;(v=l.value)==null||v.handleOpen()},handleClose:()=>{var v;(v=l.value)==null||v.handleClose()}});const f=v=>{n("update:modelValue",v)};return()=>{var v;const h=(v=e.format)!=null?v:Kmt[e.type]||uA,g=e3t(e.type);return gt(fpe,Pa(e,{format:h,type:e.type,ref:l,"onUpdate:modelValue":f}),{default:y=>gt(g,y,null),"range-separator":r["range-separator"]})}}});const Uz=t3t;Uz.install=e=>{e.component(Uz.name,Uz)};const n3t=Uz,yne=Symbol("elDescriptions");var _D=Zt({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:jr(yne,{})}},render(){var e,t,n,r,i,l;const u=Zdt(this.cell),{border:f,direction:v}=this.descriptions,h=v==="vertical",g=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||u.label,y=(l=(i=(r=this.cell)==null?void 0:r.children)==null?void 0:i.default)==null?void 0:l.call(i),w=u.span,C=u.align?`is-${u.align}`:"",S=u.labelAlign?`is-${u.labelAlign}`:C,T=u.className,B=u.labelClassName,F={width:Nc(u.width),minWidth:Nc(u.minWidth)},R=Vn("descriptions");switch(this.type){case"label":return oo(this.tag,{style:F,class:[R.e("cell"),R.e("label"),R.is("bordered-label",f),R.is("vertical-label",h),S,B],colSpan:h?w:1},g);case"content":return oo(this.tag,{style:F,class:[R.e("cell"),R.e("content"),R.is("bordered-content",f),R.is("vertical-content",h),C,T],colSpan:h?w:w*2-1},y);default:return oo("td",{style:F,class:[R.e("cell"),C],colSpan:w},[jf(g)?void 0:oo("span",{class:[R.e("label"),B]},g),oo("span",{class:[R.e("content"),T]},y)])}}});const r3t=hr({row:{type:Array,default:()=>[]}}),o3t={key:1},a3t=Zt({name:"ElDescriptionsRow"}),i3t=Zt({...a3t,props:r3t,setup(e){const t=jr(yne,{});return(n,r)=>L(t).direction==="vertical"?(Ce(),Ie(Ur,{key:0},[ce("tr",null,[(Ce(!0),Ie(Ur,null,La(n.row,(i,l)=>(Ce(),yn(L(_D),{key:`tr1-${l}`,cell:i,tag:"th",type:"label"},null,8,["cell"]))),128))]),ce("tr",null,[(Ce(!0),Ie(Ur,null,La(n.row,(i,l)=>(Ce(),yn(L(_D),{key:`tr2-${l}`,cell:i,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(Ce(),Ie("tr",o3t,[(Ce(!0),Ie(Ur,null,La(n.row,(i,l)=>(Ce(),Ie(Ur,{key:`tr3-${l}`},[L(t).border?(Ce(),Ie(Ur,{key:0},[gt(L(_D),{cell:i,tag:"td",type:"label"},null,8,["cell"]),gt(L(_D),{cell:i,tag:"td",type:"content"},null,8,["cell"])],64)):(Ce(),yn(L(_D),{key:1,cell:i,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var s3t=vr(i3t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const l3t=hr({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ev,title:{type:String,default:""},extra:{type:String,default:""}}),u3t=Zt({name:"ElDescriptions"}),c3t=Zt({...u3t,props:l3t,setup(e){const t=e,n=Vn("descriptions"),r=Kf(),i=g1();$a(yne,t);const l=Ne(()=>[n.b(),n.m(r.value)]),u=(v,h,g,y=!1)=>(v.props||(v.props={}),h>g&&(v.props.span=g),y&&(v.props.span=h),v),f=()=>{var v;
59const h=OA((v=i.default)==null?void 0:v.call(i)).filter(S=>{var T;return((T=S==null?void 0:S.type)==null?void 0:T.name)==="ElDescriptionsItem"}),g=[];let y=[],w=t.column,C=0;return h.forEach((S,T)=>{var B;const F=((B=S.props)==null?void 0:B.span)||1;if(T<h.length-1&&(C+=F>w?w:F),T===h.length-1){const R=t.column-C%t.column;y.push(u(S,R,w,!0)),g.push(y);return}F<w?(w-=F,y.push(S)):(y.push(u(S,F,w)),g.push(y),w=t.column,y=[])}),g};return(v,h)=>(Ce(),Ie("div",{class:He(L(l))},[v.title||v.extra||v.$slots.title||v.$slots.extra?(Ce(),Ie("div",{key:0,class:He(L(n).e("header"))},[ce("div",{class:He(L(n).e("title"))},[Fn(v.$slots,"title",{},()=>[lo(Zn(v.title),1)])],2),ce("div",{class:He(L(n).e("extra"))},[Fn(v.$slots,"extra",{},()=>[lo(Zn(v.extra),1)])],2)],2)):on("v-if",!0),ce("div",{class:He(L(n).e("body"))},[ce("table",{class:He([L(n).e("table"),L(n).is("bordered",v.border)])},[ce("tbody",null,[(Ce(!0),Ie(Ur,null,La(f(),(g,y)=>(Ce(),yn(s3t,{key:y,row:g},null,8,["row"]))),128))])],2)],2)],2))}});var f3t=vr(c3t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),sme=Zt({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const d3t=Ca(f3t,{DescriptionsItem:sme}),v3t=qu(sme),h3t=hr({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:gn([String,Array,Object])},zIndex:{type:gn([String,Number])}}),p3t={click:e=>e instanceof MouseEvent},m3t="overlay";var g3t=Zt({name:"ElOverlay",props:h3t,emits:p3t,setup(e,{slots:t,emit:n}){const r=Vn(m3t),i=v=>{n("click",v)},{onClick:l,onMousedown:u,onMouseup:f}=ene(e.customMaskEvent?void 0:i);return()=>e.mask?gt("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:u,onMouseup:f},[Fn(t,"default")],Cm.STYLE|Cm.CLASS|Cm.PROPS,["onClick","onMouseup","onMousedown"]):oo("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Fn(t,"default")])}});const bne=g3t,lme=Symbol("dialogInjectionKey"),ume=hr({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:xl},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),y3t={close:()=>!0},b3t=["aria-label"],_3t=["id"],w3t=Zt({name:"ElDialogContent"}),C3t=Zt({...w3t,props:ume,emits:y3t,setup(e){const t=e,{t:n}=Ni(),{Close:r}=Zhe,{dialogRef:i,headerRef:l,bodyId:u,ns:f,style:v}=jr(lme),{focusTrapRef:h}=jr(une),g=OV(h,i),y=Ne(()=>t.draggable);return e0e(i,l,y),(w,C)=>(Ce(),Ie("div",{ref:L(g),class:He([L(f).b(),L(f).is("fullscreen",w.fullscreen),L(f).is("draggable",L(y)),L(f).is("align-center",w.alignCenter),{[L(f).m("center")]:w.center},w.customClass]),style:Pr(L(v)),tabindex:"-1"},[ce("header",{ref_key:"headerRef",ref:l,class:He(L(f).e("header"))},[Fn(w.$slots,"header",{},()=>[ce("span",{role:"heading",class:He(L(f).e("title"))},Zn(w.title),3)]),w.showClose?(Ce(),Ie("button",{key:0,"aria-label":L(n)("el.dialog.close"),class:He(L(f).e("headerbtn")),type:"button",onClick:C[0]||(C[0]=S=>w.$emit("close"))},[gt(L(Zr),{class:He(L(f).e("close"))},{default:Dt(()=>[(Ce(),yn(Fa(w.closeIcon||L(r))))]),_:1},8,["class"])],10,b3t)):on("v-if",!0)],2),ce("div",{id:L(u),class:He(L(f).e("body"))},[Fn(w.$slots,"default")],10,_3t),w.$slots.footer?(Ce(),Ie("footer",{key:0,class:He(L(f).e("footer"))},[Fn(w.$slots,"footer")],2)):on("v-if",!0)],6))}});var x3t=vr(C3t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const cme=hr({...ume,appendToBody:{type:Boolean,default:!1},beforeClose:{type:gn(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),fme={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ma]:e=>Wf(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dme=(e,t)=>
59{const r=va().emit,{nextZIndex:i}=m7();let l="";const u=Lm(),f=Lm(),v=et(!1),h=et(!1),g=et(!1),y=et(e.zIndex||i());let w,C;const S=PV("namespace",SH),T=Ne(()=>{const fe={},de=`--${S.value}-dialog`;return e.fullscreen||(e.top&&(fe[`${de}-margin-top`]=e.top),e.width&&(fe[`${de}-width`]=Nc(e.width))),fe}),B=Ne(()=>e.alignCenter?{display:"flex"}:{});function F(){r("opened")}function R(){r("closed"),r(Ma,!1),e.destroyOnClose&&(g.value=!1)}function N(){r("close")}function A(){C==null||C(),w==null||w(),e.openDelay&&e.openDelay>0?{stop:w}=TC(()=>Y(),e.openDelay):Y()}function X(){w==null||w(),C==null||C(),e.closeDelay&&e.closeDelay>0?{stop:C}=TC(()=>Q(),e.closeDelay):Q()}function Z(){function fe(de){de||(h.value=!0,v.value=!1)}e.beforeClose?e.beforeClose(fe):X()}function z(){e.closeOnClickModal&&Z()}function Y(){!_i||(v.value=!0)}function Q(){v.value=!1}function $(){r("openAutoFocus")}function te(){r("closeAutoFocus")}function V(fe){var de;((de=fe.detail)==null?void 0:de.focusReason)==="pointer"&&fe.preventDefault()}e.lockScroll&&r0e(v);function K(){e.closeOnPressEscape&&Z()}return $n(()=>e.modelValue,fe=>{fe?(h.value=!1,A(),g.value=!0,y.value=e.zIndex?y.value++:i(),Gr(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):v.value&&X()}),$n(()=>e.fullscreen,fe=>{!t.value||(fe?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)}),ia(()=>{e.modelValue&&(v.value=!0,g.value=!0,A())}),{afterEnter:F,afterLeave:R,beforeLeave:N,handleClose:Z,onModalClick:z,close:X,doClose:Q,onOpenAutoFocus:$,onCloseAutoFocus:te,onCloseRequested:K,onFocusoutPrevented:V,titleId:u,bodyId:f,closed:h,style:T,overlayDialogStyle:B,rendered:g,visible:v,zIndex:y}},E3t=["aria-label","aria-labelledby","aria-describedby"],S3t=Zt({name:"ElDialog",inheritAttrs:!1}),T3t=Zt({...S3t,props:cme,emits:fme,setup(e,{expose:t}){const n=e,r=g1();cb({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},Ne(()=>!!r.title)),cb({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},Ne(()=>!!n.customClass));const i=Vn("dialog"),l=et(),u=et(),f=et(),{visible:v,titleId:h,bodyId:g,style:y,overlayDialogStyle:w,rendered:C,zIndex:S,afterEnter:T,afterLeave:B,beforeLeave:F,handleClose:R,onModalClick:N,onOpenAutoFocus:A,onCloseAutoFocus:X,onCloseRequested:Z,onFocusoutPrevented:z}=dme(n,l);$a(lme,{dialogRef:l,headerRef:u,bodyId:g,ns:i,rendered:C,style:y});const Y=ene(N),Q=Ne(()=>n.draggable&&!n.fullscreen);return t({visible:v,dialogContentRef:f}),($,te)=>(Ce(),yn(KI,{to:"body",disabled:!$.appendToBody},[gt(Ic,{name:"dialog-fade",onAfterEnter:L(T),onAfterLeave:L(B),onBeforeLeave:L(F),persisted:""},{default:Dt(()=>[ea(gt(L(bne),{"custom-mask-event":"",mask:$.modal,"overlay-class":$.modalClass,"z-index":L(S)},{default:Dt(()=>
59[ce("div",{role:"dialog","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:L(h),"aria-describedby":L(g),class:He(`${L(i).namespace.value}-overlay-dialog`),style:Pr(L(w)),onClick:te[0]||(te[0]=(...V)=>L(Y).onClick&&L(Y).onClick(...V)),onMousedown:te[1]||(te[1]=(...V)=>L(Y).onMousedown&&L(Y).onMousedown(...V)),onMouseup:te[2]||(te[2]=(...V)=>L(Y).onMouseup&&L(Y).onMouseup(...V))},[gt(L(zV),{loop:"",trapped:L(v),"focus-start-el":"container",onFocusAfterTrapped:L(A),onFocusAfterReleased:L(X),onFocusoutPrevented:L(z),onReleaseRequested:L(Z)},{default:Dt(()=>[L(C)?(Ce(),yn(x3t,Pa({key:0,ref_key:"dialogContentRef",ref:f},$.$attrs,{"custom-class":$.customClass,center:$.center,"align-center":$.alignCenter,"close-icon":$.closeIcon,draggable:L(Q),fullscreen:$.fullscreen,"show-close":$.showClose,title:$.title,onClose:L(R)}),b3({header:Dt(()=>[$.$slots.title?Fn($.$slots,"title",{key:1}):Fn($.$slots,"header",{key:0,close:L(R),titleId:L(h),titleClass:L(i).e("title")})]),default:Dt(()=>[Fn($.$slots,"default")]),_:2},[$.$slots.footer?{name:"footer",fn:Dt(()=>[Fn($.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):on("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,E3t)]),_:3},8,["mask","overlay-class","z-index"]),[[Ti,L(v)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var A3t=vr(T3t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const k3t=Ca(A3t),O3t=hr({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:gn(String),default:"solid"}}),M3t=Zt({name:"ElDivider"}),N3t=Zt({...M3t,props:O3t,setup(e){const t=e,n=Vn("divider"),r=Ne(()=>n.cssVar({"border-style":t.borderStyle}));return(i,l)=>(Ce(),Ie("div",{class:He([L(n).b(),L(n).m(i.direction)]),style:Pr(L(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(Ce(),Ie("div",{key:0,class:He([L(n).e("text"),L(n).is(i.contentPosition)])},[Fn(i.$slots,"default")],2)):on("v-if",!0)],6))}});var D3t=vr(N3t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const vme=Ca(D3t),I3t=hr({...cme,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),R3t=fme,L3t=Zt({name:"ElDrawer",components:{ElOverlay:bne,ElFocusTrap:zV,ElIcon:Zr,Close:Dm},inheritAttrs:!1,props:I3t,emits:R3t,setup(e,{slots:t}){cb({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Ne(()=>!!t.title)),cb({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},Ne(()=>!!e.customClass));const n=et(),r=et(),i=Vn("drawer"),{t:l}=Ni(),u=Ne(()=>e.direction==="rtl"||e.direction==="ltr"),f=Ne(()=>Nc(e.size));return{...dme(e,n),drawerRef:n,focusStartRef:r,isHorizontal:u,drawerSize:f,ns:i,t:l}}}),B3t=["aria-label","aria-labelledby","aria-describedby"],P3t=["id"],F3t=["aria-label"],$3t=["id"];function z3t(e,t,n,r,i,l){const u=Kr("close"),f=Kr("el-icon"),v=Kr("el-focus-trap"),h=Kr("el-overlay");return Ce(),yn(KI,{to:"body",disabled:!e.appendToBody},[gt(Ic,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Dt(()=>[ea(gt(h,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Dt(()=>[gt(v,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Dt(()=>
59[ce("div",Pa({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Do(()=>{},["stop"]))}),[ce("span",{ref:"focusStartRef",class:He(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(Ce(),Ie("header",{key:0,class:He(e.ns.e("header"))},[e.$slots.title?Fn(e.$slots,"title",{key:1},()=>[on(" DEPRECATED SLOT ")]):Fn(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?on("v-if",!0):(Ce(),Ie("span",{key:0,id:e.titleId,role:"heading",class:He(e.ns.e("title"))},Zn(e.title),11,P3t))]),e.showClose?(Ce(),Ie("button",{key:2,"aria-label":e.t("el.drawer.close"),class:He(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[gt(f,{class:He(e.ns.e("close"))},{default:Dt(()=>[gt(u)]),_:1},8,["class"])],10,F3t)):on("v-if",!0)],2)):on("v-if",!0),e.rendered?(Ce(),Ie("div",{key:1,id:e.bodyId,class:He(e.ns.e("body"))},[Fn(e.$slots,"default")],10,$3t)):on("v-if",!0),e.$slots.footer?(Ce(),Ie("div",{key:2,class:He(e.ns.e("footer"))},[Fn(e.$slots,"footer")],2)):on("v-if",!0)],16,B3t)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Ti,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var H3t=vr(L3t,[["render",z3t],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const V3t=Ca(H3t),U3t=Zt({inheritAttrs:!1});function j3t(e,t,n,r,i,l){return Fn(e.$slots,"default")}var W3t=vr(U3t,[["render",j3t],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const G3t=Zt({name:"ElCollectionItem",inheritAttrs:!1});function K3t(e,t,n,r,i,l){return Fn(e.$slots,"default")}var Y3t=vr(G3t,[["render",K3t],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const hme="data-el-collection-item",pme=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),l={...W3t,name:t,setup(){const f=et(null),v=new Map;$a(r,{itemMap:v,getItems:()=>{const g=L(f);if(!g)return[];const y=Array.from(g.querySelectorAll(`[${hme}]`));return[...v.values()].sort((C,S)=>y.indexOf(C.ref)-y.indexOf(S.ref))},collectionRef:f})}},u={...Y3t,name:n,setup(f,{attrs:v}){const h=et(null),g=jr(r,void 0);$a(i,{collectionItemRef:h}),ia(()=>{const y=L(h);y&&g.itemMap.set(y,{ref:y,...v})}),Bl(()=>{const y=L(h);g.itemMap.delete(y)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:l,ElCollectionItem:u}},q3t=hr({style:{type:gn([String,Array,Object])},currentTabId:{type:gn(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:gn(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:X3t,ElCollectionItem:Z3t,COLLECTION_INJECTION_KEY:_ne,COLLECTION_ITEM_INJECTION_KEY:Q3t}=pme("RovingFocusGroup"),wne=Symbol("elRovingFocusGroup"),mme=Symbol("elRovingFocusGroupItem"),J3t={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},e6t=(e,t)=>{if(t!=="rtl")return e;switch(e){case ao.right:return ao.left;case ao.left:return ao.right;default:return e}}
59,t6t=(e,t,n)=>{const r=e6t(e.key,n);if(!(t==="vertical"&&[ao.left,ao.right].includes(r))&&!(t==="horizontal"&&[ao.up,ao.down].includes(r)))return J3t[r]},n6t=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),Cne=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Kle="currentTabIdChange",Yle="rovingFocusGroup.entryFocus",r6t={bubbles:!1,cancelable:!0},o6t=Zt({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:q3t,emits:[Kle,"entryFocus"],setup(e,{emit:t}){var n;const r=et((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),i=et(!1),l=et(!1),u=et(null),{getItems:f}=jr(_ne,void 0),v=Ne(()=>[{outline:"none"},e.style]),h=T=>{t(Kle,T)},g=()=>{i.value=!0},y=Yu(T=>{var B;(B=e.onMousedown)==null||B.call(e,T)},()=>{l.value=!0}),w=Yu(T=>{var B;(B=e.onFocus)==null||B.call(e,T)},T=>{const B=!L(l),{target:F,currentTarget:R}=T;if(F===R&&B&&!L(i)){const N=new Event(Yle,r6t);if(R==null||R.dispatchEvent(N),!N.defaultPrevented){const A=f().filter(Q=>Q.focusable),X=A.find(Q=>Q.active),Z=A.find(Q=>
59Q.id===L(r)),Y=[X,Z,...A].filter(Boolean).map(Q=>Q.ref);Cne(Y)}}l.value=!1}),C=Yu(T=>{var B;(B=e.onBlur)==null||B.call(e,T)},()=>{i.value=!1}),S=(...T)=>{t("entryFocus",...T)};$a(wne,{currentTabbedId:u7(r),loop:Kl(e,"loop"),tabIndex:Ne(()=>L(i)?-1:0),rovingFocusGroupRef:u,rovingFocusGroupRootStyle:v,orientation:Kl(e,"orientation"),dir:Kl(e,"dir"),onItemFocus:h,onItemShiftTab:g,onBlur:C,onFocus:w,onMousedown:y}),$n(()=>e.currentTabId,T=>{r.value=T!=null?T:null}),Yl(u,Yle,S)}});function a6t(e,t,n,r,i,l){return Fn(e.$slots,"default")}var i6t=vr(o6t,[["render",a6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const s6t=Zt({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:X3t,ElRovingFocusGroupImpl:i6t}});function l6t(e,t,n,r,i,l){const u=Kr("el-roving-focus-group-impl"),f=Kr("el-focus-group-collection");return Ce(),yn(f,null,{default:Dt(()=>[gt(u,qg(sV(e.$attrs)),{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},16)]),_:3})}var u6t=vr(s6t,[["render",l6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const c6t=Zt({components:{ElRovingFocusCollectionItem:Z3t},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:i,onItemShiftTab:l}=jr(wne,void 0),{getItems:u}=jr(_ne,void 0),f=Lm(),v=et(null),h=Yu(C=>{t("mousedown",C)},C=>{e.focusable?i(L(f)):C.preventDefault()}),g=Yu(C=>{t("focus",C)},()=>{i(L(f))}),y=Yu(C=>{t("keydown",C)},C=>{const{key:S,shiftKey:T,target:B,currentTarget:F}=C;if(S===ao.tab&&T){l();return}if(B!==F)return;const R=t6t(C);if(R){C.preventDefault();let A=u().filter(X=>X.focusable).map(X=>X.ref);switch(R){case"last":{A.reverse();break}case"prev":case"next":{R==="prev"&&A.reverse();const X=A.indexOf(F);A=r.value?n6t(A,X+1):A.slice(X+1);break}}Gr(()=>{Cne(A)})}}),w=Ne(()=>n.value===L(f));return $a(mme,{rovingFocusGroupItemRef:v,tabIndex:Ne(()=>L(w)?0:-1),handleMousedown:h,handleFocus:g,handleKeydown:y}),{id:f,handleKeydown:y,handleFocus:g,handleMousedown:h}}});function f6t(e,t,n,r,i,l){const u=Kr("el-roving-focus-collection-item");
59return Ce(),yn(u,{id:e.id,focusable:e.focusable,active:e.active},{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var d6t=vr(c6t,[["render",f6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const jz=hr({trigger:MI.trigger,effect:{...h1.effect,default:"light"},type:{type:gn(String)},placement:{type:gn(String),default:"bottom"},popperOptions:{type:gn(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:gn([Number,String]),default:0},maxHeight:{type:gn([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:gn(Object)},teleported:h1.teleported}),gme=hr({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:xl}}),v6t=hr({onKeydown:{type:gn(Function)}}),h6t=[ao.down,ao.pageDown,ao.home],yme=[ao.up,ao.pageUp,ao.end],p6t=[...h6t,...yme],{ElCollection:m6t,ElCollectionItem:g6t,COLLECTION_INJECTION_KEY:y6t,COLLECTION_ITEM_INJECTION_KEY:b6t}=pme("Dropdown"),UV=Symbol("elDropdown"),{ButtonGroup:_6t}=Z1,w6t=Zt({name:"ElDropdown",components:{ElButton:Z1,ElButtonGroup:_6t,ElScrollbar:D3,ElDropdownCollection:m6t,ElTooltip:Ch,ElRovingFocusGroup:u6t,ElOnlyChild:U0e,ElIcon:Zr,ArrowDown:O3},props:jz,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=va(),r=Vn("dropdown"),{t:i}=Ni(),l=et(),u=et(),f=et(null),v=et(null),h=et(null),g=et(null),y=et(!1),w=[ao.enter,ao.space,ao.down],C=Ne(()=>({maxHeight:Nc(e.maxHeight)})),S=Ne(()=>[r.m(A.value)]),T=Lm().value,B=Ne(()=>e.id||T);$n([l,Kl(e,"trigger")],([ne,le],[_e])=>{var M,P,U;const j=Oa(le)?le:[le];(M=_e==null?void 0:_e.$el)!=null&&M.removeEventListener&&_e.$el.removeEventListener("pointerenter",Z),(P=ne==null?void 0:ne.$el)!=null&&P.removeEventListener&&ne.$el.removeEventListener("pointerenter",Z),((U=ne==null?void 0:ne.$el)==null?void 0:U.addEventListener)&&j.includes("hover")&&ne.$el.addEventListener("pointerenter",Z)},{immediate:!0}),Bl(()=>{var ne,le;(le=(ne=l.value)==null?void 0:ne.$el)!=null&&le.removeEventListener&&l.value.$el.removeEventListener("pointerenter",Z)});function F(){R()}function R(){var ne;(ne=f.value)==null||ne.onClose()}function N(){var ne;(ne=f.value)==null||ne.onOpen()}const A=Kf();function X(...ne){t("command",...ne)}function Z(){var ne,le;(le=(ne=l.value)==null?void 0:ne.$el)==null||le.focus()}function z(){}function Y(){const ne=L(v);ne==null||ne.focus(),g.value=null}function Q(ne){g.value=ne}function $(ne){y.value||(ne.preventDefault(),ne.stopImmediatePropagation())}function te(){t("visible-change",!0)}function V(ne){(ne==null?void 0:ne.type)==="keydown"&&v.value.focus()}function K(){t("visible-change",!1)}return $a(UV,{contentRef:v,role:Ne(()=>e.role),triggerId:B,isUsingKeyboard:y,onItemEnter:z,onItemLeave:Y}),$a("elDropdown",{instance:n,dropdownSize:A,handleClick:F,commandHandler:X,trigger:Kl(e,"trigger"),hideOnClick:Kl(e,"hideOnClick")}),{t:i,ns:r,scrollbar:h,wrapStyle:C,dropdownTriggerKls:S,dropdownSize:A,triggerId:B,triggerKeys:w,currentTabId:g,handleCurrentTabIdChange:Q,handlerMainButtonClick:ne=>{t("click",ne)},handleEntryFocus:$,handleClose:R,handleOpen:N,handleBeforeShowTooltip:te,handleShowTooltip:V,handleBeforeHideTooltip:K,onFocusAfterTrapped:ne=>{var le,_e;ne.preventDefault(),(_e=(le=v.value)==null?void 0:le.focus)==null||_e.call(le,{preventScroll:!0})},popperRef:f,contentRef:v,triggeringElementRef:l,referenceElementRef:u}}});function C6t(e,t,n,r,i,l){var u;const f=Kr("el-dropdown-collection"),v=Kr("el-roving-focus-group"),h=Kr("el-scrollbar"),g=Kr("el-only-child"),y=Kr("el-tooltip"),w=Kr("el-button"),C=Kr("arrow-down"),S=Kr("el-icon"),T=Kr("el-button-group");return Ce(),Ie("div",{class:He([e.ns.b(),e.ns.is("disabled",e.disabled)])},[gt(y,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(u=e.referenceElementRef)==null?void 0:u.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},b3({content:Dt(()=>[gt(h,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Dt(()=>[gt(v,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdC
59hange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Dt(()=>[gt(f,null,{default:Dt(()=>[Fn(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Dt(()=>[gt(g,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(Ce(),yn(T,{key:0},{default:Dt(()=>[gt(w,Pa({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),gt(w,Pa({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Dt(()=>[gt(S,{class:He(e.ns.e("icon"))},{default:Dt(()=>[gt(C)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):on("v-if",!0)],2)}var x6t=vr(w6t,[["render",C6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const E6t=Zt({name:"DropdownItemImpl",components:{ElIcon:Zr},props:gme,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Vn("dropdown"),{role:r}=jr(UV,void 0),{collectionItemRef:i}=jr(b6t,void 0),{collectionItemRef:l}=jr(Q3t,void 0),{rovingFocusGroupItemRef:u,tabIndex:f,handleFocus:v,handleKeydown:h,handleMousedown:g}=jr(mme,void 0),y=OV(i,l,u),w=Ne(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),C=Yu(S=>{const{code:T}=S;if(T===ao.enter||T===ao.space)return S.preventDefault(),S.stopImmediatePropagation(),t("clickimpl",S),!0},h);return{ns:n,itemRef:y,dataset:{[hme]:""},role:w,tabIndex:f,handleFocus:v,handleKeydown:C,handleMousedown:g}}}),S6t=["aria-disabled","tabindex","role"];function T6t(e,t,n,r,i,l){const u=Kr("el-icon");return Ce(),Ie(Ur,null,[e.divided?(Ce(),Ie("li",Pa({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):on("v-if",!0),ce("li",Pa({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=f=>e.$emit("clickimpl",f)),onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onKeydown:t[2]||(t[2]=Do((...f)=>e.handleKeydown&&e.handleKeydown(...f),["self"])),onMousedown:t[3]||(t[3]=(...f)=>e.handleMousedown&&e.handleMousedown(...f)),onPointermove:t[4]||(t[4]=f=>e.$emit("pointermove",f)),onPointerleave:t[5]||(t[5]=f=>e.$emit("pointerleave",f))}),[e.icon?(Ce(),yn(u,{key:0},{default:Dt(()=>[(Ce(),yn(Fa(e.icon)))]),_:1})):on("v-if",!0),Fn(e.$slots,"default")],16,S6t)],64)}var A6t=vr(E6t,[["render",T6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const bme=()=>{const e=jr("elDropdown",{}),t=Ne(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},k6t=Zt({name:"ElDropdownItem",components:{ElDropdownCollectionItem:g6t,ElRovingFocusItem:d6t,ElDropdownItemImpl:A6t},inheritAttrs:!1,props:gme,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=bme(),i=va(),l=et(null),u=Ne(()=>{var C,S;return(S=(C=L(l))==null?void 0:C.textContent)!=null?S:""}),{onItemEnter:f,onItemLeave:v}=jr(UV,void 0),h=Yu(C=>(t("pointermove",C),C.defaultPrevented),Xie(C=>{if(e.disabled){v(C);return}const S=C.currentTarget;S===document.activeElement||S.contains(document.activeElement)||(f(C),C.defaultPrevented||S==null||S.focus())})),g=Yu(C=>(t("pointerleave",C),C.defaultPrevented),Xie(C=>{v(C)}
59)),y=Yu(C=>{if(!e.disabled)return t("click",C),C.type!=="keydown"&&C.defaultPrevented},C=>{var S,T,B;if(e.disabled){C.stopImmediatePropagation();return}(S=r==null?void 0:r.hideOnClick)!=null&&S.value&&((T=r.handleClick)==null||T.call(r)),(B=r.commandHandler)==null||B.call(r,e.command,i,C)}),w=Ne(()=>({...e,...n}));return{handleClick:y,handlePointerMove:h,handlePointerLeave:g,textContent:u,propsAndAttrs:w}}});function O6t(e,t,n,r,i,l){var u;const f=Kr("el-dropdown-item-impl"),v=Kr("el-roving-focus-item"),h=Kr("el-dropdown-collection-item");return Ce(),yn(h,{disabled:e.disabled,"text-value":(u=e.textValue)!=null?u:e.textContent},{default:Dt(()=>[gt(v,{focusable:!e.disabled},{default:Dt(()=>[gt(f,Pa(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var _me=vr(k6t,[["render",O6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const M6t=Zt({name:"ElDropdownMenu",props:v6t,setup(e){const t=Vn("dropdown"),{_elDropdownSize:n}=bme(),r=n.value,{focusTrapRef:i,onKeydown:l}=jr(une,void 0),{contentRef:u,role:f,triggerId:v}=jr(UV,void 0),{collectionRef:h,getItems:g}=jr(y6t,void 0),{rovingFocusGroupRef:y,rovingFocusGroupRootStyle:w,tabIndex:C,onBlur:S,onFocus:T,onMousedown:B}=jr(wne,void 0),{collectionRef:F}=jr(_ne,void 0),R=Ne(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),N=OV(u,h,i,y,F),A=Yu(Z=>{var z;(z=e.onKeydown)==null||z.call(e,Z)},Z=>{const{currentTarget:z,code:Y,target:Q}=Z;if(z.contains(Q),ao.tab===Y&&Z.stopImmediatePropagation(),Z.preventDefault(),Q!==L(u)||!p6t.includes(Y))return;const te=g().filter(V=>!V.disabled).map(V=>V.ref);yme.includes(Y)&&te.reverse(),Cne(te)});return{size:r,rovingFocusGroupRootStyle:w,tabIndex:C,dropdownKls:R,role:f,triggerId:v,dropdownListWrapperRef:N,handleKeydown:Z=>{A(Z),l(Z)},onBlur:S,onFocus:T,onMousedown:B}}}),N6t=["role","aria-labelledby"];function D6t(e,t,n,r,i,l){return Ce(),Ie("ul",{ref:e.dropdownListWrapperRef,class:He(e.dropdownKls),style:Pr(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...u)=>e.onBlur&&e.onBlur(...u)),onFocus:t[1]||(t[1]=(...u)=>e.onFocus&&e.onFocus(...u)),onKeydown:t[2]||(t[2]=Do((...u)=>e.handleKeydown&&e.handleKeydown(...u),["self"])),onMousedown:t[3]||(t[3]=Do((...u)=>e.onMousedown&&e.onMousedown(...u),["self"]))},[Fn(e.$slots,"default")],46,N6t)}var wme=vr(M6t,[["render",D6t],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const I6t=Ca(x6t,{DropdownItem:_me,DropdownMenu:wme}),R6t=qu(_me),L6t=qu(wme),B6t={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},P6t=["id"],F6t=["stop-color"],$6t=["stop-color"],z6t=["id"],H6t=["stop-color"],V6t=["stop-color"],U6t=["id"],j6t={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},W6t={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},G6t={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},K6t=["fill"],Y6t=["fill"],q6t={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},X6t=["fill"],Z6t=["fill"],Q6t=["fill"],J6t=["fill"],e_t=["fill"],t_t={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},n_t=["fill","xlink:href"],r_t=["fill","mask"],o_t=["fill"],a_t=Zt({name:"ImgEmpty"}),i_t=Zt({...a_t,setup(e){const t=Vn("empty"),n=Lm();return(r,i)=>(Ce(),Ie("svg",B6t,[ce("defs",null,[ce("linearGradient",{id:`linearGradient-1-${L(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ce("stop",{"stop-color":`var(${L(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,F6t),ce("stop",{"stop-color":`var(${L(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,$6t)],8,P6t),ce("linearGradient",{id:`linearGradient-2-${L(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ce("stop",{"stop-color":`var(${L(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,H6t),ce("stop",{"stop-color":`var(${L(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,V6t)],8,z6t),ce("rect",{id:`path-3-${L(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,U6t)]),ce("g",j6t,[ce("g",W6t,[ce("g",G6t,[ce("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${L(t).cssVarBlockName("fill-color-3")})`},null,8,K6t),ce("polygon",{id:"Rectangle-Copy-14",fill:`var(${L(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,Y6t),ce("g",q6t,[ce("polygon",{id:"Rectangle-Copy-10",fill:`var(${L(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}
59,null,8,X6t),ce("polygon",{id:"Rectangle-Copy-11",fill:`var(${L(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Z6t),ce("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${L(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Q6t),ce("polygon",{id:"Rectangle-Copy-13",fill:`var(${L(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,J6t)]),ce("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${L(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,e_t),ce("g",t_t,[ce("use",{id:"Mask",fill:`var(${L(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${L(n)}`},null,8,n_t),ce("polygon",{id:"Rectangle-Copy",fill:`var(${L(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${L(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,r_t)]),ce("polygon",{id:"Rectangle-Copy-18",fill:`var(${L(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,o_t)])])])]))}});var s_t=vr(i_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const l_t=hr({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),u_t=["src"],c_t={key:1},f_t=Zt({name:"ElEmpty"}),d_t=Zt({...f_t,props:l_t,setup(e){const t=e,{t:n}=Ni(),r=Vn("empty"),i=Ne(()=>t.description||n("el.table.emptyText")),l=Ne(()=>({width:Nc(t.imageSize)}));return(u,f)=>(Ce(),Ie("div",{class:He(L(r).b())},[ce("div",{class:He(L(r).e("image")),style:Pr(L(l))},[u.image?(Ce(),Ie("img",{key:0,src:u.image,ondragstart:"return false"},null,8,u_t)):Fn(u.$slots,"image",{key:1},()=>[gt(s_t)])],6),ce("div",{class:He(L(r).e("description"))},[u.$slots.description?Fn(u.$slots,"description",{key:0}):(Ce(),Ie("p",c_t,Zn(L(i)),1))],2),u.$slots.default?(Ce(),Ie("div",{key:0,class:He(L(r).e("bottom"))},[Fn(u.$slots,"default")],2)):on("v-if",!0)],2))}});var v_t=vr(d_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Cme=Ca(v_t),h_t=hr({urlList:{type:gn(Array),default:()=>uu([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),p_t={close:()=>!0,switch:e=>$o(e)},m_t=["src"],g_t=Zt({name:"ElImageViewer"}),y_t=Zt({...g_t,props:h_t,emits:p_t,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:gC(Lhe)},ORIGINAL:{name:"original",icon:gC(Uhe)}},{t:l}=Ni(),u=Vn("image-viewer"),{nextZIndex:f}
59=m7(),v=et(),h=et([]),g=xde(),y=et(!0),w=et(r.initialIndex),C=al(i.CONTAIN),S=et({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),T=Ne(()=>{const{urlList:M}=r;return M.length<=1}),B=Ne(()=>w.value===0),F=Ne(()=>w.value===r.urlList.length-1),R=Ne(()=>r.urlList[w.value]),N=Ne(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!r.infinite&&B.value)]),A=Ne(()=>[u.e("btn"),u.e("next"),u.is("disabled",!r.infinite&&F.value)]),X=Ne(()=>{const{scale:M,deg:P,offsetX:U,offsetY:j,enableTransition:ee}=S.value;let ye=U/M,ie=j/M;switch(P%360){case 90:case-270:[ye,ie]=[ie,-ye];break;case 180:case-180:[ye,ie]=[-ye,-ie];break;case 270:case-90:[ye,ie]=[-ie,ye];break}const he={transform:`scale(${M}) rotate(${P}deg) translate(${ye}px, ${ie}px)`,transition:ee?"transform .3s":""};return C.value.name===i.CONTAIN.name&&(he.maxWidth=he.maxHeight="100%"),he}),Z=Ne(()=>$o(r.zIndex)?r.zIndex:f());function z(){Q(),n("close")}function Y(){const M=F8(U=>{switch(U.code){case ao.esc:r.closeOnPressEscape&&z();break;case ao.space:fe();break;case ao.left:ne();break;case ao.up:_e("zoomIn");break;case ao.right:le();break;case ao.down:_e("zoomOut");break}}),P=F8(U=>{const j=U.deltaY||U.deltaX;_e(j<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});g.run(()=>{Yl(document,"keydown",M),Yl(document,"wheel",P)})}function Q(){g.stop()}function $(){y.value=!1}function te(M){y.value=!1,M.target.alt=l("el.image.error")}function V(M){if(y.value||M.button!==0||!v.value)return;S.value.enableTransition=!1;const{offsetX:P,offsetY:U}=S.value,j=M.pageX,ee=M.pageY,ye=F8(he=>{S.value={...S.value,offsetX:P+he.pageX-j,offsetY:U+he.pageY-ee}}),ie=Yl(document,"mousemove",ye);Yl(document,"mouseup",()=>{ie()}),M.preventDefault()}function K(){S.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function fe(){if(y.value)return;const M=xI(i),P=Object.values(i),U=C.value.name,ee=(P.findIndex(ye=>ye.name===U)+1)%M.length;C.value=i[M[ee]],K()}function de(M){const P=r.urlList.length;w.value=(M+P)%P}function ne(){B.value&&!r.infinite||de(w.value-1)}function le(){F.value&&!r.infinite||de(w.value+1)}function _e(M,P={}){if(y.value)return;const{zoomRate:U,rotateDeg:j,enableTransition:ee}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...P};switch(M){case"zoomOut":S.value.scale>.2&&(S.value.scale=Number.parseFloat((S.value.scale/U).toFixed(3)));break;case"zoomIn":S.value.scale<7&&(S.value.scale=Number.parseFloat((S.value.scale*U).toFixed(3)));break;case"clockwise":S.value.deg+=j;break;case"anticlockwise":S.value.deg-=j;break}S.value.enableTransition=ee}return $n(R,()=>{Gr(()=>{const M=h.value[0];M!=null&&M.complete||(y.value=!0)})}),$n(w,M=>{K(),n("switch",M)}),ia(()=>{var M,P;Y(),(P=(M=v.value)==null?void 0:M.focus)==null||P.call(M)}),t({setActiveItem:de}),(M,P)=>(Ce(),yn(KI,{to:"body",disabled:!M.teleported},[gt(Ic,{name:"viewer-fade",appear:""},{default:Dt(()=>
59[ce("div",{ref_key:"wrapper",ref:v,tabindex:-1,class:He(L(u).e("wrapper")),style:Pr({zIndex:L(Z)})},[ce("div",{class:He(L(u).e("mask")),onClick:P[0]||(P[0]=Do(U=>M.hideOnClickModal&&z(),["self"]))},null,2),on(" CLOSE "),ce("span",{class:He([L(u).e("btn"),L(u).e("close")]),onClick:z},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Dm))]),_:1})],2),on(" ARROW "),L(T)?on("v-if",!0):(Ce(),Ie(Ur,{key:0},[ce("span",{class:He(L(N)),onClick:ne},[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1})],2),ce("span",{class:He(L(A)),onClick:le},[gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})],2)],64)),on(" ACTIONS "),ce("div",{class:He([L(u).e("btn"),L(u).e("actions")])},[ce("div",{class:He(L(u).e("actions__inner"))},[gt(L(Zr),{onClick:P[1]||(P[1]=U=>_e("zoomOut"))},{default:Dt(()=>[gt(L(qhe))]),_:1}),gt(L(Zr),{onClick:P[2]||(P[2]=U=>_e("zoomIn"))},{default:Dt(()=>[gt(L(zte))]),_:1}),ce("i",{class:He(L(u).e("actions__divider"))},null,2),gt(L(Zr),{onClick:fe},{default:Dt(()=>[(Ce(),yn(Fa(L(C).icon)))]),_:1}),ce("i",{class:He(L(u).e("actions__divider"))},null,2),gt(L(Zr),{onClick:P[3]||(P[3]=U=>_e("anticlockwise"))},{default:Dt(()=>[gt(L(Hhe))]),_:1}),gt(L(Zr),{onClick:P[4]||(P[4]=U=>_e("clockwise"))},{default:Dt(()=>[gt(L(Vhe))]),_:1})],2)],2),on(" CANVAS "),ce("div",{class:He(L(u).e("canvas"))},[(Ce(!0),Ie(Ur,null,La(M.urlList,(U,j)=>ea((Ce(),Ie("img",{ref_for:!0,ref:ee=>h.value[j]=ee,key:U,src:U,style:Pr(L(X)),class:He(L(u).e("img")),onLoad:$,onError:te,onMousedown:V},null,46,m_t)),[[Ti,j===w.value]])),128))],2),Fn(M.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var b_t=vr(y_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const xme=Ca(b_t),__t=hr({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:gn([String,Object])},previewSrcList:{type:gn(Array),default:()=>uu([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),w_t={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>$o(e),close:()=>!0,show:()=>!0},C_t=["src","loading"],x_t={key:0},E_t=Zt({name:"ElImage",inheritAttrs:!1}),S_t=Zt({...E_t,props:__t,emits:w_t,setup(e,{emit:t}){const n=e;let r="";const{t:i}=Ni(),l=Vn("image"),u=RC(),f=Vte(),v=et(),h=et(!1),g=et(!0),y=et(!1),w=et(),C=et(),S=_i&&"loading"in HTMLImageElement.prototype;let T,B;const F=Ne(()=>[l.e("inner"),A.value&&l.e("preview"),g.value&&l.is("loading")]),R=Ne(()=>u.style),N=Ne(()=>{const{fit:_e}=n;return _i&&_e?{objectFit:_e}:{}}),A=Ne(()=>{const{previewSrcList:_e}=n;return Array.isArray(_e)&&_e.length>0}),X=Ne(()=>{const{previewSrcList:_e,initialIndex:M}=n;let P=M;return M>_e.length-1&&(P=0),P}),Z=Ne(()=>n.loading==="eager"?!1:!S&&n.loading==="lazy"||n.lazy),z=()=>{!_i||(g.value=!0,h.value=!1,v.value=n.src)};function Y(_e){g.value=!1,h.value=!1,t("load",_e)}function Q(_e){g.value=!1,h.value=!0,t("error",_e)}function $(){RAe(w.value,C.value)&&(z(),K())}const te=zve($,200,!0);async function V(){var _e;if(!_i)return;await Gr();const{scrollContainer:M}=n;Nm(M)?C.value=M:Ga(M)&&M!==""?C.value=(_e=document.querySelector(M))!=null?_e:void 0:w.value&&(C.value=Lte(w.value)),C.value&&(T=Yl(C,"scroll",te),setTimeout(()=>$(),100))}function K(){!_i||!C.value||!te||(T==null||T(),C.value=void 0)}function fe(_e){if(!!_e.ctrlKey){if(_e.deltaY<0)return _e.preventDefault(),!1;if(_e.deltaY>0)return _e.preventDefault(),!1}}function de(){!A.value||(B=Yl("wheel",fe,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",y.value=!0,t("show"))}function ne(){B==null||B(),document.body.style.overflow=r,y.value=!1,t("close")}function le(_e){t("switch",_e)}return $n(()=>n.src,()=>{Z.value?(g.value=!0,h.value=!1,K(),V()):z()}),ia(()=>{Z.value?V():z()}),(_e,M)=>(Ce(),Ie("div",{ref_key:"container",ref:w,class:He([L(l).b(),_e.$attrs.class]),style:Pr(L(R))},[h.value?Fn(_e.$slots,"error",{key:0}
59,()=>[ce("div",{class:He(L(l).e("error"))},Zn(L(i)("el.image.error")),3)]):(Ce(),Ie(Ur,{key:1},[v.value!==void 0?(Ce(),Ie("img",Pa({key:0},L(f),{src:v.value,loading:_e.loading,style:L(N),class:L(F),onClick:de,onLoad:Y,onError:Q}),null,16,C_t)):on("v-if",!0),g.value?(Ce(),Ie("div",{key:1,class:He(L(l).e("wrapper"))},[Fn(_e.$slots,"placeholder",{},()=>[ce("div",{class:He(L(l).e("placeholder"))},null,2)])],2)):on("v-if",!0)],64)),L(A)?(Ce(),Ie(Ur,{key:2},[y.value?(Ce(),yn(L(xme),{key:0,"z-index":_e.zIndex,"initial-index":L(X),infinite:_e.infinite,"zoom-rate":_e.zoomRate,"url-list":_e.previewSrcList,"hide-on-click-modal":_e.hideOnClickModal,teleported:_e.previewTeleported,"close-on-press-escape":_e.closeOnPressEscape,onClose:ne,onSwitch:le},{default:Dt(()=>[_e.$slots.viewer?(Ce(),Ie("div",x_t,[Fn(_e.$slots,"viewer")])):on("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):on("v-if",!0)],64)):on("v-if",!0)],6))}});var T_t=vr(S_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const A_t=Ca(T_t),k_t=hr({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ev,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||$o(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),O_t={[Ll]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[yh]:e=>$o(e)||jf(e),[Ma]:e=>$o(e)||jf(e)},M_t=["aria-label","onKeydown"],N_t=["aria-label","onKeydown"],D_t=Zt({name:"ElInputNumber"}),I_t=Zt({...D_t,props:k_t,emits:O_t,setup(e,{expose:t,emit:n}){const r=e,{t:i}=Ni(),l=Vn("input-number"),u=et(),f=gi({currentValue:r.modelValue,userInput:null}),{formItem:v}=xh(),h=Ne(()=>$o(r.modelValue)&&r.modelValue<=r.min),g=Ne(()=>$o(r.modelValue)&&r.modelValue>=r.max),y=Ne(()=>{const K=F(r.step);return Vd(r.precision)?Math.max(F(r.modelValue),K):(K>r.precision,r.precision)}),w=Ne(()=>r.controls&&r.controlsPosition==="right"),C=Kf(),S=w0(),T=Ne(()=>
59{if(f.userInput!==null)return f.userInput;let K=f.currentValue;if(jf(K))return"";if($o(K)){if(Number.isNaN(K))return"";Vd(r.precision)||(K=K.toFixed(r.precision))}return K}),B=(K,fe)=>{if(Vd(fe)&&(fe=y.value),fe===0)return Math.round(K);let de=String(K);const ne=de.indexOf(".");if(ne===-1||!de.replace(".","").split("")[ne+fe])return K;const M=de.length;return de.charAt(M-1)==="5"&&(de=`${de.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(de).toFixed(fe))},F=K=>{if(jf(K))return 0;const fe=K.toString(),de=fe.indexOf(".");let ne=0;return de!==-1&&(ne=fe.length-de-1),ne},R=(K,fe=1)=>$o(K)?B(K+r.step*fe):f.currentValue,N=()=>{if(r.readonly||S.value||g.value)return;const K=Number(T.value)||0,fe=R(K);Z(fe),n(yh,f.currentValue)},A=()=>{if(r.readonly||S.value||h.value)return;const K=Number(T.value)||0,fe=R(K,-1);Z(fe),n(yh,f.currentValue)},X=(K,fe)=>{const{max:de,min:ne,step:le,precision:_e,stepStrictly:M,valueOnClear:P}=r;de<ne&&Gf("InputNumber","min should not be greater than max.");let U=Number(K);if(jf(K)||Number.isNaN(U))return null;if(K===""){if(P===null)return null;U=Ga(P)?{min:ne,max:de}[P]:P}return M&&(U=B(Math.round(U/le)*le,_e)),Vd(_e)||(U=B(U,_e)),(U>de||U<ne)&&(U=U>de?de:ne,fe&&n(Ma,U)),U},Z=(K,fe=!0)=>{var de;const ne=f.currentValue,le=X(K);if(!fe){n(Ma,le);return}ne!==le&&(f.userInput=null,n(Ma,le),n(Ll,le,ne),r.validateEvent&&((de=v==null?void 0:v.validate)==null||de.call(v,"change").catch(_e=>void 0)),f.currentValue=le)},z=K=>{f.userInput=K;const fe=K===""?null:Number(K);n(yh,fe),Z(fe,!1)},Y=K=>{const fe=K!==""?Number(K):"";($o(fe)&&!Number.isNaN(fe)||K==="")&&Z(fe),f.userInput=null},Q=()=>{var K,fe;(fe=(K=u.value)==null?void 0:K.focus)==null||fe.call(K)},$=()=>{var K,fe;(fe=(K=u.value)==null?void 0:K.blur)==null||fe.call(K)},te=K=>{n("focus",K)},V=K=>{var fe;n("blur",K),r.validateEvent&&((fe=v==null?void 0:v.validate)==null||fe.call(v,"blur").catch(de=>void 0))};return $n(()=>r.modelValue,K=>{const fe=X(f.userInput),de=X(K,!0);!$o(fe)&&(!fe||fe!==de)&&(f.currentValue=de,f.userInput=null)},{immediate:!0}),ia(()=>{var K;const{min:fe,max:de,modelValue:ne}=r,le=(K=u.value)==null?void 0:K.input;if(le.setAttribute("role","spinbutton"),Number.isFinite(de)?le.setAttribute("aria-valuemax",String(de)):le.removeAttribute("aria-valuemax"),Number.isFinite(fe)?le.setAttribute("aria-valuemin",String(fe)):le.removeAttribute("aria-valuemin"),le.setAttribute("aria-valuenow",String(f.currentValue)),le.setAttribute("aria-disabled",String(S.value)),!$o(ne)&&ne!=null){let _e=Number(ne);Number.isNaN(_e)&&(_e=null),n(Ma,_e)}}),S3(()=>{var K;const fe=(K=u.value)==null?void 0:K.input;fe==null||fe.setAttribute("aria-valuenow",`${f.currentValue}`)}),t({focus:Q,blur:$}),(K,fe)=>(Ce(),Ie("div",{class:He([L(l).b(),L(l).m(L(C)),L(l).is("disabled",L(S)),L(l).is("without-control
59s",!K.controls),L(l).is("controls-right",L(w))]),onDragstart:fe[1]||(fe[1]=Do(()=>{},["prevent"]))},[K.controls?ea((Ce(),Ie("span",{key:0,role:"button","aria-label":L(i)("el.inputNumber.decrease"),class:He([L(l).e("decrease"),L(l).is("disabled",L(h))]),onKeydown:mi(A,["enter"])},[gt(L(Zr),null,{default:Dt(()=>[L(w)?(Ce(),yn(L(O3),{key:0})):(Ce(),yn(L(Phe),{key:1}))]),_:1})],42,M_t)),[[L(OH),A]]):on("v-if",!0),K.controls?ea((Ce(),Ie("span",{key:1,role:"button","aria-label":L(i)("el.inputNumber.increase"),class:He([L(l).e("increase"),L(l).is("disabled",L(g))]),onKeydown:mi(N,["enter"])},[gt(L(Zr),null,{default:Dt(()=>[L(w)?(Ce(),yn(L(nR),{key:0})):(Ce(),yn(L(Fte),{key:1}))]),_:1})],42,N_t)),[[L(OH),N]]):on("v-if",!0),gt(L(Ov),{id:K.id,ref_key:"input",ref:u,type:"number",step:K.step,"model-value":L(T),placeholder:K.placeholder,readonly:K.readonly,disabled:L(S),size:L(C),max:K.max,min:K.min,name:K.name,label:K.label,"validate-event":!1,onWheel:fe[0]||(fe[0]=Do(()=>{},["prevent"])),onKeydown:[mi(Do(N,["prevent"]),["up"]),mi(Do(A,["prevent"]),["down"])],onBlur:V,onFocus:te,onInput:z,onChange:Y},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var R_t=vr(I_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Eme=Ca(R_t),L_t=hr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:xl}}),B_t={click:e=>e instanceof MouseEvent},P_t=["href"],F_t=Zt({name:"ElLink"}),$_t=Zt({...F_t,props:L_t,emits:B_t,setup(e,{emit:t}){const n=e,r=Vn("link"),i=Ne(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function l(u){n.disabled||t("click",u)}return(u,f)=>(Ce(),Ie("a",{class:He(L(i)),href:u.disabled||!u.href?void 0:u.href,onClick:l},[u.icon?(Ce(),yn(L(Zr),{key:0},{default:Dt(()=>[(Ce(),yn(Fa(u.icon)))]),_:1})):on("v-if",!0),u.$slots.default?(Ce(),Ie("span",{key:1,class:He(L(r).e("inner"))},[Fn(u.$slots,"default")],2)):on("v-if",!0),u.$slots.icon?Fn(u.$slots,"icon",{key:2}):on("v-if",!0)],10,P_t))}});var z_t=vr($_t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src
59/link.vue"]]);const H_t=Ca(z_t);class V_t{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let i=!1;switch(r.code){case ao.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case ao.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case ao.tab:{Mz(t,"mouseleave");break}case ao.enter:case ao.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class U_t{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new V_t(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case ao.down:{Mz(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case ao.up:{Mz(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case ao.tab:{Mz(t.currentTarget,"mouseleave");break}case ao.enter:case ao.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class j_t{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new U_t(r,t)})}}const W_t=Zt({name:"ElMenuCollapseTransition",setup(){const e=Vn("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){ob(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){m0(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),e2(n,e.m("collapse"))?(m0(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ob(n,e.m("collapse"))):(ob(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),m0(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){ob(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function G_t(e,t,n,r,i,l){return Ce(),yn(Ic,Pa({mode:"out-in"},e.listeners),{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},16)}var K_t=vr(W_t,[["render",G_t],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Sme(e,t){const n=Ne(()=>{let i=e.parent;const l=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&l.unshift(i.props.index),i=i.parent;return l});return{parentMenu:Ne(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function Y_t(e){return Ne(()=>{const n=e.backgroundColor;return n?new npe(n).shade(20).toString():""})}const Tme=(e,t)=>
59{const n=Vn("menu");return Ne(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Y_t(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},q_t=hr({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:xl},expandOpenIcon:{type:xl},collapseCloseIcon:{type:xl},collapseOpenIcon:{type:xl}}),Q$="ElSubMenu";var xne=Zt({name:Q$,props:q_t,setup(e,{slots:t,expose:n}){cb({from:"popper-append-to-body",replacement:"teleported",scope:Q$,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},Ne(()=>e.popperAppendToBody!==void 0));const r=va(),{indexPath:i,parentMenu:l}=Sme(r,Ne(()=>e.index)),u=Vn("menu"),f=Vn("sub-menu"),v=jr("rootMenu");v||Gf(Q$,"can not inject root menu");const h=jr(`subMenu:${l.value.uid}`);h||Gf(Q$,"can not inject sub menu");const g=et({}),y=et({});let w;const C=et(!1),S=et(),T=et(null),B=Ne(()=>te.value==="horizontal"&&R.value?"bottom-start":"right-start"),F=Ne(()=>te.value==="horizontal"&&R.value||te.value==="vertical"&&!v.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?Z.value?e.expandOpenIcon:e.expandCloseIcon:O3:e.collapseCloseIcon&&e.collapseOpenIcon?Z.value?e.collapseOpenIcon:e.collapseCloseIcon:Nv),R=Ne(()=>h.level===0),N=Ne(()=>{var P;const U=(P=e.teleported)!=null?P:e.popperAppendToBody;return U===void 0?R.value:U}),A=Ne(()=>v.props.collapse?`${u.namespace.value}-zoom-in-left`:`${u.namespace.value}-zoom-in-top`),X=Ne(()=>te.value==="horizontal"&&R.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),Z=Ne(()=>v.openedMenus.includes(e.index)),z=Ne(()=>{let P=!1;return Object.values(g.value).forEach(U=>{U.active&&(P=!0)}),Object.values(y.value).forEach(U=>{U.active&&(P=!0)}),P}),Y=Ne(()=>v.props.backgroundColor||""),Q=Ne(()=>v.props.activeTextColor||""),$=Ne(()=>v.props.textColor||""),te=Ne(()=>v.props.mode),V=gi({index:e.index,indexPath:i,active:z}),K=Tme(v.props,h.level+1),fe=Ne(()=>te.value!=="horizontal"?{color:$.value}:{borderBottomColor:z.value?v.props.activeTextColor?Q.value:"":"transparent",color:z.value?Q.value:$.value}),de=()=>{var P,U,j;return(j=(U=(P=T.value)==null?void 0:P.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:j.destroy()},ne=P=>{P||de()},le=()=>{v.props.menuTrigger==="hover"&&v.props.mode==="horizontal"||v.props.collapse&&v.props.mode==="vertical"||e.disabled||v.handleSubMenuClick({index:e.index,indexPath:i.value,active:z.value})},_e=(P,U=e.showTimeout)=>{var j;P.type!=="focus"&&(v.props.menuTrigger==="click"&&v.props.mode==="horizontal"||!v.props.collapse&&v.props.mode==="vertical"||e.disabled||(h.mouseInChild.value=!0,w==null||w(),{stop:w}=TC(()=>{v.openMenu(e.index,i.value)},U),N.value&&((j=l.value.vnode.el)==null||j.dispatchEvent(new MouseEvent("mouseenter")))))},M=(P=!1)=>{var U,j;v.props.menuTrigger==="click"&&v.props.mode==="horizontal"||!v.props.collapse&&v.props.mode==="vertical"||(w==null||w(),h.mouseInChild.value=!1,{stop:w}=TC(()=>!C.value&&v.closeMenu(e.index,i.value),e.hideTimeout),N.value&&P&&((U=r.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((j=h.handleMouseleave)==null||j.call(h,!0)))};$n(()=>v.props.collapse,P=>ne(Boolean(P)));{const P=j=>{y.value[j.index]=j},U=j=>{delete y.value[j.index]};$a(`subMenu:${r.uid}`,{addSubMenu:P,removeSubMenu:U,handleMouseleave:M,mouseInChild:C,level:h.level+1})}return n({opened:Z}),ia(()=>{v.addSubMenu(V),h.addSubMenu(V)}),Bl(()=>{h.removeSubMenu(V),v.removeSubMenu(V)}),()=>{var P;const U=[(P=t.title)==null?void 0:P.call(t),oo(Zr,{class:f.e("icon-arrow"),style:{transform:Z.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&v.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ga(F.value)?oo(r.appContext.components[F.value]):oo(F.value)})],j=v.isMenuPopup?oo(Ch,{ref:T,visible:Z.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:B.value,teleported:N.value,fallbackPlacements:X.value,transition:A.value,gpuAcceleration:!1},{content:()=>{var ee;return oo("div",{class:[u.m(te.value),u.m("popup-container"),e.popperClass],onMouseenter:ye=>_e(ye,100),onMouseleave:()=>M(!0),onFocus:ye=>_e(ye,100)},[oo("ul",{class:[u.b(),u.m("popup"),u.m(`popup-${B.value}`)],style:K.value},[(ee=t.default)==null?void 0:ee.call(t)])])},default:()=>oo("div",{class:f.e("title"),style:[fe.value,{backgroundColor:Y.value}],onClick:le},U)}):oo(Ur,{},[oo("div",{class:f.e("title"),style:[fe.value,{backgroundColor:Y.value}],ref:S,onClick:le},U),oo(VV,{},{default:()=>{var ee;return ea(oo("ul",{role:"menu",class:[u.b(),u.m("inline")],style:K.value},[(ee=t.default)==null?void 0:ee.call(t)]),[[Ti,Z.value]])}})]);return oo("li",{class:[f.b(),f.is("active",z.value),f.is("opened",Z.value),f.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:Z.value,onMouseenter:_e,onMouseleave:()=>M(!0),onFocus:_e},[j])}}});const X_t=hr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:gn(Array),default:()=>uu([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),MZ=e=>Array.isArray(e)&&e.every(t=>Ga(t)),Z_t={close:(e,t)=>Ga(e)&&MZ(t),open:(e,t)=>Ga(e)&&MZ(t),select:(e,t,n,r)=>Ga(e)&&MZ(t)&&Qs(n)&&(r===void 0||r instanceof Promise)};var Q_t=Zt({name:"ElMenu",props:X_t,emits:Z_t,setup(e,{emit:t,slots:n,expose:r}){const i=va(),l=i.appContext.config.globalProperties.$router,u=et(),f=Vn("menu"),v=Vn("sub-menu"),h=et(-1),g=et(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),y=et(e.defaultActive),w=et({}),C=et({}),S=Ne(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),T=()=>{const te=y.value&&w.value[y.value];if(!te||e.mode==="horizontal"||e.collapse)return;te.indexPath.forEach(K=>{const fe=C.value[K];fe&&B(K,fe.indexPath)})},B=(te,V)=>{g.value.includes(te)||(e.uniqueOpened&&(g.value=g.value.filter(K=>
59V.includes(K))),g.value.push(te),t("open",te,V))},F=te=>{const V=g.value.indexOf(te);V!==-1&&g.value.splice(V,1)},R=(te,V)=>{F(te),t("close",te,V)},N=({index:te,indexPath:V})=>{g.value.includes(te)?R(te,V):B(te,V)},A=te=>{(e.mode==="horizontal"||e.collapse)&&(g.value=[]);const{index:V,indexPath:K}=te;if(!(jf(V)||jf(K)))if(e.router&&l){const fe=te.route||V,de=l.push(fe).then(ne=>(ne||(y.value=V),ne));t("select",V,K,{index:V,indexPath:K,route:fe},de)}else y.value=V,t("select",V,K,{index:V,indexPath:K})},X=te=>{const V=w.value,K=V[te]||y.value&&V[y.value]||V[e.defaultActive];K?y.value=K.index:y.value=te},Z=()=>{var te,V;if(!u.value)return-1;const K=Array.from((V=(te=u.value)==null?void 0:te.childNodes)!=null?V:[]).filter(P=>P.nodeName!=="#comment"&&(P.nodeName!=="#text"||P.nodeValue)),fe=64,de=Number.parseInt(getComputedStyle(u.value).paddingLeft,10),ne=Number.parseInt(getComputedStyle(u.value).paddingRight,10),le=u.value.clientWidth-de-ne;let _e=0,M=0;return K.forEach((P,U)=>{_e+=P.offsetWidth||0,_e<=le-fe&&(M=U+1)}),M===K.length?-1:M},z=(te,V=33.34)=>{let K;return()=>{K&&clearTimeout(K),K=setTimeout(()=>{te()},V)}};let Y=!0;const Q=()=>{const te=()=>{h.value=-1,Gr(()=>{h.value=Z()})};Y?te():z(te)(),Y=!1};$n(()=>e.defaultActive,te=>{w.value[te]||(y.value=""),X(te)}),$n(()=>e.collapse,te=>{te&&(g.value=[])}),$n(w.value,T);let $;h0(()=>{e.mode==="horizontal"&&e.ellipsis?$=Rv(u,Q).stop:$==null||$()});{const te=de=>{C.value[de.index]=de},V=de=>{delete C.value[de.index]};$a("rootMenu",gi({props:e,openedMenus:g,items:w,subMenus:C,activeIndex:y,isMenuPopup:S,addMenuItem:de=>{w.value[de.index]=de},removeMenuItem:de=>{delete w.value[de.index]},addSubMenu:te,removeSubMenu:V,openMenu:B,closeMenu:R,handleMenuItemClick:A,handleSubMenuClick:N})),$a(`subMenu:${i.uid}`,{addSubMenu:te,removeSubMenu:V,mouseInChild:et(!1),level:0})}return ia(()=>{e.mode==="horizontal"&&new j_t(i.vnode.el,f.namespace.value)}),r({open:V=>{const{indexPath:K}=C.value[V];K.forEach(fe=>B(fe,K))},close:F,handleResize:Q}),()=>{var te,V;let K=(V=(te=n.default)==null?void 0:te.call(n))!=null?V:[];const fe=[];if(e.mode==="horizontal"&&u.value){const le=OA(K),_e=h.value===-1?le:le.slice(0,h.value),M=h.value===-1?[]:le.slice(h.value);(M==null?void 0:M.length)&&e.ellipsis&&(K=_e,fe.push(oo(xne,{index:"sub-menu-more",class:v.e("hide-arrow")},{title:()=>oo(Zr,{class:v.e("icon-more")},{default:()=>oo(Fhe)}),default:()=>M})))}const de=Tme(e,0),ne=oo("ul",{key:String(e.collapse),role:"menubar",ref:u,style:de.value,class:{[f.b()]:!0,[f.m(e.mode)]:!0,[f.m("collapse")]:e.collapse}},[...K,...fe]);return e.collapseTransition&&e.mode==="vertical"?oo(K_t,()=>ne):ne}}});const J_t=hr({index:{type:gn([String,null]),default:null},route:{type:gn([String,Object])},disabled:Boolean}),e8t={click:e=>Ga(e.index)&&Array.isArray(e.indexPath)},NZ="ElMenuItem",t8t=Zt({name:NZ,components:{ElTooltip:Ch},props:J_t,emits:e8t,setup(e,{emit:t}){const n=va(),r=jr("rootMenu"),i=Vn("menu"),l=Vn("menu-item");r||Gf(NZ,"can not inject root menu");const{parentMenu:u,indexPath:f}=Sme(n,Kl(e,"index")),v=jr(`subMenu:${u.value.uid}`);v||Gf(NZ,"can not inject sub menu");const h=Ne(()=>e.index===r.activeIndex),g=gi({index:e.index,indexPath:f,active:h}),y=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:f.value,route:e.route}),t("click",g))};return ia(()=>{v.addSubMenu(g),r.addMenuItem(g)}),Bl(()=>{v.removeSubMenu(g),r.removeMenuItem(g)}),{parentMenu:u,rootMenu:r,active:h,nsMenu:i,nsMenuItem:l,handleClick:y}}});function n8t(e,t,n,r,i,l){const u=Kr("el-tooltip");return Ce(),Ie("li",{class:He([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(Ce(),yn(u,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Dt(()=>[Fn(e.$slots,"title")]),default:Dt(()=>
59[ce("div",{class:He(e.nsMenu.be("tooltip","trigger"))},[Fn(e.$slots,"default")],2)]),_:3},8,["effect"])):(Ce(),Ie(Ur,{key:1},[Fn(e.$slots,"default"),Fn(e.$slots,"title")],64))],2)}var Ame=vr(t8t,[["render",n8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const r8t={title:String},o8t="ElMenuItemGroup",a8t=Zt({name:o8t,props:r8t,setup(){return{ns:Vn("menu-item-group")}}});function i8t(e,t,n,r,i,l){return Ce(),Ie("li",{class:He(e.ns.b())},[ce("div",{class:He(e.ns.e("title"))},[e.$slots.title?Fn(e.$slots,"title",{key:1}):(Ce(),Ie(Ur,{key:0},[lo(Zn(e.title),1)],64))],2),ce("ul",null,[Fn(e.$slots,"default")])],2)}var kme=vr(a8t,[["render",i8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const s8t=Ca(Q_t,{MenuItem:Ame,MenuItemGroup:kme,SubMenu:xne}),l8t=qu(Ame),u8t=qu(kme),c8t=qu(xne),f8t=hr({icon:{type:xl,default:()=>Ohe},title:String,content:{type:String,default:""}}),d8t={back:()=>!0},v8t=["aria-label"],h8t=Zt({name:"ElPageHeader"}),p8t=Zt({...h8t,props:f8t,emits:d8t,setup(e,{emit:t}){const n=g1(),{t:r}=Ni(),i=Vn("page-header"),l=Ne(()=>[i.b(),{[i.m("has-breadcrumb")]:!!n.breadcrumb,[i.m("has-extra")]:!!n.extra,[i.is("contentful")]:!!n.default}]);function u(){t("back")}return(f,v)=>(Ce(),Ie("div",{class:He(L(l))},[f.$slots.breadcrumb?(Ce(),Ie("div",{key:0,class:He(L(i).e("breadcrumb"))},[Fn(f.$slots,"breadcrumb")],2)):on("v-if",!0),ce("div",{class:He(L(i).e("header"))},[ce("div",{class:He(L(i).e("left"))},[ce("div",{class:He(L(i).e("back")),role:"button",tabindex:"0",onClick:u},[f.icon||f.$slots.icon?(Ce(),Ie("div",{key:0,"aria-label":f.title||L(r)("el.pageHeader.title"),class:He(L(i).e("icon"))},[Fn(f.$slots,"icon",{},()=>[f.icon?(Ce(),yn(L(Zr),{key:0},{default:Dt(()=>[(Ce(),yn(Fa(f.icon)))]),_:1})):on("v-if",!0)])],10,v8t)):on("v-if",!0),ce("div",{class:He(L(i).e("title"))},[Fn(f.$slots,"title",{},()=>[lo(Zn(f.title||L(r)("el.pageHeader.title")),1)])],2)],2),gt(L(vme),{direction:"vertical"}),ce("div",{class:He(L(i).e("content"))},[Fn(f.$slots,"content",{},()=>[lo(Zn(f.content),1)])],2)],2),f.$slots.extra?(Ce(),Ie("div",{key:0,class:He(L(i).e("extra"))},[Fn(f.$slots,"extra")],2)):on("v-if",!0)],2),f.$slots.default?(Ce(),Ie("div",{key:1,class:He(L(i).e("main"))},[Fn(f.$slots,"default")],2)):on("v-if",!0)],2))}});var m8t=vr(p8t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const g8t=Ca(m8t),Ome=Symbol("elPaginationKey"),y8t=hr({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:xl}}),b8t={click:e=>e instanceof MouseEvent},_8t=["disabled","aria-label","aria-disabled"],w8t={key:0},C8t=Zt({name:"ElPaginationPrev"}),x8t=Zt({...C8t,props:y8t,emits:b8t,setup(e){const t=e,{t:n}=Ni(),r=Ne(()=>t.disabled||t.currentPage<=1);return(i,l)=>(Ce(),Ie("button",{type:"button",class:"btn-prev",disabled:L(r),"aria-label":i.prevText||L(n)("el.pagination.prev"),"aria-disabled":L(r),onClick:l[0]||(l[0]=u=>i.$emit("click",u))},[i.prevText?(Ce(),Ie("span",w8t,Zn(i.prevText),1)):(Ce(),yn(L(Zr),{key:1},{default:Dt(()=>[(Ce(),yn(Fa(i.prevIcon)))]),_:1}))],8,_8t))}});var E8t=vr(x8t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const S8t=hr({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:xl}}),T8t=["disabled","aria-label","aria-disabled"],A8t={key:0},k8t=Zt({name:"ElPaginationNext"}),O8t=Zt({...k8t,props:S8t,emits:["click"],setup(e){const t=e,{t:n}=Ni(),r=Ne(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(i,l)=>(Ce(),Ie("button",{type:"button",class:"btn-next",disabled:L(r),"aria-label":i.nextText||L(n)("el.pagination.next"),"aria-disabled":L(r),onClick:l[0]||(l[0]=u=>i.$emit("click",u))},[i.nextText?(Ce(),Ie("span",A8t,Zn(i.nextText),1)):(Ce(),yn(L(Zr),{key:1},{default:Dt(()=>[(Ce(),yn(Fa(i.nextIcon)))]),_:1}))],8,T8t))}});var M8t=vr(O8t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Mme=Symbol("ElSelectGroup"),lR=Symbol("ElSelect");function N8t(e,t){const n=jr(lR),r=jr(Mme,{disabled:!1}),i=Ne(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),l=Ne(()=>n.props.multiple?y(n.props.modelValue,e.value):w(e.value,n.props.modelValue)),u=Ne(()=>{if(n.props.multiple){const T=n.props.modelValue||[];return!l.value&&T.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),f=Ne(()=>e.label||(i.value?"":e.value)),v=Ne(()=>e.value||e.label||""),h=Ne(()=>e.disabled||t.groupDisabled||u.value),g=va(),y=(T=[],B)=>
59{if(i.value){const F=n.props.valueKey;return T&&T.some(R=>ls(lu(R,F))===lu(B,F))}else return T&&T.includes(B)},w=(T,B)=>{if(i.value){const{valueKey:F}=n.props;return lu(T,F)===lu(B,F)}else return T===B},C=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(g.proxy))};$n(()=>f.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),$n(()=>e.value,(T,B)=>{const{remote:F,valueKey:R}=n.props;if(Object.is(T,B)||(n.onOptionDestroy(B,g.proxy),n.onOptionCreate(g.proxy)),!e.created&&!F){if(R&&typeof T=="object"&&typeof B=="object"&&T[R]===B[R])return;n.setSelected()}}),$n(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:S}=ls(n);return $n(S,T=>{const{query:B}=L(T),F=new RegExp(She(B),"i");t.visible=F.test(f.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:f,currentValue:v,itemSelected:l,isDisabled:h,hoverItem:C}}const D8t=Zt({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Vn("select"),n=Ne(()=>[t.be("dropdown","item"),t.is("disabled",L(u)),{selected:L(l),hover:L(g)}]),r=gi({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:l,isDisabled:u,select:f,hoverItem:v}=N8t(e,r),{visible:h,hover:g}=Dc(r),y=va().proxy;f.onOptionCreate(y),Bl(()=>{const C=y.value,{selected:S}=f,B=(f.props.multiple?S:[S]).some(F=>F.value===y.value);Gr(()=>{f.cachedOptions.get(C)===y&&!B&&f.cachedOptions.delete(C)}),f.onOptionDestroy(C,y)});function w(){e.disabled!==!0&&r.groupDisabled!==!0&&f.handleOptionSelect(y)}return{ns:t,containerKls:n,currentLabel:i,itemSelected:l,isDisabled:u,select:f,hoverItem:v,visible:h,hover:g,selectOptionClick:w,states:r}}});function I8t(e,t,n,r,i,l){return ea((Ce(),Ie("li",{class:He(e.containerKls),onMouseenter:t[0]||(t[0]=(...u)=>e.hoverItem&&e.hoverItem(...u)),onClick:t[1]||(t[1]=Do((...u)=>e.selectOptionClick&&e.selectOptionClick(...u),["stop"]))},[Fn(e.$slots,"default",{},()=>[ce("span",null,Zn(e.currentLabel),1)])],34)),[[Ti,e.visible]])}var Ene=vr(D8t,[["render",I8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const R8t=Zt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=jr(lR),t=Vn("select"),n=Ne(()=>e.props.popperClass),r=Ne(()=>e.props.multiple),i=Ne(()=>e.props.fitInputWidth),l=et("");function u(){var f;l.value=`${(f=e.selectWrapper)==null?void 0:f.offsetWidth}px`}return ia(()=>{u(),Rv(e.selectWrapper,u)}),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function L8t(e,t,n,r,i,l){return Ce(),Ie("div",{class:He([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Pr({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Fn(e.$slots,"default")],6)}var B8t=vr(R8t,[["render",L8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function P8t(e){const{t}=Ni();return gi({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1})}let DZ=!1;const F8t=(e,t,n)=>{const{t:r}=Ni(),i=Vn("select");cb({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},Ne(()=>e.suffixTransition===!1));const l=et(null),u=et(null),f=et(null),v=et(null),h=et(null),g=et(null),y=et(null),w=et(null),C=et(-1),S=al({query:""}),T=al(""),B=et([]);let F=0;const{form:R,formItem:N}=xh(),A=Ne(()=>!e.filterable||e.multiple||!t.visible),X=Ne(()=>e.disabled||(R==null?void 0:R.disabled)),Z=Ne(()=>{const Vt=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!X.value&&t.inputHovering&&Vt}),z=Ne(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=Ne(()=>i.is("reverse",z.value&&t.visible&&e.suffixTransition)),Q=Ne(()=>e.remote?300:0),$=Ne(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),te=Ne(()=>{const Vt=Array.from(t.options.values()),_n=[];return B.value.forEach(Mt=>{const pn=Vt.findIndex(En=>En.currentLabel===Mt);pn>-1&&_n.push(Vt[pn])}),_n.length?_n:Vt}),V=Ne(()=>
59Array.from(t.cachedOptions.values())),K=Ne(()=>{const Vt=te.value.filter(_n=>!_n.created).some(_n=>_n.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Vt}),fe=Kf(),de=Ne(()=>["small"].includes(fe.value)?"small":"default"),ne=Ne({get(){return t.visible&&$.value!==!1},set(Vt){t.visible=Vt}});$n([()=>X.value,()=>fe.value,()=>R==null?void 0:R.size],()=>{Gr(()=>{le()})}),$n(()=>e.placeholder,Vt=>{t.cachedPlaceHolder=t.currentPlaceholder=Vt,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),$n(()=>e.modelValue,(Vt,_n)=>{e.multiple&&(le(),Vt&&Vt.length>0||u.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",_e(t.query))),U(),e.filterable&&!e.multiple&&(t.inputLength=20),!p0(Vt,_n)&&e.validateEvent&&(N==null||N.validate("change").catch(Mt=>void 0))},{flush:"post",deep:!0}),$n(()=>t.visible,Vt=>{var _n,Mt,pn,En,zn;Vt?((Mt=(_n=v.value)==null?void 0:_n.updatePopper)==null||Mt.call(_n),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(En=(pn=f.value)==null?void 0:pn.focus)==null||En.call(pn),e.multiple?(zn=u.value)==null||zn.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),_e(t.query),!e.multiple&&!e.remote&&(S.value.query="",dD(S),dD(T)))):(e.filterable&&(Ji(e.filterMethod)&&e.filterMethod(""),Ji(e.remoteMethod)&&e.remoteMethod("")),u.value&&u.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ee(),Gr(()=>{u.value&&u.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",Vt)}),$n(()=>t.options.entries(),()=>{var Vt,_n,Mt;if(!_i)return;(_n=(Vt=v.value)==null?void 0:Vt.updatePopper)==null||_n.call(Vt),e.multiple&&le();const pn=((Mt=y.value)==null?void 0:Mt.querySelectorAll("input"))||[];Array.from(pn).includes(document.activeElement)||U(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&P()},{flush:"post"}),$n(()=>t.hoverIndex,Vt=>{$o(Vt)&&Vt>-1?C.value=te.value[Vt]||{}:C.value={},te.value.forEach(_n=>{_n.hover=C.value===_n})});const le=()=>{Gr(()=>{var Vt,_n;if(!l.value)return;const Mt=l.value.$el.querySelector("input");F=F||(Mt.clientHeight>0?Mt.clientHeight+2:0);const pn=g.value,En=Ydt(fe.value||(R==null?void 0:R.size)),zn=fe.value||En===F||F<=0?En:F;!(Mt.offsetParent===null)&&(Mt.style.height=`${(t.selected.length===0?zn:Math.max(pn?pn.clientHeight+(pn.clientHeight>zn?6:0):0,zn))-2}px`),t.visible&&$.value!==!1&&((_n=(Vt=v.value)==null?void 0:Vt.updatePopper)==null||_n.call(Vt))})},_e=async Vt=>{if(!(t.previousQuery===Vt||t.isOnComposition)){if(t.previousQuery===null&&(Ji(e.filterMethod)||Ji(e.remoteMethod))){t.previousQuery=Vt;return}t.previousQuery=Vt,Gr(()=>{var _n,Mt;t.visible&&((Mt=(_n=v.value)==null?void 0:_n.updatePopper)==null||Mt.call(_n))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Gr(()=>{const _n=u.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,_n):_n,M(),le()}),e.remote&&Ji(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Vt)):Ji(e.filterMethod)?(e.filterMethod(Vt),dD(T)):(t.filteredOptionsCount=t.optionsCount,S.value.query=Vt,dD(S),dD(T)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Gr(),P())}},M=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=u.value.value?"":t.cachedPlaceHolder)},P=()=>{const Vt=te.value.filter(pn=>pn.visible&&!pn.disabled&&!pn.states.groupDisabled),_n=Vt.find(pn=>pn.created),Mt=Vt[0];t.hoverIndex=$e(te.value,_n||Mt)},U=()=>{var Vt;if(e.multiple)t.selectedLabel="";else{const Mt=j(e.modelValue);(Vt=Mt.props)!=null&&Vt.created?(t.createdLabel=Mt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Mt.currentLabel,t.selected=Mt,e.filterable&&(t.query=t.selectedLabel);return}const _n=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Mt=>{_n.push(j(Mt))}),t.selected=_n,Gr(()=>{le()})},j=Vt=>{let _n;const Mt=fZ(Vt).toLowerCase()==="object",pn=fZ(Vt).toLowerCase()==="null",En=fZ(Vt).toLowerCase()==="undefined";for(let Yn=t.cachedOptions.size-1;Yn>=0;Yn--){const qr=V.value[Yn];if(Mt?lu(qr.value,e.valueKey)===lu(Vt,e.valueKey):qr.value===Vt){_n={value:Vt,currentLabel:qr.currentLabel,isDisabled:qr.isDisabled};break}}if(_n)return _n;const zn=Mt?Vt.label:!pn&&!En?Vt:"",nn={value:Vt,currentLabel:zn};return e.multiple&&(nn.hitState=!1),nn},ee=()=>{setTimeout(()=>{const Vt=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(_n=>te.value.findIndex(Mt=>lu(Mt,Vt)===lu(_n,Vt)))):t.hoverIndex=-1:t.hoverIndex=te.value.findIndex(_n=>vt(_n)===vt(t.selected))},300)},ye=()=>{var Vt,_n;ie(),(_n=(Vt=v.value)==null?void 0:Vt.updatePopper)==null||_n.call(Vt),e.multiple&&le()},ie=()=>{var Vt;t.inputWidth=(Vt=l.value)==null?void 0:Vt.$el.offsetWidth},he=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,_e(t.query))},re=Lv(()=>{he()},Q.value),be=Lv(Vt=>{_e(Vt.target.value)},Q.value),Ae=Vt=>{p0(e.modelValue,Vt)||n.emit(Ll,Vt)},Te=Vt=>{if(Vt.code!==ao.delete){if(Vt.target.value.length<=0&&!We()){const _n=e.modelValue.slice();_n.pop(),n.emit(Ma,_n),Ae(_n)}Vt.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Ue=(Vt,_n)=>{const Mt=t.selected.indexOf(_n);if(Mt>-1&&!X.value){const pn=e.modelValue.slice();pn.splice(Mt,1),n.emit(Ma,pn),Ae(pn),n.emit("remove-tag",_n.value)}Vt.stopPropagation()},Oe=Vt=>{Vt.stopPropagation();const _n=e.multiple?[]:"";if(!Ga(_n))for(const Mt of t.selected)Mt.isDisabled&&_n.push(Mt.value);n.emit(Ma,_n),Ae(_n),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},De=Vt=>{var _n;if(e.multiple){const Mt=(e.modelValue||[]).slice(),pn=$e(Mt,Vt.value);pn>-1?Mt.splice(pn,1):(e.multipleLimit<=0||Mt.length<e.multipleLimit)&&Mt.push(Vt.value),n.emit(Ma,Mt),Ae(Mt),Vt.created&&(t.query="",_e(""),t.inputLength=20),e.filterable&&((_n=u.value)==null||_n.focus())}else n.emit(Ma,Vt.value),Ae(Vt.value),t.visible=!1;rt(),!t.visible&&Gr(()=>{ct(Vt)})},$e=(Vt=[],_n)=>{if(!Qs(_n))return Vt.indexOf(_n);const Mt=e.valueKey;let pn=-1;return Vt.some((En,zn)=>ls(lu(En,Mt))===lu(_n,Mt)?(pn=zn,!0):!1),pn},rt=()=>{const Vt=u.value||l.value;Vt&&(Vt==null||Vt.focus())},ct=Vt=>{var _n,Mt,pn,En,zn;const nn=Array.isArray(Vt)?Vt[0]:Vt;let Yn=null;if(nn!=null&&nn.value){const qr=te.value.filter(Br=>Br.value===nn.value);qr.length>0&&(Yn=qr[0].$el)}if(v.value&&Yn){const qr=(En=(pn=(Mt=(_n=v.value)==null?void 0:_n.popperRef)==null?void 0:Mt.contentRef)==null?void 0:pn.querySelector)==null?void 0:En.call(pn,`.${i.be("dropdown","wrap")}`);qr&&khe(qr,Yn)}(zn=w.value)==null||zn.handleScroll()},lt=Vt=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Vt.value,Vt),t.cachedOptions.set(Vt.value,Vt)},ot=(Vt,_n)=>{t.options.get(Vt)===_n&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Vt))},Fe=Vt=>{Vt.code!==ao.backspace&&We(!1),t.inputLength=u.value.value.length*15+20,le()},We=Vt=>{if(!Array.isArray(t.selected))return;const _n=t.selected[t.selected.length-1];if(!!_n)return Vt===!0||Vt===!1?(_n.hitState=Vt,Vt):(_n.hitState=!_n.hitState,_n.hitState)},Ye=Vt=>{const _n=Vt.target.value;if(Vt.type==="compositionend")t.isOnComposition=!1,Gr(()=>_e(_n));else{const Mt=_n[_n.length-1]||"";t.isOnComposition=!NV(Mt)}},Ke=()=>{Gr(()=>ct(t.selected))},mt=Vt=>{DZ?DZ=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",Vt))},Ct=()=>{var Vt,_n,Mt;t.visible=!1,(Vt=l.value)==null||Vt.blur(),(Mt=(_n=f.value)==null?void 0:_n.blur)==null||Mt.call(_n)},bt=Vt=>{setTimeout(()=>{var _n;if((_n=v.value)!=null&&_n.isFocusInsideContent()){DZ=!0;return}t.visible&&Ft(),n.emit("blur",Vt)})},tn=Vt=>{Oe(Vt)},Ft=()=>{t.visible=!1},It=Vt=>{t.visible&&(Vt.preventDefault(),Vt.stopPropagation(),t.visible=!1)},Et=Vt=>{var _n;Vt&&!t.mouseEnter||X.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!v.value||!v.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((_n=u.value||l.value)==null||_n.focus()))},At=()=>{t.visible?te.value[t.hoverIndex]&&De(te.value[t.hoverIndex]):Et()},vt=Vt=>Qs(Vt.value)?lu(Vt.value,e.valueKey):Vt.value,Tt=Ne(()=>te.value.filter(Vt=>Vt.visible).every(Vt=>Vt.disabled)),Wt=Ne(()=>t.selected.slice(0,e.maxCollapseTags)),xt=Ne(()=>t.selected.slice(e.maxCollapseTags)),at=Vt=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Tt.value){Vt==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Vt==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const _n=te.value[t.hoverIndex];(_n.disabled===!0||_n.states.groupDisabled===!0||!_n.visible)&&at(Vt),Gr(()=>ct(C.value))}};return{optionList:B,optionsArray:te,selectSize:fe,handleResize:ye,debouncedOnInputChange:re,debouncedQueryChange:be,deletePrevTag:Te,deleteTag:Ue,deleteSelected:Oe,handleOptionSelect:De,scrollToOption:ct,readonly:A,resetInputHeight:le,showClose:Z,iconComponent:z,iconReverse:Y,showNewOption:K,collapseTagSize:de,setSelected:U,managePlaceholder:M,selectDisabled:X,emptyText:$,toggleLastOptionHitState:We,resetInputState:Fe,handleComposition:Ye,onOptionCreate:lt,onOptionDestroy:ot,handleMenuEnter:Ke,handleFocus:mt,blur:Ct,handleBlur:bt,handleClearClick:tn,handleClose:Ft,handleKeydownEscape:It,toggleMenu:Et,selectOption:At,getValueKey:vt,navigateOptions:at,handleDeleteTooltipTag:(Vt,_n)=>{var Mt,pn;Ue(Vt,_n),(pn=(Mt=h.value)==null?void 0:Mt.updatePopper)==null||pn.call(Mt)},dropMenuVisible:ne,queryChange:S,groupQueryChange:T,showTagList:Wt,collapseTagList:xt,reference:l,input:u,iOSInput:f,tooltipRef:v,tagTooltipRef:h,tags:g,selectWrapper:y,scrollbar:w,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var $8t=Zt({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(l,u){if(l.length!==u.length)return!1;for(const[f]of l.entries())if(l[f]!=u[f])return!1;return!0}return()=>{var l,u;
59const f=(l=t.default)==null?void 0:l.call(t),v=[];function h(g){!Array.isArray(g)||g.forEach(y=>{var w,C,S,T;const B=(w=(y==null?void 0:y.type)||{})==null?void 0:w.name;B==="ElOptionGroup"?h(!Ga(y.children)&&!Array.isArray(y.children)&&Ji((C=y.children)==null?void 0:C.default)?(S=y.children)==null?void 0:S.default():y.children):B==="ElOption"?v.push((T=y.props)==null?void 0:T.label):Array.isArray(y.children)&&h(y.children)})}return f.length&&h((u=f[0])==null?void 0:u.children),i(v,r)||(r=v,n("update-options",v)),f}}});const qle="ElSelect",z8t=Zt({name:qle,componentName:qle,components:{ElInput:Ov,ElSelectMenu:B8t,ElOption:Ene,ElOptions:$8t,ElTag:NI,ElScrollbar:D3,ElTooltip:Ch,ElIcon:Zr},directives:{ClickOutside:W8},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:MV},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:h1.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:xl,default:M3},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:xl,default:O3},tagType:{...pne.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:$C,default:"bottom-start"}},emits:[Ma,Ll,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Vn("select"),r=Vn("input"),{t:i}=Ni(),l=P8t(e),{optionList:u,optionsArray:f,selectSize:v,readonly:h,handleResize:g,collapseTagSize:y,debouncedOnInputChange:w,debouncedQueryChange:C,deletePrevTag:S,deleteTag:T,deleteSelected:B,handleOptionSelect:F,scrollToOption:R,setSelected:N,resetInputHeight:A,managePlaceholder:X,showClose:Z,selectDisabled:z,iconComponent:Y,iconReverse:Q,showNewOption:$,emptyText:te,toggleLastOptionHitState:V,resetInputState:K,handleComposition:fe,onOptionCreate:de,onOptionDestroy:ne,handleMenuEnter:le,handleFocus:_e,blur:M,handleBlur:P,handleClearClick:U,handleClose:j,handleKeydownEscape:ee,toggleMenu:ye,selectOption:ie,getValueKey:he,navigateOptions:re,handleDeleteTooltipTag:be,dropMenuVisible:Ae,reference:Te,input:Ue,iOSInput:Oe,tooltipRef:De,tagTooltipRef:$e,tags:rt,selectWrapper:ct,scrollbar:lt,queryChange:ot,groupQueryChange:Fe,handleMouseEnter:We,handleMouseLeave:Ye,showTagList:Ke,collapseTagList:mt}=F8t(e,l,t),{focus:Ct}=t1t(Te),{inputWidth:bt,selected:tn,inputLength:Ft,filteredOptionsCount:It,visible:Et,selectedLabel:At,hoverIndex:vt,query:Tt,inputHovering:Wt,currentPlaceholder:xt,menuVisibleOnFocus:at,isOnComposition:_t,options:en,cachedOptions:An,optionsCount:Vt,prefixWidth:_n}=Dc(l),Mt=Ne(()=>{const la=[n.b()],Na=L(v);return Na&&la.push(n.m(Na)),e.disabled&&la.push(n.m("disabled")),la}),pn=Ne(()=>[n.e("tags"),n.is("disabled",L(z))]),En=Ne(()=>[n.b("tags-wrapper"),{"has-prefix":L(_n)&&L(tn).length}]),zn=Ne(()=>[n.e("input"),n.is(L(v)),n.is("disabled",L(z))]),nn=Ne(()=>[n.e("input"),n.is(L(v)),n.em("input","iOS")]),Yn=Ne(()=>[n.is("empty",!e.allowCreate&&Boolean(L(Tt))&&L(It)===0)]),qr=Ne(()=>({maxWidth:`${L(bt)-32}px`,width:"100%"})),Br=Ne(()=>({maxWidth:`${L(bt)>123?L(bt)-123:L(bt)-75}px`})),io=Ne(()=>({marginLeft:`${L(_n)}px`,flexGrow:1,width:`${L(Ft)/(L(bt)-32)}%`,maxWidth:`${L(bt)-42}px`}));$a(lR,gi({props:e,options:en,optionsArray:f,cachedOptions:An,optionsCount:Vt,filteredOptionsCount:It,hoverIndex:vt,handleOptionSelect:F,onOptionCreate:de,onOptionDestroy:ne,selectWrapper:ct,selected:tn,setSelected:N,queryChange:ot,groupQueryChange:Fe})),ia(()=>{l.cachedPlaceHolder=xt.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(xt.value=""),Rv(ct,g),e.remote&&e.multiple&&A(),Gr(()=>{const la=Te.value&&Te.value.$el;if(!!la&&(bt.value=la.getBoundingClientRect().width,t.slots.prefix)){const Na=la.querySelector(`.${r.e("prefix")}`);_n.value=Math.max(Na.getBoundingClientRect().width+11,30)}}),N()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ma,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ma,"");const xa=Ne(()=>{var la,Na;return(Na=(la=De.value)==null?void 0:la.popperRef)==null?void 0:Na.contentRef});return{isIOS:Fve,onOptionsRendered:la=>
59{u.value=la},prefixWidth:_n,selectSize:v,readonly:h,handleResize:g,collapseTagSize:y,debouncedOnInputChange:w,debouncedQueryChange:C,deletePrevTag:S,deleteTag:T,handleDeleteTooltipTag:be,deleteSelected:B,handleOptionSelect:F,scrollToOption:R,inputWidth:bt,selected:tn,inputLength:Ft,filteredOptionsCount:It,visible:Et,selectedLabel:At,hoverIndex:vt,query:Tt,inputHovering:Wt,currentPlaceholder:xt,menuVisibleOnFocus:at,isOnComposition:_t,options:en,resetInputHeight:A,managePlaceholder:X,showClose:Z,selectDisabled:z,iconComponent:Y,iconReverse:Q,showNewOption:$,emptyText:te,toggleLastOptionHitState:V,resetInputState:K,handleComposition:fe,handleMenuEnter:le,handleFocus:_e,blur:M,handleBlur:P,handleClearClick:U,handleClose:j,handleKeydownEscape:ee,toggleMenu:ye,selectOption:ie,getValueKey:he,navigateOptions:re,dropMenuVisible:Ae,focus:Ct,reference:Te,input:Ue,iOSInput:Oe,tooltipRef:De,popperPaneRef:xa,tags:rt,selectWrapper:ct,scrollbar:lt,wrapperKls:Mt,tagsKls:pn,tagWrapperKls:En,inputKls:zn,iOSInputKls:nn,scrollbarKls:Yn,selectTagsStyle:qr,nsSelect:n,tagTextStyle:Br,inputStyle:io,handleMouseEnter:We,handleMouseLeave:Ye,showTagList:Ke,collapseTagList:mt,tagTooltipRef:$e}}}),H8t=["disabled","autocomplete"],V8t=["disabled"],U8t={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function j8t(e,t,n,r,i,l){const u=Kr("el-tag"),f=Kr("el-tooltip"),v=Kr("el-icon"),h=Kr("el-input"),g=Kr("el-option"),y=Kr("el-options"),w=Kr("el-scrollbar"),C=Kr("el-select-menu"),S=$A("click-outside");return ea((Ce(),Ie("div",{ref:"selectWrapper",class:He(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...T)=>e.handleMouseEnter&&e.handleMouseEnter(...T)),onMouseleave:t[22]||(t[22]=(...T)=>e.handleMouseLeave&&e.handleMouseLeave(...T)),onClick:t[23]||(t[23]=Do((...T)=>e.toggleMenu&&e.toggleMenu(...T),["stop"]))},[gt(f,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Dt(()=>
59[ce("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=T=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=T=>e.inputHovering=!1)},[e.multiple?(Ce(),Ie("div",{key:0,ref:"tags",class:He(e.tagsKls),style:Pr(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(Ce(),yn(Ic,{key:0,onAfterLeave:e.resetInputHeight},{default:Dt(()=>[ce("span",{class:He(e.tagWrapperKls)},[(Ce(!0),Ie(Ur,null,La(e.showTagList,T=>(Ce(),yn(u,{key:e.getValueKey(T),closable:!e.selectDisabled&&!T.isDisabled,size:e.collapseTagSize,hit:T.hitState,type:e.tagType,"disable-transitions":"",onClose:B=>e.deleteTag(B,T)},{default:Dt(()=>[ce("span",{class:He(e.nsSelect.e("tags-text")),style:Pr(e.tagTextStyle)},Zn(T.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(Ce(),yn(u,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Dt(()=>[e.collapseTagsTooltip?(Ce(),yn(f,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Dt(()=>
vendor: 1,036 bytes, line 59
59[ce("span",{class:He(e.nsSelect.e("tags-text"))},"+ "+Zn(e.selected.length-e.maxCollapseTags),3)]),content:Dt(()=>[ce("div",{class:He(e.nsSelect.e("collapse-tags"))},[(Ce(!0),Ie(Ur,null,La(e.collapseTagList,T=>(Ce(),Ie("div",{key:e.getValueKey(T),class:He(e.nsSelect.e("collapse-tag"))},[gt(u,{class:"in-tooltip",closable:!e.selectDisabled&&!T.isDisabled,size:e.collapseTagSize,hit:T.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:B=>e.handleDeleteTooltipTag(B,T)},{default:Dt(()=>[ce("span",{class:He(e.nsSelect.e("tags-text")),style:Pr({maxWidth:e.inputWidth-75+"px"})},Zn(T.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(Ce(),Ie("span",{key:1,class:He(e.nsSelect.e("tags-text"))},"+ "+Zn(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):on("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):on("v-if",!0),e.collapseTags?on("v-if",!0):(Ce(),yn(Ic,{key:1,onAfterLeave:e.resetInputHeight},{default:Dt(()=>
59[ce("span",{class:He(e.tagWrapperKls),style:Pr(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(Ce(!0),Ie(Ur,null,La(e.selected,T=>(Ce(),yn(u,{key:e.getValueKey(T),closable:!e.selectDisabled&&!T.isDisabled,size:e.collapseTagSize,hit:T.hitState,type:e.tagType,"disable-transitions":"",onClose:B=>e.deleteTag(B,T)},{default:Dt(()=>[ce("span",{class:He(e.nsSelect.e("tags-text")),style:Pr({maxWidth:e.inputWidth-75+"px"})},Zn(T.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?ea((Ce(),Ie("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=T=>e.query=T),type:"text",class:He(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Pr(e.inputStyle),onFocus:t[1]||(t[1]=(...T)=>e.handleFocus&&e.handleFocus(...T)),onBlur:t[2]||(t[2]=(...T)=>e.handleBlur&&e.handleBlur(...T)),onKeyup:t[3]||(t[3]=(...T)=>e.managePlaceholder&&e.managePlaceholder(...T)),onKeydown:[t[4]||(t[4]=(...T)=>e.resetInputState&&e.resetInputState(...T)),t[5]||(t[5]=mi(Do(T=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=mi(Do(T=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=mi((...T)=>e.handleKeydownEscape&&e.handleKeydownEscape(...T),["esc"])),t[8]||(t[8]=mi(Do((...T)=>e.selectOption&&e.selectOption(...T),["stop","prevent"]),["enter"])),t[9]||(t[9]=mi((...T)=>e.deletePrevTag&&e.deletePrevTag(...T),["delete"])),t[10]||(t[10]=mi(T=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...T)=>e.handleComposition&&e.handleComposition(...T)),onCompositionupdate:t[12]||(t[12]=(...T)=>e.handleComposition&&e.handleComposition(...T)),onCompositionend:t[13]||(t[13]=(...T)=>e.handleComposition&&e.handleComposition(...T)),onInput:t[14]||(t[14]=(...T)=>e.debouncedQueryChange&&e.debouncedQueryChange(...T))},null,46,H8t)),[[UA,e.query]]):on("v-if",!0)],6)):on("v-if",!0),on(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(Ce(),Ie("input",{key:1,ref:"iOSInput",class:He(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,V8t)):on("v-if",!0),gt(h,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=T=>e.selectedLabel=T),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:He([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=mi(Do(T=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=mi(Do(T=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),mi(Do(e.selectOption,["stop","prevent"]),["enter"]),mi(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=mi(T=>e.visible=!1,["tab"]))]},b3({suffix:Dt(()=>[e.iconComponent&&!e.showClose?(Ce(),yn(v,{key:0,class:He([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Dt(()=>[(Ce(),yn(Fa(e.iconComponent)))]),_:1},8,["class"])):on("v-if",!0),e.showClose&&e.clearIcon?(Ce(),yn(v,{key:1,class:He([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Dt(()=>[(Ce(),yn(Fa(e.clearIcon)))]),_:1},8,["class","onClick"])):on("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:Dt(()=>[ce("div",U8t,[Fn(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Dt(()=>[gt(C,null,{default:Dt(()=>[ea(gt(w,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:He(e.scrollbarKls)},{default:Dt(()=>[e.showNewOption?(Ce(),yn(g,{key:0,value:e.query,created:!0},null,8,["value"])):on("v-if",!0),gt(y,{onUpdateOptions:e.onOptionsRendered},{default:Dt(()=>[Fn(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3}
59,8,["wrap-class","view-class","class"]),[[Ti,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(Ce(),Ie(Ur,{key:0},[e.$slots.empty?Fn(e.$slots,"empty",{key:0}):(Ce(),Ie("p",{key:1,class:He(e.nsSelect.be("dropdown","empty"))},Zn(e.emptyText),3))],64)):on("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[S,e.handleClose,e.popperPaneRef]])}var W8t=vr(z8t,[["render",j8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const G8t=Zt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Vn("select"),n=et(!0),r=va(),i=et([]);$a(Mme,gi({...Dc(e)}));const l=jr(lR);ia(()=>{i.value=u(r.subTree)});const u=v=>{const h=[];return Array.isArray(v.children)&&v.children.forEach(g=>{var y;g.type&&g.type.name==="ElOption"&&g.component&&g.component.proxy?h.push(g.component.proxy):(y=g.children)!=null&&y.length&&h.push(...u(g))}),h},{groupQueryChange:f}=ls(l);return $n(f,()=>{n.value=i.value.some(v=>v.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function K8t(e,t,n,r,i,l){return ea((Ce(),Ie("ul",{class:He(e.ns.be("group","wrap"))},[ce("li",{class:He(e.ns.be("group","title"))},Zn(e.label),3),ce("li",null,[ce("ul",{class:He(e.ns.b("group"))},[Fn(e.$slots,"default")],2)])],2)),[[Ti,e.visible]])}var Nme=vr(G8t,[["render",K8t],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const MC=Ca(W8t,{Option:Ene,OptionGroup:Nme}),NH=qu(Ene),Y8t=qu(Nme),Sne=()=>jr(Ome,{}),q8t=hr({pageSize:{type:Number,required:!0},pageSizes:{type:gn(Array),default:()=>uu([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:gb}}),X8t=Zt({name:"ElPaginationSizes"}),Z8t=Zt({...X8t,props:q8t,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Ni(),i=Vn("pagination"),l=Sne(),u=et(n.pageSize);$n(()=>n.pageSizes,(h,g)=>{if(!p0(h,g)&&Array.isArray(h)){const y=h.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",y)}}),$n(()=>n.pageSize,h=>{u.value=h});const f=Ne(()=>n.pageSizes);function v(h){var g;h!==u.value&&(u.value=h,(g=l.handleSizeChange)==null||g.call(l,Number(h)))}return(h,g)=>(Ce(),Ie("span",{class:He(L(i).e("sizes"))},[gt(L(MC),{"model-value":u.value,disabled:h.disabled,"popper-class":h.popperClass,size:h.size,"validate-event":!1,onChange:v},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(L(f),y=>(Ce(),yn(L(NH),{key:y,value:y,label:y+L(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Q8t=vr(Z8t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const J8t=hr({size:{type:String,values:gb}}),e5t=["disabled"],t5t=Zt({name:"ElPaginationJumper"}),n5t=Zt({...t5t,props:J8t,setup(e){const{t}=Ni(),n=Vn("pagination"),{pageCount:r,disabled:i,currentPage:l,changeEvent:u}=Sne(),f=et(),v=Ne(()=>{var y;return(y=f.value)!=null?y:l==null?void 0:l.value});function h(y){f.value=y?+y:""}function g(y){y=Math.trunc(+y),u==null||u(y),f.value=void 0}return(y,w)=>(Ce(),Ie("span",{class:He(L(n).e("jump")),disabled:L(i)},[ce("span",{class:He([L(n).e("goto")])},Zn(L(t)("el.pagination.goto")),3),gt(L(Ov),{size:y.size,class:He([L(n).e("editor"),L(n).is("in-pagination")]),min:1,max:L(r),disabled:L(i),"model-value":L(v),"validate-event":!1,label:L(t)("el.pagination.page"),type:"number","onUpdate:modelValue":h,onChange:g},null,8,["size","class","max","disabled","model-value","label"]),ce("span",{class:He([L(n).e("classifier")])},Zn(L(t)("el.pagination.pageClassifier")),3)],10,e5t))}});var r5t=vr(n5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const o5t=hr({total:{type:Number,default:1e3}}),a5t=["disabled"],i5t=Zt({name:"ElPaginationTotal"}),s5t=Zt({...i5t,props:o5t,setup(e){const{t}=Ni(),n=Vn("pagination"),{disabled:r}=Sne();return(i,l)=>(Ce(),Ie("span",{class:He(L(n).e("total")),disabled:L(r)},Zn(L(t)("el.pagination.total",{total:i.total})),11,a5t))}});var l5t=vr(s5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const u5t=hr({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),c5t=["onKeyup"],f5t=["aria-current","aria-label","tabindex"],d5t=["tabindex","aria-label"],v5t=["aria-current","aria-label","tabindex"],h5t=["tabindex","aria-label"],p5t=["aria-current","aria-label","tabindex"],m5t=Zt
59({name:"ElPaginationPager"}),g5t=Zt({...m5t,props:u5t,emits:["change"],setup(e,{emit:t}){const n=e,r=Vn("pager"),i=Vn("icon"),{t:l}=Ni(),u=et(!1),f=et(!1),v=et(!1),h=et(!1),g=et(!1),y=et(!1),w=Ne(()=>{const A=n.pagerCount,X=(A-1)/2,Z=Number(n.currentPage),z=Number(n.pageCount);let Y=!1,Q=!1;z>A&&(Z>A-X&&(Y=!0),Z<z-X&&(Q=!0));const $=[];if(Y&&!Q){const te=z-(A-2);for(let V=te;V<z;V++)$.push(V)}else if(!Y&&Q)for(let te=2;te<A;te++)$.push(te);else if(Y&&Q){const te=Math.floor(A/2)-1;for(let V=Z-te;V<=Z+te;V++)$.push(V)}else for(let te=2;te<z;te++)$.push(te);return $}),C=Ne(()=>["more","btn-quickprev",i.b(),r.is("disabled",n.disabled)]),S=Ne(()=>["more","btn-quicknext",i.b(),r.is("disabled",n.disabled)]),T=Ne(()=>n.disabled?-1:0);h0(()=>{const A=(n.pagerCount-1)/2;u.value=!1,f.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-A&&(u.value=!0),n.currentPage<n.pageCount-A&&(f.value=!0))});function B(A=!1){n.disabled||(A?v.value=!0:h.value=!0)}function F(A=!1){A?g.value=!0:y.value=!0}function R(A){const X=A.target;if(X.tagName.toLowerCase()==="li"&&Array.from(X.classList).includes("number")){const Z=Number(X.textContent);Z!==n.currentPage&&t("change",Z)}else X.tagName.toLowerCase()==="li"&&Array.from(X.classList).includes("more")&&N(A)}function N(A){const X=A.target;if(X.tagName.toLowerCase()==="ul"||n.disabled)return;let Z=Number(X.textContent);const z=n.pageCount,Y=n.currentPage,Q=n.pagerCount-2;X.className.includes("more")&&(X.className.includes("quickprev")?Z=Y-Q:X.className.includes("quicknext")&&(Z=Y+Q)),Number.isNaN(+Z)||(Z<1&&(Z=1),Z>z&&(Z=z)),Z!==Y&&t("change",Z)}return(A,X)=>(Ce(),Ie("ul",{class:He(L(r).b()),onClick:N,onKeyup:mi(R,["enter"])},[A.pageCount>0?(Ce(),Ie("li",{key:0,class:He([[L(r).is("active",A.currentPage===1),L(r).is("disabled",A.disabled)],"number"]),"aria-current":A.currentPage===1,"aria-label":L(l)("el.pagination.currentPage",{pager:1}),tabindex:L(T)}," 1 ",10,f5t)):on("v-if",!0),u.value?(Ce(),Ie("li",{key:1,class:He(L(C)),tabindex:L(T),"aria-label":L(l)("el.pagination.prevPages",{pager:A.pagerCount-2}),onMouseenter:X[0]||(X[0]=Z=>B(!0)),onMouseleave:X[1]||(X[1]=Z=>v.value=!1),onFocus:X[2]||(X[2]=Z=>F(!0)),onBlur:X[3]||(X[3]=Z=>g.value=!1)},[(v.value||g.value)&&!A.disabled?(Ce(),yn(L(kC),{key:0})):(Ce(),yn(L(hJ),{key:1}))],42,d5t)):on("v-if",!0),(Ce(!0),Ie(Ur,null,La(L(w),Z=>(Ce(),Ie("li",{key:Z,class:He([[L(r).is("active",A.currentPage===Z),L(r).is("disabled",A.disabled)],"number"]),"aria-current":A.currentPage===Z,"aria-label":L(l)("el.pagination.currentPage",{pager:Z}),tabindex:L(T)},Zn(Z),11,v5t))),128)),f.value?(Ce(),Ie("li",{key:2,class:He(L(S)),tabindex:L(T),"aria-label":L(l)("el.pagination.nextPages",{pager:A.pagerCount-2}),onMouseenter:X[4]||(X[4]=Z=>B()),onMouseleave:X[5]||(X[5]=Z=>h.value=!1),onFocus:X[6]||(X[6]=Z=>F()),onBlur:X[7]||(X[7]=Z=>y.value=!1)},[(h.value||y.value)&&!A.disabled?(Ce(),yn(L(OC),{key:0})):(Ce(),yn(L(hJ),{key:1}))],42,h5t)):on("v-if",!0),A.pageCount>1?(Ce(),Ie("li",{key:3,class:He([[L(r).is("active",A.currentPage===A.pageCount),L(r).is("disabled",A.disabled)],"number"]),"aria-current":A.currentPage===A.pageCount,"aria-label":L(l)("el.pagination.currentPage",{pager:A.pageCount}),tabindex:L(T)},Zn(A.pageCount),11,p5t)):on("v-if",!0)],42,c5t))}});var y5t=vr(g5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const hh=e=>typeof e!="number",b5t=hr({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>$o(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:gn(Array),default:()=>uu([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:xl,default:()=>w3},nextText:{type:String,default:""},nextIcon:{type:xl,default:()=>Nv},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),_5t={"update:current-page":e=>$o(e),"update:page-size":e=>$o(e),"size-change":e=>$o(e),"current-change":e=>$o(e),"prev-click":e=>$o(e),"next-click":e=>$o(e)},Xle="ElPagination";
59var w5t=Zt({name:Xle,props:b5t,emits:_5t,setup(e,{emit:t,slots:n}){const{t:r}=Ni(),i=Vn("pagination"),l=va().vnode.props||{},u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,f="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,v=Ne(()=>{if(hh(e.total)&&hh(e.pageCount)||!hh(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(hh(e.pageCount)){if(!hh(e.total)&&!hh(e.pageSize)&&!f)return!1}else if(!f)return!1}return!0}),h=et(hh(e.defaultPageSize)?10:e.defaultPageSize),g=et(hh(e.defaultCurrentPage)?1:e.defaultCurrentPage),y=Ne({get(){return hh(e.pageSize)?h.value:e.pageSize},set(N){hh(e.pageSize)&&(h.value=N),f&&(t("update:page-size",N),t("size-change",N))}}),w=Ne(()=>{let N=0;return hh(e.pageCount)?hh(e.total)||(N=Math.max(1,Math.ceil(e.total/y.value))):N=e.pageCount,N}),C=Ne({get(){return hh(e.currentPage)?g.value:e.currentPage},set(N){let A=N;N<1?A=1:N>w.value&&(A=w.value),hh(e.currentPage)&&(g.value=A),u&&(t("update:current-page",A),t("current-change",A))}});$n(w,N=>{C.value>N&&(C.value=N)});function S(N){C.value=N}function T(N){y.value=N;const A=w.value;C.value>A&&(C.value=A)}function B(){e.disabled||(C.value-=1,t("prev-click",C.value))}function F(){e.disabled||(C.value+=1,t("next-click",C.value))}function R(N,A){N&&(N.props||(N.props={}),N.props.class=[N.props.class,A].join(" "))}return $a(Ome,{pageCount:w,disabled:Ne(()=>e.disabled),currentPage:C,changeEvent:S,handleSizeChange:T}),()=>{var N,A;if(!v.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&w.value<=1)return null;const X=[],Z=[],z=oo("div",{class:i.e("rightwrapper")},Z),Y={prev:oo(E8t,{disabled:e.disabled,currentPage:C.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:B}),jumper:oo(r5t,{size:e.small?"small":"default"}),pager:oo(y5t,{currentPage:C.value,pageCount:w.value,pagerCount:e.pagerCount,onChange:S,disabled:e.disabled}),next:oo(M8t,{disabled:e.disabled,currentPage:C.value,pageCount:w.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:F}),sizes:oo(Q8t,{pageSize:y.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(A=(N=n==null?void 0:n.default)==null?void 0:N.call(n))!=null?A:null,total:oo(l5t,{total:hh(e.total)?0:e.total})},Q=e.layout.split(",").map(te=>te.trim());let $=!1;return Q.forEach(te=>{if(te==="->"){$=!0;return}$?Z.push(Y[te]):X.push(Y[te])}),R(X[0],i.is("first")),R(X[X.length-1],i.is("last")),$&&Z.length>0&&(R(Z[0],i.is("first")),R(Z[Z.length-1],i.is("last")),X.push(z)),oo("div",{class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},X)}}});const C5t=Ca(w5t),x5t=hr({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:EJ,default:"primary"},cancelButtonType:{type:String,values:EJ,default:"text"},icon:{type:xl,default:()=>zhe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:h1.teleported,persistent:h1.persistent,width:{type:[String,Number],default:150}}),E5t={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},S5t=Zt({name:"ElPopconfirm"}),T5t=Zt({...S5t,props:x5t,emits:E5t,setup(e,{emit:t}){const n=e,{t:r}=Ni(),i=Vn("popconfirm"),l=et(),u=()=>{var w,C;(C=(w=l.value)==null?void 0:w.onClose)==null||C.call(w)},f=Ne(()=>({width:Nc(n.width)})),v=w=>{t("confirm",w),u()},h=w=>{t("cancel",w),u()},g=Ne(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),y=Ne(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(w,C)=>(Ce(),yn(L(Ch),Pa({ref_key:"tooltipRef",ref:l,trigger:"click",effect:"light"},w.$attrs,{"popper-class":`${L(i).namespace.value}-popover`,"popper-style":L(f),teleported:w.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":w.hideAfter,persistent:w.persistent}),{content:Dt(()=>[ce("div",{class:He(L(i).b())},[ce("div",{class:He(L(i).e("main"))},[!w.hideIcon&&w.icon?(Ce(),yn(L(Zr),{key:0,class:He(L(i).e("icon")),style:Pr({color:w.iconColor})},{default:Dt(()=>[(Ce(),yn(Fa(w.icon)))]),_:1},8,["class","style"])):on("v-if",!0),lo(" "+Zn(w.title),1)],2),ce("div",{class:He(L(i).e("action"))},[gt(L(Z1),{size:"small",type:w.cancelButtonType==="text"?"":w.cancelButtonType,text:w.cancelButtonType==="text",onClick:h},{default:Dt(()=>[lo(Zn(L(y)),1)]),_:1},8,["type","text"]),gt(L(Z1),{size:"small",type:w.confirmButtonType==="text"?"":w.confirmButtonType,text:w.confirmButtonType==="text",onClick:v},{default:Dt(()=>[lo(Zn(L(g)),1)]),_:1}
59,8,["type","text"])],2)],2)]),default:Dt(()=>[w.$slots.reference?Fn(w.$slots,"reference",{key:0}):on("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var A5t=vr(T5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const k5t=Ca(A5t),O5t=hr({trigger:MI.trigger,placement:jz.placement,disabled:MI.disabled,visible:h1.visible,transition:h1.transition,popperOptions:jz.popperOptions,tabindex:jz.tabindex,content:h1.content,popperStyle:h1.popperStyle,popperClass:h1.popperClass,enterable:{...h1.enterable,default:!0},effect:{...h1.effect,default:"light"},teleported:h1.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),M5t={"update:visible":e=>Wf(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},N5t="onUpdate:visible",D5t=Zt({name:"ElPopover"}),I5t=Zt({...D5t,props:O5t,emits:M5t,setup(e,{expose:t,emit:n}){const r=e,i=Ne(()=>r[N5t]),l=Vn("popover"),u=et(),f=Ne(()=>{var B;return(B=L(u))==null?void 0:B.popperRef}),v=Ne(()=>[{width:Nc(r.width)},r.popperStyle]),h=Ne(()=>[l.b(),r.popperClass,{[l.m("plain")]:!!r.content}]),g=Ne(()=>r.transition===`${l.namespace.value}-fade-in-linear`),y=()=>{var B;(B=u.value)==null||B.hide()},w=()=>{n("before-enter")},C=()=>{n("before-leave")},S=()=>{n("after-enter")},T=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:f,hide:y}),(B,F)=>(Ce(),yn(L(Ch),Pa({ref_key:"tooltipRef",ref:u},B.$attrs,{trigger:B.trigger,placement:B.placement,disabled:B.disabled,visible:B.visible,transition:B.transition,"popper-options":B.popperOptions,tabindex:B.tabindex,content:B.content,offset:B.offset,"show-after":B.showAfter,"hide-after":B.hideAfter,"auto-close":B.autoClose,"show-arrow":B.showArrow,"aria-label":B.title,effect:B.effect,enterable:B.enterable,"popper-class":L(h),"popper-style":L(v),teleported:B.teleported,persistent:B.persistent,"gpu-acceleration":L(g),"onUpdate:visible":L(i),onBeforeShow:w,onBeforeHide:C,onShow:S,onHide:T}),{content:Dt(()=>[B.title?(Ce(),Ie("div",{key:0,class:He(L(l).e("title")),role:"title"},Zn(B.title),3)):on("v-if",!0),Fn(B.$slots,"default",{},()=>[lo(Zn(B.content),1)])]),default:Dt(()=>[B.$slots.reference?Fn(B.$slots,"reference",{key:0}):on("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var R5t=vr(I5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Zle=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var L5t={mounted(e,t){Zle(e,t)},updated(e,t){Zle(e,t)}};const B5t="popover",Dme=Wdt(L5t,B5t),P5t=Ca(R5t,{directive:Dme}),F5t=hr({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:gn(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:gn([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:gn(Function),default:e=>`${e}%`}}),$5t=["aria-valuenow"],z5t={viewBox:"0 0 100 100"},H5t=["d","stroke","stroke-linecap","stroke-width"],V5t=["d","stroke","opacity","stroke-linecap","stroke-width"],U5t={key:0},j5t=Zt({name:"ElProgress"}),W5t=Zt({...j5t,props:F5t,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Vn("progress"),i=Ne(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:R(t.percentage)})),l=Ne(()=>(t.strokeWidth/t.width*100).toFixed(1)),u=Ne(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),f=Ne(()=>{const N=u.value,A=t.type==="dashboard";return` 60 M 50 50 61 m 0 ${A?"":"-"}${N} 62 a ${N} ${N} 0 1 1 0 ${A?"-":""}${N*2} 63 a ${N} ${N} 0 1 1 0 ${A?"":"-"}${N*2} 64 `}),v=Ne(()=>2*Math.PI*u.value),h=Ne(()=>t.type==="dashboard"?.75:1),g=Ne(()=>`${-1*v.value*(1-h.value)/2}px`),y=Ne(()=>({strokeDasharray:`${v.value*h.value}px, ${v.value}px`,strokeDashoffset:g.value})),w=Ne(()=>({strokeDasharray:`${v.value*h.value*(t.percentage/100)}px, ${v.value}px`,strokeDashoffset:g.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),C=Ne(()=>{let N;return t.color?N=R(t.percentage):N=n[t.status]||n.default,N}),S=Ne(()=>t.status==="warning"?rR:t.type==="line"?t.status==="success"?TV:M3:t.status==="success"?p7:Dm),T=Ne(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),B=Ne(()=>t.format(t.percentage));function F(N){const A=100/N.length;return N.map((Z,z)=>Ga(Z)?{color:Z,percentage:(z+1)*A}:Z).sort((Z,z)=>Z.percentage-z.percentage)}const R=N=>{var A;const{color:X}=t;if(Ji(X))return X(N);if(Ga(X))return X;{const Z=F(X);for(const z of Z)if(z.percentage>N)return z.color;return(A=Z[Z.length-1])==null?void 0:A.color}};return(N,A)=>(Ce(),Ie("div",{class:He([L(r).b(),L(r).m(N.type),L(r).is(N.status),{[L(r).m("without-text")]:!N.showText,[L(r).m("text-inside")]:N.textInside}]),role:"progressbar","aria-valuenow":N.percentage,"aria-valuemin":"
640","aria-valuemax":"100"},[N.type==="line"?(Ce(),Ie("div",{key:0,class:He(L(r).b("bar"))},[ce("div",{class:He(L(r).be("bar","outer")),style:Pr({height:`${N.strokeWidth}px`})},[ce("div",{class:He([L(r).be("bar","inner"),{[L(r).bem("bar","inner","indeterminate")]:N.indeterminate},{[L(r).bem("bar","inner","striped")]:N.striped},{[L(r).bem("bar","inner","striped-flow")]:N.stripedFlow}]),style:Pr(L(i))},[(N.showText||N.$slots.default)&&N.textInside?(Ce(),Ie("div",{key:0,class:He(L(r).be("bar","innerText"))},[Fn(N.$slots,"default",{percentage:N.percentage},()=>[ce("span",null,Zn(L(B)),1)])],2)):on("v-if",!0)],6)],6)],2)):(Ce(),Ie("div",{key:1,class:He(L(r).b("circle")),style:Pr({height:`${N.width}px`,width:`${N.width}px`})},[(Ce(),Ie("svg",z5t,[ce("path",{class:He(L(r).be("circle","track")),d:L(f),stroke:`var(${L(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":N.strokeLinecap,"stroke-width":L(l),fill:"none",style:Pr(L(y))},null,14,H5t),ce("path",{class:He(L(r).be("circle","path")),d:L(f),stroke:L(C),fill:"none",opacity:N.percentage?1:0,"stroke-linecap":N.strokeLinecap,"stroke-width":L(l),style:Pr(L(w))},null,14,V5t)]))],6)),(N.showText||N.$slots.default)&&!N.textInside?(Ce(),Ie("div",{key:2,class:He(L(r).e("text")),style:Pr({fontSize:`${L(T)}px`})},[Fn(N.$slots,"default",{percentage:N.percentage},()=>[N.status?(Ce(),yn(L(Zr),{key:1},{default:Dt(()=>[(Ce(),yn(Fa(L(S))))]),_:1})):(Ce(),Ie("span",U5t,Zn(L(B)),1))])],6)):on("v-if",!0)],10,$5t))}});var G5t=vr(W5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Ime=Ca(G5t),K5t=hr({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:gn([Array,Object]),default:()=>uu(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:gn([Array,Object]),default:()=>[RD,RD,RD]},voidIcon:{type:xl,default:()=>Khe},disabledVoidIcon:{type:xl,default:()=>RD},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:gn(Array),default:()=>uu(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ev,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Y5t={[Ll]:e=>$o(e),[Ma]:e=>$o(e)},q5t=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],X5t=["onMousemove","onClick"],Z5t=Zt({name:"ElRate"}),Q5t=Zt({...Z5t,props:K5t,emits:Y5t,setup(e,{expose:t,emit:n}){const r=e;function i(ne,le){const _e=U=>Qs(U),M=Object.keys(le).map(U=>+U).filter(U=>{const j=le[U];return(_e(j)?j.excluded:!1)?ne<U:ne<=U}).sort((U,j)=>U-j),P=le[M[0]];return _e(P)&&P.value||P}const l=jr(zC,void 0),u=jr(hb,void 0),f=Kf(),v=Vn("rate"),{inputId:h,isLabeledByFormItem:g}=q8(r,{formItemContext:u}),y=et(r.modelValue),w=et(-1),C=et(!0),S=Ne(()=>[v.b(),v.m(f.value)]),T=Ne(()=>r.disabled||(l==null?void 0:l.disabled)),B=Ne(()=>v.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":A.value})),F=Ne(()=>{let ne="";return r.showScore?ne=r.scoreTemplate.replace(/\{\s*value\s*\}/,T.value?`${r.modelValue}`:`${y.value}`):r.showText&&(ne=r.texts[Math.ceil(y.value)-1]),ne}),R=Ne(()=>r.modelValue*100-Math.floor(r.modelValue)*100),N=Ne(()=>Oa(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),A=Ne(()=>{const ne=i(y.value,N.value);return Qs(ne)?"":ne}),X=Ne(()=>{let ne="";return T.value?ne=`${R.value}%`:r.allowHalf&&(ne="50%"),{color:A.value,width:ne}}),Z=Ne(()=>{let ne=Oa(r.icons)?[...r.icons]:{...r.icons};return ne=gC(ne),Oa(ne)?{[r.lowThreshold]:ne[0],[r.highThreshold]:{value:ne[1],excluded:!0},[r.max]:ne[2]}:ne}),z=Ne(()=>i(r.modelValue,Z.value)),Y=Ne(()=>T.value?Ga(r.disabledVoidIcon)?r.disabledVoidIcon:gC(r.disabledVoidIcon):Ga(r.voidIcon)?r.voidIcon:gC(r.voidIcon)),Q=Ne(()=>i(y.value,Z.value));function $(ne){const le=T.value&&R.value>0&&ne-1<r.modelValue&&ne>r.modelValue,_e=r.allowHalf&&C.value&&ne-.5<=y.value&&ne>y.value;return le||_e}function te(ne){r.clearable&&ne===r.modelValue&&(ne=0),n(Ma,ne),r.modelValue!==ne&&n("change",ne)}function V(ne){T.value||(r.allowHalf&&C.value?te(y.value):te(ne))}function K(ne){if(T.value)return;let le=y.value;const _e=ne.code;return _e===ao.up||_e===ao.right?(r.allowHalf?le+=.5:le+=1,ne.stopPropagation(),ne.preventDefault()):(_e===ao.left||_e===ao.down)&&(r.allowHalf?le-=.5:le-=1,ne.stopPropagation(),ne.preventDefault()),le=le<0?0:le,le=le>r.max?r.max:le,n(Ma,le),n("change",le),le}function fe(ne,le){if(!T.value){if(r.allowHalf&&le){let _e=le.target;e2(_e,v.e("item"))&&(_e=_e.querySelector(`.${v.e("icon")}`)),(_e.clientWidth===0||e2(_e,v.e("decimal")))&&(_e=_e.parentNode),C.value=le.offsetX*2<=_e.clientWidth,y.value=C.value?ne-.5:ne}else y.value=ne;w.value=ne}}function de(){T.value||(r.allowHalf&&(C.value=r.modelValue!==Math.floor(r.modelValue)),y.value=r.modelValue,w.value=-1)}return $n(()=>r.modelValue,ne=>{y.value=ne,C.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Ma,0),t({setCurrentValue:fe,resetCurrentValue:de}),(ne,le)=>{var _e;return Ce(),Ie("div",{id:L(h),class:He([L(S),L(v).is("disabled",L(T))]),role:"slider","aria-label":L(g)?void 0:ne.label||"rating","aria-labelledby":L(g)?(_e=L(u))==null?void 0:_e.labelId:void 0,"aria-valuenow":y.value,"aria-valuetext":L(F)||void 0,"aria-valuemin":"
640","aria-valuemax":ne.max,tabindex:"0",style:Pr(L(B)),onKeydown:K},[(Ce(!0),Ie(Ur,null,La(ne.max,(M,P)=>(Ce(),Ie("span",{key:P,class:He(L(v).e("item")),onMousemove:U=>fe(M,U),onMouseleave:de,onClick:U=>V(M)},[gt(L(Zr),{class:He([L(v).e("icon"),{hover:w.value===M},L(v).is("active",M<=y.value)])},{default:Dt(()=>[$(M)?on("v-if",!0):(Ce(),Ie(Ur,{key:0},[ea((Ce(),yn(Fa(L(Q)),null,null,512)),[[Ti,M<=y.value]]),ea((Ce(),yn(Fa(L(Y)),null,null,512)),[[Ti,!(M<=y.value)]])],64)),$(M)?(Ce(),yn(L(Zr),{key:1,style:Pr(L(X)),class:He([L(v).e("icon"),L(v).e("decimal")])},{default:Dt(()=>[(Ce(),yn(Fa(L(z))))]),_:1},8,["style","class"])):on("v-if",!0)]),_:2},1032,["class"])],42,X5t))),128)),ne.showText||ne.showScore?(Ce(),Ie("span",{key:0,class:He(L(v).e("text"))},Zn(L(F)),3)):on("v-if",!0)],46,q5t)}}});var J5t=vr(Q5t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ewt=Ca(J5t),yA={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Qle={[yA.success]:Dhe,[yA.warning]:rR,[yA.error]:AV,[yA.info]:kV},twt=hr({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),nwt=Zt({name:"ElResult"}),rwt=Zt({...nwt,props:twt,setup(e){const t=e,n=Vn("result"),r=Ne(()=>{const i=t.icon,l=i&&yA[i]?yA[i]:"icon-info",u=Qle[l]||Qle["icon-info"];return{class:l,component:u}});return(i,l)=>(Ce(),Ie("div",{class:He(L(n).b())},[ce("div",{class:He(L(n).e("icon"))},[Fn(i.$slots,"icon",{},()=>[L(r).component?(Ce(),yn(Fa(L(r).component),{key:0,class:He(L(r).class)},null,8,["class"])):on("v-if",!0)])],2),i.title||i.$slots.title?(Ce(),Ie("div",{key:0,class:He(L(n).e("title"))},[Fn(i.$slots,"title",{},()=>[ce("p",null,Zn(i.title),1)])],2)):on("v-if",!0),i.subTitle||i.$slots["sub-title"]?(Ce(),Ie("div",{key:1,class:He(L(n).e("subtitle"))},[Fn(i.$slots,"sub-title",{},()=>[ce("p",null,Zn(i.subTitle),1)])],2)):on("v-if",!0),i.$slots.extra?(Ce(),Ie("div",{key:2,class:He(L(n).e("extra"))},[Fn(i.$slots,"extra")],2)):on("v-if",!0)],2))}});var owt=vr(rwt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const awt=Ca(owt);var Jle=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function iwt(e,t){return!!(e===t||Jle(e)&&Jle(t))}function swt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!iwt(e[n],t[n]))return!1;return!0}function lwt(e,t){t===void 0&&(t=swt);var n=null;function r(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var u=e.apply(this,i);return n={lastResult:u,lastArgs:i,lastThis:this},u}return r.clear=function(){n=null},r}const Rme=()=>{const t=va().proxy.$props;return Ne(()=>{const n=(r,i,l)=>({});return t.perfMode?xV(n):lwt(n)})},VJ=50,DH="itemRendered",IH="scroll",bA="forward",RH="backward",Tm="auto",jV="smart",II="start",ab="center",RI="end",r7="horizontal",Tne="vertical",uwt="ltr",IA="rtl",LI="negative",Ane="positive-ascending",kne="positive-descending",cwt={[r7]:"left",[Tne]:"top"},fwt=20,dwt={[r7]:"deltaX",[Tne]:"deltaY"},vwt=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let i,l=0;const u=v=>v<0&&t.value||v>0&&e.value;return{hasReachedEdge:u,onWheel:v=>{DV(i);const h=v[dwt[n.value]];u(l)&&u(l+h)||(l+=h,Hve()||v.preventDefault(),i=EI(()=>{r(l),l=0}))}}},UJ=u2({type:gn([Number,Function]),required:!0}),jJ=u2({type:Number}),WJ=u2({type:Number,default:2}),hwt=u2({type:String,values:["ltr","rtl"],default:"ltr"}),GJ=u2({type:Number,default:0}),LH=u2({type:Number,required:!0}),Lme=u2({type:String,values:["horizontal","vertical"],default:Tne}),Bme=hr({className:{type:String,default:""},containerElement:{type:gn([String,Object]),default:"div"},data:{type:gn(Array),default:()=>uu([])},direction:hwt,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:gn([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Pme=hr({cache:WJ,estimatedItemSize:jJ,layout:Lme,initScrollOffset:GJ,total:LH,itemSize:UJ,...Bme}),KJ={type:Number,default:6},Fme={type:Number,default:0},$me={type:Number,default:2},wC=hr({columnCache:WJ,columnWidth:UJ,estimatedColumnWidth:jJ,estimatedRowHeight:jJ,initScrollLeft:GJ,initScrollTop:GJ,itemKey:{type:gn(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:WJ,rowHeight:UJ,totalColumn:LH,totalRow:LH,hScrollbarSize:KJ,vScrollbarSize:KJ,scrollbarStartGap:Fme,scrollbarEndGap:$me,role:String,...Bme}),zme=hr({alwaysOn:Boolean,class:String,layout:Lme,total:LH,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:KJ,startGap:Fme,endGap:$me,visible:Boolean}),cC=(e,t)=>e<t?bA:RH,BI=e=>e===uwt||e===IA||e===r7,eue=e=>e===IA;let QT=null;function BH(e=!1){if(QT===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>
640?QT=kne:(t.scrollLeft=1,t.scrollLeft===0?QT=LI:QT=Ane),document.body.removeChild(t),QT}return QT}function pwt({move:e,size:t,bar:n},r){const i={},l=`translate${n.axis}(${e}px)`;return i[n.size]=t,i.transform=l,i.msTransform=l,i.webkitTransform=l,r==="horizontal"?i.height="100%":i.width="100%",i}const YJ=Zt({name:"ElVirtualScrollBar",props:zme,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=Ne(()=>e.startGap+e.endGap),r=Vn("virtual-scrollbar"),i=Vn("scrollbar"),l=et(),u=et();let f=null,v=null;const h=gi({isDragging:!1,traveled:0}),g=Ne(()=>F0e[e.layout]),y=Ne(()=>e.clientSize-L(n)),w=Ne(()=>({position:"absolute",width:`${r7===e.layout?y.value:e.scrollbarSize}px`,height:`${r7===e.layout?e.scrollbarSize:y.value}px`,[cwt[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),C=Ne(()=>{const Z=e.ratio,z=e.clientSize;if(Z>=100)return Number.POSITIVE_INFINITY;if(Z>=50)return Z*z/100;const Y=z/3;return Math.floor(Math.min(Math.max(Z*z,fwt),Y))}),S=Ne(()=>{if(!Number.isFinite(C.value))return{display:"none"};const Z=`${C.value}px`;return pwt({bar:g.value,size:Z,move:h.traveled},e.layout)}),T=Ne(()=>Math.floor(e.clientSize-C.value-L(n))),B=()=>{window.addEventListener("mousemove",A),window.addEventListener("mouseup",N);const Z=L(u);!Z||(v=document.onselectstart,document.onselectstart=()=>!1,Z.addEventListener("touchmove",A),Z.addEventListener("touchend",N))},F=()=>{window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",N),document.onselectstart=v,v=null;const Z=L(u);!Z||(Z.removeEventListener("touchmove",A),Z.removeEventListener("touchend",N))},R=Z=>{Z.stopImmediatePropagation(),!(Z.ctrlKey||[1,2].includes(Z.button))&&(h.isDragging=!0,h[g.value.axis]=Z.currentTarget[g.value.offset]-(Z[g.value.client]-Z.currentTarget.getBoundingClientRect()[g.value.direction]),t("start-move"),B())},N=()=>{h.isDragging=!1,h[g.value.axis]=0,t("stop-move"),F()},A=Z=>{const{isDragging:z}=h;if(!z||!u.value||!l.value)return;const Y=h[g.value.axis];if(!Y)return;DV(f);const Q=(l.value.getBoundingClientRect()[g.value.direction]-Z[g.value.client])*-1,$=u.value[g.value.offset]-Y,te=Q-$;f=EI(()=>{h.traveled=Math.max(e.startGap,Math.min(te,T.value)),t("scroll",te,T.value)})},X=Z=>{const z=Math.abs(Z.target.getBoundingClientRect()[g.value.direction]-Z[g.value.client]),Y=u.value[g.value.offset]/2,Q=z-Y;h.traveled=Math.max(0,Math.min(Q,T.value)),t("scroll",Q,T.value)};return $n(()=>e.scrollFrom,Z=>{h.isDragging||(h.traveled=Math.ceil(Z*T.value))}),Bl(()=>{F()}),()=>oo("div",{role:"presentation",ref:l,class:[r.b(),e.class,(e.alwaysOn||h.isDragging)&&"always-on"],style:w.value,onMousedown:Do(X,["stop","prevent"]),onTouchstartPrevent:R},oo("div",{ref:u,class:i.e("thumb"),style:S.value,onMousedown:R},[]))}}),Hme=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:i,getStartIndexForOffset:l,getStopIndexForStartIndex:u,initCache:f,clearCache:v,validateProps:h})=>Zt({name:e!=null?e:"ElVirtualList",props:Pme,emits:[DH,IH],setup(g,{emit:y,expose:w}){h(g);const C=va(),S=Vn("vl"),T=et(f(g,C)),B=Rme(),F=et(),R=et(),N=et(),A=et({isScrolling:!1,scrollDir:"forward",scrollOffset:$o(g.initScrollOffset)?g.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:g.scrollbarAlwaysOn}),X=Ne(()=>{const{total:ee,cache:ye}=g,{isScrolling:ie,scrollDir:he,scrollOffset:re}=L(A);if(ee===0)return[0,0,0,0];const be=l(g,re,L(T)),Ae=u(g,be,re,L(T)),Te=!ie||he===RH?Math.max(1,ye):1,Ue=!ie||he===bA?Math.max(1,ye):1;return[Math.max(0,be-Te),Math.max(0,Math.min(ee-1,Ae+Ue)),be,Ae]}),Z=Ne(()=>i(g,L(T))),z=Ne(()=>BI(g.layout)),Y=Ne(()=>[{position:"relative",[`overflow-${z.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:$o(g.height)?`${g.height}px`:g.height,width:$o(g.width)?`${g.width}px`:g.width},g.style]),Q=Ne(()=>{const ee=L(Z),ye=L(z);return{height:ye?"100%":`${ee}px`,pointerEvents:L(A).isScrolling?"none":void 0,width:ye?`${ee}px`:"100%"}}),$=Ne(()=>z.value?g.width:g.height),{onWheel:te}=vwt({atStartEdge:Ne(()=>A.value.scrollOffset<=0),atEndEdge:Ne(()=>A.value.scrollOffset>=Z.value),layout:Ne(()=>g.layout)},ee=>{var ye,ie;(ie=(ye=N.value).onMouseUp)==null||ie.call(ye),le(Math.min(A.value.scrollOffset+ee,Z.value-$.value))}),V=()=>{const{total:ee}=g;if(ee>0){const[re,be,Ae,Te]=L(X);y(DH,re,be,Ae,Te)}const{scrollDir:ye,scrollOffset:ie,updateRequested:he}=L(A);y(IH,ye,ie,he)},K=ee=>{const{clientHeight:ye,scrollHeight:ie,scrollTop:he}=ee.currentTarget,re=L(A);if(re.scrollOffset===he)return;const be=Math.max(0,Math.min(he,ie-ye));A.value={...re,isScrolling:!0,scrollDir:cC(re.scrollOffset,be),scrollOffset:be,updateRequested:!1},Gr(P)},fe=ee=>{const{clientWidth:ye,scrollLeft:ie,scrollWidth:he}=ee.currentTarget,re=L(A);if(re.scrollOffset===ie)return;const{direction:be}=g;let Ae=ie;if(be===IA)switch(BH()){case LI:{Ae=-ie;break}case kne:{Ae=he-ye-ie;break}}Ae=Math.max(0,Math.min(Ae,he-ye)),A.value={...re,isScrolling:!0,scrollDir:cC(re.scrollOffset,Ae),scrollOffset:Ae,updateRequested:!1},Gr(P)},de=ee=>{L(z)?fe(ee):K(ee),V()},ne=(ee,ye)=>{const ie=(Z.value-$.value)/ye*ee;le(Math.min(Z.value-$.value,ie))},le=ee=>{ee=Math.max(ee,0),ee!==L(A).scrollOffset&&(A.value={...L(A),scrollOffset:ee,scrollDir:cC(L(A).scrollOffset,ee),updateRequested:!0},Gr(P))},_e=(ee,ye=Tm)=>{const{scrollOffset:ie}=L(A);ee=Math.max(0,Math.min(ee,g.total-1)),le(t(g,ee,ye,ie,L(T)))},M=ee=>{const{direction:ye,itemSize:ie,layout:he}=g,re=B.value(v&&ie,v&&he,v&&ye);let be;if(J1(re,String(ee)))be=re[ee];else{const Ae=r(g,ee,L(T)),Te=n(g,ee,L(T)),Ue=L(z),Oe=ye===IA,De=Ue?Ae:0;re[ee]=be={position:"absolute",left:Oe?void 0:`${De}px`,right:Oe?`${De}px`:void 0,top:Ue?0:`${Ae}px`,height:Ue?"100%":`${Te}px`,width:Ue?`${Te}px`:"100%"}}return be},P=()=>{A.value.isScrolling=!1,Gr(()=>
64{B.value(-1,null,null)})},U=()=>{const ee=F.value;ee&&(ee.scrollTop=0)};ia(()=>{if(!_i)return;const{initScrollOffset:ee}=g,ye=L(F);$o(ee)&&ye&&(L(z)?ye.scrollLeft=ee:ye.scrollTop=ee),V()}),S3(()=>{const{direction:ee,layout:ye}=g,{scrollOffset:ie,updateRequested:he}=L(A),re=L(F);if(he&&re)if(ye===r7)if(ee===IA)switch(BH()){case LI:{re.scrollLeft=-ie;break}case Ane:{re.scrollLeft=ie;break}default:{const{clientWidth:be,scrollWidth:Ae}=re;re.scrollLeft=Ae-be-ie;break}}else re.scrollLeft=ie;else re.scrollTop=ie});const j={ns:S,clientSize:$,estimatedTotalSize:Z,windowStyle:Y,windowRef:F,innerRef:R,innerStyle:Q,itemsToRender:X,scrollbarRef:N,states:A,getItemStyle:M,onScroll:de,onScrollbarScroll:ne,onWheel:te,scrollTo:le,scrollToItem:_e,resetScrollTop:U};return w({windowRef:F,innerRef:R,getItemStyleCache:B,scrollTo:le,scrollToItem:_e,resetScrollTop:U,states:A}),j},render(g){var y;const{$slots:w,className:C,clientSize:S,containerElement:T,data:B,getItemStyle:F,innerElement:R,itemsToRender:N,innerStyle:A,layout:X,total:Z,onScroll:z,onScrollbarScroll:Y,onWheel:Q,states:$,useIsScrolling:te,windowStyle:V,ns:K}=g,[fe,de]=N,ne=Fa(T),le=Fa(R),_e=[];if(Z>0)for(let j=fe;j<=de;j++)_e.push((y=w.default)==null?void 0:y.call(w,{data:B,key:j,index:j,isScrolling:te?$.isScrolling:void 0,style:F(j)}));const M=[oo(le,{style:A,ref:"innerRef"},Ga(le)?_e:{default:()=>_e})],P=oo(YJ,{ref:"scrollbarRef",clientSize:S,layout:X,onScroll:Y,ratio:S*100/this.estimatedTotalSize,scrollFrom:$.scrollOffset/(this.estimatedTotalSize-S),total:Z}),U=oo(ne,{class:[K.e("window"),C],style:V,onScroll:z,onWheel:Q,ref:"windowRef",key:0},Ga(ne)?[M]:{default:()=>[M]});return oo("div",{key:0,class:[K.e("wrapper"),$.scrollbarAlwaysOn?"always-on":""]},[U,P])}}),Vme=Hme({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:i},l,u,f)=>{const v=BI(r)?i:e,h=Math.max(0,t*n-v),g=Math.min(h,l*n),y=Math.max(0,(l+1)*n-v);switch(u===jV&&(f>=y-v&&f<=g+v?u=Tm:u=ab),u){case II:return g;case RI:return y;case ab:{const w=Math.round(y+(g-y)/2);return w<Math.ceil(v/2)?0:w>h+Math.floor(v/2)?h:w}case Tm:default:return f>=y&&f<=g?f:f<y?y:g}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:i},l,u)=>{const f=l*n,v=BI(r)?i:e,h=Math.ceil((v+u-f)/n);return Math.max(0,Math.min(t-1,l+h-1))},initCache(){},clearCache:!0,validateProps(){}}),_A=(e,t,n)=>{const{itemSize:r}=e,{items:i,lastVisitedIndex:l}=n;if(t>l){let u=0;if(l>=0){const f=i[l];u=f.offset+f.size}for(let f=l+1;f<=t;f++){const v=r(f);i[f]={offset:u,size:v},u+=v}n.lastVisitedIndex=t}return i[t]},mwt=(e,t,n)=>{const{items:r,lastVisitedIndex:i}=t;return(i>0?r[i].offset:0)>=n?Ume(e,t,0,i,n):gwt(e,t,Math.max(0,i),n)},Ume=(e,t,n,r,i)=>{for(;n<=r;){const l=n+Math.floor((r-n)/2),u=_A(e,l,t).offset;if(u===i)return l;u<i?n=l+1:u>i&&(r=l-1)}return Math.max(0,n-1)},gwt=(e,t,n,r)=>{const{total:i}=e;let l=1;for(;n<i&&_A(e,n,t).offset<r;)n+=l,l*=2;return Ume(e,t,Math.floor(n/2),Math.min(n,i-1),r)},tue=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let i=0;if(r>=e&&(r=e-1),r>=0){const f=t[r];i=f.offset+f.size}const u=(e-r-1)*n;return i+u},ywt=Hme({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>_A(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:tue,getOffset:(e,t,n,r,i)=>{const{height:l,layout:u,width:f}=e,v=BI(u)?f:l,h=_A(e,t,i),g=tue(e,i),y=Math.max(0,Math.min(g-v,h.offset)),w=Math.max(0,h.offset-v+h.size);switch(n===jV&&(r>=w-v&&r<=y+v?n=Tm:n=ab),n){case II:return y;case RI:return w;case ab:return Math.round(w+(y-w)/2);case Tm:default:return r>=w&&r<=y?r:r<w?w:y}},getStartIndexForOffset:(e,t,n)=>mwt(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:i,total:l,layout:u,width:f}=e,v=BI(u)?f:i,h=_A(e,t,r),g=n+v;let y=h.offset+h.size,w=t;for(;w<l-1&&y<g;)w++,y+=_A(e,w,r).size;return w},initCache({estimatedItemSize:e=VJ},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,i=!0)=>{var l,u;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(l=t.exposed)==null||l.getItemStyleCache(-1),i&&((u=t.proxy)==null||u.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),bwt=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},i)=>{let l=null,u=0,f=0;const v=(g,y)=>{const w=g<=0&&t.value||g>=0&&e.value,C=y<=0&&r.value||y>=0&&n.value;return w&&C};return{hasReachedEdge:v,onWheel:g=>{DV(l);let y=g.deltaX,w=g.deltaY;Math.abs(y)>Math.abs(w)?w=0:y=0,g.shiftKey&&w!==0&&(y=w,w=0),!(v(u,f)&&v(u+y,f+w))&&(u+=y,f+=w,g.preventDefault(),l=EI(()=>{i(u,f),u=0,f=0}))}}},jme=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:i,getEstimatedTotalHeight:l,getEstimatedTotalWidth:u,getColumnOffset:f,getRowOffset:v,getRowPosition:h,getRowStartIndexForOffset:g,getRowStopIndexForStartIndex:y,initCache:w,injectToInstance:C,validateProps:S})=>Zt({name:e!=null?e:"ElVirtualList",props:wC,emits:[DH,IH],setup(T,{emit:B,expose:F,slots:R}){const N=Vn("vl");S(T);const A=va(),X=et(w(T,A));C==null||C(A,X);const Z=et(),z=et(),Y=et(),Q=et(null),$=et({isScrolling:!1,scrollLeft:$o(T.initScrollLeft)?T.initScrollLeft:0,scrollTop:$o(T.initScrollTop)?T.initScrollTop:0,updateRequested:!1,xAxisScrollDir:bA,yAxisScrollDir:bA}),te=Rme(),V=Ne(()=>Number.parseInt(`${T.height}`,10)),K=Ne(()=>Number.parseInt(`${T.width}`,10)),fe=Ne(()=>{const{totalColumn:lt,totalRow:ot,columnCache:Fe}=T,{isScrolling:We,xAxisScrollDir:Ye,scrollLeft:Ke}=L($);if(lt===0||ot===0)return[0,0,0,0];const mt=r(T,Ke,L(X)),Ct=i(T,mt,Ke,L(X)),bt=!We||Ye===RH?Math.max(1,Fe):1,tn=!We||Ye===bA?Math.max(1,Fe):1;return[Math.max(0,mt-bt),Math.max(0,Math.min(lt-1,Ct+tn)),mt,Ct]}),de=Ne(()=>{const{totalColumn:lt,totalRow:ot,rowCache:Fe}=T,{isScrolling:We,yAxisScrollDir:Ye,scrollTop:Ke}=L($);if(lt===0||ot===0)return[0,0,0,0];const mt=g(T,Ke,L(X)),Ct=y(T,mt,Ke,L(X)),bt=!We||Ye===RH?Math.max(1,Fe):1,tn=!We||Ye===bA?Math.max(1,Fe):1;return[Math.max(0,mt-bt),Math.max(0,Math.min(ot-1,Ct+tn)),mt,Ct]}),ne=Ne(()=>l(T,L(X))),le=Ne(()=>u(T,L(X))),_e=Ne(()=>{var lt;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:T.direction,height:$o(T.height)?`${T.height}px`:T.height,width:$o(T.width)?`${T.width}px`:T.width},(lt=T.style)!=null?lt:{}]}),M=Ne(()=>{const lt=`${L(le)}px`;return{height:`${L(ne)}px`,pointerEvents:L($).isScrolling?"none":void 0,width:lt}}),P=()=>{const{totalColumn:lt,totalRow:ot}=T;if(lt>0&&ot>0){const[Ct,bt,tn,Ft]=L(fe),[It,Et,At,vt]=L(de);B(DH,{columnCacheStart:Ct,columnCacheEnd:bt,rowCacheStart:It,rowCacheEnd:Et,columnVisibleStart:tn,columnVisibleEnd:Ft,rowVisibleStart:At,rowVisibleEnd:vt})}const{scrollLeft:Fe,scrollTop:We,updateRequested:Ye,xAxisScrollDir:Ke,yAxisScrollDir:mt}=L($);B(IH,{xAxisScrollDir:Ke,scrollLeft:Fe,yAxisScrollDir:mt,scrollTop:We,updateRequested:Ye})},U=lt=>{const{clientHeight:ot,clientWidth:Fe,scrollHeight:We,scrollLeft:Ye,scrollTop:Ke,scrollWidth:mt}=lt.currentTarget,Ct=L($);if(Ct.scrollTop===Ke&&Ct.scrollLeft===Ye)return;let bt=Ye;if(eue(T.direction))switch(BH()){case LI:bt=-Ye;break;case kne:bt=mt-Fe-Ye;break}$.value={...Ct,isScrolling:!0,scrollLeft:bt,scrollTop:Math.max(0,Math.min(Ke,We-ot)),updateRequested:!0,xAxisScrollDir:cC(Ct.scrollLeft,bt),yAxisScrollDir:cC(Ct.scrollTop,Ke)},Gr(()=>be()),Ae(),P()},j=(lt,ot)=>{const Fe=L(V),We=(ne.value-Fe)/ot*lt;ie({scrollTop:Math.min(ne.value-Fe,We)})},ee=(lt,ot)=>{const Fe=L(K),We=(le.value-Fe)/ot*lt;ie({scrollLeft:Math.min(le.value-Fe,We)})},{onWheel:ye}=bwt({atXStartEdge:Ne(()=>$.value.scrollLeft<=0),atXEndEdge:Ne(()=>$.value.scrollLeft>=le.value-L(K)),atYStartEdge:Ne(()=>$.value.scrollTop<=0),atYEndEdge:Ne(()=>$.value.scrollTop>=ne.value-L(V))},(lt,ot)=>{var Fe,We,Ye,Ke;(We=(Fe=z.value)==null?void 0:Fe.onMouseUp)==null||We.call(Fe),(Ke=(Ye=Y.value)==null?void 0:Ye.onMouseUp)==null||Ke.call(Ye);const mt=L(K),Ct=L(V);ie({scrollLeft:Math.min($.value.scrollLeft+lt,le.value-mt),scrollTop:Math.min($.value.scrollTop+ot,ne.value-Ct)})}),ie=({scrollLeft:lt=$.value.scrollLeft,scrollTop:ot=$.value.scrollTop})=>{lt=Math.max(lt,0),ot=Math.max(ot,0);const Fe=L($);ot===Fe.scrollTop&<===Fe.scrollLeft||($.value={...Fe,xAxisScrollDir:cC(Fe.scrollLeft,lt),yAxisScrollDir:cC(Fe.scrollTop,ot),scrollLeft:lt,scrollTop:ot,updateRequested:!0},Gr(()=>be()),Ae(),P())},he=(lt=0,ot=0,Fe=Tm)=>{const We=L($);ot=Math.max(0,Math.min(ot,T.totalColumn-1)),lt=Math.max(0,Math.min(lt,T.totalRow-1));const Ye=Ahe(N.namespace.value),Ke=L(X),mt=l(T,Ke),Ct=u(T,Ke);ie({scrollLeft:f(T,ot,Fe,We.scrollLeft,Ke,Ct>T.width?Ye:0),scrollTop:v(T,lt,Fe,We.scrollTop,Ke,mt>T.height?Ye:0)})},re=(lt,ot)=>{const{columnWidth:Fe,direction:We,rowHeight:Ye}=T,Ke=te.value(t&&Fe,t&&Ye,t&&We),mt=`${lt},${ot}`;if(J1(Ke,mt))return Ke[mt];{const[,Ct]=n(T,ot,L(X)),bt=L(X),tn=eue(We),[Ft,It]=h(T,lt,bt),[Et]=n(T,ot,bt);return Ke[mt]={position:"absolute",left:tn?void 0:`${Ct}px`,right:tn?`${Ct}px`:void 0,top:`${It}px`,height:`${Ft}px`,width:`${Et}px`},Ke[mt]}},be=()=>{$.value.isScrolling=!1,Gr(()=>
64{te.value(-1,null,null)})};ia(()=>{if(!_i)return;const{initScrollLeft:lt,initScrollTop:ot}=T,Fe=L(Z);Fe&&($o(lt)&&(Fe.scrollLeft=lt),$o(ot)&&(Fe.scrollTop=ot)),P()});const Ae=()=>{const{direction:lt}=T,{scrollLeft:ot,scrollTop:Fe,updateRequested:We}=L($),Ye=L(Z);if(We&&Ye){if(lt===IA)switch(BH()){case LI:{Ye.scrollLeft=-ot;break}case Ane:{Ye.scrollLeft=ot;break}default:{const{clientWidth:Ke,scrollWidth:mt}=Ye;Ye.scrollLeft=mt-Ke-ot;break}}else Ye.scrollLeft=Math.max(0,ot);Ye.scrollTop=Math.max(0,Fe)}},{resetAfterColumnIndex:Te,resetAfterRowIndex:Ue,resetAfter:Oe}=A.proxy;F({windowRef:Z,innerRef:Q,getItemStyleCache:te,scrollTo:ie,scrollToItem:he,states:$,resetAfterColumnIndex:Te,resetAfterRowIndex:Ue,resetAfter:Oe});const De=()=>{const{scrollbarAlwaysOn:lt,scrollbarStartGap:ot,scrollbarEndGap:Fe,totalColumn:We,totalRow:Ye}=T,Ke=L(K),mt=L(V),Ct=L(le),bt=L(ne),{scrollLeft:tn,scrollTop:Ft}=L($),It=oo(YJ,{ref:z,alwaysOn:lt,startGap:ot,endGap:Fe,class:N.e("horizontal"),clientSize:Ke,layout:"horizontal",onScroll:ee,ratio:Ke*100/Ct,scrollFrom:tn/(Ct-Ke),total:Ye,visible:!0}),Et=oo(YJ,{ref:Y,alwaysOn:lt,startGap:ot,endGap:Fe,class:N.e("vertical"),clientSize:mt,layout:"vertical",onScroll:j,ratio:mt*100/bt,scrollFrom:Ft/(bt-mt),total:We,visible:!0});return{horizontalScrollbar:It,verticalScrollbar:Et}},$e=()=>{var lt;const[ot,Fe]=L(fe),[We,Ye]=L(de),{data:Ke,totalColumn:mt,totalRow:Ct,useIsScrolling:bt,itemKey:tn}=T,Ft=[];if(Ct>0&&mt>0)for(let It=We;It<=Ye;It++)for(let Et=ot;Et<=Fe;Et++)Ft.push((lt=R.default)==null?void 0:lt.call(R,{columnIndex:Et,data:Ke,key:tn({columnIndex:Et,data:Ke,rowIndex:It}),isScrolling:bt?L($).isScrolling:void 0,style:re(It,Et),rowIndex:It}));return Ft},rt=()=>{const lt=Fa(T.innerElement),ot=$e();return[oo(lt,{style:L(M),ref:Q},Ga(lt)?ot:{default:()=>ot})]};return()=>{const lt=Fa(T.containerElement),{horizontalScrollbar:ot,verticalScrollbar:Fe}=De(),We=rt();return oo("div",{key:0,class:N.e("wrapper"),role:T.role},[oo(lt,{class:T.className,style:L(_e),onScroll:U,onWheel:ye,ref:Z},Ga(lt)?We:{default:()=>We}),ot,Fe])}}}),_wt=jme({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,i,l,u,f)=>{n=Number(n);const v=Math.max(0,e*t-n),h=Math.min(v,r*t),g=Math.max(0,r*t-n+f+t);switch(i==="smart"&&(l>=g-n&&l<=h+n?i=Tm:i=ab),i){case II:return h;case RI:return g;case ab:{const y=Math.round(g+(h-g)/2);return y<Math.ceil(n/2)?0:y>v+Math.floor(n/2)?v:y}case Tm:default:return l>=g&&l<=h?l:g>h||l<g?g:h}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,i,l,u,f)=>{t=Number(t);const v=Math.max(0,n*e-t),h=Math.min(v,r*e),g=Math.max(0,r*e-t+f+e);switch(i===jV&&(l>=g-t&&l<=h+t?i=Tm:i=ab),i){case II:return h;case RI:return g;case ab:{const y=Math.round(g+(h-g)/2);return y<Math.ceil(t/2)?0:y>v+Math.floor(t/2)?v:y}case Tm:default:return l>=g&&l<=h?l:g>h||l<g?g:h}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,i)=>{const l=r*e,u=Math.ceil((n+i-l)/e);return Math.max(0,Math.min(t-1,r+u-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,i)=>{const l=r*e,u=Math.ceil((n+i-l)/e);return Math.max(0,Math.min(t-1,r+u-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:PH,min:Wme,floor:Gme}=Math,wwt={column:"columnWidth",row:"rowHeight"},qJ={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},f3=(e,t,n,r)=>{const[i,l,u]=[n[r],e[wwt[r]],n[qJ[r]]];if(t>u){let f=0;if(u>=0){const v=i[u];f=v.offset+v.size}for(let v=u+1;v<=t;v++){const h=l(v);i[v]={offset:f,size:h},f+=h}n[qJ[r]]=t}return i[t]},Kme=(e,t,n,r,i,l)=>{for(;n<=r;){const u=n+Gme((r-n)/2),f=f3(e,u,t,l).offset;if(f===i)return u;f<i?n=u+1:r=u-1}return PH(0,n-1)},Cwt=(e,t,n,r,i)=>{const l=i==="column"?e.totalColumn:e.totalRow;let u=1;for(;n<l&&f3(e,n,t,i).offset<r;)n+=u,u*=2;return Kme(e,t,Gme(n/2),Wme(n,l-1),r,i)},nue=(e,t,n,r)=>{const[i,l]=[t[r],t[qJ[r]]];return(l>0?i[l].offset:0)>=n?Kme(e,t,0,l,n,r):Cwt(e,t,PH(0,l),n,r)},Yme=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let i=0;if(n>=e&&(n=e-1),n>=0){const f=r[n];i=f.offset+f.size}const u=(e-n-1)*t;return i+u},qme=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let i=0;if(r>e&&(r=e-1),r>=0){const f=t[r];i=f.offset+f.size}const u=(e-r-1)*n;return i+u},xwt={column:qme,row:Yme},rue=(e,t,n,r,i,l,u)=>{const[f,v]=[l==="row"?e.height:e.width,xwt[l]],h=f3(e,t,i,l),g=v(e,i),y=PH(0,Wme(g-f,h.offset)),w=PH(0,h.offset-f+u+h.size);switch(n===jV&&(r>=w-f&&r<=y+f?n=Tm:n=ab),n){case II:return y;case RI:return w;case ab:return Math.round(w+(y-w)/2);case Tm:default:return r>=w&&r<=y?r:w>y||r<w?w:y}}
64,Ewt=jme({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=f3(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=f3(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,i,l)=>rue(e,t,n,r,i,"column",l),getRowOffset:(e,t,n,r,i,l)=>rue(e,t,n,r,i,"row",l),getColumnStartIndexForOffset:(e,t,n)=>nue(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const i=f3(e,t,r,"column"),l=n+e.width;let u=i.offset+i.size,f=t;for(;f<e.totalColumn-1&&u<l;)f++,u+=f3(e,t,r,"column").size;return f},getEstimatedTotalHeight:Yme,getEstimatedTotalWidth:qme,getRowStartIndexForOffset:(e,t,n)=>nue(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:i,height:l}=e,u=f3(e,t,r,"row"),f=n+l;let v=u.size+u.offset,h=t;for(;h<i-1&&v<f;)h++,v+=f3(e,h,r,"row").size;return h},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:u},f)=>{var v,h;f=Vd(f)?!0:f,$o(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),$o(u)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,u-1)),(v=e.exposed)==null||v.getItemStyleCache.value(-1,null,null),f&&((h=e.proxy)==null||h.$forceUpdate())},r=(l,u)=>{n({columnIndex:l},u)},i=(l,u)=>{n({rowIndex:l},u)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:i,resetAfter:n})},initCache:({estimatedColumnWidth:e=VJ,estimatedRowHeight:t=VJ})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Swt=Zt({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Vn("select")}}});function Twt(e,t,n,r,i,l){return e.item.isTitle?(Ce(),Ie("div",{key:0,class:He(e.ns.be("group","title")),style:Pr([e.style,{lineHeight:`${e.height}px`}])},Zn(e.item.label),7)):(Ce(),Ie("div",{key:1,class:He(e.ns.be("group","split")),style:Pr(e.style)},[ce("span",{class:He(e.ns.be("group","split-dash")),style:Pr({top:`${e.height/2}px`})},null,6)],6))}var Awt=vr(Swt,[["render",Twt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function kwt(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Owt={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:M3},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:h1.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:MV},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:gn(String),values:$C,default:"bottom-start"}},Mwt={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Nwt=Zt({props:Mwt,emits:["select","hover"],setup(e,{emit:t}){const n=Vn("select"),{hoverItem:r,selectOptionClick:i}=kwt(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:i}}}),Dwt=["aria-selected"];function Iwt(e,t,n,r,i,l){return Ce(),Ie("li",{"aria-selected":e.selected,style:Pr(e.style),class:He([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...u)=>e.hoverItem&&e.hoverItem(...u)),onClick:t[1]||(t[1]=Do((...u)=>e.selectOptionClick&&e.selectOptionClick(...u),["stop"]))},[Fn(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ce("span",null,Zn(e.item.label),1)])],46,Dwt)}var Rwt=vr(Nwt,[["render",Iwt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const Xme=Symbol("ElSelectV2Injection");var Lwt=Zt({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=jr(Xme),i=Vn("select"),l=et([]),u=et(),f=Ne(()=>e.data.length);$n(()=>f.value,()=>{var Y,Q;(Q=(Y=r.popper.value).updatePopper)==null||Q.call(Y)});const v=Ne(()=>Vd(r.props.estimatedOptionHeight)),h=Ne(()=>v.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:Y=>l.value[Y]}),g=(Y=[],Q)=>{const{props:{valueKey:$}}=r;return Qs(Q)?Y&&Y.some(te=>lu(te,$)===lu(Q,$)):Y.includes(Q)},y=(Y,Q)=>
64{if(Qs(Q)){const{valueKey:$}=r.props;return lu(Y,$)===lu(Q,$)}else return Y===Q},w=(Y,Q)=>{const{valueKey:$}=r.props;return r.props.multiple?g(Y,lu(Q,$)):y(Y,lu(Q,$))},C=(Y,Q)=>{const{disabled:$,multiple:te,multipleLimit:V}=r.props;return $||!Q&&(te?V>0&&Y.length>=V:!1)},S=Y=>e.hoveringIndex===Y;n({listRef:u,isSized:v,isItemDisabled:C,isItemHovering:S,isItemSelected:w,scrollToItem:Y=>{const Q=u.value;Q&&Q.scrollToItem(Y)},resetScrollTop:()=>{const Y=u.value;Y&&Y.resetScrollTop()}});const F=Y=>{const{index:Q,data:$,style:te}=Y,V=L(v),{itemSize:K,estimatedSize:fe}=L(h),{modelValue:de}=r.props,{onSelect:ne,onHover:le}=r,_e=$[Q];if(_e.type==="Group")return gt(Awt,{item:_e,style:te,height:V?K:fe},null);const M=w(de,_e),P=C(de,M),U=S(Q);return gt(Rwt,Pa(Y,{selected:M,disabled:_e.disabled||P,created:!!_e.created,hovering:U,item:_e,onSelect:ne,onHover:le}),{default:j=>{var ee;return((ee=t.default)==null?void 0:ee.call(t,j))||gt("span",null,[_e.label])}})},{onKeyboardNavigate:R,onKeyboardSelect:N}=r,A=()=>{R("forward")},X=()=>{R("backward")},Z=()=>{r.expanded=!1},z=Y=>{const{code:Q}=Y,{tab:$,esc:te,down:V,up:K,enter:fe}=ao;switch(Q!==$&&(Y.preventDefault(),Y.stopPropagation()),Q){case $:case te:{Z();break}case V:{A();break}case K:{X();break}case fe:{N();break}}};return()=>{var Y;const{data:Q,width:$}=e,{height:te,multiple:V,scrollbarAlwaysOn:K}=r.props;if(Q.length===0)return gt("div",{class:i.b("dropdown"),style:{width:`${$}px`}},[(Y=t.empty)==null?void 0:Y.call(t)]);const fe=L(v)?Vme:ywt;return gt("div",{class:[i.b("dropdown"),i.is("multiple",V)]},[gt(fe,Pa({ref:u},L(h),{className:i.be("dropdown","list"),scrollbarAlwaysOn:K,data:Q,height:te,width:$,total:Q.length,onKeydown:z}),{default:de=>gt(F,de,null)})])}}});function Bwt(e,t){const n=et(0),r=et(null),i=Ne(()=>e.allowCreate&&e.filterable);function l(g){const y=w=>w.value===g;return e.options&&e.options.some(y)||t.createdOptions.some(y)}function u(g){!i.value||(e.multiple&&g.created?n.value++:r.value=g)}function f(g){if(i.value)if(g&&g.length>0&&!l(g)){const y={value:g,label:g,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=y:t.createdOptions.push(y)}else if(e.multiple)t.createdOptions.length=n.value;else{const y=r.value;t.createdOptions.length=0,y&&y.created&&t.createdOptions.push(y)}}function v(g){if(!i.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===g.label)return;const y=t.createdOptions.findIndex(w=>w.value===g.value);~y&&(t.createdOptions.splice(y,1),n.value--)}function h(){i.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:f,removeNewOption:v,selectNewOption:u,clearAllNewOption:h}}const Pwt=e=>{const t=[];return e.forEach(n=>{Oa(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{t.push(r)}),t.push({type:"Group"})):t.push(n)}),t};function Fwt(e){const t=et(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:l=>{const u=l.target.value,f=u[u.length-1]||"";t.value=!NV(f)},handleCompositionEnd:l=>{t.value&&(t.value=!1,Ji(e)&&e(l))}}}const oue="",aue=11,$wt={larget:51,default:42,small:33},zwt=(e,t)=>{const{t:n}=Ni(),r=Vn("select-v2"),i=Vn("input"),{form:l,formItem:u}=xh(),f=gi({inputValue:oue,displayInputValue:oue,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,
64comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),v=et(-1),h=et(-1),g=et(null),y=et(null),w=et(null),C=et(null),S=et(null),T=et(null),B=et(null),F=et(!1),R=Ne(()=>e.disabled||(l==null?void 0:l.disabled)),N=Ne(()=>{const nn=V.value.length*34;return nn>e.height?e.height:nn}),A=Ne(()=>!jf(e.modelValue)),X=Ne(()=>{const nn=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:A.value;return e.clearable&&!R.value&&f.comboBoxHovering&&nn}),Z=Ne(()=>e.remote&&e.filterable?"":nR),z=Ne(()=>Z.value&&r.is("reverse",F.value)),Y=Ne(()=>(u==null?void 0:u.validateState)||""),Q=Ne(()=>Qhe[Y.value]),$=Ne(()=>e.remote?300:0),te=Ne(()=>{const nn=V.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&f.inputValue===""&&nn.length===0?!1:e.filterable&&f.inputValue&&nn.length>0?e.noMatchText||n("el.select.noMatch"):nn.length===0?e.noDataText||n("el.select.noData"):null}),V=Ne(()=>{const nn=Yn=>{const qr=f.inputValue,Br=new RegExp(She(qr),"i");return qr?Br.test(Yn.label||""):!0};return e.loading?[]:Pwt(e.options.concat(f.createdOptions).map(Yn=>{if(Oa(Yn.options)){const qr=Yn.options.filter(nn);if(qr.length>0)return{...Yn,options:qr}}else if(e.remote||nn(Yn))return Yn;return null}).filter(Yn=>Yn!==null))}),K=Ne(()=>{const nn=new Map;return V.value.forEach((Yn,qr)=>{nn.set(Ke(Yn),{option:Yn,index:qr})}),nn}),fe=Ne(()=>V.value.every(nn=>nn.disabled)),de=Kf(),ne=Ne(()=>de.value==="small"?"small":"default"),le=Ne(()=>{const nn=T.value,Yn=ne.value||"default",qr=nn?Number.parseInt(getComputedStyle(nn).paddingLeft):0,Br=nn?Number.parseInt(getComputedStyle(nn).paddingRight):0;return f.selectWidth-Br-qr-$wt[Yn]}),_e=()=>{var nn;h.value=((nn=S.value)==null?void 0:nn.offsetWidth)||200},M=Ne(()=>({width:`${f.calculatedWidth===0?aue:Math.ceil(f.calculatedWidth)+aue}px`})),P=Ne(()=>Oa(e.modelValue)?e.modelValue.length===0&&!f.displayInputValue:e.filterable?f.displayInputValue.length===0:!0),U=Ne(()=>{const nn=e.placeholder||n("el.select.placeholder");return e.multiple||jf(e.modelValue)?nn:f.selectedLabel}),j=Ne(()=>{var nn,Yn;return(Yn=(nn=C.value)==null?void 0:nn.popperRef)==null?void 0:Yn.contentRef}),ee=Ne(()=>{if(e.multiple){const nn=e.modelValue.length;if(e.modelValue.length>0&&K.value.has(e.modelValue[nn-1])){const{index:Yn}=K.value.get(e.modelValue[nn-1]);return Yn}}else if(e.modelValue&&K.value.has(e.modelValue)){const{index:nn}=K.value.get(e.modelValue);return nn}return-1}),ye=Ne({get(){return F.value&&te.value!==!1},set(nn){F.value=nn}}),ie=Ne(()=>f.cachedOptions.slice(0,e.maxCollapseTags)),he=Ne(()=>f.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:re,removeNewOption:be,selectNewOption:Ae,clearAllNewOption:Te}=Bwt(e,f),{handleCompositionStart:Ue,handleCompositionUpdate:Oe,handleCompositionEnd:De}=Fwt(nn=>_n(nn)),$e=()=>{var nn,Yn,qr;(Yn=(nn=y.value)==null?void 0:nn.focus)==null||Yn.call(nn),(qr=C.value)==null||qr.updatePopper()},rt=()=>{if(!e.automaticDropdown&&!R.value)return f.isComposing&&(f.softFocus=!0),Gr(()=>{var nn,Yn;F.value=!F.value,(Yn=(nn=y.value)==null?void 0:nn.focus)==null||Yn.call(nn)})},ct=()=>(e.filterable&&f.inputValue!==f.selectedLabel&&(f.query=f.selectedLabel),ot(f.inputValue),Gr(()=>{re(f.inputValue)})),lt=Lv(ct,$.value),ot=nn=>{f.previousQuery!==nn&&(f.previousQuery=nn,e.filterable&&Ji(e.filterMethod)?e.filterMethod(nn):e.filterable&&e.remote&&Ji(e.remoteMethod)&&e.remoteMethod(nn))},Fe=nn=>{p0(e.modelValue,nn)||t(Ll,nn)},We=nn=>{t(Ma,nn),Fe(nn),f.previousValue=nn==null?void 0:nn.toString()},Ye=(nn=[],Yn)=>{if(!Qs(Yn))return nn.indexOf(Yn);const qr=e.valueKey;let Br=-1;return nn.some((io,xa)=>lu(io,qr)===lu(Yn,qr)?(Br=xa,!0):!1),Br},Ke=nn=>Qs(nn)?lu(nn,e.valueKey):nn,mt=nn=>Qs(nn)?nn.label:nn,Ct=()=>Gr(()=>{var nn,Yn;if(!y.value)return;const qr=T.value;S.value.height=qr.offsetHeight,F.value&&te.value!==!1&&((Yn=(nn=C.value)==null?void 0:nn.updatePopper)==null||Yn.call(nn))}),bt=()=>{var nn,Yn;if(tn(),_e(),(Yn=(nn=C.value)==null?void 0:nn.updatePopper)==null||Yn.call(nn),e.multiple)return Ct()},tn=()=>{const nn=T.value;nn&&(f.selectWidth=nn.getBoundingClientRect().width)},Ft=(nn,Yn,qr=!0)=>{var Br,io;if(e.multiple){let xa=e.modelValue.slice();const Di=Ye(xa,Ke(nn));Di>-1?(xa=[...xa.slice(0,Di),...xa.slice(Di+1)],f.cachedOptions.splice(Di,1),be(nn)):(e.multipleLimit<=0||xa.length<e.multipleLimit)&&(x
64a=[...xa,Ke(nn)],f.cachedOptions.push(nn),Ae(nn),en(Yn)),We(xa),nn.created&&(f.query="",ot(""),f.inputLength=20),e.filterable&&!e.reserveKeyword&&((io=(Br=y.value).focus)==null||io.call(Br),xt("")),e.filterable&&(f.calculatedWidth=B.value.getBoundingClientRect().width),Ct(),Vt()}else v.value=Yn,f.selectedLabel=nn.label,We(Ke(nn)),F.value=!1,f.isComposing=!1,f.isSilentBlur=qr,Ae(nn),nn.created||Te(),en(Yn)},It=(nn,Yn)=>{const{valueKey:qr}=e,Br=e.modelValue.indexOf(lu(Yn,qr));if(Br>-1&&!R.value){const io=[...e.modelValue.slice(0,Br),...e.modelValue.slice(Br+1)];return f.cachedOptions.splice(Br,1),We(io),t("remove-tag",lu(Yn,qr)),f.softFocus=!0,be(Yn),Gr($e)}nn.stopPropagation()},Et=nn=>{const Yn=f.isComposing;f.isComposing=!0,f.softFocus?f.softFocus=!1:Yn||t("focus",nn)},At=nn=>(f.softFocus=!1,Gr(()=>{var Yn,qr;(qr=(Yn=y.value)==null?void 0:Yn.blur)==null||qr.call(Yn),B.value&&(f.calculatedWidth=B.value.getBoundingClientRect().width),f.isSilentBlur?f.isSilentBlur=!1:f.isComposing&&t("blur",nn),f.isComposing=!1})),vt=()=>{f.displayInputValue.length>0?xt(""):F.value=!1},Tt=nn=>{if(f.displayInputValue.length===0){nn.preventDefault();const Yn=e.modelValue.slice();Yn.pop(),be(f.cachedOptions.pop()),We(Yn)}},Wt=()=>{let nn;return Oa(e.modelValue)?nn=[]:nn=void 0,f.softFocus=!0,e.multiple?f.cachedOptions=[]:f.selectedLabel="",F.value=!1,We(nn),t("clear"),Te(),Gr($e)},xt=nn=>{f.displayInputValue=nn,f.inputValue=nn},at=(nn,Yn=void 0)=>{const qr=V.value;if(!["forward","backward"].includes(nn)||R.value||qr.length<=0||fe.value)return;if(!F.value)return rt();Yn===void 0&&(Yn=f.hoveringIndex);let Br=-1;nn==="forward"?(Br=Yn+1,Br>=qr.length&&(Br=0)):nn==="backward"&&(Br=Yn-1,(Br<0||Br>=qr.length)&&(Br=qr.length-1));const io=qr[Br];if(io.disabled||io.type==="Group")return at(nn,Br);en(Br),En(Br)},_t=()=>{if(F.value)~f.hoveringIndex&&V.value[f.hoveringIndex]&&Ft(V.value[f.hoveringIndex],f.hoveringIndex,!1);else return rt()},en=nn=>{f.hoveringIndex=nn},An=()=>{f.hoveringIndex=-1},Vt=()=>{var nn;const Yn=y.value;Yn&&((nn=Yn.focus)==null||nn.call(Yn))},_n=nn=>{const Yn=nn.target.value;if(xt(Yn),f.displayInputValue.length>0&&!F.value&&(F.value=!0),f.calculatedWidth=B.value.getBoundingClientRect().width,e.multiple&&Ct(),e.remote)lt();else return ct()},Mt=()=>(F.value=!1,At()),pn=()=>(f.inputValue=f.displayInputValue,Gr(()=>{~ee.value&&(en(ee.value),En(f.hoveringIndex))})),En=nn=>{w.value.scrollToItem(nn)},zn=()=>{if(An(),e.multiple)if(e.modelValue.length>0){let nn=!1;f.cachedOptions.length=0,f.previousValue=e.modelValue.toString();for(const Yn of e.modelValue)if(K.value.has(Yn)){const{index:qr,option:Br}=K.value.get(Yn);f.cachedOptions.push(Br),nn||en(qr),nn=!0}}else f.cachedOptions=[],f.previousValue=void 0;else if(A.value){f.previousValue=e.modelValue;const nn=V.value,Yn=nn.findIndex(qr=>Ke(qr)===Ke(e.modelValue));~Yn?(f.selectedLabel=nn[Yn].label,en(Yn)):f.selectedLabel=`${e.modelValue}`}else f.selectedLabel="",f.previousValue=void 0;Te(),_e()};return $n(F,nn=>{var Yn,qr;t("visible-change",nn),nn?(qr=(Yn=C.value).update)==null||qr.call(Yn):(f.displayInputValue="",f.previousQuery=null,re(""))}),$n(()=>e.modelValue,(nn,Yn)=>{var qr;(!nn||nn.toString()!==f.previousValue)&&zn(),!p0(nn,Yn)&&e.validateEvent&&((qr=u==null?void 0:u.validate)==null||qr.call(u,"change").catch(Br=>void 0))},{deep:!0}),$n(()=>e.options,()=>{const nn=y.value;(!nn||nn&&document.activeElement!==nn)&&zn()},{deep:!0}),$n(V,()=>Gr(w.value.resetScrollTop)),$n(()=>ye.value,nn=>{nn||An()}),ia(()=>{zn()}),Rv(S,bt),{collapseTagSize:ne,currentPlaceholder:U,expanded:F,emptyText:te,popupHeight:N,debounce:$,filteredOptions:V,iconComponent:Z,iconReverse:z,inputWrapperStyle:M,popperSize:h,dropdownMenuVisible:ye,hasModelValue:A,shouldShowPlaceholder:P,selectDisabled:R,selectSize:de,showClearBtn:X,states:f,tagMaxWidth:le,nsSelectV2:r,nsInput:i,calculatorRef:B,controlRef:g,inputRef:y,menuRef:w,popper:C,selectRef:S,selectionRef:T,popperRef:j,validateState:Y,validateIcon:Q,showTagList:ie,collapseTagList:he,debouncedOnInputChange:lt,deleteTag:It,getLabel:mt,getValueKey:Ke,handleBlur:At,handleClear:Wt,handleClickOutside:Mt,handleDel:Tt,handleEsc:vt,handleFocus:Et,handleMenuEnter:pn,handleResize:bt,toggleMenu:rt,scrollTo:En,onInput:_n,onKeyboardNavigate:at,onKeyboardSelect:_t,onSelect:Ft,onHover:en,onUp
64dateInputValue:xt,handleCompositionStart:Ue,handleCompositionEnd:De,handleCompositionUpdate:Oe}},Hwt=Zt({name:"ElSelectV2",components:{ElSelectMenu:Lwt,ElTag:NI,ElTooltip:Ch,ElIcon:Zr},directives:{ClickOutside:W8,ModelText:UA},props:Owt,emits:[Ma,Ll,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Ne(()=>{const{modelValue:i,multiple:l}=e,u=l?[]:void 0;return Oa(i)?l?i:u:l?u:i}),r=zwt(gi({...Dc(e),modelValue:n}),t);return $a(Xme,{props:gi({...Dc(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),Vwt={key:0},Uwt=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],jwt=["textContent"],Wwt=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],Gwt=["textContent"];function Kwt(e,t,n,r,i,l){const u=Kr("el-tag"),f=Kr("el-tooltip"),v=Kr("el-icon"),h=Kr("el-select-menu"),g=$A("model-text"),y=$A("click-outside");return ea((Ce(),Ie("div",{ref:"selectRef",class:He([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=Do((...w)=>e.toggleMenu&&e.toggleMenu(...w),["stop"])),onMouseenter:t[25]||(t[25]=w=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=w=>e.states.comboBoxHovering=!1)},[gt(f,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=w=>e.states.inputValue=e.states.displayInputValue)},{default:Dt(()=>
64[ce("div",{ref:"selectionRef",class:He([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(Ce(),Ie("div",Vwt,[Fn(e.$slots,"prefix")])):on("v-if",!0),e.multiple?(Ce(),Ie("div",{key:1,class:He(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(Ce(),Ie(Ur,{key:0},[(Ce(!0),Ie(Ur,null,La(e.showTagList,w=>(Ce(),Ie("div",{key:e.getValueKey(w),class:He(e.nsSelectV2.e("selected-item"))},[gt(u,{closable:!e.selectDisabled&&!(w!=null&&w.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:C=>e.deleteTag(C,w)},{default:Dt(()=>[ce("span",{class:He(e.nsSelectV2.e("tags-text")),style:Pr({maxWidth:`${e.tagMaxWidth}px`})},Zn(w==null?void 0:w.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ce("div",{class:He(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(Ce(),yn(u,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Dt(()=>[e.collapseTagsTooltip?(Ce(),yn(f,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Dt(()=>
64[ce("span",{class:He(e.nsSelectV2.e("tags-text")),style:Pr({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Zn(e.modelValue.length-e.maxCollapseTags),7)]),content:Dt(()=>[ce("div",{class:He(e.nsSelectV2.e("selection"))},[(Ce(!0),Ie(Ur,null,La(e.collapseTagList,w=>(Ce(),Ie("div",{key:e.getValueKey(w),class:He(e.nsSelectV2.e("selected-item"))},[gt(u,{closable:!e.selectDisabled&&!w.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:C=>e.deleteTag(C,w)},{default:Dt(()=>[ce("span",{class:He(e.nsSelectV2.e("tags-text")),style:Pr({maxWidth:`${e.tagMaxWidth}px`})},Zn(e.getLabel(w)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(Ce(),Ie("span",{key:1,class:He(e.nsSelectV2.e("tags-text")),style:Pr({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Zn(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):on("v-if",!0)],2)],64)):(Ce(!0),Ie(Ur,{key:1},La(e.states.cachedOptions,w=>(Ce(),Ie("div",{key:e.getValueKey(w),class:He(e.nsSelectV2.e("selected-item"))},[gt(u,{closable:!e.selectDisabled&&!w.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:C=>e.deleteTag(C,w)},{default:Dt(()=>
64[ce("span",{class:He(e.nsSelectV2.e("tags-text")),style:Pr({maxWidth:`${e.tagMaxWidth}px`})},Zn(e.getLabel(w)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ce("div",{class:He([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Pr(e.inputWrapperStyle)},[ea(ce("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:He([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...w)=>e.onUpdateInputValue&&e.onUpdateInputValue(...w)),onFocus:t[1]||(t[1]=(...w)=>e.handleFocus&&e.handleFocus(...w)),onBlur:t[2]||(t[2]=(...w)=>e.handleBlur&&e.handleBlur(...w)),onInput:t[3]||(t[3]=(...w)=>e.onInput&&e.onInput(...w)),onCompositionstart:t[4]||(t[4]=(...w)=>e.handleCompositionStart&&e.handleCompositionStart(...w)),onCompositionupdate:t[5]||(t[5]=(...w)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...w)),onCompositionend:t[6]||(t[6]=(...w)=>e.handleCompositionEnd&&e.handleCompositionEnd(...w)),onKeydown:[t[7]||(t[7]=mi(Do(w=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=mi(Do(w=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=mi(Do((...w)=>e.onKeyboardSelect&&e.onKeyboardSelect(...w),["stop","prevent"]),["enter"])),t[10]||(t[10]=mi(Do((...w)=>e.handleEsc&&e.handleEsc(...w),["stop","prevent"]),["esc"])),t[11]||(t[11]=mi(Do((...w)=>e.handleDel&&e.handleDel(...w),["stop"]),["delete"]))]},null,42,Uwt),[[g,e.states.displayInputValue]]),e.filterable?(Ce(),Ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:He(e.nsSelectV2.e("input-calculator")),textContent:Zn(e.states.displayInputValue)},null,10,jwt)):on("v-if",!0)],6)],2)):(Ce(),Ie(Ur,{key:2},[ce("div",{class:He([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[ea(ce("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:He(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...w)=>e.handleCompositionStart&&e.handleCompositionStart(...w)),onCompositionupdate:t[13]||(t[13]=(...w)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...w)),onCompositionend:t[14]||(t[14]=(...w)=>e.handleCompositionEnd&&e.handleCompositionEnd(...w)),onFocus:t[15]||(t[15]=(...w)=>e.handleFocus&&e.handleFocus(...w)),onBlur:t[16]||(t[16]=(...w)=>e.handleBlur&&e.handleBlur(...w)),onInput:t[17]||(t[17]=(...w)=>e.onInput&&e.onInput(...w)),onKeydown:[t[18]||(t[18]=mi(Do(w=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=mi(Do(w=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=mi(Do((...w)=>e.onKeyboardSelect&&e.onKeyboardSelect(...w),["stop","prevent"]),["enter"])),t[21]||(t[21]=mi(Do((...w)=>e.handleEsc&&e.handleEsc(...w),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...w)=>e.onUpdateInputValue&&e.onUpdateInputValue(...w))},null,42,Wwt),[[g,e.states.displayInputValue]])],2),e.filterable?(Ce(),Ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:He([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Zn(e.states.displayInputValue)},null,10,Gwt)):on("v-if",!0)],64)),e.shouldShowPlaceholder?(Ce(),Ie("span",{key:3,class:He([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},Zn(e.currentPlaceholder),3)):on("v-if",!0),ce("span",{class:He(e.nsSelectV2.e("suffix"))},[e.iconComponent?ea((Ce(),yn(v,{key:0,class:He([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Dt(()=>[(Ce(),yn(Fa(e.iconComponent)))]),_:1},8,["class"])),[[Ti,!e.showClearBtn]]):on("v-if",!0),e.showClearBtn&&e.clearIcon?(Ce(),yn(v,{key:1,class:He([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Do(e.handleClear,["prevent","stop"])},{default:Dt(()=>[(Ce(),yn(Fa(e.clearIcon)))]),_:1},8,["class","onClick"])):on("v-if",!0),e.validateState&&e.validateIcon?(Ce(),yn(v,{key:2,class:He([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Dt(()=>[(Ce(),yn(Fa(e.validateIcon)))]),_:1}
64,8,["class"])):on("v-if",!0)],2)],2)]),content:Dt(()=>[gt(h,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Dt(w=>[Fn(e.$slots,"default",qg(sV(w)))]),empty:Dt(()=>[Fn(e.$slots,"empty",{},()=>[ce("p",{class:He(e.nsSelectV2.e("empty"))},Zn(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[y,e.handleClickOutside,e.popperRef]])}var Wz=vr(Hwt,[["render",Kwt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Wz.install=e=>{e.component(Wz.name,Wz)};const Ywt=Wz,qwt=Ywt,Xwt=hr({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Zwt=hr({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Qwt=Zt({name:"ElSkeletonItem"}),Jwt=Zt({...Qwt,props:Zwt,setup(e){const t=Vn("skeleton");return(n,r)=>(Ce(),Ie("div",{class:He([L(t).e("item"),L(t).e(n.variant)])},[n.variant==="image"?(Ce(),yn(L($he),{key:0})):on("v-if",!0)],2))}});var FH=vr(Jwt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const e9t=Zt({name:"ElSkeleton"}),t9t=Zt({...e9t,props:Xwt,setup(e,{expose:t}){const n=e,r=Vn("skeleton"),i=vvt(Kl(n,"loading"),n.throttle);return t({uiLoading:i}),(l,u)=>L(i)?(Ce(),Ie("div",Pa({key:0,class:[L(r).b(),L(r).is("animated",l.animated)]},l.$attrs),[(Ce(!0),Ie(Ur,null,La(l.count,f=>(Ce(),Ie(Ur,{key:f},[l.loading?Fn(l.$slots,"template",{key:f},()=>[gt(FH,{class:He(L(r).is("first")),variant:"p"},null,8,["class"]),(Ce(!0),Ie(Ur,null,La(l.rows,v=>(Ce(),yn(FH,{key:v,class:He([L(r).e("paragraph"),L(r).is("last",v===l.rows&&l.rows>1)]),variant:"p"},null,8,["class"]))),128))]):on("v-if",!0)],64))),128))],16)):Fn(l.$slots,"default",qg(Pa({key:1},l.$attrs)))}});var n9t=vr(t9t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const r9t=Ca(n9t,{SkeletonItem:FH}),o9t=qu(FH),Zme=Symbol("sliderContextKey"),a9t=hr({modelValue:{type:gn([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:ev,inputSize:ev,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:gn(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:gn(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:$C,default:"top"},marks:{type:gn(Object)},validateEvent:{type:Boolean,default:!0}}),IZ=e=>$o(e)||Oa(e)&&e.every($o),i9t={[Ma]:IZ,[yh]:IZ,[Ll]:IZ},s9t=(e,t,n)=>{const r=et();return ia(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Yl(window,"resize",n),await Gr(),n()}),{sliderWrapper:r}},l9t=e=>Ne(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),u9t=(e,t,n)=>{const{form:r,formItem:i}=xh(),l=al(),u=et(),f=et(),v={firstButton:u,secondButton:f},h=Ne(()=>e.disabled||(r==null?void 0:r.disabled)||!1),g=Ne(()=>Math.min(t.firstValue,t.secondValue)),y=Ne(()=>Math.max(t.firstValue,t.secondValue)),w=Ne(()=>e.range?`${100*(y.value-g.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),C=Ne(()=>e.range?`${100*(g.value-e.min)/(e.max-e.min)}%`:"0%"),S=Ne(()=>e.vertical?{height:e.height}:{}),T=Ne(()=>e.vertical?{height:w.value,bottom:C.value}:{width:w.value,left:C.value}),B=()=>{l.value&&(t.sliderSize=l.value[`client${e.vertical?"Height":"Width"}`])},F=te=>{const V=e.min+te*(e.max-e.min)/100;if(!e.range)return u;let K;return Math.abs(g.value-V)<Math.abs(y.value-V)?K=t.firstValue<t.secondValue?"firstButton":"secondButton":K=t.firstValue>t.secondValue?"firstButton":"secondButton",v[K]},R=te=>{const V=F(te);return V.value.setPosition(te),V},N=te=>{t.firstValue=te,X(e.range?[g.value,y.value]:te)},A=te=>{t.secondValue=te,e.range&&X([g.value,y.value])},X=te=>{n(Ma,te),n(yh,te)},Z=async()=>{await Gr(),n(Ll,e.range?[g.value,y.value]:e.modelValue)},z=te=>{var V,K,fe,de,ne,le;if(h.value||t.dragging)return;B();let _e=0;if(e.vertical){const M=(fe=(K=(V=te.touches)==null?void 0:V.item(0))==null?void 0:K.clientY)!=null?fe:te.clientY;_e=(l.value.getBoundingClientRect().bottom-M)/t.sliderSize*100}else{const M=(le=(ne=(de=te.touches)==null?void 0:de.item(0))==null?void 0:ne.clientX)!=null?le:te.clientX,P=l.value.getBoundingClientRect().left;
64_e=(M-P)/t.sliderSize*100}if(!(_e<0||_e>100))return R(_e)};return{elFormItem:i,slider:l,firstButton:u,secondButton:f,sliderDisabled:h,minValue:g,maxValue:y,runwayStyle:S,barStyle:T,resetSize:B,setPosition:R,emitChange:Z,onSliderWrapperPrevent:te=>{var V,K;(((V=v.firstButton.value)==null?void 0:V.dragging)||((K=v.secondButton.value)==null?void 0:K.dragging))&&te.preventDefault()},onSliderClick:te=>{z(te)&&Z()},onSliderDown:async te=>{const V=z(te);V&&(await Gr(),V.value.onButtonDown(te))},setFirstValue:N,setSecondValue:A}},{left:c9t,down:f9t,right:d9t,up:v9t,home:h9t,end:p9t,pageUp:m9t,pageDown:g9t}=ao,y9t=(e,t,n)=>{const r=et(),i=et(!1),l=Ne(()=>t.value instanceof Function),u=Ne(()=>l.value&&t.value(e.modelValue)||e.modelValue),f=Lv(()=>{n.value&&(i.value=!0)},50),v=Lv(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:u,displayTooltip:f,hideTooltip:v}},b9t=(e,t,n)=>{const{disabled:r,min:i,max:l,step:u,showTooltip:f,precision:v,sliderSize:h,formatTooltip:g,emitChange:y,resetSize:w,updateDragging:C}=jr(Zme),{tooltip:S,tooltipVisible:T,formatValue:B,displayTooltip:F,hideTooltip:R}=y9t(e,g,f),N=et(),A=Ne(()=>`${(e.modelValue-i.value)/(l.value-i.value)*100}%`),X=Ne(()=>e.vertical?{bottom:A.value}:{left:A.value}),Z=()=>{t.hovering=!0,F()},z=()=>{t.hovering=!1,t.dragging||R()},Y=j=>{r.value||(j.preventDefault(),_e(j),window.addEventListener("mousemove",M),window.addEventListener("touchmove",M),window.addEventListener("mouseup",P),window.addEventListener("touchend",P),window.addEventListener("contextmenu",P),N.value.focus())},Q=j=>{r.value||(t.newPosition=Number.parseFloat(A.value)+j/(l.value-i.value)*100,U(t.newPosition),y())},$=()=>{Q(-u.value)},te=()=>{Q(u.value)},V=()=>{Q(-u.value*4)},K=()=>{Q(u.value*4)},fe=()=>{r.value||(U(0),y())},de=()=>{r.value||(U(100),y())},ne=j=>{let ee=!0;[c9t,f9t].includes(j.key)?$():[d9t,v9t].includes(j.key)?te():j.key===h9t?fe():j.key===p9t?de():j.key===g9t?V():j.key===m9t?K():ee=!1,ee&&j.preventDefault()},le=j=>{let ee,ye;return j.type.startsWith("touch")?(ye=j.touches[0].clientY,ee=j.touches[0].clientX):(ye=j.clientY,ee=j.clientX),{clientX:ee,clientY:ye}},_e=j=>{t.dragging=!0,t.isClick=!0;const{clientX:ee,clientY:ye}=le(j);e.vertical?t.startY=ye:t.startX=ee,t.startPosition=Number.parseFloat(A.value),t.newPosition=t.startPosition},M=j=>{if(t.dragging){t.isClick=!1,F(),w();let ee;const{clientX:ye,clientY:ie}=le(j);e.vertical?(t.currentY=ie,ee=(t.startY-t.currentY)/h.value*100):(t.currentX=ye,ee=(t.currentX-t.startX)/h.value*100),t.newPosition=t.startPosition+ee,U(t.newPosition)}},P=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||R(),t.isClick||U(t.newPosition),y()},0),window.removeEventListener("mousemove",M),window.removeEventListener("touchmove",M),window.removeEventListener("mouseup",P),window.removeEventListener("touchend",P),window.removeEventListener("contextmenu",P))},U=async j=>{if(j===null||Number.isNaN(+j))return;j<0?j=0:j>100&&(j=100);const ee=100/((l.value-i.value)/u.value);let ie=Math.round(j/ee)*ee*(l.value-i.value)*.01+i.value;ie=Number.parseFloat(ie.toFixed(v.value)),ie!==e.modelValue&&n(Ma,ie),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Gr(),t.dragging&&F(),S.value.updatePopper()};return $n(()=>t.dragging,j=>{C(j)}),{disabled:r,button:N,tooltip:S,tooltipVisible:T,showTooltip:f,wrapperStyle:X,formatValue:B,handleMouseEnter:Z,handleMouseLeave:z,onButtonDown:Y,onKeyDown:ne,setPosition:U}},_9t=(e,t,n,r)=>({stops:Ne(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const u=(e.max-e.min)/e.step,f=100*e.step/(e.max-e.min),v=Array.from({length:u-1}).map((h,g)=>(g+1)*f);return e.range?v.filter(h=>h<100*(n.value-e.min)/(e.max-e.min)||h>100*(r.value-e.min)/(e.max-e.min)):v.filter(h=>h>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:u=>e.vertical?{bottom:`${u}%`}:{left:`${u}%`}}),w9t=(e,t,n,r,i,l)=>{const u=h=>{i(Ma,h),i(yh,h)},f=()=>e.range?![n.value,r.value].every((h,g)=>h===t.oldValue[g]):e.modelValue!==t.oldValue,v=()=>{var h,g;e.min>e.max&&Gf("Slider","min should not be greater than max.");const y=e.modelValue;e.range&&Array.isArray(y)?y[1]<e.min?u([e.min,e.min]):y[0]>e.max?u([e.max,e.max]):y[0]<e.min?u([e.min,y[1]]):y[1]>e.max?u([y[0],e.max]):(t.firstValue=y[0],t.secondValue=y[1],f()&&(e.validateEvent&&((h=l==null?void 0:l.validate)==null||h.call(l,"change").catch(w=>void 0)),t.oldValue=y.slice())):!e.range&&typeof y=="number"&&!Number.isNaN(y)&&(y<e.min?u(e.min):y>e.max?u(e.max):(t.firstValue=y,f()&&(e.validateEvent&&((g=l==null?void 0:l.validate)==null||g.call(l,"change").catch(w=>void 0)),t.oldValue=y)))};v(),$n(()=>t.dragging,h=>{h||v()}),$n(()=>e.modelValue,(h,g)=>{t.dragging||Array.isArray(h)&&Array.isArray(g)&&h.every((y,w)=>y===g[w])&&t.firstValue===h[0]&&t.secondValue===h[1]||v()},{deep:!0}),$n(()=>[e.min,e.max],()=>{v()})},C9t=hr({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:$C,default:"top"}}),x9t={[Ma]:e=>$o(e)},E9t=["tabindex"],S9t=Zt({name:"ElSliderButton"}),T9t=Zt({...S9t,props:C9t,emits:x9t,setup(e,{expose:t,emit:n}){const r=e,i=Vn("slider"),l=gi({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:u,button:f,tooltip:v,showTooltip:h,tooltipVisible:g,wrapperStyle:y,formatValue:w,handleMouseEnter:C,handleMouseLeave:S,onButtonDown:T,onKeyDown:B,setPosition:F}=b9t(r,l,n),{hovering:R,dragging:N}=Dc(l);return t({onButtonDown:T,onKeyDown:B,setPosition:F,hovering:R,dragging:N}),(A,X)=>(Ce(),Ie("div",{ref_key:"button",ref:f,class:He([L(i).e("button-wrapper"),{hover:L(R),dragging:L(N)}]),style:Pr(L(y)),tabindex:L(u)?-1:0,onMouseenter:X[0]||(X[0]=(...Z)=>L(C)&&L(C)(...Z)),onMouseleave:X[1]||(X[1]=(...Z)=>L(S)&&L(S)(...Z)),onMousedown:X[2]||(X[2]=(...Z)=>L(T)&&L(T)(...Z)),onTouchstart:X[3]||(X[3]=(...Z)=>L(T)&&L(T)(...Z)),onFocus:X[4]||(X[4]=(...Z)=>L(C)&&L(C)(...Z)),onBlur:X[5]||(X[5]=(...Z)=>L(S)&&L(S)(...Z)),onKeydown:X[6]||(X[6]=(...Z)=>L(B)&&L(B)(...Z))},[gt(L(Ch),{ref_key:"tooltip",ref:v,visible:L(g),placement:A.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":A.tooltipClass,disabled:!L(h),persistent:""},{content:Dt(()=>
64[ce("span",null,Zn(L(w)),1)]),default:Dt(()=>[ce("div",{class:He([L(i).e("button"),{hover:L(R),dragging:L(N)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,E9t))}});var iue=vr(T9t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const A9t=hr({mark:{type:gn([String,Object]),default:void 0}});var k9t=Zt({name:"ElSliderMarker",props:A9t,setup(e){const t=Vn("slider"),n=Ne(()=>Ga(e.mark)?e.mark:e.mark.label),r=Ne(()=>Ga(e.mark)?void 0:e.mark.style);return()=>oo("div",{class:t.e("marks-text"),style:r.value},n.value)}});const O9t=["id","role","aria-label","aria-labelledby"],M9t={key:1},N9t=Zt({name:"ElSlider"}),D9t=Zt({...N9t,props:a9t,emits:i9t,setup(e,{expose:t,emit:n}){const r=e,i=Vn("slider"),{t:l}=Ni(),u=gi({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:f,slider:v,firstButton:h,secondButton:g,sliderDisabled:y,minValue:w,maxValue:C,runwayStyle:S,barStyle:T,resetSize:B,emitChange:F,onSliderWrapperPrevent:R,onSliderClick:N,onSliderDown:A,setFirstValue:X,setSecondValue:Z}=u9t(r,u,n),{stops:z,getStopStyle:Y}=_9t(r,u,w,C),{inputId:Q,isLabeledByFormItem:$}=q8(r,{formItemContext:f}),te=Kf(),V=Ne(()=>r.inputSize||te.value),K=Ne(()=>r.label||l("el.slider.defaultLabel",{min:r.min,max:r.max})),fe=Ne(()=>r.range?r.rangeStartLabel||l("el.slider.defaultRangeStartLabel"):K.value),de=Ne(()=>r.formatValueText?r.formatValueText(j.value):`${j.value}`),ne=Ne(()=>r.rangeEndLabel||l("el.slider.defaultRangeEndLabel")),le=Ne(()=>r.formatValueText?r.formatValueText(ee.value):`${ee.value}`),_e=Ne(()=>[i.b(),i.m(te.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),M=l9t(r);w9t(r,u,w,C,n,f);const P=Ne(()=>{const he=[r.min,r.max,r.step].map(re=>{const be=`${re}`.split(".")[1];return be?be.length:0});return Math.max.apply(null,he)}),{sliderWrapper:U}=s9t(r,u,B),{firstValue:j,secondValue:ee,sliderSize:ye}=Dc(u),ie=he=>{u.dragging=he};return $a(Zme,{...Dc(r),sliderSize:ye,disabled:y,precision:P,emitChange:F,resetSize:B,updateDragging:ie}),t({onSliderClick:N}),(he,re)=>{var be,Ae;return Ce(),Ie("div",{id:he.range?L(Q):void 0,ref_key:"sliderWrapper",ref:U,class:He(L(_e)),role:he.range?"group":void 0,"aria-label":he.range&&!L($)?L(K):void 0,"aria-labelledby":he.range&&L($)?(be=L(f))==null?void 0:be.labelId:void 0,onTouchstart:re[2]||(re[2]=(...Te)=>L(R)&&L(R)(...Te)),onTouchmove:re[3]||(re[3]=(...Te)=>L(R)&&L(R)(...Te))},[ce("div",{ref_key:"slider",ref:v,class:He([L(i).e("runway"),{"show-input":he.showInput&&!he.range},L(i).is("disabled",L(y))]),style:Pr(L(S)),onMousedown:re[0]||(re[0]=(...Te)=>L(A)&&L(A)(...Te)),onTouchstart:re[1]||(re[1]=(...Te)=>L(A)&&L(A)(...Te))},[ce("div",{class:He(L(i).e("bar")),style:Pr(L(T))},null,6),gt(iue,{id:he.range?void 0:L(Q),ref_key:"firstButton",ref:h,"model-value":L(j),vertical:he.vertical,"tooltip-class":he.tooltipClass,placement:he.placement,role:"slider","aria-label":he.range||!L($)?L(fe):void 0,"aria-labelledby":!he.range&&L($)?(Ae=L(f))==null?void 0:Ae.labelId:void 0,"aria-valuemin":he.min,"aria-valuemax":he.range?L(ee):he.max,"aria-valuenow":L(j),"aria-valuetext":L(de),"aria-orientation":he.vertical?"vertical":"horizontal","aria-disabled":L(y),"onUpdate:modelValue":L(X)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),he.range?(Ce(),yn(iue,{key:0,ref_key:"secondButton",ref:g,"model-value":L(ee),vertical:he.vertical,"tooltip-class":he.tooltipClass,placement:he.placement,role:"slider","aria-label":L(ne),"aria-valuemin":L(j),"aria-valuemax":he.max,"aria-valuenow":L(ee),"aria-valuetext":L(le),"aria-orientation":he.vertical?"vertical":"horizontal","aria-disabled":L(y),"onUpdate:modelValue":L(Z)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):on("v-if",!0),he.showStops?(Ce(),Ie("div",M9t,[(Ce(!0),Ie(Ur,null,La(L(z),(Te,Ue)=>(Ce(),Ie("div",{key:Ue,class:He(L(i).e("stop")),style:Pr(L(Y)(Te))},null,6))),128))])):on("v-if",!0),L(M).length>0?(Ce(),Ie(Ur,{key:2},[ce("div",null,[(Ce(!0),Ie(Ur,null,La(L(M),(Te,Ue)=>(Ce(),Ie("div",{key:Ue,style:Pr(L(Y)(Te.position)),class:He([L(i).e("stop"),L(i).e("marks-stop")])},null,6))),128))]),ce("div",{class:He(L(i).e("marks"))},[(Ce(!0),Ie(Ur,null,La(L(M),(Te,Ue)=>(Ce(),yn(L(k9t),{key:Ue,mark:Te.mark,style:Pr(L(Y)(Te.position))},null,8,["mark","style"]))),128))],2)],64)):on("v-if",!0)],38),he.showInput&&!he.range?(Ce(),yn(L(Eme),{key:0,ref:"input","model-value":L(j),class:He(L(i).e("input")),step:he.step,disabled:L(y),controls:he.showInputControls,min:he.min,max:he.max,debounce:he.debounce,size:L(V),"onUpdate:modelValue":L(X),onChange:L(F)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):on("v-if",!0)],42,O9t)}}});var I9t=vr(D9t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const R9t=Ca(I9t),L9t=hr({prefixCls:{type:String}}),sue=Zt({name:"ElSpaceItem",props:L9t,setup(e,{slots:t}){const n=Vn("space"),r=Ne(()=>`${e.prefixCls||n.b()}__item`);return()=>oo("div",{class:r.value},Fn(t,"default"))}}),lue={small:8,default:12,large:16};function B9t(e){const t=Vn("space"),n=Ne(()=>[t.b(),t.m(e.direction),e.class]),r=et(0),i=et(0),l=Ne(()=>{const f=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${i.value}px`}:{},v={alignItems:e.alignment};return[f,v,e.style]}),u=Ne(()=>{const f={paddingBottom:`${i.value}px`,marginRight:`${r.value}px`},v=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[f,v]});return h0(()=>{const{size:f="small",wrap:v,direction:h,fill:g}=e;if(Oa(f)){const[y=0,w=0]=f;r.value=y,i.value=w}else{let y;$o(f)?y=f:y=lue[f||"small"]||lue.small,(v||g)&&h==="horizontal"?r.value=i.value=y:h==="horizontal"?(r.value=y,i.value=0):(i.value=y,r.value=0)}}),{classes:n,containerStyle:l,itemStyle:u}}const P9t=hr({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:gn([String,Object,Array]),default:""},style:{type:gn([String,Array,Object]),default:""},alignment:{type:gn(String),default:"center"},prefixCls:{type:String},spacer:{type:gn([Object,String,Number,Array]),default:null,validator:e=>cu(e)||$o(e)||Ga(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:gb,validator:e=>$o(e)||Oa(e)&&e.length===2&&e.every($o)}}),F9t=Zt({name:"ElSpace",props:P9t,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:i}=B9t(e);function l(u,f="",v=[]){const{prefixCls:h}=e;return u.forEach((g,y)=>
64{pJ(g)?Oa(g.children)&&g.children.forEach((w,C)=>{pJ(w)&&Oa(w.children)?l(w.children,`${f+C}-`,v):v.push(gt(sue,{style:i.value,prefixCls:h,key:`nested-${f+C}`},{default:()=>[w]},Cm.PROPS|Cm.STYLE,["style","prefixCls"]))}):Xdt(g)&&v.push(gt(sue,{style:i.value,prefixCls:h,key:`LoopKey${f+y}`},{default:()=>[g]},Cm.PROPS|Cm.STYLE,["style","prefixCls"]))}),v}return()=>{var u;const{spacer:f,direction:v}=e,h=Fn(t,"default",{key:0},()=>[]);if(((u=h.children)!=null?u:[]).length===0)return null;if(Oa(h.children)){let g=l(h.children);if(f){const y=g.length-1;g=g.reduce((w,C,S)=>{const T=[...w,C];return S!==y&&T.push(gt("span",{style:[i.value,v==="vertical"?"width: 100%":null],key:S},[cu(f)?f:lo(f,Cm.TEXT)],Cm.STYLE)),T},[])}return gt("div",{class:n.value,style:r.value},g,Cm.STYLE|Cm.CLASS)}return h.children}}}),$9t=Ca(F9t),z9t=hr({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:gn([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:gn([String,Object,Array])}}),H9t=Zt({name:"ElStatistic"}),V9t=Zt({...H9t,props:z9t,setup(e,{expose:t}){const n=e,r=Vn("statistic"),i=Ne(()=>{const{value:l,formatter:u,precision:f,decimalSeparator:v,groupSeparator:h}=n;if(Ji(u))return u(l);if(!$o(l))return l;let[g,y=""]=String(l).split(".");return y=y.padEnd(f,"0").slice(0,f>0?f:0),g=g.replace(/\B(?=(\d{3})+(?!\d))/g,h),[g,y].join(y?v:"")});return t({displayValue:i}),(l,u)=>(Ce(),Ie("div",{class:He(L(r).b())},[l.$slots.title||l.title?(Ce(),Ie("div",{key:0,class:He(L(r).e("head"))},[Fn(l.$slots,"title",{},()=>[lo(Zn(l.title),1)])],2)):on("v-if",!0),ce("div",{class:He(L(r).e("content"))},[l.$slots.prefix||l.prefix?(Ce(),Ie("div",{key:0,class:He(L(r).e("prefix"))},[Fn(l.$slots,"prefix",{},()=>[ce("span",null,Zn(l.prefix),1)])],2)):on("v-if",!0),ce("span",{class:He(L(r).e("number")),style:Pr(l.valueStyle)},Zn(L(i)),7),l.$slots.suffix||l.suffix?(Ce(),Ie("div",{key:1,class:He(L(r).e("suffix"))},[Fn(l.$slots,"suffix",{},()=>[ce("span",null,Zn(l.suffix),1)])],2)):on("v-if",!0)],2)],2))}});var U9t=vr(V9t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const Qme=Ca(U9t),j9t=hr({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:gn([Number,Object]),default:0},valueStyle:{type:gn([String,Object,Array])}}),W9t={finish:()=>!0,[Ll]:e=>$o(e)},G9t=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],uue=e=>$o(e)?new Date(e).getTime():e.valueOf(),cue=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return G9t.reduce((l,[u,f])=>{const v=new RegExp(`${u}+(?![^\\[\\]]*\\])`,"g");if(v.test(l)){const h=Math.floor(n/f);return n-=h*f,l.replace(v,g=>String(h).padStart(g.length,"0"))}return l},t).replace(r,"$1")},K9t=Zt({name:"ElCountdown"}),Y9t=Zt({...K9t,props:j9t,emits:W9t,setup(e,{expose:t,emit:n}){const r=e;let i;const l=et(uue(r.value)-Date.now()),u=Ne(()=>cue(l.value,r.format)),f=g=>cue(g,r.format),v=()=>{i&&(DV(i),i=void 0)},h=()=>{const g=uue(r.value),y=()=>{let w=g-Date.now();n("change",w),w<=0?(w=0,v(),n("finish")):i=EI(y),l.value=w};i=EI(y)};return $n(()=>[r.value,r.format],()=>{v(),h()},{immediate:!0}),Bl(()=>{v()}),t({displayValue:u}),(g,y)=>(Ce(),yn(L(Qme),{value:l.value,title:g.title,prefix:g.prefix,suffix:g.suffix,"value-style":g.valueStyle,formatter:f},b3({_:2},[La(g.$slots,(w,C)=>({name:C,fn:Dt(()=>[Fn(g.$slots,C)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var q9t=vr(Y9t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const X9t=Ca(q9t),Z9t=hr({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Q9t={[Ll]:(e,t)=>[e,t].every($o)},J9t=Zt({name:"ElSteps"}),eCt=Zt({...J9t,props:Z9t,emits:Q9t,setup(e,{emit:t}){const n=e,r=Vn("steps"),{children:i,addChild:l,removeChild:u}=ine(va(),"ElStep");return $n(i,()=>{i.value.forEach((f,v)=>{f.setIndex(v)})}),$a("ElSteps",{props:n,steps:i,addStep:l,removeStep:u}),$n(()=>n.active,(f,v)=>{t(Ll,f,v)}),(f,v)=>(Ce(),Ie("div",{class:He([L(r).b(),L(r).m(f.simple?"simple":f.direction)])},[Fn(f.$slots,"default")],2))}});var tCt=vr(eCt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/sr
64c/steps.vue"]]);const nCt=hr({title:{type:String,default:""},icon:{type:xl},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),rCt=Zt({name:"ElStep"}),oCt=Zt({...rCt,props:nCt,setup(e){const t=e,n=Vn("step"),r=et(-1),i=et({}),l=et(""),u=jr("ElSteps"),f=va();ia(()=>{$n([()=>u.props.active,()=>u.props.processStatus,()=>u.props.finishStatus],([Z])=>{A(Z)},{immediate:!0})}),Bl(()=>{u.removeStep(X.uid)});const v=Ne(()=>t.status||l.value),h=Ne(()=>{const Z=u.steps.value[r.value-1];return Z?Z.currentStatus:"wait"}),g=Ne(()=>u.props.alignCenter),y=Ne(()=>u.props.direction==="vertical"),w=Ne(()=>u.props.simple),C=Ne(()=>u.steps.value.length),S=Ne(()=>{var Z;return((Z=u.steps.value[C.value-1])==null?void 0:Z.uid)===(f==null?void 0:f.uid)}),T=Ne(()=>w.value?"":u.props.space),B=Ne(()=>[n.b(),n.is(w.value?"simple":u.props.direction),n.is("flex",S.value&&!T.value&&!g.value),n.is("center",g.value&&!y.value&&!w.value)]),F=Ne(()=>{const Z={flexBasis:$o(T.value)?`${T.value}px`:T.value?T.value:`${100/(C.value-(g.value?0:1))}%`};return y.value||S.value&&(Z.maxWidth=`${100/C.value}%`),Z}),R=Z=>{r.value=Z},N=Z=>{const z=Z==="wait",Y={transitionDelay:`${z?"-":""}${150*r.value}ms`},Q=Z===u.props.processStatus||z?0:100;Y.borderWidth=Q&&!w.value?"1px":0,Y[u.props.direction==="vertical"?"height":"width"]=`${Q}%`,i.value=Y},A=Z=>{Z>r.value?l.value=u.props.finishStatus:Z===r.value&&h.value!=="error"?l.value=u.props.processStatus:l.value="wait";const z=u.steps.value[r.value-1];z&&z.calcProgress(l.value)},X=gi({uid:f.uid,currentStatus:v,setIndex:R,calcProgress:N});return u.addStep(X),(Z,z)=>(Ce(),Ie("div",{style:Pr(L(F)),class:He(L(B))},[on(" icon & line "),ce("div",{class:He([L(n).e("head"),L(n).is(L(v))])},[L(w)?on("v-if",!0):(Ce(),Ie("div",{key:0,class:He(L(n).e("line"))},[ce("i",{class:He(L(n).e("line-inner")),style:Pr(i.value)},null,6)],2)),ce("div",{class:He([L(n).e("icon"),L(n).is(Z.icon||Z.$slots.icon?"icon":"text")])},[Fn(Z.$slots,"icon",{},()=>[Z.icon?(Ce(),yn(L(Zr),{key:0,class:He(L(n).e("icon-inner"))},{default:Dt(()=>[(Ce(),yn(Fa(Z.icon)))]),_:1},8,["class"])):L(v)==="success"?(Ce(),yn(L(Zr),{key:1,class:He([L(n).e("icon-inner"),L(n).is("status")])},{default:Dt(()=>[gt(L(p7))]),_:1},8,["class"])):L(v)==="error"?(Ce(),yn(L(Zr),{key:2,class:He([L(n).e("icon-inner"),L(n).is("status")])},{default:Dt(()=>[gt(L(Dm))]),_:1},8,["class"])):L(w)?on("v-if",!0):(Ce(),Ie("div",{key:3,class:He(L(n).e("icon-inner"))},Zn(r.value+1),3))])],2)],2),on(" title & description "),ce("div",{class:He(L(n).e("main"))},[ce("div",{class:He([L(n).e("title"),L(n).is(L(v))])},[Fn(Z.$slots,"title",{},()=>[lo(Zn(Z.title),1)])],2),L(w)?(Ce(),Ie("div",{key:0,class:He(L(n).e("arrow"))},null,2)):(Ce(),Ie("div",{key:1,class:He([L(n).e("description"),L(n).is(L(v))])},[Fn(Z.$slots,"description",{},()=>[lo(Zn(Z.description),1)])],2))],2)],6))}});var Jme=vr(oCt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const aCt=Ca(tCt,{Step:Jme}),iCt=qu(Jme),sCt=hr({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:MV},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:xl},inactiveIcon:{type:xl},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:gn(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),lCt={[Ma]:e=>Wf(e)||Ga(e)||$o(e),[Ll]:e=>Wf(e)||Ga(e)||$o(e),[yh]:e=>Wf(e)||Ga(e)||$o(e)},uCt=["onClick"],cCt=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],fCt=["aria-hidden"],dCt=["aria-hidden"],vCt=["aria-hidden"],XJ="ElSwitch",hCt=Zt({name:XJ}),pCt=Zt({...hCt,props:sCt,emits:lCt,setup(e,{expose:t,emit:n}){const r=e,i=va(),{formItem:l}=xh(),u=Kf(),f=Vn("switch");(Y=>{Y.forEach(Q=>{cb({from:Q[0],replacement:Q[1],scope:XJ,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},Ne(()=>{var $;return!!(($=i.vnode.props)!=null&&$[Q[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:h}=q8(r,{formItemContext:l}),g=w0(Ne(()=>r.loading)),y=et(r.modelValue!==!1),w=et(),C=et(),S=Ne(()=>[f.b(),f.m(u.value),f.is("disabled",g.value),f.is("checked",N.value)]),T=Ne(()=>[f.e("label"),f.em("label","left"),f.is("active",!N.value)]),B=Ne(()=>[f.e("label"),f.em("label","right"),f.is("active",N.value)]),F=Ne(()=>({width:Nc(r.width)}));$n(()=>r.modelValue,()=>{y.value=!0}),$n(()=>r.value,()=>{y.value=!1});const R=Ne(()=>y.value?r.modelValue:r.value),N=Ne(()=>R.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(R.value)||(n(Ma,r.inactiveValue),n(Ll,r.inactiveValue),n(yh,r.inactiveValue)),$n(N,Y=>{var Q;w.value.checked=Y,r.validateEvent&&((Q=l==null?void 0:l.validate)==null||Q.call(l,"change").catch($=>void 0))});const A=()=>{const Y=N.value?r.inactiveValue:r.activeValue;n(Ma,Y),n(Ll,Y),n(yh,Y),Gr(()=>{w.value.checked=N.value})},X=()=>
64{if(g.value)return;const{beforeChange:Y}=r;if(!Y){A();return}const Q=Y();[sJ(Q),Wf(Q)].includes(!0)||Gf(XJ,"beforeChange must return type `Promise<boolean>` or `boolean`"),sJ(Q)?Q.then(te=>{te&&A()}).catch(te=>{}):Q&&A()},Z=Ne(()=>f.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),z=()=>{var Y,Q;(Q=(Y=w.value)==null?void 0:Y.focus)==null||Q.call(Y)};return ia(()=>{w.value.checked=N.value}),t({focus:z,checked:N}),(Y,Q)=>(Ce(),Ie("div",{class:He(L(S)),style:Pr(L(Z)),onClick:Do(X,["prevent"])},[ce("input",{id:L(h),ref_key:"input",ref:w,class:He(L(f).e("input")),type:"checkbox",role:"switch","aria-checked":L(N),"aria-disabled":L(g),name:Y.name,"true-value":Y.activeValue,"false-value":Y.inactiveValue,disabled:L(g),tabindex:Y.tabindex,onChange:A,onKeydown:mi(X,["enter"])},null,42,cCt),!Y.inlinePrompt&&(Y.inactiveIcon||Y.inactiveText)?(Ce(),Ie("span",{key:0,class:He(L(T))},[Y.inactiveIcon?(Ce(),yn(L(Zr),{key:0},{default:Dt(()=>[(Ce(),yn(Fa(Y.inactiveIcon)))]),_:1})):on("v-if",!0),!Y.inactiveIcon&&Y.inactiveText?(Ce(),Ie("span",{key:1,"aria-hidden":L(N)},Zn(Y.inactiveText),9,fCt)):on("v-if",!0)],2)):on("v-if",!0),ce("span",{ref_key:"core",ref:C,class:He(L(f).e("core")),style:Pr(L(F))},[Y.inlinePrompt?(Ce(),Ie("div",{key:0,class:He(L(f).e("inner"))},[Y.activeIcon||Y.inactiveIcon?(Ce(),yn(L(Zr),{key:0,class:He(L(f).is("icon"))},{default:Dt(()=>[(Ce(),yn(Fa(L(N)?Y.activeIcon:Y.inactiveIcon)))]),_:1},8,["class"])):Y.activeText||Y.inactiveText?(Ce(),Ie("span",{key:1,class:He(L(f).is("text")),"aria-hidden":!L(N)},Zn(L(N)?Y.activeText:Y.inactiveText),11,dCt)):on("v-if",!0)],2)):on("v-if",!0),ce("div",{class:He(L(f).e("action"))},[Y.loading?(Ce(),yn(L(Zr),{key:0,class:He(L(f).is("loading"))},{default:Dt(()=>[gt(L(N3))]),_:1},8,["class"])):on("v-if",!0)],2)],6),!Y.inlinePrompt&&(Y.activeIcon||Y.activeText)?(Ce(),Ie("span",{key:1,class:He(L(B))},[Y.activeIcon?(Ce(),yn(L(Zr),{key:0},{default:Dt(()=>[(Ce(),yn(Fa(Y.activeIcon)))]),_:1})):on("v-if",!0),!Y.activeIcon&&Y.activeText?(Ce(),Ie("span",{key:1,"aria-hidden":!L(N)},Zn(Y.activeText),9,vCt)):on("v-if",!0)],2)):on("v-if",!0)],14,uCt))}});var mCt=vr(pCt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const gCt=Ca(mCt);/*! 65 * escape-html 66 * Copyright(c) 2012-2013 TJ Holowaychuk 67 * Copyright(c) 2015 Andreas Lubbe 68 * Copyright(c) 2015 Tiancheng "Timothy" Gu 69 * MIT Licensed 70 */var yCt=/["'&<>]/,bCt=_Ct;function _Ct(e){var t=""+e,n=yCt.exec(t);if(!n)return t;var r,i="",l=0,u=0;for(l=n.index;l<t.length;l++){switch(t.charCodeAt(l)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}u!==l&&(i+=t.substring(u,l)),u=l+1,i+=r}return u!==l?i+t.substring(u,l):i}const RZ=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},wCt=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=r?null:function(f,v){return i?(Array.isArray(i)||(i=[i]),i.map(h=>typeof h=="string"?lu(f,h):h(f,v,e))):(t!=="$key"&&Qs(f)&&"$value"in f&&(f=f.$value),[Qs(f)?lu(f,t):f])},u=function(f,v){if(r)return r(f.value,v.value);for(let h=0,g=f.key.length;h<g;h++){if(f.key[h]<v.key[h])return-1;if(f.key[h]>v.key[h])return 1}return 0};return e.map((f,v)=>({value:f,index:v,key:l?l(f,v):null})).sort((f,v)=>{let h=u(f,v);return h||(h=f.index-v.index),h*+n}).map(f=>f.value)},ege=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},CCt=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const i=e.columns[r];if(i.columnKey===t){n=i;break}}return n||Gf("ElTable",`No column matching with column-key: ${t}`),n},fue=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?ege(e,r[0]):null},Y1=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},fC=function(e,t){const n={};
70return(e||[]).forEach((r,i)=>{n[Y1(r,t)]={row:r,index:i}}),n};function xCt(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(J1(t,r)){const i=t[r];typeof i!="undefined"&&(n[r]=i)}return n}function One(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function tge(e){return e===""||e!==void 0&&(e=One(e),Number.isNaN(e)&&(e=80)),e}function ECt(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function SCt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function QD(e,t,n){let r=!1;const i=e.indexOf(t),l=i!==-1,u=f=>{f==="add"?e.push(t):e.splice(i,1),r=!0,Oa(t.children)&&t.children.forEach(v=>{QD(e,v,n!=null?n:!l)})};return Wf(n)?n&&!l?u("add"):!n&&l&&u("remove"):u(l?"remove":"add"),r}function TCt(e,t,n="children",r="hasChildren"){const i=u=>!(Array.isArray(u)&&u.length);function l(u,f,v){t(u,f,v),f.forEach(h=>{if(h[r]){t(h,null,v+1);return}const g=h[n];i(g)||l(h,g,v+1)})}e.forEach(u=>{if(u[r]){t(u,null,0);return}const f=u[n];i(f)||l(u,f,0)})}let l3;function ACt(e,t,n,r,i){i=xhe({enterable:!0,showArrow:!0},i);const l=e==null?void 0:e.dataset.prefix,u=e==null?void 0:e.querySelector(`.${l}-scrollbar__wrap`);function f(){const B=i.effect==="light",F=document.createElement("div");return F.className=[`${l}-popper`,B?"is-light":"is-dark",i.popperClass||""].join(" "),n=bCt(n),F.innerHTML=n,F.style.zIndex=String(r()),e==null||e.appendChild(F),F}function v(){const B=document.createElement("div");return B.className=`${l}-popper__arrow`,B}function h(){g&&g.update()}l3==null||l3(),l3=()=>{try{g&&g.destroy(),C&&(e==null||e.removeChild(C)),t.removeEventListener("mouseenter",y),t.removeEventListener("mouseleave",w),u==null||u.removeEventListener("scroll",l3),l3=void 0}catch{}};let g=null,y=h,w=l3;i.enterable&&({onOpen:y,onClose:w}=g0e({showAfter:i.showAfter,hideAfter:i.hideAfter,open:h,close:l3}));const C=f();C.onmouseenter=y,C.onmouseleave=w;const S=[];if(i.offset&&S.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const B=C.appendChild(v());S.push({name:"arrow",options:{element:B,padding:10}})}const T=i.popperOptions||{};return g=Jte(t,C,{placement:i.placement||"top",strategy:"fixed",...T,modifiers:T.modifiers?S.concat(T.modifiers):S}),t.addEventListener("mouseenter",y),t.addEventListener("mouseleave",w),u==null||u.addEventListener("scroll",l3),g}function nge(e){return e.children?ODe(e.children,nge):[e]}function due(e,t){return e+t.colSpan}const rge=(e,t,n,r)=>{let i=0,l=e;const u=n.states.columns.value;if(r){const v=nge(r[e]);i=u.slice(0,u.indexOf(v[0])).reduce(due,0),l=i+v.reduce(due,0)-1}else i=e;let f;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(f="left");break;case"right":i>=u.length-n.states.rightFixedLeafColumnsLength.value&&(f="right");break;default:l<n.states.fixedLeafColumnsLength.value?f="left":i>=u.length-n.states.rightFixedLeafColumnsLength.value&&(f="right")}return f?{direction:f,start:i,after:l}:{}},Mne=(e,t,n,r,i,l=0)=>{const u=[],{direction:f,start:v,after:h}=rge(t,n,r,i);if(f){const g=f==="left";u.push(`${e}-fixed-column--${f}`),g&&h+l===r.states.fixedLeafColumnsLength.value-1?u.push("is-last-column"):!g&&v-l===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&u.push("is-first-column")}return u};function vue(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Nne=(e,t,n,r)=>{const{direction:i,start:l=0,after:u=0}=rge(e,t,n,r);if(!i)return;const f={},v=i==="left",h=n.states.columns.value;return v?f.left=h.slice(0,l).reduce(vue,0):f.right=h.slice(u+1).reverse().reduce(vue,0),f},o7=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function kCt(e){const t=va(),n=et(!1),r=et([]);return{updateExpandRows:()=>{const v=e.data.value||[],h=e.rowKey.value;if(n.value)r.value=v.slice();else if(h){const g=fC(r.value,h);r.value=v.reduce((y,w)=>{const C=Y1(w,h);return g[C]&&y.push(w),y},[])}else r.value=[]},toggleRowExpansion:(v,h)=>{QD(r.value,v,h)&&t.emit("expand-change",v,r.value.slice())},setExpandRowKeys:v=>{t.store.assertRowKey();const h=e.data.value||[],g=e.rowKey.value,y=fC(h,g);r.value=v.reduce((w,C)=>{const S=y[C];return S&&w.push(S.row),w},[])},isRowExpanded:v=>{const h=e.rowKey.value;return h?!!fC(r.value,h)[Y1(v,h)]:r.value.includes(v)},states:{expandRows:r,defaultExpandAll:n}}}function OCt(e){const t=va(),n=et(null),r=et(null),i=h=>{t.store.assertRowKey(),n.value=h,u(h)},l=()=>{n.value=null},u=h=>{const{data:g,rowKey:y}=e;let w=null;y.value&&(w=(L(g)||[]).find(C=>Y1(C,y.value)===h)),r.value=w,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:l,setCurrentRowByKey:u,updateCurrentRow:h=>{const g=r.value;if(h&&h!==g){r.value=h,t.emit("current-change",r.value,g);return}!h&&g&&(r.value=null,t.emit("current-change",null,g))},updateCurrentRowData:()=>{const h=e.rowKey.value,g=e.data.value||[],y=r.value;if(!g.includes(y)&&y){if(h){const w=Y1(y,h);u(w)}else r.value=null;r.value===null&&t.emit("current-change",null,y)}else n.value&&(u(n.value),l())},states:{_currentRowKey:n,currentRow:r}}}function MCt(e){const t=et([]),n=et({}),r=et(16),i=et(!1),l=et({}),u=et("hasChildren"),f=et("children"),v=va(),h=Ne(()=>{if(!e.rowKey.value)return{};const F=e.data.value||[];return y(F)}),g=Ne(()=>{const F=e.rowKey.value,R=Object.keys(l.value),N={};return R.length&&R.forEach(A=>{if(l.value[A].length){const X={children:[]};l.value[A].forEach(Z=>{const z=Y1(Z,F);X.children.push(z),Z[u.value]&&!N[z]&&(N[z]={children:[]})}),N[A]=X}}),N}),y=F=>{const R=e.rowKey.value,N={};return TCt(F,(A,X,Z)=>{const z=Y1(A,R);Array.isArray(X)?N[z]={children:X.map(Y=>Y1(Y,R)),level:Z}:i.value&&(N[z]={children:[],lazy:!0,level:Z})},f.value,u.value),N},w=(F=!1,R=(N=>(N=v.store)==null?void 0:N.states.defaultExpandAll.value)())=>{var N;const A=h.value,X=g.value,Z=Object.keys(A),z={};if(Z.length){const Y=L(n),Q=[],$=(V,K)=>{if(F)return t.value?R||t.value.includes(K):!!(R||(V==null?void 0:V.expanded));
70{const fe=R||t.value&&t.value.includes(K);return!!((V==null?void 0:V.expanded)||fe)}};Z.forEach(V=>{const K=Y[V],fe={...A[V]};if(fe.expanded=$(K,V),fe.lazy){const{loaded:de=!1,loading:ne=!1}=K||{};fe.loaded=!!de,fe.loading=!!ne,Q.push(V)}z[V]=fe});const te=Object.keys(X);i.value&&te.length&&Q.length&&te.forEach(V=>{const K=Y[V],fe=X[V].children;if(Q.includes(V)){if(z[V].children.length!==0)throw new Error("[ElTable]children must be an empty array.");z[V].children=fe}else{const{loaded:de=!1,loading:ne=!1}=K||{};z[V]={lazy:!0,loaded:!!de,loading:!!ne,expanded:$(K,V),children:fe,level:""}}})}n.value=z,(N=v.store)==null||N.updateTableScrollY()};$n(()=>t.value,()=>{w(!0)}),$n(()=>h.value,()=>{w()}),$n(()=>g.value,()=>{w()});const C=F=>{t.value=F,w()},S=(F,R)=>{v.store.assertRowKey();const N=e.rowKey.value,A=Y1(F,N),X=A&&n.value[A];if(A&&X&&"expanded"in X){const Z=X.expanded;R=typeof R=="undefined"?!X.expanded:R,n.value[A].expanded=R,Z!==R&&v.emit("expand-change",F,R),v.store.updateTableScrollY()}},T=F=>{v.store.assertRowKey();const R=e.rowKey.value,N=Y1(F,R),A=n.value[N];i.value&&A&&"loaded"in A&&!A.loaded?B(F,N,A):S(F,void 0)},B=(F,R,N)=>{const{load:A}=v.props;A&&!n.value[R].loaded&&(n.value[R].loading=!0,A(F,N,X=>{if(!Array.isArray(X))throw new TypeError("[ElTable] data must be an array");n.value[R].loading=!1,n.value[R].loaded=!0,n.value[R].expanded=!0,X.length&&(l.value[R]=X),v.emit("expand-change",F,!0)}))};return{loadData:B,loadOrToggle:T,toggleTreeExpansion:S,updateTreeExpandKeys:C,updateTreeData:w,normalize:y,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:l,lazyColumnIdentifier:u,childrenColumnName:f}}}const NCt=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:wCt(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Gz=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Gz(n.children)):t.push(n)}),t};function DCt(){var e;const t=va(),{size:n}=Dc((e=t.proxy)==null?void 0:e.$props),r=et(null),i=et([]),l=et([]),u=et(!1),f=et([]),v=et([]),h=et([]),g=et([]),y=et([]),w=et([]),C=et([]),S=et([]),T=[],B=et(0),F=et(0),R=et(0),N=et(!1),A=et([]),X=et(!1),Z=et(!1),z=et(null),Y=et({}),Q=et(null),$=et(null),te=et(null),V=et(null),K=et(null);$n(i,()=>t.state&&le(!1),{deep:!0});const fe=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},de=At=>{var vt;(vt=At.children)==null||vt.forEach(Tt=>{Tt.fixed=At.fixed,de(Tt)})},ne=()=>{f.value.forEach(xt=>{de(xt)}),g.value=f.value.filter(xt=>xt.fixed===!0||xt.fixed==="left"),y.value=f.value.filter(xt=>xt.fixed==="right"),g.value.length>0&&f.value[0]&&f.value[0].type==="selection"&&!f.value[0].fixed&&(f.value[0].fixed=!0,g.value.unshift(f.value[0]));const At=f.value.filter(xt=>!xt.fixed);v.value=[].concat(g.value).concat(At).concat(y.value);const vt=Gz(At),Tt=Gz(g.value),Wt=Gz(y.value);B.value=vt.length,F.value=Tt.length,R.value=Wt.length,h.value=[].concat(Tt).concat(vt).concat(Wt),u.value=g.value.length>0||y.value.length>0},le=(At,vt=!1)=>{At&&ne(),vt?t.state.doLayout():t.state.debouncedUpdateLayout()},_e=At=>A.value.includes(At),M=()=>{N.value=!1,A.value.length&&(A.value=[],t.emit("selection-change",[]))},P=()=>{let At;if(r.value){At=[];const vt=fC(A.value,r.value),Tt=fC(i.value,r.value);for(const Wt in vt)J1(vt,Wt)&&!Tt[Wt]&&At.push(vt[Wt].row)}else At=A.value.filter(vt=>!i.value.includes(vt));if(At.length){const vt=A.value.filter(Tt=>!At.includes(Tt));A.value=vt,t.emit("selection-change",vt.slice())}},U=()=>(A.value||[]).slice(),j=(At,vt=void 0,Tt=!0)=>{if(QD(A.value,At,vt)){const xt=(A.value||[]).slice();Tt&&t.emit("select",xt,At),t.emit("selection-change",xt)}},ee=()=>{var At,vt;const Tt=Z.value?!N.value:!(N.value||A.value.length);N.value=Tt;let Wt=!1,xt=0;const at=(vt=(At=t==null?void 0:t.store)==null?void 0:At.states)==null?void 0:vt.rowKey.value;i.value.forEach((_t,en)=>{const An=en+xt;z.value?z.value.call(null,_t,An)&&QD(A.value,_t,Tt)&&(Wt=!0):QD(A.value,_t,Tt)&&(Wt=!0),xt+=he(Y1(_t,at))}),Wt&&t.emit("selection-change",A.value?A.value.slice():[]),t.emit("select-all",A.value)},ye=()=>{const At=fC(A.value,r.value);i.value.forEach(vt=>{const Tt=Y1(vt,r.value),Wt=At[Tt];Wt&&(A.value[Wt.index]=vt)})},ie=()=>{var At,vt,Tt;if(((At=i.value)==null?void 0:At.length)===0){N.value=!1;return}let Wt;r.value&&(Wt=fC(A.value,r.value));const xt=function(An){return Wt?!!Wt[Y1(An,r.value)]:A.value.includes(An)};let at=!0,_t=0,en=0;for(let An=0,Vt=(i.value||[]).length;An<Vt;An++){const _n=(Tt=(vt=t==null?void 0:t.store)==null?void 0:vt.states)==null?void 0:Tt.rowKey.value,Mt=An+en,pn=i.value[An],En=z.value&&z.value.call(null,pn,Mt);if(xt(pn))_t++;else if(!z.value||En){at=!1;break}en+=he(Y1(pn,_n))}_t===0&&(at=!1),N.value=at},he=At=>{var vt;if(!t||!t.store)return 0;const{treeData:Tt}=t.store.states;let Wt=0;const xt=(vt=Tt.value[At])==null?void 0:vt.children;return xt&&(Wt+=xt.length,xt.forEach(at=>{Wt+=he(at)})),Wt},re=(At,vt)=>{Array.isArray(At)||(At=[At]);const Tt={};return At.forEach(Wt=>{Y.value[Wt.id]=vt,Tt[Wt.columnKey||Wt.id]=vt}),Tt},be=(At,vt,Tt)=>{$.value&&$.value!==At&&($.value.order=null),$.value=At,te.value=vt,V.value=Tt},Ae=()=>{let At=L(l);Object.keys(Y.value).forEach(vt=>{const Tt=Y.value[vt];if(!Tt||Tt.length===0)return;const Wt=ege({columns:h.value},vt);Wt&&Wt.filterMethod&&(At=At.filter(xt=>Tt.some(at=>Wt.filterMethod.call(null,at,xt,Wt))))}),Q.value=At},Te=()=>{i.value=NCt(Q.value,{sortingColumn:$.value,sortProp:te.value,sortOrder:V.value})},Ue=(At=void 0)=>{At&&At.filter||Ae(),Te()},Oe=At=>{const{tableHeaderRef:vt}=t.refs;if(!vt)return;const Tt=Object.assign({},vt.filterPanels),Wt=Object.keys(Tt);if(!!Wt.length)if(typeof At=="string"&&(At=[At]),Array.isArray(At)){const xt=At.map(at=>CCt({columns:h.value},at));Wt.forEach(at=>{const _t=xt.find(en=>en.id===at);_t&&(_t.filteredValue=[])}),t.store.commit("filterChange",{column:xt,values:[],silent:!0,multi:!0})}else Wt.forEach(xt=>{const at=h.value.find(_t=>_t.id===xt);at&&(at.filteredValue=[])}),Y.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},De=()=>{!$.value||(be(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:$e,toggleRowExpansion:rt,updateExpandRows:ct,states:lt,isRowExpanded:ot}=kCt({data:i,rowKey:r}),{updateTreeExpandKeys:Fe,toggleTreeExpansion:We,updateTreeData:Ye,loadOrToggle:Ke,states:mt}=MCt({data:i,rowKey:r}),{updateCurrentRowData:Ct,updateCurrentRow:bt,setCurrentRowKey:tn,states:Ft}=OCt({data:i,rowKey:r});return{assertRowKey:fe,updateColumns:ne,scheduleLayout:le,isSelected:_e,clearSelection:M,cleanSelection:P,getSelectionRows:U,toggleRowSelection:j,_toggleAllSelection:ee,toggleAllSelection:null,updateSelectionByRowKey:ye,updateAllSelected:ie,updateFilters:re,updateCurrentRow:bt,updateSort:be,execFilter:Ae,execSort:Te,execQuery:Ue,clearFilter:Oe,clearSort:De,toggleRowExpansion:rt,setExpandRowKeysAdapter:At=>{$e(At),Fe(At)},setCurrentRowKey:tn,toggleRowExpansionAdapter:(At,vt)=>{h.value.some(({type:Wt})=>Wt==="expand")?rt(At,vt):We(At,vt)},isRowExpanded:ot,updateExpandRows:ct,updateCurrentRowData:Ct,loadOrToggle:Ke,updateTreeData:Ye,states:{tableSize:n,rowKey:r,data:i,_data:l,isComplex:u,_columns:f,originColumns:v,columns:h,fixedColumns:g,rightFixedColumns:y,leafColumns:w,fixedLeafColumns:C,rightFixedLeafColumns:S,updateOrderFns:T,leafColumnsLength:B,fixedLeafColumnsLength:F,rightFixedLeafColumnsLength:R,isAllSelected:N,selection:A,reserveSelection:X,selectOnIndeterminate:Z,selectable:z,filters:Y,filteredData:Q,sortingColumn:$,sortProp:te,sortOrder:V,hoverRow:K,...lt,...mt,...Ft}}}function ZJ(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=ZJ(n.children,t)),n)})}function QJ(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&QJ(t.children)}),e.sort((t,n)=>t.no-n.no)}function ICt(){const e=va(),t=DCt();return{ns:Vn("table"),...t,mutations:{setData(u,f){const v=L(u._data)!==f;u.data.value=f,u._data.value=f,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),L(u.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):v?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(u,f,v,h){const g=L(u._columns);let y=[];v?(v&&!v.children&&(v.children=[]),v.children.push(f),y=ZJ(g,v)):(g.push(f),y=g),QJ(y),u._columns.value=y,u.updateOrderFns.push(h),f.type==="selection"&&(u.selectable.value=f.selectable,u.reserveSelection.value=f.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(u,f){var v;((v=f.getColumnIndex)==null?void 0:v.call(f))!==f.no&&(QJ(u._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(u,f,v,h){const g=L(u._columns)||[];
70if(v)v.children.splice(v.children.findIndex(w=>w.id===f.id),1),Gr(()=>{var w;((w=v.children)==null?void 0:w.length)===0&&delete v.children}),u._columns.value=ZJ(g,v);else{const w=g.indexOf(f);w>-1&&(g.splice(w,1),u._columns.value=g)}const y=u.updateOrderFns.indexOf(h);y>-1&&u.updateOrderFns.splice(y,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(u,f){const{prop:v,order:h,init:g}=f;if(v){const y=L(u.columns).find(w=>w.property===v);y&&(y.order=h,e.store.updateSort(y,v,h),e.store.commit("changeSortCondition",{init:g}))}},changeSortCondition(u,f){const{sortingColumn:v,sortProp:h,sortOrder:g}=u,y=L(v),w=L(h),C=L(g);C===null&&(u.sortingColumn.value=null,u.sortProp.value=null);const S={filter:!0};e.store.execQuery(S),(!f||!(f.silent||f.init))&&e.emit("sort-change",{column:y,prop:w,order:C}),e.store.updateTableScrollY()},filterChange(u,f){const{column:v,values:h,silent:g}=f,y=e.store.updateFilters(v,h);e.store.execQuery(),g||e.emit("filter-change",y),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(u,f){e.store.toggleRowSelection(f),e.store.updateAllSelected()},setHoverRow(u,f){u.hoverRow.value=f},setCurrentRow(u,f){e.store.updateCurrentRow(f)}},commit:function(u,...f){const v=e.store.mutations;if(v[u])v[u].apply(e,[e.store.states].concat(f));else throw new Error(`Action not found: ${u}`)},updateTableScrollY:function(){Gr(()=>e.layout.updateScrollY.apply(e.layout))}}}const JD={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function RCt(e,t){if(!e)throw new Error("Table is required.");const n=ICt();return n.toggleAllSelection=Lv(n._toggleAllSelection,10),Object.keys(JD).forEac
70h(r=>{oge(age(t,r),r,n)}),LCt(n,t),n}function LCt(e,t){Object.keys(JD).forEach(n=>{$n(()=>age(t,n),r=>{oge(r,n,e)})})}function oge(e,t,n){let r=e,i=JD[t];typeof JD[t]=="object"&&(i=i.key,r=r||JD[t].default),n.states[i].value=r}function age(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class BCt{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=et(null),this.scrollX=et(!1),this.scrollY=et(!1),this.bodyWidth=et(null),this.fixedWidth=et(null),this.rightFixedWidth=et(null),this.gutterWidth=0;for(const n in t)J1(t,n)&&(El(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let r=!0;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return!1}setHeight(t,n="height"){if(!_i)return;const r=this.table.vnode.el;if(t=ECt(t),this.height.value=Number(t),!r&&(t||t===0))return Gr(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!_i)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),l=i.filter(v=>typeof v.width!="number");if(i.forEach(v=>{typeof v.width=="number"&&v.realWidth&&(v.realWidth=null)}),l.length>0&&t){if(i.forEach(v=>{r+=Number(v.width||v.minWidth||80)}),r<=n){this.scrollX.value=!1;const v=n-r;if(l.length===1)l[0].realWidth=Number(l[0].minWidth||80)+v;else{const h=l.reduce((w,C)=>w+Number(C.minWidth||80),0),g=v/h;let y=0;l.forEach((w,C)=>{if(C===0)return;const S=Math.floor(Number(w.minWidth||80)*g);y+=S,w.realWidth=Number(w.minWidth||80)+S}),l[0].realWidth=Number(l[0].minWidth||80)+v-y}}else this.scrollX.value=!0,l.forEach(v=>{v.realWidth=Number(v.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(v=>{!v.width&&!v.minWidth?v.realWidth=80:v.realWidth=Number(v.width||v.minWidth),r+=v.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const u=this.store.states.fixedColumns.value;if(u.length>0){let v=0;u.forEach(h=>{v+=Number(h.realWidth||h.width)}),this.fixedWidth.value=v}const f=this.store.states.rightFixedColumns.value;if(f.length>0){let v=0;f.forEach(h=>{v+=Number(h.realWidth||h.width)}),this.rightFixedWidth.value=v}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var i,l;switch(t){case"columns":(i=r.state)==null||i.onColumnsChange(this);break;case"scrollable":(l=r.state)==null||l.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:PCt}=Bm,FCt=Zt({name:"ElTableFilterPanel",components:{ElCheckbox:Bm,ElCheckboxGroup:PCt,ElScrollbar:D3,ElTooltip:Ch,ElIcon:Zr,ArrowDown:O3,ArrowUp:nR},directives:{ClickOutside:W8},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=va(),{t:n}=Ni(),r=Vn("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const l=et(!1),u=et(null),f=Ne(()=>e.column&&e.column.filters),v=Ne({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{h.value&&(typeof A!="undefined"&&A!==null?h.value.splice(0,1,A):h.value.splice(0,1))}}),h=Ne({get(){return e.column?e.column.filteredValue||[]:[]},set(A){e.column&&e.upDataColumn("filteredValue",A)}}),g=Ne(()=>e.column?e.column.filterMultiple:!0),y=A=>A.value===v.value,w=()=>{l.value=!1},C=A=>{A.stopPropagation(),l.value=!l.value},S=()=>{l.value=!1},T=()=>{R(h.value),w()},B=()=>{h.value=[],R(h.value),w()},F=A=>{v.value=A,R(typeof A!="undefined"&&A!==null?h.value:[]),w()},R=A=>{e.store.commit("filterChange",{column:e.column,values:A}),e.store.updateAllSelected()};$n(l,A=>{e.column&&e.upDataColumn("filterOpened",A)},{immediate:!0});const N=Ne(()=>{var A,X;return(X=(A=u.value)==null?void 0:A.popperRef)==null?void 0:X.contentRef});return{tooltipVisible:l,multiple:g,filteredValue:h,filterValue:v,f
70ilters:f,handleConfirm:T,handleReset:B,handleSelect:F,isActive:y,t:n,ns:r,showFilterPanel:C,hideFilterPanel:S,popperPaneRef:N,tooltip:u}}}),$Ct={key:0},zCt=["disabled"],HCt=["label","onClick"];function VCt(e,t,n,r,i,l){const u=Kr("el-checkbox"),f=Kr("el-checkbox-group"),v=Kr("el-scrollbar"),h=Kr("arrow-up"),g=Kr("arrow-down"),y=Kr("el-icon"),w=Kr("el-tooltip"),C=$A("click-outside");return Ce(),yn(w,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Dt(()=>[e.multiple?(Ce(),Ie("div",$Ct,[ce("div",{class:He(e.ns.e("content"))},[gt(v,{"wrap-class":e.ns.e("wrap")},{default:Dt(()=>[gt(f,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=S=>e.filteredValue=S),class:He(e.ns.e("checkbox-group"))},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(e.filters,S=>(Ce(),yn(u,{key:S.value,label:S.value},{default:Dt(()=>[lo(Zn(S.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ce("div",{class:He(e.ns.e("bottom"))},[ce("button",{class:He({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...S)=>e.handleConfirm&&e.handleConfirm(...S))},Zn(e.t("el.table.confirmFilter")),11,zCt),ce("button",{type:"button",onClick:t[2]||(t[2]=(...S)=>e.handleReset&&e.handleReset(...S))},Zn(e.t("el.table.resetFilter")),1)],2)])):(Ce(),Ie("ul",{key:1,class:He(e.ns.e("list"))},[ce("li",{class:He([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=S=>e.handleSelect(null))},Zn(e.t("el.table.clearFilter")),3),(Ce(!0),Ie(Ur,null,La(e.filters,S=>(Ce(),Ie("li",{key:S.value,class:He([e.ns.e("list-item"),e.ns.is("active",e.isActive(S))]),label:S.value,onClick:T=>e.handleSelect(S.value)},Zn(S.text),11,HCt))),128))],2))]),default:Dt(()=>[ea((Ce(),Ie("span",{class:He([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...S)=>e.showFilterPanel&&e.showFilterPanel(...S))},[gt(y,null,{default:Dt(()=>[e.column.filterOpened?(Ce(),yn(h,{key:0})):(Ce(),yn(g,{key:1}))]),_:1})],2)),[[C,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var UCt=vr(FCt,[["render",VCt],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function ige(e){const t=va();aV(()=>{n.value.addObserver(t)}),ia(()=>{r(n.value),i(n.value)}),S3(()=>{r(n.value),i(n.value)}),T3(()=>{n.value.removeObserver(t)});const n=Ne(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),r=l=>{var u;const f=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col"))||[];if(!f.length)return;const v=l.getFlattenColumns(),h={};v.forEach(g=>{h[g.id]=g});for(let g=0,y=f.length;g<y;g++){const w=f[g],C=w.getAttribute("name"),S=h[C];S&&w.setAttribute("width",S.realWidth||S.width)}},i=l=>{var u,f;const v=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let g=0,y=v.length;g<y;g++)v[g].setAttribute("width",l.scrollY.value?l.gutterWidth:"0");const h=((f=e.vnode.el)==null?void 0:f.querySelectorAll("th.gutter"))||[];for(let g=0,y=h.length;g<y;g++){const w=h[g];w.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",w.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:i}}const yb=Symbol("ElTable");function jCt(e,t){const n=va(),r=jr(yb),i=T=>{T.stopPropagation()},l=(T,B)=>{!B.filters&&B.sortable?S(T,B,!1):B.filterable&&!B.sortable&&i(T),r==null||r.emit("header-click",B,T)},u=(T,B)=>{r==null||r.emit("header-contextmenu",B,T)},f=et(null),v=et(!1),h=et({}),g=(T,B)=>{if(!!_i&&!(B.children&&B.children.length>0)&&f.value&&e.border){v.value=!0;const F=r;t("set-drag-visible",!0);const N=(F==null?void 0:F.vnode.el).getBoundingClientRect().left,A=n.vnode.el.querySelector(`th.${B.id}`),X=A.getBoundingClientRect(),Z=X.left-N+30;ob(A,"noclick"),h.value={startMouseLeft:T.clientX,startLeft:X.right-N,startColumnLeft:X.left-N,tableLeft:N};const z=F==null?void 0:F.refs.resizeProxy;z.style.left=`${h.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const Y=$=>{const te=$.clientX-h.value.startMouseLeft,V=h.value.startLeft+te;z.style.left=`${Math.max(Z,V)}px`},Q=()=>
70{if(v.value){const{startColumnLeft:$,startLeft:te}=h.value,K=Number.parseInt(z.style.left,10)-$;B.width=B.realWidth=K,F==null||F.emit("header-dragend",B.width,te-$,B,T),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",v.value=!1,f.value=null,h.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",Q),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{m0(A,"noclick")},0)};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",Q)}},y=(T,B)=>{if(B.children&&B.children.length>0)return;const F=T.target;if(!Nm(F))return;const R=F==null?void 0:F.closest("th");if(!(!B||!B.resizable)&&!v.value&&e.border){const N=R.getBoundingClientRect(),A=document.body.style;N.width>12&&N.right-T.pageX<8?(A.cursor="col-resize",e2(R,"is-sortable")&&(R.style.cursor="col-resize"),f.value=B):v.value||(A.cursor="",e2(R,"is-sortable")&&(R.style.cursor="pointer"),f.value=null)}},w=()=>{!_i||(document.body.style.cursor="")},C=({order:T,sortOrders:B})=>{if(T==="")return B[0];const F=B.indexOf(T||null);return B[F>B.length-2?0:F+1]},S=(T,B,F)=>{var R;T.stopPropagation();const N=B.order===F?null:F||C(B),A=(R=T.target)==null?void 0:R.closest("th");if(A&&e2(A,"noclick")){m0(A,"noclick");return}if(!B.sortable)return;const X=e.store.states;let Z=X.sortProp.value,z;const Y=X.sortingColumn.value;(Y!==B||Y===B&&Y.order===null)&&(Y&&(Y.order=null),X.sortingColumn.value=B,Z=B.property),N?z=B.order=N:z=B.order=null,X.sortProp.value=Z,X.sortOrder.value=z,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:g,handleMouseMove:y,handleMouseOut:w,handleSortClick:S,handleFilterClick:i}}function WCt(e){const t=jr(yb),n=Vn("table");return{getHeaderRowStyle:f=>{const v=t==null?void 0:t.props.headerRowStyle;return typeof v=="function"?v.call(null,{rowIndex:f}):v},getHeaderRowClass:f=>{const v=[],h=t==null?void 0:t.props.headerRowClassName;return typeof h=="string"?v.push(h):typeof h=="function"&&v.push(h.call(null,{rowIndex:f})),v.join(" ")},getHeaderCellStyle:(f,v,h,g)=>{var y;let w=(y=t==null?void 0:t.props.headerCellStyle)!=null?y:{};typeof w=="function"&&(w=w.call(null,{rowIndex:f,columnIndex:v,row:h,column:g}));const C=Nne(v,g.fixed,e.store,h);return o7(C,"left"),o7(C,"right"),Object.assign({},w,C)},getHeaderCellClass:(f,v,h,g)=>{const y=Mne(n.b(),v,g.fixed,e.store,h),w=[g.id,g.order,g.headerAlign,g.className,g.labelClassName,...y];g.children||w.push("is-leaf"),g.sortable&&w.push("is-sortable");const C=t==null?void 0:t.props.headerCellClassName;return typeof C=="string"?w.push(C):typeof C=="function"&&w.push(C.call(null,{rowIndex:f,columnIndex:v,row:h,column:g})),w.push(n.e("cell")),w.filter(S=>Boolean(S)).join(" ")}}}const sge=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,sge(n.children))):t.push(n)}),t},GCt=e=>{let t=1;const n=(l,u)=>{if(u&&(l.level=u.level+1,t<l.level&&(t=l.level)),l.children){let f=0;l.children.forEach(v=>{n(v,l),f+=v.colSpan}),l.colSpan=f}else l.colSpan=1};e.forEach(l=>{l.level=1,n(l,void 0)});const r=[];for(let l=0;l<t;l++)r.push([]);return sge(e).forEach(l=>{l.children?(l.rowSpan=1,l.children.forEach(u=>u.isSubColumn=!0)):l.rowSpan=t-l.level+1,r[l.level-1].push(l)}),r};function KCt(e){const t=jr(yb),n=Ne(()=>GCt(e.store.states.originColumns.value));return{isGroup:Ne(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var YCt=Zt({name:"ElTableHeader",components:{ElCheckbox:Bm},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=va(),r=jr(yb),i=Vn("table"),l=et({}),{onColumnsChange:u,onScrollableChange:f}=ige(r);ia(async()=>{await Gr(),await Gr();const{prop:Z,order:z}=e.defaultSort;r==null||r.store.commit("sort",{prop:Z,order:z,init:!0})});const{handleHeaderClick:v,handleHeaderContextMenu:h,handleMouseDown:g,handleMouseMove:y,handleMouseOut:w,handleSortClick:C,handleFilterClick:S}=jCt(e,t),{getHeaderRowStyle:T,getHeaderRowClass:B,getHeaderCellStyle:F,getHeaderCellClass:R}=WCt(e),{isGroup:N,toggleAllSelection:A,columnRows:X}=KCt(e);return n.state={onColumnsChange:u,onScrollableChange:f},n.filterPanels=l,{ns:i,filterPanels:l,onColumnsChange:u,onScrollableChange:f,columnRows:X,getHeaderRowClass:B,getHeaderRowStyle:T,getHeaderCellClass:R,getHeaderCellStyle:F,handleHeaderClick:v,handleHeaderContextMenu:h,handleMouseDown:g,handleMouseMove:y,handleMouseOut:w,handleSortClick:C,handleFilterClick:S,isGroup:N,toggleAllSelection:A}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:l,getHeaderRowStyle:u,handleHeaderClick:f,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleSortClick:y,handleMouseOut:w,store:C,$parent:S}=this;let T=1;return oo("thead",{class:{[e.is("group")]:t}},n.map((B,F)=>
70oo("tr",{class:l(F),key:F,style:u(F)},B.map((R,N)=>(R.rowSpan>T&&(T=R.rowSpan),oo("th",{class:i(F,N,B,R),colspan:R.colSpan,key:`${R.id}-thead`,rowspan:R.rowSpan,style:r(F,N,B,R),onClick:A=>f(A,R),onContextmenu:A=>v(A,R),onMousedown:A=>h(A,R),onMousemove:A=>g(A,R),onMouseout:w},[oo("div",{class:["cell",R.filteredValue&&R.filteredValue.length>0?"highlight":""]},[R.renderHeader?R.renderHeader({column:R,$index:N,store:C,_self:S}):R.label,R.sortable&&oo("span",{onClick:A=>y(A,R),class:"caret-wrapper"},[oo("i",{onClick:A=>y(A,R,"ascending"),class:"sort-caret ascending"}),oo("i",{onClick:A=>y(A,R,"descending"),class:"sort-caret descending"})]),R.filterable&&oo(UCt,{store:C,placement:R.filterPlacement||"bottom-start",column:R,upDataColumn:(A,X)=>{R[A]=X}})])]))))))}});function qCt(e){const t=jr(yb),n=et(""),r=et(oo("div")),{nextZIndex:i}=m7(),l=(S,T,B)=>{var F;const R=t,N=RZ(S);let A;const X=(F=R==null?void 0:R.vnode.el)==null?void 0:F.dataset.prefix;N&&(A=fue({columns:e.store.states.columns.value},N,X),A&&(R==null||R.emit(`cell-${B}`,T,A,N,S))),R==null||R.emit(`row-${B}`,T,A,S)},u=(S,T)=>{l(S,T,"dblclick")},f=(S,T)=>{e.store.commit("setCurrentRow",T),l(S,T,"click")},v=(S,T)=>{l(S,T,"contextmenu")},h=Lv(S=>{e.store.commit("setHoverRow",S)},30),g=Lv(()=>{e.store.commit("setHoverRow",null)},30),y=S=>{const T=window.getComputedStyle(S,null),B=Number.parseInt(T.paddingLeft,10)||0,F=Number.parseInt(T.paddingRight,10)||0,R=Number.parseInt(T.paddingTop,10)||0,N=Number.parseInt(T.paddingBottom,10)||0;return{left:B,right:F,top:R,bottom:N}};return{handleDoubleClick:u,handleClick:f,handleContextMenu:v,handleMouseEnter:h,handleMouseLeave:g,handleCellMouseEnter:(S,T,B)=>{var F;const R=t,N=RZ(S),A=(F=R==null?void 0:R.vnode.el)==null?void 0:F.dataset.prefix;if(N){const de=fue({columns:e.store.states.columns.value},N,A),ne=R.hoverState={cell:N,column:de,row:T};R==null||R.emit("cell-mouse-enter",ne.row,ne.column,ne.cell,S)}if(!B)return;const X=S.target.querySelector(".cell");if(!(e2(X,`${A}-tooltip`)&&X.childNodes.length))return;const Z=document.createRange();Z.setStart(X,0),Z.setEnd(X,X.childNodes.length);const z=Math.round(Z.getBoundingClientRect().width),Y=Math.round(Z.getBoundingClientRect().height),{top:Q,left:$,right:te,bottom:V}=y(X),K=$+te,fe=Q+V;(z+K>X.offsetWidth||Y+fe>X.offsetHeight||X.scrollWidth>X.offsetWidth)&&ACt(t==null?void 0:t.refs.tableWrapper,N,N.innerText||N.textContent,i,B)},handleCellMouseLeave:S=>{if(!RZ(S))return;const B=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",B==null?void 0:B.row,B==null?void 0:B.column,B==null?void 0:B.cell,S)},tooltipContent:n,tooltipTrigger:r}}function XCt(e){const t=jr(yb),n=Vn("table");return{getRowStyle:(h,g)=>{const y=t==null?void 0:t.props.rowStyle;return typeof y=="function"?y.call(null,{row:h,rowIndex:g}):y||null},getRowClass:(h,g)=>{const y=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&h===e.store.states.currentRow.value&&y.push("current-row"),e.stripe&&g%2===1&&y.push(n.em("row","striped"));const w=t==null?void 0:t.props.rowClassName;return typeof w=="string"?y.push(w):typeof w=="function"&&y.push(w.call(null,{row:h,rowIndex:g})),y},getCellStyle:(h,g,y,w)=>{const C=t==null?void 0:t.props.cellStyle;let S=C!=null?C:{};typeof C=="function"&&(S=C.call(null,{rowIndex:h,columnIndex:g,row:y,column:w}));const T=Nne(g,e==null?void 0:e.fixed,e.store);return o7(T,"left"),o7(T,"right"),Object.assign({},S,T)},getCellClass:(h,g,y,w,C)=>{const S=Mne(n.b(),g,e==null?void 0:e.fixed,e.store,void 0,C),T=[w.id,w.align,w.className,...S],B=t==null?void 0:t.props.cellClassName;return typeof B=="string"?T.push(B):typeof B=="function"&&T.push(B.call(null,{rowIndex:h,columnIndex:g,row:y,column:w})),T.push(n.e("cell")),T.filter(F=>Boolean(F)).join(" ")},getSpan:(h,g,y,w)=>{let C=1,S=1;const T=t==null?void 0:t.props.spanMethod;if(typeof T=="function"){const B=T({row:h,column:g,rowIndex:y,columnIndex:w});Array.isArray(B)?(C=B[0],S=B[1]):typeof B=="object"&&(C=B.rowspan,S=B.colspan)}return{rowspan:C,colspan:S}},getColspanRealWidth:(h,g,y)=>{if(g<1)return h[y].realWidth;const w=h.map(({realWidth:C,width:S})=>C||S).slice(y,y+g);return Number(w.reduce((C,S)=>Number(C)+Number(S),-1))}}}function ZCt(e){const t=jr(yb),n=Vn("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:f,handleCellMouseEnter:v,handleCellMouseLeave:h,tooltipContent:g,tooltipTrigger:y}=qCt(e),{getRowStyle:w,getRowClass:C,getCellStyle:S,getCellClass:T,getSpan:B,getColspanRealWidth:F}=XCt(e),R=Ne(()=>e.store.states.columns.value.findIndex(({type:z})=>z==="default")),N=(z,Y)=>{const Q=t.props.rowKey;return Q?Y1(z,Q):Y},A=(z,Y,Q,$=!1)=>{const{tooltipEffect:te,tooltipOptions:V,store:K}=e,{indent:fe,columns:de}=K.states,ne=C(z,Y);let le=!0;return Q&&(ne.push(n.em("row",`level-${Q.level}`)),le=Q.display),oo("tr",{style:[le?null:{display:"none"},w(z,Y)],class:ne,key:N(z,Y),onDblclick:M=>r(M,z),onClick:M=>i(M,z),onContextmenu:M=>l(M,z),onMouseenter:()=>u(Y),onMouseleave:f},de.value.map((M,P)=>{const{rowspan:U,colspan:j}=B(z,M,Y,P);if(!U||!j)return null;const ee={...M};ee.realWidth=F(de.value,j,P);const ye={store:e.store,_self:e.context||t,column:ee,row:z,$index:Y,cellIndex:P,expanded:$};P===R.value&&Q&&(ye.treeNode={indent:Q.level*fe.value,level:Q.level},typeof Q.expanded=="boolean"&&(ye.treeNode.expanded=Q.expanded,"loading"in Q&&(ye.treeNode.loading=Q.loading),"noLazyChildren"in Q&&(ye.treeNode.noLazyChildren=Q.noLazyChildren)));const ie=`${Y},${P}`,he=ee.columnKey||ee.rawColumnKey||"",re=X(P,M,ye),be=M.showOverflowTooltip&&xhe({effect:te},V,M.showOverflowTooltip);return oo("td",{style:S(Y,P,z,M),class:T(Y,P,z,M,j-1),key:`${he}${ie}`,rowspan:U,colspan:j,onMouseenter:Ae=>v(Ae,z,be),onMouseleave:h},[re])}))},X=(z,Y,Q)=>Y.renderCell(Q);return{wrappedRowRender:(z,Y)=>{const Q=e.store,{isRowExpanded:$,assertRowKey:te}=Q,{treeData:V,lazyTreeNodeMap:K,childrenColumnName:fe,rowKey:de}=Q.states,ne=Q.states.columns.value;if(ne.some(({type:_e})=>_e==="expand")){const _e=$(z),M=A(z,Y,void 0,_e),P=t.renderExpanded;return _e?P?[[M,oo("tr",{key:`expanded-row__${M.key}`},[oo("td",{colspan:ne.length,class:`${n.e("cell")}
70 ${n.e("expanded-cell")}`},[P({row:z,$index:Y,store:Q,expanded:_e})])])]]:(console.error("[Element Error]renderExpanded is required."),M):[[M]]}else if(Object.keys(V.value).length){te();const _e=Y1(z,de.value);let M=V.value[_e],P=null;M&&(P={expanded:M.expanded,level:M.level,display:!0},typeof M.lazy=="boolean"&&(typeof M.loaded=="boolean"&&M.loaded&&(P.noLazyChildren=!(M.children&&M.children.length)),P.loading=M.loading));const U=[A(z,Y,P)];if(M){let j=0;const ee=(ie,he)=>{!(ie&&ie.length&&he)||ie.forEach(re=>{const be={display:he.display&&he.expanded,level:he.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Ae=Y1(re,de.value);if(Ae==null)throw new Error("For nested data item, row-key is required.");if(M={...V.value[Ae]},M&&(be.expanded=M.expanded,M.level=M.level||be.level,M.display=!!(M.expanded&&be.display),typeof M.lazy=="boolean"&&(typeof M.loaded=="boolean"&&M.loaded&&(be.noLazyChildren=!(M.children&&M.children.length)),be.loading=M.loading)),j++,U.push(A(re,Y+j,be)),M){const Te=K.value[Ae]||re[fe.value];ee(Te,M)}})};M.display=!0;const ye=K.value[_e]||z[fe.value];ee(ye,M)}return U}else return A(z,Y,void 0)},tooltipContent:g,tooltipTrigger:y}}const QCt={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var JCt=Zt({name:"ElTableBody",props:QCt,setup(e){const t=va(),n=jr(yb),r=Vn("table"),{wrappedRowRender:i,tooltipContent:l,tooltipTrigger:u}=ZCt(e),{onColumnsChange:f,onScrollableChange:v}=ige(n);return $n(e.store.states.hoverRow,(h,g)=>{if(!e.store.states.isComplex.value||!_i)return;let y=window.requestAnimationFrame;y||(y=w=>window.setTimeout(w,16)),y(()=>{const w=t==null?void 0:t.vnode.el,C=Array.from((w==null?void 0:w.children)||[]).filter(B=>B==null?void 0:B.classList.contains(`${r.e("row")}`)),S=C[g],T=C[h];S&&m0(S,"hover-row"),T&&ob(T,"hover-row")})}),T3(()=>{var h;(h=l3)==null||h()}),{ns:r,onColumnsChange:f,onScrollableChange:v,wrappedRowRender:i,tooltipContent:l,tooltipTrigger:u}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return oo("tbody",{},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function Dne(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const l={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?l.style={width:`${i.width}px`}:l.name=i.id,l};return oo("colgroup",{},n.map(i=>oo("col",r(i))))}Dne.props=["columns","tableLayout"];function ext(){const e=jr(yb),t=e==null?void 0:e.store,n=Ne(()=>t.states.fixedLeafColumnsLength.value),r=Ne(()=>t.states.rightFixedColumns.value.length),i=Ne(()=>t.states.columns.value.length),l=Ne(()=>t.states.fixedColumns.value.length),u=Ne(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:l,rightFixedCount:u,columns:t.states.columns}}function txt(e){const{columns:t}=ext(),n=Vn("table");return{getCellClasses:(l,u)=>{const f=l[u],v=[n.e("cell"),f.id,f.align,f.labelClassName,...Mne(n.b(),u,f.fixed,e.store)];return f.className&&v.push(f.className),f.children||v.push(n.is("leaf")),v},getCellStyles:(l,u)=>{const f=Nne(u,l.fixed,e.store);return o7(f,"left"),o7(f,"right"),f},columns:t}}var nxt=Zt({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object}
70,summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=txt(e);return{ns:Vn("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:l}=this,u=this.store.states.data.value;let f=[];return r?f=r({columns:e,data:u}):e.forEach((v,h)=>{if(h===0){f[h]=i;return}const g=u.map(S=>Number(S[v.property])),y=[];let w=!0;g.forEach(S=>{if(!Number.isNaN(+S)){w=!1;const T=`${S}`.split(".")[1];y.push(T?T.length:0)}});const C=Math.max.apply(null,y);w?f[h]="":f[h]=g.reduce((S,T)=>{const B=Number(T);return Number.isNaN(+B)?S:Number.parseFloat((S+T).toFixed(Math.min(C,20)))},0)}),oo("table",{class:l.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Dne({columns:e}),oo("tbody",[oo("tr",{},[...e.map((v,h)=>oo("td",{key:h,colspan:v.colSpan,rowspan:v.rowSpan,class:n(e,h),style:t(v,h)},[oo("div",{class:["cell",v.labelClassName]},[f[h]])]))])])])}});function rxt(e){return{setCurrentRow:g=>{e.commit("setCurrentRow",g)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(g,y)=>{e.toggleRowSelection(g,y,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:g=>{e.clearFilter(g)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(g,y)=>{e.toggleRowExpansionAdapter(g,y)},clearSort:()=>{e.clearSort()},sort:(g,y)=>{e.commit("sort",{prop:g,order:y})}}}function oxt(e,t,n,r){const i=et(!1),l=et(null),u=et(!1),f=M=>{u.value=M},v=et({width:null,height:null,headerHeight:null}),h=et(!1),g={display:"inline-block",verticalAlign:"middle"},y=et(),w=et(0),C=et(0),S=et(0),T=et(0),B=et(0);h0(()=>{t.setHeight(e.height)}),h0(()=>{t.setMaxHeight(e.maxHeight)}),$n(()=>[e.currentRowKey,n.states.rowKey],([M,P])=>{!L(P)||!L(M)||n.setCurrentRowKey(`${M}`)},{immediate:!0}),$n(()=>e.data,M=>{r.store.commit("setData",M)},{immediate:!0,deep:!0}),h0(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const F=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},R=(M,P)=>{const{pixelX:U,pixelY:j}=P;Math.abs(U)>=Math.abs(j)&&(r.refs.bodyWrapper.scrollLeft+=P.pixelX/5)},N=Ne(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),A=Ne(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),X=()=>{N.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(Q)};ia(async()=>{await Gr(),n.updateColumns(),$(),requestAnimationFrame(X);const M=r.vnode.el,P=r.refs.headerWrapper;e.flexible&&M&&M.parentElement&&(M.parentElement.style.minWidth="0"),v.value={width:y.value=M.offsetWidth,height:M.offsetHeight,headerHeight:e.showHeader&&P?P.offsetHeight:null},n.states.columns.value.forEach(U=>{U.filteredValue&&U.filteredValue.length&&r.store.commit("filterChange",{column:U,values:U.filteredValue,silent:!0})}),r.$ready=!0});const Z=(M,P)=>{if(!M)return;const U=Array.from(M.classList).filter(j=>!j.startsWith("is-scrolling-"));U.push(t.scrollX.value?P:"is-scrolling-none"),M.className=U.join(" ")},z=M=>{const{tableWrapper:P}=r.refs;Z(P,M)},Y=M=>{const{tableWrapper:P}=r.refs;return!!(P&&P.classList.contains(M))},Q=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const he="is-scrolling-none";Y(he)||z(he);return}const M=r.refs.scrollBarRef.wrapRef;if(!M)return;const{scrollLeft:P,offsetWidth:U,scrollWidth:j}=M,{headerWrapper:ee,footerWrapper:ye}=r.refs;ee&&(ee.scrollLeft=P),ye&&(ye.scrollLeft=P);const ie=j-U-1;P>=ie?z("is-scrolling-right"):z(P===0?"is-scrolling-left":"is-scrolling-middle")},$=()=>{!r.refs.scrollBarRef||(r.refs.scrollBarRef.wrapRef&&Yl(r.refs.scrollBarRef.wrapRef,"scroll",Q,{passive:!0}),e.fit?Rv(r.vnode.el,te):Yl(window,"resize",te),Rv(r.refs.bodyWrapper,()=>{var M,P;te(),(P=(M=r.refs)==null?void 0:M.scrollBarRef)==null||P.update()}))},te=()=>{var M,P,U,j;const ee=r.vnode.el;if(!r.$ready||!ee)return;let ye=!1;const{width:ie,height:he,headerHeight:re}=v.value,be=y.value=ee.offsetWidth;ie!==be&&(ye=!0);const Ae=ee.offsetHeight;(e.height||N.value)&&he!==Ae&&(ye=!0);const Te=e.tableLayout==="fixed"?r.refs.headerWrapper:(M=r.refs.tableHeaderRef)==null?void 0:M.$el;e.showHeader&&(Te==null?void 0:Te.offsetHeight)!==re&&(ye=!0),w.value=((P=r.refs.tableWrapper)==null?void 0:P.scrollHeight)||0,S.value=(Te==null?void 0:Te.scrollHeight)||0,T.value=((U=r.refs.footerWrapper)==null?void 0:U.offsetHeight)||0,B.value=((j=r.refs.appendWrapper)==null?void 0:j.offsetHeight)||0,C.value=w.value-S.value-T.value-B.value,ye&&(v.value={width:be,height:Ae,headerHeight:e.showHeader&&(Te==null?void 0:Te.offsetHeight)||0},X())},V=Kf(),K=Ne(()=>{const{bodyWidth:M,scrollY:P,gutterWidth:U}=t;return M.value?`${M.value-(P.value?U:0)}px`:""}),fe=Ne(()=>e.maxHeight?"fixed":e.tableLayout),de=Ne(()=>{if(e.data&&e.data.length)return null;let M="100%";e.height&&C.value&&(M=`${C.value}px`);const P=y.value;return{width:P?`${P}px`:"",height:M}}),ne=Ne(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),le=Ne(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${S.value+T.value}px)`}:{maxHeight:`${e.maxHeight-S.value-T.value}px`}:{});return{isHidden:i,renderExpanded:l,setDragVisible:f,isGroup:h,handleMouseLeave:F,handleHeaderFooterMousewheel:R,tableSize:V,emptyBlockStyle:de,handleFixedMousewheel:(M,P)=>{const U=r.refs.bodyWrapper;if(Math.abs(P.spinY)>0){const j=U.scrollTop;P.pixelY<0&&j!==0&&M.preventDefault(),P.pixelY>0&&U.scrollHeight-U.clientHeight>j&&M.preventDefault(),U.scrollTop+=Math.ceil(P.pixelY/5)}else U.scrollLeft+=Math.ceil(P.pixelX/5)},resizeProxyVisible:u,bodyWidth:K,resizeState:v,doLayout:X,tableBodyStyles:A,tableLayout:fe,
70scrollbarViewStyle:g,tableInnerStyle:ne,scrollbarStyle:le}}function axt(e){const t=et(),n=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),l={childList:!0,subtree:!0},u=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{u.forEach(f=>f())}),t.value.observe(i,l)};ia(()=>{n()}),T3(()=>{var r;(r=t.value)==null||r.disconnect()})}var ixt={data:{type:Array,default:()=>[]},size:ev,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const sxt=()=>{const e=et(),t=(l,u)=>{const f=e.value;f&&f.scrollTo(l,u)},n=(l,u)=>{const f=e.value;f&&$o(u)&&["Top","Left"].includes(l)&&f[`setScroll${l}`](u)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let lxt=1;const uxt=Zt({name:"ElTable",directives:{Mousewheel:lgt},components:{TableHeader:YCt,TableBody:JCt,TableFooter:nxt,ElScrollbar:D3,hColgroup:Dne},props:ixt,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Ni(),n=Vn("table"),r=va();$a(yb,r);const i=RCt(r,e);r.store=i;const l=new BCt({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=l;const u=Ne(()=>(i.states.data.value||[]).length===0),{setCurrentRow:f,getSelectionRows:v,toggleRowSelection:h,clearSelection:g,clearFilter:y,toggleAllSelection:w,toggleRowExpansion:C,clearSort:S,sort:T}=rxt(i),{isHidden:B,renderExpanded:F,setDragVisible:R,isGroup:N,handleMouseLeave:A,handleHeaderFooterMousewheel:X,tableSize:Z,emptyBlockStyle:z,handleFixedMousewheel:Y,resizeProxyVisible:Q,bodyWidth:$,resizeState:te,doLayout:V,tableBodyStyles:K,tableLayout:fe,scrollbarViewStyle:de,tableInnerStyle:ne,scrollbarStyle:le}=oxt(e,l,i,r),{scrollBarRef:_e,scrollTo:M,setScrollLeft:P,setScrollTop:U}=sxt(),j=Lv(V,50),ee=`${n.namespace.value}-table_${lxt++}`;r.tableId=ee,r.state={isGroup:N,resizeState:te,doLayout:V,debouncedUpdateLayout:j};const ye=Ne(()=>e.sumText||t("el.table.sumText")),ie=Ne(()=>e.emptyText||t("el.table.emptyText"));return axt(r),{ns:n,layout:l,store:i,handleHeaderFooterMousewheel:X,handleMouseLeave:A,tableId:ee,tableSize:Z,isHidden:B,isEmpty:u,renderExpanded:F,resizeProxyVisible:Q,resizeState:te,isGroup:N,bodyWidth:$,tableBodyStyles:K,emptyBlockStyle:z,debouncedUpdateLayout:j,handleFixedMousewheel:Y,setCurrentRow:f,getSelectionRows:v,toggleRowSelection:h,clearSelection:g,clearFilter:y,toggleAllSelection:w,toggleRowExpansion:C,clearSort:S,doLayout:V,sort:T,t,setDragVisible:R,context:r,computedSumText:ye,computedEmptyText:ie,tableLayout:fe,scrollbarViewStyle:de,tableInnerStyle:ne,scrollbarStyle:le,scrollBarRef:_e,scrollTo:M,setScrollLeft:P,setScrollTop:U}}}),cxt=["data-prefix"],fxt={ref:"hiddenColumns",class:"hidden-columns"};function dxt(e,t,n,r,i,l){const u=Kr("hColgroup"),f=Kr("table-header"),v=Kr("table-body"),h=Kr("el-scrollbar"),g=Kr("table-footer"),y=$A("mousewheel");return Ce(),Ie("div",{ref:"tableWrapper",class:He([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Pr(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...w)=>e.handleMouseLeave&&e.handleMouseLeave(...w))},[ce("div",{class:He(e.ns.e("inner-wrapper")),style:Pr(e.tableInnerStyle)},[ce("div",fxt,[Fn(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ea((Ce(),Ie("div",{key:0,ref:"headerWrapper",class:He(e.ns.e("header-wrapper"))},[ce("table",{ref:"tableHeader",class:He(e.ns.e("header")),style:Pr(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[gt(u,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),gt(f,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[y,e.handleHeaderFooterMousewheel]]):on("v-if",!0),ce("div",{ref:"bodyWrapper",class:He(e.ns.e("body-wrapper"))},[gt(h,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Dt(()=>
70[ce("table",{ref:"tableBody",class:He(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Pr({width:e.bodyWidth,tableLayout:e.tableLayout})},[gt(u,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(Ce(),yn(f,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):on("v-if",!0),gt(v,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(Ce(),Ie("div",{key:0,ref:"emptyBlock",style:Pr(e.emptyBlockStyle),class:He(e.ns.e("empty-block"))},[ce("span",{class:He(e.ns.e("empty-text"))},[Fn(e.$slots,"empty",{},()=>[lo(Zn(e.computedEmptyText),1)])],2)],6)):on("v-if",!0),e.$slots.append?(Ce(),Ie("div",{key:1,ref:"appendWrapper",class:He(e.ns.e("append-wrapper"))},[Fn(e.$slots,"append")],2)):on("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?ea((Ce(),Ie("div",{key:1,ref:"footerWrapper",class:He(e.ns.e("footer-wrapper"))},[gt(g,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Pr(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Ti,!e.isEmpty],[y,e.handleHeaderFooterMousewheel]]):on("v-if",!0),e.border||e.isGroup?(Ce(),Ie("div",{key:2,class:He(e.ns.e("border-left-patch"))},null,2)):on("v-if",!0)],6),ea(ce("div",{ref:"resizeProxy",class:He(e.ns.e("column-resize-proxy"))},null,2),[[Ti,e.resizeProxyVisible]])],46,cxt)}
70var vxt=vr(uxt,[["render",dxt],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const hxt={selection:"table-column--selection",expand:"table__expand-column"},pxt={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},mxt=e=>hxt[e]||"",gxt={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return oo(Bm,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return oo(Bm,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),oo("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),oo("div",{class:i,onClick:function(u){u.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[oo(Zr,null,{default:()=>[oo(Nv)]})]})},sortable:!1,resizable:!1}};function yxt({row:e,column:t,$index:n}){var r;const i=t.property,l=i&&Dz(e,i).value;return t&&t.formatter?t.formatter(e,t,l,n):((r=l==null?void 0:l.toString)==null?void 0:r.call(l))||""}function bxt({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[oo("span",{class:i.e("placeholder")})]:null;const l=[],u=function(f){f.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(oo("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const f=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let v=Nv;t.loading&&(v=N3),l.push(oo("div",{class:f,onClick:u},{default:()=>[oo(Zr,{class:{[i.is("loading")]:t.loading}},{default:()=>[oo(v)]})]}))}else l.push(oo("span",{class:i.e("placeholder")}));return l}function hue(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function _xt(e,t){const n=va();return{registerComplexWatchers:()=>{const l=["fixed"],u={realWidth:"width",realMinWidth:"minWidth"},f=hue(l,u);Object.keys(f).forEach(v=>{const h=u[v];J1(t,h)&&$n(()=>t[h],g=>{let y=g;h==="width"&&v==="realWidth"&&(y=One(g)),h==="minWidth"&&v==="realMinWidth"&&(y=tge(g)),n.columnConfig.value[h]=y,n.columnConfig.value[v]=y;const w=h==="fixed";e.value.store.scheduleLayout(w)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],u={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},f=hue(l,u);Object.keys(f).forEach(v=>{const h=u[v];J1(t,h)&&$n(()=>t[h],g=>{n.columnConfig.value[v]=g})})}}}function wxt(e,t,n){const r=va(),i=et(""),l=et(!1),u=et(),f=et(),v=Vn("table");h0(()=>{u.value=e.align?`is-${e.align}`:null,u.value}),h0(()=>{f.value=e.headerAlign?`is-${e.headerAlign}`:u.value,f.value});const h=Ne(()=>{let A=r.vnode.vParent||r.parent;for(;A&&!A.tableId&&!A.columnId;)A=A.vnode.vParent||A.parent;return A}),g=Ne(()=>{const{store:A}=r.parent;if(!A)return!1;const{treeData:X}=A.states,Z=X.value;return Z&&Object.keys(Z).length>0}),y=et(One(e.width)),w=et(tge(e.minWidth)),C=A=>(y.value&&(A.width=y.value),w.value&&(A.minWidth=w.value),!y.value&&w.value&&(A.width=void 0),A.minWidth||(A.minWidth=80),A.realWidth=Number(A.width===void 0?A.minWidth:A.width),A),S=A=>{const X=A.type,Z=gxt[X]||{};Object.keys(Z).forEach(Y=>{const Q=Z[Y];Y!=="className"&&Q!==void 0&&(A[Y]=Q)});const z=mxt(X);if(z){const Y=`${L(v.namespace)}-${z}`;A.className=A.className?`${A.className} ${Y}`:Y}return A},T=A=>{Array.isArray(A)?A.forEach(Z=>X(Z)):X(A);function X(Z){var z;((z=Z==null?void 0:Z.type)==null?void 0:z.name)==="ElTableColumn"&&(Z.vParent=r)}};return{columnId:i,realAlign:u,isSubColumn:l,realHeaderAlign:f,columnOrTableParent:h,setColumnWidth:C,setColumnForcedProps:S,setColumnRenders:A=>{e.renderHeader||A.type!=="selection"&&(A.renderHeader=Z=>{r.columnConfig.value.label;const z=t.header;return z?z(Z):A.label});let X=A.renderCell;return A.type==="expand"?(A.renderCell=Z=>oo("div",{class:"cell"},[X(Z)]),n.value.renderExpanded=Z=>t.default?t.default(Z):t.default):(X=X||yxt,A.renderCell=Z=>{let z=null;if(t.default){const K=t.default(Z);z=K.some(fe=>
70fe.type!==b0)?K:X(Z)}else z=X(Z);const{columns:Y}=n.value.store.states,Q=Y.value.findIndex(K=>K.type==="default"),$=g.value&&Z.cellIndex===Q,te=bxt(Z,$),V={class:"cell",style:{}};return A.showOverflowTooltip&&(V.class=`${V.class} ${L(v.namespace)}-tooltip`,V.style={width:`${(Z.column.realWidth||Number(Z.column.width))-1}px`}),T(z),oo("div",V,[te,z])}),A},getPropsData:(...A)=>A.reduce((X,Z)=>(Array.isArray(Z)&&Z.forEach(z=>{X[z]=e[z]}),X),{}),getColumnElIndex:(A,X)=>Array.prototype.indexOf.call(A,X),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Cxt={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let xxt=1;var lge=Zt({name:"ElTableColumn",components:{ElCheckbox:Bm},props:Cxt,setup(e,{slots:t}){const n=va(),r=et({}),i=Ne(()=>{let N=n.parent;for(;N&&!N.tableId;)N=N.parent;return N}),{registerNormalWatchers:l,registerComplexWatchers:u}=_xt(i,e),{columnId:f,isSubColumn:v,realHeaderAlign:h,columnOrTableParent:g,setColumnWidth:y,setColumnForcedProps:w,setColumnRenders:C,getPropsData:S,getColumnElIndex:T,realAlign:B,updateColumnOrder:F}=wxt(e,t,i),R=g.value;f.value=`${R.tableId||R.columnId}_column_${xxt++}`,aV(()=>{v.value=i.value!==R;const N=e.type||"default",A=e.sortable===""?!0:e.sortable,X=Vd(e.showOverflowTooltip)?R.props.showOverflowTooltip:e.showOverflowTooltip,Z={...pxt[N],id:f.value,type:N,property:e.prop||e.property,align:B,headerAlign:h,showOverflowTooltip:X,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:A,index:e.index,rawColumnKey:n.vnode.key};let te=S(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);te=xCt(Z,te),te=SCt(C,y,w)(te),r.value=te,l(),u()}),ia(()=>{var N;const A=g.value,X=v.value?A.vnode.el.children:(N=A.refs.hiddenColumns)==null?void 0:N.children,Z=()=>T(X||[],n.vnode.el);r.value.getColumnIndex=Z,Z()>-1&&i.value.store.commit("insertColumn",r.value,v.value?A.columnConfig.value:null,F)}),Bl(()=>{i.value.store.commit("removeColumn",r.value,v.value?R.columnConfig.value:null,F)}),n.columnId=f.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const u of r)((n=u.type)==null?void 0:n.name)==="ElTableColumn"||u.shapeFlag&2?i.push(u):u.type===Ur&&Array.isArray(u.children)&&u.children.forEach(f=>{(f==null?void 0:f.patchFlag)!==1024&&!Ga(f==null?void 0:f.children)&&i.push(f)});return oo("div",i)}catch{return oo("div",[])}}});const Ext=Ca(vxt,{TableColumn:lge}),Sxt=qu(lge);var PI=(e=>(e.ASC="asc",e.DESC="desc",e))(PI||{}),FI=(e=>(e.CENTER="center",e.RIGHT="right",e))(FI||{}),uge=(e=>(e.LEFT="left",e.RIGHT="right",e))(uge||{});const JJ={asc:"desc",desc:"asc"},$I=Symbol("placeholder"),Txt=(e,t,n)=>{var r;const i={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(i.flexShrink=1);const l={...(r=e.style)!=null?r:{},...i,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l};function Axt(e,t,n){const r=Ne(()=>L(t).filter(T=>!T.hidden)),i=Ne(()=>L(r).filter(T=>T.fixed==="left"||T.fixed===!0)),l=Ne(()=>L(r).filter(T=>T.fixed==="right")),u=Ne(()=>L(r).filter(T=>!T.fixed)),f=Ne(()=>{const T=[];
70return L(i).forEach(B=>{T.push({...B,placeholderSign:$I})}),L(u).forEach(B=>{T.push(B)}),L(l).forEach(B=>{T.push({...B,placeholderSign:$I})}),T}),v=Ne(()=>L(i).length||L(l).length),h=Ne(()=>L(t).reduce((B,F)=>(B[F.key]=Txt(F,L(n),e.fixed),B),{})),g=Ne(()=>L(r).reduce((T,B)=>T+B.width,0)),y=T=>L(t).find(B=>B.key===T),w=T=>L(h)[T],C=(T,B)=>{T.width=B};function S(T){var B;const{key:F}=T.currentTarget.dataset;if(!F)return;const{sortState:R,sortBy:N}=e;let A=PI.ASC;Qs(R)?A=JJ[R[F]]:A=JJ[N.order],(B=e.onColumnSort)==null||B.call(e,{column:y(F),key:F,order:A})}return{columns:t,columnsStyles:h,columnsTotalWidth:g,fixedColumnsOnLeft:i,fixedColumnsOnRight:l,hasFixedColumns:v,mainColumns:f,normalColumns:u,visibleColumns:r,getColumn:y,getColumnStyle:w,updateColumnWidth:C,onColumnSorted:S}}const kxt=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:i})=>{const l=et({scrollLeft:0,scrollTop:0});function u(C){var S,T,B;const{scrollTop:F}=C;(S=t.value)==null||S.scrollTo(C),(T=n.value)==null||T.scrollToTop(F),(B=r.value)==null||B.scrollToTop(F)}function f(C){l.value=C,u(C)}function v(C){l.value.scrollTop=C,u(L(l))}function h(C){var S,T;l.value.scrollLeft=C,(T=(S=t.value)==null?void 0:S.scrollTo)==null||T.call(S,L(l))}function g(C){var S;f(C),(S=e.onScroll)==null||S.call(e,C)}function y({scrollTop:C}){const{scrollTop:S}=L(l);C!==S&&v(C)}function w(C,S="auto"){var T;(T=t.value)==null||T.scrollToRow(C,S)}return $n(()=>L(l).scrollTop,(C,S)=>{C>S&&i()}),{scrollPos:l,scrollTo:f,scrollToLeft:h,scrollToTop:v,scrollToRow:w,onScroll:g,onVerticalScroll:y}},Oxt=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const i=va(),{emit:l}=i,u=al(!1),f=al(null),v=et(e.defaultExpandedRowKeys||[]),h=et(-1),g=al(null),y=et({}),w=et({}),C=al({}),S=al({}),T=al({}),B=Ne(()=>$o(e.estimatedRowHeight));function F(Y){var Q;(Q=e.onRowsRendered)==null||Q.call(e,Y),Y.rowCacheEnd>L(h)&&(h.value=Y.rowCacheEnd)}function R({hovered:Y,rowKey:Q}){f.value=Y?Q:null}function N({expanded:Y,rowData:Q,rowIndex:$,rowKey:te}){var V,K;const fe=[...L(v)],de=fe.indexOf(te);Y?de===-1&&fe.push(te):de>-1&&fe.splice(de,1),v.value=fe,l("update:expandedRowKeys",fe),(V=e.onRowExpand)==null||V.call(e,{expanded:Y,rowData:Q,rowIndex:$,rowKey:te}),(K=e.onExpandedRowsChange)==null||K.call(e,fe)}const A=Lv(()=>{var Y,Q,$,te;u.value=!0,y.value={...L(y),...L(w)},X(L(g),!1),w.value={},g.value=null,(Y=t.value)==null||Y.forceUpdate(),(Q=n.value)==null||Q.forceUpdate(),($=r.value)==null||$.forceUpdate(),(te=i.proxy)==null||te.$forceUpdate(),u.value=!1},0);function X(Y,Q=!1){!L(B)||[t,n,r].forEach($=>{const te=L($);te&&te.resetAfterRowIndex(Y,Q)})}function Z(Y,Q,$){const te=L(g);(te===null||te>$)&&(g.value=$),w.value[Y]=Q}function z({rowKey:Y,height:Q,rowIndex:$},te){te?te===uge.RIGHT?T.value[Y]=Q:C.value[Y]=Q:S.value[Y]=Q;const V=Math.max(...[C,T,S].map(K=>K.value[Y]||0));L(y)[Y]!==V&&(Z(Y,V,$),A())}return{hoveringRowKey:f,expandedRowKeys:v,lastRenderedRowIndex:h,isDynamic:B,isResetting:u,rowHeights:y,resetAfterIndex:X,onRowExpanded:N,onRowHovered:R,onRowsRendered:F,onRowHeightChange:z}},Mxt=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const i=et({}),l=Ne(()=>{const f={},{data:v,rowKey:h}=e,g=L(t);if(!g||!g.length)return v;const y=[],w=new Set;g.forEach(S=>w.add(S));let C=v.slice();for(C.forEach(S=>f[S[h]]=0);C.length>0;){const S=C.shift();y.push(S),w.has(S[h])&&Array.isArray(S.children)&&S.children.length>0&&(C=[...S.children,...C],S.children.forEach(T=>f[T[h]]=f[S[h]]+1))}return i.value=f,y}),u=Ne(()=>{const{data:f,expandColumnKey:v}=e;return v?L(l):f});return $n(u,(f,v)=>{f!==v&&(n.value=-1,r(0,!0))}),{data:u,depthMap:i}},Nxt=(e,t)=>e+t,Kz=e=>Oa(e)?e.reduce(Nxt,0):e,NC=(e,t,n={})=>Ji(e)?e(t):e!=null?e:n,B8=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Nc(e[t])}),e),cge=e=>cu(e)?t=>oo(e,t):e,Dxt=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:i})=>{const l=Ne(()=>{const{fixed:N,width:A,vScrollbarSize:X}=e,Z=A-X;return N?Math.max(Math.round(L(t)),Z):Z}),u=Ne(()=>L(l)+(e.fixed?e.vScrollbarSize:0)),f=Ne(()=>{const{height:N=0,maxHeight:A=0,footerHeight:X,hScrollbarSize:Z}=e;if(A>0){const z=L(S),Y=L(v),$=L(C)+z+Y+Z;return Math.min($,A-X)}return N-X}),v=Ne(()=>{const{rowHeight:N,estimatedRowHeight:A}=e,X=L(n);return $o(A)?X.length*A:X.length*N}),h=Ne(()=>{const{maxHeight:N}=e,A=L(f);if($o(N)&&N>0)return A;const X=L(v)+L(C)+L(S);return Math.min(A,X)}),g=N=>N.width,y=Ne(()=>Kz(L(r).map(g))),w=Ne(()=>Kz(L(i).map(g))),C=Ne(()=>Kz(e.headerHeight)),S=Ne(()=>{var N;return(((N=e.fixedData)==null?void 0:N.length)||0)*e.rowHeight}),T=Ne(()=>L(f)-L(C)-L(S)),B=Ne(()=>{const{style:N={},height:A,width:X}=e;return B8({...N,height:A,width:X})}),F=Ne(()=>B8({height:e.footerHeight})),R=Ne(()=>({top:Nc(L(C)),bottom:Nc(e.footerHeight),width:Nc(e.width)}));return{bodyWidth:l,fixedTableHeight:h,mainTableHeight:f,leftTableWidth:y,rightTableWidth:w,headerWidth:u,rowsHeight:v,windowHeight:T,footerHeight:F,emptyStyle:R,rootStyle:B,headerHeight:C}},Ixt=e=>{const t=et(),n=et(0),r=et(0);let i;return ia(()=>{i=Rv(t,([l])=>{const{width:u,height:f}=l.contentRect,{paddingLeft:v,paddingRight:h,paddingTop:g,paddingBottom:y}=getComputedStyle(l.target),w=Number.parseInt(v)||0,C=Number.parseInt(h)||0,S=Number.parseInt(g)||0,T=Number.parseInt(y)||0;n.value=u-w-C,r.value=f-S-T}).stop}),Bl(()=>{i==null||i()}),$n([n,r],([l,u])=>{var f;(f=e.onResize)==null||f.call(e,{width:l,height:u})}),{sizer:t,width:n,height:r}};function Rxt(e){const t=et(),n=et(),r=et(),{columns:i,columnsStyles:l,columnsTotalWidth:u,fixedColumnsOnLeft:f,fixedColumnsOnRight:v,hasFixedColumns:h,mainColumns:g,onColumnSorted:y}=Axt(e,Kl(e,"columns"),Kl(e,"fixed")),{scrollTo:w,scrollToLeft:C,scrollToTop:S,scrollToRow:T,onScroll:B,onVerticalScroll:F,scrollPos:R}=kxt(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Oe}),{expandedRowKeys:N,hoveringRowKey:A,lastRenderedRowIndex:X,isDynamic:Z,isResetting:z,rowHeights:Y,resetAfterIndex:Q,onRowExpanded:$,onRowHeightChange:te,onRowHovered:V,onRowsRendered:K}=Oxt(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:fe,depthMap:de}=Mxt(e,{expandedRowKeys:N,lastRenderedRowIndex:X,resetAfterIndex:Q}),{bodyWidth:ne,fixedTableHeight:le,mainTableHeight:_e,leftTableWidth:M,rightTableWidth:P,headerWidth:U,rowsHeight:j,windowHeight:ee,footerHeight:ye,emptyStyle:ie,rootStyle:he,headerHeight:re}=Dxt(e,{columnsTotalWidth:u,data:fe,fixedColumnsOnLeft:f,fixedColumnsOnRight:v}),be=al(!1),Ae=et(),Te=Ne(()=>{const De=L(fe).length===0;return Oa(e.fixedData)?e.fixedData.length===0&&De:De});function Ue(De){const{estimatedRowHeight:$e,rowHeight:rt,rowKey:ct}=e;return $e?L(Y)[L(fe)[De][ct]]||$e:rt}function Oe(){const{onEndReached:De}=e;if(!De)return;const{scrollTop:$e}=L(R),rt=L(j),ct=L(ee),lt=rt-($e+ct)+e.hScrollbarSize;L(X)>=0&&rt===$e+L(_e)-L(re)&&De(lt)}return $n(()=>e.expandedRowKeys,De=>N.value=De,{deep:!0}),{columns:i,containerRef:Ae,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:Z,isResetting:z,isScrolling:be,hoveringRowKey:A,hasFixedColumns:h,columnsStyles:l,columnsTotalWidth:u,data:fe,expandedRowKeys:N,depthMap:de,fixedColumnsOnLeft:f,fixedColumnsOnRight:v,mainColumns:g,bodyWidth:ne,emptyStyle:ie,rootStyle:he,headerWidth:U,footerHeight:ye,mainTableHeight:_e,fixedTableHeight:le,leftTableWidth:M,rightTableWidth:P,showEmpty:Te,getRowHeight:Ue,onColumnSorted:y,onRowHovered:V,onRowExpanded:$,onRowsRendered:K,onRowHeightChange:te,scrollTo:w,scrollToLeft:C,scrollToTop:S,scrollToRow:T,onScroll:B,onVerticalScroll:F}}const Ine=Symbol("tableV2"),fge=String,uR={type:gn(Array),required:!0},Rne={type:gn(Array)},dge={...Rne,required:!0},Lxt=String,pue={type:gn(Array),default:()=>uu([])},rC={type:Number,required:!0},vge={type:gn([String,Number,Symbol]),default:"id"},mue={type:gn(Object)},dC=hr({class:String,columns:uR,columnsStyles:{type:gn(Object),required:!0},depth:Number,expandColumnKey:Lxt,estimatedRowHeight:{...wC.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:gn(Function)},onRowHover:{type:gn(Function)},onRowHeightChange:{type:gn(Function)},rowData:{type:gn(Object),required:!0},rowEventHandlers:{type:gn(Object)},rowIndex:{type:Number,required:!0},rowKey:vge,style:{type:gn(Object)}}),LZ={type:Number,required:!0},Lne=hr({class:String,columns:uR,fixedHeaderData:{type:gn(Array)},headerData:{type:gn(Array),required:!0},headerHeight:{type:gn([Number,Array]),default:50},rowWidth:LZ,rowHeight:{type:Number,default:50},height:LZ,width:LZ}),Yz=hr({columns:uR,data:dge,fixedData:Rne,estimatedRowHeight:dC.estimatedRowHeight,width:rC,height:rC,headerWidth:rC,headerHeight:Lne.headerHeight,bodyWidth:rC,rowHeight:rC,cache:Pme.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:wC.scrollbarAlwaysOn,scrollbarStartGap:wC.scrollbarStartGap,scrollbarEndGap:wC.scrollbarEndGap,class:fge,style:mue,containerStyle:mue,getRowHeight:{type:gn(Function),required:!0},rowKey:dC.rowKey,onRowsRendered:{type:gn(Function)},onScroll:{type:gn(Function)}}),Bxt=hr({cache:Yz.cache,estimatedRowHeight:dC.estimatedRowHeight,rowKey:vge,headerClass:{type:gn([String,Function])},headerProps:{type:gn([Object,Function])},headerCellProps:{type:gn([Object,Function])},headerHeight:Lne.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:gn([String,Function])},rowProps:{type:gn([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:gn([Object,Function])},columns:uR,data:dge,dataGetter:{type:gn(Function)},fixedData:Rne,expandColumnKey:dC.expandColumnKey,expandedRowKeys:pue,defaultExpandedRowKeys:pue,class:fge,fixed:Boolean,style:{type:gn(Object)},width:rC,height:rC,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:wC.hScrollbarSize,vScrollbarSize:wC.vScrollbarSize,scrollbarAlwaysOn:zme.alwaysOn,sortBy:{type:gn(Object),default:()=>({})},sortState:{type:gn(Object),default:void 0},onColumnSort:{type:gn(Function)},onExpandedRowsChange:{type:gn(Function)},onEndReached:{type:gn(Function)},onRowExpand:dC.onRowExpand,onScroll:Yz.onScroll,onRowsRendered:Yz.onRowsRendered,rowEventHandlers:dC.rowEventHandlers}),Bne=(e,{slots:t})=>{var n;const{cellData:r,style:i}=e,l=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return gt("div",{class:e.class,title:l,style:i},[t.default?t.default(e):l])};Bne.displayName="ElTableV2Cell";Bne.inheritAttrs=!1;const Pne=(e,{slots:t})=>{var n,r;return t.default?t.default(e):gt("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};Pne.displayName="ElTableV2HeaderCell";Pne.inheritAttrs=!1;const Pxt=hr({class:String,columns:uR,columnsStyles:{type:gn(Object),required:!0},headerIndex:Number,style:{type:gn(Object)}}
70),Fxt=Zt({name:"ElTableV2HeaderRow",props:Pxt,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:i,style:l}=e;let u=n.map((f,v)=>t.cell({columns:n,column:f,columnIndex:v,headerIndex:i,style:r[f.key]}));return t.header&&(u=t.header({cells:u.map(f=>Oa(f)&&f.length===1?f[0]:f),columns:n,headerIndex:i})),gt("div",{class:e.class,style:l,role:"row"},[u])}}}),$xt="ElTableV2Header",zxt=Zt({name:$xt,props:Lne,setup(e,{slots:t,expose:n}){const r=Vn("table-v2"),i=et(),l=Ne(()=>B8({width:e.width,height:e.height})),u=Ne(()=>B8({width:e.rowWidth,height:e.height})),f=Ne(()=>qA(L(e.headerHeight))),v=y=>{const w=L(i);Gr(()=>{w!=null&&w.scroll&&w.scroll({left:y})})},h=()=>{const y=r.e("fixed-header-row"),{columns:w,fixedHeaderData:C,rowHeight:S}=e;return C==null?void 0:C.map((T,B)=>{var F;const R=B8({height:S,width:"100%"});return(F=t.fixed)==null?void 0:F.call(t,{class:y,columns:w,rowData:T,rowIndex:-(B+1),style:R})})},g=()=>{const y=r.e("dynamic-header-row"),{columns:w}=e;return L(f).map((C,S)=>{var T;const B=B8({width:"100%",height:C});return(T=t.dynamic)==null?void 0:T.call(t,{class:y,columns:w,headerIndex:S,style:B})})};return n({scrollToLeft:v}),()=>{if(!(e.height<=0))return gt("div",{ref:i,class:e.class,style:L(l),role:"rowgroup"},[gt("div",{style:L(u),class:r.e("header")},[g(),h()])])}}}),Hxt=e=>{const{isScrolling:t}=jr(Ine),n=et(!1),r=et(),i=Ne(()=>$o(e.estimatedRowHeight)&&e.rowIndex>=0),l=(v=!1)=>{const h=L(r);if(!h)return;const{columns:g,onRowHeightChange:y,rowKey:w,rowIndex:C,style:S}=e,{height:T}=h.getBoundingClientRect();n.value=!0,Gr(()=>{if(v||T!==Number.parseInt(S.height)){const B=g[0],F=(B==null?void 0:B.placeholderSign)===$I;y==null||y({rowKey:w,height:T,rowIndex:C},B&&!F&&B.fixed)}})},u=Ne(()=>{const{rowData:v,rowIndex:h,rowKey:g,onRowHover:y}=e,w=e.rowEventHandlers||{},C={};return Object.entries(w).forEach(([S,T])=>{Ji(T)&&(C[S]=B=>{T({event:B,rowData:v,rowIndex:h,rowKey:g})})}),y&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:S,hovered:T})=>{const B=C[S];C[S]=F=>{y({event:F,hovered:T,rowData:v,rowIndex:h,rowKey:g}),B==null||B(F)}}),C}),f=v=>{const{onRowExpand:h,rowData:g,rowIndex:y,rowKey:w}=e;h==null||h({expanded:v,rowData:g,rowIndex:y,rowKey:w})};return ia(()=>{L(i)&&l(!0)}),{isScrolling:t,measurable:i,measured:n,rowRef:r,eventHandlers:u,onExpand:f}},Vxt="ElTableV2TableRow",Uxt=Zt({name:Vxt,props:dC,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:i,isScrolling:l,measurable:u,measured:f,rowRef:v,onExpand:h}=Hxt(e);return t({onExpand:h}),()=>{const{columns:g,columnsStyles:y,expandColumnKey:w,depth:C,rowData:S,rowIndex:T,style:B}=e;let F=g.map((R,N)=>{const A=Oa(S.children)&&S.children.length>0&&R.key===w;return n.cell({column:R,columns:g,columnIndex:N,depth:C,style:y[R.key],rowData:S,rowIndex:T,isScrolling:L(l),expandIconProps:A?{rowData:S,rowIndex:T,onExpand:h}:void 0})});if(n.row&&(F=n.row({cells:F.map(R=>Oa(R)&&R.length===1?R[0]:R),style:B,columns:g,depth:C,rowData:S,rowIndex:T,isScrolling:L(l)})),L(u)){const{height:R,...N}=B||{},A=L(f);return gt("div",Pa({ref:v,class:e.class,style:A?B:N,role:"row"},r,L(i)),[F])}return gt("div",Pa(r,{ref:v,class:e.class,style:B,role:"row"},L(i)),[F])}}}),jxt=e=>{const{sortOrder:t}=e;return gt(Zr,{size:14,class:e.class},{default:()=>[t===PI.ASC?gt(Ghe,null,null):gt(Whe,null,null)]})},Wxt=e=>{const{expanded:t,expandable:n,onExpand:r,style:i,size:l}=e,u={onClick:n?()=>r(!t):void 0,class:e.class};return gt(Zr,Pa(u,{size:l,style:i}),{default:()=>[gt(Nv,null,null)]})},Gxt="ElTableV2Grid",Kxt=e=>{const t=et(),n=et(),r=Ne(()=>{const{data:T,rowHeight:B,estimatedRowHeight:F}=e;if(!F)return T.length*B}),i=Ne(()=>{const{fixedData:T,rowHeight:B}=e;return((T==null?void 0:T.length)||0)*B}),l=Ne(()=>Kz(e.headerHeight)),u=Ne(()=>{const{height:T}=e;return Math.max(0,T-L(l)-L(i))}),f=Ne(()=>L(l)+L(i)>0),v=({data:T,rowIndex:B})=>T[B][e.rowKey];function h({rowCacheStart:T,rowCacheEnd:B,rowVisibleStart:F,rowVisibleEnd:R}){var N;(N=e.onRowsRendered)==null||N.call(e,{rowCacheStart:T,rowCacheEnd:B,rowVisibleStart:F,rowVisibleEnd:R})}function g(T,B){var F;(F=n.value)==null||F.resetAfterRowIndex(T,B)}function y(T,B){const F=L(t),R=L(n);!F||!R||(Qs(T)?(F.scrollToLeft(T.scrollLeft),R.scrollTo(T)):(F.scrollToLeft(T),R.scrollTo({scrollLeft:T,scrollTop:B})))}function w(T){var B;(B=L(n))==null||B.scrollTo({scrollTop:T})}function C(T,B){var F;(F=L(n))==null||F.scrollToItem(T,1,B)}function S(){var T,B;(T=L(n))==null||T.$forceUpdate(),(B=L(t))==null||B.$forceUpdate()}return{bodyRef:n,forceUpdate:S,fixedRowHeight:i,gridHeight:u,hasHeader:f,headerHeight:l,headerRef:t,totalHeight:r,itemKey:v,onItemRendered:h,resetAfterRowIndex:g,scrollTo:y,scrollToTop:w,scrollToRow:C}},Fne=Zt({name:Gxt,props:Yz,setup(e,{slots:t,expose:n}){const{ns:r}=jr(Ine),{bodyRef:i,fixedRowHeight:l,gridHeight:u,hasHeader:f,headerRef:v,headerHeight:h,totalHeight:g,forceUpdate:y,itemKey:w,onItemRendered:C,resetAfterRowIndex:S,scrollTo:T,scrollToTop:B,scrollToRow:F}=Kxt(e);n({forceUpdate:y,totalHeight:g,scrollTo:T,scrollToTop:B,scrollToRow:F,resetAfterRowIndex:S});const R=()=>e.bodyWidth;return()=>{const{cache:N,columns:A,data:X,fixedData:Z,useIsScrolling:z,scrollbarAlwaysOn:Y,scrollbarEndGap:Q,scrollbarStartGap:$,style:te,rowHeight:V,bodyWidth:K,estimatedRowHeight:fe,headerWidth:de,height:ne,width:le,getRowHeight:_e,onScroll:M}=e,P=$o(fe),U=P?Ewt:_wt,j=L(h);return gt("div",{role:"table",class:[r.e("table"),e.class],style:te},[gt(U,{ref:i,data:X,useIsScrolling:z,itemKey:w,columnCache:0,columnWidth:P?R:K,totalColumn:1,totalRow:X.length,rowCache:N,rowHeight:P?_e:V,width:le,height:L(u),class:r.e("body"),role:"rowgroup",scrollbarStartGap:$,scrollbarEndGap:Q,scrollbarAlwaysOn:Y,onScroll:M,onItemRendered:C,perfMode:!1},{default:ee=>{var ye;const ie=X[ee.rowIndex];return(ye=t.row)==null?void 0:ye.call(t,{...ee,columns:A,rowData:ie})}}),L(f)&>(zxt,{ref:v,class:r.e("header-wrapper"),columns:A,headerData:X,headerHeight:e.headerHeight,fixedHeaderData:Z,rowWidth:de,rowHeight:V,width:le,height:Math.min(j+L(l),ne)},{dynamic:t.header,fixed:t.row})])}}});function Yxt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const qxt=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return gt(Fne,Pa({ref:n},r),Yxt(t)?t:{default:()=>[t]})};function Xxt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const Zxt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return gt(Fne,Pa({ref:n},r),Xxt(t)?t:{default:()=>[t]})};function Qxt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const Jxt=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return gt(Fne,Pa({ref:n},r),Qxt(t)?t:{default:()=>[t]})};function eEt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const tEt=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:i,expandColumnKey:l,expandedRowKeys:u,estimatedRowHeight:f,hasFixedColumns:v,hoveringRowKey:h,rowData:g,rowIndex:y,style:w,isScrolling:C,rowProps:S,rowClass:T,rowKey:B,rowEventHandlers:F,ns:R,onRowHovered:N,onRowExpanded:A}=e,X=NC(T,{columns:n,rowData:g,rowIndex:y},""),Z=NC(S,{columns:n,rowData:g,rowIndex:y}),z=g[B],Y=i[z]||0,Q=Boolean(l),$=y<0,te=[R.e("row"),X,{[R.e(`row-depth-${Y}`)]:Q&&y>=0,[R.is("expanded")]:Q&&u.includes(z),[R.is("hovered")]:!C&&z===h,[R.is("fixed")]:!Y&&$,[R.is("customized")]:Boolean(t.row)}],V=v?N:void 0,K={...Z,columns:n,columnsStyles:r,class:te,depth:Y,expandColumnKey:l,estimatedRowHeight:$?void 0:f,isScrolling:C,rowIndex:y,rowData:g,rowKey:z,rowEventHandlers:F,style:w};return gt(Uxt,Pa(K,{onRowHover:V,onRowExpand:A}),eEt(t)?t:{default:()=>[t]})},eee=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:i,isScrolling:l,rowData:u,rowIndex:f,style:v,expandedRowKeys:h,ns:g,cellProps:y,expandColumnKey:w,indentSize:C,iconSize:S,rowKey:T},{slots:B})=>{const F=B8(v);if(t.placeholderSign===$I)return gt("div",{class:g.em("row-cell","placeholder"),style:F},null);const{cellRenderer:R,dataKey:N,dataGetter:A}=t,Z=cge(R)||B.default||(ne=>gt(Bne,ne,null)),z=Ji(A)?A({columns:e,column:t,columnIndex:n,rowData:u,rowIndex:f}):lu(u,N!=null?N:""),Y=NC(y,{cellData:z,columns:e,column:t,columnIndex:n,rowIndex:f,rowData:u}),Q={class:g.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:z,isScrolling:l,rowData:u,rowIndex:f},$=Z(Q),te=[g.e("row-cell"),t.class,t.align===FI.CENTER&&g.is("align-center"),t.align===FI.RIGHT&&g.is("align-right")],V=f>=0&&w&&t.key===w,K=f>=0&&h.includes(u[T]);let fe;const de=`margin-inline-start: ${r*C}px;`;return V&&(Qs(i)?fe=gt(Wxt,Pa(i,{class:[g.e("expand-icon"),g.is("expanded",K)],size:S,expanded:K,style:de,expandable:!0}),null):fe=gt("div",{style:[de,`width: ${S}px; height: ${S}px;`].join(" ")},null)),gt("div",Pa({class:te,style:F},Y,{role:"cell"}),[fe,$])};eee.inheritAttrs=!1;function nEt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const rEt=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:i,headerProps:l,ns:u},{slots:f})=>{const v={columns:e,headerIndex:n},h=[u.e("header-row"),NC(i,v,""),{[u.is("customized")]:Boolean(f.header)}],g={...NC(l,v),columnsStyles:t,class:h,columns:e,headerIndex:n,style:r};return gt(Fxt,g,nEt(f)?f:{default:()=>[f]})},gue=(e,{slots:t})=>{const{column:n,ns:r,style:i,onColumnSorted:l}=e,u=B8(i);if(n.placeholderSign===$I)return gt("div",{class:r.em("header-row-cell","placeholder"),style:u},null);const{headerCellRenderer:f,headerClass:v,sortable:h}=n,g={...e,class:r.e("header-cell-text")},w=(cge(f)||t.default||(A=>gt(Pne,A,null)))(g),{sortBy:C,sortState:S,headerCellProps:T}=e;let B,F;if(S){const A=S[n.key];B=Boolean(JJ[A]),F=B?A:PI.ASC}else B=n.key===C.key,F=B?C.order:PI.ASC;const R=[r.e("header-cell"),NC(v,e,""),n.align===FI.CENTER&&r.is("align-center"),n.align===FI.RIGHT&&r.is("align-right"),h&&r.is("sortable")],N={...NC(T,e),onClick:n.sortable?l:void 0,class:R,style:u,["data-key"]:n.key};return gt("div",Pa(N,{role:"columnheader"}),[w,h&>(jxt,{class:[r.e("sort-icon"),B&&r.is("sorting")],sortOrder:F},null)])},hge=(e,{slots:t})=>{var n;return gt("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};hge.displayName="ElTableV2Footer";const pge=(e,{slots:t})=>gt("div",{class:e.class,style:e.style},[t.default?t.default():gt(Cme,null,null)]);pge.displayName="ElTableV2Empty";const mge=(e,{slots:t})=>{var n;return gt("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};mge.displayName="ElTableV2Overlay";function wD(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cu(e)}const oEt="ElTableV2",aEt=Zt({name:oEt,props:Bxt,setup(e,{slots:t,expose:n}){const r=Vn("table-v2"),{columnsStyles:i,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,mainColumns:f,mainTableHeight:v,fixedTableHeight:h,leftTableWidth:g,rightTableWidth:y,data:w,depthMap:C,expandedRowKeys:S,hasFixedColumns:T,hoveringRowKey:B,mainTableRef:F,leftTableRef:R,rightTableRef:N,isDynamic:A,isResetting:X,isScrolling:Z,bodyWidth:z,emptyStyle:Y,rootStyle:Q,headerWidth:$,footerHeight:te,showEmpty:V,scrollTo:K,scrollToLeft:fe,scrollToTop:de,scrollToRow:ne,getRowHeight:le,onColumnSorted:_e,onRowHeightChange:M,onRowHovered:P,onRowExpanded:U,onRowsRendered:j,onScroll:ee,onVerticalScroll:ye}=Rxt(e);return n({scrollTo:K,scrollToLeft:fe,scrollToTop:de,scrollToRow:ne}
70),$a(Ine,{ns:r,isResetting:X,hoveringRowKey:B,isScrolling:Z}),()=>{const{cache:ie,cellProps:he,estimatedRowHeight:re,expandColumnKey:be,fixedData:Ae,headerHeight:Te,headerClass:Ue,headerProps:Oe,headerCellProps:De,sortBy:$e,sortState:rt,rowHeight:ct,rowClass:lt,rowEventHandlers:ot,rowKey:Fe,rowProps:We,scrollbarAlwaysOn:Ye,indentSize:Ke,iconSize:mt,useIsScrolling:Ct,vScrollbarSize:bt,width:tn}=e,Ft=L(w),It={cache:ie,class:r.e("main"),columns:L(f),data:Ft,fixedData:Ae,estimatedRowHeight:re,bodyWidth:L(z),headerHeight:Te,headerWidth:L($),height:L(v),mainTableRef:F,rowKey:Fe,rowHeight:ct,scrollbarAlwaysOn:Ye,scrollbarStartGap:2,scrollbarEndGap:bt,useIsScrolling:Ct,width:tn,getRowHeight:le,onRowsRendered:j,onScroll:ee},Et=L(g),At=L(h),vt={cache:ie,class:r.e("left"),columns:L(l),data:Ft,estimatedRowHeight:re,leftTableRef:R,rowHeight:ct,bodyWidth:Et,headerWidth:Et,headerHeight:Te,height:At,rowKey:Fe,scrollbarAlwaysOn:Ye,scrollbarStartGap:2,scrollbarEndGap:bt,useIsScrolling:Ct,width:Et,getRowHeight:le,onScroll:ye},Wt=L(y)+bt,xt={cache:ie,class:r.e("right"),columns:L(u),data:Ft,estimatedRowHeight:re,rightTableRef:N,rowHeight:ct,bodyWidth:Wt,headerWidth:Wt,headerHeight:Te,height:At,rowKey:Fe,scrollbarAlwaysOn:Ye,scrollbarStartGap:2,scrollbarEndGap:bt,width:Wt,style:`--${L(r.namespace)}-table-scrollbar-size: ${bt}px`,useIsScrolling:Ct,getRowHeight:le,onScroll:ye},at=L(i),_t={ns:r,depthMap:L(C),columnsStyles:at,expandColumnKey:be,expandedRowKeys:L(S),estimatedRowHeight:re,hasFixedColumns:L(T),hoveringRowKey:L(B),rowProps:We,rowClass:lt,rowKey:Fe,rowEventHandlers:ot,onRowHovered:P,onRowExpanded:U,onRowHeightChange:M},en={cellProps:he,expandColumnKey:be,indentSize:Ke,iconSize:mt,rowKey:Fe,expandedRowKeys:L(S),ns:r},An={ns:r,headerClass:Ue,headerProps:Oe,columnsStyles:at},Vt={ns:r,sortBy:$e,sortState:rt,headerCellProps:De,onColumnSorted:_e},_n={row:En=>gt(tEt,Pa(En,_t),{row:t.row,cell:zn=>{let nn;return t.cell?gt(eee,Pa(zn,en,{style:at[zn.column.key]}),wD(nn=t.cell(zn))?nn:{default:()=>[nn]}):gt(eee,Pa(zn,en,{style:at[zn.column.key]}),null)}}),header:En=>gt(rEt,Pa(En,An),{header:t.header,cell:zn=>{let nn;return t["header-cell"]?gt(gue,Pa(zn,Vt,{style:at[zn.column.key]}),wD(nn=t["header-cell"](zn))?nn:{default:()=>[nn]}):gt(gue,Pa(zn,Vt,{style:at[zn.column.key]}),null)}})},Mt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:L(A)}],pn={class:r.e("footer"),style:L(te)};return gt("div",{class:Mt,style:L(Q)},[gt(qxt,It,wD(_n)?_n:{default:()=>[_n]}),gt(Zxt,vt,wD(_n)?_n:{default:()=>[_n]}),gt(Jxt,xt,wD(_n)?_n:{default:()=>[_n]}),t.footer&>(hge,pn,{default:t.footer}),L(V)&>(pge,{class:r.e("empty"),style:L(Y)},{default:t.empty}),t.overlay&>(mge,{class:r.e("overlay")},{default:t.overlay})])}}}),iEt=hr({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:gn(Function)}}),sEt=Zt({name:"ElAutoResizer",props:iEt,setup(e,{slots:t}){const n=Vn("auto-resizer"),{height:r,width:i,sizer:l}=Ixt(e),u={width:"100%",height:"100%"};return()=>{var f;return gt("div",{ref:l,class:n.b(),style:u},[(f=t.default)==null?void 0:f.call(t,{height:r.value,width:i.value})])}}}),lEt=Ca(aEt),uEt=Ca(sEt),WV=Symbol("tabsRootContextKey"),cEt=hr({tabs:{type:gn(Array),default:()=>uu([])}}),gge="ElTabBar",fEt=Zt({name:gge}),dEt=Zt({...fEt,props:cEt,setup(e,{expose:t}){const n=e,r=va(),i=jr(WV);i||Gf(gge,"<el-tabs><el-tab-bar /></el-tabs>");const l=Vn("tabs"),u=et(),f=et(),v=()=>{let g=0,y=0;const w=["top","bottom"].includes(i.props.tabPosition)?"width":"height",C=w==="width"?"x":"y",S=C==="x"?"left":"top";return n.tabs.every(T=>{var B,F;const R=(F=(B=r.parent)==null?void 0:B.refs)==null?void 0:F[`tab-${T.uid}`];if(!R)return!1;if(!T.active)return!0;g=R[`offset${nb(S)}`],y=R[`client${nb(w)}`];const N=window.getComputedStyle(R);return w==="width"&&(n.tabs.length>1&&(y-=Number.parseFloat(N.paddingLeft)+Number.parseFloat(N.paddingRight)),g+=Number.parseFloat(N.paddingLeft)),!1}),{[w]:`${y}px`,transform:`translate${nb(C)}(${g}px)`}},h=()=>f.value=v();return $n(()=>n.tabs,async()=>{await Gr(),h()},{immediate:!0}),Rv(u,()=>h()),t({ref:u,update:h}),(g,y)=>(Ce(),Ie("div",{ref_key:"barRef",ref:u,class:He([L(l).e("active-bar"),L(l).is(L(i).props.tabPosition)]),style:Pr(f.value)},null,6))}});var vEt=vr(dEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const hEt=hr({panes:{type:gn(Array),default:()=>uu([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),pEt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>
70t instanceof Event},yue="ElTabNav",mEt=Zt({name:yue,props:hEt,emits:pEt,setup(e,{expose:t,emit:n}){const r=va(),i=jr(WV);i||Gf(yue,"<el-tabs><tab-nav /></el-tabs>");const l=Vn("tabs"),u=CAe(),f=DAe(),v=et(),h=et(),g=et(),y=et(),w=et(!1),C=et(0),S=et(!1),T=et(!0),B=Ne(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),F=Ne(()=>({transform:`translate${B.value==="width"?"X":"Y"}(-${C.value}px)`})),R=()=>{if(!v.value)return;const Q=v.value[`offset${nb(B.value)}`],$=C.value;if(!$)return;const te=$>Q?$-Q:0;C.value=te},N=()=>{if(!v.value||!h.value)return;const Q=h.value[`offset${nb(B.value)}`],$=v.value[`offset${nb(B.value)}`],te=C.value;if(Q-te<=$)return;const V=Q-te>$*2?te+$:Q-$;C.value=V},A=async()=>{const Q=h.value;if(!w.value||!g.value||!v.value||!Q)return;await Gr();const $=g.value.querySelector(".is-active");if(!$)return;const te=v.value,V=["top","bottom"].includes(i.props.tabPosition),K=$.getBoundingClientRect(),fe=te.getBoundingClientRect(),de=V?Q.offsetWidth-fe.width:Q.offsetHeight-fe.height,ne=C.value;let le=ne;V?(K.left<fe.left&&(le=ne-(fe.left-K.left)),K.right>fe.right&&(le=ne+K.right-fe.right)):(K.top<fe.top&&(le=ne-(fe.top-K.top)),K.bottom>fe.bottom&&(le=ne+(K.bottom-fe.bottom))),le=Math.max(le,0),C.value=Math.min(le,de)},X=()=>{var Q;if(!h.value||!v.value)return;e.stretch&&((Q=y.value)==null||Q.update());const $=h.value[`offset${nb(B.value)}`],te=v.value[`offset${nb(B.value)}`],V=C.value;te<$?(w.value=w.value||{},w.value.prev=V,w.value.next=V+te<$,$-V<te&&(C.value=$-te)):(w.value=!1,V>0&&(C.value=0))},Z=Q=>{const $=Q.code,{up:te,down:V,left:K,right:fe}=ao;if(![te,V,K,fe].includes($))return;const de=Array.from(Q.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),ne=de.indexOf(Q.target);let le;$===K||$===te?ne===0?le=de.length-1:le=ne-1:ne<de.length-1?le=ne+1:le=0,de[le].focus({preventScroll:!0}),de[le].click(),z()},z=()=>{T.value&&(S.value=!0)},Y=()=>S.value=!1;return $n(u,Q=>{Q==="hidden"?T.value=!1:Q==="visible"&&setTimeout(()=>T.value=!0,50)}),$n(f,Q=>{Q?setTimeout(()=>T.value=!0,50):T.value=!1}),Rv(g,X),ia(()=>setTimeout(()=>A(),0)),S3(()=>X()),t({scrollToActiveTab:A,removeFocus:Y}),$n(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const Q=w.value?[gt("span",{class:[l.e("nav-prev"),l.is("disabled",!w.value.prev)],onClick:R},[gt(Zr,null,{default:()=>[gt(w3,null,null)]})]),gt("span",{class:[l.e("nav-next"),l.is("disabled",!w.value.next)],onClick:N},[gt(Zr,null,{default:()=>[gt(Nv,null,null)]})])]:null,$=e.panes.map((te,V)=>{var K,fe,de,ne;const le=te.uid,_e=te.props.disabled,M=(fe=(K=te.props.name)!=null?K:te.index)!=null?fe:`${V}`,P=!_e&&(te.isClosable||e.editable);te.index=`${V}`;const U=P?gt(Zr,{class:"is-icon-close",onClick:ye=>n("tabRemove",te,ye)},{default:()=>[gt(Dm,null,null)]}):null,j=((ne=(de=te.slots).label)==null?void 0:ne.call(de))||te.props.label,ee=!_e&&te.active?0:-1;return gt("div",{ref:`tab-${le}`,class:[l.e("item"),l.is(i.props.tabPosition),l.is("active",te.active),l.is("disabled",_e),l.is("closable",P),l.is("focus",S.value)],id:`tab-${M}`,key:`tab-${le}`,"aria-controls":`pane-${M}`,role:"tab","aria-selected":te.active,tabindex:ee,onFocus:()=>z(),onBlur:()=>Y(),onClick:ye=>{Y(),n("tabClick",te,M,ye)},onKeydown:ye=>{P&&(ye.code===ao.delete||ye.code===ao.backspace)&&n("tabRemove",te,ye)}},[j,U])});return gt("div",{ref:g,class:[l.e("nav-wrap"),l.is("scrollable",!!w.value),l.is(i.props.tabPosition)]},[Q,gt("div",{class:l.e("nav-scroll"),ref:v},[gt("div",{class:[l.e("nav"),l.is(i.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:h,style:F.value,role:"tablist",onKeydown:Z},[e.type?null:gt(vEt,{ref:y,tabs:[...e.panes]},null),$])])])}}}),gEt=hr({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:gn(Function),default:()=>!0},stretch:Boolean}),BZ=e=>Ga(e)||$o(e),yEt={[Ma]:e=>BZ(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>BZ(e),edit:(e,t)=>
70["remove","add"].includes(t),tabRemove:e=>BZ(e),tabAdd:()=>!0};var bEt=Zt({name:"ElTabs",props:gEt,emits:yEt,setup(e,{emit:t,slots:n,expose:r}){var i,l;const u=Vn("tabs"),{children:f,addChild:v,removeChild:h}=ine(va(),"ElTabPane"),g=et(),y=et((l=(i=e.modelValue)!=null?i:e.activeName)!=null?l:"0"),w=F=>{y.value=F,t(Ma,F),t("tabChange",F)},C=async F=>{var R,N,A;if(!(y.value===F||Vd(F)))try{await((R=e.beforeLeave)==null?void 0:R.call(e,F,y.value))!==!1&&(w(F),(A=(N=g.value)==null?void 0:N.removeFocus)==null||A.call(N))}catch{}},S=(F,R,N)=>{F.props.disabled||(C(R),t("tabClick",F,N))},T=(F,R)=>{F.props.disabled||Vd(F.props.name)||(R.stopPropagation(),t("edit",F.props.name,"remove"),t("tabRemove",F.props.name))},B=()=>{t("edit",void 0,"add"),t("tabAdd")};return cb({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},Ne(()=>!!e.activeName)),$n(()=>e.activeName,F=>C(F)),$n(()=>e.modelValue,F=>C(F)),$n(y,async()=>{var F;await Gr(),(F=g.value)==null||F.scrollToActiveTab()}),$a(WV,{props:e,currentName:y,registerPane:v,unregisterPane:h}),r({currentName:y}),()=>{const F=e.editable||e.addable?gt("span",{class:u.e("new-tab"),tabindex:"0",onClick:B,onKeydown:A=>{A.code===ao.enter&&B()}},[gt(Zr,{class:u.is("icon-plus")},{default:()=>[gt(Fte,null,null)]})]):null,R=gt("div",{class:[u.e("header"),u.is(e.tabPosition)]},[F,gt(mEt,{ref:g,currentName:y.value,editable:e.editable,type:e.type,panes:f.value,stretch:e.stretch,onTabClick:S,onTabRemove:T},null)]),N=gt("div",{class:u.e("content")},[Fn(n,"default")]);return gt("div",{class:[u.b(),u.m(e.tabPosition),{[u.m("card")]:e.type==="card",[u.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[R,N]:[N,R]])}}});const _Et=hr({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),wEt=["id","aria-hidden","aria-labelledby"],yge="ElTabPane",CEt=Zt({name:yge}),xEt=Zt({...CEt,props:_Et,setup(e){const t=e,n=va(),r=g1(),i=jr(WV);i||Gf(yge,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=Vn("tab-pane"),u=et(),f=Ne(()=>t.closable||i.props.closable),v=Jie(()=>{var C;return i.currentName.value===((C=t.name)!=null?C:u.value)}),h=et(v.value),g=Ne(()=>{var C;return(C=t.name)!=null?C:u.value}),y=Jie(()=>!t.lazy||h.value||v.value);$n(v,C=>{C&&(h.value=!0)});const w=gi({uid:n.uid,slots:r,props:t,paneName:g,active:v,index:u,isClosable:f});return ia(()=>{i.registerPane(w)}),T3(()=>{i.unregisterPane(w.uid)}),(C,S)=>L(y)?ea((Ce(),Ie("div",{key:0,id:`pane-${L(g)}`,class:He(L(l).b()),role:"tabpanel","aria-hidden":!L(v),"aria-labelledby":`tab-${L(g)}`},[Fn(C.$slots,"default")],10,wEt)),[[Ti,L(v)]]):on("v-if",!0)}});var bge=vr(xEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const EEt=Ca(bEt,{TabPane:bge}),SEt=qu(bge),TEt=hr({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:gb,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),AEt=Zt({name:"ElText"}),kEt=Zt({...AEt,props:TEt,setup(e){const t=e,n=Kf(),r=Vn("text"),i=Ne(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(l,u)=>(Ce(),yn(Fa(l.tag),{class:He(L(i))},{default:Dt(()=>[Fn(l.$slots,"default")]),_:3},8,["class"]))}});var OEt=vr(kEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const MEt=Ca(OEt),NEt=hr({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:ev,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:gn([String,Object]),default:()=>Pte},clearIcon:{type:gn([String,Object]),default:()=>M3}}),v3=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),i=e.toUpperCase();return i.includes("AM")&&n===12?n=0:i.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},PZ=(e,t)=>{const n=v3(e);
70if(!n)return-1;const r=v3(t);if(!r)return-1;const i=n.minutes+n.hours*60,l=r.minutes+r.hours*60;return i===l?0:i>l?1:-1},bue=e=>`${e}`.padStart(2,"0"),cA=e=>`${bue(e.hours)}:${bue(e.minutes)}`,DEt=(e,t)=>{const n=v3(e);if(!n)return"";const r=v3(t);if(!r)return"";const i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,cA(i)},IEt=Zt({name:"ElTimeSelect"}),REt=Zt({...IEt,props:NEt,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;wa.extend(dne);const{Option:r}=MC,i=Vn("input"),l=et(),u=w0(),f=Ne(()=>n.modelValue),v=Ne(()=>{const B=v3(n.start);return B?cA(B):null}),h=Ne(()=>{const B=v3(n.end);return B?cA(B):null}),g=Ne(()=>{const B=v3(n.step);return B?cA(B):null}),y=Ne(()=>{const B=v3(n.minTime||"");return B?cA(B):null}),w=Ne(()=>{const B=v3(n.maxTime||"");return B?cA(B):null}),C=Ne(()=>{const B=[];if(n.start&&n.end&&n.step){let F=v.value,R;for(;F&&h.value&&PZ(F,h.value)<=0;)R=wa(F,"HH:mm").format(n.format),B.push({value:R,disabled:PZ(F,y.value||"-1:-1")<=0||PZ(F,w.value||"100:100")>=0}),F=DEt(F,g.value)}return B});return t({blur:()=>{var B,F;(F=(B=l.value)==null?void 0:B.blur)==null||F.call(B)},focus:()=>{var B,F;(F=(B=l.value)==null?void 0:B.focus)==null||F.call(B)}}),(B,F)=>(Ce(),yn(L(MC),{ref_key:"select",ref:l,"model-value":L(f),disabled:L(u),clearable:B.clearable,"clear-icon":B.clearIcon,size:B.size,effect:B.effect,placeholder:B.placeholder,"default-first-option":"",filterable:B.editable,"onUpdate:modelValue":F[0]||(F[0]=R=>B.$emit("update:modelValue",R)),onChange:F[1]||(F[1]=R=>B.$emit("change",R)),onBlur:F[2]||(F[2]=R=>B.$emit("blur",R)),onFocus:F[3]||(F[3]=R=>B.$emit("focus",R))},{prefix:Dt(()=>[B.prefixIcon?(Ce(),yn(L(Zr),{key:0,class:He(L(i).e("prefix-icon"))},{default:Dt(()=>[(Ce(),yn(Fa(B.prefixIcon)))]),_:1},8,["class"])):on("v-if",!0)]),default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(L(C),R=>(Ce(),yn(L(r),{key:R.value,label:R.value,value:R.value,disabled:R.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var qz=vr(REt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);qz.install=e=>{e.component(qz.name,qz)};const LEt=qz,BEt=LEt,PEt=Zt({name:"ElTimeline",setup(e,{slots:t}){const n=Vn("timeline");return $a("timeline",t),()=>oo("ul",{class:[n.b()]},[Fn(t,"default")])}}),FEt=hr({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:xl},hollow:{type:Boolean,default:!1}}),$Et=Zt({name:"ElTimelineItem"}),zEt=Zt({...$Et,props:FEt,setup(e){const t=e,n=Vn("timeline-item"),r=Ne(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(i,l)=>(Ce(),Ie("li",{class:He([L(n).b(),{[L(n).e("center")]:i.center}])},[ce("div",{class:He(L(n).e("tail"))},null,2),i.$slots.dot?on("v-if",!0):(Ce(),Ie("div",{key:0,class:He(L(r)),style:Pr({backgroundColor:i.color})},[i.icon?(Ce(),yn(L(Zr),{key:0,class:He(L(n).e("icon"))},{default:Dt(()=>[(Ce(),yn(Fa(i.icon)))]),_:1},8,["class"])):on("v-if",!0)],6)),i.$slots.dot?(Ce(),Ie("div",{key:1,class:He(L(n).e("dot"))},[Fn(i.$slots,"dot")],2)):on("v-if",!0),ce("div",{class:He(L(n).e("wrapper"))},[!i.hideTimestamp&&i.placement==="top"?(Ce(),Ie("div",{key:0,class:He([L(n).e("timestamp"),L(n).is("top")])},Zn(i.timestamp),3)):on("v-if",!0),ce("div",{class:He(L(n).e("content"))},[Fn(i.$slots,"default")],2),!i.hideTimestamp&&i.placement==="bottom"?(Ce(),Ie("div",{key:1,class:He([L(n).e("timestamp"),L(n).is("bottom")])},Zn(i.timestamp),3)):on("v-if",!0)],2)],2))}});var _ge=vr(zEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const HEt=Ca(PEt,{TimelineItem:_ge}),VEt=qu(_ge),wge=hr({nowrap:Boolean});var Cge=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Cge||{});const UEt=Object.values(Cge),$ne=hr({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:gn(Object),default:null}}),jEt=hr({side:{type:gn(String),values:UEt,required:!0}}
70),WEt=["absolute","fixed"],GEt=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],zne=hr({ariaLabel:String,arrowPadding:{type:gn(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:gn(String),values:GEt,default:"bottom"},reference:{type:gn(Object),default:null},offset:{type:Number,default:8},strategy:{type:gn(String),values:WEt,default:"absolute"},showArrow:{type:Boolean,default:!1}}),Hne=hr({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:gn(Function)},"onUpdate:open":{type:gn(Function)}}),JT={type:gn(Function)},Vne=hr({onBlur:JT,onClick:JT,onFocus:JT,onMouseDown:JT,onMouseEnter:JT,onMouseLeave:JT}),KEt=hr({...Hne,...$ne,...Vne,...zne,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:gn(Object),default:null},teleported:Boolean,to:{type:gn(String),default:"body"}}),GV=Symbol("tooltipV2"),xge=Symbol("tooltipV2Content"),FZ="tooltip_v2.open",YEt=Zt({name:"ElTooltipV2Root"}),qEt=Zt({...YEt,props:Hne,setup(e,{expose:t}){const n=e,r=et(n.defaultOpen),i=et(null),l=Ne({get:()=>WDe(n.open)?r.value:n.open,set:B=>{var F;r.value=B,(F=n["onUpdate:open"])==null||F.call(n,B)}}),u=Ne(()=>$o(n.delayDuration)&&n.delayDuration>0),{start:f,stop:v}=TC(()=>{l.value=!0},Ne(()=>n.delayDuration),{immediate:!1}),h=Vn("tooltip-v2"),g=Lm(),y=()=>{v(),l.value=!0},w=()=>{L(u)?f():y()},C=y,S=()=>{v(),l.value=!1};return $n(l,B=>{var F;B&&(document.dispatchEvent(new CustomEvent(FZ)),C()),(F=n.onOpenChange)==null||F.call(n,B)}),ia(()=>{document.addEventListener(FZ,S)}),Bl(()=>{v(),document.removeEventListener(FZ,S)}),$a(GV,{contentId:g,triggerRef:i,ns:h,onClose:S,onDelayOpen:w,onOpen:C}),t({onOpen:C,onClose:S}),(B,F)=>Fn(B.$slots,"default",{open:L(l)})}});var XEt=vr(qEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const ZEt=Zt({name:"ElTooltipV2Arrow"}),QEt=Zt({...ZEt,props:{...$ne,...jEt},setup(e){const t=e,{ns:n}=jr(GV),{arrowRef:r}=jr(xge),i=Ne(()=>{const{style:l,width:u,height:f}=t,v=n.namespace.value;return{[`--${v}-tooltip-v2-arrow-width`]:`${u}px`,[`--${v}-tooltip-v2-arrow-height`]:`${f}px`,[`--${v}-tooltip-v2-arrow-border-width`]:`${u/2}px`,[`--${v}-tooltip-v2-arrow-cover-width`]:u/2-1,...l||{}}});return(l,u)=>(Ce(),Ie("span",{ref_key:"arrowRef",ref:r,style:Pr(L(i)),class:He(L(n).e("arrow"))},null,6))}});var _ue=vr(QEt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const JEt=hr({style:{type:gn([String,Object,Array]),default:()=>({})}}),eSt=Zt({name:"ElVisuallyHidden"}),tSt=Zt({...eSt,props:JEt,setup(e){const t=e,n=Ne(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,i)=>(Ce(),Ie("span",Pa(r.$attrs,{style:L(n)}),[Fn(r.$slots,"default")],16))}});var nSt=vr(tSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const rSt=["data-side"],oSt=Zt({name:"ElTooltipV2Content"}),aSt=Zt({...oSt,props:{...zne,...wge},setup(e){const t=e,{triggerRef:n,contentId:r}=jr(GV),i=et(t.placement),l=et(t.strategy),u=et(null),{referenceRef:f,contentRef:v,middlewareData:h,x:g,y,update:w}=qvt({placement:i,strategy:l,middleware:Ne(()=>{const N=[Wvt(t.offset)];return t.showArrow&&N.push(Xvt({arrowRef:u})),N})}),C=m7().nextZIndex(),S=Vn("tooltip-v2"),T=Ne(()=>i.value.split("-")[0]),B=Ne(()=>({position:L(l),top:`${L(y)||0}px`,left:`${L(g)||0}px`,zIndex:C})),F=Ne(()=>{if(!t.showArrow)return{};const{arrow:N}=L(h);return{[`--${S.namespace.value}-tooltip-v2-arrow-x`]:`${N==null?void 0:N.x}px`||"",[`--${S.namespace.value}-tooltip-v2-arrow-y`]:`${N==null?void 0:N.y}px`||""}}),R=Ne(()=>[S.e("content"),S.is("dark",t.effect==="dark"),S.is(L(l)),t.contentClass]);return $n(u,()=>w()),$n(()=>t.placement,N=>i.value=N),ia(()=>{$n(()=>t.reference||n.value,N=>{f.value=N||void 0},{immediate:!0})}),$a(xge,{arrowRef:u}),(N,A)=>(Ce(),Ie("div",{ref_key:"contentRef",ref:v,style:Pr(L(B)),"data-tooltip-v2-root":""},[N.nowrap?on("v-if",!0):(Ce(),Ie("div",{key:0,"data-side":L(T),class:He(L(R))},[Fn(N.$slots,"default",{contentStyle:L(B),contentClass:L(R)}),gt(L(nSt),{id:L(r),role:"tooltip"},{default:Dt(()=>[N.ariaLabel?(Ce(),Ie(Ur,{key:0},[lo(Zn(N.ariaLabel),1)],64)):Fn(N.$slots,"default",{key:1})]),_:3},8,["id"]),Fn(N.$slots,"arrow",{style:Pr(L(F)),side:L(T)})],10,rSt))],4))}});var wue=vr(aSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const iSt=hr({setRef:{type:gn(Function),required:!0},onlyChild:Boolean});var sSt=Zt({props:iSt,setup(e,{slots:t}){const n=et(),r=OV(n,i=>{i?e.setRef(i.nextElementSibling):e.setRef(null)});return()=>{var i;const[l]=((i=t.default)==null?void 0:i.call(t))||[],u=e.onlyChild?Qdt(l.children):l.children;return gt(Ur,{ref:r},[u])}}});
70const lSt=Zt({name:"ElTooltipV2Trigger"}),uSt=Zt({...lSt,props:{...wge,...Vne},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:i,triggerRef:l,contentId:u}=jr(GV);let f=!1;const v=R=>{l.value=R},h=()=>{f=!1},g=Yu(t.onMouseEnter,i),y=Yu(t.onMouseLeave,n),w=Yu(t.onMouseDown,()=>{n(),f=!0,document.addEventListener("mouseup",h,{once:!0})}),C=Yu(t.onFocus,()=>{f||r()}),S=Yu(t.onBlur,n),T=Yu(t.onClick,R=>{R.detail===0&&n()}),B={blur:S,click:T,focus:C,mousedown:w,mouseenter:g,mouseleave:y},F=(R,N,A)=>{R&&Object.entries(N).forEach(([X,Z])=>{R[A](X,Z)})};return $n(l,(R,N)=>{F(R,B,"addEventListener"),F(N,B,"removeEventListener"),R&&R.setAttribute("aria-describedby",u.value)}),Bl(()=>{F(l.value,B,"removeEventListener"),document.removeEventListener("mouseup",h)}),(R,N)=>R.nowrap?(Ce(),yn(L(sSt),{key:0,"set-ref":v,"only-child":""},{default:Dt(()=>[Fn(R.$slots,"default")]),_:3})):(Ce(),Ie("button",Pa({key:1,ref_key:"triggerRef",ref:l},R.$attrs),[Fn(R.$slots,"default")],16))}});var cSt=vr(uSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const fSt=Zt({name:"ElTooltipV2"}),dSt=Zt({...fSt,props:KEt,setup(e){const n=Dc(e),r=gi(h3(n,Object.keys($ne))),i=gi(h3(n,Object.keys(zne))),l=gi(h3(n,Object.keys(Hne))),u=gi(h3(n,Object.keys(Vne)));return(f,v)=>(Ce(),yn(XEt,qg(sV(l)),{default:Dt(({open:h})=>[gt(cSt,Pa(u,{nowrap:""}),{default:Dt(()=>[Fn(f.$slots,"trigger")]),_:3},16),(Ce(),yn(KI,{to:f.to,disabled:!f.teleported},[f.fullTransition?(Ce(),yn(Ic,qg(Pa({key:0},f.transitionProps)),{default:Dt(()=>[f.alwaysOn||h?(Ce(),yn(wue,qg(Pa({key:0},i)),{arrow:Dt(({style:g,side:y})=>[f.showArrow?(Ce(),yn(_ue,Pa({key:0},r,{style:g,side:y}),null,16,["style","side"])):on("v-if",!0)]),default:Dt(()=>[Fn(f.$slots,"default")]),_:3},16)):on("v-if",!0)]),_:2},1040)):(Ce(),Ie(Ur,{key:1},[f.alwaysOn||h?(Ce(),yn(wue,qg(Pa({key:0},i)),{arrow:Dt(({style:g,side:y})=>[f.showArrow?(Ce(),yn(_ue,Pa({key:0},r,{style:g,side:y}),null,16,["style","side"])):on("v-if",!0)]),default:Dt(()=>[Fn(f.$slots,"default")]),_:3},16)):on("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var vSt=vr(dSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const hSt=Ca(vSt),Ege="left-check-change",Sge="right-check-change",fA=hr({data:{type:gn(Array),default:()=>[]},titles:{type:gn(Array),default:()=>[]},buttonTexts:{type:gn(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:gn(Function)},leftDefaultChecked:{type:gn(Array),default:()=>[]},rightDefaultChecked:{type:gn(Array),default:()=>[]},renderContent:{type:gn(Function)},modelValue:{type:gn(Array),default:()=>[]},format:{type:gn(Object),default:()=>({})},filterable:Boolean,props:{type:gn(Object),default:()=>uu({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),tee=(e,t)=>[e,t].every(Oa)||Oa(e)&&jf(t),pSt={[Ll]:(e,t,n)=>[e,n].every(Oa)&&["left","right"].includes(t),[Ma]:e=>Oa(e),[Ege]:tee,[Sge]:tee},nee="checked-change",mSt=hr({data:fA.data,optionRender:{type:gn(Function)},placeholder:String,title:String,filterable:Boolean,format:fA.format,filterMethod:fA.filterMethod,defaultChecked:fA.leftDefaultChecked,props:fA.props}),gSt={[nee]:tee},cR=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Ne(()=>({...t,...e.props}))},ySt=(e,t,n)=>{const r=cR(e),i=Ne(()=>e.data.filter(g=>Ji(e.filterMethod)?e.filterMethod(t.query,g):String(g[r.value.label]||g[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=Ne(()=>i.value.filter(g=>!g[r.value.disabled])),u=Ne(()=>{const g=t.checked.length,y=e.data.length,{noChecked:w,hasChecked:C}=e.format;return w&&C?g>0?C.replace(/\${checked}/g,g.toString()).replace(/\${total}/g,y.toString()):w.replace(/\${total}/g,y.toString()):`${g}/${y}`}),f=Ne(()=>{const g=t.checked.length;return g>0&&g<l.value.length}),v=()=>{const g=l.value.map(y=>y[r.value.key]);t.allChecked=g.length>0&&g.every(y=>t.checked.includes(y))},h=g=>{t.checked=g?l.value.map(y=>y[r.value.key]):[]};return $n(()=>t.checked,(g,y)=>{if(v(),t.checkChangeByUser){const w=g.concat(y).filter(C=>!g.includes(C)||!y.includes(C));n(nee,g,w)}else n(nee,g),t.checkChangeByUser=!0}),$n(l,()=>{v()}),$n(()=>e.data,()=>{const g=[],y=i.value.map(w=>w[r.value.key]);t.checked.forEach(w=>{y.includes(w)&&g.push(w)}),t.checkChangeByUser=!1,t.checked=g}),$n(()=>e.defaultChecked,(g,y)=>{if(y&&g.length===y.length&&g.every(S=>y.includes(S)))return;const w=[],C=l.value.map(S=>S[r.value.key]);g.forEach(S=>{C.includes(S)&&w.push(S)}),t.checkChangeByUser=!1,t.checked=w},{immediate:!0}),{filteredData:i,checkableData:l,checkedSummary:u,isIndeterminate:f,updateAllChecked:v,handleAllCheckedChange:h}},bSt=(e,t)=>
70({onSourceCheckedChange:(i,l)=>{e.leftChecked=i,l&&t(Ege,i,l)},onTargetCheckedChange:(i,l)=>{e.rightChecked=i,l&&t(Sge,i,l)}}),_St=e=>{const t=cR(e),n=Ne(()=>e.data.reduce((l,u)=>(l[u[t.value.key]]=u)&&l,{})),r=Ne(()=>e.data.filter(l=>!e.modelValue.includes(l[t.value.key]))),i=Ne(()=>e.targetOrder==="original"?e.data.filter(l=>e.modelValue.includes(l[t.value.key])):e.modelValue.reduce((l,u)=>{const f=n.value[u];return f&&l.push(f),l},[]));return{sourceData:r,targetData:i}},wSt=(e,t,n)=>{const r=cR(e),i=(f,v,h)=>{n(Ma,f),n(Ll,f,v,h)};return{addToLeft:()=>{const f=e.modelValue.slice();t.rightChecked.forEach(v=>{const h=f.indexOf(v);h>-1&&f.splice(h,1)}),i(f,"left",t.rightChecked)},addToRight:()=>{let f=e.modelValue.slice();const v=e.data.filter(h=>{const g=h[r.value.key];return t.leftChecked.includes(g)&&!e.modelValue.includes(g)}).map(h=>h[r.value.key]);f=e.targetOrder==="unshift"?v.concat(f):f.concat(v),e.targetOrder==="original"&&(f=e.data.filter(h=>f.includes(h[r.value.key])).map(h=>h[r.value.key])),i(f,"right",t.leftChecked)}}},CSt=Zt({name:"ElTransferPanel"}),xSt=Zt({...CSt,props:mSt,emits:gSt,setup(e,{expose:t,emit:n}){const r=e,i=g1(),l=({option:N})=>N,{t:u}=Ni(),f=Vn("transfer"),v=gi({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),h=cR(r),{filteredData:g,checkedSummary:y,isIndeterminate:w,handleAllCheckedChange:C}=ySt(r,v,n),S=Ne(()=>!Sm(v.query)&&Sm(g.value)),T=Ne(()=>!Sm(i.default()[0].children)),{checked:B,allChecked:F,query:R}=Dc(v);return t({query:R}),(N,A)=>(Ce(),Ie("div",{class:He(L(f).b("panel"))},[ce("p",{class:He(L(f).be("panel","header"))},[gt(L(Bm),{modelValue:L(F),"onUpdate:modelValue":A[0]||(A[0]=X=>El(F)?F.value=X:null),indeterminate:L(w),"validate-event":!1,onChange:L(C)},{default:Dt(()=>[lo(Zn(N.title)+" ",1),ce("span",null,Zn(L(y)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),ce("div",{class:He([L(f).be("panel","body"),L(f).is("with-footer",L(T))])},[N.filterable?(Ce(),yn(L(Ov),{key:0,modelValue:L(R),"onUpdate:modelValue":A[1]||(A[1]=X=>El(R)?R.value=X:null),class:He(L(f).be("panel","filter")),size:"default",placeholder:N.placeholder,"prefix-icon":L(jhe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):on("v-if",!0),ea(gt(L(Dpe),{modelValue:L(B),"onUpdate:modelValue":A[2]||(A[2]=X=>El(B)?B.value=X:null),"validate-event":!1,class:He([L(f).is("filterable",N.filterable),L(f).be("panel","list")])},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(L(g),X=>(Ce(),yn(L(Bm),{key:X[L(h).key],class:He(L(f).be("panel","item")),label:X[L(h).key],disabled:X[L(h).disabled],"validate-event":!1},{default:Dt(()=>{var Z;return[gt(l,{option:(Z=N.optionRender)==null?void 0:Z.call(N,X)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Ti,!L(S)&&!L(Sm)(N.data)]]),ea(ce("p",{class:He(L(f).be("panel","empty"))},Zn(L(S)?L(u)("el.transfer.noMatch"):L(u)("el.transfer.noData")),3),[[Ti,L(S)||L(Sm)(N.data)]])],2),L(T)?(Ce(),Ie("p",{key:0,class:He(L(f).be("panel","footer"))},[Fn(N.$slots,"default")],2)):on("v-if",!0)],2))}});var Cue=vr(xSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const ESt={key:0},SSt={key:0},TSt=Zt({name:"ElTransfer"}),ASt=Zt({...TSt,props:fA,emits:pSt,setup(e,{expose:t,emit:n}){const r=e,i=g1(),{t:l}=Ni(),u=Vn("transfer"),{formItem:f}=xh(),v=gi({leftChecked:[],rightChecked:[]}),h=cR(r),{sourceData:g,targetData:y}=_St(r),{onSourceCheckedChange:w,onTargetCheckedChange:C}=bSt(v,n),{addToLeft:S,addToRight:T}=wSt(r,v,n),B=et(),F=et(),R=Y=>{switch(Y){case"left":B.value.query="";break;case"right":F.value.query="";break}},N=Ne(()=>r.buttonTexts.length===2),A=Ne(()=>r.titles[0]||l("el.transfer.titles.0")),X=Ne(()=>r.titles[1]||l("el.transfer.titles.1")),Z=Ne(()=>r.filterPlaceholder||l("el.transfer.filterPlaceholder"));$n(()=>r.modelValue,()=>{var Y;r.validateEvent&&((Y=f==null?void 0:f.validate)==null||Y.call(f,"change").catch(Q=>void 0))});const z=Ne(()=>Y=>r.renderContent?r.renderContent(oo,Y):i.default?i.default({option:Y}):oo("span",Y[h.value.label]||Y[h.value.key]));return t({clearQuery:R,leftPanel:B,rightPanel:F}),(Y,Q)=>(Ce(),Ie("div",{class:He(L(u).b())},[gt(Cue,{ref_key:"leftPanel",ref:B,data:L(g),"option-render":L(z),placeholder:L(Z),title:L(A),filterable:Y.filterable,format:Y.format,"filter-method":Y.filterMethod,"default-checked":Y.leftDefaultChecked,props:r.props,onCheckedChange:L(w)},{default:Dt(()=>[Fn(Y.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ce("div",{class:He(L(u).e("buttons"))},[gt(L(Z1),{type:"primary",class:He([L(u).e("button"),L(u).is("with-texts",L(N))]),disabled:L(Sm)(v.rightChecked),onClick:L(S)},{default:Dt(()=>[gt(L(Zr),null,{default:Dt(()=>[gt(L(w3))]),_:1}),L(Vd)(Y.buttonTexts[0])?on("v-if",!0):(Ce(),Ie("span",ESt,Zn(Y.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),gt(L(Z1),{type:"primary",class:He([L(u).e("button"),L(u).is("with-texts",L(N))]),disabled:L(Sm)(v.leftChecked),onClick:L(T)},{default:Dt(()=>[L(Vd)(Y.buttonTexts[1])?on("v-if",!0):(Ce(),Ie("span",SSt,Zn(Y.buttonTexts[1]),1)),gt(L(Zr),null,{default:Dt(()=>[gt(L(Nv))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),gt(Cue,{ref_key:"rightPanel",ref:F,data:L(y),"option-render":L(z),placeholder:L(Z),filterable:Y.filterable,format:Y.format,"filter-method":Y.filterMethod,title:L(X),"default-checked":Y.rightDefaultChecked,props:r.props,onCheckedChange:L(C)},{default:Dt(()=>[Fn(Y.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var kSt=vr(ASt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const OSt=Ca(kSt),RA="$treeNodeId",xue=function(e,t){!t||t[RA]||Object.defineProperty(t,RA,{value:e.id,enumerable:!1,
70configurable:!1,writable:!1})},Une=function(e,t){return e?t[e]:t[RA]},ree=(e,t,n)=>{const r=e.value.currentNode;n();const i=e.value.currentNode;r!==i&&t("current-change",i?i.data:null,i)},oee=e=>{let t=!0,n=!0,r=!0;for(let i=0,l=e.length;i<l;i++){const u=e[i];(u.checked!==!0||u.indeterminate)&&(t=!1,u.disabled||(r=!1)),(u.checked!==!1||u.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},Xz=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=oee(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const i=e.parent;!i||i.level===0||e.store.checkStrictly||Xz(i)},J$=function(e,t){const n=e.store.props,r=e.data||{},i=n[t];if(typeof i=="function")return i(r,e);if(typeof i=="string")return r[i];if(typeof i=="undefined"){const l=r[t];return l===void 0?"":l}};let MSt=0;class CC{constructor(t){this.id=MSt++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)J1(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf!="undefined"){const l=J$(this,"isLeaf");typeof l=="boolean"&&(this.isLeafByUser=l)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||xue(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,i=t.key;i&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),i&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||xue(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=J$(this,"children")||[];for(let r=0,i=n.length;r<i;r++)this.insertChild({data:n[r]})}get label(){return J$(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return J$(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof CC)){if(!r){const i=this.getChildren(!0);i.includes(t.data)||(typeof n=="undefined"||n<0?i.push(t.data):i.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=gi(new CC(t)),t instanceof CC&&t.initialize()}t.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const i=this.childNodes.indexOf(t);i>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let i=this.parent;for(;i.level>0;)i.expanded=!0,i=i.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(i=>{i.canFocus=!0})};this.shouldLoadData()?this.loadData(i=>{Array.isArray(i)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Xz(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}
70collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,i){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:u,allWithoutDisable:f}=oee(this.childNodes);!this.isLeaf&&!u&&f&&(this.checked=!1,t=!1);const v=()=>{if(n){const h=this.childNodes;for(let w=0,C=h.length;w<C;w++){const S=h[w];i=i||t!==!1;const T=S.disabled?S.checked:i;S.setChecked(T,n,!0,i)}const{half:g,all:y}=oee(h);y||(this.checked=y,this.indeterminate=g)}};if(this.shouldLoadData()){this.loadData(()=>{v(),Xz(this)},{checked:t!==!1});return}else v()}const l=this.parent;!l||l.level===0||r||Xz(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let i="children";return r&&(i=r.children||"children"),n[i]===void 0&&(n[i]=null),t&&!n[i]&&(n[i]=[]),n[i]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),r={},i=[];t.forEach((l,u)=>{const f=l[RA];!!f&&n.findIndex(h=>h[RA]===f)>=0?r[f]={index:u,data:l}:i.push({index:u,data:l})}),this.store.lazy||n.forEach(l=>{r[l[RA]]||this.removeChildByData(l)}),i.forEach(({index:l,data:u})=>{this.insertChild({data:u},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)};this.store.load(this,r)}else t&&t.call(this)}}class NSt{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)J1(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new CC({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,i=function(l){const u=l.root?l.root.childNodes:l.childNodes;if(u.forEach(f=>{f.visible=n.call(f,t,f.data,f),i(f)}),!l.visible&&u.length){let f=!0;f=!u.some(v=>v.visible),l.root?l.root.visible=f===!1:l.visible=f===!1}!t||l.visible&&!l.isLeaf&&!r&&l.expand()};i(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof CC)return t;const n=Qs(t)?Une(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const i=n[r];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],i=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(f=>{(f.checked||n&&f.indeterminate)&&(!t||t&&f.isLeaf)&&r.push(f.data),i(f)})};return i(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEac
70h(l=>{l.indeterminate&&t.push(l.data),n(l)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)J1(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const i=r.childNodes;for(let l=i.length-1;l>=0;l--){const u=i[l];this.remove(u.data)}for(let l=0,u=n.length;l<u;l++){const f=n[l];this.append(f,r.data)}}_setCheckedKeys(t,n=!1,r){const i=this._getAllNodes().sort((f,v)=>v.level-f.level),l=Object.create(null),u=Object.keys(r);i.forEach(f=>f.setChecked(!1,!1));for(let f=0,v=i.length;f<v;f++){const h=i[f],g=h.data[t].toString();if(!u.includes(g)){h.checked&&!l[g]&&h.setChecked(!1,!1);continue}let w=h.parent;for(;w&&w.level>0;)l[w.data[t]]=!0,w=w.parent;if(h.isLeaf||this.checkStrictly){h.setChecked(!0,!1);continue}if(h.setChecked(!0,!0),n){h.setChecked(!1,!1);const C=function(S){S.childNodes.forEach(B=>{B.isLeaf||B.setChecked(!1,!1),C(B)})};C(h)}}}setCheckedNodes(t,n=!1){const r=this.key,i={};t.forEach(l=>{i[(l||{})[r]]=!0}),this._setCheckedKeys(r,n,i)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,i={};t.forEach(l=>{i[l]=!0}),this._setCheckedKeys(r,n,i)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const i=this.getNode(t);i&&i.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],i=this.nodesMap[r];this.setCurrentNode(i),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const DSt=Zt({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Vn("tree"),n=jr("NodeInstance"),r=jr("RootTree");return()=>{const i=e.node,{data:l,store:u}=i;return e.renderContent?e.renderContent(oo,{_self:n,node:i,data:l,store:u}):r.ctx.slots.default?r.ctx.slots.default({node:i,data:l}):oo("span",{class:t.be("node","label")},[i.label])}}});var ISt=vr(DSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function Tge(e){const t=jr("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),$a("TreeNodeMap",n),{broadcastExpanded:r=>{if(!!e.accordion)for(const i of n.children)i.treeNodeExpand(r)}}}const Age=Symbol("dragEvents");function RSt({props:e,ctx:t,el$:n,dropIndicator$:r,store:i}){const l=Vn("tree"),u=et({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return $a(Age,{treeNodeDragStart:({event:g,treeNode:y})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(y.node))return g.preventDefault(),!1;g.dataTransfer.effectAllowed="move";try{g.dataTransfer.setData("text/plain","")}catch{}u.value.draggingNode=y,t.emit("node-drag-start",y.node,g)},treeNodeDragOver:({event:g,treeNode:y})=>{const w=y,C=u.value.dropNode;C&&C.node.id!==w.node.id&&m0(C.$el,l.is("drop-inner"));const S=u.value.draggingNode;if(!S||!w)return;let T=!0,B=!0,F=!0,R=!0;typeof e.allowDrop=="function"&&(T=e.allowDrop(S.node,w.node,"prev"),R=B=e.allowDrop(S.node,w.node,"inner"),F=e.allowDrop(S.node,w.node,"next")),g.dataTransfer.dropEffect=B||T||F?"move":"none",(T||B||F)&&(C==null?void 0:C.node.id)!==w.node.id&&(C&&t.emit("node-drag-leave",S.node,C.node,g),t.emit("node-drag-enter",S.node,w.node,g)),(T||B||F)&&(u.value.dropNode=w),w.node.nextSibling===S.node&&(F=!1),w.node.previousSibling===S.node&&(T=!1),w.node.contains(S.node,!1)&&(B=!1),(S.node===w.node||S.node.contains(w.node))&&(T=!1,B=!1,F=!1);const N=w.$el.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),A=n.value.getBoundingClientRect();let X;const Z=T?B?.25:F?.45:1:-1,z=F?B?.75:T?.55:0:1;let Y=-9999;const Q=g.clientY-N.top;Q<N.height*Z?X="before":Q>N.height*z?X="after":B?X="inner":X="none";const $=w.$el.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),te=r.value;X==="before"?Y=$.top-A.top:X==="after"&&(Y=$.bottom-A.top),te.style.top=`${Y}px`,te.style.left=`${$.right-A.left}px`,X==="inner"?ob(w.$el,l.is("drop-inner")):m0(w.$el,l.is("drop-inner")),u.value.showDropIndicator=X==="before"||X==="after",u.value.allowDrop=u.value.showDropIndicator||R,u.value.dropType=X,t.emit("node-drag-over",S.node,w.node,g)},treeNodeDragEnd:g=>{const{draggingNode:y,dropType:w,dropNode:C}=u.value;
70if(g.preventDefault(),g.dataTransfer.dropEffect="move",y&&C){const S={data:y.node.data};w!=="none"&&y.node.remove(),w==="before"?C.node.parent.insertBefore(S,C.node):w==="after"?C.node.parent.insertAfter(S,C.node):w==="inner"&&C.node.insertChild(S),w!=="none"&&i.value.registerNode(S),m0(C.$el,l.is("drop-inner")),t.emit("node-drag-end",y.node,C.node,w,g),w!=="none"&&t.emit("node-drop",y.node,C.node,w,g)}y&&!C&&t.emit("node-drag-end",y.node,null,w,g),u.value.showDropIndicator=!1,u.value.draggingNode=null,u.value.dropNode=null,u.value.allowDrop=!0}}),{dragState:u}}const LSt=Zt({name:"ElTreeNode",components:{ElCollapseTransition:VV,ElCheckbox:Bm,NodeContent:ISt,ElIcon:Zr,Loading:N3},props:{node:{type:CC,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Vn("tree"),{broadcastExpanded:r}=Tge(e),i=jr("RootTree"),l=et(!1),u=et(!1),f=et(null),v=et(null),h=et(null),g=jr(Age),y=va();$a("NodeInstance",y),e.node.expanded&&(l.value=!0,u.value=!0);const w=i.props.children||"children";$n(()=>{const Q=e.node.data[w];return Q&&[...Q]},()=>{e.node.updateChildren()}),$n(()=>e.node.indeterminate,Q=>{T(e.node.checked,Q)}),$n(()=>e.node.checked,Q=>{T(Q,e.node.indeterminate)}),$n(()=>e.node.expanded,Q=>{Gr(()=>l.value=Q),Q&&(u.value=!0)});const C=Q=>Une(i.props.nodeKey,Q.data),S=Q=>{const $=e.props.class;if(!$)return{};let te;if(Ji($)){const{data:V}=Q;te=$(V,Q)}else te=$;return Ga(te)?{[te]:!0}:te},T=(Q,$)=>{(f.value!==Q||v.value!==$)&&i.ctx.emit("check-change",e.node.data,Q,$),f.value=Q,v.value=$},B=Q=>{ree(i.store,i.ctx.emit,()=>i.store.value.setCurrentNode(e.node)),i.currentNode.value=e.node,i.props.expandOnClickNode&&R(),i.props.checkOnClickNode&&!e.node.disabled&&N(null,{target:{checked:!e.node.checked}}),i.ctx.emit("node-click",e.node.data,e.node,y,Q)},F=Q=>{i.instance.vnode.props.onNodeContextmenu&&(Q.stopPropagation(),Q.preventDefault()),i.ctx.emit("node-contextmenu",Q,e.node.data,e.node,y)},R=()=>{e.node.isLeaf||(l.value?(i.ctx.emit("node-collapse",e.node.data,e.node,y),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,y)))},N=(Q,$)=>{e.node.setChecked($.target.checked,!i.props.checkStrictly),Gr(()=>{const te=i.store.value;i.ctx.emit("check",e.node.data,{checkedNodes:te.getCheckedNodes(),checkedKeys:te.getCheckedKeys(),halfCheckedNodes:te.getHalfCheckedNodes(),halfCheckedKeys:te.getHalfCheckedKeys()})})};return{ns:n,node$:h,tree:i,expanded:l,childNodeRendered:u,oldChecked:f,oldIndeterminate:v,getNodeKey:C,getNodeClass:S,handleSelectChange:T,handleClick:B,handleContextMenu:F,handleExpandIconClick:R,handleCheckChange:N,handleChildNodeExpand:(Q,$,te)=>{r($),i.ctx.emit("node-expand",Q,$,te)},handleDragStart:Q=>{!i.props.draggable||g.treeNodeDragStart({event:Q,treeNode:e})},handleDragOver:Q=>{Q.preventDefault(),i.props.draggable&&g.treeNodeDragOver({event:Q,treeNode:{$el:h.value,node:e.node}})},handleDrop:Q=>{Q.preventDefault()},handleDragEnd:Q=>{!i.props.draggable||g.treeNodeDragEnd(Q)},CaretRight:Bte}}}),BSt=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],PSt=["aria-expanded"];function FSt(e,t,n,r,i,l){const u=Kr("el-icon"),f=Kr("el-checkbox"),v=Kr("loading"),h=Kr("node-content"),g=Kr("el-tree-node"),y=Kr("el-collapse-transition");return ea((Ce(),Ie("div",{ref:"node$",class:He([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Do((...w)=>e.handleClick&&e.handleClick(...w),["stop"])),onContextmenu:t[2]||(t[2]=(...w)=>e.handleContextMenu&&e.handleContextMenu(...w)),onDragstart:t[3]||(t[3]=Do((...w)=>e.handleDragStart&&e.handleDragStart(...w),["stop"])),onDragover:t[4]||(t[4]=Do((...w)=>e.handleDragOver&&e.handleDragOver(...w),["stop"])),onDragend:t[5]||(t[5]=Do((...w)=>e.handleDragEnd&&e.handleDragEnd(...w),["stop"])),onDrop:t[6]||(t[6]=Do((...w)=>e.handleDrop&&e.handleDrop(...w),["stop"]))},[ce("div",{class:He(e.ns.be("node","content")),style:Pr({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Ce(),yn(u,{key:0,class:He([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{exp
70anded:!e.node.isLeaf&&e.expanded}]),onClick:Do(e.handleExpandIconClick,["stop"])},{default:Dt(()=>[(Ce(),yn(Fa(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):on("v-if",!0),e.showCheckbox?(Ce(),yn(f,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Do(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):on("v-if",!0),e.node.loading?(Ce(),yn(u,{key:2,class:He([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Dt(()=>[gt(v)]),_:1},8,["class"])):on("v-if",!0),gt(h,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),gt(y,null,{default:Dt(()=>[!e.renderAfterExpand||e.childNodeRendered?ea((Ce(),Ie("div",{key:0,class:He(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Ce(!0),Ie(Ur,null,La(e.node.childNodes,w=>(Ce(),yn(g,{key:e.getNodeKey(w),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:w,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,PSt)),[[Ti,e.expanded]]):on("v-if",!0)]),_:1})],42,BSt)),[[Ti,e.node.visible]])}var $St=vr(LSt,[["render",FSt],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function zSt({el$:e},t){const n=Vn("tree"),r=al([]),i=al([]);ia(()=>{u()}),S3(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),i.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),$n(i,f=>{f.forEach(v=>{v.setAttribute("tabindex","-1")})}),Yl(e,"keydown",f=>{const v=f.target;if(!v.className.includes(n.b("node")))return;const h=f.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const g=r.value.indexOf(v);let y;if([ao.up,ao.down].includes(h)){if(f.preventDefault(),h===ao.up){y=g===-1?0:g!==0?g-1:r.value.length-1;const C=y;for(;!t.value.getNode(r.value[y].dataset.key).canFocus;){if(y--,y===C){y=-1;break}y<0&&(y=r.value.length-1)}}else{y=g===-1?0:g<r.value.length-1?g+1:0;const C=y;for(;!t.value.getNode(r.value[y].dataset.key).canFocus;){if(y++,y===C){y=-1;break}y>=r.value.length&&(y=0)}}y!==-1&&r.value[y].focus()}[ao.left,ao.right].includes(h)&&(f.preventDefault(),v.click());const w=v.querySelector('[type="checkbox"]');[ao.enter,ao.space].includes(h)&&w&&(f.preventDefault(),w.click())});const u=()=>{var f;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),i.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const v=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(v.length){v[0].setAttribute("tabindex","0");return}(f=r.value[0])==null||f.setAttribute("tabindex","0")}}const HSt=Zt({name:"ElTree",components:{ElTreeNode:$St},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:xl}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Ni(),r=Vn("tree"),i=et(new NSt({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.f
70ilterNodeMethod}));i.value.initialize();const l=et(i.value.root),u=et(null),f=et(null),v=et(null),{broadcastExpanded:h}=Tge(e),{dragState:g}=RSt({props:e,ctx:t,el$:f,dropIndicator$:v,store:i});zSt({el$:f},i);const y=Ne(()=>{const{childNodes:le}=l.value;return!le||le.length===0||le.every(({visible:_e})=>!_e)});$n(()=>e.currentNodeKey,le=>{i.value.setCurrentNodeKey(le)}),$n(()=>e.defaultCheckedKeys,le=>{i.value.setDefaultCheckedKey(le)}),$n(()=>e.defaultExpandedKeys,le=>{i.value.setDefaultExpandedKeys(le)}),$n(()=>e.data,le=>{i.value.setData(le)},{deep:!0}),$n(()=>e.checkStrictly,le=>{i.value.checkStrictly=le});const w=le=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(le)},C=le=>Une(e.nodeKey,le.data),S=le=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const _e=i.value.getNode(le);if(!_e)return[];const M=[_e.data];let P=_e.parent;for(;P&&P!==l.value;)M.push(P.data),P=P.parent;return M.reverse()},T=(le,_e)=>i.value.getCheckedNodes(le,_e),B=le=>i.value.getCheckedKeys(le),F=()=>{const le=i.value.getCurrentNode();return le?le.data:null},R=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const le=F();return le?le[e.nodeKey]:null},N=(le,_e)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(le,_e)},A=(le,_e)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(le,_e)},X=(le,_e,M)=>{i.value.setChecked(le,_e,M)},Z=()=>i.value.getHalfCheckedNodes(),z=()=>i.value.getHalfCheckedKeys(),Y=(le,_e=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");ree(i,t.emit,()=>i.value.setUserCurrentNode(le,_e))},Q=(le,_e=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");ree(i,t.emit,()=>i.value.setCurrentNodeKey(le,_e))},$=le=>i.value.getNode(le),te=le=>{i.value.remove(le)},V=(le,_e)=>{i.value.append(le,_e)},K=(le,_e)=>{i.value.insertBefore(le,_e)},fe=(le,_e)=>{i.value.insertAfter(le,_e)},de=(le,_e,M)=>{h(_e),t.emit("node-expand",le,_e,M)},ne=(le,_e)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(le,_e)};return $a("RootTree",{ctx:t,props:e,store:i,root:l,currentNode:u,instance:va()}),$a(hb,void 0),{ns:r,store:i,root:l,currentNode:u,dragState:g,el$:f,dropIndicator$:v,isEmpty:y,filter:w,getNodeKey:C,getNodePath:S,getCheckedNodes:T,getCheckedKeys:B,getCurrentNode:F,getCurrentKey:R,setCheckedNodes:N,setCheckedKeys:A,setChecked:X,getHalfCheckedNodes:Z,getHalfCheckedKeys:z,setCurrentNode:Y,setCurrentKey:Q,t:n,getNode:$,remove:te,append:V,insertBefore:K,insertAfter:fe,handleNodeExpand:de,updateKeyChildren:ne}}});function VSt(e,t,n,r,i,l){const u=Kr("el-tree-node");return Ce(),Ie("div",{ref:"el$",class:He([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(Ce(!0),Ie(Ur,null,La(e.root.childNodes,f=>(Ce(),yn(u,{key:e.getNodeKey(f),node:f,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(Ce(),Ie("div",{key:0,class:He(e.ns.e("empty-block"))},[Fn(e.$slots,"empty",{},()=>{var f;return[ce("span",{class:He(e.ns.e("empty-text"))},Zn((f=e.emptyText)!=null?f:e.t("el.tree.emptyText")),3)]})],2)):on("v-if",!0),ea(ce("div",{ref:"dropIndicator$",class:He(e.ns.e("drop-indicator"))},null,2),[[Ti,e.dragState.showDropIndicator]])],2)}var Zz=vr(HSt,[["render",VSt],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Zz.install=e=>{e.component(Zz.name,Zz)};const $H=Zz,USt=$H,jSt=(e,{attrs:t},{tree:n,key:r})=>{const i=Vn("tree-select"),l={...h3(Dc(e),Object.keys(MC.props)),...t,valueKey:r,popperClass:Ne(()=>{const u=[i.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{e.filterMethod&&e.filterMethod(u),Gr(()=>{var f;(f=n.value)==null||f.filter(u)})},onVisibleChange:u=>{var f;(f=t.onVisibleChange)==null||f.call(t,u),e.filterable&&u&&l.filterMethod()}};return l},WSt=Zt({extends:NH,setup(e,t){const n=NH.setup(e,t);delete n.selectOptionClick;const r=va().proxy;return Gr(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function aee(e){return e||e===0}function jne(e){return Array.isArray(e)&&e.length}function CD(e){return Array.isArray(e)?e:aee(e)?[e]:[]}function Qz(e,t,n,r,i){for(let l=0;l<e.length;l++){const u=e[l];if(t(u,l,e,i))return r?r(u,l,e,i):u;{const f=n(u);if(jne(f)){const v=Qz(f,t,n,r,u);if(v)return v}}}}function kge(e,t,n,r){for(let i=0;i<e.length;i++){const l=e[i];t(l,i,e,r);const u=n(l);jne(u)&&kge(u,t,n,l)}}const GSt=(e,{attrs:t,slots:n,emit:r},{select:i,tree:l,key:u})=>{$n(()=>e.modelValue,()=>{e.showCheckbox&&Gr(()=>{const w=l.value;w&&!p0(w.getCheckedKeys(),CD(e.modelValue))&&w.setCheckedKeys(CD(e.modelValue))})},{immediate:!0,deep:!0});const f=Ne(()=>({value:u.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),v=(w,C)=>{var S;const T=f.value[w];return Ji(T)?T(C,(S=l.value)==null?void 0:S.getNode(v("value",C))):C[T]},h=CD(e.modelValue).map(w=>Qz(e.data||[],C=>v("value",C)===w,C=>v("children",C),(C,S,T,B)=>B&&v("value",B))).filter(w=>aee(w)),g=Ne(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const w=[];
70return kge(e.data.concat(e.cacheData),C=>{const S=v("value",C);w.push({value:S,currentLabel:v("label",C),isDisabled:v("disabled",C)})},C=>v("children",C)),w}),y=Ne(()=>g.value.reduce((w,C)=>({...w,[C.value]:C}),{}));return{...h3(Dc(e),Object.keys($H.props)),...t,nodeKey:u,expandOnClickNode:Ne(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:Ne(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(h):h),renderContent:(w,{node:C,data:S,store:T})=>w(WSt,{value:v("value",S),label:v("label",S),disabled:v("disabled",S)},e.renderContent?()=>e.renderContent(w,{node:C,data:S,store:T}):n.default?()=>n.default({node:C,data:S,store:T}):void 0),filterNodeMethod:(w,C,S)=>{var T;return e.filterNodeMethod?e.filterNodeMethod(w,C,S):w?(T=v("label",C))==null?void 0:T.includes(w):!0},onNodeClick:(w,C,S)=>{var T,B,F;if((T=t.onNodeClick)==null||T.call(t,w,C,S),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||C.isLeaf)){if(!v("disabled",w)){const R=(B=i.value)==null?void 0:B.options.get(v("value",w));(F=i.value)==null||F.handleOptionSelect(R)}}else e.expandOnClickNode&&S.proxy.handleExpandIconClick()},onCheck:(w,C)=>{if(!e.showCheckbox)return;const S=v("value",w),T=C.checkedKeys,B=e.multiple?CD(e.modelValue).filter(R=>R in y.value&&!l.value.getNode(R)&&!T.includes(R)):[],F=T.concat(B);if(e.checkStrictly)r(Ma,e.multiple?F:F.includes(S)?S:void 0);else if(e.multiple)r(Ma,l.value.getCheckedKeys(!0));else{const R=Qz([w],X=>!jne(v("children",X))&&!v("disabled",X),X=>v("children",X)),N=R?v("value",R):void 0,A=aee(e.modelValue)&&!!Qz([w],X=>v("value",X)===e.modelValue,X=>v("children",X));r(Ma,N===e.modelValue||A?void 0:N)}Gr(()=>{var R;const N=CD(e.modelValue);l.value.setCheckedKeys(N),(R=t.onCheck)==null||R.call(t,w,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})})},cacheOptions:g}};var KSt=Zt({props:{data:{type:Array,default:()=>[]}},setup(e){const t=jr(lR);return $n(()=>e.data,()=>{var n;e.data.forEach(i=>{t.cachedOptions.has(i.value)||t.cachedOptions.set(i.value,i)});const r=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const YSt=Zt({name:"ElTreeSelect",inheritAttrs:!1,props:{...MC.props,...$H.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,i=et(),l=et(),u=Ne(()=>e.nodeKey||e.valueKey||"value"),f=jSt(e,t,{select:i,tree:l,key:u}),{cacheOptions:v,...h}=GSt(e,t,{select:i,tree:l,key:u}),g=gi({});return r(g),ia(()=>{Object.assign(g,{...h3(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...h3(i.value,["focus","blur"])})}),()=>oo(MC,gi({...f,ref:y=>i.value=y}),{...n,default:()=>[oo(KSt,{data:v.value}),oo($H,gi({...h,ref:y=>l.value=y}))]})}});var Jz=vr(YSt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Jz.install=e=>{e.component(Jz.name,Jz)};const qSt=Jz,XSt=qSt,Wne=Symbol(),ZSt={key:-1,level:-1,data:{}};var BD=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(BD||{}),iee=(e=>(e.ADD="add",e.DELETE="delete",e))(iee||{});const Oge={type:Number,default:26},QSt=hr({data:{type:gn(Array),default:()=>uu([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:gn(Object),default:()=>uu({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:gn(Array),default:()=>uu([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:gn(Array),default:()=>uu([])},indent:{type:Number,default:16},itemSize:Oge,icon:{type:xl},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:gn([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:gn(Function)},perfMode:{type:Boolean,default:!0}}),JSt=hr({node:{type:gn(Object),default:()=>uu(ZSt)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:Oge}),eTt=hr({node:{type:gn(Object),required:!0}}),Mge="node-click",Nge="node-expand",Dge="node-collapse",Ige="current-change",Rge="check",Lge="check-change",Bge="node-contextmenu",tTt={[Mge]:(e,t,n)=>
70e&&t&&n,[Nge]:(e,t)=>e&&t,[Dge]:(e,t)=>e&&t,[Ige]:(e,t)=>e&&t,[Rge]:(e,t)=>e&&t,[Lge]:(e,t)=>e&&typeof t=="boolean",[Bge]:(e,t,n)=>e&&t&&n},nTt={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function rTt(e,t){const n=et(new Set),r=et(new Set),{emit:i}=va();$n([()=>t.value,()=>e.defaultCheckedKeys],()=>Gr(()=>{R(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:N,maxLevel:A}=t.value,X=n.value,Z=new Set;for(let z=A-1;z>=1;--z){const Y=N.get(z);!Y||Y.forEach(Q=>{const $=Q.children;if($){let te=!0,V=!1;for(const K of $){const fe=K.key;if(X.has(fe))V=!0;else if(Z.has(fe)){te=!1,V=!0;break}else te=!1}te?X.add(Q.key):V?(Z.add(Q.key),X.delete(Q.key)):(X.delete(Q.key),Z.delete(Q.key))}})}r.value=Z},u=N=>n.value.has(N.key),f=N=>r.value.has(N.key),v=(N,A,X=!0)=>{const Z=n.value,z=(Y,Q)=>{Z[Q?iee.ADD:iee.DELETE](Y.key);const $=Y.children;!e.checkStrictly&&$&&$.forEach(te=>{te.disabled||z(te,Q)})};z(N,A),l(),X&&h(N,A)},h=(N,A)=>{const{checkedNodes:X,checkedKeys:Z}=S(),{halfCheckedNodes:z,halfCheckedKeys:Y}=T();i(Rge,N.data,{checkedKeys:Z,checkedNodes:X,halfCheckedKeys:Y,halfCheckedNodes:z}),i(Lge,N.data,A)};function g(N=!1){return S(N).checkedKeys}function y(N=!1){return S(N).checkedNodes}function w(){return T().halfCheckedKeys}function C(){return T().halfCheckedNodes}function S(N=!1){const A=[],X=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:Z}=t.value;n.value.forEach(z=>{const Y=Z.get(z);Y&&(!N||N&&Y.isLeaf)&&(X.push(z),A.push(Y.data))})}return{checkedKeys:X,checkedNodes:A}}function T(){const N=[],A=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:X}=t.value;r.value.forEach(Z=>{const z=X.get(Z);z&&(A.push(Z),N.push(z.data))})}return{halfCheckedNodes:N,halfCheckedKeys:A}}function B(N){n.value.clear(),r.value.clear(),R(N)}function F(N,A){if((t==null?void 0:t.value)&&e.showCheckbox){const X=t.value.treeNodeMap.get(N);X&&v(X,A,!1)}}function R(N){if(t!=null&&t.value){const{treeNodeMap:A}=t.value;if(e.showCheckbox&&A&&N)for(const X of N){const Z=A.get(X);Z&&!u(Z)&&v(Z,!0,!1)}}}return{updateCheckedKeys:l,toggleCheckbox:v,isChecked:u,isIndeterminate:f,getCheckedKeys:g,getCheckedNodes:y,getHalfCheckedKeys:w,getHalfCheckedNodes:C,setChecked:F,setCheckedKeys:B}}function oTt(e,t){const n=et(new Set([])),r=et(new Set([])),i=Ne(()=>Ji(e.filterMethod));function l(f){var v;if(!i.value)return;const h=new Set,g=r.value,y=n.value,w=[],C=((v=t.value)==null?void 0:v.treeNodes)||[],S=e.filterMethod;y.clear();function T(B){B.forEach(F=>{w.push(F),S!=null&&S(f,F.data)?w.forEach(N=>{h.add(N.key)}):F.isLeaf&&y.add(F.key);const R=F.children;if(R&&T(R),!F.isLeaf){if(!h.has(F.key))y.add(F.key);else if(R){let N=!0;for(const A of R)if(!y.has(A.key)){N=!1;break}N?g.add(F.key):g.delete(F.key)}}w.pop()})}return T(C),h}function u(f){return r.value.has(f.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:u}}function aTt(e,t){const n=et(new Set(e.defaultExpandedKeys)),r=et(),i=al();$n(()=>e.currentNodeKey,be=>{r.value=be},{immediate:!0}),$n(()=>e.data,be=>{he(be)},{immediate:!0});const{isIndeterminate:l,isChecked:u,toggleCheckbox:f,getCheckedKeys:v,getCheckedNodes:h,getHalfCheckedKeys:g,getHalfCheckedNodes:y,setChecked:w,setCheckedKeys:C}=rTt(e,i),{doFilter:S,hiddenNodeKeySet:T,isForceHiddenExpandIcon:B}=oTt(e,i),F=Ne(()=>{var be;return((be=e.props)==null?void 0:be.value)||BD.KEY}),R=Ne(()=>{var be;return((be=e.props)==null?void 0:be.children)||BD.CHILDREN}),N=Ne(()=>{var be;return((be=e.props)==null?void 0:be.disabled)||BD.DISABLED}),A=Ne(()=>{var be;return((be=e.props)==null?void 0:be.label)||BD.LABEL}),X=Ne(()=>{const be=n.value,Ae=T.value,Te=[],Ue=i.value&&i.value.treeNodes||[];function Oe(){const De=[];for(let $e=Ue.length-1;$e>=0;--$e)De.push(Ue[$e]);for(;De.length;){const $e=De.pop();if(!!$e&&(Ae.has($e.key)||Te.push($e),be.has($e.key))){const rt=$e.children;if(rt){const ct=rt.length;for(let lt=ct-1;lt>=0;--lt)De.push(rt[lt])}}}}return Oe(),Te}),Z=Ne(()=>X.value.length>0);function z(be){const Ae=new Map,Te=new Map;let Ue=1;function Oe($e,rt=1,ct=void 0){var lt;const ot=[];for(const Fe of $e){const We=$(Fe),Ye={level:rt,key:We,data:Fe};Ye.label=V(Fe),Ye.parent=ct;const Ke=Q(Fe);Ye.disabled=te(Fe),Ye.isLeaf=!Ke||Ke.length===0,Ke&&Ke.length&&(Ye.children=Oe(Ke,rt+1,Ye)),ot.push(Ye),Ae.set(We,Ye),Te.has(rt)||Te.set(rt,[]),(lt=Te.get(rt))==null||lt.push(Ye)}return rt>Ue&&(Ue=rt),ot}const De=Oe(be);return{treeNodeMap:Ae,levelTreeNodeMap:Te,maxLevel:Ue,treeNodes:De}}function Y(be){const Ae=S(be);Ae&&(n.value=Ae)}function Q(be){return be[R.value]}function $(be){return be?be[F.value]:""}function te(be){return be[N.value]}function V(be){return be[A.value]}function K(be){n.value.has(be.key)?M(be):_e(be)}function fe(be){n.value=new Set(be)}function de(be,Ae){t(Mge,be.data,be,Ae),ne(be),e.expandOnClickNode&&K(be),e.showCheckbox&&e.checkOnClickNode&&!be.disabled&&f(be,!u(be),!0)}function ne(be){j(be)||(r.value=be.key,t(Ige,be.data,be))}function le(be,Ae){f(be,Ae)}function _e(be){const Ae=n.value;if(i.value&&e.accordion){const{treeNodeMap:Te}=i.value;Ae.forEach(Ue=>{const Oe=Te.get(Ue);be&&be.level===(Oe==null?void 0:Oe.level)&&Ae.delete(Ue)})}Ae.add(be.key),t(Nge,be.data,be)}function M(be){n.value.delete(be.key),t(Dge,be.data,be)}function P(be){return n.value.has(be.key)}function U(be){return!!be.disabled}function j(be){const Ae=r.value;return!!Ae&&Ae===be.key}function ee(){var be,Ae;if(!!r.value)return(Ae=(be=i.value)==null?void 0:be.treeNodeMap.get(r.value))==null?void 0:Ae.data}function ye(){return r.value}function ie(be){r.value=be}function he(be){Gr(()=>i.value=z(be))}function re(be){var Ae;const Te=Qs(be)?$(be):be;return(Ae=i.value)==null?void 0:Ae.treeNodeMap.get(Te)}return{tree:i,flattenTree:X,isNotEmpty:Z,getKey:$,getChildren:Q,toggleExpand:K,toggleCheckbox:f,isExpanded:P,isChecked:u,isIndeterminate:l,isDisabled:U,isCurrent:j,isForceHiddenExpandIcon:B,handleNodeClick:de,handleNodeCheck:le,getCurrentNode:ee,getCurrentKey:ye,setCurrentKey:ie,getCheckedKeys:v,getCheckedNodes:h,getHalfCheckedKeys:g,getHalfCheckedNodes:y,setChecked:w,setCheckedKeys:C,filter:Y,setData:he,getNode:re,expandNode:_e,collapseNode:M,setExpandedKeys:fe}}var iTt=Zt({name:"ElTreeNodeContent",props:eTt,setup(e){const t=jr(Wne),n=Vn("tree");return()=>{const r=e.node,{data:i}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:i}):oo("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const sTt=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],lTt=Zt({name:"ElTreeNode"}),uTt=Zt({...lTt,props:JSt,emits:nTt,setup(e,{emit:t}){const n=e,r=jr(Wne),i=Vn("tree"),l=Ne(()=>{var y;return(y=r==null?void 0:r.props.indent)!=null?y:16}),u=Ne(()=>{var y;return(y=r==null?void 0:r.props.icon)!=null?y:Bte}),f=y=>
70{t("click",n.node,y)},v=()=>{t("toggle",n.node)},h=y=>{t("check",n.node,y)},g=y=>{var w,C,S,T;(S=(C=(w=r==null?void 0:r.instance)==null?void 0:w.vnode)==null?void 0:C.props)!=null&&S.onNodeContextmenu&&(y.stopPropagation(),y.preventDefault()),r==null||r.ctx.emit(Bge,y,(T=n.node)==null?void 0:T.data,n.node)};return(y,w)=>{var C,S,T;return Ce(),Ie("div",{ref:"node$",class:He([L(i).b("node"),L(i).is("expanded",y.expanded),L(i).is("current",y.current),L(i).is("focusable",!y.disabled),L(i).is("checked",!y.disabled&&y.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":y.expanded,"aria-disabled":y.disabled,"aria-checked":y.checked,"data-key":(C=y.node)==null?void 0:C.key,onClick:Do(f,["stop"]),onContextmenu:g},[ce("div",{class:He(L(i).be("node","content")),style:Pr({paddingLeft:`${(y.node.level-1)*L(l)}px`,height:y.itemSize+"px"})},[L(u)?(Ce(),yn(L(Zr),{key:0,class:He([L(i).is("leaf",!!((S=y.node)!=null&&S.isLeaf)),L(i).is("hidden",y.hiddenExpandIcon),{expanded:!((T=y.node)!=null&&T.isLeaf)&&y.expanded},L(i).be("node","expand-icon")]),onClick:Do(v,["stop"])},{default:Dt(()=>[(Ce(),yn(Fa(L(u))))]),_:1},8,["class","onClick"])):on("v-if",!0),y.showCheckbox?(Ce(),yn(L(Bm),{key:1,"model-value":y.checked,indeterminate:y.indeterminate,disabled:y.disabled,onChange:h,onClick:w[0]||(w[0]=Do(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):on("v-if",!0),gt(L(iTt),{node:y.node},null,8,["node"])],6)],42,sTt)}}});var cTt=vr(uTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const fTt=Zt({name:"ElTreeV2"}),dTt=Zt({...fTt,props:QSt,emits:tTt,setup(e,{expose:t,emit:n}){const r=e,i=g1(),l=Ne(()=>r.itemSize);$a(Wne,{ctx:{emit:n,slots:i},props:r,instance:va()}),$a(hb,void 0);const{t:u}=Ni(),f=Vn("tree"),{flattenTree:v,isNotEmpty:h,toggleExpand:g,isExpanded:y,isIndeterminate:w,isChecked:C,isDisabled:S,isCurrent:T,isForceHiddenExpandIcon:B,handleNodeClick:F,handleNodeCheck:R,toggleCheckbox:N,getCurrentNode:A,getCurrentKey:X,setCurrentKey:Z,getCheckedKeys:z,getCheckedNodes:Y,getHalfCheckedKeys:Q,getHalfCheckedNodes:$,setChecked:te,setCheckedKeys:V,filter:K,setData:fe,getNode:de,expandNode:ne,collapseNode:le,setExpandedKeys:_e}=aTt(r,n);return t({toggleCheckbox:N,getCurrentNode:A,getCurrentKey:X,setCurrentKey:Z,getCheckedKeys:z,getCheckedNodes:Y,getHalfCheckedKeys:Q,getHalfCheckedNodes:$,setChecked:te,setCheckedKeys:V,filter:K,setData:fe,getNode:de,expandNode:ne,collapseNode:le,setExpandedKeys:_e}),(M,P)=>{var U;return Ce(),Ie("div",{class:He([L(f).b(),{[L(f).m("highlight-current")]:M.highlightCurrent}]),role:"tree"},[L(h)?(Ce(),yn(L(Vme),{key:0,"class-name":L(f).b("virtual-list"),data:L(v),total:L(v).length,height:M.height,"item-size":L(l),"perf-mode":M.perfMode},{default:Dt(({data:j,index:ee,style:ye})=>[(Ce(),yn(cTt,{key:j[ee].key,style:Pr(ye),node:j[ee],expanded:L(y)(j[ee]),"show-checkbox":M.showCheckbox,checked:L(C)(j[ee]),indeterminate:L(w)(j[ee]),"item-size":L(l),disabled:L(S)(j[ee]),current:L(T)(j[ee]),"hidden-expand-icon":L(B)(j[ee]),onClick:L(F),onToggle:L(g),onCheck:L(R)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(Ce(),Ie("div",{key:1,class:He(L(f).e("empty-block"))},[ce("span",{class:He(L(f).e("empty-text"))},Zn((U=M.emptyText)!=null?U:L(u)("el.tree.emptyText")),3)],2))],2)}}});var vTt=vr(dTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const hTt=Ca(vTt),Pge=Symbol("uploadContextKey"),pTt="ElUpload";class mTt extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function Eue(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new mTt(r,n.status,t.method,e)}function gTt(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const yTt=e=>{typeof XMLHttpRequest=="undefined"&&Gf(pTt,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const u=l;u.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(u)});const r=new FormData;if(e.data)for(const[l,u]of Object.entries(e.data))Array.isArray(u)?r.append(l,...u):r.append(l,u);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Eue(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Eue(n,e,t));e.onSuccess(gTt(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach((l,u)=>t.setRequestHeader(u,l));else for(const[l,u]of Object.entries(i))jf(u)||t.setRequestHeader(l,String(u));return t.send(r),t},Fge=["text","picture","picture-card"];let bTt=1;const see=()=>Date.now()+bTt++,$ge=hr({action:{type:String,default:"#"},headers:{type:gn(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>uu({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:gn(Array),default:()=>uu([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Fge,default:"text"},httpRequest:{type:gn(Function),default:yTt},disabled:Boolean,limit:Number}),_Tt=hr({...$ge,beforeUpload:{type:gn(Function),default:Ku},beforeRemove:{type:gn(Function)},onRemove:{type:gn(Function),default:Ku},onChange:{type:gn(Function),default:Ku},onPreview:{type:gn(Function),default:Ku},onSuccess:{type:gn(Function),default:Ku},onProgress:{type:gn(Function),default:Ku},onError:{type:gn(Function),default:Ku},onExceed:{type:gn(Function),default:Ku}}),wTt=hr({files:{type:gn(Array),default:()=>uu([])},disabled:{type:Boolean,default:!1},handlePreview:{type:gn(Function),default:Ku},listType:{type:String,values:Fge,default:"text"}}),CTt={remove:e=>!!e},xTt=["onKeydown"],ETt=["src"],STt=["onClick"],TTt=["title"],ATt=["onClick"],kTt=["onClick"],OTt=Zt({name:"ElUploadList"}),MTt=Zt({...OTt,props:wTt,emits:CTt,setup(e,{emit:t}){const{t:n}=Ni(),r=Vn("upload"),i=Vn("icon"),l=Vn("list"),u=w0(),f=et(!1),v=h=>{t("remove",h)};
70return(h,g)=>(Ce(),yn($1e,{tag:"ul",class:He([L(r).b("list"),L(r).bm("list",h.listType),L(r).is("disabled",L(u))]),name:L(l).b()},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(h.files,y=>(Ce(),Ie("li",{key:y.uid||y.name,class:He([L(r).be("list","item"),L(r).is(y.status),{focusing:f.value}]),tabindex:"0",onKeydown:mi(w=>!L(u)&&v(y),["delete"]),onFocus:g[0]||(g[0]=w=>f.value=!0),onBlur:g[1]||(g[1]=w=>f.value=!1),onClick:g[2]||(g[2]=w=>f.value=!1)},[Fn(h.$slots,"default",{file:y},()=>[h.listType==="picture"||y.status!=="uploading"&&h.listType==="picture-card"?(Ce(),Ie("img",{key:0,class:He(L(r).be("list","item-thumbnail")),src:y.url,alt:""},null,10,ETt)):on("v-if",!0),y.status==="uploading"||h.listType!=="picture-card"?(Ce(),Ie("div",{key:1,class:He(L(r).be("list","item-info"))},[ce("a",{class:He(L(r).be("list","item-name")),onClick:Do(w=>h.handlePreview(y),["prevent"])},[gt(L(Zr),{class:He(L(i).m("document"))},{default:Dt(()=>[gt(L(Rhe))]),_:1},8,["class"]),ce("span",{class:He(L(r).be("list","item-file-name")),title:y.name},Zn(y.name),11,TTt)],10,STt),y.status==="uploading"?(Ce(),yn(L(Ime),{key:0,type:h.listType==="picture-card"?"circle":"line","stroke-width":h.listType==="picture-card"?6:2,percentage:Number(y.percentage),style:Pr(h.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):on("v-if",!0)],2)):on("v-if",!0),ce("label",{class:He(L(r).be("list","item-status-label"))},[h.listType==="text"?(Ce(),yn(L(Zr),{key:0,class:He([L(i).m("upload-success"),L(i).m("circle-check")])},{default:Dt(()=>[gt(L(TV))]),_:1},8,["class"])):["picture-card","picture"].includes(h.listType)?(Ce(),yn(L(Zr),{key:1,class:He([L(i).m("upload-success"),L(i).m("check")])},{default:Dt(()=>[gt(L(p7))]),_:1},8,["class"])):on("v-if",!0)],2),L(u)?on("v-if",!0):(Ce(),yn(L(Zr),{key:2,class:He(L(i).m("close")),onClick:w=>v(y)},{default:Dt(()=>[gt(L(Dm))]),_:2},1032,["class","onClick"])),on(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),on(" This is a bug which needs to be fixed "),on(" TODO: Fix the incorrect navigation interaction "),L(u)?on("v-if",!0):(Ce(),Ie("i",{key:3,class:He(L(i).m("close-tip"))},Zn(L(n)("el.upload.deleteTip")),3)),h.listType==="picture-card"?(Ce(),Ie("span",{key:4,class:He(L(r).be("list","item-actions"))},[ce("span",{class:He(L(r).be("list","item-preview")),onClick:w=>h.handlePreview(y)},[gt(L(Zr),{class:He(L(i).m("zoom-in"))},{default:Dt(()=>[gt(L(zte))]),_:1},8,["class"])],10,ATt),L(u)?on("v-if",!0):(Ce(),Ie("span",{key:0,class:He(L(r).be("list","item-delete")),onClick:w=>v(y)},[gt(L(Zr),{class:He(L(i).m("delete"))},{default:Dt(()=>[gt(L(Ihe))]),_:1},8,["class"])],10,kTt))],2)):on("v-if",!0)])],42,xTt))),128)),Fn(h.$slots,"append")]),_:3},8,["class","name"]))}});var Sue=vr(MTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const NTt=hr({disabled:{type:Boolean,default:!1}}),DTt={file:e=>Oa(e)},ITt=["onDrop","onDragover"],zge="ElUploadDrag",RTt=Zt({name:zge}),LTt=Zt({...RTt,props:NTt,emits:DTt,setup(e,{emit:t}){const n=jr(Pge);n||Gf(zge,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Vn("upload"),i=et(!1),l=w0(),u=v=>{if(l.value)return;i.value=!1,v.stopPropagation();const h=Array.from(v.dataTransfer.files),g=n.accept.value;if(!g){t("file",h);return}const y=h.filter(w=>{const{type:C,name:S}=w,T=S.includes(".")?`.${S.split(".").pop()}`:"",B=C.replace(/\/.*$/,"");return g.split(",").map(F=>F.trim()).filter(F=>F).some(F=>F.startsWith(".")?T===F:/\/\*$/.test(F)?B===F.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(F)?C===F:!1)});t("file",y)},f=()=>{l.value||(i.value=!0)};return(v,h)=>(Ce(),Ie("div",{class:He([L(r).b("dragger"),L(r).is("dragover",i.value)]),onDrop:Do(u,["prevent"]),onDragover:Do(f,["prevent"]),onDragleave:h[0]||(h[0]=Do(g=>i.value=!1,["prevent"]))},[Fn(v.$slots,"default")],42,ITt))}});var BTt=vr(LTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const PTt=hr({...$ge,beforeUpload:{type:gn(Function),default:Ku},onRemove:{type:gn(Function),default:Ku},onStart:{type:gn(Function),default:Ku},onSuccess:{type:gn(Function),default:Ku},onProgress:{type:gn(Function),default:Ku},onError:{type:gn(Function),default:Ku},onExceed:{type:gn(Function),default:Ku}}),FTt=["onKeydown"],$Tt=["name","multiple","accept"],zTt=Zt({name:"ElUploadContent",inheritAttrs:!1}),HTt=Zt({...zTt,props:PTt,setup(e,{expose:t}){const n=e,r=Vn("upload"),i=w0(),l=al({}),u=al(),f=S=>{if(S.length===0)return;const{autoUpload:T,limit:B,fileList:F,multiple:R,onStart:N,onExceed:A}=n;if(B&&F.length+S.length>B){A(S,F);return}
70R||(S=S.slice(0,1));for(const X of S){const Z=X;Z.uid=see(),N(Z),T&&v(Z)}},v=async S=>{if(u.value.value="",!n.beforeUpload)return h(S);let T,B={};try{const R=n.data,N=n.beforeUpload(S);B=Qs(n.data)?xH(n.data):n.data,T=await N,Qs(n.data)&&p0(R,B)&&(B=xH(n.data))}catch{T=!1}if(T===!1){n.onRemove(S);return}let F=S;T instanceof Blob&&(T instanceof File?F=T:F=new File([T],S.name,{type:S.type})),h(Object.assign(F,{uid:S.uid}),B)},h=(S,T)=>{const{headers:B,data:F,method:R,withCredentials:N,name:A,action:X,onProgress:Z,onSuccess:z,onError:Y,httpRequest:Q}=n,{uid:$}=S,te={headers:B||{},withCredentials:N,file:S,data:T!=null?T:F,method:R,filename:A,action:X,onProgress:K=>{Z(K,S)},onSuccess:K=>{z(K,S),delete l.value[$]},onError:K=>{Y(K,S),delete l.value[$]}},V=Q(te);l.value[$]=V,V instanceof Promise&&V.then(te.onSuccess,te.onError)},g=S=>{const T=S.target.files;!T||f(Array.from(T))},y=()=>{i.value||(u.value.value="",u.value.click())},w=()=>{y()};return t({abort:S=>{KDe(l.value).filter(S?([B])=>String(S.uid)===B:()=>!0).forEach(([B,F])=>{F instanceof XMLHttpRequest&&F.abort(),delete l.value[B]})},upload:v}),(S,T)=>(Ce(),Ie("div",{class:He([L(r).b(),L(r).m(S.listType),L(r).is("drag",S.drag)]),tabindex:"0",onClick:y,onKeydown:mi(Do(w,["self"]),["enter","space"])},[S.drag?(Ce(),yn(BTt,{key:0,disabled:L(i),onFile:f},{default:Dt(()=>[Fn(S.$slots,"default")]),_:3},8,["disabled"])):Fn(S.$slots,"default",{key:1}),ce("input",{ref_key:"inputRef",ref:u,class:He(L(r).e("input")),name:S.name,multiple:S.multiple,accept:S.accept,type:"file",onChange:g,onClick:T[0]||(T[0]=Do(()=>{},["stop"]))},null,42,$Tt)],42,FTt))}});var Tue=vr(HTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Aue="ElUpload",VTt=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},UTt=(e,t)=>{const n=NAe(e,"fileList",void 0,{passive:!0}),r=w=>n.value.find(C=>C.uid===w.uid);function i(w){var C;(C=t.value)==null||C.abort(w)}function l(w=["ready","uploading","success","fail"]){n.value=n.value.filter(C=>!w.includes(C.status))}const u=(w,C)=>{const S=r(C);!S||(console.error(w),S.status="fail",n.value.splice(n.value.indexOf(S),1),e.onError(w,S,n.value),e.onChange(S,n.value))},f=(w,C)=>{const S=r(C);!S||(e.onProgress(w,S,n.value),S.status="uploading",S.percentage=Math.round(w.percent))},v=(w,C)=>{const S=r(C);!S||(S.status="success",S.response=w,e.onSuccess(w,S,n.value),e.onChange(S,n.value))},h=w=>{jf(w.uid)&&(w.uid=see());const C={name:w.name,percentage:0,status:"ready",size:w.size,raw:w,uid:w.uid};if(e.listType==="picture-card"||e.listType==="picture")try{C.url=URL.createObjectURL(w)}catch(S){S.message,e.onError(S,C,n.value)}n.value=[...n.value,C],e.onChange(C,n.value)},g=async w=>{const C=w instanceof File?r(w):w;C||Gf(Aue,"file to be removed not found");const S=T=>{i(T);const B=n.value;B.splice(B.indexOf(T),1),e.onRemove(T,B),VTt(T)};e.beforeRemove?await e.beforeRemove(C,n.value)!==!1&&S(C):S(C)};function y(){n.value.filter(({status:w})=>w==="ready").forEach(({raw:w})=>{var C;return w&&((C=t.value)==null?void 0:C.upload(w))})}return $n(()=>e.listType,w=>{w!=="picture-card"&&w!=="picture"||(n.value=n.value.map(C=>{const{raw:S,url:T}=C;if(!T&&S)try{C.url=URL.createObjectURL(S)}catch(B){e.onError(B,C,n.value)}return C}))}),$n(n,w=>{for(const C of w)C.uid||(C.uid=see()),C.status||(C.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:l,handleError:u,handleProgress:f,handleStart:h,handleSuccess:v,handleRemove:g,submit:y}},jTt=Zt({name:"ElUpload"}),WTt=Zt({...jTt,props:_Tt,setup(e,{expose:t}){const n=e,r=g1(),i=w0(),l=al(),{abort:u,submit:f,clearFiles:v,uploadFiles:h,handleStart:g,handleError:y,handleRemove:w,handleSuccess:C,handleProgress:S}=UTt(n,l),T=Ne(()=>n.listType==="picture-card"),B=Ne(()=>({...n,fileList:h.value,onStart:g,onProgress:S,onSuccess:C,onError:y,onRemove:w}));return Bl(()=>{h.value.forEach(({url:F})=>{F!=null&&F.startsWith("blob:")&&URL.revokeObjectURL(F)})}),$a(Pge,{accept:Kl(n,"accept")}),t({abort:u,submit:f,clearFiles:v,handleStart:g,handleRemove:w}),(F,R)=>
70(Ce(),Ie("div",null,[L(T)&&F.showFileList?(Ce(),yn(Sue,{key:0,disabled:L(i),"list-type":F.listType,files:L(h),"handle-preview":F.onPreview,onRemove:L(w)},b3({append:Dt(()=>[gt(Tue,Pa({ref_key:"uploadRef",ref:l},L(B)),{default:Dt(()=>[L(r).trigger?Fn(F.$slots,"trigger",{key:0}):on("v-if",!0),!L(r).trigger&&L(r).default?Fn(F.$slots,"default",{key:1}):on("v-if",!0)]),_:3},16)]),_:2},[F.$slots.file?{name:"default",fn:Dt(({file:N})=>[Fn(F.$slots,"file",{file:N})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):on("v-if",!0),!L(T)||L(T)&&!F.showFileList?(Ce(),yn(Tue,Pa({key:1,ref_key:"uploadRef",ref:l},L(B)),{default:Dt(()=>[L(r).trigger?Fn(F.$slots,"trigger",{key:0}):on("v-if",!0),!L(r).trigger&&L(r).default?Fn(F.$slots,"default",{key:1}):on("v-if",!0)]),_:3},16)):on("v-if",!0),F.$slots.trigger?Fn(F.$slots,"default",{key:2}):on("v-if",!0),Fn(F.$slots,"tip"),!L(T)&&F.showFileList?(Ce(),yn(Sue,{key:3,disabled:L(i),"list-type":F.listType,files:L(h),"handle-preview":F.onPreview,onRemove:L(w)},b3({_:2},[F.$slots.file?{name:"default",fn:Dt(({file:N})=>[Fn(F.$slots,"file",{file:N})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):on("v-if",!0)]))}});var GTt=vr(WTt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const KTt=Ca(GTt);var YTt=[dht,xht,qpt,uEt,nmt,umt,Z0e,Cmt,xmt,Z1,ope,zgt,Wgt,a2t,i2t,_yt,iyt,Tyt,Bm,T2t,Dpe,Fyt,rbt,obt,Yyt,Ibt,oht,Wbt,Gbt,Kbt,Ybt,qbt,n3t,d3t,v3t,k3t,vme,V3t,I6t,R6t,L6t,Cme,m0t,g0t,Zr,A_t,xme,Ov,Eme,H_t,s8t,l8t,u8t,c8t,g8t,C5t,k5t,P5t,Y0e,Ime,$pe,V2t,H2t,ewt,awt,Iyt,D3,MC,NH,Y8t,qwt,r9t,o9t,R9t,$9t,Qme,X9t,aCt,iCt,gCt,Ext,Sxt,lEt,EEt,SEt,NI,MEt,bgt,BEt,HEt,VEt,Ch,hSt,OSt,USt,XSt,hTt,KTt];const Yg="ElInfiniteScroll",qTt=50,XTt=200,ZTt=0,QTt={delay:{type:Number,default:XTt},distance:{type:Number,default:ZTt},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Gne=(e,t)=>Object.entries(QTt).reduce((n,[r,i])=>{var l,u;const{type:f,default:v}=i,h=e.getAttribute(`infinite-scroll-${r}`);let g=(u=(l=t[h])!=null?l:h)!=null?u:v;return g=g==="false"?!1:g,g=f(g),n[r]=Number.isNaN(g)?v:g,n},{}),Hge=e=>{const{observer:t}=e[Yg];t&&(t.disconnect(),delete e[Yg].observer)},JTt=(e,t)=>{const{container:n,containerEl:r,instance:i,observer:l,lastScrollTop:u}=e[Yg],{disabled:f,distance:v}=Gne(e,i),{clientHeight:h,scrollHeight:g,scrollTop:y}=r,w=y-u;if(e[Yg].lastScrollTop=y,l||f||w<0)return;let C=!1;if(n===e)C=g-(h+y)<=v;else{const{clientTop:S,scrollHeight:T}=e,B=LAe(e,r);C=y+h>=B+S+T-v}C&&t.call(i)};function $Z(e,t){const{containerEl:n,instance:r}=e[Yg],{disabled:i}=Gne(e,r);i||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):Hge(e))}const eAt={async mounted(e,t){const{instance:n,value:r}=t;Ji(r)||Gf(Yg,"'v-infinite-scroll' binding value must be a function"),await Gr();const{delay:i,immediate:l}=Gne(e,n),u=Lte(e,!0),f=u===window?document.documentElement:u,v=F8(JTt.bind(null,e,r),i);if(!!u){if(e[Yg]={instance:n,container:u,containerEl:f,delay:i,cb:r,onScroll:v,lastScrollTop:f.scrollTop},l){const h=new MutationObserver(F8($Z.bind(null,e,r),qTt));e[Yg].observer=h,h.observe(e,{childList:!0,subtree:!0}),$Z(e,r)}u.addEventListener("scroll",v)}},unmounted(e){const{container:t,onScroll:n}=e[Yg];t==null||t.removeEventListener("scroll",n),Hge(e)},async updated(e){if(!e[Yg])await Gr();else{const{containerEl:t,cb:n,observer:r}=e[Yg];t.clientHeight&&r&&$Z(e,n)}}},lee=eAt;lee.install=e=>{e.directive("InfiniteScroll",lee)};const tAt=lee;function nAt(e){let t;const n=et(!1),r=gi({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(w){r.text=w}function l(){const w=r.parent,C=y.ns;if(!w.vLoadingAddClassList){let S=w.getAttribute("loading-number");S=Number.parseInt(S)-1,S?w.setAttribute("loading-number",S.toString()):(m0(w,C.bm("parent","relative")),w.removeAttribute("loading-number")),m0(w,C.bm("parent","hidden"))}u(),g.unmount()}function u(){var w,C;(C=(w=y.$el)==null?void 0:w.parentNode)==null||C.removeChild(y.$el)}function f(){var w;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(v,400),r.visible=!1,(w=e.closed)==null||w.call(e))}function v(){if(!n.value)return;const w=r.parent;n.value=!1,w.vLoadingAddClassList=void 0,l()}const h=Zt({name:"ElLoading",setup(w,{expose:C}){const{ns:S,zIndex:T}=FV("loading");return C({ns:S,zIndex:T}),()=>{const B=r.spinner||r.svg,F=oo("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...B?{innerHTML:B}:{}},[oo("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),R=r.text?oo("p",{class:S.b("text")},[r.text]):void 0;return oo(Ic,{name:S.b("fade"),onAfterLeave:v},{default:Dt(()=>[ea(gt("div",{style:{backgroundColor:r.background||""},class:[S.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[oo("div",{class:S.b("spinner")},[F,R])]),[[Ti,r.visible]])])})}}}),g=j1e(h),y=g.mount(document.createElement("div"));return{...Dc(r),setText:i,removeElLoadingChild:u,close:f,handleAfterLeave:v,vm:y,get $el(){return y.$el}}}let ez;const uee=function(e={}){if(!_i)return;const t=rAt(e);if(t.fullscreen&&ez)return ez;const n=nAt({...t,closed:()=>{var i;(i=t.closed)==null||i.call(t),t.fullscreen&&(ez=void 0)}});oAt(t,t.parent,n),kue(t,t.parent,n),t.parent.vLoadingAddClassList=()=>kue(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Gr(()=>n.visible.value=t.visible),t.fullscreen&&(ez=n),n},rAt=e=>{var t,n,r,i;let l;return Ga(e.target)?l=(t=document.querySelector(e.target))!=null?t:document.body:l=e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(i=e.visible)!=null?i:!0,target:l}},oAt=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(e.fullscreen)n.originalPosition.value=R8(document.body,"position"),n.originalOverflow.value=R8(document.body,"overflow"),i.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=R8(document.body,"position"),await Gr();
70for(const l of["top","left"]){const u=l==="top"?"scrollTop":"scrollLeft";i[l]=`${e.target.getBoundingClientRect()[l]+document.body[u]+document.documentElement[u]-Number.parseInt(R8(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])i[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=R8(t,"position");for(const[l,u]of Object.entries(i))n.$el.style[l]=u},kue=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?m0(t,r.bm("parent","relative")):ob(t,r.bm("parent","relative")),e.fullscreen&&e.lock?ob(t,r.bm("parent","hidden")):m0(t,r.bm("parent","hidden"))},cee=Symbol("ElLoading"),Oue=(e,t)=>{var n,r,i,l;const u=t.instance,f=w=>Qs(t.value)?t.value[w]:void 0,v=w=>{const C=Ga(w)&&(u==null?void 0:u[w])||w;return C&&et(C)},h=w=>v(f(w)||e.getAttribute(`element-loading-${zAe(w)}`)),g=(n=f("fullscreen"))!=null?n:t.modifiers.fullscreen,y={text:h("text"),svg:h("svg"),svgViewBox:h("svgViewBox"),spinner:h("spinner"),background:h("background"),customClass:h("customClass"),fullscreen:g,target:(r=f("target"))!=null?r:g?void 0:e,body:(i=f("body"))!=null?i:t.modifiers.body,lock:(l=f("lock"))!=null?l:t.modifiers.lock};e[cee]={options:y,instance:uee(y)}},aAt=(e,t)=>{for(const n of Object.keys(t))El(t[n])&&(t[n].value=e[n])},Mue={mounted(e,t){t.value&&Oue(e,t)},updated(e,t){const n=e[cee];t.oldValue!==t.value&&(t.value&&!t.oldValue?Oue(e,t):t.value&&t.oldValue?Qs(t.value)&&aAt(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[cee])==null||t.instance.close()}},Vge={install(e){e.directive("loading",Mue),e.config.globalProperties.$loading=uee},directive:Mue,service:uee},Uge=["success","info","warning","error"],f0=uu({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:_i?document.body:void 0}),iAt=hr({customClass:{type:String,default:f0.customClass},center:{type:Boolean,default:f0.center},dangerouslyUseHTMLString:{type:Boolean,default:f0.dangerouslyUseHTMLString},duration:{type:Number,default:f0.duration},icon:{type:xl,default:f0.icon},id:{type:String,default:f0.id},message:{type:gn([String,Object,Function]),default:f0.message},onClose:{type:gn(Function),required:!1},showClose:{type:Boolean,default:f0.showClose},type:{type:String,values:Uge,default:f0.type},offset:{type:Number,default:f0.offset},zIndex:{type:Number,default:f0.zIndex},grouping:{type:Boolean,default:f0.grouping},repeatNum:{type:Number,default:f0.repeatNum}}),sAt={destroy:()=>!0},Xg=Fee([]),lAt=e=>{const t=Xg.findIndex(i=>i.id===e),n=Xg[t];let r;return t>0&&(r=Xg[t-1]),{current:n,prev:r}},uAt=e=>{const{prev:t}=lAt(e);return t?t.vm.exposed.bottom.value:0},cAt=(e,t)=>Xg.findIndex(r=>
70r.id===e)>0?20:t,fAt=["id"],dAt=["innerHTML"],vAt=Zt({name:"ElMessage"}),hAt=Zt({...vAt,props:iAt,emits:sAt,setup(e,{expose:t}){const n=e,{Close:r}=Hte,{ns:i,zIndex:l}=FV("message"),{currentZIndex:u,nextZIndex:f}=l,v=et(),h=et(!1),g=et(0);let y;const w=Ne(()=>n.type?n.type==="error"?"danger":n.type:"info"),C=Ne(()=>{const z=n.type;return{[i.bm("icon",z)]:z&&V8[z]}}),S=Ne(()=>n.icon||V8[n.type]||""),T=Ne(()=>uAt(n.id)),B=Ne(()=>cAt(n.id,n.offset)+T.value),F=Ne(()=>g.value+B.value),R=Ne(()=>({top:`${B.value}px`,zIndex:u.value}));function N(){n.duration!==0&&({stop:y}=TC(()=>{X()},n.duration))}function A(){y==null||y()}function X(){h.value=!1}function Z({code:z}){z===ao.esc&&X()}return ia(()=>{N(),f(),h.value=!0}),$n(()=>n.repeatNum,()=>{A(),N()}),Yl(document,"keydown",Z),Rv(v,()=>{g.value=v.value.getBoundingClientRect().height}),t({visible:h,bottom:F,close:X}),(z,Y)=>(Ce(),yn(Ic,{name:L(i).b("fade"),onBeforeLeave:z.onClose,onAfterLeave:Y[0]||(Y[0]=Q=>z.$emit("destroy")),persisted:""},{default:Dt(()=>[ea(ce("div",{id:z.id,ref_key:"messageRef",ref:v,class:He([L(i).b(),{[L(i).m(z.type)]:z.type&&!z.icon},L(i).is("center",z.center),L(i).is("closable",z.showClose),z.customClass]),style:Pr(L(R)),role:"alert",onMouseenter:A,onMouseleave:N},[z.repeatNum>1?(Ce(),yn(L(Z0e),{key:0,value:z.repeatNum,type:L(w),class:He(L(i).e("badge"))},null,8,["value","type","class"])):on("v-if",!0),L(S)?(Ce(),yn(L(Zr),{key:1,class:He([L(i).e("icon"),L(C)])},{default:Dt(()=>[(Ce(),yn(Fa(L(S))))]),_:1},8,["class"])):on("v-if",!0),Fn(z.$slots,"default",{},()=>[z.dangerouslyUseHTMLString?(Ce(),Ie(Ur,{key:1},[on(" Caution here, message could've been compromised, never use user's input as message "),ce("p",{class:He(L(i).e("content")),innerHTML:z.message},null,10,dAt)],2112)):(Ce(),Ie("p",{key:0,class:He(L(i).e("content"))},Zn(z.message),3))]),z.showClose?(Ce(),yn(L(Zr),{key:2,class:He(L(i).e("closeBtn")),onClick:Do(X,["stop"])},{default:Dt(()=>[gt(L(r))]),_:1},8,["class","onClick"])):on("v-if",!0)],46,fAt),[[Ti,h.value]])]),_:3},8,["name","onBeforeLeave"]))}});var pAt=vr(hAt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let mAt=1;const jge=e=>{const t=!e||Ga(e)||cu(e)||Ji(e)?{message:e}:e,n={...f0,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ga(n.appendTo)){let r=document.querySelector(n.appendTo);Nm(r)||(r=document.body),n.appendTo=r}return n},gAt=e=>{const t=Xg.indexOf(e);if(t===-1)return;Xg.splice(t,1);const{handler:n}=e;n.close()},yAt=({appendTo:e,...t},n)=>{const r=`message_${mAt++}`,i=t.onClose,l=document.createElement("div"),u={...t,id:r,onClose:()=>{i==null||i(),gAt(g)},onDestroy:()=>{jA(null,l)}},f=gt(pAt,u,Ji(u.message)||cu(u.message)?{default:Ji(u.message)?u.message:()=>u.message}:null);f.appContext=n||a7._context,jA(f,l),e.appendChild(l.firstElementChild);const v=f.component,g={id:r,vnode:f,vm:v,handler:{close:()=>{v.exposed.visible.value=!1}},props:f.component.props};return g},a7=(e={},t)=>{if(!_i)return{close:()=>{}};if($o(yJ.max)&&Xg.length>=yJ.max)return{close:()=>{}};const n=jge(e);if(n.grouping&&Xg.length){const i=Xg.find(({vnode:l})=>{var u;return((u=l.props)==null?void 0:u.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=yAt(n,t);return Xg.push(r),r.handler};Uge.forEach(e=>{a7[e]=(t={},n)=>{const r=jge(t);return a7({...r,type:e},n)}});function bAt(e){for(const t of Xg)(!e||e===t.props.type)&&t.handler.close()}a7.closeAll=bAt;a7._context=null;const wA=Jhe(a7,"$message"),_At=Zt({name:"ElMessageBox",directives:{TrapFocus:tgt},components:{ElButton:Z1,ElFocusTrap:zV,ElInput:Ov,ElOverlay:bne,ElIcon:Zr,...Hte},inheritAttrs:!1,props:{buttonSize:{type:String,validator:MV},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:i,size:l}=FV("message-box",Ne(()=>e.buttonSize)),{t:u}=n,{nextZIndex:f}=r,v=et(!1),h=gi({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:f()}),g=Ne(()=>{const de=h.type;return{[i.bm("icon",de)]:de&&V8[de]}}),y=Lm(),w=Lm(),C=Ne(()=>h.icon||V8[h.type]||""),S=Ne(()=>!!h.message),T=et(),B=et(),F=et(),R=et(),N=et(),A=Ne(()=>h.confirmButtonClass);$n(()=>h.inputValue,async de=>{await Gr(),e.boxType==="prompt"&&de!==null&&te()},{immediate:!0}),$n(()=>v.value,de=>{var ne,le;de&&(e.boxType!=="prompt"&&(h.autofocus?F.value=(le=(ne=N.value)==null?void 0:ne.$el)!=null?le:T.value:F.value=T.value),h.zIndex=f()),e.boxType==="prompt"&&(de?Gr().then(()=>{var _e;R.value&&R.value.$el&&(h.autofocus?F.value=(_e=V())!=null?_e:T.value:F.value=T.value)}):(h.editorErrorMessage="",h.validateError=!1))});const X=Ne(()=>e.draggable);e0e(T,B,X),ia(async()=>{await Gr(),e.closeOnHashChange&&window.addEventListener("hashchange",Z)}),Bl(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",Z)});function Z(){!v.value||(v.value=!1,Gr(()=>{h.action&&t("action",h.action)}))}const z=()=>{e.closeOnClickModal&&$(h.distinguishCancelAndClose?"close":"cancel")},Y=ene(z),Q=de=>{if(h.inputType!=="textarea")return de.preventDefault(),$("confirm")},$=de=>{var ne;e.boxType==="prompt"&&de==="confirm"&&!te()||(h.action=de,h.beforeClose?(ne=h.beforeClose)==null||ne.call(h,de,h,Z):Z())},te=()=>{if(e.boxType==="prompt"){const de=h.inputPattern;if(de&&!de.test(h.inputValue||""))return h.editorErrorMessage=h.inputErrorMessage||u("el.messagebox.error"),h.validateError=!0,!1;const ne=h.inputValidator;if(typeof ne=="function"){const le=ne(h.inputValue);if(le===!1)return h.editorErrorMessage=h.inputErrorMessage||u("el.messagebox.error"),h.validateError=!0,!1;if(typeof le=="string")return h.editorErrorMessage=le,h.validateError=!0,!1}}return h.editorErrorMessage="",h.validateError=!1,!0},V=()=>{const de=R.value.$refs;return de.input||de.textarea},K=()=>{$("close")},fe=()=>{e.closeOnPressEscape&&K()};
70return e.lockScroll&&r0e(v),{...Dc(h),ns:i,overlayEvent:Y,visible:v,hasMessage:S,typeClass:g,contentId:y,inputId:w,btnSize:l,iconComponent:C,confirmButtonClasses:A,rootRef:T,focusStartRef:F,headerRef:B,inputRef:R,confirmRef:N,doClose:Z,handleClose:K,onCloseRequested:fe,handleWrapperClick:z,handleInputEnter:Q,handleAction:$,t:u}}}),wAt=["aria-label","aria-describedby"],CAt=["aria-label"],xAt=["id"];function EAt(e,t,n,r,i,l){const u=Kr("el-icon"),f=Kr("close"),v=Kr("el-input"),h=Kr("el-button"),g=Kr("el-focus-trap"),y=Kr("el-overlay");return Ce(),yn(Ic,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=w=>e.$emit("vanish")),persisted:""},{default:Dt(()=>[ea(gt(y,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Dt(()=>[ce("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:He(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...w)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...w)),onMousedown:t[9]||(t[9]=(...w)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...w)),onMouseup:t[10]||(t[10]=(...w)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...w))},[gt(g,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Dt(()=>
70[ce("div",{ref:"rootRef",class:He([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Pr(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Do(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(Ce(),Ie("div",{key:0,ref:"headerRef",class:He(e.ns.e("header"))},[ce("div",{class:He(e.ns.e("title"))},[e.iconComponent&&e.center?(Ce(),yn(u,{key:0,class:He([e.ns.e("status"),e.typeClass])},{default:Dt(()=>[(Ce(),yn(Fa(e.iconComponent)))]),_:1},8,["class"])):on("v-if",!0),ce("span",null,Zn(e.title),1)],2),e.showClose?(Ce(),Ie("button",{key:0,type:"button",class:He(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=w=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=mi(Do(w=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[gt(u,{class:He(e.ns.e("close"))},{default:Dt(()=>[gt(f)]),_:1},8,["class"])],42,CAt)):on("v-if",!0)],2)):on("v-if",!0),ce("div",{id:e.contentId,class:He(e.ns.e("content"))},[ce("div",{class:He(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Ce(),yn(u,{key:0,class:He([e.ns.e("status"),e.typeClass])},{default:Dt(()=>[(Ce(),yn(Fa(e.iconComponent)))]),_:1},8,["class"])):on("v-if",!0),e.hasMessage?(Ce(),Ie("div",{key:1,class:He(e.ns.e("message"))},[Fn(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Ce(),yn(Fa(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Ce(),yn(Fa(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Dt(()=>[lo(Zn(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):on("v-if",!0)],2),ea(ce("div",{class:He(e.ns.e("input"))},[gt(v,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=w=>e.inputValue=w),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:He({invalid:e.validateError}),onKeydown:mi(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ce("div",{class:He(e.ns.e("errormsg")),style:Pr({visibility:e.editorErrorMessage?"visible":"hidden"})},Zn(e.editorErrorMessage),7)],2),[[Ti,e.showInput]])],10,xAt),ce("div",{class:He(e.ns.e("btns"))},[e.showCancelButton?(Ce(),yn(h,{key:0,loading:e.cancelButtonLoading,class:He([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=w=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=mi(Do(w=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Dt(()=>[lo(Zn(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):on("v-if",!0),ea(gt(h,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:He([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=w=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=mi(Do(w=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Dt(()=>[lo(Zn(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ti,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,wAt)]),_:3},8,["z-index","overlay-class","mask"]),[[Ti,e.visible]])]),_:3})}var SAt=vr(_At,[["render",EAt],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const zI=new Map,TAt=e=>{let t=document.body;return e.appendTo&&(Ga(e.appendTo)&&(t=document.querySelector(e.appendTo)),Nm(e.appendTo)&&(t=e.appendTo),Nm(t)||(t=document.body)),t},AAt=(e,t,n=null)=>{const r=gt(SAt,e,Ji(e.message)||cu(e.message)?{default:Ji(e.message)?e.message:()=>e.message}:null);return r.appContext=n,jA(r,t),TAt(e).appendChild(t.firstElementChild),r.component},kAt=()=>document.createElement("div"),OAt=(e,t)=>{const n=kAt();e.onVanish=()=>{jA(null,n),zI.delete(i)},e.onAction=l=>{const u=zI.get(i);let f;e.showInput?f={value:i.inputValue,action:l}:f=l,e.callback?e.callback(f,r.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?u.reject("close"):u.reject("cancel"):u.resolve(f)};const r=AAt(e,n,t),i=r.proxy;for(const l in e)J1(e,l)&&!J1(i.$props,l)&&(i[l]=e[l]);return i.visible=!0,i};function b7(e,t=null){if(!_i)return Promise.reject();let n;return Ga(e)||cu(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const l=OAt(e,t!=null?t:b7._context);zI.set(l,{options:e,callback:n,resolve:r,reject:i})})}const MAt=["alert","confirm","prompt"],NAt={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};
70MAt.forEach(e=>{b7[e]=DAt(e)});function DAt(e){return(t,n,r,i)=>{let l="";return Qs(n)?(r=n,l=""):Vd(n)?l="":l=n,b7(Object.assign({title:l,message:t,type:"",...NAt[e]},r,{boxType:e}),i)}}b7.close=()=>{zI.forEach((e,t)=>{t.doClose()}),zI.clear()};b7._context=null;const A8=b7;A8.install=e=>{A8._context=e._context,e.config.globalProperties.$msgbox=A8,e.config.globalProperties.$messageBox=A8,e.config.globalProperties.$alert=A8.alert,e.config.globalProperties.$confirm=A8.confirm,e.config.globalProperties.$prompt=A8.prompt};const IAt=A8,Wge=["success","info","warning","error"],RAt=hr({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:xl},id:{type:String,default:""},message:{type:gn([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:gn(Function),default:()=>{}},onClose:{type:gn(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Wge,""],default:""},zIndex:Number}),LAt={destroy:()=>!0},BAt=["id"],PAt=["textContent"],FAt={key:0},$At=["innerHTML"],zAt=Zt({name:"ElNotification"}),HAt=Zt({...zAt,props:RAt,emits:LAt,setup(e,{expose:t}){const n=e,{ns:r,zIndex:i}=FV("notification"),{nextZIndex:l,currentZIndex:u}=i,{Close:f}=Zhe,v=et(!1);let h;const g=Ne(()=>{const N=n.type;return N&&V8[n.type]?r.m(N):""}),y=Ne(()=>n.type&&V8[n.type]||n.icon),w=Ne(()=>n.position.endsWith("right")?"right":"left"),C=Ne(()=>n.position.startsWith("top")?"top":"bottom"),S=Ne(()=>{var N;return{[C.value]:`${n.offset}px`,zIndex:(N=n.zIndex)!=null?N:u.value}});function T(){n.duration>0&&({stop:h}=TC(()=>{v.value&&F()},n.duration))}function B(){h==null||h()}function F(){v.value=!1}function R({code:N}){N===ao.delete||N===ao.backspace?B():N===ao.esc?v.value&&F():T()}return ia(()=>{T(),l(),v.value=!0}),Yl(document,"keydown",R),t({visible:v,close:F}),(N,A)=>(Ce(),yn(Ic,{name:L(r).b("fade"),onBeforeLeave:N.onClose,onAfterLeave:A[1]||(A[1]=X=>N.$emit("destroy")),persisted:""},{default:Dt(()=>[ea(ce("div",{id:N.id,class:He([L(r).b(),N.customClass,L(w)]),style:Pr(L(S)),role:"alert",onMouseenter:B,onMouseleave:T,onClick:A[0]||(A[0]=(...X)=>N.onClick&&N.onClick(...X))},[L(y)?(Ce(),yn(L(Zr),{key:0,class:He([L(r).e("icon"),L(g)])},{default:Dt(()=>[(Ce(),yn(Fa(L(y))))]),_:1},8,["class"])):on("v-if",!0),ce("div",{class:He(L(r).e("group"))},[ce("h2",{class:He(L(r).e("title")),textContent:Zn(N.title)},null,10,PAt),ea(ce("div",{class:He(L(r).e("content")),style:Pr(N.title?void 0:{margin:0})},[Fn(N.$slots,"default",{},()=>[N.dangerouslyUseHTMLString?(Ce(),Ie(Ur,{key:1},[on(" Caution here, message could've been compromised, never use user's input as message "),ce("p",{innerHTML:N.message},null,8,$At)],2112)):(Ce(),Ie("p",FAt,Zn(N.message),1))])],6),[[Ti,N.message]]),N.showClose?(Ce(),yn(L(Zr),{key:0,class:He(L(r).e("closeBtn")),onClick:Do(F,["stop"])},{default:Dt(()=>[gt(L(f))]),_:1},8,["class","onClick"])):on("v-if",!0)],2)],46,BAt),[[Ti,v.value]])]),_:3},8,["name","onBeforeLeave"]))}});var VAt=vr(HAt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const zH={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},fee=16;let UAt=1;const i7=function(e={},t=null){if(!_i)return{close:()=>{}};(typeof e=="string"||cu(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;zH[n].forEach(({vm:g})=>{var y;r+=(((y=g.el)==null?void 0:y.offsetHeight)||0)+fee}),r+=fee;const i=`notification_${UAt++}`,l=e.onClose,u={...e,offset:r,id:i,onClose:()=>{jAt(i,n,l)}};let f=document.body;Nm(e.appendTo)?f=e.appendTo:Ga(e.appendTo)&&(f=document.querySelector(e.appendTo)),Nm(f)||(f=document.body);const v=document.createElement("div"),h=gt(VAt,u,cu(u.message)?{default:()=>u.message}:null);return h.appContext=t!=null?t:i7._context,h.props.onDestroy=()=>{jA(null,v)},jA(h,v),zH[n].push({vm:h}),f.appendChild(v.firstElementChild),{close:()=>{h.component.exposed.visible.value=!1}}};
70Wge.forEach(e=>{i7[e]=(t={})=>((typeof t=="string"||cu(t))&&(t={message:t}),i7({...t,type:e}))});function jAt(e,t,n){const r=zH[t],i=r.findIndex(({vm:h})=>{var g;return((g=h.component)==null?void 0:g.props.id)===e});if(i===-1)return;const{vm:l}=r[i];if(!l)return;n==null||n(l);const u=l.el.offsetHeight,f=t.split("-")[0];r.splice(i,1);const v=r.length;if(!(v<1))for(let h=i;h<v;h++){const{el:g,component:y}=r[h].vm,w=Number.parseInt(g.style[f],10)-u-fee;y.props.offset=w}}function WAt(){for(const e of Object.values(zH))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}i7.closeAll=WAt;i7._context=null;const GAt=Jhe(i7,"$notify");var KAt=[tAt,Vge,wA,IAt,GAt,Dme],YAt=iht([...YTt,...KAt]),qAt={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};const XAt={data(){return{url:"",percent:-1}},props:{modelValue:String},created(){this.modelValue!=null&&(this.url=this.modelValue),this.$watch(()=>this.modelValue,(e,t)=>{this.url=e})},methods:{beforeUpload(e){var t=e.name,n=t.substring(t.lastIndexOf(".")+1),r=["jpg","jpeg","png","gif","ico","bmp"];if(r.indexOf(n)==-1)return this.$message.error("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u56FE\u7247\u6587\u4EF6"),!1},uploadSuccess(e){this.percent=-1,e.code==1?(this.url=e.path,this.$emit("update:modelValue",this.url)):this.$message.error(e.msg)},uploadProgress(e,t,n){this.percent=e.percent.toFixed(2)},deleteImage(){this.url="",this.$emit("update:modelValue",this.url)}}},ZAt=e=>(pb("data-v-728e854d"),e=e(),mb(),e),QAt={class:"imageUpload"},JAt=ZAt(()=>ce("div",{class:"choose"},"\u9009\u62E9\u56FE\u7247",-1)),e7t={key:0,class:"img"},t7t=["src"];function n7t(e,t,n,r,i,l){const u=Kr("el-progress"),f=Kr("el-upload"),v=Kr("el-link");return Ce(),Ie("div",QAt,[gt(f,{action:"/file/upload?fileType=1",accept:"image/*","show-file-list":!1,"before-upload":l.beforeUpload,"on-success":l.uploadSuccess,"on-progress":l.uploadProgress},{default:Dt(()=>[JAt,i.percent!=-1?(Ce(),yn(u,{key:0,percentage:i.percent},null,8,["percentage"])):on("",!0)]),_:1},8,["before-upload","on-success","on-progress"]),e.$helper.isNullOrEmpty(i.url)?on("",!0):(Ce(),Ie("div",e7t,[gt(v,{href:i.url,target:"_blank"},{default:Dt(()=>
70[ce("img",{src:i.url},null,8,t7t)]),_:1},8,["href"]),ce("span",{class:"close",onClick:t[0]||(t[0]=h=>l.deleteImage())},"x")]))])}var r7t=tv(XAt,[["render",n7t],["__scopeId","data-v-728e854d"]]);const o7t={data(){return{url:"",percent:-1}},props:{modelValue:String,accept:{type:String,default:""}},created(){this.modelValue!=null&&(this.url=this.modelValue),this.$watch(()=>this.modelValue,(e,t)=>{this.url=e})},methods:{uploadSuccess(e){this.percent=-1,e.code==1?(this.url=e.path,this.$emit("update:modelValue",this.url)):this.$message.error(e.msg)},uploadProgress(e,t,n){this.percent=e.percent.toFixed(2)},deleteFile(){this.url="",this.$emit("update:modelValue",this.url)}}},a7t=e=>(pb("data-v-47aaeeae"),e=e(),mb(),e),i7t={class:"fileUpload"},s7t=a7t(()=>ce("div",{class:"choose"},"\u9009\u62E9\u6587\u4EF6",-1)),l7t={key:0,class:"file"};function u7t(e,t,n,r,i,l){const u=Kr("el-progress"),f=Kr("el-upload"),v=Kr("el-link");return Ce(),Ie("div",i7t,[gt(f,{action:"/file/upload?fileType=2",accept:n.accept,"show-file-list":!1,"on-success":l.uploadSuccess,"on-progress":l.uploadProgress},{default:Dt(()=>[s7t,i.percent!=-1?(Ce(),yn(u,{key:0,percentage:i.percent},null,8,["percentage"])):on("",!0)]),_:1},8,["accept","on-success","on-progress"]),e.$helper.isNullOrEmpty(i.url)?on("",!0):(Ce(),Ie("div",l7t,[gt(v,{href:i.url,target:"_blank"},{default:Dt(()=>[lo(Zn(i.url.substr(i.url.lastIndexOf("/")+1)),1)]),_:1},8,["href"]),ce("span",{class:"close",onClick:t[0]||(t[0]=h=>l.deleteFile())},"x")]))])}var c7t=tv(o7t,[["render",u7t],["__scopeId","data-v-47aaeeae"]]);const f7t={data(){return{fileList:[],percent:-1,isUpdateModel:!1}},props:{modelValue:String,readonly:{type:Boolean,default:!1}},created(){this.$helper.isNullOrEmpty(this.modelValue)?this.fileList=[]:this.fileList=JSON.parse(this.modelValue),this.$watch(()=>this.modelValue,(e,t)=>{this.isUpdateModel||(this.$helper.isNullOrEmpty(e)?this.fileList=[]:this.fileList=JSON.parse(e))})},methods:{beforeUpload(e){var t=e.name,n=t.substring(t.lastIndexOf(".")+1),r=["jpg","jpeg","png","gif","ico","bmp"];if(r.indexOf(n)==-1)return this.$message.error("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u56FE\u7247\u6587\u4EF6"),!1},uploadSuccess(e){this.percent=-1,this.isUpdateModel=!0,e.code==1?(this.fileList.push({url:e.path}),this.$emit("update:modelValue",JSON.stringify(this.fileList))):this.$message.error(e.msg),this.$nextTick(()=>{this.showContent=!0})},uploadProgress(e,t,n){this.percent=e.percent.toFixed(2)},moveUp(e){if(e>0){var t=this.fileList[e];this.fileList.splice(e,1),this.fileList.splice(e-1,0,t),this.$emit("update:modelValue",JSON.stringify(this.fileList))}},moveDown(e){if(e<this.fileList.length-1){var t=this.fileList[e];this.fileList.splice(e,1),this.fileList.splice(e+1,0,t),this.$emit("update:modelValue",JSON.stringify(this.fileList))}},moveDelete(e){this.fileList.splice(e,1),this.$emit("update:modelValue",JSON.stringify(this.fileList))}}},d7t=e=>(pb("data-v-16008fd7"),e=e(),mb(),e),v7t={class:"muchImageUpload"},h7t=d7t(()=>ce("div",{class:"choose"},"\u9009\u62E9\u56FE\u7247",-1)),p7t={class:"itemList"},m7t={class:"image-item"},g7t={class:"img-wrap"},y7t={class:"ope-wrap"},b7t=lo("\u5220\u9664"),_7t=lo("\u4E0A\u79FB"),w7t=lo("\u4E0B\u79FB");function C7t(e,t,n,r,i,l){const u=Kr("el-progress"),f=Kr("el-upload"),v=Kr("el-image"),h=Kr("el-button"),g=Kr("el-popconfirm");return Ce(),Ie("div",v7t,[n.readonly?(Ce(!0),Ie(Ur,{key:1},La(i.fileList,(y,w)=>(Ce(),yn(v,{src:y.url,"preview-src-list":i.fileList.map(C=>C.url),"initial-index":w,fit:"contain","preview-teleported":!0,style:{width:"60px",height:"60px",border:"1px solid #e2e2e2","border-radius":"2px",margin:"2px 6px 2px 0"}},null,8,["src","preview-src-list","initial-index"]))),256)):(Ce(),Ie(Ur,{key:0},[gt(f,{action:"/file/upload?fileType=1",accept:"image/*",multiple:"","show-file-list":!1,"before-upload":l.beforeUpload,"on-success":l.uploadSuccess,"on-progress":l.uploadProgress},{default:Dt(()=>[h7t,i.percent!=-1?(Ce(),yn(u,{key:0,percentage:i.percent},null,8,["percentage"])):on("",!0)]),_:1},8,["before-upload","on-success","on-progress"]),ce("div",p7t,[(Ce(!0),Ie(Ur,null,La(i.fileList,(y,w)=>(Ce(),Ie("div",m7t,[ce("div",g7t,[gt(v,{src:y.url,"preview-src-list":i.fileList.map(C=>C.url),"initial-index":w,fit:"contain","preview-teleported":!0,style:{width:"100px",height:"100px"}},null,8,["src","preview-src-list","initial-index"])]),ce("div",y7t,[gt(g,{title:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u56FE\u7247\u5417\uFF1F",width:"220",onConfirm:C=>l.moveDelete(w)},{reference:Dt(()=>[gt(h,{link:"",size:"small",type:"danger"},{default:Dt(()=>[b7t]),_:1})]),_:2},1032,["onConfirm"]),gt(h,{link:"",size:"small",type:"primary",onClick:C=>l.moveUp(w)},{default:Dt(()=>[_7t]),_:2},1032,["onClick"]),gt(h,{link:"",size:"small",type:"primary",onClick:C=>l.moveDown(w)},{default:Dt(()=>[w7t]),_:2},1032,["onClick"])])]))),256))])],64))])}var x7t=tv(f7t,[["render",C7t],["__scopeId","data-v-16008fd7"]]);const E7t={data(){return{fileList:[],percent:-1,isUpdateModel:!1}},props:{modelValue:String,readonly:{type:Boolean,default:!1}},created(){this.$helper.isNullOrEmpty(this.modelValue)?this.fileList=[]:this.fileList=JSON.parse(this.modelValue),this.$watch(()=>this.modelValue,(e,t)=>{this.isUpdateModel||(this.$helper.isNullOrEmpty(e)?this.fileList=[]:this.fileList=JSON.parse(e))})},methods:{uploadSuccess(e){this.percent=-1,this.isUpdateModel=!0,e.code==1?(this.fileList.push({name:e.name,url:e.path}),this.$emit("update:modelValue",JSON.stringify(this.fileList))):this.$message.error(e.msg),this.$nextTick(()=>{this.showContent=!0})},uploadProgress(e,t,n){this.percent=e.percent.toFixed(2)},moveUp(e){if(e>0){var t=this.fileList[e];this.fileList.splice(e,1),this.fileList.splice(e-1,0,t),this.$emit("update:modelValue",JSON.stringify(this.fileList))}},moveDown(e){if(e<this.fileList.length-1){var t=this.fileList[e];this.fileList.splice(e,1),this.fileList.splice(e+1,0,t),this.$emit("update:modelValue",JSON.stringify(this.fileList))}},moveDelete(e){this.fileList.splice(e,1),this.$emit("update:modelValue",JSON.stringify(this.fileList))}}},S7t=e=>(pb("data-v-1e948f5a"),e=e(),mb(),e),T7t={class:"muchFileUpload"},A7t=S7t(()=>ce("div",{class:"choose"},"\u9009\u62E9\u6587\u4EF6",-1)),k7t={class:"itemList"},O7t={class:"file-wrap"},M7t={class:"ope-wrap"},N7t=lo("\u5220\u9664"),D7t=lo("\u4E0A\u79FB"),I7t=lo("\u4E0B\u79FB");function R7t(e,t,n,r,i,l){const u=Kr("el-progress"),f=Kr("el-upload"),v=Kr("el-link"),h=Kr("el-button"),g=Kr("el-popconfirm");return Ce(),Ie("div",T7t,[n.readonly?(Ce(!0),Ie(Ur,{key:1},La(i.fileList,(y,w)=>(Ce(),Ie("div",null,[gt(v,{href:y.url,target:"_blank"},{default:Dt(()=>[lo(Zn(y.url.substr(y.url.lastIndexOf("/")+1)),1)]),_:2},1032,["href"])]))),256)):(Ce(),Ie(Ur,{key:0},[gt(f,{action:"/file/upload?fileType=2",multiple:"","show-file-list":!1,"on-success":l.uploadSuccess,"on-progress":l.uploadProgress},{default:Dt(()=>[A7t,i.percent!=-1?(Ce(),yn(u,{key:0,percentage:i.percent},null,8,["percentage"])):on("",!0)]),_:1},8,["on-success","on-progress"]),ce("div",k7t,[(Ce(!0),Ie(Ur,null,La(i.fileList,(y,w)=>(Ce(),Ie("div",null,[ce("div",O7t,[gt(v,{href:y.url,target:"_blank",title:y.url.substr(y.url.lastIndexOf("/")+1)},{default:Dt(()=>[lo(Zn(y.url.substr(y.url.lastIndexOf("/")+1)),1)]),_:2},1032,["href","title"])]),ce("div",M7t,[gt(g,{title:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u5F53\u524D\u6587\u4EF6\u5417\uFF1F",width:"220",onConfirm:C=>l.moveDelete(w)},{reference:Dt(()=>[gt(h,{link:"",size:"small",type:"danger"},{default:Dt(()=>[N7t]),_:1})]),_:2},1032,["onConfirm"]),gt(h,{link:"",size:"small",type:"primary",onClick:C=>l.moveUp(w)},{default:Dt(()=>[D7t]),_:2},1032,["onClick"]),gt(h,{link:"",size:"small",type:"primary",onClick:C=>l.moveDown(w)},{default:Dt(()=>[I7t]),_:2},1032,["onClick"])])]))),256))])],64))])}var L7t=tv(E7t,[["render",R7t],["__scopeId","data-v-1e948f5a"]]),B7t=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],P7t=function(e){return B7t.map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase())!==-1},F7t=function(e,t,n){Object.keys(t).filter(P7t).forEach(function(r){var i=t[r];typeof i=="function"&&(r==="onInit"?i(e,n):n.on(r.substring(2),function(l){return i(l,n)}))})},$7t=function(e,t,n,r){var i=e.modelEvents?e.modelEvents:null,l=Array.isArray(i)?i.join(" "):i;$n(r,function(u,f){n&&typeof u=="string"&&u!==f&&u!==n.getContent({format:e.outputFormat})&&n.setContent(u)}),n.on(l||"change input undo redo",function(){t.emit("update:modelValue",n.getContent({format:e.outputFormat}))})},z7t=function(e,t,n,r,i,l){r.setContent(l()),n.attrs["onUpdate:modelValue"]&&$7t(t,n,r,i),F7t(e,n.attrs,r)},Nue=0,Gge=function(e){var t=Date.now(),n=Math.floor(Math.random()*1e9);return Nue++,e+"_"+n+Nue+String(t)},H7t=function(e){return e!==null&&e.tagName.toLowerCase()==="textarea"},Due=function(e){return typeof e=="undefined"||e===""?[]:Array.isArray(e)?e:e.split(" ")},V7t=function(e,t){return Due(e).concat(Due(t))},U7t=function(e){return e==null},Iue=function(){return{listeners:[],scriptId:Gge("tiny-script"),scriptLoaded:!1}},j7t=function(){var e=Iue(),t=function(i,l,u,f){var v=l.createElement("script");v.referrerPolicy="origin",v.type="application/javascript",v.id=i,v.src=u;var h=function(){v.removeEventListener("load",h),f()};v.addEventListener("load",h),l.head&&l.head.appendChild(v)},n=function(i,l,u){e.scriptLoaded?u():(e.listeners.push(u),i.getElementById(e.scriptId)||t(e.scriptId,i,l,function(){e.listeners.forEac
70h(function(f){return f()}),e.scriptLoaded=!0}))},r=function(){e=Iue()};return{load:n,reinitialize:r}},W7t=j7t(),G7t=function(){return typeof window!="undefined"?window:global},W9=function(){var e=G7t();return e&&e.tinymce?e.tinymce:null},K7t={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return e==="html"||e==="text"}}},Xy=globalThis&&globalThis.__assign||function(){return Xy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xy.apply(this,arguments)},Y7t=function(e,t,n,r){return e(r||"div",{id:t,ref:n})},q7t=function(e,t,n){return e("textarea",{id:t,visibility:"hidden",ref:n})},zZ={selector:void 0,target:void 0},X7t=Zt({props:K7t,setup:function(e,t){var n=e.init?Xy(Xy({},e.init),zZ):Xy({},zZ),r=Dc(e),i=r.disabled,l=r.modelValue,u=r.tagName,f=et(null),v=null,h=e.id||Gge("tiny-vue"),g=e.init&&e.init.inline||e.inline,y=!!t.attrs["onUpdate:modelValue"],w=!0,C=e.initialValue?e.initialValue:"",S="",T=function(R){return y?function(){return l!=null&&l.value?l.value:""}:function(){return R?C:S}},B=function(){var R=T(w),N=Xy(Xy({},n),{readonly:e.disabled,target:f.value,plugins:V7t(n.plugins,e.plugins),toolbar:e.toolbar||n.toolbar,inline:g,setup:function(A){v=A,A.on("init",function(X){return z7t(X,e,t,A,l,R)}),typeof n.setup=="function"&&n.setup(A)}});H7t(f.value)&&(f.value.style.visibility=""),W9().init(N),w=!1};$n(i,function(R){var N;v!==null&&(typeof((N=v.mode)===null||N===void 0?void 0:N.set)=="function"?v.mode.set(R?"readonly":"design"):v.setMode(R?"readonly":"design"))}),$n(u,function(R){var N;y||(S=v.getContent()),(N=W9())===null||N===void 0||N.remove(v),Gr(function(){return B()})}),ia(function(){if(W9()!==null)B();else if(f.value&&f.value.ownerDocument){var R=e.cloudChannel?e.cloudChannel:"6",N=e.apiKey?e.apiKey:"no-api-key",A=U7t(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(N,"/tinymce/").concat(R,"/tinymce.min.js"):e.tinymceScriptSrc;W7t.load(f.value.ownerDocument,A,B)}}),Bl(function(){W9()!==null&&W9().remove(v)}),g||(Qde(function(){w||B()}),Gee(function(){var R;y||(S=v.getContent()),(R=W9())===null||R===void 0||R.remove(v)}));var F=function(R){var N;S=v.getContent(),(N=W9())===null||N===void 0||N.remove(v),n=Xy(Xy(Xy({},n),R),zZ),Gr(function(){return B()})};return t.expose({rerender:F,getEditor:function(){return v}}),function(){return g?Y7t(oo,h,f,e.tagName):q7t(oo,h,f)}}}),Kge={exports:{}};(function(e){(function(){var t=function(o){if(o===null)return"null";if(o===void 0)return"undefined";var s=typeof o;return s==="object"&&(Array.prototype.isPrototypeOf(o)||o.constructor&&o.constructor.name==="Array")?"array":s==="object"&&(String.prototype.isPrototypeOf(o)||o.constructor&&o.constructor.name==="String")?"string":s},n=function(o){return["undefined","boolean","number","string","function","xml","null"].indexOf(o)!==-1},r=function(o,s){var d=Array.prototype.slice.call(o);return d.sort(s)},i=function(o,s){return l(function(d,m){return o.eq(s(d),s(m))})},l=function(o){return{eq:o}},u=l(function(o,s){return o===s}),f=u,v=function(o){return l(function(s,d){if(s.length!==d.length)return!1;for(var m=s.length,E=0;E<m;E++)if(!o.eq(s[E],d[E]))return!1;return!0})},h=function(o,s){return i(v(o),function(d){return r(d,s)})},g=function(o){return l(function(s,d){var m=Object.keys(s),E=Object.keys(d);if(!h(f).eq(m,E))return!1;for(var D=m.length,J=0;J<D;J++){var ue=m[J];if(!o.eq(s[ue],d[ue]))return!1}return!0})},y=l(function(o,s){if(o===s)return!0;var d=t(o),m=t(s);return d!==m?!1:n(d)?o===s:d==="array"?v(y).eq(o,s):d==="object"?g(y).eq(o,s):!1}),w=function(o){var s=typeof o;return o===null?"null":s==="object"&&(Array.prototype.isPrototypeOf(o)||o.constructor&&o.constructor.name==="Array")?"array":s==="object"&&(String.prototype.isPrototypeOf(o)||o.constructor&&o.constructor.name==="String")?"string":s},C=function(o){return function(s){return w(s)===o}},S=function(o){return function(s){return typeof s===o}},T=function(o){return function(s){return o===s}},B=C("string"),F=C("object"),R=C("array"),N=T(null),A=S("boolean"),X=T(void 0),Z=function(o){return o==null},z=function(o){return!Z(o)},Y=S("function"),Q=S("number"),$=function(){},te=function(o,s){return function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return o(s.apply(null,d))}},V=function(o,s){return function(d){return o(s(d))}},K=function(o){return function(){return o}},fe=function(o){return o},de=function(o,s){return o===s};function ne(o){for(var s=[],d=1;d<arguments.length;d++)s[d-1]=arguments[d];return function(){for(var m=[],E=0;E<arguments.length;E++)m[E]=arguments[E];var D=s.concat(m);return o.apply(null,D)}}var le=function(o){return function(s){return!o(s)}},_e=function(o){return function(){throw new Error(o)}},M=function(o){return o()},P=function(o){o()},U=K(!1),j=K(!0),ee=function(){return ye},ye=function(){var o=function(m){return m()},s=fe,d={fold:function(m,E){return m()},isSome:U,isNone:j,getOr:s,getOrThunk:o,getOrDie:function(m){throw new Error(m||"error: getOrDie called on none.")},getOrNull:K(null),getOrUndefined:K(void 0),or:s,orThunk:o,map:ee,each:$,bind:ee,exists:U,forall:j,filter:function(){return ee()},toArray:function(){return[]},toString:K("none()")};return d}(),ie=function(o){var s=K(o),d=function(){return E},m=function(D){return D(o)},E={fold:function(D,J){return J(o)},isSome:j,isNone:U,getOr:s,getOrThunk:s,getOrDie:s,getOrNull:s,getOrUndefined:s,or:d,orThunk:d,map:function(D){return ie(D(o))},each:function(D){D(o)},bind:m,exists:m,forall:m,filter:function(D){return D(o)?E:ye},toArray:function(){return[o]},toString:function(){return"some("+o+")"}};return E},he=function(o){return o==null?ye:ie(o)},re={some:ie,none:ee,from:he},be=Array.prototype.slice,Ae=Array.prototype.indexOf,Te=Array.prototype.push,Ue=function(o,s){return Ae.call(o,s)},Oe=function(o,s){var d=Ue(o,s);return d===-1?re.none():re.some(d)},De=function(o,s){return Ue(o,s)>-1},$e=function(o,s){for(var d=0,m=o.length;d<m;d++){var E=o[d];if(s(E,d))return!0}return!1},rt=function(o,s){for(var d=o.length,m=new Array(d),E=0;E<d;E++){var D=o[E];m[E]=s(D,E)}return m},ct=function(o,s){for(var d=0,m=o.length;d<m;d++){var E=o[d];s(E,d)}},lt=function(o,s){for(var d=o.length-1;d>=0;d--){var m=o[d];s(m,d)}},ot=function(o,s){for(var d=[],m=[],E=0,D=o.length;E<D;E++){var J=o[E],ue=s(J,E)?d:m;ue.push(J)}return{pass:d,fail:m}},Fe=function(o,s){for(var d=[],m=0,E=o.length;m<E;m++){var D=o[m];s(D,m)&&d.push(D)}return d},We=function(o,s,d){return lt(o,function(m,E){d=s(d,m,E)}),d},Ye=function(o,s,d){return ct(o,function(m,E){d=s(d,m,E)}),d},Ke=function(o,s,d){for(var m=0,E=o.length;m<E;m++){var D=o[m];if(s(D,m))return re.some(D);if(d(D,m))break}return re.none()},mt=function(o,s){return Ke(o,s,U)},Ct=function(o,s){for(var d=0,m=o.length;d<m;d++){var E=o[d];if(s(E,d))return re.some(d)}return re.none()},bt=function(o){for(var s=[],d=0,m=o.length;d<m;++d){if(!R(o[d]))throw new Error("Arr.flatten item "+d+" was not an array, input
70: "+o);Te.apply(s,o[d])}return s},tn=function(o,s){return bt(rt(o,s))},Ft=function(o,s){for(var d=0,m=o.length;d<m;++d){var E=o[d];if(s(E,d)!==!0)return!1}return!0},It=function(o){var s=be.call(o,0);return s.reverse(),s},Et=function(o,s){return Fe(o,function(d){return!De(s,d)})},At=function(o,s){for(var d={},m=0,E=o.length;m<E;m++){var D=o[m];d[String(D)]=s(D,m)}return d},vt=function(o,s){var d=be.call(o,0);return d.sort(s),d},Tt=function(o,s){return s>=0&&s<o.length?re.some(o[s]):re.none()},Wt=function(o){return Tt(o,0)},xt=function(o){return Tt(o,o.length-1)},at=Y(Array.from)?Array.from:function(o){return be.call(o)},_t=function(o,s){for(var d=0;d<o.length;d++){var m=s(o[d],d);if(m.isSome())return m}return re.none()},en=Object.keys,An=Object.hasOwnProperty,Vt=function(o,s){for(var d=en(o),m=0,E=d.length;m<E;m++){var D=d[m],J=o[D];s(J,D)}},_n=function(o,s){return Mt(o,function(d,m){return{k:m,v:s(d,m)}})},Mt=function(o,s){var d={};return Vt(o,function(m,E){var D=s(m,E);d[D.k]=D.v}),d},pn=function(o){return function(s,d){o[d]=s}},En=function(o,s,d,m){var E={};return Vt(o,function(D,J){(s(D,J)?d:m)(D,J)}),E},zn=function(o,s){var d={},m={};return En(o,s,pn(d),pn(m)),{t:d,f:m}},nn=function(o,s){var d={};return En(o,s,pn(d),$),d},Yn=function(o,s){var d=[];return Vt(o,function(m,E){d.push(s(m,E))}),d},qr=function(o){return Yn(o,fe)},Br=function(o,s){return io(o,s)?re.from(o[s]):re.none()},io=function(o,s){return An.call(o,s)},xa=function(o,s){return io(o,s)&&o[s]!==void 0&&o[s]!==null},Di=function(o,s,d){return d===void 0&&(d=y),g(d).eq(o,s)},la=Array.isArray,Na=function(o){if(la(o))return o;for(var s=[],d=0,m=o.length;d<m;d++)s[d]=o[d];return s},Bi=function(o,s,d){var m,E;if(!o)return!1;if(d=d||o,o.length!==void 0){for(m=0,E=o.length;m<E;m++)if(s.call(d,o[m],m,o)===!1)return!1}else for(m in o)if(io(o,m)&&s.call(d,o[m],m,o)===!1)return!1;return!0},Ps=function(o,s){var d=[];return Bi(o,function(m,E){d.push(s(m,E,o))}),d},rs=function(o,s){var d=[];return Bi(o,function(m,E){(!s||s(m,E,o))&&d.push(m)}),d},Ai=function(o,s){if(o){for(var d=0,m=o.length;d<m;d++)if(o[d]===s)return d}return-1},el=function(o,s,d,m){for(var E=X(d)?o[0]:d,D=0;D<o.length;D++)E=s.call(m,E,o[D],D);return E},ga=function(o,s,d){var m,E;for(m=0,E=o.length;m<E;m++)if(s.call(d,o[m],m,o))return m;return-1},_s=function(o){return o[o.length-1]},fo=function(){return fo=Object.assign||function(s){for(var d,m=1,E=arguments.length;m<E;m++){d=arguments[m];for(var D in d)Object.prototype.hasOwnProperty.call(d,D)&&(s[D]=d[D])}return s},fo.apply(this,arguments)};function il(o,s){var d={};for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&s.indexOf(m)<0&&(d[m]=o[m]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,m=Object.getOwnPropertySymbols(o);E<m.length;E++)s.indexOf(m[E])<0&&Object.prototype.propertyIsEnumerable.call(o,m[E])&&(d[m[E]]=o[m[E]]);return d}function Fs(o,s,d){if(d||arguments.length===2)for(var m=0,E=s.length,D;m<E;m++)(D||!(m in s))&&(D||(D=Array.prototype.slice.call(s,0,m)),D[m]=s[m]);return o.concat(D||Array.prototype.slice.call(s))}var us=function(o){var s=!1,d;return function(){for(var m=[],E=0;E<arguments.length;E++)m[E]=arguments[E];return s||(s=!0,d=o.apply(null,m)),d}},cs=function(o,s,d,m){var E=o.isiOS()&&/ipad/i.test(d)===!0,D=o.isiOS()&&!E,J=o.isiOS()||o.isAndroid(),ue=J||m("(pointer:coarse)"),me=E||!D&&J&&m("(min-device-width:768px)"),Le=D||J&&!me,tt=s.isSafari()&&o.isiOS()&&/safari/i.test(d)===!1,nt=!Le&&!me&&!tt;return{isiPad:K(E),isiPhone:K(D),isTablet:K(me),isPhone:K(Le),isTouch:K(ue),isAndroid:o.isAndroid,isiOS:o.isiOS,isWebView:K(tt),isDesktop:K(nt)}},sl=function(o,s){for(var d=0;d<o.length;d++){var m=o[d];if(m.test(s))return m}},wi=function(o,s){var d=sl(o,s);if(!d)return{major:0,minor:0};var m=function(E){return Number(s.replace(d,"$"+E))};return zt(m(1),m(2))},bo=function(o,s){var d=String(s).toLowerCase();return o.length===0?pl():wi(o,d)},pl=function(){return zt(0,0)},zt=function(o,s){return{major:o,minor:s}},an={nu:zt,detect:bo,unknown:pl},Rt=function(o,s){return _t(s.brands,function(d){var m=d.brand.toLowerCase();return mt(o,function(E){var D;return m===((D=E.brand)===null||D===void 0?void 0:D.toLowerCase())}).map(function(E){return{current:E.name,version:an.nu(parseInt(d.version,10),0)}})})},Nn=function(o,s){var d=String(s).toLowerCase();return mt(o,function(m){return m.search(d)})},Er=function(o,s){return Nn(o,s).map(function(d){var m=an.detect(d.versionRegexes,s);return{current:d.name,version:m}})},Yr=function(o,s){return Nn(o,s).map(function(d){var m=an.detect(d.versionRegexes,s);return{current:d.name,version:m}})},ft=function(o,s){return o.substring(s)},Bt=function(o,s,d){return s===""||o.length>=s.length&&o.substr(d,d+s.length)===s},Rn=function(o,s){return Ze(o,s)?ft(o,s.length):o},Qn=function(o,s){return o.indexOf(s)!==-1},Ze=function(o,s){return Bt(o,s,0)},St=function(o){return function(s){return s.replace(o,"")}},Gt=St(/^\s+|\s+$/g),Xt=St(/^\s+/g),On=St(/\s+$/g),Dn=function(o){return o.length>0},xr=function(o){return!Dn(o)},Nr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,To=function(o){return function(s){return Qn(s,o)}},Bn=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(o){return Qn(o,"edge/")&&Qn(o,"chrome")&&Qn(o,"safari")&&Qn(o,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Nr],search:function(o){return Qn(o,"chrome")&&!Qn(o,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(o){return Qn(o,"msie")||Qn(o,"trident")}},{name:"Opera",versionRegexes:[Nr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:To("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:To("firefox")},{name:"Safari",versionRegexes:[Nr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(o){return(Qn(o,"safari")||Qn(o,"mobile/"))&&Qn(o,"applewebkit")}}],po=[{name:"Windows",search:To("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(o){return Qn(o,"iphone")||Qn(o,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:To("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:To("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:To("linux"),versionRegexes:[]},{name:"Solaris",search:To("sunos"),versionRegexes:[]},{name:"FreeBSD",search:To("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:To("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Zo={browsers:K(Bn),oses:K(po)},Za="Edge",os="Chrome",ua="IE",Xu="Opera",Tu="Firefox",as="Safari",ff=function(){return Pl({current:void 0,version:an.unknown()})},Pl=function(o){var s=o.current,d=o.version,m=function(E){return function(){return s===E}};return{current:s,version:d,isEdge:m(Za),isChrome:m(os),isIE:m(ua),isOpera:m(Xu),isFirefox:m(Tu),isSafari:m(as)}},Fl={unknown:ff,nu:Pl,edge:K(Za),chrome:K(os),ie:K(ua),opera:K(Xu),firefox:K(Tu),safari:K(as)},Ka="Windows",df="iOS",Rc="Android",Zu="Linux",hc="OSX",ql="Solaris",Au="FreeBSD",qf="ChromeOS",fu=function(){return Sl({current:void 0,version:an.unknown()})},Sl=function(o){var s=o.current,d=o.version,m=function(E){return function(){return s===E}};return{current:s,version:d,isWindows:m(Ka),isiOS:m(df),isAndroid:m(Rc),isOSX:m(hc),isLinux:m(Zu),isSolaris:m(ql),isFreeBSD:m(Au),isChromeOS:m(qf)}},pt={unknown:fu,nu:Sl,windows:K(Ka),ios:K(df),android:K(Rc),linux:K(Zu),osx:K(hc),solaris:K(ql),freebsd:K(Au),chromeos:K(qf)},sn=function(o,s,d){var m=Zo.browsers(),E=Zo.oses(),D=s.bind(function(me){return Rt(m,me)}).orThunk(function(){return Er(m,o)}).fold(Fl.unknown,Fl.nu),J=Yr(E,o).fold(pt.unknown,pt.nu),ue=cs(J,D,o,d);return{browser:D,os:J,deviceType:ue}},kn={detect:sn},er=function(o){return window.matchMedia(o).matches},wr=us(function(){return kn.detect(navigator.userAgent,re.from(navigator.userAgentData),er)}),mo=function(){return wr()},ja=navigator.userAgent,ii=mo(),da=ii.browser,Ci=ii.os,es=ii.deviceType,pc=/WebKit/.test(ja)&&!da.isEdge(
70),Yi="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,mc=ja.indexOf("Windows Phone")!==-1,Io={opera:da.isOpera(),webkit:pc,ie:da.isIE()||da.isEdge()?da.version.major:!1,gecko:da.isFirefox(),mac:Ci.isOSX()||Ci.isiOS(),iOS:es.isiPad()||es.isiPhone(),android:Ci.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:da.isIE()?document.documentMode||7:10,fileApi:Yi,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!da.isIE(),desktop:es.isDesktop(),windowsPhone:mc,browser:{current:da.current,version:da.version,isChrome:da.isChrome,isEdge:da.isEdge,isFirefox:da.isFirefox,isIE:da.isIE,isOpera:da.isOpera,isSafari:da.isSafari},os:{current:Ci.current,version:Ci.version,isAndroid:Ci.isAndroid,isChromeOS:Ci.isChromeOS,isFreeBSD:Ci.isFreeBSD,isiOS:Ci.isiOS,isLinux:Ci.isLinux,isOSX:Ci.isOSX,isSolaris:Ci.isSolaris,isWindows:Ci.isWindows},deviceType:{isDesktop:es.isDesktop,isiPad:es.isiPad,isiPhone:es.isiPhone,isPhone:es.isPhone,isTablet:es.isTablet,isTouch:es.isTouch,isWebView:es.isWebView}},gc=/^\s*|\s*$/g,Wd=function(o){return o==null?"":(""+o).replace(gc,"")},Ea=function(o,s){return s?s==="array"&&la(o)?!0:typeof o===s:o!==void 0},Xf=function(o,s,d){var m;for(o=o||[],s=s||",",typeof o=="string"&&(o=o.split(s)),d=d||{},m=o.length;m--;)d[o[m]]={};return d},ku=io,Sd=function(o,s,d){var m=this,E,D,J,ue=0;o=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(o);var me=o[3].match(/(^|\.)(\w+)$/i)[2],Le=m.createNS(o[3].replace(/\.\w+$/,""),d);if(!Le[me]){if(o[2]==="static"){Le[me]=s,this.onCreate&&this.onCreate(o[2],o[3],Le[me]);return}s[me]||(s[me]=function(){},ue=1),Le[me]=s[me],m.extend(Le[me].prototype,s),o[5]&&(E=m.resolve(o[5]).prototype,D=o[5].match(/\.(\w+)$/i)[1],J=Le[me],ue?Le[me]=function(){return E[D].apply(this,arguments)}:Le[me]=function(){return this.parent=E[D],J.apply(this,arguments)},Le[me].prototype[me]=Le[me],m.each(E,function(tt,nt){Le[me].prototype[nt]=E[nt]}),m.each(s,function(tt,nt){E[nt]?Le[me].prototype[nt]=function(){return this.parent=E[nt],tt.apply(this,arguments)}:nt!==me&&(Le[me].prototype[nt]=tt)})),m.each(s.static,function(tt,nt){Le[me][nt]=tt})}},fi=function(o){for(var s=[],d=1;d<arguments.length;d++)s[d-1]=arguments[d];for(var m=0;m<s.length;m++){var E=s[m];for(var D in E)if(io(E,D)){var J=E[D];J!==void 0&&(o[D]=J)}}return o},ml=function(o,s,d,m){m=m||this,o&&(d&&(o=o[d]),Bi(o,function(E,D){if(s.call(m,E,D,d)===!1)return!1;ml(E,s,d,m)}))},Bv=function(o,s){var d,m;for(s=s||window,o=o.split("."),d=0;d<o.length;d++)m=o[d],s[m]||(s[m]={}),s=s[m];return s},Qu=function(o,s){var d,m;for(s=s||window,o=o.split("."),d=0,m=o.length;d<m&&(s=s[o[d]],!!s);d++);return s},ws=function(o,s){return!o||Ea(o,"array")?o:Ps(o.split(s||","),Wd)},vf=function(o){var s=Io.cacheSuffix;return s&&(o+=(o.indexOf("?")===-1?"?":"&")+s),o},Gn={trim:Wd,isArray:la,is:Ea,toArray:Na,makeMap:Xf,each:Bi,map:Ps,grep:rs,inArray:Ai,hasOwn:ku,extend:fi,create:Sd,walk:ml,createNS:Bv,resolve:Qu,explode:ws,_addCacheSuffix:vf},hf=function(o,s){var d=s||document,m=d.createElement("div");if(m.innerHTML=o,!m.hasChildNodes()||m.childNodes.length>1)throw console.error("HTML does not have a single root node",o),new Error("HTML must have a single root node");return Yc(m.childNodes[0])},Cs=function(o,s){var d=s||document,m=d.createElement(o);return Yc(m)},y1=function(o,s){var d=s||document,m=d.createTextNode(o);return Yc(m)},Yc=function(o){if(o==null)throw new Error("Node cannot be null or undefined");return{dom:o}},je=function(o,s,d){return re.from(o.dom.elementFromPoint(s,d)).map(Yc)},xe={fromHtml:hf,fromTag:Cs,fromText:y1,fromDom:Yc,fromPoint:je},pe=function(o,s){var d=[],m=function(D){return d.push(D),s(D)},E=s(o);do E=E.bind(m);while(E.isSome());return d},Re=function(o,s,d){return(o.compareDocumentPosition(s)&d)!==0},st=function(o,s){return Re(o,s,Node.DOCUMENT_POSITION_CONTAINED_BY)},Pt=8,mn=9,ar=11,vo=1,So=3,yr=function(o,s){var d=o.dom;if(d.nodeType!==vo)return!1;var m=d;if(m.matches!==void 0)return m.matches(s);
70if(m.msMatchesSelector!==void 0)return m.msMatchesSelector(s);if(m.webkitMatchesSelector!==void 0)return m.webkitMatchesSelector(s);if(m.mozMatchesSelector!==void 0)return m.mozMatchesSelector(s);throw new Error("Browser lacks native selectors")},uo=function(o){return o.nodeType!==vo&&o.nodeType!==mn&&o.nodeType!==ar||o.childElementCount===0},na=function(o,s){var d=s===void 0?document:s.dom;return uo(d)?[]:rt(d.querySelectorAll(o),xe.fromDom)},Qo=function(o,s){var d=s===void 0?document:s.dom;return uo(d)?re.none():re.from(d.querySelector(o)).map(xe.fromDom)},jo=function(o,s){return o.dom===s.dom},Vi=function(o,s){var d=o.dom,m=s.dom;return d===m?!1:d.contains(m)},Vo=function(o,s){return st(o.dom,s.dom)},di=function(o,s){return mo().browser.isIE()?Vo(o,s):Vi(o,s)};typeof window!="undefined"||Function("return this;")();var si=function(o){var s=o.dom.nodeName;return s.toLowerCase()},$l=function(o){return o.dom.nodeType},ha=function(o){return function(s){return $l(s)===o}},qc=function(o){return $l(o)===Pt||si(o)==="#comment"},ps=ha(vo),$s=ha(So),Eh=ha(mn),zs=ha(ar),Sh=function(o){return function(s){return ps(s)&&si(s)===o}},Zf=function(o){return xe.fromDom(o.dom.ownerDocument)},Jo=function(o){return Eh(o)?o:Zf(o)},Tl=function(o){return xe.fromDom(Jo(o).dom.documentElement)},is=function(o){return xe.fromDom(Jo(o).dom.defaultView)},ks=function(o){return re.from(o.dom.parentNode).map(xe.fromDom)},zl=function(o,s){for(var d=Y(s)?s:U,m=o.dom,E=[];m.parentNode!==null&&m.parentNode!==void 0;){var D=m.parentNode,J=xe.fromDom(D);if(E.push(J),d(J)===!0)break;m=D}return E},ll=function(o){var s=function(d){return Fe(d,function(m){return!jo(o,m)})};return ks(o).map(tl).map(s).getOr([])},Pv=function(o){return re.from(o.dom.previousSibling).map(xe.fromDom)},pf=function(o){return re.from(o.dom.nextSibling).map(xe.fromDom)},ai=function(o){return It(pe(o,Pv))},Pi=function(o){return pe(o,pf)},tl=function(o){return rt(o.dom.childNodes,xe.fromDom)},Gd=function(o,s){var d=o.dom.childNodes;return re.from(d[s]).map(xe.fromDom)},gl=function(o){return Gd(o,0)},mf=function(o){return Gd(o,o.dom.childNodes.length-1)},v2=function(o){return o.dom.childNodes.length},Fv=function(o){var s=o.dom.head;if(s==null)throw new Error("Head is not available yet");return xe.fromDom(s)},Ui=function(o){return zs(o)&&z(o.dom.host)},Qf=Y(Element.prototype.attachShadow)&&Y(Node.prototype.getRootNode),Jf=K(Qf),yc=Qf?function(o){return xe.fromDom(o.dom.getRootNode())}:Jo,Ws=function(o){return Ui(o)?o:Fv(Jo(o))},Kd=function(o){var s=yc(o);return Ui(s)?re.some(s):re.none()},ed=function(o){return xe.fromDom(o.dom.host)},Ou=function(o){if(Jf()&&z(o.target)){var s=xe.fromDom(o.target);if(ps(s)&&Mu(s)&&o.composed&&o.composedPath){var d=o.composedPath();if(d)return Wt(d)}}return re.from(o.target)},Mu=function(o){return z(o.dom.shadowRoot)},Os=function(o,s){var d=ks(o);d.each(function(m){m.dom.insertBefore(s.dom,o.dom)})},$v=function(o,s){var d=pf(o);d.fold(function(){var m=ks(o);m.each(function(E){yl(E,s)})},function(m){Os(m,s)})},gf=function(o,s){var d=gl(o);d.fold(function(){yl(o,s)},function(m){o.dom.insertBefore(s.dom,m.dom)})},yl=function(o,s){o.dom.appendChild(s.dom)},Th=function(o,s){Os(o,s),yl(s,o)},$m=function(o,s){ct(s,function(d){Os(o,d)})},b1=function(o,s){ct(s,function(d){yl(o,d)})},zv=function(o){o.dom.textContent="",ct(tl(o),function(s){Gs(s)})},Gs=function(o){var s=o.dom;s.parentNode!==null&&s.parentNode.removeChild(s)},Hv=function(o){var s=tl(o);s.length>0&&$m(o,s),Gs(o)},yf=function(o){var s=$s(o)?o.dom.parentNode:o.dom;if(s==null||s.ownerDocument===null)return!1;var d=s.ownerDocument;return Kd(xe.fromDom(s)).fold(function(){return d.body.contains(s)},V(yf,ed))},Al=function(o,s){var d=function(m,E){return Al(o+m,s+E)};return{left:o,top:s,translate:d}},Xc=Al,_1=function(o){var s=o.getBoundingClientRect();return Xc(s.left,s.top)},Td=function(o,s){return o!==void 0?o:s!==void 0?s:0},xs=function(o){var s=o.dom.ownerDocument,d=s.body,m=s.defaultView,E=s.documentElement;if(d===o.dom)return Xc(d.offsetLeft,d.offsetTop);var D=Td(m==null?void 0:m.pageYOffset,E.scrollTop),J=Td(m==null?void 0:m.pageXOffset,E.scrollLeft),ue=Td(E.clientTop,d.clientTop),me=Td(E.clientLeft,d.clientLeft);return bc(o).translate(J-me,D-ue)},bc=function(o){var s=o.dom,d=s.ownerDocument,m=d.body;return m===s?Xc(m.offsetLeft,m.offsetTop):yf(o)?_1(s):Xc(0,0)},Yd=function(o){var s=o!==void 0?o.dom:document,d=s.body.scrollLeft||s.documentElement.scrollLeft,m=s.body.scrollTop||s.documentElement.scrollTop;return Xc(d,m)},du=function(o,s,d){var m=d!==void 0?d.dom:document,E=m.defaultView;E&&E.scrollTo(o,s)},Nu=function(o,s){var d=mo().browser.isSafari();d&&Y(o.dom.scrollIntoViewIfNeeded)?o.dom.scrollIntoViewIfNeeded(!1):o.dom.scrollIntoView(s)},w1=function(o){var s=o===void 0?window:o;
70return mo().browser.isFirefox()?re.none():re.from(s.visualViewport)},qd=function(o,s,d,m){return{x:o,y:s,width:d,height:m,right:o+d,bottom:s+m}},Xd=function(o){var s=o===void 0?window:o,d=s.document,m=Yd(xe.fromDom(d));return w1(s).fold(function(){var E=s.document.documentElement,D=E.clientWidth,J=E.clientHeight;return qd(m.left,m.top,D,J)},function(E){return qd(Math.max(E.pageLeft,m.left),Math.max(E.pageTop,m.top),E.width,E.height)})},Vv=function(o){return function(s){return!!s&&s.nodeType===o}},C1=function(o){return!!o&&!Object.getPrototypeOf(o)},Ko=Vv(1),bf=function(o){var s=o.map(function(d){return d.toLowerCase()});return function(d){if(d&&d.nodeName){var m=d.nodeName.toLowerCase();return De(s,m)}return!1}},Ju=function(o,s){var d=s.toLowerCase().split(" ");return function(m){if(Ko(m))for(var E=0;E<d.length;E++){var D=m.ownerDocument.defaultView.getComputedStyle(m,null),J=D?D.getPropertyValue(o):null;if(J===d[E])return!0}return!1}},Xl=function(o){return function(s){return Ko(s)&&s.hasAttribute(o)}},td=function(o,s){return function(d){return Ko(d)&&d.getAttribute(o)===s}},Ks=function(o){return Ko(o)&&o.hasAttribute("data-mce-bogus")},kl=function(o){return Ko(o)&&o.getAttribute("data-mce-bogus")==="all"},nl=function(o){return Ko(o)&&o.tagName==="TABLE"},Zd=function(o){return function(s){return!!(Ko(s)&&(s.contentEditable===o||s.getAttribute("data-mce-contenteditable")===o))}},bl=bf(["textarea","input"]),Jr=Vv(3),rv=Vv(8),Ah=Vv(9),ya=Vv(11),qi=bf(["br"]),Np=bf(["img"]),nd=Zd("true"),fs=Zd("false"),x1=bf(["td","th"]),Du=bf(["video","audio","object","embed"]),x0=function(o,s,d){return d===void 0&&(d=de),o.exists(function(m){return d(m,s)})},pa=function(o){for(var s=[],d=function(E){s.push(E)},m=0;m<o.length;m++)o[m].each(d);return s},ec=function(o,s,d){return o.isSome()&&s.isSome()?re.some(d(o.getOrDie(),s.getOrDie())):re.none()},E0=function(o,s,d,m){return o.isSome()&&s.isSome()&&d.isSome()?re.some(m(o.getOrDie(),s.getOrDie(),d.getOrDie())):re.none()},h2=function(o,s){return o?re.some(s):re.none()},Xi=function(o){return o.style!==void 0&&Y(o.style.getPropertyValue)},ov=function(o,s,d){if(B(d)||A(d)||Q(d))o.setAttribute(s,d+"");else throw console.error("Invalid call to Attribute.set. Key ",s,":: Value ",d,":: Element ",o),new Error("Attribute value was not simple")},Me=function(o,s,d){ov(o.dom,s,d)},Qe=function(o,s){var d=o.dom;Vt(s,function(m,E){ov(d,E,m)})},ht=function(o,s){var d=o.dom.getAttribute(s);return d===null?void 0:d},jt=function(o,s){return re.from(ht(o,s))},wn=function(o,s){var d=o.dom;return d&&d.hasAttribute?d.hasAttribute(s):!1},qn=function(o,s){o.dom.removeAttribute(s)},Co=function(o){return Ye(o.dom.attributes,function(s,d){return s[d.name]=d.value,s},{})},Yo=function(o,s,d){if(!B(d))throw console.error("Invalid call to CSS.set. Property ",s,":: Value ",d,":: Element ",o),new Error("CSS value must be a string: "+d);Xi(o)&&o.style.setProperty(s,d)},Aa=function(o,s){var d=o.dom;Vt(s,function(m,E){Yo(d,E,m)})},Sa=function(o,s){var d=o.dom,m=window.getComputedStyle(d),E=m.getPropertyValue(s);return E===""&&!yf(o)?ts(d,s):E},ts=function(o,s){return Xi(o)?o.style.getPropertyValue(s):""},Iu=function(o,s){var d=o.dom,m=ts(d,s);return re.from(m).filter(function(E){return E.length>0})},Ys=function(o){var s={},d=o.dom;if(Xi(d))for(var m=0;m<d.style.length;m++){var E=d.style.item(m);s[E]=d.style[E]}return s},e5=function(o){return o.dom.offsetWidth},B3=mo().browser,_f=function(o){return mt(o,ps)},tc=function(o){return B3.isFirefox()&&si(o)==="table"?_f(tl(o)).filter(function(s){return si(s)==="caption"}).bind(function(s){return _f(Pi(s)).map(function(d){var m=d.dom.offsetTop,E=s.dom.offsetTop,D=s.dom.offsetHeight;return m<=E?-D:0})}).getOr(0):0},ul=function(o,s){return o.children&&De(o.children,s)},Hl=function(o,s,d){var m=0,E=0,D=o.ownerDocument;if(d=d||o,s){if(d===o&&s.getBoundingClientRect&&Sa(xe.fromDom(o),"position")==="static"){var J=s.getBoundingClientRect();return m=J.left+(D.documentElement.scrollLeft||o.scrollLeft)-D.documentElement.clientLeft,E=J.top+(D.documentElement.scrollTop||o.scrollTop)-D.documentElement.clientTop,{x:m,y:E}}for(var ue=s;ue&&ue!==d&&ue.nodeType&&!ul(ue,d);){var me=ue;m+=me.offsetLeft||0,E+=me.offsetTop||0,ue=me.offsetParent}for(ue=s.parentNode;ue&&ue!==d&&ue.nodeType&&!ul(ue,d);)m-=ue.scrollLeft||0,E-=ue.scrollTop||0,ue=ue.parentNode;E+=tc(xe.fromDom(s))}return{x:m,y:E}},Ru={},Dp={exports:Ru};(function(o,s,d,m){(function(E,D){typeof s=="object"&&typeof d!="undefined"?d.exports=D():typeof o=="function"&&o.amd?o(D):(E=typeof globalThis!="undefined"?globalThis:E||self,E.EphoxContactWrapper=D())})(this,function(){var E=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof oi!="undefined"?oi:typeof self!="undefined"?self:{},D={exports:{}};(function(Le){(function(tt){var nt=setTimeout;function it(){}function kt(ln,In){return function(){ln.apply(In,arguments)}}function Nt(ln){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof ln!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],xn(ln,this)}function Lt(ln,In){for(;ln._state===3;)ln=ln._value;if(ln._state===0){ln._deferreds.push(In);return}ln._handled=!0,Nt._immediateFn(function(){var ir=ln._state===1?In.onFulfilled:In.onRejected;if(ir===null){(ln._state===1?$t:Jt)(In.promise,ln._value);return}var _r;try{_r=ir(ln._value)}catch(Go){Jt(In.promise,Go);return}$t(In.promise,_r)})}function $t(ln,In){try{if(In===ln)throw new TypeError("A promise cannot be resolved with itself.");if(In&&(typeof In=="object"||typeof In=="function")){var ir=In.then;if(In instanceof Nt){ln._state=3,ln._value=In,qt(ln);return}else if(typeof ir=="function"){xn(kt(ir,In),ln);return}}ln._state=1,ln._value=In,qt(ln)}catch(_r){Jt(ln,_r)}}function Jt(ln,In){ln._state=2,ln._value=In,qt(ln)}function qt(ln){ln._state===2&&ln._deferreds.length===0&&Nt._immediateFn(function(){ln._handled||Nt._unhandledRejectionFn(ln._value)});for(var In=0,ir=ln._deferreds.length;In<ir;In++)Lt(ln,ln._deferreds[In]);ln._deferreds=null}function Mn(ln,In,ir){this.onFulfilled=typeof ln=="function"?ln:null,this.onRejected=typeof In=="function"?In:null,this.promise=ir}function xn(ln,In){var ir=!1;try{ln(function(_r){ir||(ir=!0,$t(In,_r))},function(_r){ir||(ir=!0,Jt(In,_r))})}catch(_r){if(ir)return;ir=!0,Jt(In,_r)}}Nt.prototype.catch=function(ln){return this.then(null,ln)},Nt.prototype.then=function(ln,In){var ir=new this.constructor(it);return Lt(this,new Mn(ln,In,ir)),ir},Nt.all=function(ln){var In=Array.prototype.slice.call(ln);return new Nt(function(ir,_r){if(In.length===0)return ir([]);var Go=In.length;function eo(Lo,Sr){try{if(Sr&&(typeof Sr=="object"||typeof Sr=="function")){var Xr=Sr.then;if(typeof Xr=="function"){Xr.call(Sr,function(Tr){eo(Lo,Tr)},_r);return}}In[Lo]=Sr,--Go===0&&ir(In)}catch(Tr){_r(Tr)}}for(var lr=0;lr<In.length;lr++)eo(lr,In[lr])})},Nt.resolve=function(ln){return ln&&typeof ln=="object"&&ln.constructor===Nt?ln:new Nt(function(In){In(ln)})},Nt.reject=function(ln){return new Nt(function(In,ir){ir(ln)})},Nt.race=function(ln){return new Nt(function(In,ir){for(var _r=0,Go=ln.length;_r<Go;_r++)ln[_r].then(In,ir)})}
70,Nt._immediateFn=typeof setImmediate=="function"?function(ln){setImmediate(ln)}:function(ln){nt(ln,0)},Nt._unhandledRejectionFn=function(In){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",In)},Nt._setImmediateFn=function(In){Nt._immediateFn=In},Nt._setUnhandledRejectionFn=function(In){Nt._unhandledRejectionFn=In},Le.exports?Le.exports=Nt:tt.Promise||(tt.Promise=Nt)})(E)})(D);var J=D.exports,ue=function(){return typeof window!="undefined"?window:Function("return this;")()}(),me={boltExport:ue.Promise||J};return me})})(void 0,Ru,Dp);var Ip=Dp.exports.boltExport,zm=function(o){var s=re.none(),d=[],m=function(Le){return zm(function(tt){E(function(nt){tt(Le(nt))})})},E=function(Le){J()?me(Le):d.push(Le)},D=function(Le){J()||(s=re.some(Le),ue(d),d=[])},J=function(){return s.isSome()},ue=function(Le){ct(Le,me)},me=function(Le){s.each(function(tt){setTimeout(function(){Le(tt)},0)})};return o(D),{get:E,map:m,isReady:J}},p2=function(o){return zm(function(s){s(o)})},P3={nu:zm,pure:p2},wb=function(o){setTimeout(function(){throw o},0)},Qd=function(o){var s=function(me){o().then(me,wb)},d=function(me){return Qd(function(){return o().then(me)})},m=function(me){return Qd(function(){return o().then(function(Le){return me(Le).toPromise()})})},E=function(me){return Qd(function(){return o().then(function(){return me.toPromise()})})},D=function(){return P3.nu(s)},J=function(){var me=null;return Qd(function(){return me===null&&(me=o()),me})},ue=o;return{map:d,bind:m,anonBind:E,toLazy:D,toCached:J,toPromise:ue,get:s}},S0=function(o){return Qd(function(){return new Ip(o)})},t5=function(o){return Qd(function(){return Ip.resolve(o)})},Hm={nu:S0,pure:t5},Cb=function(o,s){return s(function(d){var m=[],E=0,D=function(J){return function(ue){m[J]=ue,E++,E>=o.length&&d(m)}};o.length===0?d([]):ct(o,function(J,ue){J.get(D(ue))})})},F3=function(o){return Cb(o,Hm.nu)},T0=function(o){var s=function(nt){return T0(o)},d=function(nt){return T0(o)},m=function(nt){return T0(nt(o))},E=function(nt){return T0(o)},D=function(nt){nt(o)},J=function(nt){return nt(o)},ue=function(nt,it){return it(o)},me=function(nt){return nt(o)},Le=function(nt){return nt(o)},tt=function(){return re.some(o)};return{isValue:j,isError:U,getOr:K(o),getOrThunk:K(o),getOrDie:K(o),or:s,orThunk:d,fold:ue,map:m,mapError:E,each:D,bind:J,exists:me,forall:Le,toOptional:tt}},A0=function(o){var s=function(Le){return Le()},d=function(){return _e(String(o))()},m=fe,E=function(Le){return Le()},D=function(Le){return A0(o)},J=function(Le){return A0(Le(o))},ue=function(Le){return A0(o)},me=function(Le,tt){return Le(o)};return{isValue:U,isError:j,getOr:fe,getOrThunk:s,getOrDie:d,or:m,orThunk:E,fold:me,map:D,mapError:J,each:$,bind:ue,exists:U,forall:j,toOptional:re.none}},xb=function(o,s){return o.fold(function(){return A0(s)},T0)},Rp={value:T0,error:A0,fromOption:xb},wf=function(o){if(!R(o))throw new Error("cases must be an array");if(o.length===0)throw new Error("there must be at least one case");var s=[],d={};return ct(o,function(m,E){var D=en(m);if(D.length!==1)throw new Error("one and only one name per case");var J=D[0],ue=m[J];if(d[J]!==void 0)throw new Error("duplicate key detected:"+J);if(J==="cata")throw new Error("cannot have a case named cata (sorry)");if(!R(ue))throw new Error("case arguments must be an array");s.push(J),d[J]=function(){for(var me=[],Le=0;Le<arguments.length;Le++)me[Le]=arguments[Le];var tt=me.length;if(tt!==ue.length)throw new Error("Wrong number of arguments to case "+J+". Expected "+ue.length+" ("+ue+"), got "+tt);var nt=function(it){var kt=en(it);if(s.length!==kt.length)throw new Error("Wrong number of arguments to match. Expected: "+s.join(",")+` 71Actual: `+kt.join(","));var Nt=Ft(s,function(Lt){return De(kt,Lt)});if(!Nt)throw new Error("Not all branches were specified when using match. Specified: "+kt.join(", ")+` 72Required: `+s.join(", "));return it[J].apply(null,me)};return{fold:function(){for(var it=[],kt=0;kt<arguments.length;kt++)it[kt]=arguments[kt];if(it.length!==o.length)throw new Error("Wrong number of arguments to fold. Expected "+o.length+", got "+it.length);var Nt=it[E];return Nt.apply(null,me)},match:nt,log:function(it){console.log(it,{constructors:s,constructor:J,params:me})}}}}),d},Eo={generate:wf};Eo.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var Lc=function(o){return o.fold(fe,fe)};function Lp(o,s,d,m,E){return o(d,m)?re.some(d):Y(E)&&E(d)?re.none():s(d,m,E)}var kh=function(o,s,d){for(var m=o.dom,E=Y(d)?d:U;m.parentNode;){m=m.parentNode;var D=xe.fromDom(m);
72if(s(D))return re.some(D);if(E(D))break}return re.none()},k0=function(o,s,d){var m=function(E,D){return D(E)};return Lp(m,kh,o,s,d)},Cf=function(o,s){var d=o.dom;return d.parentNode?vi(xe.fromDom(d.parentNode),function(m){return!jo(o,m)&&s(m)}):re.none()},vi=function(o,s){var d=function(E){return s(xe.fromDom(E))},m=mt(o.dom.childNodes,d);return m.map(xe.fromDom)},Bc=function(o,s,d){return kh(o,function(m){return yr(m,s)},d)},Ad=function(o,s){return Qo(s,o)},ds=function(o,s,d){var m=function(E,D){return yr(E,D)};return Lp(m,Bc,o,s,d)},Zl=window.Promise?window.Promise:Ip,O0,E1=function(o,s){for(var d=window.requestAnimationFrame,m=["ms","moz","webkit"],E=function(J){window.setTimeout(J,0)},D=0;D<m.length&&!d;D++)d=window[m[D]+"RequestAnimationFrame"];d||(d=E),d(o,s)},Vm=function(o,s){return typeof s!="number"&&(s=0),setTimeout(o,s)},Bp=function(o,s){return typeof s!="number"&&(s=1),setInterval(o,s)},Oh=function(o){return clearTimeout(o)},$3=function(o){return clearInterval(o)},Mh=function(o,s){var d,m=function(){for(var E=[],D=0;D<arguments.length;D++)E[D]=arguments[D];clearTimeout(d),d=Vm(function(){o.apply(this,E)},s)};return m.stop=function(){clearTimeout(d)},m},cl={requestAnimationFrame:function(o,s){if(O0){O0.then(o);return}O0=new Zl(function(d){s||(s=document.body),E1(d,s)}).then(o)},setTimeout:Vm,setInterval:Bp,setEditorTimeout:function(o,s,d){return Vm(function(){o.removed||s()},d)},setEditorInterval:function(o,s,d){var m=Bp(function(){o.removed?clearInterval(m):s()},d);return m},debounce:Mh,throttle:Mh,clearInterval:$3,clearTimeout:Oh},Eb=function(o,s){s===void 0&&(s={});var d=0,m={},E=xe.fromDom(o),D=Jo(E),J=s.maxLoadTime||5e3,ue=function($t){s.referrerPolicy=$t},me=function($t){yl(Ws(E),$t)},Le=function($t){var Jt=Ws(E);Ad(Jt,"#"+$t).each(Gs)},tt=function($t){return Br(m,$t).getOrThunk(function(){return{id:"mce-u"+d++,passed:[],failed:[],count:0}})},nt=function($t,Jt,qt){var Mn,xn=Gn._addCacheSuffix($t),ln=tt(xn);m[xn]=ln,ln.count++;var In=function(Sr,Xr){for(var Tr=Sr.length;Tr--;)Sr[Tr]();ln.status=Xr,ln.passed=[],ln.failed=[],Mn&&(Mn.onload=null,Mn.onerror=null,Mn=null)},ir=function(){return In(ln.passed,2)},_r=function(){return In(ln.failed,3)},Go=function(Sr,Xr){Sr()||(Date.now()-Lo<J?cl.setTimeout(Xr):_r())},eo=function(){Go(function(){for(var Sr=o.styleSheets,Xr=Sr.length;Xr--;){var Tr=Sr[Xr],Fr=Tr.ownerNode;if(Fr&&Fr.id===Mn.id)return ir(),!0}return!1},eo)};if(Jt&&ln.passed.push(Jt),qt&&ln.failed.push(qt),ln.status!==1){if(ln.status===2){ir();return}if(ln.status===3){_r();return}ln.status=1;var lr=xe.fromTag("link",D.dom);Qe(lr,{rel:"stylesheet",type:"text/css",id:ln.id});var Lo=Date.now();s.contentCssCors&&Me(lr,"crossOrigin","anonymous"),s.referrerPolicy&&Me(lr,"referrerpolicy",s.referrerPolicy),Mn=lr.dom,Mn.onload=eo,Mn.onerror=_r,me(lr),Me(lr,"href",xn)}},it=function($t){return Hm.nu(function(Jt){nt($t,te(Jt,K(Rp.value($t))),te(Jt,K(Rp.error($t))))})},kt=function($t,Jt,qt){F3(rt($t,it)).get(function(Mn){var xn=ot(Mn,function(ln){return ln.isValue()});xn.fail.length>0?qt(xn.fail.map(Lc)):Jt(xn.pass.map(Lc))})},Nt=function($t){var Jt=Gn._addCacheSuffix($t);Br(m,Jt).each(function(qt){var Mn=--qt.count;Mn===0&&(delete m[Jt],Le(qt.id))})},Lt=function($t){ct($t,function(Jt){Nt(Jt)})};return{load:nt,loadAll:kt,unload:Nt,unloadAll:Lt,_setReferrerPolicy:ue}},Ms=function(){var o=new WeakMap,s=function(d,m){var E=yc(d),D=E.dom;return re.from(o.get(D)).getOrThunk(function(){var J=Eb(D,m);return o.set(D,J),J})};return{forElement:s}},Jd=Ms(),hi=function(){function o(s,d){this.node=s,this.rootNode=d,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return o.prototype.current=function(){return this.node},o.prototype.next=function(s){return this.node=this.findSibling(this.node,"firstChild","nextSibling",s),this.node},o.prototype.prev=function(s){return this.node=this.findSibling(this.node,"lastChild","previousSibling",s),this.node},o.prototype.prev2=function(s){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",s),this.node},o.prototype.findSibling=function(s,d,m,E){var D,J;if(s){if(!E&&s[d])return s[d];if(s!==this.rootNode){if(D=s[m],D)return D;for(J=s.parentNode;J&&J!==this.rootNode;J=J.parentNode)if(D=J[m],D)return D}}},o.prototype.findPreviousNode=function(s,d,m,E){var D,J,ue;if(s){if(D=s[m],this.rootNode&&D===this.rootNode)return;if(D){if(!E){for(ue=D[d];ue;ue=ue[d])if(!ue[d])return ue}return D}if(J=s.parentNode,J&&J!==this.rootNode)return J}},o}(),av=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],rd=["td","th"],n5=["thead","tbody","tfoot"],Ol=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Pc=["h1","h2","h3","h4","h5","h6"],z3=["li","dd","dt"],rr=["ul","ol","dl"],Fc=["pre","script","textarea","style"],Uv=function(o){var s;return function(d){return s=s||At(o,j),io(s,si(d))}},ta=Uv(Pc),xf=Uv(av),Pp=function(o){return si(o)==="table"},Lu=function(o){return ps(o)&&!xf(o)},jv=function(o){return ps(o)&&si(o)==="br"},S1=Uv(Ol),od=Uv(rr),Bu=Uv(z3),pi=Uv(n5),e1=Uv(rd),Vl=Uv(Fc),ji=function(o,s,d){return Bc(o,s,d).isSome()},Wv="\uFEFF",Zc="\xA0",Qc=function(o){return o===Wv},Fp=function(o){return o.replace(/\uFEFF/g,"")},fn=Wv,_c=Qc,$c=Fp,M0=Ko,nc=Jr,Wi=function(o){return nc(o)&&(o=o.parentNode),M0(o)&&o.hasAttribute("data-mce-caret")},Gi=function(o){return nc(o)&&_c(o.data)},zc=function(o){return Wi(o)||Gi(o)},kd=function(o){return o.firstChild!==o.lastChild||!qi(o.firstChild)},Sb=function(o,s){var d=o.ownerDocument,m=d.createTextNode(fn),E=o.parentNode;if(s){var D=o.previousSibling;if(nc(D)){if(zc(D))return D;if(Kv(D))return D.splitText(D.data.length-1)}E.insertBefore(m,o)}else{var D=o.nextSibling;if(nc(D)){if(zc(D))return D;if(Gv(D))return D.splitText(1),D}o.nextSibling?E.insertBefore(m,o.nextSibling):E.appendChild(m)}return m},Oo=function(o){var s=o.container();return Jr(s)?s.data.charAt(o.offset())===fn||o.isAtStart()&&Gi(s.previousSibling):!1},Um=function(o){var s=o.container();
72return Jr(s)?s.data.charAt(o.offset()-1)===fn||o.isAtEnd()&&Gi(s.nextSibling):!1},Ef=function(){var o=document.createElement("br");return o.setAttribute("data-mce-bogus","1"),o},Tb=function(o,s,d){var m=s.ownerDocument,E=m.createElement(o);E.setAttribute("data-mce-caret",d?"before":"after"),E.setAttribute("data-mce-bogus","all"),E.appendChild(Ef());var D=s.parentNode;return d?D.insertBefore(E,s):s.nextSibling?D.insertBefore(E,s.nextSibling):D.appendChild(E),E},Gv=function(o){return nc(o)&&o.data[0]===fn},Kv=function(o){return nc(o)&&o.data[o.data.length-1]===fn},N0=function(o){var s=o.getElementsByTagName("br"),d=s[s.length-1];Ks(d)&&d.parentNode.removeChild(d)},D0=function(o){return o&&o.hasAttribute("data-mce-caret")?(N0(o),o.removeAttribute("data-mce-caret"),o.removeAttribute("data-mce-bogus"),o.removeAttribute("style"),o.removeAttribute("_moz_abspos"),o):null},T1=function(o){return Wi(o.startContainer)},Yv=nd,H3=fs,iv=qi,$p=Jr,zp=bf(["script","style","textarea"]),jm=bf(["img","input","textarea","hr","iframe","video","audio","object","embed"]),I0=bf(["table"]),V3=zc,sv=function(o){return V3(o)?!1:$p(o)?!zp(o.parentNode):jm(o)||iv(o)||I0(o)||Hc(o)},Hp=function(o){return Ko(o)&&o.getAttribute("unselectable")==="true"},Hc=function(o){return Hp(o)===!1&&H3(o)},Ab=function(o,s){for(o=o.parentNode;o&&o!==s;o=o.parentNode){if(Hc(o))return!1;if(Yv(o))return!0}return!0},r5=function(o){return Hc(o)?Ye(at(o.getElementsByTagName("*")),function(s,d){return s||Yv(d)},!1)!==!0:!1},o5=function(o){return jm(o)||r5(o)},Ml=function(o,s){return sv(o)&&Ab(o,s)},A1=/^[ \t\r\n]*$/,Od=function(o){return A1.test(o)},qv=function(o,s){var d=xe.fromDom(s),m=xe.fromDom(o);return ji(m,"pre,code",ne(jo,d))},U3=function(o,s){return Jr(o)&&Od(o.data)&&qv(o,s)===!1},t1=function(o){return Ko(o)&&o.nodeName==="A"&&!o.hasAttribute("href")&&(o.hasAttribute("name")||o.hasAttribute("id"))},R0=function(o,s){return sv(o)&&U3(o,s)===!1||t1(o)||lv(o)},lv=Xl("data-mce-bookmark"),L0=Xl("data-mce-bogus"),n1=td("data-mce-bogus","all"),Vc=function(o,s){var d=0;if(R0(o,o))return!1;var m=o.firstChild;if(!m)return!0;var E=new hi(m,o);do{if(s){if(n1(m)){m=E.next(!0);continue}if(L0(m)){m=E.next();continue}}if(qi(m)){d++,m=E.next();continue}if(R0(m,o))return!1;m=E.next()}while(m);return d<=1},qs=function(o,s){return s===void 0&&(s=!0),Vc(o.dom,s)},m2=function(o){return o.nodeName.toLowerCase()==="span"},kb=function(o,s){return z(o)&&(R0(o,s)||Lu(xe.fromDom(o)))},r1=function(o,s){var d=new hi(o,s).prev(!1),m=new hi(o,s).next(!1),E=X(d)||kb(d,s),D=X(m)||kb(m,s);return E&&D},B0=function(o){return m2(o)&&o.getAttribute("data-mce-type")==="bookmark"},P0=function(o,s){return Jr(o)&&o.data.length>0&&r1(o,s)},j3=function(o){return Ko(o)?o.childNodes.length>0:!1},Xv=function(o){return ya(o)||Ah(o)},Nh=function(o,s,d){var m=d||s;if(Ko(s)&&B0(s))return s;for(var E=s.childNodes,D=E.length-1;D>=0;D--)Nh(o,E[D],m);if(Ko(s)){var J=s.childNodes;J.length===1&&B0(J[0])&&s.parentNode.insertBefore(J[0],s)}return!Xv(s)&&!R0(s,m)&&!j3(s)&&!P0(s,m)&&o.remove(s),s},Ob=Gn.makeMap,Ns=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vp=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Dh=/[<>&\"\']/g,F0=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,g2={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Md={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Sf={"<":"<",">":">","&":"&",""":'"',"'":"'"},uv=function(o){var s=xe.fromTag("div").dom;return s.innerHTML=o,s.textContent||s.innerText||o},Ih=function(o,s){var d,m,E,D={};if(o){for(o=o.split(","),s=s||10,d=0;d<o.length;d+=2)m=String.fromCharCode(parseInt(o[d],s)),Md[m]||(E="&"+o[d+1]+";",D[m]=E,D[E]=m);return D}},y2=Ih("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8
72k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),Zv=function(o,s){return o.replace(s?Ns:Vp,function(d){return Md[d]||d})},b2=function(o){return(""+o).replace(Dh,function(s){return Md[s]||s})},Rh=function(o,s){return o.replace(s?Ns:Vp,function(d){return d.length>1?"&#"+((d.charCodeAt(0)-55296)*1024+(d.charCodeAt(1)-56320)+65536)+";":Md[d]||"&#"+d.charCodeAt(0)+";"})},_2=function(o,s,d){return d=d||y2,o.replace(s?Ns:Vp,function(m){return Md[m]||d[m]||m})},Mb=function(o,s){var d=Ih(s)||y2,m=function(J,ue){return J.replace(ue?Ns:Vp,function(me){return Md[me]!==void 0?Md[me]:d[me]!==void 0?d[me]:me.length>1?"&#"+((me.charCodeAt(0)-55296)*1024+(me.charCodeAt(1)-56320)+65536)+";":"&#"+me.charCodeAt(0)+";"})},E=function(J,ue){return _2(J,ue,d)},D=Ob(o.replace(/\+/g,","));return D.named&&D.numeric?m:D.named?s?E:_2:D.numeric?Rh:Zv},w2=function(o){return o.replace(F0,function(s,d){return d?(d.charAt(0).toLowerCase()==="x"?d=parseInt(d.substr(1),16):d=parseInt(d,10),d>65535?(d-=65536,String.fromCharCode(55296+(d>>10),56320+(d&1023))):g2[d]||String.fromCharCode(d)):Sf[s]||y2[s]||uv(s)})},ad={encodeRaw:Zv,encodeAllRaw:b2,encodeNumeric:Rh,encodeNamed:_2,getEncodeFunc:Mb,decode:w2},Jc={},$0={},o1=Gn.makeMap,vu=Gn.each,Lh=Gn.extend,Nd=Gn.explode,W3=Gn.inArray,hu=function(o,s){return o=Gn.trim(o),o?o.split(s||" "):[]},Nb=function(o,s){var d=o1(o," ",o1(o.toUpperCase()," "));return Lh(d,s)},C2=function(o){return Nb("td th li dt dd figcaption caption details summary",o.getTextBlockElements())},li=function(o){var s={},d,m,E,D,J,ue,me=function(tt,nt,it){var kt,Nt,Lt,$t=function(qt,Mn){var xn={},ln,In;for(ln=0,In=qt.length;ln<In;ln++)xn[qt[ln]]=Mn||{};return xn};it=it||[],nt=nt||"",typeof it=="string"&&(it=hu(it));var Jt=hu(tt);for(kt=Jt.length;kt--;)Nt=hu([d,nt].join(" ")),Lt={attributes:$t(Nt),attributesOrder:Nt,children:$t(it,$0)},s[Jt[kt]]=Lt},Le=function(tt,nt){var it,kt,Nt,Lt,$t=hu(tt);it=$t.length;for(var Jt=hu(nt);it--;)for(kt=s[$t[it]],Nt=0,Lt=Jt.length;Nt<Lt;Nt++)kt.attributes[Jt[Nt]]={},kt.attributesOrder.push(Jt[Nt])};return Jc[o]?Jc[o]:(d="id accesskey class dir lang style tabindex title role",m="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",E="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",o!=="html4"&&(d+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",m+=" article aside details dialog figure main header footer hgroup section nav",E+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),o!=="html5-strict"&&(d+=" xml:lang",ue="acronym applet basefont big font strike tt",E=[E,ue].join(" "),vu(hu(ue),function(tt){me(tt,"",E)}),J="center dir isindex noframes",m=[m,J].join(" "),D=[m,E].join(" "),vu(hu(J),function(tt){me(tt,"",D)})),D=D||[m,E].join(" "),me("html","manifest","head body"),me("head","","base command link meta noscript script style title"),me("title hr noscript br"),me("base","href target"),me("link","href rel media hreflang type sizes hreflang"),me("meta","name http-equiv content charset"),me("style","media type scoped"),me("script","src async defer type charset"),me("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",D),me("address dt dd div caption","",D),me("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",E),me("blockquote","cite",D),me("ol","reversed start type","li"),me("ul","","li"),me("li","value",D),me("dl","","dt dd"),me("a","href target rel media hreflang type",E),me("q","cite",E),me("ins del","cite datetime",D),me("img","src sizes srcset alt usemap ismap width height"),me("iframe","src name width height",D),me("embed","src type width height"),me("object","data type typemustmatch name usemap form width height",[D,"param"].join(" ")),me("param","name value"),me("map","name",[D,"area"].join(" ")),me("area","alt coords shape href target rel media hreflang type"),me("table","border","caption colgroup thead tfoot tbody tr"+(o==="html4"?" col":"")),me("colgroup","span","col"),me("col","span"),me("tbody thead tfoot","","tr"),me("tr","","td th"),me("td","colspan rowspan headers",D),me("th","colspan rowspan headers scope abbr",D),me("form","accept-charset action autocomplete enctype method n
72ame novalidate target",D),me("fieldset","disabled form name",[D,"legend"].join(" ")),me("label","form for",E),me("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),me("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",o==="html4"?D:E),me("select","disabled form multiple name required size","option optgroup"),me("optgroup","disabled label","option"),me("option","disabled label selected value"),me("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),me("menu","type label",[D,"li"].join(" ")),me("noscript","",D),o!=="html4"&&(me("wbr"),me("ruby","",[E,"rt rp"].join(" ")),me("figcaption","",D),me("mark rt rp summary bdi","",E),me("canvas","width height",D),me("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[D,"track source"].join(" ")),me("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[D,"track source"].join(" ")),me("picture","","img source"),me("source","src srcset type media sizes"),me("track","kind src srclang label default"),me("datalist","",[E,"option"].join(" ")),me("article section nav aside main header footer","",D),me("hgroup","","h1 h2 h3 h4 h5 h6"),me("figure","",[D,"figcaption"].join(" ")),me("time","datetime",E),me("dialog","open",D),me("command","type label icon disabled checked radiogroup command"),me("output","for form name",E),me("progress","value max",E),me("meter","value min max low high optimum",E),me("details","open",[D,"summary"].join(" ")),me("keygen","autofocus challenge disabled form keytype name")),o!=="html5-strict"&&(Le("script","language xml:space"),Le("style","xml:space"),Le("object","declare classid code codebase codetype archive standby align border hspace vspace"),Le("embed","align name hspace vspace"),Le("param","valuetype type"),Le("a","charset name rev shape coords"),Le("br","clear"),Le("applet","codebase archive code object alt name width height align hspace vspace"),Le("img","name longdesc align border hspace vspace"),Le("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Le("font basefont","size color face"),Le("input","usemap align"),Le("select"),Le("textarea"),Le("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Le("ul","type compact"),Le("li","type"),Le("ol dl menu dir","compact"),Le("pre","width xml:space"),Le("hr","align noshade size width"),Le("isindex","prompt"),Le("table","summary width frame rules cellspacing cellpadding align bgcolor"),Le("col","width align char charoff valign"),Le("colgroup","width align char charoff valign"),Le("thead","align char charoff valign"),Le("tr","align char charoff valign bgcolor"),Le("th","axis align char charoff valign nowrap bgcolor width height"),Le("form","accept"),Le("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Le("tfoot","align char charoff valign"),Le("tbody","align char charoff valign"),Le("area","nohref"),Le("body","background bgcolor text link vlink alink")),o!=="html4"&&(Le("input button select textarea","autofocus"),Le("input textarea","placeholder"),Le("a","download"),Le("link script img","crossorigin"),Le("img","loading"),Le("iframe","sandbox seamless allowfullscreen loading")),vu(hu("a form meter progress dfn"),function(tt){s[tt]&&delete s[tt].children[tt]}),delete s.caption.children.table,delete s.script,Jc[o]=s,s)},zo=function(o,s){var d;return o&&(d={},typeof o=="string"&&(o={"*":o}),vu(o,function(m,E){d[E]=d[E.toUpperCase()]=s==="map"?o1(m,/[, ]/):Nd(m,/[, ]/)})),d},Tf=function(o){var s={},d={},m=[],E={},D={},J=function(gr,Ir,Bo){var Ln=o[gr];return Ln?Ln=o1(Ln,/[, ]/,o1(Ln.toUpperCase(),/[, ]/)):(Ln=Jc[gr],Ln||(Ln=Nb(Ir,Bo),Jc[gr]=Ln)),Ln};o=o||{};var ue=li(o.schema);o.verify_html===!1&&(o.valid_elements="*[*]");var me=zo(o.valid_styles),Le=zo(o.invalid_styles,"map"),tt=zo(o.valid_classes,"map"),nt=J("whitespace_elements","pre script noscript style textarea video audio iframe object c
72ode"),it=J("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),kt=J("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),Nt=J("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),Lt="td th iframe video audio object script code",$t=J("non_empty_elements",Lt+" pre",kt),Jt=J("move_caret_before_on_enter_elements",Lt+" table",kt),qt=J("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),Mn=J("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",qt),xn=J("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");vu((o.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(gr){D[gr]=new RegExp("</"+gr+"[^>]*>","gi")});var ln=function(gr){return new RegExp("^"+gr.replace(/([?+*])/g,".$1")+"$")},In=function(gr){var Ir,Bo,Ln,Cr,br,Fo,Wo,hs,sc,Vu,Hf,Vf,Pd,Uu,Tv,Fd,gm,Mi,js=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,lc=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,dp=/[*?+]/;if(gr){var vp=hu(gr,",");for(s["@"]&&(Fd=s["@"].attributes,gm=s["@"].attributesOrder),Ir=0,Bo=vp.length;Ir<Bo;Ir++)if(br=js.exec(vp[Ir]),br){if(Uu=br[1],sc=br[2],Tv=br[3],hs=br[5],Vf={},Pd=[],Fo={attributes:Vf,attributesOrder:Pd},Uu==="#"&&(Fo.paddEmpty=!0),Uu==="-"&&(Fo.removeEmpty=!0),br[4]==="!"&&(Fo.removeEmptyAttrs=!0),Fd&&(Vt(Fd,function(hp,Uy){Vf[Uy]=hp}),Pd.push.apply(Pd,gm)),hs){for(hs=hu(hs,"|"),Ln=0,Cr=hs.length;Ln<Cr;Ln++)if(br=lc.exec(hs[Ln]),br){if(Wo={},Hf=br[1],Vu=br[2].replace(/[\\:]:/g,":"),Uu=br[3],Mi=br[4],Hf==="!"&&(Fo.attributesRequired=Fo.attributesRequired||[],Fo.attributesRequired.push(Vu),Wo.required=!0),Hf==="-"){delete Vf[Vu],Pd.splice(W3(Pd,Vu),1);continue}Uu&&(Uu==="="&&(Fo.attributesDefault=Fo.attributesDefault||[],Fo.attributesDefault.push({name:Vu,value:Mi}),Wo.defaultValue=Mi),Uu===":"&&(Fo.attributesForced=Fo.attributesForced||[],Fo.attributesForced.push({name:Vu,value:Mi}),Wo.forcedValue=Mi),Uu==="<"&&(Wo.validValues=o1(Mi,"?"))),dp.test(Vu)?(Fo.attributePatterns=Fo.attributePatterns||[],Wo.pattern=ln(Vu),Fo.attributePatterns.push(Wo)):(Vf[Vu]||Pd.push(Vu),Vf[Vu]=Wo)}}!Fd&&sc==="@"&&(Fd=Vf,gm=Pd),Tv&&(Fo.outputName=sc,s[Tv]=Fo),dp.test(sc)?(Fo.pattern=ln(sc),m.push(Fo)):s[sc]=Fo}}},ir=function(gr){s={},m=[],In(gr),vu(ue,function(Ir,Bo){d[Bo]=Ir.children})},_r=function(gr){var Ir=/^(~)?(.+)$/;gr&&(Jc.text_block_elements=Jc.block_elements=null,vu(hu(gr,","),function(Bo){var Ln=Ir.exec(Bo),Cr=Ln[1]==="~",br=Cr?"span":"div",Fo=Ln[2];if(d[Fo]=d[br],E[Fo]=br,Cr||(Mn[Fo.toUpperCase()]={},Mn[Fo]={}),!s[Fo]){var Wo=s[br];Wo=Lh({},Wo),delete Wo.removeEmptyAttrs,delete Wo.removeEmpty,s[Fo]=Wo}vu(d,function(hs,sc){hs[br]&&(d[sc]=hs=Lh({},d[sc]),hs[Fo]=hs[br])})}))},Go=function(gr){var Ir=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Jc[o.schema]=null,gr&&vu(hu(gr,","),function(Bo){var Ln=Ir.exec(Bo),Cr,br;Ln&&(br=Ln[1],br?Cr=d[Ln[2]]:Cr=d[Ln[2]]={"#comment":{}},Cr=d[Ln[2]],vu(hu(Ln[3],"|"),function(Fo){br==="-"?delete Cr[Fo]:Cr[Fo]={}}))})},eo=function(gr){var Ir=s[gr],Bo;if(Ir)return Ir;for(Bo=m.length;Bo--;)if(Ir=m[Bo],Ir.pattern.test(gr))return Ir};o.valid_elements?ir(o.valid_elements):(vu(ue,function(gr,Ir){s[Ir]={attributes:gr.attributes,attributesOrder:gr.attributesOrder},d[Ir]=gr.children}),o.schema!=="html5"&&vu(hu("strong/b em/i"),function(gr){var Ir=hu(gr,"/");s[Ir[1]].outputName=Ir[0]}),vu(xn,function(gr,Ir){s[Ir]&&(o.padd_empty_block_inline_children&&(s[Ir].paddInEmptyBlock=!0),s[Ir].removeEmpty=!0)}),vu(hu("ol ul blockquote a table tbody"),function(gr){s[gr]&&(s[gr].removeEmpty=!0)}),vu(hu("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(gr){s[gr].paddEmpty=!0}),vu(hu("span"),function(gr){s[gr].removeEmptyAttrs=!0})),_r(o.custom_elements),Go(o.valid_children),In(o.extended_valid_elements),Go("+ol[ul|ol],+ul[ul|ol]"),vu({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(gr,Ir){s[Ir]&&(s[Ir].parentsRequired=hu(gr))}),o.invalid_elements&&vu(Nd(o.invalid_elements),function(gr){s[gr]&&delete s[gr]}),eo("span")||In("span[!data-mce-type|*]");var lr=K(me),Lo=K(Le),Sr=K(tt),Xr=K(Nt),Tr=K(Mn),Fr=K(qt),ho=K(xn),mr=K(kt),ro=K(it),Va=K($t),Oi=K(Jt),Si=K(nt),Oc=K(D),vl=function(gr,Ir){var Bo=d[gr.toLowerCase()];return!!(Bo&&Bo[Ir.toLowerCase()])},pd=function(gr,Ir){var Bo,Ln,Cr=eo(gr);if(Cr)if(Ir){if(Cr.attributes[Ir])return!0;
72if(Bo=Cr.attributePatterns,Bo){for(Ln=Bo.length;Ln--;)if(Bo[Ln].pattern.test(gr))return!0}}else return!0;return!1},U1=K(E);return{children:d,elements:s,getValidStyles:lr,getValidClasses:Sr,getBlockElements:Tr,getInvalidStyles:Lo,getShortEndedElements:mr,getTextBlockElements:Fr,getTextInlineElements:ho,getBoolAttrs:Xr,getElementRule:eo,getSelfClosingElements:ro,getNonEmptyElements:Va,getMoveCaretBeforeOnEnterElements:Oi,getWhiteSpaceElements:Si,getSpecialElements:Oc,isValidChild:vl,isValid:pd,getCustomElements:U1,addValidElements:In,setValidElements:ir,addCustomElements:_r,addValidChildren:Go}},x2=function(o,s,d,m){var E=function(D){return D=parseInt(D,10).toString(16),D.length>1?D:"0"+D};return"#"+E(s)+E(d)+E(m)},a1=function(o,s){var d=this,m=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,E=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,D=/\s*([^:]+):\s*([^;]+);?/g,J=/\s+$/,ue,me={},Le,tt,nt=Wv;o=o||{},s&&(Le=s.getValidStyles(),tt=s.getInvalidStyles());var it=(`\\" \\' \\; \\: ; : `+nt).split(" ");for(ue=0;ue<it.length;ue++)me[it[ue]]=nt+ue,me[nt+ue]=it[ue];return{toHex:function(kt){return kt.replace(m,x2)},parse:function(kt){var Nt={},Lt,$t,Jt,qt,Mn=o.url_converter,xn=o.url_converter_scope||d,ln=function(Sr,Xr,Tr){var Fr=Nt[Sr+"-top"+Xr];if(!!Fr){var ho=Nt[Sr+"-right"+Xr];if(!!ho){var mr=Nt[Sr+"-bottom"+Xr];if(!!mr){var ro=Nt[Sr+"-left"+Xr];if(!!ro){var Va=[Fr,ho,mr,ro];for(ue=Va.length-1;ue--&&Va[ue]===Va[ue+1];);ue>-1&&Tr||(Nt[Sr+Xr]=ue===-1?Va[0]:Va.join(" "),delete Nt[Sr+"-top"+Xr],delete Nt[Sr+"-right"+Xr],delete Nt[Sr+"-bottom"+Xr],delete Nt[Sr+"-left"+Xr])}}}}},In=function(Sr){var Xr=Nt[Sr],Tr;if(!!Xr){for(Xr=Xr.split(" "),Tr=Xr.length;Tr--;)if(Xr[Tr]!==Xr[0])return!1;return Nt[Sr]=Xr[0],!0}},ir=function(Sr,Xr,Tr,Fr){!In(Xr)||!In(Tr)||!In(Fr)||(Nt[Sr]=Nt[Xr]+" "+Nt[Tr]+" "+Nt[Fr],delete Nt[Xr],delete Nt[Tr],delete Nt[Fr])},_r=function(Sr){return qt=!0,me[Sr]},Go=function(Sr,Xr){return qt&&(Sr=Sr.replace(/\uFEFF[0-9]/g,function(Tr){return me[Tr]})),Xr||(Sr=Sr.replace(/\\([\'\";:])/g,"$1")),Sr},eo=function(Sr){return String.fromCharCode(parseInt(Sr.slice(1),16))},lr=function(Sr){return Sr.replace(/\\[0-9a-f]+/gi,eo)},Lo=function(Sr,Xr,Tr,Fr,ho,mr){if(ho=ho||mr,ho)return ho=Go(ho),"'"+ho.replace(/\'/g,"\\'")+"'";if(Xr=Go(Xr||Tr||Fr),!o.allow_script_urls){var ro=Xr.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ro)||!o.allow_svg_data_urls&&/^data:image\/svg/i.test(ro))return""}return Mn&&(Xr=Mn.call(xn,Xr,"style")),"url('"+Xr.replace(/\'/g,"\\'")+"')"};if(kt){for(kt=kt.replace(/[\u0000-\u001F]/g,""),kt=kt.replace(/\\[\"\';:\uFEFF]/g,_r).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(Sr){return Sr.replace(/[;:]/g,_r)});Lt=D.exec(kt);)if(D.lastIndex=Lt.index+Lt[0].length,$t=Lt[1].replace(J,"").toLowerCase(),Jt=Lt[2].replace(J,""),$t&&Jt){if($t=lr($t),Jt=lr(Jt),$t.indexOf(nt)!==-1||$t.indexOf('"')!==-1||!o.allow_script_urls&&($t==="behavior"||/expression\s*\(|\/\*|\*\//.test(Jt)))continue;$t==="font-weight"&&Jt==="700"?Jt="bold":($t==="color"||$t==="background-color")&&(Jt=Jt.toLowerCase()),Jt=Jt.replace(m,x2),Jt=Jt.replace(E,Lo),Nt[$t]=qt?Go(Jt,!0):Jt}ln("border","",!0),ln("border","-width"),ln("border","-color"),ln("border","-style"),ln("padding",""),ln("margin",""),ir("border","border-width","border-style","border-color"),Nt.border==="medium none"&&delete Nt.border,Nt["border-image"]==="none"&&delete Nt["border-image"]}return Nt},serialize:function(kt,Nt){var Lt="",$t=function(qt){var Mn,xn=Le[qt];if(xn)for(var ln=0,In=xn.length;ln<In;ln++)qt=xn[ln],Mn=kt[qt],Mn&&(Lt+=(Lt.length>0?" ":"")+qt+": "+Mn+";")},Jt=function(qt,Mn){var xn=tt["*"];return xn&&xn[qt]?!1:(xn=tt[Mn],!(xn&&xn[qt]))};return Nt&&Le?($t("*"),$t(Nt)):Vt(kt,function(qt,Mn){qt&&(!tt||Jt(Mn,Nt))&&(Lt+=(Lt.length>0?" ":"")+Mn+": "+qt+";")}),Lt}}},Db={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Fi=function(o){return o instanceof Event||Y(o.initEvent)},E2=function(o){return o.isDefaultPrevented===j||o.isDefaultPrevented===U},S2=function(o){return Z(o.preventDefault)||Fi(o)},Wm=function(o,s){var d=s!=null?s:{};for(var m in o)io(Db,m)||(d[m]=o[m]);return z(d.composedPath)&&(d.composedPath=function(){return o.composedPath()}),d},sr=function(o,s,d,m){var E,D=Wm(s,m);return D.type=o,Z(D.target)&&(D.target=(E=D.srcElement)!==null&&E!==void 0?E:d),S2(s)&&(D.preventDefault=function(){D.defaultPrevented=!0,D.isDefaultPrevented=j,Y(s.preventDefault)?s.preventDefault():Fi(s)&&(s.returnValue=!1)},D.stopPropagation=function(){D.cancelBubble=!0,D.isPropagationStopped=j,Y(s.stopPropagation)?s.stopPropagation():Fi(s)&&(s.cancelBubble=!0)},D.stopImmediatePropagation=function(){D.isImmediatePropagationStopped=j,D.stopPropagation()},E2(D)||(D.isDefaultPrevented=D.defaultPrevented===!0?j:U,D.isPropagationStopped=D.cancelBubble===!0?j:U,D.isImmediatePropagationStopped=U)),D},T2="mce-data-",Up=/^(?:mouse|contextmenu)|click/,Bh=function(o,s,d,m){o.addEventListener?o.addEventListener(s,d,m||!1):o.attachEvent&&o.attachEvent("on"+s,d)},Gm=function(o,s,d,m){o.removeEventListener?o.removeEventListener(s,d,m||!1):o.detachEvent&&o.detachEvent("on"+s,d)},z0=function(o){return z(o)&&Up.test(o.type)},ms=function(o,s){var d=sr(o.type,o,document,s);if(z0(o)&&X(o.pageX)&&!X(o.clientX)){var m=d.target.ownerDocument||document,E=m.documentElement,D=m.body,J=d;J.pageX=o.clientX+(E&&E.scrollLeft||D&&D.scrollLeft||0)-(E&&E.clientLeft||D&&D.clientLeft||0),J.pageY=o.clientY+(E&&E.scrollTop||D&&D.scrollTop||0)-(E&&E.clientTop||D&&D.clientTop||0)}return X(d.metaKey)&&(d.metaKey=!1),d},H0=function(o,s,d){var m=o.document,E={type:"ready"};if(d.domLoaded){s(E);return}var D=function(){return m.readyState==="complete"||m.readyState==="interactive"&&m.body},J=function(){Gm(o,"DOMContentLoaded",J),Gm(o,"load",J),d.domLoaded||(d.domLoaded=!0,s(E)),o=null};D()?J():Bh(o,"DOMContentLoaded",J),d.domLoaded||Bh(o,"load",J)},Ph=function(){function o(){this.domLoaded=!1,this.events={},this.count=1,this.expando=T2+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return o.prototype.bind=function(s,d,m,E){var D=this,J,ue,me,Le,tt,nt,it,kt=window,Nt=function($t){D.executeHandlers(ms($t||kt.event),J)};
72if(!(!s||s.nodeType===3||s.nodeType===8)){s[D.expando]?J=s[D.expando]:(J=D.count++,s[D.expando]=J,D.events[J]={}),E=E||s;var Lt=d.split(" ");for(me=Lt.length;me--;){if(Le=Lt[me],nt=Nt,tt=it=!1,Le==="DOMContentLoaded"&&(Le="ready"),D.domLoaded&&Le==="ready"&&s.readyState==="complete"){m.call(E,ms({type:Le}));continue}D.hasMouseEnterLeave||(tt=D.mouseEnterLeave[Le],tt&&(nt=function($t){var Jt=$t.currentTarget,qt=$t.relatedTarget;if(qt&&Jt.contains)qt=Jt.contains(qt);else for(;qt&&qt!==Jt;)qt=qt.parentNode;qt||($t=ms($t||kt.event),$t.type=$t.type==="mouseout"?"mouseleave":"mouseenter",$t.target=Jt,D.executeHandlers($t,J))})),!D.hasFocusIn&&(Le==="focusin"||Le==="focusout")&&(it=!0,tt=Le==="focusin"?"focus":"blur",nt=function($t){$t=ms($t||kt.event),$t.type=$t.type==="focus"?"focusin":"focusout",D.executeHandlers($t,J)}),ue=D.events[J][Le],ue?Le==="ready"&&D.domLoaded?m(ms({type:Le})):ue.push({func:m,scope:E}):(D.events[J][Le]=ue=[{func:m,scope:E}],ue.fakeName=tt,ue.capture=it,ue.nativeHandler=nt,Le==="ready"?H0(s,nt,D):Bh(s,tt||Le,nt,it))}return s=ue=null,m}},o.prototype.unbind=function(s,d,m){var E,D,J,ue,me;if(!s||s.nodeType===3||s.nodeType===8)return this;var Le=s[this.expando];if(Le){if(me=this.events[Le],d){var tt=d.split(" ");for(D=tt.length;D--;)if(ue=tt[D],E=me[ue],E){if(m){for(J=E.length;J--;)if(E[J].func===m){var nt=E.nativeHandler,it=E.fakeName,kt=E.capture;E=E.slice(0,J).concat(E.slice(J+1)),E.nativeHandler=nt,E.fakeName=it,E.capture=kt,me[ue]=E}}(!m||E.length===0)&&(delete me[ue],Gm(s,E.fakeName||ue,E.nativeHandler,E.capture))}}else Vt(me,function(Nt,Lt){Gm(s,Nt.fakeName||Lt,Nt.nativeHandler,Nt.capture)}),me={};for(ue in me)if(io(me,ue))return this;delete this.events[Le];try{delete s[this.expando]}catch{s[this.expando]=null}}return this},o.prototype.fire=function(s,d,m){var E;if(!s||s.nodeType===3||s.nodeType===8)return this;var D=ms({type:d,target:s},m);do E=s[this.expando],E&&this.executeHandlers(D,E),s=s.parentNode||s.ownerDocument||s.defaultView||s.parentWindow;while(s&&!D.isPropagationStopped());return this},o.prototype.clean=function(s){var d,m;if(!s||s.nodeType===3||s.nodeType===8)return this;if(s[this.expando]&&this.unbind(s),s.getElementsByTagName||(s=s.document),s&&s.getElementsByTagName)for(this.unbind(s),m=s.getElementsByTagName("*"),d=m.length;d--;)s=m[d],s[this.expando]&&this.unbind(s);return this},o.prototype.destroy=function(){this.events={}},o.prototype.cancel=function(s){return s&&(s.preventDefault(),s.stopImmediatePropagation()),!1},o.prototype.executeHandlers=function(s,d){var m=this.events[d],E=m&&m[s.type];if(E)for(var D=0,J=E.length;D<J;D++){var ue=E[D];if(ue&&ue.func.call(ue.scope,s)===!1&&s.preventDefault(),s.isImmediatePropagationStopped())return}},o.Event=new o,o}(),Hs,qo,Uc,A2,ef,k2,k1,cv,fv,id,dv,Ul,ei,O1,Fh,M1,V0,so,pu="sizzle"+-new Date,gs=window.document,vv=0,Km=0,G3=jl(),U0=jl(),b=jl(),k=function(o,s){return o===s&&(id=!0),0},q="undefined",W=1<<31,ae={}.hasOwnProperty,Ee=[],Be=Ee.pop,Ve=Ee.push,Je=Ee.push,dt=Ee.slice,Yt=Ee.indexOf||function(o){for(var s=0,d=this.length;s<d;s++)if(this[s]===o)return s;return-1},rn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Sn="[\\x20\\t\\r\\n\\f]",Cn="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",tr="\\["+Sn+"*("+Cn+")(?:"+Sn+"*([*^$|!~]?=)"+Sn+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Cn+"))|)"+Sn+"*\\]",Or=":("+Cn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+tr+")*)|.*)\\)|)",Qr=new RegExp("^"+Sn+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Sn+"+$","g"),yo=new RegExp("^"+Sn+"*,"+Sn+"*"),Mo=new RegExp("^"+Sn+"*([>+~]|"+Sn+")"+Sn+"*"),no=new RegExp("="+Sn+`*([^\\]'"]*?)`+Sn+"*\\]","g"),Uo=new RegExp(Or),ca=new RegExp("^"+Cn+"$"),sa={ID:new RegExp("^#("+Cn+")"),CLASS:new RegExp("^\\.("+Cn+")"),TAG:new RegExp("^("+Cn+"|[*])"),ATTR:new RegExp("^"+tr),PSEUDO:new RegExp("^"+Or),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Sn+"*(even|odd|(([+-]|)(\\d*)n|)"+Sn+"*(?:([+-]|)"+Sn+"*(\\d+)|))"+Sn+"*\\)|)","i"),bool:new RegExp("^(?:"+rn+")$","i"),needsContext:new RegExp("^"+Sn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Sn+"*((?:-\\d)?\\d*)"+Sn+"*\\)|)(?=[^-]|$)","i")},yi=/^(?:input|select|textarea|button)$/i,Vs=/^h\d$/i,mu=/^[^{]+\{\s*\[native \w/,fl=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tf=/[+~]/,Af=/'|\\/g,Xs=new RegExp("\\\\([\\da-f]{1,6}"+Sn+"?|("+Sn+")|.)","ig"),Ql=function(o,s,d){var m="0x"+s-65536;return m!==m||d?s:m<0?String.fromCharCode(m+65536):String.fromCharCode(m>>10|55296,m&1023|56320)};try{Je.apply(Ee=dt.call(gs.childNodes),gs.childNodes),Ee[gs.childNodes.length].nodeType}catch{Je={apply:Ee.length?function(s,d){Ve.apply(s,dt.call(d))}:function(s,d){for(var m=s.length,E=0;s[m++]=d[E++];);s.length=m-1}}}var Da=function(o,s,d,m){var E,D,J,ue,me,Le,tt,nt,it,kt;if((s?s.ownerDocument||s:gs)!==Ul&&dv(s),s=s||Ul,d=d||[],!o||typeof o!="string")return d;if((ue=s.nodeType)!==1&&ue!==9)return[];if(O1&&!m){if(E=fl.exec(o))if(J=E[1]){if(ue===9)if(D=s.getElementById(J),D&&D.parentNode){if(D.id===J)return d.push(D),d}else return d;else if(s.ownerDocument&&(D=s.ownerDocument.getElementById(J))&&so(s,D)&&D.id===J)return d.push(D),d}else{if(E[2])return Je.apply(d,s.getElementsByTagName(o)),d;if((J=E[3])&&Hs.getElementsByClassName)return Je.apply(d,s.getElementsByClassName(J)),d}if(Hs.qsa&&(!Fh||!Fh.test(o))){if(nt=tt=pu,it=s,kt=ue===9&&o,ue===1&&s.nodeName.toLowerCase()!=="object"){for(Le=ef(o),(tt=s.getAttribute("id"))?nt=tt.replace(Af,"\\$&"):s.setAttribute("id",nt),nt="[id='"+nt+"'] ",me=Le.length;me--;)Le[me]=nt+Jl(Le[me]);it=tf.test(o)&&Pu(s.parentNode)||s,kt=Le.join(",")}if(kt)try{return Je.apply(d,it.querySelectorAll(kt)),d}catch{}finally{tt||s.removeAttribute("id")}}}return k1(o.replace(Qr,"$1"),s,d,m)};function jl(){var o=[];function s(d,m){return o.push(d+" ")>qo.cacheLength&&delete s[o.shift()],s[d+" "]=m}return s}function Es(o){return o[pu]=!0,o}function Nl(o,s){var d=s&&o,m=d&&o.nodeType===1&&s.nodeType===1&&(~s.sourceIndex||W)-(~o.sourceIndex||W);if(m)return m;if(d){for(;d=d.nextSibling;)if(d===s)return-1}return o?1:-1}function _l(o){return function(s){var d=s.nodeName.toLowerCase();return d==="input"&&s.type===o}}function kf(o){return function(s){var d=s.nodeName.toLowerCase();return(d==="input"||d==="button")&&s.type===o}}function Of(o){return Es(function(s){return s=+s,Es(function(d,m){for(var E,D=o([],d.length,s),J=D.length;J--;
72)d[E=D[J]]&&(d[E]=!(m[E]=d[E]))})})}function Pu(o){return o&&typeof o.getElementsByTagName!==q&&o}Hs=Da.support={},A2=Da.isXML=function(o){var s=o&&(o.ownerDocument||o).documentElement;return s?s.nodeName!=="HTML":!1},dv=Da.setDocument=function(o){var s,d=o?o.ownerDocument||o:gs,m=d.defaultView;function E(D){try{return D.top}catch{}return null}return d===Ul||d.nodeType!==9||!d.documentElement?Ul:(Ul=d,ei=d.documentElement,O1=!A2(d),m&&m!==E(m)&&(m.addEventListener?m.addEventListener("unload",function(){dv()},!1):m.attachEvent&&m.attachEvent("onunload",function(){dv()})),Hs.attributes=!0,Hs.getElementsByTagName=!0,Hs.getElementsByClassName=mu.test(d.getElementsByClassName),Hs.getById=!0,qo.find.ID=function(D,J){if(typeof J.getElementById!==q&&O1){var ue=J.getElementById(D);return ue&&ue.parentNode?[ue]:[]}},qo.filter.ID=function(D){var J=D.replace(Xs,Ql);return function(ue){return ue.getAttribute("id")===J}},qo.find.TAG=Hs.getElementsByTagName?function(D,J){if(typeof J.getElementsByTagName!==q)return J.getElementsByTagName(D)}:function(D,J){var ue,me=[],Le=0,tt=J.getElementsByTagName(D);if(D==="*"){for(;ue=tt[Le++];)ue.nodeType===1&&me.push(ue);return me}return tt},qo.find.CLASS=Hs.getElementsByClassName&&function(D,J){if(O1)return J.getElementsByClassName(D)},M1=[],Fh=[],Hs.disconnectedMatch=!0,Fh=Fh.length&&new RegExp(Fh.join("|")),M1=M1.length&&new RegExp(M1.join("|")),s=mu.test(ei.compareDocumentPosition),so=s||mu.test(ei.contains)?function(D,J){var ue=D.nodeType===9?D.documentElement:D,me=J&&J.parentNode;return D===me||!!(me&&me.nodeType===1&&(ue.contains?ue.contains(me):D.compareDocumentPosition&&D.compareDocumentPosition(me)&16))}:function(D,J){if(J){for(;J=J.parentNode;)if(J===D)return!0}return!1},k=s?function(D,J){if(D===J)return id=!0,0;var ue=!D.compareDocumentPosition-!J.compareDocumentPosition;return ue||(ue=(D.ownerDocument||D)===(J.ownerDocument||J)?D.compareDocumentPosition(J):1,ue&1||!Hs.sortDetached&&J.compareDocumentPosition(D)===ue?D===d||D.ownerDocument===gs&&so(gs,D)?-1:J===d||J.ownerDocument===gs&&so(gs,J)?1:fv?Yt.call(fv,D)-Yt.call(fv,J):0:ue&4?-1:1)}:function(D,J){if(D===J)return id=!0,0;var ue,me=0,Le=D.parentNode,tt=J.parentNode,nt=[D],it=[J];if(!Le||!tt)return D===d?-1:J===d?1:Le?-1:tt?1:fv?Yt.call(fv,D)-Yt.call(fv,J):0;if(Le===tt)return Nl(D,J);for(ue=D;ue=ue.parentNode;)nt.unshift(ue);for(ue=J;ue=ue.parentNode;)it.unshift(ue);for(;nt[me]===it[me];)me++;return me?Nl(nt[me],it[me]):nt[me]===gs?-1:it[me]===gs?1:0},d)},Da.matches=function(o,s){return Da(o,null,null,s)},Da.matchesSelector=function(o,s){if((o.ownerDocument||o)!==Ul&&dv(o),s=s.replace(no,"='$1']"),Hs.matchesSelector&&O1&&(!M1||!M1.test(s))&&(!Fh||!Fh.test(s)))try{var d=V0.call(o,s);if(d||Hs.disconnectedMatch||o.document&&o.document.nodeType!==11)return d}catch{}return Da(s,Ul,null,[o]).length>0},Da.contains=function(o,s){return(o.ownerDocument||o)!==Ul&&dv(o),so(o,s)},Da.attr=function(o,s){(o.ownerDocument||o)!==Ul&&dv(o);var d=qo.attrHandle[s.toLowerCase()],m=d&&ae.call(qo.attrHandle,s.toLowerCase())?d(o,s,!O1):void 0;return m!==void 0?m:Hs.attributes||!O1?o.getAttribute(s):(m=o.getAttributeNode(s))&&m.specified?m.value:null},Da.error=function(o){throw new Error("Syntax error, unrecognized expression: "+o)},Da.uniqueSort=function(o){var s,d=[],m=0,E=0;if(id=!Hs.detectDuplicates,fv=!Hs.sortStable&&o.slice(0),o.sort(k),id){for(;s=o[E++];)s===o[E]&&(m=d.push(E));for(;m--;)o.splice(d[m],1)}return fv=null,o},Uc=Da.getText=function(o){var s,d="",m=0,E=o.nodeType;if(E){if(E===1||E===9||E===11){if(typeof o.textContent=="string")return o.textContent;for(o=o.firstChild;o;o=o.nextSibling)d+=Uc(o)}else if(E===3||E===4)return o.nodeValue}else for(;s=o[m++];)d+=Uc(s);return d},qo=Da.selectors={cacheLength:50,createPseudo:Es,match:sa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(o){return o[1]=o[1].replace(Xs,Ql),o[3]=(o[3]||o[4]||o[5]||"").replace(Xs,Ql),o[2]==="~="&&(o[3]=" "+o[3]+" "),o.slice(0,4)},CHILD:function(o){return o[1]=o[1].toLowerCase(),o[1].slice(0,3)==="nth"?(o[3]||Da.error(o[0]),o[4]=+(o[4]?o[5]+(o[6]||1):2*(o[3]==="even"||o[3]==="odd")),o[5]=+(o[7]+o[8]||o[3]==="odd")):o[3]&&Da.error(o[0]),o},PSEUDO:function(o){var s,d=!o[6]&&o[2];return sa.CHILD.test(o[0])?null:(o[3]?o[2]=o[4]||o[5]||"":d&&Uo.test(d)&&(s=ef(d,!0))&&(s=d.indexOf(")",d.length-s)-d.length)&&(o[0]=o[0].slice(0,s),o[2]=d.slice(0,s)),o.slice(0,3))}},filter:{TAG:function(o){var s=o.replace(Xs,Ql).toLowerCase();return o==="*"?function(){return!0}:function(d){return d.nodeName&&d.nodeName.toLowerCase()===s}},CLASS:function(o){var s=G3[o+" "];return s||(s=new RegExp("(^|"+Sn+")"+o+"("+Sn+"|$)"))&&G3(o,function(d){return s.test(typeof d.className=="string"&&d.className||typeof d.getAttribute!==q&&d.getAttribute("class")||"")})},ATTR:function(o,s,d){return function(m){var E=Da.attr(m,o);return E==null?s==="!=":s?(E+="",s==="="?E===d:s==="!="?E!==d:s==="^="?d&&E.indexOf(d)===0:s==="*="?d&&E.indexOf(d)>-1:s==="$="?d&&E.slice(-d.length)===d:s==="~="?(" "+E+" ").indexOf(d)>-1:s==="|="?E===d||E.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(o,s,d,m,E){var D=o.slice(0,3)!=="nth",J=o.slice(-4)!=="last",ue=s==="of-type";return m===1&&E===0?function(me){return!!me.parentNode}:function(me,Le,tt){var nt,it,kt,Nt,Lt,$t,Jt=D!==J?"nextSibling":"previousSibling",qt=me.parentNode,Mn=ue&&me.nodeName.toLowerCase(),xn=!tt&&!ue;if(qt){if(D){for(;Jt;){for(kt=me;kt=kt[Jt];)if(ue?kt.nodeName.toLowerCase()===Mn:kt.nodeType===1)return!1;$t=Jt=o==="only"&&!$t&&"nextSibling"}return!0}
vendor: 5,803 bytes, line 72
72if($t=[J?qt.firstChild:qt.lastChild],J&&xn){for(it=qt[pu]||(qt[pu]={}),nt=it[o]||[],Lt=nt[0]===vv&&nt[1],Nt=nt[0]===vv&&nt[2],kt=Lt&&qt.childNodes[Lt];kt=++Lt&&kt&&kt[Jt]||(Nt=Lt=0)||$t.pop();)if(kt.nodeType===1&&++Nt&&kt===me){it[o]=[vv,Lt,Nt];break}}else if(xn&&(nt=(me[pu]||(me[pu]={}))[o])&&nt[0]===vv)Nt=nt[1];else for(;(kt=++Lt&&kt&&kt[Jt]||(Nt=Lt=0)||$t.pop())&&!((ue?kt.nodeName.toLowerCase()===Mn:kt.nodeType===1)&&++Nt&&(xn&&((kt[pu]||(kt[pu]={}))[o]=[vv,Nt]),kt===me)););return Nt-=E,Nt===m||Nt%m===0&&Nt/m>=0}}},PSEUDO:function(o,s){var d,m=qo.pseudos[o]||qo.setFilters[o.toLowerCase()]||Da.error("unsupported pseudo: "+o);return m[pu]?m(s):m.length>1?(d=[o,o,"",s],qo.setFilters.hasOwnProperty(o.toLowerCase())?Es(function(E,D){for(var J,ue=m(E,s),me=ue.length;me--;)J=Yt.call(E,ue[me]),E[J]=!(D[J]=ue[me])}):function(E){return m(E,0,d)}):m}},pseudos:{not:Es(function(o){var s=[],d=[],m=k2(o.replace(Qr,"$1"));return m[pu]?Es(function(E,D,J,ue){for(var me,Le=m(E,null,ue,[]),tt=E.length;tt--;)(me=Le[tt])&&(E[tt]=!(D[tt]=me))}):function(E,D,J){return s[0]=E,m(s,null,J,d),s[0]=null,!d.pop()}}),has:Es(function(o){return function(s){return Da(o,s).length>0}}),contains:Es(function(o){return o=o.replace(Xs,Ql),function(s){return(s.textContent||s.innerText||Uc(s)).indexOf(o)>-1}}),lang:Es(function(o){return ca.test(o||"")||Da.error("unsupported lang: "+o),o=o.replace(Xs,Ql).toLowerCase(),function(s){var d;do if(d=O1?s.lang:s.getAttribute("xml:lang")||s.getAttribute("lang"))return d=d.toLowerCase(),d===o||d.indexOf(o+"-")===0;while((s=s.parentNode)&&s.nodeType===1);return!1}}),target:function(o){var s=window.location&&window.location.hash;return s&&s.slice(1)===o.id},root:function(o){return o===ei},focus:function(o){return o===Ul.activeElement&&(!Ul.hasFocus||Ul.hasFocus())&&!!(o.type||o.href||~o.tabIndex)},enabled:function(o){return o.disabled===!1},disabled:function(o){return o.disabled===!0},checked:function(o){var s=o.nodeName.toLowerCase();return s==="input"&&!!o.checked||s==="option"&&!!o.selected},selected:function(o){return o.parentNode&&o.parentNode.selectedIndex,o.selected===!0},empty:function(o){for(o=o.firstChild;o;o=o.nextSibling)if(o.nodeType<6)return!1;return!0},parent:function(o){return!qo.pseudos.empty(o)},header:function(o){return Vs.test(o.nodeName)},input:function(o){return yi.test(o.nodeName)},button:function(o){var s=o.nodeName.toLowerCase();return s==="input"&&o.type==="button"||s==="button"},text:function(o){var s;return o.nodeName.toLowerCase()==="input"&&o.type==="text"&&((s=o.getAttribute("type"))==null||s.toLowerCase()==="text")},first:Of(function(){return[0]}),last:Of(function(o,s){return[s-1]}),eq:Of(function(o,s,d){return[d<0?d+s:d]}),even:Of(function(o,s){for(var d=0;d<s;d+=2)o.push(d);return o}),odd:Of(function(o,s){for(var d=1;d<s;d+=2)o.push(d);return o}),lt:Of(function(o,s,d){for(var m=d<0?d+s:d;--m>=0;)o.push(m);return o}),gt:Of(function(o,s,d){for(var m=d<0?d+s:d;++m<s;)o.push(m);return o})}},qo.pseudos.nth=qo.pseudos.eq,ct(["radio","checkbox","file","password","image"],function(o){qo.pseudos[o]=_l(o)}),ct(["submit","reset"],function(o){qo.pseudos[o]=kf(o)});function sd(){}sd.prototype=qo.filters=qo.pseudos,qo.setFilters=new sd,ef=Da.tokenize=function(o,s){var d,m,E,D,J,ue,me,Le=U0[o+" "];if(Le)return s?0:Le.slice(0);for(J=o,ue=[],me=qo.preFilter;J;){(!d||(m=yo.exec(J)))&&(m&&(J=J.slice(m[0].length)||J),ue.push(E=[])),d=!1,(m=Mo.exec(J))&&(d=m.shift(),E.push({value:d,type:m[0].replace(Qr," ")}),J=J.slice(d.length));for(D in qo.filter)!qo.filter.hasOwnProperty(D)||(m=sa[D].exec(J))&&(!me[D]||(m=me[D](m)))&&(d=m.shift(),E.push({value:d,type:D,matches:m}),J=J.slice(d.length));if(!d)break}return s?J.length:J?Da.error(o):U0(o,ue).slice(0)};function Jl(o){for(var s=0,d=o.length,m="";s<d;s++)m+=o[s].value;return m}function jp(o,s,d){var m=s.dir,E=d&&m==="parentNode",D=Km++;return s.first?function(J,ue,me){for(;J=J[m];)if(J.nodeType===1||E)return o(J,ue,me)}:function(J,ue,me){var Le,tt,nt=[vv,D];if(me){for(;J=J[m];)if((J.nodeType===1||E)&&o(J,ue,me))return!0}else for(;J=J[m];)if(J.nodeType===1||E){if(tt=J[pu]||(J[pu]={}),(Le=tt[m])&&Le[0]===vv&&Le[1]===D)return nt[2]=Le[2];if(tt[m]=nt,nt[2]=o(J,ue,me))return!0}}}function Mf(o){return o.length>1?function(s,d,m){for(var E=o.length;E--;)if(!o[E](s,d,m))return!1;return!0}:o[0]}function j0(o,s,d){for(var m=0,E=s.length;m<E;m++)Da(o,s[m],d);return d}function hv(o,s,d,m,E){for(var D,J=[],ue=0,me=o.length,Le=s!=null;ue<me;ue++)(D=o[ue])&&(!d||d(D,m,E))&&(J.push(D),Le&&s.push(ue));return J}function gu(o,s,d,m,E,D){return m&&!m[pu]&&(m=gu(m)),E&&!E[pu]&&(E=gu(E,D)),Es(function(J,ue,me,Le){var tt,nt,it,kt=[],Nt=[],Lt=ue.length,$t=J||j0(s||"*",me.nodeType?[me]:me,[]),Jt=o&&(J||!s)?hv($t,kt,o,me,Le):$t,qt=d?E||(J?o:Lt||m)?[]:ue:Jt;if(d&&d(Jt,qt,me,Le),m)for(tt=hv(qt,Nt),m(tt,[],me,Le),nt=tt.length;nt--;)(it=tt[nt])&&(qt[Nt[nt]]=!(Jt[Nt[nt]]=it));if(J){if(E||o){if(E){for(tt=[],nt=qt.length;nt--;)(it=qt[nt])&&tt.push(Jt[nt]=it);E(null,qt=[],tt,Le)}for(nt=qt.length;nt--;)(it=qt[nt])&&(tt=E?Yt.call(J,it):kt[nt])>-1&&(J[tt]=!(ue[tt]=it))}}else qt=hv(qt===ue?qt.splice(Lt,qt.length):qt),E?E(null,ue,qt,Le):Je.apply(ue,qt)})}function pv(o){for(var s,d,m,E=o.length,D=qo.relative[o[0].type],J=D||qo.relative[" "],ue=D?1:0,me=jp(function(nt){return nt===s},J,!0),Le=jp(function(nt){return Yt.call(s,nt)>-1},J,!0),tt=[function(nt,it,kt){var Nt=!D&&(kt||it!==cv)||((s=it).nodeType?me(nt,it,kt):Le(nt,it,kt));return s=null,Nt}];ue<E;ue++)if(d=qo.relative[o[ue].type])tt=[jp(Mf(tt),d)];else{if(d=qo.filter[o[ue].type].apply(null,o[ue].matches),d[pu]){for(m=++ue;m<E&&!qo.relative[o[m].type];m++);return gu(ue>1&&Mf(tt),ue>1&&Jl(o.slice(0,ue-1).concat({value:o[ue-2].type===" "?"*":""})).replace(Qr,"$1"),d,ue<m&&pv(o.slice(ue,m)),m<E&&pv(o=o.slice(m)),m<E&&Jl(o))}
72tt.push(d)}return Mf(tt)}function W0(o,s){var d=s.length>0,m=o.length>0,E=function(D,J,ue,me,Le){var tt,nt,it,kt=0,Nt="0",Lt=D&&[],$t=[],Jt=cv,qt=D||m&&qo.find.TAG("*",Le),Mn=vv+=Jt==null?1:Math.random()||.1,xn=qt.length;for(Le&&(cv=J!==Ul&&J);Nt!==xn&&(tt=qt[Nt])!=null;Nt++){if(m&&tt){for(nt=0;it=o[nt++];)if(it(tt,J,ue)){me.push(tt);break}Le&&(vv=Mn)}d&&((tt=!it&&tt)&&kt--,D&&Lt.push(tt))}if(kt+=Nt,d&&Nt!==kt){for(nt=0;it=s[nt++];)it(Lt,$t,J,ue);if(D){if(kt>0)for(;Nt--;)Lt[Nt]||$t[Nt]||($t[Nt]=Be.call(me));$t=hv($t)}Je.apply(me,$t),Le&&!D&&$t.length>0&&kt+s.length>1&&Da.uniqueSort(me)}return Le&&(vv=Mn,cv=Jt),Lt};return d?Es(E):E}k2=Da.compile=function(o,s){var d,m=[],E=[],D=b[o+" "];if(!D){for(s||(s=ef(o)),d=s.length;d--;)D=pv(s[d]),D[pu]?m.push(D):E.push(D);D=b(o,W0(E,m)),D.selector=o}return D},k1=Da.select=function(o,s,d,m){var E,D,J,ue,me,Le=typeof o=="function"&&o,tt=!m&&ef(o=Le.selector||o);if(d=d||[],tt.length===1){if(D=tt[0]=tt[0].slice(0),D.length>2&&(J=D[0]).type==="ID"&&Hs.getById&&s.nodeType===9&&O1&&qo.relative[D[1].type]){if(s=(qo.find.ID(J.matches[0].replace(Xs,Ql),s)||[])[0],s)Le&&(s=s.parentNode);else return d;o=o.slice(D.shift().value.length)}for(E=sa.needsContext.test(o)?0:D.length;E--&&(J=D[E],!qo.relative[ue=J.type]);)if((me=qo.find[ue])&&(m=me(J.matches[0].replace(Xs,Ql),tf.test(D[0].type)&&Pu(s.parentNode)||s))){if(D.splice(E,1),o=m.length&&Jl(D),!o)return Je.apply(d,m),d;break}}return(Le||k2(o,tt))(m,s,!O1,d,tf.test(o)&&Pu(s.parentNode)||s),d},Hs.sortStable=pu.split("").sort(k).join("")===pu,Hs.detectDuplicates=!!id,dv(),Hs.sortDetached=!0;var a5=document,yu=Array.prototype.push,Ym=Array.prototype.slice,eu=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Nf=Ph.Event,qm=Gn.makeMap("children,contents,next,prev"),i1=function(o){return typeof o!="undefined"},K3=function(o){return typeof o=="string"},$h=function(o){return o&&o===o.window},O2=function(o,s){s=s||a5;var d=s.createElement("div"),m=s.createDocumentFragment();d.innerHTML=o;for(var E;E=d.firstChild;)m.appendChild(E);return m},M2=function(o,s,d,m){var E;if(K3(s))s=O2(s,Wp(o[0]));else if(s.length&&!s.nodeType){if(s=Ta.makeArray(s),m)for(E=s.length-1;E>=0;E--)M2(o,s[E],d,m);else for(E=0;E<s.length;E++)M2(o,s[E],d,m);return o}if(s.nodeType)for(E=o.length;E--;)d.call(o[E],s);return o},GC=function(o,s){return o&&s&&(" "+o.className+" ").indexOf(" "+s+" ")!==-1},KC=function(o,s,d){var m,E;return s=Ta(s)[0],o.each(function(){var D=this;(!d||m!==D.parentNode)&&(m=D.parentNode,E=s.cloneNode(!1),D.parentNode.insertBefore(E,D)),E.appendChild(D)}),o},A7=Gn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),k7=Gn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),O7={for:"htmlFor",class:"className",readonly:"readOnly"},YC={float:"cssFloat"},Y3={},q3={},wc=function(o,s){return new Ta.fn.init(o,s)},X3=function(o,s){var d;if(s.indexOf)return s.indexOf(o);for(d=s.length;d--;)if(s[d]===o)return d;return-1},i5=/^\s*|\s*$/g,N1=function(o){return o==null?"":(""+o).replace(i5,"")},Us=function(o,s){var d,m,E,D;if(o)if(d=o.length,d===void 0){for(m in o)if(o.hasOwnProperty(m)&&(D=o[m],s.call(D,m,D)===!1))break}else for(E=0;E<d&&(D=o[E],s.call(D,E,D)!==!1);E++);return o},s1=function(o,s){var d=[];return Us(o,function(m,E){s(E,m)&&d.push(E)}),d},Wp=function(o){return o?o.nodeType===9?o:o.ownerDocument:a5};wc.fn=wc.prototype={constructor:wc,selector:"",context:null,length:0,init:function(o,s){var d=this,m,E;if(!o)return d;if(o.nodeType)return d.context=d[0]=o,d.length=1,d;if(s&&s.nodeType)d.context=s;else{if(s)return Ta(o).attr(s);d.context=s=document}if(K3(o))if(d.selector=o,o.charAt(0)==="<"&&o.charAt(o.length-1)===">"&&o.length>=3?m=[null,o,null]:m=eu.exec(o),m)if(m[1])for(E=O2(o,Wp(s)).firstChild;E;)yu.call(d,E),E=E.nextSibling;else{if(E=Wp(s).getElementById(m[2]),!E)return d;if(E.id!==m[2])return d.find(o);d.length=1,d[0]=E}else return Ta(s).find(o);else this.add(o,!1);return d},toArray:function(){return Gn.toArray(this)},add:function(o,s){var d=this,m,E;if(K3(o))return d.add(Ta(o));if(s!==!1)for(m=Ta.unique(d.toArray().concat(Ta.makeArray(o))),d.length=m.length,E=0;E<m.length;E++)d[E]=m[E];else yu.apply(d,Ta.makeArray(o));return d},attr:function(o,s){var d=this,m;if(typeof o=="object")Us(o,function(E,D){d.attr(E,D)});else if(i1(s))this.each(function(){var E;if(this.nodeType===1){if(E=Y3[o],E&&E.set){E.set(this,s);return}s===null?this.removeAttribute(o,2):this.setAttribute(o,s,2)}});else{if(d[0]&&d[0].nodeType===1){if(m=Y3[o],m&&m.get)return m.get(d[0],o);if(k7[o])return d.prop(o)?o:void 0;s=d[0].getAttribute(o,2),s===null&&(s=void 0)}return s}return d},removeAttr:function(o){return this.attr(o,null)},prop:function(o,s){var d=this;
72if(o=O7[o]||o,typeof o=="object")Us(o,function(m,E){d.prop(m,E)});else if(i1(s))this.each(function(){this.nodeType===1&&(this[o]=s)});else return d[0]&&d[0].nodeType&&o in d[0]?d[0][o]:s;return d},css:function(o,s){var d=this,m,E,D=function(ue){return ue.replace(/-(\D)/g,function(me,Le){return Le.toUpperCase()})},J=function(ue){return ue.replace(/[A-Z]/g,function(me){return"-"+me})};if(typeof o=="object")Us(o,function(ue,me){d.css(ue,me)});else if(i1(s))o=D(o),typeof s=="number"&&!A7[o]&&(s=s.toString()+"px"),d.each(function(){var ue=this.style;if(E=q3[o],E&&E.set){E.set(this,s);return}try{this.style[YC[o]||o]=s}catch{}(s===null||s==="")&&(ue.removeProperty?ue.removeProperty(J(o)):ue.removeAttribute(o))});else{if(m=d[0],E=q3[o],E&&E.get)return E.get(m);if(m.ownerDocument.defaultView)try{return m.ownerDocument.defaultView.getComputedStyle(m,null).getPropertyValue(J(o))}catch{return}else return m.currentStyle?m.currentStyle[D(o)]:""}return d},remove:function(){for(var o=this,s,d=this.length;d--;)s=o[d],Nf.clean(s),s.parentNode&&s.parentNode.removeChild(s);return this},empty:function(){for(var o=this,s,d=this.length;d--;)for(s=o[d];s.firstChild;)s.removeChild(s.firstChild);return this},html:function(o){var s=this,d;if(i1(o)){d=s.length;try{for(;d--;)s[d].innerHTML=o}catch{Ta(s[d]).empty().append(o)}return s}return s[0]?s[0].innerHTML:""},text:function(o){var s=this,d;if(i1(o)){for(d=s.length;d--;)"innerText"in s[d]?s[d].innerText=o:s[0].textContent=o;return s}return s[0]?s[0].innerText||s[0].textContent:""},append:function(){return M2(this,arguments,function(o){(this.nodeType===1||this.host&&this.host.nodeType===1)&&this.appendChild(o)})},prepend:function(){return M2(this,arguments,function(o){(this.nodeType===1||this.host&&this.host.nodeType===1)&&this.insertBefore(o,this.firstChild)},!0)},before:function(){var o=this;return o[0]&&o[0].parentNode?M2(o,arguments,function(s){this.parentNode.insertBefore(s,this)}):o},after:function(){var o=this;return o[0]&&o[0].parentNode?M2(o,arguments,function(s){this.parentNode.insertBefore(s,this.nextSibling)},!0):o},appendTo:function(o){return Ta(o).append(this),this},prependTo:function(o){return Ta(o).prepend(this),this},replaceWith:function(o){return this.before(o).remove()},wrap:function(o){return KC(this,o)},wrapAll:function(o){return KC(this,o,!0)},wrapInner:function(o){return this.each(function(){Ta(this).contents().wrapAll(o)}),this},unwrap:function(){return this.parent().each(function(){Ta(this).replaceWith(this.childNodes)})},clone:function(){var o=[];return this.each(function(){o.push(this.cloneNode(!0))}),Ta(o)},addClass:function(o){return this.toggleClass(o,!0)},removeClass:function(o){return this.toggleClass(o,!1)},toggleClass:function(o,s){var d=this;return typeof o!="string"||(o.indexOf(" ")!==-1?Us(o.split(" "),function(){d.toggleClass(this,s)}):d.each(function(m,E){var D=GC(E,o);if(D!==s){var J=E.className;D?E.className=N1((" "+J+" ").replace(" "+o+" "," ")):E.className+=J?" "+o:o}})),d},hasClass:function(o){return GC(this[0],o)},each:function(o){return Us(this,o)},on:function(o,s){return this.each(function(){Nf.bind(this,o,s)})},off:function(o,s){return this.each(function(){Nf.unbind(this,o,s)})},trigger:function(o){return this.each(function(){typeof o=="object"?Nf.fire(this,o.type,o):Nf.fire(this,o)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ta(Ym.apply(this,arguments))},eq:function(o){return o===-1?this.slice(o):this.slice(o,+o+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(o){var s,d,m=[];for(s=0,d=this.length;s<d;s++)Ta.find(o,this[s],m);return Ta(m)},filter:function(o){return Ta(typeof o=="function"?s1(this.toArray(),function(s,d){return o(d,s)}):Ta.filter(o,this.toArray()))},closest:function(o){var s=[];return o instanceof Ta&&(o=o[0]),this.each(function(d,m){for(;m;){if(typeof o=="string"&&Ta(m).is(o)){s.push(m);break}else if(m===o){s.push(m);break}m=m.parentNode}}),Ta(s)},offset:function(o){var s,d,m,E=0,D=0,J;return o?this.css(o):(s=this[0],s&&(d=s.ownerDocument,m=d.documentElement,s.getBoundingClientRect&&(J=s.getBoundingClientRect(),E=J.left+(m.scrollLeft||d.body.scrollLeft)-m.clientLeft,D=J.top+(m.scrollTop||d.body.scrollTop)-m.clientTop)),{left:E,top:D})},push:yu,sort:Array.prototype.sort,splice:Array.prototype.splice},Gn.extend(wc,{extend:Gn.extend,makeArray:function(o){return $h(o)||o.nodeType?[o]:Gn.toArray(o)},inArray:X3,isArray:Gn.isArray,each:Us,trim:N1,grep:s1,find:Da,expr:Da.selectors,unique:Da.uniqueSort,text:Da.getText,contains:Da.contains,filter:function(o,s,d){var m=s.length;for(d&&(o=":not("+o+")");m--;)s[m].nodeType!==1&&s.splice(m,1);return s.length===1?s=Ta.find.matchesSelector(s[0],o)?[s[0]]:[]:s=Ta.find.matches(o,s),s}});var s5=function(o,s,d){var m=[],E=o[s];for(typeof d!="string"&&d instanceof Ta&&(d=d[0]);
72E&&E.nodeType!==9&&!(d!==void 0&&(E===d||typeof d=="string"&&Ta(E).is(d)));)E.nodeType===1&&m.push(E),E=E[s];return m},Z3=function(o,s,d,m){var E=[];for(m instanceof Ta&&(m=m[0]);o;o=o[s])if(!(d&&o.nodeType!==d)){if(m!==void 0&&(o===m||typeof m=="string"&&Ta(o).is(m)))break;E.push(o)}return E},qC=function(o,s,d){for(o=o[s];o;o=o[s])if(o.nodeType===d)return o;return null};Us({parent:function(o){var s=o.parentNode;return s&&s.nodeType!==11?s:null},parents:function(o){return s5(o,"parentNode")},next:function(o){return qC(o,"nextSibling",1)},prev:function(o){return qC(o,"previousSibling",1)},children:function(o){return Z3(o.firstChild,"nextSibling",1)},contents:function(o){return Gn.toArray((o.nodeName==="iframe"?o.contentDocument||o.contentWindow.document:o).childNodes)}},function(o,s){wc.fn[o]=function(d){var m=this,E=[];m.each(function(){var J=s.call(E,this,d,E);J&&(Ta.isArray(J)?E.push.apply(E,J):E.push(J))}),this.length>1&&(qm[o]||(E=Ta.unique(E)),o.indexOf("parents")===0&&(E=E.reverse()));var D=Ta(E);return d?D.filter(d):D}}),Us({parentsUntil:function(o,s){return s5(o,"parentNode",s)},nextUntil:function(o,s){return Z3(o,"nextSibling",1,s).slice(1)},prevUntil:function(o,s){return Z3(o,"previousSibling",1,s).slice(1)}},function(o,s){wc.fn[o]=function(d,m){var E=this,D=[];E.each(function(){var ue=s.call(D,this,d,D);ue&&(Ta.isArray(ue)?D.push.apply(D,ue):D.push(ue))}),this.length>1&&(D=Ta.unique(D),(o.indexOf("parents")===0||o==="prevUntil")&&(D=D.reverse()));var J=Ta(D);return m?J.filter(m):J}}),wc.fn.is=function(o){return!!o&&this.filter(o).length>0},wc.fn.init.prototype=wc.fn,wc.overrideDefaults=function(o){var s,d=function(m,E){return s=s||o(),arguments.length===0&&(m=s.element),E||(E=s.context),new d.fn.init(m,E)};return Ta.extend(d,this),d},wc.attrHooks=Y3,wc.cssHooks=q3;var Ta=wc,N2=Gn.each,Q3=Gn.grep,l5=Io.ie,bu=/^([a-z0-9],?)+$/i,D1=function(o,s,d){var m=s.keep_values,E={set:function(J,ue,me){s.url_converter&&ue!==null&&(ue=s.url_converter.call(s.url_c
72onverter_scope||d(),ue,me,J[0])),J.attr("data-mce-"+me,ue).attr(me,ue)},get:function(J,ue){return J.attr("data-mce-"+ue)||J.attr(ue)}},D={style:{set:function(J,ue){if(ue!==null&&typeof ue=="object"){J.css(ue);return}m&&J.attr("data-mce-style",ue),ue!==null&&typeof ue=="string"?(J.removeAttr("style"),J.css(o.parse(ue))):J.attr("style",ue)},get:function(J){var ue=J.attr("data-mce-style")||J.attr("style");return ue=o.serialize(o.parse(ue),J[0].nodeName),ue}}};return m&&(D.href=D.src=E),D},XC=function(o,s){var d=s.attr("style"),m=o.serialize(o.parse(d),s[0].nodeName);m||(m=null),s.attr("data-mce-style",m)},Xm=function(o,s){var d=0,m,E;if(o)for(m=o.nodeType,o=o.previousSibling;o;o=o.previousSibling)E=o.nodeType,!(s&&E===3&&(E===m||!o.nodeValue.length))&&(d++,m=E);return d},Ds=function(o,s){s===void 0&&(s={});var d={},m=window,E={},D=0,J=!0,ue=!0,me=Jd.forElement(xe.fromDom(o),{contentCssCors:s.contentCssCors,referrerPolicy:s.referrerPolicy}),Le=[],tt=s.schema?s.schema:Tf({}),nt=a1({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope},s.schema),it=s.ownEvents?new Ph:Ph.Event,kt=tt.getBlockElements(),Nt=Ta.overrideDefaults(function(){return{context:o,element:W4.getRoot()}}),Lt=function(dn){if(typeof dn=="string")return!!kt[dn];if(dn){var Hn=dn.nodeType;if(Hn)return!!(Hn===1&&kt[dn.nodeName])}return!1},$t=function(dn){return dn&&o&&B(dn)?o.getElementById(dn):dn},Jt=function(dn){return Nt(typeof dn=="string"?$t(dn):dn)},qt=function(dn,Hn,kr){var $r,Ia,Ri=Jt(dn);return Ri.length&&($r=ym[Hn],$r&&$r.get?Ia=$r.get(Ri,Hn):Ia=Ri.attr(Hn)),typeof Ia=="undefined"&&(Ia=kr||""),Ia},Mn=function(dn){var Hn=$t(dn);return Hn?Hn.attributes:[]},xn=function(dn,Hn,kr){kr===""&&(kr=null);var $r=Jt(dn),Ia=$r.attr(Hn);if(!!$r.length){var Ri=ym[Hn];Ri&&Ri.set?Ri.set($r,kr,Hn):$r.attr(Hn,kr),Ia!==kr&&s.onSetAttrib&&s.onSetAttrib({attrElm:$r,attrName:Hn,attrValue:kr})}},ln=function(dn,Hn){if(!l5||dn.nodeType!==1||Hn)return dn.cloneNode(Hn);var kr=o.createElement(dn.nodeName);return N2(Mn(dn),function($r){xn(kr,$r.nodeName,qt(dn,$r.nodeName))}),kr},In=function(){return s.root_element||o.body},ir=function(dn){var Hn=Xd(dn);return{x:Hn.x,y:Hn.y,w:Hn.width,h:Hn.height}},_r=function(dn,Hn){return Hl(o.body,$t(dn),Hn)},Go=function(dn,Hn,kr){var $r=B(Hn)?Jt(dn).css(Hn,kr):Jt(dn).css(Hn);s.update_styles&&XC(nt,$r)},eo=function(dn,Hn){var kr=Jt(dn).css(Hn);s.update_styles&&XC(nt,kr)},lr=function(dn,Hn,kr){var $r=Jt(dn);return kr?$r.css(Hn):(Hn=Hn.replace(/-(\D)/g,function(Ia,Ri){return Ri.toUpperCase()}),Hn==="float"&&(Hn=Io.browser.isIE()?"styleFloat":"cssFloat"),$r[0]&&$r[0].style?$r[0].style[Hn]:void 0)},Lo=function(dn){var Hn,kr;return dn=$t(dn),Hn=lr(dn,"width"),kr=lr(dn,"height"),Hn.indexOf("px")===-1&&(Hn=0),kr.indexOf("px")===-1&&(kr=0),{w:parseInt(Hn,10)||dn.offsetWidth||dn.clientWidth,h:parseInt(kr,10)||dn.offsetHeight||dn.clientHeight}},Sr=function(dn){dn=$t(dn);var Hn=_r(dn),kr=Lo(dn);return{x:Hn.x,y:Hn.y,w:kr.w,h:kr.h}},Xr=function(dn,Hn){var kr;if(!dn)return!1;if(!Array.isArray(dn)){if(Hn==="*")return dn.nodeType===1;if(bu.test(Hn)){var $r=Hn.toLowerCase().split(/,/),Ia=dn.nodeName.toLowerCase();for(kr=$r.length-1;kr>=0;kr--)if($r[kr]===Ia)return!0;return!1}if(dn.nodeType&&dn.nodeType!==1)return!1}var Ri=Array.isArray(dn)?dn:[dn];return Da(Hn,Ri[0].ownerDocument||Ri[0],null,Ri).length>0},Tr=function(dn,Hn,kr,$r){var Ia=[],Ri,rl=$t(dn);for($r=$r===void 0,kr=kr||(In().nodeName!=="BODY"?In().parentNode:null),Gn.is(Hn,"string")&&(Ri=Hn,Hn==="*"?Hn=function(jy){return jy.nodeType===1}:Hn=function(jy){return Xr(jy,Ri)});rl&&!(rl===kr||Z(rl.nodeType)||Ah(rl)||ya(rl));){if(!Hn||typeof Hn=="function"&&Hn(rl))if($r)Ia.push(rl);else return[rl];rl=rl.parentNode}return $r?Ia:null},Fr=function(dn,Hn,kr){var $r=Tr(dn,Hn,kr,!1);return $r&&$r.length>0?$r[0]:null},ho=function(dn,Hn,kr){var $r=Hn;if(dn){for(typeof Hn=="string"&&($r=function(Ia){return Xr(Ia,Hn)}),dn=dn[kr];dn;dn=dn[kr])if(typeof $r=="function"&&$r(dn))return dn}return null},mr=function(dn,Hn){return ho(dn,Hn,"nextSibling")},ro=function(dn,Hn){return ho(dn,Hn,"previousSibling")},Va=function(dn,Hn){return Da(dn,$t(Hn)||s.root_element||o,[])},Oi=function(dn,Hn,kr){var $r,Ia=typeof dn=="string"?$t(dn):dn;if(!Ia)return!1;if(Gn.isArray(Ia)&&(Ia.length||Ia.length===0))return $r=[],N2(Ia,function(rl,jy){rl&&$r.push(Hn.call(kr,typeof rl=="string"?$t(rl):rl,jy))}),$r;var Ri=kr||this;return Hn.call(Ri,Ia)},Si=function(dn,Hn){Jt(dn).each(function(kr,$r){N2(Hn,function(Ia,Ri){xn($r,Ri,Ia)})})},Oc=function(dn,Hn){var kr=Jt(dn);
72l5?kr.each(function($r,Ia){if(Ia.canHaveHTML!==!1){for(;Ia.firstChild;)Ia.removeChild(Ia.firstChild);try{Ia.innerHTML="<br>"+Hn,Ia.removeChild(Ia.firstChild)}catch{Ta("<div></div>").html("<br>"+Hn).contents().slice(1).appendTo(Ia)}return Hn}}):kr.html(Hn)},vl=function(dn,Hn,kr,$r,Ia){return Oi(dn,function(Ri){var rl=typeof Hn=="string"?o.createElement(Hn):Hn;return Si(rl,kr),$r&&(typeof $r!="string"&&$r.nodeType?rl.appendChild($r):typeof $r=="string"&&Oc(rl,$r)),Ia?rl:Ri.appendChild(rl)})},pd=function(dn,Hn,kr){return vl(o.createElement(dn),dn,Hn,kr,!0)},U1=ad.decode,gr=ad.encodeAllRaw,Ir=function(dn,Hn,kr){var $r="",Ia;$r+="<"+dn;for(Ia in Hn)xa(Hn,Ia)&&($r+=" "+Ia+'="'+gr(Hn[Ia])+'"');return typeof kr!="undefined"?$r+">"+kr+"</"+dn+">":$r+" />"},Bo=function(dn){var Hn,kr=o.createElement("div"),$r=o.createDocumentFragment();for($r.appendChild(kr),dn&&(kr.innerHTML=dn);Hn=kr.firstChild;)$r.appendChild(Hn);return $r.removeChild(kr),$r},Ln=function(dn,Hn){var kr=Jt(dn);return Hn?kr.each(function(){for(var $r;$r=this.firstChild;)$r.nodeType===3&&$r.data.length===0?this.removeChild($r):this.parentNode.insertBefore($r,this)}).remove():kr.remove(),kr.length>1?kr.toArray():kr[0]},Cr=function(dn){return Oi(dn,function(Hn){var kr,$r=Hn.attributes;for(kr=$r.length-1;kr>=0;kr--)Hn.removeAttributeNode($r.item(kr))})},br=function(dn){return nt.parse(dn)},Fo=function(dn,Hn){return nt.serialize(dn,Hn)},Wo=function(dn){var Hn,kr;if(W4!==Ds.DOM&&o===document){if(d[dn])return;d[dn]=!0}kr=o.getElementById("mceDefaultStyles"),kr||(kr=o.createElement("style"),kr.id="mceDefaultStyles",kr.type="text/css",Hn=o.getElementsByTagName("head")[0],Hn.firstChild?Hn.insertBefore(kr,Hn.firstChild):Hn.appendChild(kr)),kr.styleSheet?kr.styleSheet.cssText+=dn:kr.appendChild(o.createTextNode(dn))},hs=function(dn){dn||(dn=""),ct(dn.split(","),function(Hn){E[Hn]=!0,me.load(Hn,$)})},sc=function(dn,Hn,kr){Jt(dn).toggleClass(Hn,kr).each(function(){this.className===""&&Ta(this).attr("class",null)})},Vu=function(dn,Hn){Jt(dn).addClass(Hn)},Hf=function(dn,Hn){sc(dn,Hn,!1)},Vf=function(dn,Hn){return Jt(dn).hasClass(Hn)},Pd=function(dn){Jt(dn).show()},Uu=function(dn){Jt(dn).hide()},Tv=function(dn){return Jt(dn).css("display")==="none"},Fd=function(dn){return(dn||"mce_")+D++},gm=function(dn){var Hn=typeof dn=="string"?$t(dn):dn;return Ko(Hn)?Hn.outerHTML:Ta("<div></div>").append(Ta(Hn).clone()).html()},Mi=function(dn,Hn){Jt(dn).each(function(){try{if("outerHTML"in this){this.outerHTML=Hn;return}}catch{}Ln(Ta(this).html(Hn),!0)})},js=function(dn,Hn){var kr=$t(Hn);return Oi(dn,function($r){var Ia=kr.parentNode,Ri=kr.nextSibling;return Ri?Ia.insertBefore($r,Ri):Ia.appendChild($r),$r})},lc=function(dn,Hn,kr){return Oi(Hn,function($r){return Gn.is($r,"array")&&(dn=dn.cloneNode(!0)),kr&&N2(Q3($r.childNodes),function(Ia){dn.appendChild(Ia)}),$r.parentNode.replaceChild(dn,$r)})},dp=function(dn,Hn){var kr;return dn.nodeName!==Hn.toUpperCase()&&(kr=pd(Hn),N2(Mn(dn),function($r){xn(kr,$r.nodeName,qt(dn,$r.nodeName))}),lc(kr,dn,!0)),kr||dn},vp=function(dn,Hn){for(var kr=dn,$r;kr;){for($r=Hn;$r&&kr!==$r;)$r=$r.parentNode;if(kr===$r)break;kr=kr.parentNode}return!kr&&dn.ownerDocument?dn.ownerDocument.documentElement:kr},hp=function(dn){return nt.toHex(Gn.trim(dn))},Uy=function(dn){if(Ko(dn)){var Hn=dn.nodeName.toLowerCase()==="a"&&!qt(dn,"href")&&qt(dn,"id");if(qt(dn,"name")||qt(dn,"data-mce-bookmark")||Hn)return!0}return!1},oD=function(dn,Hn){var kr,$r,Ia=0;if(Uy(dn))return!1;if(dn=dn.firstChild,dn){var Ri=new hi(dn,dn.parentNode),rl=tt?tt.getWhiteSpaceElements():{};Hn=Hn||(tt?tt.getNonEmptyElements():null);do{if(kr=dn.nodeType,Ko(dn)){var jy=dn.getAttribute("data-mce-bogus");if(jy){dn=Ri.next(jy==="all");continue}if($r=dn.nodeName.toLowerCase(),Hn&&Hn[$r]){if($r==="br"){Ia++,dn=Ri.next();continue}return!1}if(Uy(dn))return!1}if(kr===8||kr===3&&!Od(dn.nodeValue)||kr===3&&dn.parentNode&&rl[dn.parentNode.nodeName]&&Od(dn.nodeValue))return!1;dn=Ri.next()}while(dn)}return Ia<=1},aD=function(){return o.createRange()},aX=function(dn,Hn,kr){var $r=aD(),Ia,Ri,rl;if(dn&&Hn)return $r.setStart(dn.parentNode,Xm(dn)),$r.setEnd(Hn.parentNode,Xm(Hn)),Ia=$r.extractContents(),$r=aD(),$r.setStart(Hn.parentNode,Xm(Hn)+1),$r.setEnd(dn.parentNode,Xm(dn)+1),Ri=$r.extractContents(),rl=dn.parentNode,rl.insertBefore(Nh(W4,Ia),dn),kr?rl.insertBefore(kr,dn):rl.insertBefore(Hn,dn),rl.insertBefore(Nh(W4,Ri),dn),Ln(dn),kr||Hn},$T=function(dn,Hn,kr,$r){if(Gn.isArray(dn)){for(var Ia=dn.length,Ri=[];Ia--;)Ri[Ia]=$T(dn[Ia],Hn,kr,$r);return Ri}s.collect&&(dn===o||dn===m)&&Le.push([dn,Hn,kr,$r]);var rl=it.bind(dn,Hn,kr,$r||W4);return rl},zT=function(dn,Hn,kr){if(Gn.isArray(dn)){for(var $r=dn.length,Ia=[];$r--;)Ia[$r]=zT(dn[$r],Hn,kr);return Ia}else{if(Le.length>0&&(dn===o||dn===m))for(var $r=Le.length;$r--;){var Ri=Le[$r];dn===Ri[0]&&(!Hn||Hn===Ri[1])&&(!kr||kr===Ri[2])&&it.unbind(Ri[0],Ri[1],Ri[2])}return it.unbind(dn,Hn,kr)}},iX=function(dn,Hn,kr){return it.fire(dn,Hn,kr)},f$=function(dn){if(dn&&Ko(dn)){var Hn=dn.getAttribute("data-mce-contenteditable");return Hn&&Hn!=="inherit"?Hn:dn.contentEditable!=="inherit"?dn.contentEditable:null}else return null},sX=function(dn){for(var Hn=In(),kr=null;dn&&dn!==Hn&&(kr=f$(dn),kr===null);dn=dn.parentNode);return kr},lX=function(){if(Le.length>0)for(var dn=Le.length;dn--;){var Hn=Le[dn];it.unbind(Hn[0],Hn[1],Hn[2])}Vt(E,function(kr,$r){me.unload($r),delete E[$r]}),Da.setDocument&&Da.setDocument()},uX=function(dn,Hn){if(l5){for(;dn;){if(Hn===dn)return!0;dn=dn.parentNode}return!1}else return dn===Hn||Hn.contains(dn)},cX=function(dn){return"startContainer: "+dn.startContainer.nodeName+", startOffset: "+dn.startOffset+", endContainer: "+dn.endContainer.nodeName+", endOffset: "+dn.endOffset},W4={doc:o,settings:s,win:m,files:E,stdMode:J,boxModel:ue,styleSheetLoader:me,boundEvents:Le,styles:nt,schema:tt,events:it,isBlock:Lt,$:Nt,$$:Jt,root:null,clone:ln,getRoot:In,getViewPort:ir,getRect:Sr,getSize:Lo,getParent:Fr,getParents:Tr,get:$t,getNext:mr,getPrev:ro,select:Va,is:Xr,add:vl,create:pd,createHTML:Ir,createFragment:Bo,remove:Ln,setStyle:Go,getStyle:lr,setStyles:eo,removeAllAttribs:Cr,setAttrib:xn,setAttribs:Si,getAttrib:qt,getPos:_r,parseStyle:br,serializeStyle:Fo,addStyle:Wo,loadCSS:hs,addClass:Vu,removeClass:Hf,hasClass:Vf,toggleClass:sc,show:Pd,hide:Uu,isHidden:Tv,uniqueId:F
72d,setHTML:Oc,getOuterHTML:gm,setOuterHTML:Mi,decode:U1,encode:gr,insertAfter:js,replace:lc,rename:dp,findCommonAncestor:vp,toHex:hp,run:Oi,getAttribs:Mn,isEmpty:oD,createRng:aD,nodeIndex:Xm,split:aX,bind:$T,unbind:zT,fire:iX,getContentEditable:f$,getContentEditableParent:sX,destroy:lX,isChildOf:uX,dumpRng:cX},ym=D1(nt,s,K(W4));return W4};Ds.DOM=Ds(document),Ds.nodeIndex=Xm;var Zm=Ds.DOM,J3=Gn.each,D2=Gn.grep,u5=0,ZC=1,Ib=2,QC=3,G0=function(){function o(s){s===void 0&&(s={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=s}return o.prototype._setReferrerPolicy=function(s){this.settings.referrerPolicy=s},o.prototype.loadScript=function(s,d,m){var E=Zm,D,J=function(){E.remove(Le),D&&(D.onerror=D.onload=D=null)},ue=function(){J(),d()},me=function(){J(),Y(m)?m():typeof console!="undefined"&&console.log&&console.log("Failed to load script: "+s)},Le=E.uniqueId();D=document.createElement("script"),D.id=Le,D.type="text/javascript",D.src=Gn._addCacheSuffix(s),this.settings.referrerPolicy&&E.setAttrib(D,"referrerpolicy",this.settings.referrerPolicy),D.onload=ue,D.onerror=me,(document.getElementsByTagName("head")[0]||document.body).appendChild(D)},o.prototype.isDone=function(s){return this.states[s]===Ib},o.prototype.markDone=function(s){this.states[s]=Ib},o.prototype.add=function(s,d,m,E){var D=this.states[s];this.queue.push(s),D===void 0&&(this.states[s]=u5),d&&(this.scriptLoadedCallbacks[s]||(this.scriptLoadedCallbacks[s]=[]),this.scriptLoadedCallbacks[s].push({success:d,failure:E,scope:m||this}))},o.prototype.load=function(s,d,m,E){return this.add(s,d,m,E)},o.prototype.remove=function(s){delete this.states[s],delete this.scriptLoadedCallbacks[s]},o.prototype.loadQueue=function(s,d,m){this.loadScripts(this.queue,s,d,m)},o.prototype.loadScripts=function(s,d,m,E){var D=this,J=[],ue=function(Le,tt){J3(D.scriptLoadedCallbacks[tt],function(nt){Y(nt[Le])&&nt[Le].call(nt.scope)}),D.scriptLoadedCallbacks[tt]=void 0};D.queueLoadedCallbacks.push({success:d,failure:E,scope:m||this});var me=function(){var Le=D2(s);if(s.length=0,J3(Le,function(nt){if(D.states[nt]===Ib){ue("success",nt);return}if(D.states[nt]===QC){ue("failure",nt);return}D.states[nt]!==ZC&&(D.states[nt]=ZC,D.loading++,D.loadScript(nt,function(){D.states[nt]=Ib,D.loading--,ue("success",nt),me()},function(){D.states[nt]=QC,D.loading--,J.push(nt),ue("failure",nt),me()}))}),!D.loading){var tt=D.queueLoadedCallbacks.slice(0);D.queueLoadedCallbacks.length=0,J3(tt,function(nt){J.length===0?Y(nt.success)&&nt.success.call(nt.scope):Y(nt.failure)&&nt.failure.call(nt.scope,J)})}};me()},o.ScriptLoader=new o,o}(),Df=function(o){var s=o,d=function(){return s},m=function(E){s=E};return{get:d,set:m}},c5=function(o){return F(o)&&io(o,"raw")},M7=function(o){return R(o)&&o.length>1},Qv={},K0=Df("en"),e6=function(){return Br(Qv,K0.get())},N7=function(){return _n(Qv,function(o){return fo({},o)})},D7=function(o){o&&K0.set(o)},Qm=function(){return K0.get()},Jm=function(o,s){var d=Qv[o];d||(Qv[o]=d={}),Vt(s,function(m,E){d[E.toLowerCase()]=m})},t6=function(o){var s=e6().getOr({}),d=function(me){return Y(me)?Object.prototype.toString.call(me):m(me)?"":""+me},m=function(me){return me===""||me===null||me===void 0},E=function(me){var Le=d(me);return Br(s,Le.toLowerCase()).map(d).getOr(Le)},D=function(me){return me.replace(/{context:\w+}$/,"")};if(m(o))return"";if(c5(o))return d(o.raw);if(M7(o)){var J=o.slice(1),ue=E(o[0]).replace(/\{([0-9]+)\}/g,function(me,Le){return io(J,Le)?d(J[Le]):me});return D(ue)}return D(E(o))},xi=function(){return e6().bind(function(o){return Br(o,"_dir")}).exists(function(o){return o==="rtl"})},_u=function(o){return io(Qv,o)},If={getData:N7,setCode:D7,getCode:Qm,add:Jm,translate:t6,isRtl:xi,hasCode:_u},ld=function(){var o=[],s={},d={},m=[],E=function(Lt,$t){var Jt=Fe(m,function(qt){return qt.name===Lt&&qt.state===$t});ct(Jt,function(qt){return qt.callback()})},D=function(Lt){if(d[Lt])return d[Lt].instance},J=function(Lt){var $t;return d[Lt]&&($t=d[Lt].dependencies),$t||[]},ue=function(Lt,$t){ld.languageLoad!==!1&&Nt(Lt,function(){var Jt=If.getCode(),qt=","+($t||"")+",";!Jt||$t&&qt.indexOf(","+Jt+",")===-1||G0.ScriptLoader.add(s[Lt]+"/langs/"+Jt+".js")},"loaded")},me=function(Lt,$t,Jt){var qt=$t;
72return o.push(qt),d[Lt]={instance:qt,dependencies:Jt},E(Lt,"added"),qt},Le=function(Lt){delete s[Lt],delete d[Lt]},tt=function(Lt,$t){return typeof $t=="object"?$t:typeof Lt=="string"?{prefix:"",resource:$t,suffix:""}:{prefix:Lt.prefix,resource:$t,suffix:Lt.suffix}},nt=function(Lt,$t){var Jt=s[Lt];ct($t,function(qt){G0.ScriptLoader.add(Jt+"/"+qt)})},it=function(Lt,$t,Jt,qt){var Mn=J(Lt);ct(Mn,function(xn){var ln=tt($t,xn);kt(ln.resource,ln,void 0,void 0)}),Jt&&(qt?Jt.call(qt):Jt.call(G0))},kt=function(Lt,$t,Jt,qt,Mn){if(!s[Lt]){var xn=typeof $t=="string"?$t:$t.prefix+$t.resource+$t.suffix;xn.indexOf("/")!==0&&xn.indexOf("://")===-1&&(xn=ld.baseURL+"/"+xn),s[Lt]=xn.substring(0,xn.lastIndexOf("/"));var ln=function(){E(Lt,"loaded"),it(Lt,$t,Jt,qt)};d[Lt]?ln():G0.ScriptLoader.add(xn,ln,qt,Mn)}},Nt=function(Lt,$t,Jt){Jt===void 0&&(Jt="added"),io(d,Lt)&&Jt==="added"||io(s,Lt)&&Jt==="loaded"?$t():m.push({name:Lt,state:Jt,callback:$t})};return{items:o,urls:s,lookup:d,_listeners:m,get:D,dependencies:J,requireLangPack:ue,add:me,remove:Le,createUrl:tt,addComponents:nt,load:kt,waitFor:Nt}};ld.languageLoad=!0,ld.baseURL="",ld.PluginManager=ld(),ld.ThemeManager=ld();var vs=function(o){var s=Df(re.none()),d=function(){return s.get().each(o)},m=function(){d(),s.set(re.none())},E=function(){return s.get().isSome()},D=function(){return s.get()},J=function(ue){d(),s.set(re.some(ue))};return{clear:m,isSet:E,get:D,set:J}},Gp=function(){var o=vs($),s=function(d){return o.get().each(d)};return fo(fo({},o),{on:s})},n6=function(o,s){var d=null,m=function(){N(d)||(clearTimeout(d),d=null)},E=function(){for(var D=[],J=0;J<arguments.length;J++)D[J]=arguments[J];N(d)&&(d=setTimeout(function(){d=null,o.apply(null,D)},s))};return{cancel:m,throttle:E}},Fu=function(o,s){var d=null,m=function(){N(d)||(clearTimeout(d),d=null)},E=function(){for(var D=[],J=0;J<arguments.length;J++)D[J]=arguments[J];m(),d=setTimeout(function(){d=null,o.apply(null,D)},s)};return{cancel:m,throttle:E}},zh=function(o,s){var d=ht(o,s);return d===void 0||d===""?[]:d.split(" ")},I7=function(o,s,d){var m=zh(o,s),E=m.concat([d]);return Me(o,s,E.join(" ")),!0},R7=function(o,s,d){var m=Fe(zh(o,s),function(E){return E!==d});return m.length>0?Me(o,s,m.join(" ")):qn(o,s),!1},r6=function(o){return o.dom.classList!==void 0},o6=function(o){return zh(o,"class")},f5=function(o,s){return I7(o,"class",s)},d5=function(o,s){return R7(o,"class",s)},eg=function(o,s){r6(o)?o.dom.classList.add(s):f5(o,s)},Rb=function(o){var s=r6(o)?o.dom.classList:o6(o);s.length===0&&qn(o,"class")},v5=function(o,s){if(r6(o)){var d=o.dom.classList;d.remove(s)}else d5(o,s);Rb(o)},h5=function(o,s){return r6(o)&&o.dom.classList.contains(s)},I2=function(o,s){var d=[];return ct(tl(o),function(m){s(m)&&(d=d.concat([m])),d=d.concat(I2(m,s))}),d},Cc=function(o,s){return na(s,o)},Dd=K("mce-annotation"),Lb=K("data-mce-annotation"),wu=K("data-mce-annotation-uid"),a6=function(o,s){var d=o.selection.getRng(),m=xe.fromDom(d.startContainer),E=xe.fromDom(o.getBody()),D=s.fold(function(){return"."+Dd()},function(Le){return"["+Lb()+'="'+Le+'"]'}),J=Gd(m,d.startOffset).getOr(m),ue=ds(J,D,function(Le){return jo(Le,E)}),me=function(Le,tt){return wn(Le,tt)?re.some(ht(Le,tt)):re.none()};return ue.bind(function(Le){return me(Le,""+wu()).bind(function(tt){return me(Le,""+Lb()).map(function(nt){var it=p5(o,tt);return{uid:tt,name:nt,elements:it}})})})},Y0=function(o){return ps(o)&&h5(o,Dd())},p5=function(o,s){var d=xe.fromDom(o.getBody());return Cc(d,"["+wu()+'="'+s+'"]')},m5=function(o,s){var d=xe.fromDom(o.getBody()),m=Cc(d,"["+Lb()+'="'+s+'"]'),E={};return ct(m,function(D){var J=ht(D,wu()),ue=Br(E,J).getOr([]);E[J]=ue.concat([D])}),E},JC=function(o,s){var d=Df({}),m=function(){return{listeners:[],previous:Gp()}},E=function(tt,nt){D(tt,function(it){return nt(it),it})},D=function(tt,nt){var it=d.get(),kt=Br(it,tt).getOrThunk(m),Nt=nt(kt);it[tt]=Nt,d.set(it)},J=function(tt,nt,it){E(tt,function(kt){ct(kt.listeners,function(Nt){return Nt(!0,tt,{uid:nt,nodes:rt(it,function(Lt){return Lt.dom})})})})},ue=function(tt){E(tt,function(nt){ct(nt.listeners,function(it){return it(!1,tt)})})},me=Fu(function(){var tt=d.get(),nt=vt(en(tt));ct(nt,function(it){D(it,function(kt){var Nt=kt.previous.get();return a6(o,re.some(it)).fold(function(){Nt.isSome()&&(ue(it),kt.previous.clear())},function(Lt){var $t=Lt.uid,Jt=Lt.name,qt=Lt.elements;x0(Nt,$t)||(J(Jt,$t,qt),kt.previous.set($t))}),{previous:kt.previous,listeners:kt.listeners}})})},30);o.on("remove",function(){me.cancel()}),o.on("NodeChange",function(){me.throttle()});var Le=function(tt,nt){D(tt,function(it){return{previous:it.previous,listeners:it.listeners.concat([nt])}})};return{addListener:Le}},g5=function(o,s){var d=function(m){return re.from(m.attr(Lb())).bind(s.lookup)};o.on("init",function(){o.serializer.addNodeFilter("span",function(m){ct(m,function(E){d(E).each(function(D){D.persistent===!1&&E.unwrap()})})})})},Bb=function(){var o={},s=function(m,E){o[m]={name:m,settings:E}},d=function(m){return Br(o,m).map(function(E){return E.settings})};return{register:s,lookup:d}},i6=0,ex=function(o){var s=new Date,d=s.getTime(),m=Math.floor(Math.random()*1e9);return i6++,o+"_"+m+i6+String(d)},L7=function(o,s){ct(s,function(d){eg(o,d)})},jc=function(o,s){var d=s||document,m=d.createElement("div");return m.innerHTML=o,tl(xe.fromDom(m))},$u=function(o){return rt(o,xe.fromDom)},Rf=function(o){return o.dom.innerHTML},Lf=function(o,s){var d=Zf(o),m=d.dom,E=xe.fromDom(m.createDocumentFragment()),D=jc(s,m);b1(E,D),zv(o),yl(o,E)},ud=function(o,s){return xe.fromDom(o.dom.cloneNode(s))},tu=function(o){return ud(o,!1)},s6=function(o){return ud(o,!0)},l6=function(o,s,d){d===void 0&&(d=U);var m=new hi(o,s),E=function(D){var J;do J=m[D]();while(J&&!Jr(J)&&!d(J));return re.from(J).filter(Jr)};return{current:function(){return re.from(m.current()).filter(Jr)},next:function(){return E("next")},prev:function(){return E("prev")},prev2:function(){return E("prev2")}}},y5=function(o,s){var d=s||function(J){return o.isBlock(J)||qi(J)||fs(J)},m=function(J,ue,me,Le){if(Jr(J)){var tt=Le(J,ue,J.data);if(tt!==-1)return re.some({container:J,offset:tt})}return me().bind(function(nt){return m(nt.container,nt.offset,me,
72Le)})},E=function(J,ue,me,Le){var tt=l6(J,Le,d);return m(J,ue,function(){return tt.prev().map(function(nt){return{container:nt,offset:nt.length}})},me).getOrNull()},D=function(J,ue,me,Le){var tt=l6(J,Le,d);return m(J,ue,function(){return tt.next().map(function(nt){return{container:nt,offset:0}})},me).getOrNull()};return{backwards:E,forwards:D}},tg=Math.round,Kp=function(o){return o?{left:tg(o.left),top:tg(o.top),bottom:tg(o.bottom),right:tg(o.right),width:tg(o.width),height:tg(o.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},u6=function(o,s){return o=Kp(o),s||(o.left=o.left+o.width),o.right=o.left,o.width=0,o},c6=function(o,s){return o.left===s.left&&o.top===s.top&&o.bottom===s.bottom&&o.right===s.right},f6=function(o,s,d){return o>=0&&o<=Math.min(s.height,d.height)/2},R2=function(o,s){var d=Math.min(s.height/2,o.height/2);return o.bottom-d<s.top?!0:o.top>s.bottom?!1:f6(s.top-o.bottom,o,s)},L2=function(o,s){return o.top>s.bottom?!0:o.bottom<s.top?!1:f6(s.bottom-o.top,o,s)},tx=function(o,s,d){return s>=o.left&&s<=o.right&&d>=o.top&&d<=o.bottom},Hh=function(o,s,d){return Math.min(Math.max(o,s),d)},ng=function(o){var s=o.startContainer,d=o.startOffset;return s.hasChildNodes()&&o.endOffset===d+1?s.childNodes[d]:null},Zs=function(o,s){if(Ko(o)&&o.hasChildNodes()){var d=o.childNodes,m=Hh(s,0,d.length-1);return d[m]}else return o},B7=function(o,s){if(!(s<0&&Ko(o)&&o.hasChildNodes()))return Zs(o,s)},P7=new RegExp("[\u0300-\u036F\u0483-\u0487\u0488-\u0489\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B57\u0B62-\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC-\u0CCD\u0CD5-\u0CD6\u0CE2-\u0CE3\u0D01\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62-\u0D63\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u200C-\u200D\u20D0-\u20DC\u20DD-\u20E0\u20E1\u20E2-\u20E4\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u302E-\u302F\u3099-\u309A\uA66F\uA670-\uA672\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E-\uFF9F]"),d6=function(o){return typeof o=="string"&&o.charCodeAt(0)>=768&&P7.test(o)},F7=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(d){for(var m=0;m<o.length;m++)if(o[m](d))return!0;return!1}},nx=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(d){for(var m=0;m<o.length;m++)if(!o[m](d))return!1;return!0}},Rr=Ko,$7=sv,Cu=Ju("display","block table"),b5=Ju("float","left right"),rg=nx(Rr,$7,le(b5)),rx=le(Ju("white-space","pre pre-line pre-wrap")),nf=Jr,Pb=qi,v6=Ds.nodeIndex,Fb=B7,Jv=function(o){return"createRange"in o?o.createRange():Ds.DOM.createRng()},$b=function(o){return o&&/[\r\n\t ]/.test(o)},zb=function(o){return!!o.setStart&&!!o.setEnd},Bf=function(o){var s=o.startContainer,d=o.startOffset;if($b(o.toString())&&rx(s.parentNode)&&Jr(s)){var m=s.data;if($b(m[d-1])||$b(m[d+1]))return!0}return!1},eh=function(o){var s=o.ownerDocument,d=Jv(s),m=s.createTextNode(Zc),E=o.parentNode;E.insertBefore(m,o),d.setStart(m,0),d.setEnd(m,1);var D=Kp(d.getBoundingClientRect());return E.removeChild(m),D},ox=function(o){var s=o.startContainer,d=o.endContainer,m=o.startOffset,E=o.endOffset;if(s===d&&Jr(d)&&m===0&&E===1){var D=o.cloneRange();return D.setEndAfter(d),Vh(D)}else return null},rf=function(o){return o.left===0&&o.right===0&&o.top===0&&o.bottom===0},Vh=function(o){var s,d=o.getClientRects();return d.length>
720?s=Kp(d[0]):s=Kp(o.getBoundingClientRect()),!zb(o)&&Pb(o)&&rf(s)?eh(o):rf(s)&&zb(o)?ox(o):s},Yp=function(o,s){var d=u6(o,s);return d.width=1,d.right=d.left+1,d},Hb=function(o){var s=[],d=function(me){me.height!==0&&(s.length>0&&c6(me,s[s.length-1])||s.push(me))},m=function(me,Le){var tt=Jv(me.ownerDocument);if(Le<me.data.length){if(d6(me.data[Le]))return s;if(d6(me.data[Le-1])&&(tt.setStart(me,Le),tt.setEnd(me,Le+1),!Bf(tt)))return d(Yp(Vh(tt),!1)),s}Le>0&&(tt.setStart(me,Le-1),tt.setEnd(me,Le),Bf(tt)||d(Yp(Vh(tt),!1))),Le<me.data.length&&(tt.setStart(me,Le),tt.setEnd(me,Le+1),Bf(tt)||d(Yp(Vh(tt),!0)))},E=o.container(),D=o.offset();if(nf(E))return m(E,D),s;if(Rr(E))if(o.isAtEnd()){var J=Fb(E,D);nf(J)&&m(J,J.data.length),rg(J)&&!Pb(J)&&d(Yp(Vh(J),!1))}else{var J=Fb(E,D);if(nf(J)&&m(J,0),rg(J)&&o.isAtEnd())return d(Yp(Vh(J),!1)),s;var ue=Fb(o.container(),o.offset()-1);rg(ue)&&!Pb(ue)&&(Cu(ue)||Cu(J)||!rg(J))&&d(Yp(Vh(ue),!1)),rg(J)&&d(Yp(Vh(J),!0))}return s},Kn=function(o,s,d){var m=function(){return nf(o),s===0},E=function(){return nf(o)?s>=o.data.length:s>=o.childNodes.length},D=function(){var tt=Jv(o.ownerDocument);return tt.setStart(o,s),tt.setEnd(o,s),tt},J=function(){return d||(d=Hb(Kn(o,s))),d},ue=function(){return J().length>0},me=function(tt){return tt&&o===tt.container()&&s===tt.offset()},Le=function(tt){return Fb(o,tt?s-1:s)};return{container:K(o),offset:K(s),toRange:D,getClientRects:J,isVisible:ue,isAtStart:m,isAtEnd:E,isEqual:me,getNode:Le}};Kn.fromRangeStart=function(o){return Kn(o.startContainer,o.startOffset)},Kn.fromRangeEnd=function(o){return Kn(o.endContainer,o.endOffset)},Kn.after=function(o){return Kn(o.parentNode,v6(o)+1)},Kn.before=function(o){return Kn(o.parentNode,v6(o))},Kn.isAbove=function(o,s){return ec(Wt(s.getClientRects()),xt(o.getClientRects()),R2).getOr(!1)},Kn.isBelow=function(o,s){return ec(xt(s.getClientRects()),Wt(o.getClientRects()),L2).getOr(!1)},Kn.isAtStart=function(o){return o?o.isAtStart():!1},Kn.isAtEnd=function(o){return o?o.isAtEnd():!1},Kn.isTextPosition=function(o){return o?Jr(o.container()):!1},Kn.isElementPosition=function(o){return Kn.isTextPosition(o)===!1};var q0=function(o,s){Jr(s)&&s.data.length===0&&o.remove(s)},B2=function(o,s,d){s.insertNode(d),q0(o,d.previousSibling),q0(o,d.nextSibling)},z7=function(o,s,d){var m=re.from(d.firstChild),E=re.from(d.lastChild);s.insertNode(d),m.each(function(D){return q0(o,D.previousSibling)}),E.each(function(D){return q0(o,D.nextSibling)})},h6=function(o,s,d){ya(d)?z7(o,s,d):B2(o,s,d)},mv=Jr,p6=Ks,_5=Ds.nodeIndex,w5=function(o){var s=o.parentNode;return p6(s)?w5(s):s},m6=function(o){return o?el(o.childNodes,function(s,d){return p6(d)&&d.nodeName!=="BR"?s=s.concat(m6(d)):s.push(d),s},[]):[]},C5=function(o,s){for(;(o=o.previousSibling)&&mv(o);)s+=o.data.length;return s},x5=function(o){return function(s){return o===s}},E5=function(o){var s,d;s=m6(w5(o)),d=ga(s,x5(o),o),s=s.slice(0,d+1);var m=el(s,function(E,D,J){return mv(D)&&mv(s[J-1])&&E++,E},0);return s=rs(s,bf([o.nodeName])),d=ga(s,x5(o),o),d-m},S5=function(o){var s;return mv(o)?s="text()":s=o.nodeName.toLowerCase(),s+"["+E5(o)+"]"},og=function(o,s,d){var m=[];for(s=s.parentNode;s!==o&&!(d&&d(s));s=s.parentNode)m.push(s);return m},ax=function(o,s){var d,m,E=[],D,J,ue;return d=s.container(),m=s.offset(),mv(d)?D=C5(d,m):(J=d.childNodes,m>=J.length?(D="after",m=J.length-1):D="before",d=J[m]),E.push(S5(d)),ue=og(o,d),ue=rs(ue,le(Ks)),E=E.concat(Ps(ue,function(me){return S5(me)})),E.reverse().join("/")+","+D},H7=function(o,s,d){var m=m6(o);return m=rs(m,function(E,D){return!mv(E)||!mv(m[D-1])}),m=rs(m,bf([s])),m[d]},V7=function(o,s){for(var d=o,m=0,E;mv(d);){if(E=d.data.length,s>=m&&s<=m+E){o=d,s=s-m;break}if(!mv(d.nextSibling)){o=d,s=E;break}m+=E,d=d.nextSibling}return mv(o)&&s>o.data.length&&(s=o.data.length),Kn(o,s)},P2=function(o,s){var d;if(!s)return null;var m=s.split(","),E=m[0].split("/");d=m.length>1?m[1]:"before";var D=el(E,function(J,ue){var me=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(ue);return me?(me[1]==="text()"&&(me[1]="#text"),H7(J,me[1],parseInt(me[2],10))):null},o);return D?mv(D)?V7(D,parseInt(d,10)):(d==="after"?d=_5(D)+1:d=_5(D),Kn(D.parentNode,d)):null},F2=fs,g6=function(o,s,d){var m,E;for(E=o(s.data.slice(0,d)).length,m=s.previousSibling;m&&Jr(m);m=m.previousSibling)E+=o(m.data).length;return E},T5=function(o,s,d,m,E){var D=m[E?"startContainer":"endContainer"],J=m[E?"startOffset":"endOffset"],ue=[],me,Le=0,tt=o.getRoot();for(Jr(D)?ue.push(d?g6(s,D,J):J):(me=D.childNodes,J>=me.length&&me.length&&(Le=1,J=Math.max(0,me.length-1)),ue.push(o.nodeIndex(me[J],d)+Le));D&&D!==tt;D=D.parentNode)ue.push(o.nodeIndex(D,d));return ue},$2=function(o,s,d,m){var E=s.dom,D={};return D.start=T5(E,o,d,m,!0),s.isCollapsed()||(D.end=T5(E,o,d,m,!1)),T1(m)&&(D.isFakeCaret=!0),D},A5=function(o,s,d){var m=0;return Gn.each(o.select(s),function(E){if(E.getAttribute("data-mce-bogus")!=="all"){if(E===d)return!1;m++}}),m},wl=function(o,s){var d,m,E,D=s?"start":"end";d=o[D+"Container"],m=o[D+"Offset"],Ko(d)&&d.nodeName==="TR"&&(E=d.childNodes,d=E[Math.min(s?m:m-1,E.length-1)],d&&(m=s?0:d.childNodes.length,o["set"+(s?"Start":"End")](d,m)))},Vb=function(o){return wl(o,!0),wl(o,!1),o},Dl=function(o,s){var d;if(Ko(o)&&(o=Zs(o,s),F2(o)))return o;if(zc(o)&&(Jr(o)&&Wi(o)&&(o=o.parentNode),d=o.previousSibling,F2(d)||(d=o.nextSibling,F2(d))))return d},y6=function(o){return Dl(o.startContainer,o.startOffset)||Dl(o.endContainer,o.endOffset)},ag=function(o,s,d){var m=d.getNode(),E=m?m.nodeName:null,D=d.getRng();if(F2(m)||E==="IMG")return{name:E,index:A5(d.dom,E,m)};var J=y6(D);return J?(E=J.tagName,{name:E,index:A5(d.dom,E,J)}):$2(o,d,s,D)},k5=function(o){var s=o.getRng();return{start:ax(o.dom.getRoot(),Kn.fromRangeStart(s)),end:ax(o.dom.getRoot(),Kn.fromRangeEnd(s))}},Ub=function(o){return{rng:o.getRng()}},O5=function(o,s,d){var m={"data-mce-type":"bookmark",id:s,style:"overflow:hidden;line-height:0px"};return d?o.create("span",m,""):o.create("span",m)},ix=function(o,s){var d=o.dom,m=o.getRng(),E=d.uniqueId(),D=o.isCollapsed(),J=o.getNode(),ue=J.nodeName;if(ue==="IMG")return{name:ue,index:A5(d,ue,J)}
72;var me=Vb(m.cloneRange());if(!D){me.collapse(!1);var Le=O5(d,E+"_end",s);h6(d,me,Le)}m=Vb(m),m.collapse(!0);var tt=O5(d,E+"_start",s);return h6(d,m,tt),o.moveToBookmark({id:E,keep:!0}),{id:E}},U7=function(o,s,d){return s===2?ag($c,d,o):s===3?k5(o):s?Ub(o):ix(o,!1)},sx=ne(ag,fe,!0),j7=Ds.DOM,b6="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",jb=function(o,s,d){var m=o.getParam(s,d);if(m.indexOf("=")!==-1){var E=o.getParam(s,"","hash");return Br(E,o.id).getOr(d)}else return m},W7=function(o){return o.getParam("iframe_attrs",{})},lx=function(o){return o.getParam("doctype","<!DOCTYPE html>")},M5=function(o){return o.getParam("document_base_url","")},G7=function(o){return jb(o,"body_id","tinymce")},K7=function(o){return jb(o,"body_class","")},_6=function(o){return o.getParam("content_security_policy","")},N5=function(o){return o.getParam("br_in_pre",!0)},xc=function(o){if(o.getParam("force_p_newlines",!1))return"p";var s=o.getParam("forced_root_block","p");return s===!1?"":s===!0?"p":s},z2=function(o){return o.getParam("forced_root_block_attrs",{})},H2=function(o){return o.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},ux=function(o){return o.getParam("no_newline_selector","")},Y7=function(o){return o.getParam("keep_styles",!0)},Wb=function(o){return o.getParam("end_container_on_empty_block",!1)},Gb=function(o){return Gn.explode(o.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},ig=function(o){return Gn.explode(o.getParam("font_size_classes",""))},w6=function(o){return o.getParam("images_dataimg_filter",j,"function")},Kb=function(o){return o.getParam("automatic_uploads",!0,"boolean")},D5=function(o){return o.getParam("images_reuse_filename",!1,"boolean")},q7=function(o){return o.getParam("images_replace_blob_uris",!0,"boolean")},Uh=function(o){return o.getParam("icons","","string")},C6=function(o){return o.getParam("icons_url","","string")},X7=function(o){return o.getParam("images_upload_url","","string")},qp=function(o){return o.getParam("images_upload_base_path","","string")},Xp=function(o){return o.getParam("images_upload_credentials",!1,"boolean")},Z7=function(o){return o.getParam("images_upload_handler",null,"function")},x6=function(o){return o.getParam("content_css_cors",!1,"boolean")},E6=function(o){return o.getParam("referrer_policy","","string")},S6=function(o){return o.getParam("language","en","string")},rc=function(o){return o.getParam("language_url","","string")},cx=function(o){return o.getParam("indent_use_margin",!1)},I5=function(o){return o.getParam("indentation","40px","string")},fx=function(o){var s=o.getParam("content_css");return B(s)?rt(s.split(","),Gt):R(s)?s:s===!1||o.inline?[]:["default"]},dx=function(o){var s=o.getParam("font_css",[]);return R(s)?s:rt(s.split(","),Gt)},th=function(o){return o.getParam("directionality",If.isRtl()?"rtl":void 0)},X0=function(o){return o.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},vx=function(o){var s=o.getParam("object_resizing");return s===!1||Io.iOS?!1:B(s)?s:"table,img,figure.image,div,video,iframe"},hx=function(o){return o.getParam("resize_img_proportional",!0,"boolean")},R5=function(o){return o.getParam("placeholder",j7.getAttrib(o.getElement(),"placeholder"),"string")},T6=function(o){return o.getParam("event_root")},px=function(o){return o.getParam("service_message")},V2=function(o){return o.getParam("theme")},Q7=function(o){return o.getParam("validate")},Yb=function(o){return o.getParam("inline_boundaries")!==!1},J7=function(o){return o.getParam("formats")},U2=function(o){var s=o.getParam("preview_styles",b6);return B(s)?s:""},sg=function(o){return o.getParam("format_empty_lines",!1,"boolean")},L5=function(o){return o.getParam("custom_ui_selector","","string")},mx=function(o){return o.getParam("theme_url")},ek=function(o){return o.getParam("inline")},gx=function(o){return o.getParam("hidden_input")},yx=function(o){return o.getParam("submit_patch")},B5=function(o){return o.getParam("encoding")==="xml"},tk=function(o){return o.getParam("add_form_submit_trigger")},A6=function(o){return o.getParam("add_unload_trigger")},nk=function(o){return xc(o)!==""},qb=function(o){return o.getParam("custom_undo_redo_levels",0,"number")},rk=function(o){return o.getParam("disable_nodechange")},ok=function(o){return o.getParam("readonly")},ak=function(o){return o.getParam("content_css_cors")},k6=function(o){return o.getParam("plugins","","string")},ik=function(o){return o.getParam("external_plugins")},j2=function(o){return o.getParam("block_unsupported_drop",!0,"boolean")},bx=function(o){return o.getParam("visual",!0,"boolean")},sk=function(o){return o.getParam("visual_table_class","mce-item-table","string")},P5=function(o){return o.getParam("visual_anchor_class","mce-item-anchor","string")},_x=function(o){return o.getParam("iframe_aria_text","Rich Text Area. Press ALT
72-0 for help.","string")},F5=Ko,wx=Jr,Cx=function(o){var s=o.parentNode;s&&s.removeChild(o)},W2=function(o){var s=$c(o);return{count:o.length-s.length,text:s}},$5=function(o){for(var s;(s=o.data.lastIndexOf(fn))!==-1;)o.deleteData(s,1)},z5=function(o,s){return Zp(o),s},lk=function(o,s){var d=W2(o.data.substr(0,s.offset())),m=W2(o.data.substr(s.offset())),E=d.text+m.text;return E.length>0?($5(o),Kn(o,s.offset()-d.count)):s},uk=function(o,s){var d=s.container(),m=Oe(at(d.childNodes),o).map(function(E){return E<s.offset()?Kn(d,s.offset()-1):s}).getOr(s);return Zp(o),m},H5=function(o,s){return wx(o)&&s.container()===o?lk(o,s):z5(o,s)},ck=function(o,s){return s.container()===o.parentNode?uk(o,s):z5(o,s)},xx=function(o,s){return Kn.isTextPosition(s)?H5(o,s):ck(o,s)},Zp=function(o){F5(o)&&zc(o)&&(kd(o)?o.removeAttribute("data-mce-caret"):Cx(o)),wx(o)&&($5(o),o.data.length===0&&Cx(o))},G2=mo().browser,Ex=fs,fk=Du,Sx=x1,dk="*[contentEditable=false],video,audio,embed,object",V5=function(o,s,d){var m=u6(s.getBoundingClientRect(),d),E,D;if(o.tagName==="BODY"){var J=o.ownerDocument.documentElement;E=o.scrollLeft||J.scrollLeft,D=o.scrollTop||J.scrollTop}else{var ue=o.getBoundingClientRect();E=o.scrollLeft-ue.left,D=o.scrollTop-ue.top}m.left+=E,m.right+=E,m.top+=D,m.bottom+=D,m.width=1;var me=s.offsetWidth-s.clientWidth;return me>0&&(d&&(me*=-1),m.left+=me,m.right+=me),m},K2=function(o){for(var s=Cc(xe.fromDom(o),dk),d=0;d<s.length;d++){var m=s[d].dom,E=m.previousSibling;if(Kv(E)){var D=E.data;D.length===1?E.parentNode.removeChild(E):E.deleteData(D.length-1,1)}if(E=m.nextSibling,Gv(E)){var D=E.data;D.length===1?E.parentNode.removeChild(E):E.deleteData(0,1)}}},of=function(o,s,d,m){var E=Gp(),D,J,ue=xc(o),me=ue.length>0?ue:"p",Le=function(Lt,$t){var Jt;if(tt(),Sx($t))return null;if(d($t)){J=Tb(me,$t,Lt);var qt=V5(s,$t,Lt);Ta(J).css("top",qt.top);var Mn=Ta('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(fo({},qt)).appendTo(s)[0];E.set({caret:Mn,element:$t,before:Lt}),Lt&&Ta(Mn).addClass("mce-visual-caret-before"),nt(),Jt=$t.ownerDocument.createRange(),Jt.setStart(J,0),Jt.setEnd(J,0)}else return J=Sb($t,Lt),Jt=$t.ownerDocument.createRange(),Y2(J.nextSibling)?(Jt.setStart(J,0),Jt.setEnd(J,0)):(Jt.setStart(J,1),Jt.setEnd(J,1)),Jt;return Jt},tt=function(){K2(s),J&&(Zp(J),J=null),E.on(function(Lt){Ta(Lt.caret).remove(),E.clear()}),D&&(cl.clearInterval(D),D=void 0)},nt=function(){D=cl.setInterval(function(){m()?Ta("div.mce-visual-caret",s).toggleClass("mce-visual-caret-hidden"):Ta("div.mce-visual-caret",s).addClass("mce-visual-caret-hidden")},500)},it=function(){E.on(function(Lt){var $t=V5(s,Lt.element,Lt.before);Ta(Lt.caret).css(fo({},$t))})},kt=function(){return cl.clearInterval(D)},Nt=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:Le,hide:tt,getCss:Nt,reposition:it,destroy:kt}},U5=function(){return G2.isIE()||G2.isEdge()||G2.isFirefox()},Y2=function(o){return Ex(o)||fk(o)},lg=function(o){return Y2(o)||nl(o)&&U5()},O6=fs,vk=Du,Tx=Ju("display","block table table-cell table-caption list-item"),j5=zc,cd=Wi,Xb=Ko,hk=sv,ug=function(o){return o>0},Qp=function(o){return o<0},q2=function(o,s){for(var d;d=o(s);)if(!cd(d))return d;return null},Jp=function(o,s,d,m,E){var D=new hi(o,m),J=O6(o)||cd(o);if(Qp(s)){if(J&&(o=q2(D.prev.bind(D),!0),d(o)))return o;for(;o=q2(D.prev.bind(D),E);)if(d(o))return o}if(ug(s)){if(J&&(o=q2(D.next.bind(D),!0),d(o)))return o;for(;o=q2(D.next.bind(D),E);)if(d(o))return o}return null},nh=function(o,s){for(;o&&o!==s;){if(Tx(o))return o;o=o.parentNode}return null},rh=function(o,s,d){return nh(o.container(),d)===nh(s.container(),d)},M6=function(o,s){if(!s)return null;var d=s.container(),m=s.offset();return Xb(d)?d.childNodes[m+o]:null},N6=function(o,s){var d=s.ownerDocument.createRange();return o?(d.setStartBefore(s),d.setEndBefore(s)):(d.setStartAfter(s),d.setEndAfter(s)),d},W5=function(o,s,d){return nh(s,o)===nh(d,o)},X2=function(o,s,d){for(var m=o?"previousSibling":"nextSibling";d&&d!==s;){var E=d[m];if(j5(E)&&(E=E[m]),O6(E)||vk(E)){if(W5(s,E,d))return E;break}if(hk(E))break;d=d.parentNode}return null},Z2=ne(N6,!0),Q2=ne(N6,!1),Wc=function(o,s,d){var m,E=ne(X2,!0,s),D=ne(X2,!1,s),J=d.startContainer,ue=d.startOffset;if(Wi(J)){Xb(J)||(J=J.parentNode);var me=J.getAttribute("data-mce-caret");if(me==="before"&&(m=J.nextSibling,lg(m)))return Z2(m);if(me==="after"&&(m=J.previousSibling,lg(m)))return Q2(m)}if(!d.collapsed)return d;if(Jr(J)){if(j5(J)){if(o===1){if(m=D(J),m)return Z2(m);if(m=E(J),m)return Q2(m)}if(o===-1){if(m=E(J),m)return Q2(m);if(m=D(J),m)return Z2(m)}return d}if(Kv(J)&&ue>=J.data.length-1)return o===1&&(m=D(J),m)?Z2(m):d;if(Gv(J)&&ue<=1)return o===-1&&(m=E(J),m)?Q2(m):d;if(ue===J.data.length)return m=D(J),m?Z2(m):d;if(ue===0)return m=E(J),m?Q2(m):d}return d},J2=function(o,s){return re.from(M6(o?0:-1,s)).filter(O6)},ey=function(o,s,d){var m=Wc(o,s,d);return o===-1?Kn.fromRangeStart(m):Kn.fromRangeEnd(m)},D6=function(o){return re.from(o.getNode()).map(xe.fromDom)},pk=function(o){return re.from(o.getNode(!0)).map(xe.fromDom)},G5=function(o,s){for(;s=o(s);)if(s.isVisible())return s;return s},I6=function(o,s){var d=rh(o,s);return!d&&qi(o.getNode())?!0:d},Ec;(function(o){o[o.Backwards=-1]="Backwards",o[o.Forwards=1]="Forwards"})(Ec||(Ec={}));var mk=fs,jh=Jr,R6=Ko,K5=qi,ty=sv,Y5=o5,Zb=Ml,gk=function(o,s){for(var d=[];o&&o!==s;)d.push(o),o=o.parentNode;return d},Ax=function(o,s){return o.hasChildNodes()&&s<o.childNodes.length?o.childNodes[s]:null},kx=function(o,s){if(ug(o)){if(ty(s.previousSibling)&&!jh(s.previousSibling))return Kn.before(s);if(jh(s))return Kn(s,0)}if(Qp(o)){if(ty(s.nextSibling)&&!jh(s.nextSibling))return Kn.after(s);if(jh(s))return Kn(s,s.data.length)}return Qp(o)?K5(s)?Kn.before(s):Kn.after(s):Kn.before(s)},yk=function(o,s){var d=s.nextSibling;return d&&ty(d)?jh(d)?Kn(d,0):Kn.before(d):ny(Ec.Forwards,Kn.after(s),o)},ny=function(o,s,d){var m,E,D,J;if(!R6(d)||!s)return null;if(s.isEqual(Kn.after(d))&&d.lastChild){if(J=Kn.after(d.lastChild),Qp(o)&&ty(d.lastChild)&&R6(d.lastChild))return K5(d.lastChild)?Kn.before(d.lastChild):J}else J=s;var ue=J.container(),me=J.offset();if(jh(ue)){if(Qp(o)&&me>0)return Kn(ue,--me);if(ug(o)&&me<ue.length)return Kn(ue,++me);m=ue}else{if(Qp(o)&&me>0&&(E=Ax(ue,me-1),ty(E)))return!Y5(E)&&(D=Jp(E,o,Zb,E),D)?jh(D)?Kn(D,D.data.length):Kn.after(D):jh(E)?Kn(E,E.data.length):Kn.before(E);if(ug(o)&&me<ue.childNodes.length&&(E=Ax(ue,me),ty(E)))return K5(E)?yk(d,E):!Y5(E)&&(D=Jp(E,o,Zb,E),D)?jh(D)?Kn(D,0):Kn.before(D):jh(E)?Kn(E,0):Kn.after(E);m=E||J.getNode()}if((ug(o)&&J.isAtEnd()||Qp(o)&&J.isAtStart())&&(m=Jp(m,o,j,d,!0),Zb(m,d)))return kx(o,m);E=Jp(m,o,Zb,d);var Le=_s(Fe(gk(ue,d),mk));return Le&&(!E||!Le.contains(E))?(ug(o)?J=Kn.after(Le):J=Kn.before(Le),J):E?kx(o,E):null},Cl=function(o){return{next:function(s){return ny(Ec.Forwards,s,o)},prev:function(s){return ny(Ec.Backwards,s,o)}}},L6=function(o,s,d){var m=o?Kn.before(d):Kn.after(d);return fd(o,s,m)},B6=function(o){return qi(o)?Kn.before(o):Kn.after(o)},q5=function(o){return Kn.isTextPosition(o)?o.offset()===0:sv(o.getNode())}
72,Ox=function(o){if(Kn.isTextPosition(o)){var s=o.container();return o.offset()===s.data.length}else return sv(o.getNode(!0))},X5=function(o,s){return!Kn.isTextPosition(o)&&!Kn.isTextPosition(s)&&o.getNode()===s.getNode(!0)},cg=function(o){return!Kn.isTextPosition(o)&&qi(o.getNode())},P6=function(o,s,d){return o?!X5(s,d)&&!cg(s)&&Ox(s)&&q5(d):!X5(d,s)&&q5(s)&&Ox(d)},fd=function(o,s,d){var m=Cl(s);return re.from(o?m.next(d):m.prev(d))},oh=function(o,s,d){return fd(o,s,d).bind(function(m){return rh(d,m,s)&&P6(o,d,m)?fd(o,s,m):re.some(m)})},F6=function(o,s,d,m){return oh(o,s,d).bind(function(E){return m(E)?F6(o,s,E,m):re.some(E)})},Z0=function(o,s){var d=o?s.firstChild:s.lastChild;return Jr(d)?re.some(Kn(d,o?0:d.data.length)):d?sv(d)?re.some(o?Kn.before(d):B6(d)):L6(o,s,d):re.none()},gv=ne(fd,!0),ah=ne(fd,!1),af=ne(Z0,!0),I1=ne(Z0,!1),ry="_mce_caret",Wh=function(o){return Ko(o)&&o.id===ry},fg=function(o,s){for(;s&&s!==o;){if(s.id===ry)return s;s=s.parentNode}return null},Mx=function(o){return B(o.start)},Nx=function(o){return io(o,"rng")},bk=function(o){return io(o,"id")},_k=function(o){return io(o,"name")},Dx=function(o){return Gn.isArray(o.start)},Ix=function(o,s){return Ko(s)&&o.isBlock(s)&&!s.innerHTML&&!Io.ie&&(s.innerHTML='<br data-mce-bogus="1" />'),s},Rx=function(o,s){var d,m=o.createRng();return d=P2(o.getRoot(),s.start),m.setStart(d.container(),d.offset()),d=P2(o.getRoot(),s.end),m.setEnd(d.container(),d.offset()),m},wk=function(o,s){var d=o.ownerDocument.createTextNode(fn);o.appendChild(d),s.setStart(d,0),s.setEnd(d,0)},Lx=function(o){return o.hasChildNodes()===!1},Ck=function(o,s){return I1(o).fold(U,function(d){return s.setStart(d.container(),d.offset()),s.setEnd(d.container(),d.offset()),!0})},Bx=function(o,s,d){return Lx(s)&&fg(o,s)?(wk(s,d),!0):!1},Px=function(o,s,d,m){var E=d[s?"start":"end"],D,J,ue,me,Le=o.getRoot();if(E){for(ue=E[0],J=Le,D=E.length-1;D>=1;D--){if(me=J.childNodes,Bx(Le,J,m))return!0;if(E[D]>me.length-1)return Bx(Le,J,m)?!0:Ck(J,m);J=me[E[D]]}J.nodeType===3&&(ue=Math.min(E[0],J.nodeValue.length)),J.nodeType===1&&(ue=Math.min(E[0],J.childNodes.length)),s?m.setStart(J,ue):m.setEnd(J,ue)}return!0},Z5=function(o){return Jr(o)&&o.data.length>0},Fx=function(o,s,d){var m=o.get(d.id+"_"+s),E,D,J,ue,me=d.keep,Le,tt;if(m){if(E=m.parentNode,s==="start"?(me?m.hasChildNodes()?(E=m.firstChild,D=1):Z5(m.nextSibling)?(E=m.nextSibling,D=0):Z5(m.previousSibling)?(E=m.previousSibling,D=m.previousSibling.data.length):(E=m.parentNode,D=o.nodeIndex(m)+1):D=o.nodeIndex(m),Le=E,tt=D):(me?m.hasChildNodes()?(E=m.firstChild,D=1):Z5(m.previousSibling)?(E=m.previousSibling,D=m.previousSibling.data.length):(E=m.parentNode,D=o.nodeIndex(m)):D=o.nodeIndex(m),Le=E,tt=D),!me){for(ue=m.previousSibling,J=m.nextSibling,Gn.each(Gn.grep(m.childNodes),function(nt){Jr(nt)&&(nt.nodeValue=nt.nodeValue.replace(/\uFEFF/g,""))});m=o.get(d.id+"_"+s);)o.remove(m,!0);ue&&J&&ue.nodeType===J.nodeType&&Jr(ue)&&!Io.opera&&(D=ue.nodeValue.length,ue.appendData(J.nodeValue),o.remove(J),Le=ue,tt=D)}return re.some(Kn(Le,tt))}else return re.none()},xk=function(o,s){var d=o.createRng();return Px(o,!0,s,d)&&Px(o,!1,s,d)?re.some(d):re.none()},ti=function(o,s){var d=Fx(o,"start",s),m=Fx(o,"end",s);return ec(d,m.or(d),function(E,D){var J=o.createRng();return J.setStart(Ix(o,E.container()),E.offset()),J.setEnd(Ix(o,D.container()),D.offset()),J})},dg=function(o,s){return re.from(o.select(s.name)[s.index]).map(function(d){var m=o.createRng();return m.selectNode(d),m})},oy=function(o,s){var d=o.dom;if(s){if(Dx(s))return xk(d,s);if(Mx(s))return re.some(Rx(d,s));if(bk(s))return ti(d,s);if(_k(s))return dg(d,s);if(Nx(s))return re.some(s.rng)}return re.none()},Q5=function(o,s,d){return U7(o,s,d)},Ek=function(o,s){oy(o,s).each(function(d){o.setRng(d)})},dd=function(o){return Ko(o)&&o.tagName==="SPAN"&&o.getAttribute("data-mce-type")==="bookmark"},Sk=function(o){return function(s){return o===s}},vg=Sk(Zc),em=function(o){return o!==""&&` \f 73\r \v`.indexOf(o)!==-1},$6=function(o){return!em(o)&&!vg(o)},z6=function(o){return!!o.nodeType},Tk=function(o){return o&&/^(IMG)$/.test(o.nodeName)},$x=function(o,s,d){var m=d.startOffset,E=d.startContainer;if(!(E===d.endContainer&&Tk(E.childNodes[m]))&&Ko(E)){var D=E.childNodes,J=void 0;m<D.length?(E=D[m],J=new hi(E,o.getParent(E,o.isBlock))):(E=D[D.length-1],J=new hi(E,o.getParent(E,o.isBlock)),J.next(!0));for(var ue=J.current();ue;ue=J.next())if(Jr(ue)&&!V6(ue)){d.setStart(ue,0),s.setRng(d);return}}},H6=function(o,s,d){if(o){var m=s?"nextSibling":"previousSibling";for(o=d?o:o[m];o;o=o[m])if(Ko(o)||!V6(o))return o}},J5=function(o,s){return z6(s)&&(s=s.nodeName),!!o.schema.getTextBlockElements()[s.toLowerCase()]},ay=function(o,s,d){return o.schema.isValidChild(s,d)},V6=function(o,s){if(s===void 0&&(s=!1),z(o)&&Jr(o)){var d=s?o.data.replace(/ /g,"\xA0"):o.data;return Od(d)}else return!1},Ak=function(o){return z(o)&&Jr(o)&&o.length===0},Gh=function(o,s){return Y(o)?o=o(s):z(s)&&(o=o.replace(/%(\w+)/g,function(d,m){return s[m]||d})),o},ew=function(o,s){return o=o||"",s=s||"",o=""+(o.nodeName||o),s=""+(s.nodeName||s),o.toLowerCase()===s.toLowerCase()},tw=function(o,s,d){return(d==="color"||d==="backgroundColor")&&(s=o.toHex(s)),d==="fontWeight"&&s===700&&(s="bold"),d==="fontFamily"&&(s=s.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+s},iy=function(o,s,d){return tw(o,o.getStyle(s,d),d)},nw=function(o,s){var d;return o.getParent(s,function(m){return d=o.getStyle(m,"text-decoration"),d&&d!=="none"}),d},Qb=function(o,s,d){return o.getParents(s,d,o.getRoot())},zx=function(o,s){var d=function(m){var E=function(D){return D.length>1&&D.charAt(0)==="%"};return $e(["styles","attributes"],function(D){return Br(m,D).exists(function(J){var ue=R(J)?J:qr(J);return $e(ue,E)})})};return $e(o.formatter.get(s),d)},kk=function(o,s,d){var m=["inline","block","selector","attributes","styles","classes"],E=function(D){return nn(D,function(J,ue){return $e(m,function(me){return me===ue})})};return $e(o.formatter.get(s),function(D){var J=E(D);return $e(o.formatter.get(d),function(ue){var me=E(ue);return Di(J,me)})})},Kh=function(o){return xa(o,"block")},Id=function(o){return xa(o,"selector")},Sc=function(o){return xa(o,"inline")},Ok=function(o){return Id(o)&&Sc(o)&&x0(Br(o,"mixed"),!0)},rw=function(o){return Id(o)&&o.expand!==!1&&!Sc(o)},sy=dd,ow=Qb,Jb=V6,aw=J5,Mk=function(o){return qi(o)&&o.getAttribute("data-mce-bogus")&&!o.nextSibling},zr=function(o,s){for(var d=s;d;){if(Ko(d)&&o.getContentEditable(d))return o.getContentEditable(d)==="false"?d:s;d=d.parentNode}return s},xu=function(o,s,d,m){for(var E=s.data,D=d;o?D>=0:D<E.length;o?D--:D++)if(m(E.charAt(D)))return o?D+1:D;return-1},ly=function(o,s,d){return xu(o,s,d,function(m){return vg(m)||em(m)})},oc=function(o,s,d){return xu(o,s,d,$6)},R1=function(o,s,d,m,E,D){var J,ue=o.getParent(d,o.isBlock)||s,me=function(tt,nt,it){var kt=y5(o),Nt=E?kt.backwards:kt.forwards;return re.from(Nt(tt,nt,function(Lt,$t){return sy(Lt.parentNode)?-1:(J=Lt,it(E,Lt,$t))},ue))},Le=me(d,m,ly);return Le.bind(function(tt){return D?me(tt.container,tt.offset+(E?-1:0),oc):re.some(tt)}).orThunk(function(){return J?re.some({container:J,offset:E?0:J.length}):re.none()})},iw=function(o,s,d,m,E){Jr(m)&&xr(m.data)&&m[E]&&(m=m[E]);for(var D=ow(o,m),J=0;J<D.length;J++)for(var ue=0;ue<s.length;ue++){var me=s[ue];if(!(z(me.collapsed)&&me.collapsed!==d.collapsed)&&Id(me)&&o.is(D[J],me.selector))return D[J]}return m},e4=function(o,s,d,m){var E=d,D=o.dom,J=D.getRoot(),ue=s[0];if(Kh(ue)&&(E=ue.wrapper?null:D.getParent(d,ue.block,J)),!E){var me=D.getParent(d,"LI,TD,TH");E=D.getParent(Jr(d)?d.parentNode:d,function(Le){return Le!==J&&aw(o,Le)},me)}if(E&&Kh(ue)&&ue.wrapper&&(E=ow(D,E,"ul,ol").reverse()[0]||E),!E)for(E=d;E[m]&&!D.isBlock(E[m])&&(E=E[m],!ew(E,"br")););return E||d},U6=function(o,s,d,m){var E=d.parentNode;return z(d[m])?!1:E===s||Z(E)||o.isBlock(E)?!0:U6(o,s,E,m)},j6=function(o,s,d,m,E){var D=d,J=E?"previousSibling":"nextSibling",ue=o.getRoot();if(Jr(d)&&!Jb(d)&&(E?m>0:m<d.data.length))return d;for(;;){if(!s[0].block_expand&&o.isBlock(D))return D;for(var me=D[J];me;me=me[J]){var Le=Jr(me)&&!U6(o,ue,me,J);if(!sy(me)&&!Mk(me)&&!Jb(me,Le))return D}if(D===ue||D.parentNode===ue){d=D;break}D=D.parentNode}return d},W6=function(o){return sy(o.parentNode)||sy(o)},tm=function(o,s,d,m){m===void 0&&(m=!1);var E=s.startContainer,D=s.startOffset,J=s.endContainer,ue=s.endOffset,me=o.dom,Le=d[0];if(Ko(E)&&E.hasChildNodes()&&(E=Zs(E,D),Jr(E)&&(D=0)),Ko(J)&&J.hasChildNodes()&&(J=Zs(J,s.collapsed?ue:ue-1),Jr(J)&&(ue=J.nodeValue.length)),E=zr(me,E),J=zr(me,J),W6(E)&&(E=sy(E)?E:E.parentNode,s.collapsed?E=E.previousSibling||E:E=E.nextSibling||E,Jr(E)&&(D=s.collapsed?E.length:0)),W6(J)&&(J=sy(J)?J:J.parentNode,s.collapsed?J=J.nextSibling||J:J=J.previousSibling||J,Jr(J)&&(ue=s.collapsed?0:J.length)),s.collapsed){var tt=R1(me,o.getBody(),E,D,!0,m);tt.each(function(it){var kt=it.container,Nt=it.offset;E=kt,D=Nt});var nt=R1(me,o.getBody(),J,ue,!1,m);nt.each(function(it){var kt=it.container,Nt=it.offset;J=kt,ue=Nt})}return(Sc(Le)||Le.block_expand)&&((!Sc(Le)||!Jr(E)||D===0)&&(E=j6(me,d,E,D,!0)),(!Sc(Le)||!Jr(J)||ue===J.nodeValue.length)&&(J=j6(me,d,J,ue,!1))),rw(Le)&&(E=iw(me,d,s,E,"previousSibling"),J=iw(me,d,s,J,"nextSibling")),(Kh(Le)||Id(Le))&&(E=e4(o,d,E,"previousSibling"),J=e4(o,d,J,"nextSibling"),Kh(Le)&&(me.isBlock(E)||(E=j6(me,d,E,D,!0)),me.isBlock(J)||(J=j6(me,d,J,ue,!1)))),Ko(E)&&(D=me.nodeIndex(E),E=E.parentNode),Ko(J)&&(ue=me.no
73deIndex(J)+1,J=J.parentNode),{startContainer:E,startOffset:D,endContainer:J,endOffset:ue}},t4=function(o,s,d){var m=s.startOffset,E=Zs(s.startContainer,m),D=s.endOffset,J=Zs(s.endContainer,D-1),ue=function(Lt){var $t=Lt[0];Jr($t)&&$t===E&&m>=$t.data.length&&Lt.splice(0,1);var Jt=Lt[Lt.length-1];return D===0&&Lt.length>0&&Jt===J&&Jr(Jt)&&Lt.splice(Lt.length-1,1),Lt},me=function(Lt,$t,Jt){for(var qt=[];Lt&&Lt!==Jt;Lt=Lt[$t])qt.push(Lt);return qt},Le=function(Lt,$t){return o.getParent(Lt,function(Jt){return Jt.parentNode===$t},$t)},tt=function(Lt,$t,Jt){for(var qt=Jt?"nextSibling":"previousSibling",Mn=Lt,xn=Mn.parentNode;Mn&&Mn!==$t;Mn=xn){xn=Mn.parentNode;var ln=me(Mn===Lt?Mn:Mn[qt],qt);ln.length&&(Jt||ln.reverse(),d(ue(ln)))}};if(E===J)return d(ue([E]));var nt=o.findCommonAncestor(E,J);if(o.isChildOf(E,J))return tt(E,nt,!0);if(o.isChildOf(J,E))return tt(J,nt);var it=Le(E,nt)||E,kt=Le(J,nt)||J;tt(E,it,!0);var Nt=me(it===E?it:it.nextSibling,"nextSibling",kt===J?kt.nextSibling:kt);Nt.length&&d(ue(Nt)),tt(J,kt)},sw=function(o){var s=[];if(o)for(var d=0;d<o.rangeCount;d++)s.push(o.getRangeAt(d));return s},lw=function(o){return tn(o,function(s){var d=ng(s);return d?[xe.fromDom(d)]:[]})},uw=function(o){return sw(o).length>1},Nk=function(o){return Fe(lw(o),e1)},Hx=function(o){return Cc(o,"td[data-mce-selected],th[data-mce-selected]")},Q0=function(o,s){var d=Hx(s);return d.length>0?d:Nk(o)},Yh=function(o){return Q0(sw(o.selection.getSel()),xe.fromDom(o.getBody()))},hg=function(o,s){return Bc(o,"table",s)},uy=function(o){var s=o.startContainer,d=o.startOffset;return Jr(s)?d===0?re.some(xe.fromDom(s)):re.none():re.from(s.childNodes[d]).map(xe.fromDom)},cw=function(o){var s=o.endContainer,d=o.endOffset;return Jr(s)?d===s.data.length?re.some(xe.fromDom(s)):re.none():re.from(s.childNodes[d-1]).map(xe.fromDom)},G6=function(o){return gl(o).fold(K([o]),function(s){return[o].concat(G6(s))})},qh=function(o){return mf(o).fold(K([o]),function(s){return si(s)==="br"?Pv(s).map(function(d){return[o].concat(qh(d))}).getOr([]):[o].concat(qh(s))})},yv=function(o,s){return ec(uy(s),cw(s),function(d,m){var E=mt(G6(o),ne(jo,d)),D=mt(qh(o),ne(jo,m));return E.isSome()&&D.isSome()}).getOr(!1)},nm=function(o,s,d,m){var E=d,D=new hi(d,E),J=nn(o.schema.getMoveCaretBeforeOnEnterElements(),function(ue,me){return!De(["td","th","table"],me.toLowerCase())});do{if(Jr(d)&&Gn.trim(d.nodeValue).length!==0){m?s.setStart(d,0):s.setEnd(d,d.nodeValue.length);return}if(J[d.nodeName]){m?s.setStartBefore(d):d.nodeName==="BR"?s.setEndBefore(d):s.setEndAfter(d);return}}while(d=m?D.next():D.prev());E.nodeName==="BODY"&&(m?s.setStart(E,0):s.setEnd(E,E.childNodes.length))},rm=function(o){var s=o.selection.getSel();return s&&s.rangeCount>0},pg=function(o,s){var d=Yh(o);d.length>0?ct(d,function(m){var E=m.dom,D=o.dom.createRng();D.setStartBefore(E),D.setEndAfter(E),s(D,!0)}):s(o.selection.getRng(),!1)},cy=function(o,s,d){var m=ix(o,s);d(m),o.moveToBookmark(m)},fw=function(o,s){var d=function(D){if(!o(D))throw new Error("Can only get "+s+" value of a "+s+" node");return m(D).getOr("")},m=function(D){return o(D)?re.from(D.dom.nodeValue):re.none()},E=function(D,J){if(!o(D))throw new Error("Can only set raw "+s+" value of a "+s+" node");D.dom.nodeValue=J};return{get:d,getOption:m,set:E}},dw=fw($s,"text"),vw=function(o){return dw.get(o)},K6=function(o){return $s(o)&&vw(o)===fn},Tc=function(o,s,d,m){return ks(s).fold(function(){return"skipping"},function(E){return m==="br"||K6(s)?"valid":Y0(s)?"existing":Wh(s.dom)?"caret":!ay(o,d,m)||!ay(o,si(E),d)?"invalid-child":"valid"})},l1=function(o,s){var d=tm(o,s,[{inline:"span"}]);s.setStart(d.startContainer,d.startOffset),s.setEnd(d.endContainer,d.endOffset),o.selection.setRng(s)},L1=function(o,s,d,m){var E=s.uid,D=E===void 0?ex("mce-annotation"):E,J=il(s,["uid"]),ue=xe.fromTag("span",o);eg(ue,Dd()),Me(ue,""+wu(),D),Me(ue,""+Lb(),d);var me=m(D,J),Le=me.attributes,tt=Le===void 0?{}:Le,nt=me.classes,it=nt===void 0?[]:nt;return Qe(ue,tt),L7(ue,it),ue},Xh=function(o,s,d,m,E){var D=[],J=L1(o.getDoc(),E,d,m),ue=Gp(),me=function(){ue.clear()},Le=function(){return ue.get().getOrThunk(function(){var kt=tu(J);return D.push(kt),ue.set(kt),kt})},tt=function(kt){ct(kt,nt)},nt=function(kt){var Nt=Tc(o,kt,"span",si(kt));
73switch(Nt){case"invalid-child":{me();var Lt=tl(kt);tt(Lt),me();break}case"valid":{var $t=Le();Th(kt,$t);break}}},it=function(kt){var Nt=rt(kt,xe.fromDom);tt(Nt)};return t4(o.dom,s,function(kt){me(),it(kt)}),D},fy=function(o,s,d,m){o.undoManager.transact(function(){var E=o.selection,D=E.getRng(),J=Yh(o).length>0;if(D.collapsed&&!J&&l1(o,D),E.getRng().collapsed&&!J){var ue=L1(o.getDoc(),m,s,d.decorate);Lf(ue,Zc),E.getRng().insertNode(ue.dom),E.select(ue.dom)}else cy(E,!1,function(){pg(o,function(me){Xh(o,me,s,d.decorate,m)})})})},Y6=function(o){var s=Bb();g5(o,s);var d=JC(o);return{register:function(m,E){s.register(m,E)},annotate:function(m,E){s.lookup(m).each(function(D){fy(o,m,D,E)})},annotationChanged:function(m,E){d.addListener(m,E)},remove:function(m){a6(o,re.some(m)).each(function(E){var D=E.elements;ct(D,Hv)})},getAll:function(m){var E=m5(o,m);return _n(E,function(D){return rt(D,function(J){return J.dom})})}}},om=function(o){return{getBookmark:ne(Q5,o),moveToBookmark:ne(Ek,o)}};om.isBookmarkNode=dd;var mg=function(o,s){for(;s&&s!==o;){if(nd(s)||fs(s))return s;s=s.parentNode}return null},gg=function(o,s,d){if(d.collapsed)return!1;if(Io.browser.isIE()&&d.startOffset===d.endOffset-1&&d.startContainer===d.endContainer){var m=d.startContainer.childNodes[d.startOffset];if(Ko(m))return $e(m.getClientRects(),function(E){return tx(E,o,s)})}return $e(d.getClientRects(),function(E){return tx(E,o,s)})},Dk=function(o,s){return o.fire("PreProcess",s)},hw=function(o,s){return o.fire("PostProcess",s)},Vx=function(o){return o.fire("remove")},Ux=function(o){return o.fire("detach")},pw=function(o,s){return o.fire("SwitchMode",{mode:s})},mw=function(o,s,d,m,E){o.fire("ObjectResizeStart",{target:s,width:d,height:m,origin:E})},ns=function(o,s,d,m,E){o.fire("ObjectResized",{target:s,width:d,height:m,origin:E})},Zh=function(o){return o.fire("PreInit")},jx=function(o){return o.fire("PostRender")},Wx=function(o){return o.fire("Init")},Gx=function(o,s){return o.fire("PlaceholderToggle",{state:s})},q6=function(o,s,d){return o.fire(s,d)},gw=function(o,s,d,m){return o.fire("FormatApply",{format:s,node:d,vars:m})},n4=function(o,s,d,m){return o.fire("FormatRemove",{format:s,node:d,vars:m})},Xo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(o){return o.shiftKey||o.ctrlKey||o.altKey||Xo.metaKeyPressed(o)},metaKeyPressed:function(o){return Io.mac?o.metaKey:o.ctrlKey&&!o.altKey}},Ik=fs,yw=function(o,s){var d="data-mce-selected",m=s.dom,E=Gn.each,D,J,ue,me,Le,tt,nt,it,kt,Nt,Lt,$t,Jt,qt,Mn,xn=s.getDoc(),ln=document,In=Math.abs,ir=Math.round,_r=s.getBody(),Go,eo,lr={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},Lo=function(Ln){return Ln&&(Ln.nodeName==="IMG"||s.dom.is(Ln,"figure.image"))},Sr=function(Ln){return Du(Ln)||m.hasClass(Ln,"mce-preview-object")},Xr=function(Ln,Cr){if(Ln.type==="longpress"||Ln.type.indexOf("touch")===0){var br=Ln.touches[0];return Lo(Ln.target)&&!gg(br.clientX,br.clientY,Cr)}else return Lo(Ln.target)&&!gg(Ln.clientX,Ln.clientY,Cr)},Tr=function(Ln){var Cr=Ln.target;Xr(Ln,s.selection.getRng())&&!Ln.isDefaultPrevented()&&s.selection.select(Cr)},Fr=function(Ln){return m.is(Ln,"figure.image")?[Ln.querySelector("img")]:m.hasClass(Ln,"mce-preview-object")&&z(Ln.firstElementChild)?[Ln,Ln.firstElementChild]:[Ln]},ho=function(Ln){var Cr=vx(s);return!Cr||Ln.getAttribute("data-mce-resize")==="false"||Ln===s.getBody()?!1:m.hasClass(Ln,"mce-preview-object")?yr(xe.fromDom(Ln.firstElementChild),Cr):yr(xe.fromDom(Ln),Cr)},mr=function(Ln){return Sr(Ln)?m.create("img",{src:Io.transparentSrc}):Ln.cloneNode(!0)},ro=function(Ln,Cr,br){if(z(br)){var Fo=Fr(Ln);ct(Fo,function(Wo){Wo.style[Cr]||!s.schema.isValid(Wo.nodeName.toLowerCase(),Cr)?m.setStyle(Wo,Cr,br):m.setAttrib(Wo,Cr,""+br)})}},Va=function(Ln,Cr,br){ro(Ln,"width",Cr),ro(Ln,"height",br)},Oi=function(Ln){var Cr,br,Fo,Wo,hs;Cr=Ln.screenX-tt,br=Ln.screenY-nt,qt=Cr*me[2]+Nt,Mn=br*me[3]+Lt,qt=qt<5?5:qt,Mn=Mn<5?5:Mn,(Lo(D)||Sr(D))&&hx(s)!==!1?Fo=!Xo.modifierPressed(Ln):Fo=Xo.modifierPressed(Ln),Fo&&(In(Cr)>In(br)?(Mn=ir(qt*$t),qt=ir(Mn/$t)):(qt=ir(Mn/$t),Mn=ir(qt*$t))),Va(J,qt,Mn),Wo=me.startPos.x+Cr,hs=me.startPos.y+br,Wo=Wo>0?Wo:0,hs=hs>0?hs:0,m.setStyles(ue,{left:Wo,top:hs,display:"block"}),ue.innerHTML=qt+" × "+Mn,me[2]<0&&J.clientWidth<=qt&&m.setStyle(J,"left",it+(Nt-qt)),me[3]<0&&J.clientHeight<=Mn&&m.setStyle(J,"top",kt+(Lt-Mn)),Cr=_r.scrollWidth-Go,br=_r.scrollHeight-eo,Cr+br!==0&&m.setStyles(ue,{left:Wo-Cr,top:hs-br}),Jt||(mw(s,D,Nt,Lt,"corner-"+me.name),Jt=!0)},Si=function(){var Ln=Jt;Jt=!1,Ln&&(ro(D,"width",qt),ro(D,"height",Mn)),m.unbind(xn,"mousemove",Oi),m.unbind(xn,"mouseup",Si),ln!==xn&&(m.unbind(ln,"mousemove",Oi),m.unbind(ln,"mouseup",Si)),m.remove(J),m.remove(ue),m.remove(Le),Oc(D),Ln&&(ns(s,D,qt,Mn,"corner-"+me.name),m.setAttrib(D,"style",m.getAttrib(D,"style"))),s.nodeChanged()},Oc=function(Ln){gr();var Cr=m.getPos(Ln,_r),br=Cr.x,Fo=Cr.y,Wo=Ln.getBoundingClientRect(),hs=Wo.width||Wo.right-Wo.left,sc=Wo.height||Wo.bottom-Wo.top;D!==Ln&&(vl(),D=Ln,qt=Mn=0);var Vu=s.fire("ObjectSelected",{target:Ln}),Hf=m.getAttrib(D,d,"1");ho(Ln)&&!Vu.isDefaultPrevented()?E(lr,function(Vf,Pd){var Uu,Tv=function(Fd){var gm=Fr(D)[0];tt=Fd.screenX,nt=Fd.screenY,Nt=gm.clientWidth,Lt=gm.clientHeight,$t=Lt/Nt,me=Vf,me.name=Pd,me.startPos={x:hs*Vf[0]+br,y:sc*Vf[1]+Fo},Go=_r.scrollWidth,eo=_r.scrollHeight,Le=m.add(_r,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),m.setStyles(Le,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),J=mr(D),m.addClass(J,"mce-clonedresizable"),m.setAttrib(J,"data-mce-bogus","all"),J.contentEditable="false",m.setStyles(J,{left:br,top:Fo,margin:0}),Va(J,hs,sc),J.removeAttribute(d),_r.appendChild(J),m.bind(xn,"mousemove",Oi),m.bind(xn,"mouseup",Si),ln!==xn&&(m.bind(ln,"mousemove",Oi),m.bind(ln,"mouseup",Si)),ue=m.add(_r,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Nt+" × "+Lt)};Uu=m.get("mceResizeHandle"+Pd),Uu&&m.remove(Uu),Uu=m.add(_r,"div",{id:"mceResizeHandle"+Pd,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Pd+"-resize; margin:0; padding:0"}),Io.ie===11&&(Uu.contentEditable=!1),m.bind(Uu,"mousedown",function(Fd){Fd.stopImmediatePropagation(),Fd.preventDefault(),Tv(Fd)}),Vf.elm=Uu,m.setStyles(Uu,{left:hs*Vf[0]+br-Uu.offsetWidth/2,top:sc*Vf[1]+Fo-Uu.offsetHeight/2})}):vl(),m.getAttrib(D,d)||D.setAttribute(d,Hf)},vl=function(){gr(),D&&D.removeAttribute(d),Vt(lr,function(Ln,Cr){var br=m.get("mceResizeHandle"+Cr);br&&(m.unbind(br),m.remove(br))})},pd=function(Ln){var Cr,br,Fo=function(Wo,hs){if(Wo)do if(Wo===hs)return!0;while(Wo=Wo.parentNode)};
73if(!(Jt||s.removed)){if(E(m.select("img[data-mce-selected],hr[data-mce-selected]"),function(Wo){Wo.removeAttribute(d)}),br=Ln.type==="mousedown"?Ln.target:o.getNode(),br=m.$(br).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],Fo(br,_r)&&(Ir(),Cr=o.getStart(!0),Fo(Cr,br)&&Fo(o.getEnd(!0),br))){Oc(br);return}vl()}},U1=function(Ln){return Ik(mg(s.getBody(),Ln))},gr=function(){Vt(lr,function(Ln){Ln.elm&&(m.unbind(Ln.elm),delete Ln.elm)})},Ir=function(){try{s.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};s.on("init",function(){if(Ir(),Io.browser.isIE()||Io.browser.isEdge()){s.on("mousedown click",function(br){var Fo=br.target,Wo=Fo.nodeName;!Jt&&/^(TABLE|IMG|HR)$/.test(Wo)&&!U1(Fo)&&(br.button!==2&&s.selection.select(Fo,Wo==="TABLE"),br.type==="mousedown"&&s.nodeChanged())});var Ln=function(br){var Fo=function(Wo){cl.setEditorTimeout(s,function(){return s.selection.select(Wo)})};if(U1(br.target)||Du(br.target)){br.preventDefault(),Fo(br.target);return}/^(TABLE|IMG|HR)$/.test(br.target.nodeName)&&(br.preventDefault(),br.target.tagName==="IMG"&&Fo(br.target))};m.bind(_r,"mscontrolselect",Ln),s.on("remove",function(){return m.unbind(_r,"mscontrolselect",Ln)})}var Cr=cl.throttle(function(br){s.composing||pd(br)});s.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",Cr),s.on("keyup compositionend",function(br){D&&D.nodeName==="TABLE"&&Cr(br)}),s.on("hide blur",vl),s.on("contextmenu longpress",Tr,!0)}),s.on("remove",gr);var Bo=function(){D=J=Le=null};return{isResizable:ho,showResizeRect:Oc,hideResizeRect:vl,updateResizeRect:pd,destroy:Bo}},Kx=function(o){return nd(o)||fs(o)},bw=function(o,s,d){for(;o&&o!==s;){if(d(o))return o;o=o.parentNode}return null},Rk=function(o,s,d){var m,E=d.elementFromPoint(o,s),D=d.body.createTextRange();if((!E||E.tagName==="HTML")&&(E=d.body),D.moveToElementText(E),m=Gn.toArray(D.getClientRects()),m=m.sort(function(J,ue){return J=Math.abs(Math.max(J.top-s,J.bottom-s)),ue=Math.abs(Math.max(ue.top-s,ue.bottom-s)),J-ue}),m.length>0){s=(m[0].bottom+m[0].top)/2;try{return D.moveToPoint(o,s),D.collapse(!0),D}catch{}}return null},Yx=function(o,s){var d=o&&o.parentElement?o.parentElement():null;return fs(bw(d,s,Kx))?null:o},_w=function(o,s,d){var m,E,D=d;if(D.caretPositionFromPoint)E=D.caretPositionFromPoint(o,s),E&&(m=d.createRange(),m.setStart(E.offsetNode,E.offset),m.collapse(!0));else if(D.caretRangeFromPoint)m=D.caretRangeFromPoint(o,s);else if(D.body.createTextRange){m=D.body.createTextRange();try{m.moveToPoint(o,s),m.collapse(!0)}catch{m=Rk(o,s,d)}return Yx(m,d.body)}return m},ww=function(o,s){return o&&s&&o.startContainer===s.startContainer&&o.startOffset===s.startOffset&&o.endContainer===s.endContainer&&o.endOffset===s.endOffset},Lk=function(o,s,d){for(;o&&o!==s;){if(d(o))return o;o=o.parentNode}return null},u1=function(o,s,d){return Lk(o,s,d)!==null},Pf=function(o,s,d){return u1(o,s,function(m){return m.nodeName===d})},Qh=function(o){return o&&o.nodeName==="TABLE"},Bk=function(o){return o&&/^(TD|TH|CAPTION)$/.test(o.nodeName)},Pk=function(o,s){return zc(o)&&u1(o,s,Wh)===!1},Cw=function(o,s,d){for(var m=new hi(s,o.getParent(s.parentNode,o.isBlock)||o.getRoot());s=m[d?"prev":"next"]();)if(qi(s))return!0},Wa=function(o,s){return o.previousSibling&&o.previousSibling.nodeName===s},Fk=function(o,s){for(;s&&s!==o;){if(fs(s))return!0;s=s.parentNode}return!1},X6=function(o,s,d,m,E){var D,J=o.getRoot(),ue,me=o.schema.getNonEmptyElements(),Le=o.getParent(E.parentNode,o.isBlock)||J;if(m&&qi(E)&&s&&o.isEmpty(Le))return re.some(Kn(E.parentNode,o.nodeIndex(E)));for(var tt=new hi(E,Le);ue=tt[m?"prev":"next"]();){if(o.getContentEditableParent(ue)==="false"||Pk(ue,J))return re.none();if(Jr(ue)&&ue.nodeValue.length>0)return Pf(ue,J,"A")===!1?re.some(Kn(ue,m?ue.nodeValue.length:0)):re.none();if(o.isBlock(ue)||me[ue.nodeName.toLowerCase()])return re.none();D=ue}return d&&D?re.some(Kn(D,0)):re.none()},Z6=function(o,s,d,m){var E,D,J=o.getRoot(),ue,me,Le=!1;E=m[(d?"start":"end")+"Container"],D=m[(d?"start":"end")+"Offset"];var tt=Ko(E)&&D===E.childNodes.length,nt=o.schema.getNonEmptyElements();if(me=d,zc(E))return re.none();if(Ko(E)&&D>E.childNodes.length-1&&(me=!1),Ah(E)&&(E=J,D=0),E===J){if(me&&(ue=E.childNodes[D>0?D-1:0],ue&&(zc(ue)||nt[ue.nodeName]||Qh(ue))))return re.none();if(E.hasChildNodes()){if(D=Math.min(!me&&D>0?D-1:D,E.childNodes.length-1),E=E.childNodes[D],D=Jr(E)&&tt?E.data.length:0,!s&&E===J.lastChild&&Qh(E)||Fk(J,E)||zc(E))return re.none();if(E.hasChildNodes()&&Qh(E)===!1){ue=E;var it=new hi(E,J);
73do{if(fs(ue)||zc(ue)){Le=!1;break}if(Jr(ue)&&ue.nodeValue.length>0){D=me?0:ue.nodeValue.length,E=ue,Le=!0;break}if(nt[ue.nodeName.toLowerCase()]&&!Bk(ue)){D=o.nodeIndex(ue),E=ue.parentNode,me||D++,Le=!0;break}}while(ue=me?it.next():it.prev())}}}return s&&(Jr(E)&&D===0&&X6(o,tt,s,!0,E).each(function(kt){E=kt.container(),D=kt.offset(),Le=!0}),Ko(E)&&(ue=E.childNodes[D],ue||(ue=E.childNodes[D-1]),ue&&qi(ue)&&!Wa(ue,"A")&&!Cw(o,ue,!1)&&!Cw(o,ue,!0)&&X6(o,tt,s,!0,ue).each(function(kt){E=kt.container(),D=kt.offset(),Le=!0}))),me&&!s&&Jr(E)&&D===E.nodeValue.length&&X6(o,tt,s,!1,E).each(function(kt){E=kt.container(),D=kt.offset(),Le=!0}),Le?re.some(Kn(E,D)):re.none()},Q6=function(o,s){var d=s.collapsed,m=s.cloneRange(),E=Kn.fromRangeStart(s);return Z6(o,d,!0,m).each(function(D){(!d||!Kn.isAbove(E,D))&&m.setStart(D.container(),D.offset())}),d||Z6(o,d,!1,m).each(function(D){m.setEnd(D.container(),D.offset())}),d&&m.collapse(!0),ww(s,m)?re.none():re.some(m)},r4=function(o,s){return o.splitText(s)},J0=function(o){var s=o.startContainer,d=o.startOffset,m=o.endContainer,E=o.endOffset;return s===m&&Jr(s)?d>0&&d<s.nodeValue.length&&(m=r4(s,d),s=m.previousSibling,E>d?(E=E-d,s=m=r4(m,E).previousSibling,E=m.nodeValue.length,d=0):E=0):(Jr(s)&&d>0&&d<s.nodeValue.length&&(s=r4(s,d),d=0),Jr(m)&&E>0&&E<m.nodeValue.length&&(m=r4(m,E).previousSibling,E=m.nodeValue.length)),{startContainer:s,startOffset:d,endContainer:m,endOffset:E}},o4=function(o){var s=function(E,D){return t4(o,E,D)},d=J0,m=function(E){return Q6(o,E).fold(U,function(D){return E.setStart(D.startContainer,D.startOffset),E.setEnd(D.endContainer,D.endOffset),!0})};return{walk:s,split:d,normalize:m}};o4.compareRanges=ww,o4.getCaretRangeFromPoint=_w,o4.getSelectedNode=ng,o4.getNode=Zs;var $k=function(o,s){var d=function(ue,me){if(!Q(me)&&!me.match(/^[0-9]+$/))throw new Error(o+".set accepts only positive integer values. Value was "+me);var Le=ue.dom;Xi(Le)&&(Le.style[o]=me+"px")},m=function(ue){var me=s(ue);if(me<=0||me===null){var Le=Sa(ue,o);return parseFloat(Le)||0}return me},E=m,D=function(ue,me){return Ye(me,function(Le,tt){var nt=Sa(ue,tt),it=nt===void 0?0:parseInt(nt,10);return isNaN(it)?Le:Le+it},0)},J=function(ue,me,Le){var tt=D(ue,Le),nt=me>tt?me-tt:0;return nt};return{set:d,get:m,getOuter:E,aggregate:D,max:J}},qx=$k("height",function(o){var s=o.dom;return yf(o)?s.getBoundingClientRect().height:s.offsetHeight}),xw=function(o){return qx.get(o)},am=function(o,s){var d=o.view(s);return d.fold(K([]),function(m){var E=o.owner(m),D=am(o,E);return[m].concat(D)})},J6=function(o,s){var d=s.owner(o);return am(s,d)},Xx=function(o){var s,d=o.dom===document?re.none():re.from((s=o.dom.defaultView)===null||s===void 0?void 0:s.frameElement);return d.map(xe.fromDom)},zk=function(o){return Jo(o)},Hk=Object.freeze({__proto__:null,view:Xx,owner:zk}),Vk=function(o){var s=xe.fromDom(document),d=Yd(s),m=J6(o,Hk),E=bc(o),D=We(m,function(J,ue){var me=bc(ue);return{left:J.left+me.left,top:J.top+me.top}},{left:0,top:0});return Xc(D.left+E.left+d.left,D.top+E.top+d.top)},yg=function(o){return si(o)==="textarea"},Ew=function(o,s){var d=o.fire("ScrollIntoView",s);return d.isDefaultPrevented()},Ho=function(o,s){o.fire("AfterScrollIntoView",s)},Zx=function(o,s){var d=tl(o);if(d.length===0||yg(o))return{element:o,offset:s};if(s<d.length&&!yg(d[s]))return{element:d[s],offset:0};var m=d[d.length-1];return yg(m)?{element:o,offset:s}:si(m)==="img"?{element:m,offset:1}:$s(m)?{element:m,offset:vw(m).length}:{element:m,offset:tl(m).length}},Qx=function(o,s){var d=xs(o),m=xw(o);return{element:o,bottom:d.top+m,height:m,pos:d,cleanup:s}},Uk=function(o,s){var d=Zx(o,s),m=xe.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+fn+"</span>");return Os(d.element,m),Qx(m,function(){return Gs(m)})},a4=function(o){return Qx(xe.fromDom(o),$)},sf=function(o,s,d,m){Sw(o,function(E,D){return jk(o,s,d,m)},d)},i4=function(o,s,d,m,E){var D={elm:m.element.dom,alignToTop:E};if(!Ew(o,D)){var J=Yd(s).top;d(s,J,m,E),Ho(o,D)}},jk=function(o,s,d,m){var E=xe.fromDom(o.getBody()),D=xe.fromDom(o.getDoc());e5(E);var J=Uk(xe.fromDom(d.startContainer),d.startOffset);i4(o,D,s,J,m),J.cleanup()},Jx=function(o,s,d,m){var E=xe.fromDom(o.getDoc());i4(o,E,d,a4(s),m)},Sw=function(o,s,d){var m=d.startContainer,E=d.startOffset,D=d.endContainer,J=d.endOffset;s(xe.fromDom(m),xe.fromDom(D));var ue=o.dom.createRng();ue.setStart(m,E),ue.setEnd(D,J),o.selection.setRng(d)},Tw=function(o,s,d,m){var E=o.pos;if(d)du(E.left,E.top,m);else{var D=E.top-s+o.height;du(E.left,D,m)}},eE=function(o,s,d,m,E){var D=d+s,J=m.pos.top,ue=m.bottom,me=ue-J>=d;if(J<s)Tw(m,d,E!==!1,o);else if(J>D){var Le=me?E!==!1:E===!0;Tw(m,d,Le,o)}else ue>D&&!me&&Tw(m,d,E===!0,o)},Aw=function(o,s,d,m){var E=o.dom.defaultView.innerHeight;eE(o,s,E,d,m)},kw=function(o,s,d,m){var E=o.dom.defaultView.innerHeight;eE(o,s,E,d,m);var D=Vk(d.element),J=Xd(window);D.top<J.y?Nu(d.element,m!==!1):D.top>J.bottom&&Nu(d.element,m===!0)},ep=function(o,s,d){return sf(o,Aw,s,d)},Wk=function(o,s,d){return Jx(o,s,Aw,d)},Gk=function(o,s,d){return sf(o,kw,s,d)},tE=function(o,s,d){return Jx(o,s,kw,d)},Kk=function(o,s,d){var m=o.inline?Wk:tE;m(o,s,d)},s4=function(o,s,d){var m=o.inline?ep:Gk;m(o,s,d)},ki=function(){return xe.fromDom(document)},e_=function(o){return o.dom.focus()},tp=function(o){var s=yc(o).dom;return o.dom===s.activeElement},bv=function(o){return o===void 0&&(o=ki()),re.from(o.dom.activeElement).map(xe.fromDom)},im=function(o){return bv(yc(o)).filter(function(s){return o.dom.contains(s.dom)})},vd=function(o,s,d,m){return{start:o,soffset:s,finish:d,foffset:m}},t_={create:vd},bg=Eo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),dy=function(o,s,d,m){return o.fold(s,d,m)},sm=function(o){return o.fold(fe,fe,fe)},Yk=bg.before,nE=bg.on,qk=bg.after,Xk={before:Yk,on:nE,after:qk,c
73ata:dy,getStart:sm},za=Eo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),_v=function(o){return za.exact(o.start,o.soffset,o.finish,o.foffset)},vy=function(o){return o.match({domRange:function(s){return xe.fromDom(s.startContainer)},relative:function(s,d){return Xk.getStart(s)},exact:function(s,d,m,E){return s}})},rE=za.domRange,l4=za.relative,ni=za.exact,oE=function(o){var s=vy(o);return is(s)},aE=t_.create,u4={domRange:rE,relative:l4,exact:ni,exactFromRange:_v,getWin:oE,range:aE},iE=mo().browser,c4=function(o,s){var d=$s(s)?vw(s).length:tl(s).length+1;return o>d?d:o<0?0:o},_g=function(o){return u4.range(o.start,c4(o.soffset,o.start),o.finish,c4(o.foffset,o.finish))},Ow=function(o,s){return!C1(s.dom)&&(di(o,s)||jo(o,s))},Mw=function(o){return function(s){return Ow(o,s.start)&&Ow(o,s.finish)}},sE=function(o){return o.inline===!0||iE.isIE()},lE=function(o){return u4.range(xe.fromDom(o.startContainer),o.startOffset,xe.fromDom(o.endContainer),o.endOffset)},lm=function(o){var s=o.getSelection(),d=!s||s.rangeCount===0?re.none():re.from(s.getRangeAt(0));return d.map(lE)},wg=function(o){var s=is(o);return lm(s.dom).filter(Mw(o))},Nw=function(o,s){return re.from(s).filter(Mw(o)).map(_g)},uE=function(o){var s=document.createRange();try{return s.setStart(o.start.dom,o.soffset),s.setEnd(o.finish.dom,o.foffset),re.some(s)}catch{return re.none()}},n_=function(o){var s=sE(o)?wg(xe.fromDom(o.getBody())):re.none();o.bookmark=s.isSome()?s:o.bookmark},Zk=function(o,s){var d=xe.fromDom(o.getBody()),m=sE(o)?re.from(s):re.none(),E=m.map(lE).filter(Mw(d));o.bookmark=E.isSome()?E:o.bookmark},hy=function(o){var s=o.bookmark?o.bookmark:re.none();return s.bind(function(d){return Nw(xe.fromDom(o.getBody()),d)}).bind(uE)},Dw=function(o){hy(o).each(function(s){return o.selection.setRng(s)})},Iw=function(o){var s=o.className.toString();return s.indexOf("tox-")!==-1||s.indexOf("mce-")!==-1},cE={isEditorUIElement:Iw},Rw=function(o){return o.type==="nodechange"&&o.selectionChange},r_=function(o,s){var d=function(){s.throttle()};Ds.DOM.bind(document,"mouseup",d),o.on("remove",function(){Ds.DOM.unbind(document,"mouseup",d)})},o_=function(o){o.on("focusout",function(){n_(o)})},Lw=function(o,s){o.on("mouseup touchend",function(d){s.throttle()})},Bw=function(o,s){var d=mo().browser;d.isIE()?o_(o):Lw(o,s),o.on("keyup NodeChange",function(m){Rw(m)||n_(o)})},fE=function(o){var s=n6(function(){n_(o)},0);o.on("init",function(){o.inline&&r_(o,s),Bw(o,s)}),o.on("remove",function(){s.cancel()})},Cg,py=Ds.DOM,dE=function(o){return cE.isEditorUIElement(o)},vE=function(o){var s=o.classList;return s!==void 0?s.contains("tox-edit-area")||s.contains("tox-edit-area__iframe")||s.contains("mce-content-body"):!1},a_=function(o,s){var d=L5(o),m=py.getParent(s,function(E){return dE(E)||(d?o.dom.is(E,d):!1)});return m!==null},hE=function(o){try{var s=yc(xe.fromDom(o.getElement()));return bv(s).fold(function(){return document.body},function(d){return d.dom})}catch{return document.body}},pE=function(o,s){var d=s.editor;fE(d),d.on("focusin",function(){var m=o.focusedEditor;m!==d&&(m&&m.fire("blur",{focusedEditor:d}),o.setActive(d),o.focusedEditor=d,d.fire("focus",{blurredEditor:m}),d.focus(!0))}),d.on("focusout",function(){cl.setEditorTimeout(d,function(){var m=o.focusedEditor;!a_(d,hE(d))&&m===d&&(d.fire("blur",{focusedEditor:null}),o.focusedEditor=null)})}),Cg||(Cg=function(m){var E=o.activeEditor;E&&Ou(m).each(function(D){D.ownerDocument===document&&D!==document.body&&!a_(E,D)&&o.focusedEditor===E&&(E.fire("blur",{focusedEditor:null}),o.focusedEditor=null)})},py.bind(document,"focusin",Cg))},Pw=function(o,s){o.focusedEditor===s.editor&&(o.focusedEditor=null),o.activeEditor||(py.unbind(document,"focusin",Cg),Cg=null)},mE=function(o){o.on("AddEditor",ne(pE,o)),o.on("RemoveEditor",ne(Pw,o))},gE=function(o,s){return o.dom.getParent(s,function(d){return o.dom.getContentEditable(d)==="true"})},yE=function(o){return o.collapsed?re.from(Zs(o.startContainer,o.startOffset)).map(xe.fromDom):re.none()},Qk=function(o,s){return yE(s).bind(function(d){return pi(d)?re.some(d):di(o,d)===!1?re.some(o):re.none()})},bE=function(o,s){Qk(xe.fromDom(o.getBody()),s).bind(function(d){return af(d.dom)}).fold(function(){o.selection.normalize()},function(d){return o.selection.setRng(d.toRange())})}
73,Fw=function(o){if(o.setActive)try{o.setActive()}catch{o.focus()}else o.focus()},my=function(o){return tp(o)||im(o).isSome()},Jk=function(o){return o.iframeElement&&tp(xe.fromDom(o.iframeElement))},_E=function(o){var s=o.getBody();return s&&my(xe.fromDom(s))},wE=function(o){var s=yc(xe.fromDom(o.getElement()));return bv(s).filter(function(d){return!vE(d.dom)&&a_(o,d.dom)}).isSome()},B1=function(o){return o.inline?_E(o):Jk(o)},CE=function(o){return B1(o)||wE(o)},xE=function(o){var s=o.selection,d=o.getBody(),m=s.getRng();o.quirks.refreshContentEditable(),o.bookmark!==void 0&&B1(o)===!1&&hy(o).each(function(D){o.selection.setRng(D),m=D});var E=gE(o,s.getNode());if(o.$.contains(d,E)){Fw(E),bE(o,m),i_(o);return}o.inline||(Io.opera||Fw(d),o.getWin().focus()),(Io.gecko||o.inline)&&(Fw(d),bE(o,m)),i_(o)},i_=function(o){return o.editorManager.setActive(o)},s_=function(o,s){o.removed||(s?i_(o):xE(o))},$w=function(o,s,d,m,E){var D=d?s.startContainer:s.endContainer,J=d?s.startOffset:s.endOffset;return re.from(D).map(xe.fromDom).map(function(ue){return!m||!s.collapsed?Gd(ue,E(ue,J)).getOr(ue):ue}).bind(function(ue){return ps(ue)?re.some(ue):ks(ue).filter(ps)}).map(function(ue){return ue.dom}).getOr(o)},xg=function(o,s,d){return $w(o,s,!0,d,function(m,E){return Math.min(v2(m),E)})},gy=function(o,s,d){return $w(o,s,!1,d,function(m,E){return E>0?E-1:E})},EE=function(o,s){for(var d=o;o&&Jr(o)&&o.length===0;)o=s?o.nextSibling:o.previousSibling;return o||d},SE=function(o,s){var d,m,E;if(!s)return o;m=s.startContainer,E=s.endContainer;var D=s.startOffset,J=s.endOffset;return d=s.commonAncestorContainer,!s.collapsed&&(m===E&&J-D<2&&m.hasChildNodes()&&(d=m.childNodes[D]),m.nodeType===3&&E.nodeType===3&&(m.length===D?m=EE(m.nextSibling,!0):m=m.parentNode,J===0?E=EE(E.previousSibling,!1):E=E.parentNode,m&&m===E))?m:d&&d.nodeType===3?d.parentNode:d},l_=function(o,s,d,m){var E,D=[],J=o.getRoot();if(d=o.getParent(d||xg(J,s,s.collapsed),o.isBlock),m=o.getParent(m||gy(J,s,s.collapsed),o.isBlock),d&&d!==J&&D.push(d),d&&m&&d!==m){E=d;for(var ue=new hi(d,J);(E=ue.next())&&E!==m;)o.isBlock(E)&&D.push(E)}return m&&d!==m&&m!==J&&D.push(m),D},eO=function(o,s,d){return re.from(s).map(function(m){var E=o.nodeIndex(m),D=o.createRng();return D.setStart(m.parentNode,E),D.setEnd(m.parentNode,E+1),d&&(nm(o,D,m,!0),nm(o,D,m,!1)),D})},u_=function(o,s){return rt(s,function(d){var m=o.fire("GetSelectionRange",{range:d});return m.range!==d?m.range:d})},f4={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},c_=function(o,s,d){var m=d?"lastChild":"firstChild",E=d?"prev":"next";if(o[m])return o[m];if(o!==s){var D=o[E];if(D)return D;for(var J=o.parent;J&&J!==s;J=J.parent)if(D=J[E],D)return D}},TE=function(o){if(!Od(o.value))return!1;var s=o.parent;return!(s&&(s.name!=="span"||s.attr("style"))&&/^[ ]+$/.test(o.value))},f_=function(o){var s=o.name==="a"&&!o.attr("href")&&o.attr("id");return o.attr("name")||o.attr("id")&&!o.firstChild||o.attr("data-mce-bookmark")||s},P1=function(){function o(s,d){this.name=s,this.type=d,d===1&&(this.attributes=[],this.attributes.map={})}return o.create=function(s,d){var m=new o(s,f4[s]||1);return d&&Vt(d,function(E,D){m.attr(D,E)}),m},o.prototype.replace=function(s){var d=this;return s.parent&&s.remove(),d.insert(s,d),d.remove(),d},o.prototype.attr=function(s,d){var m=this,E;if(typeof s!="string")return s!=null&&Vt(s,function(J,ue){m.attr(ue,J)}),m;if(E=m.attributes){if(d!==void 0){if(d===null){if(s in E.map){delete E.map[s];for(var D=E.length;D--;)if(E[D].name===s)return E.splice(D,1),m}return m}if(s in E.map){for(var D=E.length;D--;)if(E[D].name===s){E[D].value=d;break}}else E.push({name:s,value:d});return E.map[s]=d,m}return E.map[s]}},o.prototype.clone=function(){var s=this,d=new o(s.name,s.type),m;if(m=s.attributes){var E=[];E.map={};for(var D=0,J=m.length;D<J;D++){var ue=m[D];ue.name!=="id"&&(E[E.length]={name:ue.name,value:ue.value},E.map[ue.name]=ue.value)}d.attributes=E}return d.value=s.value,d.shortEnded=s.shortEnded,d},o.prototype.wrap=function(s){var d=this;return d.parent.insert(s,d),s.append(d),d},o.prototype.unwrap=function(){for(var s=this,d=s.firstChild;d;){var m=d.next;s.insert(d,s,!0),d=m}s.remove()},o.prototype.remove=function(){var s=this,d=s.parent,m=s.next,E=s.prev;return d&&(d.firstChild===s?(d.firstChild=m,m&&(m.prev=null)):E.next=m,d.lastChild===s?(d.lastChild=E,E&&(E.next=null)):m.prev=E,s.parent=s.next=s.prev=null),s},o.prototype.append=function(s){var d=this;s.parent&&s.remove();var m=d.lastChild;return m?(m.next=s,s.prev=m,d.lastChild=s):d.lastChild=d.firstChild=s,s.parent=d,s},o.prototype.insert=function(s,d,m){s.parent&&s.remove();var E=d.parent||this;return m?(d===E.firstChild?E.firstChild=s:d.prev.next=s,s.prev=d.prev,s.next=d,d.prev=s):(d===E.lastChild?E.lastChild=s:d.next.prev=s,s.next=d.next,s.prev=d,d.next=s),s.parent=E,s},o.prototype.getAll=function(s){for(var d=this,m=[],E=d.firstChild;E;E=c_(E,d))E.name===s&&m.push(E);return m},o.prototype.children=function(){for(var s=this,d=[],m=s.firstChild;m;m=m.next)d.push(m);return d},o.prototype.empty=function(){var s=this;if(s.firstChild){for(var d=[],m=s.firstChild;m;m=c_(m,s))d.push(m);for(var E=d.length;E--;){var m=d[E];m.parent=m.firstChild=m.lastChild=m.next=m.prev=null}}return s.firstChild=s.lastChild=null,s},o.prototype.isEmpty=function(s,d,m){d===void 0&&(d={});var E=this,D=E.firstChild;if(f_(E))return!1;if(D)do{if(D.type===1){if(D.attr("data-mce-bogus"))continue;if(s[D.name]||f_(D))return!1}if(D.type===8||D.type===3&&!TE(D)||D.type===3&&D.parent&&d[D.parent.name]&&Od(D.value)||m&&m(D))return!1}while(D=c_(D,E));return!0},o.prototype.walk=function(s){return c_(this,null,s)},o}(),tO=Gn.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),zw=function(o){return B(o.nodeValue)&&Qn(o.nodeValue,fn)},Hw=function(o){return(o.length===0?"":rt(o,function(s){return"["+s+"]"}).join(",")+",")+'[data-mce-bogus="all"]'},d_=function(o,s){return s.querySelectorAll(Hw(o))},yy=function(o,s,d){return document.createTreeWalker(o,s,d,!1)},v_=function(o){return yy(o,NodeFilter.SHOW_COMMENT,function(s){return zw(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP})},Vw=function(o){return yy(o,NodeFilter.SHOW_TEXT,function(s){if(zw(s)){var d=s.parentNode;return d&&io(tO,d.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP})},AE=function(o){return v_(o).nextNode()!==null},kE=function(o){return Vw(o).nextNode()!==null},h_=function(o,s){return s.querySelector(Hw(o))!==null},nO=function(o,s){ct(d_(o,s),function(d){var m=xe.fromDom(d);ht(m,"data-mce-bogus")==="all"?Gs(m):ct(o,function(E){wn(m,E)&&qn(m,E)})})},OE=function(o){for(var s=o.nextNode();s!==null;)s.nodeValue=null,s=o.nextNode()},rO=te(OE,v_),oO=te(OE,Vw),Eg=function(o,s){var d=[{condition:ne(h_,s),action:ne(nO,s)},{condition:AE,action:rO},{condition:kE,action:oO}
73],m=o,E=!1;return ct(d,function(D){var J=D.condition,ue=D.action;J(m)&&(E||(m=o.cloneNode(!0),E=!0),ue(m))}),m},aO=function(o,s){var d=xc(o),m=new RegExp("^(<"+d+"[^>]*>( | |\\s|\xA0|<br \\/>|)<\\/"+d+`>[\r 74]*|<br \\/>[\r 75]*)$`);return s.replace(m,"")},iO=function(o,s){return fo(fo({},o),{format:s,get:!0,getInner:!0})},sO=function(o,s,d,m){var E=iO(s,d),D=s.no_events?E:o.fire("BeforeGetContent",E),J;return D.format==="raw"?J=Gn.trim($c(Eg(m,o.serializer.getTempAttrs()).innerHTML)):D.format==="text"?J=o.dom.isEmpty(m)?"":$c(m.innerText||m.textContent):D.format==="tree"?J=o.serializer.serialize(m,D):J=aO(o,o.serializer.serialize(m,D)),!De(["text","tree"],D.format)&&!Vl(xe.fromDom(m))?D.content=Gn.trim(J):D.content=J,D.no_events?D.content:o.fire("GetContent",D).content},Uw=function(o,s,d){return re.from(o.getBody()).fold(K(s.format==="tree"?new P1("body",11):""),function(m){return sO(o,s,d,m)})},jw=Gn.each,ME=function(o){var s=function(d,m){if(d.nodeName!==m.nodeName)return!1;var E=function(J){var ue={};return jw(o.getAttribs(J),function(me){var Le=me.nodeName.toLowerCase();Le.indexOf("_")!==0&&Le!=="style"&&Le.indexOf("data-")!==0&&(ue[Le]=o.getAttrib(J,Le))}),ue},D=function(J,ue){var me,Le;for(Le in J)if(io(J,Le)){if(me=ue[Le],typeof me=="undefined"||J[Le]!==me)return!1;delete ue[Le]}for(Le in ue)if(io(ue,Le))return!1;return!0};return!D(E(d),E(m))||!D(o.parseStyle(o.getAttrib(d,"style")),o.parseStyle(o.getAttrib(m,"style")))?!1:!dd(d)&&!dd(m)};return{compare:s}},d4=Gn.makeMap,Ww=function(o){var s=[];o=o||{};var d=o.indent,m=d4(o.indent_before||""),E=d4(o.indent_after||""),D=ad.getEncodeFunc(o.entity_encoding||"raw",o.entities),J=o.element_format==="html";return{start:function(ue,me,Le){var tt,nt,it,kt;if(d&&m[ue]&&s.length>0&&(kt=s[s.length-1],kt.length>0&&kt!==` 76`&&s.push(` 77`)),s.push("<",ue),me)for(tt=0,nt=me.length;tt<nt;tt++)it=me[tt],s.push(" ",it.name,'="',D(it.value,!0),'"');!Le||J?s[s.length]=">":s[s.length]=" />",Le&&d&&E[ue]&&s.length>0&&(kt=s[s.length-1],kt.length>0&&kt!==` 78`&&s.push(` 79`))},end:function(ue){var me;s.push("</",ue,">"),d&&E[ue]&&s.length>0&&(me=s[s.length-1],me.length>0&&me!==` 80`&&s.push(` 81`))},text:function(ue,me){ue.length>0&&(s[s.length]=me?ue:D(ue))},cdata:function(ue){s.push("<![CDATA[",ue,"]]>")},comment:function(ue){s.push("<!--",ue,"-->")},pi:function(ue,me){me?s.push("<?",ue," ",D(me),"?>"):s.push("<?",ue,"?>"),d&&s.push(` 82`)},doctype:function(ue){s.push("<!DOCTYPE",ue,">",d?` 83`:"")},reset:function(){s.length=0},getContent:function(){return s.join("").replace(/\n$/,"")}}},Sg=function(o,s){s===void 0&&(s=Tf());var d=Ww(o);o=o||{},o.validate="validate"in o?o.validate:!0;var m=function(E){var D=o.validate,J={3:function(me){d.text(me.value,me.raw)},8:function(me){d.comment(me.value)},7:function(me){d.pi(me.name,me.value)},10:function(me){d.doctype(me.value)},4:function(me){d.cdata(me.value)},11:function(me){if(me=me.firstChild)do ue(me);while(me=me.next)}};d.reset();var ue=function(me){var Le=J[me.type];if(Le)Le(me);else{var tt=me.name,nt=me.shortEnded,it=me.attributes;if(D&&it&&it.length>1){var kt=[];kt.map={};var Nt=s.getElementRule(me.name);if(Nt){for(var Lt=0,$t=Nt.attributesOrder.length;Lt<$t;Lt++){var Jt=Nt.attributesOrder[Lt];if(Jt in it.map){var qt=it.map[Jt];kt.map[Jt]=qt,kt.push({name:Jt,value:qt})}}for(var Lt=0,$t=it.length;
83Lt<$t;Lt++){var Jt=it[Lt].name;if(!(Jt in kt.map)){var qt=it.map[Jt];kt.map[Jt]=qt,kt.push({name:Jt,value:qt})}}it=kt}}if(d.start(me.name,it,nt),!nt){if(me=me.firstChild)do ue(me);while(me=me.next);d.end(tt)}}};return E.type===1&&!o.inner?ue(E):J[11](E),d.getContent()};return{serialize:m}},NE=new Set;(function(){var o=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];ct(o,function(s){NE.add(s)})})();var v4=["font","text-decoration","text-emphasis"],by=function(o,s){return en(o.parseStyle(o.getAttrib(s,"style")))},DE=function(o){return NE.has(o)},lO=function(o,s){return Ft(by(o,s),function(d){return!DE(d)})},uO=function(o){return Fe(o,function(s){return $e(v4,function(d){return Ze(s,d)})})},IE=function(o,s,d){var m=by(o,s),E=by(o,d),D=function(J){var ue=o.getStyle(s,J),me=o.getStyle(d,J);return Dn(ue)&&Dn(me)&&ue!==me};return $e(m,function(J){var ue=function(Le){return $e(Le,function(tt){return tt===J})};if(!ue(E)&&ue(v4)){var me=uO(E);return $e(me,D)}else return D(J)})},h4=function(o,s,d){return re.from(d.container()).filter(Jr).exists(function(m){var E=o?0:-1;return s(m.data.charAt(d.offset()+E))})},p4=ne(h4,!0,em),m4=ne(h4,!1,em),RE=function(o){var s=o.container();return Jr(s)&&(s.data.length===0||_c(s.data)&&om.isBookmarkNode(s.parentNode))},hd=function(o,s){return function(d){return re.from(M6(o?0:-1,d)).filter(s).isSome()}},LE=function(o){return Np(o)&&Sa(xe.fromDom(o),"display")==="block"},ih=function(o){return fs(o)&&!kl(o)},cO=hd(!0,LE),BE=hd(!1,LE),_y=hd(!0,Du),wy=hd(!1,Du),PE=hd(!0,nl),FE=hd(!1,nl),um=hd(!0,ih),cm=hd(!1,ih),Gw=function(o){for(var s=[],d=o.dom;d;)s.push(xe.fromDom(d)),d=d.lastChild;return s},fO=function(o){var s=Cc(o,"br"),d=Fe(Gw(o).slice(-1),jv);s.length===d.length&&ct(d,Gs)},Tg=function(o){zv(o),yl(o,xe.fromHtml('<br data-mce-bogus="1">'))},dO=function(o){mf(o).each(function(s){Pv(s).each(function(d){xf(o)&&jv(s)&&xf(d)&&Gs(s)})})},$E=function(o){return o.slice(0,-1)},g4=function(o,s,d){return di(s,o)?$E(zl(o,function(m){return d(m)||jo(m,s)})):[]},zE=function(o,s){return g4(o,s,U)},No=function(o,s){return[o].concat(zE(o,s))},y4=function(o,s,d){return F6(o,s,d,RE)},b4=function(o,s){return mt(No(xe.fromDom(s.container()),o),xf)},Kw=function(o,s,d){return y4(o,s.dom,d).forall(function(m){return b4(s,d).fold(function(){return rh(m,d,s.dom)===!1},function(E){return rh(m,d,s.dom)===!1&&di(E,xe.fromDom(m.container()))})})},HE=function(o,s,d){return b4(s,d).fold(function(){return y4(o,s.dom,d).forall(function(m){return rh(m,d,s.dom)===!1})},function(m){return y4(o,m.dom,d).isNone()})},p_=ne(HE,!1),_4=ne(HE,!0),Yw=ne(Kw,!1),VE=ne(Kw,!0),vO=function(o){return D6(o).exists(jv)},ra=function(o,s,d){var m=Fe(No(xe.fromDom(d.container()),s),xf),E=Wt(m).getOr(s);return fd(o,E.dom,d).filter(vO)},m_=function(o,s){return D6(s).exists(jv)||ra(!0,o,s).isSome()},ba=function(o,s){return pk(s).exists(jv)||ra(!1,o,s).isSome()},UE=ne(ra,!1),jE=ne(ra,!0),qw=function(o){return Kn.isTextPosition(o)&&!o.isAtStart()&&!o.isAtEnd()},Ag=function(o,s){var d=Fe(No(xe.fromDom(s.container()),o),xf);return Wt(d).getOr(o)},g_=function(o,s){return qw(s)?m4(s):m4(s)||ah(Ag(o,s).dom,s).exists(m4)},w4=function(o,s){return qw(s)?p4(s):p4(s)||gv(Ag(o,s).dom,s).exists(p4)},y_=function(o){return De(["pre","pre-wrap"],o)},Xw=function(o){return D6(o).bind(function(s){return k0(s,ps)}).exists(function(s){return y_(Sa(s,"white-space"))})},oa=function(o,s){return ah(o.dom,s).isNone()},hO=function(o,s){return gv(o.dom,s).isNone()},WE=function(o,s){return oa(o,s)||hO(o,s)||p_(o,s)||_4(o,s)||ba(o,s)||m_(o,s)},b_=function(o,s){return Xw(s)?!1:WE(o,s)||g_(o,s)||w4(o,s)},Jh=function(o,s){return Xw(s)?!1:p_(o,s)||Yw(o,s)||ba(o,s)||g_(o,s)},GE=function(o){var s=o.container(),d=o.offset();return Jr(s)&&d<s.data.length?Kn(s,d+1):o},C4=function(o,s){return Xw(s)?!1:_4(o,s)||VE(o,s)||m_(o,s)||w4(o,s)},__=function(o,s){return Jh(o,s)||C4(o,GE(s))},KE=function(o,s){return vg(o.charAt(s))},YE=function(o){var s=o.container();return Jr(s)&&Qn(s.data,Zc)},pO=function(o){var s=o.split("");return rt(s,function(d,m){return vg(d)&&m>
830&&m<s.length-1&&$6(s[m-1])&&$6(s[m+1])?" ":d}).join("")},mO=function(o,s){var d=s.data,m=Kn(s,0);return KE(d,0)&&!__(o,m)?(s.data=" "+d.slice(1),!0):!1},gO=function(o){var s=o.data,d=pO(s);return d!==s?(o.data=d,!0):!1},yO=function(o,s){var d=s.data,m=Kn(s,d.length-1);return KE(d,d.length-1)&&!__(o,m)?(s.data=d.slice(0,-1)+" ",!0):!1},bO=function(o,s){return re.some(s).filter(YE).bind(function(d){var m=d.container(),E=mO(o,m)||gO(m)||yO(o,m);return E?re.some(d):re.none()})},qE=function(o){var s=xe.fromDom(o.getBody());o.selection.isCollapsed()&&bO(s,Kn.fromRangeStart(o.selection.getRng())).each(function(d){o.selection.setRng(d.toRange())})},_O=function(o,s,d){var m=Ye(o,function(E,D){return em(D)||vg(D)?E.previousCharIsSpace||E.str===""&&s||E.str.length===o.length-1&&d?{previousCharIsSpace:!1,str:E.str+Zc}:{previousCharIsSpace:!0,str:E.str+" "}:{previousCharIsSpace:!1,str:E.str+D}},{previousCharIsSpace:!1,str:""});return m.str},Zw=function(o,s,d){if(d!==0){var m=xe.fromDom(o),E=kh(m,xf).getOr(m),D=o.data.slice(s,s+d),J=s+d>=o.data.length&&C4(E,Kn(o,o.data.length)),ue=s===0&&Jh(E,Kn(o,0));o.replaceData(s,d,_O(D,ue,J))}},Cy=function(o,s){var d=o.data.slice(s),m=d.length-Xt(d).length;Zw(o,s,m)},Qa=function(o,s){var d=o.data.slice(0,s),m=d.length-On(d).length;Zw(o,s-m,m)},w_=function(o,s,d,m){m===void 0&&(m=!0);var E=On(o.data).length,D=m?o:s,J=m?s:o;return m?D.appendData(J.data):D.insertData(0,J.data),Gs(xe.fromDom(J)),d&&Cy(D,E),D},C_=function(o,s){var d=o.container(),m=o.offset();return Kn.isTextPosition(o)===!1&&d===s.parentNode&&m>Kn.before(s).offset()},XE=function(o,s){return C_(s,o)?Kn(s.container(),s.offset()-1):s},ZE=function(o){return Jr(o)?Kn(o,0):Kn.before(o)},QE=function(o){return Jr(o)?Kn(o,o.data.length):Kn.after(o)},Qw=function(o){return sv(o.previousSibling)?re.some(QE(o.previousSibling)):o.previousSibling?I1(o.previousSibling):re.none()},Jw=function(o){return sv(o.nextSibling)?re.some(ZE(o.nextSibling)):o.nextSibling?af(o.nextSibling):re.none()},_=function(o,s){var d=Kn.before(s.previousSibling?s.previousSibling:s.parentNode);return ah(o,d).fold(function(){return gv(o,Kn.after(s))},re.some)},O=function(o,s){return gv(o,Kn.after(s)).fold(function(){return ah(o,Kn.before(s))},re.some)},H=function(o,s){return Qw(s).orThunk(function(){return Jw(s)}).orThunk(function(){return _(o,s)})},oe=function(o,s){return Jw(s).orThunk(function(){return Qw(s)}).orThunk(function(){return O(o,s)})},ve=function(o,s,d){return o?oe(s,d):H(s,d)},Se=function(o,s,d){return ve(o,s,d).map(ne(XE,d))},Pe=function(o,s,d){d.fold(function(){o.focus()},function(m){o.selection.setRng(m.toRange(),s)})},Xe=function(o){return function(s){return s.dom===o}},wt=function(o,s){return s&&io(o.schema.getBlockElements(),si(s))},Ht=function(o){if(qs(o)){var s=xe.fromHtml('<br data-mce-bogus="1">');return zv(o),yl(o,s),re.some(Kn.before(s.dom))}else return re.none()},un=function(o,s,d){var m=Pv(o).filter($s),E=pf(o).filter($s);return Gs(o),E0(m,E,s,function(D,J,ue){var me=D.dom,Le=J.dom,tt=me.data.length;return w_(me,Le,d),ue.container()===Le?Kn(me,tt):ue}).orThunk(function(){return d&&(m.each(function(D){return Qa(D.dom,D.dom.length)}),E.each(function(D){return Cy(D.dom,0)})),s})},Jn=function(o,s){return io(o.schema.getTextInlineElements(),si(s))},pr=function(o,s,d,m){m===void 0&&(m=!0);var E=Se(s,o.getBody(),d.dom),D=kh(d,ne(wt,o),Xe(o.getBody())),J=un(d,E,Jn(o,d));o.dom.isEmpty(o.getBody())?(o.setContent(""),o.selection.setCursorLocation()):D.bind(Ht).fold(function(){m&&Pe(o,s,J)},function(ue){m&&Pe(o,s,re.some(ue))})},cr=function(o){return function(s){return jo(o,s)}},Xn=function(o){return Cc(o,"td,th")},Dr=function(o,s){var d=function(Le){return hg(xe.fromDom(Le),s)},m=d(o.startContainer),E=d(o.endContainer),D=m.isSome(),J=E.isSome(),ue=ec(m,E,jo).getOr(!1),me=!ue&&D&&J;return{startTable:m,endTable:E,isStartInTable:D,isEndInTable:J,isSameTable:ue,isMultiTable:me}},Lr=function(o,s){return{start:o,end:s}},Ro=function(o,s,d){return{rng:o,table:s,cells:d}},ri=Eo.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Po=function(o,s){return ds(xe.fromDom(o),"td,th",s)},aa=function(o){return!jo(o.start,o.end)},Ya=function(o,s){return hg(o.start,s).bind(function(d){return hg(o.end,s).bind(function(m){return h2(jo(d,m),d)})})},Ha=function(o,s){return!aa(o)&&Ya(o,s).exists(function(d){var m=d.dom.rows;return m.length===1&&m[0].cells.length===1})},nu=function(o,s){var d=Po(o.startContainer,s),m=Po(o.endContainer,s);return ec(d,m,Lr)},ac=function(o){return function(s){return hg(s,o).bind(function(d){return xt(Xn(d)).map(function(m){return Lr(s,m)})})}},Ff=function(o){return function(s){return hg(s,o).bind(function(d){return Wt(Xn(d)).map(function(m){return Lr(m,s)})})}},ui=function(o){return function(s){return Ya(s,o).map(function(d){return Ro(s,d,Xn(d))})}},fa=function(o,s,d,m){if(d.collapsed||!o.forall(aa))return re.none();if(s.isSameTable){var E=o.bind(ui(m));return re.some({start:E,end:E})}else{var D=Po(d.startContainer,m),J=Po(d.endContainer,m),ue=D.bind(ac(m)).bind(ui(m)),me=J.bind(Ff(m)).bind(ui(m));return re.some({start:ue,end:me})}},Ja=function(o,s){return Ct(o,function(d){return jo(d,s)})},$i=function(o){return ec(Ja(o.cells,o.rng.start),Ja(o.cells,o.rng.end
83),function(s,d){return o.cells.slice(s,d+1)})},dl=function(o,s,d){return o.exists(function(m){return Ha(m,d)&&yv(m.start,s)})},e0=function(o,s){var d=s.startTable,m=s.endTable,E=o.cloneRange();return d.each(function(D){return E.setStartAfter(D.dom)}),m.each(function(D){return E.setEndBefore(D.dom)}),E},Ki=function(o,s,d,m){return fa(o,s,d,m).bind(function(E){var D=E.start,J=E.end;return D.or(J)}).bind(function(E){var D=s.isSameTable,J=$i(E).getOr([]);if(D&&E.cells.length===J.length)return re.some(ri.fullTable(E.table));if(J.length>0){if(D)return re.some(ri.partialTable(J,re.none()));var ue=e0(d,s);return re.some(ri.partialTable(J,re.some(fo(fo({},s),{rng:ue}))))}else return re.none()})},F1=function(o,s,d,m){return fa(o,s,d,m).bind(function(E){var D=E.start,J=E.end,ue=D.bind($i).getOr([]),me=J.bind($i).getOr([]);if(ue.length>0&&me.length>0){var Le=e0(d,s);return re.some(ri.multiTable(ue,me,Le))}else return re.none()})},Ac=function(o,s){var d=cr(o),m=nu(s,d),E=Dr(s,d);return dl(m,s,d)?m.map(function(D){return ri.singleCellTable(s,D.start)}):E.isMultiTable?F1(m,E,s,d):Ki(m,E,s,d)},x4=function(o){var s=qc(o)?Pv(o):mf(o);return s.bind(x4).orThunk(function(){return re.some(o)})},fm=function(o){return ct(o,function(s){qn(s,"contenteditable"),Tg(s)})},sh=function(o,s){return re.from(o.dom.getParent(s,o.dom.isBlock)).map(xe.fromDom)},$1=function(o,s,d){d.each(function(m){s?Gs(m):(Tg(m),o.selection.setCursorLocation(m.dom,0))})},wv=function(o,s,d,m){var E=d.cloneRange();m?(E.setStart(d.startContainer,d.startOffset),E.setEndAfter(s.dom.lastChild)):(E.setStartBefore(s.dom.firstChild),E.setEnd(d.endContainer,d.endOffset)),Og(o,E,s,!1)},E4=function(o){var s=Yh(o),d=xe.fromDom(o.selection.getNode());x1(d.dom)&&qs(d)?o.selection.setCursorLocation(d.dom,0):o.selection.collapse(!0),s.length>1&&$e(s,function(m){return jo(m,d)})&&Me(d,"data-mce-selected","1")},kg=function(o,s,d){var m=o.selection.getRng(),E=d.bind(function(D){var J=D.rng,ue=D.isStartInTable,me=sh(o,ue?J.endContainer:J.startContainer);J.deleteContents(),$1(o,ue,me.filter(qs));var Le=ue?s[0]:s[s.length-1];return wv(o,Le,m,ue),qs(Le)?re.none():re.some(ue?s.slice(1):s.slice(0,-1))}).getOr(s);return fm(E),E4(o),!0},S4=function(o,s,d,m){var E=o.selection.getRng(),D=s[0],J=d[d.length-1];wv(o,D,E,!0),wv(o,J,E,!1);var ue=qs(D)?s:s.slice(1),me=qs(J)?d:d.slice(0,-1);return fm(ue.concat(me)),m.deleteContents(),E4(o),!0},Og=function(o,s,d,m){m===void 0&&(m=!0),s.deleteContents();var E=x4(d).getOr(d),D=xe.fromDom(o.dom.getParent(E.dom,o.dom.isBlock));if(qs(D)&&(Tg(D),m&&o.selection.setCursorLocation(D.dom,0)),!jo(d,D)){var J=x0(ks(D),d)?[]:ll(D);ct(J.concat(tl(d)),function(ue){!jo(ue,D)&&!di(ue,D)&&qs(ue)&&Gs(ue)})}return!0},lh=function(o,s){return pr(o,!1,s),!0},xy=function(o,s,d){return Ac(s,d).map(function(m){return m.fold(ne(Og,o),ne(lh,o),ne(kg,o),ne(S4,o))})},x_=function(o,s){return np(o,s)},JE=function(o,s,d,m){return CO(s,m).fold(function(){return xy(o,s,d)},function(E){return x_(o,E)}).getOr(!1)},T4=function(o,s,d){var m=xe.fromDom(o.getBody()),E=o.selection.getRng();return d.length!==0?kg(o,d,re.none()):JE(o,m,E,s)},wO=function(o,s){return mt(No(s,o),e1)},CO=function(o,s){return mt(No(s,o),Sh("caption"))},pU=function(o,s,d,m,E){return oh(d,o.getBody(),E).bind(function(D){return wO(s,xe.fromDom(D.getNode())).map(function(J){return jo(J,m)===!1})})},np=function(o,s){return Tg(s),o.selection.setCursorLocation(s.dom,0),re.some(!0)},mU=function(o,s,d,m){return af(o.dom).bind(function(E){return I1(o.dom).map(function(D){return s?d.isEqual(E)&&m.isEqual(D):d.isEqual(D)&&m.isEqual(E)})}).getOr(!0)},Rd=function(o,s){return np(o,s)},gU=function(o,s,d){return CO(o,xe.fromDom(d.getNode())).map(function(m){return jo(m,s)===!1})},yU=function(o,s,d,m,E){return oh(d,o.getBody(),E).bind(function(D){return mU(m,d,E,D)?Rd(o,m):gU(s,m,D)}).or(re.some(!0))},Mg=function(o,s,d,m){var E=Kn.fromRangeStart(o.selection.getRng());return wO(d,m).bind(function(D){return qs(D)?np(o,D):pU(o,d,s,D,E)}).getOr(!1)},Ii=function(o,s,d,m){var E=Kn.fromRangeStart(o.selection.getRng());return qs(m)?np(o,m):yU(o,d,s,m,E)},Ey=function(o,s){return o?PE(s):FE(s)},xO=function(o,s){var d=Kn.fromRangeStart(o.selection.getRng());return Ey(s,d)||fd(s,o.getBody(),d).exists(function(m){return Ey(s,m)})},bU=function(o,s,d){var m=xe.fromDom(o.getBody());return CO(m,d).fold(function(){return Mg(o,s,m,d)||xO(o,s)},function(E){return Ii(o,s,m,E).getOr(!1)})},A4=function(o,s){var d=xe.fromDom(o.selection.getStart(!0)),m=Yh(o);return o.selection.isCollapsed()&&m.length===0?bU(o,s,d):T4(o,d,m)},rp=function(o,s,d,m){var E=document.createRange();return E.setStart(o,s),E.setEnd(d,m),E},_U=function(o){var s=Kn.fromRangeStart(o),d=Kn.fromRangeEnd(o),m=o.commonAncestorContainer;return fd(!1,m,d).map(function(E){return!rh(s,d,m)&&rh(s,E,m)?rp(s.container(),s.offset(),E.container(),E.offset()):o}).getOr(o)},EO=function(o){return o.collapsed?o:_U(o)},wU=function(o){return o.firstChild&&o.firstChild===o.lastChild},SO=function(o){return o.name==="br"||o.value===Zc},CU=function(o,s){var d=o.getBlockElements();return d[s.name]&&wU(s)&&SO(s.firstChild)},xU=function(o,s){var d=o.getNonEmptyElements();return s&&(s.isEmpty(d)||CU(o,s))},CR=function(o,s){var d=s.firstChild,m=s.lastChild;return d&&d.name==="meta"&&(d=d.next),m&&m.attr("id")==="mce_marker"&&(m=m.prev),xU(o,m)&&(m=m.prev),!d||d!==m?!1:d.name==="ul"||d.name==="ol"},EU=function(o){var s=o.firstChild,d=o.lastChild;return s&&s.nodeName==="META"&&s.parentNode.removeChild(s),d&&d.id==="mce_marker"&&d.parentNode.removeChild(d),o},SU=function(o,s,d){var m=s.serialize(d),E=o.createFragment(m);return EU(E)},TU=function(o){return Fe(o.childNodes,function(s){return s.nodeName==="LI"})},z1=function(o){return o.data===Zc||qi(o)},dm=function(o){return o&&o.firstChild&&o.firstChild===o.lastChild&&z1(o.firstChild)},AU=function(o){return!o.firstChild||dm(o)},xR=function(o){return o.length>0&&AU(o[o.length-1])?o.slice(0,-1):o},E_=function(o,s){var d=o.getParent(s,o.isBlock);return d&&d.nodeName==="LI"?d:null},TO=function(o,s){return!!E_(o,s)},kU=function(o,s){var d=s.cloneRange(),m=s.cloneRange();return d.setStartBefore(o),m.setEndAfter(o),[d.cloneContents(),m.cloneContents()]},ER=function(o,s){var d=Kn.before(o),m=Cl(s),E=m.next(d);return E?E.toRange():null},S_=function(o,s){var d=Kn.after(o),m=Cl(s),E=m.prev(d);return E?E.toRange():null},eS=function(o,s,d,m){var E=kU(o,m),D=o.parentNode;return D.insertBefore(E[0],o),Gn.each(s,function(J){D.insertBefore(J,o)}),D.insertBefore(E[1],o),D.removeChild(o),S_(s[s.length-1],d)},OU=function(o,s,d){var m=o.parentNode;return Gn.each(s,function(E){m.insertBefore(E,o)}),ER(o,d)},Sy=function(o,s,d,m){return m.insertAfter(s.reverse(),o),S_(s[0],d)},MU=function(o,s,d,m){var E=SU(s,o,m),D=E_(s,d.startContainer),J=xR(TU(E.firstChild)),ue=1,me=2,Le=s.getRoot(),tt=function(nt){var it=Kn.fromRangeStart(d),kt=Cl(s.getRoot()),Nt=nt===ue?kt.prev(it):kt.next(it);return Nt?E_(s,Nt.getNode())!==D:!0};return tt(ue)?OU(D,J,Le):tt(me)?Sy(D,J,Le,s):eS(D,J,Le,d)},NU=function(o,s,d){var m=xe.fromDom(o.getRoot());return Jh(m,Kn.fromRangeStart(s))?d=d.replace(/^ /," "):d=d.replace(/^ /," "),C4(m,Kn.fromRangeEnd(s))?d=d.replace(/( | )(<br( \/)>)?$/," "):d=d.replace(/ (<br( \/)?>)?$/," "),d}
83,Ld=x1,AO=function(o,s,d){if(d!==null){var m=o.getParent(s.endContainer,Ld);return d===m&&yv(xe.fromDom(d),s)}else return!1},op=function(o,s,d){if(d.getAttribute("data-mce-bogus")==="all")d.parentNode.insertBefore(o.dom.createFragment(s),d);else{var m=d.firstChild,E=d.lastChild;!m||m===E&&m.nodeName==="BR"?o.dom.setHTML(d,s):o.selection.setContent(s)}},DU=function(o,s){re.from(o.getParent(s,"td,th")).map(xe.fromDom).each(dO)},ss=function(o,s){var d=o.schema.getTextInlineElements(),m=o.dom;if(s){var E=o.getBody(),D=ME(m);Gn.each(m.select("*[data-mce-fragment]"),function(J){var ue=z(d[J.nodeName.toLowerCase()]);if(ue&&lO(m,J))for(var me=J.parentNode;z(me)&&me!==E;me=me.parentNode){var Le=IE(m,J,me);if(Le)break;if(D.compare(me,J)){m.remove(J,!0);break}}})}},k4=function(o){for(var s=o;s=s.walk();)s.type===1&&s.attr("data-mce-fragment","1")},tS=function(o){Gn.each(o.getElementsByTagName("*"),function(s){s.removeAttribute("data-mce-fragment")})},SR=function(o){return!!o.getAttribute("data-mce-fragment")},kO=function(o,s){return s&&!o.schema.getShortEndedElements()[s.nodeName]},OO=function(o,s){var d,m=o.dom,E=o.selection;if(!!s){E.scrollIntoView(s);var D=mg(o.getBody(),s);if(m.getContentEditable(D)==="false"){m.remove(s),E.select(D);return}var J=m.createRng(),ue=s.previousSibling;if(Jr(ue)){if(J.setStart(ue,ue.nodeValue.length),!Io.ie){var me=s.nextSibling;Jr(me)&&(ue.appendData(me.data),me.parentNode.removeChild(me))}}else J.setStartBefore(s),J.setEndBefore(s);var Le=function(nt){var it=Kn.fromRangeStart(nt),kt=Cl(o.getBody());if(it=kt.next(it),it)return it.toRange()},tt=m.getParent(s,m.isBlock);m.remove(s),tt&&m.isEmpty(tt)&&(o.$(tt).empty(),J.setStart(tt,0),J.setEnd(tt,0),!Ld(tt)&&!SR(tt)&&(d=Le(J))?(J=d,m.remove(tt)):m.add(tt,m.create("br",{"data-mce-bogus":"1"}))),E.setRng(J)}},IU=function(o){var s=o.dom,d=EO(o.selection.getRng());o.selection.setRng(d);var m=s.getParent(d.startContainer,Ld);AO(s,d,m)?Og(o,d,xe.fromDom(m)):o.getDoc().execCommand("Delete",!1,null)},MO=function(o,s,d){var m,E,D,J=o.selection,ue=o.dom;/^ | $/.test(s)&&(s=NU(ue,J.getRng(),s));var me=o.parser,Le=d.merge,tt=Sg({validate:Q7(o)},o.schema),nt='<span id="mce_marker" data-mce-type="bookmark"></span>',it=o.fire("BeforeSetContent",{content:s,format:"html",selection:!0,paste:d.paste});if(it.isDefaultPrevented()){o.fire("SetContent",{content:it.content,format:"html",selection:!0,paste:d.paste});return}s=it.content,d.preserve_zwsp||(s=$c(s)),s.indexOf("{$caret}")===-1&&(s+="{$caret}"),s=s.replace(/\{\$caret\}/,nt),E=J.getRng();var kt=E.startContainer||(E.parentElement?E.parentElement():null),Nt=o.getBody();kt===Nt&&J.isCollapsed()&&ue.isBlock(Nt.firstChild)&&kO(o,Nt.firstChild)&&ue.isEmpty(Nt.firstChild)&&(E=ue.createRng(),E.setStart(Nt.firstChild,0),E.setEnd(Nt.firstChild,0),J.setRng(E)),J.isCollapsed()||IU(o),m=J.getNode();var Lt={context:m.nodeName.toLowerCase(),data:d.data,insert:!0},$t=me.parse(s,Lt);if(d.paste===!0&&CR(o.schema,$t)&&TO(ue,m)){E=MU(tt,ue,J.getRng(),$t),J.setRng(E),o.fire("SetContent",it);return}if(k4($t),D=$t.lastChild,D.attr("id")==="mce_marker"){var Jt=D;for(D=D.prev;D;D=D.walk(!0))if(D.type===3||!ue.isBlock(D.name)){o.schema.isValidChild(D.parent.name,"span")&&D.parent.insert(Jt,D,D.name==="br");break}}if(o._selectionOverrides.showBlockCaretContainer(m),!Lt.invalid)s=tt.serialize($t),op(o,s,m);else{o.selection.setContent(nt),m=J.getNode();var qt=o.getBody();for(m.nodeType===9?m=D=qt:D=m;D!==qt;)m=D,D=D.parentNode;s=m===qt?qt.innerHTML:ue.getOuterHTML(m),s=tt.serialize(me.parse(s.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return tt.serialize($t)}))),m===qt?ue.setHTML(qt,s):ue.setOuterHTML(m,s)}ss(o,Le),OO(o,ue.get("mce_marker")),tS(o.getBody()),DU(ue,J.getStart()),o.fire("SetContent",it),o.addVisual()},NO=function(o,s){s(o),o.firstChild&&NO(o.firstChild,s),o.next&&NO(o.next,s)},TR=function(o,s,d){var m={},E={},D=[];d.firstChild&&NO(d.firstChild,function(me){ct(o,function(Le){Le.name===me.name&&(m[Le.name]?m[Le.name].nodes.push(me):m[Le.name]={filter:Le,nodes:[me]})}
83),ct(s,function(Le){typeof me.attr(Le.name)=="string"&&(E[Le.name]?E[Le.name].nodes.push(me):E[Le.name]={filter:Le,nodes:[me]})})});for(var J in m)io(m,J)&&D.push(m[J]);for(var ue in E)io(E,ue)&&D.push(E[ue]);return D},AR=function(o,s,d){var m=TR(o,s,d);ct(m,function(E){ct(E.filter.callbacks,function(D){D(E.nodes,E.filter.name,{})})})},DO="html",nS=function(o){return o instanceof P1},rS=function(o){B1(o)&&af(o.getBody()).each(function(s){var d=s.getNode(),m=nl(d)?af(d).getOr(s):s;o.selection.setRng(m.toRange())})},IO=function(o,s,d){o.dom.setHTML(o.getBody(),s),d!==!0&&rS(o)},RU=function(o,s,d,m){if(d=$c(d),d.length===0||/^\s+$/.test(d)){var E='<br data-mce-bogus="1">';s.nodeName==="TABLE"?d="<tr><td>"+E+"</td></tr>":/^(UL|OL)$/.test(s.nodeName)&&(d="<li>"+E+"</li>");var D=xc(o);D&&o.schema.isValidChild(s.nodeName.toLowerCase(),D.toLowerCase())?(d=E,d=o.dom.createHTML(D,z2(o),d)):d||(d='<br data-mce-bogus="1">'),IO(o,d,m.no_selection),o.fire("SetContent",m)}else m.format!=="raw"&&(d=Sg({validate:o.validate},o.schema).serialize(o.parser.parse(d,{isRootContent:!0,insert:!0}))),m.content=Vl(xe.fromDom(s))?d:Gn.trim(d),IO(o,m.content,m.no_selection),m.no_events||o.fire("SetContent",m);return m.content},LU=function(o,s,d,m){AR(o.parser.getNodeFilters(),o.parser.getAttributeFilters(),d);var E=Sg({validate:o.validate},o.schema).serialize(d);return m.content=$c(Vl(xe.fromDom(s))?E:Gn.trim(E)),IO(o,m.content,m.no_selection),m.no_events||o.fire("SetContent",m),d},BU=function(o,s){return fo(fo({format:DO},o),{set:!0,content:nS(s)?"":s})},PU=function(o,s,d){var m=BU(d,s),E=d.no_events?m:o.fire("BeforeSetContent",m);return nS(s)||(s=E.content),re.from(o.getBody()).fold(K(s),function(D){return nS(s)?LU(o,D,s,E):RU(o,D,s,E)})},FU=function(o,s){return Cf(o,s).isSome()},kR=function(o){return Y(o)?o:U},$U=function(o,s,d){for(var m=o.dom,E=kR(d);m.parentNode;){m=m.parentNode;var D=xe.fromDom(m),J=s(D);if(J.isSome())return J;if(E(D))break}return re.none()},RO=function(o,s,d){var m=s(o),E=kR(d);return m.orThunk(function(){return E(o)?re.none():$U(o,s,E)})},LO=ew,BO=function(o,s,d){var m=o.formatter.get(d);if(m)for(var E=0;E<m.length;E++){var D=m[E];if(Id(D)&&D.inherit===!1&&o.dom.is(s,D.selector))return!0}return!1},PO=function(o,s,d,m,E){var D=o.dom.getRoot();return s===D?!1:(s=o.dom.getParent(s,function(J){return BO(o,J,d)?!0:J.parentNode===D||!!vm(o,J,d,m,!0)}),!!vm(o,s,d,m,E))},oS=function(o,s,d){if(LO(s,d.inline)||LO(s,d.block))return!0;if(d.selector)return s.nodeType===1&&o.is(s,d.selector)},t0=function(o,s,d,m,E,D){var J=d[m];if(Y(d.onmatch))return d.onmatch(s,d,m);if(J){if(X(J.length)){for(var ue in J)if(io(J,ue)){var me=m==="attributes"?o.getAttrib(s,ue):iy(o,s,ue),Le=Gh(J[ue],D),tt=Z(me)||xr(me);if(tt&&Z(Le))continue;if(E&&tt&&!d.exact||(!E||d.exact)&&!LO(me,tw(o,Le,ue)))return!1}}else for(var nt=0;nt<J.length;nt++)if(m==="attributes"?o.getAttrib(s,J[nt]):iy(o,s,J[nt]))return!0}return!0},vm=function(o,s,d,m,E){var D=o.formatter.get(d),J=o.dom;if(D&&s)for(var ue=0;ue<D.length;ue++){var me=D[ue];if(oS(o.dom,s,me)&&t0(J,s,me,"attributes",E,m)&&t0(J,s,me,"styles",E,m)){var Le=me.classes;if(Le){for(var tt=0;tt<Le.length;tt++)if(!o.dom.hasClass(s,Gh(Le[tt],m)))return}return me}}},aS=function(o,s,d,m,E){if(m)return PO(o,m,s,d,E);if(m=o.selection.getNode(),PO(o,m,s,d,E))return!0;var D=o.selection.getStart();return!!(D!==m&&PO(o,D,s,d,E))},FO=function(o,s,d){var m=[],E={},D=o.selection.getStart();return o.dom.getParent(D,function(J){for(var ue=0;ue<s.length;ue++){var me=s[ue];!E[me]&&vm(o,J,me,d)&&(E[me]=!0,m.push(me))}},o.dom.getRoot()),m},$O=function(o,s){var d=function(E){return jo(E,xe.fromDom(o.getBody()))},m=function(E,D){return vm(o,E.dom,D)?re.some(D):re.none()};return re.from(o.selection.getStart(!0)).bind(function(E){return RO(xe.fromDom(E),function(D){return _t(s,function(J){return m(D,J)})},d)}).getOrNull()},OR=function(o,s){var d=o.formatter.get(s),m=o.dom;if(d)for(var E=o.selection.getStart(),D=Qb(m,E),J=d.length-1;J>=0;J--){var ue=d[J];if(!Id(ue)||z(ue.defaultBlock))return!0;for(var me=D.length-1;me>=0;me--)if(m.is(D[me],ue.selector))return!0}return!1},MR=function(o,s,d){return Ye(d,function(m,E){var D=zx(o,E);return o.formatter.matchNode(s,E,{},D)?m.concat([E]):m},[])},T_=fn,NR="_mce_caret",zO=function(o,s){return o.importNode(s,!0)},DR=function(o){for(var s=[];o;){if(o.nodeType===3&&o.nodeValue!==T_||o.childNodes.length>1)return[];o.nodeType===1&&s.push(o),o=o.firstChild}return s},n0=function(o){return DR(o).length>0}
83,IR=function(o){if(o){var s=new hi(o,o);for(o=s.current();o;o=s.next())if(Jr(o))return o}return null},HO=function(o){var s=xe.fromTag("span");return Qe(s,{id:NR,"data-mce-bogus":"1","data-mce-type":"format-caret"}),o&&yl(s,xe.fromText(T_)),s},zU=function(o){var s=IR(o);return s&&s.nodeValue.charAt(0)===T_&&s.deleteData(0,1),s},e9=function(o,s,d){d===void 0&&(d=!0);var m=o.dom,E=o.selection;if(n0(s))pr(o,!1,xe.fromDom(s),d);else{var D=E.getRng(),J=m.getParent(s,m.isBlock),ue=D.startContainer,me=D.startOffset,Le=D.endContainer,tt=D.endOffset,nt=zU(s);m.remove(s,!0),ue===nt&&me>0&&D.setStart(nt,me-1),Le===nt&&tt>0&&D.setEnd(nt,tt-1),J&&m.isEmpty(J)&&Tg(xe.fromDom(J)),E.setRng(D)}},VO=function(o,s,d){d===void 0&&(d=!0);var m=o.dom,E=o.selection;if(s)e9(o,s,d);else if(s=fg(o.getBody(),E.getStart()),!s)for(;s=m.get(NR);)e9(o,s,!1)},HU=function(o,s,d){var m=o.dom,E=m.getParent(d,ne(J5,o));E&&m.isEmpty(E)?d.parentNode.replaceChild(s,d):(fO(xe.fromDom(d)),m.isEmpty(d)?d.parentNode.replaceChild(s,d):m.insertAfter(s,d))},iS=function(o,s){return o.appendChild(s),s},RR=function(o,s){var d=We(o,function(m,E){return iS(m,E.cloneNode(!1))},s);return iS(d,d.ownerDocument.createTextNode(T_))},VU=function(o,s,d,m,E,D){var J=o.formatter,ue=o.dom,me=Fe(en(J.get()),function(it){return it!==m&&!Qn(it,"removeformat")}),Le=MR(o,d,me),tt=Fe(Le,function(it){return!kk(o,it,m)});if(tt.length>0){var nt=d.cloneNode(!1);return ue.add(s,nt),J.remove(m,E,nt,D),ue.remove(nt),re.some(nt)}else return re.none()},LR=function(o,s,d){var m,E,D=o.selection,J=D.getRng(),ue=J.startOffset,me=J.startContainer,Le=me.nodeValue;m=fg(o.getBody(),D.getStart()),m&&(E=IR(m));var tt=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(Le&&ue>0&&ue<Le.length&&tt.test(Le.charAt(ue))&&tt.test(Le.charAt(ue-1))){var nt=D.getBookmark();J.collapse(!0);var it=tm(o,J,o.formatter.get(s));it=J0(it),o.formatter.apply(s,d,it),D.moveToBookmark(nt)}else(!m||E.nodeValue!==T_)&&(m=zO(o.getDoc(),HO(!0).dom),E=m.firstChild,J.insertNode(m),ue=1),o.formatter.apply(s,d,m),D.setCursorLocation(E,ue)},UU=function(o,s,d,m){var E=o.dom,D=o.selection,J,ue,me,Le=[],tt=D.getRng(),nt=tt.startContainer,it=tt.startOffset;for(ue=nt,nt.nodeType===3&&(it!==nt.nodeValue.length&&(J=!0),ue=ue.parentNode);ue;){if(vm(o,ue,s,d,m)){me=ue;break}ue.nextSibling&&(J=!0),Le.push(ue),ue=ue.parentNode}if(!!me)if(J){var kt=D.getBookmark();tt.collapse(!0);var Nt=tm(o,tt,o.formatter.get(s),!0);Nt=J0(Nt),o.formatter.remove(s,d,Nt,m),D.moveToBookmark(kt)}else{var Lt=fg(o.getBody(),me),$t=HO(!1).dom;HU(o,$t,Lt!==null?Lt:me);var Jt=VU(o,$t,me,s,d,m),qt=RR(Le.concat(Jt.toArray()),$t);e9(o,Lt,!1),D.setCursorLocation(qt,1),E.isEmpty(me)&&E.remove(me)}},jU=function(o,s){var d=o.selection,m=o.getBody();VO(o,null,!1),(s===8||s===46)&&d.isCollapsed()&&d.getStart().innerHTML===T_&&VO(o,fg(m,d.getStart())),(s===37||s===39)&&VO(o,fg(m,d.getStart()))},sS=function(o){o.on("mouseup keydown",function(s){jU(o,s.keyCode)})},WU=function(o,s){var d=HO(!1),m=RR(s,d.dom);return Os(xe.fromDom(o),d),Gs(xe.fromDom(o)),Kn(m,0)},BR=function(o,s){var d=o.schema.getTextInlineElements();return io(d,si(s))&&!Wh(s.dom)&&!Ks(s.dom)},PR=function(o){return Wh(o.dom)&&n0(o.dom)},A_={},FR=rs,$R=Bi,UO=function(o,s){var d=A_[o];d||(A_[o]=[]),A_[o].push(s)},GU=function(o,s){$R(A_[o],function(d){d(s)})};UO("pre",function(o){var s=o.selection.getRng(),d,m=function(J){return D(J.previousSibling)&&Ai(d,J.previousSibling)!==-1},E=function(J,ue){Ta(ue).remove(),Ta(J).append("<br><br>").append(ue.childNodes)},D=bf(["pre"]);s.collapsed||(d=o.selection.getSelectedBlocks(),$R(FR(FR(d,D),m),function(J){E(J.previousSibling,J)}))});var jO=Gn.each,O4=function(o){return Ko(o)&&!dd(o)&&!Wh(o)&&!Ks(o)},lS=function(o,s){for(var d=o;d;d=d[s]){if(Jr(d)&&Dn(d.data))return o;if(Ko(d)&&!dd(d))return d}return o},zR=function(o,s,d){var m=ME(o);if(s&&d&&(s=lS(s,"previousSibling"),d=lS(d,"nextSibling"),m.compare(s,d))){for(var E=s.nextSibling;E&&E!==d;){var D=E;E=E.nextSibling,s.appendChild(D)}return o.remove(d),Gn.each(Gn.grep(d.childNodes),function(J){s.appendChild(J)}),s}return d},HR=function(o,s,d,m){if(m&&s.merge_siblings!==!1){var E=zR(o,H6(m),m);zR(o,E,H6(E,!0))}},VR=function(o,s,d){if(s.clear_child_styles){var m=s.links?"*:not(a)":"*";jO(o.select(m,d),function(E){O4(E)&&jO(s.styles,function(D,J){o.setStyle(E,J,"")})})}},uS=function(o,s,d){jO(o.childNodes,function(m){O4(m)&&(s(m)&&d(m),m.hasChildNodes()&&uS(m,s,d))})},KU=function(o,s){s.nodeName==="SPAN"&&o.getAttribs(s).length===0&&o.remove(s,!0)},UR=function(o,s){return function(d){return!!(d&&iy(o,d,s))}},jR=function(o,s,d){return function(m){o.setStyle(m,s,d),m.getAttribute("style")===""&&m.removeAttribute("style"),KU(o,m)}},t9=Eo.generate([{keep:[]},{rename:["name"]},{removed:[]}]),WR=/^(src|href|style)$/,cS=Gn.each,k_=ew,YU=function(o){return/^(TR|TH|TD)$/.test(o.nodeName)},GR=function(o,s,d){return o.isChildOf(s,d)&&s!==d&&!o.isBlock(d)},KR=function(o,s,d){var m=s[d?"startContainer":"endContainer"],E=s[d?"startOffset":"endOffset"];if(Ko(m)){var D=m.childNodes.length-1;!d&&E&&E--,m=m.childNodes[E>D?D:E]}return Jr(m)&&d&&E>=m.nodeValue.length&&(m=new hi(m,o.getBody()).next()||m),Jr(m)&&!d&&E===0&&(m=new hi(m,o.getBody()).prev()||m),m},YR=function(o,s){var d=s?"firstChild":"lastChild";if(YU(o)&&o[d]){var m=o[d];return o.nodeName==="TR"&&m[d]||m}return o},WO=function(o,s,d,m){var E=o.create(d,m);return s.parentNode.insertBefore(E,s),E.appendChild(s),E},O_=function(o,s,d,m,E){var D=xe.fromDom(s),J=xe.fromDom(o.create(m,E)),ue=d?Pi(D):ai(D);return b1(J,ue),d?(Os(D,J),gf(J,D)):($v(D,J),yl(J,D)),J.dom},qU=function(o,s,d){if(Sc(d)&&k_(s,d.inline)||Kh(d)&&k_(s,d.block))return!0;
83if(Id(d))return Ko(s)&&o.is(s,d.selector)},qR=function(o,s){return s.links&&o.nodeName==="A"},M_=function(o,s,d,m){var E=H6(s,d,m);return Z(E)||E.nodeName==="BR"||o.isBlock(E)},XU=function(o,s,d){var m=s.parentNode,E,D=o.dom,J=xc(o);Kh(d)&&(J?m===D.getRoot()&&(!d.list_block||!k_(s,d.list_block))&&ct(at(s.childNodes),function(ue){ay(o,J,ue.nodeName.toLowerCase())?E?E.appendChild(ue):(E=WO(D,ue,J),D.setAttribs(E,o.settings.forced_root_block_attrs)):E=null}):D.isBlock(s)&&!D.isBlock(m)&&(!M_(D,s,!1)&&!M_(D,s.firstChild,!0,!0)&&s.insertBefore(D.create("br"),s.firstChild),!M_(D,s,!0)&&!M_(D,s.lastChild,!1,!0)&&s.appendChild(D.create("br")))),!(Ok(d)&&!k_(d.inline,s))&&D.remove(s,!0)},GO=function(o,s,d,m,E){var D,J=o.dom;if(!qU(J,m,s)&&!qR(m,s))return t9.keep();var ue=m;if(Sc(s)&&s.remove==="all"&&R(s.preserve_attributes)){var me=Fe(J.getAttribs(ue),function(it){return De(s.preserve_attributes,it.name.toLowerCase())});if(J.removeAllAttribs(ue),ct(me,function(it){return J.setAttrib(ue,it.name,it.value)}),me.length>0)return t9.rename("span")}if(s.remove!=="all"){cS(s.styles,function(it,kt){it=tw(J,Gh(it,d),kt+""),Q(kt)&&(kt=it,E=null),(s.remove_similar||!E||k_(iy(J,E,kt),it))&&J.setStyle(ue,kt,""),D=!0}),D&&J.getAttrib(ue,"style")===""&&(ue.removeAttribute("style"),ue.removeAttribute("data-mce-style")),cS(s.attributes,function(it,kt){var Nt;if(it=Gh(it,d),Q(kt)&&(kt=it,E=null),s.remove_similar||!E||k_(J.getAttrib(E,kt),it)){if(kt==="class"&&(it=J.getAttrib(ue,kt),it&&(Nt="",ct(it.split(/\s+/),function(Lt){/mce\-\w+/.test(Lt)&&(Nt+=(Nt?" ":"")+Lt)}),Nt))){J.setAttrib(ue,kt,Nt);return}if(WR.test(kt)&&ue.removeAttribute("data-mce-"+kt),kt==="style"&&bf(["li"])(ue)&&J.getStyle(ue,"list-style-type")==="none"){ue.removeAttribute(kt),J.setStyle(ue,"list-style-type","none");return}kt==="class"&&ue.removeAttribute("className"),ue.removeAttribute(kt)}}),cS(s.classes,function(it){it=Gh(it,d),(!E||J.hasClass(E,it))&&J.removeClass(ue,it)});for(var Le=J.getAttribs(ue),tt=0;tt<Le.length;tt++){var nt=Le[tt].nodeName;if(nt.indexOf("_")!==0&&nt.indexOf("data-")!==0)return t9.keep()}}return s.remove!=="none"?(XU(o,ue,s),t9.removed()):t9.keep()},M4=function(o,s,d,m,E){return GO(o,s,d,m,E).fold(U,function(D){return o.dom.rename(m,D),!0},j)},ZU=function(o,s,d,m,E){var D;return ct(Qb(o.dom,s.parentNode).reverse(),function(J){if(!D&&J.id!=="_start"&&J.id!=="_end"){var ue=vm(o,J,d,m,E);ue&&ue.split!==!1&&(D=J)}}),D},QU=function(o,s,d,m){return GO(o,s,d,m,m).fold(K(m),function(E){var D=o.dom.createFragment();return D.appendChild(m),o.dom.rename(m,E)},K(null))},JU=function(o,s,d,m,E,D,J,ue){var me,Le,tt,nt=o.dom;if(d){for(var it=d.parentNode,kt=m.parentNode;kt&&kt!==it;kt=kt.parentNode){me=nt.clone(kt,!1);for(var Nt=0;Nt<s.length&&(me=QU(o,s[Nt],ue,me),me!==null);Nt++);me&&(Le&&me.appendChild(Le),tt||(tt=me),Le=me)}D&&(!J.mixed||!nt.isBlock(d))&&(m=nt.split(d,m)),Le&&(E.parentNode.insertBefore(Le,E),tt.appendChild(E),Sc(J)&&HR(nt,J,ue,Le))}return m},XR=function(o,s,d,m,E){var D=o.formatter.get(s),J=D[0],ue=!0,me=o.dom,Le=o.selection,tt=function(qt){var Mn=ZU(o,qt,s,d,E);return JU(o,D,Mn,qt,qt,!0,J,d)},nt=function(qt){return dd(qt)&&Ko(qt)&&(qt.id==="_start"||qt.id==="_end")},it=function(qt){return $e(D,function(Mn){return M4(o,Mn,d,qt,qt)})},kt=function(qt){var Mn=!0,xn=!1;Ko(qt)&&me.getContentEditable(qt)&&(Mn=ue,ue=me.getContentEditable(qt)==="true",xn=!0);var ln=at(qt.childNodes);if(ue&&!xn){var In=it(qt),ir=In||$e(D,function(lr){return oS(me,qt,lr)}),_r=qt.parentNode;!ir&&z(_r)&&rw(J)&&it(_r)}if(J.deep&&ln.length){for(var Go=0;Go<ln.length;Go++)kt(ln[Go]);xn&&(ue=Mn)}var eo=["underline","line-through","overline"];ct(eo,function(lr){Ko(qt)&&o.dom.getStyle(qt,"text-decoration")===lr&&qt.parentNode&&nw(me,qt.parentNode)===lr&&M4(o,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:lr}},null,qt)})},Nt=function(qt){var Mn=me.get(qt?"_start":"_end"),xn=Mn[qt?"firstChild":"lastChild"];return nt(xn)&&(xn=xn[qt?"firstChild":"lastChild"]),Jr(xn)&&xn.data.length===0&&(xn=qt?Mn.previousSibling||Mn.nextSibling:Mn.nextSibling||Mn.previousSibling),me.remove(Mn,!0),xn},Lt=function(qt){var Mn,xn,ln=tm(o,qt,D,qt.collapsed);if(J.split){if(ln=J0(ln),Mn=KR(o,ln,!0),xn=KR(o,ln),Mn!==xn){if(Mn=YR(Mn,!0),xn=YR(xn,!1),GR(me,Mn,xn)){var In=re.from(Mn.firstChild).getOr(Mn);tt(O_(me,In,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Nt(!0);return}if(GR(me,xn,Mn)){var In=re.from(xn.lastChild).getOr(xn);tt(O_(me,In,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Nt(!1);return}Mn=WO(me,Mn,"span",{id:"_start","data-mce-type":"bookmark"}),xn=WO(me,xn,"span",{id:"_end","data-mce-type":"bookmark"});var ir=me.createRng();ir.setStartAfter(Mn),ir.setEndBefore(xn),t4(me,ir,function(_r){ct(_r,function(Go){!dd(Go)&&!dd(Go.parentNode)&&tt(Go)})}),tt(Mn),tt(xn),Mn=Nt(!0),xn=Nt()}else Mn=xn=tt(Mn);ln.startContainer=Mn.parentNode?Mn.parentNode:Mn,ln.startOffset=me.nodeIndex(Mn),ln.endContainer=xn.parentNode?xn.parentNode:xn,ln.endOffset=me.nodeIndex(xn)+1}t4(me,ln,function(_r){ct(_r,kt)})};if(m){if(z6(m)){var $t=me.createRng();$t.setStartBefore(m),$t.setEndAfter(m),Lt($t)}else Lt(m);n4(o,s,m,d);return}if(me.getContentEditable(Le.getNode())==="false"){m=Le.getNode();for(var Jt=0;Jt<D.length&&!(D[Jt].ceFalseOverride&&M4(o,D[Jt],d,m,m));Jt++);n4(o,s,m,d);return}!Le.isCollapsed()||!Sc(J)||Yh(o).length?(cy(Le,!0,function(){pg(o,Lt)}),Sc(J)&&aS(o,s,d,Le.getStart())&&$x(me,Le,Le.getRng()),o.nodeChanged()):UU(o,s,d,E),n4(o,s,m,d)},ZR=Gn.each,ej=function(o,s,d,m){var E=function(D){if(D.nodeType===1&&D.parentNode&&D.parentNode.nodeType===1){var J=nw(o,D.parentNode);
83o.getStyle(D,"color")&&J?o.setStyle(D,"text-decoration",J):o.getStyle(D,"text-decoration")===J&&o.setStyle(D,"text-decoration",null)}};s.styles&&(s.styles.color||s.styles.textDecoration)&&(Gn.walk(m,E,"childNodes"),E(m))},tj=function(o,s,d,m){s.styles&&s.styles.backgroundColor&&uS(m,UR(o,"fontSize"),jR(o,"backgroundColor",Gh(s.styles.backgroundColor,d)))},nj=function(o,s,d,m){Sc(s)&&(s.inline==="sub"||s.inline==="sup")&&(uS(m,UR(o,"fontSize"),jR(o,"fontSize","")),o.remove(o.select(s.inline==="sup"?"sub":"sup",m),!0))},rj=function(o,s,d,m){ZR(s,function(E){Sc(E)&&ZR(o.dom.select(E.inline,m),function(D){!O4(D)||M4(o,E,d,D,E.exact?D:null)}),VR(o.dom,E,m)})},oj=function(o,s,d,m,E){vm(o,E.parentNode,d,m)&&M4(o,s,m,E)||s.merge_with_parents&&o.dom.getParent(E.parentNode,function(D){if(vm(o,D,d,m))return M4(o,s,m,E),!0})},fS=Gn.each,KO=function(o){return Ko(o)&&!dd(o)&&!Wh(o)&&!Ks(o)},ap=function(o,s,d,m){if(sg(o)&&Sc(s)){var E=C2(o.schema),D=FU(xe.fromDom(d),function(J){return Wh(J.dom)});return xa(E,m)&&qs(xe.fromDom(d.parentNode),!1)&&!D}else return!1},n9=function(o,s,d,m){var E=o.formatter.get(s),D=E[0],J=!m&&o.selection.isCollapsed(),ue=o.dom,me=o.selection,Le=function(Mn,xn){if(xn===void 0&&(xn=D),Y(xn.onformat)&&xn.onformat(Mn,xn,d,m),fS(xn.styles,function(In,ir){ue.setStyle(Mn,ir,Gh(In,d))}),xn.styles){var ln=ue.getAttrib(Mn,"style");ln&&ue.setAttrib(Mn,"data-mce-style",ln)}fS(xn.attributes,function(In,ir){ue.setAttrib(Mn,ir,Gh(In,d))}),fS(xn.classes,function(In){In=Gh(In,d),ue.hasClass(Mn,In)||ue.addClass(Mn,In)})},tt=function(Mn,xn){var ln=!1;return fS(Mn,function(In){if(!Id(In))return!1;if(!(z(In.collapsed)&&In.collapsed!==J)&&ue.is(xn,In.selector)&&!Wh(xn))return Le(xn,In),ln=!0,!1}),ln},nt=function(Mn){if(B(Mn)){var xn=ue.create(Mn);return Le(xn),xn}else return null},it=function(Mn,xn,ln){var In=[],ir=!0,_r=D.inline||D.block,Go=nt(_r);t4(Mn,xn,function(eo){var lr,Lo=function(Sr){var Xr=!1,Tr=ir,Fr=Sr.nodeName.toLowerCase(),ho=Sr.parentNode,mr=ho.nodeName.toLowerCase();if(Ko(Sr)&&Mn.getContentEditable(Sr)&&(Tr=ir,ir=Mn.getContentEditable(Sr)==="true",Xr=!0),qi(Sr)&&!ap(o,D,Sr,mr)){lr=null,Kh(D)&&Mn.remove(Sr);return}if(Kh(D)&&D.wrapper&&vm(o,Sr,s,d)){lr=null;return}if(ir&&!Xr&&Kh(D)&&!D.wrapper&&J5(o,Fr)&&ay(o,mr,_r)){var ro=Mn.rename(Sr,_r);Le(ro),In.push(ro),lr=null;return}if(Id(D)){var Va=tt(E,Sr);if(!Va&&z(ho)&&rw(D)&&(Va=tt(E,ho)),!Sc(D)||Va){lr=null;return}}ir&&!Xr&&ay(o,_r,Fr)&&ay(o,mr,_r)&&!(!ln&&Jr(Sr)&&_c(Sr.data))&&!Wh(Sr)&&(!Sc(D)||!Mn.isBlock(Sr))?(lr||(lr=Mn.clone(Go,!1),Sr.parentNode.insertBefore(lr,Sr),In.push(lr)),lr.appendChild(Sr)):(lr=null,ct(at(Sr.childNodes),Lo),Xr&&(ir=Tr),lr=null)};ct(eo,Lo)}),D.links===!0&&ct(In,function(eo){var lr=function(Lo){Lo.nodeName==="A"&&Le(Lo,D),ct(at(Lo.childNodes),lr)};lr(eo)}),ct(In,function(eo){var lr=function(Xr){var Tr=0;return ct(Xr.childNodes,function(Fr){!Ak(Fr)&&!dd(Fr)&&Tr++}),Tr},Lo=function(Xr){var Tr=mt(Xr.childNodes,KO).filter(function(Fr){return oS(Mn,Fr,D)});return Tr.map(function(Fr){var ho=Mn.clone(Fr,!1);return Le(ho),Mn.replace(ho,Xr,!0),Mn.remove(Fr,!0),ho}).getOr(Xr)},Sr=lr(eo);if((In.length>1||!Mn.isBlock(eo))&&Sr===0){Mn.remove(eo,!0);return}(Sc(D)||Kh(D)&&D.wrapper)&&(!D.exact&&Sr===1&&(eo=Lo(eo)),rj(o,E,d,eo),oj(o,D,s,d,eo),tj(Mn,D,d,eo),ej(Mn,D,d,eo),nj(Mn,D,d,eo),HR(Mn,D,d,eo))})};if(ue.getContentEditable(me.getNode())==="false"){m=me.getNode();for(var kt=0,Nt=E.length;kt<Nt;kt++){var Lt=E[kt];if(Lt.ceFalseOverride&&Id(Lt)&&ue.is(m,Lt.selector)){Le(m,Lt);break}}gw(o,s,m,d);return}if(D){if(m)if(z6(m)){if(!tt(E,m)){var $t=ue.createRng();$t.setStartBefore(m),$t.setEndAfter(m),it(ue,tm(o,$t,E),!0)}}else it(ue,m,!0);else if(!J||!Sc(D)||Yh(o).length){var Jt=me.getNode(),qt=E[0];!o.settings.forced_root_block&&qt.defaultBlock&&!ue.getParent(Jt,ue.isBlock)&&n9(o,qt.defaultBlock),me.setRng(EO(me.getRng())),cy(me,!0,function(){pg(o,function(Mn,xn){var ln=xn?Mn:tm(o,Mn,E);it(ue,ln,!1)})}),$x(ue,me,me.getRng()),o.nodeChanged()}else LR(o,s,d);GU(s,o)}gw(o,s,m,d)},dS=function(o){return io(o,"vars")},YO=function(o,s){o.set({}),s.on("NodeChange",function(d){XO(s,d.element,o.get())}),s.on("FormatApply FormatRemove",function(d){var m=re.from(d.node).map(function(E){return z6(E)?E:E.startContainer}).bind(function(E){return Ko(E)?re.some(E):re.from(E.parentElement)}).getOrThunk(function(){return QR(s)});XO(s,m,o.get())})},QR=function(o){return o.selection.getStart()},qO=function(o,s,d,m,E){var D=function(ue){var me=o.formatter.matchNode(ue,d,E!=null?E:{},m);return!X(me)},J=function(ue){return BO(o,ue,d)?!0:m?!1:z(o.formatter.matchNode(ue,d,E,!0))};return Ke(s,D,J)},JR=function(o,s){var d=s!=null?s:QR(o);return Fe(Qb(o.dom,d),function(m){return Ko(m)&&!Ks(m)})},XO=function(o,s,d){var m=JR(o,s);Vt(d,function(E,D){var J=function(ue){var me=qO(o,m,D,ue.similar,dS(ue)?ue.vars:void 0),Le=me.isSome();if(ue.state.get()!==Le){ue.state.set(Le);var tt=me.getOr(s);dS(ue)?ue.callback(Le,{node:tt,format:D,parents:m}):ct(ue.callbacks,function(nt){return nt(Le,{node:tt,format:D,parents:m})})}};ct([E.withSimilar,E.withoutSimilar],J),ct(E.withVars,J)})},ZO=function(o,s,d,m,E,D){var J=s.get();ct(d.split(","),function(ue){var me=Br(J,ue).getOrThunk(function(){var nt={withSimilar:{state:Df(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Df(!1),similar:!1,callbacks:[]},withVars:[]};return J[ue]=nt,nt}),Le=function(){var nt=JR(o);return qO(o,nt,ue,E,D).isSome()};if(X(D)){var tt=E?me.withSimilar:me.withoutSimilar;tt.callbacks.push(m),tt.callbacks.length===1&&tt.state.set(Le())}else me.withVars.push({state:Df(Le()),similar:E,vars:D,callback:m})}),s.set(J)},aj=function(o,s,d){var m=o.get();ct(s.split(","),function(E){return Br(m,E).each(function(D){m[E]={withSimilar:fo(fo({},D.withSimilar),{callbacks:Fe(D.withSimilar.callbacks,function(J){return J!==d})}),withoutSimilar:fo(fo({},D.withoutSimilar),{callbacks:Fe(D.withoutSimilar.callbacks,function(J){return J!==d})}),withVars:Fe(D.withVars,function(J){return J.callback!==d})}})}),o.set(m)},eL=function(o,s,d,m,E,D){return s.get()===null&&YO(s,o),ZO(o,s,d,m,E,D),{unbind:function(){return aj(s,d,m)}}},ij=function(o,s,d,m){var E=o.formatter.get(s);aS(o,s,d,m)&&(!("toggle"in E[0])||E[0].toggle)?XR(o,s,d,m):n9(o,s,d,m)},N4=function(o,s){var d=s||document,m=d.createDocumentFragment();return ct(o,function(E){m.appendChild(E.dom)}),xe.fromDom(m)},vS=function(o,s,d){return{element:o,width:s,rows:d}},tL=function(o,s){return{element:o,cells:s}},nL=function(o,s){return{x:o,y:s}},rL=function(o,s){var d=parseInt(ht(o,s),10);return isNaN(d)?1:d},sj=function(o,s,d,m,E){for(var D=rL(E,"rowspan"),J=rL(E,"colspan"),ue=o.rows,me=d;me<d+D;me++){ue[me]||(ue[me]=tL(s6(m),[]));for(var Le=s;Le<s+J;Le++){var tt=ue[me].cells;tt[Le]=me===d&&Le===s?E:tu(E)}}},lj=function(o,s,d){var m=o.rows,E=m[d]?m[d].cells:[];return!!E[s]},uj=function(o,s,d){for(;lj(o,s,d);)s++;return s},oL=function(o){return Ye(o,function(s,d){return d.cells.length>s?d.cells.length:s},0)},QO=function(o,s){for(var d=o.rows,m=0;m<d.length;m++)for(var E=d[m].cells,D=0;D<E.length;D++)if(jo(E[D],s))return re.some(nL(D,m));return re.none()},aL=function(o,s,d,m,E){for(var D=[],J=o.rows,ue=d;ue<=E;ue++){var me=J[ue].cells,Le=s<m?me.slice(s,m+1):me.slice(m,s+1);D.push(tL(J[ue].element,Le))}return D},JO=function(o,s,d){var m=s.x,E=s.y,D=d.x,J=d.y,ue=E<J?aL(o,m,E,D,J):aL(o,m,J,D,E);return vS(o.element,oL(ue),ue)},N_=function(o,s){var d=tu(o.element),m=xe.fromTag("tbody");return b1(m,s),yl(d,m),d},cj=function(o){return rt(o.rows,function(s){var d=rt(s.cells,function(E){var D=s6(E);return qn(D,"colspan"),qn(D,"rowspan"),D}),m=tu(s.element);return b1(m,d),m})},fj=function(o){var s=vS(tu(o),0,[]);return ct(Cc(o,"tr"),function(d,m){ct(Cc(d,"td,th"),function(E,D){sj(s,uj(s,D,m),m,d,E)})}),vS(s.element,oL(s.rows),s.rows)},hS=function(o){return N_(o,cj(o))},eM=function(o,s,d){return QO(o,s).bind(function(m){return QO(o,d).map(function(E){return JO(o,m,E)})})},dj=function(o){return mt(o,function(s){return si(s)==="ul"||si(s)==="ol"})},vj=function(o,s){return mt(o,function(d){return si(d)==="li"&&yv(d,s)}).fold(K([]),function(d){return dj(o).map(function(m){var E=xe.fromTag(si(m)),D=nn(Ys(m),function(J,ue){return Ze(ue,"list-style")}
83);return Aa(E,D),[xe.fromTag("li"),E]}).getOr([])})},iL=function(o,s){var d=Ye(s,function(m,E){return yl(E,m),E},o);return s.length>0?N4([d]):d},tM=function(o){return Bu(o)?ks(o).filter(od).fold(K([]),function(s){return[o,s]}):od(o)?[o]:[]},hj=function(o,s){var d=xe.fromDom(s.commonAncestorContainer),m=No(d,o),E=Fe(m,function(ue){return Lu(ue)||ta(ue)}),D=vj(m,s),J=E.concat(D.length?D:tM(d));return rt(J,tu)},r9=function(){return N4([])},Ng=function(o,s){return iL(xe.fromDom(s.cloneContents()),hj(o,s))},pj=function(o,s){return Bc(s,"table",ne(jo,o))},nM=function(o,s){return pj(o,s[0]).bind(function(d){var m=s[0],E=s[s.length-1],D=fj(d);return eM(D,m,E).map(function(J){return N4([hS(J)])})}).getOrThunk(r9)},mj=function(o,s){return s.length>0&&s[0].collapsed?r9():Ng(o,s[0])},gj=function(o,s){var d=Q0(s,o);return d.length>0?nM(o,d):mj(o,s)},yj=function(o){return o.replace(/^[ \f\n\r\t\v]+/,"")},pS=function(o,s){return s>=0&&s<o.length&&em(o.charAt(s))},rM=function(o,s){var d=$c(o.innerText);return s?yj(d):d},bj=function(o){return o.map(function(s){return s.nodeName}).getOr("div").toLowerCase()},D_=function(o){return re.from(o.selection.getRng()).map(function(s){var d=re.from(o.dom.getParent(s.commonAncestorContainer,o.dom.isBlock)),m=o.getBody(),E=bj(d),D=Io.browser.isIE()&&E!=="pre",J=o.dom.add(m,E,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},s.cloneContents()),ue=rM(J,D),me=$c(J.textContent);if(o.dom.remove(J),pS(me,0)||pS(me,me.length-1)){var Le=d.getOr(m),tt=rM(Le,D),nt=tt.indexOf(ue);if(nt===-1)return ue;var it=pS(tt,nt-1),kt=pS(tt,nt+ue.length);return(it?" ":"")+ue+(kt?" ":"")}else return ue}).getOr("")},_j=function(o,s){var d=o.selection.getRng(),m=o.dom.create("body"),E=o.selection.getSel(),D=u_(o,sw(E)),J=s.contextual?gj(xe.fromDom(o.getBody()),D).dom:d.cloneContents();return J&&m.appendChild(J),o.selection.serializer.serialize(m,s)},wj=function(o,s){return fo(fo({},o),{format:s,get:!0,selection:!0}
83)},Cj=function(o,s,d){d===void 0&&(d={});var m=wj(d,s),E=o.fire("BeforeGetContent",m);if(E.isDefaultPrevented())return o.fire("GetContent",E),E.content;if(E.format==="text")return D_(o);E.getInner=!0;var D=_j(o,E);return E.format==="tree"?D:(E.content=o.selection.isCollapsed()?"":D,o.fire("GetContent",E),E.content)},oM=0,aM=1,sL=2,xj=function(o,s){var d=o.length+s.length+2,m=new Array(d),E=new Array(d),D=function(tt,nt,it){return{start:tt,end:nt,diag:it}},J=function(tt,nt,it,kt,Nt){var Lt=me(tt,nt,it,kt);if(Lt===null||Lt.start===nt&&Lt.diag===nt-kt||Lt.end===tt&&Lt.diag===tt-it)for(var $t=tt,Jt=it;$t<nt||Jt<kt;)$t<nt&&Jt<kt&&o[$t]===s[Jt]?(Nt.push([oM,o[$t]]),++$t,++Jt):nt-tt>kt-it?(Nt.push([sL,o[$t]]),++$t):(Nt.push([aM,s[Jt]]),++Jt);else{J(tt,Lt.start,it,Lt.start-Lt.diag,Nt);for(var qt=Lt.start;qt<Lt.end;++qt)Nt.push([oM,o[qt]]);J(Lt.end,nt,Lt.end-Lt.diag,kt,Nt)}},ue=function(tt,nt,it,kt){for(var Nt=tt;Nt-nt<kt&&Nt<it&&o[Nt]===s[Nt-nt];)++Nt;return D(tt,Nt,nt)},me=function(tt,nt,it,kt){var Nt=nt-tt,Lt=kt-it;if(Nt===0||Lt===0)return null;var $t=Nt-Lt,Jt=Lt+Nt,qt=(Jt%2===0?Jt:Jt+1)/2;m[1+qt]=tt,E[1+qt]=nt+1;var Mn,xn,ln,In,ir;for(Mn=0;Mn<=qt;++Mn){for(xn=-Mn;xn<=Mn;xn+=2){for(ln=xn+qt,xn===-Mn||xn!==Mn&&m[ln-1]<m[ln+1]?m[ln]=m[ln+1]:m[ln]=m[ln-1]+1,In=m[ln],ir=In-tt+it-xn;In<nt&&ir<kt&&o[In]===s[ir];)m[ln]=++In,++ir;if($t%2!==0&&$t-Mn<=xn&&xn<=$t+Mn&&E[ln-$t]<=m[ln])return ue(E[ln-$t],xn+tt-it,nt,kt)}for(xn=$t-Mn;xn<=$t+Mn;xn+=2){for(ln=xn+qt-$t,xn===$t-Mn||xn!==$t+Mn&&E[ln+1]<=E[ln-1]?E[ln]=E[ln+1]-1:E[ln]=E[ln-1],In=E[ln]-1,ir=In-tt+it-xn;In>=tt&&ir>=it&&o[In]===s[ir];)E[ln]=In--,ir--;if($t%2===0&&-Mn<=xn&&xn<=Mn&&E[ln]<=m[ln+$t])return ue(E[ln],xn+tt-it,nt,kt)}}},Le=[];return J(0,o.length,0,s.length,Le),Le},iM=function(o){return Ko(o)?o.outerHTML:Jr(o)?ad.encodeRaw(o.data,!1):rv(o)?"<!--"+o.data+"-->":""},Ej=function(o){var s,d=document.createElement("div"),m=document.createDocumentFragment();for(o&&(d.innerHTML=o);s=d.firstChild;)m.appendChild(s);return m},Sj=function(o,s,d){var m=Ej(s);if(o.hasChildNodes()&&d<o.childNodes.length){var E=o.childNodes[d];E.parentNode.insertBefore(m,E)}else o.appendChild(m)},Tj=function(o,s){if(o.hasChildNodes()&&s<o.childNodes.length){var d=o.childNodes[s];d.parentNode.removeChild(d)}},Aj=function(o,s){var d=0;ct(o,function(m){m[0]===oM?d++:m[0]===aM?(Sj(s,m[1],d),d++):m[0]===sL&&Tj(s,d)})},kj=function(o,s){return Fe(rt(at(o.childNodes),s?te($c,iM):iM),function(d){return d.length>0})},Oj=function(o,s){var d=rt(at(s.childNodes),iM);return Aj(xj(d,o),s),s},Mj=us(function(){return document.implementation.createHTMLDocument("undo")}),sM=function(o){return o.querySelector("iframe")!==null},lL=function(o){return{type:"fragmented",fragments:o,content:"",bookmark:null,beforeBookmark:null}},Nj=function(o){return{type:"complete",fragments:null,content:o,bookmark:null,beforeBookmark:null}},I_=function(o){var s=o.serializer.getTempAttrs(),d=Eg(o.getBody(),s);return sM(d)?lL(kj(d,!0)):Nj($c(d.innerHTML))},mS=function(o,s,d){var m=d?s.beforeBookmark:s.bookmark;s.type==="fragmented"?Oj(s.fragments,o.getBody()):o.setContent(s.content,{format:"raw",no_selection:z(m)&&Dx(m)?!m.isFakeCaret:!0}),o.selection.moveToBookmark(m)},D4=function(o){return o.type==="fragmented"?o.fragments.join(""):o.content},R_=function(o){var s=xe.fromTag("body",Mj());return Lf(s,D4(o)),ct(Cc(s,"*[data-mce-bogus]"),Hv),Rf(s)},uL=function(o,s){return D4(o)===D4(s)},Dj=function(o,s){return R_(o)===R_(s)},gS=function(o,s){return!o||!s?!1:uL(o,s)?!0:Dj(o,s)},lM=function(o){return o.get()===0},yS=function(o,s,d){lM(d)&&(o.typing=s)},cL=function(o,s){o.typing&&(yS(o,!1,s),o.add())},Ij=function(o){o.typing&&(o.typing=!1,o.add())},Rj=function(o,s,d){lM(s)&&d.set(sx(o.selection))},fL=function(o,s,d,m,E,D,J){var ue=I_(o);if(D=D||{},D=Gn.extend(D,ue),lM(m)===!1||o.removed)return null;var me=s.data[d.get()];if(o.fire("BeforeAddUndo",{level:D,lastLevel:me,originalEvent:J}).isDefaultPrevented()||me&&gS(me,D))return null;s.data[d.get()]&&E.get().each(function(it){s.data[d.get()].beforeBookmark=it});var Le=qb(o);if(Le&&s.data.length>Le){for(var tt=0;tt<s.data.length-1;
83tt++)s.data[tt]=s.data[tt+1];s.data.length--,d.set(s.data.length)}D.bookmark=sx(o.selection),d.get()<s.data.length-1&&(s.data.length=d.get()+1),s.data.push(D),d.set(s.data.length-1);var nt={level:D,lastLevel:me,originalEvent:J};return d.get()>0?(o.setDirty(!0),o.fire("AddUndo",nt),o.fire("change",nt)):o.fire("AddUndo",nt),D},Lj=function(o,s,d){s.data=[],d.set(0),s.typing=!1,o.fire("ClearUndos")},o9=function(o,s,d,m,E){if(s.transact(m)){var D=s.data[d.get()].bookmark,J=s.data[d.get()-1];mS(o,J,!0),s.transact(E)&&(s.data[d.get()-1].beforeBookmark=D)}},Bj=function(o,s,d){var m;return s.get()<d.length-1&&(s.set(s.get()+1),m=d[s.get()],mS(o,m,!1),o.setDirty(!0),o.fire("Redo",{level:m})),m},Pj=function(o,s,d,m){var E;return s.typing&&(s.add(),s.typing=!1,yS(s,!1,d)),m.get()>0&&(m.set(m.get()-1),E=s.data[m.get()],mS(o,E,!0),o.setDirty(!0),o.fire("Undo",{level:E})),E},Fj=function(o){o.clear(),o.add()},$j=function(o,s,d){return d.get()>0||s.typing&&s.data[0]&&!gS(I_(o),s.data[0])},dL=function(o,s){return s.get()<o.data.length-1&&!o.typing},vL=function(o,s,d){return cL(o,s),o.beforeChange(),o.ignore(d),o.add()},hL=function(o,s){try{o.set(o.get()+1),s()}finally{o.set(o.get()-1)}},pL=function(o,s){var d=o.dom,m=z(s)?s:o.getBody();X(o.hasVisual)&&(o.hasVisual=bx(o)),ct(d.select("table,a",m),function(E){switch(E.nodeName){case"TABLE":var D=sk(o),J=d.getAttrib(E,"border");(!J||J==="0")&&o.hasVisual?d.addClass(E,D):d.removeClass(E,D);break;case"A":if(!d.getAttrib(E,"href")){var ue=d.getAttrib(E,"name")||E.id,me=P5(o);ue&&o.hasVisual?d.addClass(E,me):d.removeClass(E,me)}break}}),o.fire("VisualAid",{element:s,hasVisual:o.hasVisual})},bS=function(o){return{undoManager:{beforeChange:function(s,d){return Rj(o,s,d)},add:function(s,d,m,E,D,J){return fL(o,s,d,m,E,D,J)},undo:function(s,d,m){return Pj(o,s,d,m)},redo:function(s,d){return Bj(o,s,d)},clear:function(s,d){return Lj(o,s,d)},reset:function(s){return Fj(s)},hasUndo:function(s,d){return $j(o,s,d)},hasRedo:function(s,d){return dL(s,d)},transact:function(s,d,m){return vL(s,d,m)},ignore:function(s,d){return hL(s,d)},extra:function(s,d,m,E){return o9(o,s,d,m,E)}},formatter:{match:function(s,d,m,E){return aS(o,s,d,m,E)},matchAll:function(s,d){return FO(o,s,d)},matchNode:function(s,d,m,E){return vm(o,s,d,m,E)},canApply:function(s){return OR(o,s)},closest:function(s){return $O(o,s)},apply:function(s,d,m){return n9(o,s,d,m)},remove:function(s,d,m,E){return XR(o,s,d,m,E)},toggle:function(s,d,m){return ij(o,s,d,m)},formatChanged:function(s,d,m,E,D){return eL(o,s,d,m,E,D)}},editor:{getContent:function(s,d){return Uw(o,s,d)},setContent:function(s,d){return PU(o,s,d)},insertContent:function(s,d){return MO(o,s,d)},addVisual:function(s){return pL(o,s)}},selection:{getContent:function(s,d){return Cj(o,s,d)}},raw:{getModel:function(){return re.none()}}}},mL=function(o){var s=function(ue){return F(ue)?ue:{}},d=o.undoManager,m=o.formatter,E=o.editor,D=o.selection,J=o.raw;return{undoManager:{beforeChange:d.beforeChange,add:d.add,undo:d.undo,redo:d.redo,clear:d.clear,reset:d.reset,hasUndo:d.hasUndo,hasRedo:d.hasRedo,transact:function(ue,me,Le){return d.transact(Le)},ignore:function(ue,me){return d.ignore(me)},extra:function(ue,me,Le,tt){return d.extra(Le,tt)}},formatter:{match:function(ue,me,Le,tt){return m.match(ue,s(me),tt)},matchAll:m.matchAll,matchNode:m.matchNode,canApply:function(ue){return m.canApply(ue)},closest:function(ue){return m.closest(ue)},apply:function(ue,me,Le){return m.apply(ue,s(me))},remove:function(ue,me,Le,tt){return m.remove(ue,s(me))},toggle:function(ue,me,Le){return m.toggle(ue,s(me))},formatChanged:function(ue,me,Le,tt,nt){return m.formatChanged(me,Le,tt,nt)}},editor:{getContent:function(ue,me){return E.getContent(ue)},setContent:function(ue,me){return E.setContent(ue,me)},insertContent:function(ue,me){return E.insertContent(ue)},addVisual:E.addVisual},selection:{getContent:function(ue,me){return D.getContent(me)}},raw:{getModel:function(){return re.some(J.getRawModel())}}}},zj=function(){var o=K(null),s=K("");return{undoManager:{beforeChange:$,add:o,undo:o,redo:o,clear:$,reset:$,hasUndo:U,hasRedo:U,transact:o,ignore:$,extra:$},formatter:{match:U,matchAll:K([]),matchNode:K(void 0),canApply:U,closest:s,apply:$,remove:$,toggle:$,formatChanged:K({unbind:$})},editor:{getContent:s,setContent:s,insertContent:$,addVisual:$},selection:{getContent:s},raw:{getModel:K(re.none())}}},Dg=function(o){return io(o.plugins,"rtc")},Hj=function(o){return Br(o.plugins,"rtc").bind(function(s){return re.from(s.setup)})},Vj=function(o){var s=o;return Hj(o).fold(function(){return s.rtcInstance=bS(o),re.none()},function(d){return s.rtcInstance=zj(),re.some(function(){return d().then(function(m){return s.rtcInstance=mL(m),m.rtc.isRemote})})})},uM=function(o){return o.rtcInstance?o.rtcInstance:bS(o)},zu=function(o){var s=o.rtcInstance;if(s)return s;throw new Error("Failed to get RTC instance not yet initialized.")},cM=function(o,s,d){zu(o).undoManager.beforeChange(s,d)},gL=function(o,s,d,m,E,D,J){return zu(o).undoManager.add(s,d,m,E,D,J)},_S=function(o,s,d,m){return zu(o).undoManager.undo(s,d,m)},Cv=function(o,s,d){return zu(o).undoManager.redo(s,d)},a9=function(o,s,d){zu(o).undoManager.clear(s,d)},I4=function(o,s){zu(o).undoManager.reset(s)},Uj=function(o,s,d){return zu(o).undoManager.hasUndo(s,d)},yL=function(o,s,d){return zu(o).undoManager.hasRedo(s,d)},bL=function(o,s,d,m){return zu(o).undoManager.transact(s,d,m)},jj=function(o,s,d){zu(o).undoManager.ignore(s,d)},Wj=function(o,s,d,m,E){zu(o).undoManager.extra(s,d,m,E)},Gj=function(o,s,d,m,E){return zu(o).formatter.match(s,d,m,E)},_L=function(o,s,d){return zu(o).formatter.matchAll(s,d)},wS=function(o,s,d,m,E){return zu(o).formatter.matchNode(s,d,m,E)},wL=function(o,s){return zu(o).formatter.canApply(s)},CL=function(o,s){return zu(o).formatter.closest(s)},CS=function(o,s,d,m){zu(o).formatter.apply(s,d,m)},Kj=function(o,s,d,m,E){zu(o).formatter.remove(s,d,m,E)},Yj=function(o,s,d,m){zu(o).formatter.toggle(s,d,m)},qj=function(o,s,d,m,E,D){return zu(o).formatter.formatChanged(s,d,m,E,D)},Xj=function(o,s,d){return uM(o).editor.getContent(s,d)},Zj=function(o,s,d){return uM(o).editor.setContent(s,d)},Qj=function(o,s,d){return uM(o).editor.insertContent(s,d)},Jj=function(o,s,d){return zu(o).selection.getContent(s,d)},eW=function(o,s){return zu(o).editor.addVisual(s)},tW=function(o,s){s===void 0&&(s={});var d=s.format?s.format:"html";return Jj(o,d,s)},xL=function(o){return o.dom.length===0?(Gs(o),re.none()):re.some(o)},nW=function(o,s){return o.filter(function(d){return om.isBookmarkNode(d.dom)}).bind(s?pf:Pv)},rW=function(o,s,d,m){var E=o.dom,D=s.dom,J=m?E.length:D.length;m?(w_(E,D,!1,!m),d.setStart(D,J)):(w_(D,E,!1,!m),d.setEnd(D,J))},fM=function(o,s){ks(o).each(function(d){var m=o.dom;s&&Jh(d,Kn(m,0))?Cy(m,0):!s&&C4(d,Kn(m,m.length))&&Qa(m,m.length)})},EL=function(o,s,d,m){o.bind(function(E){var D=m?Qa:Cy;return D(E.dom,m?E.dom.length:0),s.filter($s).map(function(J){return rW(E,J,d,m)})}).orThunk(function(){var E=nW(s,m).or(s).filter($s);return E.map(function(D){return fM(D,m)})})},L_=function(o,s){var d=re.from(s.firstChild).map(xe.fromDom),m=re.from(s.lastChild).map(xe.fromDom);o.deleteContents(),o.insertNode(s);var E=d.bind(Pv).filter($s).bind(xL),D=m.bind(pf).filter($s).bind(xL);EL(E,d,o,!0),EL(D,m,o,!1),o.collapse(!1)},SL=function(o,s){return fo(fo({format:"html"},o),{set:!0,selection:!0,content:s})},Hu=function(o,s){if(s.format!=="raw"){var d=o.selection.getRng(),m=o.dom.getParent(d.commonAncestorContainer,o.dom.isBlock),E=m?{context:m.nodeName.toLowerCase()}:{},D=o.parser.parse(s.content,fo(fo({isRootContent:!0,forced_root_block:!1},E),s));return Sg({validate:o.validate}
83,o.schema).serialize(D)}else return s.content},oW=function(o,s,d){d===void 0&&(d={});var m=SL(d,s),E=m;if(!m.no_events){var D=o.fire("BeforeSetContent",m);if(D.isDefaultPrevented()){o.fire("SetContent",D);return}else E=D}E.content=Hu(o,E);var J=o.selection.getRng();L_(J,J.createContextualFragment(E.content)),o.selection.setRng(J),s4(o,J),E.no_events||o.fire("SetContent",E)},TL=function(o,s,d){if(o&&io(o,s)){var m=Fe(o[s],function(E){return E!==d});m.length===0?delete o[s]:o[s]=m}};function aW(o,s){var d,m,E=function(J,ue){return mt(ue,function(me){return o.is(me,J)})},D=function(J){return o.getParents(J,null,o.getRoot())};return{selectorChangedWithUnbind:function(J,ue){return d||(d={},m={},s.on("NodeChange",function(me){var Le=me.element,tt=D(Le),nt={};Gn.each(d,function(it,kt){E(kt,tt).each(function(Nt){m[kt]||(ct(it,function(Lt){Lt(!0,{node:Nt,selector:kt,parents:tt})}),m[kt]=it),nt[kt]=it})}),Gn.each(m,function(it,kt){nt[kt]||(delete m[kt],Gn.each(it,function(Nt){Nt(!1,{node:Le,selector:kt,parents:tt})}))})})),d[J]||(d[J]=[]),d[J].push(ue),E(J,D(s.selection.getStart())).each(function(){m[J]=d[J]}),{unbind:function(){TL(d,J,ue),TL(m,J,ue)}}}}}var AL=function(o){return!!o.select},uh=function(o){return!!(o&&o.ownerDocument)&&di(xe.fromDom(o.ownerDocument),xe.fromDom(o))},xS=function(o){return o?AL(o)?!0:uh(o.startContainer)&&uh(o.endContainer):!1},B_=function(o,s,d,m){var E,D,J=aW(o,m).selectorChangedWithUnbind,ue=function(mr,ro){var Va=o.createRng();z(mr)&&z(ro)?(Va.setStart(mr,ro),Va.setEnd(mr,ro),Mn(Va),$t(!1)):(nm(o,Va,m.getBody(),!0),Mn(Va))},me=function(mr){return tW(m,mr)},Le=function(mr,ro){return oW(m,mr,ro)},tt=function(mr){return xg(m.getBody(),qt(),mr)},nt=function(mr){return gy(m.getBody(),qt(),mr)},it=function(mr,ro){return Fr.getBookmark(mr,ro)},kt=function(mr){return Fr.moveToBookmark(mr)},Nt=function(mr,ro){return eO(o,mr,ro).each(Mn),mr},Lt=function(){var mr=qt(),ro=Jt();return!mr||mr.item?!1:mr.compareEndPoints?mr.compareEndPoints("StartToEnd",mr)===0:!ro||mr.collapsed},$t=function(mr){var ro=qt();ro.collapse(!!mr),Mn(ro)},Jt=function(){return s.getSelection?s.getSelection():s.document.selection},qt=function(){var mr,ro,Va,Oi=function(vl,pd,U1){try{return pd.compareBoundaryPoints(vl,U1)}catch{return-1}},Si=s.document;if(m.bookmark!==void 0&&B1(m)===!1){var Oc=hy(m);if(Oc.isSome())return Oc.map(function(vl){return u_(m,[vl])[0]}).getOr(Si.createRange())}try{(mr=Jt())&&!C1(mr.anchorNode)&&(mr.rangeCount>0?ro=mr.getRangeAt(0):ro=mr.createRange?mr.createRange():Si.createRange(),ro=u_(m,[ro])[0])}catch{}return ro||(ro=Si.createRange?Si.createRange():Si.body.createTextRange()),ro.setStart&&ro.startContainer.nodeType===9&&ro.collapsed&&(Va=o.getRoot(),ro.setStart(Va,0),ro.setEnd(Va,0)),E&&D&&(Oi(ro.START_TO_START,ro,E)===0&&Oi(ro.END_TO_END,ro,E)===0?ro=D:(E=null,D=null)),ro},Mn=function(mr,ro){var Va;if(!!xS(mr)){var Oi=AL(mr)?mr:null;if(Oi){D=null;try{Oi.select()}catch{}return}var Si=Jt(),Oc=m.fire("SetSelectionRange",{range:mr,forward:ro});if(mr=Oc.range,Si){D=mr;try{Si.removeAllRanges(),Si.addRange(mr)}catch{}ro===!1&&Si.extend&&(Si.collapse(mr.endContainer,mr.endOffset),Si.extend(mr.startContainer,mr.startOffset)),E=Si.rangeCount>0?Si.getRangeAt(0):null}!mr.collapsed&&mr.startContainer===mr.endContainer&&Si.setBaseAndExtent&&!Io.ie&&mr.endOffset-mr.startOffset<2&&mr.startContainer.hasChildNodes()&&(Va=mr.startContainer.childNodes[mr.startOffset],Va&&Va.tagName==="IMG"&&(Si.setBaseAndExtent(mr.startContainer,mr.startOffset,mr.endContainer,mr.endOffset),(Si.anchorNode!==mr.startContainer||Si.focusNode!==mr.endContainer)&&Si.setBaseAndExtent(Va,0,Va,1))),m.fire("AfterSetSelectionRange",{range:mr,forward:ro})}},xn=function(mr){return Le(o.getOuterHTML(mr)),mr},ln=function(){return SE(m.getBody(),qt())},In=function(mr,ro){return l_(o,qt(),mr,ro)},ir=function(){var mr=Jt(),ro=mr==null?void 0:mr.anchorNode,Va=mr==null?void 0:mr.focusNode;if(!mr||!ro||!Va||C1(ro)||C1(Va))return!0;var Oi=o.createRng();Oi.setStart(ro,mr.anchorOffset),Oi.collapse(!0);var Si=o.createRng();return Si.setStart(Va,mr.focusOffset),Si.collapse(!0),Oi.compareBoundaryPoints(Oi.START_TO_START,Si)<=0},_r=function(){var mr=qt(),ro=Jt();if(!uw(ro)&&rm(m)){var Va=Q6(o,mr);return Va.each(function(Oi){Mn(Oi,ir())}),Va.getOr(mr)}return mr},Go=function(mr,ro){return J(mr,ro),Tr},eo=function(){for(var mr,ro=o.getRoot();ro&&ro.nodeName!=="BODY";){if(ro.scrollHeight>ro.clientHeight){mr=ro;break}ro=ro.parentNode}return mr},lr=function(mr,ro){z(mr)?Kk(m,mr,ro):s4(m,qt(),ro)},Lo=function(mr,ro){return Mn(_w(mr,ro,m.getDoc()))},Sr=function(){var mr=qt();return mr.collapsed?Kn.fromRangeStart(mr).getClientRects()[0]:mr.getBoundingClientRect()},Xr=function(){s=E=D=null,ho.destroy()},Tr={bookmarkManager:null,controlSelection:null,dom:o,win:s,serializer:d,editor:m,collapse:$t,setCursorLocation:ue,getContent:me,setContent:Le,getBookmark:it,moveToBookmark:kt,select:Nt,isCollapsed:Lt,isForward:ir,setNode:xn,getNode:ln,getSel:Jt,setRng:Mn,getRng:qt,getStart:tt,getEnd:nt,getSelectedBlocks:In,normalize:_r,selectorChanged:Go,selectorChangedWithUnbind:J,getScrollC
83ontainer:eo,scrollIntoView:lr,placeCaretAt:Lo,getBoundingClientRect:Sr,destroy:Xr},Fr=om(Tr),ho=yw(Tr,m);return Tr.bookmarkManager=Fr,Tr.controlSelection=ho,Tr},i9=function(o,s){ct(s,function(d){o.attr(d,null)})},dM=function(o,s,d){o.addNodeFilter("font",function(m){ct(m,function(E){var D=s.parse(E.attr("style")),J=E.attr("color"),ue=E.attr("face"),me=E.attr("size");J&&(D.color=J),ue&&(D["font-family"]=ue),me&&(D["font-size"]=d[parseInt(E.attr("size"),10)-1]),E.name="span",E.attr("style",s.serialize(D)),i9(E,["color","face","size"])})})},iW=function(o,s){o.addNodeFilter("strike",function(d){ct(d,function(m){var E=s.parse(m.attr("style"));E["text-decoration"]="line-through",m.name="span",m.attr("style",s.serialize(E))})})},sW=function(o,s){var d=a1();s.convert_fonts_to_spans&&dM(o,d,Gn.explode(s.font_size_legacy_values)),iW(o,d)},P_=function(o,s){s.inline_styles&&sW(o,s)},F_=function(o){return new Zl(function(s,d){var m=function(){d("Cannot convert "+o+" to Blob. Resource might not exist or is inaccessible.")};try{var E=new XMLHttpRequest;E.open("GET",o,!0),E.responseType="blob",E.onload=function(){E.status===200?s(E.response):m()},E.onerror=m,E.send()}catch{m()}})},Ty=function(o){var s,d=decodeURIComponent(o).split(","),m=/data:([^;]+)/.exec(d[0]);return m&&(s=m[1]),{type:s,data:d[1]}},ES=function(o,s){var d;try{d=atob(s)}catch{return re.none()}for(var m=new Uint8Array(d.length),E=0;E<m.length;E++)m[E]=d.charCodeAt(E);return re.some(new Blob([m],{type:o}))},lW=function(o){return new Zl(function(s){var d=Ty(o),m=d.type,E=d.data;ES(m,E).fold(function(){return s(new Blob([]))},s)})},SS=function(o){return o.indexOf("blob:")===0?F_(o):o.indexOf("data:")===0?lW(o):null},kL=function(o){return new Zl(function(s){var d=new FileReader;d.onloadend=function(){s(d.result)},d.readAsDataURL(o)})},OL=0,vM=function(o){return(o||"blobid")+OL++},uW=function(o,s,d,m){var E,D;if(s.src.indexOf("blob:")===0){D=o.getByUri(s.src),D?d({image:s,blobInfo:D}):SS(s.src).then(function(Le){kL(Le).then(function(tt){E=Ty(tt).data,D=o.create(vM(),Le,E),o.add(D),d({image:s,blobInfo:D})})},function(Le){m(Le)});return}var J=Ty(s.src),ue=J.data,me=J.type;E=ue,D=o.getByData(E,me),D?d({image:s,blobInfo:D}):SS(s.src).then(function(Le){D=o.create(vM(),Le,E),o.add(D),d({image:s,blobInfo:D})},function(Le){m(Le)})},ML=function(o){return o?at(o.getElementsByTagName("img")):[]},cW=function(o,s){var d={},m=function(E,D){D||(D=j);var J=Fe(ML(E),function(me){var Le=me.src;return!Io.fileApi||me.hasAttribute("data-mce-bogus")||me.hasAttribute("data-mce-placeholder")||!Le||Le===Io.transparentSrc?!1:Le.indexOf("blob:")===0?!o.isUploaded(Le)&&D(me):Le.indexOf("data:")===0?D(me):!1}),ue=rt(J,function(me){if(d[me.src]!==void 0)return new Zl(function(tt){d[me.src].then(function(nt){if(typeof nt=="string")return nt;tt({image:me,blobInfo:nt.blobInfo})})});var Le=new Zl(function(tt,nt){uW(s,me,tt,nt)}).then(function(tt){return delete d[tt.image.src],tt}).catch(function(tt){return delete d[me.src],tt});return d[me.src]=Le,Le});return Zl.all(ue)};return{findAll:m}},fW=function(o){for(var s=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,d=[],m={},E=ex("img"),D,J=0,ue=0;D=s.exec(o);){var me=D[0],Le=E+"_"+ue++;m[Le]=me,J<D.index&&d.push(o.substr(J,D.index-J)),d.push(Le),J=D.index+me.length}var tt=new RegExp(E+"_[0-9]+","g");return J===0?{prefix:E,uris:m,html:o,re:tt}:(J<o.length&&d.push(o.substr(J)),{prefix:E,uris:m,html:d.join(""),re:tt})},hM=function(o,s){return o.replace(s.re,function(d){return Br(s.uris,d).getOr(d)})},dW=function(o){var s=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(o);return s?re.some({type:s[1],data:decodeURIComponent(s[2])}):re.none()},pM=function(o,s,d,m){var E=o.padd_empty_with_br||s.insert;E&&d[m.name]?m.empty().append(new P1("br",1)).shortEnded=!0:m.empty().append(new P1("#text",3)).value=Zc},NL=function(o){return DL(o,"#text")&&o.firstChild.value===Zc},DL=function(o,s){return o&&o.firstChild&&o.firstChild===o.lastChild&&o.firstChild.name===s},s9=function(o,s){var d=o.getElementRule(s.name);return d&&d.paddEmpty},$_=function(o,s,d,m){return m.isEmpty(s,d,function(E){return s9(o,E)})},vW=function(o,s){return o&&(io(s,o.name)||o.name==="br")},IL=function(o){return z(o.attr("data-mce-bogus"))},hW=function(o){return o.attr("src")===Io.transparentSrc||z(o.attr("data-mce-placeholder"))},RL=function(o,s){if(s.images_dataimg_filter){var d=new Image;return d.src=o.attr("src"),Vt(o.attributes.map,function(m,E){d.setAttribute(E,m)}),s.images_dataimg_filter(d)}else return!0},pW=function(o,s){var d=s.blob_cache,m=function(E){var D=E.attr("src");
83hW(E)||IL(E)||dW(D).filter(function(){return RL(E,s)}).bind(function(J){var ue=J.type,me=J.data;return re.from(d.getByData(me,ue)).orThunk(function(){return ES(ue,me).map(function(Le){var tt=d.create(vM(),Le,me);return d.add(tt),tt})})}).each(function(J){E.attr("src",J.blobUri())})};d&&o.addAttributeFilter("src",function(E){return ct(E,m)})},mW=function(o,s){var d=o.schema;s.remove_trailing_brs&&o.addNodeFilter("br",function(m,E,D){var J,ue=m.length,me,Le=Gn.extend({},d.getBlockElements()),tt=d.getNonEmptyElements(),nt,it,kt,Nt,Lt=d.getWhiteSpaceElements(),$t,Jt;for(Le.body=1,J=0;J<ue;J++)if(me=m[J],nt=me.parent,Le[me.parent.name]&&me===nt.lastChild){for(kt=me.prev;kt;){if(Nt=kt.name,Nt!=="span"||kt.attr("data-mce-type")!=="bookmark"){Nt==="br"&&(me=null);break}kt=kt.prev}me&&(me.remove(),$_(d,tt,Lt,nt)&&($t=d.getElementRule(nt.name),$t&&($t.removeEmpty?nt.remove():$t.paddEmpty&&pM(s,D,Le,nt))))}else{for(it=me;nt&&nt.firstChild===it&&nt.lastChild===it&&(it=nt,!Le[nt.name]);)nt=nt.parent;it===nt&&s.padd_empty_with_br!==!0&&(Jt=new P1("#text",3),Jt.value=Zc,me.replace(Jt))}}),o.addAttributeFilter("href",function(m){var E=m.length,D=function(me){var Le=me.split(" ").filter(function(tt){return tt.length>0});return Le.concat(["noopener"]).sort().join(" ")},J=function(me){var Le=me?Gn.trim(me):"";return/\b(noopener)\b/g.test(Le)?Le:D(Le)};if(!s.allow_unsafe_link_target)for(;E--;){var ue=m[E];ue.name==="a"&&ue.attr("target")==="_blank"&&ue.attr("rel",J(ue.attr("rel")))}}),s.allow_html_in_named_anchor||o.addAttributeFilter("id,name",function(m){for(var E=m.length,D,J,ue,me;E--;)if(me=m[E],me.name==="a"&&me.firstChild&&!me.attr("href")){ue=me.parent,D=me.lastChild;do J=D.prev,ue.insert(D,me),D=J;while(D)}}),s.fix_list_elements&&o.addNodeFilter("ul,ol",function(m){for(var E=m.length,D,J;E--;)if(D=m[E],J=D.parent,J.name==="ul"||J.name==="ol")if(D.prev&&D.prev.name==="li")D.prev.append(D);else{var ue=new P1("li",1);ue.attr("style","list-style-type: none"),D.wrap(ue)}}),s.validate&&d.getValidClasses()&&o.addAttributeFilter("class",function(m){for(var E=d.getValidClasses(),D=m.length;D--;){for(var J=m[D],ue=J.attr("class").split(" "),me="",Le=0;Le<ue.length;Le++){var tt=ue[Le],nt=!1,it=E["*"];it&&it[tt]&&(nt=!0),it=E[J.name],!nt&&it&&it[tt]&&(nt=!0),nt&&(me&&(me+=" "),me+=tt)}me.length||(me=null),J.attr("class",me)}}),pW(o,s)},mM=Gn.each,LL=Gn.trim,BL="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),PL={ftp:21,http:80,https:443,mailto:25},FL=["img","video"],gW=function(o,s){return z(o)?!o:z(s)?!De(FL,s):!0},yW=function(o,s,d){return o.allow_html_data_urls?!1:/^data:image\//i.test(s)?gW(o.allow_svg_data_urls,d)&&/^data:image\/svg\+xml/i.test(s):/^data:/i.test(s)},Ay=function(){function o(s,d){s=LL(s),this.settings=d||{};var m=this.settings.base_uri,E=this;if(/^([\w\-]+):([^\/]{2})/i.test(s)||/^\s*#/.test(s)){E.source=s;return}var D=s.indexOf("//")===0;if(s.indexOf("/")===0&&!D&&(s=(m&&m.protocol||"http")+"://mce_host"+s),!/^[\w\-]*:?\/\//.test(s)){var J=this.settings.base_uri?this.settings.base_uri.path:new o(document.location.href).directory;if(this.settings.base_uri&&this.settings.base_uri.protocol=="")s="//mce_host"+E.toAbsPath(J,s);else{var ue=/([^#?]*)([#?]?.*)/.exec(s);s=(m&&m.protocol||"http")+"://mce_host"+E.toAbsPath(J,ue[1])+ue[2]}}s=s.replace(/@@/g,"(mce_at)");var me=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(s);mM(BL,function(Le,tt){var nt=me[tt];nt&&(nt=nt.replace(/\(mce_at\)/g,"@@")),E[Le]=nt}),m&&(E.protocol||(E.protocol=m.protocol),E.userInfo||(E.userInfo=m.userInfo),!E.port&&E.host==="mce_host"&&(E.port=m.port),(!E.host||E.host==="mce_host")&&(E.host=m.host),E.source=""),D&&(E.protocol="")}return o.parseDataUri=function(s){var d,m=decodeURIComponent(s).split(","),E=/data:([^;]+)/.exec(m[0]);return E&&(d=E[1]),{type:d,data:m[1]}},o.isDomSafe=function(s,d,m){if(m===void 0&&(m={}),m.allow_script_urls)return!0;var E=ad.decode(s).replace(/[\s\u0000-\u001F]+/g,"");try{E=decodeURIComponent(E)}catch{E=unescape(E)}return/((java|vb)script|mhtml):/i.test(E)?!1:!yW(m,E,d)},o.getDocumentBaseUrl=function(s){var d;return s.protocol.indexOf("http")!==0&&s.protocol!=="file:"?d=s.href:d=s.protocol+"//"+s.host+s.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(d)&&(d=d.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(d)||(d+="/")),d},o.prototype.setPath=function(s){var d=/^(.*?)\/?(\w+)?$/.exec(s);this.path=d[0],this.directory=d[1],this.file=d[2],this.source="",this.getURI()},o.prototype.toRelative=function(s){var d;if(s==="./")return s;var m=new o(s,{base_uri:this});if(m.host!=="mce_host"&&this.host!==m.host&&m.host||this.port!==m.port||this.protocol!==m.protocol&&m.protocol!=="")return m.getURI();var E=this.getURI(),D=m.getURI();return E===D||E.charAt(E.length-1)==="/"&&E.substr(0,E.length-1)===D?E:(d=this.toRelPath(this.path,m.path),m.query&&(d+="?"+m.query),m.anchor&&(d+="#"+m.anchor),d)},o.prototype.toAbsolute=function(s,d){var m=new o(s,{base_uri:this});return m.getURI(d&&this.isSameOrigin(m))},o.prototype.isSameOrigin=function(s){if(this.host==s.host&&this.protocol==s.protocol){if(this.port==s.port)return!0;var d=PL[this.protocol];if(d&&(this.port||d)==(s.port||d))return!0}return!1},o.prototype.toRelPath=function(s,d){var m=0,E="",D,J,ue=s.substring(0,s.lastIndexOf("/")).split("/"),me=d.split("/");if(ue.length>=me.length){for(D=0,J=ue.length;D<J;D++)if(D>=me.length||ue[D]!==me[D]){m=D+1;break}}if(ue.length<me.length){for(D=0,J=me.length;D<J;D++)if(D>=ue.length||ue[D]!==me[D]){m=D+1;break}}if(m===1)return d;for(D=0,J=ue.length-(m-1);D<J;D++)E+="../";
83for(D=m-1,J=me.length;D<J;D++)D!==m-1?E+="/"+me[D]:E+=me[D];return E},o.prototype.toAbsPath=function(s,d){var m,E=0,D=[],J,ue=/\/$/.test(d)?"/":"",me=s.split("/"),Le=d.split("/");for(mM(me,function(tt){tt&&D.push(tt)}),me=D,m=Le.length-1,D=[];m>=0;m--)if(!(Le[m].length===0||Le[m]===".")){if(Le[m]===".."){E++;continue}if(E>0){E--;continue}D.push(Le[m])}return m=me.length-E,m<=0?J=It(D).join("/"):J=me.slice(0,m).join("/")+"/"+It(D).join("/"),J.indexOf("/")!==0&&(J="/"+J),ue&&J.lastIndexOf("/")!==J.length-1&&(J+=ue),J},o.prototype.getURI=function(s){s===void 0&&(s=!1);var d;return(!this.source||s)&&(d="",s||(this.protocol?d+=this.protocol+"://":d+="//",this.userInfo&&(d+=this.userInfo+"@"),this.host&&(d+=this.host),this.port&&(d+=":"+this.port)),this.path&&(d+=this.path),this.query&&(d+="?"+this.query),this.anchor&&(d+="#"+this.anchor),this.source=d),this.source},o}(),bW=Gn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),gM=function(o){return o.indexOf("data-")===0||o.indexOf("aria-")===0},l9=us(function(){return document.implementation.createHTMLDocument("parser")}),TS=function(o,s,d){for(var m=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,E=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,D=o.getShortEndedElements(),J=1,ue=d;J!==0;)for(m.lastIndex=ue;;){var me=m.exec(s);if(me===null)return ue;if(me[1]==="!"){Ze(me[2],"--")?ue=z_(s,!1,me.index+3):ue=z_(s,!0,me.index+1);break}else{E.lastIndex=m.lastIndex;var Le=E.exec(s);if(N(Le)||Le.index!==m.lastIndex)continue;me[1]==="/"?J-=1:io(D,me[2])||(J+=1),ue=m.lastIndex+Le[0].length;break}}return ue},$L=function(o,s){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(o.substr(s))},z_=function(o,s,d){d===void 0&&(d=0);var m=o.toLowerCase();if(m.indexOf("[if ",d)!==-1&&$L(m,d)){var E=m.indexOf("[endif]",d);return m.indexOf(">",E)}else if(s){var D=m.indexOf(">",d);return D!==-1?D:m.length}else{var J=/--!?>/g;J.lastIndex=d;var ue=J.exec(o);return ue?ue.index+ue[0].length:m.length}},_W=function(o,s){var d=o.exec(s);if(d){var m=d[1],E=d[2];return typeof m=="string"&&m.toLowerCase()==="data-mce-bogus"?E:null}else return null},yM=function(o,s){s===void 0&&(s=Tf()),o=o||{};var d=l9(),m=d.createElement("form");o.fix_self_closing!==!1&&(o.fix_self_closing=!0);var E=o.comment?o.comment:$,D=o.cdata?o.cdata:$,J=o.text?o.text:$,ue=o.start?o.start:$,me=o.end?o.end:$,Le=o.pi?o.pi:$,tt=o.doctype?o.doctype:$,nt=function(kt,Nt){Nt===void 0&&(Nt="html");for(var Lt=kt.html,$t,Jt=0,qt,Mn,xn=[],ln,In,ir,_r,Go,eo,lr,Lo,Sr,Xr,Tr,Fr,ho,mr,ro,Va,Oi,Si=0,Oc=ad.decode,vl=Gn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),pd=Nt==="html"?0:1,U1=function(Mi){var js,lc;for(js=xn.length;js--&&xn[js].name!==Mi;);if(js>=0){for(lc=xn.length-1;lc>=js;lc--)Mi=xn[lc],Mi.valid&&me(Mi.name);xn.length=js}},gr=function(Mi,js){return J(hM(Mi,kt),js)},Ir=function(Mi){Mi!==""&&(Mi.charAt(0)===">"&&(Mi=" "+Mi),!o.allow_conditional_comments&&Mi.substr(0,3).toLowerCase()==="[if"&&(Mi=" "+Mi),E(hM(Mi,kt)))},Bo=function(Mi){return hM(Mi,kt)},Ln=function(Mi,js){var lc=Mi||"",dp=!Ze(lc,"--"),vp=z_(Lt,dp,js);return Mi=Lt.substr(js,vp-js),Ir(dp?lc+Mi:Mi),vp+1},Cr=function(Mi,js,lc,dp,vp){if(js=js.toLowerCase(),lc=Bo(js in sc?js:Oc(lc||dp||vp||"")),Vu&&!Go&&gM(js)===!1){var hp=Tr[js];if(!hp&&Fr){for(var Uy=Fr.length;Uy--&&(hp=Fr[Uy],!hp.pattern.test(js)););Uy===-1&&(hp=null)}if(!hp||hp.validValues&&!(lc in hp.validValues))return}var oD=js==="name"||js==="id";oD&&Mi in bW&&(lc in d||lc in m)||vl[js]&&!Ay.isDomSafe(lc,Mi,o)||Go&&(js in vl||js.indexOf("on")===0)||(ln.map[js]=lc,ln.push({name:js,value:lc}))},br=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),Fo=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,Wo=s.getShortEndedElements(),hs=o.self_closing_elements||s.getSelfClosingElements(),sc=s.getBoolAttrs(),Vu=o.validate,Hf=o.remove_internals,Vf=o.fix_self_closing,Pd=s.getSpecialElements(),Uu=Lt+">";$t=br.exec(Uu);){var Tv=$t[0];if(Jt<$t.index&&gr(Oc(Lt.substr(Jt,$t.index-Jt))),qt=$t[7])qt=qt.toLowerCase(),qt.charAt(0)===":"&&(qt=qt.substr(1)),U1(qt);else if(qt=$t[8]){if($t.index+Tv.length>Lt.length){gr(Oc(Lt.substr($t.index))),Jt=$t.index+Tv.length;continue}
83qt=qt.toLowerCase(),qt.charAt(0)===":"&&(qt=qt.substr(1)),eo=qt in Wo,Vf&&hs[qt]&&xn.length>0&&xn[xn.length-1].name===qt&&U1(qt);var Fd=_W(Fo,$t[9]);if(Fd!==null){if(Fd==="all"){Jt=TS(s,Lt,br.lastIndex),br.lastIndex=Jt;continue}Lo=!1}if(!Vu||(lr=s.getElementRule(qt))){if(Lo=!0,Vu&&(Tr=lr.attributes,Fr=lr.attributePatterns),(Xr=$t[9])?(Go=Xr.indexOf("data-mce-type")!==-1,Go&&Hf&&(Lo=!1),ln=[],ln.map={},Xr.replace(Fo,function(Mi,js,lc,dp,vp){return Cr(qt,js,lc,dp,vp),""})):(ln=[],ln.map={}),Vu&&!Go){if(ho=lr.attributesRequired,mr=lr.attributesDefault,ro=lr.attributesForced,Va=lr.removeEmptyAttrs,Va&&!ln.length&&(Lo=!1),ro)for(In=ro.length;In--;)Sr=ro[In],_r=Sr.name,Oi=Sr.value,Oi==="{$uid}"&&(Oi="mce_"+Si++),ln.map[_r]=Oi,ln.push({name:_r,value:Oi});if(mr)for(In=mr.length;In--;)Sr=mr[In],_r=Sr.name,_r in ln.map||(Oi=Sr.value,Oi==="{$uid}"&&(Oi="mce_"+Si++),ln.map[_r]=Oi,ln.push({name:_r,value:Oi}));if(ho){for(In=ho.length;In--&&!(ho[In]in ln.map););In===-1&&(Lo=!1)}if(Sr=ln.map["data-mce-bogus"]){if(Sr==="all"){Jt=TS(s,Lt,br.lastIndex),br.lastIndex=Jt;continue}Lo=!1}}Lo&&ue(qt,ln,eo)}else Lo=!1;if(Mn=Pd[qt]){Mn.lastIndex=Jt=$t.index+Tv.length,($t=Mn.exec(Lt))?(Lo&&(ir=Lt.substr(Jt,$t.index-Jt)),Jt=$t.index+$t[0].length):(ir=Lt.substr(Jt),Jt=Lt.length),Lo&&(ir.length>0&&gr(ir,!0),me(qt)),br.lastIndex=Jt;continue}eo||(!Xr||Xr.indexOf("/")!==Xr.length-1?xn.push({name:qt,valid:Lo}):Lo&&me(qt))}else if(qt=$t[1])Ir(qt);else if(qt=$t[2]){var gm=pd===1||o.preserve_cdata||xn.length>0&&s.isValidChild(xn[xn.length-1].name,"#cdata");if(gm)D(qt);else{Jt=Ln("",$t.index+2),br.lastIndex=Jt;continue}}else if(qt=$t[3])tt(qt);else if((qt=$t[4])||Tv==="<!"){Jt=Ln(qt,$t.index+Tv.length),br.lastIndex=Jt;continue}else if(qt=$t[5])if(pd===1)Le(qt,$t[6]);else{Jt=Ln("?",$t.index+2),br.lastIndex=Jt;continue}Jt=$t.index+Tv.length}for(Jt<Lt.length&&gr(Oc(Lt.substr(Jt))),In=xn.length-1;In>=0;In--)qt=xn[In],qt.valid&&me(qt.name)},it=function(kt,Nt){Nt===void 0&&(Nt="html"),nt(fW(kt),Nt)};return{parse:it}};yM.findEndTag=TS;var Ig=Gn.makeMap,AS=Gn.each,bM=Gn.explode,u9=Gn.extend,kS=function(o,s){s===void 0&&(s=Tf());var d={},m=[],E={},D={};o=o||{},o.validate="validate"in o?o.validate:!0,o.root_name=o.root_name||"body";var J=function(Nt){for(var Lt=Ig("tr,td,th,tbody,thead,tfoot,table"),$t=s.getNonEmptyElements(),Jt=s.getWhiteSpaceElements(),qt=s.getTextBlockElements(),Mn=s.getSpecialElements(),xn=function(Fr,ho){if(ho===void 0&&(ho=Fr.parent),Mn[Fr.name])Fr.empty().remove();else{for(var mr=Fr.children(),ro=0,Va=mr;ro<Va.length;ro++){var Oi=Va[ro];s.isValidChild(ho.name,Oi.name)||xn(Oi,ho)}Fr.unwrap()}},ln=0;ln<Nt.length;ln++){var In=Nt[ln],ir=void 0,_r=void 0,Go=void 0;if(!(!In.parent||In.fixed)){if(qt[In.name]&&In.parent.name==="li"){for(var eo=In.next;eo&&qt[eo.name];){eo.name="li",eo.fixed=!0,In.parent.insert(eo,In.parent);eo=eo.next}In.unwrap();continue}var lr=[In];for(ir=In.parent;ir&&!s.isValidChild(ir.name,In.name)&&!Lt[ir.name];ir=ir.parent)lr.push(ir);if(ir&&lr.length>1)if(s.isValidChild(ir.name,In.name)){lr.reverse(),_r=ue(lr[0].clone());for(var Lo=_r,Sr=0;Sr<lr.length-1;Sr++){s.isValidChild(Lo.name,lr[Sr].name)?(Go=ue(lr[Sr].clone()),Lo.append(Go)):Go=Lo;for(var Xr=lr[Sr].firstChild;Xr&&Xr!==lr[Sr+1];){var Tr=Xr.next;Go.append(Xr),Xr=Tr}Lo=Go}$_(s,$t,Jt,_r)?ir.insert(In,lr[0],!0):(ir.insert(_r,lr[0],!0),ir.insert(In,_r)),ir=lr[0],($_(s,$t,Jt,ir)||DL(ir,"br"))&&ir.empty().remove()}else xn(In);else if(In.parent){if(In.name==="li"){var eo=In.prev;if(eo&&(eo.name==="ul"||eo.name==="ol")){eo.append(In);continue}if(eo=In.next,eo&&(eo.name==="ul"||eo.name==="ol")){eo.insert(In,eo.firstChild,!0);continue}In.wrap(ue(new P1("ul",1)));continue}s.isValidChild(In.parent.name,"div")&&s.isValidChild("div",In.name)?In.wrap(ue(new P1("div",1))):xn(In)}}}},ue=function(Nt){var Lt=Nt.name;if(Lt in d){var $t=E[Lt];$t?$t.push(Nt):E[Lt]=[Nt]}for(var Jt=m.length;Jt--;){var qt=m[Jt].name;if(qt in Nt.attributes.map){var $t=D[qt];$t?$t.push(Nt):D[qt]=[Nt]}}return Nt},me=function(Nt,Lt){AS(bM(Nt),function($t){var Jt=d[$t];Jt||(d[$t]=Jt=[]),Jt.push(Lt)})},Le=function(){var Nt=[];for(var Lt in d)io(d,Lt)&&Nt.push({name:Lt,callbacks:d[Lt]});return Nt},tt=function(Nt,Lt){AS(bM(Nt),function($t){var Jt;for(Jt=0;Jt<m.length;Jt++)if(m[Jt].name===$t){m[Jt].callbacks.push(Lt);return}m.push({name:$t,callbacks:[Lt]})})},nt=function(){return[].concat(m)},it=function(Nt,Lt){var $t,Jt,qt,Mn,xn,ln,In,ir=[],_r,Go=function(Ln){return Ln===!1?"":Ln===!0?"p":Ln};Lt=Lt||{},E={},D={};var eo=u9(Ig("script,style,head,html,body,title,meta,param"),s.getBlockElements()),lr=C2(s),Lo=s.getNonEmptyElements(),Sr=s.children,Xr=o.validate,Tr="forced_root_block"in Lt?Lt.forced_root_block:o.forced_root_block,Fr=Go(Tr),ho=s.getWhiteSpaceElements(),mr=/^[ \t\r\n]+/,ro=/[ \t\r\n]+$/,Va=/[ \t\r\n]+/g,Oi=/^[ \t\r\n]+$/,Si=io(ho,Lt.context)||io(ho,o.root_name),Oc=function(){var Ln=Bo.firstChild,Cr=null,br=function(Wo){Wo&&(Ln=Wo.firstChild,Ln&&Ln.type===3&&(Ln.value=Ln.value.replace(mr,"")),Ln=Wo.lastChild,Ln&&Ln.type===3&&(Ln.value=Ln.value.replace(ro,"")))};if(!!s.isValidChild(Bo.name,Fr.toLowerCase())){for(;Ln;){var Fo=Ln.next;Ln.type===3||Ln.type===1&&Ln.name!=="p"&&!eo[Ln.name]&&!Ln.attr("data-mce-type")?(Cr||(Cr=vl(Fr,1),Cr.attr(o.forced_root_block_attrs),Bo.insert(Cr,Ln)),Cr.a
83ppend(Ln)):(br(Cr),Cr=null),Ln=Fo}br(Cr)}},vl=function(Ln,Cr){var br=new P1(Ln,Cr),Fo;return Ln in d&&(Fo=E[Ln],Fo?Fo.push(br):E[Ln]=[br]),br},pd=function(Ln){for(var Cr=s.getBlockElements(),br=Ln.prev;br&&br.type===3;){var Fo=br.value.replace(ro,"");if(Fo.length>0){br.value=Fo;return}var Wo=br.next;if(Wo){if(Wo.type===3&&Wo.value.length){br=br.prev;continue}if(!Cr[Wo.name]&&Wo.name!=="script"&&Wo.name!=="style"){br=br.prev;continue}}var hs=br.prev;br.remove(),br=hs}},U1=function(Ln){var Cr={};for(var br in Ln)br!=="li"&&br!=="p"&&(Cr[br]=Ln[br]);return Cr},gr=function(Ln){for(var Cr=Ln;z(Cr);){if(Cr.name in lr)return $_(s,Lo,ho,Cr);Cr=Cr.parent}return!1},Ir=yM({validate:Xr,document:o.document,allow_html_data_urls:o.allow_html_data_urls,allow_svg_data_urls:o.allow_svg_data_urls,allow_script_urls:o.allow_script_urls,allow_conditional_comments:o.allow_conditional_comments,preserve_cdata:o.preserve_cdata,self_closing_elements:U1(s.getSelfClosingElements()),cdata:function(Ln){_r.append(vl("#cdata",4)).value=Ln},text:function(Ln,Cr){var br;Si||(Ln=Ln.replace(Va," "),vW(_r.lastChild,eo)&&(Ln=Ln.replace(mr,""))),Ln.length!==0&&(br=vl("#text",3),br.raw=!!Cr,_r.append(br).value=Ln)},comment:function(Ln){_r.append(vl("#comment",8)).value=Ln},pi:function(Ln,Cr){_r.append(vl(Ln,7)).value=Cr,pd(_r)},doctype:function(Ln){var Cr=_r.append(vl("#doctype",10));Cr.value=Ln,pd(_r)},start:function(Ln,Cr,br){var Fo=Xr?s.getElementRule(Ln):{};if(Fo){var Wo=vl(Fo.outputName||Ln,1);Wo.attributes=Cr,Wo.shortEnded=br,_r.append(Wo);var hs=Sr[_r.name];hs&&Sr[Wo.name]&&!hs[Wo.name]&&ir.push(Wo);for(var sc=m.length;sc--;){var Vu=m[sc].name;Vu in Cr.map&&(ln=D[Vu],ln?ln.push(Wo):D[Vu]=[Wo])}eo[Ln]&&pd(Wo),br||(_r=Wo),!Si&&ho[Ln]&&(Si=!0)}},end:function(Ln){var Cr,br,Fo,Wo=Xr?s.getElementRule(Ln):{};if(Wo){if(eo[Ln]&&!Si){if(Cr=_r.firstChild,Cr&&Cr.type===3)if(br=Cr.value.replace(mr,""),br.length>0)Cr.value=br,Cr=Cr.next;else for(Fo=Cr.next,Cr.remove(),Cr=Fo;Cr&&Cr.type===3;)br=Cr.value,Fo=Cr.next,(br.length===0||Oi.test(br))&&(Cr.remove(),Cr=Fo),Cr=Fo;if(Cr=_r.lastChild,Cr&&Cr.type===3)if(br=Cr.value.replace(ro,""),br.length>0)Cr.value=br,Cr=Cr.prev;else for(Fo=Cr.prev,Cr.remove(),Cr=Fo;Cr&&Cr.type===3;)br=Cr.value,Fo=Cr.prev,(br.length===0||Oi.test(br))&&(Cr.remove(),Cr=Fo),Cr=Fo}Si&&ho[Ln]&&(Si=!1);var hs=$_(s,Lo,ho,_r),sc=_r.parent;Wo.paddInEmptyBlock&&hs&&gr(_r)?pM(o,Lt,eo,_r):Wo.removeEmpty&&hs?eo[_r.name]?_r.empty().remove():_r.unwrap():Wo.paddEmpty&&(NL(_r)||hs)&&pM(o,Lt,eo,_r),_r=sc}}},s),Bo=_r=new P1(Lt.context||o.root_name,11);if(Ir.parse(Nt,Lt.format),Xr&&ir.length&&(Lt.context?Lt.invalid=!0:J(ir)),Fr&&(Bo.name==="body"||Lt.isRootContent)&&Oc(),!Lt.invalid){for(In in E)if(!!io(E,In)){for(ln=d[In],$t=E[In],Mn=$t.length;Mn--;)$t[Mn].parent||$t.splice(Mn,1);for(Jt=0,qt=ln.length;Jt<qt;Jt++)ln[Jt]($t,In,Lt)}for(Jt=0,qt=m.length;Jt<qt;Jt++)if(ln=m[Jt],ln.name in D){for($t=D[ln.name],Mn=$t.length;Mn--;)$t[Mn].parent||$t.splice(Mn,1);for(Mn=0,xn=ln.callbacks.length;Mn<xn;Mn++)ln.callbacks[Mn]($t,ln.name,Lt)}}return Bo},kt={schema:s,addAttributeFilter:tt,getAttributeFilters:nt,addNodeFilter:me,getNodeFilters:Le,filterNode:ue,parse:it};return mW(kt,o),P_(kt,o),kt},zL=function(o,s,d){o.addAttributeFilter("data-mce-tabindex",function(m,E){for(var D=m.length;D--;){var J=m[D];J.attr("tabindex",J.attr("data-mce-tabindex")),J.attr(E,null)}}),o.addAttributeFilter("src,href,style",function(m,E){for(var D="data-mce-"+E,J=s.url_converter,ue=s.url_converter_scope,me=m.length;me--;){var Le=m[me],tt=Le.attr(D);tt!==void 0?(Le.attr(E,tt.length>0?tt:null),Le.attr(D,null)):(tt=Le.attr(E),E==="style"?tt=d.serializeStyle(d.parseStyle(tt),Le.name):J&&(tt=J.call(ue,tt,E,Le.name)),Le.attr(E,tt.length>0?tt:null))}}),o.addAttributeFilter("class",function(m){for(var E=m.length;E--;){var D=m[E],J=D.attr("class");J&&(J=D.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),D.attr("class",J.length>0?J:null))}}),o.addAttributeFilter("data-mce-type",function(m,E,D){for(var J=m.length;J--;){var ue=m[J];if(ue.attr("data-mce-type")==="bookmark"&&!D.cleanup){var me=re.from(ue.firstChild).exists(function(Le){return!_c(Le.value)});me?ue.unwrap():ue.remove()}}}),o.addNodeFilter("noscript",function(m){for(var E=m.length;E--;){var D=m[E].firstChild;D&&(D.value=ad.decode(D.value))}}),o.addNodeFilter("script,style",function(m,E){for(var D=function(tt){return tt.replace(/(<!--\[CDATA\[|\]\]-->)/g,` 84`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},J=m.length;J--;){var ue=m[J],me=ue.firstChild?ue.firstChild.value:"";if(E==="script"){var Le=ue.attr("type");Le&&ue.attr("type",Le==="mce-no/type"?null:Le.replace(/^mce\-/,"")),s.element_format==="xhtml"&&me.length>0&&(ue.firstChild.value=`// <![CDATA[ 85`+D(me)+` 86// ]]>`)}else s.element_format==="xhtml"&&me.length>0&&(ue.firstChild.value=`<!-- 87`+D(me)+` 88-->`)}}),o.addNodeFilter("#comment",function(m){for(var E=m.length;E--;){var D=m[E];s.preserve_cdata&&D.value.indexOf("[CDATA[")===0?(D.name="#cdata",D.type=4,D.value=d.decode(D.value.replace(/^\[CDATA\[|\]\]$/g,""))):D.value.indexOf("mce:protected ")===0&&(D.name="#text",D.type=3,D.raw=!0,D.value=unescape(D.value).substr(14))}}),o.addNodeFilter("xml:namespace,input",function(m,E){for(var D=m.length;D--;){var J=m[D];J.type===7?J.remove():J.type===1&&E==="input"&&!J.attr("type")&&J.attr("type","text")}}),o.addAttributeFilter("data-mce-type",function(m){ct(m,function(E){E.attr("data-mce-type")==="format-caret"&&(E.isEmpty(o.schema.getNonEmptyElements())?E.remove():E.unwrap())})}),o.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",function(m,E){for(var D=m.length;D--;)m[D].attr(E,null)})},HL=function(o){var s=function(E){return E&&E.name==="br"},d=o.lastChild;if(s(d)){var m=d.prev;s(m)&&(d.remove(),m.remove())}},VL=function(o,s,d){var m,E=o.dom,D=s.cloneNode(!0),J=document.implementation;if(J.createHTMLDocument){var ue=J.createHTMLDocument("");Gn.each(D.nodeName==="BODY"?D.childNodes:[D],function(me){ue.body.appendChild(ue.importNode(me,!0))}),D.nodeName!=="BODY"?D=ue.body.firstChild:D=ue.body,m=E.doc,E.doc=ue}return Dk(o,fo(fo({},d),{node:D})),m&&(E.doc=m),D},wW=function(o,s){return o&&o.hasEventListeners("PreProcess")&&!s.no_events},CW=function(o,s,d){return wW(o,d)?VL(o,s,d):s},xW=function(o,s,d){Gn.inArray(s,d)===-1&&(o.addAttributeFilter(d,function(m,E){for(var D=m.length;D--;)m[D].attr(E,null)}),s.push(d))},_M=function(o,s,d){if(!s.no_events&&o){var m=hw(o,fo(fo({}
88,s),{content:d}));return m.content}else return d},EW=function(o,s,d){var m=$c(d.getInner?s.innerHTML:o.getOuterHTML(s));return d.selection||Vl(xe.fromDom(s))?m:Gn.trim(m)},SW=function(o,s,d){var m=d.selection?fo({forced_root_block:!1},d):d,E=o.parse(s,m);return HL(E),E},c9=function(o,s,d){var m=Sg(o,s);return m.serialize(d)},wM=function(o,s,d,m,E){var D=c9(s,d,m);return _M(o,E,D)},TW=function(o,s){var d=["data-mce-selected"],m=s&&s.dom?s.dom:Ds.DOM,E=s&&s.schema?s.schema:Tf(o);o.entity_encoding=o.entity_encoding||"named",o.remove_trailing_brs="remove_trailing_brs"in o?o.remove_trailing_brs:!0;var D=kS(o,E);zL(D,o,m);var J=function(ue,me){me===void 0&&(me={});var Le=fo({format:"html"},me),tt=CW(s,ue,Le),nt=EW(m,tt,Le),it=SW(D,nt,Le);return Le.format==="tree"?it:wM(s,o,E,it,Le)};return{schema:E,addNodeFilter:D.addNodeFilter,addAttributeFilter:D.addAttributeFilter,serialize:J,addRules:E.addValidElements,setRules:E.setValidElements,addTempAttr:ne(xW,D,d),getTempAttrs:K(d),getNodeFilters:D.getNodeFilters,getAttributeFilters:D.getAttributeFilters}},CM=function(o,s){var d=TW(o,s);return{schema:d.schema,addNodeFilter:d.addNodeFilter,addAttributeFilter:d.addAttributeFilter,serialize:d.serialize,addRules:d.addRules,setRules:d.setRules,addTempAttr:d.addTempAttr,getTempAttrs:d.getTempAttrs,getNodeFilters:d.getNodeFilters,getAttributeFilters:d.getAttributeFilters}},AW="html",OS=function(o,s){s===void 0&&(s={});var d=s.format?s.format:AW;return Xj(o,s,d)},MS=function(o,s,d){return d===void 0&&(d={}),Zj(o,s,d)},NS=Ds.DOM,ic=function(o){NS.setStyle(o.id,"display",o.orgDisplay)},DS=function(o){return re.from(o).each(function(s){return s.destroy()})},UL=function(o){o.contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null)},kW=function(o){var s=o.formElement;s&&(s._mceOldSubmit&&(s.submit=s._mceOldSubmit,s._mceOldSubmit=null),NS.unbind(s,"submit reset",o.formEventDelegate))},OW=function(o){if(!o.removed){var s=o._selectionOverrides,d=o.editorUpload,m=o.getBody(),E=o.getElement();m&&o.save({is_removing:!0}),o.removed=!0,o.unbindAllNativeEvents(),o.hasHiddenInput&&E&&NS.remove(E.nextSibling),Vx(o),o.editorManager.remove(o),!o.inline&&m&&ic(o),Ux(o),NS.remove(o.getContainer()),DS(s),DS(d),o.destroy()}},jL=function(o,s){var d=o.selection,m=o.dom;if(!o.destroyed){if(!s&&!o.removed){o.remove();return}s||(o.editorManager.off("beforeunload",o._beforeUnload),o.theme&&o.theme.destroy&&o.theme.destroy(),DS(d),DS(m)),kW(o),UL(o),o.destroyed=!0}},MW=function(o,s){var d=F(o)&&F(s);return d?WL(o,s):s},xM=function(o){return function(){for(var s=[],d=0;d<arguments.length;d++)s[d]=arguments[d];if(s.length===0)throw new Error("Can't merge zero objects");for(var m={},E=0;E<s.length;E++){var D=s[E];for(var J in D)io(D,J)&&(m[J]=o(m[J],D[J]))}return m}},WL=xM(MW),GL="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),EM="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),NW="imagetools,toc".split(","),DW=function(o){var s=Fe(GL,function(m){return io(o,m)}),d=o.forced_root_block;return(d===!1||d==="")&&s.push("forced_root_block (false only)"),vt(s)},IW=function(o){var s=Gn.makeMap(o.plugins," "),d=function(E){return io(s,E)},m=Fs(Fs([],Fe(EM,d),!0),tn(NW,function(E){return d(E)?[E+" (moving to premium)"]:[]}),!0);return vt(m)},RW=function(o,s){var d=DW(o),m=IW(s),E=m.length>0,D=d.length>0,J=s.theme==="mobile";if(E||D||J){var ue=` 89- `,me=J?` 90 91Themes:`+ue+"mobile":"",Le=E?` 92 93Plugins:`+ue+m.join(ue):"",tt=D?` 94 95Settings:`+ue+d.join(ue):"";console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+me+Le+tt)}},LW=function(o,s){return{sections:K(o),settings:K(s)}},IS=mo().deviceType,KL=IS.isTouch(),RS=IS.isPhone(),YL=IS.isTablet(),qL=["lists","autolink","autosave"],SM={table_grid:!1,object_resizing:!1,resize:!1},H_=function(o){var s=R(o)?o.join(" "):o,d=rt(B(s)?s.split(" "):[],Gt);return Fe(d,function(m){return m.length>0})},XL=function(o){return Fe(o,ne(De,qL))},ZL=function(o,s){var d=zn(s,function(m,E){return De(o,E)});return LW(d.t,d.f)},BW=function(o,s,d){d===void 0&&(d={});var m=o.sections(),E=Br(m,s).getOr({});return Gn.extend({},d,E)},V_=function(o,s){return io(o.sections(),s)},PW=function(o,s,d){var m=o.sections();return V_(o,s)&&m[s].theme===d},LS=function(o,s){return V_(o,s)?o.sections()[s]:{}},QL=function(o,s){return Br(o,"toolbar_mode").orThunk(function(){return Br(o,"toolbar_drawer").map(function(d){return d===!1?"wrap":d})}).getOr(s)},FW=function(o,s,d,m,E){var D={id:s,theme:"silver",toolbar_mode:QL(o,"floating"),plugins:"",document_base_url:d,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,f
95igure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:E.convertURL,url_converter_scope:E};return fo(fo({},D),m?SM:{})},$W=function(o,s){var d={resize:!1,toolbar_mode:QL(o,"scrolling"),toolbar_sticky:!1},m={menubar:!1};return fo(fo(fo({},SM),d),s?m:{})},JL=function(o,s){var d=s.external_plugins?s.external_plugins:{};return o&&o.external_plugins?Gn.extend({},o.external_plugins,d):d},eB=function(o,s){return[].concat(H_(o)).concat(H_(s))},zW=function(o,s,d,m){return o&&PW(s,"mobile","mobile")?XL(m):o&&V_(s,"mobile")?m:d},HW=function(o,s,d,m){var E=H_(d.forced_plugins),D=H_(m.plugins),J=LS(s,"mobile"),ue=J.plugins?H_(J.plugins):D,me=zW(o,s,D,ue),Le=eB(E,me);if(Io.browser.isIE()&&De(Le,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return Gn.extend(m,{plugins:Le.join(" ")})},VW=function(o,s){return o&&V_(s,"mobile")},UW=function(o,s,d,m,E){var D=o?{mobile:$W(E.mobile||{},s)}:{},J=ZL(["mobile"],WL(D,E)),ue=Gn.extend(d,m,J.settings(),VW(o,J)?BW(J,"mobile"):{},{validate:!0,external_plugins:JL(m,J.settings())});return HW(o,J,m,ue)},tB=function(o,s,d,m,E){var D=FW(E,s,d,KL,o),J=UW(RS||YL,RS,D,m,E);return J.deprecation_warnings!==!1&&RW(E,J),J},R4=function(o,s,d){return re.from(s.settings[d]).filter(o)},jW=function(o){var s={};return typeof o=="string"?ct(o.indexOf("=")>0?o.split(/[;,](?![^=;,]*(?:[;,]|$))/):o.split(","),function(d){var m=d.split("=");m.length>1?s[Gn.trim(m[0])]=Gn.trim(m[1]):s[Gn.trim(m[0])]=Gn.trim(m[0])}):s=o,s},WW=function(o){return function(s){return R(s)&&Ft(s,o)}},GW=function(o,s,d,m){var E=s in o.settings?o.settings[s]:d;return m==="hash"?jW(E):m==="string"?R4(B,o,s).getOr(d):m==="number"?R4(Q,o,s).getOr(d):m==="boolean"?R4(A,o,s).getOr(d):m==="object"?R4(F,o,s).getOr(d):m==="array"?R4(R,o,s).getOr(d):m==="string[]"?R4(WW(B),o,s).getOr(d):m==="function"?R4(Y,o,s).getOr(d):E},KW=function(){var o={},s=function(E,D){o[E]=D},d=function(E){return o[E]?o[E]:{icons:{}}},m=function(E){return io(o,E)};return{add:s,get:d,has:m}},BS=KW(),nB=function(o,s){var d=s.dom;return d[o]},rB=function(o,s){return parseInt(Sa(s,o),10)},oB=ne(nB,"clientWidth"),YW=ne(nB,"clientHeight"),qW=ne(rB,"margin-top"),XW=ne(rB,"margin-left"),ZW=function(o){return o.dom.getBoundingClientRect()},QW=function(o,s,d){var m=oB(o),E=YW(o);return s>=0&&d>=0&&s<=m&&d<=E},f9=function(o,s,d,m){var E=ZW(s),D=o?E.left+s.dom.clientLeft+XW(s):0,J=o?E.top+s.dom.clientTop+qW(s):0,ue=d-D,me=m-J;return{x:ue,y:me}},aB=function(o,s,d){var m=xe.fromDom(o.getBody()),E=o.inline?m:Tl(m),D=f9(o.inline,E,s,d);return QW(E,D.x,D.y)},JW=function(o){return re.from(o).map(xe.fromDom)},iB=function(o){var s=o.inline?o.getBody():o.getContentAreaContainer();return JW(s).map(yf).getOr(!1)},sB=function(){var o=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:o,close:o,reposition:o,getArgs:o}},lB=function(o){var s=[],d=function(){var it=o.theme;return it&&it.getNotificationManagerImpl?it.getNotificationManagerImpl():sB()},m=function(){return re.from(s[0])},E=function(it,kt){return it.type===kt.type&&it.text===kt.text&&!it.progressBar&&!it.timeout&&!kt.progressBar&&!kt.timeout},D=function(){s.length>0&&d().reposition(s)},J=function(it){s.push(it)},ue=function(it){Ct(s,function(kt){return kt===it}).each(function(kt){s.splice(kt,1)})},me=function(it,kt){if(kt===void 0&&(kt=!0),!(o.removed||!iB(o)))return kt&&o.fire("BeforeOpenNotification",{notification:it}),mt(s,function(Nt){return E(d().getArgs(Nt),it)}).getOrThunk(function(){o.editorManager.setActive(o);var Nt=d().open(it,function(){ue(Nt),D(),m().fold(function(){return o.focus()},function(Lt){return e_(xe.fromDom(Lt.getEl()))})});return J(Nt),D(),o.fire("OpenNotification",{notification:fo({},Nt)}),Nt})},Le=function(){m().each(function(it){d().close(it),ue(it),D()})},tt=K(s),nt=function(it){it.on("SkinLoaded",function(){var kt=px(it);kt&&me({text:kt,type:"warning",timeout:0},!1),D()}),it.on("show ResizeEditor ResizeWindow NodeChange",function(){cl.requestAnimationFrame(D)}),it.on("remove",function(){ct(s.slice(),function(kt){d().close(kt)})})};return nt(o),{open:me,close:Le,getNotifications:tt}},ip=ld.PluginManager,ky=ld.ThemeManager;
95function d9(){var o=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:o,openUrl:o,alert:o,confirm:o,close:o,getParams:o,setParams:o}}var TM=function(o){var s=[],d=function(){var Lt=o.theme;return Lt&&Lt.getWindowManagerImpl?Lt.getWindowManagerImpl():d9()},m=function(Lt,$t){return function(){for(var Jt=[],qt=0;qt<arguments.length;qt++)Jt[qt]=arguments[qt];return $t?$t.apply(Lt,Jt):void 0}},E=function(Lt){o.fire("OpenWindow",{dialog:Lt})},D=function(Lt){o.fire("CloseWindow",{dialog:Lt})},J=function(Lt){s.push(Lt),E(Lt)},ue=function(Lt){D(Lt),s=Fe(s,function($t){return $t!==Lt}),s.length===0&&o.focus()},me=function(){return re.from(s[s.length-1])},Le=function(Lt){o.editorManager.setActive(o),n_(o);var $t=Lt();return J($t),$t},tt=function(Lt,$t){return Le(function(){return d().open(Lt,$t,ue)})},nt=function(Lt){return Le(function(){return d().openUrl(Lt,ue)})},it=function(Lt,$t,Jt){var qt=d();qt.alert(Lt,m(Jt||qt,$t))},kt=function(Lt,$t,Jt){var qt=d();qt.confirm(Lt,m(Jt||qt,$t))},Nt=function(){me().each(function(Lt){d().close(Lt),ue(Lt)})};return o.on("remove",function(){ct(s,function(Lt){d().close(Lt)})}),{open:tt,openUrl:nt,alert:it,confirm:kt,close:Nt}},AM=function(o,s){o.notificationManager.open({type:"error",text:s})},PS=function(o,s){o._skinLoaded?AM(o,s):o.on("SkinLoaded",function(){AM(o,s)})},uB=function(o,s){PS(o,If.translate(["Failed to upload image: {0}",s]))},kM=function(o,s,d){q6(o,s,{message:d}),console.error(d)},OM=function(o,s,d){return d?"Failed to load "+o+": "+d+" from url "+s:"Failed to load "+o+" url: "+s},MM=function(o,s,d){kM(o,"PluginLoadError",OM("plugin",s,d))},cB=function(o,s,d){kM(o,"IconsLoadError",OM("icons",s,d))},eG=function(o,s,d){kM(o,"LanguageLoadError",OM("language",s,d))},tG=function(o,s,d){var m=If.translate(["Failed to initialize plugin: {0}",s]);q6(o,"PluginLoadError",{message:m}),FS(m,d),PS(o,m)},FS=function(o){for(var s=[],d=1;d<arguments.length;d++)s[d-1]=arguments[d];var m=window.console;m&&(m.error?m.error.apply(m,Fs([o],s,!1)):m.log.apply(m,Fs([o],s,!1)))},fB=function(o){return/^[a-z0-9\-]+$/i.test(o)},nG=function(o){return U_(o,fx(o))},rG=function(o){return U_(o,dx(o))},U_=function(o,s){var d=o.editorManager.baseURL+"/skins/content",m=o.editorManager.suffix,E="content"+m+".css",D=o.inline===!0;return rt(s,function(J){return fB(J)&&!D?d+"/"+J+"/"+E:o.documentBaseURI.toAbsolute(J)})},dB=function(o){o.contentCSS=o.contentCSS.concat(nG(o),rG(o))},NM=function(){var o=1,s=2,d={},m=function(it,kt){return{status:it,resultUri:kt}},E=function(it){return it in d},D=function(it){var kt=d[it];return kt?kt.resultUri:null},J=function(it){return E(it)?d[it].status===o:!1},ue=function(it){return E(it)?d[it].status===s:!1},me=function(it){d[it]=m(o,null)},Le=function(it,kt){d[it]=m(s,kt)},tt=function(it){delete d[it]},nt=function(){d={}};return{hasBlobUri:E,getResultUri:D,isPending:J,isUploaded:ue,markPending:me,markUploaded:Le,removeFailed:tt,destroy:nt}},oG=0,aG=function(){var o=function(){return Math.round(Math.random()*4294967295).toString(36)},s=new Date().getTime();return"s"+s.toString(36)+o()+o()+o()},vB=function(o){return o+oG+++aG()},hB=function(){var o=[],s=function(nt){var it={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return it[nt.toLowerCase()]||"dat"},d=function(nt,it,kt,Nt,Lt){if(B(nt)){var $t=nt;return m({id:$t,name:Nt,filename:Lt,blob:it,base64:kt})}else{if(F(nt))return m(nt);throw new Error("Unknown input type")}},m=function(nt){if(!nt.blob||!nt.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var it=nt.id||vB("blobid"),kt=nt.name||it,Nt=nt.blob;return{id:K(it),name:K(kt),filename:K(nt.filename||kt+"."+s(Nt.type)),blob:K(Nt),base64:K(nt.base64),blobUri:K(nt.blobUri||URL.createObjectURL(Nt)),uri:K(nt.uri)}},E=function(nt){J(nt.id())||o.push(nt)},D=function(nt){return mt(o,nt).getOrUndefined()},J=function(nt){return D(function(it){return it.id()===nt})},ue=function(nt){return D(function(it){return it.blobUri()===nt})},me=function(nt,it){return D(function(kt){return kt.base64()===nt&&kt.blob().type===it})},Le=function(nt){o=Fe(o,function(it){return it.blobUri()===nt?(URL.revokeObjectURL(it.blobUri()),!1):!0})},tt=function(){ct(o,function(nt){URL.revokeObjectURL(nt.blobUri())}),o=[]};return{create:d,add:E,get:J,getByUri:ue,getByData:me,findFirst:D,removeByUri:Le,destroy:tt}},iG=function(o,s){var d={},m=function(Nt,Lt){return Nt?Nt.replace(/\/$/,"")+"/"+Lt.replace(/^\//,""):Lt},E=function(Nt,Lt,$t,Jt){var qt=new XMLHttpRequest;qt.open("POST",s.url),qt.withCredentials=s.credentials,qt.upload.onprogress=function(xn){Jt(xn.loaded/xn.total*100)},qt.onerror=function(){$t("Image upload failed due to a XHR Transport error. Code: "+qt.status)},qt.onload=function(){if(qt.status<200||qt.status>=300){$t("HTTP Error: "+qt.status);return}var xn=JSON.parse(qt.responseText);if(!xn||typeof xn.location!="string"){$t("Invalid JSON: "+qt.responseText);return}Lt(m(s.basePath,xn.location))};var Mn=new FormData;Mn.append("file",Nt.blob(),Nt.filename()),qt.send(Mn)},D=function(){return new Zl(function(Nt){Nt([])})},J=function(Nt,Lt){return{url:Lt,blobInfo:Nt,status:!0}},ue=function(Nt,Lt,$t){return{url:"",blobInfo:Nt,status:!1,error:{message:Lt,options:$t}}},me=function(Nt,Lt){Gn.each(d[Nt],function($t){$t(Lt)}),delete d[Nt]},Le=function(Nt,Lt,$t){return o.markPending(Nt.blobUri()),new Zl(function(Jt){var qt,Mn;try{var xn=function(){qt&&(qt.close(),Mn=$)},ln=function(ir){xn(),o.markUploaded(Nt.blobUri(),ir),me(Nt.blobUri(),J(Nt,ir)),Jt(J(Nt,ir))},In=function(ir,_r){var Go=_r||{};xn(),o.removeFailed(Nt.blobUri()),me(Nt.blobUri(),ue(Nt,ir,Go)),Jt(ue(Nt,ir,Go))};Mn=function(ir){ir<0||ir>100||re.from(qt).orThunk(function(){return re.from($t).map(M)}).each(function(_r){qt=_r,_r.progressBar.value(ir)})},Lt(Nt,ln,In,Mn)}catch(ir){Jt(ue(Nt,ir.message,{}))}})},tt=function(Nt){return Nt===E},nt=function(Nt){var Lt=Nt.blobUri();return new Zl(function($t){d[Lt]=d[Lt]||[],d[Lt].push($t)}
95)},it=function(Nt,Lt){return Nt=Gn.grep(Nt,function($t){return!o.isUploaded($t.blobUri())}),Zl.all(Gn.map(Nt,function($t){return o.isPending($t.blobUri())?nt($t):Le($t,s.handler,Lt)}))},kt=function(Nt,Lt){return!s.url&&tt(s.handler)?D():it(Nt,Lt)};return Y(s.handler)===!1&&(s.handler=E),{upload:kt}},pB=function(o){return function(){return o.notificationManager.open({text:o.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},mB=function(o,s){return iG(s,{url:X7(o),basePath:qp(o),credentials:Xp(o),handler:Z7(o)})},sG=function(o){var s=NM(),d=mB(o,s);return{upload:function(m,E){return E===void 0&&(E=!0),d.upload(m,E?pB(o):void 0)}}},lG=function(o){var s=Df(null);o.on("change AddUndo",function(m){s.set(fo({},m.level))});var d=function(){var m=o.undoManager.data;xt(m).filter(function(E){return!gS(s.get(),E)}).each(function(E){o.setDirty(!0),o.fire("change",{level:E,lastLevel:Tt(m,m.length-2).getOrNull()})})};return{fireIfChanged:d}},$f=function(o){var s=hB(),d,m,E=NM(),D=[],J=lG(o),ue=function(xn){return function(ln){return o.selection?xn(ln):[]}},me=function(xn){return xn+(xn.indexOf("?")===-1?"?":"&")+new Date().getTime()},Le=function(xn,ln,In){var ir=0;do ir=xn.indexOf(ln,ir),ir!==-1&&(xn=xn.substring(0,ir)+In+xn.substr(ir+ln.length),ir+=In.length-ln.length+1);while(ir!==-1);return xn},tt=function(xn,ln,In){var ir='src="'+In+'"'+(In===Io.transparentSrc?' data-mce-placeholder="1"':"");return xn=Le(xn,'src="'+ln+'"',ir),xn=Le(xn,'data-mce-src="'+ln+'"','data-mce-src="'+In+'"'),xn},nt=function(xn,ln){ct(o.undoManager.data,function(In){In.type==="fragmented"?In.fragments=rt(In.fragments,function(ir){return tt(ir,xn,ln)}):In.content=tt(In.content,xn,ln)})},it=function(xn,ln){var In=o.convertURL(ln,"src");nt(xn.src,ln),o.$(xn).attr({src:D5(o)?me(ln):ln,"data-mce-src":In}
95)},kt=function(xn){return d||(d=mB(o,E)),Jt().then(ue(function(ln){var In=rt(ln,function(ir){return ir.blobInfo});return d.upload(In,pB(o)).then(ue(function(ir){var _r=[],Go=rt(ir,function(eo,lr){var Lo=ln[lr].blobInfo,Sr=ln[lr].image;return eo.status&&q7(o)?(s.removeByUri(Sr.src),Dg(o)||it(Sr,eo.url)):eo.error&&(eo.error.options.remove&&(nt(Sr.getAttribute("src"),Io.transparentSrc),_r.push(Sr)),uB(o,eo.error.message)),{element:Sr,status:eo.status,uploadUri:eo.url,blobInfo:Lo}});return Go.length>0&&J.fireIfChanged(),_r.length>0&&(Dg(o)?console.error("Removing images on failed uploads is currently unsupported for RTC"):o.undoManager.transact(function(){ct(_r,function(eo){o.dom.remove(eo),s.removeByUri(eo.src)})})),xn&&xn(Go),Go}))}))},Nt=function(xn){if(Kb(o))return kt(xn)},Lt=function(xn){if(Ft(D,function(In){return In(xn)})===!1)return!1;if(xn.getAttribute("src").indexOf("data:")===0){var ln=w6(o);return ln(xn)}return!0},$t=function(xn){D.push(xn)},Jt=function(){return m||(m=cW(E,s)),m.findAll(o.getBody(),Lt).then(ue(function(xn){return xn=Fe(xn,function(ln){return typeof ln=="string"?(PS(o,ln),!1):!0}),Dg(o)||ct(xn,function(ln){nt(ln.image.src,ln.blobInfo.blobUri()),ln.image.src=ln.blobInfo.blobUri(),ln.image.removeAttribute("data-mce-src")}),xn}))},qt=function(){s.destroy(),E.destroy(),m=d=null},Mn=function(xn){return xn.replace(/src="(blob:[^"]+)"/g,function(ln,In){var ir=E.getResultUri(In);if(ir)return'src="'+ir+'"';var _r=s.getByUri(In);if(_r||(_r=Ye(o.editorManager.get(),function(eo,lr){return eo||lr.editorUpload&&lr.editorUpload.blobCache.getByUri(In)},null)),_r){var Go=_r.blob();return'src="data:'+Go.type+";base64,"+_r.base64()+'"'}return ln})};return o.on("SetContent",function(){Kb(o)?Nt():Jt()}),o.on("RawSaveContent",function(xn){xn.content=Mn(xn.content)}),o.on("GetContent",function(xn){xn.source_view||xn.format==="raw"||xn.format==="tree"||(xn.content=Mn(xn.content))}),o.on("PostRender",function(){o.parser.addNodeFilter("img",function(xn){ct(xn,function(ln){var In=ln.attr("src");if(!s.getByUri(In)){var ir=E.getResultUri(In);ir&&ln.attr("src",ir)}})})}),{blobCache:s,addFilter:$t,uploadImages:kt,uploadImagesAuto:Nt,scanForImages:Jt,destroy:qt}},gB=function(o){var s={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}
95],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(d,m,E){return Ko(d)&&d.hasAttribute("href")},onformat:function(d,m,E){Gn.each(E,function(D,J){o.setAttrib(d,J,D)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(d){var m;return(m=d==null?void 0:d.customValue)!==null&&m!==void 0?m:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Gn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),function(d){s[d]={block:d,remove:"all"}}),s},uG=function(o){var s={},d=function(J){return z(J)?s[J]:s},m=function(J){return io(s,J)},E=function(J,ue){J&&(B(J)?(R(ue)||(ue=[ue]),ct(ue,function(me){X(me.deep)&&(me.deep=!Id(me)),X(me.split)&&(me.split=!Id(me)||Sc(me)),X(me.remove)&&Id(me)&&!Sc(me)&&(me.remove="none"),Id(me)&&Sc(me)&&(me.mixed=!0,me.block_expand=!0),B(me.classes)&&(me.classes=me.classes.split(/\s+/))}),s[J]=ue):Vt(J,function(me,Le){E(Le,me)}))},D=function(J){return J&&s[J]&&delete s[J],s};return E(gB(o.dom)),E(J7(o)),{get:d,has:m,register:E,unregister:D}},$S=Gn.each,Bd=Ds.DOM,yB=function(o,s){var d,m,E,D=s&&s.schema||Tf({}),J=function(tt,nt){nt.classes.length&&Bd.addClass(tt,nt.classes.join(" ")),Bd.setAttribs(tt,nt.attrs)},ue=function(tt){m=typeof tt=="string"?{name:tt,classes:[],attrs:{}}:tt;var nt=Bd.create(m.name);return J(nt,m),nt},me=function(tt,nt){var it=typeof tt!="string"?tt.nodeName.toLowerCase():tt,kt=D.getElementRule(it),Nt=kt&&kt.parentsRequired;return Nt&&Nt.length?nt&&Gn.inArray(Nt,nt)!==-1?nt:Nt[0]:!1},Le=function(tt,nt,it){var kt,Nt,Lt=nt.length>0&&nt[0],$t=Lt&&Lt.name,Jt=me(tt,$t);if(Jt)$t===Jt?(Nt=nt[0],nt=nt.slice(1)):Nt=Jt;else if(Lt)Nt=nt[0],nt=nt.slice(1);else if(!it)return tt;return Nt&&(kt=ue(Nt),kt.appendChild(tt)),it&&(kt||(kt=Bd.create("div"),kt.appendChild(tt)),Gn.each(it,function(qt){var Mn=ue(qt);kt.insertBefore(Mn,tt)})),Le(kt,nt,Nt&&Nt.siblings)};return o&&o.length?(m=o[0],d=ue(m),E=Bd.create("div"),E.appendChild(Le(d,o.slice(1),m.siblings)),E):""},Ei=function(o){var s,d={classes:[],attrs:{}};return o=d.selector=Gn.trim(o),o!=="*"&&(s=o.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(m,E,D,J,ue){switch(E){case"#":d.attrs.id=D;break;case".":d.classes.push(D);break;case":":Gn.inArray("checked disabled enabled read-only required".split(" "),D)!==-1&&(d.attrs[D]=D);break}if(J==="["){var me=ue.match(/([\w\-]+)(?:\=\"([^\"]+))?/);me&&(d.attrs[me[1]]=me[2])}return""})),d.name=s||"div",d},cG=function(o){return!o||typeof o!="string"?[]:(o=o.split(/\s*,\s*/)[0],o=o.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Gn.map(o.split(/(?:>|\s+(?![^\[\]]+\]))/),function(s){var d=Gn.map(s.split(/(?:~\+|~|\+)/),Ei),m=d.pop();return d.length&&(m.siblings=d),m}).reverse())},fG=function(o,s){var d,m,E="",D,J=U2(o);if(J==="")return"";var ue=function(nt){return nt.replace(/%(\w+)/g,"")};if(typeof s=="string"){if(s=o.formatter.get(s),!s)return;s=s[0]}if("preview"in s){var me=Br(s,"preview");if(x0(me,!1))return"";J=me.getOr(J)}d=s.block||s.inline||"span";var Le=cG(s.selector);Le.length?(Le[0].name||(Le[0].name=d),d=s.selector,m=yB(Le,o)):m=yB([d],o);var tt=Bd.select(d,m)[0]||m.firstChild;return $S(s.styles,function(nt,it){var kt=ue(nt);kt&&Bd.setStyle(tt,it,kt)}),$S(s.attributes,function(nt,it){var kt=ue(nt);kt&&Bd.setAttrib(tt,it,kt)}),$S(s.classes,function(nt){var it=ue(nt);Bd.hasClass(tt,it)||Bd.addClass(tt,it)}),o.fire("PreviewFormats"),Bd.setStyles(m,{position:"absolute",left:-65535}),o.getBody().appendChild(m),D=Bd.getStyle(o.getBody(),"fontSize",!0),D=/px$/.test(D)?parseInt(D,10):0,$S(J.split(" "),function(nt){var it=Bd.getStyle(tt,nt,!0);
95if(!(nt==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(it)&&(it=Bd.getStyle(o.getBody(),nt,!0),Bd.toHex(it).toLowerCase()==="#ffffff"))&&!(nt==="color"&&Bd.toHex(it).toLowerCase()==="#000000")){if(nt==="font-size"&&/em|%$/.test(it)){if(D===0)return;var kt=parseFloat(it)/(/%$/.test(it)?100:1);it=kt*D+"px"}nt==="border"&&it&&(E+="padding:0 2px;"),E+=nt+":"+it+";"}}),o.fire("AfterPreviewFormats"),Bd.remove(m),E},dG=function(o){o.addShortcut("meta+b","","Bold"),o.addShortcut("meta+i","","Italic"),o.addShortcut("meta+u","","Underline");for(var s=1;s<=6;s++)o.addShortcut("access+"+s,"",["FormatBlock",!1,"h"+s]);o.addShortcut("access+7","",["FormatBlock",!1,"p"]),o.addShortcut("access+8","",["FormatBlock",!1,"div"]),o.addShortcut("access+9","",["FormatBlock",!1,"address"])},Il=function(o){var s=uG(o),d=Df(null);return dG(o),sS(o),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:function(m,E,D){CS(o,m,E,D)},remove:function(m,E,D,J){Kj(o,m,E,D,J)},toggle:function(m,E,D){Yj(o,m,E,D)},match:function(m,E,D,J){return Gj(o,m,E,D,J)},closest:function(m){return CL(o,m)},matchAll:function(m,E){return _L(o,m,E)},matchNode:function(m,E,D,J){return wS(o,m,E,D,J)},canApply:function(m){return wL(o,m)},formatChanged:function(m,E,D,J){return qj(o,d,m,E,D,J)},getCssText:ne(fG,o)}},bB=function(o){switch(o.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},v9=function(o,s,d){var m=Df(!1),E=function(me){yS(s,!1,d),s.add({},me)};o.on("init",function(){s.add()}),o.on("BeforeExecCommand",function(me){var Le=me.command;bB(Le)||(cL(s,d),s.beforeChange())}),o.on("ExecCommand",function(me){var Le=me.command;bB(Le)||E(me)}),o.on("ObjectResizeStart cut",function(){s.beforeChange()}),o.on("SaveContent ObjectResized blur",E),o.on("dragend",E),o.on("keyup",function(me){var Le=me.keyCode;me.isDefaultPrevented()||((Le>=33&&Le<=36||Le>=37&&Le<=40||Le===45||me.ctrlKey)&&(E(),o.nodeChanged()),(Le===46||Le===8)&&o.nodeChanged(),m.get()&&s.typing&&gS(I_(o),s.data[0])===!1&&(o.isDirty()===!1&&(o.setDirty(!0),o.fire("change",{level:s.data[0],lastLevel:null})),o.fire("TypingUndo"),m.set(!1),o.nodeChanged()))}),o.on("keydown",function(me){var Le=me.keyCode;if(!me.isDefaultPrevented()){if(Le>=33&&Le<=36||Le>=37&&Le<=40||Le===45){s.typing&&E(me);return}var tt=me.ctrlKey&&!me.altKey||me.metaKey;(Le<16||Le>20)&&Le!==224&&Le!==91&&!s.typing&&!tt&&(s.beforeChange(),yS(s,!0,d),s.add({},me),m.set(!0))}}),o.on("mousedown",function(me){s.typing&&E(me)});var D=function(me){return me.inputType==="insertReplacementText"},J=function(me){return me.inputType==="insertText"&&me.data===null},ue=function(me){return me.inputType==="insertFromPaste"||me.inputType==="insertFromDrop"};o.on("input",function(me){me.inputType&&(D(me)||J(me)||ue(me))&&E(me)}),o.on("AddUndo Undo Redo ClearUndos",function(me){me.isDefaultPrevented()||o.nodeChanged()})},vG=function(o){o.addShortcut("meta+z","","Undo"),o.addShortcut("meta+y,meta+shift+z","","Redo")},_B=function(o){var s=Gp(),d=Df(0),m=Df(0),E={data:[],typing:!1,beforeChange:function(){cM(o,d,s)},add:function(D,J){return gL(o,E,m,d,s,D,J)},undo:function(){return _S(o,E,d,m)},redo:function(){return Cv(o,m,E.data)},clear:function(){a9(o,E,m)},reset:function(){I4(o,E)},hasUndo:function(){return Uj(o,E,m)},hasRedo:function(){return yL(o,E,m)},transact:function(D){return bL(o,E,d,D)},ignore:function(D){jj(o,d,D)},extra:function(D,J){Wj(o,E,m,D,J)}};return Dg(o)||v9(o,E,d),vG(o),E},hG=[9,27,Xo.HOME,Xo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Xo.DOWN,Xo.UP,Xo.LEFT,Xo.RIGHT].concat(Io.browser.isFirefox()?[224]:[]),DM="data-mce-placeholder",Rg=function(o){return o.type==="
95keydown"||o.type==="keyup"},H1=function(o){var s=o.keyCode;return s===Xo.BACKSPACE||s===Xo.DELETE},h9=function(o){if(Rg(o)){var s=o.keyCode;return!H1(o)&&(Xo.metaKeyPressed(o)||o.altKey||s>=112&&s<=123||De(hG,s))}else return!1},L4=function(o){return Rg(o)&&!(H1(o)||o.type==="keyup"&&o.keyCode===229)},hm=function(o,s,d){if(qs(xe.fromDom(s),!1)){var m=d==="",E=s.firstElementChild;return E?o.getStyle(s.firstElementChild,"padding-left")||o.getStyle(s.firstElementChild,"padding-right")?!1:m?!o.isBlock(E):d===E.nodeName.toLowerCase():!0}else return!1},p9=function(o){var s=o.dom,d=xc(o),m=R5(o),E=function(D,J){if(!h9(D)){var ue=o.getBody(),me=L4(D)?!1:hm(s,ue,d),Le=s.getAttrib(ue,DM)!=="";(Le!==me||J)&&(s.setAttrib(ue,DM,me?m:null),s.setAttrib(ue,"aria-placeholder",me?m:null),Gx(o,me),o.on(me?"keydown":"keyup",E),o.off(me?"keyup":"keydown",E))}};m&&o.on("init",function(D){E(D,!0),o.on("change SetContent ExecCommand",E),o.on("paste",function(J){return cl.setEditorTimeout(o,function(){return E(J)})})})},IM=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,RM=function(o){return IM.test(o)},Oy=function(o,s){return yr(xe.fromDom(s),X0(o))},wB=function(o){return Ds.DOM.getStyle(o,"direction",!0)==="rtl"||RM(o.textContent)},pG=function(o,s,d){return Fe(Ds.DOM.getParents(d.container(),"*",s),o)},Lg=function(o,s,d){var m=pG(o,s,d);return re.from(m[m.length-1])},CB=function(o,s,d){var m=nh(s,o),E=nh(d,o);return m&&m===E},mG=function(o){return Oo(o)||Um(o)},xv=function(o,s){if(!s)return s;var d=s.container(),m=s.offset();return o?Gi(d)?Jr(d.nextSibling)?Kn(d.nextSibling,0):Kn.after(d):Oo(s)?Kn(d,m+1):s:Gi(d)?Jr(d.previousSibling)?Kn(d.previousSibling,d.previousSibling.data.length):Kn.before(d):Um(s)?Kn(d,m-1):s},xB=ne(xv,!0),j_=ne(xv,!1),EB=function(o){return function(s){return jo(o,xe.fromDom(s.dom.parentNode))}},SB=function(o){return S1(o)||Bu(o)},r0=function(o,s){return di(o,s)?k0(s,SB,EB(o)):re.none()},LM=function(o){var s=o.getBody(),d=s.firstChild&&o.dom.isBlock(s.firstChild)?s.firstChild:s;o.selection.setCursorLocation(d,0)},TB=function(o){o.dom.isEmpty(o.getBody())&&(o.setContent(""),LM(o))},gG=function(o,s,d){return ec(af(d),I1(d),function(m,E){var D=xv(!0,m),J=xv(!1,E),ue=xv(!1,s);return o?gv(d,ue).exists(function(me){return me.isEqual(J)&&s.isEqual(D)}):ah(d,ue).exists(function(me){return me.isEqual(D)&&s.isEqual(J)})}).getOr(!0)},yG=function(o,s){return{block:o,position:s}},W_=function(o,s){return{from:o,to:s}},BM=function(o,s){var d=xe.fromDom(o),m=xe.fromDom(s.container());return r0(d,m).map(function(E){return yG(E,s)})},bG=function(o){return jo(o.from.block,o.to.block)===!1},lf=function(o){return ks(o.from.block).bind(function(s){return ks(o.to.block).filter(function(d){return jo(s,d)})}).isSome()},_G=function(o){return fs(o.from.block.dom)===!1&&fs(o.to.block.dom)===!1},AB=function(o,s,d){return qi(d.position.getNode())&&qs(d.block)===!1?Z0(!1,d.block.dom).bind(function(m){return m.isEqual(d.position)?fd(s,o,m).bind(function(E){return BM(o,E)}):re.some(d)}).getOr(d):d},kB=function(o,s,d){var m=BM(o,Kn.fromRangeStart(d)),E=m.bind(function(D){return fd(s,o,D.position).bind(function(J){return BM(o,J).map(function(ue){return AB(o,s,ue)})})});return ec(m,E,W_).filter(function(D){return bG(D)&&lf(D)&&_G(D)})},OB=function(o,s,d){return d.collapsed?kB(o,s,d):re.none()},MB=function(o){var s=tl(o);return Ct(s,xf).fold(K(s),function(d){return s.slice(0,d)})},zS=function(o){var s=MB(o);return ct(s,Gs),s},NB=function(o,s){var d=No(s,o);return mt(d.reverse(),function(m){return qs(m)}).each(Gs)},wG=function(o){return Fe(ai(o),function(s){return!qs(s)}).length===0},CG=function(o,s,d,m){if(qs(d))return Tg(d),af(d.dom);wG(m)&&qs(s)&&Os(m,xe.fromTag("br"));var E=ah(d.dom,Kn.before(m.dom));return ct(zS(s),function(D){Os(m,D)}),NB(o,s),E},xG=function(o,s,d){if(qs(d))return Gs(d),qs(s)&&Tg(s),af(s.dom);var m=I1(d.dom);return ct(zS(s),function(E){yl(d,E)}),NB(o,s),m},EG=function(o,s){var d=No(s,o);return re.from(d[d.length-1])},pm=function(o,s){return di(s,o)?EG(s,o):re.none()},DB=function(o,s){Z0(o,s.dom).map(function(d){return d.getNode()}).map(xe.fromDom).filter(jv).each(Gs)},IB=function(o,s,d){return DB(!0,s),DB(!1,d),pm(s,d).fold(ne(xG,o,s,d),ne(CG,o,s,d))},RB=function(o,s,d,m){return s?IB(o,m,d):IB(o,d,m)},HS=function(o,s){var d=xe.fromDom(o.getBody()),m=OB(d.dom,s,o.selection.getRng()).bind(function(E){return RB(d,s,E.from.block,E.to.block)});return m.each(function(E){o.selection.setRng(E.toRange())}),m.isSome()},SG=function(o,s){var d=s.getRng();return ec(r0(o,xe.fromDom(d.startContainer)),r0(o,xe.fromDom(d.endContainer)),function(m,E){return jo(m,E)===!1?(d.deleteContents(),RB(o,!0,m,E).each(function(D){s.setRng(D.toRange())}),!0):!1}).getOr(!1)},Wl=function(o,s){var d=xe.fromDom(s),m=ne(jo,o);return kh(d,e1,m).isSome()},LB=function(o,s){return Wl(o,s.startContainer)||Wl(o,s.endContainer)},BB=function(o,s){var d=ah(o.dom,Kn.fromRangeStart(s)).isNone(),m=gv(o.dom,Kn.fromRangeEnd(s)).isNone();return!LB(o,s)&&d&&m},sp=function(o){return o.setContent(""),o.selection.setCursorLocation(),!0},PB=function(o){var s=xe.fromDom(o.getBody()),d=o.selection.getRng();return BB(s,d)?sp(o):SG(s,o.selection)},VS=function(o,s){return o.selection.isCollapsed()?!1:PB(o)},TG=nd,PM=fs,Bg=function(o,s,d,m,E){return re.from(s._selectionOverrides.showCaret(o,d,m,E))},G_=function(o){var s=o.ownerDocument.createRange();return s.selectNode(o),s},K_=function(o,s){var d=o.fire("BeforeObjectSelected",{target:s});return d.isDefaultPrevented()?re.none():re.some(G_(s))},FM=function(o,s,d){var m=Wc(1,o.getBody(),s),E=Kn.fromRangeStart(m),D=E.getNode();
95if(Y2(D))return Bg(1,o,D,!E.isAtEnd(),!1);var J=E.getNode(!0);if(Y2(J))return Bg(1,o,J,!1,!1);var ue=o.dom.getParent(E.getNode(),function(me){return PM(me)||TG(me)});return Y2(ue)?Bg(1,o,ue,!1,d):re.none()},US=function(o,s,d){return s.collapsed?FM(o,s,d).getOr(s):s},$M=function(o){return um(o)||_y(o)},FB=function(o){return cm(o)||wy(o)},zM=function(o,s){Jr(s)&&s.data.length===0&&o.remove(s)},$B=function(o,s,d,m,E,D){return Bg(m,o,D.getNode(!E),E,!0).each(function(J){if(s.collapsed){var ue=s.cloneRange();E?ue.setEnd(J.startContainer,J.startOffset):ue.setStart(J.endContainer,J.endOffset),ue.deleteContents()}else s.deleteContents();o.selection.setRng(J)}),zM(o.dom,d),!0},AG=function(o,s){var d=o.selection.getRng();if(!Jr(d.commonAncestorContainer))return!1;var m=s?Ec.Forwards:Ec.Backwards,E=Cl(o.getBody()),D=ne(G5,s?E.next:E.prev),J=s?$M:FB,ue=ey(m,o.getBody(),d),me=xv(s,D(ue));if(!me||!I6(ue,me))return!1;if(J(me))return $B(o,d,ue.getNode(),m,s,me);var Le=D(me);return Le&&J(Le)&&I6(me,Le)?$B(o,d,ue.getNode(),m,s,Le):!1},jS=function(o,s){return AG(o,s)},o0=function(o){return e1(xe.fromDom(o))||Bu(xe.fromDom(o))},Ev=Eo.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),kG=function(o,s){var d=s.getNode(o===!1),m=o?"after":"before";return Ko(d)&&d.getAttribute("data-mce-caret")===m},OG=function(o,s,d,m){var E=function(D){return Lu(xe.fromDom(D))&&!rh(d,m,o)};return J2(!s,d).fold(function(){return J2(s,m).fold(U,E)},E)},Y_=function(o,s,d,m){var E=m.getNode(s===!1);return r0(xe.fromDom(o),xe.fromDom(d.getNode())).map(function(D){return qs(D)?Ev.remove(D.dom):Ev.moveToElement(E)}).orThunk(function(){return re.some(Ev.moveToElement(E))})},zB=function(o,s,d){return fd(s,o,d).bind(function(m){return o0(m.getNode())||OG(o,s,d,m)?re.none():s&&fs(m.getNode())||s===!1&&fs(m.getNode(!0))?Y_(o,s,d,m):s&&cm(d)||s===!1&&um(d)?re.some(Ev.moveToPosition(m)):re.none()})},HB=function(o,s){return o&&fs(s.nextSibling)?re.some(Ev.moveToElement(s.nextSibling)):o===!1&&fs(s.previousSibling)?re.some(Ev.moveToElement(s.previousSibling)):re.none()},VB=function(o,s,d){return d.fold(function(m){return re.some(Ev.remove(m))},function(m){return re.some(Ev.moveToElement(m))},function(m){return rh(s,m,o)?re.none():re.some(Ev.moveToPosition(m))})},UB=function(o,s,d){return kG(s,d)?HB(s,d.getNode(s===!1)).fold(function(){return zB(o,s,d)},re.some):zB(o,s,d).bind(function(m){return VB(o,d,m)})},MG=function(o,s,d){var m=Wc(s?1:-1,o,d),E=Kn.fromRangeStart(m),D=xe.fromDom(o);return s===!1&&cm(E)?re.some(Ev.remove(E.getNode(!0))):s&&um(E)?re.some(Ev.remove(E.getNode())):s===!1&&um(E)&&ba(D,E)?UE(D,E).map(function(J){return Ev.remove(J.getNode())}):s&&cm(E)&&m_(D,E)?jE(D,E).map(function(J){return Ev.remove(J.getNode())}):UB(o,s,E)},NG=function(o,s){return function(d){return o._selectionOverrides.hideFakeCaret(),pr(o,s,xe.fromDom(d)),!0}},My=function(o,s){return function(d){var m=s?Kn.before(d):Kn.after(d);return o.selection.setRng(m.toRange()),!0}},DG=function(o){return function(s){return o.selection.setRng(s.toRange()),!0}},jB=function(o,s){return re.from(mg(o.getBody(),s))},IG=function(o,s){var d=o.selection.getNode();return jB(o,d).filter(fs).fold(function(){return MG(o.getBody(),s,o.selection.getRng()).exists(function(m){return m.fold(NG(o,s),My(o,s),DG(o))})},j)},RG=function(o){ct(Cc(o,".mce-offscreen-selection"),Gs)},LG=function(o,s){var d=o.selection.getNode();if(fs(d)&&!x1(d)){var m=jB(o,d.parentNode).filter(fs);return m.fold(function(){return RG(xe.fromDom(o.getBody())),pr(o,s,xe.fromDom(o.selection.getNode())),TB(o),!0},j)}return!1},WB=function(o){var s=o.dom,d=o.selection,m=mg(o.getBody(),d.getNode());if(nd(m)&&s.isBlock(m)&&s.isEmpty(m)){var E=s.create("br",{"data-mce-bogus":"1"});s.setHTML(m,""),m.appendChild(E),d.setRng(Kn.before(E).toRange())}return!0},WS=function(o,s){return o.selection.isCollapsed()?IG(o,s):LG(o,s)},BG=function(o,s){var d=Kn.fromRangeStart(o.selection.getRng());return fd(s,o.getBody(),d).filter(function(m){return s?cO(m):BE(m)}).bind(function(m){return re.from(M6(s?0:-1,m))}).exists(function(m){return o.selection.select(m),!0})},GS=function(o,s){return o.selection.isCollapsed()?BG(o,s):!1},q_=Jr,GB=function(o){return q_(o)&&o.data[0]===fn},KB=function(o){return q_(o)&&o.data[o.data.length-1]===fn},X_=function(o){return o.ownerDocument.createTextNode(fn)}
95,PG=function(o){if(q_(o.previousSibling))return KB(o.previousSibling)||o.previousSibling.appendData(fn),o.previousSibling;if(q_(o))return GB(o)||o.insertData(0,fn),o;var s=X_(o);return o.parentNode.insertBefore(s,o),s},HM=function(o){if(q_(o.nextSibling))return GB(o.nextSibling)||o.nextSibling.insertData(0,fn),o.nextSibling;if(q_(o))return KB(o)||o.appendData(fn),o;var s=X_(o);return o.nextSibling?o.parentNode.insertBefore(s,o.nextSibling):o.parentNode.appendChild(s),s},KS=function(o,s){return o?PG(s):HM(s)},FG=ne(KS,!0),$G=ne(KS,!1),YB=function(o,s){return Jr(o.container())?KS(s,o.container()):KS(s,o.getNode())},Ny=function(o,s){var d=s.get();return d&&o.container()===d&&Gi(d)},Pg=function(o,s){return s.fold(function(d){Zp(o.get());var m=FG(d);return o.set(m),re.some(Kn(m,m.length-1))},function(d){return af(d).map(function(m){if(Ny(m,o))return Kn(o.get(),1);Zp(o.get());var E=YB(m,!0);return o.set(E),Kn(E,1)})},function(d){return I1(d).map(function(m){if(Ny(m,o))return Kn(o.get(),o.get().length-1);Zp(o.get());var E=YB(m,!1);return o.set(E),Kn(E,E.length-1)})},function(d){Zp(o.get());var m=$G(d);return o.set(m),re.some(Kn(m,1))})},m9=function(o,s){for(var d=0;d<o.length;d++){var m=o[d].apply(null,s);if(m.isSome())return m}return re.none()},uf=Eo.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Dy=function(o,s){var d=nh(s,o);return d||o},B4=function(o,s,d){var m=xB(d),E=Dy(s,m.container());return Lg(o,E,m).fold(function(){return gv(E,m).bind(ne(Lg,o,E)).map(function(D){return uf.before(D)})},re.none)},YS=function(o,s){return fg(o,s)===null},g9=function(o,s,d){return Lg(o,s,d).filter(ne(YS,s))},qB=function(o,s,d){var m=j_(d);return g9(o,s,m).bind(function(E){var D=ah(E,m);return D.isNone()?re.some(uf.start(E)):re.none()})},VM=function(o,s,d){var m=xB(d);return g9(o,s,m).bind(function(E){var D=gv(E,m);return D.isNone()?re.some(uf.end(E)):re.none()})},UM=function(o,s,d){var m=j_(d),E=Dy(s,m.container());return Lg(o,E,m).fold(function(){return ah(E,m).bind(ne(Lg,o,E)).map(function(D){return uf.after(D)})},re.none)},jM=function(o){return wB(Iy(o))===!1},lp=function(o,s,d){var m=m9([B4,qB,VM,UM],[o,s,d]);return m.filter(jM)},Iy=function(o){return o.fold(fe,fe,fe,fe)},WM=function(o){return o.fold(K("before"),K("start"),K("end"),K("after"))},y9=function(o){return o.fold(uf.before,uf.before,uf.after,uf.after)},qS=function(o){return o.fold(uf.start,uf.start,uf.end,uf.end)},XS=function(o,s){return WM(o)===WM(s)&&Iy(o)===Iy(s)},XB=function(o,s,d,m,E,D){return ec(Lg(s,d,m),Lg(s,d,E),function(J,ue){return J!==ue&&CB(d,J,ue)?uf.after(o?J:ue):D}).getOr(D)},ZB=function(o,s){return o.fold(j,function(d){return!XS(d,s)})},QB=function(o,s,d,m,E){var D=xv(o,E),J=fd(o,d,D).map(ne(xv,o)),ue=J.fold(function(){return m.map(y9)},function(me){return lp(s,d,me).map(ne(XB,o,s,d,D,me)).filter(ne(ZB,m))});return ue.filter(jM)},JB=function(o,s){return o?s.fold(te(re.some,uf.start),re.none,te(re.some,uf.after),re.none):s.fold(re.none,te(re.some,uf.before),re.none,te(re.some,uf.end))},up=function(o,s,d,m){var E=xv(o,m),D=lp(s,d,E);return lp(s,d,E).bind(ne(JB,o)).orThunk(function(){return QB(o,s,d,D,m)})};ne(up,!1),ne(up,!0);var eP=function(o){return Y(o.selection.getSel().modify)},GM=function(o,s,d){var m=o?1:-1;return s.setRng(Kn(d.container(),d.offset()+m).toRange()),s.getSel().modify("move",o?"forward":"backward","word"),!0},Ry=function(o,s){var d=s.selection.getRng(),m=o?Kn.fromRangeEnd(d):Kn.fromRangeStart(d);return eP(s)?o&&Oo(m)?GM(!0,s.selection,m):!o&&Um(m)?GM(!1,s.selection,m):!1:!1},Gc;(function(o){o[o.Br=0]="Br",o[o.Block=1]="Block",o[o.Wrap=2]="Wrap",o[o.Eol=3]="Eol"})(Gc||(Gc={}));var ZS=function(o,s){return o===Ec.Backwards?It(s):s},zG=function(o,s,d){return o===Ec.Forwards?s.next(d):s.prev(d)},HG=function(o,s,d,m){return qi(m.getNode(s===Ec.Forwards))?Gc.Br:rh(d,m)===!1?Gc.Block:Gc.Wrap},tP=function(o,s,d,m){for(var E=Cl(d),D=m,J=[];D;){var ue=zG(s,E,D);if(!ue)break;if(qi(ue.getNode(!1)))return s===Ec.Forwards?{positions:ZS(s,J).concat([ue]),breakType:Gc.Br,breakAt:re.some(ue)}:{positions:ZS(s,J),breakType:Gc.Br,breakAt:re.some(ue)};if(!ue.isVisible()){D=ue;
95continue}if(o(D,ue)){var me=HG(d,s,D,ue);return{positions:ZS(s,J),breakType:me,breakAt:re.some(ue)}}J.push(ue),D=ue}return{positions:ZS(s,J),breakType:Gc.Eol,breakAt:re.none()}},nP=function(o,s,d,m){return s(d,m).breakAt.map(function(E){var D=s(d,E).positions;return o===Ec.Backwards?D.concat(E):[E].concat(D)}).getOr([])},KM=function(o,s){return Ye(o,function(d,m){return d.fold(function(){return re.some(m)},function(E){return ec(Wt(E.getClientRects()),Wt(m.getClientRects()),function(D,J){var ue=Math.abs(s-D.left),me=Math.abs(s-J.left);return me<=ue?m:E}).or(d)})},re.none())},rP=function(o,s){return Wt(s.getClientRects()).bind(function(d){return KM(o,d.left)})},b9=ne(tP,Kn.isAbove,-1),_9=ne(tP,Kn.isBelow,1),VG=ne(nP,-1,b9),UG=ne(nP,1,_9),jG=function(o,s){return b9(o,s).breakAt.isNone()},YM=function(o,s){return _9(o,s).breakAt.isNone()},qM=function(o){return af(o).map(function(s){return[s].concat(_9(o,s).positions)}).getOr([])},oP=function(o){return I1(o).map(function(s){return b9(o,s).positions.concat(s)}).getOr([])},WG=function(o){var s=function(m){return rt(m,function(E){var D=Kp(E);return D.node=o,D})};if(Ko(o))return s(o.getClientRects());if(Jr(o)){var d=o.ownerDocument.createRange();return d.setStart(o,0),d.setEnd(o,o.data.length),s(d.getClientRects())}},XM=function(o){return tn(o,WG)},Ly;(function(o){o[o.Up=-1]="Up",o[o.Down=1]="Down"})(Ly||(Ly={}));var aP=function(o,s,d,m){for(;m=Jp(m,o,Ml,s);)if(d(m))return},QS=function(o,s,d,m,E,D){var J=0,ue=[],me=function(nt){var it=XM([nt]);o===-1&&(it=it.reverse());for(var kt=0;kt<it.length;kt++){var Nt=it[kt];if(!d(Nt,Le)){if(ue.length>0&&s(Nt,_s(ue))&&J++,Nt.line=J,E(Nt))return!0;ue.push(Nt)}}},Le=_s(D.getClientRects());if(!Le)return ue;var tt=D.getNode();return me(tt),aP(o,m,me,tt),ue},iP=function(o,s){return s.line>o},sP=function(o,s){return s.line===o},ZM=ne(QS,Ly.Up,R2,L2),GG=ne(QS,Ly.Down,L2,R2),KG=function(o,s,d,m){var E=Cl(s),D,J,ue,me,Le=[],tt=0,nt=function(Lt){return _s(Lt.getClientRects())};o===1?(D=E.next,J=L2,ue=R2,me=Kn.after(m)):(D=E.prev,J=R2,ue=L2,me=Kn.before(m));var it=nt(me);do if(!!me.isVisible()){var kt=nt(me);if(!ue(kt,it)){Le.length>0&&J(kt,_s(Le))&&tt++;var Nt=Kp(kt);if(Nt.position=me,Nt.line=tt,d(Nt))return Le;Le.push(Nt)}}while(me=D(me));return Le},cp=function(o){return function(s){return iP(o,s)}},Sv=function(o){return function(s){return sP(o,s)}},JS=fs,QM=Jp,Z_=function(o,s){return Math.abs(o.left-s)},eT=function(o,s){return Math.abs(o.right-s)},JM=function(o,s){return o>=s.left&&o<=s.right},lP=function(o,s){return o>=s.top&&o<=s.bottom},uP=function(o){return xa(o,"node")},w9=function(o,s,d){return d===void 0&&(d=j),el(o,function(m,E){if(JM(s,E))return d(E)?E:m;if(JM(s,m))return d(m)?m:E;var D=Math.min(Z_(m,s),eT(m,s)),J=Math.min(Z_(E,s),eT(E,s));return J===D&&uP(E)&&JS(E.node)||J<D?E:m})},eN=function(o,s,d,m,E){var D=QM(m,o,Ml,s,!E);do if(!D||d(D))return;while(D=QM(D,o,Ml,s))},tT=function(o,s,d){d===void 0&&(d=!0);var m=[],E=function(D,J){var ue=Fe(XM([J]),function(me){return!D(me,s)});return m=m.concat(ue),ue.length===0};return m.push(s),eN(Ly.Up,o,ne(E,R2),s.node,d),eN(Ly.Down,o,ne(E,L2),s.node,d),m},nT=function(o){return Fe(at(o.getElementsByTagName("*")),lg)},tN=function(o,s){return{node:o.node,before:Z_(o,s)<eT(o,s)}},YG=function(o,s,d){var m=XM(nT(o)),E=Fe(m,ne(lP,d)),D=function(me){return!nl(me.node)&&!Du(me.node)},J=w9(E,s,D);if(J){var ue=D(J);if(J=w9(tT(o,J,ue),s,D),J&&lg(J.node))return tN(J,s)}return null},Fg=function(o,s){o.selection.setRng(s),s4(o,o.selection.getRng())},nN=function(o,s,d){return re.some(US(o,s,d))},cP=function(o,s,d,m,E,D){var J=s===Ec.Forwards,ue=Cl(o.getBody()),me=ne(G5,J?ue.next:ue.prev),Le=J?m:E;if(!d.collapsed){var tt=ng(d);if(D(tt))return Bg(s,o,tt,s===Ec.Backwards,!1)}var nt=ey(s,o.getBody(),d);if(Le(nt))return K_(o,nt.getNode(!J));var it=xv(J,me(nt)),kt=T1(d);if(!it)return kt?re.some(d):re.none();if(Le(it))return Bg(s,o,it.getNode(!J),J,!1);var Nt=me(it);return Nt&&Le(Nt)&&I6(it,Nt)?Bg(s,o,Nt.getNode(!J),J,!1):kt?nN(o,it.toRange(),!1):re.none()},rN=function(o,s,d,m,E,D){var J=ey(s,o.getBody(),d),ue=_s(J.getClientRects()),me=s===Ly.Down;
95if(!ue)return re.none();var Le=me?GG:ZM,tt=Le(o.getBody(),cp(1),J),nt=Fe(tt,Sv(1)),it=ue.left,kt=w9(nt,it);if(kt&&D(kt.node)){var Nt=Math.abs(it-kt.left),Lt=Math.abs(it-kt.right);return Bg(s,o,kt.node,Nt<Lt,!1)}var $t;if(m(J)?$t=J.getNode():E(J)?$t=J.getNode(!0):$t=ng(d),$t){var Jt=KG(s,o.getBody(),cp(1),$t),qt=w9(Fe(Jt,Sv(1)),it);if(qt||(qt=_s(Fe(Jt,Sv(0))),qt))return nN(o,qt.position.toRange(),!1)}return nt.length===0?oN(o,me).filter(me?E:m).map(function(Mn){return US(o,Mn.toRange(),!1)}):re.none()},oN=function(o,s){var d=o.selection.getRng(),m=o.getBody();if(s){var E=Kn.fromRangeEnd(d),D=_9(m,E);return xt(D.positions)}else{var E=Kn.fromRangeStart(d),D=b9(m,E);return Wt(D.positions)}},fP=function(o,s,d){return oN(o,s).filter(d).exists(function(m){return o.selection.setRng(m.toRange()),!0})},Q_=function(o,s){var d=o.dom.createRng();d.setStart(s.container(),s.offset()),d.setEnd(s.container(),s.offset()),o.selection.setRng(d)},dP=function(o,s){o?s.setAttribute("data-mce-selected","inline-boundary"):s.removeAttribute("data-mce-selected")},vP=function(o,s,d){return Pg(s,d).map(function(m){return Q_(o,m),d})},qG=function(o,s,d){var m=o.getBody(),E=Kn.fromRangeStart(o.selection.getRng()),D=ne(Oy,o),J=up(d,D,m,E);return J.bind(function(ue){return vP(o,s,ue)})},XG=function(o,s,d){var m=rt(Cc(xe.fromDom(s.getRoot()),'*[data-mce-selected="inline-boundary"]'),function(J){return J.dom}),E=Fe(m,o),D=Fe(d,o);ct(Et(E,D),ne(dP,!1)),ct(Et(D,E),ne(dP,!0))},ZG=function(o,s){if(o.selection.isCollapsed()&&o.composing!==!0&&s.get()){var d=Kn.fromRangeStart(o.selection.getRng());Kn.isTextPosition(d)&&mG(d)===!1&&(Q_(o,xx(s.get(),d)),s.set(null))}},QG=function(o,s,d,m){if(s.selection.isCollapsed()){var E=Fe(m,o);ct(E,function(D){var J=Kn.fromRangeStart(s.selection.getRng());lp(o,s.getBody(),J).bind(function(ue){return vP(s,d,ue)})})}},hP=function(o,s,d){return Yb(o)?qG(o,s,d).isSome():!1},C9=function(o,s,d){return Yb(s)?Ry(o,s):!1},rT=function(o){var s=Df(null),d=ne(Oy,o);return o.on("NodeChange",function(m){Yb(o)&&!(Io.browser.isIE()&&m.initial)&&(XG(d,o.dom,m.parents),ZG(o,s),QG(d,o,s,m.parents))}),s},aN=ne(C9,!0),JG=ne(C9,!1),oT=function(o,s,d){if(Yb(o)){var m=oN(o,s).getOrThunk(function(){var E=o.selection.getRng();return s?Kn.fromRangeEnd(E):Kn.fromRangeStart(E)});return lp(ne(Oy,o),o.getBody(),m).exists(function(E){var D=y9(E);return Pg(d,D).exists(function(J){return Q_(o,J),!0})})}else return!1},eK=function(o,s){var d=document.createRange();return d.setStart(o.container(),o.offset()),d.setEnd(s.container(),s.offset()),d},tK=function(o){return ec(af(o),I1(o),function(s,d){var m=xv(!0,s),E=xv(!1,d);return gv(o,m).forall(function(D){return D.isEqual(E)})}).getOr(!0)},iN=function(o,s){return function(d){return Pg(s,d).exists(function(m){return Q_(o,m),!0})}},pP=function(o,s,d,m){var E=o.getBody(),D=ne(Oy,o);o.undoManager.ignore(function(){o.selection.setRng(eK(d,m)),o.execCommand("Delete"),lp(D,E,Kn.fromRangeStart(o.selection.getRng())).map(qS).map(iN(o,s))}),o.nodeChanged()},nK=function(o,s){var d=nh(s,o);return d||o},sN=function(o,s,d,m){var E=nK(o.getBody(),m.container()),D=ne(Oy,o),J=lp(D,E,m);return J.bind(function(ue){return d?ue.fold(K(re.some(qS(ue))),re.none,K(re.some(y9(ue))),re.none):ue.fold(re.none,K(re.some(y9(ue))),re.none,K(re.some(qS(ue))))}).map(iN(o,s)).getOrThunk(function(){var ue=oh(d,E,m),me=ue.bind(function(Le){return lp(D,E,Le)});return ec(J,me,function(){return Lg(D,E,m).exists(function(Le){return tK(Le)?(pr(o,d,xe.fromDom(Le)),!0):!1})}).orThunk(function(){return me.bind(function(Le){return ue.map(function(tt){return d?pP(o,s,m,tt):pP(o,s,tt,m),!0})})}).getOr(!1)})},aT=function(o,s,d){if(o.selection.isCollapsed()&&Yb(o)){var m=Kn.fromRangeStart(o.selection.getRng());return sN(o,s,d,m)}return!1},rK=function(o,s){var d=No(s,o);return Ct(d,xf).fold(K(d),function(m){return d.slice(0,m)})},oK=function(o){return v2(o)===1},aK=function(o,s,d,m){var E=ne(BR,s),D=rt(Fe(m,E),function(ue){return ue.dom});if(D.length===0)pr(s,o,d);else{var J=WU(d.dom,D);s.selection.setRng(J.toRange())}},iK=function(o,s){var d=xe.fromDom(o.getBody()),m=xe.fromDom(o.selection.getStart()),E=Fe(rK(d,m),oK);return xt(E).exists(function(D){var J=Kn.fromRangeStart(o.selection.getRng());return gG(s,J,D.dom)&&!PR(D)?(aK(s,o,D,E),!0):!1})},iT=function(o,s){return o.selection.isCollapsed()?iK(o,s):!1},lN=function(o,s,d){return o._selectionOverrides.hideFakeCaret(),pr(o,s,xe.fromDom(d)),!0},sT=function(o,s){var d=s?_y:wy,m=s?Ec.Forwards:Ec.Backwards,E=ey(m,o.getBody(),o.selection.getRng());return d(E)?lN(o,s,E.getNode(!s)):re.from(xv(s,E)).filter(function(D){return d(D)&&I6(E,D)}).exists(function(D){return lN(o,s,D.getNode(!s))})},lT=function(o,s){var d=o.selection.getNode();return Du(d)?lN(o,s,d):!1},uT=function(o,s){return o.selection.isCollapsed()?sT(o,s):lT(o,s)},sK=function(o){return k0(o,function(s){return nd(s.dom)||fs(s.dom)}).exists(function(s){return nd(s.dom)})},J_=function(o){var s=parseInt(o,10);return isNaN(s)?0:s},mP=function(o,s){var d=o||Pp(s)?"margin":"padding",m=Sa(s,"direction")==="rtl"?"
95-right":"-left";return d+m},lK=function(o,s,d,m,E,D){var J=mP(d,xe.fromDom(D));if(s==="outdent"){var ue=Math.max(0,J_(D.style[J])-m);o.setStyle(D,J,ue?ue+E:"")}else{var ue=J_(D.style[J])+m+E;o.setStyle(D,J,ue)}},uK=function(o,s){return Ft(s,function(d){var m=mP(cx(o),d),E=Iu(d,m).map(J_).getOr(0),D=o.dom.getContentEditable(d.dom);return D!=="false"&&E>0})},gP=function(o){var s=bP(o);return!o.mode.isReadOnly()&&(s.length>1||uK(o,s))},yP=function(o){return od(o)||Bu(o)},cK=function(o){return ks(o).exists(yP)},bP=function(o){return Fe($u(o.selection.getSelectedBlocks()),function(s){return!yP(s)&&!cK(s)&&sK(s)})},_P=function(o,s){var d=o.dom,m=o.selection,E=o.formatter,D=I5(o),J=/[a-z%]+$/i.exec(D)[0],ue=parseInt(D,10),me=cx(o),Le=xc(o);!o.queryCommandState("InsertUnorderedList")&&!o.queryCommandState("InsertOrderedList")&&Le===""&&!d.getParent(m.getNode(),d.isBlock)&&E.apply("div"),ct(bP(o),function(tt){lK(d,s,me,ue,J,tt.dom)})},wP=function(o,s){if(o.selection.isCollapsed()&&gP(o)){var d=o.dom,m=o.selection.getRng(),E=Kn.fromRangeStart(m),D=d.getParent(m.startContainer,d.isBlock);if(D!==null&&p_(xe.fromDom(D),E))return _P(o,"outdent"),!0}return!1},CP=function(o,s){o.getDoc().execCommand(s,!1,null)},fK=function(o,s){if(!wP(o)){if(WS(o,!1))return;if(jS(o,!1))return;if(aT(o,s,!1))return;if(HS(o,!1))return;if(A4(o))return;if(GS(o,!1))return;if(uT(o,!1))return;if(VS(o))return;if(iT(o,!1))return;CP(o,"Delete"),TB(o)}},dK=function(o,s){if(!WS(o,!0)){if(jS(o,!0))return;if(aT(o,s,!0))return;if(HS(o,!0))return;if(A4(o))return;if(GS(o,!0))return;if(uT(o,!0))return;if(VS(o))return;if(iT(o,!0))return;CP(o,"ForwardDelete")}},a0=function(o,s){o.addCommand("delete",function(){fK(o,s)}),o.addCommand("forwardDelete",function(){dK(o,s)})},cT=5,xP=400,uN=function(o){return o.touches===void 0||o.touches.length!==1?re.none():re.some(o.touches[0])},vK=function(o,s){var d=Math.abs(o.clientX-s.x),m=Math.abs(o.clientY-s.y);return d>cT||m>cT},EP=function(o){var s=Gp(),d=Df(!1),m=Fu(function(E){o.fire("longpress",fo(fo({},E),{type:"longpress"})),d.set(!0)},xP);o.on("touchstart",function(E){uN(E).each(function(D){m.cancel();var J={x:D.clientX,y:D.clientY,target:E.target};m.throttle(E),d.set(!1),s.set(J)})},!0),o.on("touchmove",function(E){m.cancel(),uN(E).each(function(D){s.on(function(J){vK(D,J)&&(s.clear(),d.set(!1),o.fire("longpresscancel"))})})},!0),o.on("touchend touchcancel",function(E){m.cancel(),E.type!=="touchcancel"&&s.get().filter(function(D){return D.target.isEqualNode(E.target)}).each(function(){d.get()?E.preventDefault():o.fire("tap",fo(fo({},E),{type:"tap"}))})},!0)},cN=function(o,s){return io(o,s.nodeName)},SP=function(o,s){return Jr(s)?!0:Ko(s)?!cN(o,s)&&!dd(s):!1},hK=function(o,s,d){return $e(zE(xe.fromDom(d),xe.fromDom(s)),function(m){return cN(o,m.dom)})},pK=function(o,s){if(Jr(s)){if(s.nodeValue.length===0)return!0;if(/^\s+$/.test(s.nodeValue)&&(!s.nextSibling||cN(o,s.nextSibling)))return!0}return!1},mK=function(o){var s=o.dom,d=o.selection,m=o.schema,E=m.getBlockElements(),D=d.getStart(),J=o.getBody(),ue,me,Le,tt=xc(o);if(!(!D||!Ko(D)||!tt)){var nt=J.nodeName.toLowerCase();if(!(!m.isValidChild(nt,tt.toLowerCase())||hK(E,J,D))){var it=d.getRng(),kt=it.startContainer,Nt=it.startOffset,Lt=it.endContainer,$t=it.endOffset,Jt=B1(o);for(D=J.firstChild;D;)if(SP(E,D)){if(pK(E,D)){me=D,D=D.nextSibling,s.remove(me);continue}ue||(ue=s.create(tt,z2(o)),D.parentNode.insertBefore(ue,D),Le=!0),me=D,D=D.nextSibling,ue.appendChild(me)}else ue=null,D=D.nextSibling;Le&&Jt&&(it.setStart(kt,Nt),it.setEnd(Lt,$t),d.setRng(it),o.nodeChanged())}}},e8=function(o){xc(o)&&o.on("NodeChange",ne(mK,o))},TP=function(o){return Ad(xe.fromDom(o.getBody()),"*[data-mce-caret]").map(function(s){return s.dom}).getOrNull()},AP=function(o){o.selection.setRng(o.selection.getRng())},fN=function(o,s){s.hasAttribute("data-mce-caret")&&(D0(s),AP(o),o.selection.scrollIntoView(s))},dN=function(o,s){var d=TP(o);if(!!d){if(s.type==="compositionstart"){s.preventDefault(),s.stopPropagation(),fN(o,d);return}kd(d)&&(fN(o,d),o.undoManager.add())}},gK=function(o){o.on("keyup compositionstart",ne(dN,o))},kP=fs,yK=function(o,s,d){return cP(s,o,d,um,cm,kP)},bK=function(o,s,d){var m=function(D){return um(D)||PE(D)},E=function(D){return cm(D)||FE(D)};return rN(s,o,d,m,E,kP)}
95,_K=function(o){var s=o.dom.create(xc(o));return(!Io.ie||Io.ie>=11)&&(s.innerHTML='<br data-mce-bogus="1">'),s},OP=function(o,s,d){var m=Cl(o.getBody()),E=ne(G5,s===1?m.next:m.prev);if(d.collapsed&&nk(o)){var D=o.dom.getParent(d.startContainer,"PRE");if(!D)return;var J=E(Kn.fromRangeStart(d));if(!J){var ue=_K(o);s===1?o.$(D).after(ue):o.$(D).before(ue),o.selection.select(ue,!0),o.selection.collapse()}}},fp=function(o,s){var d=s?Ec.Forwards:Ec.Backwards,m=o.selection.getRng();return yK(d,o,m).orThunk(function(){return OP(o,d,m),re.none()})},wK=function(o,s){var d=s?1:-1,m=o.selection.getRng();return bK(d,o,m).orThunk(function(){return OP(o,d,m),re.none()})},MP=function(o,s){return fp(o,s).exists(function(d){return Fg(o,d),!0})},NP=function(o,s){return wK(o,s).exists(function(d){return Fg(o,d),!0})},DP=function(o,s){var d=s?cm:um;return fP(o,s,d)},CK=function(o){return De(["figcaption"],si(o))},IP=function(o){var s=document.createRange();return s.setStartBefore(o.dom),s.setEndBefore(o.dom),s},RP=function(o,s,d){d?yl(o,s):gf(o,s)},By=function(o,s){var d=xe.fromTag("br");return RP(o,d,s),IP(d)},xK=function(o,s,d,m){var E=xe.fromTag(d),D=xe.fromTag("br");return Qe(E,m),yl(E,D),RP(o,E,s),IP(D)},EK=function(o,s,d,m){return s===""?By(o,m):xK(o,m,s,d)},LP=function(o,s){var d=ne(jo,s);return k0(xe.fromDom(o.container()),xf,d).filter(CK)},vN=function(o,s,d){return s?YM(o.dom,d):jG(o.dom,d)},SK=function(o,s){var d=xe.fromDom(o.getBody()),m=Kn.fromRangeStart(o.selection.getRng()),E=xc(o),D=z2(o);return LP(m,d).exists(function(){if(vN(d,s,m)){var J=EK(d,E,D,s);return o.selection.setRng(J),!0}else return!1})},BP=function(o,s){return o.selection.isCollapsed()?SK(o,s):!1},TK=function(o){return rt(o,function(s){return fo({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:$},s)})},P4=function(o,s){return s.keyCode===o.keyCode&&s.shiftKey===o.shiftKey&&s.altKey===o.altKey&&s.ctrlKey===o.ctrlKey&&s.metaKey===o.metaKey},AK=function(o,s){return tn(TK(o),function(d){return P4(d,s)?[d]:[]})},ci=function(o){for(var s=[],d=1;d<arguments.length;d++)s[d-1]=arguments[d];return function(){return o.apply(null,s)}},t8=function(o,s){return mt(AK(o,s),function(d){return d.action()})},PP=function(o,s){var d=s?Ec.Forwards:Ec.Backwards,m=o.selection.getRng();return cP(o,d,m,_y,wy,Du).exists(function(E){return Fg(o,E),!0})},fT=function(o,s){var d=s?1:-1,m=o.selection.getRng();return rN(o,d,m,_y,wy,Du).exists(function(E){return Fg(o,E),!0})},dT=function(o,s){var d=s?wy:_y;return fP(o,s,d)},FP=function(o,s){return{left:o.left-s,top:o.top-s,right:o.right+s*2,bottom:o.bottom+s*2,width:o.width+s,height:o.height+s}},$P=function(o,s){return tn(s,function(d){var m=FP(Kp(d.getBoundingClientRect()),-1);return[{x:m.left,y:o(m),cell:d},{x:m.right,y:o(m),cell:d}]})},zP=function(o,s,d){return Ye(o,function(m,E){return m.fold(function(){return re.some(E)},function(D){var J=Math.sqrt(Math.abs(D.x-s)+Math.abs(D.y-d)),ue=Math.sqrt(Math.abs(E.x-s)+Math.abs(E.y-d));return re.some(ue<J?E:D)})},re.none())},HP=function(o,s,d,m,E){var D=Cc(xe.fromDom(d),"td,th,caption").map(function(ue){return ue.dom}),J=Fe($P(o,D),function(ue){return s(ue,E)});return zP(J,m,E).map(function(ue){return ue.cell})},x9=function(o){return o.bottom},kK=function(o){return o.top},OK=function(o,s){return o.y<s},MK=function(o,s){return o.y>s},n8=ne(HP,x9,OK),NK=ne(HP,kK,MK),$g=function(o,s){return Wt(s.getClientRects()).bind(function(d){return n8(o,d.left,d.top)}).bind(function(d){return rP(oP(d),s)})},DK=function(o,s){return xt(s.getClientRects()).bind(function(d){return NK(o,d.left,d.top)}).bind(function(d){return rP(qM(d),s)})},hN=function(o,s,d){return d.breakAt.exists(function(m){return o(s,m).breakAt.isSome()})},pN=function(o){return o.breakType===Gc.Wrap&&o.positions.length===0},IK=function(o){return o.breakType===Gc.Br&&o.positions.length===1},VP=function(o,s,d){var m=o(s,d);return pN(m)||!qi(d.getNode())&&IK(m)?!hN(o,s,m):m.breakAt.isNone()},RK=ne(VP,b9),UP=ne(VP,_9),LK=function(o,s,d){var m=Kn.fromRangeStart(s);return Z0(!o,d).exists(function(E){return E.isEqual(m)})},BK=function(o,s,d,m){var E=o.selection.getRng(),D=s?1:-1;return U5()&&LK(s,E,d)?(Bg(D,o,d,!s,!1).each(function(J){Fg(o,J)}),!0):!1},PK=function(o,s,d){return $g(s,d).orThunk(function(){return Wt(d.getClientRects()).bind(function(m){return KM(VG(o,Kn.before(s)),m.left)})}).getOr(Kn.before(s))},FK=function(o,s,d){return DK(s,d).orThunk(function(){return Wt(d.getClientRects()).bind(function(m){return KM(UG(o,Kn.after(s)),m.left)})}).getOr(Kn.after(s))},mN=function(o,s){var d=s.getNode(o);return Ko(d)&&d.nodeName==="TABLE"?re.some(d):re.none()},$K=function(o,s,d,m){var E=xc(s);E?s.undoManager.transact(function(){var D=xe.fromTag(E);Qe(D,z2(s)),yl(D,xe.fromTag("br")),o?$v(xe.fromDom(d),D):Os(xe.fromDom(d),D);var J=s.dom.createRng();J.setStart(D.dom,0),J.setEnd(D.dom,0),Fg(s,J)}):Fg(s,m.toRange())},Py=function(o,s,d){var m=mN(!!s,d),E=s===!1;m.fold(function(){return Fg(o,d.toRange())},function(D){return Z0(E,o.getBody()).filter(function(J){return J.isEqual(d)}).fold(function(){return Fg(o,d.toRange())},function(J){return $K(s,o,D,d)})})},zK=function(o,s,d,m){var E=o.selection.getRng(),D=Kn.fromRangeStart(E),J=o.getBody();if(!s&&RK(m,D)){var ue=PK(J,d,D);return Py(o,s,ue),!0}else if(s&&UP(m,D)){var ue=FK(J,d,D);return Py(o,s,ue),!0}else return!1},r8=function(o,s,d){return re.from(o.dom.getParent(o.selection.getNode(),"td,th")).bind(function(m){return re.from(o.dom.getParent(m,"table")).map(function(E){return d(o,s,E,m)})}).getOr(!1)},gN=function(o,s){return r8(o,s,BK)},vT=function(o,s){return r8(o,s,zK)},yN=function(o,s,d){var m=mo().os;t8([{keyCode:Xo.RIGHT,action:ci(MP,o,!0)},{keyCode:Xo.LEFT,action:ci(MP,o,!1)},{keyCode:Xo.UP,action:ci(NP,o,!1)},{keyCode:Xo.DOWN,action:ci(NP,o,!0)},{keyCode:Xo.RIGHT,action:ci(gN,o,!0)},{keyCode:Xo.LEFT,action:ci(gN,o,!1)},{keyCode:Xo.UP,action:ci(vT,o,!1)},{keyCode:Xo.DOWN,action:ci(vT,o,!0)},{keyCode:Xo.RIGHT,action:ci(PP,o,!0)},{keyCode:Xo.LEFT,action:ci(PP,o,!1)},{keyCode:Xo.UP,action:ci(fT,o,!1)},{keyCode:Xo.DOWN,action:ci(fT,o,!0)},{keyCode:Xo.RIGHT,action:ci(hP,o,s,!0)},{keyCode:Xo.LEFT,action:ci(hP,o,s,!1)},{keyCode:Xo.RIGHT,ctrlKey:!m.isOSX(),altKey:m.isOSX(),action:ci(aN,o,s)},{keyCode:Xo.LEFT,ctrlKey:!m.isOSX(),altKey:m.isOSX(),action:ci(JG,o,s)},{keyCode:Xo.UP,action:ci(BP,o,!1)},{keyCode:Xo.DOWN,action:ci(BP,o,!0)}],d).each(function(E){d.preventDefault()})},HK=function(o,s){o.on("keydown",function(d){d.isDefaultPrevented()===!1&&yN(o,s,d)})},VK=function(o,s,d){t8([{keyCode:Xo.BACKSPACE,action:ci(wP,o,!1)},{keyCode:Xo.BACKSPACE,action:ci(WS,o,!1)},{keyCode:Xo.DELETE,action:ci(WS,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(jS,o,!1)},{keyCode:Xo.DELETE,action:ci(jS,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(aT,o,s,!1)},{keyCode:Xo.DELETE,action:ci(aT,o,s,!0)},{keyCode:Xo.BACKSPACE,action:ci(A4,o,!1)},{keyCode:Xo.DELETE,action:ci(A4,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(GS,o,!1)},{keyCode:Xo.DELETE,action:ci(GS,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(uT,o,!1)},{keyCode:Xo.DELETE,action:ci(uT,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(VS,o,!1)},{keyCode:Xo.DELETE,action:ci(VS,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(HS,o,!1)},{keyCode:Xo.DELETE,action:ci(HS,o,!0)},{keyCode:Xo.BACKSPACE,action:ci(iT,o,!1)},{keyCode:Xo.DELETE,action:ci(iT,o,!0)}],d).each(function(m){d.preventDefault()})},UK=function(o,s){t8([{keyCode:Xo.BACKSPACE,action:ci(WB,o)},{keyCode:Xo.DELETE,action:ci(WB,o)}],s)},bN=function(o,s){o.on("keydown",function(d){d.isDefaultPrevented()===!1&&VK(o,s,d)}),o.on("keyup",function(d){d.isDefaultPrevented()===!1&&UK(o,d)})},jK=function(o){for(;o;){if(o.nodeType===1||o.nodeType===3&&o.data&&/[\r\n\s]/.test(o.data))return o;o=o.nextSibling}},E9=function(o,s){var d,m=s,E=o.dom,D=o.schema.getMoveCaretBeforeOnEnterElements();if(!!s){if(/^(LI|DT|DD)$/.test(s.nodeName)){var J=jK(s.firstChild);J&&/^(UL|OL|DL)$/.test(J.nodeName)&&s.insertBefore(E.doc.createTextNode(Zc),s.firstChild)}var ue=E.createRng();if(s.normalize(),s.hasChildNodes()){for(var me=new hi(s,s);d=me.current();){if(Jr(d)){ue.setStart(d,0),ue.setEnd(d,0);break}if(D[d.nodeName.toLowerCase()]){ue.setStartBefore(d),ue.setEndBefore(d);break}m=d,d=me.next()}d||(ue.setStart(m,0),ue.setEnd(m,0))}else qi(s)?s.nextSibling&&E.isBlock(s.nextSibling)?(ue.setStartBefore(s),ue.setEndBefore(s)):(ue.setStartAfter(s),ue.setEndAfter(s)):(ue.setStart(s,0),ue.setEnd(s,0));o.selection.setRng(ue),s4(o,ue)}},WK=function(o,s){var d=o.getRoot(),m,E;for(m=s;m!==d&&o.getContentEditable(m)!=="false";)o.getContentEditable(m)==="true"&&(E=m),m=m.parentNode;return m!==d?E:d},_N=function(o){return re.from(o.dom.getParent(o.selection.getStart(!0),o.dom.isBlock))},jP=function(o){return _N(o).fold(K(""),function(s){return s.nodeName.toUpperCase()})},GK=function(o){return _N(o).filter(function(s){return Bu(xe.fromDom(s))}).isSome()},KK=function(o,s){return o.firstChild&&o.firstChild.nodeName===s},YK=function(o){var s;return((s=o.parentNode)===null||s===void 0?void 0:s.firstChild)===o},WP=function(o,s){return o&&o.parentNode&&o.parentNode.nodeName===s},GP=function(o){return o&&/^(OL|UL|LI)$/.test(o.nodeName)},qK=function(o){return GP(o)&&GP(o.parentNode)},hT=function(o){var s=o.parentNode;return/^(LI|DT|DD)$/.test(s.nodeName)?s:o},pT=function(o,s,d){for(var m=o[d?"firstChild":"lastChild"];m&&!Ko(m);)m=m[d?"nextSibling":"previousSibling"];return m===s},KP=function(o,s,d,m,E){var D=o.dom,J=o.selection.getRng();if(d!==o.getBody()){qK(d)&&(E="LI");var ue=E?s(E):D.create("BR");
95if(pT(d,m,!0)&&pT(d,m,!1))if(WP(d,"LI")){var me=hT(d);D.insertAfter(ue,me),YK(d)?D.remove(me):D.remove(d)}else D.replace(ue,d);else if(pT(d,m,!0))WP(d,"LI")?(D.insertAfter(ue,hT(d)),ue.appendChild(D.doc.createTextNode(" ")),ue.appendChild(d)):d.parentNode.insertBefore(ue,d),D.remove(m);else if(pT(d,m,!1))D.insertAfter(ue,hT(d)),D.remove(m);else{d=hT(d);var Le=J.cloneRange();Le.setStartAfter(m),Le.setEndAfter(d);var tt=Le.extractContents();E==="LI"&&KK(tt,"LI")?(ue=tt.firstChild,D.insertAfter(tt,d)):(D.insertAfter(tt,d),D.insertAfter(ue,d)),D.remove(m)}E9(o,ue)}},XK=function(o){ct(I2(xe.fromDom(o),$s),function(s){var d=s.dom;d.nodeValue=$c(d.nodeValue)})},YP=function(o,s){return s&&s.nodeName==="A"&&o.isEmpty(s)},ZK=function(o){return o&&/^(TD|TH|CAPTION)$/.test(o.nodeName)},wN=function(o){o.innerHTML='<br data-mce-bogus="1">'},CN=function(o,s){return o.nodeName===s||o.previousSibling&&o.previousSibling.nodeName===s},qP=function(o,s){return s&&o.isBlock(s)&&!/^(TD|TH|CAPTION|FORM)$/.test(s.nodeName)&&!/^(fixed|absolute)/i.test(s.style.position)&&o.getContentEditable(s)!=="true"},QK=function(o,s,d){var m=d,E=[],D;if(!!m){for(;m=m.firstChild;){if(o.isBlock(m))return;Ko(m)&&!s[m.nodeName.toLowerCase()]&&E.push(m)}for(D=E.length;D--;)m=E[D],(!m.hasChildNodes()||m.firstChild===m.lastChild&&m.firstChild.nodeValue===""||YP(o,m))&&o.remove(m)}},xN=function(o,s,d){return Jr(s)===!1?d:o?d===1&&s.data.charAt(d-1)===fn?0:d:d===s.data.length-1&&s.data.charAt(d)===fn?s.data.length:d},JK=function(o){var s=o.cloneRange();return s.setStart(o.startContainer,xN(!0,o.startContainer,o.startOffset)),s.setEnd(o.endContainer,xN(!1,o.endContainer,o.endOffset)),s},eY=function(o){do Jr(o)&&(o.nodeValue=o.nodeValue.replace(/^[\r\n]+/,"")),o=o.firstChild;while(o)},XP=function(o,s){var d=o.getRoot(),m,E;for(m=s;m!==d&&o.getContentEditable(m)!=="false";)o.getContentEditable(m)==="true"&&(E=m),m=m.parentNode;return m!==d?E:d},tY=function(o,s,d){var m=o.dom;re.from(d.style).map(m.parseStyle).each(function(me){var Le=Ys(xe.fromDom(s)),tt=fo(fo({},Le),me);m.setStyles(s,tt)});var E=re.from(d.class).map(function(me){return me.split(/\s+/)}),D=re.from(s.className).map(function(me){return Fe(me.split(/\s+/),function(Le){return Le!==""})});ec(E,D,function(me,Le){var tt=Fe(Le,function(it){return!De(me,it)}),nt=Fs(Fs([],me,!0),tt,!0);m.setAttrib(s,"class",nt.join(" "))});var J=["style","class"],ue=nn(d,function(me,Le){return!De(J,Le)});m.setAttribs(s,ue)},S9=function(o,s){var d=xc(o);if(d&&d.toLowerCase()===s.tagName.toLowerCase()){var m=z2(o);tY(o,s,m)}},nY=function(o,s,d,m,E){var D,J,ue,me,Le,tt,nt=s||"P",it=o.dom,kt=XP(it,m);if(J=it.getParent(m,it.isBlock),!J||!qP(it,J)){if(J=J||kt,J===o.getBody()||ZK(J)?tt=J.nodeName.toLowerCase():tt=J.parentNode.nodeName.toLowerCase(),!J.hasChildNodes())return D=it.create(nt),S9(o,D),J.appendChild(D),d.setStart(D,0),d.setEnd(D,0),D;for(me=m;me.parentNode!==J;)me=me.parentNode;for(;me&&!it.isBlock(me);)ue=me,me=me.previousSibling;if(ue&&o.schema.isValidChild(tt,nt.toLowerCase())){for(D=it.create(nt),S9(o,D),ue.parentNode.insertBefore(D,ue),me=ue;me&&!it.isBlock(me);)Le=me.nextSibling,D.appendChild(me),me=Le;d.setStart(m,E),d.setEnd(m,E)}}return m},rY=function(o,s){s.normalize();var d=s.lastChild;(!d||/^(left|right)$/gi.test(o.getStyle(d,"float",!0)))&&o.add(s,"br")},ZP=function(o,s){var d,m,E,D,J,ue,me,Le,tt,nt,it=o.dom,kt=o.schema,Nt=kt.getNonEmptyElements(),Lt=o.selection.getRng(),$t=function(ir){var _r=m,Go,eo,lr,Lo=kt.getTextInlineElements();if(ir||Le==="TABLE"||Le==="HR"?Go=it.create(ir||tt):Go=D.cloneNode(!1),lr=Go,Y7(o)===!1)it.setAttrib(Go,"style",null),it.setAttrib(Go,"class",null);else do if(Lo[_r.nodeName]){if(Wh(_r)||dd(_r))continue;eo=_r.cloneNode(!1),it.setAttrib(eo,"id",""),Go.hasChildNodes()?(eo.appendChild(Go.firstChild),Go.appendChild(eo)):(lr=eo,Go.appendChild(eo))}while((_r=_r.parentNode)&&_r!==ln);return S9(o,Go),wN(lr),Go},Jt=function(ir){var _r,Go,eo=xN(ir,m,E);if(Jr(m)&&(ir?eo>0:eo<m.nodeValue.length))return!1;if(m.parentNode===D&&nt&&!ir||ir&&Ko(m)&&m===D.firstChild)return!0;if(CN(m,"TABLE")||CN(m,"HR"))return nt&&!ir||!nt&&ir;var lr=new hi(m,D);for(Jr(m)&&(ir&&eo===0?lr.prev():!ir&&eo===m.nodeValue.length&&lr.next());_r=lr.current();){if(Ko(_r)){if(!_r.getAttribute("data-mce-bogus")&&(Go=_r.nodeName.toLowerCase(),Nt[Go]&&Go!=="br"))return!1}else if(Jr(_r)&&!Od(_r.nodeValue))return!1;ir?lr.prev():lr.next()}return!0},qt=function(){/^(H[1-6]|PRE|FIGURE)$/.test(Le)&&In!=="HGROUP"?J=$t(tt):J=$t(),Wb(o)&&qP(it,me)&&it.isEmpty(D)?J=it.split(me,D):it.insertAfter(J,D),E9(o,J)};Q6(it,Lt).each(function(ir){Lt.setStart(ir.startContainer,ir.startOffset),Lt.setEnd(ir.endContainer,ir.endOffset)}),m=Lt.startContainer,E=Lt.startOffset,tt=xc(o);var Mn=!!(s&&s.shiftKey),xn=!!(s&&s.ctrlKey);Ko(m)&&m.hasChildNodes()&&(nt=E>m.childNodes.length-1,m=m.childNodes[Math.min(E,m.childNodes.length-1)]||m,nt&&Jr(m)?E=m.nodeValue.length:E=0);var ln=XP(it,m);if(!!ln){(tt&&!Mn||!tt&&Mn)&&(m=nY(o,tt,Lt,m,E)),D=it.getParent(m,it.isBlock),me=D?it.getParent(D.parentNode,it.isBlock):null,Le=D?D.nodeName.toUpperCase():"";var In=me?me.nodeName.toUpperCase():"";if(In==="LI"&&!xn&&(D=me,me=me.parentNode,Le=In),/^(LI|DT|DD)$/.test(Le)&&it.isEmpty(D)){KP(o,$t,me,D,tt);return}tt&&D===o.getBody()||(tt=tt||"P",Wi(D)?(J=D0(D),it.isEmpty(D)&&wN(D),S9(o,J),E9(o,J)):Jt()?qt():Jt(!0)?(J=D.parentNode.insertBefore($t(),D),E9(o,CN(D,"HR")?J:D)):(d=JK(Lt).cloneRange(),d.setEndAfter(D),ue=d.extractContents(),XK(ue),eY(ue),J=ue.firstChild,it.insertAfter(ue,D),QK(it,Nt,J),rY(it,D),it.isEmpty(D)&&wN(D),J.normalize(),it.isEmpty(J)?(it.remove(J),qt()):(S9(o,J),E9(o,J))),it.setAttrib(J,"id",""),o.fire("NewBlock",{newBlock:J}))}},oY=function(o,s,d){for(var m=new hi(s,d),E,D=o.getNonEmptyElements();E=m.next();)if(D[E.nodeName.toLowerCase()]||E.length>0)return!0},QP=function(o,s,d){var m=o.dom.createRng();d?(m.setStartBefore(s),m.setEndBefore(s)):(m.setStartAfter(s),m.setEndAfter(s)),o.selection.setRng(m),s4(o,m)},JP=function(o,s){var d=o.selection,m=o.dom,E=d.getRng(),D,J;Q6(m,E).each(function(Nt){E.setStart(Nt.startContainer,Nt.startOffset),E.setEnd(Nt.endContainer,Nt.endOffset)});var ue=E.startOffset,me=E.startContainer;if(me.nodeType===1&&me.hasChildNodes()){var Le=ue>me.childNodes.length-1;me=me.childNodes[Math.min(ue,me.childNodes.length-1)]||me,Le&&me.nodeType===3?ue=me.nodeValue.length:ue=0}var tt=m.getParent(me,m.isBlock),nt=tt?m.getParent(tt.parentNode,m.isBlock):null,it=nt?nt.nodeName.toUpperCase():"",kt=!!(s&&s.ctrlKey);it==="LI"&&!kt&&(tt=nt),me&&me.nodeType===3&&ue>=me.nodeValue.length&&(oY(o.schema,me,tt)||(D=m.create("br"),E.insertNode(D),E.setStartAfter(D),E.setEndAfter(D),J=!0)),D=m.create("br"),h6(m,E,D),QP(o,D,J),o.undoManager.add()},eF=function(o,s){var d=xe.fromTag("br");Os(xe.fromDom(s),d),o.undoManager.add()},mT=function(o,s){EN(o.getBody(),s)||$v(xe.fromDom(s),xe.fromTag("br"));var d=xe.fromTag("br");$v(xe.fromDom(s),d),QP(o,d.dom,!1),o.undoManager.add()},tF=function(o){return qi(o.getNode())}
95,EN=function(o,s){return tF(Kn.after(s))?!0:gv(o,Kn.after(s)).map(function(d){return qi(d.getNode())}).getOr(!1)},gT=function(o){return o&&o.nodeName==="A"&&"href"in o},nF=function(o){return o.fold(U,gT,gT,U)},aY=function(o){var s=ne(Oy,o),d=Kn.fromRangeStart(o.selection.getRng());return lp(s,o.getBody(),d).filter(nF)},rF=function(o,s){s.fold($,ne(eF,o),ne(mT,o),$)},F4=function(o,s){var d=aY(o);d.isSome()?d.each(ne(rF,o)):JP(o,s)},SN=function(o,s){return _N(o).filter(function(d){return s.length>0&&yr(xe.fromDom(d),s)}).isSome()},TN=function(o){return SN(o,H2(o))},iY=function(o){return SN(o,ux(o))},c1=Eo.generate([{br:[]},{block:[]},{none:[]}]),sY=function(o,s){return iY(o)},AN=function(o){return function(s,d){var m=xc(s)==="";return m===o}},oF=function(o){return function(s,d){return GK(s)===o}},aF=function(o,s){return function(d,m){var E=jP(d)===o.toUpperCase();return E===s}},yT=function(o){return aF("pre",o)},lY=function(){return aF("summary",!0)},T9=function(o){return function(s,d){return N5(s)===o}},o8=function(o,s){return TN(o)},A9=function(o,s){return s},bT=function(o){var s=xc(o),d=WK(o.dom,o.selection.getStart());return d&&o.schema.isValidChild(d.nodeName,s||"P")},ch=function(o,s){return function(d,m){var E=Ye(o,function(D,J){return D&&J(d,m)},!0);return E?re.some(s):re.none()}},iF=function(o,s){return m9([ch([sY],c1.none()),ch([lY()],c1.br()),ch([yT(!0),T9(!1),A9],c1.br()),ch([yT(!0),T9(!1)],c1.block()),ch([yT(!0),T9(!0),A9],c1.block()),ch([yT(!0),T9(!0)],c1.br()),ch([oF(!0),A9],c1.br()),ch([oF(!0)],c1.block()),ch([AN(!0),A9,bT],c1.block()),ch([AN(!0)],c1.br()),ch([o8],c1.br()),ch([AN(!1),A9],c1.br()),ch([bT],c1.block())],[o,!!(s&&s.shiftKey)]).getOr(c1.none())},kN=function(o,s){iF(o,s).fold(function(){F4(o,s)},function(){ZP(o,s)},$)},sF=function(o,s){s.isDefaultPrevented()||(s.preventDefault(),Ij(o.undoManager),o.undoManager.transact(function(){o.selection.isCollapsed()===!1&&o.execCommand("Delete"),kN(o,s)}))},lF=function(o){o.on("keydown",function(s){s.keyCode===Xo.ENTER&&sF(o,s)})},ON=function(o,s,d){t8([{keyCode:Xo.END,action:ci(DP,o,!0)},{keyCode:Xo.HOME,action:ci(DP,o,!1)},{keyCode:Xo.END,action:ci(dT,o,!0)},{keyCode:Xo.HOME,action:ci(dT,o,!1)},{keyCode:Xo.END,action:ci(oT,o,!0,s)},{keyCode:Xo.HOME,action:ci(oT,o,!1,s)}],d).each(function(m){d.preventDefault()})},uF=function(o,s){o.on("keydown",function(d){d.isDefaultPrevented()===!1&&ON(o,s,d)})},uY=mo().browser,cY=function(o){var s=n6(function(){o.composing||qE(o)},0);uY.isIE()&&(o.on("keypress",function(d){s.throttle()}),o.on("remove",function(d){s.cancel()}))},_T=function(o){cY(o),o.on("input",function(s){s.isComposing===!1&&qE(o)})},fY=mo(),dY=function(o,s,d){t8([{keyCode:Xo.PAGE_UP,action:ci(oT,o,!1,s)},{keyCode:Xo.PAGE_DOWN,action:ci(oT,o,!0,s)}],d)},cF=function(o){return o.stopImmediatePropagation()},MN=function(o){return o.keyCode===Xo.PAGE_UP||o.keyCode===Xo.PAGE_DOWN},fF=function(o,s,d){d&&!o.get()?s.on("NodeChange",cF,!0):!d&&o.get()&&s.off("NodeChange",cF),o.set(d)},vY=function(o,s){if(!fY.os.isOSX()){var d=Df(!1);o.on("keydown",function(m){MN(m)&&fF(d,o,!0)}),o.on("keyup",function(m){m.isDefaultPrevented()===!1&&dY(o,s,m),MN(m)&&d.get()&&(fF(d,o,!1),o.nodeChanged())})}},V1=function(o,s){var d=s.container(),m=s.offset();return Jr(d)?(d.insertData(m,o),re.some(Kn(d,m+o.length))):D6(s).map(function(E){var D=xe.fromText(o);return s.isAtEnd()?$v(E,D):Os(E,D),Kn(D.dom,o.length)})},hY=ne(V1,Zc),NN=ne(V1," "),dF=function(o){return function(s){return s.fold(function(d){return ah(o.dom,Kn.before(d))},function(d){return af(d)},function(d){return I1(d)},function(d){return gv(o.dom,Kn.after(d))})}},DN=function(o,s){return function(d){return b_(o,d)?hY(s):NN(s)}},pY=function(o){return function(s){return o.selection.setRng(s.toRange()),o.nodeChanged(),!0}},mY=function(o){var s=Kn.fromRangeStart(o.selection.getRng()),d=xe.fromDom(o.getBody());if(o.selection.isCollapsed()){var m=ne(Oy,o),E=Kn.fromRangeStart(o.selection.getRng());return lp(m,o.getBody(),E).bind(dF(d)).bind(DN(d,s)).exists(pY(o))}else return!1},vF=function(o,s){t8([{keyCode:Xo.SPACEBAR,action:ci(mY,o)}],s).each(function(d){s.preventDefault()})},gY=function(o){o.on("keydown",function(s){s.isDefaultPrevented()===!1&&vF(o,s)})},yY=function(o){var s=rT(o);return gK(o),HK(o,s),bN(o,s),lF(o),gY(o),_T(o),uF(o,s),vY(o,s),s},bY=function(o){return Dg(o)?Df(null):yY(o)},_Y=function(){function o(s){this.lastPath=[],this.editor=s;var d,m=this;"onselectionchange"in s.getDoc()||s.on("NodeChange click mouseup keyup focus",function(E){var D=s.selection.getRng(),J={startContainer:D.startContainer,startOffset:D.startOffset,endContainer:D.endContainer,endOffset:D.endOffset};(E.type==="nodechange"||!ww(J,d))&&s.fire("SelectionChange"),d=J}),s.on("contextmenu",function(){s.fire("SelectionChange")}),s.on("SelectionChange",function(){var E=s.selection.getStart(!0);
95!E||!Io.range&&s.selection.isCollapsed()||rm(s)&&!m.isSameElementPath(E)&&s.dom.isChildOf(E,s.getBody())&&s.nodeChanged({selectionChange:!0})}),s.on("mouseup",function(E){!E.isDefaultPrevented()&&rm(s)&&(s.selection.getNode().nodeName==="IMG"?cl.setEditorTimeout(s,function(){s.nodeChanged()}):s.nodeChanged())})}return o.prototype.nodeChanged=function(s){var d=this.editor.selection,m,E,D;this.editor.initialized&&d&&!rk(this.editor)&&!this.editor.mode.isReadOnly()&&(D=this.editor.getBody(),m=d.getStart(!0)||D,(m.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(m,D))&&(m=D),E=[],this.editor.dom.getParent(m,function(J){if(J===D)return!0;E.push(J)}),s=s||{},s.element=m,s.parents=E,this.editor.fire("NodeChange",s))},o.prototype.isSameElementPath=function(s){var d,m=this.editor.$(s).parentsUntil(this.editor.getBody()).add(s);if(m.length===this.lastPath.length){for(d=m.length;d>=0&&m[d]===this.lastPath[d];d--);if(d===-1)return this.lastPath=m,!0}return this.lastPath=m,!1},o}(),wY=function(o){o.on("click",function(s){o.dom.getParent(s.target,"details")&&s.preventDefault()})},CY=function(o){o.parser.addNodeFilter("details",function(s){ct(s,function(d){d.attr("data-mce-open",d.attr("open")),d.attr("open","open")})}),o.serializer.addNodeFilter("details",function(s){ct(s,function(d){var m=d.attr("data-mce-open");d.attr("open",B(m)?m:null),d.attr("data-mce-open",null)})})},xY=function(o){wY(o),CY(o)},hF=function(o){return Ko(o)&&S1(xe.fromDom(o))},EY=function(o){var s=o.selection.getRng(),d=Kn.fromRangeStart(s),m=Kn.fromRangeEnd(s);if(Kn.isElementPosition(d)){var E=d.container();hF(E)&&af(E).each(function(D){return s.setStart(D.container(),D.offset())})}if(Kn.isElementPosition(m)){var E=d.container();hF(E)&&I1(E).each(function(J){return s.setEnd(J.container(),J.offset())})}o.selection.setRng(EO(s))},zf=function(o){o.on("click",function(s){s.detail>=3&&EY(o)})},pF=function(o){var s=o.getBoundingClientRect(),d=o.ownerDocument,m=d.documentElement,E=d.defaultView;return{top:s.top+E.pageYOffset-m.clientTop,left:s.left+E.pageXOffset-m.clientLeft}},SY=function(o){return o.inline?pF(o.getBody()):{left:0,top:0}},TY=function(o){var s=o.getBody();return o.inline?{left:s.scrollLeft,top:s.scrollTop}:{left:0,top:0}},f1=function(o){var s=o.getBody(),d=o.getDoc().documentElement,m={left:s.scrollLeft,top:s.scrollTop},E={left:s.scrollLeft||d.scrollLeft,top:s.scrollTop||d.scrollTop};return o.inline?m:E},AY=function(o,s){if(s.target.ownerDocument!==o.getDoc()){var d=pF(o.getContentAreaContainer()),m=f1(o);return{left:s.pageX-d.left+m.left,top:s.pageY-d.top+m.top}}return{left:s.pageX,top:s.pageY}},mF=function(o,s,d){return{pageX:d.left-o.left+s.left,pageY:d.top-o.top+s.top}},kY=function(o,s){return mF(SY(o),TY(o),AY(o,s))},zg=fs,OY=nd,MY=function(o,s){return zg(s)&&s!==o},IN=function(o,s,d){return s===d||o.dom.isChildOf(s,d)?!1:!zg(s)},NY=function(o){var s=o.cloneNode(!0);return s.removeAttribute("data-mce-selected"),s},DY=function(o,s,d,m){var E=o.dom,D=s.cloneNode(!0);E.setStyles(D,{width:d,height:m}),E.setAttrib(D,"data-mce-selected",null);var J=E.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return E.setStyles(J,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:d,height:m}),E.setStyles(D,{margin:0,boxSizing:"border-box"}),J.appendChild(D),J},IY=function(o,s){o.parentNode!==s&&s.appendChild(o)},RY=function(o,s,d,m,E,D){var J=0,ue=0;o.style.left=s.pageX+"px",o.style.top=s.pageY+"px",s.pageX+d>E&&(J=s.pageX+d-E),s.pageY+m>D&&(ue=s.pageY+m-D),o.style.width=d-J+"px",o.style.height=m-ue+"px"},gF=function(o){o&&o.parentNode&&o.parentNode.removeChild(o)},LY=function(o){return o.button===0},wT=function(o,s){return{pageX:s.pageX-o.relX,pageY:s.pageY+5}},yF=function(o,s){return function(d){if(LY(d)){var m=mt(s.dom.getParents(d.target),F7(zg,OY)).getOr(null);if(MY(s.getBody(),m)){var E=s.dom.getPos(m),D=s.getBody(),J=s.getDoc().documentElement;o.set({element:m,dragging:!1,screenX:d.screenX,screenY:d.screenY,maxX:(s.inline?D.scrollWidth:J.offsetWidth)-2,maxY:(s.inl
95ine?D.scrollHeight:J.offsetHeight)-2,relX:d.pageX-E.x,relY:d.pageY-E.y,width:m.offsetWidth,height:m.offsetHeight,ghost:DY(s,m,m.offsetWidth,m.offsetHeight)})}}}},BY=function(o,s){var d=cl.throttle(function(m,E){s._selectionOverrides.hideFakeCaret(),s.selection.placeCaretAt(m,E)},0);return s.on("remove",d.stop),function(m){return o.on(function(E){var D=Math.max(Math.abs(m.screenX-E.screenX),Math.abs(m.screenY-E.screenY));if(!E.dragging&&D>10){var J=s.fire("dragstart",{target:E.element});if(J.isDefaultPrevented())return;E.dragging=!0,s.focus()}if(E.dragging){var ue=wT(E,kY(s,m));IY(E.ghost,s.getBody()),RY(E.ghost,ue,E.width,E.height,E.maxX,E.maxY),d(m.clientX,m.clientY)}})}},PY=function(o){var s=o.getSel().getRangeAt(0),d=s.startContainer;return d.nodeType===3?d.parentNode:d},FY=function(o,s){return function(d){o.on(function(m){if(m.dragging){if(IN(s,PY(s.selection),m.element)){var E=NY(m.element),D=s.fire("drop",{clientX:d.clientX,clientY:d.clientY});D.isDefaultPrevented()||s.undoManager.transact(function(){gF(m.element),s.insertContent(s.dom.getOuterHTML(E)),s._selectionOverrides.hideFakeCaret()})}s.fire("dragend")}}),bF(o)}},$Y=function(o,s){return function(){o.on(function(d){d.dragging&&s.fire("dragend")}),bF(o)}},bF=function(o){o.on(function(s){gF(s.ghost)}),o.clear()},RN=function(o){var s=Gp(),d=Ds.DOM,m=document,E=yF(s,o),D=BY(s,o),J=FY(s,o),ue=$Y(s,o);o.on("mousedown",E),o.on("mousemove",D),o.on("mouseup",J),d.bind(m,"mousemove",D),d.bind(m,"mouseup",ue),o.on("remove",function(){d.unbind(m,"mousemove",D),d.unbind(m,"mouseup",ue)}),o.on("keydown",function(me){me.keyCode===Xo.ESC&&ue()})},_F=function(o){o.on("drop",function(s){var d=typeof s.clientX!="undefined"?o.getDoc().elementFromPoint(s.clientX,s.clientY):null;(zg(d)||o.dom.getContentEditableParent(d)==="false")&&s.preventDefault()})},wF=function(o){var s=function(E){if(!E.isDefaultPrevented()){var D=E.dataTransfer;D&&(De(D.types,"Files")||D.files.length>0)&&(E.preventDefault(),E.type==="drop"&&PS(o,"Dropped file type is not supported"))}},d=function(E){a_(o,E.target)&&s(E)},m=function(){var E=Ds.DOM,D=o.dom,J=document,ue=o.inline?o.getBody():o.getDoc(),me=["drop","dragover"];ct(me,function(Le){E.bind(J,Le,d),D.bind(ue,Le,s)}),o.on("remove",function(){ct(me,function(Le){E.unbind(J,Le,d),D.unbind(ue,Le,s)})})};o.on("init",function(){cl.setEditorTimeout(o,m,0)})},CF=function(o){RN(o),_F(o),j2(o)&&wF(o)},zY=function(o){var s=n6(function(){if(!o.removed&&o.getBody().contains(document.activeElement)){var d=o.selection.getRng();if(d.collapsed){var m=US(o,d,!1);o.selection.setRng(m)}}},0);o.on("focus",function(){s.throttle()}),o.on("blur",function(){s.cancel()})},HY=function(o){o.on("init",function(){o.on("focusin",function(s){var d=s.target;if(Du(d)){var m=mg(o.getBody(),d),E=fs(m)?m:d;o.selection.getNode()!==E&&K_(o,E).each(function(D){return o.selection.setRng(D)})}})})},xF=nd,$4=fs,CT=function(o,s){return mg(o.getBody(),s)},VY=function(o){var s=o.selection,d=o.dom,m=d.isBlock,E=o.getBody(),D=of(o,E,m,function(){return B1(o)}),J="sel-"+d.uniqueId(),ue="data-mce-selected",me,Le=function(lr){return d.hasClass(lr,"mce-offscreen-selection")},tt=function(lr){return lr!==E&&($4(lr)||Du(lr))&&d.isChildOf(lr,E)},nt=function(lr){return um(lr)||cm(lr)||_y(lr)||wy(lr)},it=function(){var lr=d.get(J);return lr&&lr.getElementsByTagName("*")[0]},kt=function(lr){lr&&s.setRng(lr)},Nt=s.getRng,Lt=function(lr,Lo,Sr,Xr){Xr===void 0&&(Xr=!0);var Tr=o.fire("ShowCaret",{target:Lo,direction:lr,before:Sr});return Tr.isDefaultPrevented()?null:(Xr&&s.scrollIntoView(Lo,lr===-1),D.show(Sr,Lo))},$t=function(lr){lr.hasAttribute("data-mce-caret")&&(D0(lr),kt(Nt()),s.scrollIntoView(lr))},Jt=function(){o.on("mouseup",function(Tr){var Fr=Nt();Fr.collapsed&&aB(o,Tr.clientX,Tr.clientY)&&FM(o,Fr,!1).each(kt)}),o.on("click",function(Tr){var Fr=CT(o,Tr.target);Fr&&($4(Fr)&&(Tr.preventDefault(),o.focus()),xF(Fr)&&d.isChildOf(Fr,s.getNode())&&_r())}),o.on("blur NewBlock",_r),o.on("ResizeWindow FullscreenStateChanged",D.reposition);var lr=function(Tr){var Fr=Tr.firstChild;if(Z(Fr))return!1;var ho=Kn.before(Fr);
95if(qi(ho.getNode())&&Tr.childNodes.length===1)return!nt(ho);var mr=Cl(Tr),ro=mr.next(ho);return ro&&!nt(ro)},Lo=function(Tr,Fr){var ho=d.getParent(Tr,m),mr=d.getParent(Fr,m);return ho===mr},Sr=function(Tr,Fr){var ho=d.getParent(Tr,m),mr=d.getParent(Fr,m);return Z(ho)?!1:Tr!==mr&&d.isChildOf(ho,mr)&&$4(CT(o,ho))===!1?!0:!d.isChildOf(mr,ho)&&!Lo(ho,mr)&&lr(ho)};o.on("tap",function(Tr){var Fr=Tr.target,ho=CT(o,Fr);$4(ho)?(Tr.preventDefault(),K_(o,ho).each(ir)):tt(Fr)&&K_(o,Fr).each(ir)},!0),o.on("mousedown",function(Tr){var Fr=Tr.target;if(!(Fr!==E&&Fr.nodeName!=="HTML"&&!d.isChildOf(Fr,E))&&aB(o,Tr.clientX,Tr.clientY)!==!1){var ho=CT(o,Fr);if(ho)$4(ho)?(Tr.preventDefault(),K_(o,ho).each(ir)):(_r(),!(xF(ho)&&Tr.shiftKey)&&!gg(Tr.clientX,Tr.clientY,s.getRng())&&(eo(),s.placeCaretAt(Tr.clientX,Tr.clientY)));else if(tt(Fr))K_(o,Fr).each(ir);else if(lg(Fr)===!1){_r(),eo();var mr=YG(E,Tr.clientX,Tr.clientY);if(mr&&!Sr(Fr,mr.node)){Tr.preventDefault();var ro=Lt(1,mr.node,mr.before,!1);kt(ro),o.getBody().focus()}}}}),o.on("keypress",function(Tr){Xo.modifierPressed(Tr)||$4(s.getNode())&&Tr.preventDefault()}),o.on("GetSelectionRange",function(Tr){var Fr=Tr.range;if(me){if(!me.parentNode){me=null;return}Fr=Fr.cloneRange(),Fr.selectNode(me),Tr.range=Fr}}),o.on("SetSelectionRange",function(Tr){Tr.range=xn(Tr.range);var Fr=ir(Tr.range,Tr.forward);Fr&&(Tr.range=Fr)});var Xr=function(Tr){return Tr.id==="mcepastebin"};o.on("AfterSetSelectionRange",function(Tr){var Fr=Tr.range,ho=Fr.startContainer.parentNode;!Mn(Fr)&&!Xr(ho)&&eo(),Le(ho)||_r()}),o.on("copy",function(Tr){var Fr=Tr.clipboardData;if(!Tr.isDefaultPrevented()&&Tr.clipboardData&&!Io.ie){var ho=it();ho&&(Tr.preventDefault(),Fr.clearData(),Fr.setData("text/html",ho.outerHTML),Fr.setData("text/plain",ho.outerText||ho.innerText))}}),CF(o),zY(o),HY(o)},qt=function(lr){return zc(lr)||Gv(lr)||Kv(lr)},Mn=function(lr){return qt(lr.startContainer)||qt(lr.endContainer)},xn=function(lr){var Lo=o.schema.getShortEndedElements(),Sr=d.createRng(),Xr=lr.startContainer,Tr=lr.startOffset,Fr=lr.endContainer,ho=lr.endOffset;return io(Lo,Xr.nodeName.toLowerCase())?Tr===0?Sr.setStartBefore(Xr):Sr.setStartAfter(Xr):Sr.setStart(Xr,Tr),io(Lo,Fr.nodeName.toLowerCase())?ho===0?Sr.setEndBefore(Fr):Sr.setEndAfter(Fr):Sr.setEnd(Fr,ho),Sr},ln=function(lr,Lo,Sr){var Xr=o.$,Tr=Ad(xe.fromDom(o.getBody()),"#"+J).fold(function(){return Xr([])},function(mr){return Xr([mr.dom])});Tr.length===0&&(Tr=Xr('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",J),Tr.appendTo(o.getBody()));var Fr=d.createRng();Lo===Sr&&Io.ie?(Tr.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xA0</p>').append(Lo),Fr.setStartAfter(Tr[0].firstChild.firstChild),Fr.setEndAfter(Lo)):(Tr.empty().append(Zc).append(Lo).append(Zc),Fr.setStart(Tr[0].firstChild,1),Fr.setEnd(Tr[0].lastChild,0)),Tr.css({top:d.getPos(lr,o.getBody()).y}),Tr[0].focus();var ho=s.getSel();return ho.removeAllRanges(),ho.addRange(Fr),Fr},In=function(lr){var Lo=lr.cloneNode(!0),Sr=o.fire("ObjectSelected",{target:lr,targetClone:Lo});if(Sr.isDefaultPrevented())return null;
95var Xr=ln(lr,Sr.targetClone,Lo),Tr=xe.fromDom(lr);return ct(Cc(xe.fromDom(o.getBody()),"*[data-mce-selected]"),function(Fr){jo(Tr,Fr)||qn(Fr,ue)}),d.getAttrib(lr,ue)||lr.setAttribute(ue,"1"),me=lr,eo(),Xr},ir=function(lr,Lo){if(!lr)return null;if(lr.collapsed){if(!Mn(lr)){var Sr=Lo?1:-1,Xr=ey(Sr,E,lr),Tr=Xr.getNode(!Lo);if(lg(Tr))return Lt(Sr,Tr,Lo?!Xr.isAtEnd():!1,!1);var Fr=Xr.getNode(Lo);if(lg(Fr))return Lt(Sr,Fr,Lo?!1:!Xr.isAtEnd(),!1)}return null}var ho=lr.startContainer,mr=lr.startOffset,ro=lr.endOffset;if(ho.nodeType===3&&mr===0&&$4(ho.parentNode)&&(ho=ho.parentNode,mr=d.nodeIndex(ho),ho=ho.parentNode),ho.nodeType!==1)return null;if(ro===mr+1&&ho===lr.endContainer){var Va=ho.childNodes[mr];if(tt(Va))return In(Va)}return null},_r=function(){me&&me.removeAttribute(ue),Ad(xe.fromDom(o.getBody()),"#"+J).each(Gs),me=null},Go=function(){D.destroy(),me=null},eo=function(){D.hide()};return Io.ceFalse&&!Dg(o)&&Jt(),{showCaret:Lt,showBlockCaretContainer:$t,hideFakeCaret:eo,destroy:Go}},EF=function(o){var s=Gn.each,d=Xo.BACKSPACE,m=Xo.DELETE,E=o.dom,D=o.selection,J=o.parser,ue=Io.gecko,me=Io.ie,Le=Io.webkit,tt="data:text/mce-internal,",nt=me?"Text":"URL",it=function(gr,Ir){try{o.getDoc().execCommand(gr,!1,Ir)}catch{}},kt=function(gr){return gr.isDefaultPrevented()},Nt=function(gr){var Ir,Bo;gr.dataTransfer&&(o.selection.isCollapsed()&&gr.target.tagName==="IMG"&&D.select(gr.target),Ir=o.selection.getContent(),Ir.length>0&&(Bo=tt+escape(o.id)+","+escape(Ir),gr.dataTransfer.setData(nt,Bo)))},Lt=function(gr){var Ir;return gr.dataTransfer&&(Ir=gr.dataTransfer.getData(nt),Ir&&Ir.indexOf(tt)>=0)?(Ir=Ir.substr(tt.length).split(","),{id:unescape(Ir[0]),html:unescape(Ir[1])}):null},$t=function(gr,Ir){o.queryCommandSupported("mceInsertClipboardContent")?o.execCommand("mceInsertClipboardContent",!1,{content:gr,internal:Ir}):o.execCommand("mceInsertContent",!1,gr)},Jt=function(){var gr=function(Bo){var Ln=E.create("body"),Cr=Bo.cloneContents();return Ln.appendChild(Cr),D.serializer.serialize(Ln,{format:"html"})},Ir=function(Bo){var Ln=gr(Bo),Cr=E.createRng();Cr.selectNode(o.getBody());var br=gr(Cr);return Ln===br};o.on("keydown",function(Bo){var Ln=Bo.keyCode,Cr,br;
95if(!kt(Bo)&&(Ln===m||Ln===d)){if(Cr=o.selection.isCollapsed(),br=o.getBody(),Cr&&!E.isEmpty(br)||!Cr&&!Ir(o.selection.getRng()))return;Bo.preventDefault(),o.setContent(""),br.firstChild&&E.isBlock(br.firstChild)?o.selection.setCursorLocation(br.firstChild,0):o.selection.setCursorLocation(br,0),o.nodeChanged()}})},qt=function(){o.shortcuts.add("meta+a",null,"SelectAll")},Mn=function(){o.inline||E.bind(o.getDoc(),"mousedown mouseup",function(gr){var Ir;if(gr.target===o.getDoc().documentElement)if(Ir=D.getRng(),o.getBody().focus(),gr.type==="mousedown"){if(zc(Ir.startContainer))return;D.placeCaretAt(gr.clientX,gr.clientY)}else D.setRng(Ir)})},xn=function(){o.on("keydown",function(gr){if(!kt(gr)&&gr.keyCode===d){if(!o.getBody().getElementsByTagName("hr").length)return;if(D.isCollapsed()&&D.getRng().startOffset===0){var Ir=D.getNode(),Bo=Ir.previousSibling;if(Ir.nodeName==="HR"){E.remove(Ir),gr.preventDefault();return}Bo&&Bo.nodeName&&Bo.nodeName.toLowerCase()==="hr"&&(E.remove(Bo),gr.preventDefault())}}})},ln=function(){Range.prototype.getClientRects||o.on("mousedown",function(gr){if(!kt(gr)&&gr.target.nodeName==="HTML"){var Ir=o.getBody();Ir.blur(),cl.setEditorTimeout(o,function(){Ir.focus()})}})},In=function(){o.on("click",function(gr){var Ir=gr.target;/^(IMG|HR)$/.test(Ir.nodeName)&&E.getContentEditableParent(Ir)!=="false"&&(gr.preventDefault(),o.selection.select(Ir),o.nodeChanged()),Ir.nodeName==="A"&&E.hasClass(Ir,"mce-item-anchor")&&(gr.preventDefault(),D.select(Ir))})},ir=function(){var gr=function(){var Bo=E.getAttribs(D.getStart().cloneNode(!1));return function(){var Ln=D.getStart();Ln!==o.getBody()&&(E.setAttrib(Ln,"style",null),s(Bo,function(Cr){Ln.setAttributeNode(Cr.cloneNode(!0))}))}},Ir=function(){return!D.isCollapsed()&&E.getParent(D.getStart(),E.isBlock)!==E.getParent(D.getEnd(),E.isBlock)};o.on("keypress",function(Bo){var Ln;
95if(!kt(Bo)&&(Bo.keyCode===8||Bo.keyCode===46)&&Ir())return Ln=gr(),o.getDoc().execCommand("delete",!1,null),Ln(),Bo.preventDefault(),!1}),E.bind(o.getDoc(),"cut",function(Bo){var Ln;!kt(Bo)&&Ir()&&(Ln=gr(),cl.setEditorTimeout(o,function(){Ln()}))})},_r=function(){o.on("keydown",function(gr){if(!kt(gr)&&gr.keyCode===d&&D.isCollapsed()&&D.getRng().startOffset===0){var Ir=D.getNode().previousSibling;if(Ir&&Ir.nodeName&&Ir.nodeName.toLowerCase()==="table")return gr.preventDefault(),!1}})},Go=function(){o.on("keydown",function(gr){var Ir,Bo;if(!(kt(gr)||gr.keyCode!==Xo.BACKSPACE)){Ir=D.getRng();var Ln=Ir.startContainer,Cr=Ir.startOffset,br=E.getRoot();if(Bo=Ln,!(!Ir.collapsed||Cr!==0)){for(;Bo&&Bo.parentNode&&Bo.parentNode.firstChild===Bo&&Bo.parentNode!==br;)Bo=Bo.parentNode;Bo.tagName==="BLOCKQUOTE"&&(o.formatter.toggle("blockquote",null,Bo),Ir=E.createRng(),Ir.setStart(Ln,0),Ir.setEnd(Ln,0),D.setRng(Ir))}}})},eo=function(){var gr=function(){it("StyleWithCSS",!1),it("enableInlineTableEditing",!1),vx(o)||it("enableObjectResizing",!1)};ok(o)||o.on("BeforeExecCommand mousedown",gr)},lr=function(){var gr=function(){s(E.select("a"),function(Ir){var Bo=Ir.parentNode,Ln=E.getRoot();if(Bo.lastChild===Ir){for(;Bo&&!E.isBlock(Bo);){if(Bo.parentNode.lastChild!==Bo||Bo===Ln)return;Bo=Bo.parentNode}E.add(Bo,"br",{"data-mce-bogus":1})}})};o.on("SetContent ExecCommand",function(Ir){(Ir.type==="setcontent"||Ir.command==="mceInsertLink")&&gr()})},Lo=function(){xc(o)&&o.on("init",function(){it("DefaultParagraphSeparator",xc(o))})},Sr=function(){o.on("keyup focusin mouseup",function(gr){Xo.modifierPressed(gr)||D.normalize()},!0)},Xr=function(){o.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},Tr=function(){o.inline||o.on("keydown",function(){document.activeElement===document.body&&o.getWin().focus()})},Fr=function(){o.inline||(o.contentStyles.push("body {min-height: 150px}"),o.on("click",function(gr){var Ir;if(gr.target.nodeName==="HTML"){if(Io.ie>11){o.getBody().focus();return}Ir=o.selection.getRng(),o.getBody().focus(),o.selection.setRng(Ir),o.selection.normalize(),o.nodeChanged()}}))},ho=function(){Io.mac&&o.on("keydown",function(gr){if(Xo.metaKeyPressed(gr)&&!gr.shiftKey&&(gr.keyCode===37||gr.keyCode===39)){gr.preventDefault();var Ir=o.selection.getSel();Ir.modify("move",gr.keyCode===37?"backward":"forward","lineboundary")}})},mr=function(){it("AutoUrlDetect",!1)},ro=function(){o.on("click",function(gr){var Ir=gr.target;do if(Ir.tagName==="A"){gr.preventDefault();return}while(Ir=Ir.parentNode)}),o.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},Va=function(){o.on("init",function(){o.dom.bind(o.getBody(),"submit",function(gr){gr.preventDefault()})})},Oi=function(){J.addNodeFilter("br",function(gr){for(var Ir=gr.length;Ir--;)gr[Ir].attr("class")==="Apple-interchange-newline"&&gr[Ir].remove()})},Si=function(){o.on("dragstart",function(gr){Nt(gr)}),o.on("drop",function(gr){if(!kt(gr)){var Ir=Lt(gr);if(Ir&&Ir.id!==o.id){gr.preventDefault();var Bo=_w(gr.x,gr.y,o.getDoc());D.setRng(Bo),$t(Ir.html,!0)}}})},Oc=$,vl=function(){if(!ue||o.removed)return!1;var gr=o.selection.getSel();return!gr||!gr.rangeCount||gr.rangeCount===0},pd=function(){Le&&(Mn(),In(),Va(),qt(),Io.iOS&&(Tr(),Fr(),ro())),ue&&(ln(),eo(),Xr(),ho())},U1=function(){Go(),Jt(),Io.windowsPhone||Sr(),Le&&(Mn(),In(),Lo(),Va(),_r(),Oi(),Io.iOS?(Tr(),Fr(),ro()):qt()),Io.ie>=11&&(Fr(),_r()),Io.ie&&(qt(),mr(),Si()),ue&&(xn(),ln(),ir(),eo(),lr(),Xr(),ho(),_r())};return Dg(o)?pd():U1(),{refreshContentEditable:Oc,isHidden:vl}},LN=Ds.DOM,UY=function(o,s){var d=xe.fromDom(o.getBody()),m=Ws(yc(d)),E=xe.fromTag("style");Me(E,"type","text/css"),yl(E,xe.fromText(s)),yl(m,E),o.on("remove",function(){Gs(E)})},jY=function(o){return o.inline?o.getElement().nodeName.toLowerCase():void 0},BN=function(o){return nn(o,function(s){return X(s)===!1})},PN=function(o){var s=o.settings;return BN({block_elements:s.block_elements,boolean_attributes:s.boolean_attributes,custom_elements:s.custom_elements,extended_valid_elements:s.extended_valid_elements,invalid_elements:s.invalid_elements,invalid_styles:s.invalid_styles,move_caret_before_on_enter_elements:s.move_caret_before_on_enter_elements,non_empty_elements:s.non_empty_elements,schema:s.schema,self_closing_elements:s.self_closing_elements,short_ended_elements:s.short_ended_elements,special:s.special,text_block_elements:s.text_block_elements,text_inline_elements:s.text_inline_elements,valid_children:s.valid_children,valid_classes:s.valid_classes,val
95id_elements:s.valid_elements,valid_styles:s.valid_styles,verify_html:s.verify_html,whitespace_elements:s.whitespace_elements,padd_empty_block_inline_children:s.format_empty_lines})},SF=function(o){var s=o.settings,d=o.editorUpload.blobCache;return BN({allow_conditional_comments:s.allow_conditional_comments,allow_html_data_urls:s.allow_html_data_urls,allow_svg_data_urls:s.allow_svg_data_urls,allow_html_in_named_anchor:s.allow_html_in_named_anchor,allow_script_urls:s.allow_script_urls,allow_unsafe_link_target:s.allow_unsafe_link_target,convert_fonts_to_spans:s.convert_fonts_to_spans,fix_list_elements:s.fix_list_elements,font_size_legacy_values:s.font_size_legacy_values,forced_root_block:s.forced_root_block,forced_root_block_attrs:s.forced_root_block_attrs,padd_empty_with_br:s.padd_empty_with_br,preserve_cdata:s.preserve_cdata,remove_trailing_brs:s.remove_trailing_brs,inline_styles:s.inline_styles,root_name:jY(o),validate:!0,blob_cache:d,document:o.getDoc(),images_dataimg_filter:s.images_dataimg_filter})},WY=function(o){var s=o.settings;return fo(fo(fo({},SF(o)),PN(o)),BN({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope,element_format:s.element_format,entities:s.entities,entity_encoding:s.entity_encoding,indent:s.indent,indent_after:s.indent_after,indent_before:s.indent_before}))},GY=function(o){var s=kS(SF(o),o.schema);return s.addAttributeFilter("src,href,style,tabindex",function(d,m){for(var E=d.length,D,J,ue=o.dom,me="data-mce-"+m;E--;)if(D=d[E],J=D.attr(m),J&&!D.attr(me)){if(J.indexOf("data:")===0||J.indexOf("blob:")===0)continue;m==="style"?(J=ue.serializeStyle(ue.parseStyle(J),D.name),J.length||(J=null),D.attr(me,J),D.attr(m,J)):m==="tabindex"?(D.attr(me,J),D.attr(m,null)):D.attr(me,o.convertURL(J,m,D.name))}}),s.addNodeFilter("script",function(d){for(var m=d.length;m--;){var E=d[m],D=E.attr("type")||"no/type";D.indexOf("mce-")!==0&&E.attr("type","mce-"+D)}}),o.settings.preserve_cdata&&s.addNodeFilter("#cdata",function(d){for(var m=d.length;m--;){var E=d[m];E.type=8,E.name="#comment",E.value="[CDATA["+o.dom.encode(E.value)+"]]"}}),s.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(d){for(var m=d.length,E=o.schema.getNonEmptyElements();m--;){var D=d[m];D.isEmpty(E)&&D.getAll("br").length===0&&(D.append(new P1("br",1)).shortEnded=!0)}}),s},KY=function(o){o.settings.auto_focus&&cl.setEditorTimeout(o,function(){var s;o.settings.auto_focus===!0?s=o:s=o.editorManager.get(o.settings.auto_focus),s.destroyed||s.focus()},100)},TF=function(o){var s=o.dom.getRoot();!o.inline&&(!rm(o)||o.selection.getStart(!0)===s)&&af(s).each(function(d){var m=d.getNode(),E=nl(m)?af(m).getOr(d):d;Io.browser.isIE()?Zk(o,E.toRange()):o.selection.setRng(E.toRange())})},xT=function(o){o.bindPendingEventDelegates(),o.initialized=!0,Wx(o),o.focus(!0),TF(o),o.nodeChanged({initial:!0}),o.execCallback("init_instance_callback",o),KY(o)},FN=function(o){return o.inline?o.ui.styleSheetLoader:o.dom.styleSheetLoader},AF=function(o,s,d){var m=[new Zl(function(E,D){return FN(o).loadAll(s,E,D)})];return o.inline?m:m.concat([new Zl(function(E,D){return o.ui.styleSheetLoader.loadAll(d,E,D)})])},kF=function(o){var s=FN(o),d=dx(o),m=o.contentCSS,E=function(){s.unloadAll(m),o.inline||o.ui.styleSheetLoader.unloadAll(d)},D=function(){o.removed?E():o.on("remove",E)};if(o.contentStyles.length>0){var J="";Gn.each(o.contentStyles,function(me){J+=me+`\r 96`}),o.dom.addStyle(J)}var ue=Zl.all(AF(o,m,d)).then(D).catch(D);return o.settings.content_style&&UY(o,o.settings.content_style),ue},YY=function(o){var s=o.settings,d=o.getDoc(),m=o.getBody();Zh(o),!s.browser_spellcheck&&!s.gecko_spellcheck&&(d.body.spellcheck=!1,LN.setAttrib(m,"spellcheck","false")),o.quirks=EF(o),jx(o);var E=th(o);E!==void 0&&(m.dir=E),s.protect&&o.on("BeforeSetContent",function(D){Gn.each(s.protect,function(J){D.content=D.content.replace(J,function(ue){return"<!--mce:protected "+escape(ue)+"-->"})})}),o.on("SetContent",function(){o.addVisual(o.getBody())}),o.on("compositionstart compositionend",function(D){o.composing=D.type==="compositionstart"})},$N=function(o){Dg(o)||o.load({initial:!0,format:"html"}),o.startContent=o.getContent({format:"raw"})},zN=function(o){o.removed!==!0&&($N(o),xT(o))},HN=function(o,s){var d=o.settings,m=o.getElement(),E=o.getDoc();d.inline||(o.getElement().style.visibility=o.orgVisibility),!s&&!o.inline&&(E.open(),E.write(o.iframeHTML),E.close()),o.inline&&(LN.addClass(m,"mce-content-body"),o.contentDocument=E=document,o.contentWindow=window,o.bodyElement=m,o.
96contentAreaContainer=m);var D=o.getBody();D.disabled=!0,o.readonly=!!d.readonly,o.readonly||(o.inline&&LN.getStyle(D,"position",!0)==="static"&&(D.style.position="relative"),D.contentEditable=o.getParam("content_editable_state",!0)),D.disabled=!1,o.editorUpload=$f(o),o.schema=Tf(PN(o)),o.dom=Ds(E,{keep_values:!0,url_converter:o.convertURL,url_converter_scope:o,hex_colors:d.force_hex_style_colors,update_styles:!0,root_element:o.inline?o.getBody():null,collect:function(){return o.inline},schema:o.schema,contentCssCors:x6(o),referrerPolicy:E6(o),onSetAttrib:function(me){o.fire("SetAttrib",me)}}),o.parser=GY(o),o.serializer=CM(WY(o),o),o.selection=B_(o.dom,o.getWin(),o.serializer,o),o.annotator=Y6(o),o.formatter=Il(o),o.undoManager=_B(o),o._nodeChangeDispatcher=new _Y(o),o._selectionOverrides=VY(o),EP(o),xY(o),Dg(o)||zf(o);var J=bY(o);a0(o,J),e8(o),p9(o);var ue=Vj(o);YY(o),ue.fold(function(){kF(o).then(function(){return zN(o)})},function(me){o.setProgressState(!0),kF(o).then(function(){me().then(function(Le){o.setProgressState(!1),zN(o)},function(Le){o.notificationManager.open({type:"error",text:String(Le)}),zN(o)})})})},k9=Ds.DOM,qY=function(o,s){if(document.domain!==window.location.hostname&&Io.browser.isIE()){var d=vB("mce");o[d]=function(){HN(o)};var m='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+o.id+'");document.write(ed.iframeHTML);document.close();ed.'+d+"(true);})()";return k9.setAttrib(s,"src",m),!0}return!1},i0=function(o,s,d,m){var E=xe.fromTag("iframe");return Qe(E,m),Qe(E,{id:o+"_ifr",frameBorder:"0",allowTransparency:"true",title:s}),eg(E,"tox-edit-area__iframe"),E},OF=function(o){var s=lx(o)+"<html><head>";M5(o)!==o.documentBaseUrl&&(s+='<base href="'+o.documentBaseURI.getURI()+'" />'),s+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var d=G7(o),m=K7(o),E=o.translate(_x(o));return _6(o)&&(s+='<meta http-equiv="Content-Security-Policy" content="'+_6(o)+'" />'),s+="</head>"+('<body id="'+d+'" class="mce-content-body '+m+'" data-id="'+o.id+'" aria-label="'+E+'">')+"<br></body></html>",s},MF=function(o,s){var d=o.translate("Rich Text Area"),m=i0(o.id,d,s.height,W7(o)).dom;m.onload=function(){m.onload=null,o.fire("load")};var E=qY(o,m);return o.contentAreaContainer=s.iframeContainer,o.iframeElement=m,o.iframeHTML=OF(o),k9.add(s.iframeContainer,m),E},XY=function(o,s){var d=MF(o,s);s.editorContainer&&(k9.get(s.editorContainer).style.display=o.orgDisplay,o.hidden=k9.isHidden(s.editorContainer)),o.getElement().style.display="none",k9.setAttrib(o.id,"aria-hidden","true"),d||HN(o)},NF=Ds.DOM,DF=function(o,s,d){var m=ip.get(d),E=ip.urls[d]||o.documentBaseUrl.replace(/\/$/,"");if(d=Gn.trim(d),m&&Gn.inArray(s,d)===-1){if(Gn.each(ip.dependencies(d),function(J){DF(o,s,J)}),o.plugins[d])return;try{var D=new m(o,E,o.$);o.plugins[d]=D,D.init&&(D.init(o,E),s.push(d))}catch(J){tG(o,d,J)}}},IF=function(o){return o.replace(/^\-/,"")},ZY=function(o){var s=[];Gn.each(k6(o).split(/[ ,]/),function(d){DF(o,s,IF(d))})},QY=function(o){var s=Gn.trim(Uh(o)),d=o.ui.registry.getAll().icons,m=fo(fo({},BS.get("default").icons),BS.get(s).icons);Vt(m,function(E,D){io(d,D)||o.ui.registry.addIcon(D,E)})},JY=function(o){var s=V2(o);if(B(s)){o.settings.theme=IF(s);var d=ky.get(s);o.theme=new d(o,ky.urls[s]),o.theme.init&&o.theme.init(o,ky.urls[s]||o.documentBaseUrl.replace(/\/$/,""),o.$)}else o.theme={}},VN=function(o){return o.theme.renderUI()},eq=function(o){var s=o.getElement(),d=V2(o),m=d(o,s);return m.editorContainer.nodeType&&(m.editorContainer.id=m.editorContainer.id||o.id+"_parent"),m.iframeContainer&&m.iframeContainer.nodeType&&(m.iframeContainer.id=m.iframeContainer.id||o.id+"_iframecontainer"),m.height=m.iframeHeight?m.iframeHeight:s.offsetHeight,m},RF=function(o){return{editorContainer:o,iframeContainer:o,api:{}}},LF=function(o){var s=NF.create("div");return NF.insertAfter(s,o),RF(s)},tq=function(o){var s=o.getElement();return o.inline?RF(null):LF(s)},nq=function(o){var s=o.getElement();return o.orgDisplay=s.style.display,B(V2(o))?VN(o):Y(V2(o))?eq(o):tq(o)},rq=function(o,s){var d={show:re.from(s.show).getOr($),hide:re.from(s.hide).getOr($),disable:re.from(s.disable).getOr($),isDisabled:re.from(s.isDisabled).getOr(U),enable:function(){o.mode.isReadOnly()||re.from(s.enable).map(P)}};o.ui=fo(fo({},o.ui),d)},BF=function(o){o.fire("ScriptsLoaded"),QY(o),JY(o),ZY(o);var s=nq(o);rq(o,re.from(s.api).getOr({}));var d={editorContainer:s.editorContainer,iframeContainer:s.iframeC
96ontainer};return o.editorContainer=d.editorContainer?d.editorContainer:null,dB(o),o.inline?HN(o):XY(o,d)},z4=Ds.DOM,PF=function(o){return o.charAt(0)==="-"},UN=function(o,s){var d=S6(s),m=rc(s);if(If.hasCode(d)===!1&&d!=="en"){var E=m!==""?m:s.editorManager.baseURL+"/langs/"+d+".js";o.add(E,$,void 0,function(){eG(s,E,d)})}},oq=function(o,s,d,m){var E=V2(s);if(B(E)){if(!PF(E)&&!io(ky.urls,E)){var D=mx(s);D?ky.load(E,s.documentBaseURI.toAbsolute(D)):ky.load(E,"themes/"+E+"/theme"+d+".js")}o.loadQueue(function(){ky.waitFor(E,m)})}else m()},FF=function(o){return re.from(C6(o)).filter(function(s){return s.length>0}).map(function(s){return{url:s,name:re.none()}})},$F=function(o,s,d){return re.from(s).filter(function(m){return m.length>0&&!BS.has(m)}).map(function(m){return{url:o.editorManager.baseURL+"/icons/"+m+"/icons"+d+".js",name:re.some(m)}})},aq=function(o,s,d){var m=$F(s,"default",d),E=FF(s).orThunk(function(){return $F(s,Uh(s),"")});ct(pa([m,E]),function(D){o.add(D.url,$,void 0,function(){cB(s,D.url,D.name.getOrUndefined())})})},iq=function(o,s){Gn.each(ik(o),function(d,m){ip.load(m,d,$,void 0,function(){MM(o,d,m)}),o.settings.plugins+=" "+m}),Gn.each(k6(o).split(/[ ,]/),function(d){if(d=Gn.trim(d),d&&!ip.urls[d])if(PF(d)){d=d.substr(1,d.length);var m=ip.dependencies(d);Gn.each(m,function(D){var J={prefix:"plugins/",resource:D,suffix:"/plugin"+s+".js"},ue=ip.createUrl(J,D);ip.load(ue.resource,ue,$,void 0,function(){MM(o,ue.prefix+ue.resource+ue.suffix,ue.resource)})})}else{var E={prefix:"plugins/",resource:d,suffix:"/plugin"+s+".js"};ip.load(d,E,$,void 0,function(){MM(o,E.prefix+E.resource+E.suffix,d)})}})},sq=function(o,s){var d=G0.ScriptLoader;oq(d,o,s,function(){UN(d,o),aq(d,o,s),iq(o,s),d.loadQueue(function(){o.removed||BF(o)},o,function(){o.removed||BF(o)})})},kc=function(o,s){return Jd.forElement(o,{contentCssCors:ak(s),referrerPolicy:E6(s)})},lq=function(o){var s=o.id;If.setCode(S6(o));var d=function(){z4.unbind(window,"ready",d),o.render()};if(!Ph.Event.domLoaded){z4.bind(window,"ready",d);return}if(!!o.getElement()&&!!Io.contentEditable){var m=xe.fromDom(o.getElement()),E=Co(m);o.on("remove",function(){lt(m.dom.attributes,function(J){return qn(m,J.name)}),Qe(m,E)}),o.ui.styleSheetLoader=kc(m,o),ek(o)?o.inline=!0:(o.orgVisibility=o.getElement().style.visibility,o.getElement().style.visibility="hidden");var D=o.getElement().form||z4.getParent(s,"form");D&&(o.formElement=D,gx(o)&&!bl(o.getElement())&&(z4.insertAfter(z4.create("input",{type:"hidden",name:s}),s),o.hasHiddenInput=!0),o.formEventDelegate=function(J){o.fire(J.type,J)},z4.bind(D,"submit reset",o.formEventDelegate),o.on("reset",function(){o.resetContent()}),yx(o)&&!D.submit.nodeType&&!D.submit.length&&!D._mceOldSubmit&&(D._mceOldSubmit=D.submit,D.submit=function(){return o.editorManager.triggerSave(),o.setDirty(!1),D._mceOldSubmit(D)})),o.windowManager=TM(o),o.notificationManager=lB(o),B5(o)&&o.on("GetContent",function(J){J.save&&(J.content=z4.encode(J.content))}),tk(o)&&o.on("submit",function(){o.initialized&&o.save()}),A6(o)&&(o._beforeUnload=function(){o.initialized&&!o.destroyed&&!o.isHidden()&&o.save({format:"raw",no_events:!0,set_dirty:!1})},o.editorManager.on("BeforeUnload",o._beforeUnload)),o.editorManager.add(o),sq(o,o.suffix)}},uq=function(o,s){return eW(o,s)},cq={"font-size":"size","font-family":"face"},zF=function(o,s,d){var m=function(D){return Iu(D,o).orThunk(function(){return si(D)==="font"?Br(cq,o).bind(function(J){return jt(D,J)}):re.none()})},E=function(D){return jo(xe.fromDom(s),D)};return RO(xe.fromDom(d),function(D){return m(D)},E)},jN=function(o){return o.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},fq=function(o,s){return re.from(Ds.DOM.getStyle(s,o,!0))},WN=function(o){return function(s,d){return re.from(d).map(xe.fromDom).filter(ps).bind(function(m){return zF(o,s,m.dom).or(fq(o,m.dom))}).getOr("")}},dq=WN("font-size"),vq=te(jN,WN("font-family")),hq=function(o){return af(o.getBody()).map(function(s){var d=s.container();return Jr(d)?d.parentNode:d})},pq=function(o){return re.from(o.selection.getRng()).bind(function(s){var d=o.getBody(),m=s.startContainer===d&&s.startOffset===0;return m?re.none():re.from(o.selection.getStart(!0))})},mq=function(o,s){return pq(o).orThunk(ne(hq,o)).map(xe.fromDom).filter(ps).bind(s)}
96,GN=function(o,s){return mq(o,V(re.some,s))},HF=function(o,s){if(/^[0-9.]+$/.test(s)){var d=parseInt(s,10);if(d>=1&&d<=7){var m=Gb(o),E=ig(o);return E?E[d-1]||s:m[d-1]||s}else return s}else return s},gq=function(o){var s=o.split(/\s*,\s*/);return rt(s,function(d){return d.indexOf(" ")!==-1&&!(Ze(d,'"')||Ze(d,"'"))?"'"+d+"'":d}).join(",")},yq=function(o,s){var d=HF(o,s);o.formatter.toggle("fontname",{value:gq(d)}),o.nodeChanged()},bq=function(o){return GN(o,function(s){return vq(o.getBody(),s.dom)}).getOr("")},_q=function(o,s){o.formatter.toggle("fontsize",{value:HF(o,s)}),o.nodeChanged()},wq=function(o){return GN(o,function(s){return dq(o.getBody(),s.dom)}).getOr("")},Cq=function(o){return GN(o,function(s){var d=xe.fromDom(o.getBody()),m=RO(s,function(D){return Iu(D,"line-height")},ne(jo,d)),E=function(){var D=parseFloat(Sa(s,"line-height")),J=parseFloat(Sa(s,"font-size"));return String(D/J)};return m.getOrThunk(E)}).getOr("")},VF=function(o,s){o.formatter.toggle("lineheight",{value:String(s)}),o.nodeChanged()},xq=function(o){if(typeof o!="string"){var s=Gn.extend({paste:o.paste,data:{paste:o.paste}},o);return{content:o.content,details:s}}return{content:o,details:{}}},Eq=function(o,s){var d=xq(s);Qj(o,d.content,d.details)},ET=Gn.each,Sq=Gn.map,UF=Gn.inArray,jF=function(){function o(s){this.commands={state:{},exec:{},value:{}},this.editor=s,this.setupCommands(s)}return o.prototype.execCommand=function(s,d,m,E){var D,J=!1,ue=this;if(!ue.editor.removed){if(s.toLowerCase()!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(s)&&(!E||!E.skip_focus)?ue.editor.focus():Dw(ue.editor)),E=ue.editor.fire("BeforeExecCommand",{command:s,ui:d,value:m}),E.isDefaultPrevented())return!1;var me=s.toLowerCase();if(D=ue.commands.exec[me])return D(me,d,m),ue.editor.fire("ExecCommand",{command:s,ui:d,value:m}),!0;if(ET(this.editor.plugins,function(Le){if(Le.execCommand&&Le.execCommand(s,d,m))return ue.editor.fire("ExecCommand",{command:s,ui:d,value:m}),J=!0,!1}),J)return J;if(ue.editor.theme&&ue.editor.theme.execCommand&&ue.editor.theme.execCommand(s,d,m))return ue.editor.fire("ExecCommand",{command:s,ui:d,value:m}),!0;try{J=ue.editor.getDoc().execCommand(s,d,m)}catch{}return J?(ue.editor.fire("ExecCommand",{command:s,ui:d,value:m}),!0):!1}},o.prototype.queryCommandState=function(s){var d;if(!(this.editor.quirks.isHidden()||this.editor.removed)){if(s=s.toLowerCase(),d=this.commands.state[s])return d(s);try{return this.editor.getDoc().queryCommandState(s)}catch{}return!1}},o.prototype.queryCommandValue=function(s){var d;if(!(this.editor.quirks.isHidden()||this.editor.removed)){if(s=s.toLowerCase(),d=this.commands.value[s])return d(s);try{return this.editor.getDoc().queryCommandValue(s)}catch{}}},o.prototype.addCommands=function(s,d){d===void 0&&(d="exec");var m=this;ET(s,function(E,D){ET(D.toLowerCase().split(","),function(J){m.commands[d][J]=E})})},o.prototype.addCommand=function(s,d,m){var E=this;s=s.toLowerCase(),this.commands.exec[s]=function(D,J,ue,me){return d.call(m||E.editor,J,ue,me)}},o.prototype.queryCommandSupported=function(s){if(s=s.toLowerCase(),this.commands.exec[s])return!0;try{return this.editor.getDoc().queryCommandSupported(s)}catch{}return!1},o.prototype.addQueryStateHandler=function(s,d,m){var E=this;s=s.toLowerCase(),this.commands.state[s]=function(){return d.call(m||E.editor)}},o.prototype.addQueryValueHandler=function(s,d,m){var E=this;s=s.toLowerCase(),this.commands.value[s]=function(){return d.call(m||E.editor)}},o.prototype.hasCustomCommand=function(s){return s=s.toLowerCase(),!!this.commands.exec[s]},o.prototype.execNativeCommand=function(s,d,m){return d===void 0&&(d=!1),m===void 0&&(m=null),this.editor.getDoc().execCommand(s,d,m)},o.prototype.isFormatMatch=function(s){return this.editor.formatter.match(s)},o.prototype.toggleFormat=function(s,d){this.editor.formatter.toggle(s,d),this.editor.nodeChanged()},o.prototype.storeSelection=function(s){this.selectionBookmark=this.editor.selection.getBookmark(s)},o.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},o.prototype.setupCommands=function(s){var d=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":$,"mceEndUndoLevel,mceAddUndoLevel":function(){s.undoManager.add()},mceFocus:function(E,D,J){s_(s,J)},"Cut,Copy,Paste":function(E){var D=s.getDoc(),J;try{d.execNativeCommand(E)}catch{J=!0}if(E==="paste"&&!D.queryCommandEnabled(E)&&(J=!0),J||!D.queryCommandSupported(E)){var ue=s.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Io.mac&&(ue=ue.replace(/Ctrl\+/g,"\u2318+")),s.notificationManager.open({text:ue,type:"error"})}},unlink:function(){if(s.selection.isCollapsed()){var E=s.dom.getParent(s.selection.getStart(),"a");E&&s.dom.remove(E,!0);return}s.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(E){var D=E.substring(7);D==="full"&&(D="justify"),ET("left,center,right,justify".split(","),function(J){D!==J&&s.formatter.remove("align"+J)}),D!=="none"&&d.toggleFormat("align"+D)},"InsertUnorderedList,InsertOrderedList":function(E){var D;d.execNativeCommand(E);var J=s.dom.getParent(s.selection.getNode(),"ol,ul");J&&(D=J.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(D.nodeName)&&(d.storeSelection(),s.dom.split(D,J),d.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(E){d.toggleFormat(E)},"ForeColor,HiliteColor":function(E,D,J){d.toggleFormat(E,{value:J})},FontName:function(E,D,J){yq(s,J)},FontSize:function(E,D,J){_q(s,J)},LineHeight:function(E,D,J){VF(s,J)},Lang:function(E,D,J){d.toggleFormat(E,{value:J.code,customValue:J.customCode})},RemoveFormat:function(E){s.formatter.remove(E)},mceBlockQuote:function(){d.toggleFormat("blockquote")},FormatBlock:function(E,D,J){return d.toggleFormat(J||"p")},mceCleanup:function(){var E=s.selection.getBookmark();s.setContent(s.getContent()),s.selection.moveToBookmark(E)},mceRemoveNode:function(E,D,J){var ue=J||s.selection.getNode();ue!==s.getBody()&&(d.storeSelection(),s.dom.remove(ue,!0),d.restoreSelection())},mceSelectNodeDepth:function(E,D,J){var ue=0;s.dom.getParent(s.selection.getNode(),function(me){if(me.nodeType===1&&ue++===J)return s.selection.select(me),!1},s.getBody())},mceSelectNode:function(E,D,J){s.selection.select(J)},mceInsertContent:function(E,D,J){Eq(s,J)},mceInsertRawHTML:function(E,D,J){s.selection.setContent("tiny_mce_marker");var ue=s.getContent();s.setContent(ue.replace(/tiny_mce_marker/g,function(){return J}))},mceInsertNewLine:function(E,D,J){kN(s,J)},mceToggleFormat:function(E,D,J){d.toggleFormat(J)},mceSetContent:function(E,D,J){s.setContent(J)},"Indent,Outdent":function(E){_P(s,E)},mceRepaint:$,InsertHorizontalRule:function(){s.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){s.hasVisual=!s.hasVisual,s.addVisual()},mceReplaceContent:function(E,D,J){s.execCommand("mceInsertContent",!1,J.replace(/\{\$selection\}/g,s.selection.getContent({format:"text"})))},mceInsertLink:function(E,D,J){typeof J=="string"&&(J={href:J});var ue=s.dom.getParent(s.selection.getNode(),"a");J.href=J.href.replace(/ /g,"%20"),(!ue||!J.href)&&s.formatter.remove("link"),J.href&&s.formatter.apply("link",J,ue)},selectAll:function(){var E=s.dom.getParent(s.selection.getStart(),nd);if(E){var D=s.dom.createRng();D.selectNodeContents(E),s.selection.setRng(D)}},mceNewDocument:function(){s.setContent("")},InsertLineBreak:function(E,D,J){return F4(s,J),!0}});var m=function(E){return function(){var D=s.selection,J=D.isCollapsed()?[s.dom.getParent(D.getNode(),s.dom.isBlock)]:D.getSelectedBlocks(),ue=Sq(J,function(me){return!!s.formatter.matchNode(me,E)});return UF(ue,!0)!==-1}};d.addCommands({JustifyLeft:m("alignleft"),JustifyCenter:m("aligncenter"),JustifyRight:m("alignright"),JustifyFull:m("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(E){return d.isFormatMatch(E)},mceBlockQuote:function(){return d.isFormatMatch("blockquote")},Outdent:function(){return gP(s)},"InsertUnorderedList,InsertOrderedList":function(E){var D=s.dom.getParent(s.selection.getNode(),"ul,ol");return D&&(E==="insertunorderedlist"&&D.tagName==="UL"||E==="insertorderedlist"&&D.tagName==="OL")}},"state"),d.addCommands({Undo:function(){s.undoManager.undo()},Redo:function(){s.undoManager.redo()}}),d.addQueryValueHandler("FontName",function(){return bq(s)},this),d.addQueryValueHandler("FontSize",function(){return wq(s)},this),d.addQueryValueHandler("LineHeight",function(){return Cq(s)},this)},o}(),Fy="data-mce-contenteditable",WF=function(o,s,d){h5(o,s)&&d===!1?v5(o,s):d&&eg(o,s)},ST=function(o,s,d){try{o.getDoc().execCommand(s,!1,String(d))}catch{}},TT=function(o,s){o.dom.contentEditable=s?"true":"false"},Tq=function(o){ct(Cc(o,'*[contenteditable="true"]'),function(s){Me(s,Fy,"true"),TT(s,!1)})},Aq=function(o){ct(Cc(o,"*["+Fy+'="true"]'),function(s){qn(s,Fy),TT(s,!0)})},GF=function(o){re.from(o.selection.getNode()).each(function(s){s.removeAttribute("data-mce-selected")})},kq=function(o){o.selection.setRng(o.selection.getRng())},Oq=function(o,s){var d=xe.fromDom(o.getBody());WF(d,"mce-content-readonly",s),s?(o.selection.controlSelection.hideResizeRect
96(),o._selectionOverrides.hideFakeCaret(),GF(o),o.readonly=!0,TT(d,!1),Tq(d)):(o.readonly=!1,TT(d,!0),Aq(d),ST(o,"StyleWithCSS",!1),ST(o,"enableInlineTableEditing",!1),ST(o,"enableObjectResizing",!1),CE(o)&&o.focus(),kq(o),o.nodeChanged())},$y=function(o){return o.readonly},KF=function(o){o.parser.addAttributeFilter("contenteditable",function(s){$y(o)&&ct(s,function(d){d.attr(Fy,d.attr("contenteditable")),d.attr("contenteditable","false")})}),o.serializer.addAttributeFilter(Fy,function(s){$y(o)&&ct(s,function(d){d.attr("contenteditable",d.attr(Fy))})}),o.serializer.addTempAttr(Fy)},Mq=function(o){o.serializer?KF(o):o.on("PreInit",function(){KF(o)})},YF=function(o){return o.type==="click"},Nq=function(o,s){var d=function(m){return jo(m,xe.fromDom(o.getBody()))};return ds(s,"a",d).bind(function(m){return jt(m,"href")})},Dq=function(o,s){if(YF(s)&&!Xo.metaKeyPressed(s)){var d=xe.fromDom(s.target);Nq(o,d).each(function(m){if(s.preventDefault(),/^#/.test(m)){var E=o.dom.select(m+',[name="'+Rn(m,"#")+'"]');E.length&&o.selection.scrollIntoView(E[0],!0)}else window.open(m,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}},Iq=function(o){o.on("ShowCaret",function(s){$y(o)&&s.preventDefault()}),o.on("ObjectSelected",function(s){$y(o)&&s.preventDefault()})},qF=Gn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),AT=function(){function o(s){this.bindings={},this.settings=s||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||U}return o.isNative=function(s){return!!qF[s.toLowerCase()]},o.prototype.fire=function(s,d){var m=s.toLowerCase(),E=sr(m,d||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(E);var D=this.bindings[m];if(D)for(var J=0,ue=D.length;J<ue;J++){var me=D[J];if(!me.removed){if(me.once&&this.off(m,me.func),E.isImmediatePropagationStopped())return E;if(me.func.call(this.scope,E)===!1)return E.preventDefault(),E}}return E},o.prototype.on=function(s,d,m,E){if(d===!1&&(d=U),d){var D={func:d,removed:!1};E&&Gn.extend(D,E);for(var J=s.toLowerCase().split(" "),ue=J.length;ue--;){var me=J[ue],Le=this.bindings[me];Le||(Le=[],this.toggleEvent(me,!0)),m?Le=Fs([D],Le,!0):Le=Fs(Fs([],Le,!0),[D],!1),this.bindings[me]=Le}}return this},o.prototype.off=function(s,d){var m=this;if(s)for(var E=s.toLowerCase().split(" "),D=E.length;D--;){var J=E[D],ue=this.bindings[J];if(!J)return Vt(this.bindings,function(Le,tt){m.toggleEvent(tt,!1),delete m.bindings[tt]}),this;if(ue){if(!d)ue.length=0;else{var me=ot(ue,function(Le){return Le.func===d});ue=me.fail,this.bindings[J]=ue,ct(me.pass,function(Le){Le.removed=!0})}ue.length||(this.toggleEvent(s,!1),delete this.bindings[J])}}else Vt(this.bindings,function(Le,tt){m.toggleEvent(tt,!1)}),this.bindings={};return this},o.prototype.once=function(s,d,m){return this.on(s,d,m,{once:!0})},o.prototype.has=function(s){return s=s.toLowerCase(),!(!this.bindings[s]||this.bindings[s].length===0)},o}(),O9=function(o){return o._eventDispatcher||(o._eventDispatcher=new AT({scope:o,toggleEvent:function(s,d){AT.isNative(s)&&o.toggleNativeEvent&&o.toggleNativeEvent(s,d)}})),o._eventDispatcher},kT={fire:function(o,s,d){var m=this;if(m.removed&&o!=="remove"&&o!=="detach")return s;var E=O9(m).fire(o,s);if(d!==!1&&m.parent)for(var D=m.parent();D&&!E.isPropagationStopped();)D.fire(o,E,!1),D=D.parent();return E},on:function(o,s,d){return O9(this).on(o,s,d)},off:function(o,s){return O9(this).off(o,s)},once:function(o,s){return O9(this).once(o,s)},hasEventListeners:function(o){return O9(this).has(o)}},OT=Ds.DOM,H4,MT=function(o,s){if(s==="selectionchange")return o.getDoc();if(!o.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(s))return o.getDoc().documentElement;var d=T6(o);return d?(o.eventRoot||(o.eventRoot=OT.select(d)[0]),o.eventRoot):o.getBody()},Rq=function(o){return!o.hidden&&!$y(o)},XF=function(o,s,d){Rq(o)?o.fire(s,d):$y(o)&&Dq(o,d)},ZF=function(o,s){var d;if(o.delegates||(o.delegates={}),!(o.delegates[s]||o.removed)){var m=MT(o,s);if(T6(o)){if(H4||(H4={},o.editorManager.on("removeEditor",function(){o.editorManager.activeEditor||H4&&(Vt(H4,function(E,D){o.dom.unbind(MT(o,D))}),H4=null)})),H4[s])return;d=function(E){for(var D=E.target,J=o.editorManager.get(),ue=J.length;ue--;){var me=J[ue].getBody();(me===D||OT.isChildOf(D,me))&&XF(J[ue],s,E)}},H4[s]=d,OT.bind(m,s,d)}else d=function(E){XF(o,s,E)},OT.bind(m,s,d),o.delegates[s]=d}},QF=fo(fo({},kT),{bindPendingEventDelegates:function(){var o=this;Gn.each(o._pendingNativeEvents,function(s){ZF(o,s)})},toggleNativeEvent:function(o,s){var d=this;o==="focus"||o==="blur"||d.removed||(s?d.initialized?ZF(d,o):d._pendingNativeEvents?d._pendingNativeEvents.push(o):d._pendingNativeEvents=[o]:d.initialized&&(d.dom.unbind(MT(d,o),o,d.delegates[o]),delete d.delegates[o]))},unbindAllNativeEvents:function(){var o=this,s=o.getBody(),d=o.dom;o.delegates&&(Vt(o.delegates,function(m,E){o.dom.unbind(MT(o,E),E,m)}),delete o.delegates),!o.inline&&s&&d&&(s.onload=null,d.unbind(o.getWin()),d.unbind(o.getDoc())),d&&(
96d.unbind(s),d.unbind(o.getContainer()))}}),Lq=["design","readonly"],M9=function(o,s,d,m){var E=d[s.get()],D=d[m];try{D.activate()}catch(J){console.error("problem while activating editor mode "+m+":",J);return}E.deactivate(),E.editorReadOnly!==D.editorReadOnly&&Oq(o,D.editorReadOnly),s.set(m),pw(o,m)},JF=function(o,s,d,m){if(m!==d.get()){if(!io(s,m))throw new Error("Editor mode '"+m+"' is invalid");o.initialized?M9(o,d,s,m):o.on("init",function(){return M9(o,d,s,m)})}},e$=function(o,s,d){var m;if(De(Lq,s))throw new Error("Cannot override default mode "+s);return fo(fo({},o),(m={},m[s]=fo(fo({},d),{deactivate:function(){try{d.deactivate()}catch(E){console.error("problem while deactivating editor mode "+s+":",E)}}}),m))},Bq=function(o){var s=Df("design"),d=Df({design:{activate:$,deactivate:$,editorReadOnly:!1},readonly:{activate:$,deactivate:$,editorReadOnly:!0}});return Mq(o),Iq(o),{isReadOnly:function(){return $y(o)},set:function(m){return JF(o,d.get(),s,m)},get:function(){return s.get()},register:function(m,E){d.set(e$(d.get(),m,E))}}},NT=Gn.each,DT=Gn.explode,Pq={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},t$=Gn.makeMap("alt,ctrl,shift,meta,access"),Fq=function(o){var s,d={};NT(DT(o.toLowerCase(),"+"),function(E){E in t$?d[E]=!0:/^[0-9]{2,}$/.test(E)?d.keyCode=parseInt(E,10):(d.charCode=E.charCodeAt(0),d.keyCode=Pq[E]||E.toUpperCase().charCodeAt(0))});var m=[d.keyCode];for(s in t$)d[s]?m.push(s):d[s]=!1;return d.id=m.join(","),d.access&&(d.alt=!0,Io.mac?d.ctrl=!0:d.shift=!0),d.meta&&(Io.mac?d.meta=!0:(d.ctrl=!0,d.meta=!1)),d},IT=function(){function o(s){this.shortcuts={},this.pendingPatterns=[],this.editor=s;var d=this;s.on("keyup keypress keydown",function(m){(d.hasModifier(m)||d.isFunctionKey(m))&&!m.isDefaultPrevented()&&(NT(d.shortcuts,function(E){if(d.matchShortcut(m,E))return d.pendingPatterns=E.subpatterns.slice(0),m.type==="keydown"&&d.executeShortcutAction(E),!0}),d.matchShortcut(m,d.pendingPatterns[0])&&(d.pendingPatterns.length===1&&m.type==="keydown"&&d.executeShortcutAction(d.pendingPatterns[0]),d.pendingPatterns.shift()))})}return o.prototype.add=function(s,d,m,E){var D=this,J=D.normalizeCommandFunc(m);return NT(DT(Gn.trim(s)),function(ue){var me=D.createShortcut(ue,d,J,E);D.shortcuts[me.id]=me}),!0},o.prototype.remove=function(s){var d=this.createShortcut(s);return this.shortcuts[d.id]?(delete this.shortcuts[d.id],!0):!1},o.prototype.normalizeCommandFunc=function(s){var d=this,m=s;return typeof m=="string"?function(){d.editor.execCommand(m,!1,null)}:Gn.isArray(m)?function(){d.editor.execCommand(m[0],m[1],m[2])}:m},o.prototype.createShortcut=function(s,d,m,E){var D=Gn.map(DT(s,">"),Fq);return D[D.length-1]=Gn.extend(D[D.length-1],{func:m,scope:E||this.editor}),Gn.extend(D[0],{desc:this.editor.translate(d),subpatterns:D.slice(1)})},o.prototype.hasModifier=function(s){return s.altKey||s.ctrlKey||s.metaKey},o.prototype.isFunctionKey=function(s){return s.type==="keydown"&&s.keyCode>=112&&s.keyCode<=123},o.prototype.matchShortcut=function(s,d){return!d||d.ctrl!==s.ctrlKey||d.meta!==s.metaKey||d.alt!==s.altKey||d.shift!==s.shiftKey?!1:s.keyCode===d.keyCode||s.charCode&&s.charCode===d.charCode?(s.preventDefault(),!0):!1},o.prototype.executeShortcutAction=function(s){return s.func?s.func.call(s.scope):null},o}(),$q=function(){var o={},s={},d={},m={},E={},D={},J={},ue=function(Le,tt){return function(nt,it){return Le[nt.toLowerCase()]=fo(fo({},it),{type:tt})}},me=function(Le,tt){return m[Le.toLowerCase()]=tt};return{addButton:ue(o,"button"),addGroupToolbarButton:ue(o,"grouptoolbarbutton"),addToggleButton:ue(o,"togglebutton"),addMenuButton:ue(o,"menubutton"),addSplitButton:ue(o,"splitbutton"),addMenuItem:ue(s,"menuitem"),addNestedMenuItem:ue(s,"nestedmenuitem"),addToggleMenuItem:ue(s,"togglemenuitem"),addAutocompleter:ue(d,"autocompleter"),addContextMenu:ue(E,"contextmenu"),addContextToolbar:ue(D,"contexttoolbar"),addContextForm:ue(D,"contextform"),addSidebar:ue(J,"sidebar"),addIcon:me,getAll:function(){return{buttons:o,menuItems:s,icons:m,popups:d,contextMenus:E,contextToolbars:D,sidebars:J}}}},KN=function(){var o=$q();return{addAutocompleter:o.addAutocompleter,addButton:o.addButton,addContextForm:o.addContextForm,addContextMenu:o.addContextMenu,addContextToolbar:o.addContextToolbar,addIcon:o.addIcon,addMenuButton:o.addMenuButton,addMenuItem:o.addMenuItem,addNestedMenuItem:o.addNestedMenuItem,addSidebar:o.addSidebar,addSplitButton:o.addSplitButton,addToggleButton:o.addToggleButton,addGroupToolbarButton:o.addGroupToolbarButton,addToggleMenuItem:o.addToggleMenuItem,getAll:o.getAll}},V4=Ds.DOM,n$=Gn.extend,zq=Gn.each,YN=Gn.resolve,Hq=Io.ie,RT=function(){function o(s,d,m){var E=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=m,this.documentBaseUrl=m.documentBaseURL,n$(this,QF),this.settings=tB(this,s,this.documentBaseUrl,m.defaultSettings,d),this.settings.suffix&&(m.suffix=this.settings.suffix),this.suffix=m.suffix,this.settings.base_url&&m._setBaseUrl(this.settings.base_url),this.baseUri=m.baseURI,this.settings.referrer_policy&&(G0.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ds.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),ld.languageLoad=this.settings.language_load,ld.baseURL=m.baseURL,this.id=s,this.setDirty(!1),this.documentBaseURI=new Ay(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new IT(this),this.editorCommands=new jF(this),this.settings.cache_suffix&&(Io.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:KN(),styleSheetLoader:void 0,show:$,hide:$,enable:$,disable:$,isDisabled:U};var D=this,J=Bq(D);this.mode=J,this.setMode=J.set,m.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ta.overrideDefaults(function(){return{context:E.inline?E.getBody():E.getDoc(),element:E.getBody()}})}return o.prototype.render=function(){lq(this)}
96,o.prototype.focus=function(s){this.execCommand("mceFocus",!1,s)},o.prototype.hasFocus=function(){return B1(this)},o.prototype.execCallback=function(s){for(var d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];var E=this,D=E.settings[s],J;if(!!D)return E.callbackLookup&&(J=E.callbackLookup[s])&&(D=J.func,J=J.scope),typeof D=="string"&&(J=D.replace(/\.\w+$/,""),J=J?YN(J):0,D=YN(D),E.callbackLookup=E.callbackLookup||{},E.callbackLookup[s]={func:D,scope:J}),D.apply(J||E,d)},o.prototype.translate=function(s){return If.translate(s)},o.prototype.getParam=function(s,d,m){return GW(this,s,d,m)},o.prototype.hasPlugin=function(s,d){var m=De(k6(this).split(/[ ,]/),s);return m?d?ip.get(s)!==void 0:!0:!1},o.prototype.nodeChanged=function(s){this._nodeChangeDispatcher.nodeChanged(s)},o.prototype.addCommand=function(s,d,m){this.editorCommands.addCommand(s,d,m)},o.prototype.addQueryStateHandler=function(s,d,m){this.editorCommands.addQueryStateHandler(s,d,m)},o.prototype.addQueryValueHandler=function(s,d,m){this.editorCommands.addQueryValueHandler(s,d,m)},o.prototype.addShortcut=function(s,d,m,E){this.shortcuts.add(s,d,m,E)},o.prototype.execCommand=function(s,d,m,E){return this.editorCommands.execCommand(s,d,m,E)},o.prototype.queryCommandState=function(s){return this.editorCommands.queryCommandState(s)},o.prototype.queryCommandValue=function(s){return this.editorCommands.queryCommandValue(s)},o.prototype.queryCommandSupported=function(s){return this.editorCommands.queryCommandSupported(s)},o.prototype.show=function(){var s=this;s.hidden&&(s.hidden=!1,s.inline?s.getBody().contentEditable="true":(V4.show(s.getContainer()),V4.hide(s.id)),s.load(),s.fire("show"))},o.prototype.hide=function(){var s=this,d=s.getDoc();s.hidden||(Hq&&d&&!s.inline&&d.execCommand("SelectAll"),s.save(),s.inline?(s.getBody().contentEditable="false",s===s.editorManager.focusedEditor&&(s.editorManager.focusedEditor=null)):(V4.hide(s.getContainer()),V4.setStyle(s.id,"display",s.orgDisplay)),s.hidden=!0,s.fire("hide"))},o.prototype.isHidden=function(){return!!this.hidden},o.prototype.setProgressState=function(s,d){this.fire("ProgressState",{state:s,time:d})},o.prototype.load=function(s){var d=this,m=d.getElement(),E;if(d.removed)return"";if(m){s=s||{},s.load=!0;var D=bl(m)?m.value:m.innerHTML;return E=d.setContent(D,s),s.element=m,s.no_events||d.fire("LoadContent",s),s.element=m=null,E}},o.prototype.save=function(s){var d=this,m=d.getElement(),E,D;if(!(!m||!d.initialized||d.removed))return s=s||{},s.save=!0,s.element=m,E=s.content=d.getContent(s),s.no_events||d.fire("SaveContent",s),s.format==="raw"&&d.fire("RawSaveContent",s),E=s.content,bl(m)?m.value=E:((s.is_removing||!d.inline)&&(m.innerHTML=E),(D=V4.getParent(d.id,"form"))&&zq(D.elements,function(J){if(J.name===d.id)return J.value=E,!1})),s.element=m=null,s.set_dirty!==!1&&d.setDirty(!1),E},o.prototype.setContent=function(s,d){return MS(this,s,d)},o.prototype.getContent=function(s){return OS(this,s)},o.prototype.insertContent=function(s,d){d&&(s=n$({content:s},d)),this.execCommand("mceInsertContent",!1,s)},o.prototype.resetContent=function(s){s===void 0?MS(this,this.startContent,{format:"raw"}):MS(this,s),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},o.prototype.isDirty=function(){return!this.isNotDirty},o.prototype.setDirty=function(s){var d=!this.isNotDirty;this.isNotDirty=!s,s&&s!==d&&this.fire("dirty")},o.prototype.getContainer=function(){var s=this;return s.container||(s.container=V4.get(s.editorContainer||s.id+"_parent")),s.container},o.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},o.prototype.getElement=function(){return this.targetElm||(this.targetElm=V4.get(this.id)),this.targetElm},o.prototype.getWin=function(){var s=this,d;return s.contentWindow||(d=s.iframeElement,d&&(s.contentWindow=d.contentWindow)),s.contentWindow},o.prototype.getDoc=function(){var s=this,d;return s.contentDocument||(d=s.getWin(),d&&(s.contentDocument=d.document)),s.contentDocument},o.prototype.getBody=function(){var s=this.getDoc();return this.bodyElement||(s?s.body:null)},o.prototype.convertURL=function(s,d,m){var E=this,D=E.settings;return D.urlconverter_callback?E.execCallback("urlconverter_callback",s,m,!0,d):!D.convert_urls||m&&m.nodeName==="LINK"||s.indexOf("file:")===0||s.length===0?s:D.relative_urls?E.documentBaseURI.toRelative(s):(s=E.documentBaseURI.toAbsolute(s,D.remove_script_host),s)},o.prototype.addVisual=function(s){uq(this,s)},o.prototype.remove=function(){OW(this)},o.prototype.destroy=function(s){jL(this,s)},o.prototype.uploadImages=function(s){return this.editorUpload.uploadImages(s)},o.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},o.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},o.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},o.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},o.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},o}(),s0=Ds.DOM,Vq=Gn.explode,mm=Gn.each,d1=Gn.extend,U4=0,r$=!1,LT,zy=[],v1=[],Uq=function(o){return o!=="length"},o$=function(o){var s=o.type;mm(Hy.get(),function(d){switch(s){case"scroll":d.fire("ScrollWindow",o);break;case"resize":d.fire("ResizeWindow",o);break}})},qN=function(o){o!==r$&&(o?Ta(window).on("resize scroll",o$):Ta(window).off("resize scroll",o$),r$=o)},j4=function(o){var s=v1;delete zy[o.id];for(var d=0;d<zy.length;d++)if(zy[d]===o){zy.splice(d,1);break}return v1=Fe(v1,function(m){return o!==m}),Hy.activeEditor===o&&(Hy.activeEditor=v1.length>0?v1[0]:null),Hy.focusedEditor===o&&(Hy.focusedEditor=null),s.length!==v1.length},jq=function(o){return o&&o.initialized&&!(o.getContainer()||o.getBody()).parentNode&&(j4(o),o.unbindAllNativeEvents(),o.destroy(!0),o.removed=!0,o=null),o},Wq=document.compatMode!=="CSS1Compat",Hy=fo(fo({},kT),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ta,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:zy,i18n:If,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var o=this,s,d,m="";d=Ay.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(d)&&(d=d.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(d)||(d+="/"));var E=window.tinymce||window.tinyMCEPreInit;if(E)s=E.base||E.baseURL,m=E.suffix;else{for(var D=document.getElementsByTagName("script"),J=0;J<D.length;J++){var ue=D[J].src||"";if(ue!==""){var me=ue.substring(ue.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(ue)){me.indexOf(".min")!==-1&&(m=".min"),s=ue.substring(0,ue.lastIndexOf("/"));break}}}if(!s&&document.currentScript){var ue=document.currentScript.src;ue.indexOf(".min")!==-1&&(m=".min"),s=ue.substring(0,ue.lastIndexOf("/"))}}o.baseURL=new Ay(d).toAbsolute(s),o.documentBaseURL=d,o.baseURI=new Ay(o.baseURL),o.suffix=m,mE(o)},overrideDefaults:function(o){var s=o.base_url;s&&this._setBaseUrl(s);var d=o.suffix;o.suffix&&(this.suffix=d),this.defaultSettings=o;var m=o.plugin_base_urls;m!==void 0&&Vt(m,function(E,D){ld.PluginManager.urls[D]=E})},init:function(o){var s=this,d,m=Gn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),E=function(nt,it){return nt.inline&&it.tagName.toLowerCase()in m},D=function(nt){var it=nt.id;return it||(it=Br(nt,"name").filter(function(kt){return!s0.get(kt)}).getOrThunk(s0.uniqueId),nt.setAttribute("id",it)),it},J=function(nt){var it=o[nt];
96if(!!it)return it.apply(s,[])},ue=function(nt,it){return it.constructor===RegExp?it.test(nt.className):s0.hasClass(nt,it)},me=function(nt){var it=[];if(Io.browser.isIE()&&Io.browser.version.major<11)return FS("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(Wq)return FS("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(nt.types)return mm(nt.types,function(Nt){it=it.concat(s0.select(Nt.selector))}),it;if(nt.selector)return s0.select(nt.selector);if(nt.target)return[nt.target];switch(nt.mode){case"exact":var kt=nt.elements||"";kt.length>0&&mm(Vq(kt),function(Nt){var Lt=s0.get(Nt);Lt?it.push(Lt):mm(document.forms,function($t){mm($t.elements,function(Jt){Jt.name===Nt&&(Nt="mce_editor_"+U4++,s0.setAttrib(Jt,"id",Nt),it.push(Jt))})})});break;case"textareas":case"specific_textareas":mm(s0.select("textarea"),function(Nt){nt.editor_deselector&&ue(Nt,nt.editor_deselector)||(!nt.editor_selector||ue(Nt,nt.editor_selector))&&it.push(Nt)});break}return it},Le=function(nt){d=nt},tt=function(){var nt=0,it=[],kt,Nt=function(Lt,$t,Jt){var qt=new RT(Lt,$t,s);it.push(qt),qt.on("init",function(){++nt===kt.length&&Le(it)}),qt.targetElm=qt.targetElm||Jt,qt.render()};if(s0.unbind(window,"ready",tt),J("onpageload"),kt=Ta.unique(me(o)),o.types){mm(o.types,function(Lt){Gn.each(kt,function($t){return s0.is($t,Lt.selector)?(Nt(D($t),d1({},o,Lt),$t),!1):!0})});return}Gn.each(kt,function(Lt){jq(s.get(Lt.id))}),kt=Gn.grep(kt,function(Lt){return!s.get(Lt.id)}),kt.length===0?Le([]):mm(kt,function(Lt){E(o,Lt)?FS("Could not initialize inline editor on invalid inline target element",Lt):Nt(D(Lt),o,Lt)})};return s.settings=o,s0.bind(window,"ready",tt),new Zl(function(nt){d?nt(d):Le=function(it){nt(it)}})},get:function(o){return arguments.length===0?v1.slice(0):B(o)?mt(v1,function(s){return s.id===o}).getOr(null):Q(o)&&v1[o]?v1[o]:null},add:function(o){var s=this,d=zy[o.id];return d===o||(s.get(o.id)===null&&(Uq(o.id)&&(zy[o.id]=o),zy.push(o),v1.push(o)),qN(!0),s.activeEditor=o,s.fire("AddEditor",{editor:o}),LT||(LT=function(m){var E=s.fire("BeforeUnload");if(E.returnValue)return m.preventDefault(),m.returnValue=E.returnValue,E.returnValue},window.addEventListener("beforeunload",LT))),o},createEditor:function(o,s){return this.add(new RT(o,s,this))},remove:function(o){var s=this,d,m;if(!o){for(d=v1.length-1;d>=0;d--)s.remove(v1[d]);return}if(B(o)){mm(s0.select(o),function(E){m=s.get(E.id),m&&s.remove(m)});return}return m=o,N(s.get(m.id))?null:(j4(m)&&s.fire("RemoveEditor",{editor:m}),v1.length===0&&window.removeEventListener("beforeunload",LT),m.remove(),qN(v1.length>0),m)},execCommand:function(o,s,d){var m=this,E=m.get(d);switch(o){case"mceAddEditor":return m.get(d)||new RT(d,m.settings,m).render(),!0;case"mceRemoveEditor":return E&&E.remove(),!0;case"mceToggleEditor":return E?(E.isHidden()?E.show():E.hide(),!0):(m.execCommand("mceAddEditor",!1,d),!0)}return m.activeEditor?m.activeEditor.execCommand(o,s,d):!1},triggerSave:function(){mm(v1,function(o){o.save()})},addI18n:function(o,s){If.add(o,s)},translate:function(o){return If.translate(o)},setActive:function(o){var s=this.activeEditor;this.activeEditor!==o&&(s&&s.fire("deactivate",{relatedTarget:o}),o.fire("activate",{relatedTarget:s})),this.activeEditor=o},_setBaseUrl:function(o){this.baseURL=new Ay(this.documentBaseURL).toAbsolute(o.replace(/\/+$/,"")),this.baseURI=new Ay(this.baseURL)}});Hy.setup();var l0=Math.min,a8=Math.max,BT=Math.round,XN=function(o,s,d){var m=s.x,E=s.y,D=o.w,J=o.h,ue=s.w,me=s.h,Le=(d||"").split("");return Le[0]==="b"&&(E+=me),Le[1]==="r"&&(m+=ue),Le[0]==="c"&&(E+=BT(me/2)),Le[1]==="c"&&(m+=BT(ue/2)),Le[3]==="b"&&(E-=J),Le[4]==="r"&&(m-=D),Le[3]==="c"&&(E-=BT(J/2)),Le[4]==="c"&&(m-=BT(D/2)),i8(m,E,D,J)},Gq=function(o,s,d,m){var E,D;for(D=0;D<m.length;D++)if(E=XN(o,s,m[D]),E.x>=d.x&&E.x+E.w<=d.w+d.x&&E.y>=d.y&&E.y+E.h<=d.h+d.y)return m[D];return null},a$=function(o,s,d){return i8(o.x-s,o.y-d,o.w+s*2,o.h+d*2)},i$=function(o,s){var d=a8(o.x,s.x),m=a8(o.y,s.y),E=l0(o.x+o.w,s.x+s.w),D=l0(o.y+o.h,s.y+s.h);return E-d<0||D-m<0?null:i8(d,m,E-d,D-m)},ZN=function(o,s,d){var m=o.x,E=o.y,D=o.x+o.w,J=o.y+o.h,ue=s.x+s.w,me=s.y+s.h,Le=a8(0,s.x-m),tt=a8(0,s.y-E),nt=a8(0,D-ue),it=a8(0,J-me);return m+=Le,E+=tt,d&&(D+=Le,J+=tt,m-=nt,E-=it),D-=nt,J-=it,i8(m,E,D-m,J-E)},i8=function(o,s,d,m){return{x:o,y:s,w:d,h:m}},Kq=function(o){return i8(o.left,o.top,o.width,o.height)},Yq={inflate:a$,relativePosition:XN,findBestRelativePosition:Gq,intersect:i$,clamp:ZN,create:i8,fromClientRect:Kq},qq=function(o,s,d){d===void 0&&(d=1e3);var m=!1,E=null,D=function(Le){return function(){for(var tt=[],nt=0;nt<arguments.length;nt++)tt[nt]=arguments[nt];m||(m=!0,E!==null&&(clearTimeout(E),E=null),Le.apply(null,tt))}},J=D(o),ue=D(s),me=function(){for(var Le=[],tt=0;tt<arguments.length;tt++)Le[tt]=arguments[tt];!m&&E===null&&(E=setTimeout(function(){return ue.apply(null,Le)},d))};return{start:me,resolve:J,reject:ue}},Xq=function(){var o={},s={},d=function(E,D){var J='Script at URL "'+D+'" failed to load',ue='Script at URL "'+D+"\" did not call `tinymce.Resource.add('"+E+"', data)` within 1 second";if(o[E]!==void 0)return o[E];var me=new Zl(function(Le,tt){var nt=qq(Le,tt);s[E]=nt.resolve,G0.ScriptLoader.loadScript(D,function(){return nt.start(ue)},function(){return nt.reject(J)})});return o[E]=me,me},m=function(E,D){s[E]!==void 0&&(s[E](D),delete s[E]),o[E]=Zl.resolve(D)};return{load:d,add:m}},s$=Xq(),N9=Gn.each,Zq=Gn.extend,QN,JN,l$=function(){};l$.extend=QN=function(o){var s=this,d=s.prototype,m=function(){var ue,me,Le,tt=this;
96if(!JN&&(tt.init&&tt.init.apply(tt,arguments),me=tt.Mixins,me))for(ue=me.length;ue--;)Le=me[ue],Le.init&&Le.init.apply(tt,arguments)},E=function(){return this},D=function(ue,me){return function(){var Le=this,tt=Le._super;Le._super=d[ue];var nt=me.apply(Le,arguments);return Le._super=tt,nt}};JN=!0;var J=new s;return JN=!1,o.Mixins&&(N9(o.Mixins,function(ue){for(var me in ue)me!=="init"&&(o[me]=ue[me])}),d.Mixins&&(o.Mixins=d.Mixins.concat(o.Mixins))),o.Methods&&N9(o.Methods.split(","),function(ue){o[ue]=E}),o.Properties&&N9(o.Properties.split(","),function(ue){var me="_"+ue;o[ue]=function(Le){var tt=this;return Le!==void 0?(tt[me]=Le,tt):tt[me]}}),o.Statics&&N9(o.Statics,function(ue,me){m[me]=ue}),o.Defaults&&d.Defaults&&(o.Defaults=Zq({},d.Defaults,o.Defaults)),Vt(o,function(ue,me){typeof ue=="function"&&d[me]?J[me]=D(me,ue):J[me]=ue}),m.prototype=J,m.constructor=m,m.extend=QN,m};var PT=Math.min,FT=Math.max,Vy=Math.round,eD=function(o){var s={},d=0,m=0,E=0,D=function(nt,it,kt){var Nt,Lt,$t;Nt=0,Lt=0,$t=0,nt=nt/255,it=it/255,kt=kt/255;var Jt=PT(nt,PT(it,kt)),qt=FT(nt,FT(it,kt));if(Jt===qt)return $t=Jt,{h:0,s:0,v:$t*100};var Mn=nt===Jt?it-kt:kt===Jt?nt-it:kt-nt;return Nt=nt===Jt?3:kt===Jt?1:5,Nt=60*(Nt-Mn/(qt-Jt)),Lt=(qt-Jt)/qt,$t=qt,{h:Vy(Nt),s:Vy(Lt*100),v:Vy($t*100)}},J=function(nt,it,kt){if(nt=(parseInt(nt,10)||0)%360,it=parseInt(it,10)/100,kt=parseInt(kt,10)/100,it=FT(0,PT(it,1)),kt=FT(0,PT(kt,1)),it===0){d=m=E=Vy(255*kt);return}var Nt=nt/60,Lt=kt*it,$t=Lt*(1-Math.abs(Nt%2-1)),Jt=kt-Lt;switch(Math.floor(Nt)){case 0:d=Lt,m=$t,E=0;break;case 1:d=$t,m=Lt,E=0;break;case 2:d=0,m=Lt,E=$t;break;case 3:d=0,m=$t,E=Lt;break;case 4:d=$t,m=0,E=Lt;break;case 5:d=Lt,m=0,E=$t;break;default:d=m=E=0}d=Vy(255*(d+Jt)),m=Vy(255*(m+Jt)),E=Vy(255*(E+Jt))},ue=function(){var nt=function(it){return it=parseInt(it,10).toString(16),it.length>1?it:"0"+it};return"#"+nt(d)+nt(m)+nt(E)},me=function(){return{r:d,g:m,b:E}},Le=function(){return D(d,m,E)},tt=function(nt){var it;return typeof nt=="object"?"r"in nt?(d=nt.r,m=nt.g,E=nt.b):"v"in nt&&J(nt.h,nt.s,nt.v):(it=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(nt))?(d=parseInt(it[1],10),m=parseInt(it[2],10),E=parseInt(it[3],10)):(it=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(nt))?(d=parseInt(it[1],16),m=parseInt(it[2],16),E=parseInt(it[3],16)):(it=/#([0-F])([0-F])([0-F])/gi.exec(nt))&&(d=parseInt(it[1]+it[1],16),m=parseInt(it[2]+it[2],16),E=parseInt(it[3]+it[3],16)),d=d<0?0:d>255?255:d,m=m<0?0:m>255?255:m,E=E<0?0:E>255?255:E,s};return o&&tt(o),s.toRgb=me,s.toHsv=Le,s.toHex=ue,s.parse=tt,s},u$=function(o){var s=JSON.stringify(o);return B(s)?s.replace(/[\u0080-\uFFFF]/g,function(d){var m=d.charCodeAt(0).toString(16);return"\\u"+"0000".substring(m.length)+m}):s},tD={serialize:u$,parse:function(o){try{return JSON.parse(o)}catch{}}},Qq={callbacks:{},count:0,send:function(o){var s=this,d=Ds.DOM,m=o.count!==void 0?o.count:s.count,E="tinymce_jsonp_"+m;s.callbacks[m]=function(D){d.remove(E),delete s.callbacks[m],o.callback(D)},d.add(d.doc.body,"script",{id:E,src:o.url,type:"text/javascript"}),s.count++}},s8=fo(fo({},kT),{send:function(o){var s,d=0,m=function(){!o.async||s.readyState===4||d++>1e4?(o.success&&d<1e4&&s.status===200?o.success.call(o.success_scope,""+s.responseText,s,o):o.error&&o.error.call(o.error_scope,d>1e4?"TIMED_OUT":"GENERAL",s,o),s=null):cl.setTimeout(m,10)};if(o.scope=o.scope||this,o.success_scope=o.success_scope||o.scope,o.error_scope=o.error_scope||o.scope,o.async=o.async!==!1,o.data=o.data||"",s8.fire("beforeInitialize",{settings:o}),s=new XMLHttpRequest,s.overrideMimeType&&s.overrideMimeType(o.content_type),s.open(o.type||(o.data?"POST":"GET"),o.url,o.async),o.crossDomain&&(s.withCredentials=!0),o.content_type&&s.setRequestHeader("Content-Type",o.content_type),o.requestheaders&&Gn.each(o.requestheaders,function(E){s.setRequestHeader(E.key,E.value)}),s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s=s8.fire("beforeSend",{xhr:s,settings:o}).xhr,s.send(o.data),!o.async)return m();cl.setTimeout(m,10)}}),nD=Gn.extend,Jq=function(){function o(s){this.settings=nD({},s),this.count=0}return o.sendRPC=function(s){return new o().send(s)},o.prototype.send=function(s){var d=s.error,m=s.success,E=nD(this.settings,s);E.success=function(D,J){D=tD.parse(D),typeof D=="undefined"&&(D={error:"JSON Parse error."}),D.error?d.call(E.error_scope||E.scope,D.error,J):m.call(E.success_scope||E.scope,D.result)},E.error=function(D,J){d&&d.call(E.error_scope||E.scope,D,J)}
96,E.data=tD.serialize({id:s.id||"c"+this.count++,method:s.method,params:s.params}),E.content_type="application/json",s8.send(E)},o}(),eX=function(){return function(){var o={},s=[],d={getItem:function(m){var E=o[m];return E||null},setItem:function(m,E){s.push(m),o[m]=String(E)},key:function(m){return s[m]},removeItem:function(m){s=s.filter(function(E){return E===m}),delete o[m]},clear:function(){s=[],o={}},length:0};return Object.defineProperty(d,"length",{get:function(){return s.length},configurable:!1,enumerable:!1}),d}()},D9;try{var rD="__storage_test__";D9=window.localStorage,D9.setItem(rD,rD),D9.removeItem(rD)}catch{D9=eX()}var tX=D9,nX={geom:{Rect:Yq},util:{Promise:Zl,Delay:cl,Tools:Gn,VK:Xo,URI:Ay,Class:l$,EventDispatcher:AT,Observable:kT,I18n:If,XHR:s8,JSON:tD,JSONRequest:Jq,JSONP:Qq,LocalStorage:tX,Color:eD,ImageUploader:sG},dom:{EventUtils:Ph,Sizzle:Da,DomQuery:Ta,TreeWalker:hi,TextSeeker:y5,DOMUtils:Ds,ScriptLoader:G0,RangeUtils:o4,Serializer:CM,StyleSheetLoader:Eb,ControlSelection:yw,BookmarkManager:om,Selection:B_,Event:Ph.Event},html:{Styles:a1,Entities:ad,Node:P1,Schema:Tf,SaxParser:yM,DomParser:kS,Writer:Ww,Serializer:Sg},Env:Io,AddOnManager:ld,Annotator:Y6,Formatter:Il,UndoManager:_B,EditorCommands:jF,WindowManager:TM,NotificationManager:lB,EditorObservable:QF,Shortcuts:IT,Editor:RT,FocusManager:cE,EditorManager:Hy,DOM:Ds.DOM,ScriptLoader:G0.ScriptLoader,PluginManager:ip,ThemeManager:ky,IconManager:BS,Resource:s$,trim:Gn.trim,isArray:Gn.isArray,is:Gn.is,toArray:Gn.toArray,makeMap:Gn.makeMap,each:Gn.each,map:Gn.map,grep:Gn.grep,inArray:Gn.inArray,extend:Gn.extend,create:Gn.create,walk:Gn.walk,createNS:Gn.createNS,resolve:Gn.resolve,explode:Gn.explode,_addCacheSuffix:Gn._addCacheSuffix,isOpera:Io.opera,isWebKit:Io.webkit,isIE:Io.ie,isGecko:Io.gecko,isMac:Io.mac},c$=Gn.extend(Hy,nX),rX=function(o){try{e.exports=o}catch{}},oX=function(o){window.tinymce=o,window.tinyMCE=o};oX(c$),rX(c$)})()})(Kge);var Z7t=Kge.exports;(function(){var e=function(a){var c=typeof a;return a===null?"null":c==="object"&&(Array.prototype.isPrototypeOf(a)||a.constructor&&a.constructor.name==="Array")?"array":c==="object"&&(String.prototype.isPrototypeOf(a)||a.constructor&&a.constructor.name==="String")?"string":c},t=function(a){return function(c){return e(c)===a}},n=function(a){return function(c){return typeof c===a}},r=function(a){return function(c){return a===c}},i=t("string"),l=t("object"),u=t("array"),f=r(null),v=n("boolean"),h=r(void 0),g=function(a){return a==null},y=function(a){return!g(a)},w=n("function"),C=n("number"),S=function(a,c){if(u(a)){for(var p=0,x=a.length;p<x;++p)if(!c(a[p]))return!1;return!0}return!1},T=function(){},B=function(a){return function(){return a()}},F=function(a,c){return function(){for(var p=[],x=0;x<arguments.length;x++)p[x]=arguments[x];return a(c.apply(null,p))}},R=function(a,c){return function(p){return a(c(p))}},N=function(a){return function(){return a}},A=function(a){return a},X=function(a,c){return a===c};function Z(a){for(var c=[],p=1;p<arguments.length;p++)c[p-1]=arguments[p];return function(){for(var x=[],I=0;I<arguments.length;I++)x[I]=arguments[I];var G=c.concat(x);return a.apply(null,G)}}var z=function(a){return function(c){return!a(c)}},Y=function(a){return function(){throw new Error(a)}},Q=N(!1),$=N(!0),te=tinymce.util.Tools.resolve("tinymce.ThemeManager"),V=function(){return V=Object.assign||function(c){for(var p,x=1,I=arguments.length;x<I;x++){p=arguments[x];for(var G in p)Object.prototype.hasOwnProperty.call(p,G)&&(c[G]=p[G])}return c},V.apply(this,arguments)};function K(a,c){var p={};for(var x in a)Object.prototype.hasOwnProperty.call(a,x)&&c.indexOf(x)<0&&(p[x]=a[x]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,x=Object.getOwnPropertySymbols(a);I<x.length;I++)c.indexOf(x[I])<0&&Object.prototype.propertyIsEnumerable.call(a,x[I])&&(p[x[I]]=a[x[I]]);return p}function fe(a,c,p){if(p||arguments.length===2)for(var x=0,I=c.length,G;x<I;x++)(G||!(x in c))&&(G||(G=Array.prototype.slice.call(c,0,x)),G[x]=c[x]);return a.concat(G||Array.prototype.slice.call(c))}var de=function(){return ne},ne=function(){var a=function(x){return x()},c=A,p={fold:function(x,I){return x()},isSome:Q,isNone:$,getOr:c,getOrThunk:a,getOrDie:function(x){throw new Error(x||"error: getOrDie called on none.")},getOrNull:N(null),getOrUndefined:N(void 0),or:c,orThunk:a,map:de,each:T,bind:de,exists:Q,forall:$,filter:function(){return de()},toArray:function(){return[]},toString:N("none()")};return p}(),le=function(a){var c=N(a),p=function(){return I},x=function(G){return G(a)},I={fold:function(G,se){return se(a)},isSome:$,isNone:Q,getOr:c,getOrThunk:c,getOrDie:c,getOrNull:c,getOrUndefined:c,or:p,orThunk:p,map:function(G){return le(G(a))},each:function(G){G(a)},bind:x,exists:x,forall:x,filter:function(G){return G(a)?I:ne},toArray:function(){return[a]},toString:function(){return"some("+a+")"}};return I},_e=function(a){return a==null?ne:le(a)},M={some:le,none:de,from:_e},P=Array.prototype.slice,U=Array.prototype.indexOf,j=Array.prototype.push,ee=function(a,c){return U.call(a,c)},ye=function(a,c){var p=ee(a,c);return p===-1?M.none():M.some(p)},ie=function(a,c){return ee(a,c)>-1},he=function(a,c){for(var p=0,x=a.length;p<x;p++){var I=a[p];if(c(I,p))return!0}return!1},re=function(a,c){for(var p=[],x=0;x<a;x++)p.push(c(x));return p},be=function(a,c){for(var p=[],x=0;x<a.length;x+=c){var I=P.call(a,x,x+c);p.push(I)}return p},Ae=function(a,c){for(var p=a.length,x=new Array(p),I=0;I<p;I++){var G=a[I];x[I]=c(G,I)}return x},Te=function(a,c){for(var p=0,x=a.length;p<x;p++){var I=a[p];c(I,p)}},Ue=function(a,c){for(var p=a.length-1;p>=0;p--){var x=a[p];c(x,p)}},Oe=function(a,c){for(var p=[],x=[],I=0,G=a.length;I<G;I++){var se=a[I],ge=c(se,I)?p:x;ge.push(se)}return{pass:p,fail:x}},De=function(a,c){for(var p=[],x=0,I=a.length;x<I;x++){var G=a[x];c(G,x)&&p.push(G)}return p},$e=function(a,c,p){return Ue(a,function(x,I){p=c(p,x,I)}),p},rt=function(a,c,p){return Te(a,function(x,I){p=c(p,x,I)}),p},ct=function(a,c,p){for(var x=0,I=a.length;x<I;x++){var G=a[x];if(c(G,x))return M.some(G);if(p(G,x))break}return M.none()},lt=function(a,c){return ct(a,c,Q)},ot=function(a,c){for(var p=0,x=a.length;p<x;p++){var I=a[p];if(c(I,p))return M.some(p)}return M.none()},Fe=function(a){for(var c=[],p=0,x=a.length;p<x;
96++p){if(!u(a[p]))throw new Error("Arr.flatten item "+p+" was not an array, input: "+a);j.apply(c,a[p])}return c},We=function(a,c){return Fe(Ae(a,c))},Ye=function(a,c){for(var p=0,x=a.length;p<x;++p){var I=a[p];if(c(I,p)!==!0)return!1}return!0},Ke=function(a){var c=P.call(a,0);return c.reverse(),c},mt=function(a,c){return De(a,function(p){return!ie(c,p)})},Ct=function(a,c){for(var p={},x=0,I=a.length;x<I;x++){var G=a[x];p[String(G)]=c(G,x)}return p},bt=function(a){return[a]},tn=function(a,c){var p=P.call(a,0);return p.sort(c),p},Ft=function(a,c){return c>=0&&c<a.length?M.some(a[c]):M.none()},It=function(a){return Ft(a,0)},Et=function(a){return Ft(a,a.length-1)},At=w(Array.from)?Array.from:function(a){return P.call(a)},vt=function(a,c){for(var p=0;p<a.length;p++){var x=c(a[p],p);if(x.isSome())return x}return M.none()},Tt=Object.keys,Wt=Object.hasOwnProperty,xt=function(a,c){for(var p=Tt(a),x=0,I=p.length;x<I;x++){var G=p[x],se=a[G];c(se,G)}},at=function(a,c){return _t(a,function(p,x){return{k:x,v:c(p,x)}})},_t=function(a,c){var p={};return xt(a,function(x,I){var G=c(x,I);p[G.k]=G.v}),p},en=function(a){return function(c,p){a[p]=c}},An=function(a,c,p,x){var I={};return xt(a,function(G,se){(c(G,se)?p:x)(G,se)}),I},Vt=function(a,c){var p={};return An(a,c,en(p),T),p},_n=function(a,c){var p=[];return xt(a,function(x,I){p.push(c(x,I))}),p},Mt=function(a,c){for(var p=Tt(a),x=0,I=p.length;x<I;x++){var G=p[x],se=a[G];if(c(se,G,a))return M.some(se)}return M.none()},pn=function(a){return _n(a,A)},En=function(a,c){return zn(a,c)?M.from(a[c]):M.none()},zn=function(a,c){return Wt.call(a,c)},nn=function(a,c){return zn(a,c)&&a[c]!==void 0&&a[c]!==null},Yn=function(a,c,p){return p===void 0&&(p=X),a.exists(function(x){return p(x,c)})},qr=function(a,c,p){return p===void 0&&(p=X),xa(a,c,p).getOr(a.isNone()&&c.isNone())},Br=function(a){for(var c=[],p=function(I){c.push(I)},x=0;x<a.length;x++)a[x].each(p);return c},io=function(a){for(var c=[],p=0;p<a.length;p++){var x=a[p];if(x.isSome())c.push(x.getOrDie());else return M.none()}return M.some(c)},xa=function(a,c,p){return a.isSome()&&c.isSome()?M.some(p(a.getOrDie(),c.getOrDie())):M.none()},Di=function(a,c,p,x){return a.isSome()&&c.isSome()&&p.isSome()?M.some(x(a.getOrDie(),c.getOrDie(),p.getOrDie())):M.none()},la=function(a,c){return a!=null?M.some(c(a)):M.none()},Na=function(a,c){return a?M.some(c):M.none()},Bi=function(a,c){return a+c},Ps=function(a,c){return a.substring(c)},rs=function(a,c,p){return c===""||a.length>=c.length&&a.substr(p,p+c.length)===c},Ai=function(a,c){return _s(a,c)?Ps(a,c.length):a}
96,el=function(a,c){return fo(a,c)?a:Bi(a,c)},ga=function(a,c){return a.indexOf(c)!==-1},_s=function(a,c){return rs(a,c,0)},fo=function(a,c){return rs(a,c,a.length-c.length)},il=function(a){return function(c){return c.replace(a,"")}},Fs=il(/^\s+|\s+$/g),us=function(a){return a.length>0},cs=function(a){return!us(a)},sl=function(a){return a.style!==void 0&&w(a.style.getPropertyValue)},wi=function(a,c){var p=c||document,x=p.createElement("div");if(x.innerHTML=a,!x.hasChildNodes()||x.childNodes.length>1)throw console.error("HTML does not have a single root node",a),new Error("HTML must have a single root node");return zt(x.childNodes[0])},bo=function(a,c){var p=c||document,x=p.createElement(a);return zt(x)},pl=function(a,c){var p=c||document,x=p.createTextNode(a);return zt(x)},zt=function(a){if(a==null)throw new Error("Node cannot be null or undefined");return{dom:a}},an=function(a,c,p){return M.from(a.dom.elementFromPoint(c,p)).map(zt)},Rt={fromHtml:wi,fromTag:bo,fromText:pl,fromDom:zt,fromPoint:an};typeof window!="undefined"||Function("return this;")();var Nn=9,Er=11,Yr=1,ft=3,Bt=function(a){var c=a.dom.nodeName;return c.toLowerCase()},Rn=function(a){return a.dom.nodeType},Qn=function(a){return function(c){return Rn(c)===a}},Ze=Qn(Yr),St=Qn(ft),Gt=Qn(Nn),Xt=Qn(Er),On=function(a){var c=!1,p;return function(){for(var x=[],I=0;I<arguments.length;I++)x[I]=arguments[I];return c||(c=!0,p=a.apply(null,x)),p}},Dn=function(a,c,p,x){var I=a.isiOS()&&/ipad/i.test(p)===!0,G=a.isiOS()&&!I,se=a.isiOS()||a.isAndroid(),ge=se||x("(pointer:coarse)"),we=I||!G&&se&&x("(min-device-width:768px)"),ke=G||se&&!we,ze=c.isSafari()&&a.isiOS()&&/safari/i.test(p)===!1,Ge=!ke&&!we&&!ze;return{isiPad:N(I),isiPhone:N(G),isTablet:N(we),isPhone:N(ke),isTouch:N(ge),isAndroid:a.isAndroid,isiOS:a.isiOS,isWebView:N(ze),isDesktop:N(Ge)}},xr=function(a,c){for(var p=0;p<a.length;p++){var x=a[p];if(x.test(c))return x}},Nr=function(a,c){var p=xr(a,c);if(!p)return{major:0,minor:0};var x=function(I){return Number(c.replace(p,"$"+I))};return po(x(1),x(2))},To=function(a,c){var p=String(c).toLowerCase();return a.length===0?Bn():Nr(a,p)},Bn=function(){return po(0,0)},po=function(a,c){return{major:a,minor:c}},Zo={nu:po,detect:To,unknown:Bn},Za=function(a,c){return vt(c.brands,function(p){var x=p.brand.toLowerCase();return lt(a,function(I){var G;return x===((G=I.brand)===null||G===void 0?void 0:G.toLowerCase())}).map(function(I){return{current:I.name,version:Zo.nu(parseInt(p.version,10),0)}})})},os=function(a,c){var p=String(c).toLowerCase();return lt(a,function(x){return x.search(p)})},ua=function(a,c){return os(a,c).map(function(p){var x=Zo.detect(p.versionRegexes,c);return{current:p.name,version:x}})},Xu=function(a,c){return os(a,c).map(function(p){var x=Zo.detect(p.versionRegexes,c);return{current:p.name,version:x}})},Tu=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,as=function(a){return function(c){return ga(c,a)}},ff=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(a){return ga(a,"edge/")&&ga(a,"chrome")&&ga(a,"safari")&&ga(a,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Tu],search:function(a){return ga(a,"chrome")&&!ga(a,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(a){return ga(a,"msie")||ga(a,"trident")}},{name:"Opera",versionRegexes:[Tu,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:as("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:as("firefox")},{name:"Safari",versionRegexes:[Tu,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(a){return(ga(a,"safari")||ga(a,"mobile/"))&&ga(a,"applewebkit")}}],Pl=[{name:"Windows",search:as("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(a){return ga(a,"iphone")||ga(a,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:as("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:as("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:as("linux"),versionRegexes:[]},{name:"Solaris",search:as("sunos"),versionRegexes:[]},{name:"FreeBSD",search:as("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:as("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Fl={browsers:N(ff),oses:N(Pl)},Ka="Edge",df="Chrome",Rc="IE",Zu="Opera",hc="Firefox",ql="Safari",Au=function(){return qf({current:void 0,version:Zo.unknown()})},qf=function(a){var c=a.current,p=a.version,x=function(I){return function(){return c===I}};return{current:c,version:p,isEdge:x(Ka),isChrome:x(df),isIE:x(Rc),isOpera:x(Zu),isFirefox:x(hc),isSafari:x(ql)}},fu={unknown:Au,nu:qf,edge:N(Ka),chrome:N(df),ie:N(Rc),opera:N(Zu),firefox:N(hc),safari:N(ql)},Sl="Windows",pt="iOS",sn="Android",kn="Linux",er="OSX",wr="Solaris",mo="FreeBSD",ja="ChromeOS",ii=function(){return da({current:void 0,version:Zo.unknown()})},da=function(a){var c=a.current,p=a.version,x=function(I){return function(){return c===I}};return{current:c,version:p,isWindows:x(Sl),isiOS:x(pt),isAndroid:x(sn),isOSX:x(er),isLinux:x(kn),isSolaris:x(wr),isFreeBSD:x(mo),isChromeOS:x(ja)}},Ci={unknown:ii,nu:da,windows:N(Sl),ios:N(pt),android:N(sn),linux:N(kn),osx:N(er),solaris:N(wr),freebsd:N(mo),chromeos:N(ja)},es=function(a,c,p){var x=Fl.browsers(),I=Fl.oses(),G=c.bind(function(we){return Za(x,we)}).orThunk(function(){return ua(x,a)}).fold(fu.unknown,fu.nu),se=Xu(I,a).fold(Ci.unknown,Ci.nu),ge=Dn(se,G,a,p);return{browser:G,os:se,deviceType:ge}},pc={detect:es},Yi=function(a){return window.matchMedia(a).matches},mc=On(function(){return pc.detect(navigator.userAgent,M.from(navigator.userAgentData),Yi)}),Io=function(){return mc()},gc=function(a,c,p){return(a.compareDocumentPosition(c)&p)!==0},Wd=function(a,c){return gc(a,c,Node.DOCUMENT_POSITION_CONTAINED_BY)},Ea=function(a,c){var p=a.dom;if(p.nodeType!==Yr)return!1;var x=p;if(x.matches!==void 0)return x.matches(c);if(x.msMatchesSelector!==void 0)return x.msMatchesSelector(c);if(x.webkitMatchesSelector!==void 0)return x.webkitMatchesSelector(c);if(x.mozMatchesSelector!==void 0)return x.mozMatchesSelector(c);throw new Error("Browser lacks native selectors")},Xf=function(a){return a.nodeType!==Yr&&a.nodeType!==Nn&&a.nodeType!==Er||a.childElementCount===0},ku=function(a,c){var p=c===void 0?document:c.dom;return Xf(p)?[]:Ae(p.querySelectorAll(a),Rt.fromDom)},Sd=function(a,c){var p=c===void 0?document:c.dom;return Xf(p)?M.none():M.from(p.querySelector(a)).map(Rt.fromDom)},fi=function(a,c){return a.dom===c.dom},ml=function(a,c){var p=a.dom,x=c.dom;return p===x?!1:p.contains(x)},Bv=function(a,c){return Wd(a.dom,c.dom)},Qu=function(a,c){return Io().browser.isIE()?Bv(a,c):ml(a,c)},ws=function(a){return Rt.fromDom(a.dom.ownerDocument)},vf=function(a){return Gt(a)?a:ws(a)},Gn=function(a){return Rt.fromDom(vf(a).dom.documentElement)},hf=function(a){return Rt.fromDom(vf(a).dom.defaultView)},Cs=function(a){return M.from(a.dom.parentNode).map(Rt.fromDom)},y1=function(a){return Cs(a)},Yc=function(a){return M.from(a.dom.offsetParent).map(Rt.fromDom)},je=function(a){return M.from(a.dom.nextSibling).map(Rt.fromDom)},xe=function(a){return Ae(a.dom.childNodes,Rt.fromDom)},pe=function(a,c){var p=a.dom.childNodes;return M.from(p[c]).map(Rt.fromDom)},Re=function(a){return pe(a,0)},st=function(a,c){return{element:a,offset:c}},Pt=function(a,c){var p=xe(a);return p.length>0&&c<p.length?st(p[c],0):st(a,c)},mn=function(a){return Xt(a)&&y(a.dom.host)},ar=w(Element.prototype.attachShadow)&&w(Node.prototype.getRootNode),vo=N(ar),So=ar?function(a){return Rt.fromDom(a.dom.getRootNode())}:vf,yr=function(a){return mn(a)?a:Rt.fromDom(vf(a).dom.body)},uo=function(a){return na(a).isSome()},na=function(a){var c=So(a);return mn(c)?M.some(c):M.none()},Qo=function(a){return Rt.fromDom(a.dom.host)}
96,jo=function(a){if(vo()&&y(a.target)){var c=Rt.fromDom(a.target);if(Ze(c)&&Vi(c)&&a.composed&&a.composedPath){var p=a.composedPath();if(p)return It(p)}}return M.from(a.target)},Vi=function(a){return y(a.dom.shadowRoot)},Vo=function(a){var c=St(a)?a.dom.parentNode:a.dom;if(c==null||c.ownerDocument===null)return!1;var p=c.ownerDocument;return na(Rt.fromDom(c)).fold(function(){return p.body.contains(c)},R(Vo,Qo))},di=function(){return si(Rt.fromDom(document))},si=function(a){var c=a.dom.body;if(c==null)throw new Error("Body is not available yet");return Rt.fromDom(c)},$l=function(a,c,p){if(i(p)||v(p)||C(p))a.setAttribute(c,p+"");else throw console.error("Invalid call to Attribute.set. Key ",c,":: Value ",p,":: Element ",a),new Error("Attribute value was not simple")},ha=function(a,c,p){$l(a.dom,c,p)},qc=function(a,c){var p=a.dom;xt(c,function(x,I){$l(p,I,x)})},ps=function(a,c){var p=a.dom.getAttribute(c);return p===null?void 0:p},$s=function(a,c){return M.from(ps(a,c))},Eh=function(a,c){var p=a.dom;return p&&p.hasAttribute?p.hasAttribute(c):!1},zs=function(a,c){a.dom.removeAttribute(c)},Sh=function(a,c,p){if(!i(p))throw console.error("Invalid call to CSS.set. Property ",c,":: Value ",p,":: Element ",a),new Error("CSS value must be a string: "+p);sl(a)&&a.style.setProperty(c,p)},Zf=function(a,c){sl(a)&&a.style.removeProperty(c)},Jo=function(a,c,p){var x=a.dom;Sh(x,c,p)},Tl=function(a,c){var p=a.dom;xt(c,function(x,I){Sh(p,I,x)})},is=function(a,c){var p=a.dom;xt(c,function(x,I){x.fold(function(){Zf(p,I)},function(G){Sh(p,I,G)})})},ks=function(a,c){var p=a.dom,x=window.getComputedStyle(p),I=x.getPropertyValue(c);return I===""&&!Vo(a)?zl(p,c):I},zl=function(a,c){return sl(a)?a.style.getPropertyValue(c):""},ll=function(a,c){var p=a.dom,x=zl(p,c);return M.from(x).filter(function(I){return I.length>0})},Pv=function(a){var c={},p=a.dom;if(sl(p))for(var x=0;x<p.style.length;x++){var I=p.style.item(x);c[I]=p.style[I]}return c},pf=function(a,c,p){var x=Rt.fromTag(a);Jo(x,c,p);var I=ll(x,c);return I.isSome()},ai=function(a,c){var p=a.dom;Zf(p,c),Yn($s(a,"style").map(Fs),"")&&zs(a,"style")},Pi=function(a){return a.dom.offsetWidth},tl=function(a,c){var p=function(ge,we){if(!C(we)&&!we.match(/^[0-9]+$/))throw new Error(a+".set accepts only positive integer values. Value was "+we);var ke=ge.dom;sl(ke)&&(ke.style[a]=we+"px")},x=function(ge){var we=c(ge);if(we<=0||we===null){var ke=ks(ge,a);return parseFloat(ke)||0}return we},I=x,G=function(ge,we){return rt(we,function(ke,ze){var Ge=ks(ge,ze),ut=Ge===void 0?0:parseInt(Ge,10);return isNaN(ut)?ke:ke+ut},0)},se=function(ge,we,ke){var ze=G(ge,ke),Ge=we>ze?we-ze:0;return Ge};return{set:p,get:x,getOuter:I,aggregate:G,max:se}},Gd=tl("height",function(a){var c=a.dom;return Vo(a)?c.getBoundingClientRect().height:c.offsetHeight}),gl=function(a){return Gd.get(a)},mf=function(a){return Gd.getOuter(a)},v2=function(a,c){var p=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],x=Gd.max(a,c,p);Jo(a,"max-height",x+"px")},Fv=function(a,c){var p=function(x,I){return Fv(a+x,c+I)};return{left:a,top:c,translate:p}},Ui=Fv,Qf=function(a){var c=a.getBoundingClientRect();return Ui(c.left,c.top)},Jf=function(a,c){return a!==void 0?a:c!==void 0?c:0},yc=function(a){var c=a.dom.ownerDocument,p=c.body,x=c.defaultView,I=c.documentElement;if(p===a.dom)return Ui(p.offsetLeft,p.offsetTop);var G=Jf(x==null?void 0:x.pageYOffset,I.scrollTop),se=Jf(x==null?void 0:x.pageXOffset,I.scrollLeft),ge=Jf(I.clientTop,p.clientTop),we=Jf(I.clientLeft,p.clientLeft);return Ws(a).translate(se-we,G-ge)},Ws=function(a){var c=a.dom,p=c.ownerDocument,x=p.body;return x===c?Ui(x.offsetLeft,x.offsetTop):Vo(a)?Qf(c):Ui(0,0)},Kd=tl("width",function(a){return a.dom.offsetWidth}),ed=function(a,c){return Kd.set(a,c)},Ou=function(a){return Kd.get(a)},Mu=function(a){return Kd.getOuter(a)},Os=function(a,c){var p=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],x=Kd.max(a,c,p);Jo(a,"max-width",x+"px")},$v=function(a,c,p,x,I,G,se){return{target:a,x:c,y:p,stop:x,prevent:I,kill:G,raw:se}},gf=function(a){var c=Rt.fromDom(jo(a).getOr(a.target)),p=function(){return a.stopPropagation()},x=function(){return a.preventDefault()},I=F(x,p);return $v(c,a.clientX,a.clientY,p,x,I,a)},yl=function(a,c){return function(p){a(p)&&c(gf(p))}},Th=function(a,c,p,x,I){var G=yl(p,x);return a.dom.addEventListener(c,G,I),{unbind:Z(zv,a,c,G,I)}},$m=function(a,c,p,x){return Th(a,c,p,x,!1)},b1=function(a,c,p,x){return Th(a,c,p,x,!0)},zv=function(a,c,p,x){a.dom.removeEventListener(c,p,x)},Gs=function(a,c){var p=Cs(a);p.each(function(x){x.dom.insertBefore(c.dom,a.dom)})},Hv=function(a,c){var p=je(a);p.fold(function(){var x=Cs(a);x.each(function(I){Al(I,c)})},function(x){Gs(x,c)})},yf=function(a,c){var p=Re(a);p.fold(function(){Al(a,c)},function(x){a.dom.insertBefore(c.dom,x.dom)})},Al=function(a,c){a.dom.appendChild(c.dom)},Xc=function(a,c,p){pe(a,p).fold(function(){Al(a,c)},function(x){Gs(x,c)})},_1=function(a,c){Te(c,function(p){Gs(a,p)})},Td=function(a,c){Te(c,function(p){Al(a,p)})},xs=function(a){a.dom.textContent="",Te(xe(a),function(c){bc(c)})},bc=function(a){var c=a.dom;c.parentNode!==null&&c.parentNode.removeChild(c)},Yd=function(a){var c=xe(a);c.length>0&&_1(a,c),bc(a)},du=function(a){var c=a!==void 0?a.dom:document,p=c.body.scrollLeft||c.documentElement.scrollLeft,x=c.body.scrollTop||c.documentElement.scrollTop;return Ui(p,x)},Nu=function(a,c,p){var x=p!==void 0?p.dom:document,I=x.defaultView;I&&I.scrollTo(a,c)},w1=function(a){var c=a===void 0?window:a;
96return Io().browser.isFirefox()?M.none():M.from(c.visualViewport)},qd=function(a,c,p,x){return{x:a,y:c,width:p,height:x,right:a+p,bottom:c+x}},Xd=function(a){var c=a===void 0?window:a,p=c.document,x=du(Rt.fromDom(p));return w1(c).fold(function(){var I=c.document.documentElement,G=I.clientWidth,se=I.clientHeight;return qd(x.left,x.top,G,se)},function(I){return qd(Math.max(I.pageLeft,x.left),Math.max(I.pageTop,x.top),I.width,I.height)})},Vv=function(a,c){var p=a.view(c);return p.fold(N([]),function(x){var I=a.owner(x),G=Vv(a,I);return[x].concat(G)})},C1=function(a,c){var p=c.owner(a),x=Vv(c,p);return M.some(x)},Ko=function(a){var c,p=a.dom===document?M.none():M.from((c=a.dom.defaultView)===null||c===void 0?void 0:c.frameElement);return p.map(Rt.fromDom)},bf=function(a){return ws(a)},Ju=Object.freeze({__proto__:null,view:Ko,owner:bf}),Xl=function(a){var c=Rt.fromDom(document),p=du(c),x=C1(a,Ju);return x.fold(Z(yc,a),function(I){var G=Ws(a),se=$e(I,function(ge,we){var ke=Ws(we);return{left:ge.left+ke.left,top:ge.top+ke.top}},{left:0,top:0});return Ui(se.left+G.left+p.left,se.top+G.top+p.top)})},td=function(a,c,p){return{point:a,width:c,height:p}},Ks=function(a,c,p,x){return{x:a,y:c,width:p,height:x}},kl=function(a,c,p,x){return{x:a,y:c,width:p,height:x,right:a+p,bottom:c+x}},nl=function(a){var c=yc(a),p=Mu(a),x=mf(a);return kl(c.left,c.top,p,x)},Zd=function(a){var c=Xl(a),p=Mu(a),x=mf(a);return kl(c.left,c.top,p,x)},bl=function(){return Xd(window)},Jr=function(a){var c=function(Ge){return Jr(a)},p=function(Ge){return Jr(a)},x=function(Ge){return Jr(Ge(a))},I=function(Ge){return Jr(a)},G=function(Ge){Ge(a)},se=function(Ge){return Ge(a)},ge=function(Ge,ut){return ut(a)},we=function(Ge){return Ge(a)},ke=function(Ge){return Ge(a)},ze=function(){return M.some(a)};return{isValue:$,isError:Q,getOr:N(a),getOrThunk:N(a),getOrDie:N(a),or:c,orThunk:p,fold:ge,map:x,mapError:I,each:G,bind:se,exists:we,forall:ke,toOptional:ze}},rv=function(a){var c=function(ke){return ke()},p=function(){return Y(String(a))()},x=A,I=function(ke){return ke()},G=function(ke){return rv(a)},se=function(ke){return rv(ke(a))},ge=function(ke){return rv(a)},we=function(ke,ze){return ke(a)};return{isValue:Q,isError:$,getOr:A,getOrThunk:c,getOrDie:p,or:x,orThunk:I,fold:we,map:G,mapError:se,each:T,bind:ge,exists:Q,forall:$,toOptional:M.none}},Ah=function(a,c){return a.fold(function(){return rv(c)},Jr)},ya={value:Jr,error:rv,fromOption:Ah},qi;(function(a){a[a.Error=0]="Error",a[a.Value=1]="Value"})(qi||(qi={}));var Np=function(a,c,p){return a.stype===qi.Error?c(a.serror):p(a.svalue)},nd=function(a){var c=[],p=[];return Te(a,function(x){Np(x,function(I){return p.push(I)},function(I){return c.push(I)})}),{values:c,errors:p}},fs=function(a,c){return a.stype===qi.Error?{stype:qi.Error,serror:c(a.serror)}:a},x1=function(a,c){return a.stype===qi.Value?{stype:qi.Value,svalue:c(a.svalue)}:a},Du=function(a,c){return a.stype===qi.Value?c(a.svalue):a},x0=function(a,c){return a.stype===qi.Error?c(a.serror):a},pa=function(a){return{stype:qi.Value,svalue:a}},ec=function(a){return{stype:qi.Error,serror:a}},E0=function(a){return Np(a,ya.error,ya.value)},h2=function(a){return a.fold(ec,pa)},Xi={fromResult:h2,toResult:E0,svalue:pa,partition:nd,serror:ec,bind:Du,bindError:x0,map:x1,mapError:fs,fold:Np},ov=function(a,c,p,x){return{tag:"field",key:a,newKey:c,presence:p,prop:x}},Me=function(a,c){return{tag:"custom",newKey:a,instantiator:c}},Qe=function(a,c,p){switch(a.tag){case"field":return c(a.key,a.newKey,a.presence,a.prop);case"custom":return p(a.newKey,a.instantiator)}},ht=function(a,c){return c},jt=function(a,c){var p=l(a)&&l(c);return p?qn(a,c):c},wn=function(a){return function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];if(c.length===0)throw new Error("Can't merge zero objects");for(var x={},I=0;I<c.length;I++){var G=c[I];for(var se in G)zn(G,se)&&(x[se]=a(x[se],G[se]))}return x}},qn=wn(jt),Co=wn(ht),Yo=function(){return{tag:"required",process:{}}},Aa=function(a){return{tag:"defaultedThunk",process:a}},Sa=function(a){return Aa(N(a))},ts=function(){return{tag:"option",process:{}}},Iu=function(a){return{tag:"mergeWithThunk",process:a}},Ys=function(a){return Iu(N(a))},e5=function(a,c){return a.length>0?Xi.svalue(qn(c,Co.apply(void 0,a))):Xi.svalue(c)},B3=function(a){return F(Xi.serror,Fe)(a)},_f=function(a,c){var p=Xi.partition(a);return p.errors.length>0?B3(p.errors):e5(p.values,c)},tc=function(a){var c=Xi.partition(a);return c.errors.length>0?B3(c.errors):Xi.svalue(c.values)},ul={consolidateObj:_f,consolidateArr:tc},Hl=function(a){return l(a)&&Tt(a).length>100?" removed due to size":JSON.stringify(a,null,2)},Ru=function(a){var c=a.length>10?a.slice(0,10).concat([{path:[],getErrorInfo:N("... (only showing first ten failures)")}]):a;return Ae(c,function(p){return"Failed path: ("+p.path.join(" > ")+`) 97`+p.getErrorInfo()})},Dp=function(a,c){return Xi.serror([{path:a,getErrorInfo:c}])},Ip=function(a,c,p){return Dp(a,function(){return'Could not find valid *required* value for "'+c+'" in '+Hl(p)})},zm=function(a,c){return Dp(a,function(){return'Choice schema did not contain choice key: "'+c+'"'})},p2=function(a,c,p){return Dp(a,function(){return'The chosen schema: "'+p+'" did not exist in branches: '+Hl(c)})},P3=function(a,c){return Dp(a,function(){return"There are unsupported fields: ["+c.join(", ")+"] specified"})},wb=function(a,c){return Dp(a,N(c))},Qd=function(a){var c=function(x,I){return Xi.bindError(a(I),function(G){return wb(x,G)})},p=N("val");return{extract:c,toString:p}},S0=Qd(Xi.svalue),t5=function(a,c,p,x){return En(c,p).fold(function(){return Ip(a,p,c)},x)},Hm=function(a,c,p,x){var I=En(a,c).getOrThunk(function(){return p(a)});return x(I)},Cb=function(a,c,p){return p(En(a,c))},F3=function(a,c,p,x){var I=En(a,c).map(function(G){return G===!0?p(a):G});return x(I)},T0=function(a,c,p,x,I){var G=function(ge){return I.extract(c.concat([x]),ge)},se=function(ge){return ge.fold(function(){return Xi.svalue(M.none())},function(we){var ke=I.extract(c.concat([x]),we);return Xi.map(ke,M.some)})};switch(a.tag){case"required":return t5(c,p,x,G);case"defaultedThunk":return Hm(p,x,a.process,G);case"option":return Cb(p,x,se);case"defaultedOptionThunk":return F3(p,x,a.process,se);case"mergeWithThunk":return Hm(p,x,N({}),function(ge){var we=qn(a.process(p),ge);return G(we)})}},A0=function(a,c,p){for(var x={},I=[],G=0,se=p;G<se.length;G++){var ge=se[G];Qe(ge,function(we,ke,ze,Ge){var ut=T0(ze,a,c,we,Ge);Xi.fold(ut,function(yt){I.push.apply(I,yt)},function(yt){x[ke]=yt})},function(we,ke){x[we]=ke(c)})}return I.length>0?Xi.serror(I):Xi.svalue(x)},xb=function(a){var c=function(x,I){return a().extract(x,I)},p=function(){return a().toString()};return{extract:c,toString:p}},Rp=function(a){return Tt(Vt(a,y))},wf=function(a){var c=Eo(a),p=$e(a,function(I,G){return Qe(G,function(se){var ge;return qn(I,(ge={},ge[se]=!0,ge))},N(I))},{}),x=function(I,G){var se=v(G)?[]:Rp(G),ge=De(se,function(we){return!nn(p,we)});return ge.length===0?c.extract(I,G):P3(I,ge)};return{extract:x,toString:c.toString}},Eo=function(a){var c=function(x,I){return A0(x,I,a)},p=function(){var x=Ae(a,function(I){return Qe(I,function(G,se,ge,we){return G+" -> "+we.toString()},function(G,se){return"state("+G+")"})});return`obj{ 98`+x.join(` 99`)+"}"};return{extract:c,toString:p}},Lc=function(a){var c=function(x,I){var G=Ae(I,function(se,ge){return a.extract(x.concat(["["+ge+"]"]),se)});return ul.consolidateArr(G)},p=function(){return"array("+a.toString()+")"};return{extract:c,toString:p}},Lp=function(a){var c=function(x,I){for(var G=[],se=0,ge=a;se<ge.length;se++){var we=ge[se],ke=we.extract(x,I);if(ke.stype===qi.Value)return ke;G.push(ke)}return ul.consolidateArr(G)},p=function(){return"oneOf("+Ae(a,function(x){return x.toString()}).join(", ")+")"};return{extract:c,toString:p}},kh=function(a,c){var p=function(G,se){return Lc(Qd(a)).extract(G,se)},x=function(G,se){var ge=Tt(se),we=p(G,ge);return Xi.bind(we,function(ke){var ze=Ae(ke,function(Ge){return ov(Ge,Ge,Yo(),c
99)});return Eo(ze).extract(G,se)})},I=function(){return"setOf("+c.toString()+")"};return{extract:x,toString:I}},k0=function(a,c){var p=On(c),x=function(G,se){return p().extract(G,se)},I=function(){return p().toString()};return{extract:x,toString:I}},Cf=F(Lc,Eo),vi=N(S0),Bc=function(a,c){return Qd(function(p){var x=typeof p;return a(p)?Xi.svalue(p):Xi.serror("Expected type: "+c+" but got: "+x)})},Ad=Bc(C,"number"),ds=Bc(i,"string"),Zl=Bc(v,"boolean"),O0=Bc(w,"function"),E1=function(a){if(Object(a)!==a)return!0;switch({}.toString.call(a).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(a).every(function(c){return E1(a[c])});default:return!1}},Vm=Qd(function(a){return E1(a)?Xi.svalue(a):Xi.serror("Expected value to be acceptable for sending via postMessage")}),Bp=function(a,c,p,x){var I=En(p,x);return I.fold(function(){return p2(a,p,x)},function(G){return G.extract(a.concat(["branch: "+x]),c)})},Oh=function(a,c){var p=function(I,G){var se=En(G,a);return se.fold(function(){return zm(I,a)},function(ge){return Bp(I,G,c,ge)})},x=function(){return"chooseOn("+a+"). Possible values: "+Tt(c)};return{extract:p,toString:x}},$3=function(){return Lc(S0)},Mh=function(a){return Qd(function(c){return a(c).fold(Xi.serror,Xi.svalue)})},cl=function(a,c){return kh(function(p){return Xi.fromResult(a(p))},c)},Eb=function(a,c,p){var x=c.extract([a],p);return Xi.mapError(x,function(I){return{input:p,errors:I}})},Ms=function(a,c,p){return Xi.toResult(Eb(a,c,p))},Jd=function(a){return a.fold(function(c){throw new Error(av(c))},A)},hi=function(a,c,p){return Jd(Ms(a,c,p))},av=function(a){return`Errors: 100`+Ru(a.errors).join(` 101`)+` 102 103Input object: `+Hl(a.input)},rd=function(a,c){return Oh(a,at(c,Eo))},n5=function(a,c){return k0(a,c)},Ol=ov,Pc=Me,z3=function(a){return Mh(function(c){return ie(a,c)?ya.value(c):ya.error('Unsupported value: "'+c+'", choose one of "'+a.join(", ")+'".')})},rr=function(a){return Ol(a,a,Yo(),vi())},Fc=function(a,c){return Ol(a,a,Yo(),c)},Uv=function(a){return Fc(a,Ad)},ta=function(a){return Fc(a,ds)},xf=function(a,c){return Ol(a,a,Yo(),z3(c))},Pp=function(a){return Fc(a,Zl)},Lu=function(a){return Fc(a,O0)},jv=function(a,c){return Ol(a,a,ts(),Qd(function(p){return Xi.serror("The field: "+a+" is forbidden. "+c)}))},S1=function(a,c){return Ol(a,a,Yo(),Eo(c))},od=function(a,c){return Ol(a,a,Yo(),Cf(c))},Bu=function(a,c){return Ol(a,a,Yo(),Lc(c))},pi=function(a){return Ol(a,a,ts(),vi())},e1=function(a,c){return Ol(a,a,ts(),c)},Vl=function(a){return e1(a,Ad)},ji=function(a){return e1(a,ds)},Wv=function(a){return e1(a,O0)},Zc=function(a,c){return e1(a,Lc(c))},Qc=function(a,c){return e1(a,Eo(c))},Fp=function(a,c){return e1(a,wf(c))},fn=function(a,c){return Ol(a,a,Sa(c),vi())},_c=function(a,c,p){return Ol(a,a,Sa(c),p)},$c=function(a,c){return _c(a,c,Ad)},M0=function(a,c){return _c(a,c,ds)},nc=function(a,c,p){return _c(a,c,z3(p))},Wi=function(a,c){return _c(a,c,Zl)},Gi=function(a,c){return _c(a,c,O0)},zc=function(a,c){return _c(a,c,Vm)},kd=function(a,c,p){return _c(a,c,Lc(p))},Sb=function(a,c,p){return _c(a,c,Eo(p))},Oo=function(a){var c=a,p=function(){return c},x=function(I){c=I};return{get:p,set:x}},Um=function(a){if(!u(a))throw new Error("cases must be an array");if(a.length===0)throw new Error("there must be at least one case");var c=[],p={};return Te(a,function(x,I){var G=Tt(x);if(G.length!==1)throw new Error("one and only one name per case");var se=G[0],ge=x[se];if(p[se]!==void 0)throw new Error("duplicate key detected:"+se);if(se==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(ge))throw new Error("case arguments must be an array");c.push(se),p[se]=function(){for(var we=[],ke=0;ke<arguments.length;ke++)we[ke]=arguments[ke];var ze=we.length;if(ze!==ge.length)throw new Error("Wrong number of arguments to case "+se+". Expected "+ge.length+" ("+ge+"), got "+ze);var Ge=function(ut){var yt=Tt(ut);if(c.length!==yt.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+` 104Actual: `+yt.join(","));var Ot=Ye(c,function(Kt){return ie(yt,Kt)});if(!Ot)throw new Error("Not all branches were specified when using match. Specified: "+yt.join(", ")+` 105Required: `+c.join(", "));return ut[se].apply(null,we)};return{fold:function(){for(var ut=[],yt=0;yt<arguments.length;yt++)ut[yt]=arguments[yt];if(ut.length!==a.length)throw new Error("Wrong number of arguments to fold. Expected "+a.length+", got "+ut.length);var Ot=ut[I];return Ot.apply(null,we)}
105,match:Ge,log:function(ut){console.log(ut,{constructors:c,constructor:se,params:we})}}}}),p},Ef={generate:Um};Ef.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var Tb=function(a){var c=[],p=[];return Te(a,function(x){x.fold(function(I){c.push(I)},function(I){p.push(I)})}),{errors:c,values:p}},Gv=function(a,c){var p={};return xt(a,function(x,I){ie(c,I)||(p[I]=x)}),p},Kv=function(a,c){var p;return p={},p[a]=c,p},N0=function(a){var c={};return Te(a,function(p){c[p.key]=p.value}),c},D0=function(a,c){return Gv(a,c)},T1=function(a,c){return Kv(a,c)},Yv=function(a){return N0(a)},H3=function(a,c){return a.length===0?ya.value(c):ya.value(qn(c,Co.apply(void 0,a)))},iv=function(a){return ya.error(Fe(a))},$p=function(a,c){var p=Tb(a);return p.errors.length>0?iv(p.errors):H3(p.values,c)},zp=function(a){return w(a)?a:Q},jm=function(a,c,p){for(var x=a.dom,I=zp(p);x.parentNode;){x=x.parentNode;var G=Rt.fromDom(x),se=c(G);if(se.isSome())return se;if(I(G))break}return M.none()},I0=function(a,c,p){var x=c(a),I=zp(p);return x.orThunk(function(){return I(a)?M.none():jm(a,c,I)})},V3=function(a,c){return fi(a.element,c.event.target)},sv={can:$,abort:Q,run:T},Hp=function(a){if(!nn(a,"can")&&!nn(a,"abort")&&!nn(a,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(a,null,2)+" does not have can, abort, or run!");return V(V({},sv),a)},Hc=function(a,c){return function(){for(var p=[],x=0;x<arguments.length;x++)p[x]=arguments[x];return rt(a,function(I,G){return I&&c(G).apply(void 0,p)},!0)}},Ab=function(a,c){return function(){for(var p=[],x=0;x<arguments.length;x++)p[x]=arguments[x];return rt(a,function(I,G){return I||c(G).apply(void 0,p)},!1)}},r5=function(a){return w(a)?{can:$,abort:Q,run:a}:a},o5=function(a){var c=Hc(a,function(I){return I.can}),p=Ab(a,function(I){return I.abort}),x=function(){for(var I=[],G=0;G<arguments.length;G++)I[G]=arguments[G];Te(a,function(se){se.run.apply(void 0,I)})};return{can:c,abort:p,run:x}},Ml=N,A1=Ml("touchstart"),Od=Ml("touchmove"),qv=Ml("touchend"),U3=Ml("touchcancel"),t1=Ml("mousedown"),R0=Ml("mousemove"),lv=Ml("mouseout"),L0=Ml("mouseup"),n1=Ml("mouseover"),Vc=Ml("focusin"),qs=Ml("focusout"),m2=Ml("keydown"),kb=Ml("keyup"),r1=Ml("input"),B0=Ml("change"),P0=Ml("click"),j3=Ml("transitioncancel"),Xv=Ml("transitionend"),Nh=Ml("transitionstart"),Ob=Ml("selectstart"),Ns=function(a){return N("alloy."+a)},Vp={tap:Ns("tap")},Dh=Ns("focus"),F0=Ns("blur.post"),g2=Ns("paste.post"),Md=Ns("receive"),Sf=Ns("execute"),uv=Ns("focus.item"),Ih=Vp.tap,y2=Ns("longpress"),Zv=Ns("sandbox.close"),b2=Ns("typeahead.cancel"),Rh=Ns("system.init"),_2=Ns("system.touchmove"),Mb=Ns("system.touchend"),w2=Ns("system.scroll"),ad=Ns("system.resize"),Jc=Ns("system.attached"),$0=Ns("system.detached"),o1=Ns("system.dismissRequested"),vu=Ns("system.repositionRequested"),Lh=Ns("focusmanager.shifted"),Nd=Ns("slotcontainer.visibility"),W3=Ns("change.tab"),hu=Ns("dismiss.tab"),Nb=Ns("highlight"),C2=Ns("dehighlight"),li=function(a,c){a1(a,a.element,c,{})},zo=function(a,c,p){a1(a,a.element,c,p)},Tf=function(a){li(a,Sf())},x2=function(a,c,p){a1(a,c,p,{})},a1=function(a,c,p,x){var I=V({target:c},x);a.getSystem().triggerEvent(p,c,I)},Db=function(a,c,p,x){a.getSystem().triggerEvent(p,c,x.event)},Fi=function(a){return Yv(a)},E2=function(a,c){return{key:a,value:Hp({abort:c})}},S2=function(a,c){return{key:a,value:Hp({can:c})}},Wm=function(a){return{key:a,value:Hp({run:function(c,p){p.event.prevent()}})}},sr=function(a,c){return{key:a,value:Hp({run:c})}},T2=function(a,c,p){return{key:a,value:Hp({run:function(x,I){c.apply(void 0,[x,I].concat(p))}})}},Up=function(a){return function(c){return sr(a,c)}},Bh=function(a){return function(c){return{key:a,value:Hp({run:function(p,x){V3(p,x)&&c(p,x)}})}}},Gm=function(a,c){return sr(a,function(p,x){p.getSystem().getByUid(c).each(function(I){Db(I,I.element,a,x)})})},z0=function(a,c,p){var x=c.partUids[p];return Gm(a,x)},ms=function(a,c){return sr(a,function(p,x){var I=x.event,G=p.getSystem().getByDom(I.target).getOrThunk(function(){var se=I0(I.target,function(ge){return p.getSystem().getByDom(ge).toOptional()},Q);return se.getOr(p)});c(p,G,x)})},H0=function(a){return sr(a,function(c,p){p.cut()})},Ph=function(a){return sr(a,function(c,p){p.stop()})},Hs=function(a,c){return Bh(a)(c)},qo=Bh(Jc()),Uc=Bh($0()),A2=Bh(Rh()),ef=Up(Sf()),k2=function(a,c){var p=c||document,x=p.createElement("div");return x.innerHTML=a,xe(Rt.fromDom(x))},k1=function(a){return a.dom.innerHTML},cv=function(a,c){var p=ws(a),x=p.dom,I=Rt.fromDom(x.createDocumentFragment()),G=k2(c,x);Td(I,G),xs(a),Al(a,I)},fv=function(a){var c=Rt.fromTag("div"),p=Rt.fromDom(a.dom.cloneNode(!0));return Al(c,p),k1(c)},id=function(a,c){return Rt.fromDom(a.dom.cloneNode(c))},dv=function(a){return id(a,!1)}
105,Ul=function(a){if(mn(a))return"#shadow-root";var c=dv(a);return fv(c)},ei=function(a){return Ul(a)},O1=function(a,c,p){return fi(c,a.element)&&!fi(c,p)},Fh=Fi([S2(Dh(),function(a,c){var p=c.event,x=p.originator,I=p.target;return O1(a,x,I)?(console.warn(Dh()+` did not get interpreted by the desired target. 106Originator: `+ei(x)+` 107Target: `+ei(I)+` 108Check the `+Dh()+" event handlers"),!1):!0})]),M1=Object.freeze({__proto__:null,events:Fh}),V0=0,so=function(a){var c=new Date,p=c.getTime(),x=Math.floor(Math.random()*1e9);return V0++,a+"_"+x+V0+String(p)},pu=N("alloy-id-"),gs=N("data-alloy-id"),vv=pu(),Km=gs(),G3=function(a,c){var p=so(vv+a);return U0(c,p),p},U0=function(a,c){Object.defineProperty(a.dom,Km,{value:c,writable:!0})},b=function(a){var c=Ze(a)?a.dom[Km]:null;return M.from(c)},k=function(a){return so(a)},q=A,W=function(a){var c=function(I){return"The component must be in a context to execute: "+I+(a?` 109`+ei(a().element)+" is not in context.":"")},p=function(I){return function(){throw new Error(c(I))}},x=function(I){return function(){console.warn(c(I))}};return{debugInfo:N("fake"),triggerEvent:x("triggerEvent"),triggerFocus:x("triggerFocus"),triggerEscape:x("triggerEscape"),broadcast:x("broadcast"),broadcastOn:x("broadcastOn"),broadcastEvent:x("broadcastEvent"),build:p("build"),addToWorld:p("addToWorld"),removeFromWorld:p("removeFromWorld"),addToGui:p("addToGui"),removeFromGui:p("removeFromGui"),getByUid:p("getByUid"),getByDom:p("getByDom"),isConnected:Q}},ae=W(),Ee=function(a,c,p){var x=p.toString(),I=x.indexOf(")")+1,G=x.indexOf("("),se=x.substring(G+1,I-1).split(/,\s*/);return a.toFunctionAnnotation=function(){return{name:c,parameters:Be(se.slice(0,1).concat(se.slice(3)))}},a},Be=function(a){return Ae(a,function(c){return fo(c,"/*")?c.substring(0,c.length-2):c})},Ve=function(a,c){var p=a.toString(),x=p.indexOf(")")+1,I=p.indexOf("("),G=p.substring(I+1,x-1).split(/,\s*/);return a.toFunctionAnnotation=function(){return{name:c,parameters:Be(G)}},a},Je=function(a,c){var p=c.toString(),x=p.indexOf(")")+1,I=p.indexOf("("),G=p.substring(I+1,x-1).split(/,\s*/);return a.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Be(G.slice(1))}},a},dt=so("alloy-premade"),Yt=function(a){return T1(dt,a)},rn=function(a){return En(a,dt)},Sn=function(a){return Je(function(c){for(var p=[],x=1;x<arguments.length;x++)p[x-1]=arguments[x];return a.apply(void 0,fe([c.getApis(),c],p,!1))},a)},Cn={init:function(){return tr({readState:N("No State required")})}},tr=function(a){return a},Or=function(a,c){var p=Ae(c,function(I){return Qc(I.name(),[rr("config"),fn("state",Cn)])}),x=Ms("component.behaviours",Eo(p),a.behaviours).fold(function(I){throw new Error(av(I)+` 110Complete spec: 111`+JSON.stringify(a,null,2))},A);return{list:c,data:at(x,function(I){var G=I.map(function(se){return{config:se.config,state:se.state.init(se.config)}});return N(G)})}},Qr=function(a){return a.list},yo=function(a){return a.data},Mo=function(a,c){var p={};return xt(a,function(x,I){xt(x,function(G,se){var ge=En(p,se).getOr([]);p[se]=ge.concat([c(I,G)])})}),p},no=function(a){return{classes:h(a.classes)?[]:a.classes,attributes:h(a.attributes)?{}:a.attributes,styles:h(a.styles)?{}:a.styles}},Uo=function(a,c){return V(V({},a),{attributes:V(V({},a.attributes),c.attributes),styles:V(V({},a.styles),c.styles),classes:a.classes.concat(c.classes)})},ca=function(a,c,p,x){var I=V({},c);Te(p,function(ze){I[ze.name()]=ze.exhibit(a,x)});var G=Mo(I,function(ze,Ge){return{name:ze,modification:Ge}}),se=function(ze){return $e(ze,function(Ge,ut){return V(V({},ut.modification),Ge)},{})},ge=$e(G.classes,function(ze,Ge){return Ge.modification.concat(ze)},[]),we=se(G.attributes),ke=se(G.styles);return no({classes:ge,attributes:we,styles:ke})},sa=function(a,c,p,x){try{var I=tn(p,function(G,se){var ge=G[c],we=se[c],ke=x.indexOf(ge),ze=x.indexOf(we);if(ke===-1)throw new Error("The ordering for "+a+" does not have an entry for "+ge+`. 112Order specified: `+JSON.stringify(x,null,2));if(ze===-1)throw new Error("The ordering for "+a+" does not have an entry for "+we+`. 113Order specified: `+JSON.stringify(x,null,2));return ke<ze?-1:ze<ke?1:0});return ya.value(I)}catch(G){return ya.error([G])}},yi=function(a,c){return{handler:a,purpose:c}},Vs=function(a,c){return{cHandler:a,purpose:c}},mu=function(a,c){return Vs(Z.apply(void 0,[a.handler].concat(c)),a.purpose)},fl=function(a){return a.cHandler},tf=function(a,c){return{name:a,handler:c}},Af=function(a,c){var p={};return Te(a,function(x){p[x.name()]=x.handlers(c)}),p},Xs=function(a,c,p){var x=V(V({},p),Af(c,a));return Mo(x,tf)},Ql=function(a,c,p,x){var I=Xs(a,p,x);return Nl(I,c)},Da=function(a){var c=r5(a);return function(p,x){for(var I=[],G=2;G<arguments.length;G++)I[G-2]=arguments[G];
113var se=[p,x].concat(I);c.abort.apply(void 0,se)?x.stop():c.can.apply(void 0,se)&&c.run.apply(void 0,se)}},jl=function(a,c){return ya.error(["The event ("+a+`) has more than one behaviour that listens to it. 114When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). 115The behaviours that can trigger it are: `+JSON.stringify(Ae(c,function(p){return p.name}),null,2)])},Es=function(a,c,p){var x=c[p];return x?sa("Event: "+p,"name",a,x).map(function(I){var G=Ae(I,function(se){return se.handler});return o5(G)}):jl(p,a)},Nl=function(a,c){var p=_n(a,function(x,I){var G=x.length===1?ya.value(x[0].handler):Es(x,c,I);return G.map(function(se){var ge=Da(se),we=x.length>1?De(c[I],function(ke){return he(x,function(ze){return ze.name===ke})}).join(" > "):x[0].name;return T1(I,yi(ge,we))})});return $p(p,{})},_l,kf="alloy.base.behaviour",Of=Eo([Ol("dom","dom",Yo(),Eo([rr("tag"),fn("styles",{}),fn("classes",[]),fn("attributes",{}),pi("value"),pi("innerHtml")])),rr("components"),rr("uid"),fn("events",{}),fn("apis",{}),Ol("eventOrder","eventOrder",Ys((_l={},_l[Sf()]=["disabling",kf,"toggling","typeaheadevents"],_l[Dh()]=[kf,"focusing","keying"],_l[Rh()]=[kf,"disabling","toggling","representing"],_l[r1()]=[kf,"representing","streaming","invalidating"],_l[$0()]=[kf,"representing","item-events","tooltipping"],_l[t1()]=["focusing",kf,"item-type-events"],_l[A1()]=["focusing",kf,"item-type-events"],_l[n1()]=["item-type-events","tooltipping"],_l[Md()]=["receiving","reflecting","tooltipping"],_l)),vi()),pi("domModification")]),Pu=function(a){return Ms("custom.definition",Of,a)},sd=function(a){return V(V({},a.dom),{uid:a.uid,domChildren:Ae(a.components,function(c){return c.element})})},Jl=function(a){return a.domModification.fold(function(){return no({})},no)},jp=function(a){return a.events},Mf=function(a,c){var p=ps(a,c);return p===void 0||p===""?[]:p.split(" ")},j0=function(a,c,p){var x=Mf(a,c),I=x.concat([p]);return ha(a,c,I.join(" ")),!0},hv=function(a,c,p){var x=De(Mf(a,c),function(I){return I!==p});return x.length>0?ha(a,c,x.join(" ")):zs(a,c),!1},gu=function(a){return a.dom.classList!==void 0},pv=function(a){return Mf(a,"class")},W0=function(a,c){return j0(a,"class",c)},a5=function(a,c){return hv(a,"class",c)},yu=function(a,c){gu(a)?a.dom.classList.add(c):W0(a,c)},Ym=function(a){var c=gu(a)?a.dom.classList:pv(a);c.length===0&&zs(a,"class")},eu=function(a,c){if(gu(a)){var p=a.dom.classList;p.remove(c)}else a5(a,c);Ym(a)},Nf=function(a,c){return gu(a)&&a.dom.classList.contains(c)},qm=function(a,c){Te(c,function(p){yu(a,p)})},i1=function(a,c){Te(c,function(p){eu(a,p)})},K3=function(a,c){return Ye(c,function(p){return Nf(a,p)})},$h=function(a){return a.dom.value},O2=function(a,c){if(c===void 0)throw new Error("Value.set was undefined");a.dom.value=c},M2=function(a){var c=Rt.fromTag(a.tag);qc(c,a.attributes),qm(c,a.classes),Tl(c,a.styles),a.innerHtml.each(function(x){return cv(c,x)});var p=a.domChildren;if(Td(c,p),a.value.each(function(x){O2(c,x)}),!a.uid)debugger;return U0(c,a.uid),c},GC=function(a){var c=En(a,"behaviours").getOr({});return We(Tt(c),function(p){var x=c[p];return y(x)?[x.me]:[]})},KC=function(a,c){return Or(a,c)},A7=function(a){var c=GC(a);return KC(a,c)},k7=function(a,c,p){var x=sd(a),I=Jl(a),G={"alloy.base.modification":I},se=c.length>0?ca(p,G,c,x):I;return Uo(x,se)},O7=function(a,c,p){var x={"alloy.base.behaviour":jp(a)};return Ql(p,a.eventOrder,c,x).getOrDie()},YC=function(a){var c=function(){return hn},p=Oo(ae),x=Jd(Pu(a)),I=A7(a),G=Qr(I),se=yo(I),ge=k7(x,G,se),we=M2(ge),ke=O7(x,G,se),ze=Oo(x.components),Ge=function(jn){p.set(jn)},ut=function(){p.set(W(c))},yt=function(){var jn=xe(we),Un=We(jn,function(vn){return p.get().getByDom(vn).fold(function(){return[]},bt)});ze.set(Un)},Ot=function(jn){var Un=se,vn=w(Un[jn.name()])?Un[jn.name()]:function(){throw new Error("Could not find "+jn.name()+" in "+JSON.stringify(a,null,2))};return vn()},Kt=function(jn){return w(se[jn.name()])},cn=function(){return x.apis},Ut=function(jn){return se[jn]().map(function(Un){return Un.state.readState()}).getOr("not enabled")},hn={uid:a.uid,getSystem:p.get,config:Ot,hasConfigured:Kt,spec:a,readState:Ut,getApis:cn,connect:Ge,disconnect:ut,element:we,syncComponents:yt,components:ze.get,events:ke};return hn},Y3=function(a){var c=En(a,"components").getOr([]);return Ae(c,Us)},q3=function(a){var c=q(a),p=c.events,x=K(c,["events"]),I=Y3(x),G=V(V({},x),{events:V(V({},M1),p),components:I});return ya.value(YC(G))},wc=function(a){var c=Rt.fromText(a);return X3({element:c})},X3=function(a){var c=hi("external.component",wf([rr("element"),pi("uid")]),a),p=Oo(W()),x=function(ge){p.set(ge)},I=function(){p.set(W(function(){return se}))},G=c.uid.getOrThunk(function(){return k("external")});U0(c.element,G);
115var se={uid:G,getSystem:p.get,config:M.none,hasConfigured:Q,connect:x,disconnect:I,getApis:function(){return{}},element:c.element,spec:a,readState:N("No state"),syncComponents:T,components:N([]),events:{}};return Yt(se)},i5=k,N1=function(a){return zn(a,"uid")},Us=function(a){return rn(a).getOrThunk(function(){var c=N1(a)?a:V({uid:i5("")},a);return q3(c).getOrDie()})},s1=Yt;function Wp(a,c,p,x,I){return a(p,x)?M.some(p):w(I)&&I(p)?M.none():c(p,x,I)}var s5=function(a,c,p){for(var x=a.dom,I=w(p)?p:Q;x.parentNode;){x=x.parentNode;var G=Rt.fromDom(x);if(c(G))return M.some(G);if(I(G))break}return M.none()},Z3=function(a,c,p){var x=function(I,G){return G(I)};return Wp(x,s5,a,c,p)},qC=function(a,c){var p=function(I){return c(Rt.fromDom(I))},x=lt(a.dom.childNodes,p);return x.map(Rt.fromDom)},Ta=function(a,c){var p=function(x){for(var I=0;I<x.childNodes.length;I++){var G=Rt.fromDom(x.childNodes[I]);if(c(G))return M.some(G);var se=p(x.childNodes[I]);if(se.isSome())return se}return M.none()};return p(a.dom)},N2=function(a,c,p){return Z3(a,c,p).isSome()},Q3=function(a,c,p){return s5(a,function(x){return Ea(x,c)},p)},l5=function(a,c){return qC(a,function(p){return Ea(p,c)})},bu=function(a,c){return Sd(c,a)},D1=function(a,c,p){var x=function(I,G){return Ea(I,G)};return Wp(x,Q3,a,c,p)},XC=function(a){var c=Z3(a,function(p){if(!Ze(p))return!1;var x=ps(p,"id");return x!==void 0&&x.indexOf("aria-owns")>-1});return c.bind(function(p){var x=ps(p,"id"),I=So(p);return bu(I,'[aria-owns="'+x+'"]')})},Xm=function(){var a=so("aria-owns"),c=function(x){ha(x,"aria-owns",a)},p=function(x){zs(x,"aria-owns")};return{id:a,link:c,unlink:p}},Ds=function(a,c){return XC(c).exists(function(p){return Zm(a,p)})},Zm=function(a,c){return N2(c,function(p){return fi(p,a.element)},Q)||Ds(a,c)},J3="unknown",D2;(function(a){a[a.STOP=0]="STOP",a[a.NORMAL=1]="NORMAL",a[a.LOGGING=2]="LOGGING"})(D2||(D2={}));var u5=Oo({}),ZC=function(a,c){var p=[],x=new Date().getTime();return{logEventCut:function(I,G,se){p.push({outcome:"cut",target:G,purpose:se})},logEventStopped:function(I,G,se){p.push({outcome:"stopped",target:G,purpose:se})},logNoParent:function(I,G,se){p.push({outcome:"no-parent",target:G,purpose:se})},logEventNoHandlers:function(I,G){p.push({outcome:"no-handlers-left",target:G})},logEventResponse:function(I,G,se){p.push({outcome:"response",purpose:se,target:G})},write:function(){var I=new Date().getTime();ie(["mousemove","mouseover","mouseout",Rh()],a)||console.log(a,{event:a,time:I-x,target:c.dom,sequence:Ae(p,function(G){return ie(["cut","stopped","response"],G.outcome)?"{"+G.purpose+"} "+G.outcome+" at ("+ei(G.target)+")":G.outcome})})}}},Ib=function(a,c,p){var x=En(u5.get(),a).orThunk(function(){var se=Tt(u5.get());return vt(se,function(ge){return a.indexOf(ge)>-1?M.some(u5.get()[ge]):M.none()})}).getOr(D2.NORMAL);switch(x){case D2.NORMAL:return p(M7());case D2.LOGGING:{var I=ZC(a,c),G=p(I);return I.write(),G}case D2.STOP:return!0}},QC=["alloy/data/Fields","alloy/debugging/Debugging"],G0=function(){var a=new Error;if(a.stack!==void 0){var c=a.stack.split(` 116`);return lt(c,function(p){return p.indexOf("alloy")>0&&!he(QC,function(x){return p.indexOf(x)>-1})}).getOr(J3)}else return J3},Df={logEventCut:T,logEventStopped:T,logNoParent:T,logEventNoHandlers:T,logEventResponse:T,write:T},c5=function(a,c,p){return Ib(a,c,p)},M7=N(Df),Qv=N([rr("menu"),rr("selectedMenu")]),K0=N([rr("item"),rr("selectedItem")]);N(Eo(K0().concat(Qv())));var e6=N(Eo(K0())),N7=S1("initSize",[rr("numColumns"),rr("numRows")]),D7=function(){return Fc("markers",e6())},Qm=function(){return S1("markers",[rr("backgroundMenu")].concat(Qv()).concat(K0()))},Jm=function(a){return S1("markers",Ae(a,rr))},t6=function(a,c,p){return G0(),Ol(c,c,p,Mh(function(x){return ya.value(function(){for(var I=[],G=0;G<arguments.length;G++)I[G]=arguments[G];return x.apply(void 0,I)})}))},xi=function(a){return t6("onHandler",a,Sa(T))},_u=function(a){return t6("onKeyboardHandler",a,Sa(M.none))},If=function(a){return t6("onHandler",a,Yo())},ld=function(a){return t6("onKeyboardHandler",a,Yo())},vs=function(a,c){return Pc(a,N(c))},Gp=function(a){return Pc(a,A)},n6=N(N7),Fu=function(a,c,p,x,I,G,se,ge){return ge===void 0&&(ge=!1),{x:a,y:c,bubble:p,direction:x,placement:I,restriction:G,label:se+"-"+I,al
116waysFit:ge}},zh=Ef.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),I7=function(a,c,p,x,I,G,se,ge,we){return a.fold(c,p,x,I,G,se,ge,we)},R7=function(a,c,p,x){return a.fold(c,c,x,x,c,x,p,p)},r6=function(a,c,p,x){return a.fold(c,x,c,x,p,p,c,x)},o6=zh.southeast,f5=zh.southwest,d5=zh.northeast,eg=zh.northwest,Rb=zh.south,v5=zh.north,h5=zh.east,I2=zh.west,Cc=function(a,c,p,x){var I=a+c;return I>x?p:I<p?x:I},Dd=function(a,c,p){return Math.min(Math.max(a,c),p)},Lb=function(a,c){switch(c){case 1:return a.x;case 0:return a.x+a.width;case 2:return a.y;case 3:return a.y+a.height}},wu=function(a,c){return Ct(["left","right","top","bottom"],function(p){return En(c,p).map(function(x){return Lb(a,x)})})},a6=function(a,c,p){var x=function(we,ke){return c[we].map(function(ze){var Ge=we==="top"||we==="bottom",ut=Ge?p.top:p.left,yt=we==="left"||we==="top"?Math.max:Math.min,Ot=yt(ze,ke)+ut;return Ge?Dd(Ot,a.y,a.bottom):Dd(Ot,a.x,a.right)}).getOr(ke)},I=x("left",a.x),G=x("top",a.y),se=x("right",a.right),ge=x("bottom",a.bottom);return kl(I,G,se-I,ge-G)},Y0="layout",p5=function(a){return a.x},m5=function(a,c){return a.x+a.width/2-c.width/2},JC=function(a,c){return a.x+a.width-c.width},g5=function(a,c){return a.y-c.height},Bb=function(a){return a.y+a.height},i6=function(a,c){return a.y+a.height/2-c.height/2},ex=function(a){return a.x+a.width},L7=function(a,c){return a.x-c.width},jc=function(a,c,p){return Fu(p5(a),Bb(a),p.southeast(),o6(),"southeast",wu(a,{left:1,top:3}),Y0)},$u=function(a,c,p){return Fu(JC(a,c),Bb(a),p.southwest(),f5(),"southwest",wu(a,{right:0,top:3}),Y0)},Rf=function(a,c,p){return Fu(p5(a),g5(a,c),p.northeast(),d5(),"northeast",wu(a,{left:1,bottom:2}),Y0)},Lf=function(a,c,p){return Fu(JC(a,c),g5(a,c),p.northwest(),eg(),"northwest",wu(a,{right:0,bottom:2}),Y0)},ud=function(a,c,p){return Fu(m5(a,c),g5(a,c),p.north(),v5(),"north",wu(a,{bottom:2}),Y0)},tu=function(a,c,p){return Fu(m5(a,c),Bb(a),p.south(),Rb(),"south",wu(a,{top:3}),Y0)},s6=function(a,c,p){return Fu(ex(a),i6(a,c),p.east(),h5(),"east",wu(a,{left:0}),Y0)},l6=function(a,c,p){return Fu(L7(a,c),i6(a,c),p.west(),I2(),"west",wu(a,{right:1}),Y0)},y5=function(){return[jc,$u,Rf,Lf,tu,ud,s6,l6]},tg=function(){return[$u,jc,Lf,Rf,tu,ud,s6,l6]},Kp=function(){return[Rf,Lf,jc,$u,ud,tu]},u6=function(){return[Lf,Rf,$u,jc,ud,tu]},c6=function(){return[jc,$u,Rf,Lf,tu,ud]},f6=function(){return[$u,jc,Lf,Rf,tu,ud]},R2=function(a,c){return c.universal?a:De(a,function(p){return ie(c.channels,p)})},L2=function(a){return Fi([sr(Md(),function(c,p){var x=a.channels,I=Tt(x),G=p,se=R2(I,G);Te(se,function(ge){var we=x[ge],ke=we.schema,ze=hi("channel["+ge+`] data 117Receiver: `+ei(c.element),ke,G.data);we.onReceive(c,ze)})})])},tx=Object.freeze({__proto__:null,events:L2}),Hh=[Fc("channels",cl(ya.value,wf([If("onReceive"),fn("schema",vi())])))],ng=function(a,c,p){return ef(function(x){p(x,a,c)})},Zs=function(a,c,p){return A2(function(x,I){p(x,a,c)})},B7=function(a,c,p,x,I,G){var se=wf(a),ge=Qc(c,[Fp("config",a)]);return nx(se,ge,c,p,x,I,G)},P7=function(a,c,p,x,I,G){var se=a,ge=Qc(c,[e1("config",a)]);return nx(se,ge,c,p,x,I,G)},d6=function(a,c,p){var x=function(I){for(var G=[],se=1;se<arguments.length;se++)G[se-1]=arguments[se];var ge=[I].concat(G);return I.config({name:N(a)}).fold(function(){throw new Error("We could not find any behaviour configuration for: "+a+". Using API: "+p)},function(we){var ke=Array.prototype.slice.call(ge,1);return c.apply(void 0,[I,we.config,we.state].concat(ke))})};return Ee(x,p,c)},F7=function(a){return{key:a,value:void 0}},nx=function(a,c,p,x,I,G,se){var ge=function(Ge){return nn(Ge,p)?Ge[p]():M.none()},we=at(I,function(Ge,ut){return d6(p,Ge,ut)}),ke=at(G,function(Ge,ut){return Ve(Ge,ut)}),ze=V(V(V({},ke),we),{revoke:Z(F7,p),config:function(Ge){var ut=hi(p+"-config",a,Ge);return{key:p,value:{config:ut,me:ze,configAsRaw:On(function(){return hi(p+"-config",a,Ge)}),initialConfig:Ge,state:se}}},schema:N(c),exhibit:function(Ge,ut){return xa(ge(Ge),En(x,"exhibit"),function(yt,Ot){return Ot(ut,yt.config,yt.state)}).getOrThunk(function(){return no({})})},name:N(p),handlers:function(Ge){return ge(Ge).map(function(ut){var yt=En(x,"events").getOr(function(){return{}});return yt(ut.config,ut.state)}).getOr({})}});return ze},Rr=function(a){return Yv(a)},$7=wf([rr("fields"),rr("name"),fn("active",{}),fn("apis",{}),fn("state",Cn),fn("extra",{})]),Cu=function(a){var c=hi("Creating behaviour: "+a.name,$7,a);return B7(c.fields,c.name,c.active,c.apis,c.extra,c.state)},b5=wf([rr("branchKey"),rr("branches"),rr("name"),fn("active",{}),fn("apis",{}),fn("state",Cn),fn("extra",{})]),rg=function(a){var c=hi("Creating behaviour: "+a.name,b5,a);return P7(rd(c.branchKey,c.branches),c.name,c.active,c.apis,c.extra,c.state)},rx=N(void 0),nf=Cu({fields:Hh,name:"receiving",active:tx}),Pb=function(a,c){return no({classes:[],styles:c.useFixed()?{}:{position:"relative"}}
117)},v6=Object.freeze({__proto__:null,exhibit:Pb}),Fb=function(){return Rt.fromDom(document)},Jv=function(a){return a.dom.focus()},$b=function(a){return a.dom.blur()},zb=function(a){var c=So(a).dom;return a.dom===c.activeElement},Bf=function(a){return a===void 0&&(a=Fb()),M.from(a.dom.activeElement).map(Rt.fromDom)},eh=function(a){return Bf(So(a)).filter(function(c){return a.dom.contains(c.dom)})},ox=function(a,c){var p=So(c),x=Bf(p).bind(function(G){var se=function(ge){return fi(G,ge)};return se(c)?M.some(c):Ta(c,se)}),I=a(c);return x.each(function(G){Bf(p).filter(function(se){return fi(se,G)}).fold(function(){Jv(G)},T)}),I},rf=function(a,c,p,x,I){var G=function(se){return se+"px"};return{position:a,left:c.map(G),top:p.map(G),right:x.map(G),bottom:I.map(G)}},Vh=function(a){return V(V({},a),{position:M.some(a.position)})},Yp=function(a,c){is(a,Vh(c))},Hb=Ef.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Kn=function(a,c,p,x,I,G){var se=c.rect,ge=se.x-p,we=se.y-x,ke=se.width,ze=se.height,Ge=I-(ge+ke),ut=G-(we+ze),yt=M.some(ge),Ot=M.some(we),Kt=M.some(Ge),cn=M.some(ut),Ut=M.none();return I7(c.direction,function(){return rf(a,yt,Ot,Ut,Ut)},function(){return rf(a,Ut,Ot,Kt,Ut)},function(){return rf(a,yt,Ut,Ut,cn)},function(){return rf(a,Ut,Ut,Kt,cn)},function(){return rf(a,yt,Ot,Ut,Ut)},function(){return rf(a,yt,Ut,Ut,cn)},function(){return rf(a,yt,Ot,Ut,Ut)},function(){return rf(a,Ut,Ot,Kt,Ut)})},q0=function(a,c){return a.fold(function(){var p=c.rect;return rf("absolute",M.some(p.x),M.some(p.y),M.none(),M.none())},function(p,x,I,G){return Kn("absolute",c,p,x,I,G)},function(p,x,I,G){return Kn("fixed",c,p,x,I,G)})},B2=function(a,c){var p=Z(Xl,c),x=a.fold(p,p,function(){var se=du();return Xl(c).translate(-se.left,-se.top)}),I=Mu(c),G=mf(c);return kl(x.left,x.top,I,G)},z7=function(a,c){return c.fold(function(){return a.fold(bl,bl,kl)},function(p){return a.fold(p,p,function(){var x=p(),I=h6(a,x.x,x.y);return kl(I.left,I.top,x.width,x.height)})})},h6=function(a,c,p){var x=Ui(c,p),I=function(){var G=du();return x.translate(-G.left,-G.top)};return a.fold(N(x),N(x),I)},mv=function(a,c,p,x){return a.fold(c,p,x)};Hb.none;var p6=Hb.relative,_5=Hb.fixed,w5=function(a,c){return{anchorBox:a,origin:c}},m6=function(a,c){return w5(a,c)},C5="data-alloy-placement",x5=function(a,c){ha(a,C5,c)},E5=function(a){return $s(a,C5)},S5=function(a){return zs(a,C5)},og=Ef.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),ax=function(a,c){var p=c.x,x=c.y,I=c.right,G=c.bottom,se=a.x,ge=a.y,we=a.right,ke=a.bottom,ze=a.width,Ge=a.height,ut=se>=p&&se<=I,yt=ge>=x&&ge<=G,Ot=ut&&yt,Kt=we<=I&&we>=p,cn=ke<=G&&ke>=x,Ut=Kt&&cn,hn=Math.min(ze,se>=p?I-se:we-p),jn=Math.min(Ge,ge>=x?G-ge:ke-x);return{originInBounds:Ot,sizeInBounds:Ut,visibleW:hn,visibleH:jn}},H7=function(a,c){var p=c.x,x=c.y,I=c.right,G=c.bottom,se=a.x,ge=a.y,we=a.width,ke=a.height,ze=Math.max(p,I-we),Ge=Math.max(x,G-ke),ut=Dd(se,p,ze),yt=Dd(ge,x,Ge),Ot=Math.min(ut+we,I)-ut,Kt=Math.min(yt+ke,G)-yt;return kl(ut,yt,Ot,Kt)},V7=function(a,c,p){var x=N(c.bottom-p.y),I=N(p.bottom-c.y),G=R7(a,I,I,x),se=N(c.right-p.x),ge=N(p.right-c.x),we=r6(a,ge,ge,se);return{maxWidth:we,maxHeight:G}},P2=function(a,c,p,x){var I=a.bubble,G=I.offset,se=a6(x,a.restriction,G),ge=a.x+G.left,we=a.y+G.top,ke=kl(ge,we,c,p),ze=ax(ke,se),Ge=ze.originInBounds,ut=ze.sizeInBounds,yt=ze.visibleW,Ot=ze.visibleH,Kt=Ge&&ut,cn=Kt?ke:H7(ke,se),Ut=cn.width>0&&cn.height>0,hn=V7(a.direction,cn,x),jn=hn.maxWidth,Un=hn.maxHeight,vn={rect:cn,maxHeight:Un,maxWidth:jn,direction:a.direction,placement:a.placement,classes:{on:I.classesOn,off:I.classesOff},layout:a.label,testY:we};return Kt||a.alwaysFit?og.fit(vn):og.nofit(vn,yt,Ot,Ut)},F2=function(a,c,p,x,I,G){var se=x.width,ge=x.height,we=function(ze,Ge,ut,yt,Ot){var Kt=ze(p,x,I,a,G),cn=P2(Kt,se,ge,G);
117return cn.fold(N(cn),function(Ut,hn,jn,Un){var vn=Ot===Un?jn>yt||hn>ut:!Ot&&Un;return vn?cn:og.nofit(Ge,ut,yt,Ot)})},ke=rt(c,function(ze,Ge){var ut=Z(we,Ge);return ze.fold(N(ze),ut)},og.nofit({rect:p,maxHeight:x.height,maxWidth:x.width,direction:o6(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:p.y},-1,-1,!1));return ke.fold(A,A)},g6=function(a){var c=Oo(M.none()),p=function(){return c.get().each(a)},x=function(){p(),c.set(M.none())},I=function(){return c.get().isSome()},G=function(){return c.get()},se=function(ge){p(),c.set(M.some(ge))};return{clear:x,isSet:I,get:G,set:se}},T5=function(){return g6(function(a){return a.destroy()})},$2=function(){return g6(function(a){return a.unbind()})},A5=function(){var a=T5(),c=function(p){return a.get().each(p)};return V(V({},a),{run:c})},wl=function(){var a=g6(T),c=function(p){return a.get().each(p)};return V(V({},a),{on:c})},Vb=$,Dl=function(a,c,p){return $m(a,c,Vb,p)},y6=function(a,c,p){return b1(a,c,Vb,p)},ag=gf,k5=["top","bottom","right","left"],Ub="data-alloy-transition-timer",O5=function(a,c){return K3(a,c.classes)},ix=function(a,c,p){return p.exists(function(x){var I=a.mode;return I==="all"?!0:x[I]!==c[I]})},U7=function(a,c){var p=function(x){return parseFloat(x).toFixed(3)};return Mt(c,function(x,I){var G=a[I].map(p),se=x.map(p);return!qr(G,se)}).isSome()},sx=function(a){var c=function(G){var se=ks(a,G),ge=i(se)?se.split(/\s*,\s*/):[];return De(ge,us)},p=function(G){if(i(G)&&/^[\d.]+/.test(G)){var se=parseFloat(G);return fo(G,"ms")?se:se*1e3}else return 0},x=c("transition-delay"),I=c("transition-duration");return rt(I,function(G,se,ge){var we=p(x[ge])+p(se);return Math.max(G,we)},0)},j7=function(a,c){var p=$2(),x=$2(),I,G=function(ze){var Ge,ut=(Ge=ze.raw.pseudoElement)!==null&&Ge!==void 0?Ge:"";return fi(ze.target,a)&&cs(ut)&&ie(k5,ze.raw.propertyName)},se=function(ze){if(g(ze)||G(ze)){p.clear(),x.clear();var Ge=ze==null?void 0:ze.raw.type;(g(Ge)||Ge===Xv())&&(clearTimeout(I),zs(a,Ub),i1(a,c.classes))}},ge=function(){p.set(Dl(a,Xv(),se)),x.set(Dl(a,j3(),se))};if("ontransitionstart"in a.dom)var we=Dl(a,Nh(),function(ze){G(ze)&&(we.unbind(),ge())});else ge();var ke=sx(a);requestAnimationFrame(function(){I=setTimeout(se,ke+17),ha(a,Ub,I)})},b6=function(a,c){qm(a,c.classes),$s(a,Ub).each(function(p){clearTimeout(parseInt(p,10)),zs(a,Ub)}),j7(a,c)},jb=function(a,c,p,x,I,G){var se=ix(x,I,G);if(se||O5(a,x)){Jo(a,"position",p.position);var ge=B2(c,a),we=q0(c,V(V({},I),{rect:ge})),ke=Ct(k5,function(ze){return we[ze]});U7(p,ke)&&(is(a,ke),se&&b6(a,x),Pi(a))}else i1(a,x.classes)},W7=function(a){return{width:Mu(a),height:mf(a)}},lx=function(a,c,p,x){ai(c,"max-height"),ai(c,"max-width");var I=W7(c);return F2(c,x.preference,a,I,p,x.bounds)},M5=function(a,c){var p=c.classes;i1(a,p.off),qm(a,p.on)},G7=function(a,c,p){var x=p.maxHeightFunction;x(a,c.maxHeight)},K7=function(a,c,p){var x=p.maxWidthFunction;x(a,c.maxWidth)},_6=function(a,c,p){var x=q0(p.origin,c);p.transition.each(function(I){jb(a,p.origin,x,I,c,p.lastPlacement)}),Yp(a,x)},N5=function(a,c){x5(a,c.placement)},xc=function(a,c){v2(a,Math.floor(c))},z2=N(function(a,c){xc(a,c),Tl(a,{"overflow-x":"hidden","overflow-y":"auto"})}),H2=N(function(a,c){xc(a,c)}),ux=function(a,c,p){return a[c]===void 0?p:a[c]},Y7=function(a,c,p,x,I,G,se,ge){var we=ux(se,"maxHeightFunction",z2()),ke=ux(se,"maxWidthFunction",T),ze=a.anchorBox,Ge=a.origin,ut={bounds:z7(Ge,G),origin:Ge,preference:x,maxHeightFunction:we,maxWidthFunction:ke,lastPlacement:I,transition:ge};return Wb(ze,c,p,ut)},Wb=function(a,c,p,x){var I=lx(a,c,p,x);return _6(c,I,x),N5(c,I),M5(c,I),G7(c,I,x),K7(c,I,x),{layout:I.layout,placement:I.placement}},Gb=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],ig=function(a,c,p,x){x===void 0&&(x=1);var I=a*x,G=c*x,se=function(we){return En(p,we).getOr([])},ge=function(we,ke,ze){var Ge=mt(Gb,ze);return{offset:Ui(we,ke),classesOn:We(ze,se),classesOff:We(Ge,se)}};return{southeast:function(){return ge(-a,c,["top","alignLeft"])},southwest:function(){return ge(a,c,["top","alignRight"])},south:function(){return ge(-a/2,c,["top","alignCentre"])},northeast:function(){return ge(-a,-c,["bottom","alignLeft"])},northwest:function(){return ge(a,-c,["bottom","alignRight"])},north:function(){return ge(-a/2,-c,["bottom","alignCentre"])},east:function(){return ge(a,-c/2,["valignCentre","left"])},west:function(){return ge(-a,-c/2,["valignCentre","right"])},insetNortheast:function(){return ge(I,G,["top","alignLeft","inset"])},insetNorthwest:function(){return ge(-I,G,["top","alignRight","inset"])},insetNorth:function(){return ge(-I/2,G,["top","alignCentre","inset"])},insetSoutheast:function(){return ge(I,-G,["bottom","alignLeft","inset"])},insetSouthwest:function(){return ge(-I,-G,["bottom","alignRight","inset"])},insetSouth:function(){return ge(-I/2,-G,["bottom","alignCentre","inset"])},insetEast:function(){return ge(-I,-G/2,["valignCentre","right","inset"])},insetWest:function(){return ge(I,-G/2,["valignCentre","left","inset"])}}},w6=function(){return ig(0,0,{})},Kb=A,D5=function(a,c){return function(p){return q7(p)==="rtl"?c:a}},q7=function(a){return ks(a,"direction")==="rtl"?"rtl":"ltr"},Uh;(function(a){a.TopToBottom="toptobottom",a.BottomToTop="bottomtotop"})(Uh||(Uh={}));var C6="data-alloy-vertical-dir",X7=function(a){return N2(a,function(c){return Ze(c)&&ps(c,"data-alloy-vertical-dir")===Uh.BottomToTop})},qp=function(){return Qc("layouts",[rr("onLtr"),rr("onRtl"),pi("onBottomLtr"),pi("onBottomRtl")])},Xp=function(a,c,p,x,I,G,se){var ge=se.map(X7).getOr(!1),we=c.layouts.map(function(yt){return yt.onLtr(a)}),ke=c.layouts.map(function(yt){return yt.onRtl(a)}),ze=ge?c.layouts.bind(function(yt){return yt.onBottomLtr.map(function(Ot){return Ot(a)})}).or(we).getOr(I):we.getOr(p),Ge=ge?c.layouts.bind(function(yt){return yt.onBottomRtl.map(function(Ot){return Ot(a)})}).or(ke).getOr(G):ke.getOr(x),ut=D5(ze,Ge);return ut(a)}
117,Z7=function(a,c,p){var x=c.hotspot,I=B2(p,x.element),G=Xp(a.element,c,c6(),f6(),Kp(),u6(),M.some(c.hotspot.element));return M.some(Kb({anchorBox:I,bubble:c.bubble.getOr(w6()),overrides:c.overrides,layouts:G,placer:M.none()}))},x6=[rr("hotspot"),pi("bubble"),fn("overrides",{}),qp(),vs("placement",Z7)],E6=function(a,c,p){var x=h6(p,c.x,c.y),I=kl(x.left,x.top,c.width,c.height),G=Xp(a.element,c,y5(),tg(),y5(),tg(),M.none());return M.some(Kb({anchorBox:I,bubble:c.bubble,overrides:c.overrides,layouts:G,placer:M.none()}))},S6=[rr("x"),rr("y"),fn("height",0),fn("width",0),fn("bubble",w6()),fn("overrides",{}),qp(),vs("placement",E6)],rc=Ef.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),cx=function(a){return a.fold(A,function(c,p,x){return c.translate(-p,-x)})},I5=function(a){return a.fold(A,A)},fx=function(a){return rt(a,function(c,p){return c.translate(p.left,p.top)},Ui(0,0))},dx=function(a){var c=Ae(a,cx);return fx(c)},th=function(a){var c=Ae(a,I5);return fx(c)},X0=rc.screen,vx=rc.absolute,hx=function(a,c,p){var x=hf(p.root).dom,I=function(G){var se=ws(G),ge=ws(a.element);return fi(se,ge)};return M.from(x.frameElement).map(Rt.fromDom).filter(I).map(yc)},R5=function(a,c,p){var x=ws(a.element),I=du(x),G=hx(a,c,p).getOr(I);return vx(G,I.left,I.top)},T6=function(a,c,p,x){var I=X0(Ui(a,c));return M.some(td(I,p,x))},px=function(a,c,p,x,I){return a.map(function(G){var se=[c,G.point],ge=mv(x,function(){return th(se)},function(){return th(se)},function(){return dx(se)}),we=Ks(ge.left,ge.top,G.width,G.height),ke=p.showAbove?Kp():c6(),ze=p.showAbove?u6():f6(),Ge=Xp(I,p,ke,ze,ke,ze,M.none());return Kb({anchorBox:we,bubble:p.bubble.getOr(w6()),overrides:p.overrides,layouts:Ge,placer:M.none()})})},V2=function(a,c,p){var x=R5(a,p,c);return c.node.filter(Vo).bind(function(I){var G=I.dom.getBoundingClientRect(),se=T6(G.left,G.top,G.width,G.height),ge=c.node.getOr(a.element);return px(se,x,c,p,ge)})},Q7=[rr("node"),rr("root"),pi("bubble"),qp(),fn("overrides",{}),fn("showAbove",!1),vs("placement",V2)],Yb="\uFEFF",J7="\xA0",U2=function(a,c,p,x){return{start:a,soffset:c,finish:p,foffset:x}},sg={create:U2},L5=Ef.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),mx=function(a,c,p,x){return a.fold(c,p,x)},ek=function(a){return a.fold(A,A,A)},gx=L5.before,yx=L5.on,B5=L5.after,tk={before:gx,on:yx,after:B5,cata:mx,getStart:ek},A6=Ef.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),nk=function(a){return A6.exact(a.start,a.soffset,a.finish,a.foffset)},qb=function(a){return a.match({domRange:function(c){return Rt.fromDom(c.startContainer)},relative:function(c,p){return tk.getStart(c)},exact:function(c,p,x,I){return c}})},rk=A6.domRange,ok=A6.relative,ak=A6.exact,k6=function(a){var c=qb(a);return hf(c)},ik=sg.create,j2={domRange:rk,relative:ok,exact:ak,exactFromRange:nk,getWin:k6,range:ik},bx=function(a,c){c.fold(function(p){a.setStartBefore(p.dom)},function(p,x){a.setStart(p.dom,x)},function(p){a.setStartAfter(p.dom)})},sk=function(a,c){c.fold(function(p){a.setEndBefore(p.dom)},function(p,x){a.setEnd(p.dom,x)},function(p){a.setEndAfter(p.dom)})},P5=function(a,c,p){var x=a.document.createRange();return bx(x,c),sk(x,p),x},_x=function(a,c,p,x,I){var G=a.document.createRange();return G.setStart(c.dom,p),G.setEnd(x.dom,I),G},F5=function(a){return{left:a.left,top:a.top,right:a.right,bottom:a.bottom,width:a.width,height:a.height}},wx=function(a){var c=a.getClientRects(),p=c.length>0?c[0]:a.getBoundingClientRect();return p.width>0||p.height>0?M.some(p).map(F5):M.none()},Cx=function(a){var c=a.getBoundingClientRect();return c.width>0||c.height>0?M.some(c).map(F5):M.none()},W2=Ef.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),$5=function(a,c,p){return c(Rt.fromDom(p.startContainer),p.startOffset,Rt.fromDom(p.endContainer),p.endOffset)},z5=function(a,c){return c.match({domRange:function(p){return{ltr:N(p),rtl:M.none}},relative:function(p,x){return{ltr:On(function(){return P5(a,p,x)}),rtl:On(function(){return M.some(P5(a,x,p))})}},exact:function(p,x,I,G){return{ltr:On(function(){return _x(a,p,x,I,G)}),rtl:On(function(){return M.some(_x(a,I,G,p,x))})}}})},lk=function(a,c){var p=c.ltr();if(p.collapsed){var x=c.rtl().filter(function(I){return I.collapsed===!1});return x.map(function(I){return W2.rtl(Rt.fromDom(I.endContainer),I.endOffset,Rt.fromDom(I.startContainer),I.startOffset)}).getOrThunk(function(){return $5(a,W2.ltr,p)})}else return $5(a,W2.ltr,p)},uk=function(a,c){var p=z5(a,c);return lk(a,p)},H5=function(a,c){var p=uk(a,c);return p.match({ltr:function(x,I,G,se){var ge=a.document.createRange();return ge.setStart(x.dom,I),ge.setEnd(G.dom,se),ge},rtl:function(x,I,G,se){var ge=a.document.createRange();return ge.setStart(G.dom,se),ge.setEnd(x.dom,I),ge}})};W2.ltr,W2.rtl;var ck=function(a,c){var p=function(G){if(!a(G))throw new Error("Can only get "+c+" value of a "+c+" node");return x(G).getOr("")},x=function(G){return a(G)?M.from(G.dom.nodeValue):M.none()},I=function(G,se){if(!a(G))throw new Error("Can only set raw "+c+" value of a "+c+" node");G.dom.nodeValue=se};return{get:p,getOption:x,set:I}},xx=ck(St,"text"),Zp=function(a){return xx.get(a)},G2=function(a){return xx.getOption(a)},Ex=function(a){return Bt(a)==="img"?1:G2(a).fold(function(){return xe(a).length},function(c){return c.length})},fk=function(a){return G2(a).filter(function(c){return c.trim().length!==0||c.indexOf(J7)>-1}).isSome()},Sx=["img","br"],dk=function(a){var c=fk(a);return c||ie(Sx,Bt(a))},V5=function(a){return K2(a,dk)},K2=function(a,c){var p=function(x){for(var I=xe(x),G=I.length-1;G>=0;G--){var se=I[G];if(c(se))return M.some(se);var ge=p(se);if(ge.isSome())return ge}return M.none()};return p(a)},of=function(a,c){return ku(c,a)},U5=function(a,c,p,x){var I=ws(a),G=I.dom.createRange();return G.setStart(a.dom,c),G.setEnd(p.dom,x),G},Y2=function(a,c,p,x){var I=U5(a,c,p,x),G=fi(a,p)&&c===x;return I.collapsed&&!G},lg=function(a){return M.from(a.getSelection())}
117,O6=function(a){if(a.rangeCount>0){var c=a.getRangeAt(0),p=a.getRangeAt(a.rangeCount-1);return M.some(sg.create(Rt.fromDom(c.startContainer),c.startOffset,Rt.fromDom(p.endContainer),p.endOffset))}else return M.none()},vk=function(a){if(a.anchorNode===null||a.focusNode===null)return O6(a);var c=Rt.fromDom(a.anchorNode),p=Rt.fromDom(a.focusNode);return Y2(c,a.anchorOffset,p,a.focusOffset)?M.some(sg.create(c,a.anchorOffset,p,a.focusOffset)):O6(a)},Tx=function(a){return lg(a).filter(function(c){return c.rangeCount>0}).bind(vk)},j5=function(a,c){var p=H5(a,c);return wx(p)},cd=function(a,c){var p=H5(a,c);return Cx(p)},Xb=function(a,c){return{element:a,offset:c}},hk=function(a,c){var p=xe(a);if(p.length===0)return Xb(a,c);if(c<p.length)return Xb(p[c],0);var x=p[p.length-1],I=St(x)?Zp(x).length:xe(x).length;return Xb(x,I)},ug=function(a,c){return St(a)?Xb(a,c):hk(a,c)},Qp=function(a,c){var p=c.getSelection.getOrThunk(function(){return function(){return Tx(a)}});return p().map(function(x){var I=ug(x.start,x.soffset),G=ug(x.finish,x.foffset);return j2.range(I.element,I.offset,G.element,G.offset)})},q2=function(a,c,p){var x=hf(c.root).dom,I=R5(a,p,c),G=Qp(x,c).bind(function(we){var ke=cd(x,j2.exactFromRange(we)).orThunk(function(){var ze=Rt.fromText(Yb);Gs(we.start,ze);var Ge=j5(x,j2.exact(ze,0,ze,1));return bc(ze),Ge});return ke.bind(function(ze){return T6(ze.left,ze.top,ze.width,ze.height)})}),se=Qp(x,c).bind(function(we){return Ze(we.start)?M.some(we.start):y1(we.start)}),ge=se.getOr(a.element);return px(G,I,c,p,ge)},Jp=[pi("getSelection"),rr("root"),pi("bubble"),qp(),fn("overrides",{}),fn("showAbove",!1),vs("placement",q2)],nh="link-layout",rh=function(a){return a.x+a.width},M6=function(a,c){return a.x-c.width},N6=function(a,c){return a.y-c.height+a.height},W5=function(a){return a.y},X2=function(a,c,p){return Fu(rh(a),W5(a),p.southeast(),o6(),"southeast",wu(a,{left:0,top:2}),nh)},Z2=function(a,c,p){return Fu(M6(a,c),W5(a),p.southwest(),f5(),"southwest",wu(a,{right:1,top:2}),nh)},Q2=function(a,c,p){return Fu(rh(a),N6(a,c),p.northeast(),d5(),"northeast",wu(a,{left:0,bottom:3}),nh)},Wc=function(a,c,p){return Fu(M6(a,c),N6(a,c),p.northwest(),eg(),"northwest",wu(a,{right:1,bottom:3}),nh)},J2=function(){return[X2,Z2,Q2,Wc]},ey=function(){return[Z2,X2,Wc,Q2]},D6=function(a,c,p){var x=B2(p,c.item.element),I=Xp(a.element,c,J2(),ey(),J2(),ey(),M.none());return M.some(Kb({anchorBox:x,bubble:w6(),overrides:c.overrides,layouts:I,placer:M.none()}))},pk=[rr("item"),qp(),fn("overrides",{}),vs("placement",D6)],G5=rd("type",{selection:Jp,node:Q7,hotspot:x6,submenu:pk,makeshift:S6}),I6=[Bu("classes",ds),nc("mode","all",["all","layout","placement"])],Ec=[fn("useFixed",Q),pi("getBounds")],mk=[Fc("anchor",G5),Qc("transition",I6)],jh=function(){var a=document.documentElement;return _5(0,0,a.clientWidth,a.clientHeight)},R6=function(a){var c=yc(a.element),p=a.element.dom.getBoundingClientRect();return p6(c.left,c.top,p.width,p.height)},K5=function(a,c,p,x,I,G,se){var ge=m6(p.anchorBox,c);return Y7(ge,I.element,p.bubble,p.layouts,G,x,p.overrides,se)},ty=function(a,c,p,x,I){Y5(a,c,p,x,I,M.none())},Y5=function(a,c,p,x,I,G){var se=G.map(nl);return Zb(a,c,p,x,I,se)},Zb=function(a,c,p,x,I,G){var se=hi("placement.info",Eo(mk),I),ge=se.anchor,we=x.element,ke=p.get(x.uid);ox(function(){Jo(we,"position","fixed");var ze=ll(we,"visibility");Jo(we,"visibility","hidden");var Ge=c.useFixed()?jh():R6(a),ut=ge.placement,yt=G.map(N).or(c.getBounds);ut(a,ge,Ge).each(function(Ot){var Kt=Ot.placer.getOr(K5),cn=Kt(a,Ge,Ot,yt,x,ke,se.transition);p.set(x.uid,cn)}),ze.fold(function(){ai(we,"visibility")},function(Ot){Jo(we,"visibility",Ot)}),ll(we,"left").isNone()&&ll(we,"top").isNone()&&ll(we,"right").isNone()&&ll(we,"bottom").isNone()&&Yn(ll(we,"position"),"fixed")&&ai(we,"position")},we)},gk=function(a,c,p){return c.useFixed()?"fixed":"absolute"},Ax=function(a,c,p,x){var I=x.element;Te(["position","left","right","top","bottom"],function(G){return ai(I,G)}),S5(I),p.clear(x.uid)},kx=Object.freeze({__proto__:null,position:ty,positionWithin:Y5,positionWithinBounds:Zb,getMode:gk,reset:Ax}),yk=function(){var a={},c=function(I,G){a[I]=G},p=function(I){return En(a,I)},x=function(I){y(I)?delete a[I]:a={}};return tr({readState:function(){return a},clear:x,set:c,get:p})},ny=Object.freeze({__proto__:null,init:yk}),Cl=Cu({fields:Ec,name:"positioning",active:v6,apis:kx,state:ny}),L6=function(a){li(a,$0());var c=a.components();Te(c,L6)},B6=function(a){var c=a.components();Te(c,B6),li(a,Jc())},q5=function(a,c){Al(a.element,c.element)},Ox=function(a){Te(a.components(),function(c){return bc(c.element)}),xs(a.element),a.syncComponents()},X5=function(a,c){var p=a.components();Ox(a);var x=mt(p,c);Te(x,function(I){L6(I),a.getSystem().removeFromWorld(I)}),Te(c,function(I){I.getSystem().isConnected()?q5(a,I):(a.getSystem().addToWorld(I),q5(a,I),Vo(a.element)&&B6(I)),a.syncComponents()})},cg=function(a,c){P6(a,c,Al)},P6=function(a,c,p){a.getSystem().addToWorld(c),p(a.element,c.element),Vo(a.element)&&B6(c),a.syncComponents()},fd=function(a){L6(a),bc(a.element),a.getSystem().removeFromWorld(a)},oh=function(a){var c=Cs(a.element).bind(function(p){return a.getSystem().getByDom(p).toOptional()});fd(a),c.each(function(p){p.syncComponents()})},F6=function(a){var c=a.components();Te(c,fd),xs(a.element),a.syncComponents()},Z0=function(a,c){ah(a,c,Al)},gv=function(a,c){ah(a,c,Hv)},ah=function(a,c,p){p(a,c.element);var x=xe(c.element);Te(x,function(I){c.getByDom(I).each(B6)})},af=function(a){var c=xe(a.element);Te(c,function(p){a.getByDom(p).each(L6)}),bc(a.element)},I1=function(a,c,p,x){p.get().each(function(se){F6(a)});var I=c.getAttachPoint(a);cg(I,a);var G=a.getSystem().build(x);return cg(a,G),p.set(G),G},ry=function(a,c,p,x){var I=I1(a,c,p,x);return c.onOpen(a,I),I},Wh=function(a,c,p,x){return p.get().map(function(){return I1(a,c,p,x)})},fg=function(a,c,p,x,I){Rx(a,c),ry(a,c,p,x),I(),Lx(a,c)},Mx=function(a,c,p){p.get().each(function(x){F6(a),oh(a),c.onClose(a,x),p.clear()})},Nx=function(a,c,p){return p.isOpen()},bk=function(a,c,p,x){return Nx(a,c,p)&&p.get().exists(function(I){return c.isPartOf(a,I,x)})},_k=function(a,c,p){return p.get()},Dx=function(a,c,p,x){ll(a.element,c).fold(function(){zs(a.element,p)},function(I){ha(a.element,p,I)}),Jo(a.element,c,x)},Ix=function(a,c,p){$s(a.element,p).fold(function(){return ai(a.element,c)},function(x){return Jo(a.element,c,x)})},Rx=function(a,c,p){var x=c.getAttachPoint(a);Jo(a.element,"position",Cl.getMode(x)),Dx(a,"visibility",c.cloakVisibilityAttr,"hidden")},wk=function(a){return he(["top","left","right","bottom"],function(c){return ll(a,c).isSome()})},Lx=function(a,c,p){wk(a.element)||ai(a.element,"position"),Ix(a,"visibility",c.cloakVisibilityAttr)},Ck=Object.freeze({__proto__:null,cloak:Rx,decloak:Lx,open:ry,openWhileCloaked:fg,close:Mx,isOpen:Nx,isPartOf:bk,getState:_k,setContent:Wh}
117),Bx=function(a,c){return Fi([sr(Zv(),function(p,x){Mx(p,a,c)})])},Px=Object.freeze({__proto__:null,events:Bx}),Z5=[xi("onOpen"),xi("onClose"),rr("isPartOf"),rr("getAttachPoint"),fn("cloakVisibilityAttr","data-precloak-visibility")],Fx=function(){var a=wl(),c=N("not-implemented");return tr({readState:c,isOpen:a.isSet,clear:a.clear,set:a.set,get:a.get})},xk=Object.freeze({__proto__:null,init:Fx}),ti=Cu({fields:Z5,name:"sandboxing",active:Px,apis:Ck,state:xk}),dg=N("dismiss.popups"),oy=N("reposition.popups"),Q5=N("mouse.released"),Ek=wf([fn("isExtraPart",Q),Qc("fireEventInstead",[fn("event",o1())])]),dd=function(a){var c,p=hi("Dismissal",Ek,a);return c={},c[dg()]={schema:wf([rr("target")]),onReceive:function(x,I){if(ti.isOpen(x)){var G=ti.isPartOf(x,I.target)||p.isExtraPart(x,I.target);G||p.fireEventInstead.fold(function(){return ti.close(x)},function(se){return li(x,se.event)})}}},c},Sk=wf([Qc("fireEventInstead",[fn("event",vu())]),Lu("doReposition")]),vg=function(a){var c,p=hi("Reposition",Sk,a);return c={},c[oy()]={onReceive:function(x){ti.isOpen(x)&&p.fireEventInstead.fold(function(){return p.doReposition(x)},function(I){return li(x,I.event)})}},c},em=function(a,c,p){c.store.manager.onLoad(a,c,p)},$6=function(a,c,p){c.store.manager.onUnload(a,c,p)},z6=function(a,c,p,x){c.store.manager.setValue(a,c,p,x)},Tk=function(a,c,p){return c.store.manager.getValue(a,c,p)},$x=function(a,c,p){return p},H6=Object.freeze({__proto__:null,onLoad:em,onUnload:$6,setValue:z6,getValue:Tk,getState:$x}),J5=function(a,c){var p=a.resetOnDom?[qo(function(x,I){em(x,a,c)}),Uc(function(x,I){$6(x,a,c)})]:[Zs(a,c,em)];return Fi(p)},ay=Object.freeze({__proto__:null,events:J5}),V6=function(){var a=Oo(null),c=function(){return{mode:"memory",value:a.get()}},p=function(){return a.get()===null},x=function(){a.set(null)};return tr({set:a.set,get:a.get,isNotSet:p,clear:x,readState:c})},Ak=function(){var a=T;return tr({readState:a})},Gh=function(){var a=Oo({}),c=Oo({}),p=function(){return{mode:"dataset",dataByValue:a.get(),dataByText:c.get()}},x=function(){a.set({}),c.set({})},I=function(se){return En(a.get(),se).orThunk(function(){return En(c.get(),se)})},G=function(se){var ge=a.get(),we=c.get(),ke={},ze={};Te(se,function(Ge){ke[Ge.value]=Ge,En(Ge,"meta").each(function(ut){En(ut,"text").each(function(yt){ze[yt]=Ge})})}),a.set(V(V({},ge),ke)),c.set(V(V({},we),ze))};return tr({readState:p,lookup:I,update:G,clear:x})},ew=function(a){return a.store.manager.state(a)},tw=Object.freeze({__proto__:null,memory:V6,dataset:Gh,manual:Ak,init:ew}),iy=function(a,c,p,x){var I=c.store;p.update([x]),I.setValue(a,x),c.onSetValue(a,x)},nw=function(a,c,p){var x=c.store,I=x.getDataKey(a);return p.lookup(I).getOrThunk(function(){return x.getFallbackEntry(I)})},Qb=function(a,c,p){var x=c.store;x.initialValue.each(function(I){iy(a,c,p,I)})},zx=function(a,c,p){p.clear()},kk=[pi("initialValue"),rr("getFallbackEntry"),rr("getDataKey"),rr("setValue"),vs("manager",{setValue:iy,getValue:nw,onLoad:Qb,onUnload:zx,state:Gh})],Kh=function(a,c,p){return c.store.getValue(a)},Id=function(a,c,p,x){c.store.setValue(a,x),c.onSetValue(a,x)},Sc=function(a,c,p){c.store.initialValue.each(function(x){c.store.setValue(a,x)})},Ok=[rr("getValue"),fn("setValue",T),pi("initialValue"),vs("manager",{setValue:Id,getValue:Kh,onLoad:Sc,onUnload:T,state:Cn.init})],rw=function(a,c,p,x){p.set(x),c.onSetValue(a,x)},sy=function(a,c,p){return p.get()},ow=function(a,c,p){c.store.initialValue.each(function(x){p.isNotSet()&&p.set(x)})},Jb=function(a,c,p){p.clear()},aw=[pi("initialValue"),vs("manager",{setValue:rw,getValue:sy,onLoad:ow,onUnload:Jb,state:V6})],Mk=[_c("store",{mode:"memory"},rd("mode",{memory:aw,manual:Ok,dataset:kk})),xi("onSetValue"),fn("resetOnDom",!1)],zr=Cu({fields:Mk,name:"representing",active:ay,apis:H6,extra:{setValueFrom:function(a,c){var p=zr.getValue(c);zr.setValue(a,p)}},state:tw}),xu=function(a,c){return Sb(a,{},Ae(c,function(p){return jv(p.name(),"Cannot configure "+p.name()+" for "+a)}).concat([Pc("dump",A)]))},ly=function(a){return a.dump},oc=function(a,c){return V(V({},Rr(c)),a.dump)}
117,R1={field:xu,augment:oc,get:ly},iw="placeholder",e4=Ef.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),U6=function(a){return zn(a,"uiType")},j6=function(a,c,p,x){return a.exists(function(I){return I!==p.owner})?e4.single(!0,N(p)):En(x,p.name).fold(function(){throw new Error("Unknown placeholder component: "+p.name+` 118Known: [`+Tt(x)+`] 119Namespace: `+a.getOr("none")+` 120Spec: `+JSON.stringify(p,null,2))},function(I){return I.replace()})},W6=function(a,c,p,x){return U6(p)&&p.uiType===iw?j6(a,c,p,x):e4.single(!1,N(p))},tm=function(a,c,p,x){var I=W6(a,c,p,x);return I.fold(function(G,se){var ge=U6(p)?se(c,p.config,p.validated):se(c),we=En(ge,"components").getOr([]),ke=We(we,function(ze){return tm(a,c,ze,x)});return[V(V({},ge),{components:ke})]},function(G,se){if(U6(p)){var ge=se(c,p.config,p.validated),we=p.validated.preprocess.getOr(A);return we(ge)}else return se(c)})},t4=function(a,c,p,x){return We(p,function(I){return tm(a,c,I,x)})},sw=function(a,c){var p=!1,x=function(){return p},I=function(){if(p)throw new Error("Trying to use the same placeholder more than once: "+a);return p=!0,c},G=function(){return c.fold(function(se,ge){return se},function(se,ge){return se})};return{name:N(a),required:G,used:x,replace:I}},lw=function(a,c,p,x){var I=at(x,function(se,ge){return sw(ge,se)}),G=t4(a,c,p,I);return xt(I,function(se){if(se.used()===!1&&se.required())throw new Error("Placeholder: "+se.name()+` was not found in components list 121Namespace: `+a.getOr("none")+` 122Components: `+JSON.stringify(c.components,null,2))}),G},uw=e4.single,Nk=e4.multiple,Hx=N(iw),Q0=Ef.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Yh=fn("factory",{sketch:A}),hg=fn("schema",[]),uy=rr("name"),cw=Ol("pname","pname",Aa(function(a){return"<alloy."+so(a.name)+">"}),vi()),G6=Pc("schema",function(){return[pi("preprocess")]}),qh=fn("defaults",N({})),yv=fn("overrides",N({})),nm=Eo([Yh,hg,uy,cw,qh,yv]),rm=Eo([Yh,hg,uy,qh,yv]),pg=Eo([Yh,hg,uy,cw,qh,yv]),cy=Eo([Yh,G6,uy,rr("unit"),cw,qh,yv]),fw=function(a){return a.fold(M.some,M.none,M.some,M.some)},dw=function(a){var c=function(p){return p.name};return a.fold(c,c,c,c)},vw=function(a){return a.fold(A,A,A,A)},K6=function(a,c){return function(p){var x=hi("Converting part type",c,p);return a(x)}},Tc=K6(Q0.required,nm),l1=K6(Q0.external,rm),L1=K6(Q0.optional,pg),Xh=K6(Q0.group,cy),fy=N("entirety"),Y6=Object.freeze({__proto__:null,required:Tc,external:l1,optional:L1,group:Xh,asNamedPart:fw,name:dw,asCommon:vw,original:fy}),om=function(a,c,p,x){return qn(c.defaults(a,p,x),p,{uid:a.partUids[c.name]},c.overrides(a,p,x))},mg=function(a,c,p){var x={},I={};return Te(p,function(G){G.fold(function(se){x[se.pname]=uw(!0,function(ge,we,ke){return se.factory.sketch(om(ge,se,we,ke))})},function(se){var ge=c.parts[se.name];I[se.name]=N(se.factory.sketch(om(c,se,ge[fy()]),ge))},function(se){x[se.pname]=uw(!1,function(ge,we,ke){return se.factory.sketch(om(ge,se,we,ke))})},function(se){x[se.pname]=Nk(!0,function(ge,we,ke){var ze=ge[se.name];return Ae(ze,function(Ge){return se.factory.sketch(qn(se.defaults(ge,Ge,ke),Ge,se.overrides(ge,Ge)))})})})}),{internals:N(x),externals:N(I)}},gg=function(a,c){var p={};return Te(c,function(x){fw(x).each(function(I){var G=Dk(a,I.pname);p[I.name]=function(se){var ge=hi("Part: "+I.name+" in "+a,Eo(I.schema),se);return V(V({},G),{config:se,validated:ge})}})}),p},Dk=function(a,c){return{uiType:Hx(),owner:a,name:c}},hw=function(a,c,p){return{uiType:Hx(),owner:a,name:c,config:p,validated:{}}},Vx=function(a){return We(a,function(c){return c.fold(M.none,M.some,M.none,M.none).map(function(p){return S1(p.name,p.schema.concat([Gp(fy())]))}).toArray()})},Ux=function(a){return Ae(a,dw)},pw=function(a,c,p){return mg(a,c,p)},mw=function(a,c,p){return lw(M.some(a),c,c.components,p)},ns=function(a,c,p){var x=c.partUids[p];return a.getSystem().getByUid(x).toOptional()},Zh=function(a,c,p){return ns(a,c,p).getOrDie("Could not find part: "+p)},jx=function(a,c,p){var x={},I=c.partUids,G=a.getSystem();return Te(p,function(se){x[se]=N(G.getByUid(I[se]))}),x},Wx=function(a,c){var p=a.getSystem();return at(c.partUids,function(x,I){return N(p.getByUid(x))})},Gx=function(a){return Tt(a.partUids)},q6=function(a,c,p){var x={},I=c.partUids,G=a.getSystem();return Te(p,function(se){x[se]=N(G.getByUid(I[se]).getOrDie())}),x},gw=function(a,c){var p=Ux(c);return Yv(Ae(p,function(x){return{key:x,value:a+"-"+x}}))}
122,n4=function(a){return Ol("partUids","partUids",Iu(function(c){return gw(c.uid,a)}),vi())},Xo=Object.freeze({__proto__:null,generate:gg,generateOne:hw,schemas:Vx,names:Ux,substitutes:pw,components:mw,defaultUids:gw,defaultUidsSchema:n4,getAllParts:Wx,getAllPartNames:Gx,getPart:ns,getPartOrDie:Zh,getParts:jx,getPartsOrDie:q6}),Ik=function(a,c){var p=a.length>0?[S1("parts",a)]:[];return p.concat([rr("uid"),fn("dom",{}),fn("components",[]),Gp("originalSpec"),fn("debug.sketcher",{})]).concat(c)},yw=function(a,c,p,x,I){var G=Ik(x,I);return hi(a+" [SpecSchema]",wf(G.concat(c)),p)},Kx=function(a,c,p,x){var I=Yx(x),G=yw(a,c,I,[],[]);return p(G,I)},bw=function(a,c,p,x,I){var G=Yx(I),se=Vx(p),ge=n4(p),we=yw(a,c,G,se,[ge]),ke=pw(a,we,p),ze=mw(a,we,ke.internals());return x(we,ze,G,ke.externals())},Rk=function(a){return zn(a,"uid")},Yx=function(a){return Rk(a)?a:V(V({},a),{uid:k("uid")})},_w=function(a){return a.uid!==void 0},ww=wf([rr("name"),rr("factory"),rr("configFields"),fn("apis",{}),fn("extraApis",{})]),Lk=wf([rr("name"),rr("factory"),rr("configFields"),rr("partFields"),fn("apis",{}),fn("extraApis",{})]),u1=function(a){var c=hi("Sketcher for "+a.name,ww,a),p=function(G){return Kx(c.name,c.configFields,c.factory,G)},x=at(c.apis,Sn),I=at(c.extraApis,function(G,se){return Ve(G,se)});return V(V({name:c.name,configFields:c.configFields,sketch:p},x),I)},Pf=function(a){var c=hi("Sketcher for "+a.name,Lk,a),p=function(se){return bw(c.name,c.configFields,c.partFields,c.factory,se)},x=gg(c.name,c.partFields),I=at(c.apis,Sn),G=at(c.extraApis,function(se,ge){return Ve(se,ge)});return V(V({name:c.name,partFields:c.partFields,configFields:c.configFields,sketch:p,parts:x},I),G)},Qh=function(a){return Bt(a)==="input"&&ps(a,"type")!=="radio"||Bt(a)==="textarea"},Bk=function(a,c,p){return c.find(a)},Pk=Object.freeze({__proto__:null,getCurrent:Bk}),Cw=[rr("find")],Wa=Cu({fields:Cw,name:"composing",apis:Pk}),Fk=["input","button","textarea","select"],X6=function(a,c,p){var x=c.disabled()?xw:am;x(a,c)},Z6=function(a,c){return c.useNative===!0&&ie(Fk,Bt(a.element))},Q6=function(a){return Eh(a.element,"disabled")},r4=function(a){ha(a.element,"disabled","disabled")},J0=function(a){zs(a.element,"disabled")},o4=function(a){return ps(a.element,"aria-disabled")==="true"},$k=function(a){ha(a.element,"aria-disabled","true")},qx=function(a){ha(a.element,"aria-disabled","false")},xw=function(a,c,p){c.disableClass.each(function(I){yu(a.element,I)});var x=Z6(a,c)?r4:$k;x(a),c.onDisabled(a)},am=function(a,c,p){c.disableClass.each(function(I){eu(a.element,I)});var x=Z6(a,c)?J0:qx;x(a),c.onEnabled(a)},J6=function(a,c){return Z6(a,c)?Q6(a):o4(a)},Xx=function(a,c,p,x){var I=x?xw:am;I(a,c)},zk=Object.freeze({__proto__:null,enable:am,disable:xw,isDisabled:J6,onLoad:X6,set:Xx}),Hk=function(a,c){return no({classes:c.disabled()?c.disableClass.toArray():[]})}
122,Vk=function(a,c){return Fi([E2(Sf(),function(p,x){return J6(p,a)}),Zs(a,c,X6)])},yg=Object.freeze({__proto__:null,exhibit:Hk,events:Vk}),Ew=[Gi("disabled",Q),fn("useNative",!0),pi("disableClass"),xi("onDisabled"),xi("onEnabled")],Ho=Cu({fields:Ew,name:"disabling",active:yg,apis:zk}),Zx=function(a,c,p,x){var I=of(a.element,"."+c.highlightClass);Te(I,function(G){he(x,function(se){return se.element===G})||(eu(G,c.highlightClass),a.getSystem().getByDom(G).each(function(se){c.onDehighlight(a,se),li(se,C2())}))})},Qx=function(a,c,p){return Zx(a,c,p,[])},Uk=function(a,c,p,x){Sw(a,c,p,x)&&(eu(x.element,c.highlightClass),c.onDehighlight(a,x),li(x,C2()))},a4=function(a,c,p,x){Zx(a,c,p,[x]),Sw(a,c,p,x)||(yu(x.element,c.highlightClass),c.onHighlight(a,x),li(x,Nb()))},sf=function(a,c,p){Aw(a,c).each(function(x){a4(a,c,p,x)})},i4=function(a,c,p){kw(a,c).each(function(x){a4(a,c,p,x)})},jk=function(a,c,p,x){eE(a,c,p,x).fold(function(I){throw I},function(I){a4(a,c,p,I)})},Jx=function(a,c,p,x){var I=tE(a,c),G=lt(I,x);G.each(function(se){a4(a,c,p,se)})},Sw=function(a,c,p,x){return Nf(x.element,c.highlightClass)},Tw=function(a,c,p){return bu(a.element,"."+c.highlightClass).bind(function(x){return a.getSystem().getByDom(x).toOptional()})},eE=function(a,c,p,x){var I=of(a.element,"."+c.itemClass);return M.from(I[x]).fold(function(){return ya.error(new Error("No element found with index "+x))},a.getSystem().getByDom)},Aw=function(a,c,p){return bu(a.element,"."+c.itemClass).bind(function(x){return a.getSystem().getByDom(x).toOptional()})},kw=function(a,c,p){var x=of(a.element,"."+c.itemClass),I=x.length>0?M.some(x[x.length-1]):M.none();return I.bind(function(G){return a.getSystem().getByDom(G).toOptional()})},ep=function(a,c,p,x){var I=of(a.element,"."+c.itemClass),G=ot(I,function(se){return Nf(se,c.highlightClass)});return G.bind(function(se){var ge=Cc(se,x,0,I.length-1);return a.getSystem().getByDom(I[ge]).toOptional()})},Wk=function(a,c,p){return ep(a,c,p,-1)},Gk=function(a,c,p){return ep(a,c,p,1)},tE=function(a,c,p){var x=of(a.element,"."+c.itemClass);return Br(Ae(x,function(I){return a.getSystem().getByDom(I).toOptional()}))},Kk=Object.freeze({__proto__:null,dehighlightAll:Qx,dehighlight:Uk,highlight:a4,highlightFirst:sf,highlightLast:i4,highlightAt:jk,highlightBy:Jx,isHighlighted:Sw,getHighlighted:Tw,getFirst:Aw,getLast:kw,getPrevious:Wk,getNext:Gk,getCandidates:tE}),s4=[rr("highlightClass"),rr("itemClass"),xi("onHighlight"),xi("onDehighlight")],ki=Cu({fields:s4,name:"highlighting",apis:Kk}),e_=[8],tp=[9],bv=[13],im=[27],vd=[32],t_=[37],bg=[38],dy=[39],sm=[40],Yk=function(a,c,p){var x=Ke(a.slice(0,c)),I=Ke(a.slice(c+1));
122return lt(x.concat(I),p)},nE=function(a,c,p){var x=Ke(a.slice(0,c));return lt(x,p)},qk=function(a,c,p){var x=a.slice(0,c),I=a.slice(c+1);return lt(I.concat(x),p)},Xk=function(a,c,p){var x=a.slice(c+1);return lt(x,p)},za=function(a){return function(c){var p=c.raw;return ie(a,p.which)}},_v=function(a){return function(c){return Ye(a,function(p){return p(c)})}},vy=function(a){var c=a.raw;return c.shiftKey===!0},rE=function(a){var c=a.raw;return c.ctrlKey===!0},l4=z(vy),ni=function(a,c){return{matches:a,classification:c}},oE=function(a,c){var p=lt(a,function(x){return x.matches(c)});return p.map(function(x){return x.classification})},aE=function(a,c,p){var x=c.exists(function(I){return p.exists(function(G){return fi(G,I)})});x||zo(a,Lh(),{prevFocus:c,newFocus:p})},u4=function(){var a=function(p){return eh(p.element)},c=function(p,x){var I=a(p);p.getSystem().triggerFocus(x,p.element);var G=a(p);aE(p,I,G)};return{get:a,set:c}},iE=function(){var a=function(p){return ki.getHighlighted(p).map(function(x){return x.element})},c=function(p,x){var I=a(p);p.getSystem().getByDom(x).fold(T,function(se){ki.highlight(p,se)});var G=a(p);aE(p,I,G)};return{get:a,set:c}},c4;(function(a){a.OnFocusMode="onFocus",a.OnEnterOrSpaceMode="onEnterOrSpace",a.OnApiMode="onApi"})(c4||(c4={}));var _g=function(a,c,p,x,I){var G=function(){return a.concat([fn("focusManager",u4()),_c("focusInside","onFocus",Mh(function(ke){return ie(["onFocus","onEnterOrSpace","onApi"],ke)?ya.value(ke):ya.error("Invalid value for focusInside")})),vs("handler",we),vs("state",c),vs("sendFocusIn",I)])},se=function(ke,ze,Ge,ut,yt){var Ot=Ge(ke,ze,ut,yt);return oE(Ot,ze.event).bind(function(Kt){return Kt(ke,ze,ut,yt)})},ge=function(ke,ze){var Ge=ke.focusInside!==c4.OnFocusMode?M.none():I(ke).map(function(Ot){return sr(Dh(),function(Kt,cn){Ot(Kt,ke,ze),cn.stop()})}),ut=function(Ot,Kt){var cn=za(vd.concat(bv))(Kt.event);ke.focusInside===c4.OnEnterOrSpaceMode&&cn&&V3(Ot,Kt)&&I(ke).each(function(Ut){Ut(Ot,ke,ze),Kt.stop()})},yt=[sr(m2(),function(Ot,Kt){se(Ot,Kt,p,ke,ze).fold(function(){ut(Ot,Kt)},function(cn){Kt.stop()})}),sr(kb(),function(Ot,Kt){se(Ot,Kt,x,ke,ze).each(function(cn){Kt.stop()})})];return Fi(Ge.toArray().concat(yt))},we={schema:G,processKey:se,toEvents:ge};return we},Ow=function(a){var c=[pi("onEscape"),pi("onEnter"),fn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),fn("firstTabstop",0),fn("useTabstopAt",$),pi("visibilitySelector")].concat([a]),p=function(Kt,cn){var Ut=Kt.visibilitySelector.bind(function(hn){return D1(cn,hn)}).getOr(cn);return gl(Ut)>0},x=function(Kt,cn){var Ut=of(Kt.element,cn.selector),hn=De(Ut,function(jn){return p(cn,jn)});return M.from(hn[cn.firstTabstop])},I=function(Kt,cn){return cn.focusManager.get(Kt).bind(function(Ut){return D1(Ut,cn.selector)})},G=function(Kt,cn){return p(Kt,cn)&&Kt.useTabstopAt(cn)},se=function(Kt,cn,Ut){x(Kt,cn).each(function(hn){cn.focusManager.set(Kt,hn)})},ge=function(Kt,cn,Ut,hn,jn){return jn(cn,Ut,function(Un){return G(hn,Un)}).fold(function(){return hn.cyclic?M.some(!0):M.none()},function(Un){return hn.focusManager.set(Kt,Un),M.some(!0)})},we=function(Kt,cn,Ut,hn){var jn=of(Kt.element,Ut.selector);return I(Kt,Ut).bind(function(Un){var vn=ot(jn,Z(fi,Un));return vn.bind(function(Pn){return ge(Kt,jn,Pn,Ut,hn)})})},ke=function(Kt,cn,Ut){var hn=Ut.cyclic?Yk:nE;return we(Kt,cn,Ut,hn)},ze=function(Kt,cn,Ut){var hn=Ut.cyclic?qk:Xk;return we(Kt,cn,Ut,hn)},Ge=function(Kt,cn,Ut){return Ut.onEnter.bind(function(hn){return hn(Kt,cn)})},ut=function(Kt,cn,Ut){return Ut.onEscape.bind(function(hn){return hn(Kt,cn)})},yt=N([ni(_v([vy,za(tp)]),ke),ni(za(tp),ze),ni(za(im),ut),ni(_v([l4,za(bv)]),Ge)]),Ot=N([]);return _g(c,Cn.init,yt,Ot,function(){return M.some(se)})},Mw=Ow(Pc("cyclic",Q)),sE=Ow(Pc("cyclic",$)),lE=function(a,c,p){return x2(a,p,Sf()),M.some(!0)},lm=function(a,c,p){var x=Qh(p)&&za(vd)(c.event);return x?M.none():lE(a,c,p)},wg=function(a,c){return M.some(!0)},Nw=[fn("execute",lm),fn("useSpace",!1),fn("useEnter",!0),fn("useControlEnter",!1),fn("useDown",!1)],uE=function(a,c,p){return p.execute(a,c,a.element)},n_=function(a,c,p,x){var I=p.useSpace&&!Qh(a.element)?vd:[],G=p.useEnter?bv:[],se=p.useDown?sm:[],ge=I.concat(G).concat(se);return[ni(za(ge),uE)].concat(p.useControlEnter?[ni(_v([rE,za(bv)]),uE)]:[])},Zk=function(a,c,p,x){return p.useSpace&&!Qh(a.element)?[ni(za(vd),wg)]:[]},hy=_g(Nw,Cn.init,n_,Zk,function(){return M.none()}),Dw=function(){var a=wl(),c=function(I,G){a.set({numRows:I,numColumns:G})},p=function(){return a.get().map(function(I){return I.numRows})},x=function(){return a.get().map(function(I){return I.numColumns})};return tr({readState:function(){return a.get().map(function(I){return{numRows:String(I.numRows),numColumns:String(I.numColumns)}}).getOr({numRows:"?",numColumns:"?"})}
122,setGridSize:c,getNumRows:p,getNumColumns:x})},Iw=function(a){return a.state(a)},cE=Object.freeze({__proto__:null,flatgrid:Dw,init:Iw}),Rw=function(a){return function(c,p,x,I){var G=a(c.element);return Bw(G,c,p,x,I)}},r_=function(a,c){var p=D5(a,c);return Rw(p)},o_=function(a,c){var p=D5(c,a);return Rw(p)},Lw=function(a){return function(c,p,x,I){return Bw(a,c,p,x,I)}},Bw=function(a,c,p,x,I){var G=x.focusManager.get(c).bind(function(se){return a(c.element,se,x,I)});return G.map(function(se){return x.focusManager.set(c,se),!0})},fE=Lw,Cg=Lw,py=Lw,dE=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},vE=function(a){return!dE(a.dom)},a_=function(a,c){return ot(a,c).map(function(p){return{index:p,candidates:a}})},hE=function(a,c,p){var x=function(se){return fi(se,c)},I=of(a,p),G=De(I,vE);return a_(G,x)},pE=function(a,c){return ot(a,function(p){return fi(c,p)})},Pw=function(a,c,p,x){var I=Math.floor(c/p),G=c%p;return x(I,G).bind(function(se){var ge=se.row*p+se.column;return ge>=0&&ge<a.length?M.some(a[ge]):M.none()})},mE=function(a,c,p,x,I){return Pw(a,c,x,function(G,se){var ge=G===p-1,we=ge?a.length-G*x:x,ke=Cc(se,I,0,we-1);return M.some({row:G,column:ke})})},gE=function(a,c,p,x,I){return Pw(a,c,x,function(G,se){var ge=Cc(G,I,0,p-1),we=ge===p-1,ke=we?a.length-ge*x:x,ze=Dd(se,0,ke-1);return M.some({row:ge,column:ze})})},yE=function(a,c,p,x){return mE(a,c,p,x,1)},Qk=function(a,c,p,x){return mE(a,c,p,x,-1)},bE=function(a,c,p,x){return gE(a,c,p,x,-1)},Fw=function(a,c,p,x){return gE(a,c,p,x,1)},my=[rr("selector"),fn("execute",lm),_u("onEscape"),fn("captureTab",!1),n6()],Jk=function(a,c,p){bu(a.element,c.selector).each(function(x){c.focusManager.set(a,x)})},_E=function(a,c){return c.focusManager.get(a).bind(function(p){return D1(p,c.selector)})},wE=function(a,c,p,x){return _E(a,p).bind(function(I){return p.execute(a,c,I)})},B1=function(a){return function(c,p,x,I){return hE(c,p,x.selector).bind(function(G){return a(G.candidates,G.index,I.getNumRows().getOr(x.initSize.numRows),I.getNumColumns().getOr(x.initSize.numColumns))})}},CE=function(a,c,p){return p.captureTab?M.some(!0):M.none()},xE=function(a,c,p){return p.onEscape(a,c)},i_=B1(Qk),s_=B1(yE),$w=B1(bE),xg=B1(Fw),gy=N([ni(za(t_),r_(i_,s_)),ni(za(dy),o_(i_,s_)),ni(za(bg),fE($w)),ni(za(sm),Cg(xg)),ni(_v([vy,za(tp)]),CE),ni(_v([l4,za(tp)]),CE),ni(za(im),xE),ni(za(vd.concat(bv)),wE)]),EE=N([ni(za(vd),wg)]),SE=_g(my,Dw,gy,EE,function(){return M.some(Jk)}),l_=function(a,c,p,x){var I=function(se){return Bt(se)==="button"&&ps(se,"disabled")==="disabled"},G=function(se,ge,we){var ke=Cc(ge,x,0,we.length-1);return ke===se?M.none():I(we[ke])?G(se,ke,we):M.from(we[ke])};return hE(a,p,c).bind(function(se){var ge=se.index,we=se.candidates;return G(ge,ge,we)})},eO=[rr("selector"),fn("getInitial",M.none),fn("execute",lm),_u("onEscape"),fn("executeOnMove",!1),fn("allowVertical",!0)],u_=function(a,c){return c.focusManager.get(a).bind(function(p){return D1(p,c.selector)})},f4=function(a,c,p){return u_(a,p).bind(function(x){return p.execute(a,c,x)})},c_=function(a,c,p){c.getInitial(a).orThunk(function(){return bu(a.element,c.selector)}).each(function(x){c.focusManager.set(a,x)})},TE=function(a,c,p){return l_(a,p.selector,c,-1)},f_=function(a,c,p){return l_(a,p.selector,c,1)},P1=function(a){return function(c,p,x,I){return a(c,p,x,I).bind(function(){return x.executeOnMove?f4(c,p,x):M.some(!0)})}},tO=function(a,c,p){return p.onEscape(a,c)},zw=function(a,c,p,x){var I=t_.concat(p.allowVertical?bg:[]),G=dy.concat(p.allowVertical?sm:[]);return[ni(za(I),P1(r_(TE,f_))),ni(za(G),P1(o_(TE,f_))),ni(za(bv),f4),ni(za(vd),f4),ni(za(im),tO)]},Hw=N([ni(za(vd),wg)]),d_=_g(eO,Cn.init,zw,Hw,function(){return M.some(c_)}),yy=function(a,c,p){return M.from(a[c]).bind(function(x){return M.from(x[p]).map(function(I){return{rowIndex:c,columnIndex:p,cell:I}})})},v_=function(a,c,p,x){var I=a[c],G=I.length,se=Cc(p,x,0,G-1);return yy(a,c,se)},Vw=function(a,c,p,x){var I=Cc(p,x,0,a.length-1),G=a[I].length,se=Dd(c,0,G-1);return yy(a,I,se)},AE=function(a,c,p,x){var I=a[c],G=I.length,se=Dd(p+x,0,G-1);return yy(a,c,se)},kE=function(a,c,p,x){var I=Dd(p+x,0,a.length-1),G=a[I].length,se=Dd(c,0,G-1);return yy(a,I,se)},h_=function(a,c,p){return v_(a,c,p,1)},nO=function(a,c,p){return v_(a,c,p,-1)},OE=function(a,c,p){return Vw(a,p,c,-1)},rO=function(a,c,p){return Vw(a,p,c,1)},oO=function(a,c,p){return AE(a,c,p,-1)},Eg=function(a,c,p){return AE(a,c,p,1)},aO=function(a,c,p){return kE(a,p,c,-1)},iO=function(a,c,p){return kE(a,p,c,1)},sO=[S1("selectors",[rr("row"),rr("cell")]),fn("cycles",!0),fn("previousSelector",M.none),fn("execute",lm)],Uw=function(a,c,p){var x=c.previousSelector(a).orThunk(function(){var I=c.selectors;return bu(a.element,I.cell)});x.each(function(I){c.focusManager.set(a,I)})},jw=function(a,c,p){return eh(a.element).bind(function(x){return p.execute(a,c,x)})},ME=function(a,c){return Ae(a,function(p){return of(p,c.selectors.cell)})},d4=function(a,c){return function(p,x,I){var G=I.cycles?a:c;return D1(x,I.selectors.row).bind(function(se){var ge=of(se,I.selectors.cell);return pE(ge,x).bind(function(we){var ke=of(p,I.selectors.row);return pE(ke,se).bind(function(ze){var Ge=ME(ke,I);return G(Ge,ze,we).map(function(ut){return ut.cell})})})})}},Ww=d4(nO,oO),Sg=d4(h_,Eg),NE=d4(OE,aO),v4=d4(rO,iO),by=N([ni(za(t_),r_(Ww,Sg)),ni(za(dy),o_(Ww,Sg)),ni(za(bg),fE(NE)),ni(za(sm),Cg(v4)),ni(za(vd.concat(bv)),jw)]),DE=N([ni(za(vd),wg)]),lO=_g(sO,Cn.init,by,DE,function(){return M.some(Uw)}),uO=[rr("selector"),fn("execute",lm),fn("moveOnTab",!1)],IE=function(a,c,p){return p.focusManager.get(a).bind(function(x){return p.execute(a,c,x)})},h4=function(a,c,p){bu(a.element,c.selector).each(function(x){c.focusManager.set(a,x)})},p4=function(a,c,p){return l_(a,p.selector,c,-1)},m4=function(a,c,p){return l_(a,p.selector,c,1)},RE=function(a,c,p,x){return p.moveOnTab?py(p4)(a,c,p,x):M.none()},hd=function(a,c,p,x){return p.moveOnTab?py(m4)(a,c,p,x):M.none()},LE=N([ni(za(bg),py(p4)),ni(za(sm),py(m4)),ni(_v([vy,za(tp)]),RE),ni(_v([l4,za(tp)]),hd),ni(za(bv),IE),ni(za(vd),IE)]),ih=N([ni(za(vd),wg)]),cO=_g(uO,Cn.init,LE,ih,function(){return M.some(h4)}),BE=[_u("onSpace"),_u("onEnter"),_u("onShiftEnter"),_u("onLeft"),_u("onRight"),_u("onTab"),_u("onShiftTab"),_u("onUp"),_u("onDown"),_u("onEscape"),fn("stopSpaceKeyup",!1),pi("focusIn")],_y=function(a,c,p){return[ni(za(vd),p.onSpace),ni(_v([l4,za(bv)]),p.onEnter),ni(_v([vy,za(bv)]),p.onShiftEnter),ni(_v([vy,za(tp)]),p.onShiftTab),ni(_v([l4,za(tp)]),p.onTab),ni(za(bg),p.onUp),ni(za(sm),p.onDown),ni(za(t_),p.onLeft),ni(za(dy),p.onRight),ni(za(vd),p.onSpace),ni(za(im),p.onEscape)]},wy=function(a,c,p){return p.stopSpaceKeyup?[ni(za(vd),wg)]:[]},PE=_g(BE,Cn.init,_y,wy,function(a){return a.focusIn}),FE=Mw.schema(),um=sE.schema(),cm=d_.schema(),Gw=SE.schema(),fO=lO.schema(),Tg=hy.schema(),dO=cO.schema(),$E=PE.schema(),g4=Object.freeze({__proto__:null,acyclic:FE,cyclic:um,flow:cm,flatgrid:Gw,matrix:fO,execution:Tg,menu:dO,special:$E}),zE=function(a){return nn(a,"setGridSize")},No=rg({branchKey:"mode",branches:g4,name:"keying",active:{events:function(a,c){var p=a.handler;return p.toEvents(a,c)}},apis:{focusIn:function(a,c,p){c.sendFocusIn(c).fold(function(){a.getSystem().triggerFocus(a.element,a.element)},function(x){x(a,c,p)})},setGridSize:function(a,c,p,x,I){zE(p)?p.setGridSize(x,I):console.error("Layout does not support setGridSize")}},state:cE}),y4=function(a,c,p,x){ox(function(){var I=Ae(x,a.getSystem().build);X5(a,I)},a.element)},b4=function(a,c,p,x){var I=a.getSystem().build(x);P6(a,I,p)},Kw=function(a,c,p,x){b4(a,c,Al,x)},HE=function(a,c,p,x){b4(a,c,yf,x)},p_=function(a,c,p,x){var I=_4(a),G=lt(I,function(se){return fi(x.element,se.element)});G.each(oh)},_4=function(a,c){return a.components()},Yw=function(a,c,p,x,I){var G=_4(a);return M.from(G[x]).map(function(se){return p_(a,c,p,se),I.each(function(ge){b4(a,c,function(we,ke){Xc(we,ke,x)},ge)}),se})},VE=function(a,c,p,x,I){var G=_4(a);return ot(G,x).bind(function(se){return Yw(a,c,p,se,I)})},vO=Object.freeze({__proto__:null,append:Kw,prepend:HE,remove:p_,replaceAt:Yw,replaceBy:VE,set:y4,contents:_4}),ra=Cu({fields:[],name:"replacing",apis:vO}),m_=function(a,c){var p=Fi(c);return Cu({fields:[rr("enabled")],name:a,active:{events:N(p)}})},ba=function(a,c){var p=m_(a,c);return{key:a,value:{config:{},me:p,configAsRaw:N({}),initialConfig:{},state:Cn}}},UE=function(a,c){c.ignore||(Jv(a.element),c.onFocus(a))},jE=function(a,c){c.ignore||$b(a.element)},qw=function(a){return zb(a.element)},Ag=Object.freeze({__proto__:null,focus:UE,blur:jE,isFocused:qw}),g_=function(a,c){var p=c.ignore?{}:{attributes:{tabindex:"-1"}};return no(p)},w4=function(a){return Fi([sr(Dh(),function(c,p){UE(c,a),p.stop()})].concat(a.stopMousedown?[sr(t1(),function(c,p){p.event.prevent()})]:[]))},y_=Object.freeze({__proto__:null,exhibit:g_,events:w4}),Xw=[xi("onFocus"),fn("stopMousedown",!1),fn("ignore",!1)],oa=Cu({fields:Xw,name:"focusing",active:y_,apis:Ag}),hO=function(a){var c=function(){var p=Oo(a),x=function(){return p.get()},I=function(ge){return p.set(ge)},G=function(){return p.set(a)},se=function(){return p.get()};return{get:x,set:I,clear:G,readState:se}};return{init:c}},WE=function(a,c,p){var x=c.aria;x.update(a,x,p.get())},b_=function(a,c,p){c.toggleClass.each(function(x){p.get()?yu(a.element,x):eu(a.element,x)})},Jh=function(a,c,p){__(a,c,p,!p.get())},GE=function(a,c,p){p.set(!0),b_(a,c,p),WE(a,c,p)},C4=function(a,c,p){p.set(!1),b_(a,c,p),WE(a,c,p)},__=function(a,c,p,x){var I=x?GE:C4;I(a,c,p)},KE=function(a,c,p){return p.get()},YE=function(a,c,p){__(a,c,p,c.selected)},pO=Object.freeze({__proto__:null,onLoad:YE,toggle:Jh,isOn:KE,on:GE,off:C4,set:__}),mO=function(){return no({})},gO=function(a,c){var p=ng(a,c,Jh),x=Zs(a,c,YE);return Fi(Fe([a.toggleOnExecute?[p]:[],[x]]))},yO=Object.freeze({__proto__:null,exhibit:mO,events:gO}),bO=function(a,c,p){ha(a.element,"aria-pressed",p),c.syncWithExpanded&&Zw(a,c,p)},qE=function(a,c,p){ha(a.element,"aria-selected",p)},_O=function(a,c,p){ha(a.element,"aria-checked",p)},Zw=function(a,c,p){ha(a.element,"aria-expanded",p)},Cy=[fn("selected",!1),pi("toggleClass"),fn("toggleOnExecute",!0),_c("aria",{mode:"none"},rd("mode",{pressed:[fn("syncWithExpanded",!1),vs("update",bO)],checked:[vs("update",_O)],expanded:[vs("update",Zw)],selected:[vs("update",qE)],none:[vs("update",T)]}))],Qa=Cu({fields:Cy,name:"toggling",active:yO,apis:pO,state:hO(!1)}),w_=function(){var a=function(c,p){p.stop(),Tf(c)};return[sr(P0(),a),sr(Ih(),a),H0(A1()),H0(t1())]},C_=function(a){var c=function(p){return ef(function(x,I){p(x),I.stop()})};return Fi(Fe([a.map(c).toArray(),w_()]))},XE="alloy.item-hover",ZE="alloy.item-focus",QE=function(a){(eh(a.element).isNone()||oa.isFocused(a))&&(oa.isFocused(a)||oa.focus(a),zo(a,XE,{item:a}))},Qw=function(a){zo(a,ZE,{item:a})},Jw=N(XE),_=N(ZE),O=function(a){return{dom:a.dom,domModification:V(V({},a.domModification),{attributes:V(V(V({role:a.toggling.isSome()?"menuitemcheckbox":"menuitem"},a.domModification.attributes),{"aria-haspopup":a.hasSubmenu}),a.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:R1.augment(a.itemBehaviours,[a.toggling.fold(Qa.revoke,function(c){return Qa.config(V({aria:{mode:"checked"}},c))}),oa.config({ignore:a.ignoreFocus,stopMousedown:a.ignoreFocus,onFocus:function(c){Qw(c)}}),No.config({mode:"execution"}),zr.config({store:{mode:"memory",initialValue:a.data}}),ba("item-type-events",fe(fe([],w_(),!0),[sr(n1(),QE),sr(uv(),oa.focus)],!1))]),components:a.components,eventOrder:
122a.eventOrder}},H=[rr("data"),rr("components"),rr("dom"),fn("hasSubmenu",!1),pi("toggling"),R1.field("itemBehaviours",[Qa,oa,No,zr]),fn("ignoreFocus",!1),fn("domModification",{}),vs("builder",O),fn("eventOrder",{})],oe=function(a){return{dom:a.dom,components:a.components,events:Fi([Ph(uv())])}},ve=[rr("dom"),rr("components"),vs("builder",oe)],Se=N("item-widget"),Pe=N([Tc({name:"widget",overrides:function(a){return{behaviours:Rr([zr.config({store:{mode:"manual",getValue:function(c){return a.data},setValue:T}})])}}})]),Xe=function(a){var c=pw(Se(),a,Pe()),p=mw(Se(),a,c.internals()),x=function(G){return ns(G,a,"widget").map(function(se){return No.focusIn(se),se})},I=function(G,se){return Qh(se.event.target)?M.none():function(){return a.autofocus&&se.setSource(G.element),M.none()}()};return{dom:a.dom,components:p,domModification:a.domModification,events:Fi([ef(function(G,se){x(G).each(function(ge){se.stop()})}),sr(n1(),QE),sr(uv(),function(G,se){a.autofocus?x(G):oa.focus(G)})]),behaviours:R1.augment(a.widgetBehaviours,[zr.config({store:{mode:"memory",initialValue:a.data}}),oa.config({ignore:a.ignoreFocus,onFocus:function(G){Qw(G)}}),No.config({mode:"special",focusIn:a.autofocus?function(G){x(G)}:rx(),onLeft:I,onRight:I,onEscape:function(G,se){return!oa.isFocused(G)&&!a.autofocus?(oa.focus(G),M.some(!0)):(a.autofocus&&se.setSource(G.element),M.none())}})])}},wt=[rr("uid"),rr("data"),rr("components"),rr("dom"),fn("autofocus",!1),fn("ignoreFocus",!1),R1.field("widgetBehaviours",[zr,oa,No]),fn("domModification",{}),n4(Pe()),vs("builder",Xe)],Ht=rd("type",{widget:wt,item:H,separator:ve}),un=function(a,c){return{mode:"flatgrid",selector:"."+a.markers.item,initSize:{numColumns:c.initSize.numColumns,numRows:c.initSize.numRows},focusManager:a.focusManager}},Jn=function(a,c){return{mode:"matrix",selectors:{row:c.rowSelector,cell:"."+a.markers.item},focusManager:a.focusManager}},pr=function(a,c){return{mode:"menu",selector:"."+a.markers.item,moveOnTab:c.moveOnTab,focusManager:a.focusManager}},cr=N([Xh({factory:{sketch:function(a){var c=hi("menu.spec item",Ht,a);return c.builder(c)}},name:"items",unit:"item",defaults:function(a,c){return zn(c,"uid")?c:V(V({},c),{uid:k("item")})},overrides:function(a,c){return{type:c.type,ignoreFocus:a.fakeFocus,domModification:{classes:[a.markers.item]}}}})]),Xn=N([rr("value"),rr("items"),rr("dom"),rr("components"),fn("eventOrder",{}),xu("menuBehaviours",[ki,zr,Wa,No]),_c("movement",{mode:"menu",moveOnTab:!0},rd("mode",{grid:[n6(),vs("config",un)],matrix:[vs("config",Jn),rr("rowSelector")],menu:[fn("moveOnTab",!0),vs("config",pr)]})),D7(),fn("fakeFocus",!1),fn("focusManager",u4()),xi("onHighlight")]),Dr=N("alloy.menu-focus"),Lr=function(a,c,p,x){return{uid:a.uid,dom:a.dom,markers:a.markers,behaviours:oc(a.menuBehaviours,[ki.config({highlightClass:a.markers.selectedItem,itemClass:a.markers.item,onHighlight:a.onHighlight}),zr.config({store:{mode:"memory",initialValue:a.value}}),Wa.config({find:M.some}),No.config(a.movement.config(a,a.movement))]),events:Fi([sr(_(),function(I,G){var se=G.event;I.getSystem().getByDom(se.target).each(function(ge){ki.highlight(I,ge),G.stop(),zo(I,Dr(),{menu:I,item:ge})})}),sr(Jw(),function(I,G){var se=G.event.item;ki.highlight(I,se)})]),components:c,eventOrder:a.eventOrder,domModification:{attributes:{role:"menu"}}}},Ro=Pf({name:"Menu",configFields:Xn(),partFields:cr(),factory:Lr}),ri=function(a){return _t(a,function(c,p){return{k:c,v:p}})},Po=function(a,c,p,x){return En(p,x).bind(function(I){return En(a,I).bind(function(G){var se=Po(a,c,p,G);return M.some([G].concat(se))})}).getOr([])},aa=function(a,c){var p={};xt(a,function(se,ge){Te(se,function(we){p[we]=ge})});var x=c,I=ri(c),G=at(I,function(se,ge){return[ge].concat(Po(p,x,I,ge))});return at(p,function(se){return En(G,se).getOr([se])})},Ya=function(){var a=Oo({}),c=Oo({}),p=Oo({}),x=wl(),I=Oo({}),G=function(){a.set({}),c.set({}),p.set({}),x.clear()},se=function(){return x.get().isNone()},ge=function(vn,Pn){var or;c.set(V(V({},c.get()),(or={},or[vn]={type:"prepared",menu:Pn},or)))},we=function(vn,Pn,or,Hr){x.set(vn),a.set(or),c.set(Pn),I.set(Hr);var fr=aa(Hr,or);p.set(fr)},ke=function(vn){return Mt(a.get(),function(Pn,or){return Pn===vn})},ze=function(vn,Pn,or){return Kt(vn).bind(function(Hr){return ke(vn).bind(function(fr){return Pn(fr).map(function(Wr){return{triggeredMenu:Hr,triggeringItem:Wr,triggeringPath:or}})})})}
122,Ge=function(vn,Pn){var or=De(Ut(vn).toArray(),function(Hr){return Kt(Hr).isSome()});return En(p.get(),vn).bind(function(Hr){var fr=Ke(or.concat(Hr)),Wr=We(fr,function(dr,nr){return ze(dr,Pn,fr.slice(0,nr+1)).fold(function(){return Yn(x.get(),dr)?[]:[M.none()]},function(Mr){return[M.some(Mr)]})});return io(Wr)})},ut=function(vn){return En(a.get(),vn).map(function(Pn){var or=En(p.get(),vn).getOr([]);return[Pn].concat(or)})},yt=function(vn){return En(p.get(),vn).bind(function(Pn){return Pn.length>1?M.some(Pn.slice(1)):M.none()})},Ot=function(vn){return En(p.get(),vn)},Kt=function(vn){return cn(vn).bind(Ha)},cn=function(vn){return En(c.get(),vn)},Ut=function(vn){return En(a.get(),vn)},hn=function(vn){var Pn=I.get();return mt(Tt(Pn),vn)},jn=function(){return x.get().bind(Kt)},Un=function(){return c.get()};return{setMenuBuilt:ge,setContents:we,expand:ut,refresh:Ot,collapse:yt,lookupMenu:cn,lookupItem:Ut,otherMenus:hn,getPrimary:jn,getMenus:Un,clear:G,isClear:se,getTriggeringPath:Ge}},Ha=function(a){return a.type==="prepared"?M.some(a.menu):M.none()},nu={init:Ya,extractPreparedMenu:Ha},ac=function(a,c){var p=wl(),x=function(ur,co,Ao){return at(Ao,function(qa,Li){var Is=function(){return Ro.sketch(V(V({},qa),{value:Li,markers:a.markers,fakeFocus:a.fakeFocus,onHighlight:a.onHighlight,focusManager:a.fakeFocus?iE():u4()}))};return Li===co?{type:"prepared",menu:ur.getSystem().build(Is())}:{type:"notbuilt",nbMenu:Is}})},I=nu.init(),G=function(ur){var co=x(ur,a.data.primary,a.data.menus),Ao=we();return I.setContents(a.data.primary,co,a.data.expansions,Ao),I.getPrimary()},se=function(ur){return zr.getValue(ur).value},ge=function(ur,co,Ao){return vt(co,function(qa){if(!qa.getSystem().isConnected())return M.none();var Li=ki.getCandidates(qa);return lt(Li,function(Is){return se(Is)===Ao})})},we=function(ur){return at(a.data.menus,function(co,Ao){return We(co.items,function(qa){return qa.type==="separator"?[]:[qa.data.value]})})},ke=function(ur,co){ki.highlight(ur,co),ki.getHighlighted(co).orThunk(function(){return ki.getFirst(co)}).each(function(Ao){x2(ur,Ao.element,uv())})},ze=function(ur,co){return Br(Ae(co,function(Ao){return ur.lookupMenu(Ao).bind(function(qa){return qa.type==="prepared"?M.some(qa.menu):M.none()})}))},Ge=function(ur,co,Ao){var qa=ze(co,co.otherMenus(Ao));Te(qa,function(Li){i1(Li.element,[a.markers.backgroundMenu]),a.stayInDom||ra.remove(ur,Li)})},ut=function(ur){return p.get().getOrThunk(function(){var co={},Ao=of(ur.element,"."+a.markers.item),qa=De(Ao,function(Li){return ps(Li,"aria-haspopup")==="true"});return Te(qa,function(Li){ur.getSystem().getByDom(Li).each(function(Is){var hl=se(Is);co[hl]=Is})}),p.set(co),co})},yt=function(ur,co){var Ao=ut(ur);xt(Ao,function(qa,Li){var Is=ie(co,Li);ha(qa.element,"aria-expanded",Is)})},Ot=function(ur,co,Ao){return M.from(Ao[0]).bind(function(qa){return co.lookupMenu(qa).bind(function(Li){if(Li.type==="notbuilt")return M.none();var Is=Li.menu,hl=ze(co,Ao.slice(1));return Te(hl,function(j1){yu(j1.element,a.markers.backgroundMenu)}),Vo(Is.element)||ra.append(ur,s1(Is)),i1(Is.element,[a.markers.backgroundMenu]),ke(ur,Is),Ge(ur,co,Ao),M.some(Is)})})},Kt;(function(ur){ur[ur.HighlightSubmenu=0]="HighlightSubmenu",ur[ur.HighlightParent=1]="HighlightParent"})(Kt||(Kt={}));var cn=function(ur,co,Ao){if(Ao.type==="notbuilt"){var qa=ur.getSystem().build(Ao.nbMenu());return I.setMenuBuilt(co,qa),qa}else return Ao.menu},Ut=function(ur,co,Ao){if(Ao===void 0&&(Ao=Kt.HighlightSubmenu),co.hasConfigured(Ho)&&Ho.isDisabled(co))return M.some(co);var qa=se(co);return I.expand(qa).bind(function(Li){return yt(ur,Li),M.from(Li[0]).bind(function(Is){return I.lookupMenu(Is).bind(function(hl){var j1=cn(ur,Is,hl);return Vo(j1.element)||ra.append(ur,s1(j1)),a.onOpenSubmenu(ur,co,j1,Ke(Li)),Ao===Kt.HighlightSubmenu?(ki.highlightFirst(j1),Ot(ur,I,Li)):(ki.dehighlightAll(j1),M.some(co))})})})},hn=function(ur,co){var Ao=se(co);return I.collapse(Ao).bind(function(qa){return yt(ur,qa),Ot(ur,I,qa).map(function(Li){return a.onCollapseMenu(ur,co,Li),Li})})},jn=function(ur,co){var Ao=se(co);return I.refresh(Ao).bind(function(qa){return yt(ur,qa),Ot(ur,I,qa)})},Un=function(ur,co){return Qh(co.element)?M.none():Ut(ur,co,Kt.HighlightSubmenu)},vn=function(ur,co){return Qh(co.element)?M.none():hn(ur,co)},Pn=function(ur,co){return hn(ur,co).orThunk(function(){return a.onEscape(ur,co).map(function(){return ur})})}
122,or=function(ur){return function(co,Ao){return D1(Ao.getSource(),"."+a.markers.item).bind(function(qa){return co.getSystem().getByDom(qa).toOptional().bind(function(Li){return ur(co,Li).map($)})})}},Hr=Fi([sr(Dr(),function(ur,co){var Ao=co.event.item;I.lookupItem(se(Ao)).each(function(){var qa=co.event.menu;ki.highlight(ur,qa);var Li=se(co.event.item);I.refresh(Li).each(function(Is){return Ge(ur,I,Is)})})}),ef(function(ur,co){var Ao=co.event.target;ur.getSystem().getByDom(Ao).each(function(qa){var Li=se(qa);Li.indexOf("collapse-item")===0&&hn(ur,qa),Ut(ur,qa,Kt.HighlightSubmenu).fold(function(){a.onExecute(ur,qa)},T)})}),qo(function(ur,co){G(ur).each(function(Ao){ra.append(ur,s1(Ao)),a.onOpenMenu(ur,Ao),a.highlightImmediately&&ke(ur,Ao)})})].concat(a.navigateOnHover?[sr(Jw(),function(ur,co){var Ao=co.event.item;jn(ur,Ao),Ut(ur,Ao,Kt.HighlightParent),a.onHover(ur,Ao)})]:[])),fr=function(ur){return ki.getHighlighted(ur).bind(ki.getHighlighted)},Wr=function(ur){fr(ur).each(function(co){hn(ur,co)})},dr=function(ur){I.getPrimary().each(function(co){ke(ur,co)})},nr=function(ur){return M.from(ur.components()[0]).filter(function(co){return ps(co.element,"role")==="menu"})},Mr=function(ur){var co=I.getPrimary().bind(function(Ao){return fr(ur).bind(function(qa){var Li=se(qa),Is=pn(I.getMenus()),hl=Br(Ae(Is,nu.extractPreparedMenu));return I.getTriggeringPath(Li,function(j1){return ge(ur,hl,j1)})}).map(function(qa){return{primary:Ao,triggeringPath:qa}})});co.fold(function(){nr(ur).each(function(Ao){a.onRepositionMenu(ur,Ao,[])})},function(Ao){var qa=Ao.primary,Li=Ao.triggeringPath;a.onRepositionMenu(ur,qa,Li)})},go={collapseMenu:Wr,highlightPrimary:dr,repositionMenus:Mr};return{uid:a.uid,dom:a.dom,markers:a.markers,behaviours:oc(a.tmenuBehaviours,[No.config({mode:"special",onRight:or(Un),onLeft:or(vn),onEscape:or(Pn),focusIn:function(ur,co){I.getPrimary().each(function(Ao){x2(ur,Ao.element,uv())})}}),ki.config({highlightClass:a.markers.selectedMenu,itemClass:a.markers.menu}),Wa.config({find:function(ur){return ki.getHighlighted(ur)}}),ra.config({})]),eventOrder:a.eventOrder,apis:go,events:Hr}},Ff=N("collapse-item"),ui=function(a,c,p){return{primary:a,menus:c,expansions:p}},fa=function(a,c){return{primary:a,menus:T1(a,c),expansions:{}}},Ja=function(a){return{value:so(Ff()),meta:{text:a}}},$i=u1({name:"TieredMenu",configFields:[ld("onExecute"),ld("onEscape"),If("onOpenMenu"),If("onOpenSubmenu"),xi("onRepositionMenu"),xi("onCollapseMenu"),fn("highlightImmediately",!0),S1("data",[rr("primary"),rr("menus"),rr("expansions")]),fn("fakeFocus",!1),xi("onHighlight"),xi("onHover"),Qm(),rr("dom"),fn("navigateOnHover",!0),fn("stayInDom",!1),xu("tmenuBehaviours",[No,ki,Wa,ra]),fn("eventOrder",{})],apis:{collapseMenu:function(a,c){a.collapseMenu(c)},highlightPrimary:function(a,c){a.highlightPrimary(c)},repositionMenus:function(a,c){a.repositionMenus(c)}},factory:ac,extraApis:{tieredData:ui,singleData:fa,collapseItem:Ja}}),dl=function(a,c,p,x,I){var G=function(){return a.lazySink(c)},se=x.type==="horizontal"?{layouts:{onLtr:function(){return c6()},onRtl:function(){return f6()}}}:{},ge=function(ke){return ke.length===2},we=function(ke){return ge(ke)?se:{}};return $i.sketch({dom:{tag:"div"},data:x.data,markers:x.menu.markers,highlightImmediately:x.menu.highlightImmediately,onEscape:function(){return ti.close(c),a.onEscape.map(function(ke){return ke(c)}),M.some(!0)},onExecute:function(){return M.some(!0)},onOpenMenu:function(ke,ze){Cl.positionWithinBounds(G().getOrDie(),ze,p,I())},onOpenSubmenu:function(ke,ze,Ge,ut){var yt=G().getOrDie();Cl.position(yt,Ge,{anchor:V({type:"submenu",item:ze},we(ut))})},onRepositionMenu:function(ke,ze,Ge){var ut=G().getOrDie();Cl.positionWithinBounds(ut,ze,p,I()),Te(Ge,function(yt){var Ot=we(yt.triggeringPath);Cl.position(ut,yt.triggeredMenu,{anchor:V({type:"submenu",item:yt.triggeringItem},Ot)})})}})},e0=function(a,c){var p=function(yt,Ot){var Kt=a.getRelated(yt);return Kt.exists(function(cn){return Zm(cn,Ot)})},x=function(yt,Ot){ti.setContent(yt,Ot)},I=function(yt,Ot,Kt){G(yt,Ot,Kt,M.none())},G=function(yt,Ot,Kt,cn){se(yt,Ot,Kt,function(){return cn.map(function(Ut){return nl(Ut)})})},se=function(yt,Ot,Kt,cn){var Ut=a.lazySink(yt).getOrDie();ti.openWhileCloaked(yt,Ot,function(){return Cl.positionWithinBounds(Ut,yt,Kt,cn())}),zr.setValue(yt,M.some({mode:"position",config:Kt,getBounds:cn}))},ge=function(yt,Ot,Kt){we(yt,Ot,Kt,M.none)},we=function(yt,Ot,Kt,cn){var Ut=dl(a,yt,Ot,Kt,cn);ti.open(yt,Ut),zr.setValue(yt,M.some({mode:"menu",menu:Ut}))},ke=function(yt){ti.isOpen(yt)&&(zr.setValue(yt,M.none()),ti.close(yt))},ze=function(yt){return ti.getState(yt)},Ge=function(yt){ti.isOpen(yt)&&zr.getValue(yt).each(function(Ot){switch(Ot.mode){case"menu":ti.getState(yt).each($i.repositionMenus);break;case"position":var Kt=a.lazySink(yt).getOrDie();Cl.positionWithinBounds(Kt,yt,Ot.config,Ot.getBounds());break}})},ut={setContent:x,showAt:I,showWithin:G,showWithinBounds:se,showMenuAt:ge,showMenuWithinBounds:we,hide:ke,getContent:ze,reposition:Ge,isOpen:ti.isOpen};return{uid:a.uid,dom:a.dom,behaviours:oc(a.inlineBehaviours,[ti.config({isPartOf:function(yt,Ot,Kt){return Zm(Ot,Kt)||p(yt,Kt)}
122,getAttachPoint:function(yt){return a.lazySink(yt).getOrDie()},onOpen:function(yt){a.onShow(yt)},onClose:function(yt){a.onHide(yt)}}),zr.config({store:{mode:"memory",initialValue:M.none()}}),nf.config({channels:V(V({},dd(V({isExtraPart:c.isExtraPart},a.fireDismissalEventInstead.map(function(yt){return{fireEventInstead:{event:yt.event}}}).getOr({})))),vg(V(V({},a.fireRepositionEventInstead.map(function(yt){return{fireEventInstead:{event:yt.event}}}).getOr({})),{doReposition:Ge})))})]),eventOrder:a.eventOrder,apis:ut}},Ki=u1({name:"InlineView",configFields:[rr("lazySink"),xi("onShow"),xi("onHide"),Wv("onEscape"),xu("inlineBehaviours",[ti,zr,nf]),Qc("fireDismissalEventInstead",[fn("event",o1())]),Qc("fireRepositionEventInstead",[fn("event",vu())]),fn("getRelated",M.none),fn("isExtraPart",Q),fn("eventOrder",M.none)],factory:e0,apis:{showAt:function(a,c,p,x){a.showAt(c,p,x)},showWithin:function(a,c,p,x,I){a.showWithin(c,p,x,I)},showWithinBounds:function(a,c,p,x,I){a.showWithinBounds(c,p,x,I)},showMenuAt:function(a,c,p,x){a.showMenuAt(c,p,x)},showMenuWithinBounds:function(a,c,p,x,I){a.showMenuWithinBounds(c,p,x,I)},hide:function(a,c){a.hide(c)},isOpen:function(a,c){return a.isOpen(c)},getContent:function(a,c){return a.getContent(c)},setContent:function(a,c,p){a.setContent(c,p)},reposition:function(a,c){a.reposition(c)}}}),F1="layout-inset",Ac=function(a){return a.x},x4=function(a,c){return a.x+a.width/2-c.width/2},fm=function(a,c){return a.x+a.width-c.width},sh=function(a){return a.y},$1=function(a,c){return a.y+a.height-c.height},wv=function(a,c){return a.y+a.height/2-c.height/2},E4=function(a,c,p){return Fu(fm(a,c),$1(a,c),p.insetSouthwest(),eg(),"southwest",wu(a,{right:0,bottom:3}),F1)},kg=function(a,c,p){return Fu(Ac(a),$1(a,c),p.insetSoutheast(),d5(),"southeast",wu(a,{left:1,bottom:3}),F1)},S4=function(a,c,p){return Fu(fm(a,c),sh(a),p.insetNorthwest(),f5(),"northwest",wu(a,{right:0,top:2}),F1)},Og=function(a,c,p){return Fu(Ac(a),sh(a),p.insetNortheast(),o6(),"northeast",wu(a,{left:1,top:2}),F1)},lh=function(a,c,p){return Fu(x4(a,c),sh(a),p.insetNorth(),Rb(),"north",wu(a,{top:2}),F1)},xy=function(a,c,p){return Fu(x4(a,c),$1(a,c),p.insetSouth(),v5(),"south",wu(a,{bottom:3}),F1)},x_=function(a,c,p){return Fu(fm(a,c),wv(a,c),p.insetEast(),I2(),"east",wu(a,{right:0}),F1)},JE=function(a,c,p){return Fu(Ac(a),wv(a,c),p.insetWest(),h5(),"west",wu(a,{left:1}),F1)},T4=function(a){switch(a){case"north":return lh;case"northeast":return Og;case"northwest":return S4;case"south":return xy;case"southeast":return kg;case"southwest":return E4;case"east":return x_;case"west":return JE}},wO=function(a,c,p,x,I){var G=E5(x).map(T4).getOr(lh);return G(a,c,p,x,I)},CO=function(a){switch(a){case"north":return xy;case"northeast":return kg;case"northwest":return E4;case"south":return lh;case"southeast":return Og;case"southwest":return S4;case"east":return JE;case"west":return x_}},pU=function(a,c,p,x,I){var G=E5(x).map(CO).getOr(lh);return G(a,c,p,x,I)},np=tinymce.util.Tools.resolve("tinymce.util.Delay"),mU=function(a){var c=C_(a.action),p=a.dom.tag,x=function(G){return En(a.dom,"attributes").bind(function(se){return En(se,G)})},I=function(){if(p==="button"){var G=x("type").getOr("button"),se=x("role").map(function(we){return{role:we}}).getOr({});return V({type:G},se)}else{var ge=x("role").getOr("button");return{role:ge}}};return{uid:a.uid,dom:a.dom,components:a.components,events:c,behaviours:R1.augment(a.buttonBehaviours,[oa.config({}),No.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:I()},eventOrder:a.eventOrder}},Rd=u1({name:"Button",factory:mU,configFields:[fn("uid",void 0),rr("dom"),fn("components",[]),R1.field("buttonBehaviours",[oa,No]),pi("action"),pi("role"),fn("eventOrder",{})]}),gU=function(a){var c=a.dom.attributes!==void 0?a.dom.attributes:[];return rt(c,function(p,x){var I;return x.name==="class"?p:V(V({},p),(I={},I[x.name]=x.value,I))},{})},yU=function(a){return Array.prototype.slice.call(a.dom.classList,0)},Mg=function(a){var c=Rt.fromHtml(a),p=xe(c),x=gU(c),I=yU(c),G=p.length===0?{}:{innerHtml:k1(c)};return V({tag:Bt(c),classes:I,attributes:x},G)},Ii=function(a){var c=_w(a)&&nn(a,"uid")?a.uid:k("memento"),p=function(G){return G.getSystem().getByUid(c).getOrDie()},x=function(G){return G.getSystem().getByUid(c).toOptional()},I=function(){return V(V({},a),{uid:c})};return{get:p,getOpt:x,asSpec:I}};function Ey(a){return Ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Ey(a)}function xO(a,c){return xO=Object.setPrototypeOf||function(x,I){return x.__proto__=I,x},xO(a,c)}function bU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A4(a,c,p){return bU()?A4=Reflect.construct:A4=function(I,G,se){var ge=[null];ge.push.apply(ge,G);var we=Function.bind.apply(I,ge),ke=new we;return se&&xO(ke,se.prototype),ke},A4.apply(null,arguments)}function rp(a){return _U(a)||EO(a)||wU(a)||CU()}function _U(a){if(Array.isArray(a))return SO(a)}function EO(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}
122function wU(a,c){if(!!a){if(typeof a=="string")return SO(a,c);var p=Object.prototype.toString.call(a).slice(8,-1);if(p==="Object"&&a.constructor&&(p=a.constructor.name),p==="Map"||p==="Set")return Array.from(a);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return SO(a,c)}}function SO(a,c){(c==null||c>a.length)&&(c=a.length);for(var p=0,x=new Array(c);p<c;p++)x[p]=a[p];return x}function CU(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 123In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xU=Object.hasOwnProperty,CR=Object.setPrototypeOf,EU=Object.isFrozen,SU=Object.getPrototypeOf,TU=Object.getOwnPropertyDescriptor,z1=Object.freeze,dm=Object.seal,AU=Object.create,xR=typeof Reflect!="undefined"&&Reflect,E_=xR.apply,TO=xR.construct;E_||(E_=function(c,p,x){return c.apply(p,x)}),z1||(z1=function(c){return c}),dm||(dm=function(c){return c}),TO||(TO=function(c,p){return A4(c,rp(p))});var kU=op(Array.prototype.forEach),ER=op(Array.prototype.pop),S_=op(Array.prototype.push),eS=op(String.prototype.toLowerCase),OU=op(String.prototype.match),Sy=op(String.prototype.replace),MU=op(String.prototype.indexOf),NU=op(String.prototype.trim),Ld=op(RegExp.prototype.test),AO=DU(TypeError);function op(a){return function(c){for(var p=arguments.length,x=new Array(p>1?p-1:0),I=1;I<p;I++)x[I-1]=arguments[I];return E_(a,c,x)}}function DU(a){return function(){for(var c=arguments.length,p=new Array(c),x=0;x<c;x++)p[x]=arguments[x];return TO(a,p)}}function ss(a,c){CR&&CR(a,null);for(var p=c.length;p--;){var x=c[p];if(typeof x=="string"){var I=eS(x);I!==x&&(EU(c)||(c[p]=I),x=I)}a[x]=!0}return a}function k4(a){var c=AU(null),p;for(p in a)E_(xU,a,[p])&&(c[p]=a[p]);return c}function tS(a,c){for(;a!==null;){var p=TU(a,c);if(p){if(p.get)return op(p.get);if(typeof p.value=="function")return op(p.value)}a=SU(a)}function x(I){return console.warn("fallback value for",I),null}return x}var SR=z1(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kO=z1(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),OO=z1(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),IU=z1(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),MO=z1(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),NO=z1(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),TR=z1(["#text"]),AR=z1(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
123spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),DO=z1(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nS=z1(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rS=z1(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),IO=dm(/\{\{[\w\W]*|[\w\W]*\}\}/gm),RU=dm(/<%[\w\W]*|[\w\W]*%>/gm),LU=dm(/^data-[\-\w.\u00B7-\uFFFF]/),BU=dm(/^aria-[\-\w]+$/),PU=dm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),FU=dm(/^(?:\w+script|data):/i),kR=dm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$U=dm(/^html$/i),RO=function(){return typeof window=="undefined"?null:window},LO=function(c,p){if(Ey(c)!=="object"||typeof c.createPolicy!="function")return null;var x=null,I="data-tt-policy-suffix";p.currentScript&&p.currentScript.hasAttribute(I)&&(x=p.currentScript.getAttribute(I));var G="dompurify"+(x?"#"+x:"");try{return c.createPolicy(G,{createHTML:function(ge){return ge}})}catch{return console.warn("TrustedTypes policy "+G+" could not be created."),null}};function BO(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RO(),c=function(Wn){return BO(Wn)};if(c.version="2.3.8",c.removed=[],!a||!a.document||a.document.nodeType!==9)return c.isSupported=!1,c;var p=a.document,x=a.document,I=a.DocumentFragment,G=a.HTMLTemplateElement,se=a.Node,ge=a.Element,we=a.NodeFilter,ke=a.NamedNodeMap,ze=ke===void 0?a.NamedNodeMap||a.MozNamedAttrMap:ke,Ge=a.HTMLFormElement,ut=a.DOMParser,yt=a.trustedTypes,Ot=ge.prototype,Kt=tS(Ot,"cloneNode"),cn=tS(Ot,"nextSibling"),Ut=tS(Ot,"childNodes"),hn=tS(Ot,"parentNode");if(typeof G=="function"){var jn=x.createElement("template");jn.content&&jn.content.ownerDocument&&(x=jn.content.ownerDocument)}var Un=LO(yt,p),vn=Un?Un.createHTML(""):"",Pn=x,or=Pn.implementation,Hr=Pn.createNodeIterator,fr=Pn.createDocumentFragment,Wr=Pn.getElementsByTagName,dr=p.importNode,nr={};try{nr=k4(x).documentMode?x.documentMode:{}}catch{}var Mr={};c.isSupported=typeof hn=="function"&&or&&typeof or.createHTMLDocument!="undefined"&&nr!==9;var go=IO,ur=RU,co=LU,Ao=BU,qa=FU,Li=kR,Is=PU,hl=null,j1=ss({},[].concat(rp(SR),rp(kO),rp(OO),rp(MO),rp(TR))),Uf=null,GT=ss({}
123,[].concat(rp(AR),rp(DO),rp(nS),rp(rS))),uc=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K4=null,Y4=null,P9=!0,q4=!0,F9=!1,$d=!1,mp=!1,md=!1,$9=!1,Wy=!1,u8=!1,cc=!1,Hg=!0,Gy=!0,X4=!1,gp={},Ky=null,to=ss({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ka=null,zi=ss({},["audio","video","img","source","image","track"]),ol=null,zd=ss({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gd="http://www.w3.org/1998/Math/MathML",W1="http://www.w3.org/2000/svg",dh="http://www.w3.org/1999/xhtml",c8=dh,z9=!1,f8,YX=["application/xhtml+xml","text/html"],qX="text/html",Z4,d8=null,hwe=x.createElement("form"),Eae=function(Wn){return Wn instanceof RegExp||Wn instanceof Function},XX=function(Wn){d8&&d8===Wn||((!Wn||Ey(Wn)!=="object")&&(Wn={}),Wn=k4(Wn),hl="ALLOWED_TAGS"in Wn?ss({},Wn.ALLOWED_TAGS):j1,Uf="ALLOWED_ATTR"in Wn?ss({},Wn.ALLOWED_ATTR):GT,ol="ADD_URI_SAFE_ATTR"in Wn?ss(k4(zd),Wn.ADD_URI_SAFE_ATTR):zd,ka="ADD_DATA_URI_TAGS"in Wn?ss(k4(zi),Wn.ADD_DATA_URI_TAGS):zi,Ky="FORBID_CONTENTS"in Wn?ss({},Wn.FORBID_CONTENTS):to,K4="FORBID_TAGS"in Wn?ss({},Wn.FORBID_TAGS):{},Y4="FORBID_ATTR"in Wn?ss({},Wn.FORBID_ATTR):{},gp="USE_PROFILES"in Wn?Wn.USE_PROFILES:!1,P9=Wn.ALLOW_ARIA_ATTR!==!1,q4=Wn.ALLOW_DATA_ATTR!==!1,F9=Wn.ALLOW_UNKNOWN_PROTOCOLS||!1,$d=Wn.SAFE_FOR_TEMPLATES||!1,mp=Wn.WHOLE_DOCUMENT||!1,Wy=Wn.RETURN_DOM||!1,u8=Wn.RETURN_DOM_FRAGMENT||!1,cc=Wn.RETURN_TRUSTED_TYPE||!1,$9=Wn.FORCE_BODY||!1,Hg=Wn.SANITIZE_DOM!==!1,Gy=Wn.KEEP_CONTENT!==!1,X4=Wn.IN_PLACE||!1,Is=Wn.ALLOWED_URI_REGEXP||Is,c8=Wn.NAMESPACE||dh,Wn.CUSTOM_ELEMENT_HANDLING&&Eae(Wn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(uc.tagNameCheck=Wn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Wn.CUSTOM_ELEMENT_HANDLING&&Eae(Wn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(uc.attributeNameCheck=Wn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Wn.CUSTOM_ELEMENT_HANDLING&&typeof Wn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(uc.allowCustomizedBuiltInElements=Wn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),f8=YX.indexOf(Wn.PARSER_MEDIA_TYPE)===-1?f8=qX:f8=Wn.PARSER_MEDIA_TYPE,Z4=f8==="application/xhtml+xml"?function(_o){return _o}:eS,$d&&(q4=!1),u8&&(Wy=!0),gp&&(hl=ss({},rp(TR)),Uf=[],gp.html===!0&&(ss(hl,SR),ss(Uf,AR)),gp.svg===!0&&(ss(hl,kO),ss(Uf,DO),ss(Uf,rS)),gp.svgFilters===!0&&(ss(hl,OO),ss(Uf,DO),ss(Uf,rS)),gp.mathMl===!0&&(ss(hl,MO),ss(Uf,nS),ss(Uf,rS))),Wn.ADD_TAGS&&(hl===j1&&(hl=k4(hl)),ss(hl,Wn.ADD_TAGS)),Wn.ADD_ATTR&&(Uf===GT&&(Uf=k4(Uf)),ss(Uf,Wn.ADD_ATTR)),Wn.ADD_URI_SAFE_ATTR&&ss(ol,Wn.ADD_URI_SAFE_ATTR),Wn.FORBID_CONTENTS&&(Ky===to&&(Ky=k4(Ky)),ss(Ky,Wn.FORBID_CONTENTS)),Gy&&(hl["#text"]=!0),mp&&ss(hl,["html","head","body"]),hl.table&&(ss(hl,["tbody"]),delete K4.tbody),z1&&z1(Wn),d8=Wn)},Sae=ss({},["mi","mo","mn","ms","mtext"]),Tae=ss({},["foreignobject","desc","title","annotation-xml"]),pwe=ss({},["title","style","font","a","script"]),M$=ss({},kO);ss(M$,OO),ss(M$,IU);var ZX=ss({},MO);ss(ZX,NO);var mwe=function(Wn){var _o=hn(Wn);(!_o||!_o.tagName)&&(_o={namespaceURI:dh,tagName:"template"});var _a=eS(Wn.tagName),ou=eS(_o.tagName);return Wn.namespaceURI===W1?_o.namespaceURI===dh?_a==="svg":_o.namespaceURI===gd?_a==="svg"&&(ou==="annotation-xml"||Sae[ou]):Boolean(M$[_a]):Wn.namespaceURI===gd?_o.namespaceURI===dh?_a==="math":_o.namespaceURI===W1?_a==="math"&&Tae[ou]:Boolean(ZX[_a]):Wn.namespaceURI===dh?_o.namespaceURI===W1&&!Tae[ou]||_o.namespaceURI===gd&&!Sae[ou]?!1:!ZX[_a]&&(pwe[_a]||!M$[_a]):!1},Q4=function(Wn){S_(c.removed,{element:Wn});try{Wn.parentNode.removeChild(Wn)}catch{try{Wn.outerHTML=vn}catch{Wn.remove()}}},Aae=function(Wn,_o){try{S_(c.removed,{attribute:_o.getAttributeNode(Wn),from:_o})}catch{S_(c.removed,{attribute:null,from:_o})}if(_o.removeAttribute(Wn),Wn==="is"&&!Uf[Wn])if(Wy||u8)try{Q4(_o)}catch{}else try{_o.setAttribute(Wn,"")}catch{}},kae=function(Wn){var _o,_a;if($9)Wn="<remove></remove>"+Wn;else{var ou=OU(Wn,/^[\r\n\t ]+/);_a=ou&&ou[0]}f8==="application/xhtml+xml"&&(Wn='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Wn+"</body></html>");var u0=Un?Un.createHTML(Wn):Wn;if(c8===dh)try{_o=new ut().parseFromString(u0,f8)}catch{}if(!_o||!_o.documentElement){_o=or.createDocument(c8,"template",null);try{_o.documentElement.innerHTML=z9?"":u0}catch{}}var Av=_o.body||_o.documentElement;return Wn&&_a&&Av.insertBefore(x.createTextNode(_a),Av.childNodes[0]||null),
123c8===dh?Wr.call(_o,mp?"html":"body")[0]:mp?_o.documentElement:Av},Oae=function(Wn){return Hr.call(Wn.ownerDocument||Wn,Wn,we.SHOW_ELEMENT|we.SHOW_COMMENT|we.SHOW_TEXT,null,!1)},gwe=function(Wn){return Wn instanceof Ge&&(typeof Wn.nodeName!="string"||typeof Wn.textContent!="string"||typeof Wn.removeChild!="function"||!(Wn.attributes instanceof ze)||typeof Wn.removeAttribute!="function"||typeof Wn.setAttribute!="function"||typeof Wn.namespaceURI!="string"||typeof Wn.insertBefore!="function")},cD=function(Wn){return Ey(se)==="object"?Wn instanceof se:Wn&&Ey(Wn)==="object"&&typeof Wn.nodeType=="number"&&typeof Wn.nodeName=="string"},J4=function(Wn,_o,_a){!Mr[Wn]||kU(Mr[Wn],function(ou){ou.call(c,_o,_a,d8)})},Mae=function(Wn){var _o;if(J4("beforeSanitizeElements",Wn,null),gwe(Wn)||Ld(/[\u0080-\uFFFF]/,Wn.nodeName))return Q4(Wn),!0;var _a=Z4(Wn.nodeName);if(J4("uponSanitizeElement",Wn,{tagName:_a,allowedTags:hl}),Wn.hasChildNodes()&&!cD(Wn.firstElementChild)&&(!cD(Wn.content)||!cD(Wn.content.firstElementChild))&&Ld(/<[/\w]/g,Wn.innerHTML)&&Ld(/<[/\w]/g,Wn.textContent)||_a==="select"&&Ld(/<template/i,Wn.innerHTML))return Q4(Wn),!0;if(!hl[_a]||K4[_a]){if(!K4[_a]&&Dae(_a)&&(uc.tagNameCheck instanceof RegExp&&Ld(uc.tagNameCheck,_a)||uc.tagNameCheck instanceof Function&&uc.tagNameCheck(_a)))return!1;if(Gy&&!Ky[_a]){var ou=hn(Wn)||Wn.parentNode,u0=Ut(Wn)||Wn.childNodes;if(u0&&ou)for(var Av=u0.length,G1=Av-1;G1>=0;--G1)ou.insertBefore(Kt(u0[G1],!0),cn(Wn))}return Q4(Wn),!0}return Wn instanceof ge&&!mwe(Wn)||(_a==="noscript"||_a==="noembed")&&Ld(/<\/no(script|embed)/i,Wn.innerHTML)?(Q4(Wn),!0):($d&&Wn.nodeType===3&&(_o=Wn.textContent,_o=Sy(_o,go," "),_o=Sy(_o,ur," "),Wn.textContent!==_o&&(S_(c.removed,{element:Wn.cloneNode()}),Wn.textContent=_o)),J4("afterSanitizeElements",Wn,null),!1)},Nae=function(Wn,_o,_a){if(Hg&&(_o==="id"||_o==="name")&&(_a in x||_a in hwe))return!1;if(!(q4&&!Y4[_o]&&Ld(co,_o))){if(!(P9&&Ld(Ao,_o))){if(!Uf[_o]||Y4[_o]){if(!(Dae(Wn)&&(uc.tagNameCheck instanceof RegExp&&Ld(uc.tagNameCheck,Wn)||uc.tagNameCheck instanceof Function&&uc.tagNameCheck(Wn))&&(uc.attributeNameCheck instanceof RegExp&&Ld(uc.attributeNameCheck,_o)||uc.attributeNameCheck instanceof Function&&uc.attributeNameCheck(_o))||_o==="is"&&uc.allowCustomizedBuiltInElements&&(uc.tagNameCheck instanceof RegExp&&Ld(uc.tagNameCheck,_a)||uc.tagNameCheck instanceof Function&&uc.tagNameCheck(_a))))return!1}else if(!ol[_o]){if(!Ld(Is,Sy(_a,Li,""))){if(!((_o==="src"||_o==="xlink:href"||_o==="href")&&Wn!=="script"&&MU(_a,"data:")===0&&ka[Wn])){if(!(F9&&!Ld(qa,Sy(_a,Li,"")))){if(_a)return!1}}}}}}return!0},Dae=function(Wn){return Wn.indexOf("-")>0},Iae=function(Wn){var _o,_a,ou,u0;J4("beforeSanitizeAttributes",Wn,null);var Av=Wn.attributes;if(!!Av){var G1={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Uf};for(u0=Av.length;u0--;){_o=Av[u0];var N$=_o,vh=N$.name,Rae=N$.namespaceURI;if(_a=vh==="value"?_o.value:NU(_o.value),ou=Z4(vh),G1.attrName=ou,G1.attrValue=_a,G1.keepAttr=!0,G1.forceKeepAttr=void 0,J4("uponSanitizeAttribute",Wn,G1),_a=G1.attrValue,!G1.forceKeepAttr&&(Aae(vh,Wn),!!G1.keepAttr)){if(Ld(/\/>/i,_a)){Aae(vh,Wn);continue}$d&&(_a=Sy(_a,go," "),_a=Sy(_a,ur," "));var bwe=Z4(Wn.nodeName);if(!!Nae(bwe,ou,_a))try{Rae?Wn.setAttributeNS(Rae,vh,_a):Wn.setAttribute(vh,_a),ER(c.removed)}catch{}}}J4("afterSanitizeAttributes",Wn,null)}},ywe=function Ua(Wn){var _o,_a=Oae(Wn);for(J4("beforeSanitizeShadowDOM",Wn,null);_o=_a.nextNode();)J4("uponSanitizeShadowNode",_o,null),!Mae(_o)&&(_o.content instanceof I&&Ua(_o.content),Iae(_o));J4("afterSanitizeShadowDOM",Wn,null)};return c.sanitize=function(Ua,Wn){var _o,_a,ou,u0,Av;if(z9=!Ua,z9&&(Ua="<!-->"),typeof Ua!="string"&&!cD(Ua)){if(typeof Ua.toString!="function")throw AO("toString is not a function");if(Ua=Ua.toString(),typeof Ua!="string")throw AO("dirty is not a string, aborting")}if(!c.isSupported){if(Ey(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof Ua=="string")return a.toStaticHTML(Ua);if(cD(Ua))return a.toStaticHTML(Ua.outerHTML)}return Ua}if(md||XX(Wn),c.removed=[],typeof Ua=="string"&&(X4=!1),X4){if(Ua.nodeName){var G1=Z4(Ua.nodeName);if(!hl[G1]||K4[G1])throw AO("root node is forbidden and cannot be sanitized in-place")}}else if(Ua instanceof se)_o=kae("<!---->"),_a=_o.ownerDocument.importNode(Ua,!0),_a.nodeType===1&&_a.nodeName==="BODY"||_a.nodeName==="HTML"?_o=_a:_o.appendChild(_a);else{if(!Wy&&!$d&&!mp&&Ua.indexOf("<")===-1)return Un&&cc?Un.createHTML(Ua):Ua;if(_o=kae(Ua),!_o)return Wy?null:cc?vn:""}_o&&$9&&Q4(_o.firstChild);for(var N$=Oae(X4?Ua:_o);ou=N$.nextNode();)ou.nodeType===3&&ou===u0||Mae(ou)||(ou.content instanceof I&&ywe(ou.content),Iae(ou),u0=ou);if(u0=null,X4)return Ua;if(Wy){if(u8)for(Av=fr.call(_o.ownerDocument);_o.firstChild;)Av.appendChild(_o.firstChild);else Av=_o;return Uf.shadowroot&&(Av=dr.call(p,Av,!0)),Av}var vh=mp?_o.outerHTML:_o.innerHTML;return mp&&hl["!doctype"]&&_o.ownerDocument&&_o.ownerDocument.doctype&&_o.ownerDocument.doctype.name&&Ld($U,_o.ownerDocument.doctype.name)&&(vh="<!DOCTYPE "+_o.ownerDocument.doctype.name+`> 124`+vh),$d&&(vh=Sy(vh,go," "),vh=Sy(vh,ur," ")),Un&&cc?Un.createHTML(vh):vh},c.setConfig=function(Ua){XX(Ua),md=!0},c.clearConfig=function(){d8=null,md=!1},c.isValidAttribute=function(Ua,Wn,_o){d8||XX({});var _a=Z4(Ua),ou=Z4(Wn);return Nae(_a,ou,_o)},c.addHook=function(Ua,Wn){typeof Wn=="function"&&(Mr[Ua]=Mr[Ua]||[],S_(Mr[
124Ua],Wn))},c.removeHook=function(Ua){if(Mr[Ua])return ER(Mr[Ua])},c.removeHooks=function(Ua){Mr[Ua]&&(Mr[Ua]=[])},c.removeAllHooks=function(){Mr={}},c}var PO=BO(),oS=function(a){return PO().sanitize(a)},t0=tinymce.util.Tools.resolve("tinymce.util.I18n"),vm={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},aS="temporary-placeholder",FO=function(a){return function(){return En(a,aS).getOr("!not found!")}},$O=function(a,c){var p=a.toLowerCase();if(t0.isRtl()){var x=el(p,"-rtl");return zn(c,x)?x:p}else return p},OR=function(a,c){return En(c,$O(a,c))},MR=function(a,c){var p=c();return OR(a,p).getOrThunk(FO(p))},T_=function(a,c,p){var x=c();return OR(a,x).or(p).getOrThunk(FO(x))},NR=function(a){return t0.isRtl()?zn(vm,a):!1},zO=function(){return ba("add-focusable",[qo(function(a){l5(a.element,"svg").each(function(c){return ha(c,"focusable","false")})})])},DR=function(a,c,p,x){var I,G,se=NR(c)?["tox-icon--flip"]:[],ge=En(p,$O(c,p)).or(x).getOrThunk(FO(p));return{dom:{tag:a.tag,attributes:(I=a.attributes)!==null&&I!==void 0?I:{},classes:a.classes.concat(se),innerHtml:ge},behaviours:Rr(fe(fe([],(G=a.behaviours)!==null&&G!==void 0?G:[],!0),[zO()],!1))}},n0=function(a,c,p,x){return x===void 0&&(x=M.none()),DR(c,a,p(),x)},IR=function(a,c,p){var x=p(),I=lt(a,function(G){return zn(x,$O(G,x))});return DR(c,I.getOr(aS),x,M.none())},HO={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},zU=function(a){var c=Ii({dom:Mg("<p>"+oS(a.translationProvider(a.text))+"</p>"),behaviours:Rr([ra.config({})])}),p=function(yt){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+yt+"%"}}}},x=function(yt){return{dom:{tag:"div",classes:["tox-text"],innerHtml:yt+"%"}}},I=Ii({dom:{tag:"div",classes:a.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(0)]},x(0)],behaviours:Rr([ra.config({})])}),G=function(yt,Ot){yt.getSystem().isConnected()&&I.getOpt(yt).each(function(Kt){ra.set(Kt,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(Ot)]},x(Ot)])})},se=function(yt,Ot){if(yt.getSystem().isConnected()){var Kt=c.get(yt);ra.set(Kt,[wc(Ot)])}},ge={updateProgress:G,updateText:se},we=Fe([a.icon.toArray(),a.level.toArray(),a.level.bind(function(yt){return M.from(HO[yt])}).toArray()]),ke=Ii(Rd.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[n0("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":a.translationProvider("Close")}},a.iconProvider)],action:function(yt){a.onAction(yt)}})),ze=IR(we,{tag:"div",classes:["tox-notification__icon"]},a.iconProvider),Ge={dom:{tag:"div",classes:["tox-notification__body"]},components:[c.asSpec()],behaviours:Rr([ra.config({})])},ut=[ze,Ge];return{uid:a.uid,dom:{tag:"div",attributes:{role:"alert"},classes:a.level.map(function(yt){return["tox-notification","tox-notification--in","tox-notification--"+yt]}).getOr(["tox-notification","tox-notification--in"])},behaviours:Rr([oa.config({}),ba("notification-events",[sr(Vc(),function(yt){ke.getOpt(yt).each(oa.focus)})])]),components:ut.concat(a.progress?[I.asSpec()]:[]).concat(a.closeButton?[ke.asSpec()]:[]),apis:ge}},e9=u1({name:"Notification",factory:zU,configFields:[pi("level"),rr("progress"),rr("icon"),rr("onAction"),rr("text"),rr("iconProvider"),rr("translationProvider"),Wi("closeButton",!0)],apis:{updateProgress:function(a,c,p){a.updateProgress(c,p)},updateText:function(a,c,p){a.updateText(c,p)}}});function VO(a,c,p){var x=c.backstage.shared,I=function(ke){switch(ke){case"bc-bc":return xy;case"tc-tc":return lh;case"tc-bc":return ud;case"bc-tc":default:return tu}},G=function(ke){ke.length>0&&Te(ke,function(ze,Ge){Ge===0?ze.moveRel(null,"banner"):ze.moveRel(ke[Ge-1].getEl(),"bc-tc")})},se=function(ke,ze){var Ge=!ke.closeButton&&ke.timeout&&(ke.timeout>0||ke.timeout<0),ut=function(){ze(),Ki.hide(Ot)},yt=Us(e9.sketch({text:ke.text,level:ie(["success","error","warning","warn","info"],ke.type)?ke.type:void 0,progress:ke.progressBar===!0,icon:M.from(ke.icon),closeButton:!Ge,onAction:ut,iconProvider:x.providers.icons,translationProvider:x.providers.translate})),Ot=Us(Ki.sketch(V({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:x.getSink,fireDismissalEventInstead:{}},x.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));p.add(Ot),ke.timeout>0&&np.setTimeout(function(){ut()},ke.timeout);var Kt=function(){var cn=nl(Rt.fromDom(a.getContentAreaContainer())),Ut=bl(),hn=Dd(Ut.x,cn.x,cn.right),jn=Dd(Ut.y,cn.y,cn.bottom),Un=Math.max(cn.right,Ut.right),vn=Math.max(cn.bottom,Ut.bottom);return M.some(kl(hn,jn,Un-hn,vn-jn))};return{close:ut,moveTo:function(cn,Ut){Ki.showAt(Ot,s1(yt),{anch
124or:{type:"makeshift",x:cn,y:Ut}})},moveRel:function(cn,Ut){var hn=s1(yt),jn={maxHeightFunction:H2()};if(Ut!=="banner"&&y(cn)){var Un=I(Ut),vn={type:"node",root:di(),node:M.some(Rt.fromDom(cn)),overrides:jn,layouts:{onRtl:function(){return[Un]},onLtr:function(){return[Un]}}};Ki.showWithinBounds(Ot,hn,{anchor:vn},Kt)}else{var Pn=V(V({},x.anchors.banner()),{overrides:jn});Ki.showWithinBounds(Ot,hn,{anchor:Pn},Kt)}},text:function(cn){e9.updateText(yt,cn)},settings:ke,getEl:function(){return yt.element.dom},progressBar:{value:function(cn){e9.updateProgress(yt,cn)}}}},ge=function(ke){ke.close()},we=function(ke){return ke.settings};return{open:se,close:ge,reposition:G,getArgs:we}}var HU=function(a,c){var p=null,x=function(){f(p)||(clearTimeout(p),p=null)},I=function(){for(var G=[],se=0;se<arguments.length;se++)G[se]=arguments[se];f(p)&&(p=setTimeout(function(){p=null,a.apply(null,G)},c))};return{cancel:x,throttle:I}},iS=function(a,c){var p=null,x=function(){f(p)||(clearTimeout(p),p=null)},I=function(){for(var G=[],se=0;se<arguments.length;se++)G[se]=arguments[se];x(),p=setTimeout(function(){p=null,a.apply(null,G)},c)};return{cancel:x,throttle:I}},RR=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),VU=function(a,c){return a.isBlock(c)||ie(["BR","IMG","HR","INPUT"],c.nodeName)||a.getContentEditable(c)==="false"},LR=function(a,c,p,x,I){var G=RR(a,function(se){return VU(a,se)});return M.from(G.backwards(c,p,x,I))},UU="[data-mce-autocompleter]",jU=function(a,c){return sS(Rt.fromDom(a.selection.getNode())).getOrThunk(function(){var p=Rt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',a.getDoc());return Al(p,Rt.fromDom(c.extractContents())),c.insertNode(p.dom),Cs(p).each(function(x){return x.dom.normalize()}),V5(p).map(function(x){a.selection.setCursorLocation(x.dom,Ex(x))}),p})},sS=function(a){return D1(a,UU)},WU=function(a){return a.collapsed&&a.startContainer.nodeType===3},BR=function(a){return a.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},PR=function(a){return a!==""&&` \xA0\f 125\r \v`.indexOf(a)!==-1},A_=function(a,c){return a.substring(c.length)},FR=function(a,c,p){var x;for(x=c-1;x>=0;x--){var I=a.charAt(x);if(PR(I))return M.none();if(I===p)break}return M.some(x)},$R=function(a,c,p,x){if(x===void 0&&(x=0),!WU(c))return M.none();var I=function(se,ge,we){return FR(we,ge,p).getOr(ge)},G=a.getParent(c.startContainer,a.isBlock)||a.getRoot();return LR(a,c.startContainer,c.startOffset,I,G).bind(function(se){var ge=c.cloneRange();if(ge.setStart(se.container,se.offset),ge.setEnd(c.endContainer,c.endOffset),ge.collapsed)return M.none();var we=BR(ge),ke=we.lastIndexOf(p);return ke!==0||A_(we,p).length<x?M.none():M.some({text:A_(we,p),range:ge,triggerChar:p})})},UO=function(a,c,p,x){return x===void 0&&(x=0),sS(Rt.fromDom(c.startContainer)).fold(function(){return $R(a,c,p,x)},function(I){var G=a.createRng();G.selectNode(I.dom);var se=BR(G);return M.some({range:G,text:A_(se,p),triggerChar:p})})},GU=function(a,c){c.on("keypress compositionend",a.onKeypress.throttle),c.on("remove",a.onKeypress.cancel);var p=function(x,I){zo(x,m2(),{raw:I})};c.on("keydown",function(x){var I=function(){return a.getView().bind(ki.getHighlighted)};x.which===8&&a.onKeypress.throttle(x),a.isActive()&&(x.which===27&&a.cancelIfNecessary(),a.isMenuOpen()?x.which===13?(I().each(Tf),x.preventDefault()):x.which===40?(I().fold(function(){a.getView().each(ki.highlightFirst)},function(G){p(G,x)}),x.preventDefault(),x.stopImmediatePropagation()):(x.which===37||x.which===38||x.which===39)&&I().each(function(G){p(G,x),x.preventDefault(),x.stopImmediatePropagation()}):(x.which===13||x.which===38||x.which===40)&&a.cancelIfNecessary())}),c.on("NodeChange",function(x){a.isActive()&&!a.isProcessingAction()&&sS(Rt.fromDom(x.element)).isNone()&&a.cancelIfNecessary()})},jO={setup:GU},O4=tinymce.util.Tools.resolve("tinymce.util.Promise"),lS=function(a,c){return{container:a,offset:c}},zR=function(a){return a.nodeType===ft},HR=function(a){return a.nodeType===Yr},VR=function(a){if(zR(a))return lS(a,a.data.length);var c=a.childNodes;return c.length>0?VR(c[c.length-1]):lS(a,c.length)},uS=function(a,c){var p=a.childNodes;return p.length>0&&c<p.length?uS(p[c],0):p.length>0&&HR(a)&&p.length===c?VR(p[p.length-1]):lS(a,c)},KU=function(a,c){return LR(a,c.container,c.offset,function(p,x){return x===0?-1:x},a.getRoot()).filter(function(p){var x=p.container.data.charAt(p.offset-1);return!PR(x)}).isSome()},UR=function(a){return function(c){var p=uS(c.startContainer,c.startOffset);return!KU(a,p)}},jR=function(a,c,p){return vt(p.triggerChars,function(x){return UO(a,c,x)})},t9=function(a,c){var p=c(),x=a.selection.getRng();return jR(a.dom,x,p).bind(function(I){return WR(a,c,I)})},WR=function(a,c,p,x){x===void 0&&(x={});var I=c(),G=a.selection.getRng(),se=G.startContainer.nodeValue,ge=De(I.lookupByChar(p.triggerChar),function(ke){return p.text.length>=ke.minChars&&ke.matches.getOrThunk(function(){return UR(a.dom)})(p.range,se,p.text)});if(ge.length===0)return M.none();var we=O4.all(Ae(ge,function(ke){var ze=ke.fetch(p.text,ke.maxResults,x);return ze.then(function(Ge){return{matchText:p.text,items:Ge,columns:ke.columns,onAction:ke.onAction,highlightOn:ke.highlightOn}})}));return M.some({lookupData:we,context:p})},cS=Eo([ta("type"),ji("text")]),k_=function(a){return Ms("separatormenuitem",cS,a)},YU=Eo([fn("type","autocompleteitem"),fn("active",!1),fn("disabled",!1),fn("meta",{}),ta("value"),ji("text"),ji("icon")]),GR=Eo([ta("type"),ta("ch"),$c("minChars",1),fn("columns",1),$c("maxResults",10),Wv("matches"),Lu("fetch"),Lu("onAction"),kd("highlightOn",[],ds)]),KR=function(a){return Ms("Autocompleter.Separator",cS,a)},YR=function(a){return Ms("Autocompleter.Item",YU,a)},WO=function(a){return Ms("Autocompleter",GR,a)},O_=[Wi("disabled",!1),ji("tooltip"),ji("icon"),ji("text"),Gi("onSetup",function(){return T})],qU=Eo([ta("type"),Lu("onAction")].concat(O_)),qR=function(a){return Ms("toolbarbutton",qU,a)},M_=[Wi("active",!1)].concat(O_),XU=Eo(M_.concat([ta("type"),Lu("onAction")])),GO=function(a){return Ms("ToggleButton",XU,a)},M4=[Gi("predicate",Q),nc("scope","node",["node","editor"]),nc("position","selection",["node","selection","line"])],ZU=O_.concat([fn("type","contextformbutton"),fn("primary",!1),Lu("onAction"),Pc("original",A)]),QU=M_.concat([fn("type","contextformbutton"),fn("primary",!1),Lu("onAction"),Pc("original",A)]),JU=O_.concat([fn("type","contextformbutton")]
125),XR=M_.concat([fn("type","contextformtogglebutton")]),ZR=rd("type",{contextformbutton:ZU,contextformtogglebutton:QU}),ej=Eo([fn("type","contextform"),Gi("initValue",N("")),ji("label"),Bu("commands",ZR),e1("launch",rd("type",{contextformbutton:JU,contextformtogglebutton:XR}))].concat(M4)),tj=function(a){return Ms("ContextForm",ej,a)},nj=Eo([fn("type","contexttoolbar"),ta("items")].concat(M4)),rj=function(a){return Ms("ContextToolbar",nj,a)},oj=function(a){var c={};return Te(a,function(p){c[p]={}}),Tt(c)},fS=function(a){var c=a.ui.registry.getAll().popups,p=at(c,function(se){return WO(se).fold(function(ge){throw new Error(av(ge))},A)}),x=oj(_n(p,function(se){return se.ch})),I=pn(p),G=function(se){return De(I,function(ge){return ge.ch===se})};return{dataset:p,triggerChars:x,lookupByChar:G}},KO;(function(a){a[a.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",a[a.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(KO||(KO={}));var ap=KO,n9="tox-menu-nav__js",dS="tox-collection__item",YO="tox-swatch",QR={normal:n9,color:YO},qO="tox-collection__item--enabled",JR="tox-collection__group-heading",XO="tox-collection__item-icon",ZO="tox-collection__item-label",aj="tox-collection__item-accessory",eL="tox-collection__item-caret",ij="tox-collection__item-checkmark",N4="tox-collection__item--active",vS="tox-collection__item-container",tL="tox-collection__item-container--column",nL="tox-collection__item-container--row",rL="tox-collection__item-container--align-right",sj="tox-collection__item-container--align-left",lj="tox-collection__item-container--valign-top",uj="tox-collection__item-container--valign-middle",oL="tox-collection__item-container--valign-bottom",QO=function(a){return En(QR,a).getOr(n9)},aL=function(a){return a==="color"?"tox-swatches":"tox-menu"},JO=function(a){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:aL(a),tieredMenu:"tox-tiered-menu"}},N_=function(a){var c=JO(a);return{backgroundMenu:c.backgroundMenu,selectedMenu:c.selectedMenu,menu:c.menu,selectedItem:c.selectedItem,item:QO(a)}},cj=function(a,c,p){var x=JO(p);return{tag:"div",classes:Fe([[x.menu,"tox-menu-"+c+"-column"],a?[x.hasIcons]:[]])}},fj=[Ro.parts.items({})],hS=function(a,c,p){var x=JO(p),I={tag:"div",classes:Fe([[x.tieredMenu]])};return{dom:I,markers:N_(p)}},eM=function(a,c){return function(p){var x=be(p,c);return Ae(x,function(I){return{dom:a,components:I}})}},dj=function(a){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Ro.parts.items({preprocess:a!=="auto"?eM({tag:"div",classes:["tox-swatches__row"]},a):A})]}]}},vj=function(a){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Ro.parts.items({preprocess:eM({tag:"div",classes:["tox-collection__group"]},a)})]}},iL=function(a,c){var p=[],x=[];return Te(a,function(I,G){c(I,G)?(x.length>0&&p.push(x),x=[],zn(I.dom,"innerHtml")&&x.push(I)):x.push(I)}),x.length>0&&p.push(x),Ae(p,function(I){return{dom:{tag:"div",classes:["tox-collection__group"]},components:I}})},tM=function(a,c,p){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(a===1?["tox-collection--list"]:["tox-collection--grid"])},components:[Ro.parts.items({preprocess:function(x){return a!=="auto"&&a>1?eM({tag:"div",classes:["tox-collection__group"]},a)(x):iL(x,function(I,G){return c[G].type==="separator"})}})]}},hj=function(a,c){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Ro.parts.items({preprocess:function(p){return iL(p,function(x,I){return a[I].type==="separator"})}})]}},r9=function(a){return he(a,function(c){return"icon"in c&&c.icon!==void 0})},Ng=function(a){return console.error(av(a)),console.log(a),M.none()},pj=function(a,c,p,x,I){var G=hj(p);return{value:a,dom:G.dom,components:G.components,items:p}},nM=function(a,c,p,x,I){if(I==="color"){var G=dj(x);return{value:a,dom:G.dom,components:G.components,items:p}}if(I==="normal"&&x==="auto"){var G=tM(x,p);return{value:a,dom:G.dom,components:G.components,items:p}}if(I==="normal"&&x===1){var G=tM(1,p);return{value:a,dom:G.dom,components:G.components,items:p}}if(I==="normal"){var G=tM(x,p);return{value:a,dom:G.dom,components:G.components,items:p}}if(I==="listpreview"&&x!=="auto"){var G=vj(x);return{value:a,dom:G.dom,components:G.components,items:p}}return{value:a,dom:cj(c,x,I),components:fj,items:p}},mj=[ta("type"),ta("src"),ji("alt"),kd("classes",[],ds)],gj=Eo(mj),yj=[ta("type"),ta("text"),ji("name"),kd("classes",["tox-collection__item-label"],ds)],pS=Eo(yj),rM=xb(function(){return Oh("type",{cardimage:gj,cardtext:pS,cardcontainer:bj})}),bj=Eo([ta("type"),M0("direction","horizontal"),M0("align","left"),M0("valign","middle"),Bu("items",rM)]),D_=[Wi("disabled",!1),ji("text"),ji("shortcut"),Ol("value","value",Aa(function(){return so("menuitem-value")}),vi()),fn("meta",{})],_j=Eo([ta("type"),ji("label"),Bu("items",rM),Gi("onSetup",function(){return T}),Gi("onAction",T)].concat(D_)),wj=function(a){return Ms("cardmenuitem",_j,a)},Cj=Eo([ta("type"),Wi("active",!1),ji("icon")].concat(D_)),oM=function(a){return Ms("choicemenuitem",Cj,a)},aM=[ta("type"),ta("fancytype"),Gi("onAction",T)],sL=[fn("initData",{})].concat(aM),xj=[Sb("initData",{},[Wi("allowCustomColors",!0),Zc("colors",vi())])].concat(aM),iM=rd("fancytype",{inserttable:sL,colorswatch:xj}),Ej=function(a){return Ms("fancymenuitem",iM,a)},Sj=Eo([ta("type"),Gi("onSetup",function(){return T}),Gi("onAction",T),ji("icon")].concat(D_)),Tj=function(a){return Ms("menuitem",Sj,a)},Aj=Eo([ta("type"),Lu("getSubmenuItems"),Gi("onSetup",function(){return T}),ji("icon")].concat(D_)),kj=function(a){return Ms("nestedmenuitem",Aj,a)},Oj=Eo([ta("type"),ji("icon"),Wi("active",!1),Gi("onSetup",function(){return T}),Lu("onAction")].concat(D_)),Mj=function(a){return Ms("togglemenuitem",Oj,a)},sM=function(a,c,p){var x=of(a.element,"."+p);if(x.length>0){var I=ot(x,function(G){var se=G.dom.getBoundingClientRect().top,ge=x[0].dom.getBoundingClientRect().top;return Math.abs(se-ge)>c}).getOr(x.length);return M.some({numColumns:I,numRows:Math.ceil(x.length/I)})}else return M.none()},lL=function(a,c){return Rr([ba(a,c)])},Nj=function(a){return lL(so("unnamed-events"),a)},I_={namedEvents:lL,unnamedEvents:Nj},mS=so("tooltip.exclusive"),D4=so("tooltip.show"),R_=so("tooltip.hide"),uL=function(a,c,p){a.getSystem().broadcastOn([mS],{})},Dj=function(a,c,p,x){p.getTooltip().each(function(I){I.getSystem().isConnected()&&ra.set(I,x)})},gS=Object.freeze({__proto__:null,hideAllExclusive:uL,setComponents:Dj}),lM=function(a,c){var p=function(I){c.getTooltip().each(function(G){oh(G),a.onHide(I,G),c.clearTooltip()}),c.clearTimer()},x=function(I){if(!c.isShowing()){uL(I);var G=a.lazySink(I).getOrDie(),se=I.getSystem().build({dom:a.tooltipDom,components:a.tooltipComponents,events:Fi(a.mode==="normal"?[sr(n1(),function(ge){li(I,D4)}),sr(lv(),function(ge){li(I,R_)})]:[]),behaviours:Rr([ra.config({})])});c.setTooltip(se),cg(G,se),a.onShow(I,se),Cl.position(G,se,{anchor:a.anchor(I)})}};return Fi(Fe([[sr(D4,function(I){c.resetTimer(function(){x(I)},a.delay)}),sr(R_,function(I){c.resetTimer(function(){p(I)},a.delay)}),sr(Md(),function(I,G){var se=G;se.universal||ie(se.channels,mS)&&p(I)}),Uc(function(I){p(I)})],a.mode==="normal"?[sr(Vc(),function(I){li(I,D4)}),sr(F0(),function(I){li(I,R_)}),sr(n1(),function(I){li(I,D4)}),sr(lv(),function(I){li(I,R_)}
125)]:[sr(Nb(),function(I,G){li(I,D4)}),sr(C2(),function(I){li(I,R_)})]]))},yS=Object.freeze({__proto__:null,events:lM}),cL=[rr("lazySink"),rr("tooltipDom"),fn("exclusive",!0),fn("tooltipComponents",[]),fn("delay",300),nc("mode","normal",["normal","follow-highlight"]),fn("anchor",function(a){return{type:"hotspot",hotspot:a,layouts:{onLtr:N([tu,ud,jc,Rf,$u,Lf]),onRtl:N([tu,ud,jc,Rf,$u,Lf])}}}),xi("onHide"),xi("onShow")],Ij=function(){var a=wl(),c=wl(),p=function(){a.on(clearTimeout)},x=function(G,se){p(),a.set(setTimeout(G,se))},I=N("not-implemented");return tr({getTooltip:c.get,isShowing:c.isSet,setTooltip:c.set,clearTooltip:c.clear,clearTimer:p,resetTimer:x,readState:I})},Rj=Object.freeze({__proto__:null,init:Ij}),fL=Cu({fields:cL,name:"tooltipping",active:yS,state:Rj,apis:gS}),Lj=function(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},o9=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Bj=tinymce.util.Tools.resolve("tinymce.EditorManager"),Pj=function(a){var c=a.getParam("skin"),p=a.getParam("skin_url");if(c!==!1){var x=c||"oxide";p?p=a.documentBaseURI.toAbsolute(p):p=Bj.baseURL+"/skins/ui/"+x}return p},Fj=function(a){return a.getParam("readonly",!1,"boolean")},$j=function(a){return a.getParam("skin")===!1},dL=function(a){return a.getParam("height",Math.max(a.getElement().offsetHeight,200))},vL=function(a){return a.getParam("width",o9.DOM.getStyle(a.getElement(),"width"))},hL=function(a){return M.from(a.getParam("min_width")).filter(C)},pL=function(a){return M.from(a.getParam("min_height")).filter(C)},bS=function(a){return M.from(a.getParam("max_width")).filter(C)},mL=function(a){return M.from(a.getParam("max_height")).filter(C)},zj=function(a){return M.from(a.getParam("style_formats")).filter(u)},Dg=function(a){return a.getParam("style_formats_merge",!1,"boolean")},Hj=function(a){return a.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},Vj=function(a){return a.getParam("content_langs",void 0,"array")},uM=function(a){return a.getParam("removed_menuitems","")},zu=function(a){return a.getParam("menubar",!0,"boolean")!==!1},cM=function(a){var c=a.getParam("toolbar",!0),p=c===!0,x=i(c),I=u(c)&&c.length>0;return!_S(a)&&(I||x||p)},gL=function(a){var c=re(9,function(x){return a.getParam("toolbar"+(x+1),!1,"string")}),p=De(c,function(x){return typeof x=="string"});return p.length>0?M.some(p):M.none()},_S=function(a){return gL(a).fold(function(){var c=a.getParam("toolbar",[],"string[]");return c.length>0},$)},Cv;(function(a){a.default="wrap",a.floating="floating",a.sliding="sliding",a.scrolling="scrolling"})(Cv||(Cv={}));var a9=function(a){return a.getParam("toolbar_mode","","string")},I4;(function(a){a.auto="auto",a.top="top",a.bottom="bottom"})(I4||(I4={}));var Uj=function(a){return a.getParam("toolbar_groups",{},"object")},yL=function(a){return a.getParam("toolbar_location",I4.auto,"string")},bL=function(a){return yL(a)===I4.bottom},jj=function(a){return a.getParam("fixed_toolbar_container","","string")},Wj=function(a){return a.getParam("fixed_toolbar_container_target")},Gj=function(a){return a.getParam("toolbar_persist",!1,"boolean")},_L=function(a){if(!a.inline)return M.none();var c=jj(a);if(c.length>0)return bu(di(),c);var p=Wj(a);return y(p)?M.some(Rt.fromDom(p)):M.none()},wS=function(a){return a.inline&&_L(a).isSome()},wL=function(a){var c=_L(a);return c.getOrThunk(function(){return yr(So(Rt.fromDom(a.getElement())))})},CL=function(a){return a.inline&&!zu(a)&&!cM(a)&&!_S(a)},CS=function(a){var c=a.getParam("toolbar_sticky",!1,"boolean");return(c||a.inline)&&!wS(a)&&!CL(a)},Kj=function(a){return a.getParam("toolbar_sticky_offset",0,"number")},Yj=function(a){return a.getParam("draggable_modal",!1,"boolean")},qj=function(a){var c=a.getParam("menu");return c?at(c,function(p){return V(V({},p),{items:p.items})}):{}},Xj=function(a){return a.getParam("menubar")},Zj=function(a){return a.getParam("toolbar",!0)},Qj=function(a){return a.getParam("file_picker_callback")},Jj=function(a){return a.getParam("file_picker_types")},eW=function(a){return a.getParam("file_browser_callback_types")},tW=function(a){return a.getParam("typeahead_urls")===!1},xL=function(a){return a.getParam("anchor_top","#top")},nW=function(a){return a.getParam("anchor_bottom","#bottom")},rW=function(a){var c=a.getParam("file_picker_validator_handler",void 0,"function");return c===void 0?a.getParam("filepicker_validator_handler",void 0,"function"):c},fM="silver.readonly",EL=Eo([Pp("readonly")]),L_=function(a,c){var p=a.outerContainer,x=p.element;c&&(a.mothership.broadcastOn([dg()],{target:x}),a.uiMothership.broadcastOn([dg()],{target:x})),a.mothership.broadcastOn([fM],{readonly:c}),a.uiMothership.broadcastOn([fM],{readonly:c})},SL=function(a,c){a.on("init",function(){a.mode.isReadOnly()&&L_(c,!0)}),a.on("SwitchMode",function(){return L_(c,a.mode.isReadOnly())}),Fj(a)&&a.setMode("readonly")},Hu=function(){var a;return nf.config({channels:(a={},a[fM]={schema:EL,onReceive:function(c,p){Ho.set(c,p.readonly)}},a)})},oW=function(a){return Ho.config({disabled:a,disableClass:"tox-collection__item--state-disabled"})},TL=function(a){return Ho.config({disabled:a})},aW=function(a){return Ho.config({disabled:a,disableClass:"tox-tbtn--disabled"})},AL=function(a){return Ho.config({disabled:a,disableClass:"tox-tbtn--disabled",useNative:!1})},uh={item:oW,button:TL,splitButton:aW,toolbarButton:AL},xS=function(a,c){var p=a.getApi(c);return function(x){x(p)}},B_=function(a,c){return qo(function(p){var x=xS(a,p);x(function(I){var G=a.onSetup(I);w(G)&&c.set(G)})})},i9=function(a,c){return Uc(function(p){return xS(a,p)(c.get())})},dM,iW=function(a,c){return ef(function(p,x){xS(a,p)(a.onAction),!a.triggersSubmenu&&c===ap.CLOSE_ON_EXECUTE&&(li(p,Zv()),x.stop())})},sW=(dM={},dM[Sf()]=["disabling","alloy.base.behaviour","toggling","item-events"],dM),P_=Br,F_=function(a,c,p,x){var I=Oo(T);return{type:"item",dom:c.dom,components:P_(c.optComponents),data:a.data,eventOrder:sW,hasSubmenu:a.triggersSubmenu,itemBehaviours:Rr([ba("item-events",[iW(a,p),B_(a,I),i9(a,I)]),uh.item(function(){return a.disabled||x.isDisabled()}),Hu(),ra.config({})].concat(a.itemBehaviours))}},Ty=function(a){return{value:a.value,meta:V({text:a.text.getOr("")},a.meta)}},ES=tinymce.util.Tools.resolve("tinymce.Env"),lW=function(a){var c={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},p={meta:"Ctrl",access:"Shift+Alt"},x=ES.mac?c:p,I=a.split("+"),G=Ae(I,function(se){var ge=se.toLowerCase().trim();return zn(x,ge)?x[ge]:se});return ES.mac?G.join(""):G.join("+")},SS=function(a,c,p){return p===void 0&&(p=[XO]),n0(a,{tag:"div",classes:p},c)},kL=function(a){return{dom:{tag:"div",classes:[ZO]}
125,components:[wc(t0.translate(a))]}},OL=function(a,c){return{dom:{tag:"div",classes:c,innerHtml:a}}},vM=function(a,c){return{dom:{tag:"div",classes:[ZO]},components:[{dom:{tag:a.tag,styles:a.styles},components:[wc(t0.translate(c))]}]}},uW=function(a){return{dom:{tag:"div",classes:[aj],innerHtml:lW(a)}}},ML=function(a){return SS("checkmark",a,[ij])},cW=function(a){return SS("chevron-right",a,[eL])},fW=function(a){return SS("chevron-down",a,[eL])},hM=function(a,c){var p=a.direction==="vertical"?tL:nL,x=a.align==="left"?sj:rL,I=function(){switch(a.valign){case"top":return lj;case"middle":return uj;case"bottom":return oL}};return{dom:{tag:"div",classes:[vS,p,x,I()]},components:c}},dW=function(a,c,p){return{dom:{tag:"img",classes:c,attributes:{src:a,alt:p.getOr("")}}}},pM=function(a,c,p){var x="custom",I="remove",G=a.ariaLabel,se=a.value,ge=a.iconContent.map(function(ke){return T_(ke,c.icons,p)}),we=function(){var ke=YO,ze=ge.getOr(""),Ge=G.map(function(yt){return{title:c.translate(yt)}}).getOr({}),ut={tag:"div",attributes:Ge,classes:[ke]};return se===x?V(V({},ut),{tag:"button",classes:fe(fe([],ut.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:ze}):se===I?V(V({},ut),{classes:fe(fe([],ut.classes,!0),["tox-swatch--remove"],!1),innerHtml:ze}):V(V({},ut),{attributes:V(V({},ut.attributes),{"data-mce-color":se}),styles:{"background-color":se}})};return{dom:we(),optComponents:[]}},NL=function(a){var c=a.map(function(p){return{attributes:{title:t0.translate(p)}}}).getOr({});return V({tag:"div",classes:[n9,dS]},c)},DL=function(a,c,p,x){var I={tag:"div",classes:[XO]},G=function(ut){return n0(ut,I,c.icons,x)},se=function(){return M.some({dom:I})},ge=p?a.iconContent.map(G).orThunk(se):M.none(),we=a.checkMark,ke=M.from(a.meta).fold(function(){return kL},function(ut){return zn(ut,"style")?Z(vM,ut.style):kL}),ze=a.htmlContent.fold(function(){return a.textContent.map(ke)},function(ut){return M.some(OL(ut,[ZO]))}),Ge={dom:NL(a.ariaLabel),optComponents:[ge,ze,a.shortcutContent.map(uW),we,a.caret]};return Ge},s9=function(a,c,p,x){return x===void 0&&(x=M.none()),a.presets==="color"?pM(a,c,x):DL(a,c,p,x)},$_=function(a,c){return En(a,"tooltipWorker").map(function(p){return[fL.config({lazySink:c.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(x){return{type:"submenu",item:x,overrides:{maxHeightFunction:H2}}},mode:"follow-highlight",onShow:function(x,I){p(function(G){fL.setComponents(x,[X3({element:Rt.fromDom(G)})])})}})]}).getOr([])},vW=function(a){return o9.DOM.encode(a)},IL=function(a,c){var p=t0.translate(a),x=vW(p);if(c.length>0){var I=new RegExp(Lj(c),"gi");return x.replace(I,function(G){return'<span class="tox-autocompleter-highlight">'+G+"</span>"})}else return x},hW=function(a,c,p,x,I,G,se,ge){ge===void 0&&(ge=!0);var we=s9({presets:x,textContent:M.none(),htmlContent:p?a.text.map(function(ke){return IL(ke,c)}):M.none(),ariaLabel:a.text,iconContent:a.icon,shortcutContent:M.none(),checkMark:M.none(),caret:M.none(),value:a.value},se.providers,ge,a.icon);return F_({data:Ty(a),disabled:a.disabled,getApi:N({}),onAction:function(ke){return I(a.value,a.meta)},onSetup:N(T),triggersSubmenu:!1,itemBehaviours:$_(a.meta,se)},we,G,se.providers)},RL=function(a,c){return Ae(a,function(p){switch(p.type){case"cardcontainer":return hM(p,RL(p.items,c));case"cardimage":return dW(p.src,p.classes,p.alt);case"cardtext":var x=p.name.exists(function(G){return ie(c.cardText.highlightOn,G)}),I=x?M.from(c.cardText.matchText).getOr(""):"";return OL(IL(p.text,I),p.classes)}})},pW=function(a,c,p,x){var I=function(se){return{isDisabled:function(){return Ho.isDisabled(se)},setDisabled:function(ge){Ho.set(se,ge),Te(of(se.element,"*"),function(we){se.getSystem().getByDom(we).each(function(ke){ke.hasConfigured(Ho)&&Ho.set(ke,ge)})})}}},G={dom:NL(a.label),optComponents:[M.some({dom:{tag:"div",classes:[vS,nL]},components:RL(a.items,x)})]};return F_({data:Ty(V({text:M.none()},a)),disabled:a.disabled,getApi:I,onAction:a.onAction,onSetup:a.onSetup,triggersSubmenu:!1,itemBehaviours:M.from(x.itemBehaviours).getOr([])},G,c,p.providers)},mW=function(a,c,p,x,I,G,se,ge){ge===void 0&&(ge=!0);var we=function(ze){return{setActive:function(Ge){Qa.set(ze,Ge)},isActive:function(){return Qa.isOn(ze)},isDisabled:function(){return Ho.isDisabled(ze)},setDisabled:function(Ge){return Ho.set(ze,Ge)}}},ke=s9({presets:p,textContent:c?a.text:M.none(),htmlContent:M.none(),ariaLabel:a.text,iconContent:a.icon,shortcutContent:c?a.shortcut:M.none(),checkMark:c?M.some(ML(se.icons)):M.none(),caret:M.none(),value:a.value},se,ge);return qn(F_({data:Ty(a),disabled:a.disabled,getApi:we,onAction:function(ze){return x(a.value)},onSetup:function(ze){return ze.setActive(I),T},triggersSubmenu:!1,itemBehaviours:[]},ke,G,se),{toggling:{toggleClass:qO,toggleOnExecute:!1,selected:a.active}})},mM=gg(Se(),Pe()),LL=function(a){return{value:a}},BL=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,PL=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,FL=function(a){return BL.test(a)||PL.test(a)},gW=function(a){return Ai(a,"#").toUpperCase()},yW=function(a){return FL(a)?M.some({value:gW(a)}):M.none()},Ay=function(a){var c=a.value.replace(BL,function(p,x,I,G){return x+x+I+I+G+G});return{value:c}},bW=function(a){var c=Ay(a),p=PL.exec(c.value);return p===null?["FFFFFF","FF","FF","FF"]:p},gM=function(a){var c=a.toString(16);return(c.length===1?"0"+c:c).toUpperCase()},l9=function(a){var c=gM(a.red)+gM(a.green)+gM(a.blue);return LL(c)},TS=Math.min,$L=Math.max,z_=Math.round,_W=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,yM=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Ig=function(a,c,p,x){return{red:a,green:c,blue:p,alph
125a:x}},AS=function(a){var c=parseInt(a,10);return c.toString()===a&&c>=0&&c<=255},bM=function(a){var c,p,x,I=(a.hue||0)%360,G=a.saturation/100,se=a.value/100;if(G=$L(0,TS(G,1)),se=$L(0,TS(se,1)),G===0)return c=p=x=z_(255*se),Ig(c,p,x,1);var ge=I/60,we=se*G,ke=we*(1-Math.abs(ge%2-1)),ze=se-we;switch(Math.floor(ge)){case 0:c=we,p=ke,x=0;break;case 1:c=ke,p=we,x=0;break;case 2:c=0,p=we,x=ke;break;case 3:c=0,p=ke,x=we;break;case 4:c=ke,p=0,x=we;break;case 5:c=we,p=0,x=ke;break;default:c=p=x=0}return c=z_(255*(c+ze)),p=z_(255*(p+ze)),x=z_(255*(x+ze)),Ig(c,p,x,1)},u9=function(a){var c=bW(a),p=parseInt(c[1],16),x=parseInt(c[2],16),I=parseInt(c[3],16);return Ig(p,x,I,1)},kS=function(a,c,p,x){var I=parseInt(a,10),G=parseInt(c,10),se=parseInt(p,10),ge=parseFloat(x);return Ig(I,G,se,ge)},zL=function(a){if(a==="transparent")return M.some(Ig(0,0,0,0));var c=_W.exec(a);if(c!==null)return M.some(kS(c[1],c[2],c[3],"1"));var p=yM.exec(a);return p!==null?M.some(kS(p[1],p[2],p[3],p[4])):M.none()},HL=function(a){return"rgba("+a.red+","+a.green+","+a.blue+","+a.alpha+")"},VL=Ig(255,0,0,1),wW=function(a){return a.fire("SkinLoaded")},CW=function(a,c){return a.fire("SkinLoadError",c)},xW=function(a){return a.fire("ResizeEditor")},_M=function(a,c){return a.fire("ResizeContent",c)},EW=function(a,c){return a.fire("ScrollContent",c)},SW=function(a,c){return a.fire("TextColorChange",c)},c9=function(a,c,p){return{hue:a,saturation:c,value:p}},wM=function(a){var c=0,p=0,x=0,I=a.red/255,G=a.green/255,se=a.blue/255,ge=Math.min(I,Math.min(G,se)),we=Math.max(I,Math.max(G,se));if(ge===we)return x=ge,c9(0,0,x*100);var ke=I===ge?G-se:se===ge?I-G:se-I;return c=I===ge?3:se===ge?1:5,c=60*(c-ke/(we-ge)),p=(we-ge)/we,x=we,c9(Math.round(c),Math.round(p*100),Math.round(x*100))},TW=function(a){return wM(u9(a))},CM=function(a){return l9(bM(a))},AW=function(a){return yW(a).orThunk(function(){return zL(a).map(l9)}).getOrThunk(function(){var c=document.createElement("canvas");c.height=1,c.width=1;var p=c.getContext("2d");p.clearRect(0,0,c.width,c.height),p.fillStyle="#FFFFFF",p.fillStyle=a,p.fillRect(0,0,1,1);var x=p.getImageData(0,0,1,1).data,I=x[0],G=x[1],se=x[2],ge=x[3];return l9(Ig(I,G,se,ge))})},OS=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),MS="tinymce-custom-colors";function NS(a){a===void 0&&(a=10);var c=OS.getItem(MS),p=i(c)?JSON.parse(c):[],x=function(we){var ke=a-we.length;return ke<0?we.slice(0,a):we},I=x(p),G=function(we){ye(I,we).each(se),I.unshift(we),I.length>a&&I.pop(),OS.setItem(MS,JSON.stringify(I))},se=function(we){I.splice(we,1)},ge=function(){return I.slice(0)};return{add:G,state:ge}}var ic="choiceitem",DS=[{type:ic,text:"Light Green",value:"#BFEDD2"},{type:ic,text:"Light Yellow",value:"#FBEEB8"},{type:ic,text:"Light Red",value:"#F8CAC6"},{type:ic,text:"Light Purple",value:"#ECCAFA"},{type:ic,text:"Light Blue",value:"#C2E0F4"},{type:ic,text:"Green",value:"#2DC26B"},{type:ic,text:"Yellow",value:"#F1C40F"},{type:ic,text:"Red",value:"#E03E2D"},{type:ic,text:"Purple",value:"#B96AD9"},{type:ic,text:"Blue",value:"#3598DB"},{type:ic,text:"Dark Turquoise",value:"#169179"},{type:ic,text:"Orange",value:"#E67E23"},{type:ic,text:"Dark Red",value:"#BA372A"},{type:ic,text:"Dark Purple",value:"#843FA1"},{type:ic,text:"Dark Blue",value:"#236FA1"},{type:ic,text:"Light Gray",value:"#ECF0F1"},{type:ic,text:"Medium Gray",value:"#CED4D9"},{type:ic,text:"Gray",value:"#95A5A6"},{type:ic,text:"Dark Gray",value:"#7E8C8D"},{type:ic,text:"Navy Blue",value:"#34495E"},{type:ic,text:"Black",value:"#000000"},{type:ic,text:"White",value:"#ffffff"}],UL=NS(10),kW=function(a){for(var c=[],p=0;p<a.length;p+=2)c.push({text:a[p+1],value:"#"+AW(a[p]).value,type:"choiceitem"});return c},OW=function(a,c){return a.getParam("color_cols",c,"number")},jL=function(a){return a.getParam("custom_colors")!==!1},MW=function(a){return a.getParam("color_map")},xM=function(a){var c=MW(a);return c!==void 0?kW(c):DS},WL=function(){return Ae(UL.state(),function(a){return{type:ic,text:a,value:a}})},GL=function(a){UL.add(a)},EM="#000000",NW=function(a,c){var p;return a.dom.getParents(a.selection.getStart(),function(x){var I;(I=x.style[c==="forecolor"?"color":"background-color"])&&(p=p||I)}),M.from(p)},DW=function(a,c,p){a.undoManager.transact(function(){a.focus(),a.formatter.apply(c,{value:p}),a.nodeChanged()})},IW=function(a,c){a.undoManager.transact(function(){a.focus(),a.formatter.remove(c,{value:null},null,!0),a.nodeChanged()})},RW=function(a){a.addCommand("mceApplyTextcolor",function(c,p){DW(a,c,p)}),a.addCommand("mceRemoveTextcolor",function(c){IW(a,c)})},LW=function(a){return Math.max(5,Math.ceil(Math.sqrt(a)))},IS=function(a){var c=xM(a),p=LW(c.length);return OW(a,p)}
125,KL=function(a){var c="choiceitem",p={type:c,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},x={type:c,text:"Custom color",icon:"color-picker",value:"custom"};return a?[p,x]:[p]},RS=function(a,c,p,x){if(p==="custom"){var I=ZL(a);I(function(G){G.each(function(se){GL(se),a.execCommand("mceApplyTextcolor",c,se),x(se)})},EM)}else p==="remove"?(x(""),a.execCommand("mceRemoveTextcolor",c)):(x(p),a.execCommand("mceApplyTextcolor",c,p))},YL=function(a,c){return a.concat(WL().concat(KL(c)))},qL=function(a,c){return function(p){p(YL(a,c))}},SM=function(a,c,p){var x=c==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";a.setIconFill(x,p)},H_=function(a,c,p,x,I){a.ui.registry.addSplitButton(c,{tooltip:x,presets:"color",icon:c==="forecolor"?"text-color":"highlight-bg-color",select:function(G){var se=NW(a,p);return se.bind(function(ge){return zL(ge).map(function(we){var ke=l9(we).value;return ga(G.toLowerCase(),ke)})}).getOr(!1)},columns:IS(a),fetch:qL(xM(a),jL(a)),onAction:function(G){RS(a,p,I.get(),T)},onItemAction:function(G,se){RS(a,p,se,function(ge){I.set(ge),SW(a,{name:c,color:ge})})},onSetup:function(G){SM(G,c,I.get());var se=function(ge){ge.name===c&&SM(G,ge.name,ge.color)};return a.on("TextColorChange",se),function(){a.off("TextColorChange",se)}}})},XL=function(a,c,p,x){a.ui.registry.addNestedMenuItem(c,{text:x,icon:c==="forecolor"?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(I){RS(a,p,I.value,T)}}]}})},ZL=function(a){return function(c,p){var x=!1,I=function(ge){var we=ge.getData(),ke=we.colorpicker;x?(c(M.from(ke)),ge.close()):a.windowManager.alert(a.translate(["Invalid hex color code: {0}",ke]))},G=function(ge,we){we.name==="hex-valid"&&(x=we.value)},se={colorpicker:p};a.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:se,onAction:G,onSubmit:I,onClose:T,onCancel:function(){c(M.none())}})}},BW=function(a){RW(a);var c=Oo(EM),p=Oo(EM);H_(a,"forecolor","forecolor","Text color",c),H_(a,"backcolor","hilitecolor","Background color",p),XL(a,"forecolor","forecolor","Text color"),XL(a,"backcolor","hilitecolor","Background color")},V_=function(a,c,p,x,I,G,se,ge){var we=r9(c),ke=I!=="color"?"normal":"color",ze=PW(c,p,x,ke,G,se,ge);return nM(a,we,ze,x,I)},PW=function(a,c,p,x,I,G,se){return Br(Ae(a,function(ge){return ge.type==="choiceitem"?oM(ge).fold(Ng,function(we){return M.some(mW(we,p===1,x,c,G(ge.value),I,se,r9(a)))}):M.none()}))},LS=function(a,c){var p=N_(c);if(a===1)return{mode:"menu",moveOnTab:!0};if(a==="auto")return{mode:"grid",selector:"."+p.item,initSize:{numColumns:1,numRows:1}};var x=c==="color"?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+x}},QL=function(a,c){return a===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:a==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:c==="color"?".tox-swatches__row":".tox-collection__group",cell:c==="color"?"."+YO:"."+dS}}},FW=function(a,c){var p=$W(a,c),x=c.colorinput.getColorCols(),I="color",G=V_(so("menu-value"),p,function(ge){a.onAction({value:ge})},x,I,ap.CLOSE_ON_EXECUTE,Q,c.shared.providers),se=V(V({},G),{markers:N_(I),movement:LS(x,I)});return{type:"widget",data:{value:so("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[mM.widget(Ro.sketch(se))]}},$W=function(a,c){var p=a.initData.allowCustomColors&&c.colorinput.hasCustomColors();return a.initData.colors.fold(function(){return YL(c.colorinput.getColors(),p)},function(x){return x.concat(KL(p))})},JL=so("cell-over"),eB=so("cell-execute"),zW=function(a,c,p){var x,I=function(ge){return zo(ge,JL,{row:a,col:c})},G=function(ge){return zo(ge,eB,{row:a,col:c})},se=function(ge,we){we.stop(),G(ge)};return Us({dom:{tag:"div",attributes:(x={role:"button"},x["aria-labelledby"]=p,x)},behaviours:Rr([ba("insert-table-picker-cell",[sr(n1(),oa.focus),sr(Sf(),G),sr(P0(),se),sr(Ih(),se)]),Qa.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),oa.config({onFocus:I})])})},HW=function(a,c,p){for(var x=[],I=0;I<c;I++){for(var G=[],se=0;se<p;se++)G.push(zW(I,se,a));x.push(G)}return x},VW=function(a,c,p,x,I){for(var G=0;G<x;G++)for(var se=0;se<I;se++)Qa.set(a[G][se],G<=c&&se<=p)},UW=function(a){return We(a,function(c){return Ae(c,s1)})},tB=function(a,c){return wc(c+"x"+a)},R4=function(a){var c=10,p=10,x=so("size-label"),I=HW(x,c,p),G=tB(0,
1250),se=Ii({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:x}},components:[G],behaviours:Rr([ra.config({})])});return{type:"widget",data:{value:so("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[mM.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:UW(I).concat(se.asSpec()),behaviours:Rr([ba("insert-table-picker",[qo(function(ge){ra.set(se.get(ge),[G])}),ms(JL,function(ge,we,ke){var ze=ke.event,Ge=ze.row,ut=ze.col;VW(I,Ge,ut,c,p),ra.set(se.get(ge),[tB(Ge+1,ut+1)])}),ms(eB,function(ge,we,ke){var ze=ke.event,Ge=ze.row,ut=ze.col;a.onAction({numRows:Ge+1,numColumns:ut+1}),li(ge,Zv())})]),No.config({initSize:{numRows:c,numColumns:p},mode:"flatgrid",selector:'[role="button"]'})])})]}},jW={inserttable:R4,colorswatch:FW},WW=function(a,c){return En(jW,a.fancytype).map(function(p){return p(a,c)})},GW=function(a,c,p,x,I){x===void 0&&(x=!0),I===void 0&&(I=!1);var G=I?fW(p.icons):cW(p.icons),se=function(we){return{isDisabled:function(){return Ho.isDisabled(we)},setDisabled:function(ke){return Ho.set(we,ke)}}},ge=s9({presets:"normal",iconContent:a.icon,textContent:a.text,htmlContent:M.none(),ariaLabel:a.text,caret:M.some(G),checkMark:M.none(),shortcutContent:a.shortcut},p,x);return F_({data:Ty(a),getApi:se,disabled:a.disabled,onAction:T,onSetup:a.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ge,c,p)},KW=function(a,c,p,x){x===void 0&&(x=!0);var I=function(se){return{isDisabled:function(){return Ho.isDisabled(se)},setDisabled:function(ge){return Ho.set(se,ge)}}},G=s9({presets:"normal",iconContent:a.icon,textContent:a.text,htmlContent:M.none(),ariaLabel:a.text,caret:M.none(),checkMark:M.none(),shortcutContent:a.shortcut},p,x);return F_({data:Ty(a),getApi:I,disabled:a.disabled,onAction:a.onAction,onSetup:a.onSetup,triggersSubmenu:!1,itemBehaviours:[]},G,c,p)},BS=function(a){var c=a.text.fold(function(){return{}},function(p){return{innerHtml:p}});return{type:"separator",dom:V({tag:"div",classes:[dS,JR]},c),components:[]}},nB=function(a,c,p,x){x===void 0&&(x=!0);var I=function(se){return{setActive:function(ge){Qa.set(se,ge)},isActive:function(){return Qa.isOn(se)},isDisabled:function(){return Ho.isDisabled(se)},setDisabled:function(ge){return Ho.set(se,ge)}}},G=s9({iconContent:a.icon,textContent:a.text,htmlContent:M.none(),ariaLabel:a.text,checkMark:M.some(ML(p.icons)),caret:M.none(),shortcutContent:a.shortcut,presets:"normal",meta:a.meta},p,x);return qn(F_({data:Ty(a),disabled:a.disabled,getApi:I,onAction:a.onAction,onSetup:a.onSetup,triggersSubmenu:!1,itemBehaviours:[]},G,c,p),{toggling:{toggleClass:qO,toggleOnExecute:!1,selected:a.active}})},rB=hW,oB=BS,YW=KW,qW=GW,XW=nB,ZW=WW,QW=pW,f9;(function(a){a[a.ContentFocus=0]="ContentFocus",a[a.UiFocus=1]="UiFocus"})(f9||(f9={}));var aB=function(a,c,p,x,I){var G=p.shared.providers,se=function(ge){return I?V(V({},ge),{shortcut:M.none(),icon:ge.text.isSome()?M.none():ge.icon}):ge};switch(a.type){case"menuitem":return Tj(a).fold(Ng,function(ge){return M.some(YW(se(ge),c,G,x))});case"nestedmenuitem":return kj(a).fold(Ng,function(ge){return M.some(qW(se(ge),c,G,x,I))});case"togglemenuitem":return Mj(a).fold(Ng,function(ge){return M.some(XW(se(ge),c,G,x))});case"separator":return k_(a).fold(Ng,function(ge){return M.some(oB(ge))});case"fancymenuitem":return Ej(a).fold(Ng,function(ge){return ZW(se(ge),p)});default:return console.error("Unknown item in general menu",a),M.none()}},JW=function(a,c,p,x,I,G,se){var ge=x===1,we=!ge||r9(a);return Br(Ae(a,function(ke){switch(ke.type){case"separator":return KR(ke).fold(Ng,function(ze){return M.some(oB(ze))});case"cardmenuitem":return wj(ke).fold(Ng,function(ze){return M.some(QW(V(V({},ze),{onAction:function(Ge){ze.onAction(Ge),p(ze.value,ze.meta)}}),I,G,{itemBehaviours:$_(ze.meta,G),cardText:{matchText:c,highlightOn:se}}))});case"autocompleteitem":default:return YR(ke).fold(Ng,function(ze){return M.some(rB(ze,c,ge,"normal",p,I,G,we))})}}))},iB=function(a,c,p,x,I){var G=r9(c),se=Br(Ae(c,function(we){var ke=function(Ge){return I?!zn(Ge,"text"):G},ze=function(Ge){return aB(Ge,p,x,ke(Ge),I)};return we.type==="nestedmenuitem"&&we.getSubmenuItems().length<=0?ze(V(V({},we),{disabled:!0})):ze(we)})),ge=I?pj:nM;
125return ge(a,G,se,1,"normal")},sB=function(a){return $i.singleData(a.value,a)},lB=function(a,c,p,x){var I=p===f9.ContentFocus?iE():u4(),G=LS(c,x),se=N_(x);return{dom:a.dom,components:a.components,items:a.items,value:a.value,markers:{selectedItem:se.selectedItem,item:se.item},movement:G,fakeFocus:p===f9.ContentFocus,focusManager:I,menuBehaviours:I_.unnamedEvents(c!=="auto"?[]:[qo(function(ge,we){sM(ge,4,se.item).each(function(ke){var ze=ke.numColumns,Ge=ke.numRows;No.setGridSize(ge,Ge,ze)})})])}},ip=function(a,c){var p=wl(),x=Oo(!1),I=Us(Ki.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:Rr([ba("dismissAutocompleter",[sr(o1(),function(){return we()})])]),lazySink:c.getSink})),G=function(){return Ki.isOpen(I)},se=function(){return p.get().isSome()},ge=function(){se()&&Ki.hide(I)},we=function(){if(se()){var Ut=p.get().map(function(hn){return hn.element});sS(Ut.getOr(Rt.fromDom(a.selection.getNode()))).each(Yd),ge(),p.clear(),x.set(!1)}},ke=On(function(){return fS(a)}),ze=function(Ut,hn){var jn=vt(hn,function(Un){return M.from(Un.columns)}).getOr(1);return We(hn,function(Un){var vn=Un.items;return JW(vn,Un.matchText,function(Pn,or){var Hr=a.selection.getRng();UO(a.dom,Hr,Ut).fold(function(){return console.error("Lost context. Cursor probably moved")},function(fr){var Wr=fr.range,dr={hide:function(){we()},reload:function(nr){ge(),Ot(nr)}};x.set(!0),Un.onAction(dr,Wr,Pn,or),x.set(!1)})},jn,ap.BUBBLE_TO_SANDBOX,c,Un.highlightOn)})},Ge=function(Ut){if(!se()){var hn=jU(a,Ut.range);p.set({triggerChar:Ut.triggerChar,element:hn,matchLength:Ut.text.length}),x.set(!1)}},ut=function(Ut,hn,jn,Un){Ut.matchLength=hn.text.length;var vn=vt(jn,function(Pn){return M.from(Pn.columns)}).getOr(1);Ki.showAt(I,Ro.sketch(lB(nM("autocompleter-value",!0,Un,vn,"normal"),vn,f9.ContentFocus,"normal")),{anchor:{type:"node",root:Rt.fromDom(a.getBody()),node:M.from(Ut.element)}}),Ki.getContent(I).each(ki.highlightFirst)},yt=function(Ut){return p.get().map(function(hn){return UO(a.dom,a.selection.getRng(),hn.triggerChar).bind(function(jn){return WR(a,ke,jn,Ut)})}).getOrThunk(function(){return t9(a,ke)})},Ot=function(Ut){yt(Ut).fold(we,function(hn){Ge(hn.context),hn.lookupData.then(function(jn){p.get().map(function(Un){var vn=hn.context;if(Un.triggerChar===vn.triggerChar){var Pn=ze(vn.triggerChar,jn);Pn.length>0?ut(Un,vn,jn,Pn):vn.text.length-Un.matchLength>=10?we():ge()}})})})},Kt=iS(function(Ut){Ut.which!==27&&Ot()},50),cn={onKeypress:Kt,cancelIfNecessary:we,isMenuOpen:G,isActive:se,isProcessingAction:x.get,getView:function(){return Ki.getContent(I)}};a.hasPlugin("rtc")===!1&&jO.setup(cn,a)},ky={register:ip},d9=function(a,c,p){return D1(a,c,p).isSome()},TM=function(a,c){var p=null,x=function(){for(var G=[],se=0;se<arguments.length;se++)G[se]=arguments[se];p=setTimeout(function(){a.apply(null,G),p=null},c)},I=function(){p!==null&&(clearTimeout(p),p=null)};return{cancel:I,schedule:x}},AM=5,PS=400,uB=function(a){var c=a.raw;return c.touches===void 0||c.touches.length!==1?M.none():M.some(c.touches[0])},kM=function(a,c){var p=Math.abs(a.clientX-c.x),x=Math.abs(a.clientY-c.y);return p>AM||x>AM},OM=function(a){var c=wl(),p=Oo(!1),x=TM(function(ke){a.triggerEvent(y2(),ke),p.set(!0)},PS),I=function(ke){return uB(ke).each(function(ze){x.cancel();var Ge={x:ze.clientX,y:ze.clientY,target:ke.target};x.schedule(ke),p.set(!1),c.set(Ge)}),M.none()},G=function(ke){return x.cancel(),uB(ke).each(function(ze){c.on(function(Ge){kM(ze,Ge)&&c.clear()})}),M.none()},se=function(ke){x.cancel();var ze=function(Ge){return fi(Ge.target,ke.target)};return c.get().filter(ze).map(function(Ge){return p.get()?(ke.prevent(),!1):a.triggerEvent(Ih(),ke)})},ge=Yv([{key:A1(),value:I},{key:Od(),value:G},{key:qv(),value:se}]),we=function(ke,ze){return En(ge,ze).bind(function(Ge){return Ge(ke)})};return{fireIfReady:we}},MM=function(a){var c=a.raw;return c.which===e_[0]&&!ie(["input","textarea"],Bt(a.target))&&!d9(a.target,'[contenteditable="true"]')},cB=function(){return Io().browser.isFirefox()},eG=function(a,c){return cB()?y6(a,"focus",c):Dl(a,"focusin",c)},tG=function(a,c){return cB()?y6(a,"blur",c):Dl(a,"focusout",c)},FS=function(a,c){var p=V({stopBackspace:!0},c),x=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],I=OM(p),G=Ae(x.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),function(yt){return Dl(a,yt,function(Ot){I.fireIfReady(Ot,yt).each(function(cn){cn&&Ot.kill()});var Kt=p.triggerEvent(yt,Ot);Kt&&Ot.kill()})}),se=wl(),ge=Dl(a,"paste",function(yt){I.fireIfReady(yt,"paste").each(function(Kt){Kt&&yt.kill()});var Ot=p.triggerEvent("paste",yt);Ot&&yt.kill(),se.set(setTimeout(function(){p.triggerEvent(g2(),yt)},0))}),we=Dl(a,"keydown",function(yt){var Ot=p.triggerEvent("keydown",yt);Ot?yt.kill():p.stopBackspace&&MM(yt)&&yt.prevent()}),ke=eG(a,function(yt){var Ot=p.triggerEvent("focusin",yt);Ot&&yt.kill()}),ze=wl(),Ge=tG(a,function(yt){var Ot=p.triggerEvent("focusout",yt);Ot&&yt.kill(),ze.set(setTimeout(function(){p.triggerEvent(F0(),yt)},0))}),ut=function(){Te(G,function(yt){yt.unbind()}),we.unbind(),ke.unbind(),Ge.unbind(),ge.unbind(),se.on(clearTimeout),ze.on(clearTimeout)};return{unbind:ut}},fB=function(a,c){var p=En(a,"target").getOr(c);return Oo(p)},nG=function(a,c){var p=Oo(!1),x=Oo(!1),I=function(){p.set(!0)},G=function(){x.set(!0)};return{stop:I,cut:G,isStopped:p.get,isCut:x.get,event:a,setSource:c.set,getSource:c.get}},rG=function(a){var c=Oo(!1),p=function(){c.set(!0)};return{stop:p,cut:T,isStopped:c.get,isCut:Q,event:a,setSource:Y("Cannot set source of a broadcasted event"),getSource:Y("Cannot get source of a broadcasted event")}},U_=Ef.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),dB=function(a,c,p,x,I,G){var se=a(c,x),ge=nG(p,I);return se.fold(function(){return G.logEventNoHandlers(c,x),U_.complete()},function(we){var ke=we.descHandler,ze=fl(ke);return ze(ge),ge.isStopped()?(G.logEventStopped(c,we.element,ke.purpose),U_.stopped()):ge.isCut()?(G.logEventCut(c,we.element,ke.purpose),U_.complete()):Cs(we.element).fold(function(){return G.logNoParent(c,we.element,ke.purpose),U_.complete()},function(Ge){return G.logEventResponse(c,we.element,ke.purpose),U_.resume(Ge)})})},NM=function(a,c,p,x,I,G){return dB(a,c,p,x,I,G).fold($,function(se){return NM(a,c,p,se,I,G)},Q)},oG=function(a,c,p,x,I){var G=fB(p,x);return dB(a,c,p,x,G,I)},aG=function(a,c,p){var x=rG(c);return Te(a,function(I){var G=I.descHandler,se=fl(G);se(x)}),x.isStopped()},vB=function(a,c,p,x){return hB(a,c,p,p.target,x)},hB=function(a,c,p,x,I){var G=fB(p,x);return NM(a,c,p,x,G,I)},iG=function(a,c){return{element:a,descHandler:c}},pB=function(a,c){return{id:a,descHandler:c}},mB=function(){var a={},c=function(se,ge,we){xt(we,function(ke,ze){var Ge=a[ze]!==void 0?a[ze]:{};Ge[ge]=mu(ke,se),a[ze]=Ge})},p=function(se,ge){return b(ge).bind(function(we){return En(se,we)}).map(function(we){return iG(ge,we)})},x=function(se){return En(a,se).map(function(ge){return _n(ge,function(we,ke){return pB(ke,we)}
125)}).getOr([])},I=function(se,ge,we){return En(a,ge).bind(function(ke){return I0(we,function(ze){return p(ke,ze)},se)})},G=function(se){xt(a,function(ge,we){zn(ge,se)&&delete ge[se]})};return{registerId:c,unregisterId:G,filterByType:x,find:I}},sG=function(){var a=mB(),c={},p=function(ke){var ze=ke.element;return b(ze).getOrThunk(function(){return G3("uid-",ke.element)})},x=function(ke,ze){var Ge=c[ze];if(Ge===ke)G(ke);else throw new Error('The tagId "'+ze+'" is already used by: '+ei(Ge.element)+` 126Cannot use it for: `+ei(ke.element)+` 127The conflicting element is`+(Vo(Ge.element)?" ":" not ")+"already in the DOM")},I=function(ke){var ze=p(ke);nn(c,ze)&&x(ke,ze);var Ge=[ke];a.registerId(Ge,ze,ke.events),c[ze]=ke},G=function(ke){b(ke.element).each(function(ze){delete c[ze],a.unregisterId(ze)})},se=function(ke){return a.filterByType(ke)},ge=function(ke,ze,Ge){return a.find(ke,ze,Ge)},we=function(ke){return En(c,ke)};return{find:ge,filter:se,register:I,unregister:G,getById:we}},lG=function(a){var c=a.dom,p=c.attributes,x=K(c,["attributes"]);return{uid:a.uid,dom:V({tag:"div",attributes:V({role:"presentation"},p)},x),components:a.components,behaviours:ly(a.containerBehaviours),events:a.events,domModification:a.domModification,eventOrder:a.eventOrder}},$f=u1({name:"Container",factory:lG,configFields:[fn("components",[]),xu("containerBehaviours",[]),fn("events",{}),fn("domModification",{}),fn("eventOrder",{})]}),gB=function(a){var c=function(Ut){return Cs(a.element).fold($,function(hn){return fi(Ut,hn)})},p=sG(),x=function(Ut,hn){return p.find(c,Ut,hn)},I=FS(a.element,{triggerEvent:function(Ut,hn){return c5(Ut,hn.target,function(jn){return vB(x,Ut,hn,jn)})}}),G={debugInfo:N("real"),triggerEvent:function(Ut,hn,jn){c5(Ut,hn,function(Un){return hB(x,Ut,jn,hn,Un)})},triggerFocus:function(Ut,hn){b(Ut).fold(function(){Jv(Ut)},function(jn){c5(Dh(),Ut,function(Un){return oG(x,Dh(),{originator:hn,kill:T,prevent:T,target:Ut},Ut,Un),!1})})},triggerEscape:function(Ut,hn){G.triggerEvent("keydown",Ut.element,hn.event)},getByUid:function(Ut){return Kt(Ut)},getByDom:function(Ut){return cn(Ut)},build:Us,addToGui:function(Ut){we(Ut)},removeFromGui:function(Ut){ke(Ut)},addToWorld:function(Ut){se(Ut)},removeFromWorld:function(Ut){ge(Ut)},broadcast:function(Ut){ut(Ut)},broadcastOn:function(Ut,hn){yt(Ut,hn)},broadcastEvent:function(Ut,hn){Ot(Ut,hn)},isConnected:$},se=function(Ut){Ut.connect(G),St(Ut.element)||(p.register(Ut),Te(Ut.components(),se),G.triggerEvent(Rh(),Ut.element,{target:Ut.element}))},ge=function(Ut){St(Ut.element)||(Te(Ut.components(),ge),p.unregister(Ut)),Ut.disconnect()},we=function(Ut){cg(a,Ut)},ke=function(Ut){oh(Ut)},ze=function(){I.unbind(),bc(a.element)},Ge=function(Ut){var hn=p.filter(Md());Te(hn,function(jn){var Un=jn.descHandler,vn=fl(Un);vn(Ut)})},ut=function(Ut){Ge({universal:!0,data:Ut})},yt=function(Ut,hn){Ge({universal:!1,channels:Ut,data:hn})},Ot=function(Ut,hn){var jn=p.filter(Ut);return aG(jn,hn)},Kt=function(Ut){return p.getById(Ut).fold(function(){return ya.error(new Error('Could not find component with uid: "'+Ut+'" in system.'))},ya.value)},cn=function(Ut){var hn=b(Ut).getOr("not found");return Kt(hn)};return se(a),{root:a,element:a.element,destroy:ze,add:we,remove:ke,getByUid:Kt,getByDom:cn,addToWorld:se,removeFromWorld:ge,broadcast:ut,broadcastOn:yt,broadcastEvent:Ot}},uG=function(a,c){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:Ae(a.items,c.interpreter)}},$S=N([fn("prefix","form-field"),xu("fieldBehaviours",[Wa,zr])]),Bd=N([L1({schema:[rr("dom")],name:"label"}),L1({factory:{sketch:function(a){return{uid:a.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:a.text}}}},schema:[rr("text")],name:"aria-descriptor"}),Tc({factory:{sketch:function(a){var c=D0(a,["factory"]);return a.factory.sketch(c)}},schema:[rr("factory")],name:"field"})]),yB=function(a,c,p,x){var I=oc(a.fieldBehaviours,[Wa.config({find:function(ge){return ns(ge,a,"field")}}),zr.config({store:{mode:"manual",getValue:function(ge){return Wa.getCurrent(ge).bind(zr.getValue)},setValue:function(ge,we){Wa.getCurrent(ge).each(function(ke){zr.setValue(ke,we)})}}})]),G=Fi([qo(function(ge,we){var ke=jx(ge,a,["label","field","aria-descriptor"]);ke.field().each(function(ze){var Ge=so(a.prefix);ke.label().each(function(ut){ha(ut.element,"for",Ge),ha(ze.element,"id",Ge)}),ke["aria-descriptor"]().each(function(ut){var yt=so(a.prefix);ha(ut.element,"id",yt),ha(ze.element,"aria-describedby",yt)}
127)})})]),se={getField:function(ge){return ns(ge,a,"field")},getLabel:function(ge){return ns(ge,a,"label")}};return{uid:a.uid,dom:a.dom,components:c,behaviours:I,events:G,apis:se}},Ei=Pf({name:"FormField",configFields:$S(),partFields:Bd(),factory:yB,apis:{getField:function(a,c){return a.getField(c)},getLabel:function(a,c){return a.getLabel(c)}}}),cG=function(a,c){return no({attributes:Yv([{key:c.tabAttr,value:"true"}])})},fG=Object.freeze({__proto__:null,exhibit:cG}),dG=[fn("tabAttr","data-alloy-tabstop")],Il=Cu({fields:dG,name:"tabstopping",active:fG}),bB=tinymce.util.Tools.resolve("tinymce.html.Entities"),v9=function(a,c,p,x){var I=_B(a,c,p,x);return Ei.sketch(I)},vG=function(a,c){return v9(a,c,[],[])},_B=function(a,c,p,x){return{dom:DM(p),components:a.toArray().concat([c]),fieldBehaviours:Rr(x)}},hG=function(){return DM([])},DM=function(a){return{tag:"div",classes:["tox-form__group"].concat(a)}},Rg=function(a,c){return Ei.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:c.translate(a)}})},H1=so("form-component-change"),h9=so("form-close"),L4=so("form-cancel"),hm=so("form-action"),p9=so("form-submit"),IM=so("form-block"),RM=so("form-unblock"),Oy=so("form-tabchange"),wB=so("form-resize"),pG=function(a,c){var p,x=a.label.map(function(Ge){return Rg(Ge,c)}),I=function(Ge){return function(ut,yt){D1(yt.event.target,"[data-collection-item-value]").each(function(Ot){Ge(ut,yt,Ot,ps(Ot,"data-collection-item-value"))})}},G=function(Ge,ut){var yt=Ae(ut,function(cn){var Ut=t0.translate(cn.text),hn=a.columns===1?'<div class="tox-collection__item-label">'+Ut+"</div>":"",jn='<div class="tox-collection__item-icon">'+cn.icon+"</div>",Un={_:" "," - ":" ","-":" "},vn=Ut.replace(/\_| \- |\-/g,function(or){return Un[or]}),Pn=c.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+Pn+'" tabindex="-1" data-collection-item-value="'+bB.encodeAllRaw(cn.value)+'" title="'+vn+'" aria-label="'+vn+'">'+jn+hn+"</div>"}),Ot=a.columns!=="auto"&&a.columns>1?be(yt,a.columns):[yt],Kt=Ae(Ot,function(cn){return'<div class="tox-collection__group">'+cn.join("")+"</div>"});cv(Ge.element,Kt.join(""))},se=I(function(Ge,ut,yt,Ot){ut.stop(),c.isDisabled()||zo(Ge,hm,{name:a.name,value:Ot})}),ge=[sr(n1(),I(function(Ge,ut,yt){Jv(yt)})),sr(P0(),se),sr(Ih(),se),sr(Vc(),I(function(Ge,ut,yt){bu(Ge.element,"."+N4).each(function(Ot){eu(Ot,N4)}),yu(yt,N4)})),sr(qs(),I(function(Ge){bu(Ge.element,"."+N4).each(function(ut){eu(ut,N4)})})),ef(I(function(Ge,ut,yt,Ot){zo(Ge,hm,{name:a.name,value:Ot})}))],we=function(Ge,ut){return Ae(of(Ge.element,".tox-collection__item"),ut)},ke=Ei.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(a.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:A},behaviours:Rr([Ho.config({disabled:c.isDisabled,onDisabled:function(Ge){we(Ge,function(ut){yu(ut,"tox-collection__item--state-disabled"),ha(ut,"aria-disabled",!0)})},onEnabled:function(Ge){we(Ge,function(ut){eu(ut,"tox-collection__item--state-disabled"),zs(ut,"aria-disabled")})}}),Hu(),ra.config({}),zr.config({store:{mode:"memory",initialValue:[]},onSetValue:function(Ge,ut){G(Ge,ut),a.columns==="auto"&&sM(Ge,5,"tox-collection__item").each(function(yt){var Ot=yt.numRows,Kt=yt.numColumns;No.setGridSize(Ge,Ot,Kt)}),li(Ge,wB)}}),Il.config({}),No.config(QL(a.columns,"normal")),ba("collection-events",ge)]),eventOrder:(p={},p[Sf()]=["disabling","alloy.base.behaviour","collection-events"],p)}),ze=["tox-form__group--collection"];return v9(x,ke,ze,[])},Lg=N([pi("data"),fn("inputAttributes",{}),fn("inputStyles",{}),fn("tag","input"),fn("inputClasses",[]),xi("onSetValue"),fn("styles",{}),fn("eventOrder",{}),xu("inputBehaviours",[zr,oa]),fn("selectOnFocus",!0)]),CB=function(a){return Rr([oa.config({onFocus:a.selectOnFocus?function(c){var p=c.element,x=$h(p);p.dom.setSelectionRange(0,x.length)}:T})])},mG=function(a){return V(V({},CB(a)),oc(a.inputBehaviours,[zr.config({store:V(V({mode:"manual"},a.data.map(function(c){return{initialValue:c}}).getOr({})),{getValue:function(c){return $h(c.element)},setValue:function(c,p){var x=$h(c.element);x!==p&&O2(c.element,p)}}),onSetValue:a.onSetValue})]))},xv=function(a){return{tag:a.tag,attributes:V({type:"text"},a.inputAttributes),styles:a.inputStyles,classes:a.inputClasses}},xB=function(a,c){return{uid:a.uid,dom:xv(a),components:[],behaviours:mG(a),eventOrder:
127a.eventOrder}},j_=u1({name:"Input",configFields:Lg(),factory:xB}),EB={},SB={exports:EB};(function(a,c,p,x){(function(I,G){typeof c=="object"&&typeof p!="undefined"?p.exports=G():typeof a=="function"&&a.amd?a(G):(I=typeof globalThis!="undefined"?globalThis:I||self,I.EphoxContactWrapper=G())})(this,function(){var I=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof oi!="undefined"?oi:typeof self!="undefined"?self:{},G={exports:{}};(function(ke){(function(ze){var Ge=setTimeout;function ut(){}function yt(vn,Pn){return function(){vn.apply(Pn,arguments)}}function Ot(vn){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof vn!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Un(vn,this)}function Kt(vn,Pn){for(;vn._state===3;)vn=vn._value;if(vn._state===0){vn._deferreds.push(Pn);return}vn._handled=!0,Ot._immediateFn(function(){var or=vn._state===1?Pn.onFulfilled:Pn.onRejected;if(or===null){(vn._state===1?cn:Ut)(Pn.promise,vn._value);return}var Hr;try{Hr=or(vn._value)}catch(fr){Ut(Pn.promise,fr);return}cn(Pn.promise,Hr)})}function cn(vn,Pn){try{if(Pn===vn)throw new TypeError("A promise cannot be resolved with itself.");if(Pn&&(typeof Pn=="object"||typeof Pn=="function")){var or=Pn.then;if(Pn instanceof Ot){vn._state=3,vn._value=Pn,hn(vn);return}else if(typeof or=="function"){Un(yt(or,Pn),vn);return}}vn._state=1,vn._value=Pn,hn(vn)}catch(Hr){Ut(vn,Hr)}}function Ut(vn,Pn){vn._state=2,vn._value=Pn,hn(vn)}function hn(vn){vn._state===2&&vn._deferreds.length===0&&Ot._immediateFn(function(){vn._handled||Ot._unhandledRejectionFn(vn._value)});for(var Pn=0,or=vn._deferreds.length;Pn<or;Pn++)Kt(vn,vn._deferreds[Pn]);vn._deferreds=null}function jn(vn,Pn,or){this.onFulfilled=typeof vn=="function"?vn:null,this.onRejected=typeof Pn=="function"?Pn:null,this.promise=or}function Un(vn,Pn){var or=!1;try{vn(function(Hr){or||(or=!0,cn(Pn,Hr))},function(Hr){or||(or=!0,Ut(Pn,Hr))})}catch(Hr){if(or)return;or=!0,Ut(Pn,Hr)}}Ot.prototype.catch=function(vn){return this.then(null,vn)},Ot.prototype.then=function(vn,Pn){var or=new this.constructor(ut);return Kt(this,new jn(vn,Pn,or)),or},Ot.all=function(vn){var Pn=Array.prototype.slice.call(vn);return new Ot(function(or,Hr){if(Pn.length===0)return or([]);var fr=Pn.length;function Wr(nr,Mr){try{if(Mr&&(typeof Mr=="object"||typeof Mr=="function")){var go=Mr.then;if(typeof go=="function"){go.call(Mr,function(ur){Wr(nr,ur)},Hr);return}}Pn[nr]=Mr,--fr===0&&or(Pn)}catch(ur){Hr(ur)}}for(var dr=0;dr<Pn.length;dr++)Wr(dr,Pn[dr])})},Ot.resolve=function(vn){return vn&&typeof vn=="object"&&vn.constructor===Ot?vn:new Ot(function(Pn){Pn(vn)})},Ot.reject=function(vn){return new Ot(function(Pn,or){or(vn)})},Ot.race=function(vn){return new Ot(function(Pn,or){for(var Hr=0,fr=vn.length;Hr<fr;Hr++)vn[Hr].then(Pn,or)})},Ot._immediateFn=typeof setImmediate=="function"?function(vn){setImmediate(vn)}:function(vn){Ge(vn,0)},Ot._unhandledRejectionFn=function(Pn){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",Pn)},Ot._setImmediateFn=function(Pn){Ot._immediateFn=Pn},Ot._setUnhandledRejectionFn=function(Pn){Ot._unhandledRejectionFn=Pn},ke.exports?ke.exports=Ot:ze.Promise||(ze.Promise=Ot)})(I)})(G);var se=G.exports,ge=function(){return typeof window!="undefined"?window:Function("return this;")()}(),we={boltExport:ge.Promise||se};return we})})(void 0,EB,SB);var r0=SB.exports.boltExport,LM=function(a){var c=M.none(),p=[],x=function(ke){return LM(function(ze){I(function(Ge){ze(ke(Ge))})})},I=function(ke){se()?we(ke):p.push(ke)},G=function(ke){se()||(c=M.some(ke),ge(p),p=[])},se=function(){return c.isSome()},ge=function(ke){Te(ke,we)},we=function(ke){c.each(function(ze){setTimeout(function(){ke(ze)},0)})};return a(G),{get:I,map:x,isReady:se}},TB=function(a){return LM(function(c){c(a)})},gG={nu:LM,pure:TB},yG=function(a){setTimeout(function(){throw a},0)},W_=function(a){var c=function(we){a().then(we,yG)},p=function(we){return W_(function(){return a().then(we)})},x=function(we){return W_(function(){return a().then(function(ke){return we(ke).toProm
127ise()})})},I=function(we){return W_(function(){return a().then(function(){return we.toPromise()})})},G=function(){return gG.nu(c)},se=function(){var we=null;return W_(function(){return we===null&&(we=a()),we})},ge=a;return{map:p,bind:x,anonBind:I,toLazy:G,toCached:se,toPromise:ge,get:c}},BM=function(a){return W_(function(){return new r0(a)})},bG=function(a){return W_(function(){return r0.resolve(a)})},lf={nu:BM,pure:bG},_G=["input","textarea"],AB=function(a){var c=Bt(a);return ie(_G,c)},kB=function(a,c){var p=c.getRoot(a).getOr(a.element);eu(p,c.invalidClass),c.notify.each(function(x){AB(a.element)&&ha(a.element,"aria-invalid",!1),x.getContainer(a).each(function(I){cv(I,x.validHtml)}),x.onValid(a)})},OB=function(a,c,p,x){var I=c.getRoot(a).getOr(a.element);yu(I,c.invalidClass),c.notify.each(function(G){AB(a.element)&&ha(a.element,"aria-invalid",!0),G.getContainer(a).each(function(se){cv(se,x)}),G.onInvalid(a,x)})},MB=function(a,c,p){return c.validator.fold(function(){return lf.pure(ya.value(!0))},function(x){return x.validate(a)})},zS=function(a,c,p){return c.notify.each(function(x){x.onValidate(a)}),MB(a,c).map(function(x){return a.getSystem().isConnected()?x.fold(function(I){return OB(a,c,p,I),ya.error(I)},function(I){return kB(a,c),ya.value(I)}):ya.error("No longer in system")})},NB=function(a,c){var p=c.getRoot(a).getOr(a.element);return Nf(p,c.invalidClass)},wG=Object.freeze({__proto__:null,markValid:kB,markInvalid:OB,query:MB,run:zS,isInvalid:NB}),CG=function(a,c){return a.validator.map(function(p){return Fi([sr(p.onEvent,function(x){zS(x,a,c).get(A)})].concat(p.validateOnLoad?[qo(function(x){zS(x,a,c).get(T)})]:[]))}).getOr({})},xG=Object.freeze({__proto__:null,events:CG}),EG=[rr("invalidClass"),fn("getRoot",M.none),Qc("notify",[fn("aria","alert"),fn("getContainer",M.none),fn("validHtml",""),xi("onValid"),xi("onInvalid"),xi("onValidate")]),Qc("validator",[rr("validate"),fn("onEvent","input"),fn("validateOnLoad",!0)])],pm=Cu({fields:EG,name:"invalidating",active:xG,apis:wG,extra:{validation:function(a){return function(c){var p=zr.getValue(c);return lf.pure(a(p))}}}}),DB=function(a,c,p,x){return p.getOrCreate(a,c,x)},IB=Object.freeze({__proto__:null,getCoupled:DB}),RB=[Fc("others",cl(ya.value,vi()))],HS=function(){var a={},c=function(x,I,G){var se=Tt(I.others);if(se)return En(a,G).getOrThunk(function(){var ge=En(I.others,G).getOrDie("No information found for coupled component: "+G),we=ge(x),ke=x.getSystem().build(we);return a[G]=ke,ke});throw new Error("Cannot find coupled component: "+G+". Known coupled components: "+JSON.stringify(se,null,2))},p=N({});return tr({readState:p,getOrCreate:c})},SG=Object.freeze({__proto__:null,init:HS}),Wl=Cu({fields:RB,name:"coupling",apis:IB,state:SG}),LB=N("sink"),BB=N(L1({name:LB(),overrides:N({dom:{tag:"div"},behaviours:Rr([Cl.config({useFixed:$})]),events:Fi([H0(m2()),H0(t1()),H0(P0())])})})),sp;(function(a){a[a.HighlightFirst=0]="HighlightFirst",a[a.HighlightNone=1]="HighlightNone"})(sp||(sp={}));var PB=function(a,c){var p=a.getHotspot(c).getOr(c),x="hotspot",I=a.getAnchorOverrides();return a.layouts.fold(function(){return{type:x,hotspot:p,overrides:I}},function(G){return{type:x,hotspot:p,overrides:I,layouts:G}})},VS=function(a,c,p){var x=a.fetch;return x(p).map(c)},TG=function(a,c,p,x,I,G,se){var ge=VS(a,c,x),we=FM(x,a);return ge.map(function(ke){return ke.bind(function(ze){return M.from($i.sketch(V(V({},G.menu()),{uid:k(""),data:ze,highlightImmediately:se===sp.HighlightFirst,onOpenMenu:function(Ge,ut){var yt=we().getOrDie();Cl.position(yt,ut,{anchor:p}),ti.decloak(I)},onOpenSubmenu:function(Ge,ut,yt){var Ot=we().getOrDie();Cl.position(Ot,yt,{anchor:{type:"submenu",item:ut}}),ti.decloak(I)},onRepositionMenu:function(Ge,ut,yt){var Ot=we().getOrDie();Cl.position(Ot,ut,{anchor:p}),Te(yt,function(Kt){Cl.position(Ot,Kt.triggeredMenu,{anchor:{type:"submenu",item:Kt.triggeringItem}})})},onEscape:function(){return oa.focus(x),ti.close(I),M.some(!0)}})))})})},PM=function(a,c,p,x,I,G,se){var ge=PB(a,p),we=TG(a,c,ge,p,x,I,se);return we.map(function(ke){return ke.fold(function(){ti.isOpen(x)&&ti.close(x)},function(ze){ti.cloak(x),ti.open(x,ze),G(x)}),x})},Bg=function(a,c,p,x,I,G,se){return ti.close(x),lf.pure(x)},G_=function(a,c,p,x,I,G){var se=Wl.getCoupled(p,"sandbox"),ge=ti.isOpen(se),we=ge?Bg:PM;return we(a,c,p,se,x,I,G)},K_=function(a,c,p){var x=Wa.getCurrent(c).getOr(c),I=Ou(a.element);p?Jo(x.element,"min-width",I+"px"):ed(x.element,I)},FM=function(a,c){return a.getSystem().getByUid(c.uid+"-"+LB()).map(function(p){return function(){return ya.value(p)}}).getOrThunk(function(){return c.lazySink.fold(function(){return function(){return ya.error(new Error("No internal sink is specified, nor could an external sink be found"))}},function(p){return function(){return p(a)}})})},US=function(a){ti.getState(a).each(function(c){$i.repositionMenus(c)})}
127,$M=function(a,c,p){var x=Xm(),I=function(ge,we){var ke=PB(a,c);x.link(c.element),a.matchWidth&&K_(ke.hotspot,we,a.useMinWidth),a.onOpen(ke,ge,we),p!==void 0&&p.onOpen!==void 0&&p.onOpen(ge,we)},G=function(ge,we){x.unlink(c.element),p!==void 0&&p.onClose!==void 0&&p.onClose(ge,we)},se=FM(c,a);return{dom:{tag:"div",classes:a.sandboxClasses,attributes:{id:x.id,role:"listbox"}},behaviours:R1.augment(a.sandboxBehaviours,[zr.config({store:{mode:"memory",initialValue:c}}),ti.config({onOpen:I,onClose:G,isPartOf:function(ge,we,ke){return Zm(we,ke)||Zm(c,ke)},getAttachPoint:function(){return se().getOrDie()}}),Wa.config({find:function(ge){return ti.getState(ge).bind(function(we){return Wa.getCurrent(we)})}}),nf.config({channels:V(V({},dd({isExtraPart:Q})),vg({doReposition:US}))})])}},FB=function(a){var c=Wl.getCoupled(a,"sandbox");US(c)},zM=function(){return[fn("sandboxClasses",[]),R1.field("sandboxBehaviours",[Wa,nf,ti,zr])]},$B=N([rr("dom"),rr("fetch"),xi("onOpen"),_u("onExecute"),fn("getHotspot",M.some),fn("getAnchorOverrides",N({})),qp(),xu("dropdownBehaviours",[Qa,Wl,No,oa]),rr("toggleClass"),fn("eventOrder",{}),pi("lazySink"),fn("matchWidth",!1),fn("useMinWidth",!1),pi("role")].concat(zM())),AG=N([l1({schema:[Qm()],name:"menu",defaults:function(a){return{onExecute:a.onExecute}}}),BB()]),jS=function(a,c,p,x){var I,G=function(ze){return En(a.dom,"attributes").bind(function(Ge){return En(Ge,ze)})},se=function(ze){ti.getState(ze).each(function(Ge){$i.highlightPrimary(Ge)})},ge=function(ze){var Ge=se;G_(a,A,ze,x,Ge,sp.HighlightFirst).get(T)},we={expand:function(ze){Qa.isOn(ze)||G_(a,A,ze,x,T,sp.HighlightNone).get(T)},open:function(ze){Qa.isOn(ze)||G_(a,A,ze,x,T,sp.HighlightFirst).get(T)},isOpen:Qa.isOn,close:function(ze){Qa.isOn(ze)&&G_(a,A,ze,x,T,sp.HighlightFirst).get(T)},repositionMenus:function(ze){Qa.isOn(ze)&&FB(ze)}},ke=function(ze,Ge){return Tf(ze),M.some(!0)};return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.dropdownBehaviours,[Qa.config({toggleClass:a.toggleClass,aria:{mode:"expanded"}}),Wl.config({others:{sandbox:function(ze){return $M(a,ze,{onOpen:function(){return Qa.on(ze)},onClose:function(){return Qa.off(ze)}})}}}),No.config({mode:"special",onSpace:ke,onEnter:ke,onDown:function(ze,Ge){if(o0.isOpen(ze)){var ut=Wl.getCoupled(ze,"sandbox");se(ut)}else o0.open(ze);return M.some(!0)},onEscape:function(ze,Ge){return o0.isOpen(ze)?(o0.close(ze),M.some(!0)):M.none()}}),oa.config({})]),events:C_(M.some(ge)),eventOrder:V(V({},a.eventOrder),(I={},I[Sf()]=["disabling","toggling","alloy.base.behaviour"],I)),apis:we,domModification:{attributes:V(V({"aria-haspopup":"true"},a.role.fold(function(){return{}},function(ze){return{role:ze}})),a.dom.tag==="button"?{type:G("type").getOr("button")}:{})}}},o0=Pf({name:"Dropdown",configFields:$B(),partFields:AG(),factory:jS,apis:{open:function(a,c){return a.open(c)},expand:function(a,c){return a.expand(c)},close:function(a,c){return a.close(c)},isOpen:function(a,c){return a.isOpen(c)},repositionMenus:function(a,c){return a.repositionMenus(c)}}}),Ev=function(){return no({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},kG=function(){return Fi([E2(Ob(),$)])},OG=Object.freeze({__proto__:null,events:kG,exhibit:Ev}),Y_=Cu({fields:[],name:"unselecting",active:OG}),zB=function(a,c){return o0.sketch({dom:a.dom,components:a.components,toggleClass:"mce-active",dropdownBehaviours:Rr([uh.button(c.providers.isDisabled),Hu(),Y_.config({}),Il.config({})]),layouts:a.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:c.getSink,fetch:function(p){return lf.nu(function(x){return a.fetch(x)}).map(function(x){return M.from(sB(qn(V_(so("menu-value"),x,function(I){a.onItemAction(p,I)},a.columns,a.presets,ap.CLOSE_ON_EXECUTE,Q,c.providers),{movement:LS(a.columns,a.presets)})))})},parts:{menu:hS(!1,1,a.presets)}})},HB=so("color-input-change"),VB=so("color-swatch-change"),UB=so("color-picker-cancel"),MG=function(a,c,p){var x=Ei.parts.field({factory:j_,inputClasses:["tox-textfield"],onSetValue:function(we){return pm.run(we).get(T)},inputBehaviours:Rr([Ho.config({disabled:c.providers.isDisabled}),Hu(),Il.config({}
127),pm.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(we){return Cs(we.element)},notify:{onValid:function(we){var ke=zr.getValue(we);zo(we,HB,{color:ke})}},validator:{validateOnLoad:!1,validate:function(we){var ke=zr.getValue(we);if(ke.length===0)return lf.pure(ya.value(!0));var ze=Rt.fromTag("span");Jo(ze,"background-color",ke);var Ge=ll(ze,"background-color").fold(function(){return ya.error("blah")},function(ut){return ya.value(ke)});return lf.pure(Ge)}}})]),selectOnFocus:!1}),I=a.label.map(function(we){return Rg(we,c.providers)}),G=function(we,ke){zo(we,VB,{value:ke})},se=function(we,ke){ge.getOpt(we).each(function(ze){ke==="custom"?p.colorPicker(function(Ge){Ge.fold(function(){return li(ze,UB)},function(ut){G(ze,ut),GL(ut)})},"#ffffff"):ke==="remove"?G(ze,""):G(ze,ke)})},ge=Ii(zB({dom:{tag:"span",attributes:{"aria-label":c.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[$u,jc,tu]},onLtr:function(){return[jc,$u,tu]}},components:[],fetch:qL(p.getColors(),p.hasCustomColors()),columns:p.getColorCols(),presets:"color",onItemAction:se},c));return Ei.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:I.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[x,ge.asSpec()]}]),fieldBehaviours:Rr([ba("form-field-events",[sr(HB,function(we,ke){ge.getOpt(we).each(function(ze){Jo(ze.element,"background-color",ke.event.color)}),zo(we,H1,{name:a.name})}),sr(VB,function(we,ke){Ei.getField(we).each(function(ze){zr.setValue(ze,ke.event.value),Wa.getCurrent(we).each(oa.focus)})}),sr(UB,function(we,ke){Ei.getField(we).each(function(ze){Wa.getCurrent(we).each(oa.focus)})})])])})},NG=L1({schema:[rr("dom")],name:"label"}),My=function(a){return L1({name:""+a+"-edge",overrides:function(c){var p=c.model.manager.edgeActions[a];return p.fold(function(){return{}},function(x){return{events:Fi([T2(A1(),function(I,G,se){return x(I,se)},[c]),T2(t1(),function(I,G,se){return x(I,se)},[c]),T2(R0(),function(I,G,se){se.mouseIsDown.get()&&x(I,se)},[c])])}})}})},DG=My("top-left"),jB=My("top"),IG=My("top-right"),RG=My("right"),LG=My("bottom-right"),WB=My("bottom"),WS=My("bottom-left"),BG=My("left"),GS=Tc({name:"thumb",defaults:N({dom:{styles:{position:"absolute"}}}),overrides:function(a){return{events:Fi([z0(A1(),a,"spectrum"),z0(Od(),a,"spectrum"),z0(qv(),a,"spectrum"),z0(t1(),a,"spectrum"),z0(R0(),a,"spectrum"),z0(L0(),a,"spectrum")])}}}),q_=Tc({schema:[Pc("mouseIsDown",function(){return Oo(!1)})],name:"spectrum",overrides:function(a){var c=a.model,p=c.manager,x=function(I,G){return p.getValueFromEvent(G).map(function(se){return p.setValueFrom(I,a,se)})};return{behaviours:Rr([No.config({mode:"special",onLeft:function(I){return p.onLeft(I,a)},onRight:function(I){return p.onRight(I,a)},onUp:function(I){return p.onUp(I,a)},onDown:function(I){return p.onDown(I,a)}}),oa.config({})]),events:Fi([sr(A1(),x),sr(Od(),x),sr(t1(),x),sr(R0(),function(I,G){a.mouseIsDown.get()&&x(I,G)})])}}}),GB=[NG,BG,RG,jB,WB,DG,IG,WS,LG,GS,q_],KB="slider.change.value",X_=N(KB),PG=function(a){return a.type.indexOf("touch")!==-1},HM=function(a){var c=a.event.raw;if(PG(c)){var p=c;return p.touches!==void 0&&p.touches.length===1?M.some(p.touches[0]).map(function(I){return Ui(I.clientX,I.clientY)}):M.none()}else{var x=c;return x.clientX!==void 0?M.some(x).map(function(I){return Ui(I.clientX,I.clientY)}):M.none()}},KS="top",FG="right",$G="bottom",YB="left",Ny=function(a){return a.model.minX},Pg=function(a){return a.model.minY},m9=function(a){return a.model.minX-1},uf=function(a){return a.model.minY-1},Dy=function(a){return a.model.maxX},B4=function(a){return a.model.maxY},YS=function(a){return a.model.maxX+1},g9=function(a){return a.model.maxY+1},qB=function(a,c,p){return c(a)-p(a)},VM=function(a){return qB(a,Dy,Ny)},UM=function(a){return qB(a,B4,Pg)},jM=function(a){return VM(a)/2},lp=function(a){return UM(a)/2},Iy=function(a){return a.stepSize},WM=function(a){return a.snapToGrid},y9=function(a){return a.snapStart},qS=function(a){return a.rounded},XS=function(a,c){return a[c+"-edge"]!==void 0},XB=function(a){return XS(a,YB)},ZB=function(a){return XS(a,FG)},QB=function(a){return XS(a,KS)},JB=function(a){return XS(a,$G)},up=function(a){return a.model.value.get()},eP=function(a){return{x:a}},GM=function(a){return{y:a}},Ry=function(a,c){return{x:a,y:c}},Gc=function(a,c){zo(a,X_(),{value:c})}
127,ZS=function(a,c){Gc(a,Ry(m9(c),uf(c)))},zG=function(a,c){Gc(a,GM(uf(c)))},HG=function(a,c){Gc(a,Ry(jM(c),uf(c)))},tP=function(a,c){Gc(a,Ry(YS(c),uf(c)))},nP=function(a,c){Gc(a,eP(YS(c)))},KM=function(a,c){Gc(a,Ry(YS(c),lp(c)))},rP=function(a,c){Gc(a,Ry(YS(c),g9(c)))},b9=function(a,c){Gc(a,GM(g9(c)))},_9=function(a,c){Gc(a,Ry(jM(c),g9(c)))},VG=function(a,c){Gc(a,Ry(m9(c),g9(c)))},UG=function(a,c){Gc(a,eP(m9(c)))},jG=function(a,c){Gc(a,Ry(m9(c),lp(c)))},YM=function(a,c,p,x){return a<c?a:a>p?p:a===c?c-1:Math.max(c,a-x)},qM=function(a,c,p,x){return a>p?a:a<c?c:a===p?p+1:Math.min(p,a+x)},oP=function(a,c,p){return Math.max(c,Math.min(p,a))},WG=function(a,c,p,x,I){return I.fold(function(){var G=a-c,se=Math.round(G/x)*x;return oP(c+se,c-1,p+1)},function(G){var se=(a-G)%x,ge=Math.round(se/x),we=Math.floor((a-G)/x),ke=Math.floor((p-G)/x),ze=Math.min(ke,we+ge),Ge=G+ze*x;return Math.max(G,Ge)})},XM=function(a,c,p){return Math.min(p,Math.max(a,c))-c},Ly=function(a){var c=a.min,p=a.max,x=a.range,I=a.value,G=a.step,se=a.snap,ge=a.snapStart,we=a.rounded,ke=a.hasMinEdge,ze=a.hasMaxEdge,Ge=a.minBound,ut=a.maxBound,yt=a.screenRange,Ot=ke?c-1:c,Kt=ze?p+1:p;if(I<Ge)return Ot;if(I>ut)return Kt;var cn=XM(I,Ge,ut),Ut=oP(cn/yt*x+c,Ot,Kt);return se&&Ut>=c&&Ut<=p?WG(Ut,c,p,G,ge):we?Math.round(Ut):Ut},aP=function(a){var c=a.min,p=a.max,x=a.range,I=a.value,G=a.hasMinEdge,se=a.hasMaxEdge,ge=a.maxBound,we=a.maxOffset,ke=a.centerMinEdge,ze=a.centerMaxEdge;return I<c?G?0:ke:I>p?se?ge:ze:(I-c)/x*we},QS="top",iP="right",sP="bottom",ZM="left",GG="width",KG="height",cp=function(a){return a.element.dom.getBoundingClientRect()},Sv=function(a,c){return a[c]},JS=function(a){var c=cp(a);return Sv(c,ZM)},QM=function(a){var c=cp(a);return Sv(c,iP)},Z_=function(a){var c=cp(a);return Sv(c,QS)},eT=function(a){var c=cp(a);return Sv(c,sP)},JM=function(a){var c=cp(a);return Sv(c,GG)},lP=function(a){var c=cp(a);return Sv(c,KG)},uP=function(a,c,p){return(a+c)/2-p},w9=function(a,c){var p=cp(a),x=cp(c),I=Sv(p,ZM),G=Sv(p,iP),se=Sv(x,ZM);return uP(I,G,se)},eN=function(a,c){var p=cp(a),x=cp(c),I=Sv(p,QS),G=Sv(p,sP),se=Sv(x,QS);return uP(I,G,se)},tT=function(a,c){zo(a,X_(),{value:c})},nT=function(a){return{x:a}},tN=function(a,c,p){var x={min:Ny(c),max:Dy(c),range:VM(c),value:p,step:Iy(c),snap:WM(c),snapStart:y9(c),rounded:qS(c),hasMinEdge:XB(c),hasMaxEdge:ZB(c),minBound:JS(a),maxBound:QM(a),screenRange:JM(a)};return Ly(x)},YG=function(a,c,p){var x=tN(a,c,p),I=nT(x);return tT(a,I),x},Fg=function(a,c){var p=Ny(c);tT(a,nT(p))},nN=function(a,c){var p=Dy(c);tT(a,nT(p))},cP=function(a,c,p){var x=a>0?qM:YM,I=x(up(p).x,Ny(p),Dy(p),Iy(p));return tT(c,nT(I)),M.some(I)},rN=function(a){return function(c,p){return cP(a,c,p).map($)}},oN=function(a){var c=HM(a);return c.map(function(p){return p.left})},fP=function(a,c,p,x,I){var G=0,se=JM(a),ge=x.bind(function(ze){return M.some(w9(ze,a))}).getOr(G),we=I.bind(function(ze){return M.some(w9(ze,a))}).getOr(se),ke={min:Ny(c),max:Dy(c),range:VM(c),value:p,hasMinEdge:XB(c),hasMaxEdge:ZB(c),minBound:JS(a),minOffset:G,maxBound:QM(a),maxOffset:se,centerMinEdge:ge,centerMaxEdge:we};return aP(ke)},Q_=function(a,c,p,x,I,G){var se=fP(c,G,p,x,I);return JS(c)-JS(a)+se},dP=function(a,c,p,x){var I=up(p),G=Q_(a,x.getSpectrum(a),I.x,x.getLeftEdge(a),x.getRightEdge(a),p),se=Ou(c.element)/2;Jo(c.element,"left",G-se+"px")},vP=rN(-1),qG=rN(1),XG=M.none,ZG=M.none,QG={"top-left":M.none(),top:M.none(),"top-right":M.none(),right:M.some(nP),"bottom-right":M.none(),bottom:M.none(),"bottom-left":M.none(),left:M.some(UG)},hP=Object.freeze({__proto__:null,setValueFrom:YG,setToMin:Fg,setToMax:nN,findValueOfOffset:tN,getValueFromEvent:oN,findPositionOfValue:Q_,setPositionFromValue:dP,onLeft:vP,onRight:qG,onUp:XG,onDown:ZG,edgeActions:QG}),C9=function(a,c){zo(a,X_(),{value:c})},rT=function(a){return{y:a}},aN=function(a,c,p){var x={min:Pg(c),max:B4(c),range:UM(c),value:p,step:Iy(c),snap:WM(c),snapStart:y9(c),rounded:qS(c),hasMinEdge:QB(c),hasMaxEdge:JB(c),minBound:Z_(a),maxBound:eT(a),screenRange:lP(a)};return Ly(x)},JG=function(a,c,p){var x=aN(a,c,p),I=rT(x);return C9(a,I),x},oT=function(a,c){var p=Pg(c);C9(a,rT(p))},eK=function(a,c){var p=B4(c);C9(a,rT(p))},tK=function(a,c,p){var x=a>0?qM:YM,I=x(up(p).y,Pg(p),B4(p),Iy(p));return C9(c,rT(I)),M.some(I)},iN=function(a){return function(c,p){return tK(a,c,p).map($)}},pP=function(a){var c=HM(a);return c.map(function(p){return p.top})},nK=function(a,c,p,x,I){var G=0,se=lP(a),ge=x.bind(function(ze){return M.some(eN(ze,a))}).getOr(G),we=I.bind(function(ze){return M.some(eN(ze,a))}).getOr(se),ke={min:Pg(c),max:B4(c),range:UM(c),value:p,hasMinEdge:QB(c),hasMaxEdge:JB(c),minBound:Z_(a),minOffset:G,maxBound:eT(a),maxOffset:se,centerMinEdge:ge,centerMaxEdge:we};return aP(ke)},sN=function(a,c,p,x,I,G){var se=nK(c,G,p,x,I);return Z_(c)-Z_(a)+se},aT=function(a,c,p,x){var I=up(p),G=sN(a,x.getSpectrum(a),I.y,x.getTopEdge(a),x.getBottomEdge(a),p),se=gl(c.element)/2;Jo(c.element,"top",G-se+"px")},rK=M.none,oK=M.none,aK=iN(-1),iK=iN(1),iT={"top-left":M.none(),top:M.some(zG),"top-right":M.none(),right:M.none(),"bottom-right":M.none(),bottom:M.some(b9),"bottom-left":M.none(),left:M.none()},lN=Object.freeze({__proto__:null,setValueFrom:JG,setToMin:oT,setToMax:eK,findValueOfOffset:aN,getValueFromEvent:pP,findPositionOfValue:sN,setPositionFromValue:aT,onLeft:rK,onRight:oK,onUp:aK,onDown:iK,edgeActions:iT}),sT=function(a,c){zo(a,X_(),{value:c})},lT=function(a,c){return{x:a,y:c}},uT=function(a,c,p){var x=tN(a,c,p.left),I=aN(a,c,p.top),G=lT(x,I);return sT(a,G),G},sK=function(a,c,p,x){var I=a>0?qM:YM,G=c?up(x).x:I(up(x).x,Ny(x),Dy(x),Iy(x)),se=c?I(up(x).y,Pg(x),B4(x),Iy(x)):up(x).y;return sT(p,lT(G,se)),M.some(G)},J_=function(a,c){return function(p,x){return sK(a,c,p,x).map($)}},mP=function(a,c){var p=Ny(c),x=Pg(c);sT(a,lT(p,x))},lK=function(a,c){var p=Dy(c),x=B4(c);sT(a,lT(p,x))},uK=function(a){return HM(a)},gP=function(a,c,p,x){var I=up(p),G=Q_(a,x.getSpectrum(a),I.x,x.getLeftEdge(a),x.getRightEdge(a),p),se=sN(a,x.getSpectrum(a),I.y,x.getTopEdge(a),x.getBottomEdge(a),p),ge=Ou(c.element)/2,we=gl(c.element)/2;Jo(c.element,"left",G-ge+"px"),Jo(c.element,"top",se-we+"px")},yP=J_(-1,!1),cK=J_(1,!1),bP=J_(-1,!0),_P=J_(1,!0),wP={"top-left":M.some(ZS),top:M.some(HG),"top-right":M.some(tP),r
127ight:M.some(KM),"bottom-right":M.some(rP),bottom:M.some(_9),"bottom-left":M.some(VG),left:M.some(jG)},CP=Object.freeze({__proto__:null,setValueFrom:uT,setToMin:mP,setToMax:lK,getValueFromEvent:uK,setPositionFromValue:gP,onLeft:yP,onRight:cK,onUp:bP,onDown:_P,edgeActions:wP}),fK=[fn("stepSize",1),fn("onChange",T),fn("onChoose",T),fn("onInit",T),fn("onDragStart",T),fn("onDragEnd",T),fn("snapToGrid",!1),fn("rounded",!0),pi("snapStart"),Fc("model",rd("mode",{x:[fn("minX",0),fn("maxX",100),Pc("value",function(a){return Oo(a.mode.minX)}),rr("getInitialValue"),vs("manager",hP)],y:[fn("minY",0),fn("maxY",100),Pc("value",function(a){return Oo(a.mode.minY)}),rr("getInitialValue"),vs("manager",lN)],xy:[fn("minX",0),fn("maxX",100),fn("minY",0),fn("maxY",100),Pc("value",function(a){return Oo({x:a.mode.minX,y:a.mode.minY})}),rr("getInitialValue"),vs("manager",CP)]})),xu("sliderBehaviours",[No,zr]),Pc("mouseIsDown",function(){return Oo(!1)})],dK=function(a,c,p,x){var I,G=function(vn){return Zh(vn,a,"thumb")},se=function(vn){return Zh(vn,a,"spectrum")},ge=function(vn){return ns(vn,a,"left-edge")},we=function(vn){return ns(vn,a,"right-edge")},ke=function(vn){return ns(vn,a,"top-edge")},ze=function(vn){return ns(vn,a,"bottom-edge")},Ge=a.model,ut=Ge.manager,yt=function(vn,Pn){ut.setPositionFromValue(vn,Pn,a,{getLeftEdge:ge,getRightEdge:we,getTopEdge:ke,getBottomEdge:ze,getSpectrum:se})},Ot=function(vn,Pn){Ge.value.set(Pn);var or=G(vn);yt(vn,or)},Kt=function(vn,Pn){Ot(vn,Pn);var or=G(vn);return a.onChange(vn,or,Pn),M.some(!0)},cn=function(vn){ut.setToMin(vn,a)},Ut=function(vn){ut.setToMax(vn,a)},hn=function(vn){var Pn=function(){ns(vn,a,"thumb").each(function(Hr){var fr=Ge.value.get();a.onChoose(vn,Hr,fr)})},or=a.mouseIsDown.get();a.mouseIsDown.set(!1),or&&Pn()},jn=function(vn,Pn){Pn.stop(),a.mouseIsDown.set(!0),a.onDragStart(vn,G(vn))},Un=function(vn,Pn){Pn.stop(),a.onDragEnd(vn,G(vn)),hn(vn)};return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.sliderBehaviours,[No.config({mode:"special",focusIn:function(vn){return ns(vn,a,"spectrum").map(No.focusIn).map($)}}),zr.config({store:{mode:"manual",getValue:function(vn){return Ge.value.get()}}}),nf.config({channels:(I={},I[Q5()]={onReceive:hn},I)})]),events:Fi([sr(X_(),function(vn,Pn){Kt(vn,Pn.event.value)}),qo(function(vn,Pn){var or=Ge.getInitialValue();Ge.value.set(or);var Hr=G(vn);yt(vn,Hr);var fr=se(vn);a.onInit(vn,Hr,fr,Ge.value.get())}),sr(A1(),jn),sr(qv(),Un),sr(t1(),jn),sr(L0(),Un)]),apis:{resetToMin:cn,resetToMax:Ut,setValue:Ot,refresh:yt},domModification:{styles:{position:"relative"}}}},a0=Pf({name:"Slider",configFields:fK,partFields:GB,factory:dK,apis:{setValue:function(a,c,p){a.setValue(c,p)},resetToMin:function(a,c){a.resetToMin(c)},resetToMax:function(a,c){a.resetToMax(c)},refresh:function(a,c){a.refresh(c)}}}),cT=so("rgb-hex-update"),xP=so("slider-update"),uN=so("palette-update"),vK=function(a,c){var p=a0.parts.spectrum({dom:{tag:"div",classes:[c("hue-slider-spectrum")],attributes:{role:"presentation"}}}),x=a0.parts.thumb({dom:{tag:"div",classes:[c("hue-slider-thumb")],attributes:{role:"presentation"}}});return a0.sketch({dom:{tag:"div",classes:[c("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:N({y:0})},components:[p,x],sliderBehaviours:Rr([oa.config({})]),onChange:function(I,G,se){zo(I,xP,{value:se})}})},EP="form",cN=[xu("formBehaviours",[zr])],SP=function(a){return"<alloy.field."+a+">"},hK=function(a){var c=function(){var G=[],se=function(ge,we){return G.push(ge),hw(EP,SP(ge),we)};return{field:se,record:N(G)}}(),p=a(c),x=c.record(),I=Ae(x,function(G){return Tc({name:G,pname:SP(G)})});return bw(EP,cN,I,mK,p)},pK=function(a,c){return a.fold(function(){return ya.error(c)},ya.value)},mK=function(a,c){return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.formBehaviours,[zr.config({store:{mode:"manual",getValue:function(p){var x=Wx(p,a);return at(x,function(I,G){return I().bind(function(se){var ge=Wa.getCurrent(se);return pK(ge,new Error("Cannot find a current component to extract the value from for form part '"+G+"': "+ei(se.element)))}).map(zr.getValue)})},setValue:function(p,x){xt(x,function(I,G){ns(p,a,G).each(function(se){Wa.getCurrent(se).each(function(ge){zr.setValue(ge,I)})})})}}})]),apis:{getField:function(p,x){return ns(p,a,x).bind(Wa.getCurrent)}}}},e8={getField:Sn(function(a,c,p){return a.getField(c,p)}),sketch:hK},TP=so("valid-input"),AP=so("invalid-input"),fN=so("validating-input"),dN="colorcustom.rgb.",gK=function(a,c,p,x){var I=function(ut,yt){return pm.config({invali
127dClass:c("invalid"),notify:{onValidate:function(Ot){zo(Ot,fN,{type:ut})},onValid:function(Ot){zo(Ot,TP,{type:ut,value:zr.getValue(Ot)})},onInvalid:function(Ot){zo(Ot,AP,{type:ut,value:zr.getValue(Ot)})}},validator:{validate:function(Ot){var Kt=zr.getValue(Ot),cn=yt(Kt)?ya.value(!0):ya.error(a("aria.input.invalid"));return lf.pure(cn)},validateOnLoad:!1}})},G=function(ut,yt,Ot,Kt,cn){var Ut=a(dN+"range"),hn=Ei.parts.label({dom:{tag:"label",innerHtml:Ot,attributes:{"aria-label":Kt}}}),jn=Ei.parts.field({data:cn,factory:j_,inputAttributes:V({type:"text"},yt==="hex"?{"aria-live":"polite"}:{}),inputClasses:[c("textfield")],inputBehaviours:Rr([I(yt,ut),Il.config({})]),onSetValue:function(or){if(pm.isInvalid(or)){var Hr=pm.run(or);Hr.get(T)}}}),Un=[hn,jn],vn=yt!=="hex"?[Ei.parts["aria-descriptor"]({text:Ut})]:[],Pn=Un.concat(vn);return{dom:{tag:"div",attributes:{role:"presentation"}},components:Pn}},se=function(ut,yt){var Ot=l9(yt);return e8.getField(ut,"hex").each(function(Kt){oa.isFocused(Kt)||zr.setValue(ut,{hex:Ot.value})}),Ot},ge=function(ut,yt){var Ot=yt.red,Kt=yt.green,cn=yt.blue;zr.setValue(ut,{red:Ot,green:Kt,blue:cn})},we=Ii({dom:{tag:"div",classes:[c("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),ke=function(ut,yt){we.getOpt(ut).each(function(Ot){Jo(Ot.element,"background-color","#"+yt.value)})},ze=function(){var ut={red:Oo(M.some(255)),green:Oo(M.some(255)),blue:Oo(M.some(255)),hex:Oo(M.some("ffffff"))},yt=function(nr,Mr){var go=u9(Mr);ge(nr,go),Ut(go)},Ot=function(nr){return ut[nr].get()},Kt=function(nr,Mr){ut[nr].set(Mr)},cn=function(){return Ot("red").bind(function(nr){return Ot("green").bind(function(Mr){return Ot("blue").map(function(go){return Ig(nr,Mr,go,1)})})})},Ut=function(nr){var Mr=nr.red,go=nr.green,ur=nr.blue;Kt("red",M.some(Mr)),Kt("green",M.some(go)),Kt("blue",M.some(ur))},hn=function(nr,Mr){var go=Mr.event;go.type!=="hex"?Kt(go.type,M.none()):x(nr)},jn=function(nr,Mr){p(nr);var go=LL(Mr);Kt("hex",M.some(Mr));var ur=u9(go);ge(nr,ur),Ut(ur),zo(nr,cT,{hex:go}),ke(nr,go)},Un=function(nr,Mr,go){var ur=parseInt(go,10);Kt(Mr,M.some(ur)),cn().each(function(co){var Ao=se(nr,co);zo(nr,cT,{hex:Ao}),ke(nr,Ao)})},vn=function(nr){return nr.type==="hex"},Pn=function(nr,Mr){var go=Mr.event;vn(go)?jn(nr,go.value):Un(nr,go.type,go.value)},or=function(nr){return{label:a(dN+nr+".label"),description:a(dN+nr+".description")}},Hr=or("red"),fr=or("green"),Wr=or("blue"),dr=or("hex");return qn(e8.sketch(function(nr){return{dom:{tag:"form",classes:[c("rgb-form")],attributes:{"aria-label":a("aria.color.picker")}},components:[nr.field("red",Ei.sketch(G(AS,"red",Hr.label,Hr.description,255))),nr.field("green",Ei.sketch(G(AS,"green",fr.label,fr.description,255))),nr.field("blue",Ei.sketch(G(AS,"blue",Wr.label,Wr.description,255))),nr.field("hex",Ei.sketch(G(FL,"hex",dr.label,dr.description,"ffffff"))),we.asSpec()],formBehaviours:Rr([pm.config({invalidClass:c("form-invalid")}),ba("rgb-form-events",[sr(TP,Pn),sr(AP,hn),sr(fN,hn)])])}}),{apis:{updateHex:function(nr,Mr){zr.setValue(nr,{hex:Mr.value}),yt(nr,Mr),ke(nr,Mr)}}})},Ge=u1({factory:ze,name:"RgbForm",configFields:[],apis:{updateHex:function(ut,yt,Ot){ut.updateHex(yt,Ot)}},extraApis:{}});return Ge},kP=function(a,c){var p=a0.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[c("sv-palette-spectrum")]}}),x=a0.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette-thumb")],innerHtml:"<div class="+c("sv-palette-inner-thumb")+' role="presentation"></div>'}}),I=function(ke,ze){var Ge=ke.width,ut=ke.height,yt=ke.getContext("2d");if(yt!==null){yt.fillStyle=ze,yt.fillRect(0,0,Ge,ut);var Ot=yt.createLinearGradient(0,0,Ge,0);Ot.addColorStop(0,"rgba(255,255,255,1)"),Ot.addColorStop(1,"rgba(255,255,255,0)"),yt.fillStyle=Ot,yt.fillRect(0,0,Ge,ut);var Kt=yt.createLinearGradient(0,0,0,ut);Kt.addColorStop(0,"rgba(0,0,0,0)"),Kt.addColorStop(1,"rgba(0,0,0,1)"),yt.fillStyle=Kt,yt.fillRect(0,0,Ge,ut)}},G=function(ke,ze){var Ge=ke.components()[0].element.dom,ut=c9(ze,100,100),yt=bM(ut);I(Ge,HL(yt))},se=function(ke,ze){var Ge=wM(u9(ze));a0.setValue(ke,{x:Ge.saturation,y:100-Ge.value})},ge=function(ke){var ze=N({x:0,y:0}),Ge=function(Ot,Kt,cn){zo(Ot,uN,{value:cn})},ut=function(Ot,Kt,cn,Ut){I(cn.element.dom,HL(VL))},yt=Rr([Wa.config({find:M.some}),oa.config({})]);return a0.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette")]},model:{mode:"xy",getInitialValue:ze},rounded:!1,components:[p,x],onChange:Ge,onInit:ut,sliderBehaviours:yt})},we=u1({factory:ge,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(ke,ze,Ge){G(ze,Ge)},setThumb:function(ke,ze,Ge){se(ze,Ge)}},extraApis:{}});return we},yK=function(a,c){var p=function(I){var G=gK(a,c,I.onValidHex,I.onInvalidHex),se=kP(a,c),ge=function(Pn){return(100-Pn)/100*360},we=function(Pn){return 100-Pn/360*100},ke={paletteRgba:Oo(VL),paletteHue:Oo(0)},ze=Ii(vK(a,c)),Ge=Ii(se.sketch({})),ut=Ii(G.sketch({})),yt=function(Pn,or,Hr){Ge.getOpt(Pn).each(function(fr){se.setHue(fr,Hr)})},Ot=function(Pn,or){ut.getOpt(Pn).each(function(Hr){G.updateHex(Hr,or)})},Kt=function(Pn,or,Hr){ze.getOpt(Pn).each(function(fr){a0.setValue(fr,{y:we(Hr)})})},cn=function(Pn,or){Ge.getOpt(Pn).each(function(Hr){se.setThumb(Hr,or)})},Ut=function(Pn,or){var Hr=u9(Pn);ke.paletteRgba.set(Hr),ke.paletteHue.set(or)},hn=function(Pn,or,Hr,fr){Ut(or,Hr),Te(fr,function(Wr){Wr(Pn,or,Hr)}
127)},jn=function(){var Pn=[Ot];return function(or,Hr){var fr=Hr.event.value,Wr=ke.paletteHue.get(),dr=c9(Wr,fr.x,100-fr.y),nr=CM(dr);hn(or,nr,Wr,Pn)}},Un=function(){var Pn=[yt,Ot];return function(or,Hr){var fr=ge(Hr.event.value.y),Wr=ke.paletteRgba.get(),dr=wM(Wr),nr=c9(fr,dr.saturation,dr.value),Mr=CM(nr);hn(or,Mr,fr,Pn)}},vn=function(){var Pn=[yt,Kt,cn];return function(or,Hr){var fr=Hr.event.hex,Wr=TW(fr);hn(or,fr,Wr.hue,Pn)}};return{uid:I.uid,dom:I.dom,components:[Ge.asSpec(),ze.asSpec(),ut.asSpec()],behaviours:Rr([ba("colour-picker-events",[sr(cT,vn()),sr(uN,jn()),sr(xP,Un())]),Wa.config({find:function(Pn){return ut.getOpt(Pn)}}),No.config({mode:"acyclic"})])}},x=u1({name:"ColourPicker",configFields:[rr("dom"),fn("onValidHex",T),fn("onInvalidHex",T)],factory:p});return x},bK=function(){return Wa.config({find:M.some})},_K=function(a){return Wa.config({find:a.getOpt})},OP=function(a){return Wa.config({find:function(c){return pe(c.element,a).bind(function(p){return c.getSystem().getByDom(p).toOptional()})}})},fp={self:bK,memento:_K,childAt:OP},wK={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},MP=function(a){return wK[a]},NP=function(a){return MP(a)},DP=function(a){var c=function(se){return"tox-"+se},p=yK(NP,c),x=function(se){zo(se,hm,{name:"hex-valid",value:!0})},I=function(se){zo(se,hm,{name:"hex-valid",value:!1})},G=Ii(p.sketch({dom:{tag:"div",classes:[c("color-picker-container")],attributes:{role:"presentation"}},onValidHex:x,onInvalidHex:I}));return{dom:{tag:"div"},components:[G.asSpec()],behaviours:Rr([zr.config({store:{mode:"manual",getValue:function(se){var ge=G.get(se),we=Wa.getCurrent(ge),ke=we.bind(function(ze){var Ge=zr.getValue(ze);return Ge.hex});return ke.map(function(ze){return"#"+ze}).getOr("")},setValue:function(se,ge){var we=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,ke=we.exec(ge),ze=G.get(se),Ge=Wa.getCurrent(ze);Ge.fold(function(){console.log("Can not find form")},function(ut){zr.setValue(ut,{hex:M.from(ke[1]).getOr("")}),e8.getField(ut,"hex").each(function(yt){li(yt,r1())})})}}}),fp.self()])}},CK=tinymce.util.Tools.resolve("tinymce.Resource"),IP=function(a){return zn(a,"init")},RP=function(a){var c=wl(),p=Ii({dom:{tag:a.tag}}),x=wl();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Rr([ba("custom-editor-events",[qo(function(I){p.getOpt(I).each(function(G){(IP(a)?a.init(G.element.dom):CK.load(a.scriptId,a.scriptUrl).then(function(se){return se(G.element.dom,a.settings)})).then(function(se){x.on(function(ge){se.setValue(ge)}),x.clear(),c.set(se)})})})]),zr.config({store:{mode:"manual",getValue:function(){return c.get().fold(function(){return x.get().getOr("")},function(I){return I.getValue()})},setValue:function(I,G){c.get().fold(function(){x.set(G)},function(se){return se.setValue(G)})}}}),fp.self()]),components:[p.asSpec()]}},By=tinymce.util.Tools.resolve("tinymce.util.Tools"),xK=Eo([fn("preprocess",A),fn("postprocess",A)]),EK=function(a,c){var p=hi("RepresentingConfigs.memento processors",xK,c);return zr.config({store:{mode:"manual",getValue:function(x){var I=a.get(x),G=zr.getValue(I);return p.postprocess(G)},setValue:function(x,I){var G=p.preprocess(I),se=a.get(x);zr.setValue(se,G)}}})},LP=function(a,c,p){return zr.config(qn({store:{mode:"manual",getValue:c,setValue:p}},a.map(function(x){return{store:{initialValue:x}}}).getOr({})))},vN=function(a,c,p){return LP(a,function(x){return c(x.element)},function(x,I){return p(x.element,I)})},SK=function(a){return vN(a,$h,O2)},BP=function(a){return vN(a,k1,cv)},TK=function(a){return zr.config({store:{mode:"memory",initialValue:a}})},P4={memento:EK,withElement:vN,withComp:LP,domValue:SK,domHtml:BP,memory:TK},AK="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",ci=function(a,c){var p=By.explode(c.getSetting("images_file_types",AK,"string")),x=function(I){return he(p,function(G){return fo(I.name.toLowerCase(),"."+G.toLowerCase())})};
127return De(At(a),x)},t8=function(a,c){var p=function(Ge,ut){ut.stop()},x=function(Ge){return function(ut,yt){Te(Ge,function(Ot){Ot(ut,yt)})}},I=function(Ge,ut){if(!Ho.isDisabled(Ge)){var yt=ut.event.raw;se(Ge,yt.dataTransfer.files)}},G=function(Ge,ut){var yt=ut.event.raw.target;se(Ge,yt.files)},se=function(Ge,ut){zr.setValue(Ge,ci(ut,c)),zo(Ge,H1,{name:a.name})},ge=Ii({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Rr([ba("input-file-events",[H0(P0()),H0(Ih())])])}),we=function(Ge){return{uid:Ge.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Rr([P4.memory([]),fp.self(),Ho.config({}),Qa.config({toggleClass:"dragenter",toggleOnExecute:!1}),ba("dropzone-events",[sr("dragenter",x([p,Qa.toggle])),sr("dragleave",x([p,Qa.toggle])),sr("dragover",p),sr("drop",x([p,I])),sr(B0(),G)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:c.translate("Drop an image here")}},Rd.sketch({dom:{tag:"button",innerHtml:c.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ge.asSpec()],action:function(ut){var yt=ge.get(ut);yt.element.dom.click()},buttonBehaviours:Rr([Il.config({}),uh.button(c.isDisabled),Hu()])})]}]}},ke=a.label.map(function(Ge){return Rg(Ge,c)}),ze=Ei.parts.field({factory:{sketch:we}});return v9(ke,ze,["tox-form__group--stretched"],[])},PP=function(a,c){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+a.columns+"col"]},components:Ae(a.items,c.interpreter)}},fT=so("alloy-fake-before-tabstop"),dT=so("alloy-fake-after-tabstop"),FP=function(a){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:a},behaviours:Rr([oa.config({ignore:!0}),Il.config({})])}},$P=function(a){return{dom:{tag:"div",classes:["tox-navobj"]},components:[FP([fT]),a,FP([dT])],behaviours:Rr([fp.childAt(1)])}},zP=function(a,c){zo(a,m2(),{raw:{which:9,shiftKey:c}})},HP=function(a,c){var p=c.element;Nf(p,fT)?zP(a,!0):Nf(p,dT)&&zP(a,!1)},x9=function(a){return d9(a,["."+fT,"."+dT].join(","),Q)},kK=!(Io().browser.isIE()||Io().browser.isEdge()),OK=function(a){var c=Oo("");return{getValue:function(p){return c.get()},setValue:function(p,x){if(a)ha(p.element,"srcdoc",x);else{ha(p.element,"src","javascript:''");var I=p.element.dom.contentWindow.document;I.open(),I.write(x),I.close()}c.set(x)}}},MK=function(a,c){var p=kK&&a.sandboxed,x=V(V({},a.label.map(function(we){return{title:we}}).getOr({})),p?{sandbox:"allow-scripts allow-same-origin"}:{}),I=OK(p),G=a.label.map(function(we){return Rg(we,c)}),se=function(we){return $P({uid:we.uid,dom:{tag:"iframe",attributes:x},behaviours:Rr([Il.config({}),oa.config({}),P4.withComp(M.none(),I.getValue,I.setValue)])})},ge=Ei.parts.field({factory:{sketch:se}});return v9(G,ge,["tox-form__group--stretched"],[])},n8=function(a,c){return DK(document.createElement("canvas"),a,c)},NK=function(a){var c=n8(a.width,a.height),p=$g(c);return p.drawImage(a,0,0),c},$g=function(a){return a.getContext("2d")},DK=function(a,c,p){return a.width=c,a.height=p,a},hN=function(a){return a.naturalWidth||a.width},pN=function(a){return a.naturalHeight||a.height},IK=function(a){return new r0(function(c,p){var x=URL.createObjectURL(a),I=new Image,G=function(){I.removeEventListener("load",se),I.removeEventListener("error",ge)},se=function(){G(),c(I)},ge=function(){G(),p("Unable to load data of type "+a.type+": "+x)};I.addEventListener("load",se),I.addEventListener("error",ge),I.src=x,I.complete&&setTimeout(se,0)})},VP=function(a){var c=a.split(","),p=/data:([^;]+)/.exec(c[0]);if(!p)return M.none();for(var x=p[1],I=c[1],G=1024,se=atob(I),ge=se.length,we=Math.ceil(ge/G),ke=new Array(we),ze=0;ze<we;++ze){for(var Ge=ze*G,ut=Math.min(Ge+G,ge),yt=new Array(ut-Ge),Ot=Ge,Kt=0;Ot<ut;++Kt,++Ot)yt[Kt]=se[Ot].charCodeAt(0);ke[ze]=new Uint8Array(yt)}return M.some(new Blob(ke,{type:x}))},RK=function(a){return new r0(function(c,p){VP(a).fold(function(){p("uri is not base64: "+a)},c)})},UP=function(a,c,p){return c=c||"image/png",w(HTMLCanvasElement.prototype.toBlob)?new r0(function(x,I){a.toBlob(function(G){G?x(G):I()},c,p)}):RK(a.toDataURL(c,p))},LK=function(a,c,p){return c=c||"image/png",a.toDataURL(c,p)},BK=function(a){return IK(a).then(function(c){FK(c);var p=n8(hN(c),pN(c)),x=$g(p);return x.drawImage(c,0,0),p})},PK=function(a){return new r0(function(c){var p=new FileReader;p.onloadend=function(){c(p.result)},p.readAsDataURL(a)})},FK=function(a){URL.revokeObjectURL(a.src)},mN=function(a,c,p){var x=c.type,I=N(x),G=function(){return r0.resolve(c)},se=N(p),ge=function(){return p.split(",")[1]},we=function(ut,yt){return a.then(function(Ot){return UP(Ot,ut,yt)})},ke=function(ut,yt){return a.then(function(Ot){return LK(Ot,ut,yt)})},ze=function(ut,yt){return ke(ut,yt).then(function(Ot){return Ot.split(",")[1]})},Ge=function(){return a.then(NK)};return{getType:I,toBlob:G,toDataURL:se,toBase64:ge,toAdjustedBlob:we,toAdjustedDataURL:ke,toAdjustedBase64:ze,toCanvas:Ge}},$K=function(a){return PK(a).then(function(c){return mN(BK(a),a,c)})},Py=function(a,c){return UP(a,c).then(function(p){return mN(r0.resolve(a),p,a.toDataURL())})},zK=function(a){return $K(a)}
127,r8=function(a,c,p){var x=typeof a=="string"?parseFloat(a):a;return x>p?x=p:x<c&&(x=c),x},gN=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},vT=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],yN=function(a,c){for(var p=[],x=new Array(25),I,G=0;G<5;G++){for(var se=0;se<5;se++)p[se]=c[se+G*5];for(var se=0;se<5;se++){I=0;for(var ge=0;ge<5;ge++)I+=a[se+ge*5]*p[ge];x[se+G*5]=I}}return x},HK=function(a,c){var p;return c=r8(c,-1,1),c*=100,c<0?p=127+c/100*127:(p=c%1,p===0?p=vT[c]:p=vT[Math.floor(c)]*(1-p)+vT[Math.floor(c)+1]*p,p=p*127+127),yN(a,[p/127,0,0,0,.5*(127-p),0,p/127,0,0,.5*(127-p),0,0,p/127,0,.5*(127-p),0,0,0,1,0,0,0,0,0,1])},VK=function(a,c){return c=r8(255*c,-255,255),yN(a,[1,0,0,0,c,0,1,0,0,c,0,0,1,0,c,0,0,0,1,0,0,0,0,0,1])},UK=function(a,c,p,x){return c=r8(c,0,2),p=r8(p,0,2),x=r8(x,0,2),yN(a,[c,0,0,0,0,0,p,0,0,0,0,0,x,0,0,0,0,0,1,0,0,0,0,0,1])},bN=function(a,c){return a.toCanvas().then(function(p){return jK(p,a.getType(),c)})},jK=function(a,c,p){var x=$g(a),I=function(se,ge){for(var we,ke,ze,Ge,ut=se.data,yt=ge[0],Ot=ge[1],Kt=ge[2],cn=ge[3],Ut=ge[4],hn=ge[5],jn=ge[6],Un=ge[7],vn=ge[8],Pn=ge[9],or=ge[10],Hr=ge[11],fr=ge[12],Wr=ge[13],dr=ge[14],nr=ge[15],Mr=ge[16],go=ge[17],ur=ge[18],co=ge[19],Ao=0;Ao<ut.length;Ao+=4)we=ut[Ao],ke=ut[Ao+1],ze=ut[Ao+2],Ge=ut[Ao+3],ut[Ao]=we*yt+ke*Ot+ze*Kt+Ge*cn+Ut,ut[Ao+1]=we*hn+ke*jn+ze*Un+Ge*vn+Pn,ut[Ao+2]=we*or+ke*Hr+ze*fr+Ge*Wr+dr,ut[Ao+3]=we*nr+ke*Mr+ze*go+Ge*ur+co;return se},G=I(x.getImageData(0,0,a.width,a.height),p);return x.putImageData(G,0,0),Py(a,c)},E9=function(a,c){return a.toCanvas().then(function(p){return WK(p,a.getType(),c)})},WK=function(a,c,p){var x=$g(a),I=function(ge,we,ke){for(var ze=function(Mr,go,ur){return Mr>ur?Mr=ur:Mr<go&&(Mr=go),Mr},Ge=Math.round(Math.sqrt(ke.length)),ut=Math.floor(Ge/2),yt=ge.data,Ot=we.data,Kt=ge.width,cn=ge.height,Ut=0;Ut<cn;Ut++)for(var hn=0;hn<Kt;hn++){for(var jn=0,Un=0,vn=0,Pn=0;Pn<Ge;Pn++)for(var or=0;or<Ge;or++){var Hr=ze(hn+or-ut,0,Kt-1),fr=ze(Ut+Pn-ut,0,cn-1),Wr=(fr*Kt+Hr)*4,dr=ke[Pn*Ge+or];jn+=yt[Wr]*dr,Un+=yt[Wr+1]*dr,vn+=yt[Wr+2]*dr}var nr=(Ut*Kt+hn)*4;Ot[nr]=ze(jn,0,255),Ot[nr+1]=ze(Un,0,255),Ot[nr+2]=ze(vn,0,255)}return we},G=x.getImageData(0,0,a.width,a.height),se=x.getImageData(0,0,a.width,a.height);return se=I(G,se,p),x.putImageData(se,0,0),Py(a,c)},_N=function(a){var c=function(p,x,I){for(var G=$g(p),se=new Array(256),ge=function(ze,Ge){for(var ut=ze.data,yt=0;yt<ut.length;yt+=4)ut[yt]=Ge[ut[yt]],ut[yt+1]=Ge[ut[yt+1]],ut[yt+2]=Ge[ut[yt+2]];return ze},we=0;we<se.length;we++)se[we]=a(we,I);var ke=ge(G.getImageData(0,0,p.width,p.height),se);return G.putImageData(ke,0,0),Py(p,x)};return function(p,x){return p.toCanvas().then(function(I){return c(I,p.getType(),x)})}},jP=function(a){return function(c,p){return bN(c,a(gN(),p))}},GK=function(a){return function(c){return bN(c,a)}},KK=function(a){return function(c){return E9(c,a)}},YK=GK([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),WP=jP(VK),GP=jP(HK),qK=function(a,c,p,x){return bN(a,UK(gN(),c,p,x))},hT=KK([0,-1,0,-1,5,-1,0,-1,0]),pT=_N(function(a,c){return Math.pow(a/255,1-c)*255}),KP=function(a,c,p){var x=hN(a),I=pN(a),G=c/x,se=p/I,ge=!1;(G<.5||G>2)&&(G=G<.5?.5:2,ge=!0),(se<.5||se>2)&&(se=se<.5?.5:2,ge=!0);var we=XK(a,G,se);return ge?we.then(function(ke){return KP(ke,c,p)}):we},XK=function(a,c,p){return new r0(function(x){var I=hN(a),G=pN(a),se=Math.floor(I*c),ge=Math.floor(G*p),we=n8(se,ge),ke=$g(we);ke.drawImage(a,0,0,I,G,0,0,se,ge),x(we)})},YP=function(a,c){c===void 0&&(c=2);var p=Math.pow(10,c),x=Math.round(a*p);return Math.ceil(x/p)},ZK=function(a,c){return a.toCanvas().then(function(p){return wN(p,a.getType(),c)})},wN=function(a,c,p){var x=p<0?360+p:p,I=x*Math.PI/180,G=a.width,se=a.height,ge=Math.sin(I),we=Math.cos(I),ke=YP(Math.abs(G*we)+Math.abs(se*ge)),ze=YP(Math.abs(G*ge)+Math.abs(se*we)),Ge=n8(ke,ze),ut=$g(Ge);return ut.translate(ke/2,ze/2),ut.rotate(I),ut.drawImage(a,-G/2,-se/2),Py(Ge,c)},CN=function(a,c){return a.toCanvas().then(function(p){return qP(p,a.getType(),c)})},qP=function(a,c,p){var x=n8(a.width,a.height),I=$g(x);return p==="v"?(I.scale(1,-1),I.drawImage(a,0,-x.height)):(I.scale(-1,1),I.drawImage(a,-x.width,0)),Py(x,c)},QK=function(a,c,p,x,I){return a.toCanvas().then(function(G){return xN(G,a.getType(),c,p,x,I)})},xN=function(a,c,p,x,I,G){var se=n8(I,G),ge=$g(se);return ge.drawImage(a,-p,-x),Py(se,c)},JK=function(a,c,p){return a.toCanvas().then(function(x){return KP(x,c,p).then(function(I){return Py(I,a.getType())})})},eY=function(a){return YK(a)},XP=function(a){return hT(a)},tY=function(a,c){return pT(a,c)},S9=function(a,c,p,x){return qK(a,c,p,x)},nY=function(a,c){return WP(a,c)},rY=function(a,c){return GP(a,c)},ZP=function(a,c){return CN(a,c)},oY=function(a,c,p,x,I){return QK(a,c,p,x,I)},QP=function(a,c,p){return JK(a,c,p)},JP=function(a,c){return ZK(a,c)},eF=function(a,c,p){return n0(a,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:p},c)},mT=function(a,c){return eF(a,c,[])},tF=function(a,c){return eF(a,c,[ra.config({})])},EN=function(a,c,p){return{dom:{tag:"span",innerHtml:p.translate(a),classes:[c+"__select-label"]},behaviours:Rr([ra.config({})])}},gT,nF=so("toolbar.button.execute"),aY=function(a){return ef(function(c,p){xS(a,c)(function(x){zo(c,nF,{buttonApi:x}),a.onAction(x)})})},rF=(gT={},gT[Sf()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],gT),F4=so("update-menu-text"),SN=so("update-menu-icon"),TN=function(a,c,p){var x=Oo(T),I=a.text.map(function(Ge){return Ii(EN(Ge,c,p.providers))}
127),G=a.icon.map(function(Ge){return Ii(tF(Ge,p.providers.icons))}),se=function(Ge,ut){var yt=zr.getValue(Ge);return oa.focus(yt),zo(yt,"keydown",{raw:ut.event.raw}),o0.close(yt),M.some(!0)},ge=a.role.fold(function(){return{}},function(Ge){return{role:Ge}}),we=a.tooltip.fold(function(){return{}},function(Ge){var ut=p.providers.translate(Ge);return{title:ut,"aria-label":ut}}),ke=n0("chevron-down",{tag:"div",classes:[c+"__select-chevron"]},p.providers.icons),ze=Ii(o0.sketch(V(V(V({},a.uid?{uid:a.uid}:{}),ge),{dom:{tag:"button",classes:[c,c+"--select"].concat(Ae(a.classes,function(Ge){return c+"--"+Ge})),attributes:V({},we)},components:P_([G.map(function(Ge){return Ge.asSpec()}),I.map(function(Ge){return Ge.asSpec()}),M.some(ke)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Rr(fe(fe([],a.dropdownBehaviours,!0),[uh.button(function(){return a.disabled||p.providers.isDisabled()}),Hu(),Y_.config({}),ra.config({}),ba("dropdown-events",[B_(a,x),i9(a,x)]),ba("menubutton-update-display-text",[sr(F4,function(Ge,ut){I.bind(function(yt){return yt.getOpt(Ge)}).each(function(yt){ra.set(yt,[wc(p.providers.translate(ut.event.text))])})}),sr(SN,function(Ge,ut){G.bind(function(yt){return yt.getOpt(Ge)}).each(function(yt){ra.set(yt,[tF(ut.event.icon,p.providers.icons)])})})])],!1)),eventOrder:qn(rF,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Rr([No.config({mode:"special",onLeft:se,onRight:se})]),lazySink:p.getSink,toggleClass:c+"--active",parts:{menu:hS(!1,a.columns,a.presets)},fetch:function(Ge){return lf.nu(Z(a.fetch,Ge))}})));return ze.asSpec()},iY=function(a){return i(a)},c1=function(a){return a.type==="separator"},sY=function(a){return zn(a,"getSubmenuItems")},AN={type:"separator"},oF=function(a,c){var p=rt(a,function(x,I){return iY(I)?I===""?x:I==="|"?x.length>0&&!c1(x[x.length-1])?x.concat([AN]):x:zn(c,I.toLowerCase())?x.concat([c[I.toLowerCase()]]):x:x.concat([I])},[]);return p.length>0&&c1(p[p.length-1])&&p.pop(),p},aF=function(a,c){var p=a.getSubmenuItems(),x=T9(p,c),I=qn(x.menus,T1(a.value,x.items)),G=qn(x.expansions,T1(a.value,a.value));return{item:a,menus:I,expansions:G}},yT=function(a,c){return sY(a)?aF(a,c):{item:a,menus:{},expansions:{}}},lY=function(a){if(c1(a))return a;var c=En(a,"value").getOrThunk(function(){return so("generated-menu-item")});return qn({value:c},a)},T9=function(a,c){var p=oF(i(a)?a.split(" "):a,c);return $e(p,function(x,I){var G=lY(I),se=yT(G,c);return{menus:qn(x.menus,se.menus),items:[se.item].concat(x.items),expansions:qn(x.expansions,se.expansions)}},{menus:{},expansions:{},items:[]})},o8=function(a,c,p,x){var I=so("primary-menu"),G=T9(a,p.shared.providers.menuItems());if(G.items.length===0)return M.none();var se=iB(I,G.items,c,p,x),ge=at(G.menus,function(ke,ze){return iB(ze,ke,c,p,!1)}),we=qn(ge,T1(I,se));return M.from($i.tieredData(I,we,G.expansions))},A9=function(a){return{isDisabled:function(){return Ho.isDisabled(a)},setDisabled:function(c){return Ho.set(a,c)},setActive:function(c){var p=a.element;c?(yu(p,"tox-tbtn--enabled"),ha(p,"aria-pressed",!0)):(eu(p,"tox-tbtn--enabled"),zs(p,"aria-pressed"))},isActive:function(){return Nf(a.element,"tox-tbtn--enabled")}}},bT=function(a,c,p,x){return TN({text:a.text,icon:a.icon,tooltip:a.tooltip,role:x,fetch:function(I,G){a.fetch(function(se){G(o8(se,ap.CLOSE_ON_EXECUTE,p,!1))})},onSetup:a.onSetup,getApi:A9,columns:1,presets:"normal",classes:[],dropdownBehaviours:[Il.config({})]},c,p.shared)},ch=function(a,c,p){var x=function(G){return function(se){var ge=!se.isActive();se.setActive(ge),G.storage.set(ge),p.shared.getSink().each(function(we){c().getOpt(we).each(function(ke){Jv(ke.element),zo(ke,hm,{name:G.name,value:G.storage.get()})})})}},I=function(G){return function(se){se.setActive(G.storage.get())}};return function(G){G(Ae(a,function(se){var ge=se.text.fold(function(){return{}},function(we){return{text:we}});return V(V({type:se.type,active:!1},ge),{onAction:x(se),onSetup:I(se)})}))}},iF=function(a,c,p,x,I,G){p===void 0&&(p=[]);var se=c.fold(function(){return{}},function(ke){return{action:ke}}),ge=V({buttonBehaviours:Rr([uh.button(function(){return a.disabled||G.isDisabled()}),Hu(),Il.config({}),ba("button press",[Wm("click"),Wm("mousedown")])].concat(p)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},se),we=qn(ge,{dom:x});
127return qn(we,{components:I})},kN=function(a,c,p,x){x===void 0&&(x=[]);var I=a.tooltip.map(function(we){return{"aria-label":p.translate(we),title:p.translate(we)}}).getOr({}),G={tag:"button",classes:["tox-tbtn"],attributes:I},se=a.icon.map(function(we){return mT(we,p.icons)}),ge=P_([se]);return iF(a,c,x,G,ge,p)},sF=function(a,c,p,x){x===void 0&&(x=[]);var I=kN(a,M.some(c),p,x);return Rd.sketch(I)},lF=function(a,c,p,x,I){x===void 0&&(x=[]),I===void 0&&(I=[]);var G=p.translate(a.text),se=a.icon?a.icon.map(function(Ge){return mT(Ge,p.icons)}):M.none(),ge=se.isSome()?P_([se]):[],we=se.isSome()?{}:{innerHtml:G},ke=fe(fe(fe(fe([],!a.primary&&!a.borderless?["tox-button","tox-button--secondary"]:["tox-button"],!0),se.isSome()?["tox-button--icon"]:[],!0),a.borderless?["tox-button--naked"]:[],!0),I,!0),ze=V(V({tag:"button",classes:ke},we),{attributes:{title:G}});return iF(a,c,x,ze,ge,p)},ON=function(a,c,p,x,I){x===void 0&&(x=[]),I===void 0&&(I=[]);var G=lF(a,M.some(c),p,x,I);return Rd.sketch(G)},uF=function(a,c){return function(p){c==="custom"?zo(p,hm,{name:a,value:{}}):c==="submit"?li(p,p9):c==="cancel"?li(p,L4):console.error("Unknown button type: ",c)}},uY=function(a,c){return c==="menu"},cY=function(a,c){return c==="custom"||c==="cancel"||c==="submit"},_T=function(a,c,p){if(uY(a,c)){var x=function(){return se},I=a,G=V(V({},a),{onSetup:function(ke){return ke.setDisabled(a.disabled),T},fetch:ch(I.items,x,p)}),se=Ii(bT(G,"tox-tbtn",p,M.none()));return se.asSpec()}else if(cY(a,c)){var ge=uF(a.name,c),we=V(V({},a),{borderless:!1});return ON(we,ge,p.shared.providers,[])}else console.error("Unknown footer button type: ",c)},fY=function(a,c){var p=uF(a.name,"custom");return vG(M.none(),Ei.parts.field(V({factory:Rd},lF(a,M.some(p),c,[P4.memory(""),fp.self()]))))},dY=N([fn("field1Name","field1"),fn("field2Name","field2"),If("onLockedChange"),Jm(["lockClass"]),fn("locked",!1),R1.field("coupledFieldBehaviours",[Wa,zr])]),cF=function(a,c,p){return ns(a,c,p).bind(Wa.getCurrent)},MN=function(a,c){return Tc({factory:Ei,name:a,overrides:function(p){return{fieldBehaviours:Rr([ba("coupled-input-behaviour",[sr(r1(),function(x){cF(x,p,c).each(function(I){ns(x,p,"lock").each(function(G){Qa.isOn(G)&&p.onLockedChange(x,I,G)})})})])])}}})},fF=N([MN("field1","field2"),MN("field2","field1"),Tc({factory:Rd,schema:[rr("dom")],name:"lock",overrides:function(a){return{buttonBehaviours:Rr([Qa.config({selected:a.locked,toggleClass:a.markers.lockClass,aria:{mode:"pressed"}})])}}})]),vY=function(a,c,p,x){return{uid:a.uid,dom:a.dom,components:c,behaviours:R1.augment(a.coupledFieldBehaviours,[Wa.config({find:M.some}),zr.config({store:{mode:"manual",getValue:function(I){var G,se=q6(I,a,["field1","field2"]);return G={},G[a.field1Name]=zr.getValue(se.field1()),G[a.field2Name]=zr.getValue(se.field2()),G},setValue:function(I,G){var se=q6(I,a,["field1","field2"]);nn(G,a.field1Name)&&zr.setValue(se.field1(),G[a.field1Name]),nn(G,a.field2Name)&&zr.setValue(se.field2(),G[a.field2Name])}}})]),apis:{getField1:function(I){return ns(I,a,"field1")},getField2:function(I){return ns(I,a,"field2")},getLock:function(I){return ns(I,a,"lock")}}}},V1=Pf({name:"FormCoupledInputs",configFields:dY(),partFields:fF(),factory:vY,apis:{getField1:function(a,c){return a.getField1(c)},getField2:function(a,c){return a.getField2(c)},getLock:function(a,c){return a.getLock(c)}}}),hY=function(a){var c={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},p=function(I){return I in c?c[I]:1},x=a.value.toFixed(p(a.unit));return x.indexOf(".")!==-1&&(x=x.replace(/\.?0*$/,"")),x+a.unit},NN=function(a){var c=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,p=c.exec(a);if(p!==null){var x=parseFloat(p[1]),I=p[2];return ya.value({value:x,unit:I})}else return ya.error(a)},dF=function(a,c){var p={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},x=function(I){return zn(p,I)};return a.unit===c?M.some(a.value):x(a.unit)&&x(c)?p[a.unit]===p[c]?M.some(a.value):M.some(a.value/p[a.unit]*p[c]):M.none()},DN=function(a){return M.none()},pY=function(a,c){return function(p){return dF(p,c).map(function(x){return{value:x*a,unit:c}})}},mY=function(a,c){var p=NN(a).toOptional(),x=NN(c).toOptional();return xa(p,x,function(I,G){return dF(I,G.unit).map(function(se){return G.value/se}).map(function(se){return pY(se,G.unit)}
127).getOr(DN)}).getOr(DN)},vF=function(a,c){var p=DN,x=so("ratio-event"),I=function(Ge){return n0(Ge,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Ge]},c.icons)},G=V1.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:c.translate(a.label.getOr("Constrain proportions"))}},components:[I("lock"),I("unlock")],buttonBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()}}),Hu(),Il.config({})])}),se=function(Ge){return{dom:{tag:"div",classes:["tox-form__group"]},components:Ge}},ge=function(Ge){return Ei.parts.field({factory:j_,inputClasses:["tox-textfield"],inputBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()}}),Hu(),Il.config({}),ba("size-input-events",[sr(Vc(),function(ut,yt){zo(ut,x,{isField1:Ge})}),sr(B0(),function(ut,yt){zo(ut,H1,{name:a.name})})])]),selectOnFocus:!1})},we=function(Ge){return{dom:{tag:"label",classes:["tox-label"],innerHtml:c.translate(Ge)}}},ke=V1.parts.field1(se([Ei.parts.label(we("Width")),ge(!0)])),ze=V1.parts.field2(se([Ei.parts.label(we("Height")),ge(!1)]));return V1.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[ke,ze,se([we(" "),G])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(Ge,ut,yt){NN(zr.getValue(Ge)).each(function(Ot){p(Ot).each(function(Kt){zr.setValue(ut,hY(Kt))})})},coupledFieldBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()},onDisabled:function(Ge){V1.getField1(Ge).bind(Ei.getField).each(Ho.disable),V1.getField2(Ge).bind(Ei.getField).each(Ho.disable),V1.getLock(Ge).each(Ho.disable)},onEnabled:function(Ge){V1.getField1(Ge).bind(Ei.getField).each(Ho.enable),V1.getField2(Ge).bind(Ei.getField).each(Ho.enable),V1.getLock(Ge).each(Ho.enable)}}),Hu(),ba("size-input-events2",[sr(x,function(Ge,ut){var yt=ut.event.isField1,Ot=yt?V1.getField1(Ge):V1.getField2(Ge),Kt=yt?V1.getField2(Ge):V1.getField1(Ge),cn=Ot.map(zr.getValue).getOr(""),Ut=Kt.map(zr.getValue).getOr("");p=mY(cn,Ut)})])])})},gY=N(so("undo")),yY=N(so("redo")),bY=N(so("zoom")),_Y=N(so("back")),wY=N(so("apply")),CY=N(so("swap")),xY=N(so("transform")),hF=N(so("temp-transform")),EY=N(so("transform-apply")),zf={undo:gY,redo:yY,zoom:bY,back:_Y,apply:wY,swap:CY,transform:xY,tempTransform:hF,transformApply:EY},pF=N("save-state"),SY=N("disable"),TY=N("enable"),f1={formActionEvent:hm,saveState:pF,disable:SY,enable:TY},AY=function(a,c){var p=function(to,ka,zi,ol){return Ii(ON({name:to,text:to,disabled:zi,primary:ol,icon:M.none(),borderless:!1},ka,c))},x=function(to,ka,zi,ol){return Ii(sF({name:to,icon:M.some(to),tooltip:M.some(ka),disabled:ol,primary:!1,borderless:!1},zi,c))},I=function(to,ka){to.map(function(zi){var ol=zi.get(ka);ol.hasConfigured(Ho)&&Ho.disable(ol)})},G=function(to,ka){to.map(function(zi){var ol=zi.get(ka);ol.hasConfigured(Ho)&&Ho.enable(ol)})},se={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},ge=T,we=function(to,ka,zi){zo(to,ka,zi)},ke=function(to){return li(to,f1.disable())},ze=function(to){return li(to,f1.enable())},Ge=function(to,ka){ke(to),we(to,zf.transform(),{transform:ka}),ze(to)},ut=function(to,ka){ke(to),we(to,zf.tempTransform(),{transform:ka}),ze(to)},yt=function(to){return function(){gp.getOpt(to).each(function(ka){ra.set(ka,[Gy])})}},Ot=function(to,ka){ke(to),we(to,zf.transformApply(),{transform:ka,swap:yt(to)}),ze(to)},Kt=function(){return p("Back",function(to){return we(to,zf.back(),{swap:yt(to)})},!1,!1)},cn=function(){return Ii({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Rr([Ho.config({})])})},Ut=function(){return p("Apply",function(to){return we(to,zf.apply(),{swap:yt(to)})},!0,!0)},hn=function(){return function(to){var ka=a.getRect();return oY(to,ka.x,ka.y,ka.w,ka.h)}},jn=[Kt(),cn(),p("Apply",function(to){var ka=hn();Ot(to,ka),a.hideCrop()},!1,!0)],Un=$f.sketch({dom:se,components:jn.map(function(to){return to.asSpec()}),containerBehaviours:Rr([ba("image-tools-crop-buttons-events",[sr(f1.disable(),function(to,ka){I(jn,to)}),sr(f1.enable(),function(to,ka){G(jn,to)})])])}),vn=Ii(vF({name:"size",label:M.none(),constrain:!0,disabled:!1},c)),Pn=function(to,ka){return function(zi){return QP(zi,to,ka)}},or=[Kt(),cn(),vn,cn(),p("Apply",function(to){vn.getOpt(to).each(function(ka){var zi=zr.getValue(ka),ol=parseInt(zi.width,10),zd=parseInt(zi.height,10),gd=Pn(ol,zd);Ot(to,gd)})},!1,!0)],Hr=$f.sketch({dom:se,components:or.map(function(to){return to.asSpec()}),containerBehaviours:Rr([ba("image-tools-resize-buttons-events",[sr(f1.disable(),function(to,ka){I(or,to)}),sr(f1.enable(),function(to,ka){G(or,to)})])])}),fr=function(to,ka){return function(zi){return to(zi,ka)}},Wr=fr(ZP,"h"),dr=fr(ZP,"v"),nr=fr(JP,-90),Mr=fr(JP,90),go=function(to,ka){ut(to,ka)},ur=[Kt(),cn(),x("flip-horizontally","Flip horizontally",function(to){go(to,Wr)}
127,!1),x("flip-vertically","Flip vertically",function(to){go(to,dr)},!1),x("rotate-left","Rotate counterclockwise",function(to){go(to,nr)},!1),x("rotate-right","Rotate clockwise",function(to){go(to,Mr)},!1),cn(),Ut()],co=$f.sketch({dom:se,components:ur.map(function(to){return to.asSpec()}),containerBehaviours:Rr([ba("image-tools-fliprotate-buttons-events",[sr(f1.disable(),function(to,ka){I(ur,to)}),sr(f1.enable(),function(to,ka){G(ur,to)})])])}),Ao=function(to,ka,zi,ol,zd){var gd=a0.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:c.translate(to)}}),W1=a0.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),dh=a0.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Ii(a0.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:zi,maxX:zd,getInitialValue:N({x:ol})},components:[gd,W1,dh],sliderBehaviours:Rr([oa.config({})]),onChoose:ka}))},qa=function(to,ka,zi,ol,zd){var gd=function(W1,dh,c8){var z9=fr(ka,c8.x/100);Ge(W1,z9)};return Ao(to,gd,zi,ol,zd)},Li=function(to,ka,zi,ol,zd){return[Kt(),qa(to,ka,zi,ol,zd),Ut()]},Is=function(to,ka,zi,ol,zd){var gd=Li(to,ka,zi,ol,zd);return $f.sketch({dom:se,components:gd.map(function(W1){return W1.asSpec()}),containerBehaviours:Rr([ba("image-tools-filter-panel-buttons-events",[sr(f1.disable(),function(W1,dh){I(gd,W1)}),sr(f1.enable(),function(W1,dh){G(gd,W1)})])])})},hl=[Kt(),cn(),Ut()],j1=$f.sketch({dom:se,components:hl.map(function(to){return to.asSpec()})}),Uf=Is("Brightness",nY,-100,0,100),GT=Is("Contrast",rY,-100,0,100),uc=Is("Gamma",tY,-100,0,100),K4=function(to,ka,zi){return function(ol){return S9(ol,to,ka,zi)}},Y4=function(to){var ka=function(zi,ol,zd){var gd=P9.getOpt(zi),W1=F9.getOpt(zi),dh=q4.getOpt(zi);gd.each(function(c8){W1.each(function(z9){dh.each(function(f8){var YX=zr.getValue(c8).x/100,qX=zr.getValue(f8).x/100,Z4=zr.getValue(z9).x/100,d8=K4(YX,qX,Z4);Ge(zi,d8)})})})};return Ao(to,ka,0,100,200)},P9=Y4("R"),q4=Y4("G"),F9=Y4("B"),$d=[Kt(),P9,q4,F9,Ut()],mp=$f.sketch({dom:se,components:$d.map(function(to){return to.asSpec()})}),md=function(to,ka,zi){return function(ol){var zd=function(){gp.getOpt(ol).each(function(gd){ra.set(gd,[to]),zi(gd)})};we(ol,zf.swap(),{transform:ka,swap:zd})}},$9=function(to){a.showCrop()},Wy=function(to){vn.getOpt(to).each(function(ka){var zi=a.getMeasurements(),ol=zi.width,zd=zi.height;zr.setValue(ka,{width:ol,height:zd})})},u8=M.some(XP),cc=M.some(eY),Hg=[x("crop","Crop",md(Un,M.none(),$9),!1),x("resize","Resize",md(Hr,M.none(),Wy),!1),x("orientation","Orientation",md(co,M.none(),ge),!1),x("brightness","Brightness",md(Uf,M.none(),ge),!1),x("sharpen","Sharpen",md(j1,u8,ge),!1),x("contrast","Contrast",md(GT,M.none(),ge),!1),x("color-levels","Color levels",md(mp,M.none(),ge),!1),x("gamma","Gamma",md(uc,M.none(),ge),!1),x("invert","Invert",md(j1,cc,ge),!1)],Gy=$f.sketch({dom:se,components:Hg.map(function(to){return to.asSpec()})}),X4=$f.sketch({dom:{tag:"div"},components:[Gy],containerBehaviours:Rr([ra.config({})])}),gp=Ii(X4),Ky=function(to){return gp.getOpt(to).map(function(ka){var zi=ka.components()[0];return zi.components()[zi.components().length-1]})};return{memContainer:gp,getApplyButton:Ky}},mF=tinymce.util.Tools.resolve("tinymce.geom.Rect"),kY=tinymce.util.Tools.resolve("tinymce.util.Observable"),zg=tinymce.util.Tools.resolve("tinymce.util.VK"),OY=function(a){var c=Math.max,p=a.documentElement,x=a.body,I=c(p.scrollWidth,x.scrollWidth),G=c(p.clientWidth,x.clientWidth),se=c(p.offsetWidth,x.offsetWidth),ge=c(p.scrollHeight,x.scrollHeight),we=c(p.clientHeight,x.clientHeight),ke=c(p.offsetHeight,x.offsetHeight);return{width:I<se?G:I,height:ge<ke?we:ge}},MY=function(a){return y(a.changedTouches)},IN=function(a){if(MY(a))for(var c="screenX screenY pageX pageY clientX clientY".split(" "),p=0;p<c.length;p++)a[c[p]]=a.changedTouches[0][c[p]]};function NY(a,c){var p,x,I,G,se=[],ge=[],we=(p=c.document)!==null&&p!==void 0?p:document,ke=(x=c.root)!==null&&x!==void 0?x:we,ze=Rt.fromDom(we),Ge,ut,yt,Ot=Rt.fromDom(ke.getElementById((I=c.handle)!==null&&I!==void 0?I:a)),Kt=function(jn){var Un=jn.raw,vn=OY(we);IN(Un),jn.prevent(),Ge=Un.button,ut=Un.screenX,yt=Un.screenY;var Pn=ks(Ot,"cursor");G=Rt.fromTag("div",we),Tl(G,{position:"absolute",top:"0",left:"0",width:vn.width+"px",height:vn.height+"px","z-index":2147483647+"",opacity:"0.0001",cursor:Pn}),Al(si(ze),G),ge.push(Dl(ze,"mousemove",cn),Dl(ze,"touchmove",cn),Dl(ze,"mouseup",Ut),Dl(ze,"touchend",Ut)),c.start(Un)},cn=function(jn){var Un=jn.raw;if(IN(Un),Un.button!==Ge)return Ut(jn);Un.deltaX=Un.screenX-ut,Un.deltaY=Un.screenY-yt,jn.prevent(),c.drag(Un)},Ut=function(jn){IN(jn.raw),Te(ge,function(Un){return Un.unbind()}),ge=[],bc(G),c.stop&&c.stop(jn.raw)},hn=function(){Te(ge.concat(se),function(jn){return jn.unbind()}),ge=[],se=[],y(G)&&bc(G)};return se.push(Dl(Ot,"mousedown",Kt),Dl(Ot,"touchstart",Kt)),{destroy:hn}}var DY=0,IY=function(a,c,p,x,I){var G,se=[],ge="tox-",we=ge+"crid-"+DY++,ke=Rt.fromDom(x),ze=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],Ge=["top","right","bottom","left"],ut=function(fr,Wr){return{x:Wr.x+fr.x,y:Wr.y+fr.y,w:Wr.w,h:Wr.h}},yt=function(fr,Wr){return{x:Wr.x-fr.x,y:Wr.y-fr.y,w:Wr.w,h:Wr.h}},Ot=function(){return yt(p,a)},Kt=function(fr,Wr,dr,nr){var Mr=Wr.x+dr*fr.deltaX,go=Wr.y+nr*fr.deltaY,ur=Math.max(20,Wr.w+dr*fr.deltaW),co=Math.max(20,Wr.h+nr*fr.deltaH),Ao=a=mF.clamp({x:Mr,y:go,w:ur,h:co},p,fr.name==="move");Ao=yt(p,Ao),Hr.fire("updateRect",{rect:Ao}),vn(Ao)},cn=function(){var fr=function(Mr){var go;return NY(we,{document:x.ownerDocument,root:So(ke).dom,handle:we+"-"+Mr.name,start:function(){go=a},drag:function(ur){Kt(Mr,go,ur.deltaX,ur.deltaY)}})},Wr=Rt.fromTag("div");qc(Wr,{id:we,class:ge+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Al(ke,Wr),Te(Ge,function(Mr){bu(ke,"#"+we).each(function(go){var ur=Rt.fromTag("div");qc(ur,{id:we+"-"+Mr,class:ge+"croprect-block","data-mce-bogus":"all"}),Jo(ur,"display","none"),Al(go,ur)})}),Te(ze,function(Mr){bu(ke,"#"+we).each(function(go){var ur=Rt.fromTag("div");qc(ur,{id:we+"-"+Mr.name,"aria-label":Mr.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:Mr.label}),qm(ur,[ge+"croprect-handle",ge+"croprect-handle-"+Mr.name]),Jo(ur,"display","none"),Al(go,ur)})}),G=Ae(ze,fr),hn(a);
127var dr=function(Mr){ha(Mr.target,"aria-grabbed",Mr.raw.type==="focus"?"true":"false")},nr=function(Mr){var go;Te(ze,function(co){if(ps(Mr.target,"id")===we+"-"+co.name)return go=co,!1});var ur=function(co,Ao,qa,Li,Is){co.stopPropagation(),co.preventDefault(),Kt(go,qa,Li,Is)};switch(Mr.raw.keyCode){case zg.LEFT:ur(Mr,go,a,-10,0);break;case zg.RIGHT:ur(Mr,go,a,10,0);break;case zg.UP:ur(Mr,go,a,0,-10);break;case zg.DOWN:ur(Mr,go,a,0,10);break;case zg.ENTER:case zg.SPACEBAR:Mr.prevent(),I();break}};se.push(Dl(ke,"focusin",dr),Dl(ke,"focusout",dr),Dl(ke,"keydown",nr))},Ut=function(fr){var Wr=fe(fe([],Ae(ze,function(nr){return"#"+we+"-"+nr.name}),!0),Ae(Ge,function(nr){return"#"+we+"-"+nr}),!0).join(","),dr=of(ke,Wr);fr?Te(dr,function(nr){return ai(nr,"display")}):Te(dr,function(nr){return Jo(nr,"display","none")})},hn=function(fr){var Wr=function(dr,nr){bu(ke,"#"+we+"-"+dr).each(function(Mr){Tl(Mr,{left:nr.x+"px",top:nr.y+"px",width:Math.max(0,nr.w)+"px",height:Math.max(0,nr.h)+"px"})})};Te(ze,function(dr){bu(ke,"#"+we+"-"+dr.name).each(function(nr){Tl(nr,{left:fr.w*dr.xMul+fr.x+"px",top:fr.h*dr.yMul+fr.y+"px"})})}),Wr("top",{x:c.x,y:c.y,w:c.w,h:fr.y-c.y}),Wr("right",{x:fr.x+fr.w,y:fr.y,w:c.w-fr.x-fr.w+c.x,h:fr.h}),Wr("bottom",{x:c.x,y:fr.y+fr.h,w:c.w,h:c.h-fr.y-fr.h+c.y}),Wr("left",{x:c.x,y:fr.y,w:fr.x-c.x,h:fr.h}),Wr("move",fr)},jn=function(fr){a=fr,hn(a)},Un=function(fr){c=fr,hn(a)},vn=function(fr){jn(ut(p,fr))},Pn=function(fr){p=fr,hn(a)},or=function(){Te(G,function(fr){return fr.destroy()}),G=[],Te(se,function(fr){return fr.unbind()}),se=[]};cn();var Hr=V(V({},kY),{toggleVisibility:Ut,setClampRect:Pn,setRect:jn,getInnerRect:Ot,setInnerRect:vn,setViewPortRect:Un,destroy:or});return Hr},RY={create:IY},gF=function(a){return new O4(function(c){var p=function(){a.removeEventListener("load",p),c(a)};a.complete?c(a):a.addEventListener("load",p)})},LY=function(a){var c=Ii({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),p=Oo(1),x=A5(),I=Oo({x:0,y:0,w:1,h:1}),G=Oo({x:0,y:0,w:1,h:1}),se=function(cn,Ut){Ot.getOpt(cn).each(function(hn){var jn=p.get(),Un=Ou(hn.element),vn=gl(hn.element),Pn=Ut.dom.naturalWidth*jn,or=Ut.dom.naturalHeight*jn,Hr=Math.max(0,Un/2-Pn/2),fr=Math.max(0,vn/2-or/2),Wr={left:Hr.toString()+"px",top:fr.toString()+"px",width:Pn.toString()+"px",height:or.toString()+"px",position:"absolute"};Tl(Ut,Wr),c.getOpt(hn).each(function(dr){Tl(dr.element,Wr)}),x.run(function(dr){var nr=I.get();dr.setRect({x:nr.x*jn+Hr,y:nr.y*jn+fr,w:nr.w*jn,h:nr.h*jn}),dr.setClampRect({x:Hr,y:fr,w:Pn,h:or}),dr.setViewPortRect({x:0,y:0,w:Un,h:vn})})})},ge=function(cn,Ut){Ot.getOpt(cn).each(function(hn){var jn=Ou(hn.element),Un=gl(hn.element),vn=Ut.dom.naturalWidth,Pn=Ut.dom.naturalHeight,or=Math.min(jn/vn,Un/Pn);or>=1?p.set(1):p.set(or)})},we=function(cn,Ut){var hn=Rt.fromTag("img");return ha(hn,"src",Ut),gF(hn.dom).then(function(){cn.getSystem().isConnected()&&Ot.getOpt(cn).map(function(jn){var Un=X3({element:hn});ra.replaceAt(jn,1,M.some(Un));var vn=G.get(),Pn={x:0,y:0,w:hn.dom.naturalWidth,h:hn.dom.naturalHeight};G.set(Pn);var or=mF.inflate(Pn,-20,-20);I.set(or),(vn.w!==Pn.w||vn.h!==Pn.h)&&ge(jn,hn),se(jn,hn)})})},ke=function(cn,Ut){var hn=p.get(),jn=Ut>0?Math.min(2,hn+.1):Math.max(.1,hn-.1);p.set(jn),Ot.getOpt(cn).each(function(Un){var vn=Un.components()[1].element;se(Un,vn)})},ze=function(){x.run(function(cn){cn.toggleVisibility(!0)})},Ge=function(){x.run(function(cn){cn.toggleVisibility(!1)})},ut=function(){return I.get()},yt=$f.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[c.asSpec(),{dom:{tag:"img",attributes:{src:a}}},{dom:{tag:"div"},behaviours:Rr([ba("image-panel-crop-events",[qo(function(cn){Ot.getOpt(cn).each(function(Ut){var hn=Ut.element.dom,jn=RY.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},hn,T);jn.toggleVisibility(!1),jn.on("updateRect",function(Un){var vn=Un.rect,Pn=p.get(),or={x:Math.round(vn.x/Pn),y:Math.round(vn.y/Pn),w:Math.round(vn.w/Pn),h:Math.round(vn.h/Pn)};I.set(or)}),x.set(jn)})}),Uc(function(){x.clear()})])])}],containerBehaviours:Rr([ra.config({}),ba("image-panel-events",[qo(function(cn){we(cn,a)})])])}),Ot=Ii(yt),Kt=function(){var cn=G.get();return{width:cn.w,height:cn.h}};return{memContainer:Ot,updateSrc:we,zoom:ke,showCrop:ze,hideCrop:Ge,getRect:ut,getMeasurements:Kt}},wT=function(a,c,p,x,I){return sF({name:a,icon:M.some(c),disabled:p,tooltip:M.some(a),primary:!1,borderless:!1},x,I)},yF=function(a,c){c?Ho.enable(a):Ho.disable(a)},BY=function(a){var c=function(G,se,ge){p.getOpt(G).each(function(we){yF(we,se)}),x.getOpt(G).each(function(we){yF(we,ge)})},p=Ii(wT("Undo","undo",!0,function(G){zo(G,zf.undo(),{direction:1})},a)),x=Ii(wT("Redo","redo",!0,function(G){zo(G,zf.redo(),{direction:1})},a)),I=$f.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[p.asSpec(),x.asSpec(),wT("Zoom in","zoom-in",!1,function(G){zo(G,zf.zoom(),{direction:1})},a),wT("Zoom out","zoom-out",!1,function(G){zo(G,zf.zoom(),{direction:-1})},a)]});return{container:I,updateButtonUndoStates:c}};function PY(){var a=[],c=-1,p=function(ge){var we=a.splice(++c);return a.push(ge),{state:ge,removed:we}},x=function(){if(G())return a[--c]},I=function(){if(se())return a[++c]},G=function(){return c>0},se=function(){return c!==-1&&c<a.length-1};return{data:a,add:p,undo:x,redo:I,canUndo:G,canRedo:se}}var FY=function(a){var c=Oo(a),p=wl(),x=PY();x.add(a);var I=function(){return c.get()},G=function(hn){c.set(hn)},se=function(){return p.get().getOrThunk(c.get)},ge=function(hn){var jn=we(hn);return Ge(),p.set(jn),jn.url},we=function(hn){return{blob:hn,url:URL.createObjectURL(hn)}},ke=function(hn){URL.revokeObjectURL(hn.url)},ze=function(hn){By.each(hn,ke)},Ge=function(){p.on(ke),p.clear()},ut=function(hn){var jn=we(hn);G(jn);var Un=x.add(jn).removed;return ze(Un),jn.url},yt=function(hn){var jn=we(hn);return p.set(jn),jn.url},Ot=function(hn){return p.get().fold(T,function(jn){ut(jn.blob),hn()})},Kt=function(){var hn=x.undo();return G(hn),hn.url},cn=function(){var hn=x.redo();return G(hn),hn.url},Ut=function(){var hn=x.canUndo(),jn=x.canRedo();return{undoEnabled:hn,redoEnabled:jn}};return{getBlobState:I,setBlobState:G,addBlobState:ut,getTempState:se,updateTempState:ge,addTempState:yt,applyTempState:Ot,destroyTempState:Ge,undo:Kt,redo:cn,getHistoryStates:Ut}},$Y=function(a,c){var p=FY(a.currentState),x=function(dr,nr){var Mr=nr.event.direction;or.zoom(dr,Mr)},I=function(dr){var nr=p.getHistoryStates();Hr.updateButtonUndoStates(dr,nr.undoEnabled,nr.redoEnabled),zo(dr,f1.formActionEvent,{name:f1.saveState(),value:nr.undoEnabled})},G=function(dr){Hr.updateButtonUndoStates(dr,!1,!1)}
127,se=function(dr,nr){var Mr=p.undo();Ge(dr,Mr).then(function(go){ze(dr),I(dr)})},ge=function(dr,nr){var Mr=p.redo();Ge(dr,Mr).then(function(go){ze(dr),I(dr)})},we=function(dr){return dr.toBlob()},ke=function(dr){zo(dr,f1.formActionEvent,{name:f1.disable(),value:{}})},ze=function(dr){fr.getApplyButton(dr).each(function(nr){Ho.enable(nr)}),zo(dr,f1.formActionEvent,{name:f1.enable(),value:{}})},Ge=function(dr,nr){return ke(dr),or.updateSrc(dr,nr)},ut=function(dr,nr,Mr,go,ur){ke(dr),zK(nr).then(Mr).then(we).then(go).then(function(co){return Ge(dr,co)}).then(function(){I(dr),ur(),ze(dr)}).catch(function(co){console.log(co),dr.getSystem().isConnected()&&ze(dr)})},yt=function(dr,nr,Mr){var go=p.getBlobState().blob,ur=function(co){return p.updateTempState(co)};ut(dr,go,nr,ur,Mr)},Ot=function(dr,nr){var Mr=p.getTempState().blob,go=function(ur){return p.addTempState(ur)};ut(dr,Mr,nr,go,T)},Kt=function(dr,nr,Mr){var go=p.getBlobState().blob,ur=function(co){var Ao=p.addBlobState(co);return Ut(dr),Ao};ut(dr,go,nr,ur,Mr)},cn=function(dr,nr){var Mr=function(){Ut(dr);var go=nr.event.swap;go()};p.applyTempState(Mr)},Ut=function(dr){var nr=p.getBlobState().url;return p.destroyTempState(),I(dr),nr},hn=function(dr){var nr=Ut(dr);Ge(dr,nr).then(function(Mr){ze(dr)})},jn=function(dr,nr){hn(dr);var Mr=nr.event.swap;Mr(),or.hideCrop()}
127,Un=function(dr,nr){return yt(dr,nr.event.transform,T)},vn=function(dr,nr){return Ot(dr,nr.event.transform)},Pn=function(dr,nr){return Kt(dr,nr.event.transform,nr.event.swap)},or=LY(a.currentState.url),Hr=BY(c),fr=AY(or,c),Wr=function(dr,nr){G(dr);var Mr=nr.event.transform,go=nr.event.swap;Mr.fold(function(){go()},function(ur){yt(dr,ur,go)})};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[fr.memContainer.asSpec(),or.memContainer.asSpec(),Hr.container],behaviours:Rr([zr.config({store:{mode:"manual",getValue:function(){return p.getBlobState()}}}),ba("image-tools-events",[sr(zf.undo(),se),sr(zf.redo(),ge),sr(zf.zoom(),x),sr(zf.back(),jn),sr(zf.apply(),cn),sr(zf.transform(),Un),sr(zf.tempTransform(),vn),sr(zf.transformApply(),Pn),sr(zf.swap(),Wr)]),fp.self()])}},bF=function(a,c){var p={dom:{tag:"label",innerHtml:c.providers.translate(a.label),classes:["tox-label"]}},x=Ae(a.items,c.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[p].concat(x),behaviours:Rr([fp.self(),ra.config({}),P4.domHtml(M.none()),No.config({mode:"acyclic"})])}},RN=function(a){return!zn(a,"items")},_F="data-value",wF=function(a,c,p,x){return Ae(p,function(I){return RN(I)?{type:"togglemenuitem",text:I.text,value:I.value,active:I.value===x,onAction:function(){zr.setValue(a,I.value),zo(a,H1,{name:c}),oa.focus(a)}}:{type:"nestedmenuitem",text:I.text,getSubmenuItems:function(){return wF(a,c,I.items,x)}}})},CF=function(a,c){return vt(a,function(p){return RN(p)?Na(p.value===c,p):CF(p.items,c)})},zY=function(a,c){var p=c.shared.providers,x=It(a.items).filter(RN),I=a.label.map(function(ge){return Rg(ge,p)}),G=Ei.parts.field({dom:{},factory:{sketch:function(ge){return TN({uid:ge.uid,text:x.map(function(we){return we.text}),icon:M.none(),tooltip:a.label,role:M.none(),fetch:function(we,ke){var ze=wF(we,a.name,a.items,zr.getValue(we));ke(o8(ze,ap.CLOSE_ON_EXECUTE,c,!1))},onSetup:N(T),getApi:N({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Il.config({}),zr.config({store:{mode:"manual",initialValue:x.map(function(we){return we.value}).getOr(""),getValue:function(we){return ps(we.element,_F)},setValue:function(we,ke){CF(a.items,ke).each(function(ze){ha(we.element,_F,ze.value),zo(we,F4,{text:ze.text})})}}})]},"tox-listbox",c.shared)}}}),se={dom:{tag:"div",classes:["tox-listboxfield"]},components:[G]};return Ei.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([I.toArray(),[se]]),fieldBehaviours:Rr([Ho.config({disabled:N(a.disabled),onDisabled:function(ge){Ei.getField(ge).each(Ho.disable)},onEnabled:function(ge){Ei.getField(ge).each(Ho.enable)}})])})},HY=function(a,c){return{dom:{tag:"div",classes:a.classes},components:Ae(a.items,c.shared.interpreter)}},xF=function(a,c){var p=Ae(a.options,function(I){return{dom:{tag:"option",value:I.value,innerHtml:I.text}}}),x=a.data.map(function(I){return T1("initialValue",I)}).getOr({});return{uid:a.uid,dom:{tag:"select",classes:a.selectClasses,attributes:a.selectAttributes},components:p,behaviours:oc(a.selectBehaviours,[oa.config({}),zr.config({store:V({mode:"manual",getValue:function(I){return $h(I.element)},setValue:function(I,G){var se=lt(a.options,function(ge){return ge.value===G});se.isSome()&&O2(I.element,G)}},x)})])}},$4=u1({name:"HtmlSelect",configFields:[rr("options"),xu("selectBehaviours",[oa,zr]),fn("selectClasses",[]),fn("selectAttributes",{}),pi("data")],factory:xF}),CT=function(a,c){var p=Ae(a.items,function(ge){return{text:c.translate(ge.text),value:ge.value}}),x=a.label.map(function(ge){return Rg(ge,c)}),I=Ei.parts.field({dom:{},selectAttributes:{size:a.size},options:p,factory:$4,selectBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()}}),Il.config({}),ba("selectbox-change",[sr(B0(),function(ge,we){zo(ge,H1,{name:a.name})})])])}),G=a.size>1?M.none():M.some(n0("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},c.icons)),se={dom:{tag:"div",classes:["tox-selectfield"]},components:Fe([[I],G.toArray()])};return Ei.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([x.toArray(),[se]]),fieldBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()},onDisabled:function(ge){Ei.getField(ge).each(Ho.disable)},onEnabled:function(ge){Ei.getField(ge).each(Ho.enable)}}),Hu()])})},VY=function(a,c){var p=function(ge){return{dom:{tag:"th",innerHtml:c.translate(ge)}}},x=function(ge){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:Ae(ge,p)}]}},I=function(ge){return{dom:{tag:"td",innerHtml:c.translate(ge)}}},G=function(ge){return{dom:{tag:"tr"},components:Ae(ge,I)}},se=function(ge){return{dom:{tag:"tbody"},components:Ae(ge,G)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[x(a.header),se(a.cells)],behaviours:Rr([Il.config({}),oa.config({})])}},EF=function(a,c){var p=a.label.map(function(ut){return Rg(ut,c)}),x=[Ho.config({disabled:function(){return a.disabled||c.isDisabled()}}),Hu(),No.config({mode:"execution",useEnter:a.multiline!==!0,useControlEnter:a.multiline===!0,execute:function(ut){return li(ut,p9),M.some(!0)}}),ba("textfield-change",[sr(r1(),function(ut,yt){zo(ut,H1,{name:a.name})}),sr(g2(),function(ut,yt){zo(ut,H1,{name:a.name})})]),Il.config({})],I=a.validation.map(function(ut){return pm.config({getRoot:function(yt){return Cs(yt.element)},invalidClass:"tox-invalid",validator:{validate:function(yt){var Ot=zr.getValue(yt),Kt=ut.validator(Ot);return lf.pure(Kt===!0?ya.value(Ot):ya.error(Kt))},validateOnLoad:ut.validateOnLoad}})}).toArray(),G=a.placeholder.fold(N({}),function(ut){return{placeholder:c.translate(ut)}}),se=a.inputMode.fold(N({}),function(ut){return{inputmode:ut}}),ge=V(V({},G),se),we=Ei.parts.field({tag:a.multiline===!0?"textarea":"input",inputAttributes:ge,inputClasses:[a.classname],inputBehaviours:Rr(Fe([x,I])),selectOnFocus:!1,factory:j_}),ke=a.flex?["tox-form__group--stretched"]:[],ze=ke.concat(a.maximized?["tox-form-group--maximize"]:[]),Ge=[Ho.config({disabled:function(){return a.disabled||c.isDisabled()},onDisabled:function(ut){Ei.getField(ut).each(Ho.disable)},onEnabled:function(ut){Ei.getField(ut).each(Ho.enable)}}),Hu()];return v9(p,we,ze,Ge)},LN=function(a,c){return EF({name:a.name,multiline:!1,label:a.label,inputMode:a.inputMode,placeholder:a.placeholder,flex:!1,disabled:a.disabled,classname:"tox-textfield",validation:M.none(),maximized:a.maximized},c)},UY=function(a,c){return EF({name:a.name,multiline:!0,label:a.label,inputMode:M.none(),placeholder:a.placeholder,flex:!0,disabled:a.disabled,classname:"tox-textarea",validation:M.none(),maximized:a.maximized},c)},jY=function(a,c){var p=a.stream.streams,x=p.setup(a,c);return Fi([sr(a.event,x),Uc(function(){return c.cancel()})].concat(a.cancelEvent.map(function(I){return[sr(I,function(){return c.cancel()})]}
127).getOr([])))},BN=Object.freeze({__proto__:null,events:jY}),PN=function(a){var c=Oo(null),p=function(){return{timer:c.get()!==null?"set":"unset"}},x=function(G){c.set(G)},I=function(){var G=c.get();G!==null&&G.cancel()};return tr({readState:p,setTimer:x,cancel:I})},SF=function(a){return a.stream.streams.state(a)},WY=Object.freeze({__proto__:null,throttle:PN,init:SF}),GY=function(a,c){var p=a.stream,x=iS(a.onStream,p.delay);return c.setTimer(x),function(I,G){x.throttle(I,G),p.stopEvent&&G.stop()}},KY=[Fc("stream",rd("mode",{throttle:[rr("delay"),fn("stopEvent",!0),vs("streams",{setup:GY,state:PN})]})),fn("event","input"),pi("cancelEvent"),If("onStream")],TF=Cu({fields:KY,name:"streaming",active:BN,state:WY}),xT=function(a,c,p){var x=zr.getValue(p);zr.setValue(c,x),AF(c)},FN=function(a,c){var p=a.element,x=$h(p),I=p.dom;ps(p,"type")!=="number"&&c(I,x)},AF=function(a){FN(a,function(c,p){return c.setSelectionRange(p.length,p.length)})},kF=function(a,c){FN(a,function(p,x){return p.setSelectionRange(c,x.length)})},YY=function(a,c,p){if(a.selectsOver){var x=zr.getValue(c),I=a.getDisplayText(x),G=zr.getValue(p),se=a.getDisplayText(G);return se.indexOf(I)===0?M.some(function(){xT(a,c,p),kF(c,I.length)}):M.none()}else return M.none()},$N=N("alloy.typeahead.itemexecute"),zN=function(a,c,p,x){var I=function(we,ke,ze){a.previewing.set(!1);var Ge=Wl.getCoupled(we,"sandbox");if(ti.isOpen(Ge))Wa.getCurrent(Ge).each(function(yt){ki.getHighlighted(yt).fold(function(){ze(yt)},function(){Db(Ge,yt.element,"keydown",ke)})});else{var ut=function(yt){Wa.getCurrent(yt).each(ze)};PM(a,se(we),we,Ge,x,ut,sp.HighlightFirst).get(T)}},G=CB(a),se=function(we){return function(ke){return ke.map(function(ze){var Ge=pn(ze.menus),ut=We(Ge,function(Ot){return De(Ot.items,function(Kt){return Kt.type==="item"})}),yt=zr.getState(we);return yt.update(Ae(ut,function(Ot){return Ot.data})),ze})}},ge=[oa.config({}),zr.config({onSetValue:a.onSetValue,store:V({mode:"dataset",getDataKey:function(we){return $h(we.element)},getFallbackEntry:function(we){return{value:we,meta:{}}},setValue:function(we,ke){O2(we.element,a.model.getDisplayText(ke))}},a.initialData.map(function(we){return T1("initialValue",we)}).getOr({}))}),TF.config({stream:{mode:"throttle",delay:a.responseTime,stopEvent:!1},onStream:function(we,ke){var ze=Wl.getCoupled(we,"sandbox"),Ge=oa.isFocused(we);if(Ge&&$h(we.element).length>=a.minChars){var ut=Wa.getCurrent(ze).bind(function(Ot){return ki.getHighlighted(Ot).map(zr.getValue)});a.previewing.set(!0);var yt=function(Ot){Wa.getCurrent(ze).each(function(Kt){ut.fold(function(){a.model.selectsOver&&ki.highlightFirst(Kt)},function(cn){ki.highlightBy(Kt,function(Ut){var hn=zr.getValue(Ut);return hn.value===cn.value}),ki.getHighlighted(Kt).orThunk(function(){return ki.highlightFirst(Kt),M.none()})})})};PM(a,se(we),we,ze,x,yt,sp.HighlightFirst).get(T)}},cancelEvent:b2()}),No.config({mode:"special",onDown:function(we,ke){return I(we,ke,ki.highlightFirst),M.some(!0)},onEscape:function(we){var ke=Wl.getCoupled(we,"sandbox");return ti.isOpen(ke)?(ti.close(ke),M.some(!0)):M.none()},onUp:function(we,ke){return I(we,ke,ki.highlightLast),M.some(!0)},onEnter:function(we){var ke=Wl.getCoupled(we,"sandbox"),ze=ti.isOpen(ke);if(ze&&!a.previewing.get())return Wa.getCurrent(ke).bind(function(ut){return ki.getHighlighted(ut)}).map(function(ut){return zo(we,$N(),{item:ut}),!0});var Ge=zr.getValue(we);return li(we,b2()),a.onExecute(ke,we,Ge),ze&&ti.close(ke),M.some(!0)}}),Qa.config({toggleClass:a.markers.openClass,aria:{mode:"expanded"}}),Wl.config({others:{sandbox:function(we){return $M(a,we,{onOpen:function(){return Qa.on(we)},onClose:function(){return Qa.off(we)}})}}}),ba("typeaheadevents",[ef(function(we){var ke=T;G_(a,se(we),we,x,ke,sp.HighlightFirst).get(T)}),sr($N(),function(we,ke){var ze=Wl.getCoupled(we,"sandbox");xT(a.model,we,ke.event.item),li(we,b2()),a.onItemExecute(we,ze,ke.event.item,zr.getValue(we)),ti.close(ze),AF(we)})].concat(a.dismissOnBlur?[sr(F0(),function(we){var ke=Wl.getCoupled(we,"sandbox");eh(ke.element).isNone()&&ti.close(ke)})]:[]))];return{uid:a.uid,dom:xv(qn(a,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:V(V({}
127,G),oc(a.typeaheadBehaviours,ge)),eventOrder:a.eventOrder}},HN=N([pi("lazySink"),rr("fetch"),fn("minChars",5),fn("responseTime",1e3),xi("onOpen"),fn("getHotspot",M.some),fn("getAnchorOverrides",N({})),fn("layouts",M.none()),fn("eventOrder",{}),Sb("model",{},[fn("getDisplayText",function(a){return a.meta!==void 0&&a.meta.text!==void 0?a.meta.text:a.value}),fn("selectsOver",!0),fn("populateFromBrowse",!0)]),xi("onSetValue"),_u("onExecute"),xi("onItemExecute"),fn("inputClasses",[]),fn("inputAttributes",{}),fn("inputStyles",{}),fn("matchWidth",!0),fn("useMinWidth",!1),fn("dismissOnBlur",!0),Jm(["openClass"]),pi("initialData"),xu("typeaheadBehaviours",[oa,zr,TF,No,Qa,Wl]),Pc("previewing",function(){return Oo(!0)})].concat(Lg()).concat(zM())),k9=N([l1({schema:[Qm()],name:"menu",overrides:function(a){return{fakeFocus:!0,onHighlight:function(c,p){a.previewing.get()?c.getSystem().getByUid(a.uid).each(function(x){YY(a.model,x,p).fold(function(){return ki.dehighlight(c,p)},function(I){return I()})}):c.getSystem().getByUid(a.uid).each(function(x){a.model.populateFromBrowse&&xT(a.model,x,p)}),a.previewing.set(!1)},onExecute:function(c,p){return c.getSystem().getByUid(a.uid).toOptional().map(function(x){return zo(x,$N(),{item:p}),!0})},onHover:function(c,p){a.previewing.set(!1),c.getSystem().getByUid(a.uid).each(function(x){a.model.populateFromBrowse&&xT(a.model,x,p)})}}}})]),qY=Pf({name:"Typeahead",configFields:HN(),partFields:k9(),factory:zN}),i0=function(a){var c=function(){return i0(a.toCached())},p=function(we){return i0(a.bind(function(ke){return ke.fold(function(ze){return lf.pure(ya.error(ze))},function(ze){return we(ze)})}))},x=function(we){return i0(a.map(function(ke){return ke.bind(we)}))},I=function(we){return i0(a.map(function(ke){return ke.map(we)}))},G=function(we){return i0(a.map(function(ke){return ke.mapError(we)}))},se=function(we,ke){return a.map(function(ze){return ze.fold(we,ke)})},ge=function(we,ke){return i0(lf.nu(function(ze){var Ge=!1,ut=setTimeout(function(){Ge=!0,ze(ya.error(ke()))},we);a.get(function(yt){Ge||(clearTimeout(ut),ze(yt))})}))};return V(V({},a),{toCached:c,bindFuture:p,bindResult:x,mapResult:I,mapError:G,foldResult:se,withTimeout:ge})},OF=function(a){return i0(lf.nu(a))},MF=function(a){return i0(lf.pure(ya.value(a)))},XY=function(a){return i0(lf.pure(ya.error(a)))},NF=function(a){return i0(lf.pure(a))},DF=function(a){return i0(a.map(ya.value))},IF=function(a){return OF(function(c){a.then(function(p){c(ya.value(p))},function(p){c(ya.error(p))})})},ZY={nu:OF,wrap:i0,pure:MF,value:MF,error:XY,fromResult:NF,fromFuture:DF,fromPromise:IF},QY={type:"separator"},JY=function(a){return{type:"menuitem",value:a.url,text:a.title,meta:{attach:a.attach},onAction:T}},VN=function(a,c){return{type:"menuitem",value:c,text:a,meta:{attach:void 0},onAction:T}},eq=function(a){return Ae(a,JY)},RF=function(a,c){return De(c,function(p){return p.type===a})},LF=function(a,c){return eq(RF(a,c))},tq=function(a){return LF("header",a.targets)},nq=function(a){return LF("anchor",a.targets)},rq=function(a){return M.from(a.anchorTop).map(function(c){return VN("<top>",c)}).toArray()},BF=function(a){return M.from(a.anchorBottom).map(function(c){return VN("<bottom>",c)}).toArray()},z4=function(a){return Ae(a,function(c){return VN(c,c)})},PF=function(a){return rt(a,function(c,p){var x=c.length===0||p.length===0;return x?c.concat(p):c.concat(QY,p)},[])},UN=function(a,c){var p=a.toLowerCase();return De(c,function(x){var I=x.meta!==void 0&&x.meta.text!==void 0?x.meta.text:x.text;return ga(I.toLowerCase(),p)||ga(x.value.toLowerCase(),p)})},oq=function(a,c,p){var x=zr.getValue(c),I=x.meta.text!==void 0?x.meta.text:x.value,G=p.getLinkInformation();return G.fold(function(){return[]},function(se){var ge=UN(I,z4(p.getHistory(a)));return a==="file"?PF([ge,UN(I,tq(se)),UN(I,Fe([rq(se),nq(se),BF(se)]))]):ge})},FF=so("aria-invalid"),$F=function(a,c,p){var x,I=c.shared.providers,G=function(Ut){var hn=zr.getValue(Ut);p.addToHistory(hn.value,a.filetype)},se=Ei.parts.field({factory:qY,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":FF,type:"url"},minChars:0,responseTime:0,fetch:function(Ut){var hn=oq(a.filetype,Ut,p),jn=o8(hn,ap.BUBBLE_TO_SANDBOX,c,!1);return lf.pure(jn)},getHotspot:function(Ut){return yt.getOpt(Ut)},onSetValue:function(Ut,hn){Ut.hasConfigured(pm)&&pm.run(Ut).get(T)},typeaheadBehaviours:Rr(Fe([p.getValidationHandler().map(function(Ut){return pm.config({getRoot:function(hn){return Cs(hn.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(hn,jn){ke.getOpt(hn).each(function(Un){ha(Un.element,"title",I.translate(jn))})}},validator:{validate:function(hn){var jn=zr.getValue(hn);return ZY.nu(function(Un){Ut({type:a.filetype,url:jn.value},function(vn){if(vn.status==="invalid"){var Pn=ya.error(vn.message);Un(Pn)}else{var or=ya.value(vn.message);Un(or)}})})},validateOnLoad:!1}})}).toArray(),[Ho.config({disabled:function(){return a.disabled||I.isDisabled()}}),Il.config({}),ba("urlinput-events",Fe([a.filetype==="file"?[sr(r1(),function(Ut){zo(Ut,H1,{name:a.name})})]:[],[sr(B0(),function(Ut){zo(Ut,H1,{name:a.name}),G(Ut)}),sr(g2(),function(Ut){zo(Ut,H1,{name:a.name}),G(Ut)})]]))]])),eventOrder:(x={}
127,x[r1()]=["streaming","urlinput-events","invalidating"],x),model:{getDisplayText:function(Ut){return Ut.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:c.shared.getSink,parts:{menu:hS(!1,1,"normal")},onExecute:function(Ut,hn,jn){zo(hn,p9,{})},onItemExecute:function(Ut,hn,jn,Un){G(Ut),zo(Ut,H1,{name:a.name})}}),ge=a.label.map(function(Ut){return Rg(Ut,I)}),we=function(Ut,hn,jn,Un){return jn===void 0&&(jn=Ut),Un===void 0&&(Un=Ut),n0(jn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Ut],attributes:V({title:I.translate(Un),"aria-live":"polite"},hn.fold(function(){return{}},function(vn){return{id:vn}}))},I.icons)},ke=Ii(we("invalid",M.some(FF),"warning")),ze=Ii({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[ke.asSpec()]}),Ge=p.getUrlPicker(a.filetype),ut=so("browser.url.event"),yt=Ii({dom:{tag:"div",classes:["tox-control-wrap"]},components:[se,ze.asSpec()],behaviours:Rr([Ho.config({disabled:function(){return a.disabled||I.isDisabled()}})])}),Ot=Ii(ON({name:a.name,icon:M.some("browse"),text:a.label.getOr(""),disabled:a.disabled,primary:!1,borderless:!0},function(Ut){return li(Ut,ut)},I,[],["tox-browse-url"])),Kt=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Fe([[yt.asSpec()],Ge.map(function(){return Ot.asSpec()}).toArray()])}},cn=function(Ut){Wa.getCurrent(Ut).each(function(hn){var jn=zr.getValue(hn),Un=V({fieldname:a.name},jn);Ge.each(function(vn){vn(Un).get(function(Pn){zr.setValue(hn,Pn),zo(Ut,H1,{name:a.name})})})})};return Ei.sketch({dom:hG(),components:ge.toArray().concat([Kt()]),fieldBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||I.isDisabled()},onDisabled:function(Ut){Ei.getField(Ut).each(Ho.disable),Ot.getOpt(Ut).each(Ho.disable)},onEnabled:function(Ut){Ei.getField(Ut).each(Ho.enable),Ot.getOpt(Ut).each(Ho.enable)}}),Hu(),ba("url-input-events",[sr(ut,cn)])])})},aq=function(a,c){return $f.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+a.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[Rd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:MR(a.icon,c.icons),attributes:{title:c.translate(a.iconTooltip)}},action:function(p){zo(p,hm,{name:"alert-banner",value:a.url})},buttonBehaviours:Rr([zO()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:c.translate(a.text)}}]})},iq=function(a,c){var p=zr.config({store:{mode:"manual",getValue:function(we){var ke=we.element.dom;return ke.checked},setValue:function(we,ke){var ze=we.element.dom;ze.checked=ke}}}),x=function(we){return we.element.dom.click(),M.some(!0)},I=Ei.parts.field({factory:{sketch:A},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Rr([fp.self(),Ho.config({disabled:function(){return a.disabled||c.isDisabled()}}),Il.config({}),oa.config({}),p,No.config({mode:"special",onEnter:x,onSpace:x,stopSpaceKeyup:!0}),ba("checkbox-events",[sr(B0(),function(we,ke){zo(we,H1,{name:a.name})})])])}),G=Ei.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:c.translate(a.label)},behaviours:Rr([Y_.config({})])}),se=function(we){var ke=we==="checked"?"selected":"unselected";return n0(ke,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+we]},c.icons)},ge=Ii({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[se("checked"),se("unchecked")]});return Ei.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[I,ge.asSpec(),G],fieldBehaviours:Rr([Ho.config({disabled:function(){return a.disabled||c.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(we){Ei.getField(we).each(Ho.disable)},onEnabled:function(we){Ei.getField(we).each(Ho.enable)}}),Hu()])})},sq=function(a){return a.presets==="presentation"?$f.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:a.html}}):$f.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:a.html,attributes:{role:"document"}},containerBehaviours:Rr([Il.config({}),oa.config({})])})},kc=function(a){return function(c,p,x){return En(p,"name").fold(function(){return a(p,x)},function(I){return c.field(I,a(p,x))})}},lq=function(a){return function(c,p,x){var I=qn(p,{source:"dynamic"});return kc(a)(c,I,x)}},uq={bar:kc(function(a,c){return uG(a,c.shared)}),collection:kc(function(a,c){return pG(a,c.shared.providers)}),alertbanner:kc(function(a,c){return aq(a,c.shared.providers)}
127),input:kc(function(a,c){return LN(a,c.shared.providers)}),textarea:kc(function(a,c){return UY(a,c.shared.providers)}),label:kc(function(a,c){return bF(a,c.shared)}),iframe:lq(function(a,c){return MK(a,c.shared.providers)}),button:kc(function(a,c){return fY(a,c.shared.providers)}),checkbox:kc(function(a,c){return iq(a,c.shared.providers)}),colorinput:kc(function(a,c){return MG(a,c.shared,c.colorinput)}),colorpicker:kc(DP),dropzone:kc(function(a,c){return t8(a,c.shared.providers)}),grid:kc(function(a,c){return PP(a,c.shared)}),listbox:kc(function(a,c){return zY(a,c)}),selectbox:kc(function(a,c){return CT(a,c.shared.providers)}),sizeinput:kc(function(a,c){return vF(a,c.shared.providers)}),urlinput:kc(function(a,c){return $F(a,c,c.urlinput)}),customeditor:kc(RP),htmlpanel:kc(sq),imagetools:kc(function(a,c){return $Y(a,c.shared.providers)}),table:kc(function(a,c){return VY(a,c.shared.providers)}),panel:kc(function(a,c){return HY(a,c)})},cq={field:function(a,c){return c}},zF=function(a,c,p){var x=qn(p,{shared:{interpreter:function(I){return jN(a,I,x)}}});return jN(a,c,x)},jN=function(a,c,p){return En(uq,c.type).fold(function(){return console.error('Unknown factory type "'+c.type+'", defaulting to container: ',c),c},function(x){return x(a,c,p)})},fq=function(a,c){var p=cq;return jN(p,a,c)},WN={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},dq=function(a,c,p){var x=12,I={maxHeightFunction:H2()},G=function(){return{type:"node",root:yr(a()),node:M.from(a()),bubble:ig(x,x,WN),layouts:{onRtl:function(){return[Og]},onLtr:function(){return[S4]}},overrides:I}},se=function(){return{type:"hotspot",hotspot:c(),bubble:ig(-x,x,WN),layouts:{onRtl:function(){return[jc]},onLtr:function(){return[$u]}},overrides:I}};return function(){return p()?G():se()}},vq=function(a,c,p){var x=function(){return{type:"node",root:yr(a()),node:M.from(a()),layouts:{onRtl:function(){return[lh]},onLtr:function(){return[lh]}}}},I=function(){return{type:"hotspot",hotspot:c(),layouts:{onRtl:function(){return[tu]},onLtr:function(){return[tu]}}}};return function(){return p()?x():I()}},hq=function(a,c){return function(){return{type:"selection",root:c(),getSelection:function(){var p=a.selection.getRng();return M.some(j2.range(Rt.fromDom(p.startContainer),p.startOffset,Rt.fromDom(p.endContainer),p.endOffset))}}}},pq=function(a){return function(c){return{type:"node",root:a(),node:c}}},mq=function(a,c,p){var x=wS(a),I=function(){return Rt.fromDom(a.getBody())},G=function(){return Rt.fromDom(a.getContentAreaContainer())},se=function(){return x||!p()};return{inlineDialog:dq(G,c,se),banner:vq(G,c,se),cursor:hq(a,I),node:pq(I)}},GN=function(a){return function(c,p){var x=ZL(a);x(c,p)}},HF=function(a){return function(){return jL(a)}},gq=function(a){return function(){return xM(a)}},yq=function(a){return function(){return IS(a)}},bq=function(a){return{colorPicker:GN(a),hasCustomColors:HF(a),getColors:gq(a),getColorCols:yq(a)}},_q=function(a){return function(){return Yj(a)}},wq=function(a){return{isDraggableModal:_q(a)}},Cq=function(a){var c=Oo(bL(a)?"bottom":"top");return{isPositionedAtTop:function(){return c.get()==="top"},getDockingMode:c.get,setDockingMode:c.set}},VF=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],xq=function(a){return zn(a,"items")},Eq=function(a){return zn(a,"block")},ET=function(a){return zn(a,"inline")},Sq=function(a){return zn(a,"selector")},UF=function(a){return rt(a,function(c,p){if(xq(p)){var x=UF(p.items);return{customFormats:c.customFormats.concat(x.customFormats),formats:c.formats.concat([{title:p.title,items:x.formats}])}}
127else if(ET(p)||Eq(p)||Sq(p)){var I=i(p.name)?p.name:p.title.toLowerCase(),G="custom-"+I;return{customFormats:c.customFormats.concat([{name:G,format:p}]),formats:c.formats.concat([{title:p.title,format:G,icon:p.icon}])}}else return V(V({},c),{formats:c.formats.concat(p)})},{customFormats:[],formats:[]})},jF=function(a,c){var p=UF(c),x=function(I){Te(I,function(G){a.formatter.has(G.name)||a.formatter.register(G.name,G.format)})};return a.formatter?x(p.customFormats):a.on("init",function(){x(p.customFormats)}),p.formats},Fy=function(a){return zj(a).map(function(c){var p=jF(a,c);return Dg(a)?VF.concat(p):p}).getOr(VF)},WF=function(a,c,p){var x={type:"formatter",isSelected:c(a.format),getStylePreview:p(a.format)};return qn(a,x)},ST=function(a,c,p,x){var I=function(we){return WF(we,p,x)},G=function(we){var ke={type:"submenu"};return qn(we,ke)},se=function(we){var ke=i(we.name)?we.name:so(we.title),ze="custom-"+ke,Ge={type:"formatter",format:ze,isSelected:p(ze),getStylePreview:x(ze)},ut=qn(we,Ge);return a.formatter.register(ke,ut),ut},ge=function(we){return Ae(we,function(ke){var ze=Tt(ke);if(nn(ke,"items")){var Ge=ge(ke.items);return qn(G(ke),{getStyleItems:N(Ge)})}else return nn(ke,"format")?I(ke):ze.length===1&&ie(ze,"title")?qn(ke,{type:"separator"}):se(ke)})};return ge(c)},TT=function(a){var c=function(Ge){return function(){return a.formatter.match(Ge)}},p=function(Ge){return function(){var ut=a.formatter.get(Ge);return ut!==void 0?M.some({tag:ut.length>0&&(ut[0].inline||ut[0].block)||"div",styles:a.dom.parseStyle(a.formatter.getCssText(Ge))}):M.none()}},x=function(Ge){var ut=Ge.items;return ut!==void 0&&ut.length>0?We(ut,x):[Ge.format]},I=Oo([]),G=Oo([]),se=Oo([]),ge=Oo([]),we=Oo(!1);a.on("PreInit",function(Ge){var ut=Fy(a),yt=ST(a,ut,c,p);I.set(yt),G.set(We(yt,x))}),a.on("addStyleModifications",function(Ge){var ut=ST(a,Ge.items,c,p);se.set(ut),we.set(Ge.replace),ge.set(We(ut,x))});var ke=function(){var Ge=we.get()?[]:I.get(),ut=se.get();return Ge.concat(ut)},ze=function(){var Ge=we.get()?[]:G.get(),ut=ge.get();return Ge.concat(ut)};return{getData:ke,getFlattenedKeys:ze}},Tq=function(a){return y(a)&&a.nodeType===1},Aq=By.trim,GF=function(a){return function(c){return!!(Tq(c)&&(c.contentEditable===a||c.getAttribute("data-mce-contenteditable")===a))}},kq=GF("true"),Oq=GF("false"),$y=function(a,c,p,x,I){return{type:a,title:c,url:p,level:x,attach:I}},KF=function(a){for(;a=a.parentNode;){var c=a.contentEditable;if(c&&c!=="inherit")return kq(a)}return!1},Mq=function(a,c){return Ae(of(Rt.fromDom(c),a),function(p){return p.dom})},YF=function(a){return a.innerText||a.textContent},Nq=function(a){return a.id?a.id:so("h")},Dq=function(a){return a&&a.nodeName==="A"&&(a.id||a.name)!==void 0},Iq=function(a){return Dq(a)&&AT(a)},qF=function(a){return a&&/^(H[1-6])$/.test(a.nodeName)},AT=function(a){return KF(a)&&!Oq(a)},O9=function(a){return qF(a)&&AT(a)},kT=function(a){return qF(a)?parseInt(a.nodeName.substr(1),10):0},OT=function(a){var c=Nq(a),p=function(){a.id=c};return $y("header",YF(a),"#"+c,kT(a),p)},H4=function(a){var c=a.id||a.name,p=YF(a);return $y("anchor",p||"#"+c,"#"+c,0,T)},MT=function(a){return Ae(De(a,O9),OT)},Rq=function(a){return Ae(De(a,Iq),H4)},XF=function(a){var c=Mq("h1,h2,h3,h4,h5,h6,a:not([href])",a);return c},ZF=function(a){return Aq(a.title).length>0},QF=function(a){var c=XF(a);return De(MT(c).concat(Rq(c)),ZF)},Lq={find:QF},M9="tinymce-url-history",JF=5,e$=function(a){return i(a)&&/^https?/.test(a)},Bq=function(a){return u(a)&&a.length<=JF&&Ye(a,e$)},NT=function(a){return l(a)&&Mt(a,function(c){return!Bq(c)}).isNone()},DT=function(){var a=OS.getItem(M9);if(a===null)return{};var c;try{c=JSON.parse(a)}catch(p){if(p instanceof SyntaxError)return console.log("Local storage "+M9+" was not valid JSON",p),{};throw p}return NT(c)?c:(console.log("Local storage "+M9+" was not valid format",c),{})},Pq=function(a){if(!NT(a))throw new Error(`Bad format for history: 128`+JSON.stringify(a));OS.setItem(M9,JSON.stringify(a))},t$=function(a){var c=DT();return En(c,a).getOr([])},Fq=function(a,c){if(!!e$(a)){var p=DT(),x=En(p,c).getOr([]),I=De(x,function(G){return G!==a});
128p[c]=[a].concat(I).slice(0,JF),Pq(p)}},IT=function(a){return!!a},$q=function(a){return at(By.makeMap(a,/[, ]/),IT)},KN=function(a){return M.from(Qj(a)).filter(w)},V4=function(a){var c=M.some(Jj(a)).filter(IT),p=M.some(eW(a)).filter(IT),x=c.or(p).map($q);return KN(a).fold(Q,function(I){return x.fold($,function(G){return Tt(G).length>0?G:!1})})},n$=function(a,c){var p=V4(a);return v(p)?p?KN(a):M.none():p[c]?KN(a):M.none()},zq=function(a,c){return n$(a,c).map(function(p){return function(x){return lf.nu(function(I){var G=function(ge,we){if(!i(ge))throw new Error("Expected value to be string");if(we!==void 0&&!l(we))throw new Error("Expected meta to be a object");var ke={value:ge,meta:we};I(ke)},se=V({filetype:c,fieldname:x.fieldname},M.from(x.meta).getOr({}));p.call(a,G,x.value,se)})}})},YN=function(a){return M.from(a).filter(i).getOrUndefined()},Hq=function(a){return tW(a)?M.none():M.some({targets:Lq.find(a.getBody()),anchorTop:YN(xL(a)),anchorBottom:YN(nW(a))})},RT=function(a){return M.from(rW(a))},s0=function(a){return{getHistory:t$,addToHistory:Fq,getLinkInformation:function(){return Hq(a)},getValidationHandler:function(){return RT(a)},getUrlPicker:function(c){return zq(a,c)}}},Vq=function(a,c,p){var x=Oo(!1),I=Cq(c),G={shared:{providers:{icons:function(){return c.ui.registry.getAll().icons},menuItems:function(){return c.ui.registry.getAll().menuItems},translate:t0.translate,isDisabled:function(){return c.mode.isReadOnly()||c.ui.isDisabled()},getSetting:c.getParam.bind(c)},interpreter:function(se){return fq(se,G)},anchors:mq(c,p,I.isPositionedAtTop),header:I,getSink:function(){return ya.value(a)}},urlinput:s0(c),styleselect:TT(c),colorinput:bq(c),dialog:wq(c),isContextMenuOpen:function(){return x.get()},setContextMenuState:function(se){return x.set(se)}};return G},mm=function(a,c,p){var x=function(Un,vn){Te([c,p],function(Pn){Pn.broadcastEvent(Un,vn)})},I=function(Un,vn){Te([c,p],function(Pn){Pn.broadcastOn([Un],vn)})},G=function(Un){return I(dg(),{target:Un.target})},se=Fb(),ge=Dl(se,"touchstart",G),we=Dl(se,"touchmove",function(Un){return x(_2(),Un)}),ke=Dl(se,"touchend",function(Un){return x(Mb(),Un)}),ze=Dl(se,"mousedown",G),Ge=Dl(se,"mouseup",function(Un){Un.raw.button===0&&I(Q5(),{target:Un.target})}),ut=function(Un){return I(dg(),{target:Rt.fromDom(Un.target)})},yt=function(Un){Un.button===0&&I(Q5(),{target:Rt.fromDom(Un.target)})},Ot=function(){Te(a.editorManager.get(),function(Un){a!==Un&&Un.fire("DismissPopups",{relatedTarget:a})})},Kt=function(Un){return x(w2(),ag(Un))},cn=function(Un){I(oy(),{}),x(ad(),ag(Un))},Ut=function(){return I(oy(),{})},hn=function(Un){Un.state&&I(dg(),{target:Rt.fromDom(a.getContainer())})},jn=function(Un){I(dg(),{target:Rt.fromDom(Un.relatedTarget.getContainer())})};a.on("PostRender",function(){a.on("click",ut),a.on("tap",ut),a.on("mouseup",yt),a.on("mousedown",Ot),a.on("ScrollWindow",Kt),a.on("ResizeWindow",cn),a.on("ResizeEditor",Ut),a.on("AfterProgressState",hn),a.on("DismissPopups",jn)}),a.on("remove",function(){a.off("click",ut),a.off("tap",ut),a.off("mouseup",yt),a.off("mousedown",Ot),a.off("ScrollWindow",Kt),a.off("ResizeWindow",cn),a.off("ResizeEditor",Ut),a.off("AfterProgressState",hn),a.off("DismissPopups",jn),ze.unbind(),ge.unbind(),we.unbind(),ke.unbind(),Ge.unbind()}),a.on("detach",function(){af(c),af(p),c.destroy(),p.destroy()})},d1=Xo,U4=Y6,r$=N([fn("shell",!1),rr("makeItem"),fn("setupItem",T),R1.field("listBehaviours",[ra])]),LT=function(){return{behaviours:Rr([ra.config({})])}},zy=L1({name:"items",overrides:LT}
128),v1=N([zy]),Uq=N("CustomList"),o$=function(a,c,p,x){var I=function(ge,we){se(ge).fold(function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},function(ke){var ze=ra.contents(ke),Ge=we.length,ut=Ge-ze.length,yt=ut>0?re(ut,function(){return a.makeItem()}):[],Ot=ze.slice(Ge);Te(Ot,function(cn){return ra.remove(ke,cn)}),Te(yt,function(cn){return ra.append(ke,cn)});var Kt=ra.contents(ke);Te(Kt,function(cn,Ut){a.setupItem(ge,cn,we[Ut],Ut)})})},G=a.shell?{behaviours:[ra.config({})],components:[]}:{behaviours:[],components:c},se=function(ge){return a.shell?M.some(ge):ns(ge,a,"items")};return{uid:a.uid,dom:a.dom,components:G.components,behaviours:oc(a.listBehaviours,G.behaviours),apis:{setItems:I}}},qN=Pf({name:Uq(),configFields:r$(),partFields:v1(),factory:o$,apis:{setItems:function(a,c,p){a.setItems(c,p)}}}),j4=N([rr("dom"),fn("shell",!0),xu("toolbarBehaviours",[ra])]),jq=function(){return{behaviours:Rr([ra.config({})])}},Wq=N([L1({name:"groups",overrides:jq})]),Hy=function(a,c,p,x){var I=function(ge,we){G(ge).fold(function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},function(ke){ra.set(ke,we)})},G=function(ge){return a.shell?M.some(ge):ns(ge,a,"groups")},se=a.shell?{behaviours:[ra.config({})],components:[]}:{behaviours:[],components:c};return{uid:a.uid,dom:a.dom,components:se.components,behaviours:oc(a.toolbarBehaviours,se.behaviours),apis:{setGroups:I},domModification:{attributes:{role:"group"}}}},l0=Pf({name:"Toolbar",configFields:j4(),partFields:Wq(),factory:Hy,apis:{setGroups:function(a,c,p){a.setGroups(c,p)}}}),a8=T,BT=Q,XN=N([]),Gq=Object.freeze({__proto__:null,setup:a8,isDocked:BT,getBehaviours:XN}),a$=function(a){var c=Yn(ll(a,"position"),"fixed"),p=c?M.none():Yc(a);return p.orThunk(function(){var x=Rt.fromTag("span");return Cs(a).bind(function(I){Al(I,x);var G=Yc(x);return bc(x),G})})},i$=function(a){return a$(a).map(yc).getOrThunk(function(){return Ui(0,0)})},ZN=Ef.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),i8=function(a,c){var p=a.element;yu(p,c.transitionClass),eu(p,c.fadeOutClass),yu(p,c.fadeInClass),c.onShow(a)},Kq=function(a,c){var p=a.element;yu(p,c.transitionClass),eu(p,c.fadeInClass),yu(p,c.fadeOutClass),c.onHide(a)},Yq=function(a,c){return a.y<c.bottom&&a.bottom>c.y},qq=function(a,c){return a.y>=c.y},Xq=function(a,c){return a.bottom<=c.bottom},s$=function(a,c,p){return Ye(a,function(x){switch(x){case"bottom":return Xq(c,p);case"top":return qq(c,p)}})},N9=function(a,c){return c.getInitialPos().map(function(p){return kl(p.bounds.x,p.bounds.y,Ou(a),gl(a))})},Zq=function(a,c,p){p.setInitialPos({style:Pv(a),position:ks(a,"position")||"static",bounds:c})},QN=function(a,c,p){return p.getInitialPos().bind(function(x){switch(p.clearInitialPos(),x.position){case"static":return M.some(ZN.static());case"absolute":var I=a$(a).map(nl).getOrThunk(function(){return nl(di())});return M.some(ZN.absolute(rf("absolute",En(x.style,"left").map(function(G){return c.x-I.x}),En(x.style,"top").map(function(G){return c.y-I.y}),En(x.style,"right").map(function(G){return I.right-c.right}),En(x.style,"bottom").map(function(G){return I.bottom-c.bottom}))));default:return M.none()}})},JN=function(a,c,p){return N9(a,p).filter(function(x){return s$(p.getModes(),x,c)}).bind(function(x){return QN(a,x,p)})},l$=function(a,c,p){var x=nl(a);if(s$(p.getModes(),x,c))return M.none();Zq(a,x,p);var I=bl(),G=x.x-I.x,se=c.y-I.y,ge=I.bottom-c.bottom,we=x.y<=c.y;return M.some(ZN.fixed(rf("fixed",M.some(G),we?M.some(se):M.none(),M.none(),we?M.none():M.some(ge))))},PT=function(a,c,p){var x=a.element,I=Yn(ll(x,"position"),"fixed");return I?JN(x,c,p):l$(x,c,p)},FT=function(a,c){var p=a.element;return N9(p,c).bind(function(x){return QN(p,x,c)})},Vy=function(a,c,p){p.setDocked(!1),Te(["left","right","top","bottom","position"],function(x){return ai(a.element,x)}),c.onUndocked(a)},eD=function(a,c,p,x){var I=x.position==="fixed";p.setDocked(I),Yp(a.element,x);var G=I?c.onDocked:c.onUndocked;G(a)},u$=function(a,c,p,x,I){I===void 0&&(I=!1),c.contextual.each(function(G){G.lazyContext(a).each(function(se){var ge=Yq(se,x);if(ge!==p.isVisible())if(p.setVisible(ge),I&&!ge)qm(a.element,[G.fadeOutClass]),G.onHide(a);else{var we=ge?i8:Kq;we(a,G)}})})},tD=function(a,c,p){var x=c.lazyViewport(a),I=p.isDocked();I&&u$(a,c,p,x),PT(a,x,p).each(function(G){G.fold(function(){return Vy(a,c,p)},function(se){return eD(a,c,p,se)},function(se){u$(a,c,p,x,!0),eD(a,c,p,se)})})},Qq=function(a,c,p){var x=a.element;p.setDocked(!1),FT(a,p).each(function(I){I.fold(function(){return Vy(a,c,p)},function(G){return eD(a,c,p,G)},T)}),p.setVisible(!0),c.contextual.each(function(I){i1(x,[I.fadeInClass,I.fadeOutClass,I.transitionClass]),I.onShow(a)}),s8(a,c,p)},s8=function(a,c,p){a.getSystem().isConnected()&&tD(a,c,p)},nD=function(a,c,p){p.isDocked()&&Qq(a,c,p)},Jq=function(a,c,p){return p.isDocked()},eX=function(a,c,p,x){return p.setModes(x)},D9=function(a,c,p){return p.getModes()},rD=Object.freeze({__proto__:null,refresh:s8,reset:nD,isDocked:Jq,getModes:D9,setModes:eX}),tX=function(a,c){return Fi([Hs(Xv(),function(p,x){a.contextual.each(function(I){if(Nf(p.element,I.transitionClass)){i1(p.element,[I.transitionClass,I.fadeInClass]);var G=c.isVisible()?I.onShown:I.onHidden;G(p)}x.stop()})}),sr(w2(),function(p,x){s8(p,a,c)}),sr(ad(),function(p,x){nD(p,a,c)})])},nX=Object.freeze({__proto__:null,events:tX}),c$=[Qc("contextual",[ta("fadeInClass"),ta("fadeOutClass"),ta("transitionClass"),Lu("lazyContext"),xi("onShow"),xi("onShown"),xi("onHide"),xi("onHidden")]),Gi("lazyViewport",bl),kd("modes",["top","bottom"],ds),xi("onDocked"),xi("onUndocked")],rX=function(a){var c=Oo(!1),p=Oo(!0),x=wl(),I=Oo(a.modes),G=function(){return"docked: "+c.get()+", visible: "+p.get()+", modes: "+I.get().join(",")};return tr({isDocked:c.get,setDocked:c.set,getInitialPos:x.get,setInitialPos:x.set,clearInitialPos:x.clear,isVisible:p.get,setVisible:p.set,getModes:I.get,setModes:I.set,readState:G})},oX=Object.freeze({__proto__:null,init:rX}),o=Cu({fields:c$,name:"docking",active:nX,apis:rD,state:oX}),s=N(so("toolbar-height-change")),d={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},m="tox-tinymce--toolbar-sticky-on",E="tox-tinymce--toolbar-sticky-off",D=function(a,c){var p=ws(c),x=p.dom.defaultView.innerHeight,I=du(p),G=Rt.fromDom(a.elm),se=Zd(G),ge=gl(G),we=se.y,ke=we+ge,ze=yc(c),Ge=gl(c),ut=ze.top,yt=ut+Ge,Ot=Math.abs(ut-I.top)<2,Kt=Math.abs(yt-(I.top+x))<2;if(Ot&&we<yt)Nu(I.left,we-Ge,p);else if(Kt&&ke>ut){var cn=we-x+ge+Ge;Nu(I.left,cn,p)}},J=function(a,c){return ie(o.getModes(a),c)},ue=function(a){var c=function(x){return mf(x)+(parseInt(ks(x,"margin-top"),10)||0)+(parseInt(ks(x,"margin-bottom"),10)||0)},p=a.element;Cs(p).each(function(x){var I="padding-"+o.getModes(a)[0];if(o.isDocked(a)){var G=Ou(x);
128Jo(p,"width",G+"px"),Jo(x,I,c(p)+"px")}else ai(p,"width"),ai(x,I)})},me=function(a,c){c?(eu(a,d.fadeOutClass),qm(a,[d.transitionClass,d.fadeInClass])):(eu(a,d.fadeInClass),qm(a,[d.fadeOutClass,d.transitionClass]))},Le=function(a,c){var p=Rt.fromDom(a.getContainer());c?(yu(p,m),eu(p,E)):(yu(p,E),eu(p,m))},tt=function(a,c){var p=ws(c);Bf(p).filter(function(x){return!fi(c,x)}).filter(function(x){return fi(x,Rt.fromDom(p.dom.body))||Qu(a,x)}).each(function(){return Jv(c)})},nt=function(a,c){return eh(a).orThunk(function(){return c().toOptional().bind(function(p){return eh(p.element)})})},it=function(a,c,p){a.inline||(c.header.isPositionedAtTop()||a.on("ResizeEditor",function(){p().each(o.reset)}),a.on("ResizeWindow ResizeEditor",function(){p().each(ue)}),a.on("SkinLoaded",function(){p().each(function(x){o.isDocked(x)?o.reset(x):o.refresh(x)})}),a.on("FullscreenStateChanged",function(){p().each(o.reset)})),a.on("AfterScrollIntoView",function(x){p().each(function(I){o.refresh(I);var G=I.element;vE(G)&&D(x,G)})}),a.on("PostRender",function(){Le(a,!1)})},kt=function(a){return a().map(o.isDocked).getOr(!1)},Nt=function(){var a;return[nf.config({channels:(a={},a[s()]={onReceive:ue},a)})]},Lt=function(a,c){var p=wl(),x=c.getSink,I=function(ge){x().each(function(we){return ge(we.element)})},G=function(ge){a.inline||ue(ge),Le(a,o.isDocked(ge)),ge.getSystem().broadcastOn([oy()],{}),x().each(function(we){return we.getSystem().broadcastOn([oy()],{})})},se=a.inline?[]:Nt();return fe([oa.config({}),o.config({contextual:V({lazyContext:function(ge){var we=mf(ge.element),ke=a.inline?a.getContentAreaContainer():a.getContainer(),ze=nl(Rt.fromDom(ke)),Ge=ze.height-we,ut=ze.y+(J(ge,"top")?0:we);return M.some(kl(ze.x,ut,ze.width,Ge))},onShow:function(){I(function(ge){return me(ge,!0)})},onShown:function(ge){I(function(we){return i1(we,[d.transitionClass,d.fadeInClass])}),p.get().each(function(we){tt(ge.element,we),p.clear()})},onHide:function(ge){nt(ge.element,x).fold(p.clear,p.set),I(function(we){return me(we,!1)})},onHidden:function(){I(function(ge){return i1(ge,[d.transitionClass])})}},d),lazyViewport:function(ge){var we=bl(),ke=Kj(a),ze=we.y+(J(ge,"top")?ke:0),Ge=we.height-(J(ge,"bottom")?ke:0);return kl(we.x,ze,we.width,Ge)},modes:[c.header.getDockingMode()],onDocked:G,onUndocked:G})],se,!0)},$t=Object.freeze({__proto__:null,setup:it,isDocked:kt,getBehaviours:Lt}),Jt=function(a){var c=a.editor,p=a.sticky?Lt:XN;return{uid:a.uid,dom:a.dom,components:a.components,behaviours:Rr(p(c,a.sharedBackstage))}},qt=Eo([ta("type"),Fc("items",Lp([Cf([ta("name"),Bu("items",ds)]),ds]))].concat(O_)),Mn=function(a){return Ms("GroupToolbarButton",qt,a)},xn=[ji("text"),ji("tooltip"),ji("icon"),Lu("fetch"),Gi("onSetup",function(){return T})],ln=Eo(fe([ta("type")],xn,!0)),In=function(a){return Ms("menubutton",ln,a)},ir=Eo([ta("type"),ji("tooltip"),ji("icon"),ji("text"),Wv("select"),Lu("fetch"),Gi("onSetup",function(){return T}),nc("presets","normal",["normal","color","listpreview"]),fn("columns",1),Lu("onAction"),Lu("onItemAction")]),_r=function(a){return Ms("SplitButton",ir,a)},Go=function(a,c){var p=function(I,G){var se=Ae(G,function(ge){var we={type:"menubutton",text:ge.text,fetch:function(ze){ze(ge.getItems())}},ke=In(we).mapError(function(ze){return av(ze)}).getOrDie();return bT(ke,"tox-mbtn",c.backstage,M.some("menuitem"))});ra.set(I,se)},x={focus:No.focusIn,setMenus:p};return{uid:a.uid,dom:a.dom,components:[],behaviours:Rr([ra.config({}),ba("menubar-events",[qo(function(I){a.onSetup(I)}),sr(n1(),function(I,G){bu(I.element,".tox-mbtn--active").each(function(se){D1(G.event.target,".tox-mbtn").each(function(ge){fi(se,ge)||I.getSystem().getByDom(se).each(function(we){I.getSystem().getByDom(ge).each(function(ke){o0.expand(ke),o0.close(we),oa.focus(ke)})})})})}),sr(Lh(),function(I,G){G.event.prevFocus.bind(function(se){return I.getSystem().getByDom(se).toOptional()}).each(function(se){G.event.newFocus.bind(function(ge){return I.getSystem().getByDom(ge).toOptional()}).each(function(ge){o0.isOpen(se)&&(o0.expand(ge),o0.close(se))})})})]),No.config({mode:"flow",selector:".tox-mbtn",onEscape:function(I){return a.onEscape(I),M.some(!0)}}),Il.config({})]),apis:x,domModification:{attributes:{role:"menubar"}}}},eo=u1({factory:Go,name:"silver.Menubar",configFields:[rr("dom"),rr("uid"),rr("onEscape"),rr("backstage"),fn("onSetup",T)],apis:{focus:function(a,c){a.focus(c)},setMenus:function(a,c,p){a.setMenus(c,p)}}}),lr=function(a,c){return c.getAnimationRoot.fold(function(){return a.element},function(p){return p(a)})},Lo=function(a){return a.dimension.property},Sr=function(a,c){return a.dimension.getDimension(c)},Xr=function(a,c){var p=lr(a,c);i1(p,[c.shrinkingClass,c.growingClass])},Tr=function(a,c){eu(a.element,c.openClass),yu(a.element,c.closedClass),Jo(a.element,Lo(c),"0px"),Pi(a.element)},Fr=function(a,c){eu(a.element,c.closedClass),yu(a.element,c.openClass),ai(a.element,Lo(c))},ho=function(a,c,p,x){p.setCollapsed(),Jo(a.element,Lo(c),Sr(c,a.element)),Pi(a.element),Xr(a,c),Tr(a,c),c.onStartShrink(a),c.onShrunk(a)},mr=function(a,c,p,x){var I=x.getOrThunk(function(){return Sr(c,a.element)});p.setCollapsed(),Jo(a.element,Lo(c),I),Pi(a.element);var G=lr(a,c);eu(G,c.growingClass),yu(G,c.shrinkingClass),Tr(a,c),c.onStartShrink(a)},ro=function(a,c,p){var x=Sr(c,a.element),I=x==="0px"?ho:mr;I(a,c,p,M.some(x))},Va=function(a,c,p){var x=lr(a,c),I=Nf(x,c.shrinkingClass),G=Sr(c,a.element);Fr(a,c);var se=Sr(c,a.element),ge=function(){Jo(a.element,Lo(c),G),Pi(a.element)},we=function(){Tr(a,c)},ke=I?ge:we;ke(),eu(x,c.shrinkingClass),yu(x,c.growingClass),Fr(a,c),Jo(a.element,Lo(c),se),p.setExpanded(),c.onStartGrow(a)},Oi=function(a,c,p){if(p.isExpanded()){ai(a.element,Lo(c));var x=Sr(c,a.element);Jo(a.element,Lo(c),x)}},Si=function(a,c,p){p.isExpanded()||Va(a,c,p)},Oc=function(a,c,p){p.isExpanded()&&ro(a,c,p)},vl=function(a,c,p){p.isExpanded()&&ho(a,c,p)},pd=function(a,c,p){return p.isExpanded()},U1=function(a,c,p){return p.isCollapsed()},gr=function(a,c,p){var x=lr(a,c);return Nf(x,c.growingClass)===!0},Ir=function(a,c,p){var x=lr(a,c);return Nf(x,c.shrinkingClass)===!0},Bo=function(a,c,p){return gr(a,c)||Ir(a,c)},Ln=function(a,c,p){var x=p.isExpanded()?ro:Va;x(a,c,p)},Cr=Object.freeze({__proto__:null,refresh:Oi,grow:Si,shrink:Oc,immediateShrink:vl,hasGrown:
128pd,hasShrunk:U1,isGrowing:gr,isShrinking:Ir,isTransitioning:Bo,toggleGrow:Ln,disableTransitions:Xr}),br=function(a,c,p){var x=c.expanded;return no(x?{classes:[c.openClass],styles:{}}:{classes:[c.closedClass],styles:T1(c.dimension.property,"0px")})},Fo=function(a,c){return Fi([Hs(Xv(),function(p,x){var I=x.event.raw;if(I.propertyName===a.dimension.property){Xr(p,a),c.isExpanded()&&ai(p.element,a.dimension.property);var G=c.isExpanded()?a.onGrown:a.onShrunk;G(p)}})])},Wo=Object.freeze({__proto__:null,exhibit:br,events:Fo}),hs=[rr("closedClass"),rr("openClass"),rr("shrinkingClass"),rr("growingClass"),pi("getAnimationRoot"),xi("onShrunk"),xi("onStartShrink"),xi("onGrown"),xi("onStartGrow"),fn("expanded",!1),Fc("dimension",rd("property",{width:[vs("property","width"),vs("getDimension",function(a){return Ou(a)+"px"})],height:[vs("property","height"),vs("getDimension",function(a){return gl(a)+"px"})]}))],sc=function(a){var c=Oo(a.expanded),p=function(){return"expanded: "+c.get()};return tr({isExpanded:function(){return c.get()===!0},isCollapsed:function(){return c.get()===!1},setCollapsed:Z(c.set,!1),setExpanded:Z(c.set,!0),readState:p})},Vu=Object.freeze({__proto__:null,init:sc}),Hf=Cu({fields:hs,name:"sliding",active:Wo,apis:Cr,state:Vu}),Vf="container",Pd=[xu("slotBehaviours",[])],Uu=function(a){return"<alloy.field."+a+">"},Tv=function(a){var c=function(){var G=[],se=function(ge,we){return G.push(ge),hw(Vf,Uu(ge),we)};return{slot:se,record:N(G)}}(),p=a(c),x=c.record(),I=Ae(x,function(G){return Tc({name:G,pname:Uu(G)})});return bw(Vf,Pd,I,Fd,p)},Fd=function(a,c){var p=function(Kt){return Gx(a)},x=function(Kt,cn){return ns(Kt,a,cn)},I=function(Kt,cn){return function(Ut,hn){return ns(Ut,a,hn).map(function(jn){return Kt(jn,hn)}).getOr(cn)}},G=function(Kt){return function(cn,Ut){Te(Ut,function(hn){return Kt(cn,hn)})}},se=function(Kt,cn){return ps(Kt.element,"aria-hidden")!=="true"},ge=function(Kt,cn){if(!se(Kt)){var Ut=Kt.element;ai(Ut,"display"),zs(Ut,"aria-hidden"),zo(Kt,Nd(),{name:cn,visible:!0})}},we=function(Kt,cn){if(se(Kt)){var Ut=Kt.element;Jo(Ut,"display","none"),ha(Ut,"aria-hidden","true"),zo(Kt,Nd(),{name:cn,visible:!1})}},ke=I(se,!1),ze=I(we),Ge=G(ze),ut=function(Kt){return Ge(Kt,p())},yt=I(ge),Ot={getSlotNames:p,getSlot:x,isShowing:ke,hideSlot:ze,hideAllSlots:ut,showSlot:yt};return{uid:a.uid,dom:a.dom,components:c,behaviours:ly(a.slotBehaviours),apis:Ot}},gm=at({getSlotNames:function(a,c){return a.getSlotNames(c)},getSlot:function(a,c,p){return a.getSlot(c,p)},isShowing:function(a,c,p){return a.isShowing(c,p)},hideSlot:function(a,c,p){return a.hideSlot(c,p)},hideAllSlots:function(a,c){return a.hideAllSlots(c)},showSlot:function(a,c,p){return a.showSlot(c,p)}},function(a){return Sn(a)}),Mi=V(V({},gm),{sketch:Tv}),js=Eo([ji("icon"),ji("tooltip"),Gi("onShow",T),Gi("onHide",T),Gi("onSetup",function(){return T})]),lc=function(a){return Ms("sidebar",js,a)},dp=function(a){var c=a.ui.registry.getAll().sidebars;Te(Tt(c),function(p){var x=c[p],I=function(){return Yn(M.from(a.queryCommandValue("ToggleSidebar")),p)};a.ui.registry.addToggleButton(p,{icon:x.icon,tooltip:x.tooltip,onAction:function(G){a.execCommand("ToggleSidebar",!1,p),G.setActive(I())},onSetup:function(G){var se=function(){return G.setActive(I())};return a.on("ToggleSidebar",se),function(){a.off("ToggleSidebar",se)}}})})},vp=function(a){return{element:function(){return a.element.dom}}},hp=function(a,c){var p=Ae(Tt(c),function(x){var I=c[x],G=Jd(lc(I));return{name:x,getApi:vp,onSetup:G.onSetup,onShow:G.onShow,onHide:G.onHide}});return Ae(p,function(x){var I=Oo(T);return a.slot(x.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:I_.unnamedEvents([B_(x,I),i9(x,I),sr(Nd(),function(G,se){var ge=se.event,we=lt(p,function(ke){return ke.name===ge.name});we.each(function(ke){var ze=ge.visible?ke.onShow:ke.onHide;ze(ke.getApi(G))})})])})})},Uy=function(a){return Mi.sketch(function(c){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:hp(c,a),slotBehaviours:I_.unnamedEvents([qo(function(p){return Mi.hideAllSlots(p)})])}})},oD=function(a,c){var p=Wa.getCurrent(a);p.each(function(x){return ra.set(x,[Uy(c)])})},aD=function(a,c){var p=Wa.getCurrent(a);p.each(function(x){var I=Wa.getCurrent(x);I.each(function(G){Hf.hasGrown(x)?Mi.isShowing(G,c)?Hf.shrink(x):(Mi.hideAllSlots(G),Mi.showSlot(G,c)):(Mi.hideAllSlots(G),Mi.showSlot(G,c),Hf.grow(x))})})},aX=function(a){var c=Wa.getCurrent(a);
128return c.bind(function(p){var x=Hf.isGrowing(p)||Hf.hasGrown(p);if(x){var I=Wa.getCurrent(p);return I.bind(function(G){return lt(Mi.getSlotNames(G),function(se){return Mi.isShowing(G,se)})})}else return M.none()})},$T=so("FixSizeEvent"),zT=so("AutoSizeEvent"),iX=function(a){return{uid:a.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Rr([Il.config({}),oa.config({}),Hf.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(c){var p=Wa.getCurrent(c);p.each(Mi.hideAllSlots),li(c,zT)},onGrown:function(c){li(c,zT)},onStartGrow:function(c){zo(c,$T,{width:ll(c.element,"width").getOr("")})},onStartShrink:function(c){zo(c,$T,{width:Ou(c.element)+"px"})}}),ra.config({}),Wa.config({find:function(c){var p=ra.contents(c);return It(p)}})])}],behaviours:Rr([fp.childAt(0),ba("sidebar-sliding-events",[sr($T,function(c,p){Jo(c.element,"width",p.event.width)}),sr(zT,function(c,p){ai(c.element,"width")})])])}},f$=function(a,c,p,x){ha(a.element,"aria-busy",!0);var I=c.getRoot(a).getOr(a),G=Rr([No.config({mode:"special",onTab:function(){return M.some(!0)},onShiftTab:function(){return M.some(!0)}}),oa.config({})]),se=x(I,G),ge=I.getSystem().build(se);ra.append(I,s1(ge)),ge.hasConfigured(No)&&c.focus&&No.focusIn(ge),p.isBlocked()||c.onBlock(a),p.blockWith(function(){return ra.remove(I,ge)})},sX=function(a,c,p){zs(a.element,"aria-busy"),p.isBlocked()&&c.onUnblock(a),p.clear()},lX=Object.freeze({__proto__:null,block:f$,unblock:sX}),uX=[Gi("getRoot",M.none),Wi("focus",!0),xi("onBlock"),xi("onUnblock")],cX=function(){var a=T5(),c=function(p){a.set({destroy:p})};return tr({readState:a.isSet,blockWith:c,clear:a.clear,isBlocked:a.isSet})},W4=Object.freeze({__proto__:null,init:cX}),ym=Cu({fields:uX,name:"blocking",apis:lX,state:W4}),dn=function(a){return function(c,p){return{dom:{tag:"div",attributes:{"aria-label":a.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Mg('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},Hn=function(a){return Wa.getCurrent(a).each(function(c){return Jv(c.element)})},kr=function(a,c){var p="tabindex",x="data-mce-"+p;M.from(a.iframeElement).map(Rt.fromDom).each(function(I){c?($s(I,p).each(function(G){return ha(I,x,G)}),ha(I,p,-1)):(zs(I,p),$s(I,x).each(function(G){ha(I,p,G),zs(I,x)}))})},$r=function(a,c,p,x){var I=c.element;if(kr(a,p),p)ym.block(c,dn(x)),ai(I,"display"),zs(I,"aria-hidden"),a.hasFocus()&&Hn(c);else{var G=Wa.getCurrent(c).exists(function(se){return zb(se.element)});ym.unblock(c),Jo(I,"display","none"),ha(I,"aria-hidden","true"),G&&a.focus()}},Ia=function(a){return{uid:a.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Rr([ra.config({}),ym.config({focus:!1}),Wa.config({find:function(c){return It(c.components())}})]),components:[]}},Ri=function(a){return a.type==="focusin"},rl=function(a){if(Ri(a)){var c=a.composed?It(a.composedPath()):M.from(a.target);return c.map(Rt.fromDom).filter(Ze).exists(function(p){return Nf(p,"mce-pastebin")})}else return!1},jy=function(a,c,p){var x=Oo(!1),I=wl(),G=function(ge){x.get()&&!rl(ge)&&(ge.preventDefault(),Hn(c()),a.editorManager.setActive(a))};a.inline||a.on("PreInit",function(){a.dom.bind(a.getWin(),"focusin",G),a.on("BeforeExecCommand",function(ge){ge.command.toLowerCase()==="mcefocus"&&ge.value!==!0&&G(ge)})});var se=function(ge){ge!==x.get()&&(x.set(ge),$r(a,c(),ge,p.providers),a.fire("AfterProgressState",{state:ge}))};a.on("ProgressState",function(ge){if(I.on(np.clearTimeout),C(ge.time)){var we=np.setEditorTimeout(a,function(){return se(ge.state)},ge.time);I.set(we)}else se(ge.state),I.clear()})},Hbe=function(a,c){var p={len:0,list:[]},x=rt(a,function(I,G){var se=c(G,I.len);return se.fold(N(I),function(ge){return{len:ge.finish,list:I.list.concat([ge])}})},p);return x.list},fX=function(a,c,p){return{within:a,extra:c,withinWidth:p}}
128,Ere=function(a,c,p){var x=Hbe(a,function(ge,we){var ke=p(ge);return M.some({element:ge,start:we,finish:we+ke,width:ke})}),I=De(x,function(ge){return ge.finish<=c}),G=$e(I,function(ge,we){return ge+we.width},0),se=x.slice(I.length);return{within:I,extra:se,withinWidth:G}},d$=function(a){return Ae(a,function(c){return c.element})},Vbe=function(a,c,p){var x=d$(a.concat(c));return fX(x,[],p)},Ube=function(a,c,p,x){var I=d$(a).concat([p]);return fX(I,d$(c),x)},jbe=function(a,c,p){return fX(d$(a),[],p)},Wbe=function(a,c,p){var x=Ere(c,a,p);return x.extra.length===0?M.some(x):M.none()},Gbe=function(a,c,p,x){var I=Wbe(a,c,p).getOrThunk(function(){return Ere(c,a-p(x),p)}),G=I.within,se=I.extra,ge=I.withinWidth;return se.length===1&&se[0].width<=p(x)?Vbe(G,se,ge):se.length>=1?Ube(G,se,x,ge):jbe(G,se,ge)},Sre=function(a,c){var p=Ae(c,function(x){return s1(x)});l0.setGroups(a,p)},Kbe=function(a){return vt(a,function(c){return eh(c.element).bind(function(p){return c.getSystem().getByDom(p).toOptional()})})},Tre=function(a,c,p){var x=c.builtGroups.get();if(x.length!==0){var I=Zh(a,c,"primary"),G=Wl.getCoupled(a,"overflowGroup");Jo(I.element,"visibility","hidden");var se=x.concat([G]),ge=Kbe(se);p([]),Sre(I,se);var we=Ou(I.element),ke=Gbe(we,c.builtGroups.get(),function(ze){return Ou(ze.element)},G);ke.extra.length===0?(ra.remove(I,G),p([])):(Sre(I,ke.within),p(ke.extra)),ai(I.element,"visibility"),Pi(I.element),ge.each(oa.focus)}},Are=N([xu("splitToolbarBehaviours",[Wl]),Pc("builtGroups",function(){return Oo([])})]),Ybe=N([Jm(["overflowToggledClass"]),Wv("getOverflowBounds"),rr("lazySink"),Pc("overflowGroups",function(){return Oo([])})].concat(Are())),qbe=N([Tc({factory:l0,schema:j4(),name:"primary"}),l1({schema:j4(),name:"overflow"}),l1({name:"overflow-button"}),l1({name:"overflow-group"})]),dX=N(function(a,c){Os(a,Math.floor(c))}),Xbe=N([Jm(["toggledClass"]),rr("lazySink"),Lu("fetch"),Wv("getBounds"),Qc("fireDismissalEventInstead",[fn("event",o1())]),qp()]),Zbe=N([l1({name:"button",overrides:function(a){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Rr([Qa.config({toggleClass:a.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),l1({factory:l0,schema:j4(),name:"toolbar",overrides:function(a){return{toolbarBehaviours:Rr([No.config({mode:"cyclic",onEscape:function(c){return ns(c,a,"button").each(oa.focus),M.none()}})])}}})]),kre=function(a,c){var p=Wl.getCoupled(a,"toolbarSandbox");ti.isOpen(p)?ti.close(p):ti.open(p,c.toolbar())},vX=function(a,c,p,x){var I=p.getBounds.map(function(se){return se()}),G=p.lazySink(a).getOrDie();Cl.positionWithinBounds(G,c,{anchor:{type:"hotspot",hotspot:a,layouts:x,overrides:{maxWidthFunction:dX()}}},I)},Ore=function(a,c,p,x,I){l0.setGroups(c,I),vX(a,c,p,x),Qa.on(a)},Qbe=function(a,c,p){var x=Xm(),I=function(se,ge){p.fetch().get(function(we){Ore(a,ge,p,c.layouts,we),x.link(a.element),No.focusIn(ge)})},G=function(){Qa.off(a),oa.focus(a),x.unlink(a.element)};return{dom:{tag:"div",attributes:{id:x.id}},behaviours:Rr([No.config({mode:"special",onEscape:function(se){return ti.close(se),M.some(!0)}}),ti.config({onOpen:I,onClose:G,isPartOf:function(se,ge,we){return Zm(ge,we)||Zm(a,we)},getAttachPoint:function(){return p.lazySink(a).getOrDie()}}),nf.config({channels:V(V({},dd(V({isExtraPart:Q},p.fireDismissalEventInstead.map(function(se){return{fireEventInstead:{event:se.event}}}).getOr({})))),vg({doReposition:function(){ti.getState(Wl.getCoupled(a,"toolbarSandbox")).each(function(se){vX(a,se,p,c.layouts)})}}))})])}},Jbe=function(a,c,p,x){return V(V({},Rd.sketch(V(V({},x.button()),{action:function(I){kre(I,x)},buttonBehaviours:R1.augment({dump:x.button().buttonBehaviours},[Wl.config({others:{toolbarSandbox:function(I){return Qbe(I,p,a)}}})])}))),{apis:{setGroups:function(I,G){ti.getState(Wl.getCoupled(I,"toolbarSandbox")).each(function(se){Ore(I,se,a,p.layouts,G)})},reposition:function(I){ti.getState(Wl.getCoupled(I,"toolbarSandbox")).each(function(G){vX(I,G,a,p.layouts)})},toggle:function(I){kre(I,x)},getToolbar:function(I){return ti.getState(Wl.getCoupled(I,"toolbarSandbox"))},isOpen:function(I){return ti.isOpen(Wl.getCoupled(I,"toolbarSandbox"))}}})},I9=Pf({name:"FloatingToolbarButton",factory:Jbe,configFields:Xbe(),partFields:Zbe(),apis:{setGroups:function(a,c,p){a.setGroups(c,p)},reposition:function(a,c){a.reposition(c)},toggle:function(a,c){a.toggle(c)},getToolbar:function(a,c){return a.getToolbar(c)},isOpen:function(a,c){return a.isOpen(c)}}}),e4e=N([rr("items"),Jm(["itemSelector"]),xu("tgroupBehaviours",[No])]),t4e=N([Xh({name:"items",unit:"item"})]),n4e=function(a,c,p,x){return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.tgroupBehaviours,[No.config({mode:"flow",selector:a.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},v$=Pf({name:"ToolbarGroup",configFields:e4e(),partFields:t4e(),factory:n4e}),Mre=function(a){return Ae(a,function(c){return s1(c)})},Nre=function(a,c,p){Tre(a,p,function(x){p.overflowGroups.set(x),c.getOpt(a).each(function(I){I9.setGroups(I,Mre(x))})})},r4e=function(a,c,p,x){var I=Ii(I9.sketch({fetch:function(){return lf.nu(function(G){G(Mre(a.overflowGroups.get()))})}
128,layouts:{onLtr:function(){return[$u,jc]},onRtl:function(){return[jc,$u]},onBottomLtr:function(){return[Lf,Rf]},onBottomRtl:function(){return[Rf,Lf]}},getBounds:p.getOverflowBounds,lazySink:a.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:a.markers.overflowToggledClass},parts:{button:x["overflow-button"](),toolbar:x.overflow()}}));return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.splitToolbarBehaviours,[Wl.config({others:{overflowGroup:function(){return v$.sketch(V(V({},x["overflow-group"]()),{items:[I.asSpec()]}))}}})]),apis:{setGroups:function(G,se){a.builtGroups.set(Ae(se,G.getSystem().build)),Nre(G,I,a)},refresh:function(G){return Nre(G,I,a)},toggle:function(G){I.getOpt(G).each(function(se){I9.toggle(se)})},isOpen:function(G){return I.getOpt(G).map(I9.isOpen).getOr(!1)},reposition:function(G){I.getOpt(G).each(function(se){I9.reposition(se)})},getOverflow:function(G){return I.getOpt(G).bind(I9.getToolbar)}},domModification:{attributes:{role:"group"}}}},Dre=Pf({name:"SplitFloatingToolbar",configFields:Ybe(),partFields:qbe(),factory:r4e,apis:{setGroups:function(a,c,p){a.setGroups(c,p)},refresh:function(a,c){a.refresh(c)},reposition:function(a,c){a.reposition(c)},toggle:function(a,c){a.toggle(c)},isOpen:function(a,c){return a.isOpen(c)},getOverflow:function(a,c){return a.getOverflow(c)}}}),o4e=N([Jm(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),xi("onOpened"),xi("onClosed")].concat(Are())),a4e=N([Tc({factory:l0,schema:j4(),name:"primary"}),Tc({factory:l0,schema:j4(),name:"overflow",overrides:function(a){return{toolbarBehaviours:Rr([Hf.config({dimension:{property:"height"},closedClass:a.markers.closedClass,openClass:a.markers.openClass,shrinkingClass:a.markers.shrinkingClass,growingClass:a.markers.growingClass,onShrunk:function(c){ns(c,a,"overflow-button").each(function(p){Qa.off(p),oa.focus(p)}),a.onClosed(c)},onGrown:function(c){No.focusIn(c),a.onOpened(c)},onStartGrow:function(c){ns(c,a,"overflow-button").each(Qa.on)}}),No.config({mode:"acyclic",onEscape:function(c){return ns(c,a,"overflow-button").each(oa.focus),M.some(!0)}})])}}}),l1({name:"overflow-button",overrides:function(a){return{buttonBehaviours:Rr([Qa.config({toggleClass:a.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),l1({name:"overflow-group"})]),i4e=function(a,c){return ns(a,c,"overflow").map(Hf.hasGrown).getOr(!1)},Ire=function(a,c){ns(a,c,"overflow-button").bind(function(){return ns(a,c,"overflow")}).each(function(p){hX(a,c),Hf.toggleGrow(p)})},hX=function(a,c){ns(a,c,"overflow").each(function(p){Tre(a,c,function(x){var I=Ae(x,function(G){return s1(G)});l0.setGroups(p,I)}),ns(a,c,"overflow-button").each(function(x){Hf.hasGrown(p)&&Qa.on(x)}),Hf.refresh(p)})},s4e=function(a,c,p,x){var I="alloy.toolbar.toggle",G=function(se,ge){var we=Ae(ge,se.getSystem().build);a.builtGroups.set(we)};return{uid:a.uid,dom:a.dom,components:c,behaviours:oc(a.splitToolbarBehaviours,[Wl.config({others:{overflowGroup:function(se){return v$.sketch(V(V({},x["overflow-group"]()),{items:[Rd.sketch(V(V({},x["overflow-button"]()),{action:function(ge){li(se,I)}}))]}))}}}),ba("toolbar-toggle-events",[sr(I,function(se){Ire(se,a)})])]),apis:{setGroups:function(se,ge){G(se,ge),hX(se,a)},refresh:function(se){return hX(se,a)},toggle:function(se){return Ire(se,a)},isOpen:function(se){return i4e(se,a)}},domModification:{attributes:{role:"group"}}}},pX=Pf({name:"SplitSlidingToolbar",configFields:o4e(),partFields:a4e(),factory:s4e,apis:{setGroups:function(a,c,p){a.setGroups(c,p)},refresh:function(a,c){a.refresh(c)},toggle:function(a,c){a.toggle(c)},isOpen:function(a,c){return a.isOpen(c)}}}),Rre=function(a){var c=a.title.fold(function(){return{}},function(p){return{attributes:{title:p}}});return{dom:V({tag:"div",classes:["tox-toolbar__group"]},c),components:[v$.parts.items({})],items:a.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:Rr([Il.config({}),oa.config({})])}},h$=function(a){return v$.sketch(Rre(a))},Lre=function(a,c){var p=qo(function(x){var I=Ae(a.initGroups,h$);l0.setGroups(x,I)});return Rr([uh.toolbarButton(a.providers.isDisabled),Hu(),No.config({mode:c,onEscape:a.onEscape,selector:".tox-toolbar__group"}),ba("toolbar-events",[p])])},Bre=function(a){var c=a.cyclicKeying?"cyclic":"acyclic";return{uid:a.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":Rre({title:M.none(),items:[]}),"overflow-button":kN({name:"more",icon:M.some("more-drawer"),disabled:!1,tooltip:M.some("More..."),primary:!1,borderless:!1},M.none(),a.providers)},splitToolbarBehaviours:Lre(a,c)}},l4e=function(a){var c=Bre(a),p=4,x=Dre.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return Dre.sketch(V(V({},c),{lazySink:a.getSink,getOverflowBounds:function(){var I=a.moreDrawerData.lazyHeader().element,G=Zd(I),se=Gn(I),ge=Zd(se),we=Math.max(se.dom.scrollHeight,ge.height);return kl(G.x+p,ge.y,G.width-p*2,we)},parts:V(V({},c.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:a.attributes}}}),components:[x],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},u4e=function(a){var c=pX.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),p=pX.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),x=Bre(a);return pX.sketch(V(V({},x),{components:[c,p],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(I){I.getSystem().broadcastOn([s()],{type:"opened"})},onClosed:function(I){I.getSystem().broadcastOn([s()],{type:"closed"})}}))},p$=function(a){var c=a.cyclicKeying?"cyclic":"acyclic";return l0.sketch({uid:a.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(a.type===Cv.scrolling?["tox-toolbar--scrolling"]:[])},components:[l0.parts.groups({})],toolbarBehaviours:Lre(a,c)})},c4e=function(a,c,p){var x={getSocket:function(I){return d1.getPart(I,a,"socket")},setSidebar:function(I,G){d1.getPart(I,a,"sidebar").each(function(se){return oD(se,G)})},toggleSidebar:function(I,G){d1.getPart(I,a,"sidebar").each(function(se){return aD(se,G)})},whichSidebar:function(I){return d1.getPart(I,a,"sidebar").bind(aX).getOrNull()},getHeader:function(I){return d1.getPart(I,a,"header")},getToolbar:function(I){return d1.getPart(I,a,"toolbar")},setToolbar:function(I,G){d1.getPart(I,a,"toolbar").each(function(se){se.getApis().setGroups(se,G)})},setToolbars:function(I,G){d1.getPart(I,a,"multiple-toolbar").each(function(se){qN.setItems(se,G)})},refreshToolbar:function(I){var G=d1.getPart(I,a,"toolbar");G.each(function(se){return se.getApis().refresh(se)})},toggleToolbarDrawer:function(I){d1.getPart(I,a,"toolbar").each(function(G){la(G.getApis().toggle,function(se){return se(G)})})},isToolbarDrawerToggled:function(I){return d1.getPart(I,a,"toolbar").bind(function(G){return M.from(G.getApis().isOpen).map(function(se){return se(G)})}).getOr(!1)},getThrobber:function(I){return d1.getPart(I,a,"throbber")},focusToolbar:function(I){var G=d1.getPart(I,a,"toolbar").orThunk(function(){return d1.getPart(I,a,"multiple-toolbar")});G.each(function(se){No.focusIn(se)})},setMenubar:function(I,G){d1.getPart(I,a,"menubar").each(function(se){eo.setMenus(se,G)})},focusMenubar:function(I){d1.getPart(I,a,"menubar").each(function(G){eo.focus(G)})}};return{uid:a.uid,dom:a.dom,components:c,apis:x,behaviours:a.behaviours}},f4e=U4.optional({factory:eo,name:"menubar",schema:[rr("backstage")]}),d4e=function(a){return a.type===Cv.sliding?u4e:a.type===Cv.floating?l4e:p$},v4e=U4.optional({factory:{sketch:function(a){return qN.sketch({uid:a.uid,dom:a.dom,listBehaviours:Rr([No.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return p$({type:a.type,uid:so("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:a.providers,onEscape:function(){return a.onEscape(),M.some(!0)}})},setupItem:function(c,p,x,I){l0.setGroups(p,x)},shell:!0})}},name:"multiple-toolbar",schema:[rr("dom"),rr("onEscape")]}),h4e=U4.optional({factory:{sketch:function(a){var c=d4e(a),p={type:a.type,uid:a.uid,onEscape:function(){return a.onEscape(),M.some(!0)},cyclicKeying:!1,initGroups:[],getSink:a.getSink,providers:a.providers,moreDrawerData:{lazyToolbar:a.lazyToolbar,lazyMoreButton:a.lazyMoreButton,lazyHeader:a.lazyHeader},attributes:a.attributes};return c(p)}},name:"toolbar",schema:[rr("dom"),rr("onEscape"),rr("getSink")]}),p4e=U4.optional({factory:{sketch:Jt},name:"header",schema:[rr("dom")]}),m4e=U4.optional({name:"socket",schema:[rr("dom")]}),g4e=U4.optional({factory:{sketch:iX},name:"sidebar",schema:[rr("dom")]}),y4e=U4.optional({factory:{sketch:Ia},name:"throbber",schema:[rr("dom")]}),ru=Pf({name:"OuterContainer",factory:c4e,configFields:[rr("dom"),rr("behaviours")],partFields:[p4e,f4e,h4e,v4e,m4e,g4e,y4e],apis:{getSocket:function(a,c){return a.getSocket(c)},setSidebar:function(a,c,p){a.setSidebar(c,p)},toggleSidebar:function(a,c,p){a.toggleSidebar(c,p)},whichSidebar:function(a,c){return a.whichSidebar(c)},getHeader:function(a,c){return a.getHeader(c)},getToolbar:function(a,c){return a.getToolbar(c)},setToolbar:function(a,c,p){var x=Ae(p,function(I){return h$(I)});a.setToolbar(c,x)},setToolbars:function(a,c,p){var x=Ae(p,function(I){return Ae(I,h$)});a.setToolbars(c,x)},refreshToolbar:function(a,c){return a.refreshToolbar(c)},toggleToolbarDrawer:function(a,c){a.toggleToolbarDrawer(c)},isToolbarDrawerToggled:function(a,c){return a.isToolbarDrawerToggled(c)},getThrobber:function(a,c){return a.getThrobber(c)},setMenubar:function(a,c,p){a.setMenubar(c,p)},focusMenubar:function(a,c){a.focusMenubar(c)},focusToolbar:function(a,c){a.focusToolbar(c)}}}),b4e="file edit view insert format tools table help",Pre={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"}
128,edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},_4e=function(a,c,p){var x=uM(p).split(/[ ,]/);return{text:a.title,getItems:function(){return We(a.items,function(I){var G=I.toLowerCase();return G.trim().length===0?[]:he(x,function(se){return se===G})?[]:G==="separator"||G==="|"?[{type:"separator"}]:c.menuItems[G]?[c.menuItems[G]]:[]})}}},mX=function(a){return typeof a=="string"?a.split(" "):a},Fre=function(a,c){var p=V(V({},Pre),c.menus),x=Tt(c.menus).length>0,I=c.menubar===void 0||c.menubar===!0?mX(b4e):mX(c.menubar===!1?"":c.menubar),G=De(I,function(ge){var we=zn(Pre,ge);return x?we||En(c.menus,ge).exists(function(ke){return zn(ke,"items")}):we}),se=Ae(G,function(ge){var we=p[ge];return _4e({title:we.title,items:mX(we.items)},c,a)});return De(se,function(ge){var we=function(ke){return ke.type!=="separator"};return ge.getItems().length>0&&he(ge.getItems(),we)})},$re=function(a){var c=function(){a._skinLoaded=!0,wW(a)};return function(){a.initialized?c():a.on("init",c)}},w4e=function(a,c){return function(){return CW(a,{message:c})}},zre=function(a,c,p){return new O4(function(x,I){p.load(c,x,I),a.on("remove",function(){return p.unload(c)})})},C4e=function(a,c){var p=c+"/skin.min.css";return zre(a,p,a.ui.styleSheetLoader)},x4e=function(a,c){var p=uo(Rt.fromDom(a.getElement()));if(p){var x=c+"/skin.shadowdom.min.css";return zre(a,x,o9.DOM.styleSheetLoader)}else return O4.resolve()},Hre=function(a,c){var p=Pj(c);p&&c.contentCSS.push(p+(a?"/content.inline":"/content")+".min.css"),$j(c)===!1&&i(p)?O4.all([C4e(c,p),x4e(c,p)]).then($re(c),w4e(c,"Skin could not be loaded")):$re(c)()},E4e=Z(Hre,!1),S4e=Z(Hre,!0),m$=function(a,c){return function(p){var x=$2(),I=function(){p.setActive(a.formatter.match(c));var G=a.formatter.formatChanged(c,p.setActive);x.set(G)};return a.initialized?I():a.once("init",I),function(){a.off("init",I),x.clear()}}},g$=function(a,c,p){return function(x){var I=function(){return p(x)},G=function(){p(x),a.on(c,I)};return a.initialized?G():a.once("init",G),function(){a.off("init",G),a.off(c,I)}}},Vre=function(a){return function(c){return function(){a.undoManager.transact(function(){a.focus(),a.execCommand("mceToggleFormat",!1,c.format)})}}},pp=function(a,c){return function(){return a.execCommand(c)}},T4e=function(a,c,p){var x=function(ge,we,ke,ze){var Ge=c.shared.providers.translate(ge.title);if(ge.type==="separator")return M.some({type:"separator",text:Ge});if(ge.type==="submenu"){var ut=We(ge.getStyleItems(),function(yt){return I(yt,we,ze)});return we===0&&ut.length<=0?M.none():M.some({type:"nestedmenuitem",text:Ge,disabled:ut.length<=0,getSubmenuItems:function(){return We(ge.getStyleItems(),function(yt){return I(yt,we,ze)})}})}else return M.some(V({type:"togglemenuitem",text:Ge,icon:ge.icon,active:ge.isSelected(ze),disabled:ke,onAction:p.onAction(ge)},ge.getStylePreview().fold(function(){return{}},function(yt){return{meta:{style:yt}}})))},I=function(ge,we,ke){var ze=ge.type==="formatter"&&p.isInvalid(ge);return we===0?ze?[]:x(ge,we,!1,ke).toArray():x(ge,we,ze,ke).toArray()},G=function(ge){var we=p.getCurrentValue(),ke=p.shouldHide?0:1;return We(ge,function(ze){return I(ze,ke,we)})},se=function(ge,we){return function(ke,ze){var Ge=we(),ut=G(Ge),yt=o8(ut,ap.CLOSE_ON_EXECUTE,ge,!1);ze(yt)}};return{validateItems:G,getFetch:se}},HT=function(a,c,p){var x=p.dataset,I=x.type==="basic"?function(){return Ae(x.data,function(G){return WF(G,p.isSelectedFor,p.getPreviewFor)})}:x.getData;return{items:T4e(a,c,p),getStyleItems:I}}
128,iD=function(a,c,p){var x=HT(a,c,p),I=x.items,G=x.getStyleItems,se=function(we){return{getComponent:N(we)}},ge=g$(a,"NodeChange",function(we){var ke=we.getComponent();p.updateText(ke)});return TN({text:p.icon.isSome()?M.none():p.text,icon:p.icon,tooltip:M.from(p.tooltip),role:M.none(),fetch:I.getFetch(c,G),onSetup:ge,getApi:se,columns:1,presets:"normal",classes:p.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",c.shared)},A4e=function(a){return Ae(a,function(c){var p=c,x=c,I=c.split("=");return I.length>1&&(p=I[0],x=I[1]),{title:p,format:x}})},k4e=function(a){return{type:"basic",data:a}},VT;(function(a){a[a.SemiColon=0]="SemiColon",a[a.Space=1]="Space"})(VT||(VT={}));var O4e=function(a,c){return c===VT.SemiColon?a.replace(/;$/,"").split(";"):a.split(" ")},gX=function(a,c,p,x){var I=a.getParam(c,p,"string"),G=A4e(O4e(I,x));return{type:"basic",data:G}},yX=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],Ure=function(a){var c=function(){return lt(yX,function(ge){return a.formatter.match(ge.format)})},p=function(ge){return function(){return a.formatter.match(ge)}},x=function(ge){return M.none},I=function(ge){var we=c(),ke=we.fold(N("left"),function(ze){return ze.title.toLowerCase()});zo(ge,SN,{icon:"align-"+ke})},G=k4e(yX),se=function(ge){return function(){return lt(yX,function(we){return we.format===ge.format}).each(function(we){return a.execCommand(we.command)})}};return{tooltip:"Align",text:M.none(),icon:M.some("align-left"),isSelectedFor:p,getCurrentValue:M.none,getPreviewFor:x,onAction:se,updateText:I,dataset:G,shouldHide:!1,isInvalid:function(ge){return!a.formatter.canApply(ge.format)}}},M4e=function(a,c){return iD(a,c,Ure(a))},N4e=function(a,c){var p=HT(a,c,Ure(a));a.ui.registry.addNestedMenuItem("align",{text:c.shared.providers.translate("Align"),getSubmenuItems:function(){return p.items.validateItems(p.getStyleItems())}})},D4e="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",I4e=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],jre=function(a){var c=a.split(/\s*,\s*/);return Ae(c,function(p){return p.replace(/^['"]+|['"]+$/g,"")})},R4e=function(a){var c=function(){var p=jre(a.toLowerCase());return Ye(I4e,function(x){return p.indexOf(x.toLowerCase())>-1})};return a.indexOf("-apple-system")===0&&c()},Wre=function(a){var c="System Font",p=function(){var ke=function(Ot){return Ot?jre(Ot)[0]:""},ze=a.queryCommandValue("FontName"),Ge=we.data,ut=ze?ze.toLowerCase():"",yt=lt(Ge,function(Ot){var Kt=Ot.format;return Kt.toLowerCase()===ut||ke(Kt).toLowerCase()===ke(ut).toLowerCase()}).orThunk(function(){return Na(R4e(ut),{title:c,format:ut})});return{matchOpt:yt,font:ze}},x=function(ke){return function(ze){return ze.exists(function(Ge){return Ge.format===ke})}},I=function(){var ke=p().matchOpt;return ke},G=function(ke){return function(){return M.some({tag:"div",styles:ke.indexOf("dings")===-1?{"font-family":ke}:{}})}},se=function(ke){return function(){a.undoManager.transact(function(){a.focus(),a.execCommand("FontName",!1,ke.format)})}},ge=function(ke){var ze=p(),Ge=ze.matchOpt,ut=ze.font,yt=Ge.fold(N(ut),function(Ot){return Ot.title});zo(ke,F4,{text:yt})},we=gX(a,"font_formats",D4e,VT.SemiColon);return{tooltip:"Fonts",text:M.some(c),icon:M.none(),isSelectedFor:x,getCurrentValue:I,getPreviewFor:G,onAction:se,updateText:ge,dataset:we,shouldHide:!1,isInvalid:Q}},L4e=function(a,c){return iD(a,c,Wre(a))},B4e=function(a,c){var p=HT(a,c,Wre(a));a.ui.registry.addNestedMenuItem("fontformats",{text:c.shared.providers.translate("Fonts"),get
128SubmenuItems:function(){return p.items.validateItems(p.getStyleItems())}})},P4e="8pt 10pt 12pt 14pt 18pt 24pt 36pt",F4e={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},$4e={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},z4e=function(a,c){var p=Math.pow(10,c);return Math.round(a*p)/p},H4e=function(a,c){return/[0-9.]+px$/.test(a)?z4e(parseInt(a,10)*72/96,c||0)+"pt":En($4e,a).getOr(a)},V4e=function(a){return En(F4e,a).getOr("")},Gre=function(a){var c=function(){var we=M.none(),ke=ge.data,ze=a.queryCommandValue("FontSize");if(ze)for(var Ge=function(yt){var Ot=H4e(ze,yt),Kt=V4e(Ot);we=lt(ke,function(cn){return cn.format===ze||cn.format===Ot||cn.format===Kt})},ut=3;we.isNone()&&ut>=0;ut--)Ge(ut);return{matchOpt:we,size:ze}},p=function(we){return function(ke){return ke.exists(function(ze){return ze.format===we})}},x=function(){var we=c().matchOpt;return we},I=N(M.none),G=function(we){return function(){a.undoManager.transact(function(){a.focus(),a.execCommand("FontSize",!1,we.format)})}},se=function(we){var ke=c(),ze=ke.matchOpt,Ge=ke.size,ut=ze.fold(N(Ge),function(yt){return yt.title});zo(we,F4,{text:ut})},ge=gX(a,"fontsize_formats",P4e,VT.Space);return{tooltip:"Font sizes",text:M.some("12pt"),icon:M.none(),isSelectedFor:p,getPreviewFor:I,getCurrentValue:x,onAction:G,updateText:se,dataset:ge,shouldHide:!1,isInvalid:Q}},U4e=function(a,c){return iD(a,c,Gre(a))},j4e=function(a,c){var p=HT(a,c,Gre(a));a.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return p.items.validateItems(p.getStyleItems())}})},Kre=function(a,c){var p=c(),x=Ae(p,function(I){return I.format});return M.from(a.formatter.closest(x)).bind(function(I){return lt(p,function(G){return G.format===I})}).orThunk(function(){return Na(a.formatter.match("p"),{title:"Paragraph",format:"p"})})},W4e="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",Yre=function(a){var c="Paragraph",p=function(se){return function(){return a.formatter.match(se)}},x=function(se){return function(){var ge=a.formatter.get(se);return M.some({tag:ge.length>0&&(ge[0].inline||ge[0].block)||"div",styles:a.dom.parseStyle(a.formatter.getCssText(se))})}},I=function(se){var ge=Kre(a,function(){return G.data}),we=ge.fold(N(c),function(ke){return ke.title});zo(se,F4,{text:we})},G=gX(a,"block_formats",W4e,VT.SemiColon);return{tooltip:"Blocks",text:M.some(c),icon:M.none(),isSelectedFor:p,getCurrentValue:M.none,getPreviewFor:x,onAction:Vre(a),updateText:I,dataset:G,shouldHide:!1,isInvalid:function(se){return!a.formatter.canApply(se.format)}}},G4e=function(a,c){return iD(a,c,Yre(a))},K4e=function(a,c){var p=HT(a,c,Yre(a));a.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return p.items.validateItems(p.getStyleItems())}})},qre=function(a,c){var p="Paragraph",x=function(se){return function(){return a.formatter.match(se)}},I=function(se){return function(){var ge=a.formatter.get(se);return ge!==void 0?M.some({tag:ge.length>0&&(ge[0].inline||ge[0].block)||"div",styles:a.dom.parseStyle(a.formatter.getCssText(se))}):M.none()}},G=function(se){var ge=function(Ge){var ut=Ge.items;return ut!==void 0&&ut.length>0?We(ut,ge):[{title:Ge.title,format:Ge.format}]},we=We(Fy(a),ge),ke=Kre(a,N(we)),ze=ke.fold(N(p),function(Ge){return Ge.title});zo(se,F4,{text:ze})};return{tooltip:"Formats",text:M.some(p),icon:M.none(),isSelectedFor:x,getCurrentValue:M.none,getPreviewFor:I,onAction:Vre(a),updateText:G,shouldHide:a.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(se){return!a.formatter.canApply(se.format)},dataset:c}},Y4e=function(a,c){var p=V({type:"advanced"},c.styleselect);return iD(a,c,qre(a,p))},q4e=function(a,c){var p=V({type:"advanced"},c.styleselect),x=HT(a,c,qre(a,p));a.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return x.items.validateItems(x.getStyleItems())}})},X4e=function(a,c){var p=function(x,I){a.updateState.each(function(G){var se=G(x,I);c.set(se)}),a.renderComponents.each(function(G){var se=G(I,c.get()),ge=Ae(se,x.get
128System().build);X5(x,ge)})};return Fi([sr(Md(),function(x,I){var G=I;if(!G.universal){var se=a.channel;ie(G.channels,se)&&p(x,G.data)}}),qo(function(x,I){a.initialData.each(function(G){p(x,G)})})])},Z4e=Object.freeze({__proto__:null,events:X4e}),Q4e=function(a,c,p){return p},J4e=Object.freeze({__proto__:null,getState:Q4e}),e3e=[rr("channel"),pi("renderComponents"),pi("updateState"),pi("initialData")],t3e=function(){var a=Oo(M.none()),c=function(){return a.set(M.none())},p=function(){return a.get().getOr("none")};return{readState:p,get:a.get,set:a.set,clear:c}},n3e=Object.freeze({__proto__:null,init:t3e}),fh=Cu({fields:e3e,name:"reflecting",active:Z4e,apis:J4e,state:n3e}),r3e=N([rr("toggleClass"),rr("fetch"),If("onExecute"),fn("getHotspot",M.some),fn("getAnchorOverrides",N({})),qp(),If("onItemExecute"),pi("lazySink"),rr("dom"),xi("onOpen"),xu("splitDropdownBehaviours",[Wl,No,oa]),fn("matchWidth",!1),fn("useMinWidth",!1),fn("eventOrder",{}),pi("role")].concat(zM())),o3e=Tc({factory:Rd,schema:[rr("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:Rr([oa.revoke()])}},overrides:function(a){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(c){c.getSystem().getByUid(a.uid).each(Tf)},buttonBehaviours:Rr([Qa.config({toggleOnExecute:!1,toggleClass:a.toggleClass})])}}}),a3e=Tc({factory:Rd,schema:[rr("dom")],name:"button",defaults:function(){return{buttonBehaviours:Rr([oa.revoke()])}},overrides:function(a){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(c){c.getSystem().getByUid(a.uid).each(function(p){a.onExecute(p,c)})}}}}),i3e=N([o3e,a3e,L1({factory:{sketch:function(a){return{uid:a.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:a.text}}}},schema:[rr("text")],name:"aria-descriptor"}),l1({schema:[Qm()],name:"menu",defaults:function(a){return{onExecute:function(c,p){c.getSystem().getByUid(a.uid).each(function(x){a.onItemExecute(x,c,p)})}}}}),BB()]),s3e=function(a,c,p,x){var I,G=function(Ge){Wa.getCurrent(Ge).each(function(ut){ki.highlightFirst(ut),No.focusIn(ut)})},se=function(Ge){var ut=G;G_(a,A,Ge,x,ut,sp.HighlightFirst).get(T)},ge=function(Ge){return se(Ge),M.some(!0)},we=function(Ge){var ut=Zh(Ge,a,"button");return Tf(ut),M.some(!0)},ke=V(V({},Fi([qo(function(Ge,ut){var yt=ns(Ge,a,"aria-descriptor");yt.each(function(Ot){var Kt=so("aria");ha(Ot.element,"id",Kt),ha(Ge.element,"aria-describedby",Kt)})})])),C_(M.some(se))),ze={repositionMenus:function(Ge){Qa.isOn(Ge)&&FB(Ge)}};return{uid:a.uid,dom:a.dom,components:c,apis:ze,eventOrder:V(V({},a.eventOrder),(I={},I[Sf()]=["disabling","toggling","alloy.base.behaviour"],I)),events:ke,behaviours:oc(a.splitDropdownBehaviours,[Wl.config({others:{sandbox:function(Ge){var ut=Zh(Ge,a,"arrow"),yt={onOpen:function(){Qa.on(ut),Qa.on(Ge)},onClose:function(){Qa.off(ut),Qa.off(Ge)}};return $M(a,Ge,yt)}}}),No.config({mode:"special",onSpace:we,onEnter:we,onDown:ge}),oa.config({}),Qa.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:a.role.getOr("button"),"aria-haspopup":!0}}}},y$=Pf({name:"SplitDropdown",configFields:r3e(),partFields:i3e(),factory:s3e,apis:{repositionMenus:function(a,c){return a.repositionMenus(c)}}}),l3e=function(a){return{isDisabled:function(){return Ho.isDisabled(a)},setDisabled:function(c){return Ho.set(a,c)}}},u3e=function(a){return{setActive:function(c){Qa.set(a,c)},isActive:function(){return Qa.isOn(a)},isDisabled:function(){return Ho.isDisabled(a)},setDisabled:function(c){return Ho.set(a,c)}}},Xre=function(a,c){return a.map(function(p){return{"aria-label":c.translate(p),title:c.translate(p)}}).getOr({})},Zre=so("focus-button"),bX=function(a,c,p,x,I,G){var se;return{dom:{tag:"button",classes:["tox-tbtn"].concat(c.isSome()?["tox-tbtn--select"]:[]),attributes:Xre(p,G)},components:P_([a.map(function(ge){return mT(ge,G.icons)}),c.map(function(ge){return EN(ge,"tox-tbtn",G)})]),eventOrder:(se={},se[t1()]=["focusing","alloy.base.behaviour","common-button-display-events"],se),buttonBehaviours:Rr([uh.toolbarButton(G.isDisabled),Hu(),ba("common-button-display-events",[sr(t1(),function(ge,we){we.event.prevent(),li(ge,Zre)})])].concat(x.map(function(ge){return fh.config({channel:ge,initialData:{icon:a,text:c},renderComponents:function(we,ke){return P_([we.icon.map(function(ze){return mT(ze,G.icons)}),we.text.map(function(ze){return EN(ze,"tox-tbtn",G)})])}})}
128).toArray()).concat(I.getOr([])))}},c3e=function(a,c,p,x){var I=c.shared;return I9.sketch({lazySink:I.getSink,fetch:function(){return lf.nu(function(G){G(Ae(p(a.items),h$))})},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:bX(a.icon,a.text,a.tooltip,M.none(),M.none(),I.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:x}}}})},Qre=function(a,c,p){var x=Oo(T),I=bX(a.icon,a.text,a.tooltip,M.none(),M.none(),p);return Rd.sketch({dom:I.dom,components:I.components,eventOrder:rF,buttonBehaviours:Rr([ba("toolbar-button-events",[aY({onAction:a.onAction,getApi:c.getApi}),B_(c,x),i9(c,x)]),uh.toolbarButton(function(){return a.disabled||p.isDisabled()}),Hu()].concat(c.toolbarButtonBehaviours))})},f3e=function(a,c){return Jre(a,c,[])},Jre=function(a,c,p){return Qre(a,{toolbarButtonBehaviours:[].concat(p.length>0?[ba("toolbarButtonWith",p)]:[]),getApi:l3e,onSetup:a.onSetup},c)},d3e=function(a,c){return eoe(a,c,[])},eoe=function(a,c,p){return qn(Qre(a,{toolbarButtonBehaviours:[ra.config({}),Qa.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(p.length>0?[ba("toolbarToggleButtonWith",p)]:[]),getApi:u3e,onSetup:a.onSetup},c))},v3e=function(a,c,p){return function(x){return lf.nu(function(I){return c.fetch(I)}).map(function(I){return M.from(sB(qn(V_(so("menu-value"),I,function(G){c.onItemAction(a(x),G)},c.columns,c.presets,ap.CLOSE_ON_EXECUTE,c.select.getOr(Q),p),{movement:LS(c.columns,c.presets),menuBehaviours:I_.unnamedEvents(c.columns!=="auto"?[]:[qo(function(G,se){sM(G,4,QO(c.presets)).each(function(ge){var we=ge.numRows,ke=ge.numColumns;No.setGridSize(G,we,ke)})})])})))})}},h3e=function(a,c){var p,x=so("channel-update-split-dropdown-display"),I=function(ge){return{isDisabled:function(){return Ho.isDisabled(ge)},setDisabled:function(we){return Ho.set(ge,we)},setIconFill:function(we,ke){bu(ge.element,'svg path[id="'+we+'"], rect[id="'+we+'"]').each(function(ze){ha(ze,"fill",ke)})},setIconStroke:function(we,ke){bu(ge.element,'svg path[id="'+we+'"], rect[id="'+we+'"]').each(function(ze){ha(ze,"stroke",ke)})},setActive:function(we){ha(ge.element,"aria-pressed",we),bu(ge.element,"span").each(function(ke){ge.getSystem().getByDom(ke).each(function(ze){return Qa.set(ze,we)})})},isActive:function(){return bu(ge.element,"span").exists(function(we){return ge.getSystem().getByDom(we).exists(Qa.isOn)})}}},G=Oo(T),se={getApi:I,onSetup:a.onSetup};return y$.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:V({"aria-pressed":!1},Xre(a.tooltip,c.providers))},onExecute:function(ge){a.onAction(I(ge))},onItemExecute:function(ge,we,ke){},splitDropdownBehaviours:Rr([uh.splitButton(c.providers.isDisabled),Hu(),ba("split-dropdown-events",[sr(Zre,oa.focus),B_(se,G),i9(se,G)]),Y_.config({})]),eventOrder:(p={},p[Jc()]=["alloy.base.behaviour","split-dropdown-events"],p),toggleClass:"tox-tbtn--enabled",lazySink:c.getSink,fetch:v3e(I,a,c.providers),parts:{menu:hS(!1,a.columns,a.presets)},components:[y$.parts.button(bX(a.icon,a.text,M.none(),M.some(x),M.some([Qa.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),c.providers)),y$.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:MR("chevron-down",c.providers.icons)},buttonBehaviours:Rr([uh.splitButton(c.providers.isDisabled),Hu(),zO()])}),y$.parts["aria-descriptor"]({text:c.providers.translate("To open the popup, press Shift+Enter")})]})},p3e=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],sD=function(a,c){return function(p,x,I){var G=a(p).mapError(function(se){return av(se)}).getOrDie();return c(G,x,I)}},UT={button:sD(qR,function(a,c){return f3e(a,c.backstage.shared.providers)}),togglebutton:sD(GO,function(a,c){return d3e(a,c.backstage.shared.providers)}),menubutton:sD(In,function(a,c){return bT(a,"tox-tbtn",c.backstage,M.none())}),splitbutton:sD(_r,function(a,c){return h3e(a,c.backstage.shared)}),grouptoolbarbutton:sD(Mn,function(a,c,p){var x,I=p.ui.registry.getAll().buttons,G=function(ge){return b$(p,{buttons:I,toolbar:ge,allowToolbarGroups:!1},c,M.none())},se=(x={},x[C6]=c.backstage.shared.header.isPositionedAtTop()?Uh.TopToBottom:Uh.BottomToTop,x);switch(a9(p)){case Cv.floating:return c3e(a,c.backstage,G,se);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}}),styleSelectButton:function(a,c){return Y4e(a,c.backstage)},fontsizeSelectButton:function(a,c){return U4e(a,c.backstage)},fontSelectButton:function(a,c){return L4e(a,c.backstage)},formatButton:function(a,c){return G4e(a,c.backstage)},alignMenuButton:function(a,c){return M4e(a,c.backstage)}},m3e=function(a,c,p){return En(UT,a.type).fold(function(){return console.error("skipping button defined by",a),M.none()},function(x){return M.some(x(a,c,p))})},toe={styleselect:UT.styleSelectButton,fontsizeselect:UT.fontsizeSelectButton,fontselect:UT.fontSelectButton,formatselect:UT.formatButton,align:UT.alignMenuButton},g3e=function(a){var c=Ae(p3e,function(p){var x=De(p.items,function(I){return zn(a,I)||zn(toe,I)});return{name:p.name,items:x}});return De(c,function(p){return p.items.length>0})},y3e=function(a){var c=a.split("|");return Ae(c,function(p){return{items:p.trim().split(" ")}})},b3e=function(a){return S(a,function(c){return zn(c,"name")&&zn(c,"items")})},_3e=function(a){var c=a.toolbar,p=a.buttons;return c===!1?[]:c===void 0||c===!0?g3e(p):i(c)?y3e(c):b3e(c)?c:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},w3e=function(a,c,p,x,I,G){return En(c,p.toLowerCase()).orThunk(function(){return G.bind(function(se){return vt(se,function(ge){return En(c,ge+p.toLowerCase())})})}).fold(function(){return En(toe,p.toLowerCase()).map(function(se){return se(a,I)}).orThunk(function(){return M.none()})},function(se){return se.type==="grouptoolbarbutton"&&!x?(console.warn("Ignoring the '"+p+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),M.none()):m3e(se,I,a)})},b$=function(a,c,p,x){var I=_3e(c),G=Ae(I,function(se){var ge=We(se.items,function(we){return we.trim().length===0?[]:w3e(a,c.buttons,we,c.allowToolbarGroups,p,x).toArray()});return{title:M.from(a.translate(se.name)),items:ge}}
128);return De(G,function(se){return se.items.length>0})},noe=function(a,c,p,x){var I=c.outerContainer,G=p.toolbar,se=p.buttons;if(S(G,i)){var ge=G.map(function(we){var ke={toolbar:we,buttons:se,allowToolbarGroups:p.allowToolbarGroups};return b$(a,ke,{backstage:x},M.none())});ru.setToolbars(I,ge)}else ru.setToolbar(I,b$(a,p,{backstage:x},M.none()))},roe=Io(),C3e=roe.os.isiOS()&&roe.os.version.major<=12,x3e=function(a,c){var p=a.dom,x=a.getWin(),I=a.getDoc().documentElement,G=Oo(Ui(x.innerWidth,x.innerHeight)),se=Oo(Ui(I.offsetWidth,I.offsetHeight)),ge=function(){var ut=G.get();(ut.left!==x.innerWidth||ut.top!==x.innerHeight)&&(G.set(Ui(x.innerWidth,x.innerHeight)),_M(a))},we=function(){var ut=a.getDoc().documentElement,yt=se.get();(yt.left!==ut.offsetWidth||yt.top!==ut.offsetHeight)&&(se.set(Ui(ut.offsetWidth,ut.offsetHeight)),_M(a))},ke=function(ut){return EW(a,ut)};p.bind(x,"resize",ge),p.bind(x,"scroll",ke);var ze=y6(Rt.fromDom(a.getBody()),"load",we),Ge=c.uiMothership.element;a.on("hide",function(){Jo(Ge,"display","none")}),a.on("show",function(){ai(Ge,"display")}),a.on("NodeChange",we),a.on("remove",function(){ze.unbind(),p.unbind(x,"resize",ge),p.unbind(x,"scroll",ke),x=null})},E3e=function(a,c,p,x,I){var G=Oo(0),se=c.outerContainer;E4e(a);var ge=Rt.fromDom(I.targetNode),we=yr(So(ge));gv(ge,c.mothership),Z0(we,c.uiMothership),a.on("PostRender",function(){noe(a,c,p,x),G.set(a.getWin().innerWidth),ru.setMenubar(se,Fre(a,p)),ru.setSidebar(se,p.sidebar),x3e(a,c)});var ke=ru.getSocket(se).getOrDie("Could not find expected socket element");if(C3e){Tl(ke.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var ze=HU(function(){a.fire("ScrollContent")},20),Ge=Dl(ke.element,"scroll",ze.throttle);a.on("remove",Ge.unbind)}SL(a,c),a.addCommand("ToggleSidebar",function(Kt,cn){ru.toggleSidebar(se,cn),a.fire("ToggleSidebar")}),a.addQueryValueHandler("ToggleSidebar",function(){return ru.whichSidebar(se)});var ut=a9(a),yt=function(){ru.refreshToolbar(c.outerContainer)};(ut===Cv.sliding||ut===Cv.floating)&&a.on("ResizeWindow ResizeEditor ResizeContent",function(){var Kt=a.getWin().innerWidth;Kt!==G.get()&&(yt(),G.set(Kt))});var Ot={enable:function(){L_(c,!1)},disable:function(){L_(c,!0)},isDisabled:function(){return Ho.isDisabled(se)}};return{iframeContainer:ke.element.dom,editorContainer:se.element.dom,api:Ot}},S3e=Object.freeze({__proto__:null,render:E3e}),_X=function(a){var c=/^[0-9\.]+(|px)$/i;return c.test(""+a)?M.some(parseInt(""+a,10)):M.none()},wX=function(a){return C(a)?a+"px":a},_$=function(a,c,p){var x=c.filter(function(G){return a<G}),I=p.filter(function(G){return a>G});return x.or(I).getOr(a)},T3e=function(a){var c=dL(a),p=pL(a),x=mL(a);return _X(c).map(function(I){return _$(I,p,x)})},A3e=function(a){var c=T3e(a);return c.getOr(dL(a))},ooe=function(a){var c=vL(a),p=hL(a),x=bS(a);return _X(c).map(function(I){return _$(I,p,x)})},k3e=function(a){var c=ooe(a);return c.getOr(vL(a))},O3e=function(a,c,p,x,I){var G=p.uiMothership,se=p.outerContainer,ge=o9.DOM,we=wS(a),ke=CS(a),ze=bS(a).or(ooe(a)),Ge=x.shared.header,ut=Ge.isPositionedAtTop,yt=a9(a),Ot=yt===Cv.sliding||yt===Cv.floating,Kt=Oo(!1),cn=function(){return Kt.get()&&!a.removed},Ut=function(dr){return Ot?dr.fold(N(0),function(nr){return nr.components().length>1?gl(nr.components()[1].element):0}):0},hn=function(dr){switch(yL(a)){case I4.auto:var nr=ru.getToolbar(se),Mr=Ut(nr),go=gl(dr.element)-Mr,ur=nl(c),co=ur.y>go;if(co)return"top";var Ao=Gn(c),qa=Math.max(Ao.dom.scrollHeight,gl(Ao)),Li=ur.bottom<qa-go;if(Li)return"bottom";var Is=bl(),hl=Is.bottom<ur.bottom-go;return hl?"bottom":"top";case I4.bottom:return"bottom";case I4.top:default:return"top"}},jn=function(dr){var nr=I.get();o.setModes(nr,[dr]),Ge.setDockingMode(dr);var Mr=ut()?Uh.TopToBottom:Uh.BottomToTop;ha(nr.element,C6,Mr)},Un=function(){var dr=ze.getOrThunk(function(){var nr=_X(ks(di(),"margin-left")).getOr(0);return Ou(di())-yc(c).left+nr});Jo(I.get().element,"max-width",dr+"px")},vn=function(){var dr=ru.getToolbar(se),nr=Ut(dr),Mr=nl(c),go=ut()?Math.max(Mr.y-gl(I.get().element)+nr,0):Mr.bottom;Tl(se.element,{position:"absolute",top:Math.round(go)+"px",left:Math.round(Mr.x)+"px"})},Pn=function(){G.broadcastOn([oy()],{})},or=function(dr){if(dr===void 0&&(dr=!1),!!cn()){if(we||Un(),Ot&&ru.refreshToolbar(se),we||vn(),ke){var nr=I.get();dr?o.reset(nr):o.refresh(nr)}Pn()}},Hr=function(dr){if(dr===void 0&&(dr=!0),!(we||!ke||!cn())){var nr=Ge.getDockingMode(),Mr=hn(I.get());Mr!==nr&&(jn(Mr),dr&&or(!0))}},fr=function(){Kt.set(!0),Jo(se.element,"display","flex"),ge.addClass(a.getBody(),"mce-edit-focus"),ai(G.element,"display"),Hr
128(!1),or()},Wr=function(){Kt.set(!1),p.outerContainer&&(Jo(se.element,"display","none"),ge.removeClass(a.getBody(),"mce-edit-focus")),Jo(G.element,"display","none")};return{isVisible:cn,isPositionedAtTop:ut,show:fr,hide:Wr,update:or,updateMode:Hr,repositionPopups:Pn}},aoe=function(a,c){var p=nl(a);return{pos:c?p.y:p.bottom,bounds:p}},M3e=function(a,c,p,x){var I=Oo(aoe(c,p.isPositionedAtTop())),G=function(ge){var we=aoe(c,p.isPositionedAtTop()),ke=we.pos,ze=we.bounds,Ge=I.get(),ut=Ge.pos,yt=Ge.bounds,Ot=ze.height!==yt.height||ze.width!==yt.width;I.set({pos:ke,bounds:ze}),Ot&&_M(a,ge),p.isVisible()&&(ut!==ke?p.update(!0):Ot&&(p.updateMode(),p.repositionPopups()))};x||(a.on("activate",p.show),a.on("deactivate",p.hide)),a.on("SkinLoaded ResizeWindow",function(){return p.update(!0)}),a.on("NodeChange keydown",function(ge){np.requestAnimationFrame(function(){return G(ge)})}),a.on("ScrollWindow",function(){return p.updateMode()});var se=$2();se.set(y6(Rt.fromDom(a.getBody()),"load",G)),a.on("remove",function(){se.clear()})},N3e=function(a,c,p,x,I){var G=c.mothership,se=c.uiMothership,ge=c.outerContainer,we=Oo(null),ke=Rt.fromDom(I.targetNode),ze=O3e(a,ke,c,x,we),Ge=Gj(a);S4e(a);var ut=function(){if(we.get()){ze.show();return}we.set(ru.getHeader(ge).getOrDie());var Ot=wL(a);Z0(Ot,G),Z0(Ot,se),noe(a,c,p,x),ru.setMenubar(ge,Fre(a,p)),ze.show(),M3e(a,ke,ze,Ge),a.nodeChanged()};a.on("show",ut),a.on("hide",ze.hide),Ge||(a.on("focus",ut),a.on("blur",ze.hide)),a.on("init",function(){(a.hasFocus()||Ge)&&ut()}),SL(a,c);var yt={show:function(){ze.show()},hide:function(){ze.hide()},enable:function(){L_(c,!1)},disable:function(){L_(c,!0)},isDisabled:function(){return Ho.isDisabled(ge)}};return{editorContainer:ge.element.dom,api:yt}},D3e=Object.freeze({__proto__:null,render:N3e}),I3e="contexttoolbar-show",ioe="contexttoolbar-hide",R3e=function(a){return{hide:function(){return li(a,Zv())},getValue:function(){return zr.getValue(a)}}},soe=function(a,c){return sr(nF,function(p,x){var I=a.get(p),G=R3e(I);c.onAction(G,x.event.buttonApi)})},L3e=function(a,c,p){var x=c.original;x.primary;var I=K(x,["primary"]),G=Jd(qR(V(V({},I),{type:"button",onAction:T})));return Jre(G,p.backstage.shared.providers,[soe(a,c)])},B3e=function(a,c,p){var x=c.original;x.primary;var I=K(x,["primary"]),G=Jd(GO(V(V({},I),{type:"togglebutton",onAction:T})));return eoe(G,p.backstage.shared.providers,[soe(a,c)])},P3e=function(a,c,p){var x={backstage:{shared:{providers:p}}};return c.type==="contextformtogglebutton"?B3e(a,c,x):L3e(a,c,x)},F3e=function(a,c,p){var x=Ae(c,function(se){return Ii(P3e(a,se,p))}),I=function(){return Ae(x,function(se){return se.asSpec()})},G=function(se){return vt(c,function(ge,we){return ge.primary?M.from(x[we]).bind(function(ke){return ke.getOpt(se)}).filter(z(Ho.isDisabled)):M.none()})};return{asSpecs:I,findPrimary:G}},loe=function(a,c){var p=a.label.fold(function(){return{}},function(G){return{"aria-label":G}}),x=Ii(j_.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:a.initValue(),inputAttributes:p,selectOnFocus:!0,inputBehaviours:Rr([No.config({mode:"special",onEnter:function(G){return I.findPrimary(G).map(function(se){return Tf(se),!0})},onLeft:function(G,se){return se.cut(),M.none()},onRight:function(G,se){return se.cut(),M.none()}})])})),I=F3e(x,a.commands,c);return[{title:M.none(),items:[x.asSpec()]},{title:M.none(),items:I.asSpecs()}]},$3e=function(a,c,p){return p$({type:a,uid:so("context-toolbar"),initGroups:loe(c,p),onEscape:M.none,cyclicKeying:!0,providers:p})},z3e={renderContextForm:$3e,buildInitGroups:loe},uoe=function(a,c,p){return p===void 0&&(p=.01),c.bottom-a.y>=p&&a.bottom-c.y>=p},H3e=function(a){var c=a.getBoundingClientRect();if(c.height<=0&&c.width<=0){var p=Pt(Rt.fromDom(a.startContainer),a.startOffset).element,x=St(p)?Cs(p):M.some(p);return x.filter(Ze).map(function(I){return I.dom.getBoundingClientRect()}).getOr(c)}else return c},CX=function(a){var c=a.selection.getRng(),p=H3e(c);if(a.inline){var x=du();return kl(x.left+p.left,x.top+p.top,p.width,p.height)}else{var I=Zd(Rt.fromDom(a.getBody()));return kl(I.x+p.left,I.y+p.top,p.width,p.height)}},V3e=function(a,c){return c.filter(Vo).map(Zd).getOrThunk(function(){return CX(a)})},U3e=function(a,c,p){var x=Math.max(a.x+p,c.x),I=Math.min(a.right-p,c.right);return{x,width:I-x}},j3e=function(a,c,p,x,I,G){var se=Rt.fromDom(a.getContainer()),ge=bu(se,".tox-editor-header").getOr(se),we=nl(ge),ke=we.y>=c.bottom,ze=x&&!ke;if(a.inline&&ze)return{y:Math.max(we.bottom+G,p.y),bottom:p.bottom};
128if(a.inline&&!ze)return{y:p.y,bottom:Math.min(we.y-G,p.bottom)};var Ge=I==="line"?nl(se):c;return ze?{y:Math.max(we.bottom+G,p.y),bottom:Math.min(Ge.bottom-G,p.bottom)}:{y:Math.max(Ge.y+G,p.y),bottom:Math.min(we.y-G,p.bottom)}},coe=function(a,c,p,x){x===void 0&&(x=0);var I=Xd(window),G=nl(Rt.fromDom(a.getContentAreaContainer())),se=zu(a)||cM(a)||_S(a),ge=U3e(G,I,x),we=ge.x,ke=ge.width;if(a.inline&&!se)return kl(we,I.y,ke,I.height);var ze=c.header.isPositionedAtTop(),Ge=j3e(a,G,I,ze,p,x),ut=Ge.y,yt=Ge.bottom;return kl(we,ut,ke,yt-ut)},w$=12,foe={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},doe={maxHeightFunction:H2(),maxWidthFunction:dX()},W3e=function(a,c){var p=a.selection.getRng(),x=Pt(Rt.fromDom(p.startContainer),p.startOffset);return p.startContainer===p.endContainer&&p.startOffset===p.endOffset-1&&fi(x.element,c)},G3e=function(a,c,p){var x=ll(a,"position");Jo(a,"position",c);var I=p(a);return x.each(function(G){return Jo(a,"position",G)}),I},voe=function(a){return a==="node"},K3e=function(a,c,p,x,I){var G=CX(a),se=x.lastElement().exists(function(ke){return fi(p,ke)});if(W3e(a,p))return se?wO:lh;if(se)return G3e(c,x.getMode(),function(){var ke=uoe(G,nl(c));return ke&&!x.isReposition()?pU:wO});var ge=x.getMode()==="fixed"?I.y+du().top:I.y,we=gl(c)+w$;return ge+we<=G.y?lh:xy},Y3e=function(a,c,p,x){var I=function(we){return function(ke,ze,Ge,ut,yt){var Ot=K3e(a,ut,we,p,yt),Kt=V(V({},ke),{y:yt.y,height:yt.height});return V(V({},Ot(Kt,ze,Ge,ut,yt)),{alwaysFit:!0})}},G=function(we){return voe(x)?[I(we)]:[]},se={onLtr:function(we){return[ud,tu,Rf,jc,Lf,$u].concat(G(we))},onRtl:function(we){return[ud,tu,Lf,$u,Rf,jc].concat(G(we))}},ge={onLtr:function(we){return[tu,jc,$u,Rf,Lf,ud].concat(G(we))},onRtl:function(we){return[tu,$u,jc,Lf,Rf,ud].concat(G(we))}};return c?ge:se},q3e=function(a,c,p,x){return c==="line"?{bubble:ig(w$,0,foe),layouts:{onLtr:function(){return[s6]},onRtl:function(){return[l6]}},overrides:doe}:{bubble:ig(0,w$,foe,1/w$),layouts:Y3e(a,p,x,c),overrides:doe}},xX=function(a,c){var p=De(c,function(se){return se.predicate(a.dom)}),x=Oe(p,function(se){return se.type==="contexttoolbar"}),I=x.pass,G=x.fail;return{contextToolbars:I,contextForms:G}},X3e=function(a){if(a.length<=1)return a;var c=function(ge){return he(a,function(we){return we.position===ge})},p=function(ge){return De(a,function(we){return we.position===ge})},x=c("selection"),I=c("node");if(x||I)if(I&&x){var G=p("node"),se=Ae(p("selection"),function(ge){return V(V({},ge),{position:"node"})});return G.concat(se)}else return p(x?"selection":"node");else return p("line")},Z3e=function(a){if(a.length<=1)return a;var c=function(x){return lt(a,function(I){return I.position===x})},p=c("selection").orThunk(function(){return c("node")}).orThunk(function(){return c("line")}).map(function(x){return x.position});return p.fold(function(){return[]},function(x){return De(a,function(I){return I.position===x})})},Q3e=function(a,c,p){var x=xX(a,c);if(x.contextForms.length>0)return M.some({elem:a,toolbars:[x.contextForms[0]]});var I=xX(a,p);if(I.contextForms.length>0)return M.some({elem:a,toolbars:[I.contextForms[0]]});if(x.contextToolbars.length>0||I.contextToolbars.length>0){var G=X3e(x.contextToolbars.concat(I.contextToolbars));return M.some({elem:a,toolbars:G})}else return M.none()},J3e=function(a,c,p){return a(c)?M.none():jm(c,function(x){if(Ze(x)){var I=xX(x,p.inNodeScope),G=I.contextToolbars,se=I.contextForms,ge=se.length>0?se:Z3e(G);return ge.length>0?M.some({elem:x,toolbars:ge}):M.none()}else return M.none()},a)},e6e=function(a,c){var p=Rt.fromDom(c.getBody()),x=function(se){return fi(se,p)},I=function(se){return!x(se)&&!Qu(p,se)},G=Rt.fromDom(c.selection.getNode());return I(G)?M.none():Q3e(G,a.inNodeScope,a.inEditorScope).orThunk(function(){return J3e(x,G,a)})},t6e=function(a,c){var p={},x=[],I=[],G={},se={},ge=function(ze,Ge){var ut=Jd(tj(Ge));p[ze]=ut,ut.launch.map(function(yt){G["form:"+ze]=V(V({},Ge.launch),{type:yt.type==="contextformtogglebutton"?"togglebutton":"button",onAction:function(){c(ut)}})}),ut.scope==="editor"?I.push(ut):x.push(ut),se[ze]=ut},we=function(ze,Ge){rj(Ge).each(function(ut){Ge.scope==="editor"?I.push(ut):x.push(ut),se[ze]=ut})},ke=Tt(a);return Te(ke,function(ze){var Ge=a[ze];Ge.type==="contextform"?ge(ze,Ge):Ge.type==="contexttoolbar"&&we(ze,Ge)}),{forms:p,inNodeScope:x,inEditorScope:I,lookupTable:se,formNavigators:G}},hoe=so("forward-slide"),poe=so("backward-slide"),EX=so("change-slide-event"),SX="tox-pop--resizing",n6e=function(a){var c=Oo([]);return Ki.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(p){c.set([]),Ki.getContent(p).each(function(x){ai(x.element,"visibility")}),eu(p.element,SX),ai(p.element,"width")},inlineBehaviours:Rr([ba("context-toolbar-events",[Hs(Xv(),function(p,x){x.event.raw.propertyName==="width"&&(eu(p.element,SX),ai(p.element,"width"))}),sr(EX,function(p,x){var I=p.element;ai(I,"width");var G=Ou(I);Ki.setContent(p,x.event.contents),yu(I,SX);var se=Ou(I);Jo(I,"width",G+"px"),Ki.getContent(p).each(function(ge){x.event.focus.bind(function(we){return Jv(we),eh(I)}).orThunk(function(){return No.focusIn(ge),Bf(So(I))})}),np.setTimeout(function(){Jo(p.element,"width",se+"px")},0)}),sr(hoe,function(p,x){Ki.getContent(p).each(function(I){c.set(c.get().concat([{bar:I,focus:Bf(So(p.element))}]))}),zo(p,EX,{contents:x.event.forwardContents,focus:M.none()})}
128),sr(poe,function(p,x){Et(c.get()).each(function(I){c.set(c.get().slice(0,c.get().length-1)),zo(p,EX,{contents:s1(I.bar),focus:I.focus})})})]),No.config({mode:"special",onEscape:function(p){return Et(c.get()).fold(function(){return a.onEscape()},function(x){return li(p,poe),M.some(!0)})}})]),lazySink:function(){return ya.value(a.sink)}})},TX="tox-pop--transition",r6e=function(a,c,p,x){var I=x.backstage,G=I.shared,se=Io().deviceType.isTouch,ge=wl(),we=wl(),ke=wl(),ze=Us(n6e({sink:p,onEscape:function(){return a.focus(),M.some(!0)}})),Ge=function(){var fr=ke.get().getOr("node"),Wr=voe(fr)?1:0;return coe(a,G,fr,Wr)},ut=function(){return!a.removed&&!(se()&&I.isContextMenuOpen())},yt=function(fr){return Yn(xa(fr,ge.get(),fi),!0)},Ot=function(){if(ut()){var fr=Ge(),Wr=Yn(ke.get(),"node")?V3e(a,ge.get()):CX(a);return fr.height<=0||!uoe(Wr,fr)}else return!0},Kt=function(){ge.clear(),we.clear(),ke.clear(),Ki.hide(ze)},cn=function(){if(Ki.isOpen(ze)){var fr=ze.element;ai(fr,"display"),Ot()?Jo(fr,"display","none"):(we.set(0),Ki.reposition(ze))}},Ut=function(fr){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[fr],behaviours:Rr([No.config({mode:"acyclic"}),ba("pop-dialog-wrap-events",[qo(function(Wr){a.shortcuts.add("ctrl+F9","focus statusbar",function(){return No.focusIn(Wr)})}),Uc(function(Wr){a.shortcuts.remove("ctrl+F9")})])])}},hn=On(function(){return t6e(c,function(fr){var Wr=vn([fr]);zo(ze,hoe,{forwardContents:Ut(Wr)})})}),jn=function(fr,Wr){return b$(a,{buttons:fr,toolbar:Wr.items,allowToolbarGroups:!1},x,M.some(["form:"]))},Un=function(fr,Wr){return z3e.buildInitGroups(fr,Wr)},vn=function(fr){var Wr=a.ui.registry.getAll().buttons,dr=hn(),nr=V(V({},Wr),dr.formNavigators),Mr=a9(a)===Cv.scrolling?Cv.scrolling:Cv.default,go=Fe(Ae(fr,function(ur){return ur.type==="contexttoolbar"?jn(nr,ur):Un(ur,G.providers)}));return p$({type:Mr,uid:so("context-toolbar"),initGroups:go,onEscape:M.none,cyclicKeying:!0,providers:G.providers})},Pn=function(fr,Wr){var dr=fr==="node"?G.anchors.node(Wr):G.anchors.cursor(),nr=q3e(a,fr,se(),{lastElement:ge.get,isReposition:function(){return Yn(we.get(),0)},getMode:function(){return Cl.getMode(p)}});return qn(dr,nr)},or=function(fr,Wr){if(Hr.cancel(),!!ut()){var dr=vn(fr),nr=fr[0].position,Mr=Pn(nr,Wr);ke.set(nr),we.set(1);var go=ze.element;ai(go,"display"),yt(Wr)||(eu(go,TX),Cl.reset(p,ze)),Ki.showWithinBounds(ze,Ut(dr),{anchor:Mr,transition:{classes:[TX],mode:"placement"}},function(){return M.some(Ge())}),Wr.fold(ge.clear,ge.set),Ot()&&Jo(go,"display","none")}},Hr=iS(function(){if(!(!a.hasFocus()||a.removed))if(Nf(ze.element,TX))Hr.throttle();else{var fr=hn();e6e(fr,a).fold(Kt,function(Wr){or(Wr.toolbars,M.some(Wr.elem))})}},17);a.on("init",function(){a.on("remove",Kt),a.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",cn),a.on("click keyup focus SetContent",Hr.throttle),a.on(ioe,Kt),a.on(I3e,function(fr){var Wr=hn();En(Wr.lookupTable,fr.toolbarKey).each(function(dr){or([dr],Na(fr.target!==a,fr.target)),Ki.getContent(ze).each(No.focusIn)})}),a.on("focusout",function(fr){np.setEditorTimeout(a,function(){eh(p.element).isNone()&&eh(ze.element).isNone()&&Kt()},0)}),a.on("SwitchMode",function(){a.mode.isReadOnly()&&Kt()}),a.on("AfterProgressState",function(fr){fr.state?Kt():a.hasFocus()&&Hr.throttle()}),a.on("NodeChange",function(fr){eh(ze.element).fold(Hr.throttle,T)})})},o6e=function(a){var c=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];Te(c,function(p){a.ui.registry.addToggleButton(p.name,{tooltip:p.text,icon:p.icon,onAction:pp(a,p.cmd),onSetup:m$(a,p.name)})}),a.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:pp(a,"JustifyNone")})},a6e={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},i6e=function(){var a="[0-9]+",c="[+-]?"+a,p="[eE]"+c,x="\\.",I=function(ge){return"(?:"+ge+")?"},G=["Infinity",a+x+I(a)+I(p),x+a+I(p),a+I(p)].join("|"),se="[+-]?(?:"+G+")";return new RegExp("^("+se+")(.*)$")}(),s6e=function(a,c){return he(c,function(p){return he(a6e[p],function(x){return a===x})})},l6e=function(a,c){var p=M.from(i6e.exec(a));return p.bind(function(x){var I=Number(x[1]),G=x[2];return s6e(G,c)?M.some({value:I,unit:G}):M.none()})},u6e=function(a,c){return l6e(a,c).map(function(p){var x=p.value,I=p.unit;return x+I})},moe=function(a,c){var p=function(){var x=c.getOptions(a),I=c.getCurrent(a).map(c.hash),G=wl();return Ae(x,function(se){return{type:"togglemenuitem",text:c.display(se),onSetup:function(ge){var we=function(ze){ze&&(G.on(function(Ge){return Ge.setActive(!1)}),G.set(ge)),ge.setActive(ze)};we(Yn(I,c.hash(se)));var ke=c.watcher(a,se,we);return function(){G.clear(),ke()}},onAction:function(){return c.setCurrent(a,se)}}})};a.ui.registry.addMenuButton(c.name,{tooltip:c.text,icon:c.icon,fetch:function(x){return x(p())},onSetup:c.onToolbarSetup}),a.ui.registry.addNestedMenuItem(c.name,{type:"nestedmenuitem",text:c.text,getSubmenuItems:p,onSetup:c.onMenuSetup})}
128,c6e={name:"lineheight",text:"Line height",icon:"line-height",getOptions:Hj,hash:function(a){return u6e(a,["fixed","relative","empty"]).getOr(a)},display:A,watcher:function(a,c,p){return a.formatter.formatChanged("lineheight",p,!1,{value:c}).unbind},getCurrent:function(a){return M.from(a.queryCommandValue("LineHeight"))},setCurrent:function(a,c){return a.execCommand("LineHeight",!1,c)}},f6e=function(a){var c=M.from(Vj(a));return c.map(function(p){return{name:"language",text:"Language",icon:"language",getOptions:N(p),hash:function(x){return h(x.customCode)?x.code:x.code+"/"+x.customCode},display:function(x){return x.title},watcher:function(x,I,G){return x.formatter.formatChanged("lang",G,!1,{value:I.code,customValue:I.customCode}).unbind},getCurrent:function(x){var I=Rt.fromDom(x.selection.getNode());return I0(I,function(G){return M.some(G).filter(Ze).bind(function(se){var ge=$s(se,"lang");return ge.map(function(we){var ke=$s(se,"data-mce-lang").getOrUndefined();return{code:we,customCode:ke,title:""}})})})},setCurrent:function(x,I){return x.execCommand("Lang",!1,I)},onToolbarSetup:function(x){var I=$2();return x.setActive(a.formatter.match("lang",{},void 0,!0)),I.set(a.formatter.formatChanged("lang",x.setActive,!0)),I.clear}}})},d6e=function(a){moe(a,c6e),f6e(a).each(function(c){return moe(a,c)})},v6e=function(a,c){N4e(a,c),B4e(a,c),q4e(a,c),K4e(a,c),j4e(a,c)},h6e=function(a){return g$(a,"NodeChange",function(c){c.setDisabled(!a.queryCommandState("outdent"))})},p6e=function(a){a.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:h6e(a),onAction:pp(a,"outdent")}),a.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:pp(a,"indent")})},m6e=function(a){p6e(a)},AX=function(a,c){return function(){a.execCommand("mceToggleFormat",!1,c)}},g6e=function(a){By.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],function(x,I){a.ui.registry.addToggleButton(x.name,{tooltip:x.text,icon:x.icon,onSetup:m$(a,x.name),onAction:AX(a,x.name)})});for(var c=1;c<=6;c++){var p="h"+c;a.ui.registry.addToggleButton(p,{text:p.toUpperCase(),tooltip:"Heading "+c,onSetup:m$(a,p),onAction:AX(a,p)})}},y6e=function(a){By.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],function(c){a.ui.registry.addButton(c.name,{tooltip:c.text,icon:c.icon,onAction:pp(a,c.action)})})},b6e=function(a){By.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],function(c){a.ui.registry.addToggleButton(c.name,{tooltip:c.text,icon:c.icon,onAction:pp(a,c.action),onSetup:m$(a,c.name)})})},_6e=function(a){g6e(a),y6e(a),b6e(a)},w6e=function(a){By.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],function(c){a.ui.registry.addMenuItem(c.name,{text:c.text,icon:c.icon,shortcut:c.shortcut,onAction:pp(a,c.action)})}),a.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:AX(a,"code")})},C6e=function(a){_6e(a),w6e(a)},C$=function(a,c){return g$(a,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",function(p){p.setDisabled(a.mode.isReadOnly()||!a.undoManager[c]())})},x6e=function(a){a.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:C$(a,"hasUndo"),onAction:pp(a,"undo")}),a.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:C$(a,"hasRedo"),onAction:pp(a,"redo")})}
128,E6e=function(a){a.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:C$(a,"hasUndo"),onAction:pp(a,"undo")}),a.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:C$(a,"hasRedo"),onAction:pp(a,"redo")})},S6e=function(a){x6e(a),E6e(a)},T6e=function(a){return g$(a,"VisualAid",function(c){c.setActive(a.hasVisual)})},A6e=function(a){a.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:T6e(a),onAction:pp(a,"mceToggleVisualAid")})},k6e=function(a){a.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:pp(a,"mceToggleVisualAid")})},O6e=function(a){k6e(a),A6e(a)},M6e=function(a,c){o6e(a),C6e(a),v6e(a,c),S6e(a),BW(a),O6e(a),m6e(a),d6e(a)},lD=function(a,c){return{type:"makeshift",x:a,y:c}},N6e=function(a,c,p){return lD(a.x+c,a.y+p)},goe=function(a){return a.type==="longpress"||a.type.indexOf("touch")===0},D6e=function(a){if(goe(a)){var c=a.touches[0];return lD(c.pageX,c.pageY)}else return lD(a.pageX,a.pageY)},I6e=function(a){if(goe(a)){var c=a.touches[0];return lD(c.clientX,c.clientY)}else return lD(a.clientX,a.clientY)},R6e=function(a,c){var p=o9.DOM.getPos(a);return N6e(c,p.x,p.y)},L6e=function(a,c){return c.type==="contextmenu"||c.type==="longpress"?a.inline?D6e(c):R6e(a.getContentAreaContainer(),I6e(c)):yoe(a)},yoe=function(a){return{type:"selection",root:Rt.fromDom(a.selection.getNode())}},B6e=function(a){return{type:"node",node:M.some(Rt.fromDom(a.selection.getNode())),root:Rt.fromDom(a.getBody())}},boe=function(a,c,p){switch(p){case"node":return B6e(a);case"point":return L6e(a,c);case"selection":return yoe(a)}},P6e=function(a,c,p,x,I,G){var se=p(),ge=boe(a,c,G);o8(se,ap.CLOSE_ON_EXECUTE,x,!1).map(function(we){c.preventDefault(),Ki.showMenuAt(I,{anchor:ge},{menu:{markers:N_("normal")},data:we})})},F6e={onLtr:function(){return[tu,jc,$u,Rf,Lf,ud,lh,xy,Og,kg,S4,E4]},onRtl:function(){return[tu,$u,jc,Lf,Rf,ud,lh,xy,S4,E4,Og,kg]}},$6e=12,z6e={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},H6e=function(a,c){var p=a.selection;if(p.isCollapsed()||c.touches.length<1)return!1;var x=c.touches[0],I=p.getRng(),G=j5(a.getWin(),j2.domRange(I));return G.exists(function(se){return se.left<=x.clientX&&se.right>=x.clientX&&se.top<=x.clientY&&se.bottom>=x.clientY})},V6e=function(a){var c=a.selection.getRng(),p=function(){np.setEditorTimeout(a,function(){a.selection.setRng(c)},10),G()};a.once("touchend",p);var x=function(se){se.preventDefault(),se.stopImmediatePropagation()};a.on("mousedown",x,!0);var I=function(){return G()};a.once("longpresscancel",I);var G=function(){a.off("touchend",p),a.off("longpresscancel",I),a.off("mousedown",x)}},U6e=function(a,c,p){var x=boe(a,c,p),I=p==="point"?$6e:0;return V({bubble:ig(0,I,z6e),layouts:F6e,overrides:{maxWidthFunction:dX(),maxHeightFunction:H2()}},x)},j6e=function(a,c,p,x,I,G,se){var ge=U6e(a,c,G);o8(p,ap.CLOSE_ON_EXECUTE,x,!0).map(function(we){c.preventDefault(),Ki.showMenuWithinBounds(I,{anchor:ge},{menu:{markers:N_("normal"),highlightImmediately:se},data:we,type:"horizontal"},function(){return M.some(coe(a,x.shared,G==="node"?"node":"selection"))}),a.fire(ioe)})},W6e=function(a,c,p,x,I,G){var se=Io(),ge=se.os.isiOS(),we=se.os.isOSX(),ke=se.os.isAndroid(),ze=se.deviceType.isTouch(),Ge=function(){return!(ke||ge||we&&ze)},ut=function(){var Ot=p();j6e(a,c,Ot,x,I,G,Ge())};if((we||ge)&&G!=="node"){var yt=function(){V6e(a),ut()};H6e(a,c)?yt():(a.once("selectionchange",yt),a.once("touchend",function(){return a.off("selectionchange",yt)}))}else ut()},_oe=function(a){return typeof a=="string"?a.split(/[ ,]/):a},woe=function(a){return a.getParam("contextmenu_never_use_native",!1,"boolean")},G6e=function(a,c,p){var x=a.ui.registry.getAll().contextMenus;return M.from(a.getParam(c)).map(_oe).getOrThunk(function(){return De(_oe(p),function(I){return zn(x,I)})})},K6e=function(a){return a.getParam("contextmenu")===!1},Y6e=function(a){return G6e(a,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},q6e=function(a){return a.getParam("contextmenu_avoid_overlap","","string")},Coe=function(a){return i(a)?a==="|":a.type==="separator"},kX={type:"separator"},xoe=function(a){var c=function(p){return{text:p.text,icon:p.icon,disabled:p.disabled,shortcut:p.shortcut}};if(i(a))return a;switch(a.type){case"separator":return kX;case"submenu":return V(V({type:"nestedmenuitem"},c(a)),{getSubmenuItems:function(){var p=a.getSubmenuItems();return i(p)?p:Ae(p,xoe)}});default:return V(V({type:"menuitem"},c(a)),{onAction:B(a.onAction)})}},Eoe=function(a,c){if(c.length===0)return a;var p=Et(a).filter(function(I){return!Coe(I)}),x=p.fold(function(){return[]},function(I){return[kX]});return a.concat(x).concat(c).concat([kX])},X6e=function(a,c,p){var x=rt(c,function(I,G){return En(a,G.toLowerCase()).map(function(se){var ge=se.update(p);if(i(ge))return Eoe(I,ge.split(" "));if(ge.length>0){var we=Ae(ge,xoe);return Eoe(I,we)}else return I}).getOrThunk(function(){return I.concat([G])})},[]);return x.length>0&&Coe(x[x.length-1])&&x.pop(),x},Z6e=function(a,c){return c.ctrlKey&&!woe(a)},Soe=function(a,c){return c.type!=="longpress"&&(c.button!==2||c.target===a.getBody()&&c.pointerType==="")},Toe=function(a,c){return Soe(a,c)?a.selection.getStart(!0):c.target},Q6e=function(a,c){var p=q6e(a),x=Soe(a,c)?"selection":"point";if(us(p)){var I=Toe(a,c),G=d9(Rt.fromDom(I),p);return G?"node":x}else return x},J6e=function(a,c,p){var x=Io(),I=x.deviceType.isTouch,G=Us(Ki.sketch({dom:{tag:"div"},lazySink:c,onEscape:function(){return a.focus()},onShow:function(){return p.setContextMenuState(!0)},onHide:function(){return p.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:Rr([ba("dismissContextMenu",[sr(o1(),function(we,ke){ti.close(we),a.focus()})])])})),se=function(we){return Ki.hide(G)},ge=function(we){if(woe(a)&&we.preventDefault(),!(Z6e(a,we)||K6e(a))){var ke=Q6e(a,we),ze=function(){var ut=Toe(a,we),yt=a.ui.registry.getAll(),Ot=Y6e(a);return X6e(yt.contextMenus,Ot,ut)},Ge=I()?W6e:P6e;Ge(a,we,ze,p,G,ke)}};a.on("init",function(){var we="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(I()?"":" ResizeWindow");a.on(we,se),a.on("longpress contextmenu",ge)})},OX=Ef.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),x$=function(a){return function(c){return c.translate(-a.left,-a.top)}},E$=function(a){return function(c){return c.translate(a.left,a.top)}},G4=function(a){return function(c,p){return rt(a,function(x,I){return I(x)},Ui(c,p))}},S$=function(a,c,p){return a.fold(G4([E$(p),x$(c)]),G4([x$(c)]),G4([]))},jT=function(a,c,p){return a.fold(G4([E$(p)]),G4([]),G4([E$(c)]))},Aoe=function(a,c,p){return a.fold(G4([]),G4([x$(p)]),G4([E$(c),x$(p)]))},e_e=function(a,c,p,x,I,G){var se=jT(a,I,G),ge=jT(c,I,G);return Math.abs(se.left-ge.left)<=p&&Math.abs(se.top-ge.top)<=x},t_e=function(a,c,p,x,I,G){var se=jT(a,I,G),ge=jT(c,I,G),we=Math.abs(se.left-ge.left),ke=Math.abs(se.top-ge.top);return Ui(we,ke)},koe=function(a,c,p){var x=a.fold(function(I,G){return{position:M.some("absolute"),left:M.some(I+"px"),top:M.some(G+"px")}},function(I,G){return{position:M.some("absolute"),left:M.some(I-p.left+"px"),top:M.some(G-p.top+"px")}},function(I,G){return{position:M.some("fixed"),left:M.some(I+"px"),top:M.some(G+"px")}});return V({right:M.none(),bottom:M.none()},x)},n_e=function(a,c,p){return a.fold(function(x,I){return T$(x+c,I+p)},function(x,I){return l8(x+c,I+p)},function(x,I){return R9(x+c,I+p)})},MX=function(a,c,p,x){var I=function(G,se){return function(ge,we){var ke=G(c,p,x);return se(ge.getOr(ke.left),we.getOr(ke.top))}};return a.fold(I(Aoe,T$),I(jT,l8),I(S$,R9))},T$=OX.offset,l8=OX.absolute,R9=OX.fixed,Ooe=function(a,c){var p=ps(a,c);return h(p)?NaN:parseInt(p,10)},r_e=function(a,c){var p=a.element,x=Ooe(p,c.leftAttr),I=Ooe(p,c.topAttr);return isNaN(x)||isNaN(I)?M.none():M.some(Ui(x,I))},o_e=function(a,c,p){var x=a.element;ha(x,c.leftAttr,p.left+"px"),ha(x,c.topAttr,p.top+"px")},a_e=function(a,c){var p=a.element;zs(p,c.leftAttr),zs(p,c.topAttr)},i_e=function(a,c,p,x){return r_e(a,c).fold(function(){return p},function(I){return R9(I.left+x.left,I.top+x.top)})},s_e=function(a,c,p,x,I,G){var se=i_e(a,c,p,x),ge=c.mustSnap?u_e(a,c,se,I,G):c_e(a,c,se,I,G),we=S$(se,I,G);return o_e(a,c,we),ge.fold(function(){return{coord:R9(we.left,we.top),extra:M.none()}},function(ke){return{coord:ke.output,extra:ke.extra}})}
128,l_e=function(a,c){a_e(a,c)},Moe=function(a,c,p,x){return vt(a,function(I){var G=I.sensor,se=e_e(c,G,I.range.left,I.range.top,p,x);return se?M.some({output:MX(I.output,c,p,x),extra:I.extra}):M.none()})},u_e=function(a,c,p,x,I){var G=c.getSnapPoints(a),se=Moe(G,p,x,I);return se.orThunk(function(){var ge=rt(G,function(we,ke){var ze=ke.sensor,Ge=t_e(p,ze,ke.range.left,ke.range.top,x,I);return we.deltas.fold(function(){return{deltas:M.some(Ge),snap:M.some(ke)}},function(ut){var yt=(Ge.left+Ge.top)/2,Ot=(ut.left+ut.top)/2;return yt<=Ot?{deltas:M.some(Ge),snap:M.some(ke)}:we})},{deltas:M.none(),snap:M.none()});return ge.snap.map(function(we){return{output:MX(we.output,p,x,I),extra:we.extra}})})},c_e=function(a,c,p,x,I){var G=c.getSnapPoints(a);return Moe(G,p,x,I)},f_e=function(a,c,p){return{coord:MX(a.output,a.output,c,p),extra:a.extra}},d_e=function(a,c,p,x){var I=c.getTarget(a.element);if(c.repositionTarget){var G=ws(a.element),se=du(G),ge=i$(I),we=f_e(x,se,ge),ke=koe(we.coord,se,ge);is(I,ke)}},v_e=Object.freeze({__proto__:null,snapTo:d_e}),NX="data-initial-z-index",h_e=function(a){Cs(a.element).filter(Ze).each(function(c){$s(c,NX).fold(function(){return ai(c,"z-index")},function(p){return Jo(c,"z-index",p)}),zs(c,NX)})},p_e=function(a){Cs(a.element).filter(Ze).each(function(c){ll(c,"z-index").each(function(p){ha(c,NX,p)}),Jo(c,"z-index",ks(a.element,"z-index"))})},Noe=function(a,c){a.getSystem().addToGui(c),p_e(c)},m_e=function(a){h_e(a),a.getSystem().removeFromGui(a)},Doe=function(a,c,p){return a.getSystem().build($f.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[c]},events:p}))},g_e=Qc("snaps",[rr("getSnapPoints"),xi("onSensor"),rr("leftAttr"),rr("topAttr"),fn("lazyViewport",bl),fn("mustSnap",!1)]),DX=[fn("useFixed",Q),rr("blockerClass"),fn("getTarget",A),fn("onDrag",T),fn("repositionTarget",!0),fn("onDrop",T),Gi("getBounds",bl),g_e],y_e=function(a){return Di(ll(a,"left"),ll(a,"top"),ll(a,"position"),function(c,p,x){var I=x==="fixed"?R9:T$;return I(parseInt(c,10),parseInt(p,10))}).getOrThunk(function(){var c=yc(a);return l8(c.left,c.top)})},b_e=function(a,c,p,x,I){var G=I.bounds,se=jT(c,p,x),ge=Dd(se.left,G.x,G.x+G.width-I.width),we=Dd(se.top,G.y,G.y+G.height-I.height),ke=l8(ge,we);return c.fold(function(){var ze=Aoe(ke,p,x);return T$(ze.left,ze.top)},N(ke),function(){var ze=S$(ke,p,x);return R9(ze.left,ze.top)})},__e=function(a,c,p,x,I,G,se){var ge=c.fold(function(){var we=n_e(p,G.left,G.top),ke=S$(we,x,I);return R9(ke.left,ke.top)},function(we){var ke=s_e(a,we,p,G,x,I);return ke.extra.each(function(ze){we.onSensor(a,ze)}),ke.coord});return b_e(a,ge,x,I,se)},w_e=function(a,c,p,x){var I=c.getTarget(a.element);if(c.repositionTarget){var G=ws(a.element),se=du(G),ge=i$(I),we=y_e(I),ke=__e(a,c.snaps,we,se,ge,x,p),ze=koe(ke,se,ge);is(I,ze)}c.onDrag(a,I,x)},Ioe=function(a,c){return{bounds:a.getBounds(),height:mf(c.element),width:Mu(c.element)}},IX=function(a,c,p,x,I){var G=p.update(x,I),se=p.getStartData().getOrThunk(function(){return Ioe(c,a)});G.each(function(ge){w_e(a,c,se,ge)})},Roe=function(a,c,p,x){c.each(m_e),p.snaps.each(function(G){l_e(a,G)});var I=p.getTarget(a.element);x.reset(),p.onDrop(a,I)},RX=function(a){return function(c,p){var x=function(I){p.setStartData(Ioe(c,I))};return Fi(fe([sr(w2(),function(I){p.getStartData().each(function(){return x(I)})})],a(c,p,x),!0))}},C_e=function(a){return Fi([sr(t1(),a.forceDrop),sr(L0(),a.drop),sr(R0(),function(c,p){a.move(p.event)}),sr(lv(),a.delayDrop)])},x_e=function(a){return M.from(Ui(a.x,a.y))},E_e=function(a,c){return Ui(c.left-a.left,c.top-a.top)},S_e=Object.freeze({__proto__:null,getData:x_e,getDelta:E_e}),Loe=function(a,c,p){return[sr(t1(),function(x,I){var G=I.event.raw;if(G.button===0){I.stop();var se=function(){return Roe(x,M.some(ke),a,c)},ge=TM(se,200),we={drop:se,delayDrop:ge.schedule,forceDrop:se,move:function(Ge){ge.cancel(),IX(x,a,c,S_e,Ge)}},ke=Doe(x,a.blockerClass,C_e(we)),ze=function(){p(x),Noe(x,ke)};ze()}})]},T_e=fe(fe([],DX,!0),[vs("dragger",{handlers:RX(Loe)})],!1),A_e=function(a){return Fi([sr(A1(),a.forceDrop),sr(qv(),a.drop),sr(U3(),a.drop),sr(Od(),function(c,p){a.move(p.event)})])},k_e=function(a){var c=a[0];return M.some(Ui(c.clientX,c.clientY))},O_e=function(a){var c=a.raw,p=c.touches;return p.length===1?k_e(p):M.none()},M_e=function(a,c){return Ui(c.left-a.left,c.top-a.top)},Boe=Object.freeze({__proto__:null,getData:O_e,getDelta:M_e}),Poe=function(a,c,p){var x=wl(),I=function(G){Roe(G,x.get(),a,c),x.clear()};return[sr(A1(),function(G,se){se.stop();var ge=function(){return I(G)},we={drop:ge,delayDrop:T,forceDrop:ge,move:function(Ge){IX(G,a,c,Boe,Ge)}},ke=Doe(G,a.blockerClass,A_e(we));x.set(ke);var ze=function(){p(G),Noe(G,ke)};ze()}),sr(Od(),function(G,se){se.stop(),IX(G,a,c,Boe,se.event)}),sr(qv(),function(G,se){se.stop(),I(G)}),sr(U3(),I)]},N_e=fe(fe([],DX,!0),[vs("dragger",{handlers:RX(Poe)})],!1),D_e=function(a,c,p){return fe(fe([],Loe(a,c,p),!0),Poe(a,c,p),!0)},I_e=fe(fe([],DX,!0),[vs("dragger",{handlers:RX(D_e)}
128)],!1),R_e=T_e,L_e=N_e,B_e=I_e,P_e=Object.freeze({__proto__:null,mouse:R_e,touch:L_e,mouseOrTouch:B_e}),F_e=function(){var a=M.none(),c=M.none(),p=function(){a=M.none(),c=M.none()},x=function(we,ke){var ze=a.map(function(Ge){return we.getDelta(Ge,ke)});return a=M.some(ke),ze},I=function(we,ke){return we.getData(ke).bind(function(ze){return x(we,ze)})},G=function(we){c=M.some(we)},se=function(){return c},ge=N({});return tr({readState:ge,reset:p,update:I,getStartData:se,setStartData:G})},$_e=Object.freeze({__proto__:null,init:F_e}),L9=rg({branchKey:"mode",branches:P_e,name:"dragging",active:{events:function(a,c){var p=a.dragger;return p.handlers(a,c)}},extra:{snap:function(a){return{sensor:a.sensor,range:a.range,output:a.output,extra:M.from(a.extra)}}},state:$_e,apis:v_e}),LX=40,A$=LX/2,Foe=function(a,c,p,x,I,G){return a.fold(function(){return L9.snap({sensor:l8(p-A$,x-A$),range:Ui(I,G),output:l8(M.some(p),M.some(x)),extra:{td:c}})},function(se){var ge=p-A$,we=x-A$,ke=LX,ze=LX,Ge=se.element.dom.getBoundingClientRect();return L9.snap({sensor:l8(ge,we),range:Ui(ke,ze),output:l8(M.some(p-Ge.width/2),M.some(x-Ge.height/2)),extra:{td:c}})})},$oe=function(a,c,p){var x=function(I,G){return I.exists(function(se){return fi(se,G)})};return{getSnapPoints:a,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(I,G){var se=G.td;x(c.get(),se)||(c.set(se),p(se))},mustSnap:!0}},zoe=function(a){return Ii(Rd.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Rr([L9.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:a}),Y_.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},z_e=function(a,c){var p=Oo([]),x=Oo([]),I=Oo(!1),G=wl(),se=wl(),ge=function(or){var Hr=Zd(or);return Foe(yt.getOpt(c),or,Hr.x,Hr.y,Hr.width,Hr.height)},we=function(){return Ae(p.get(),function(or){return ge(or)})},ke=function(or){var Hr=Zd(or);return Foe(Ot.getOpt(c),or,Hr.right,Hr.bottom,Hr.width,Hr.height)},ze=function(){return Ae(x.get(),function(or){return ke(or)})},Ge=$oe(we,G,function(or){se.get().each(function(Hr){a.fire("TableSelectorChange",{start:or,finish:Hr})})}),ut=$oe(ze,se,function(or){G.get().each(function(Hr){a.fire("TableSelectorChange",{start:Hr,finish:or})})}),yt=zoe(Ge),Ot=zoe(ut),Kt=Us(yt.asSpec()),cn=Us(Ot.asSpec()),Ut=function(or,Hr,fr,Wr){var dr=Hr.dom.getBoundingClientRect();ai(or.element,"display");var nr=hf(Rt.fromDom(a.getBody())).dom.innerHeight,Mr=fr(dr),go=Wr(dr,nr);(Mr||go)&&Jo(or.element,"display","none")},hn=function(or,Hr,fr,Wr){var dr=fr(Hr);L9.snapTo(or,dr);var nr=function(go){return go[Wr]<0},Mr=function(go,ur){return go[Wr]>ur};Ut(or,Hr,nr,Mr)},jn=function(or){return hn(Kt,or,ge,"top")},Un=function(){return G.get().each(jn)},vn=function(or){return hn(cn,or,ke,"bottom")},Pn=function(){return se.get().each(vn)};Io().deviceType.isTouch()&&(a.on("TableSelectionChange",function(or){I.get()||(cg(c,Kt),cg(c,cn),I.set(!0)),G.set(or.start),se.set(or.finish),or.otherCells.each(function(Hr){p.set(Hr.upOrLeftCells),x.set(Hr.downOrRightCells),jn(or.start),vn(or.finish)})}),a.on("ResizeEditor ResizeWindow ScrollContent",function(){Un(),Pn()}),a.on("TableSelectionClear",function(){I.get()&&(oh(Kt),oh(cn),I.set(!1)),G.clear(),se.clear()}))},H_e=function(a){return a.nodeType===1&&(a.nodeName==="BR"||!!a.getAttribute("data-mce-bogus")||a.getAttribute("data-mce-type")==="bookmark")},V_e=function(a,c,p){c.delimiter||(c.delimiter="\xBB");var x=function(G){var se=G||[],ge=Ae(se,function(ke,ze){return Rd.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":ze,"tab-index":-1,"aria-level":ze+1},innerHtml:ke.name},action:function(Ge){a.focus(),a.selection.select(ke.element),a.nodeChanged()},buttonBehaviours:Rr([uh.button(p.isDisabled),Hu()])})}),we={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+c.delimiter+" "}};return rt(ge.slice(1),function(ke,ze){var Ge=ke;return Ge.push(we),Ge.push(ze),Ge},[ge[0]])},I=function(G){for(var se=[],ge=G.length;ge-- >0;){var we=G[ge];
128if(we.nodeType===1&&!H_e(we)){var ke=a.fire("ResolveName",{name:we.nodeName.toLowerCase(),target:we});if(ke.isDefaultPrevented()||se.push({name:ke.name,element:we}),ke.isPropagationStopped())break}}return se};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Rr([No.config({mode:"flow",selector:"div[role=button]"}),Ho.config({disabled:p.isDisabled}),Hu(),Il.config({}),ra.config({}),ba("elementPathEvents",[qo(function(G,se){a.shortcuts.add("alt+F11","focus statusbar elementpath",function(){return No.focusIn(G)}),a.on("NodeChange",function(ge){var we=I(ge.parents);we.length>0?ra.set(G,x(we)):ra.set(G,[])})})])]),components:[]}},B9;(function(a){a[a.None=0]="None",a[a.Both=1]="Both",a[a.Vertical=2]="Vertical"})(B9||(B9={}));var U_e=function(a,c,p,x,I){var G={};return G.height=_$(x+c.top,pL(a),mL(a)),p===B9.Both&&(G.width=_$(I+c.left,hL(a),bS(a))),G},Hoe=function(a,c,p){var x=Rt.fromDom(a.getContainer()),I=U_e(a,c,p,gl(x),Ou(x));xt(I,function(G,se){return Jo(x,se,wX(G))}),xW(a)},j_e=function(a){var c=!a.hasPlugin("autoresize"),p=a.getParam("resize",c);return p===!1?B9.None:p==="both"?B9.Both:B9.Vertical},k$=function(a,c,p,x){var I=20,G=Ui(p*I,x*I);return Hoe(a,G,c),M.some(!0)},W_e=function(a,c){var p=j_e(a);return p===B9.None?M.none():M.some(n0("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:c.translate("Resize")},behaviours:[L9.config({mode:"mouse",repositionTarget:!1,onDrag:function(x,I,G){return Hoe(a,G,p)},blockerClass:"tox-blocker"}),No.config({mode:"special",onLeft:function(){return k$(a,p,-1,0)},onRight:function(){return k$(a,p,1,0)},onUp:function(){return k$(a,p,0,-1)},onDown:function(){return k$(a,p,0,1)}}),Il.config({}),oa.config({})]},c.icons))},G_e=function(a,c){var p,x=function(I,G,se){return ra.set(I,[wc(c.translate(["{0} "+se,G[se]]))])};return Rd.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Rr([uh.button(c.isDisabled),Hu(),Il.config({}),ra.config({}),zr.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),ba("wordcount-events",[ef(function(I){var G=zr.getValue(I),se=G.mode==="words"?"characters":"words";zr.setValue(I,{mode:se,count:G.count}),x(I,G.count,se)}),qo(function(I){a.on("wordCountUpdate",function(G){var se=zr.getValue(I).mode;zr.setValue(I,{mode:se,count:G.wordCount}),x(I,G.wordCount,se)})})])]),eventOrder:(p={},p[Sf()]=["disabling","alloy.base.behaviour","wordcount-events"],p)})},K_e=function(a,c){var p=function(){var G=t0.translate(["Powered by {0}","Tiny"]),se='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+G+'">'+G+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:se}}},x=function(){var G=[];return a.getParam("elementpath",!0,"boolean")&&G.push(V_e(a,{},c)),a.hasPlugin("wordcount")&&G.push(G_e(a,c)),a.getParam("branding",!0,"boolean")&&G.push(p()),G.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:G}]:[]},I=function(){var G=x(),se=W_e(a,c);return G.concat(se.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:I()}},Y_e=function(a){var c,p=a.inline,x=p?D3e:S3e,I=CS(a)?$t:Gq,G=M.none(),se=Io(),ge=se.browser.isIE(),we=ge?["tox-platform-ie"]:[],ke=se.deviceType.isTouch(),ze="tox-platform-touch",Ge=ke?[ze]:[],ut=bL(a),yt=wL(a),Ot=t0.isRtl()?{attributes:{dir:"rtl"}}:{},Kt={attributes:(c={},c[C6]=ut?Uh.BottomToTop:Uh.TopToBottom,c)},cn=function(){return G.bind(ru.getHeader)},Ut=function(){return I.isDocked(cn)},hn=function(){Jo(md.element,"width",document.body.clientWidth+"px")},jn=function(){var cc=fi(di(),yt)&&ks(yt,"display")==="grid",Hg={dom:V({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(we).concat(Ge)},Ot),behaviours:Rr([Cl.config({useFixed:function(){return Ut()}})])},Gy={dom:{styles:{width:document.body.clientWidth+"px"}},events:Fi([sr(ad(),hn)])};return qn(Hg,cc?Gy:{})},Un=Us(jn()),vn=function(){return ya.value(Un)},Pn=Ii({dom:{tag:"div",classes:["tox-anchorbar"]}}),or=function(){return G.bind(function(cc){return Pn.getOpt(cc)}).getOrDie("Could not find a anchor bar element")},Hr=function(){return G.bind(function(cc){return ru.getToolbar(cc)}).getOrDie("Could not find more toolbar element")},fr=function(){return G.bind(function(cc){return ru.getThrobber(cc)}).getOrDie("Could not find throbber element")},Wr=Vq(Un,a,or),dr=ru.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Wr,onEscape:function(){a.focus()}}),nr=a9(a),Mr=ru.parts.toolbar(V({dom:{tag:"div",classes:["tox-toolbar"]},getSink:vn,providers:Wr.shared.providers,onEscape:function(){a.focus()},type:nr,lazyToolbar:Hr,lazyHeader:function(){return cn().getOrDie("Could not find header element")}},Kt)),go=ru.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Wr.shared.providers,onEscape:function(){a.focus()},type:nr}),ur=ru.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),co=ru.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),Ao=ru.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Wr}),qa=a.getParam("statusbar",!0,"boolean"),Li=qa&&!p?M.some(K_e(a,Wr.shared.providers)):M.none(),Is={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ur,co]},hl=_S(a),j1=cM(a),Uf=zu(a),GT=function(){return hl?[go]:j1?[Mr]:[]},uc=ru.parts.header({dom:V({tag:"div",classes:["tox-editor-header"]},Kt),components:Fe([Uf?[dr]:[],GT(),wS(a)?[]:[Pn.asSpec()]]),sticky:CS(a),editor:a,sharedBackstage:Wr.shared}),K4=Fe([ut?[]:[uc],p?[]:[Is],ut?[uc]:[]]),Y4={dom:{tag:"div",classes:["tox-editor-container"]},components:K4},P9=Fe([[Y4],p?[]:Li.toArray(),[Ao]]),q4=CL(a),F9=V(V({role:"application"},t0.isRtl()?{dir:"rtl"}:{}),q4?{"aria-hidden":"true"}:{}),$d=Us(ru.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(p?["tox-tinymce-inline"]:[]).concat(ut?["tox-tinymce--toolbar-bottom"]:[]).concat(Ge).concat(we),styles:V({visibility:"hidden"}
128,q4?{opacity:"0",border:"0"}:{}),attributes:F9},components:P9,behaviours:Rr([Hu(),Ho.config({disableClass:"tox-tinymce--disabled"}),No.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));G=M.some($d),a.shortcuts.add("alt+F9","focus menubar",function(){ru.focusMenubar($d)}),a.shortcuts.add("alt+F10","focus toolbar",function(){ru.focusToolbar($d)}),a.addCommand("ToggleToolbarDrawer",function(){ru.toggleToolbarDrawer($d)}),a.addQueryStateHandler("ToggleToolbarDrawer",function(){return ru.isToolbarDrawerToggled($d)});var mp=gB($d),md=gB(Un);mm(a,mp,md);var $9=function(){var cc={broadcastAll:md.broadcast,broadcastOn:md.broadcastOn,register:T};return{channels:cc}},Wy=function(){var cc=wX(A3e(a)),Hg=wX(k3e(a));return a.inline||(pf("div","width",Hg)&&Jo($d.element,"width",Hg),pf("div","height",cc)?Jo($d.element,"height",cc):Jo($d.element,"height","200px")),cc},u8=function(){I.setup(a,Wr.shared,cn),M6e(a,Wr),J6e(a,vn,Wr),dp(a),jy(a,fr,Wr.shared),at(Uj(a),function(gd,W1){a.ui.registry.addGroupToolbarButton(W1,gd)});var cc=a.ui.registry.getAll(),Hg=cc.buttons,Gy=cc.menuItems,X4=cc.contextToolbars,gp=cc.sidebars,Ky=gL(a),to={menuItems:Gy,menus:qj(a),menubar:Xj(a),toolbar:Ky.getOrThunk(function(){return Zj(a)}),allowToolbarGroups:nr===Cv.floating,buttons:Hg,sidebar:gp};r6e(a,X4,Un,{backstage:Wr}),z_e(a,Un);var ka=a.getElement(),zi=Wy(),ol={mothership:mp,uiMothership:md,outerContainer:$d},zd={targetNode:ka,height:zi};return x.render(a,ol,to,Wr,zd)};return{mothership:mp,uiMothership:md,backstage:Wr,renderUI:u8,getUi:$9}},q_e=function(a,c){var p=M.from(ps(a,"id")).fold(function(){var x=so("dialog-describe");return ha(c,"id",x),x},A);ha(a,"aria-describedby",p)},X_e=function(a,c){var p=$s(a,"id").fold(function(){var x=so("dialog-label");return ha(c,"id",x),x},A);ha(a,"aria-labelledby",p)},Z_e=N([rr("lazySink"),pi("dragBlockClass"),Gi("getBounds",bl),fn("useTabstopAt",$),fn("eventOrder",{}),xu("modalBehaviours",[No]),_u("onExecute"),ld("onEscape")]),BX={sketch:A},Q_e=N([L1({name:"draghandle",overrides:function(a,c){return{behaviours:Rr([L9.config({mode:"mouse",getTarget:function(p){return Q3(p,'[role="dialog"]').getOr(p)},blockerClass:a.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: 129`+JSON.stringify(c,null,2)).message),getBounds:a.getDragBounds})])}}}),Tc({schema:[rr("dom")],name:"title"}),Tc({factory:BX,schema:[rr("dom")],name:"close"}),Tc({factory:BX,schema:[rr("dom")],name:"body"}),L1({factory:BX,schema:[rr("dom")],name:"footer"}),l1({factory:{sketch:function(a,c){return V(V({},a),{dom:c.dom,components:c.components})}},schema:[fn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),fn("components",[])],name:"blocker"})]),J_e=function(a,c,p,x){var I,G=wl(),se=function(Ot){G.set(Ot);var Kt=a.lazySink(Ot).getOrDie(),cn=x.blocker(),Ut=Kt.getSystem().build(V(V({},cn),{components:cn.components.concat([s1(Ot)]),behaviours:Rr([oa.config({}),ba("dialog-blocker-events",[Hs(Vc(),function(){No.focusIn(Ot)})])])}));cg(Kt,Ut),No.focusIn(Ot)},ge=function(Ot){G.clear(),Cs(Ot.element).each(function(Kt){Ot.getSystem().getByDom(Kt).each(function(cn){oh(cn)})})},we=function(Ot){return Zh(Ot,a,"body")},ke=function(Ot){return Zh(Ot,a,"footer")},ze=function(Ot,Kt){ym.block(Ot,Kt)},Ge=function(Ot){ym.unblock(Ot)},ut=so("modal-events"),yt=V(V({},a.eventOrder),(I={},I[Jc()]=[ut].concat(a.eventOrder["alloy.system.attached"]||[]),I));return{uid:a.uid,dom:a.dom,components:c,apis:{show:se,hide:ge,getBody:we,getFooter:ke,setIdle:Ge,setBusy:ze},eventOrder:yt,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:oc(a.modalBehaviours,[ra.config({}),No.config({mode:"cyclic",onEnter:a.onExecute,onEscape:a.onEscape,useTabstopAt:a.useTabstopAt}),ym.config({getRoot:G.get}),ba(ut,[qo(function(Ot){X_e(Ot.element,Zh(Ot,a,"title").element),q_e(Ot.element,Zh(Ot,a,"body").element)})])])}},Mc=Pf({name:"ModalDialog",configFields:Z_e(),partFields:Q_e(),factory:J_e,apis:{show:function(a,c){a.show(c)},hide:function(a,c){a.hide(c)},getBody:function(a,c){return a.getBody(c)},getFooter:function(a,c){return a.getFooter(c)},setBusy:function(a,c,p){a.setBusy(c,p)},setIdle:function(a,c){a.setIdle(c)}}}),e8e=Eo([ta("type"),ta("name")].concat(D_)),t8e=Zl,Voe=[Ol("name","name",Aa(function(){return so("button-name")}),ds),ji("icon"),nc("align","end",["start","end"]),Wi("primary",!1),Wi("disabled",!1)],Uoe=fe(fe([],Voe,!0),[ta("text")],!1),PX=fe([xf("type",["
129submit","cancel","custom"])],Uoe,!0),n8e=fe([xf("type",["menu"]),ji("text"),ji("tooltip"),ji("icon"),Bu("items",e8e)],Voe,!0),r8e=rd("type",{submit:PX,cancel:PX,custom:PX,menu:n8e}),o8e=[ta("type"),ta("text"),xf("level",["info","warn","error","success"]),ta("icon"),fn("url","")],a8e=Eo(o8e),i8e=function(a){return[ta("type"),a]},s8e=[ta("type"),ta("text"),Wi("disabled",!1),Wi("primary",!1),Ol("name","name",Aa(function(){return so("button-name")}),ds),ji("icon"),Wi("borderless",!1)],l8e=Eo(s8e),u8e=[ta("type"),ta("name"),ta("label"),Wi("disabled",!1)],c8e=Eo(u8e),f8e=Zl,FX=[ta("type"),ta("name")],bm=FX.concat([ji("label")]),d8e=bm.concat([fn("columns","auto")]),v8e=Eo(d8e),h8e=Cf([ta("value"),ta("text"),ta("icon")]),p8e=bm,m8e=Eo(p8e),g8e=ds,y8e=bm,b8e=Eo(y8e),_8e=ds,w8e=FX.concat([M0("tag","textarea"),ta("scriptId"),ta("scriptUrl"),zc("settings",void 0)]),C8e=FX.concat([M0("tag","textarea"),Lu("init")]),x8e=Mh(function(a){return Ms("customeditor.old",wf(C8e),a).orThunk(function(){return Ms("customeditor.new",wf(w8e),a)})}),E8e=ds,S8e=bm,T8e=Eo(S8e),A8e=$3(),k8e=function(a){return[ta("type"),Uv("columns"),a]},O8e=[ta("type"),ta("html"),nc("presets","presentation",["presentation","document"])],M8e=Eo(O8e),N8e=bm.concat([Wi("sandboxed",!0)]),D8e=Eo(N8e),I8e=ds,R8e=bm.concat([Fc("currentState",Eo([rr("blob"),ta("url")]))]),L8e=Eo(R8e),B8e=bm.concat([ji("inputMode"),ji("placeholder"),Wi("maximized",!1),Wi("disabled",!1)]),P8e=Eo(B8e),F8e=ds,$8e=function(a){return[ta("type"),ta("label"),a]},z8e=[ta("text"),ta("value")],H8e=[ta("text"),Bu("items",n5("items",function(){return joe}))],joe=Lp([Eo(z8e),Eo(H8e)]),V8e=bm.concat([Bu("items",joe),Wi("disabled",!1)]),U8e=Eo(V8e),j8e=ds,W8e=bm.concat([od("items",[ta("text"),ta("value")]),$c("size",1),Wi("disabled",!1)]),G8e=Eo(W8e),K8e=ds,Y8e=bm.concat([Wi("constrain",!0),Wi("disabled",!1)]),q8e=Eo(Y8e),Woe=Eo([ta("width"),ta("height")]),X8e=[ta("type"),Bu("header",ds),Bu("cells",Lc(ds))],Z8e=Eo(X8e),Q8e=bm.concat([ji("placeholder"),Wi("maximized",!1),Wi("disabled",!1)]),J8e=Eo(Q8e),e5e=ds,t5e=bm.concat([nc("filetype","file",["image","media","file"]),fn("disabled",!1)]),n5e=Eo(t5e),r5e=Eo([ta("value"),fn("meta",{})]),$X=function(a){return Ol("items","items",Yo(),Lc(Mh(function(c){return Ms("Checking item of "+a,zX,c).fold(function(p){return ya.error(av(p))},function(p){return ya.value(p)})})))},zX=xb(function(){return Oh("type",{alertbanner:a8e,bar:Eo(i8e($X("bar"))),button:l8e,checkbox:c8e,colorinput:m8e,colorpicker:b8e,dropzone:T8e,grid:Eo(k8e($X("grid"))),iframe:D8e,input:P8e,listbox:U8e,selectbox:G8e,sizeinput:q8e,textarea:J8e,urlinput:n5e,customeditor:x8e,htmlpanel:M8e,imagetools:L8e,collection:v8e,label:Eo($8e($X("label"))),table:Z8e,panel:Goe})}),o5e=[ta("type"),fn("classes",[]),Bu("items",zX)],Goe=Eo(o5e),a5e=[Ol("name","name",Aa(function(){return so("tab-name")}),ds),ta("title"),Bu("items",zX)],i5e=[ta("type"),od("tabs",a5e)],s5e=Eo(i5e),l5e=Uoe,u5e=r8e,c5e=Eo([ta("title"),Fc("body",Oh("type",{panel:Goe,tabpanel:s5e})),M0("size","normal"),Bu("buttons",u5e),fn("initialData",{}),Gi("onAction",T),Gi("onChange",T),Gi("onSubmit",T),Gi("onClose",T),Gi("onCancel",T),fn("onTabChange",T)]),f5e=function(a){return Ms("dialog",c5e,a)},d5e=Eo(fe([xf("type",["cancel","custom"])],l5e,!0)),v5e=Eo([ta("title"),ta("url"),Vl("height"),Vl("width"),Zc("buttons",d5e),Gi("onAction",T),Gi("onCancel",T),Gi("onClose",T),Gi("onMessage",T)]),h5e=function(a){return Ms("dialog",v5e,a)},HX=function(a){return l(a)?[a].concat(We(pn(a),HX)):u(a)?We(a,HX):[]},p5e=function(a){return i(a.type)&&i(a.name)},m5e={checkbox:f8e,colorinput:g8e,colorpicker:_8e,dropzone:A8e,input:F8e,iframe:I8e,sizeinput:Woe,selectbox:K8e,listbox:j8e,size:Woe,textarea:e5e,urlinput:r5e,customeditor:E8e,collection:h8e,togglemenuitem:t8e},g5e=function(a){return M.from(m5e[a.type])},y5e=function(a){return De(HX(a),p5e)},b5e=function(a){var c=y5e(a),p=We(c,function(x){return g5e(x).fold(function(){return[]},function(I){return[Fc(x.name,I)]})});return Eo(p)},Koe=function(a){var c=Jd(f5e(a)),p=b5e(a),x=a.initialData;return{internalDialog:c,dataValidator:p,initialData:x}},uD={open:function(a,c){var p=Koe(c);return a(p.internalDialog,p.initialData,p.dataValidator)},openUrl:function(a,c){var p=Jd(h5e(c));return a(p)},redial:function(a){return Koe(a)}},Yoe=function(a){var c=[],p={};return xt(a,function(x,I){x.fold(function(){c.push(I)},function(G){p[I]=G})}),c.length>0?ya.error(c):ya.value(p)},_5e=function(a,c){var p=Ii(e8.sketch(function(x){return{dom:{tag:"div",classes:["tox-form"].concat(a.classes)},components:Ae(a.items,function(I){return zF(x,I,c)})}}));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[p.asSpec()]}],behaviours:Rr([No.config({mode:"acyclic",useTabstopAt:z(x9)}),fp.memento(p),P4.memento(p,{postprocess:function(x){return Yoe(x).fold(function(I){return console.error(I),{}},A)}})])}},w5e=function(a,c){return{uid:a.uid,dom:a.dom,components:a.components,events:C_(a.action),behaviours:oc(a.tabButtonBehaviours,[oa.config({}
129),No.config({mode:"execution",useSpace:!0,useEnter:!0}),zr.config({store:{mode:"memory",initialValue:a.value}})]),domModification:a.domModification}},C5e=u1({name:"TabButton",configFields:[fn("uid",void 0),rr("value"),Ol("dom","dom",Iu(function(){return{attributes:{role:"tab",id:so("aria"),"aria-selected":"false"}}}),vi()),pi("action"),fn("domModification",{}),xu("tabButtonBehaviours",[oa,No,zr]),rr("view")],factory:w5e}),x5e=N([rr("tabs"),rr("dom"),fn("clickToDismiss",!1),xu("tabbarBehaviours",[ki,No]),Jm(["tabClass","selectedClass"])]),E5e=Xh({factory:C5e,name:"tabs",unit:"tab",overrides:function(a){var c=function(x,I){ki.dehighlight(x,I),zo(x,hu(),{tabbar:x,button:I})},p=function(x,I){ki.highlight(x,I),zo(x,W3(),{tabbar:x,button:I})};return{action:function(x){var I=x.getSystem().getByUid(a.uid).getOrDie(),G=ki.isHighlighted(I,x),se=function(){return G&&a.clickToDismiss?c:G?T:p}();se(I,x)},domModification:{classes:[a.markers.tabClass]}}}}),S5e=N([E5e]),T5e=function(a,c,p,x){return{uid:a.uid,dom:a.dom,components:c,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:oc(a.tabbarBehaviours,[ki.config({highlightClass:a.markers.selectedClass,itemClass:a.markers.tabClass,onHighlight:function(I,G){ha(G.element,"aria-selected","true")},onDehighlight:function(I,G){ha(G.element,"aria-selected","false")}}),No.config({mode:"flow",getInitial:function(I){return ki.getHighlighted(I).map(function(G){return G.element})},selector:"."+a.markers.tabClass,executeOnMove:!0})])}},qoe=Pf({name:"Tabbar",configFields:x5e(),partFields:S5e(),factory:T5e}),A5e=function(a,c){return{uid:a.uid,dom:a.dom,behaviours:oc(a.tabviewBehaviours,[ra.config({})]),domModification:{attributes:{role:"tabpanel"}}}},k5e=u1({name:"Tabview",configFields:[xu("tabviewBehaviours",[ra])],factory:A5e}),O5e=N([fn("selectFirst",!0),xi("onChangeTab"),xi("onDismissTab"),fn("tabs",[]),xu("tabSectionBehaviours",[])]),M5e=Tc({factory:qoe,schema:[rr("dom"),S1("markers",[rr("tabClass"),rr("selectedClass")])],name:"tabbar",defaults:function(a){return{tabs:a.tabs}}}),N5e=Tc({factory:k5e,name:"tabview"}),D5e=N([M5e,N5e]),I5e=function(a,c,p,x){var I=function(se){var ge=zr.getValue(se);ns(se,a,"tabview").each(function(we){var ke=lt(a.tabs,function(ze){return ze.value===ge});ke.each(function(ze){var Ge=ze.view();$s(se.element,"id").each(function(ut){ha(we.element,"aria-labelledby",ut)}),ra.set(we,Ge),a.onChangeTab(we,se,Ge)})})},G=function(se,ge){ns(se,a,"tabbar").each(function(we){ge(we).each(Tf)})};return{uid:a.uid,dom:a.dom,components:c,behaviours:ly(a.tabSectionBehaviours),events:Fi(Fe([a.selectFirst?[qo(function(se,ge){G(se,ki.getFirst)})]:[],[sr(W3(),function(se,ge){var we=ge.event.button;I(we)}),sr(hu(),function(se,ge){var we=ge.event.button;a.onDismissTab(se,we)})]])),apis:{getViewItems:function(se){return ns(se,a,"tabview").map(function(ge){return ra.contents(ge)}).getOr([])},showTab:function(se,ge){var we=function(ke){var ze=ki.getCandidates(ke),Ge=lt(ze,function(ut){return zr.getValue(ut)===ge});return Ge.filter(function(ut){return!ki.isHighlighted(ke,ut)})};G(se,we)}}}},WT=Pf({name:"TabSection",configFields:O5e(),partFields:D5e(),factory:I5e,apis:{getViewItems:function(a,c){return a.getViewItems(c)},showTab:function(a,c,p){a.showTab(c,p)}}}),R5e=function(a,c,p){return Ae(a,function(x,I){ra.set(p,a[I].view());var G=c.dom.getBoundingClientRect();return ra.set(p,[]),G.height})},L5e=function(a){return It(tn(a,function(c,p){return c>p?-1:c<p?1:0}))},B5e=function(a,c,p){var x=Gn(a).dom,I=Q3(a,".tox-dialog-wrap").getOr(a),G=ks(I,"position")==="fixed",se;G?se=Math.max(x.clientHeight,window.innerHeight):se=Math.max(x.offsetHeight,x.scrollHeight);var ge=gl(c),we=c.dom.offsetLeft>=p.dom.offsetLeft+Ou(p),ke=we?Math.max(gl(p),ge):ge,ze=parseInt(ks(a,"margin-top"),10)||0,Ge=parseInt(ks(a,"margin-bottom"),10)||0,ut=gl(a)+ze+Ge,yt=ut-ke;return se-yt},P5e=function(a,c){It(a).each(function(p){return WT.showTab(c,p.value)})},Xoe=function(a,c){Jo(a,"height",c+"px"),Io().browser.isIE()?ai(a,"flex-basis"):Jo(a,"flex-basis",c+"px")},O$=function(a,c,p){Q3(a,'[role="dialog"]').each(function(x){bu(x,'[role="tablist"]').each(function(I){p.get().map(function(G){return Jo(c,"height","0"),Jo(c,"flex-basis","0"),Math.min(G,B5e(x,c,I))}).each(function(G){Xoe(c,G)})})})},VX=function(a){return bu(a,'[role="tabpanel"]')},F5e=function(a){var c=function(){var x=wl(),I=[qo(function(se){var ge=se.element;VX(ge).each(function(we){Jo(we,"visibility","hidden"),se.getSystem().getByDom(we).toOptional().each(function(ke){var ze=R5e(a,we,ke),Ge=L5e(ze);Ge.fold(x.clear,x.set)}),O$(ge,we,x),ai(we,"visibility"),P5e(a,se),np.requestAnimationFrame(function(){O$(ge,we,x)})})}),sr(ad(),function(se){var ge=se.element;VX(ge).each(function(we){O$(ge,we,x)})}),sr(wB,function(se,ge){var we=se.element;VX(we).each(function(ke){var ze=Bf(So(ke));Jo(ke,"visibility","hidden");var Ge=ll(ke,"height").map(function(Ot){return parseInt(Ot,10)});ai(ke,"height"),ai(ke,"flex-basis");var ut=ke.dom.getBoundingClientRect().height,yt=Ge.forall(function(Ot){return ut>Ot});yt?(x.set(ut),O$(we,ke,x)):Ge.each(function(Ot){Xoe(ke,Ot)}),ai(ke,"visibility"),ze.each(Jv)})})],G=!1;return{extraEvents:I,selectFirst:G}}(),p=function(){var x=[],I=!0;return{extraEvents:x,selectFirst:I}}();return{smartTabHeight:c,naiveTabHeight:p}},Zoe="send-data-to-section",Qoe="send-data-to-view",$5e=function(a,c){var p=Oo({}),x=function(we){var ke=zr.getValue(we),ze=Yoe(ke).getOr({}),Ge=p.get(),ut=qn(Ge,ze);p.set(ut)},I=function(we){var ke=p.get();zr.setValue(we,ke)},G=Oo(null),se=Ae(a.tabs,function(we){return{value:we.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:c.shared.providers.translate(we.title)},view:function(){return[e8.sketch(function(ke){return{dom:{tag:"div",classes:["tox-form"]},components:Ae(we.items,function(ze){return zF(ke,ze,c)}),formBehaviours:Rr([No.config({mode:"acyclic",useTabstopAt:z(x9)}),ba("TabView.form.events",[qo(I),Uc(x)]),nf.config({channels:Yv([{key:Zoe,value:{onReceive:x}},{key:Qoe,value:{onReceive:I}}])})])}})]}}}),ge=F5e(se).smartTabHeight;return WT.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(we,ke,ze){var Ge=zr.getValue(ke);zo(we,Oy,{name:Ge,oldName:G.get()}),G.set(Ge)},tabs:se,components:[WT.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[qoe.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Rr([Il.config({})])}),WT.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:ge.selectFirst,tabSectionBehaviours:Rr([ba("tabpanel",ge.extraEvents),No.config({mode:"acyclic"}),Wa.config({find:function(we){return It(WT.getViewItems(we))}}),zr.config({store:{mode:"manual",getValue:function(we){return we.getSystem().broadcastOn([Zoe],{}),p.get()},setValue:function(we,ke){p.set(ke),we.getSystem().broadcastOn([Qoe],{})}}})])})},UX=so("update-dialog"),Joe=so("update-title"),eae=so("update-body"),tae=so("update-footer"),nae=so("body-send-message"),rae=function(a,c,p,x){var I=function(ge){switch(ge.body.type){case"tabpanel":return[$5e(ge.body,p)];default:return[_5e(ge.body,p)]}},G=function(ge,we){return M.some({isTabPanel:function(){return we.body.type==="tabpanel"}})},se={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:V(V({},c.map(function(ge){return{id:ge}}).getOr({})),x?se:{})},components:[],behaviours:Rr([fp.childAt(0),fh.config({channel:eae,updateState:G,renderComponents:I,initialData:a})])}},z5e=function(a,c,p,x){return rae(a,M.some(c),p,x)},H5e=function(a,c){var p=rae(a,M.none(),c,!1);return Mc.parts.body(p)},V5e=function(a){var c={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[$P({dom:{tag:"iframe",attributes:{src:a.url}},behaviours:Rr([Il.config({}),oa.config({})])})]}],behaviours:Rr([No.config({mode:"acyclic",useTabstopAt:z(x9)})])};return Mc.parts.body(c)},U5e=ES.deviceType.isTouch(),oae=function(a,c){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[a,c]}},aae=function(a,c){return Mc.parts.close(Rd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":c.translate("Close")}},action:a,buttonBehaviours:Rr([Il.config({})])}))},iae=function(){return Mc.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},sae=function(a,c){return Mc.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Mg("<p>"+oS(c.translate(a))+"</p>")}]}]})},lae=function(a){return Mc.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:a})},uae=function(a,c){return[$f.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:a}),$f.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]}
129,components:c})]},jX=function(a){var c,p="tox-dialog",x=p+"-wrap",I=x+"__backdrop",G=p+"__disable-scroll";return Mc.sketch({lazySink:a.lazySink,onEscape:function(se){return a.onEscape(se),M.some(!0)},useTabstopAt:function(se){return!x9(se)},dom:{tag:"div",classes:[p].concat(a.extraClasses),styles:V({position:"relative"},a.extraStyles)},components:fe([a.header,a.body],a.footer.toArray(),!0),parts:{blocker:{dom:Mg('<div class="'+x+'"></div>'),components:[{dom:{tag:"div",classes:U5e?[I,I+"--opaque"]:[I]}}]}},dragBlockClass:x,modalBehaviours:Rr(fe([oa.config({}),ba("dialog-events",a.dialogEvents.concat([Hs(Vc(),function(se,ge){No.focusIn(se)})])),ba("scroll-lock",[qo(function(){yu(di(),G)}),Uc(function(){eu(di(),G)})])],a.extraBehaviours,!0)),eventOrder:V((c={},c[Sf()]=["dialog-events"],c[Jc()]=["scroll-lock","dialog-events","alloy.base.behaviour"],c[$0()]=["alloy.base.behaviour","dialog-events","scroll-lock"],c),a.eventOrder)})},cae=function(a){return Rd.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":a.translate("Close"),title:a.translate("Close")}},components:[n0("close",{tag:"div",classes:["tox-icon"]},a.icons)],action:function(c){li(c,L4)}})},fae=function(a,c,p){var x=function(I){return[wc(p.translate(I.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:V({},c.map(function(I){return{id:I}}).getOr({}))},components:x(a),behaviours:Rr([fh.config({channel:Joe,renderComponents:x})])}},dae=function(){return{dom:Mg('<div class="tox-dialog__draghandle"></div>')}},j5e=function(a,c,p){return $f.sketch({dom:Mg('<div class="tox-dialog__header"></div>'),components:[fae(a,M.some(c),p),dae(),cae(p)],containerBehaviours:Rr([L9.config({mode:"mouse",blockerClass:"blocker",getTarget:function(x){return D1(x,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},W5e=function(a,c){var p=Mc.parts.title(fae(a,M.none(),c)),x=Mc.parts.draghandle(dae()),I=Mc.parts.close(cae(c)),G=[p].concat(a.draggable?[x]:[]).concat([I]);return $f.sketch({dom:Mg('<div class="tox-dialog__header"></div>'),components:G})},vae=function(a,c){return W5e({title:c.shared.providers.translate(a),draggable:c.dialog.isDraggableModal()},c.shared.providers)},hae=function(a,c,p){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":p.translate(a)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:c,components:[{dom:Mg('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},pae=function(a,c,p){return{onClose:function(){return p.closeWindow()},onBlock:function(x){Mc.setBusy(a(),function(I,G){return hae(x.message,G,c)})},onUnblock:function(){Mc.setIdle(a())}}},mae=function(a,c,p,x){var I,G=function(se,ge){return M.some(ge)};return Us(jX(V(V({},a),{lazySink:x.shared.getSink,extraBehaviours:fe([fh.config({channel:UX,updateState:G,initialData:c}),P4.memory({})],a.extraBehaviours,!0),onEscape:function(se){li(se,L4)},dialogEvents:p,eventOrder:(I={},I[Md()]=[fh.name(),nf.name()],I[Jc()]=["scroll-lock",fh.name(),"messages","dialog-events","alloy.base.behaviour"],I[$0()]=["alloy.base.behaviour","dialog-events","messages",fh.name(),"scroll-lock"],I)})))},gae=function(a){var c=function(p){var x=Ae(p.items,function(I){var G=Oo(!1);return V(V({},I),{storage:G})});return V(V({},p),{items:x})};return Ae(a,function(p){return p.type==="menu"?c(p):p})},yae=function(a){return rt(a,function(c,p){if(p.type==="menu"){var x=p;return rt(x.items,function(I,G){return I[G.name]=G.storage,I},c)}return c},{})},bae=function(a,c){return[ms(Vc(),HP),a(h9,function(p,x){c.onClose(),x.onClose()}),a(L4,function(p,x,I,G){x.onCancel(p),li(G,h9)}),sr(RM,function(p,x){return c.onUnblock()}),sr(IM,function(p,x){return c.onBlock(x.event)})]},G5e=function(a,c){var p=function(I,G){return sr(I,function(se,ge){x(se,function(we,ke){G(a(),we,ge.event,se)})})},x=function(I,G){fh.getState(I).get().each(function(se){G(se,I)})};return fe(fe([],bae(p,c),!0),[p(hm,function(I,G,se){G.onAction(I,{name:se.name})})],!1)},K5e=function(a,c,p){var x=function(G,se){return sr(G,function(ge,we){I(ge,function(ke,ze){se(a(),ke,we.event,ge)})})},I=function(G,se){fh.getState(G).get().each(function(ge){se(ge.internalDialog,G)})};return fe(fe([],bae(x,c),!0),[x(p9,function(G,se){return se.onSubmit(G)}),x(H1,function(G,se,ge){se.onChange(G,{name:ge.name})}),x(hm,function(G,se,ge,we){var ke=function(){return No.focusIn(we)},ze=function(yt){return Eh(yt,"disabled")||$s(yt,"aria-disabled").exists(function(Ot){return Ot==="true"})},Ge=So(we.element),ut=Bf(Ge);se.onAction(G,{name:ge.name,value:ge.value}),Bf(Ge).fold(ke,function(yt){ze(yt)||ut.exists(function(Ot){return Qu(yt,Ot)&&ze(Ot)})?ke():p().toOptional().filter(function(Ot){return!Qu(Ot.element,yt)}).each(ke)})}),x(Oy,function(G,se,ge){se.onTabChange(G,{newTabName:ge.name,oldTabName:ge.oldName})}),Uc(function(G){var se=a();zr.setValue(G,se.getData())})],!1)},WX={initUrlDialog:G5e,initDialog:K5e},Y5e=function(a,c){return _T(a,a.type,c)},q5e=function(a,c,p){return lt(c,function(x){return x.name===p}).bind(function(x){return x.memento.getOpt(a)})},X5e=function(a,c){var p=c.map(function(ge){return ge.footerButtons}).getOr([]),x=Oe(p,function(ge){return ge.align==="start"}),I=function(ge,we){return $f.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+ge]},components:Ae(we,function(ke){return ke.memento.asSpec()})})},G=I("start",x.pass),se=I("end",x.fail);return[G,se]},_ae=function(a,c){var p=function(x,I){var G=Ae(I.buttons,function(ge){var we=Ii(Y5e(ge,c));return{name:ge.name,align:ge.align,memento:we}}),se=function(ge,we){return q5e(ge,G,we)};return M.some({lookupByName:se,footerButtons:G})};return{dom:Mg('<div class="tox-dialog__footer"></div>'),components:[],behaviours:Rr([fh.config({channel:tae,initialData:a,updateState:p,renderComponents:X5e})])}},Z5e=function(a,c){return _ae(a,c)},wae=function(a,c){return Mc.parts.footer(_ae(a,c))},GX=function(a,c){var p=a.getRoot();if(p.getSystem().isConnected()){var x=Wa.getCurrent(a.getFormWrapper()).getOr(a.getFormWrapper());return e8.getField(x,c).fold(function(){var I=a.getFooter(),G=fh.getState(I);return G.get().bind(function(se){return se.lookupByName(x,c)})},function(I){return M.some(I)})}else return M.none()},Q5e=function(a,c){var p=a.getRoot();return fh.getState(p).get().map(function(x){return Jd(Ms("data",x.dataValidator,c))}).getOr(c)},Cae=function(a,c,p){var x=function(Kt){var cn=a.getRoot();cn.getSystem().isConnected()&&Kt(cn)},I=function(){var Kt=a.getRoot(),cn=Kt.getSystem().isConnected()?a.getFormWrapper():Kt,Ut=zr.getValue(cn),hn=at(p,function(jn){return jn.get()});return V(V({},Ut),hn)},G=function(Kt){x(function(cn){var Ut=Ot.getData(),hn=V(V({},Ut),Kt),jn=Q5e(a,hn),Un=a.getFormWrapper();zr.setValue(Un,jn),xt(p,function(vn,Pn){zn(hn,Pn)&&vn.set(hn[Pn])})})},se=function(Kt){GX(a,Kt).each(Ho.disable)},ge=function(Kt){GX(a,Kt).each(Ho.enable)},we=function(Kt){GX(a,Kt).each(oa.focus)},ke=function(Kt){if(!i(Kt))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");x(function(cn){zo(cn,IM,{message:Kt})})},ze=function(){x(function(Kt){li(Kt,RM)})},Ge=function(Kt){x(function(cn){var Ut=a.getBody(),hn=fh.getState(Ut);hn.get().exists(function(jn){return jn.isTabPanel()})&&Wa.getCurrent(Ut).each(function(jn){WT.showTab(jn,Kt)})})},ut=function(Kt){x(function(cn){var Ut=c(Kt);cn.getSystem().broadcastOn([UX],Ut),cn.getSystem().broadcastOn([Joe],Ut.internalDialog),cn.getSystem().broadcastOn([eae],Ut.internalDialog),cn.getSystem().broadcastOn([tae],Ut.internalDialog),Ot.setData(Ut.initialData)})},yt=function(){x(function(Kt){li(Kt,h9)})},Ot={getData:I,setData:G,disable:se,enable:ge,focus:we,block:ke,unblock:ze,showTab:Ge,redial:ut,close:yt};return Ot},J5e=function(a){switch(a){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},ewe=function(a,c,p){var x=vae(a.internalDialog.title,p),I=H5e({body:a.internalDialog.body},p),G=gae(a.internalDialog.buttons),se=yae(G),ge=wae({buttons:G},p),we=WX.initDialog(function(){return yt},pae(function(){return Ge},p.shared.providers,c),p.shared.getSink),ke=J5e(a.internalDialog.size),ze={header:x,body:I,footer:M.some(ge),extraClasse
129s:ke,extraBehaviours:[],extraStyles:{}},Ge=mae(ze,a,we,p),ut=function(){var Ot=function(){var Kt=Mc.getBody(Ge);return Wa.getCurrent(Kt).getOr(Kt)};return{getRoot:N(Ge),getBody:function(){return Mc.getBody(Ge)},getFooter:function(){return Mc.getFooter(Ge)},getFormWrapper:Ot}}(),yt=Cae(ut,c.redial,se);return{dialog:Ge,instanceApi:yt}},twe=function(a,c,p,x){var I,G,se=so("dialog-label"),ge=so("dialog-content"),we=function(Ut,hn){return M.some(hn)},ke=Ii(j5e({title:a.internalDialog.title,draggable:!0},se,p.shared.providers)),ze=Ii(z5e({body:a.internalDialog.body},ge,p,x)),Ge=gae(a.internalDialog.buttons),ut=yae(Ge),yt=Ii(Z5e({buttons:Ge},p)),Ot=WX.initDialog(function(){return cn},{onBlock:function(Ut){ym.block(Kt,function(hn,jn){return hae(Ut.message,jn,p.shared.providers)})},onUnblock:function(){ym.unblock(Kt)},onClose:function(){return c.closeWindow()}},p.shared.getSink),Kt=Us({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(I={role:"dialog"},I["aria-labelledby"]=se,I["aria-describedby"]=ge,I)},eventOrder:(G={},G[Md()]=[fh.name(),nf.name()],G[Sf()]=["execute-on-form"],G[Jc()]=["reflecting","execute-on-form"],G),behaviours:Rr([No.config({mode:"cyclic",onEscape:function(Ut){return li(Ut,h9),M.some(!0)},useTabstopAt:function(Ut){return!x9(Ut)&&(Bt(Ut)!=="button"||ps(Ut,"disabled")!=="disabled")}}),fh.config({channel:UX,updateState:we,initialData:a}),oa.config({}),ba("execute-on-form",Ot.concat([Hs(Vc(),function(Ut,hn){No.focusIn(Ut)})])),ym.config({getRoot:function(){return M.some(Kt)}}),ra.config({}),P4.memory({})]),components:[ke.asSpec(),ze.asSpec(),yt.asSpec()]}),cn=Cae({getRoot:N(Kt),getFooter:function(){return yt.get(Kt)},getBody:function(){return ze.get(Kt)},getFormWrapper:function(){var Ut=ze.get(Kt);return Wa.getCurrent(Ut).getOr(Ut)}},c.redial,ut);return{dialog:Kt,instanceApi:cn}},KX=tinymce.util.Tools.resolve("tinymce.util.URI"),nwe=function(a){var c=function(se){a.getSystem().isConnected()&&se(a)},p=function(se){if(!i(se))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");c(function(ge){zo(ge,IM,{message:se})})},x=function(){c(function(se){li(se,RM)})},I=function(){c(function(se){li(se,h9)})},G=function(se){c(function(ge){ge.getSystem().broadcastOn([nae],se)})};return{block:p,unblock:x,close:I,sendMessage:G}},rwe=["insertContent","setContent","execCommand","close","block","unblock"],xae=function(a){return l(a)&&rwe.indexOf(a.mceAction)!==-1},owe=function(a){return!xae(a)&&l(a)&&zn(a,"mceAction")},awe=function(a,c,p){switch(p.mceAction){case"insertContent":a.insertContent(p.content);break;case"setContent":a.setContent(p.content);break;case"execCommand":var x=v(p.ui)?p.ui:!1;a.execCommand(p.cmd,x,p.value);break;case"close":c.close();break;case"block":c.block(p.message);break;case"unblock":c.unblock();break}},iwe=function(a,c,p,x){var I,G=vae(a.title,x),se=V5e(a),ge=a.buttons.bind(function(hn){return hn.length===0?M.none():M.some(wae({buttons:hn},x))}),we=WX.initUrlDialog(function(){return Ut},pae(function(){return cn},x.shared.providers,c)),ke=V(V({},a.height.fold(function(){return{}},function(hn){return{height:hn+"px","max-height":hn+"px"}})),a.width.fold(function(){return{}},function(hn){return{width:hn+"px","max-width":hn+"px"}})),ze=a.width.isNone()&&a.height.isNone()?["tox-dialog--width-lg"]:[],Ge=new KX(a.url,{base_uri:new KX(window.location.href)}),ut=Ge.protocol+"://"+Ge.host+(Ge.port?":"+Ge.port:""),yt=$2(),Ot=[ba("messages",[qo(function(){var hn=Dl(Rt.fromDom(window),"message",function(jn){if(Ge.isSameOrigin(new KX(jn.raw.origin))){var Un=jn.raw.data;xae(Un)?awe(p,Ut,Un):owe(Un)&&a.onMessage(Ut,Un)}});yt.set(hn)}),Uc(yt.clear)]),nf.config({channels:(I={},I[nae]={onReceive:function(hn,jn){bu(hn.element,"iframe").each(function(Un){var vn=Un.dom.contentWindow;vn.postMessage(jn,ut)})}},I)})],Kt={header:G,body:se,footer:ge,extraClasses:ze,extraBehaviours:Ot,extraStyles:ke},cn=mae(Kt,a,we,x),Ut=nwe(cn);return{dialog:cn,instanceApi:Ut}},swe=function(a){var c=a.backstage.shared,p=function(x,I){var G=function(){Mc.hide(ke),I()},se=Ii(_T({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:M.none()},"cancel",a.backstage)),ge=iae(),we=aae(G,c.providers),ke=Us(jX({lazySink:function(){return c.getSink()},header:oae(ge,we),body:sae(x,c.providers),footer:M.some(lae(uae([],[se.asSpec()]))),onEscape:G,extraClasse
129s:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[sr(L4,G)],eventOrder:{}}));Mc.show(ke);var ze=se.get(ke);oa.focus(ze)};return{open:p}},lwe=function(a){var c=a.backstage.shared,p=function(x,I){var G=function(ut){Mc.hide(ze),I(ut)},se=Ii(_T({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:M.none()},"submit",a.backstage)),ge=_T({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:M.none()},"cancel",a.backstage),we=iae(),ke=aae(function(){return G(!1)},c.providers),ze=Us(jX({lazySink:function(){return c.getSink()},header:oae(we,ke),body:sae(x,c.providers),footer:M.some(lae(uae([],[ge,se.asSpec()]))),onEscape:function(){return G(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[sr(L4,function(){return G(!1)}),sr(p9,function(){return G(!0)})],eventOrder:{}}));Mc.show(ze);var Ge=se.get(ze);oa.focus(Ge)};return{open:p}},uwe=function(a,c){return Jd(Ms("data",c,a))},cwe=function(a){return d9(a,".tox-alert-dialog")||d9(a,".tox-confirm-dialog")},fwe=function(a,c,p){return c&&p?[]:[o.config({contextual:{lazyContext:function(){return M.some(nl(Rt.fromDom(a.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},dwe=function(a){var c=a.backstage,p=a.editor,x=CS(p),I=swe(a),G=lwe(a),se=function(Ot,Kt,cn){return Kt!==void 0&&Kt.inline==="toolbar"?ze(Ot,c.shared.anchors.inlineDialog(),cn,Kt.ariaAttrs):Kt!==void 0&&Kt.inline==="cursor"?ze(Ot,c.shared.anchors.cursor(),cn,Kt.ariaAttrs):ke(Ot,cn)},ge=function(Ot,Kt){return we(Ot,Kt)},we=function(Ot,Kt){var cn=function(Ut){var hn=iwe(Ut,{closeWindow:function(){Mc.hide(hn.dialog),Kt(hn.instanceApi)}},p,c);return Mc.show(hn.dialog),hn.instanceApi};return uD.openUrl(cn,Ot)},ke=function(Ot,Kt){var cn=function(Ut,hn,jn){var Un=hn,vn={dataValidator:jn,initialData:Un,internalDialog:Ut},Pn=ewe(vn,{redial:uD.redial,closeWindow:function(){Mc.hide(Pn.dialog),Kt(Pn.instanceApi)}},c);return Mc.show(Pn.dialog),Pn.instanceApi.setData(Un),Pn.instanceApi};return uD.open(cn,Ot)},ze=function(Ot,Kt,cn,Ut){var hn=function(jn,Un,vn){var Pn=uwe(Un,vn),or=wl(),Hr=c.shared.header.isPositionedAtTop(),fr={dataValidator:vn,initialData:Pn,internalDialog:jn},Wr=function(){return or.on(function(Mr){Ki.reposition(Mr),o.refresh(Mr)})},dr=twe(fr,{redial:uD.redial,closeWindow:function(){or.on(Ki.hide),p.off("ResizeEditor",Wr),or.clear(),cn(dr.instanceApi)}},c,Ut),nr=Us(Ki.sketch(V(V({lazySink:c.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},Hr?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:Rr(fe([ba("window-manager-inline-events",[sr(o1(),function(Mr,go){li(dr.dialog,L4)})])],fwe(p,x,Hr),!0)),isExtraPart:function(Mr,go){return cwe(go)}})));return or.set(nr),Ki.showWithin(nr,s1(dr.dialog),{anchor:Kt},M.some(di())),(!x||!Hr)&&(o.refresh(nr),p.on("ResizeEditor",Wr)),dr.instanceApi.setData(Pn),No.focusIn(dr.dialog),dr.instanceApi};return uD.open(hn,Ot)},Ge=function(Ot,Kt){G.open(Ot,function(cn){Kt(cn)})},ut=function(Ot,Kt){I.open(Ot,function(){Kt()})},yt=function(Ot){Ot.close()};return{open:se,openUrl:ge,alert:ut,close:yt,confirm:Ge}};function vwe(){te.add("silver",function(a){var c=Y_e(a),p=c.uiMothership,x=c.backstage,I=c.renderUI,G=c.getUi;ky.register(a,x.shared);var se=dwe({editor:a,backstage:x});return{renderUI:I,getWindowManagerImpl:N(se),getNotificationManagerImpl:function(){return VO(a,{backstage:x},p)},ui:G()}})}vwe()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24">
129<path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24">
129<path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24">
129<path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24">
129<path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero">
129<path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24">
129<path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24">
129<path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24">
129<path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2
1290l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24">
129<path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6
129h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>
129',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24">
129<path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}});(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(K,fe,de){var ne=fe==="UL"?"InsertUnorderedList":"InsertOrderedList";K.execCommand(ne,!1,de===!1?null:{"list-style-type":de})},n=function(K){K.addCommand("ApplyUnorderedListStyle",function(fe,de){t(K,"UL",de["list-style-type"])}),K.addCommand("ApplyOrderedListStyle",function(fe,de){t(K,"OL",de["list-style-type"])})},r=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(K){var fe=K.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return fe?fe.split(/[ ,]/):[]},l=function(K){var fe=K.getParam("advlist_bullet_styles","default,circle,square");return fe?fe.split(/[ ,]/):[]},u=function(){},f=function(K){return function(){return K}},v=function(K){return K},h=f(!1),g=f(!0),y=function(){return w},w=function(){var K=function(ne){return ne()},fe=v,de={fold:function(ne,le){return ne()},isSome:h,isNone:g,getOr:fe,getOrThunk:K,getOrDie:function(ne){throw new Error(ne||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:fe,orThunk:K,map:y,each:u,bind:y,exists:h,forall:g,filter:function(){return y()},toArray:function(){return[]},toString:f("none()")};return de}(),C=function(K){var fe=f(K),de=function(){return le},ne=function(_e){return _e(K)},le={fold:function(_e,M){return M(K)},isSome:g,isNone:h,getOr:fe,getOrThunk:fe,getOrDie:fe,getOrNull:fe,getOrUndefined:fe,or:de,orThunk:de,map:function(_e){return C(_e(K))},each:function(_e){_e(K)},bind:ne,exists:ne,forall:ne,filter:function(_e){return _e(K)?le:w},toArray:function(){return[K]},toString:function(){return"some("+K+")"}};return le},S=function(K){return K==null?w:C(K)},T={some:C,none:y,from:S},B=function(K,fe){return K.$.contains(K.getBody(),fe)},F=function(K){return K&&/^(TH|TD)$/.test(K.nodeName)},R=function(K){return function(fe){return fe&&/^(OL|UL|DL)$/.test(fe.nodeName)&&B(K,fe)}},N=function(K){var fe=K.dom.getParent(K.selection.getNode(),"ol,ul"),de=K.dom.getStyle(fe,"listStyleType");return T.from(de)},A=function(K,fe){for(var de=0;de<K.length;de++){var ne=K[de];if(fe(ne))return de}return-1},X=function(K){return K.replace(/\-/g," ").replace(/\b\w/g,function(fe){return fe.toUpperCase()})},Z=function(K,fe,de){var ne=A(fe.parents,F),le=ne!==-1?fe.parents.slice(0,ne):fe.parents,_e=r.grep(le,R(K));return _e.length>0&&_e[0].nodeName===de},z=function(K,fe){return function(de){var ne=function(le){de.setActive(Z(K,le,fe))};return K.on("NodeChange",ne),function(){return K.off("NodeChange",ne)}}},Y=function(K,fe,de,ne,le,_e){K.ui.registry.addSplitButton(fe,{tooltip:de,icon:le==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(M){var P=r.map(_e,function(U){var j=le==="OL"?"num":"bull",ee=U==="disc"||U==="decimal"?"default":U,ye=U==="default"?"":U,ie=X(U);return{type:"choiceitem",value:ye,icon:"list-"+j+"-"+ee,text:ie}});M(P)},onAction:function(){return K.execCommand(ne)},onItemAction:function(M,P){t(K,le,P)},select:function(M){var P=N(K);return P.map(function(U){return M===U}).getOr(!1)},onSetup:z(K,le)})},Q=function(K,fe,de,ne,le,_e){K.ui.registry.addToggleButton(fe,{active:!1,tooltip:de,icon:le==="OL"?"ordered-list":"unordered-list",onSetup:z(K,le),onAction:function(){return K.execCommand(ne)}})},$=function(K,fe,de,ne,le,_e){_e.length>1?Y(K,fe,de,ne,le,_e):Q(K,fe,de,ne,le)},te=function(K){$(K,"numlist","Numbered list","InsertOrderedList","OL",i(K)),$(K,"bullist","Bullet list","InsertUnorderedList","UL",l(K))};function V(){e.add("advlist",function(K){K.hasPlugin("lists")?(te(K),n(K)):console.error("Please use the Lists plugin together with the Advanced List plugin.")})}V()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(te){return te.getParam("allow_html_in_named_anchor",!1,"boolean")},i="a:not([href])",l=function(te){return!te},u=function(te){var V=te.getAttribute("id")||te.getAttribute("name");return V||""},f=function(te){return te&&te.nodeName.toLowerCase()==="a"},v=function(te){return f(te)&&!te.getAttribute("href")&&u(te)!==""},h=function(te){return v(te)&&!te.firstChild},g=function(te){var V=te.dom;t(V).walk(te.selection.getRng(),function(K){n.each(K,function(fe){h(fe)&&V.remove(fe,!1)})})},y=function(te){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(te)},w=function(te){return te.dom.getParent(te.selection.getStart(),i)},C=function(te){var V=w(te);return V?u(V):""},S=function(te,V){te.undoManager.transact(function(){r(te)||te.selection.collapse(!0),te.selection.isCollapsed()?te.insertContent(te.dom.createHTML("a",{id:V})):(g(te),te.formatter.remove("namedAnchor",null,null,!0),te.formatter.apply("namedAnchor",{value:V}
129),te.addVisual())})},T=function(te,V,K){K.removeAttribute("name"),K.id=V,te.addVisual(),te.undoManager.add()},B=function(te,V){var K=w(te);K?T(te,V,K):S(te,V),te.focus()},F=function(te,V){return y(V)?(B(te,V),!0):(te.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1)},R=function(te){var V=C(te);te.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:V},onSubmit:function(K){F(te,K.getData().id)&&K.close()}})},N=function(te){te.addCommand("mceAnchor",function(){R(te)})},A=function(te){return te&&l(te.attr("href"))&&!l(te.attr("id")||te.attr("name"))},X=function(te){return A(te)&&!te.firstChild},Z=function(te){return function(V){for(var K=0;K<V.length;K++){var fe=V[K];X(fe)&&fe.attr("contenteditable",te)}}},z=function(te){te.on("PreInit",function(){te.parser.addNodeFilter("a",Z("false")),te.serializer.addNodeFilter("a",Z(null))})},Y=function(te){te.formatter.register("namedAnchor",{inline:"a",selector:i,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:function(V,K,fe){return v(V)}})},Q=function(te){te.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:function(){return te.execCommand("mceAnchor")},onSetup:function(V){return te.selection.selectorChangedWithUnbind("a:not([href])",V.setActive).unbind}}),te.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:function(){return te.execCommand("mceAnchor")}})};function $(){e.add("anchor",function(te){z(te),N(te),Q(te),te.on("PreInit",function(){Y(te)})})}$()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(Y,Q,$){return Q===""||Y.length>=Q.length&&Y.substr($,$+Q.length)===Q},n=function(Y,Q){return Y.indexOf(Q)!==-1},r=function(Y,Q){return t(Y,Q,0)},i=tinymce.util.Tools.resolve("tinymce.Env"),l=function(){return/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g},u=new RegExp("^"+l().source+"$","i"),f=function(Y){return Y.getParam("autolink_pattern",u)},v=function(Y){return Y.getParam("default_link_target",!1)},h=function(Y){return Y.getParam("link_default_protocol","http","string")},g=function(Y){return/^[(\[{ \u00a0]$/.test(Y)},y=function(Y){return Y.nodeType===3},w=function(Y){return Y.nodeType===1},C=function(Y){return X(Y,-1)},S=function(Y){return X(Y,0)},T=function(Y){return X(Y,-1)},B=function(Y,Q){if(Q<0&&(Q=0),y(Y)){var $=Y.data.length;Q>$&&(Q=$)}return Q},F=function(Y,Q,$){!w(Q)||Q.hasChildNodes()?Y.setStart(Q,B(Q,$)):Y.setStartBefore(Q)},R=function(Y,Q,$){!w(Q)||Q.hasChildNodes()?Y.setEnd(Q,B(Q,$)):Y.setEndAfter(Q)},N=function(Y){return/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Y)},A=function(Y){return/[?!,.;:]/.test(Y)},X=function(Y,Q){var $,te,V,K,fe,de,ne,le=f(Y),_e=v(Y);if(Y.dom.getParent(Y.selection.getNode(),"a[href]")===null){var M=Y.selection.getRng().cloneRange();if(M.startOffset<5){if(fe=M.endContainer.previousSibling,!fe){if(!M.endContainer.firstChild||!M.endContainer.firstChild.nextSibling)return;fe=M.endContainer.firstChild.nextSibling}if(de=fe.length,F(M,fe,de),R(M,fe,de),M.endOffset<5)return;$=M.endOffset,te=fe}else{if(te=M.endContainer,!y(te)&&te.firstChild){for(;!y(te)&&te.firstChild;)te=te.firstChild;y(te)&&(F(M,te,0),R(M,te,te.nodeValue.length))}M.endOffset===1?$=2:$=M.endOffset-1-Q}var P=$;do F(M,te,$>=2?$-2:0),R(M,te,$>=1?$-1:0),$-=1,ne=M.toString();while(!g(ne)&&$-2>=0);g(M.toString())?(F(M,te,$),R(M,te,P),$+=1):M.startOffset===0?(F(M,te,0),R(M,te,P)):(F(M,te,$),R(M,te,P)),K=M.toString(),A(K.charAt(K.length-1))&&R(M,te,P-1),K=M.toString().trim();var U=K.match(le),j=h(Y);if(U){var ee=U[0];r(ee,"www.")?ee=j+"://"+ee:n(ee,"@")&&!N(ee)&&(ee="mailto:"+ee),V=Y.selection.getBookmark(),Y.selection.setRng(M),Y.execCommand("createlink",!1,ee),_e!==!1&&Y.dom.setAttrib(Y.selection.getNode(),"target",_e),Y.selection.moveToBookmark(V),Y.nodeChanged()}}},Z=function(Y){var Q;
129if(Y.on("keydown",function($){if($.keyCode===13)return T(Y)}),i.browser.isIE()){Y.on("focus",function(){if(!Q){Q=!0;try{Y.execCommand("AutoUrlDetect",!1,!0)}catch{}}});return}Y.on("keypress",function($){if($.keyCode===41||$.keyCode===93||$.keyCode===125)return C(Y)}),Y.on("keyup",function($){if($.keyCode===32)return S(Y)})};function z(){e.add("autolink",function(Y){Z(Y)})}z()})();(function(){var e=function(X){var Z=X,z=function(){return Z},Y=function(Q){Z=Q};return{get:z,set:Y}},t=Object.hasOwnProperty,n=function(X,Z){return t.call(X,Z)},r=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),l=tinymce.util.Tools.resolve("tinymce.util.Delay"),u=function(X){return X.fire("ResizeEditor")},f=function(X){return X.getParam("min_height",X.getElement().offsetHeight,"number")},v=function(X){return X.getParam("max_height",0,"number")},h=function(X){return X.getParam("autoresize_overflow_padding",1,"number")},g=function(X){return X.getParam("autoresize_bottom_margin",50,"number")},y=function(X){return X.getParam("autoresize_on_init",!0,"boolean")},w=function(X){return X.plugins.fullscreen&&X.plugins.fullscreen.isFullscreen()},C=function(X,Z,z,Y,Q){l.setEditorTimeout(X,function(){F(X,Z),z--?C(X,Z,z,Y,Q):Q&&Q()},Y)},S=function(X,Z){var z=X.getBody();z&&(z.style.overflowY=Z?"":"hidden",Z||(z.scrollTop=0))},T=function(X,Z,z,Y){var Q=parseInt(X.getStyle(Z,z,Y),10);return isNaN(Q)?0:Q},B=function(X){if((X==null?void 0:X.type.toLowerCase())==="setcontent"){var Z=X;return Z.selection===!0||Z.paste===!0}else return!1},F=function(X,Z,z){var Y=X.dom,Q=X.getDoc();if(!!Q){if(w(X)){S(X,!0);return}var $=Q.documentElement,te=g(X),V=f(X),K=T(Y,$,"margin-top",!0),fe=T(Y,$,"margin-bottom",!0),de=$.offsetHeight+K+fe+te;de<0&&(de=0);var ne=X.getContainer().offsetHeight,le=X.getContentAreaContainer().offsetHeight,_e=ne-le;de+_e>f(X)&&(V=de+_e);var M=v(X);if(M&&V>M?(V=M,S(X,!0)):S(X,!1),V!==Z.get()){var P=V-Z.get();if(Y.setStyle(X.getContainer(),"height",V+"px"),Z.set(V),u(X),i.browser.isSafari()&&i.mac){var U=X.getWin();U.scrollTo(U.pageXOffset,U.pageYOffset)}X.hasFocus()&&B(z)&&X.selection.scrollIntoView(),i.webkit&&P<0&&F(X,Z,z)}}},R=function(X,Z){X.on("init",function(){var z=h(X),Y=X.dom;Y.setStyles(X.getDoc().documentElement,{height:"auto"}),Y.setStyles(X.getBody(),{paddingLeft:z,paddingRight:z,"min-height":0})}),X.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",function(z){F(X,Z,z)}),y(X)&&X.on("init",function(){C(X,Z,20,100,function(){C(X,Z,5,1e3)})})},N=function(X,Z){X.addCommand("mceAutoResize",function(){F(X,Z)})};function A(){r.add("autoresize",function(X){if(n(X.settings,"resize")||(X.settings.resize=!1),!X.inline){var Z=e(0);N(X,Z),R(X,Z)}})}A()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(V){return function(K){return V===K}},n=t(void 0),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),i=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(V){return V.fire("RestoreDraft")},f=function(V){return V.fire("StoreDraft")},v=function(V){return V.fire("RemoveDraft")},h=function(V,K){var fe={s:1e3,m:6e4},de=V||K,ne=/^(\d+)([ms]?)$/.exec(""+de);return(ne[2]?fe[ne[2]]:1)*parseInt(de,10)},g=function(V){return V.getParam("autosave_ask_before_unload",!0)},y=function(V){var K=document.location;return V.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-").replace(/{path}/g,K.pathname).replace(/{query}/g,K.search).replace(/{hash}/g,K.hash).replace(/{id}/g,V.id)},w=function(V){return V.getParam("autosave_restore_when_empty",!1)},C=function(V){return h(V.getParam("autosave_interval"),"30s")},S=function(V){return h(V.getParam("autosave_retention"),"20m")},T=function(V,K){if(n(K))return V.dom.isEmpty(V.getBody());var fe=l.trim(K);if(fe==="")return!0;var de=new DOMParser().parseFromString(fe,"text/html");return V.dom.isEmpty(de)},B=function(V){var K=parseInt(i.getItem(y(V)+"time"),10)||0;return new Date().getTime()-K>S(V)?(F(V,!1),!1):!0},F=function(V,K){var fe=y(V);i.removeItem(fe+"draft"),i.removeItem(fe+"time"),K!==!1&&v(V)},R=function(V){var K=y(V);!T(V)&&V.isDirty()&&(i.setItem(K+"draft",V.getContent({format:"raw",no_events:!0})),i.setItem(K+"time",new Date().getTime().toString()),f(V))},N=function(V){var K=y(V);B(V)&&(V.setContent(i.getItem(K+"draft"),{format:"raw"}),u(V))},A=function(V){var K=C(V);r.setEditorInterval(V,function(){R(V)},K)}
129,X=function(V){V.undoManager.transact(function(){N(V),F(V)}),V.focus()},Z=function(V){return{hasDraft:function(){return B(V)},storeDraft:function(){return R(V)},restoreDraft:function(){return N(V)},removeDraft:function(K){return F(V,K)},isEmpty:function(K){return T(V,K)}}},z=tinymce.util.Tools.resolve("tinymce.EditorManager"),Y=function(V){V.editorManager.on("BeforeUnload",function(K){var fe;l.each(z.get(),function(de){de.plugins.autosave&&de.plugins.autosave.storeDraft(),!fe&&de.isDirty()&&g(de)&&(fe=de.translate("You have unsaved changes are you sure you want to navigate away?"))}),fe&&(K.preventDefault(),K.returnValue=fe)})},Q=function(V){return function(K){K.setDisabled(!B(V));var fe=function(){return K.setDisabled(!B(V))};return V.on("StoreDraft RestoreDraft RemoveDraft",fe),function(){return V.off("StoreDraft RestoreDraft RemoveDraft",fe)}}},$=function(V){A(V),V.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){X(V)},onSetup:Q(V)}),V.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){X(V)},onSetup:Q(V)})};function te(){e.add("autosave",function(V){return Y(V),$(V),V.on("init",function(){w(V)&&V.dom.isEmpty(V.getBody())&&N(V)}),Z(V)})}te()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function($e,rt){return $e.fire("insertCustomChar",{chr:rt})},n=function($e,rt){var ct=t($e,rt).chr;$e.execCommand("mceInsertContent",!1,ct)},r=function($e){var rt=typeof $e;return $e===null?"null":rt==="object"&&(Array.prototype.isPrototypeOf($e)||$e.constructor&&$e.constructor.name==="Array")?"array":rt==="object"&&(String.prototype.isPrototypeOf($e)||$e.constructor&&$e.constructor.name==="String")?"string":rt},i=function($e){return function(rt){return r(rt)===$e}},l=function($e){return function(rt){return $e===rt}},u=i("array"),f=l(null),v=function(){},h=function($e){return function(){return $e}},g=function($e){return $e},y=h(!1),w=h(!0),C=function(){return S},S=function(){var $e=function(lt){return lt()},rt=g,ct={fold:function(lt,ot){return lt()},isSome:y,isNone:w,getOr:rt,getOrThunk:$e,getOrDie:function(lt){throw new Error(lt||"error: getOrDie called on none.")},getOrNull:h(null),getOrUndefined:h(void 0),or:rt,orThunk:$e,map:C,each:v,bind:C,exists:y,forall:w,filter:function(){return C()},toArray:function(){return[]},toString:h("none()")};return ct}(),T=function($e){var rt=h($e),ct=function(){return ot},lt=function(Fe){return Fe($e)},ot={fold:function(Fe,We){return We($e)},isSome:w,isNone:y,getOr:rt,getOrThunk:rt,getOrDie:rt,getOrNull:rt,getOrUndefined:rt,or:ct,orThunk:ct,map:function(Fe){return T(Fe($e))},each:function(Fe){Fe($e)},bind:lt,exists:lt,forall:lt,filter:function(Fe){return Fe($e)?ot:S},toArray:function(){return[$e]},toString:function(){return"some("+$e+")"}};return ot},B=function($e){return $e==null?S:T($e)},F={some:T,none:C,from:B},R=Array.prototype.push,N=function($e,rt){for(var ct=$e.length,lt=new Array(ct),ot=0;ot<ct;ot++){var Fe=$e[ot];lt[ot]=rt(Fe,ot)}return lt},A=function($e,rt){for(var ct=0,lt=$e.length;ct<lt;ct++){var ot=$e[ct];rt(ot,ct)}},X=function($e,rt,ct){for(var lt=0,ot=$e.length;lt<ot;lt++){var Fe=$e[lt];if(rt(Fe,lt))return F.some(Fe);if(ct(Fe,lt))break}return F.none()},Z=function($e,rt){return X($e,rt,y)},z=function($e){for(var rt=[],ct=0,lt=$e.length;ct<lt;++ct){if(!u($e[ct]))throw new Error("Arr.flatten item "+ct+" was not an array, input: "+$e);R.apply(rt,$e[ct])}return rt},Y=function($e,rt){return z(N($e,rt))},Q=tinymce.util.Tools.resolve("tinymce.util.Tools"),$=function($e){return $e.getParam("charmap")},te=function($e){return $e.getParam("charmap_append")},V=Q.isArray,K="User Defined",fe=function(){return[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong
129kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}]},de=function($e){return Q.grep($e,function(rt){return V(rt)&&rt.length===2})},ne=function($e){return V($e)?de($e):typeof $e=="function"?$e():[]},le=function($e,rt){var ct=$($e);ct&&(rt=[{name:K,characters:ne(ct)}]);var lt=te($e);if(lt){var ot=Q.grep(rt,function(Fe){return Fe.name===K});return ot.length?(ot[0].characters=[].concat(ot[0].characters).concat(ne(lt)),rt):rt.concat({name:K,characters:ne(lt)})}return rt},_e=function($e){var rt=le($e,fe());return rt.length>1?[{name:"All",characters:Y(rt,function(ct){return ct.characters})}].concat(rt):rt},M=function($e){var rt=function(){return _e($e)},ct=function(lt){n($e,lt)};return{getCharMap:rt,insertChar:ct}},P=function($e){var rt=$e,ct=function(){return rt},lt=function(ot){rt=ot};return{get:ct,set:lt}},U=function($e,rt){var ct=null,lt=function(){f(ct)||(clearTimeout(ct),ct=null)},ot=function(){for(var Fe=[],We=0;We<arguments.length;We++)Fe[We]=arguments[We];lt(),ct=setTimeout(function(){ct=null,$e.apply(null,Fe)},rt)};return{cancel:lt,throttle:ot}},j=String.fromCodePoint,ee=function($e,rt){return $e.indexOf(rt)!==-1},ye=function(){for(var $e=[],rt=0;rt<arguments.length;rt++)$e[rt]=arguments[rt];if(j)return j.apply(void 0,$e);for(var ct=[],lt=0,ot="",Fe=0,We=$e.length;Fe!==We;++Fe){var Ye=+$e[Fe];if(!(Ye<1114111&&Ye>>>0===Ye))throw RangeError("Invalid code point: "+Ye);Ye<=65535?lt=ct.push(Ye):(Ye-=65536,lt=ct.push((Ye>>10)+55296,Ye%1024+56320)),lt>=16383&&(ot+=String.fromCharCode.apply(null,ct),ct.length=0)}return ot+String.fromCharCode.apply(null,ct)}
129,ie=function($e,rt,ct){return ee(ye($e).toLowerCase(),ct)?!0:ee(rt.toLowerCase(),ct)||ee(rt.toLowerCase().replace(/\s+/g,""),ct)},he=function($e,rt){var ct=[],lt=rt.toLowerCase();return A($e.characters,function(ot){ie(ot[0],ot[1],lt)&&ct.push(ot)}),N(ct,function(ot){return{text:ot[1],value:ye(ot[0]),icon:ye(ot[0])}})},re="pattern",be=function($e,rt){var ct=function(){return[{label:"Search",type:"input",name:re},{type:"collection",name:"results"}]},lt=function(){return N(rt,function(It){return{title:It.name,name:It.name,items:ct()}})},ot=function(){return{type:"panel",items:ct()}},Fe=function(){return{type:"tabpanel",tabs:lt()}},We=rt.length===1?P(K):P("All"),Ye=function(It,Et){Z(rt,function(At){return At.name===We.get()}).each(function(At){var vt=he(At,Et);It.setData({results:vt})})},Ke=40,mt=U(function(It){var Et=It.getData().pattern;Ye(It,Et)},Ke),Ct=rt.length===1?ot():Fe(),bt={pattern:"",results:he(rt[0],"")},tn={title:"Special Character",size:"normal",body:Ct,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:bt,onAction:function(It,Et){Et.name==="results"&&(n($e,Et.value),It.close())},onTabChange:function(It,Et){We.set(Et.newTabName),mt.throttle(It)},onChange:function(It,Et){Et.name===re&&mt.throttle(It)}},Ft=$e.windowManager.open(tn);Ft.focus(re)},Ae=function($e,rt){$e.addCommand("mceShowCharmap",function(){be($e,rt)})},Te=tinymce.util.Tools.resolve("tinymce.util.Promise"),Ue=function($e,rt){$e.ui.registry.addAutocompleter("charmap",{ch:":",columns:"auto",minChars:2,fetch:function(ct,lt){return new Te(function(ot,Fe){ot(he(rt,ct))})},onAction:function(ct,lt,ot){$e.selection.setRng(lt),$e.insertContent(ot),ct.hide()}})},Oe=function($e){$e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:function(){return $e.execCommand("mceShowCharmap")}}),$e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:function(){return $e.execCommand("mceShowCharmap")}})};function De(){e.add("charmap",function($e){var rt=_e($e);return Ae($e,rt),Oe($e),Ue($e,rt[0]),M($e)})}De()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(f,v){f.focus(),f.undoManager.transact(function(){f.setContent(v)}),f.selection.setCursorLocation(),f.nodeChanged()},n=function(f){return f.getContent({source_view:!0})},r=function(f){var v=n(f);f.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:v},onSubmit:function(h){t(f,h.getData().code),h.close()}})},i=function(f){f.addCommand("mceCodeEditor",function(){r(f)})},l=function(f){var v=function(){return f.execCommand("mceCodeEditor")};f.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:v}),f.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:v})};function u(){e.add("code",function(f){return i(f),l(f),{}})}u()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){},n=function(P){return function(){return P}},r=function(P){return P},i=n(!1),l=n(!0),u=function(){return f},f=function(){var P=function(ee){return ee()},U=r,j={fold:function(ee,ye){return ee()},isSome:i,isNone:l,getOr:U,getOrThunk:P,getOrDie:function(ee){throw new Error(ee||"error: getOrDie called on none.")},getOrNull:n(null),getOrUndefined:n(void 0),or:U,orThunk:P,map:u,each:t,bind:u,exists:i,forall:l,filter:function(){return u()},toArray:function(){return[]},toString:n("none()")};return j}(),v=function(P){var U=n(P),j=function(){return ye},ee=function(ie){return ie(P)},ye={fold:function(ie,he){return he(P)},isSome:l,isNone:i,getOr:U,getOrThunk:U,getOrDie:U,getOrNull:U,getOrUndefined:U,or:j,orThunk:j,map:function(ie){return v(ie(P))},each:function(ie){ie(P)},bind:ee,exists:ee,forall:ee,filter:function(ie){return ie(P)?ye:f},toArray:function(){return[P]},toString:function(){return"some("+P+")"}};return ye},h=function(P){return P==null?f:v(P)},g={some:v,none:u,from:h},y=function(P,U){return U>=0&&U<P.length?g.some(P[U]):g.none()},w=function(P){return y(P,0)},C=function(P,U){return P?g.some(U):g.none()},S=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),T=function(P){return P&&P.nodeName==="PRE"&&P.className.indexOf("language-")!==-1},B=function(P){return function(U,j){return P(j)}},F=typeof window!="undefined"?window:Function("return this;")(),R={}
129,N={exports:R},A={};(function(P,U,j,ee){var ye=window.Prism;window.Prism={manual:!0},function(he,re){typeof U=="object"&&typeof j!="undefined"?j.exports=re():typeof P=="function"&&P.amd?P(re):(he=typeof globalThis!="undefined"?globalThis:he||self,he.EphoxContactWrapper=re())}(this,function(){var he=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof A!="undefined"?A:typeof self!="undefined"?self:{},re={exports:{}};(function(Te){var Ue=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},Oe=function(De){var $e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,rt=0,ct={},lt={manual:De.Prism&&De.Prism.manual,disableWorkerMessageHandler:De.Prism&&De.Prism.disableWorkerMessageHandler,util:{encode:function It(Et){return Et instanceof ot?new ot(Et.type,It(Et.content),Et.alias):Array.isArray(Et)?Et.map(It):Et.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(It){return Object.prototype.toString.call(It).slice(8,-1)},objId:function(It){return It.__id||Object.defineProperty(It,"__id",{value:++rt}),It.__id},clone:function It(Et,At){At=At||{};var vt,Tt;switch(lt.util.type(Et)){case"Object":if(Tt=lt.util.objId(Et),At[Tt])return At[Tt];vt={},At[Tt]=vt;for(var Wt in Et)Et.hasOwnProperty(Wt)&&(vt[Wt]=It(Et[Wt],At));return vt;case"Array":return Tt=lt.util.objId(Et),At[Tt]?At[Tt]:(vt=[],At[Tt]=vt,Et.forEach(function(xt,at){vt[at]=It(xt,At)}),vt);default:return Et}},getLanguage:function(It){for(;It;){var Et=$e.exec(It.className);if(Et)return Et[1].toLowerCase();It=It.parentElement}return"none"},setLanguage:function(It,Et){It.className=It.className.replace(RegExp($e.source,"gi"),""),It.classList.add("language-"+Et)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(vt){var It=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(vt.stack)||[])[1];if(It){var Et=document.getElementsByTagName("script");for(var At in Et)if(Et[At].src==It)return Et[At]}return null}},isActive:function(It,Et,At){for(var vt="no-"+Et;It;){var Tt=It.classList;if(Tt.contains(Et))return!0;if(Tt.contains(vt))return!1;It=It.parentElement}return!!At}},languages:{plain:ct,plaintext:ct,text:ct,txt:ct,extend:function(It,Et){var At=lt.util.clone(lt.languages[It]);for(var vt in Et)At[vt]=Et[vt];return At},insertBefore:function(It,Et,At,vt){vt=vt||lt.languages;var Tt=vt[It],Wt={};for(var xt in Tt)if(Tt.hasOwnProperty(xt)){if(xt==Et)for(var at in At)At.hasOwnProperty(at)&&(Wt[at]=At[at]);At.hasOwnProperty(xt)||(Wt[xt]=Tt[xt])}var _t=vt[It];return vt[It]=Wt,lt.languages.DFS(lt.languages,function(en,An){An===_t&&en!=It&&(this[en]=Wt)}
vendor: 4,680 bytes, line 129
129),Wt},DFS:function It(Et,At,vt,Tt){Tt=Tt||{};var Wt=lt.util.objId;for(var xt in Et)if(Et.hasOwnProperty(xt)){At.call(Et,xt,Et[xt],vt||xt);var at=Et[xt],_t=lt.util.type(at);_t==="Object"&&!Tt[Wt(at)]?(Tt[Wt(at)]=!0,It(at,At,null,Tt)):_t==="Array"&&!Tt[Wt(at)]&&(Tt[Wt(at)]=!0,It(at,At,xt,Tt))}}},plugins:{},highlightAll:function(It,Et){lt.highlightAllUnder(document,It,Et)},highlightAllUnder:function(It,Et,At){var vt={callback:At,container:It,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};lt.hooks.run("before-highlightall",vt),vt.elements=Array.prototype.slice.apply(vt.container.querySelectorAll(vt.selector)),lt.hooks.run("before-all-elements-highlight",vt);for(var Tt=0,Wt;Wt=vt.elements[Tt++];)lt.highlightElement(Wt,Et===!0,vt.callback)},highlightElement:function(It,Et,At){var vt=lt.util.getLanguage(It),Tt=lt.languages[vt];lt.util.setLanguage(It,vt);var Wt=It.parentElement;Wt&&Wt.nodeName.toLowerCase()==="pre"&<.util.setLanguage(Wt,vt);var xt=It.textContent,at={element:It,language:vt,grammar:Tt,code:xt};function _t(An){at.highlightedCode=An,lt.hooks.run("before-insert",at),at.element.innerHTML=at.highlightedCode,lt.hooks.run("after-highlight",at),lt.hooks.run("complete",at),At&&At.call(at.element)}if(lt.hooks.run("before-sanity-check",at),Wt=at.element.parentElement,Wt&&Wt.nodeName.toLowerCase()==="pre"&&!Wt.hasAttribute("tabindex")&&Wt.setAttribute("tabindex","0"),!at.code){lt.hooks.run("complete",at),At&&At.call(at.element);return}if(lt.hooks.run("before-highlight",at),!at.grammar){_t(lt.util.encode(at.code));return}if(Et&&De.Worker){var en=new Worker(lt.filename);en.onmessage=function(An){_t(An.data)},en.postMessage(JSON.stringify({language:at.language,code:at.code,immediateClose:!0}))}else _t(lt.highlight(at.code,at.grammar,at.language))},highlight:function(It,Et,At){var vt={code:It,grammar:Et,language:At};if(lt.hooks.run("before-tokenize",vt),!vt.grammar)throw new Error('The language "'+vt.language+'" has no grammar.');return vt.tokens=lt.tokenize(vt.code,vt.grammar),lt.hooks.run("after-tokenize",vt),ot.stringify(lt.util.encode(vt.tokens),vt.language)},tokenize:function(It,Et){var At=Et.rest;if(At){for(var vt in At)Et[vt]=At[vt];delete Et.rest}var Tt=new Ye;return Ke(Tt,Tt.head,It),We(It,Tt,Et,Tt.head,0),Ct(Tt)},hooks:{all:{},add:function(It,Et){var At=lt.hooks.all;At[It]=At[It]||[],At[It].push(Et)},run:function(It,Et){var At=lt.hooks.all[It];if(!(!At||!At.length))for(var vt=0,Tt;Tt=At[vt++];)Tt(Et)}},Token:ot};De.Prism=lt;function ot(It,Et,At,vt){this.type=It,this.content=Et,this.alias=At,this.length=(vt||"").length|0}ot.stringify=function It(Et,At){if(typeof Et=="string")return Et;if(Array.isArray(Et)){var vt="";return Et.forEach(function(_t){vt+=It(_t,At)}),vt}var Tt={type:Et.type,content:It(Et.content,At),tag:"span",classes:["token",Et.type],attributes:{},language:At},Wt=Et.alias;Wt&&(Array.isArray(Wt)?Array.prototype.push.apply(Tt.classes,Wt):Tt.classes.push(Wt)),lt.hooks.run("wrap",Tt);var xt="";for(var at in Tt.attributes)xt+=" "+at+'="'+(Tt.attributes[at]||"").replace(/"/g,""")+'"';return"<"+Tt.tag+' class="'+Tt.classes.join(" ")+'"'+xt+">"+Tt.content+"</"+Tt.tag+">"};function Fe(It,Et,At,vt){It.lastIndex=Et;var Tt=It.exec(At);if(Tt&&vt&&Tt[1]){var Wt=Tt[1].length;Tt.index+=Wt,Tt[0]=Tt[0].slice(Wt)}return Tt}function We(It,Et,At,vt,Tt,Wt){for(var xt in At)if(!(!At.hasOwnProperty(xt)||!At[xt])){var at=At[xt];at=Array.isArray(at)?at:[at];for(var _t=0;_t<at.length;++_t){if(Wt&&Wt.cause==xt+","+_t)return;var en=at[_t],An=en.inside,Vt=!!en.lookbehind,_n=!!en.greedy,Mt=en.alias;if(_n&&!en.pattern.global){var pn=en.pattern.toString().match(/[imsuy]*$/)[0];en.pattern=RegExp(en.pattern.source,pn+"g")}for(var En=en.pattern||en,zn=vt.next,nn=Tt;zn!==Et.tail&&!(Wt&&nn>=Wt.reach);nn+=zn.value.length,zn=zn.next){var Yn=zn.value;if(Et.length>It.length)return;if(!(Yn instanceof ot)){var qr=1,Br;if(_n){if(Br=Fe(En,nn,It,Vt),!Br||Br.index>=It.length)break;var la=Br.index,io=Br.index+Br[0].length,xa=nn;for(xa+=zn.value.length;la>=xa;)zn=zn.next,xa+=zn.value.length;if(xa-=zn.value.length,nn=xa,zn.value instanceof ot)continue;for(var Di=zn;Di!==Et.tail&&(xa<io||typeof Di.value=="string");Di=Di.next)qr++,xa+=Di.value.length;qr--,Yn=It.slice(nn,xa),Br.index-=nn}else if(Br=Fe(En,0,Yn,Vt),!Br)continue;var la=Br.index,Na=Br[0],Bi=Yn.slice(0,la),Ps=Yn.slice(la+Na.length),rs=nn+Yn.length;Wt&&rs>Wt.reach&&(Wt.reach=rs);var Ai=zn.prev;Bi&&(Ai=Ke(Et,Ai,Bi),nn+=Bi.length),mt(Et,Ai,qr);var el=new ot(xt,An?lt.tokenize(Na,An):Na,Mt,Na);if(zn=Ke(Et,Ai,el),Ps&&Ke(Et,zn,Ps),qr>1){var ga={cause:xt+","+_t,reach:rs};We(It,Et,At,zn.prev,nn,ga),Wt&&ga.reach>
129Wt.reach&&(Wt.reach=ga.reach)}}}}}}function Ye(){var It={value:null,prev:null,next:null},Et={value:null,prev:It,next:null};It.next=Et,this.head=It,this.tail=Et,this.length=0}function Ke(It,Et,At){var vt=Et.next,Tt={value:At,prev:Et,next:vt};return Et.next=Tt,vt.prev=Tt,It.length++,Tt}function mt(It,Et,At){for(var vt=Et.next,Tt=0;Tt<At&&vt!==It.tail;Tt++)vt=vt.next;Et.next=vt,vt.prev=Et,It.length-=Tt}function Ct(It){for(var Et=[],At=It.head.next;At!==It.tail;)Et.push(At.value),At=At.next;return Et}if(!De.document)return De.addEventListener&&(lt.disableWorkerMessageHandler||De.addEventListener("message",function(It){var Et=JSON.parse(It.data),At=Et.language,vt=Et.code,Tt=Et.immediateClose;De.postMessage(lt.highlight(vt,lt.languages[At],At)),Tt&&De.close()},!1)),lt;var bt=lt.util.currentScript();bt&&(lt.filename=bt.src,bt.hasAttribute("data-manual")&&(lt.manual=!0));function tn(){lt.manual||lt.highlightAll()}if(!lt.manual){var Ft=document.readyState;Ft==="loading"||Ft==="interactive"&&bt&&bt.defer?document.addEventListener("DOMContentLoaded",tn):window.requestAnimationFrame?window.requestAnimationFrame(tn):window.setTimeout(tn,16)}return lt}(Ue);Te.exports&&(Te.exports=Oe),typeof he!="undefined"&&(he.Prism=Oe)})(re),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(Te){function Ue(Oe,De){return"___"+Oe.toUpperCase()+De+"___"}Object.defineProperties(Te.languages["markup-templating"]={},{buildPlaceholders:{value:function(Oe,De,$e,rt){if(Oe.language===De){var ct=Oe.tokenStack=[];Oe.code=Oe.code.replace($e,function(lt){if(typeof rt=="function"&&!rt(lt))return lt;for(var ot=ct.length,Fe;Oe.code.indexOf(Fe=Ue(De,ot))!==-1;)++ot;return ct[ot]=lt,Fe}),Oe.grammar=Te.languages.markup}}},tokenizePlaceholders:{value:function(Oe,De){if(Oe.language!==De||!Oe.tokenStack)return;Oe.grammar=Te.languages[De];var $e=0,rt=Object.keys(Oe.tokenStack);function ct(lt){for(var ot=0;ot<lt.length&&!($e>=rt.length);ot++){var Fe=lt[ot];if(typeof Fe=="string"||Fe.content&&typeof Fe.content=="string"){var We=rt[$e],Ye=Oe.tokenStack[We],Ke=typeof Fe=="string"?Fe:Fe.content,mt=Ue(De,We),Ct=Ke.indexOf(mt);if(Ct>-1){++$e;var bt=Ke.substring(0,Ct),tn=new Te.Token(De,Te.tokenize(Ye,Oe.grammar),"language-"+De,Ye),Ft=Ke.substring(Ct+mt.length),It=[];bt&&It.push.apply(It,ct([bt])),It.push(tn),Ft&&It.push.apply(It,ct([Ft])),typeof Fe=="string"?lt.splice.apply(lt,[ot,1].concat(It)):Fe.content=It}}else Fe.content&&ct(Fe.content)}return lt}ct(Oe.tokens)}}})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(Te){var Ue=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_
129cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Oe=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return Ue.source});Te.languages.cpp=Te.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return Ue.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:Ue,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),Te.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Oe})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Te.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Te.languages.cpp}}}}),Te.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Te.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Te.languages.extend("cpp",{})}}),Te.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Te.languages.cpp["base-clause"])}(Prism),function(Te){function Ue(nn,Yn){return nn.replace(/<<(\d+)>>/g,function(qr,Br){return"(?:"+Yn[+Br]+")"})}function Oe(nn,Yn,qr){return RegExp(Ue(nn,Yn),qr||"")}function De(nn,Yn){for(var qr=0;qr<Yn;qr++)nn=nn.replace(/<<self>>/g,function(){return"(?:"+nn+")"});return nn.replace(/<<self>>/g,"[^\\s\\S]")}var $e={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function rt(nn){return"\\b(?:"+nn.trim().replace(/ /g,"|")+")\\b"}var ct=rt($e.typeDeclaration),lt=RegExp(rt($e.type+" "+$e.typeDeclaration+" "+$e.contextual+" "+$e.other)),ot=rt($e.typeDeclaration+" "+$e.contextual+" "+$e.other),Fe=rt($e.type+" "+$e.typeDeclaration+" "+$e.other),We=De(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),Ye=De(/\((?:[^()]|<<self>>)*\)/.source,2),Ke=/@?\b[A-Za-z_]\w*\b/.source,mt=Ue(/<<0>>(?:\s*<<1>>)?/.source,[Ke,We]),Ct=Ue(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[ot,mt]),bt=/\[\s*(?:,\s*)*\]/.source,tn=Ue(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Ct,bt]),Ft=Ue(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[We,Ye,bt]),It=Ue(/\(<<0>>+(?:,<<0>>+)+\)/.source,[Ft]),Et=Ue(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[It,Ct,bt]),At={keyword:lt,punctuation:/[<>()?,.:[\]]/},vt=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Tt=/"(?:\\.|[^\\"\r\n])*"/.source,Wt=/@"(?:""|\\[\s\S]|[^\\"])
vendor: 9,924 bytes, line 129
129*"(?!")/.source;Te.languages.csharp=Te.languages.extend("clike",{string:[{pattern:Oe(/(^|[^$\\])<<0>>/.source,[Wt]),lookbehind:!0,greedy:!0},{pattern:Oe(/(^|[^@$\\])<<0>>/.source,[Tt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Oe(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Ct]),lookbehind:!0,inside:At},{pattern:Oe(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Ke,Et]),lookbehind:!0,inside:At},{pattern:Oe(/(\busing\s+)<<0>>(?=\s*=)/.source,[Ke]),lookbehind:!0},{pattern:Oe(/(\b<<0>>\s+)<<1>>/.source,[ct,mt]),lookbehind:!0,inside:At},{pattern:Oe(/(\bcatch\s*\(\s*)<<0>>/.source,[Ct]),lookbehind:!0,inside:At},{pattern:Oe(/(\bwhere\s+)<<0>>/.source,[Ke]),lookbehind:!0},{pattern:Oe(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[tn]),lookbehind:!0,inside:At},{pattern:Oe(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Et,Fe,Ke]),inside:At}],keyword:lt,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),Te.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),Te.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Oe(/([(,]\s*)<<0>>(?=\s*:)/.source,[Ke]),lookbehind:!0,alias:"punctuation"}}),Te.languages.insertBefore("csharp","class-name",{namespace:{pattern:Oe(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Ke]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Oe(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[Ye]),lookbehind:!0,alias:"class-name",inside:At},"return-type":{pattern:Oe(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Et,Ct]),inside:At,alias:"class-name"},"constructor-invocation":{pattern:Oe(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Et]),lookbehind:!0,inside:At,alias:"class-name"},"generic-method":{pattern:Oe(/<<0>>\s*<<1>>(?=\s*\()/.source,[Ke,We]),inside:{function:Oe(/^<<0>>/.source,[Ke]),generic:{pattern:RegExp(We),alias:"class-name",inside:At}}},"type-list":{pattern:Oe(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[ct,mt,Ke,Et,lt.source,Ye,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Oe(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[mt,Ye]),lookbehind:!0,greedy:!0,inside:Te.languages.csharp},keyword:lt,"class-name":{pattern:RegExp(Et),greedy:!0,inside:At},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var xt=Tt+"|"+vt,at=Ue(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[xt]),_t=De(Ue(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[at]),2),en=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,An=Ue(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Ct,_t]);Te.languages.insertBefore("csharp","class-name",{attribute:{pattern:Oe(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[en,An]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Oe(/^<<0>>(?=\s*:)/.source,[en]),alias:"keyword"},"attribute-arguments":{pattern:Oe(/\(<<0>>*\)/.source,[_t]),inside:Te.languages.csharp},"class-name":{pattern:RegExp(Ct),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Vt=/:[^}\r\n]+/.source,_n=De(Ue(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[at]),2),Mt=Ue(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_n,Vt]),pn=De(Ue(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[xt]),2),En=Ue(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[pn,Vt]);function zn(nn,Yn){return{interpolation:{pattern:Oe(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[nn]),lookbehind:!0,inside:{"format-string":{pattern:Oe(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Yn,Vt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:Te.languages.csharp}}},string:/[\s\S]+/}}Te.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Oe(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Mt]),lookbehind:!0,greedy:!0,inside:zn(Mt,_n)},{pattern:Oe(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[En]),lookbehind:!0,greedy:!0,inside:zn(En,pn)}],char:{pattern:RegExp(vt),greedy:!0}}),Te.languages.dotnet=Te.languages.cs=Te.languages.csharp}(Prism),function(Te){var Ue=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Te.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Ue.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ue.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ue.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ue.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ue,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Te.languages.css.atrule.inside.rest=Te.languages.css;var Oe=Te.languages.markup;Oe&&(Oe.tag.addInlined("style","css"),Oe.tag.addAttribute("style","css"))}(Prism),function(Te){var Ue=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Oe=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,De={pattern:RegExp(/(^|[^\w.])/.source+Oe+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};Te.languages.java=Te.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[De,{pattern:RegExp(/(^|[^\w.])/.source+Oe+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:De.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+Oe+/[A-Z]\w*\b/.source),lookbehind:!0,inside:De.inside}],keyword:Ue,function:[Te.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Te.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Te.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":De,keyword:Ue,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+Oe+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:De.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+Oe+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:De.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Ue.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?
129:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>
129\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(Te){Te.type==="entity"&&(Te.attributes.title=Te.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(Ue,Oe){var De={};De["language-"+Oe]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[Oe]},De.cdata=/^<!\[CDATA\[|\]\]>$/i;var $e={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:De}};$e["language-"+Oe]={pattern:/[\s\S]+/,inside:Prism.languages[Oe]};var rt={};rt[Ue]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Ue}),"i"),lookbehind:!0,greedy:!0,inside:$e},Prism.languages.insertBefore("markup","cdata",rt)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(Te,Ue){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+Te+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Ue,"language-"+Ue],inside:Prism.languages[Ue]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(Te){var Ue=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Oe=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],De=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,$e=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,rt=/[{}\[\](),:;]/;Te.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:Ue,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}}
vendor: 4,402 bytes, line 129
129,{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Oe,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:De,operator:$e,punctuation:rt};var ct={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Te.languages.php},lt=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:ct}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:ct}}];Te.languages.insertBefore("php","variable",{string:lt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:Ue,string:lt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Oe,number:De,operator:$e,punctuation:rt}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Te.hooks.add("before-tokenize",function(ot){if(!!/<\?/.test(ot.code)){var Fe=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Te.languages["markup-templating"].buildPlaceholders(ot,"php",Fe)}}),Te.hooks.add("after-tokenize",function(ot){Te.languages["markup-templating"].tokenizePlaceholders(ot,"php")})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01
129])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(Te){Te.languages.ruby=Te.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),Te.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Ue={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:Te.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete Te.languages.ruby.function;var Oe="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",De=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;Te.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Oe+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Ue,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Ue,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+De),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+De+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),Te.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Oe),greedy:!0,inside:{interpolation:Ue,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Ue,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Ue,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Oe),greedy:!0,inside:{interpolation:Ue,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Ue,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete Te.languages.ruby.string,Te.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),Te.languages.rb=Te.languages.ruby}(Prism);var be=re.exports,Ae={boltExport:be};return Ae});var ie=window.Prism;return window.Prism=ye,ie})(void 0,R,N);
129var X=N.exports.boltExport,Z=function(P){return P.getParam("codesample_languages")},z=function(P){return P.getParam("codesample_global_prismjs",!1,"boolean")},Y=function(P){return F.Prism&&z(P)?F.Prism:X},Q=function(P){var U=P.selection?P.selection.getNode():null;return C(T(U),U)},$=function(P,U,j){P.undoManager.transact(function(){var ee=Q(P);return j=S.DOM.encode(j),ee.fold(function(){P.insertContent('<pre id="__new" class="language-'+U+'">'+j+"</pre>"),P.selection.select(P.$("#__new").removeAttr("id")[0])},function(ye){P.dom.setAttrib(ye,"class","language-"+U),ye.innerHTML=j,Y(P).highlightElement(ye),P.selection.select(ye)})})},te=function(P){var U=Q(P);return U.fold(n(""),function(j){return j.textContent})},V=function(P){var U=[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],j=Z(P);return j||U},K=function(P,U){var j=Q(P);return j.fold(function(){return U},function(ee){var ye=ee.className.match(/language-(\w+)/);return ye?ye[1]:U})},fe=function(P){var U=V(P),j=w(U).fold(n(""),function(ie){return ie.value}),ee=K(P,j),ye=te(P);P.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:U},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:ee,code:ye},onSubmit:function(ie){var he=ie.getData();$(P,he.language,he.code),ie.close()}})},de=function(P){P.addCommand("codesample",function(){var U=P.selection.getNode();P.selection.isCollapsed()||T(U)?fe(P):P.formatter.toggle("code")})},ne=function(P){var U=P.$;P.on("PreProcess",function(j){U("pre[contenteditable=false]",j.node).filter(
129B(T)).each(function(ee,ye){var ie=U(ye),he=ye.textContent;ie.attr("class",U.trim(ie.attr("class"))),ie.removeAttr("contentEditable"),ie.empty().append(U("<code></code>").each(function(){this.textContent=he}))})}),P.on("SetContent",function(){var j=U("pre").filter(B(T)).filter(function(ee,ye){return ye.contentEditable!=="false"});j.length&&P.undoManager.transact(function(){j.each(function(ee,ye){U(ye).find("br").each(function(ie,he){he.parentNode.replaceChild(P.getDoc().createTextNode(` 130`),he)}),ye.contentEditable="false",ye.innerHTML=P.dom.encode(ye.textContent),Y(P).highlightElement(ye),ye.className=U.trim(ye.className)})})})},le=function(P){var U=P.selection.getStart();return P.dom.is(U,'pre[class*="language-"]')},_e=function(P){var U=function(){return P.execCommand("codesample")};P.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:U,onSetup:function(j){var ee=function(){j.setActive(le(P))};return P.on("NodeChange",ee),function(){return P.off("NodeChange",ee)}}}),P.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:U})};function M(){e.add("codesample",function(P){ne(P),_e(P),de(P),P.on("dblclick",function(U){T(U.target)&&fe(P)})})}M()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(_t){var en=typeof _t;return _t===null?"null":en==="object"&&(Array.prototype.isPrototypeOf(_t)||_t.constructor&&_t.constructor.name==="Array")?"array":en==="object"&&(String.prototype.isPrototypeOf(_t)||_t.constructor&&_t.constructor.name==="String")?"string":en},n=function(_t){return function(en){return t(en)===_t}},r=function(_t){return function(en){return typeof en===_t}},i=n("string"),l=r("boolean"),u=function(_t){return _t==null},f=function(_t){return!u(_t)},v=r("function"),h=r("number"),g=function(){},y=function(_t,en){return function(An){return _t(en(An))}},w=function(_t){return function(){return _t}},C=function(_t){return _t},S=w(!1),T=w(!0),B=function(){return F},F=function(){var _t=function(Vt){return Vt()},en=C,An={fold:function(Vt,_n){return Vt()},isSome:S,isNone:T,getOr:en,getOrThunk:_t,getOrDie:function(Vt){throw new Error(Vt||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void 0),or:en,orThunk:_t,map:B,each:g,bind:B,exists:S,forall:T,filter:function(){return B()},toArray:function(){return[]},toString:w("none()")};return An}(),R=function(_t){var en=w(_t),An=function(){return _n},Vt=function(Mt){return Mt(_t)},_n={fold:function(Mt,pn){return pn(_t)},isSome:T,isNone:S,getOr:en,getOrThunk:en,getOrDie:en,getOrNull:en,getOrUndefined:en,or:An,orThunk:An,map:function(Mt){return R(Mt(_t))},each:function(Mt){Mt(_t)},bind:Vt,exists:Vt,forall:Vt,filter:function(Mt){return Mt(_t)?_n:F},toArray:function(){return[_t]},toString:function(){return"some("+_t+")"}};return _n},N=function(_t){return _t==null?F:R(_t)},A={some:R,none:B,from:N},X=function(_t,en){for(var An=_t.length,Vt=new Array(An),_n=0;_n<An;_n++){var Mt=_t[_n];Vt[_n]=en(Mt,_n)}return Vt},Z=function(_t,en){for(var An=0,Vt=_t.length;An<Vt;An++){var _n=_t[An];en(_n,An)}},z=function(_t,en){for(var An=[],Vt=0,_n=_t.length;Vt<_n;Vt++){var Mt=_t[Vt];en(Mt,Vt)&&An.push(Mt)}return An},Y=9,Q=11,$=1,te=3,V=function(_t,en){var An=en||document,Vt=An.createElement("div");if(Vt.innerHTML=_t,!Vt.hasChildNodes()||Vt.childNodes.length>1)throw console.error("HTML does not have a single root node",_t),new Error("HTML must have a single root node");return de(Vt.childNodes[0])},K=function(_t,en){var An=en||document,Vt=An.createElement(_t);return de(Vt)},fe=function(_t,en){var An=en||document,Vt=An.createTextNode(_t);return de(Vt)},de=function(_t){if(_t==null)throw new Error("Node cannot be null or undefined");return{dom:_t}},ne=function(_t,en,An){return A.from(_t.dom.elementFromPoint(en,An)).map(de)},le={fromHtml:V,fromTag:K,fromText:fe,fromDom:de,fromPoint:ne},_e=function(_t,en){var An=_t.dom;if(An.nodeType!==$)return!1;var Vt=An;if(Vt.matches!==void 0)return Vt.matches(en);if(Vt.msMatchesSelector!==void 0)return Vt.msMatchesSelector(en);if(Vt.webkitMatchesSelector!==void 0)return Vt.webkitMatchesSelector(en);if(Vt.mozMatchesSelector!==void 0)return Vt.mozMatchesSelector(en);throw new Error("Browser lacks native selectors")};typeof window!="undefined"||Function("return this;")();var M=function(_t){var en=_t.dom.nodeName;return en.toLowerCase()},P=function(_t){return _t.dom.nodeType},U=function(_t){return function(en){return P(en)===_t}}
130,j=U($),ee=U(te),ye=U(Y),ie=U(Q),he=function(_t){return function(en){return j(en)&&M(en)===_t}},re=function(_t){return le.fromDom(_t.dom.ownerDocument)},be=function(_t){return ye(_t)?_t:re(_t)},Ae=function(_t){return A.from(_t.dom.parentNode).map(le.fromDom)},Te=function(_t){return X(_t.dom.childNodes,le.fromDom)},Ue=function(_t,en,An){if(i(An)||l(An)||h(An))_t.setAttribute(en,An+"");else throw console.error("Invalid call to Attribute.set. Key ",en,":: Value ",An,":: Element ",_t),new Error("Attribute value was not simple")},Oe=function(_t,en,An){Ue(_t.dom,en,An)},De=function(_t,en){_t.dom.removeAttribute(en)},$e=function(_t){return ie(_t)&&f(_t.dom.host)},rt=v(Element.prototype.attachShadow)&&v(Node.prototype.getRootNode),ct=rt?function(_t){return le.fromDom(_t.dom.getRootNode())}:be,lt=function(_t){var en=ct(_t);return $e(en)?A.some(en):A.none()},ot=function(_t){return le.fromDom(_t.dom.host)},Fe=function(_t){var en=ee(_t)?_t.dom.parentNode:_t.dom;if(en==null||en.ownerDocument===null)return!1;var An=en.ownerDocument;return lt(le.fromDom(en)).fold(function(){return An.body.contains(en)},y(Fe,ot))},We=function(_t,en,An){for(var Vt=_t.dom,_n=v(An)?An:S;Vt.parentNode;){Vt=Vt.parentNode;var Mt=le.fromDom(Vt);if(en(Mt))return A.some(Mt);if(_n(Mt))break}return A.none()},Ye=function(_t,en,An){return We(_t,function(Vt){return _e(Vt,en)},An)},Ke=function(_t){return _t.style!==void 0&&v(_t.style.getPropertyValue)},mt=function(_t,en){var An=_t.dom,Vt=window.getComputedStyle(An),_n=Vt.getPropertyValue(en);return _n===""&&!Fe(_t)?Ct(An,en):_n},Ct=function(_t,en){return Ke(_t)?_t.style.getPropertyValue(en):""},bt=function(_t){return mt(_t,"direction")==="rtl"?"rtl":"ltr"},tn=function(_t,en){return z(Te(_t),en)},Ft=function(_t,en){return tn(_t,function(An){return _e(An,en)})},It=function(_t){return Ae(_t).filter(j)},Et=function(_t,en){var An=en?Ye(_t,"ol,ul"):A.some(_t);return An.getOr(_t)},At=he("li"),vt=function(_t,en){var An=_t.selection.getSelectedBlocks();An.length>0&&(Z(An,function(Vt){var _n=le.fromDom(Vt),Mt=At(_n),pn=Et(_n,Mt),En=It(pn);En.each(function(zn){var nn=bt(zn);if(nn!==en?Oe(pn,"dir",en):bt(pn)!==en&&De(pn,"dir"),Mt){var Yn=Ft(pn,"li[dir]");Z(Yn,function(qr){return De(qr,"dir")})}})}),_t.nodeChanged())},Tt=function(_t){_t.addCommand("mceDirectionLTR",function(){vt(_t,"ltr")}),_t.addCommand("mceDirectionRTL",function(){vt(_t,"rtl")})},Wt=function(_t,en){return function(An){var Vt=function(_n){var Mt=le.fromDom(_n.element);An.setActive(bt(Mt)===en)};return _t.on("NodeChange",Vt),function(){return _t.off("NodeChange",Vt)}}},xt=function(_t){_t.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return _t.execCommand("mceDirectionLTR")},onSetup:Wt(_t,"ltr")}),_t.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return _t.execCommand("mceDirectionRTL")},onSetup:Wt(_t,"rtl")})};function at(){e.add("directionality",function(_t){Tt(_t),xt(_t)})}at()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(Ye){return function(Ke){return Ye===Ke}},n=t(null),r=function(){},i=function(Ye){return function(){return Ye}},l=function(Ye){return Ye},u=i(!1),f=i(!0),v=function(){return h},h=function(){var Ye=function(Ct){return Ct()},Ke=l,mt={fold:function(Ct,bt){return Ct()},isSome:u,isNone:f,getOr:Ke,getOrThunk:Ye,getOrDie:function(Ct){throw new Error(Ct||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:Ke,orThunk:Ye,map:v,each:r,bind:v,exists:u,forall:f,filter:function(){return v()},toArray:function(){return[]},toString:i("none()")};return mt}(),g=function(Ye){var Ke=i(Ye),mt=function(){return bt},Ct=function(tn){return tn(Ye)},bt={fold:function(tn,Ft){return Ft(Ye)},isSome:f,isNone:u,getOr:Ke,getOrThunk:Ke,getOrDie:Ke,getOrNull:Ke,getOrUndefined:Ke,or:mt,orThunk:mt,map:function(tn){return g(tn(Ye))},each:function(tn){tn(Ye)},bind:Ct,exists:Ct,forall:Ct,filter:function(tn){return tn(Ye)?bt:h},toArray:function(){return[Ye]},toString:function(){return"some("+Ye+")"}};return bt},y=function(Ye){return Ye==null?h:g(Ye)},w={some:g,none:v,from:y}
130,C=function(Ye,Ke){for(var mt=0,Ct=Ye.length;mt<Ct;mt++){var bt=Ye[mt];if(Ke(bt,mt))return!0}return!1},S=function(Ye,Ke){for(var mt=Ye.length,Ct=new Array(mt),bt=0;bt<mt;bt++){var tn=Ye[bt];Ct[bt]=Ke(tn,bt)}return Ct},T=function(Ye,Ke){for(var mt=0,Ct=Ye.length;mt<Ct;mt++){var bt=Ye[mt];Ke(bt,mt)}},B=function(Ye){var Ke=Ye,mt=function(){return Ke},Ct=function(bt){Ke=bt};return{get:mt,set:Ct}},F=function(Ye,Ke){var mt=null,Ct=function(){n(mt)||(clearTimeout(mt),mt=null)},bt=function(){for(var tn=[],Ft=0;Ft<arguments.length;Ft++)tn[Ft]=arguments[Ft];Ct(),mt=setTimeout(function(){mt=null,Ye.apply(null,tn)},Ke)};return{cancel:Ct,throttle:bt}},R=function(Ye,Ke){Ye.insertContent(Ke)},N=function(){return N=Object.assign||function(Ke){for(var mt,Ct=1,bt=arguments.length;Ct<bt;Ct++){mt=arguments[Ct];for(var tn in mt)Object.prototype.hasOwnProperty.call(mt,tn)&&(Ke[tn]=mt[tn])}return Ke},N.apply(this,arguments)},A=Object.keys,X=Object.hasOwnProperty,Z=function(Ye,Ke){for(var mt=A(Ye),Ct=0,bt=mt.length;Ct<bt;Ct++){var tn=mt[Ct],Ft=Ye[tn];Ke(Ft,tn)}},z=function(Ye,Ke){return Y(Ye,function(mt,Ct){return{k:Ct,v:Ke(mt,Ct)}})},Y=function(Ye,Ke){var mt={};return Z(Ye,function(Ct,bt){var tn=Ke(Ct,bt);mt[tn.k]=tn.v}),mt},Q=function(Ye,Ke){return X.call(Ye,Ke)},$=function(Ye,Ke){return Ke},te=function(Ye){return function(){for(var Ke=[],mt=0;mt<arguments.length;mt++)Ke[mt]=arguments[mt];if(Ke.length===0)throw new Error("Can't merge zero objects");for(var Ct={},bt=0;bt<Ke.length;bt++){var tn=Ke[bt];for(var Ft in tn)Q(tn,Ft)&&(Ct[Ft]=Ye(Ct[Ft],tn[Ft]))}return Ct}},V=te($),K=function(Ye){var Ke=B(w.none()),mt=function(){return Ke.get().each(Ye)},Ct=function(){mt(),Ke.set(w.none())},bt=function(){return Ke.get().isSome()},tn=function(){return Ke.get()},Ft=function(It){mt(),Ke.set(w.some(It))};return{clear:Ct,isSet:bt,get:tn,set:Ft}},fe=function(){var Ye=K(r),Ke=function(mt){return Ye.get().each(mt)};return N(N({},Ye),{on:Ke})},de=function(Ye,Ke,mt){return Ke===""||Ye.length>=Ke.length&&Ye.substr(mt,mt+Ke.length)===Ke},ne=function(Ye,Ke){return Ye.indexOf(Ke)!==-1},le=function(Ye,Ke){return de(Ye,Ke,0)},_e=tinymce.util.Tools.resolve("tinymce.Resource"),M=tinymce.util.Tools.resolve("tinymce.util.Delay"),P=tinymce.util.Tools.resolve("tinymce.util.Promise"),U="tinymce.plugins.emoticons",j=function(Ye){return Ye.getParam("emoticons_database","emojis","string")},ee=function(Ye,Ke){var mt=j(Ye);return Ye.getParam("emoticons_database_url",Ke+"/js/"+mt+Ye.suffix+".js","string")},ye=function(Ye){return Ye.getParam("emoticons_database_id",U,"string")},ie=function(Ye){return Ye.getParam("emoticons_append",{},"object")},he=function(Ye){return Ye.getParam("emoticons_images_url","https://twemoji.maxcdn.com/v/13.0.1/72x72/","string")},re="All",be={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},Ae=function(Ye,Ke){return Q(Ye,Ke)?Ye[Ke]:Ke},Te=function(Ye){var Ke=ie(Ye);return z(Ke,function(mt){return N({keywords:[],category:"user"},mt)})},Ue=function(Ye,Ke,mt){var Ct=fe(),bt=fe(),tn=he(Ye),Ft=function(xt){return le(xt.char,"<img")?xt.char.replace(/src="([^"]+)"/,function(at,_t){return'src="'+tn+_t+'"'}):xt.char},It=function(xt){var at={},_t=[];Z(xt,function(en,An){var Vt={title:An,keywords:en.keywords,char:Ft(en),category:Ae(be,en.category)},_n=at[Vt.category]!==void 0?at[Vt.category]:[];at[Vt.category]=_n.concat([Vt]),_t.push(Vt)}),Ct.set(at),bt.set(_t)};Ye.on("init",function(){_e.load(mt,Ke).then(function(xt){var at=Te(Ye);It(V(xt,at))},function(xt){console.log("Failed to load emoticons: "+xt),Ct.set({}),bt.set([])})});var Et=function(xt){return xt===re?At():Ct.get().bind(function(at){return w.from(at[xt])}).getOr([])},At=function(){return bt.get().getOr([])},vt=function(){return[re].concat(A(Ct.get().getOr({})))},Tt=function(){return Wt()?P.resolve(!0):new P(function(xt,at){var _t=15,en=M.setInterval(function(){Wt()?(M.clearInterval(en),xt(!0)):(_t--,_t<0&&(console.log("Could not load emojis from url: "+Ke),M.clearInterval(en),at(!1)))},100)})},Wt=function(){return Ct.isSet()&&bt.isSet()};return{listCategories:vt,hasLoaded:Wt,waitForLoad:Tt,listAll:At,listCategory:Et}},Oe=function(Ye,Ke){return ne(Ye.title.toLowerCase(),Ke)||C(Ye.keywords,function(mt){return ne(mt.toLowerCase(),Ke)})},De=function(Ye,Ke,mt){for(var Ct=[],bt=Ke.toLowerCase(),tn=mt.fold(function(){return u},function(It){return function(Et){return Et>=It}}),Ft=0;Ft<Ye.length&&!((Ke.length===0||Oe(Ye[Ft],bt))&&(Ct.push({value:Ye[Ft].char,text:Ye[Ft].title,icon:Ye[Ft].char}),tn(Ct.length)));Ft++);return Ct},$e="pattern",rt=function(Ye,Ke){var mt={pattern:"",results:De(Ke.listAll(),"",w.some(300))},Ct=B(re),bt=function(vt){var Tt=vt.getData(),Wt=Ct.get(),xt=Ke.listCategory(Wt),at=De(xt,Tt[$e],Wt===re?w.some(300):w.none());vt.setData({results:at})},tn=F(function(vt){bt(vt)},200),Ft={label:"Search",type:"input",name:$e},It={type:"collection",name:"results"},Et=function(){var vt={type:"tabpanel",tabs:S(Ke.listCategories(),function(Tt){return{title:Tt,name:Tt,items:[Ft,It]}})};return{title:"Emoticons",size:"normal",body:vt,initialData:mt,onTabChange:function(Tt,Wt){Ct.set(Wt.newTabName),tn.throttle(Tt)},onChange:tn.throttle,onAction:function(Tt,Wt){Wt.name==="results"&&(R(Ye,Wt.value),Tt.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}},At=Ye.windowManager.open(Et());
130At.focus($e),Ke.hasLoaded()||(At.block("Loading emoticons..."),Ke.waitForLoad().then(function(){At.redial(Et()),tn.throttle(At),At.focus($e),At.unblock()}).catch(function(vt){At.redial({title:"Emoticons",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"<p>Could not load emoticons</p>"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),At.focus($e),At.unblock()}))},ct=function(Ye,Ke){Ye.addCommand("mceEmoticons",function(){return rt(Ye,Ke)})},lt=function(Ye){Ye.on("PreInit",function(){Ye.parser.addAttributeFilter("data-emoticon",function(Ke){T(Ke,function(mt){mt.attr("data-mce-resize","false"),mt.attr("data-mce-placeholder","1")})})})},ot=function(Ye,Ke){Ye.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(mt,Ct){return Ke.waitForLoad().then(function(){var bt=Ke.listAll();return De(bt,mt,w.some(Ct))})},onAction:function(mt,Ct,bt){Ye.selection.setRng(Ct),Ye.insertContent(bt),mt.hide()}})},Fe=function(Ye){var Ke=function(){return Ye.execCommand("mceEmoticons")};Ye.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:Ke}),Ye.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:Ke})};function We(){e.add("emoticons",function(Ye,Ke){var mt=ee(Ye,Ke),Ct=ye(Ye),bt=Ue(Ye,mt,Ct);ct(Ye,bt),Fe(Ye),ot(Ye,bt),lt(Ye)})}We()})();(function(){var e=function(de){var ne=de,le=function(){return ne},_e=function(M){ne=M};return{get:le,set:_e}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(ne){for(var le,_e=1,M=arguments.length;_e<M;_e++){le=arguments[_e];for(var P in le)Object.prototype.hasOwnProperty.call(le,P)&&(ne[P]=le[P])}return ne},n.apply(this,arguments)},r=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=tinymce.util.Tools.resolve("tinymce.html.DomParser"),l=tinymce.util.Tools.resolve("tinymce.html.Node"),u=tinymce.util.Tools.resolve("tinymce.html.Serializer"),f=function(de){return de.getParam("fullpage_hide_in_source_view")},v=function(de){return de.getParam("fullpage_default_xml_pi")},h=function(de){return de.getParam("fullpage_default_encoding")},g=function(de){return de.getParam("fullpage_default_font_family")},y=function(de){return de.getParam("fullpage_default_font_size")},w=function(de){return de.getParam("fullpage_default_text_color")},C=function(de){return de.getParam("fullpage_default_title")},S=function(de){return de.getParam("fullpage_default_doctype","<!DOCTYPE html>")},T=function(de){return de.getParam("protect")},B=function(de,ne){return i({validate:!1,root_name:"#document"},de.schema).parse(ne,{format:"xhtml"})},F=function(de,ne){var le=B(de,ne),_e={},M,P,U=function(j,ee){var ye=j.attr(ee);return ye||""};return _e.fontface=g(de),_e.fontsize=y(de),M=le.firstChild,M.type===7&&(_e.xml_pi=!0,P=/encoding="([^"]+)"/.exec(M.value),P&&(_e.docencoding=P[1])),M=le.getAll("#doctype")[0],M&&(_e.doctype="<!DOCTYPE"+M.value+">"),M=le.getAll("title")[0],M&&M.firstChild&&(_e.title=M.firstChild.value),r.each(le.getAll("meta"),function(j){var ee=j.attr("name"),ye=j.attr("http-equiv"),ie;ee?_e[ee.toLowerCase()]=j.attr("content"):ye==="Content-Type"&&(ie=/charset\s*=\s*(.*)\s*/gi.exec(j.attr("content")),ie&&(_e.docencoding=ie[1]))}),M=le.getAll("html")[0],M&&(_e.langcode=U(M,"lang")||U(M,"xml:lang")),_e.stylesheets=[],r.each(le.getAll("link"),function(j){j.attr("rel")==="stylesheet"&&_e.stylesheets.push(j.attr("href"))}),M=le.getAll("body")[0],M&&(_e.langdir=U(M,"dir"),_e.style=U(M,"style"),_e.visited_color=U(M,"vlink"),_e.link_color=U(M,"link"),_e.active_color=U(M,"alink")),_e},R=function(de,ne,le){var _e,M,P=de.dom,U=function(re,be,Ae){re.attr(be,Ae||void 0)},j=function(re){_e.firstChild?_e.insert(re,_e.firstChild):_e.append(re)},ee=B(de,le);if(_e=ee.getAll("head")[0],_e||(M=ee.getAll("html")[0],_e=new l("head",1),M.firstChild?M.insert(_e,M.firstChild,!0):M.append(_e)),M=ee.firstChild,ne.xml_pi){var ye='version="1.0"';ne.docencoding&&(ye+=' encoding="'+ne.docencoding+'"'),M.type!==7&&(M=new l("xml",7),ee.insert(M,ee.firstChild,!0)),M.value=ye}else M&&M.type===7&&M.remove();M=ee.getAll("#doctype")[0],ne.doctype?(M||(M=new l("#doctype",10),ne.xml_pi?ee.insert(M,ee.firstChild):j(M)),M.value=ne.doctype.substring(9,ne.doctype.length-1)):M&&M.remove(),M=null,r.each(ee.getAll("meta"),function(re){re.attr("http-equiv")==="Content-Type"&&(M=re)}),ne.docencoding?(M||(M=new l("meta",1),M.attr("http-equiv","Content-Type"),M.shortEnded=!0,j(M)),M.attr("content","text/html; charset="+ne.docencoding)):M&&M.remove(),M=ee.getAll("title")[0],ne.title?(M?M.empty():(M=new l("title",1),j(M)),M.append(new l("#text",3)).value=ne.title):M&&M.remove(),r.each("keywords,description,author,copyright,robots".split(","),function(re){var be=ee.getAll("meta"),Ae,Te,Ue=ne[re];for(Ae=0;Ae<be.length;Ae++)if(Te=be[Ae],Te.attr("name")===re){Ue?Te.attr("content",Ue):Te.remove();return}Ue&&(M=new l("meta",1),M.attr("name",re),M.attr("content",Ue),M.shortEnded=!0,j(M))});var ie={};r.each(ee.getAll("link"),function(re){re.attr("rel")==="stylesheet"&&(ie[re.attr("href")]=re)}),r.each(ne.stylesheets,function(re){ie[re]||(M=new l("link",1),M.attr({rel:"stylesheet",text:"text/css",href:re}),M.shortEnded=!0,j(M)),delete ie[re]}),r.each(ie,function(re){re.remove()}),M=ee.getAll("body")[0],M&&(U(M,"dir",ne.langdir),U(M,"style",ne.style),U(M,"vlink",
130ne.visited_color),U(M,"link",ne.link_color),U(M,"alink",ne.active_color),P.setAttribs(de.getBody(),{style:ne.style,dir:ne.dir,vLink:ne.visited_color,link:ne.link_color,aLink:ne.active_color})),M=ee.getAll("html")[0],M&&(U(M,"lang",ne.langcode),U(M,"xml:lang",ne.langcode)),_e.firstChild||_e.remove();var he=u({validate:!1,indent:!0,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(ee);return he.substring(0,he.indexOf("</body>"))},N=function(de,ne){var le=F(de,ne.get()),_e={title:"",keywords:"",description:"",robots:"",author:"",docencoding:""},M=n(n({},_e),le);de.windowManager.open({title:"Metadata and Document Properties",size:"normal",body:{type:"panel",items:[{name:"title",type:"input",label:"Title"},{name:"keywords",type:"input",label:"Keywords"},{name:"description",type:"input",label:"Description"},{name:"robots",type:"input",label:"Robots"},{name:"author",type:"input",label:"Author"},{name:"docencoding",type:"input",label:"Encoding"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:M,onSubmit:function(P){var U=P.getData(),j=R(de,r.extend(le,U),ne.get());ne.set(j),P.close()}})},A=function(de,ne){de.addCommand("mceFullPageProperties",function(){N(de,ne)})},X=function(de,ne){return r.each(de,function(le){ne=ne.replace(le,function(_e){return"<!--mce:protected "+escape(_e)+"-->"})}),ne},Z=function(de){return de.replace(/<!--mce:protected ([\s\S]*?)-->/g,function(ne,le){return unescape(le)})},z=r.each,Y=function(de){return de.replace(/<\/?[A-Z]+/g,function(ne){return ne.toLowerCase()})},Q=function(de,ne,le,_e){var M,P,U,j="",ee=de.dom;if(!_e.selection&&(U=X(T(de),_e.content),!(_e.format==="raw"&&ne.get())&&!(_e.source_view&&f(de)))){U.length===0&&!_e.source_view&&(U=r.trim(ne.get())+` 131`+r.trim(U)+` 132`+r.trim(le.get())),U=U.replace(/<(\/?)BODY/gi,"<$1body"),M=U.indexOf("<body"),M!==-1?(M=U.indexOf(">",M),ne.set(Y(U.substring(0,M+1))),P=U.indexOf("</body",M),P===-1&&(P=U.length),_e.content=r.trim(U.substring(M+1,P)),le.set(Y(U.substring(P)))):(ne.set($(de)),le.set(` 133</body> 134</html>`));var ye=B(de,ne.get());z(ye.getAll("style"),function(Ae){Ae.firstChild&&(j+=Ae.firstChild.value)});var ie=ye.getAll("body")[0];ie&&ee.setAttribs(de.getBody(),{style:ie.attr("style")||"",dir:ie.attr("dir")||"",vLink:ie.attr("vlink")||"",link:ie.attr("link")||"",aLink:ie.attr("alink")||""}),ee.remove("fullpage_styles");var he=de.getDoc().getElementsByTagName("head")[0];if(j){var re=ee.add(he,"style",{id:"fullpage_styles"});re.appendChild(document.createTextNode(j))}var be={};r.each(he.getElementsByTagName("link"),function(Ae){Ae.rel==="stylesheet"&&Ae.getAttribute("data-mce-fullpage")&&(be[Ae.href]=Ae)}),r.each(ye.getAll("link"),function(Ae){var Te=Ae.attr("href");if(!Te)return!0;!be[Te]&&Ae.attr("rel")==="stylesheet"&&ee.add(he,"link",{rel:"stylesheet",text:"text/css",href:Te,"data-mce-fullpage":"1"}),delete be[Te]}),r.each(be,function(Ae){Ae.parentNode.removeChild(Ae)})}},$=function(de){var ne="",le,_e="";if(v(de)){var M=h(de);ne+='<?xml version="1.0" encoding="'+(M||"ISO-8859-1")+`" ?> 135`}return ne+=S(de),ne+=` 136<html> 137<head> 138`,(le=C(de))&&(ne+="<title>"+le+`</title> 139`),(le=h(de))&&(ne+='<meta http-equiv="Content-Type" content="text/html; charset='+le+`" /> 140`),(le=g(de))&&(_e+="font-family: "+le+";"),(le=y(de))&&(_e+="font-size: "+le+";"),(le=w(de))&&(_e+="color: "+le+";"),ne+=`</head> 141<body`+(_e?' style="'+_e+'"':"")+`> 142`,ne},te=function(de,ne,le,_e){_e.format==="html"&&!_e.selection&&(!_e.source_view||!f(de))&&(_e.content=Z(r.trim(ne)+` 143`+r.trim(_e.content)+` 144`+r.trim(le)))},V=function(de,ne,le){de.on("BeforeSetContent",function(_e){Q(de,ne,le,_e)}),de.on("GetContent",function(_e){te(de,ne.get(),le.get(),_e)})},K=function(de){de.ui.registry.addButton("fullpage",{tooltip:"Metadata and document properties",icon:"document-properties",onAction:function(){de.execCommand("mceFullPageProperties")}}),de.ui.registry.addMenuItem("fullpage",{text:"Metadata and document properties",icon:"document-properties",onAction:function(){de.execCommand("mceFullPageProperties")}})};function fe(){t.add("fullpage",function(de){var ne=e(""),le=e("");A(de,ne),K(de),V(de,ne,le)})}
144fe()})();(function(){var e=function(xe){var pe=xe,Re=function(){return pe},st=function(Pt){pe=Pt};return{get:Re,set:st}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(xe){return{isFullscreen:function(){return xe.get()!==null}}},r=function(xe){var pe=typeof xe;return xe===null?"null":pe==="object"&&(Array.prototype.isPrototypeOf(xe)||xe.constructor&&xe.constructor.name==="Array")?"array":pe==="object"&&(String.prototype.isPrototypeOf(xe)||xe.constructor&&xe.constructor.name==="String")?"string":pe},i=function(xe){return function(pe){return r(pe)===xe}},l=function(xe){return function(pe){return typeof pe===xe}},u=i("string"),f=i("array"),v=l("boolean"),h=function(xe){return xe==null},g=function(xe){return!h(xe)},y=l("function"),w=l("number"),C=function(){},S=function(xe,pe){return function(){for(var Re=[],st=0;st<arguments.length;st++)Re[st]=arguments[st];return xe(pe.apply(null,Re))}},T=function(xe,pe){return function(Re){return xe(pe(Re))}},B=function(xe){return function(){return xe}},F=function(xe){return xe};function R(xe){for(var pe=[],Re=1;Re<arguments.length;Re++)pe[Re-1]=arguments[Re];return function(){for(var st=[],Pt=0;Pt<arguments.length;Pt++)st[Pt]=arguments[Pt];var mn=pe.concat(st);return xe.apply(null,mn)}}var N=B(!1),A=B(!0),X=function(){return Z},Z=function(){var xe=function(st){return st()},pe=F,Re={fold:function(st,Pt){return st()},isSome:N,isNone:A,getOr:pe,getOrThunk:xe,getOrDie:function(st){throw new Error(st||"error: getOrDie called on none.")},getOrNull:B(null),getOrUndefined:B(void 0),or:pe,orThunk:xe,map:X,each:C,bind:X,exists:N,forall:A,filter:function(){return X()},toArray:function(){return[]},toString:B("none()")};return Re}(),z=function(xe){var pe=B(xe),Re=function(){return Pt},st=function(mn){return mn(xe)},Pt={fold:function(mn,ar){return ar(xe)},isSome:A,isNone:N,getOr:pe,getOrThunk:pe,getOrDie:pe,getOrNull:pe,getOrUndefined:pe,or:Re,orThunk:Re,map:function(mn){return z(mn(xe))},each:function(mn){mn(xe)},bind:st,exists:st,forall:st,filter:function(mn){return mn(xe)?Pt:Z},toArray:function(){return[xe]},toString:function(){return"some("+xe+")"}};return Pt},Y=function(xe){return xe==null?Z:z(xe)},Q={some:z,none:X,from:Y},$=function(){return $=Object.assign||function(pe){for(var Re,st=1,Pt=arguments.length;st<Pt;st++){Re=arguments[st];for(var mn in Re)Object.prototype.hasOwnProperty.call(Re,mn)&&(pe[mn]=Re[mn])}return pe},$.apply(this,arguments)},te=function(xe){var pe=e(Q.none()),Re=function(){return pe.get().each(xe)},st=function(){Re(),pe.set(Q.none())},Pt=function(){return pe.get().isSome()},mn=function(){return pe.get()},ar=function(vo){Re(),pe.set(Q.some(vo))};return{clear:st,isSet:Pt,get:mn,set:ar}},V=function(){return te(function(xe){return xe.unbind()})},K=function(){var xe=te(C),pe=function(Re){return xe.get().each(Re)};return $($({},xe),{on:pe})},fe=Array.prototype.push,de=function(xe,pe){for(var Re=xe.length,st=new Array(Re),Pt=0;Pt<Re;Pt++){var mn=xe[Pt];st[Pt]=pe(mn,Pt)}return st},ne=function(xe,pe){for(var Re=0,st=xe.length;Re<st;Re++){var Pt=xe[Re];pe(Pt,Re)}},le=function(xe,pe){for(var Re=[],st=0,Pt=xe.length;st<Pt;st++){var mn=xe[st];pe(mn,st)&&Re.push(mn)}return Re},_e=function(xe,pe,Re){for(var st=0,Pt=xe.length;st<Pt;st++){var mn=xe[st];if(pe(mn,st))return Q.some(mn);if(Re(mn,st))break}return Q.none()},M=function(xe,pe){return _e(xe,pe,N)},P=function(xe){for(var pe=[],Re=0,st=xe.length;Re<st;++Re){if(!f(xe[Re]))throw new Error("Arr.flatten item "+Re+" was not an array, input: "+xe);fe.apply(pe,xe[Re])}return pe},U=function(xe,pe){return P(de(xe,pe))},j=function(xe,pe){return pe>=0&&pe<xe.length?Q.some(xe[pe]):Q.none()},ee=function(xe){return j(xe,0)},ye=function(xe,pe){for(var Re=0;Re<xe.length;Re++){var st=pe(xe[Re],Re);if(st.isSome())return st}return Q.none()},ie=Object.keys,he=function(xe,pe){for(var Re=ie(xe),st=0,Pt=Re.length;st<Pt;st++){var mn=Re[st],ar=xe[mn];pe(ar,mn)}},re=function(xe,pe){return xe.indexOf(pe)!==-1},be=function(xe){return xe.style!==void 0&&y(xe.style.getPropertyValue)},Ae=function(xe,pe){var Re=pe||document,st=Re.createElement("div");if(st.innerHTML=xe,!st.hasChildNodes()||st.childNodes.length>1)throw console.error("HTML does not have a single root node",xe),new Error("HTML must have a single root node");return Oe(st.childNodes[0])},Te=function(xe,pe){var Re=pe||document,st=Re.createElement(xe);return Oe(st)},Ue=function(xe,pe){var Re=pe||document,st=Re.createTextNode(xe);return Oe(st)},Oe=function(xe){if(xe==null)throw new Error("Node cannot be null or undefined");return{dom:xe}},De=function(xe,pe,Re){return Q.from(xe.dom.elementFromPoint(pe,Re)).map(Oe)},$e={fromHtml:Ae,fromTag:Te,fromText:Ue,fromDom:Oe,fromPoint:De};typeof window!="undefined"||Function("return this;")();var rt=9,ct=11,lt=1,ot=3,Fe=function(xe){return xe.dom.nodeType},We=function(xe){return function(pe){return Fe(pe)===xe}},Ye=We(lt),Ke=We(ot),mt=We(rt),Ct=We(ct),bt=function(xe){var pe=!1,Re;return function(){for(var st=[],Pt=0;Pt<arguments.length;Pt++)st[Pt]=arguments[Pt];return pe||(pe=!0,Re=xe.apply(null,st)),Re}},tn=function(xe,pe,Re,st){var Pt=xe.isiOS()&&/ipad/i.test(Re)===!0,mn=xe.isiOS()&&!Pt,ar=xe.isiOS()||xe.isAndroid(),vo=ar||st("(pointer:coarse)"),So=Pt||!mn&&ar&&st("(min-device-width:768px)"),yr=mn||ar&&!So,uo=pe.isSafari()&&xe.isiOS()&&/safari/i.test(Re)===!1,na=!yr&&!So&&!uo;return{isiPad:B(Pt),isiPhone:B(mn),isTablet:B(So),isPhone:B(yr),isTouch:B(vo),isAndroid:xe.isAndroid,isiOS:xe.isiOS,isWebView:B(uo),isDesktop:B(na)}},Ft=function(xe,pe){for(var Re=0;Re<xe.length;Re++){var st=xe[Re];if(st.test(pe))return st}},It=function(xe,pe){var Re=Ft(xe,pe);if(!Re)return{major:0,minor:0};var st=function(Pt){return Number(pe.replace(Re,"$"+Pt))};
144return vt(st(1),st(2))},Et=function(xe,pe){var Re=String(pe).toLowerCase();return xe.length===0?At():It(xe,Re)},At=function(){return vt(0,0)},vt=function(xe,pe){return{major:xe,minor:pe}},Tt={nu:vt,detect:Et,unknown:At},Wt=function(xe,pe){return ye(pe.brands,function(Re){var st=Re.brand.toLowerCase();return M(xe,function(Pt){var mn;return st===((mn=Pt.brand)===null||mn===void 0?void 0:mn.toLowerCase())}).map(function(Pt){return{current:Pt.name,version:Tt.nu(parseInt(Re.version,10),0)}})})},xt=function(xe,pe){var Re=String(pe).toLowerCase();return M(xe,function(st){return st.search(Re)})},at=function(xe,pe){return xt(xe,pe).map(function(Re){var st=Tt.detect(Re.versionRegexes,pe);return{current:Re.name,version:st}})},_t=function(xe,pe){return xt(xe,pe).map(function(Re){var st=Tt.detect(Re.versionRegexes,pe);return{current:Re.name,version:st}})},en=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,An=function(xe){return function(pe){return re(pe,xe)}},Vt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(xe){return re(xe,"edge/")&&re(xe,"chrome")&&re(xe,"safari")&&re(xe,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,en],search:function(xe){return re(xe,"chrome")&&!re(xe,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(xe){return re(xe,"msie")||re(xe,"trident")}},{name:"Opera",versionRegexes:[en,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:An("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:An("firefox")},{name:"Safari",versionRegexes:[en,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(xe){return(re(xe,"safari")||re(xe,"mobile/"))&&re(xe,"applewebkit")}}],_n=[{name:"Windows",search:An("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(xe){return re(xe,"iphone")||re(xe,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:An("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:An("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:An("linux"),versionRegexes:[]},{name:"Solaris",search:An("sunos"),versionRegexes:[]},{name:"FreeBSD",search:An("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:An("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Mt={browsers:B(Vt),oses:B(_n)},pn="Edge",En="Chrome",zn="IE",nn="Opera",Yn="Firefox",qr="Safari",Br=function(){return io({current:void 0,version:Tt.unknown()})},io=function(xe){var pe=xe.current,Re=xe.version,st=function(Pt){return function(){return pe===Pt}};return{current:pe,version:Re,isEdge:st(pn),isChrome:st(En),isIE:st(zn),isOpera:st(nn),isFirefox:st(Yn),isSafari:st(qr)}},xa={unknown:Br,nu:io,edge:B(pn),chrome:B(En),ie:B(zn),opera:B(nn),firefox:B(Yn),safari:B(qr)},Di="Windows",la="iOS",Na="Android",Bi="Linux",Ps="OSX",rs="Solaris",Ai="FreeBSD",el="ChromeOS",ga=function(){return _s({current:void 0,version:Tt.unknown()})},_s=function(xe){var pe=xe.current,Re=xe.version,st=function(Pt){return function(){return pe===Pt}};return{current:pe,version:Re,isWindows:st(Di),isiOS:st(la),isAndroid:st(Na),isOSX:st(Ps),isLinux:st(Bi),isSolaris:st(rs),isFreeBSD:st(Ai),isChromeOS:st(el)}},fo={unknown:ga,nu:_s,windows:B(Di),ios:B(la),android:B(Na),linux:B(Bi),osx:B(Ps),solaris:B(rs),freebsd:B(Ai),chromeos:B(el)},il=function(xe,pe,Re){var st=Mt.browsers(),Pt=Mt.oses(),mn=pe.bind(function(So){return Wt(st,So)}).orThunk(function(){return at(st,xe)}).fold(xa.unknown,xa.nu),ar=_t(Pt,xe).fold(fo.unknown,fo.nu),vo=tn(ar,mn,xe,Re);return{browser:mn,os:ar,deviceType:vo}},Fs={detect:il},us=function(xe){return window.matchMedia(xe).matches},cs=bt(function(){return Fs.detect(navigator.userAgent,Q.from(navigator.userAgentData),us)}),sl=function(){return cs()},wi=function(xe,pe){var Re=xe.dom;if(Re.nodeType!==lt)return!1;var st=Re;if(st.matches!==void 0)return st.matches(pe);
144if(st.msMatchesSelector!==void 0)return st.msMatchesSelector(pe);if(st.webkitMatchesSelector!==void 0)return st.webkitMatchesSelector(pe);if(st.mozMatchesSelector!==void 0)return st.mozMatchesSelector(pe);throw new Error("Browser lacks native selectors")},bo=function(xe){return xe.nodeType!==lt&&xe.nodeType!==rt&&xe.nodeType!==ct||xe.childElementCount===0},pl=function(xe,pe){var Re=pe===void 0?document:pe.dom;return bo(Re)?[]:de(Re.querySelectorAll(xe),$e.fromDom)},zt=function(xe,pe){return xe.dom===pe.dom},an=function(xe){return $e.fromDom(xe.dom.ownerDocument)},Rt=function(xe){return mt(xe)?xe:an(xe)},Nn=function(xe){return Q.from(xe.dom.parentNode).map($e.fromDom)},Er=function(xe,pe){for(var Re=y(pe)?pe:N,st=xe.dom,Pt=[];st.parentNode!==null&&st.parentNode!==void 0;){var mn=st.parentNode,ar=$e.fromDom(mn);if(Pt.push(ar),Re(ar)===!0)break;st=mn}return Pt},Yr=function(xe){var pe=function(Re){return le(Re,function(st){return!zt(xe,st)})};return Nn(xe).map(ft).map(pe).getOr([])},ft=function(xe){return de(xe.dom.childNodes,$e.fromDom)},Bt=function(xe){return Ct(xe)&&g(xe.dom.host)},Rn=y(Element.prototype.attachShadow)&&y(Node.prototype.getRootNode),Qn=B(Rn),Ze=Rn?function(xe){return $e.fromDom(xe.dom.getRootNode())}:Rt,St=function(xe){var pe=Ze(xe);return Bt(pe)?Q.some(pe):Q.none()},Gt=function(xe){return $e.fromDom(xe.dom.host)},Xt=function(xe){if(Qn()&&g(xe.target)){var pe=$e.fromDom(xe.target);if(Ye(pe)&&On(pe)&&xe.composed&&xe.composedPath){var Re=xe.composedPath();if(Re)return ee(Re)}}return Q.from(xe.target)},On=function(xe){return g(xe.dom.shadowRoot)},Dn=function(xe){var pe=Ke(xe)?xe.dom.parentNode:xe.dom;if(pe==null||pe.ownerDocument===null)return!1;var Re=pe.ownerDocument;return St($e.fromDom(pe)).fold(function(){return Re.body.contains(pe)},T(Dn,Gt))},xr=function(xe){var pe=xe.dom.body;if(pe==null)throw new Error("Body is not available yet");return $e.fromDom(pe)},Nr=function(xe,pe,Re){if(u(Re)||v(Re)||w(Re))xe.setAttribute(pe,Re+"");else throw console.error("Invalid call to Attribute.set. Key ",pe,":: Value ",Re,":: Element ",xe),new Error("Attribute value was not simple")},To=function(xe,pe,Re){Nr(xe.dom,pe,Re)},Bn=function(xe,pe){var Re=xe.dom.getAttribute(pe);return Re===null?void 0:Re},po=function(xe,pe){xe.dom.removeAttribute(pe)},Zo=function(xe,pe,Re){if(!u(Re))throw console.error("Invalid call to CSS.set. Property ",pe,":: Value ",Re,":: Element ",xe),new Error("CSS value must be a string: "+Re);be(xe)&&xe.style.setProperty(pe,Re)},Za=function(xe,pe){var Re=xe.dom;he(pe,function(st,Pt){Zo(Re,Pt,st)})},os=function(xe,pe){var Re=xe.dom,st=window.getComputedStyle(Re),Pt=st.getPropertyValue(pe);return Pt===""&&!Dn(xe)?ua(Re,pe):Pt},ua=function(xe,pe){return be(xe)?xe.style.getPropertyValue(pe):""},Xu=function(xe,pe,Re,st,Pt,mn,ar){return{target:xe,x:pe,y:Re,stop:st,prevent:Pt,kill:mn,raw:ar}},Tu=function(xe){var pe=$e.fromDom(Xt(xe).getOr(xe.target)),Re=function(){return xe.stopPropagation()},st=function(){return xe.preventDefault()},Pt=S(st,Re);return Xu(pe,xe.clientX,xe.clientY,Re,st,Pt,xe)},as=function(xe,pe){return function(Re){xe(Re)&&pe(Tu(Re))}},ff=function(xe,pe,Re,st,Pt){var mn=as(Re,st);return xe.dom.addEventListener(pe,mn,Pt),{unbind:R(Fl,xe,pe,mn,Pt)}},Pl=function(xe,pe,Re,st){return ff(xe,pe,Re,st,!1)},Fl=function(xe,pe,Re,st){xe.dom.removeEventListener(pe,Re,st)},Ka=A,df=function(xe,pe,Re){return Pl(xe,pe,Ka,Re)},Rc=function(xe,pe){var Re=function(st,Pt){return Rc(xe+st,pe+Pt)};return{left:xe,top:pe,translate:Re}},Zu=Rc,hc=function(xe){var pe=xe!==void 0?xe.dom:document,Re=pe.body.scrollLeft||pe.documentElement.scrollLeft,st=pe.body.scrollTop||pe.documentElement.scrollTop;return Zu(Re,st)},ql=function(xe){var pe=xe===void 0?window:xe;return sl().browser.isFirefox()?Q.none():Q.from(pe.visualViewport)},Au=function(xe,pe,Re,st){return{x:xe,y:pe,width:Re,height:st,right:xe+Re,bottom:pe+st}},qf=function(xe){var pe=xe===void 0?window:xe,Re=pe.document,st=hc($e.fromDom(Re));return ql(pe).fold(function(){var Pt=pe.document.documentElement,mn=Pt.clientWidth,ar=Pt.clientHeight;return Au(st.left,st.top,mn,ar)},function(Pt){return Au(Math.max(Pt.pageLeft,st.left),Math.max(Pt.pageTop,st.top),Pt.width,Pt.height)})},fu=function(xe,pe,Re){return ql(Re).map(function(st){var Pt=function(m
144n){return pe(Tu(mn))};return st.addEventListener(xe,Pt),{unbind:function(){return st.removeEventListener(xe,Pt)}}}).getOrThunk(function(){return{unbind:C}})},Sl=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),pt=tinymce.util.Tools.resolve("tinymce.Env"),sn=tinymce.util.Tools.resolve("tinymce.util.Delay"),kn=function(xe,pe){xe.fire("FullscreenStateChanged",{state:pe}),xe.fire("ResizeEditor")},er=function(xe){return xe.getParam("fullscreen_native",!1,"boolean")},wr=function(xe){var pe=$e.fromDom(xe.getElement());return St(pe).map(Gt).getOrThunk(function(){return xr(an(pe))})},mo=function(xe){return xe.fullscreenElement!==void 0?xe.fullscreenElement:xe.msFullscreenElement!==void 0?xe.msFullscreenElement:xe.webkitFullscreenElement!==void 0?xe.webkitFullscreenElement:null},ja=function(){return document.fullscreenElement!==void 0?"fullscreenchange":document.msFullscreenElement!==void 0?"MSFullscreenChange":document.webkitFullscreenElement!==void 0?"webkitfullscreenchange":"fullscreenchange"},ii=function(xe){var pe=xe.dom;pe.requestFullscreen?pe.requestFullscreen():pe.msRequestFullscreen?pe.msRequestFullscreen():pe.webkitRequestFullScreen&&pe.webkitRequestFullScreen()},da=function(xe){var pe=xe.dom;pe.exitFullscreen?pe.exitFullscreen():pe.msExitFullscreen?pe.msExitFullscreen():pe.webkitCancelFullScreen&&pe.webkitCancelFullScreen()},Ci=function(xe){return xe.dom===mo(an(xe).dom)},es=function(xe,pe,Re){return le(Er(xe,Re),pe)},pc=function(xe,pe){return le(Yr(xe),pe)},Yi=function(xe){return pl(xe)},mc=function(xe,pe,Re){return es(xe,function(st){return wi(st,pe)},Re)},Io=function(xe,pe){return pc(xe,function(Re){return wi(Re,pe)})},gc="data-ephox-mobile-fullscreen-style",Wd="display:none!important;",Ea="position:absolute!important;",Xf="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",ku="background-color:rgb(255,255,255)!important;",Sd=pt.os.isAndroid(),fi=function(xe){var pe=os(xe,"background-color");return pe!==void 0&&pe!==""?"background-color:"+pe+"!important":ku},ml=function(xe,pe,Re){var st=function(yr){return Io(yr,"*:not(.tox-silver-sink)")},Pt=function(yr){return function(uo){var na=Bn(uo,"style"),Qo=na===void 0?"no-styles":na.trim();Qo!==yr&&(To(uo,gc,Qo),Za(uo,xe.parseStyle(yr)))}},mn=mc(pe,"*"),ar=U(mn,st),vo=fi(Re);ne(ar,Pt(Wd)),ne(mn,Pt(Ea+Xf+vo));var So=Sd===!0?"":Ea;Pt(So+Xf+vo)(pe)},Bv=function(xe){var pe=Yi("["+gc+"]");ne(pe,function(Re){var st=Bn(Re,gc);st!=="no-styles"?Za(Re,xe.parseStyle(st)):po(Re,"style"),po(Re,gc)})},Qu=Sl.DOM,ws=function(){return qf(window)},vf=function(xe){return window.scrollTo(xe.x,xe.y)},Gn=ql().fold(function(){return{bind:C,unbind:C}},function(xe){var pe=K(),Re=V(),st=V(),Pt=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},mn=function(){window.requestAnimationFrame(function(){pe.on(function(yr){return Za(yr,{top:xe.offsetTop+"px",left:xe.offsetLeft+"px",height:xe.height+"px",width:xe.width+"px"})})})},ar=sn.throttle(function(){Pt(),mn()},50),vo=function(yr){pe.set(yr),ar(),Re.set(fu("resize",ar)),st.set(fu("scroll",ar))},So=function(){pe.on(function(){Re.clear(),st.clear()}),pe.clear()};return{bind:vo,unbind:So}}),hf=function(xe,pe){var Re=document.body,st=document.documentElement,Pt=xe.getContainer(),mn=$e.fromDom(Pt),ar=wr(xe),vo=pe.get(),So=$e.fromDom(xe.getBody()),yr=pt.deviceType.isTouch(),uo=Pt.style,na=xe.iframeElement,Qo=na.style,jo=function(si){si(Re,"tox-fullscreen"),si(st,"tox-fullscreen"),si(Pt,"tox-fullscreen"),St(mn).map(function($l){return Gt($l).dom}).each(function($l){si($l,"tox-fullscreen"),si($l,"tox-shadowhost")})},Vi=function(){yr&&Bv(xe.dom),jo(Qu.removeClass),Gn.unbind(),Q.from(pe.get()).each(function(si){return si.fullscreenChangeHandler.unbind()})};if(vo)vo.fullscreenChangeHandler.unbind(),er(xe)&&Ci(ar)&&da(an(ar)),Qo.width=vo.iframeWidth,Qo.height=vo.iframeHeight,uo.width=vo.containerWidth,uo.height=vo.containerHeight,uo.top=vo.containerTop,uo.left=vo.containerLeft,Vi(),vf(vo.scrollPos),pe.set(null),kn(xe,!1),xe.off("remove",Vi);else{var Vo=df(an(ar),ja(),function(si){er(xe)&&!Ci(ar)&&pe.get()!==null&&hf(xe,pe)}),di={scrollPos:ws(),containerWidth:uo.width,containerHeight:uo.height,containerTop:uo.top,containerLeft:uo.left,iframeWidth:Qo.width,iframeHeight:Qo.height,fullscreenChangeHandler:Vo};yr&&ml(xe.dom,mn,So),Qo.width=Qo.height="100%",uo.width=uo.height="",jo(Qu.addClass),Gn.bind(mn),xe.on("remove",Vi),pe.set(di),er(xe)&&ii(ar),kn(xe,!0)}},Cs=function(xe,pe){xe.addCommand("mceFullScreen",function(){hf(xe,pe)})},y1=function(xe,pe){return function(Re){Re.setActive(pe.get()!==null);var st=function(Pt){return Re.setActive(Pt.state)};return xe.on("FullscreenStateChanged",st),function(){return xe.off("FullscreenStateChanged",st)}}},Yc=function(xe,pe){var Re=function(){return xe.execCommand("mceFullScreen")};xe.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:Re,onSetup:y1(xe,pe)}),xe.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:Re,onSetup:y1(xe,pe)})};function je(){t.add("fullscreen",function(xe){var pe=e(null);return xe.inline||(Cs(xe,pe),Yc(xe,pe),xe.addShortcut("Meta+Shift+F","","mceFullScreen")),n(pe)})}je()})();(function(){var e=function(Te){var Ue=Te,Oe=function(){return Ue},De=function($e){Ue=$e};return{get:Oe,set:De}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(Te){var Ue=function(Oe){var De=Te.get();De[Oe.name]=Oe,Te.set(De)};return{addTab:Ue}},r=function(Te,Ue){Te.addCommand("mceHelp",Ue)},i=function(Te,Ue){Te.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:Ue}),Te.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:Ue})},l=function(){return l=Object.assign||function(Ue){for(var Oe,De=1,$e=arguments.length;De<$e;De++){Oe=arguments[De];for(var rt in Oe)Object.prototype.hasOwnProperty.call(Oe,rt)&&(Ue[rt]=Oe[rt])}return Ue},l.apply(this,arguments)},u=function(){},f=function(Te){return function(){return Te}},v=function(Te){return Te},h=f(!1),g=f(!0),y=function(){return w},w=function(){var Te=function(De){return De()},Ue=v,Oe={fold:function(De,$e){return De()},isSome:h,isNone:g,getOr:Ue,getOrThunk:Te,getOrDie:function(De){throw new Error(De||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:Ue,orThunk:Te,map:y,each:u,bind:y,exists:h,forall:g,filter:function(){return y()},toArray:function(){return[]},toString:f("none()")};return Oe}(),C=function(Te){var Ue=f(Te),Oe=function(){return $e},De=function(rt){return rt(Te)},$e={fold:function(rt,ct){return ct(Te)},isSome:g,isNone:h,getOr:Ue,getOrThunk:Ue,getOrDie:Ue,getOrNull:Ue,getOrUndefined:Ue,or:Oe,orThunk:Oe,map:function(rt){return C(rt(Te))},each:function(rt){rt(Te)},bind:De,exists:De,forall:De,filter:function(rt){return rt(Te)?$e:w},toArray:function(){return[Te]},toString:function(){return"some("+Te+")"}};return $e},S=function(Te){return Te==null?w:C(Te)},T={some:C,none:y,from:S},B=Array.prototype.indexOf,F=function(Te,Ue){return B.call(Te,Ue)},R=function(Te,Ue){return F(Te,Ue)>-1},N=function(Te,Ue){for(var Oe=Te.length,De=new Array(Oe),$e=0;$e<Oe;$e++){var rt=Te[$e];De[$e]=Ue(rt,$e)}return De},A=function(Te,Ue){for(var Oe=[],De=0,$e=Te.length;De<$e;De++){var rt=Te[De];Ue(rt,De)&&Oe.push(rt)}return Oe},X=function(Te,Ue,Oe){for(var De=0,$e=Te.length;De<$e;De++){var rt=Te[De];
144if(Ue(rt,De))return T.some(rt);if(Oe(rt,De))break}return T.none()},Z=function(Te,Ue){return X(Te,Ue,h)},z=Object.keys,Y=Object.hasOwnProperty,Q=function(Te,Ue){return $(Te,Ue)?T.from(Te[Ue]):T.none()},$=function(Te,Ue){return Y.call(Te,Ue)},te=function(Te){for(var Ue=[],Oe=function($e){Ue.push($e)},De=0;De<Te.length;De++)Te[De].each(Oe);return Ue},V=function(Te){return T.from(Te.getParam("help_tabs"))},K=function(Te){return Te.getParam("forced_plugins")},fe=`<h1>Editor UI keyboard navigation</h1> 145 146<h2>Activating keyboard navigation</h2> 147 148<p>The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:</p> 149<ul> 150 <li>Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS)</li> 151 <li>Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS)</li> 152 <li>Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS)</li> 153</ul> 154 155<p>Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline. </p> 156 157<h2>Moving between UI sections</h2> 158 159<p>When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:</p> 160<ul> 161 <li>the menubar</li> 162 <li>each group of the toolbar </li> 163 <li>the sidebar</li> 164 <li>the element path in the footer </li> 165 <li>the wordcount toggle button in the footer </li> 166 <li>the branding link in the footer </li> 167 <li>the editor resize handle in the footer</li> 168</ul> 169 170<p>Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.</p> 171 172<h2>Moving within UI sections</h2> 173 174<p>Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:</p> 175<ul> 176 <li>moving between menus in the menubar</li> 177 <li>moving between buttons in a toolbar group</li> 178 <li>moving between items in the element path</li> 179</ul> 180 181<p>In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group. </p> 182 183<h1>Executing buttons</h1> 184 185<p>To execute a button, navigate the selection to the desired button and hit space or enter.</p> 186 187<h1>Opening, navigating and closing menus</h1> 188 189<p>When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.</p> 190 191<p>To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.</p> 192 193<h1>Context toolbars and menus</h1> 194 195<p>To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).</p> 196 197<p>Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.</p> 198 199<h1>Dialog navigation</h1> 200 201<p>There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.</p> 202 203<p>When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.</p> 204 205<p>When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab\u2019s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.</p>`,de=function(){var Te={type:"htmlpanel",presets:"document",html:fe};return{name:"keyboardnav",title:"Keyboard Navigation",items:[Te]}},ne=tinymce.util.Tools.resolve("tinymce.Env"),le=function(Te){var Ue={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},Oe={meta:"Ctrl ",access:"Shift + Alt "},De=ne.mac?Ue:Oe,$e=Te.split("+"),rt=N($e,function(ct){var lt=ct.toLowerCase().trim();return $(De,lt)?De[lt]:ct});return ne.mac?rt.join("").replace(/\s/,""):rt.join("+")},_e=[{shortcuts:["Meta + B"],action:"Bold"}
205,{shortcuts:["Meta + I"],action:"Italic"},{shortcuts:["Meta + U"],action:"Underline"},{shortcuts:["Meta + A"],action:"Select all"},{shortcuts:["Meta + Y","Meta + Shift + Z"],action:"Redo"},{shortcuts:["Meta + Z"],action:"Undo"},{shortcuts:["Access + 1"],action:"Heading 1"},{shortcuts:["Access + 2"],action:"Heading 2"},{shortcuts:["Access + 3"],action:"Heading 3"},{shortcuts:["Access + 4"],action:"Heading 4"},{shortcuts:["Access + 5"],action:"Heading 5"},{shortcuts:["Access + 6"],action:"Heading 6"},{shortcuts:["Access + 7"],action:"Paragraph"},{shortcuts:["Access + 8"],action:"Div"},{shortcuts:["Access + 9"],action:"Address"},{shortcuts:["Alt + 0"],action:"Open help dialog"},{shortcuts:["Alt + F9"],action:"Focus to menubar"},{shortcuts:["Alt + F10"],action:"Focus to toolbar"},{shortcuts:["Alt + F11"],action:"Focus to element path"},{shortcuts:["Ctrl + F9"],action:"Focus to contextual toolbar"},{shortcuts:["Shift + Enter"],action:"Open popup menu for split buttons"},{shortcuts:["Meta + K"],action:"Insert link (if link plugin activated)"},{shortcuts:["Meta + S"],action:"Save (if save plugin activated)"},{shortcuts:["Meta + F"],action:"Find (if searchreplace plugin activated)"},{shortcuts:["Meta + Shift + F"],action:"Switch to or from fullscreen mode"}],M=function(){var Te=N(_e,function(Oe){var De=N(Oe.shortcuts,le).join(" or ");return[Oe.action,De]}),Ue={type:"table",header:["Action","Shortcut"],cells:Te};return{name:"shortcuts",title:"Handy Shortcuts",items:[Ue]}},P=tinymce.util.Tools.resolve("tinymce.util.I18n"),U=N([{key:"advlist",name:"Advanced List"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"bbcode",name:"BBCode"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullpage",name:"Full Page"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"hr",name:"Horizontal Rule"},{key:"image",name:"Image"},{key:"imagetools",name:"Image Tools"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"legacyoutput",name:"Legacy Output"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"noneditable",name:"Noneditable"},{key:"pagebreak",name:"Page Break"},{key:"paste",name:"Paste"},{key:"preview",name:"Preview"},{key:"print",name:"Print"},{key:"quickbars",name:"Quick Toolbars"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"spellchecker",name:"Spell Checker"},{key:"tabfocus",name:"Tab Focus"},{key:"table",name:"Table"},{key:"template",name:"Template"},{key:"textcolor",name:"Text Color"},{key:"textpattern",name:"Text Pattern"},{key:"toc",name:"Table of Contents"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"},{key:"a11ychecker",name:"Accessibility Checker",type:"premium"},{key:"advcode",name:"Advanced Code Editor",type:"premium"},{key:"advtable",name:"Advanced Tables",type:"premium"},{key:"autocorrect",name:"Autocorrect",type:"premium"},{key:"casechange",name:"Case Change",type:"premium"},{key:"checklist",name:"Checklist",type:"premium"},{key:"export",name:"Export",type:"premium"},{key:"mediaembed",name:"Enhanced Media Embed",type:"premium"},{key:"formatpainter",name:"Format Painter",type:"premium"},{key:"linkchecker",name:"Link Checker",type:"premium"},{key:"mentions",name:"Mentions",type:"premium"},{key:"pageembed",name:"Page Embed",type:"premium"},{key:"permanentpen",name:"Permanent Pen",type:"premium"},{key:"powerpaste",name:"PowerPaste",type:"premium"},{key:"rtc",name:"Real-Time Collaboration",type:"premium"},{key:"tinymcespellchecker",name:"Spell Checker Pro",type:"premium"},{key:"tinycomments",name:"Tiny Comments",type:"premium",slug:"comments"},{key:"tinydrive",name:"Tiny Drive",type:"premium"}],function(Te){return l(l({},Te),{type:Te.type||"opensource",slug:Te.slug||Te.key})}),j=function(Te){var Ue=function(){var ot=A(U,function(We){var Ye=We.key,Ke=We.type;return Ye!=="autocorrect"&&Ke==="premium"}),Fe=N(ot,function(We){return"<li>"+P.translate(We.name)+"</li>"}).join("");return'<div data-mce-tabstop="1" tabindex="-1"><p><b>'+P.translate("Premium plugins:")+"</b></p><ul>"+Fe+'<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">'+P.translate("Learn more...")+"</a></li></ul></div>"},Oe=function(ot){return'<a href="'+ot.url+'" target="_blank" rel="noopener">'+ot.name+"</a>"},De=function(ot,Fe){return Z(U,function(We){return We.key===Fe}).fold(function(){var We=ot.plugins[Fe].getMetadata;return typeof We=="function"?Oe(We()):Fe},function(We){var Ye=We.type==="premium"?We.name+"*":We.name;return Oe({name:Ye,url:"https://www.tiny.cloud/docs/plugins/"+We.type+"/"+We.slug})})},$e=function(ot){var Fe=z(ot.plugins),We=K(ot);return We===void 0?Fe:A(Fe,function(Ye){return!R(We,Ye)})},rt=function(ot){var Fe=$e(ot),We=N(Fe,function(Ct){return"<li>"+De(ot,Ct)+"</li>"}),Ye=We.length,Ke=We.join(""),mt="<p><b>"+P.translate(["Plugins installed ({0}):",Ye])+"</b></p><ul>"+Ke+"</ul>";return mt},ct=function(ot){return ot==null?"":'<div data-mce-tabstop="1" tabindex="-1">'+rt(ot)+"</div>"},lt={type:"htmlpanel",presets:"document",html:[ct(Te),Ue()].join("")};return{name:"plugins",title:"Plugins",items:[lt]}},ee=tinymce.util.Tools.resolve("tinymce.EditorManager"),ye=function(){var Te=function($e,rt){return $e.indexOf("@")===0?"X.X.X":$e+"."+rt},Ue=Te(ee.majorVersion,ee.minorVersion),Oe='<a href="https://www.tiny.cloud/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE '+Ue+"</a>",De={type:"htmlpanel",html:"<p>"+P.translate(["You are using {0}",Oe])+"</p>",presets:"document"};return{name:"versions",title:"Version",items:[De]}},ie=function(Te,Ue){var Oe={},De=N(Te,function($e){return typeof $e=="string"?($(Ue,$e)&&(Oe[$e]=Ue[$e]),$e):(Oe[$e.name]=$e,$e.name)});return{tabs:Oe,names:De}},he=function(Te){var Ue=z(Te),Oe=Ue.indexOf("versions");
205return Oe!==-1&&(Ue.splice(Oe,1),Ue.push("versions")),{tabs:Te,names:Ue}},re=function(Te,Ue){var Oe,De=M(),$e=de(),rt=j(Te),ct=ye(),lt=l((Oe={},Oe[De.name]=De,Oe[$e.name]=$e,Oe[rt.name]=rt,Oe[ct.name]=ct,Oe),Ue.get());return V(Te).fold(function(){return he(lt)},function(ot){return ie(ot,lt)})},be=function(Te,Ue){return function(){var Oe=re(Te,Ue),De=Oe.tabs,$e=Oe.names,rt=N($e,function(ot){return Q(De,ot)}),ct=te(rt),lt={type:"tabpanel",tabs:ct};Te.windowManager.open({title:"Help",size:"medium",body:lt,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})}};function Ae(){t.add("help",function(Te){var Ue=e({}),Oe=n(Ue),De=be(Te,Ue);return i(Te,De),r(Te,De),Te.shortcuts.add("Alt+0","Open help dialog","mceHelp"),Oe})}Ae()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(i){i.addCommand("InsertHorizontalRule",function(){i.execCommand("mceInsertContent",!1,"<hr />")})},n=function(i){var l=function(){return i.execCommand("InsertHorizontalRule")};i.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:l}),i.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:l})};function r(){e.add("hr",function(i){t(i),n(i)})}r()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(xe){for(var pe,Re=1,st=arguments.length;Re<st;Re++){pe=arguments[Re];for(var Pt in pe)Object.prototype.hasOwnProperty.call(pe,Pt)&&(xe[Pt]=pe[Pt])}return xe},t.apply(this,arguments)},n=function(je){var xe=typeof je;return je===null?"null":xe==="object"&&(Array.prototype.isPrototypeOf(je)||je.constructor&&je.constructor.name==="Array")?"array":xe==="object"&&(String.prototype.isPrototypeOf(je)||je.constructor&&je.constructor.name==="String")?"string":xe},r=function(je){return function(xe){return n(xe)===je}},i=function(je){return function(xe){return typeof xe===je}},l=function(je){return function(xe){return je===xe}},u=r("string"),f=r("object"),v=r("array"),h=l(null),g=i("boolean"),y=function(je){return je==null},w=function(je){return!y(je)},C=i("function"),S=i("number"),T=function(){},B=function(je){return function(){return je}},F=function(je){return je},R=B(!1),N=B(!0),A=function(){return X},X=function(){var je=function(Re){return Re()},xe=F,pe={fold:function(Re,st){return Re()},isSome:R,isNone:N,getOr:xe,getOrThunk:je,getOrDie:function(Re){throw new Error(Re||"error: getOrDie called on none.")},getOrNull:B(null),getOrUndefined:B(void 0),or:xe,orThunk:je,map:A,each:T,bind:A,exists:R,forall:N,filter:function(){return A()},toArray:function(){return[]},toString:B("none()")};return pe}(),Z=function(je){var xe=B(je),pe=function(){return st},Re=function(Pt){return Pt(je)},st={fold:function(Pt,mn){return mn(je)},isSome:N,isNone:R,getOr:xe,getOrThunk:xe,getOrDie:xe,getOrNull:xe,getOrUndefined:xe,or:pe,orThunk:pe,map:function(Pt){return Z(Pt(je))},each:function(Pt){Pt(je)},bind:Re,exists:Re,forall:Re,filter:function(Pt){return Pt(je)?st:X},toArray:function(){return[je]},toString:function(){return"some("+je+")"}};return st},z=function(je){return je==null?X:Z(je)},Y={some:Z,none:A,from:z},Q=Object.keys,$=Object.hasOwnProperty,te=function(je,xe){for(var pe=Q(je),Re=0,st=pe.length;Re<st;Re++){var Pt=pe[Re],mn=je[Pt];xe(mn,Pt)}},V=function(je){return function(xe,pe){je[pe]=xe}},K=function(je,xe,pe,Re){var st={};return te(je,function(Pt,mn){(xe(Pt,mn)?pe:Re)(Pt,mn)}),st},fe=function(je,xe){var pe={};return K(je,xe,V(pe),T),pe},de=function(je,xe){return $.call(je,xe)},ne=function(je,xe){return de(je,xe)&&je[xe]!==void 0&&je[xe]!==null},le=Array.prototype.push,_e=function(je){for(var xe=[],pe=0,Re=je.length;pe<Re;++pe){if(!v(je[pe]))throw new Error("Arr.flatten item "+pe+" was not an array, input: "+je);le.apply(xe,je[pe])}return xe},M=function(je,xe){return xe>=0&&xe<je.length?Y.some(je[xe]):Y.none()},P=function(je){return M(je,0)},U=function(je,xe){for(var pe=0;pe<je.length;pe++){var Re=xe(je[pe],pe);if(Re.isSome())return Re}return Y.none()};typeof window!="undefined"||Function("return this;")();var j=function(je,xe,pe){if(u(pe)||g(pe)||S(pe))je.setAttribute(xe,pe+"");else throw console.error("Invalid call to Attribute.set. Key ",xe,":: Value ",pe,":: Element ",je),new Error("Attribute value was not simple")},ee=function(je,xe,pe){j(je.dom,xe,pe)},ye=function(je,xe){je.dom.removeAttribute(xe)},ie=function(je,xe){var pe=xe||document,Re=pe.createElement("div");if(Re.innerHTML=je,!Re.hasChildNodes()||Re.childNodes.length>1)throw console.error("HTML does not have a single root node",je),new Error("HTML must have a single root node");return be(Re.childNodes[0])},he=function(je,xe){var pe=xe||document,Re=pe.createElement(je);return be(Re)},re=function(je,xe){var pe=xe||document,Re=pe.createTextNode(je);return be(Re)},be=function(je){if(je==null)throw new Error("Node cannot be null or undefined");return{dom:je}},Ae=function(je,xe,pe){return Y.from(je.dom.elementFromPoint(xe,pe)).map(be)},Te={fromHtml:ie,fromTag:he,fromText:re,fromDom:be,fromPoint:Ae},Ue=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Oe=tinymce.util.Tools.resolve("tinymce.util.Promise"),De=tinymce.util.Tools.resolve("tinymce.util.URI"),$e=tinymce.util.Tools.resolve("tinymce.util.XHR"),rt=function(je){return je.getParam("image_dimensions",!0,"boolean")},ct=function(je){return je.getParam("image_advtab",!1,"boolean")},lt=function(je){return je.getParam("image_uploadtab",!0,"boolean")},ot=function(je){return je.getParam("image_prepend_url","","string")},Fe=function(je){return je.getParam("image_class_list")},We=function(je){return je.getParam("image_description",!0,"boolean")},Ye=function(je){return je.getParam("image_title",!1,"boolean")},Ke=function(je){return je.getParam("image_caption",!1,"boolean")},mt=function(je){return je.getParam("image_list",!1)},Ct=function(je){return w(je.getParam("images_upload_url"))},bt=function(je){return w(je.getParam("images_upload_handler"))},tn=function(je){return je.getParam("a11y_advanced_options",!1,"boolean")},Ft=function(je){return je.getParam("automatic_uploads",!0,"boolean")},It=function(je,xe){return Math.max(parseInt(je,10),parseInt(xe,10))},Et=function(je){return new Oe(function(xe){var pe=document.createElement("img"),Re=function(Pt){pe.onload=pe.onerror=null,pe.parentNode&&pe.parentNode.removeChild(pe),xe(Pt)};pe.onload=function(){var Pt=It(pe.width,pe.clientWidth),mn=It(pe.height,pe.clientHeight),ar={width:Pt,height:mn};Re(Oe.resolve(ar))},pe.onerror=function(){Re(Oe.reject("Failed to get image dimensions for: "+je))};var st=pe.style;st.visibility="hidden",st.position="fixed",st.bottom=st.left="0px",st.width=st.height="auto",document.body.appendChild(pe),pe.src=je})},At=function(je){return je&&(je=je.replace(/px$/,"")),je},vt=function(je){return je.length>0&&/^[0-9]+$/.test(je)&&(je+="px"),je},Tt=function(je){if(je.margin){var xe=String(je.margin).split(" ");switch(xe.length){case 1:je["margin-top"]=je["margin-top"]||xe[0],je["margin-right"]=je["margin-right"]||xe[0],je["margin-bottom"]=je["margin-bottom"]||xe[0],je["margin-left"]=je["margin-left"]||xe[0];break;case 2:je["margin-top"]=je["margin-top"]||xe[0],je["margin-right"]=je["margin-right"]||xe[1],je["margin-bottom"]=je["margin-bottom"]||xe[0],je["margin-left"]=je["margin-left"]||xe[1];break;case 3:je["margin-top"]=je["margin-top"]||xe[0],je["margin-right"]=je["margin-right"]||xe[1],je["margin-bottom"]=je["margin-bottom"]||xe[2],je["margin-left"]=je["margin-left"]||xe[1];break;case 4:je["margin-top"]=je["margin-top"]||xe[0],je["margin-right"]=je["margin-right"]||xe[1],je["margin-bottom"]=je["margin-bottom"]||xe[2],je["margin-left"]=je["margin-left"]||xe[3]}delete je.margin}return je},Wt=function(je,xe){var pe=mt(je);u(pe)?$e.send({url:pe,success:function(Re){xe(JSON.parse(Re))}}):C(pe)?pe(xe):xe(pe)},xt=function(je,xe,pe){var Re=function(){pe.onload=pe.onerror=null,je.selection&&(je.selection.select(pe),je.nodeChanged())};pe.onload=function(){!xe.width&&!xe.height&&rt(je)&&je.dom.setAttribs(pe,{width:String(pe.clientWidth),height:String(pe.clientHeight)}),Re()},pe.onerror=Re},at=function(je){return new Oe(function(xe,pe){var Re=new FileReader;Re.onload=function(){xe(Re.result)},Re.onerror=function(){pe(Re.error.message)}
205,Re.readAsDataURL(je)})},_t=function(je){return je.nodeName==="IMG"&&(je.hasAttribute("data-mce-object")||je.hasAttribute("data-mce-placeholder"))},en=function(je,xe){return De.isDomSafe(xe,"img",je.settings)},An=Ue.DOM,Vt=function(je){return je.style.marginLeft&&je.style.marginRight&&je.style.marginLeft===je.style.marginRight?At(je.style.marginLeft):""},_n=function(je){return je.style.marginTop&&je.style.marginBottom&&je.style.marginTop===je.style.marginBottom?At(je.style.marginTop):""},Mt=function(je){return je.style.borderWidth?At(je.style.borderWidth):""},pn=function(je,xe){return je.hasAttribute(xe)?je.getAttribute(xe):""},En=function(je,xe){return je.style[xe]?je.style[xe]:""},zn=function(je){return je.parentNode!==null&&je.parentNode.nodeName==="FIGURE"},nn=function(je,xe,pe){pe===""?je.removeAttribute(xe):je.setAttribute(xe,pe)},Yn=function(je){var xe=An.create("figure",{class:"image"});An.insertAfter(xe,je),xe.appendChild(je),xe.appendChild(An.create("figcaption",{contentEditable:"true"},"Caption")),xe.contentEditable="false"},qr=function(je){var xe=je.parentNode;An.insertAfter(je,xe),An.remove(xe)},Br=function(je){zn(je)?qr(je):Yn(je)},io=function(je,xe){var pe=je.getAttribute("style"),Re=xe(pe!==null?pe:"");Re.length>0?(je.setAttribute("style",Re),je.setAttribute("data-mce-style",Re)):je.removeAttribute("style")},xa=function(je,xe){return function(pe,Re,st){pe.style[Re]?(pe.style[Re]=vt(st),io(pe,xe)):nn(pe,Re,st)}},Di=function(je,xe){return je.style[xe]?At(je.style[xe]):pn(je,xe)},la=function(je,xe){var pe=vt(xe);je.style.marginLeft=pe,je.style.marginRight=pe},Na=function(je,xe){var pe=vt(xe);je.style.marginTop=pe,je.style.marginBottom=pe},Bi=function(je,xe){var pe=vt(xe);je.style.borderWidth=pe},Ps=function(je,xe){je.style.borderStyle=xe},rs=function(je){return En(je,"borderStyle")},Ai=function(je){return je.nodeName==="FIGURE"},el=function(je){return je.nodeName==="IMG"},ga=function(je){return An.getAttrib(je,"alt").length===0&&An.getAttrib(je,"role")==="presentation"},_s=function(je){return ga(je)?"":pn(je,"alt")},fo=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},il=function(je,xe){var pe=document.createElement("img");return nn(pe,"style",xe.style),(Vt(pe)||xe.hspace!=="")&&la(pe,xe.hspace),(_n(pe)||xe.vspace!=="")&&Na(pe,xe.vspace),(Mt(pe)||xe.border!=="")&&Bi(pe,xe.border),(rs(pe)||xe.borderStyle!=="")&&Ps(pe,xe.borderStyle),je(pe.getAttribute("style"))},Fs=function(je,xe){var pe=document.createElement("img");if(pl(je,t(t({},xe),{caption:!1}),pe),sl(pe,xe.alt,xe.isDecorative),xe.caption){var Re=An.create("figure",{class:"image"});return Re.appendChild(pe),Re.appendChild(An.create("figcaption",{contentEditable:"true"},"Caption")),Re.contentEditable="false",Re}else return pe},us=function(je,xe){return{src:pn(xe,"src"),alt:_s(xe),title:pn(xe,"title"),width:Di(xe,"width"),height:Di(xe,"height"),class:pn(xe,"class"),style:je(pn(xe,"style")),caption:zn(xe),hspace:Vt(xe),vspace:_n(xe),border:Mt(xe),borderStyle:En(xe,"borderStyle"),isDecorative:ga(xe)}},cs=function(je,xe,pe,Re,st){pe[Re]!==xe[Re]&&st(je,Re,pe[Re])},sl=function(je,xe,pe){if(pe){An.setAttrib(je,"role","presentation");var Re=Te.fromDom(je);ee(Re,"alt","")}else{if(h(xe)){var Re=Te.fromDom(je);ye(Re,"alt")}else{var Re=Te.fromDom(je);ee(Re,"alt",xe)}An.getAttrib(je,"role")==="presentation"&&An.setAttrib(je,"role","")}},wi=function(je,xe,pe){(pe.alt!==xe.alt||pe.isDecorative!==xe.isDecorative)&&sl(je,pe.alt,pe.isDecorative)},bo=function(je,xe){return function(pe,Re,st){je(pe,st),io(pe,xe)}},pl=function(je,xe,pe){var Re=us(je,pe);cs(pe,Re,xe,"caption",function(st,Pt,mn){return Br(st)}),cs(pe,Re,xe,"src",nn),cs(pe,Re,xe,"title",nn),cs(pe,Re,xe,"width",xa("width",je)),cs(pe,Re,xe,"height",xa("height",je)),cs(pe,Re,xe,"class",nn),cs(pe,Re,xe,"style",bo(function(st,Pt){return nn(st,"style",Pt)},je)),cs(pe,Re,xe,"hspace",bo(la,je)),cs(pe,Re,xe,"vspace",bo(Na,je)),cs(pe,Re,xe,"border",bo(Bi,je)),cs(pe,Re,xe,"borderStyle",bo(Ps,je)),wi(pe,Re,xe)},zt=function(je,xe){var pe=je.dom.styles.parse(xe),Re=Tt(pe),st=je.dom.styles.parse(je.dom.styles.serialize(Re));return je.dom.styles.serialize(st)},an=function(je){var xe=je.selection.getNode(),pe=je.dom.getParent(xe,"figure.image");return pe?je.dom.select("img",pe)[0]:xe&&(xe.nodeName!=="IMG"||_t(xe))?null:xe},Rt=function(je,xe){var pe=je.dom,Re=fe(je.schema.getTextBlockElements(),function(Pt,mn){return!je.schema.isValidChild(mn,"figure")}),st=pe.getParent(xe.parentNode,function(Pt){return ne(Re,Pt.nodeName)},je.getBody());return st?pe.split(st,xe):xe},Nn=function(je){var xe=an(je);return xe?us(function(pe){return zt(je,pe)},xe):fo()},Er=function(je,xe){var pe=Fs(function(Pt){return zt(je,Pt)},xe);
205je.dom.setAttrib(pe,"data-mce-id","__mcenew"),je.focus(),je.selection.setContent(pe.outerHTML);var Re=je.dom.select('*[data-mce-id="__mcenew"]')[0];if(je.dom.setAttrib(Re,"data-mce-id",null),Ai(Re)){var st=Rt(je,Re);je.selection.select(st)}else je.selection.select(Re)},Yr=function(je,xe){je.dom.setAttrib(xe,"src",xe.getAttribute("src"))},ft=function(je,xe){if(xe){var pe=je.dom.is(xe.parentNode,"figure.image")?xe.parentNode:xe;je.dom.remove(pe),je.focus(),je.nodeChanged(),je.dom.isEmpty(je.getBody())&&(je.setContent(""),je.selection.setCursorLocation())}},Bt=function(je,xe){var pe=an(je);if(pl(function(st){return zt(je,st)},xe,pe),Yr(je,pe),Ai(pe.parentNode)){var Re=pe.parentNode;Rt(je,Re),je.selection.select(pe.parentNode)}else je.selection.select(pe),xt(je,xe,pe)},Rn=function(je,xe){var pe=xe.src;return t(t({},xe),{src:en(je,pe)?pe:""})},Qn=function(je,xe){var pe=an(je);if(pe){var Re=us(function(mn){return zt(je,mn)},pe),st=t(t({},Re),xe),Pt=Rn(je,st);st.src?Bt(je,Pt):ft(je,pe)}else xe.src&&Er(je,t(t({},fo()),xe))},Ze=function(je,xe){var pe=f(je)&&f(xe);return pe?Gt(je,xe):xe},St=function(je){return function(){for(var xe=[],pe=0;pe<arguments.length;pe++)xe[pe]=arguments[pe];if(xe.length===0)throw new Error("Can't merge zero objects");for(var Re={},st=0;st<xe.length;st++){var Pt=xe[st];for(var mn in Pt)de(Pt,mn)&&(Re[mn]=je(Re[mn],Pt[mn]))}return Re}},Gt=St(Ze),Xt=function(je){return je.length>0},On=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),Dn=tinymce.util.Tools.resolve("tinymce.util.Tools"),xr=function(je){return u(je.value)?je.value:""},Nr=function(je){return u(je.text)?je.text:u(je.title)?je.title:""},To=function(je,xe){var pe=[];return Dn.each(je,function(Re){var st=Nr(Re);if(Re.menu!==void 0){var Pt=To(Re.menu,xe);pe.push({text:st,items:Pt})}else{var mn=xe(Re);pe.push({text:st,value:mn})}}),pe},Bn=function(je){return je===void 0&&(je=xr),function(xe){return xe?Y.from(xe).map(function(pe){return To(pe,je)}):Y.none()}},po=function(je){return Bn(xr)(je)},Zo=function(je){return de(je,"items")},Za=function(je,xe){return U(je,function(pe){return Zo(pe)?Za(pe.items,xe):pe.value===xe?Y.some(pe):Y.none()})},os=function(je,xe){return je.bind(function(pe){return Za(pe,xe)})},ua={sanitizer:Bn,sanitize:po,findEntry:os},Xu=function(je){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Tu={makeTab:Xu},as=function(je){var xe=ua.sanitizer(function(Vo){return je.convertURL(Vo.value||Vo.url,"src")}),pe=new Oe(function(Vo){Wt(je,function(di){Vo(xe(di).map(function(si){return _e([[{text:"None",value:""}],si])}))})}),Re=ua.sanitize(Fe(je)),st=ct(je),Pt=lt(je),mn=Ct(je),ar=bt(je),vo=Nn(je),So=We(je),yr=Ye(je),uo=rt(je),na=Ke(je),Qo=tn(je),jo=Ft(je),Vi=Y.some(ot(je)).filter(function(Vo){return u(Vo)&&Vo.length>0});return pe.then(function(Vo){return{image:vo,imageList:Vo,classList:Re,hasAdvTab:st,hasUploadTab:Pt,hasUploadUrl:mn,hasUploadHandler:ar,hasDescription:So,hasImageTitle:yr,hasDimensions:uo,hasImageCaption:na,prependURL:Vi,hasAccessibilityOptions:Qo,automaticUploads:jo}})},ff=function(je){var xe={name:"src",type:"urlinput",filetype:"image",label:"Source"},pe=je.imageList.map(function(yr){return{name:"images",type:"listbox",label:"Image list",items:yr}}),Re={name:"alt",type:"input",label:"Alternative description",disabled:je.hasAccessibilityOptions&&je.image.isDecorative},st={name:"title",type:"input",label:"Image title"},Pt={name:"dimensions",type:"sizeinput"},mn={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},ar=je.classList.map(function(yr){return{name:"classes",type:"listbox",label:"Class",items:yr}}),vo={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},So=function(yr){return yr?{type:"grid",columns:2}:{type:"panel"}};return _e([[xe],pe.toArray(),je.hasAccessibilityOptions&&je.hasDescription?[mn]:[],je.hasDescription?[Re]:[],je.hasImageTitle?[st]:[],je.hasDimensions?[Pt]:[],[t(t({},So(je.classList.isSome()&&je.hasImageCaption)),{items:_e([ar.toArray(),je.hasImageCaption?[vo]:[]])})]])},Pl=function(je){return{title:"General",name:"general",items:ff(je)}},Fl={makeTab:Pl,makeItems:ff},Ka=function(je){var xe=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:xe}},df={makeTab:Ka},Rc=function(je){return{prevImage:ua.findEntry(je.imageList,je.image.src),prevAlt:je.image.alt,open:!0}},Zu=function(je){return{src:{value:je.src,meta:{}},images:je.src,alt:je.alt,title:je.title,dimensions:{width:je.width,height:je.height},classes:je.class,caption:je.caption,style:je.style,vspace:je.vspace,border:je.border,hspace:je.hspace,borderstyle:je.borderStyle,fileinput:[],isDecorative:je.isDecorative}},hc=function(je,xe){return{src:je.src.value,alt:je.alt.length===0&&xe?null:je.alt,title:je.title,width:je.dimensions.width,height:je.dimensions.height,class:je.classes,style:je.style,caption:je.caption,hspace:je.hspace,vspace:je.vspace,border:je.border,borderStyle:je.borderstyle,isDecorative:je.isDecorative}},ql=function(je,xe){return/^(?:[a-zA-Z]+:)?\/\//.test(xe)?Y.none():je.prependURL.bind(function(pe){return xe.substring(0,pe.length)!==pe?Y.some(pe+xe):Y.none()})},Au=function(je,xe){var pe=xe.getData();ql(je,pe.src.value).each(function(Re){xe.setData({src:{value:Re,meta:pe.src.meta}})})},qf=function(je,xe,pe){je.hasDescription&&u(pe.alt)&&(xe.alt=pe.alt),je.hasAccessibilityOptions&&(xe.isDecorative=pe.isDecorative||xe.isDecorative||!1),je.hasImageTitle&&u(pe.title)&&(xe.title=pe.title),je.hasDimensions&&(u(pe.width)&&(xe.dimensions.width=pe.width),u(pe.height)&&(xe.dimensions.height=pe.height)),u(pe.class)&&ua.findEntry(je.classList,pe.class).each(function(Re){xe.classes=Re.value}),je.hasImageCaption&&g(pe.caption)&&(xe.caption=pe.caption),je.hasAdvTab&&(u(pe.style)&&(xe.style=pe.style),u(pe.vspace)&&(xe.vspace=pe.vspace),u(pe.border)&&(xe.border=pe.border),u(pe.hspace)&&(xe.hspace=pe.hspace),u(pe.borderstyle)&&(xe.borderstyle=pe.borderstyle))},fu=function(je,xe){var pe=xe.getData(),Re=pe.src.meta;
205if(Re!==void 0){var st=Gt({},pe);qf(je,st,Re),xe.setData(st)}},Sl=function(je,xe,pe,Re){var st=Re.getData(),Pt=st.src.value,mn=st.src.meta||{};!mn.width&&!mn.height&&xe.hasDimensions&&(Xt(Pt)?je.imageSize(Pt).then(function(ar){pe.open&&Re.setData({dimensions:ar})}).catch(function(ar){return console.error(ar)}):Re.setData({dimensions:{width:"",height:""}}))},pt=function(je,xe,pe){var Re=pe.getData(),st=ua.findEntry(je.imageList,Re.src.value);xe.prevImage=st,pe.setData({images:st.map(function(Pt){return Pt.value}).getOr("")})},sn=function(je,xe,pe,Re){Au(xe,Re),fu(xe,Re),Sl(je,xe,pe,Re),pt(xe,pe,Re)},kn=function(je,xe,pe,Re){var st=Re.getData(),Pt=ua.findEntry(xe.imageList,st.images);Pt.each(function(mn){var ar=st.alt===""||pe.prevImage.map(function(vo){return vo.text===st.alt}).getOr(!1);ar?mn.value===""?Re.setData({src:mn,alt:pe.prevAlt}):Re.setData({src:mn,alt:mn.text}):Re.setData({src:mn})}),pe.prevImage=Pt,sn(je,xe,pe,Re)},er=function(je){var xe=je["margin-top"]&&je["margin-bottom"]&&je["margin-top"]===je["margin-bottom"];return xe?At(String(je["margin-top"])):""},wr=function(je){var xe=je["margin-right"]&&je["margin-left"]&&je["margin-right"]===je["margin-left"];return xe?At(String(je["margin-right"])):""},mo=function(je){return je["border-width"]?At(String(je["border-width"])):""},ja=function(je){return je["border-style"]?String(je["border-style"]):""},ii=function(je,xe,pe){return xe(je(xe(pe)))},da=function(je,xe,pe){var Re=Tt(je(pe.style)),st=Gt({},pe);return st.vspace=er(Re),st.hspace=wr(Re),st.border=mo(Re),st.borderstyle=ja(Re),st.style=ii(je,xe,Re),st},Ci=function(je,xe){var pe=xe.getData(),Re=da(je.parseStyle,je.serializeStyle,pe);xe.setData(Re)},es=function(je,xe,pe){var Re=Gt(Zu(xe.image),pe.getData()),st=il(je.normalizeCss,hc(Re,!1));pe.setData({style:st})},pc=function(je,xe,pe,Re){var st=Re.getData();Re.block("Uploading image"),P(st.fileinput).fold(function(){Re.unblock()},function(Pt){var mn=URL.createObjectURL(Pt),ar=function(){Re.unblock(),URL.revokeObjectURL(mn)},vo=function(So){Re.setData({src:{value:So,meta:{}}}),Re.showTab("general"),sn(je,xe,pe,Re)};at(Pt).then(function(So){var yr=je.createBlobCache(Pt,mn,So);xe.automaticUploads?je.uploadImage(yr).then(function(uo){vo(uo.url),ar()}).catch(function(uo){ar(),je.alertErr(uo)}):(je.addToBlobCache(yr),vo(yr.blobUri()),Re.unblock())})})},Yi=function(je,xe,pe){return function(Re,st){st.name==="src"?sn(je,xe,pe,Re):st.name==="images"?kn(je,xe,pe,Re):st.name==="alt"?pe.prevAlt=Re.getData().alt:st.name==="style"?Ci(je,Re):st.name==="vspace"||st.name==="hspace"||st.name==="border"||st.name==="borderstyle"?es(je,xe,Re):st.name==="fileinput"?pc(je,xe,pe,Re):st.name==="isDecorative"&&(Re.getData().isDecorative?Re.disable("alt"):Re.enable("alt"))}},mc=function(je){return function(){je.open=!1}},Io=function(je){if(je.hasAdvTab||je.hasUploadUrl||je.hasUploadHandler){var xe={type:"tabpanel",tabs:_e([[Fl.makeTab(je)],je.hasAdvTab?[Tu.makeTab(je)]:[],je.hasUploadTab&&(je.hasUploadUrl||je.hasUploadHandler)?[df.makeTab(je)]:[]])};return xe}else{var pe={type:"panel",items:Fl.makeItems(je)};return pe}},gc=function(je){return function(xe){var pe=Rc(xe);return{title:"Insert/Edit Image",size:"normal",body:Io(xe),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Zu(xe.image),onSubmit:je.onSubmit(xe),onChange:Yi(je,xe,pe),onClose:mc(pe)}}},Wd=function(je){return function(xe){return function(pe){var Re=Gt(Zu(xe.image),pe.getData());je.execCommand("mceUpdateImage",!1,hc(Re,xe.hasAccessibilityOptions)),je.editorUpload.uploadImagesAuto(),pe.close()}}},Ea=function(je){return function(xe){return en(je,xe)?Et(je.documentBaseURI.toAbsolute(xe)).then(function(pe){return{width:String(pe.width),height:String(pe.height)}}):Oe.resolve({width:"",height:""})}},Xf=function(je){return function(xe,pe,Re){return je.editorUpload.blobCache.create({blob:xe,blobUri:pe,name:xe.name?xe.name.replace(/\.[^\.]+$/,""):null,filename:xe.name,base64:Re.split(",")[1]})}},ku=function(je){return function(xe){je.editorUpload.blobCache.add(xe)}},Sd=function(je){return function(xe){je.windowManager.alert(xe)}},fi=function(je){return function(xe){return zt(je,xe)}},ml=function(je){return function(xe){return je.dom.parseStyle(xe)}},Bv=function(je){return function(xe,pe){return je.dom.serializeStyle(xe,pe)}},Qu=function(je){return function(xe){return On(je).upload([xe],!1).then(function(pe){return pe.length===0?Oe.reject("Failed to upload image"):pe[0].status===!1?Oe.reject(pe[0].error.message):pe[0]})}},ws=function(je){var xe={onSubmit:Wd(je),imageSize:Ea(je),addToBlobCache:ku(je),createBlobCache:Xf(je),alertErr:Sd(je),normalizeCss:fi(je),parseStyle:ml(je),serializeStyle:Bv(je),uploadImage:Qu(je)},pe=function(){as(je).then(gc(xe)).then(je.windowManager.open)};return{open:pe}},vf=function(je){je.addCommand("mceImage",ws(je).open),je.addCommand("mceUpdateImage",function(xe,pe){je.undoManager.transact(function(){return Qn(je,pe)})})},Gn=function(je){var xe=je.attr("class");return xe&&/\bimage\b/.test(xe)},hf=function(je){return function(xe){for(var pe=xe.length,Re=function(Pt){Pt.attr("contenteditable",je?"true":null)};pe--;){var st=xe[pe];Gn(st)&&(st.attr("contenteditable",je?"false":null),Dn.each(st.getAll("figcaption"),Re))}}},Cs=function(je){je.on("PreInit",function(){je.parser.addNodeFilter("figure",hf(!0)),je.serializer.addNodeFilter("figure",hf(!1))})},y1=function(je){je.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:ws(je).open,onSetup:function(xe){return xe.setActive(w(an(je))),je.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",xe.setActive).unbind}}),je.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:ws(je).open}),je.ui.registry.addContextMenu("image",{update:function(xe){return Ai(xe)||el(xe)&&!_t(xe)?["image"]:[]}})};function Yc(){e.add("image",function(je){Cs(je),y1(je),vf(je)})}Yc()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(ye){var ie=typeof ye;return ye===null?"null":ie==="object"&&(Array.prototype.isPrototypeOf(ye)||ye.constructor&&ye.constructor.name==="Array")?"array":ie==="object"&&(String.prototype.isPrototypeOf(ye)||ye.constructor&&ye.constructor.name==="String")?"string":ie},n=function(ye){return function(ie){return t(ie)===ye}},r=n("string"),i=n("array"),l=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),u=tinymce.util.Tools.resolve("tinymce.EditorManager"),f=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),h=function(ye){return ye.getParam("importcss_merge_classes")},g=function(ye){return ye.getParam("importcss_exclusive")},y=function(ye){return ye.getParam("importcss_selector_converter")},w=function(ye){return ye.getParam("importcss_selector_filter")},C=function(ye){return ye.getParam("importcss_groups")},S=function(ye){return ye.getParam("importcss_append")},T=function(ye){return ye.getParam("importcss_file_filter")},B=function(ye){var ie=ye.getParam("skin");return ie!==!1?ie||"oxide":!1},F=function(ye){return ye.getParam("skin_url")},R=Array.prototype.push,N=function(ye,ie){for(var he=ye.length,re=new Array(he),be=0;be<he;be++){var Ae=ye[be];re[be]=ie(Ae,be)}return re},A=function(ye){for(var ie=[],he=0,re=ye.length;he<re;++he){if(!i(ye[he]))throw new Error("Arr.flatten item "+he+" was not an array, input
205: "+ye);R.apply(ie,ye[he])}return ie},X=function(ye,ie){return A(N(ye,ie))},Z=function(){var ye=[],ie=[],he={},re=function(Te,Ue){he[Te]?he[Te].push(Ue):(ie.push(Te),he[Te]=[Ue])},be=function(Te){ye.push(Te)},Ae=function(){var Te=X(ie,function(Ue){var Oe=he[Ue];return Oe.length===0?[]:[{title:Ue,items:Oe}]});return Te.concat(ye)};return{addItemToGroup:re,addItem:be,toFormats:Ae}},z=/^\.(?:ephox|tiny-pageembed|mce)(?:[.-]+\w+)+$/,Y=function(ye){var ie=f.cacheSuffix;return r(ye)&&(ye=ye.replace("?"+ie,"").replace("&"+ie,"")),ye},Q=function(ye,ie){var he=B(ye);if(he){var re=F(ye),be=re?ye.documentBaseURI.toAbsolute(re):u.baseURL+"/skins/ui/"+he,Ae=u.baseURL+"/skins/content/";return ie===be+"/content"+(ye.inline?".inline":"")+".min.css"||ie.indexOf(Ae)!==-1}return!1},$=function(ye){return r(ye)?function(ie){return ie.indexOf(ye)!==-1}:ye instanceof RegExp?function(ie){return ye.test(ie)}:ye},te=function(ye){return ye.styleSheet},V=function(ye){return ye.selectorText},K=function(ye,ie,he){var re=[],be={},Ae=function(Te,Ue){var Oe=Te.href,De;if(Oe=Y(Oe),!(!Oe||!he(Oe,Ue)||Q(ye,Oe))){v.each(Te.imports,function($e){Ae($e,!0)});try{De=Te.cssRules||Te.rules}catch{}v.each(De,function($e){te($e)?Ae($e.styleSheet,!0):V($e)&&v.each($e.selectorText.split(","),function(rt){re.push(v.trim(rt))})})}};v.each(ye.contentCSS,function(Te){be[Te]=!0}),he||(he=function(Te,Ue){return Ue||be[Te]});try{v.each(ie.styleSheets,function(Te){Ae(Te)})}catch{}return re},fe=function(ye,ie){var he,re=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(ie);if(!!re){var be=re[1],Ae=re[2].substr(1).split(".").join(" "),Te=v.makeMap("a,img");return re[1]?(he={title:ie},ye.schema.getTextBlockElements()[be]?he.block=be:ye.schema.getBlockElements()[be]||Te[be.toLowerCase()]?he.selector=be:he.inline=be):re[2]&&(he={inline:"span",title:ie.substr(1),classes:Ae}),h(ye)!==!1?he.classes=Ae:he.attributes={class:Ae},he}},de=function(ye,ie){return v.grep(ye,function(he){return!he.filter||he.filter(ie)})},ne=function(ye){return v.map(ye,function(ie){return v.extend({},ie,{original:ie,selectors:{},filter:$(ie.filter)})})},le=function(ye,ie){return ie===null||g(ye)!==!1},_e=function(ye,ie,he,re){return!(le(ye,he)?ie in re:ie in he.selectors)},M=function(ye,ie,he,re){le(ye,he)?re[ie]=!0:he.selectors[ie]=!0},P=function(ye,ie,he,re){var be;return re&&re.selector_converter?be=re.selector_converter:y(ye)?be=y(ye):be=function(){return fe(ye,he)},be.call(ie,he,re)},U=function(ye){ye.on("init",function(){var ie=Z(),he={},re=$(w(ye)),be=ne(C(ye)),Ae=function(Ue,Oe){if(_e(ye,Ue,Oe,he)){M(ye,Ue,Oe,he);var De=P(ye,ye.plugins.importcss,Ue,Oe);if(De){var $e=De.name||l.DOM.uniqueId();return ye.formatter.register($e,De),{title:De.title,format:$e}}}return null};v.each(K(ye,ye.getDoc(),$(T(ye))),function(Ue){if(!z.test(Ue)&&(!re||re(Ue))){var Oe=de(be,Ue);if(Oe.length>0)v.each(Oe,function($e){var rt=Ae(Ue,$e);rt&&ie.addItemToGroup($e.title,rt)});else{var De=Ae(Ue,null);De&&ie.addItem(De)}}});var Te=ie.toFormats();ye.fire("addStyleModifications",{items:Te,replace:!S(ye)})})},j=function(ye){var ie=function(he){return fe(ye,he)};return{convertSelectorToFormat:ie}};function ee(){e.add("importcss",function(ye){return U(ye),j(ye)})}ee()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(N){return N.getParam("insertdatetime_dateformat",N.translate("%Y-%m-%d"))},n=function(N){return N.getParam("insertdatetime_timeformat",N.translate("%H:%M:%S"))},r=function(N){return N.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},i=function(N){var A=r(N);return A.length>0?A[0]:n(N)},l=function(N){return N.getParam("insertdatetime_element",!1)},u="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),v="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),h="January February March April May June July August September October November December".split(" "),g=function(N,A){if(N=""+N,N.length<A)for(var X=0;X<A-N.length;X++)N="0"+N;return N},y=function(N,A,X){return X===void 0&&(X=new Date),A=A.replace("%D","%m/%d/%Y"),A=A.replace("%r","%I:%M:%S %p"),A=A.replace("%Y",""+X.getFullYear()),A=A.replace("%y",""+X.getYear()),A=A.replace("%m",g(X.getMonth()+1,2)),A=A.replace("%d",g(X.getDate(),2)),A=A.replace("%H",""+g(X.getHours(),2)),A=A.replace("%M",""+g(X.getMinutes(),2)),A=A.replace("%S",""+g(X.get
205Seconds(),2)),A=A.replace("%I",""+((X.getHours()+11)%12+1)),A=A.replace("%p",X.getHours()<12?"AM":"PM"),A=A.replace("%B",""+N.translate(h[X.getMonth()])),A=A.replace("%b",""+N.translate(v[X.getMonth()])),A=A.replace("%A",""+N.translate(f[X.getDay()])),A=A.replace("%a",""+N.translate(u[X.getDay()])),A=A.replace("%%","%"),A},w=function(N,A,X,Z){var z=N.dom.create("time",{datetime:X},Z);A.parentNode.insertBefore(z,A),N.dom.remove(A),N.selection.select(z,!0),N.selection.collapse(!1)},C=function(N,A){if(l(N)){var X=y(N,A),Z=void 0;/%[HMSIp]/.test(A)?Z=y(N,"%Y-%m-%dT%H:%M"):Z=y(N,"%Y-%m-%d");var z=N.dom.getParent(N.selection.getStart(),"time");z?w(N,z,Z,X):N.insertContent('<time datetime="'+Z+'">'+X+"</time>")}else N.insertContent(y(N,A))},S=function(N){N.addCommand("mceInsertDate",function(A,X){C(N,X!=null?X:t(N))}),N.addCommand("mceInsertTime",function(A,X){C(N,X!=null?X:n(N))})},T=function(N){var A=N,X=function(){return A},Z=function(z){A=z};return{get:X,set:Z}},B=tinymce.util.Tools.resolve("tinymce.util.Tools"),F=function(N){var A=r(N),X=T(i(N)),Z=function(Y){return N.execCommand("mceInsertDate",!1,Y)};N.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(Y){return Y===X.get()},fetch:function(Y){Y(B.map(A,function(Q){return{type:"choiceitem",text:y(N,Q),value:Q}}))},onAction:function(Y){Z(X.get())},onItemAction:function(Y,Q){X.set(Q),Z(Q)}});var z=function(Y){return function(){X.set(Y),Z(Y)}};N.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return B.map(A,function(Y){return{type:"menuitem",text:y(N,Y),onAction:z(Y)}})}})};function R(){e.add("insertdatetime",function(N){S(N),F(N)})}R()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(pt){var sn=typeof pt;return pt===null?"null":sn==="object"&&(Array.prototype.isPrototypeOf(pt)||pt.constructor&&pt.constructor.name==="Array")?"array":sn==="object"&&(String.prototype.isPrototypeOf(pt)||pt.constructor&&pt.constructor.name==="String")?"string":sn},r=function(pt){return function(sn){return n(sn)===pt}},i=function(pt){return function(sn){return typeof sn===pt}},l=function(pt){return function(sn){return pt===sn}},u=r("string"),f=r("array"),v=l(null),h=i("boolean"),g=i("function"),y=function(){},w=function(pt){return function(){return pt}},C=function(pt){return pt},S=function(pt,sn){return pt===sn},T=w(!1),B=w(!0),F=function(){return R},R=function(){var pt=function(er){return er()},sn=C,kn={fold:function(er,wr){return er()},isSome:T,isNone:B,getOr:sn,getOrThunk:pt,getOrDie:function(er){throw new Error(er||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void 0),or:sn,orThunk:pt,map:F,each:y,bind:F,exists:T,forall:B,filter:function(){return F()},toArray:function(){return[]},toString:w("none()")};return kn}(),N=function(pt){var sn=w(pt),kn=function(){return wr},er=function(mo){return mo(pt)},wr={fold:function(mo,ja){return ja(pt)},isSome:B,isNone:T,getOr:sn,getOrThunk:sn,getOrDie:sn,getOrNull:sn,getOrUndefined:sn,or:kn,orThunk:kn,map:function(mo){return N(mo(pt))},each:function(mo){mo(pt)},bind:er,exists:er,forall:er,filter:function(mo){return mo(pt)?wr:R},toArray:function(){return[pt]},toString:function(){return"some("+pt+")"}};return wr},A=function(pt){return pt==null?R:N(pt)},X={some:N,none:F,from:A},Z=Array.prototype.indexOf,z=Array.prototype.push,Y=function(pt,sn){return Z.call(pt,sn)},Q=function(pt,sn){return Y(pt,sn)>-1},$=function(pt,sn){for(var kn=pt.length,er=new Array(kn),wr=0;wr<kn;wr++){var mo=pt[wr];er[wr]=sn(mo,wr)}return er},te=function(pt,sn){for(var kn=0,er=pt.length;kn<er;kn++){var wr=pt[kn];sn(wr,kn)}},V=function(pt,sn,kn){return te(pt,function(er,wr){kn=sn(kn,er,wr)}),kn},K=function(pt){for(var sn=[],kn=0,er=pt.length;kn<er;++kn){if(!f(pt[kn]))throw new Error("Arr.flatten item "+kn+" was not an array, input: "+pt);z.apply(sn,pt[kn])}return sn},fe=function(pt,sn){return K($(pt,sn))},de=function(pt,sn){for(var kn=0;kn<pt.length;kn++){var er=sn(pt[kn],kn);if(er.isSome())return er}return X.none()},ne=function(pt,sn,kn){return kn===void 0&&(kn=S),pt.exists(function(er){return kn(er,sn)})},le=function(pt){for(var sn=[],kn=function(wr){sn.push(wr)},er=0;er<pt.length;er++)pt[er].each(kn);return sn},_e=function(pt,sn){return pt?X.some(sn):X.none()},M=function(pt){var sn=pt.getParam("link_assume_external_targets",!1);return h(sn)&&sn?1:u(sn)&&(sn==="http"||sn==="https")?sn:0},P=function(pt){return pt.getParam("link_context_toolbar",!1,"boolean")},U=function(pt){return pt.getParam("link_list")},j=function(pt){return pt.getParam("default_link_target")},ee=function(pt){return pt.getParam("target_list",!0)},ye=function(pt){return pt.getParam("rel_list",[],"array")},ie=function(pt){return pt.getParam("link_class_list",[],"array")},he=function(pt){return pt.getParam("link_title",!0,"boolean")},re=function(pt){return pt.getParam("allow_unsafe_link_target",!1,"boolean")},be=function(pt){return pt.getParam("link_quicklink",!1,"boolean")},Ae=function(pt){return pt.getParam("link_default_protocol","http","string")},Te=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ue=function(pt){return u(pt.value)?pt.value:""},Oe=function(pt){return u(pt.text)?pt.text:u(pt.title)?pt.title:""},De=function(pt,sn){var kn=[];return Te.each(pt,function(er){var wr=Oe(er);if(er.menu!==void 0){var mo=De(er.menu,sn);kn.push({text:wr,items:mo})}else{var ja=sn(er);kn.push({text:wr,value:ja})}}),kn},$e=function(pt){return pt===void 0&&(pt=Ue),function(sn){return X.from(sn).map(function(kn){return De(kn,pt)})}},rt=function(pt){return $e(Ue)(pt)},ct=function(pt,sn){return function(kn){return{name:pt,type:"listbox",label:sn,items:kn}}},lt={sanitize:rt,sanitizeWith:$e,createUi:ct,getValue:Ue},ot=function(){return ot=Object.assign||function(sn){for(var kn,er=1,wr=arguments.length;er<wr;er++){kn=arguments[er];for(var mo in kn)Object.prototype.hasOwnProperty.call(kn,mo)&&(sn[mo]=kn[mo])}return sn},ot.apply(this,arguments)},Fe=Object.keys,We=Object.hasOwnProperty,Ye=function(pt,sn){for(var kn=Fe(pt),er=0,wr=kn.length;er<wr;er++){var mo=kn[er],ja=pt[mo];sn(ja,mo)}},Ke=function(pt){return function(sn,kn){pt[kn]=sn}},mt=function(pt,sn,kn,er){var wr={};return Ye(pt,function(mo,ja){(sn(mo,ja)?kn:er)(mo,ja)}),wr},Ct=function(pt,sn){var kn={};return mt(pt,sn,Ke(kn),y),kn}
205,bt=function(pt,sn){return We.call(pt,sn)},tn=function(pt,sn){return bt(pt,sn)&&pt[sn]!==void 0&&pt[sn]!==null},Ft=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),It=tinymce.util.Tools.resolve("tinymce.util.URI"),Et=function(pt){return pt&&pt.nodeName.toLowerCase()==="a"},At=function(pt){return Et(pt)&&!!Wt(pt)},vt=function(pt,sn){if(pt.collapsed)return[];var kn=pt.cloneContents(),er=new Ft(kn.firstChild,kn),wr=[],mo=kn.firstChild;do sn(mo)&&wr.push(mo);while(mo=er.next());return wr},Tt=function(pt){return/^\w+:/i.test(pt)},Wt=function(pt){var sn=pt.getAttribute("data-mce-href");return sn||pt.getAttribute("href")},xt=function(pt,sn){var kn=["noopener"],er=pt?pt.split(/\s+/):[],wr=function(da){return Te.trim(da.sort().join(" "))},mo=function(da){return da=ja(da),da.length>0?da.concat(kn):kn},ja=function(da){return da.filter(function(Ci){return Te.inArray(kn,Ci)===-1})},ii=sn?mo(er):ja(er);return ii.length>0?wr(ii):""},at=function(pt){return pt.replace(/\uFEFF/g,"")},_t=function(pt,sn){return sn=sn||pt.selection.getNode(),Mt(sn)?pt.dom.select("a[href]",sn)[0]:pt.dom.getParent(sn,"a[href]")},en=function(pt,sn){var kn=sn?sn.innerText||sn.textContent:pt.getContent({format:"text"});return at(kn)},An=function(pt){return Te.grep(pt,At).length>0},Vt=function(pt){return vt(pt,At).length>0},_n=function(pt){var sn=pt.schema.getTextInlineElements(),kn=function(wr){return wr.nodeType===1&&!Et(wr)&&!bt(sn,wr.nodeName.toLowerCase())},er=vt(pt.selection.getRng(),kn);return er.length===0},Mt=function(pt){return pt&&pt.nodeName==="FIGURE"&&/\bimage\b/i.test(pt.className)},pn=function(pt){var sn=["title","rel","class","target"];return V(sn,function(kn,er){return pt[er].each(function(wr){kn[er]=wr.length>0?wr:null}),kn},{href:pt.href})},En=function(pt,sn){return(sn==="http"||sn==="https")&&!Tt(pt)?sn+"://"+pt:pt},zn=function(pt,sn){var kn=ot({},sn);if(!(ye(pt).length>0)&&re(pt)===!1){var er=xt(kn.rel,kn.target==="_blank");kn.rel=er||null}return X.from(kn.target).isNone()&&ee(pt)===!1&&(kn.target=j(pt)),kn.href=En(kn.href,M(pt)),kn},nn=function(pt,sn,kn,er){kn.each(function(wr){bt(sn,"innerText")?sn.innerText=wr:sn.textContent=wr}),pt.dom.setAttribs(sn,er),pt.selection.select(sn)},Yn=function(pt,sn,kn,er){Mt(sn)?Ps(pt,sn,er):kn.fold(function(){pt.execCommand("mceInsertLink",!1,er)},function(wr){pt.insertContent(pt.dom.createHTML("a",er,pt.dom.encode(wr)))})},qr=function(pt,sn,kn){var er=pt.selection.getNode(),wr=_t(pt,er),mo=zn(pt,pn(kn));pt.undoManager.transact(function(){kn.href===sn.href&&sn.attach(),wr?(pt.focus(),nn(pt,wr,kn.text,mo)):Yn(pt,er,kn.text,mo)})},Br=function(pt){var sn=pt.dom,kn=pt.selection,er=kn.getBookmark(),wr=kn.getRng().cloneRange(),mo=sn.getParent(wr.startContainer,"a[href]",pt.getBody()),ja=sn.getParent(wr.endContainer,"a[href]",pt.getBody());mo&&wr.setStartBefore(mo),ja&&wr.setEndAfter(ja),kn.setRng(wr),pt.execCommand("unlink"),kn.moveToBookmark(er)},io=function(pt){pt.undoManager.transact(function(){var sn=pt.selection.getNode();Mt(sn)?Bi(pt,sn):Br(pt),pt.focus()})},xa=function(pt){var sn=pt.class,kn=pt.href,er=pt.rel,wr=pt.target,mo=pt.text,ja=pt.title;return Ct({class:sn.getOrNull(),href:kn,rel:er.getOrNull(),target:wr.getOrNull(),text:mo.getOrNull(),title:ja.getOrNull()},function(ii,da){return v(ii)===!1})},Di=function(pt,sn){var kn=sn.href;return ot(ot({},sn),{href:It.isDomSafe(kn,"a",pt.settings)?kn:""})},la=function(pt,sn,kn){var er=Di(pt,kn);pt.hasPlugin("rtc",!0)?pt.execCommand("createlink",!1,xa(er)):qr(pt,sn,er)},Na=function(pt){pt.hasPlugin("rtc",!0)?pt.execCommand("unlink"):io(pt)},Bi=function(pt,sn){var kn=pt.dom.select("img",sn)[0];if(kn){var er=pt.dom.getParents(kn,"a[href]",sn)[0];er&&(er.parentNode.insertBefore(kn,er),pt.dom.remove(er))}},Ps=function(pt,sn,kn){var er=pt.dom.select("img",sn)[0];if(er){var wr=pt.dom.create("a",kn);er.parentNode.insertBefore(wr,er),wr.appendChild(er)}},rs=function(pt){return tn(pt,"items")},Ai=function(pt,sn){return de(sn,function(kn){return rs(kn)?Ai(pt,kn.items):_e(kn.value===pt,kn)})},el=function(pt,sn,kn,er){var wr=er[sn],mo=pt.length>0;return wr!==void 0?Ai(wr,kn).map(function(ja){return{url:{value:ja.value,meta:{text:mo?pt:ja.text,attach:y}},text:mo?pt:ja.text}}):X.none()},ga=function(pt,sn){return sn==="link"?pt.link:sn==="anchor"?pt.anchor:X.none()},_s=function(pt,sn){var kn={text:pt.text,title:pt.title},er=function(da){return _e(kn.title.length<=0,X.from(da.meta.title).getOr(""))},wr=function(da){return _e(kn.text.length<=0,X.from(da.meta.text).getOr(da.value))},mo=function(da){var Ci=wr(da.url),es=er(da.url);return Ci.isSome()||es.isSome()?X.some(ot(ot({},Ci.map(function(pc){return{text:pc}}).getOr({})),es.map(function(pc){return{title:pc}}).getOr({}))):X.none()},ja=function(da,Ci){var es=ga(sn,Ci.name).getOr([]);return el(kn.text,Ci.name,es,da)},ii=function(da,Ci){var es=Ci.name;return es==="url"?mo(da()):Q(["anchor","link"],es)?ja(da(),Ci):((es==="text"||es==="title")&&(kn[es]=da()[es]),X.none())};return{onChange:ii}},fo={init:_s,getDelta:el},il=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fs=tinymce.util.Tools.resolve("tinymce.util.Promise"),us=function(pt,sn,kn){var er=pt.selection.getRng();il.setEditorTimeout(pt,function(){pt.windowManager.confirm(sn,function(wr){pt.selection.setRng(er),kn(wr)})})},cs=function(pt){var sn=pt.href,kn=sn.indexOf("@")>0&&sn.indexOf("/")===-1&&sn.indexOf("mailto:")===-1;return kn?X.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(er){return ot(ot({},er),{href:"mailto:"+sn})}}):X.none()},sl=function(pt,sn){return function(kn){var er=kn.href,wr=pt===1&&!Tt(er)||pt===0&&/^\s*www(\.|\d\.)/i.test(er);return wr?X.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+sn+":// prefix?",preprocess:function(mo){return ot(ot({},mo),{href:sn+"://"+er})}}):X.none()}},wi=function(pt,sn){return de([cs,sl(M(pt),Ae(pt))],function(kn){return kn(sn)}).fold(function(){return Fs.resolve(sn)},function(kn){return new Fs(function(er){us(pt,kn.message,function(wr){er(wr?kn.preprocess(sn):sn)})})})},bo={preprocess:wi},pl=function(pt){var sn=pt.dom.select("a:not([href])"),kn=fe(sn,function(er){var wr=er.n
205ame||er.id;return wr?[{text:wr,value:"#"+wr}]:[]});return kn.length>0?X.some([{text:"None",value:""}].concat(kn)):X.none()},zt={getAnchors:pl},an=function(pt){var sn=ie(pt);return sn.length>0?lt.sanitize(sn):X.none()},Rt={getClasses:an},Nn=tinymce.util.Tools.resolve("tinymce.util.XHR"),Er=function(pt){try{return X.some(JSON.parse(pt))}catch{return X.none()}},Yr=function(pt){var sn=function(er){return pt.convertURL(er.value||er.url,"href")},kn=U(pt);return new Fs(function(er){u(kn)?Nn.send({url:kn,success:function(wr){return er(Er(wr))},error:function(wr){return er(X.none())}}):g(kn)?kn(function(wr){return er(X.some(wr))}):er(X.from(kn))}).then(function(er){return er.bind(lt.sanitizeWith(sn)).map(function(wr){if(wr.length>0){var mo=[{text:"None",value:""}];return mo.concat(wr)}else return wr})})},ft={getLinks:Yr},Bt=function(pt,sn){var kn=ye(pt);if(kn.length>0){var er=ne(sn,"_blank"),wr=re(pt)===!1,mo=function(ii){return xt(lt.getValue(ii),er)},ja=wr?lt.sanitizeWith(mo):lt.sanitize;return ja(kn)}return X.none()},Rn={getRels:Bt},Qn=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Ze=function(pt){var sn=ee(pt);return f(sn)?lt.sanitize(sn).orThunk(function(){return X.some(Qn)}):sn===!1?X.none():X.some(Qn)},St={getTargets:Ze},Gt=function(pt,sn,kn){var er=pt.getAttrib(sn,kn);return er!==null&&er.length>0?X.some(er):X.none()},Xt=function(pt,sn){var kn=pt.dom,er=_n(pt),wr=er?X.some(en(pt.selection,sn)):X.none(),mo=sn?X.some(kn.getAttrib(sn,"href")):X.none(),ja=sn?X.from(kn.getAttrib(sn,"target")):X.none(),ii=Gt(kn,sn,"rel"),da=Gt(kn,sn,"class"),Ci=Gt(kn,sn,"title");return{url:mo,text:wr,title:Ci,target:ja,rel:ii,linkClass:da}},On=function(pt,sn){return ft.getLinks(pt).then(function(kn){var er=Xt(pt,sn);return{anchor:er,catalogs:{targets:St.getTargets(pt),rels:Rn.getRels(pt,er.target),classes:Rt.getClasses(pt),anchor:zt.getAnchors(pt),link:kn},optNode:X.from(sn),flags:{titleEnabled:he(pt)}}})},Dn={collect:On},xr=function(pt,sn){return function(kn){var er=kn.getData();if(!er.url.value){Na(pt),kn.close();return}var wr=function(ii){return X.from(er[ii]).filter(function(da){return!ne(sn.anchor[ii],da)})},mo={href:er.url.value,text:wr("text"),target:wr("target"),rel:wr("rel"),class:wr("linkClass"),title:wr("title")},ja={href:er.url.value,attach:er.url.meta!==void 0&&er.url.meta.attach?er.url.meta.attach:y};bo.preprocess(pt,mo).then(function(ii){la(pt,ja,ii)}),kn.close()}},Nr=function(pt){var sn=_t(pt);return Dn.collect(pt,sn)},To=function(pt,sn){var kn=pt.anchor,er=kn.url.getOr("");return{url:{value:er,meta:{original:{value:er}}},text:kn.text.getOr(""),title:kn.title.getOr(""),anchor:er,link:er,rel:kn.rel.getOr(""),target:kn.target.or(sn).getOr(""),linkClass:kn.linkClass.getOr("")}},Bn=function(pt,sn,kn){var er=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],wr=pt.anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),mo=pt.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],ja=X.from(j(kn)),ii=To(pt,ja),da=pt.catalogs,Ci=fo.init(ii,da),es={type:"panel",items:K([er,wr,mo,le([da.anchor.map(lt.createUi("anchor","Anchors")),da.rels.map(lt.createUi("rel","Rel")),da.targets.map(lt.createUi("target","Open link in...")),da.link.map(lt.createUi("link","Link list")),da.classes.map(lt.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:es,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:ii,onChange:function(pc,Yi){var mc=Yi.name;Ci.onChange(pc.getData,{name:mc}).each(function(Io){pc.setData(Io)})},onSubmit:sn}}
205,po=function(pt){var sn=Nr(pt);sn.then(function(kn){var er=xr(pt,kn);return Bn(kn,er,pt)}).then(function(kn){pt.windowManager.open(kn)})},Zo=function(pt,sn){document.body.appendChild(pt),pt.dispatchEvent(sn),document.body.removeChild(pt)},Za=function(pt){var sn=document.createElement("a");sn.target="_blank",sn.href=pt,sn.rel="noreferrer noopener";var kn=document.createEvent("MouseEvents");kn.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Zo(sn,kn)},os=function(pt,sn){return pt.dom.getParent(sn,"a[href]")},ua=function(pt){return os(pt,pt.selection.getStart())},Xu=function(pt){return pt.altKey===!0&&pt.shiftKey===!1&&pt.ctrlKey===!1&&pt.metaKey===!1},Tu=function(pt,sn){if(sn){var kn=Wt(sn);if(/^#/.test(kn)){var er=pt.$(kn);er.length&&pt.selection.scrollIntoView(er[0],!0)}else Za(sn.href)}},as=function(pt){return function(){po(pt)}},ff=function(pt){return function(){Tu(pt,ua(pt))}},Pl=function(pt){pt.on("click",function(sn){var kn=os(pt,sn.target);kn&&t.metaKeyPressed(sn)&&(sn.preventDefault(),Tu(pt,kn))}),pt.on("keydown",function(sn){var kn=ua(pt);kn&&sn.keyCode===13&&Xu(sn)&&(sn.preventDefault(),Tu(pt,kn))})},Fl=function(pt,sn){return pt.on("NodeChange",sn),function(){return pt.off("NodeChange",sn)}},Ka=function(pt){return function(sn){var kn=function(){return sn.setActive(!pt.mode.isReadOnly()&&_t(pt,pt.selection.getNode())!==null)};return kn(),Fl(pt,kn)}},df=function(pt){return function(sn){var kn=function(){return sn.setDisabled(_t(pt,pt.selection.getNode())===null)};return kn(),Fl(pt,kn)}},Rc=function(pt){return function(sn){var kn=function(wr){return An(wr)||Vt(pt.selection.getRng())},er=pt.dom.getParents(pt.selection.getStart());return sn.setDisabled(!kn(er)),Fl(pt,function(wr){return sn.setDisabled(!kn(wr.parents))})}},Zu=function(pt){pt.addCommand("mceLink",function(){be(pt)?pt.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):as(pt)()})},hc=function(pt){pt.addShortcut("Meta+K","",function(){pt.execCommand("mceLink")})},ql=function(pt){pt.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:as(pt),onSetup:Ka(pt)}),pt.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:ff(pt),onSetup:df(pt)}),pt.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Na(pt)},onSetup:Rc(pt)})},Au=function(pt){pt.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:ff(pt),onSetup:df(pt)}),pt.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:as(pt)}),pt.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Na(pt)},onSetup:Rc(pt)})},qf=function(pt){var sn="link unlink openlink",kn="link";pt.ui.registry.addContextMenu("link",{update:function(er){return An(pt.dom.getParents(er,"a"))?sn:kn}})},fu=function(pt){var sn=function(wr){wr.selection.collapse(!1)},kn=function(wr){var mo=pt.selection.getNode();return wr.setDisabled(!_t(pt,mo)),y},er=function(wr){var mo=_t(pt),ja=_n(pt);
205if(!mo&&ja){var ii=en(pt.selection,mo);return X.some(ii.length>0?ii:wr)}else return X.none()};pt.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Ka(pt)},label:"Link",predicate:function(wr){return!!_t(pt,wr)&&P(pt)},initValue:function(){var wr=_t(pt);return wr?Wt(wr):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(wr){var mo=pt.selection.getNode();return wr.setActive(!!_t(pt,mo)),Ka(pt)(wr)},onAction:function(wr){var mo=wr.getValue(),ja=er(mo),ii={href:mo,attach:y};la(pt,ii,{href:mo,text:ja,title:X.none(),rel:X.none(),target:X.none(),class:X.none()}),sn(pt),wr.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:kn,onAction:function(wr){Na(pt),wr.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:kn,onAction:function(wr){ff(pt)(),wr.hide()}}]})};function Sl(){e.add("link",function(pt){ql(pt),Au(pt),qf(pt),fu(pt),Pl(pt),Zu(pt),hc(pt)})}Sl()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(Me){var Qe=typeof Me;return Me===null?"null":Qe==="object"&&(Array.prototype.isPrototypeOf(Me)||Me.constructor&&Me.constructor.name==="Array")?"array":Qe==="object"&&(String.prototype.isPrototypeOf(Me)||Me.constructor&&Me.constructor.name==="String")?"string":Qe},n=function(Me){return function(Qe){return t(Qe)===Me}},r=function(Me){return function(Qe){return typeof Qe===Me}},i=n("string"),l=n("object"),u=n("array"),f=r("boolean"),v=r("function"),h=r("number"),g=function(){},y=function(Me){return function(){return Me}},w=function(Me){return Me},C=function(Me,Qe){return Me===Qe},S=function(Me){return function(Qe){return!Me(Qe)}},T=y(!1),B=y(!0),F=function(){return R},R=function(){var Me=function(jt){return jt()},Qe=w,ht={fold:function(jt,wn){return jt()},isSome:T,isNone:B,getOr:Qe,getOrThunk:Me,getOrDie:function(jt){throw new Error(jt||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:Qe,orThunk:Me,map:F,each:g,bind:F,exists:T,forall:B,filter:function(){return F()},toArray:function(){return[]},toString:y("none()")};return ht}(),N=function(Me){var Qe=y(Me),ht=function(){return wn},jt=function(qn){return qn(Me)},wn={fold:function(qn,Co){return Co(Me)},isSome:B,isNone:T,getOr:Qe,getOrThunk:Qe,getOrDie:Qe,getOrNull:Qe,getOrUndefined:Qe,or:ht,orThunk:ht,map:function(qn){return N(qn(Me))},each:function(qn){qn(Me)},bind:jt,exists:jt,forall:jt,filter:function(qn){return qn(Me)?wn:R},toArray:function(){return[Me]},toString:function(){return"some("+Me+")"}};return wn},A=function(Me){return Me==null?R:N(Me)},X={some:N,none:F,from:A},Z=Array.prototype.slice,z=Array.prototype.push,Y=function(Me,Qe){for(var ht=Me.length,jt=new Array(ht),wn=0;wn<ht;wn++){var qn=Me[wn];jt[wn]=Qe(qn,wn)}return jt},Q=function(Me,Qe){for(var ht=0,jt=Me.length;ht<jt;ht++){var wn=Me[ht];Qe(wn,ht)}},$=function(Me,Qe){for(var ht=[],jt=0,wn=Me.length;jt<wn;jt++){var qn=Me[jt];Qe(qn,jt)&&ht.push(qn)}return ht},te=function(Me,Qe){if(Me.length===0)return[];for(var ht=Qe(Me[0]),jt=[],wn=[],qn=0,Co=Me.length;qn<Co;qn++){var Yo=Me[qn],Aa=Qe(Yo);Aa!==ht&&(jt.push(wn),wn=[]),ht=Aa,wn.push(Yo)}return wn.length!==0&&jt.push(wn),jt},V=function(Me,Qe,ht){return Q(Me,function(jt,wn){ht=Qe(ht,jt,wn)}),ht},K=function(Me,Qe,ht){for(var jt=0,wn=Me.length;jt<wn;jt++){var qn=Me[jt];if(Qe(qn,jt))return X.some(qn);if(ht(qn,jt))break}return X.none()},fe=function(Me,Qe){return K(Me,Qe,T)},de=function(Me){for(var Qe=[],ht=0,jt=Me.length;ht<jt;++ht){if(!u(Me[ht]))throw new Error("Arr.flatten item "+ht+" was not an array, input: "+Me);z.apply(Qe,Me[ht])}return Qe},ne=function(Me,Qe){return de(Y(Me,Qe))},le=function(Me){var Qe=Z.call(Me,0);return Qe.reverse(),Qe},_e=function(Me,Qe){return Qe>=0&&Qe<Me.length?X.some(Me[Qe]):X.none()},M=function(Me){return _e(Me,0)},P=function(Me){return _e(Me,Me.length-1)},U=function(Me,Qe){for(var ht=0;ht<Me.length;ht++){var jt=Qe(Me[ht],ht);
205if(jt.isSome())return jt}return X.none()},j=function(){return j=Object.assign||function(Qe){for(var ht,jt=1,wn=arguments.length;jt<wn;jt++){ht=arguments[jt];for(var qn in ht)Object.prototype.hasOwnProperty.call(ht,qn)&&(Qe[qn]=ht[qn])}return Qe},j.apply(this,arguments)};function ee(Me,Qe,ht){if(ht||arguments.length===2)for(var jt=0,wn=Qe.length,qn;jt<wn;jt++)(qn||!(jt in Qe))&&(qn||(qn=Array.prototype.slice.call(Qe,0,jt)),qn[jt]=Qe[jt]);return Me.concat(qn||Array.prototype.slice.call(Qe))}var ye=function(Me){var Qe=!1,ht;return function(){for(var jt=[],wn=0;wn<arguments.length;wn++)jt[wn]=arguments[wn];return Qe||(Qe=!0,ht=Me.apply(null,jt)),ht}},ie=function(Me,Qe,ht,jt){var wn=Me.isiOS()&&/ipad/i.test(ht)===!0,qn=Me.isiOS()&&!wn,Co=Me.isiOS()||Me.isAndroid(),Yo=Co||jt("(pointer:coarse)"),Aa=wn||!qn&&Co&&jt("(min-device-width:768px)"),Sa=qn||Co&&!Aa,ts=Qe.isSafari()&&Me.isiOS()&&/safari/i.test(ht)===!1,Iu=!Sa&&!Aa&&!ts;return{isiPad:y(wn),isiPhone:y(qn),isTablet:y(Aa),isPhone:y(Sa),isTouch:y(Yo),isAndroid:Me.isAndroid,isiOS:Me.isiOS,isWebView:y(ts),isDesktop:y(Iu)}},he=function(Me,Qe){for(var ht=0;ht<Me.length;ht++){var jt=Me[ht];if(jt.test(Qe))return jt}},re=function(Me,Qe){var ht=he(Me,Qe);if(!ht)return{major:0,minor:0};var jt=function(wn){return Number(Qe.replace(ht,"$"+wn))};return Te(jt(1),jt(2))},be=function(Me,Qe){var ht=String(Qe).toLowerCase();return Me.length===0?Ae():re(Me,ht)},Ae=function(){return Te(0,0)},Te=function(Me,Qe){return{major:Me,minor:Qe}},Ue={nu:Te,detect:be,unknown:Ae},Oe=function(Me,Qe){return U(Qe.brands,function(ht){var jt=ht.brand.toLowerCase();return fe(Me,function(wn){var qn;return jt===((qn=wn.brand)===null||qn===void 0?void 0:qn.toLowerCase())}).map(function(wn){return{current:wn.name,version:Ue.nu(parseInt(ht.version,10),0)}})})},De=function(Me,Qe){var ht=String(Qe).toLowerCase();return fe(Me,function(jt){return jt.search(ht)})},$e=function(Me,Qe){return De(Me,Qe).map(function(ht){var jt=Ue.detect(ht.versionRegexes,Qe);return{current:ht.name,version:jt}})},rt=function(Me,Qe){return De(Me,Qe).map(function(ht){var jt=Ue.detect(ht.versionRegexes,Qe);return{current:ht.name,version:jt}})},ct=function(Me,Qe){return Me.indexOf(Qe)!==-1},lt=function(Me){return function(Qe){return Qe.replace(Me,"")}},ot=lt(/^\s+|\s+$/g),Fe=function(Me){return Me.length>0},We=function(Me){return!Fe(Me)},Ye=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ke=function(Me){return function(Qe){return ct(Qe,Me)}},mt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(Me){return ct(Me,"edge/")&&ct(Me,"chrome")&&ct(Me,"safari")&&ct(Me,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ye],search:function(Me){return ct(Me,"chrome")&&!ct(Me,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(Me){return ct(Me,"msie")||ct(Me,"trident")}},{name:"Opera",versionRegexes:[Ye,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ke("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ke("firefox")},{name:"Safari",versionRegexes:[Ye,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(Me){return(ct(Me,"safari")||ct(Me,"mobile/"))&&ct(Me,"applewebkit")}}],Ct=[{name:"Windows",search:Ke("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(Me){return ct(Me,"iphone")||ct(Me,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ke("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Ke("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ke("linux"),versionRegexes:[]},{name:"Solaris",search:Ke("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ke("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ke("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],bt={browsers:y(mt),oses:y(Ct)},tn="Edge",Ft="Chrome",It="IE",Et="Opera",At="Firefox",vt="Safari",Tt=function(){return Wt({current:void 0,version:Ue.unknown()})},Wt=function(Me){var Qe=Me.current,ht=Me.version,jt=function(wn){return function(){return Qe===wn}};return{current:Qe,version:ht,isEdge:jt(tn),isChrome:jt(Ft),isIE:jt(It),isOpera:jt(Et),isFirefox:jt(At),isSafari:jt(vt)}}
205,xt={unknown:Tt,nu:Wt,edge:y(tn),chrome:y(Ft),ie:y(It),opera:y(Et),firefox:y(At),safari:y(vt)},at="Windows",_t="iOS",en="Android",An="Linux",Vt="OSX",_n="Solaris",Mt="FreeBSD",pn="ChromeOS",En=function(){return zn({current:void 0,version:Ue.unknown()})},zn=function(Me){var Qe=Me.current,ht=Me.version,jt=function(wn){return function(){return Qe===wn}};return{current:Qe,version:ht,isWindows:jt(at),isiOS:jt(_t),isAndroid:jt(en),isOSX:jt(Vt),isLinux:jt(An),isSolaris:jt(_n),isFreeBSD:jt(Mt),isChromeOS:jt(pn)}},nn={unknown:En,nu:zn,windows:y(at),ios:y(_t),android:y(en),linux:y(An),osx:y(Vt),solaris:y(_n),freebsd:y(Mt),chromeos:y(pn)},Yn=function(Me,Qe,ht){var jt=bt.browsers(),wn=bt.oses(),qn=Qe.bind(function(Aa){return Oe(jt,Aa)}).orThunk(function(){return $e(jt,Me)}).fold(xt.unknown,xt.nu),Co=rt(wn,Me).fold(nn.unknown,nn.nu),Yo=ie(Co,qn,Me,ht);return{browser:qn,os:Co,deviceType:Yo}},qr={detect:Yn},Br=function(Me){return window.matchMedia(Me).matches},io=ye(function(){return qr.detect(navigator.userAgent,X.from(navigator.userAgentData),Br)}),xa=function(){return io()},Di=function(Me,Qe,ht){return(Me.compareDocumentPosition(Qe)&ht)!==0},la=function(Me,Qe){return Di(Me,Qe,Node.DOCUMENT_POSITION_CONTAINED_BY)},Na=1,Bi=function(Me,Qe){var ht=Qe||document,jt=ht.createElement("div");if(jt.innerHTML=Me,!jt.hasChildNodes()||jt.childNodes.length>1)throw console.error("HTML does not have a single root node",Me),new Error("HTML must have a single root node");return Ai(jt.childNodes[0])},Ps=function(Me,Qe){var ht=Qe||document,jt=ht.createElement(Me);return Ai(jt)},rs=function(Me,Qe){var ht=Qe||document,jt=ht.createTextNode(Me);return Ai(jt)},Ai=function(Me){if(Me==null)throw new Error("Node cannot be null or undefined");return{dom:Me}},el=function(Me,Qe,ht){return X.from(Me.dom.elementFromPoint(Qe,ht)).map(Ai)},ga={fromHtml:Bi,fromTag:Ps,fromText:rs,fromDom:Ai,fromPoint:el},_s=function(Me,Qe){var ht=Me.dom;if(ht.nodeType!==Na)return!1;var jt=ht;if(jt.matches!==void 0)return jt.matches(Qe);if(jt.msMatchesSelector!==void 0)return jt.msMatchesSelector(Qe);if(jt.webkitMatchesSelector!==void 0)return jt.webkitMatchesSelector(Qe);if(jt.mozMatchesSelector!==void 0)return jt.mozMatchesSelector(Qe);throw new Error("Browser lacks native selectors")},fo=function(Me,Qe){return Me.dom===Qe.dom},il=function(Me,Qe){var ht=Me.dom,jt=Qe.dom;return ht===jt?!1:ht.contains(jt)},Fs=function(Me,Qe){return la(Me.dom,Qe.dom)},us=function(Me,Qe){return xa().browser.isIE()?Fs(Me,Qe):il(Me,Qe)},cs=_s,sl=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),wi=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),bo=tinymce.util.Tools.resolve("tinymce.util.VK"),pl=Object.keys,zt=function(Me,Qe){for(var ht=pl(Me),jt=0,wn=ht.length;jt<wn;jt++){var qn=ht[jt],Co=Me[qn];Qe(Co,qn)}},an=function(Me){return function(Qe,ht){Me[ht]=Qe}},Rt=function(Me,Qe,ht,jt){var wn={};return zt(Me,function(qn,Co){(Qe(qn,Co)?ht:jt)(qn,Co)}),wn},Nn=function(Me,Qe){var ht={};return Rt(Me,Qe,an(ht),g),ht};typeof window!="undefined"||Function("return this;")();var Er=function(Me){var Qe=Me.dom.nodeName;return Qe.toLowerCase()},Yr=function(Me){return Me.dom.nodeType},ft=function(Me){return function(Qe){return Yr(Qe)===Me}},Bt=ft(Na),Rn=function(Me){return function(Qe){return Bt(Qe)&&Er(Qe)===Me}},Qn=function(Me,Qe,ht){if(i(ht)||f(ht)||h(ht))Me.setAttribute(Qe,ht+"");else throw console.error("Invalid call to Attribute.set. Key ",Qe,":: Value ",ht,":: Element ",Me),new Error("Attribute value was not simple")},Ze=function(Me,Qe){var ht=Me.dom;zt(Qe,function(jt,wn){Qn(ht,wn,jt)})},St=function(Me){return V(Me.dom.attributes,function(Qe,ht){return Qe[ht.name]=ht.value,Qe},{})},Gt=function(Me){return X.from(Me.dom.parentNode).map(ga.fromDom)},Xt=function(Me){return Y(Me.dom.childNodes,ga.fromDom)},On=function(Me,Qe){var ht=Me.dom.childNodes;return X.from(ht[Qe]).map(ga.fromDom)},Dn=function(Me){return On(Me,0)},xr=function(Me){return On(Me,Me.dom.childNodes.length-1)},Nr=function(Me,Qe){var ht=Gt(Me);ht.each(function(jt){jt.dom.insertBefore(Qe.dom,Me.dom)})},To=function(Me,Qe){Me.dom.appendChild(Qe.dom)},Bn=function(Me,Qe){Q(Qe,function(ht){Nr(Me,ht)})},po=function(Me,Qe){Q(Qe,function(ht){To(Me,ht)})},Zo=function(Me){var Qe=Me.dom;Qe.parentNode!==null&&Qe.parentNode.removeChild(Qe)},Za=function(Me,Qe){return ga.fromDom(Me.dom.cloneNode(Qe))},os=function(Me){return Za(Me,!0)},ua=function(Me,Qe){var ht=ga.fromTag(Qe),jt=St(Me);return Ze(ht,jt),ht},Xu=function(Me,Qe){var ht=ua(Me,Qe);Nr(Me,ht);var jt=Xt(Me);return po(ht,jt),Zo(Me),ht},Tu=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),as=tinymce.util.Tools.resolve("tinymce.util.Tools"),ff=function(Me){return function(Qe){return Qe&&Qe.nodeName.toLowerCase()===Me}},Pl=function(Me){return function(Qe){return Qe&&Me.test(Qe.nodeName)}},Fl=function(Me){return Me&&Me.nodeType===3},Ka=Pl(/^(OL|UL|DL)$/),df=Pl(/^(OL|UL)$/),Rc=ff("ol"),Zu=Pl(/^(LI|DT|DD)$/),hc=Pl(/^(DT|DD)$/),ql=Pl(/^(TH|TD)$/),Au=ff("br"),qf=function(Me){return Me.parentNode.firstChild===Me},fu=function(Me,Qe){return Qe&&!!Me.schema.getTextBlockElements()[Qe.nodeName]},Sl=function(Me,Qe){return Me&&Me.nodeName in Qe},pt=function(Me,Qe){return Au(Qe)?Me.isBlock(Qe.nextSibling)&&!Au(Qe.previousSibling):!1},sn=function(Me,Qe,ht){var jt=Me.isEmpty(Qe);return ht&&Me.select("span[data-mce-type=bookmark]",Qe).length>0?!1:jt},kn=function(Me,Qe){return Me.isChildOf(Qe,Me.getRoot())},er=function(Me){return Me.getParam("lists_indent_on_tab",!0)},wr=function(Me){var Qe=Me.getParam("forced_root_block","p");return Qe===!1?"":Qe===!0?"p":Qe},mo=function(Me){return Me.getParam("forced_root_block_attrs",{})},ja=function(Me,Qe){var ht=Me.dom,jt=Me.schema.getBlockElements(),wn=ht.createFragment(),qn=wr(Me),Co,Yo,Aa;if(qn&&(Yo=ht.create(qn),Yo.tagName===qn.toUpperCase()&&ht.setAttribs(Yo,mo(Me)),Sl(Qe.firstChild,jt)||wn.appendChild(Yo)),Qe)for(;Co=Qe.firstChild;){var Sa=Co.nodeName;!Aa&&(Sa!=="SPAN"||Co.getAttribute("data-mce-type")!=="bookmark")&&(Aa=!0),Sl(Co,jt)?(wn.appendChild(Co),Yo=null):qn?(Yo||(Yo=ht.create(qn),wn.appendChild(Yo)),Yo.appendChild(Co)):wn.appendChild(Co)}return qn?Aa||Yo.appendChild(ht.create("br",{"data-mce-bogus":"1"})):wn.appendChild(ht.create("br")),wn},ii=Tu.DOM,da=function(Me,Qe,ht){var jt=function(Sa){as.each(wn,function(ts){Sa.parentNode.insertBefore(ts,ht.parentNode)}),ii.remove(Sa)},wn=ii.select('span[data-mce-type="bookmark"]',Qe),qn=ja(Me,ht),Co=ii.createRng();Co.setStartAfter(ht),Co.setEndAfter(Qe);for(var Yo=Co.extractContents(),Aa=Yo.firstChild;Aa;Aa=Aa.firstChild)if(Aa.nodeName==="LI"&&Me.dom.isEmpty(Aa)){ii.remove(Aa);break}Me.dom.isEmpty(Yo)||ii.insertAfter(Yo,Qe),ii.insertAfter(qn,Qe),sn(Me.dom,ht.parentNode)&&jt(ht.parentNode),ii.remove(ht),sn(Me.dom,Qe)&&ii.remove(Qe)},Ci=Rn("dd"),es=Rn("dt"),pc=function(Me,Qe){Ci(Qe)?Xu(Qe,"dt"):es(Qe)&&Gt(Qe).each(function(ht){return da(Me,ht.dom,Qe.dom)})},Yi=function(Me){es(Me)&&Xu(Me,"dd")},mc=function(Me,Qe,ht){Qe==="Indent"?Q(ht,Yi):Q(ht,function(jt){return pc(Me,jt)}
205)},Io=function(Me,Qe){if(Fl(Me))return{container:Me,offset:Qe};var ht=sl.getNode(Me,Qe);return Fl(ht)?{container:ht,offset:Qe>=Me.childNodes.length?ht.data.length:0}:ht.previousSibling&&Fl(ht.previousSibling)?{container:ht.previousSibling,offset:ht.previousSibling.data.length}:ht.nextSibling&&Fl(ht.nextSibling)?{container:ht.nextSibling,offset:0}:{container:Me,offset:Qe}},gc=function(Me){var Qe=Me.cloneRange(),ht=Io(Me.startContainer,Me.startOffset);Qe.setStart(ht.container,ht.offset);var jt=Io(Me.endContainer,Me.endOffset);return Qe.setEnd(jt.container,jt.offset),Qe},Wd=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),Ea=function(Me,Qe){var ht=Qe||Me.selection.getStart(!0);return Me.dom.getParent(ht,"OL,UL,DL",Qu(Me,ht))},Xf=function(Me,Qe){return Me&&Qe.length===1&&Qe[0]===Me},ku=function(Me){return $(Me.querySelectorAll("ol,ul,dl"),Ka)},Sd=function(Me){var Qe=Ea(Me),ht=Me.selection.getSelectedBlocks();return Xf(Qe,ht)?ku(Qe):$(ht,function(jt){return Ka(jt)&&Qe!==jt})},fi=function(Me,Qe){var ht=as.map(Qe,function(jt){var wn=Me.dom.getParent(jt,"li,dd,dt",Qu(Me,jt));return wn||jt});return Wd.unique(ht)},ml=function(Me){var Qe=Me.selection.getSelectedBlocks();return $(fi(Me,Qe),Zu)},Bv=function(Me){return $(ml(Me),hc)},Qu=function(Me,Qe){var ht=Me.dom.getParents(Qe,"TD,TH");return ht.length>0?ht[0]:Me.getBody()},ws=function(Me,Qe){var ht=Me.dom.getParents(Qe,"ol,ul",Qu(Me,Qe));return P(ht)},vf=function(Me){var Qe=ws(Me,Me.selection.getStart()),ht=$(Me.selection.getSelectedBlocks(),df);return Qe.toArray().concat(ht)},Gn=function(Me){var Qe=vf(Me);return hf(Me,Qe)},hf=function(Me,Qe){var ht=Y(Qe,function(jt){return ws(Me,jt).getOr(jt)});return Wd.unique(ht)},Cs=function(Me,Qe,ht){return ht===void 0&&(ht=C),Me.exists(function(jt){return ht(jt,Qe)})},y1=function(Me,Qe,ht){return Me.isSome()&&Qe.isSome()?X.some(ht(Me.getOrDie(),Qe.getOrDie())):X.none()},Yc=function(Me,Qe){var ht=Qe||document,jt=ht.createDocumentFragment();return Q(Me,function(wn){jt.appendChild(wn.dom)}),ga.fromDom(jt)},je=function(Me,Qe,ht){return Me.fire("ListMutation",{action:Qe,element:ht})},xe=function(Me){return Me.style!==void 0&&v(Me.style.getPropertyValue)},pe=function(Me,Qe,ht){if(!i(ht))throw console.error("Invalid call to CSS.set. Property ",Qe,":: Value ",ht,":: Element ",Me),new Error("CSS value must be a string: "+ht);xe(Me)&&Me.style.setProperty(Qe,ht)},Re=function(Me,Qe,ht){var jt=Me.dom;pe(jt,Qe,ht)},st=function(Me,Qe){To(Me.item,Qe.list)},Pt=function(Me){for(var Qe=1;Qe<Me.length;Qe++)st(Me[Qe-1],Me[Qe])},mn=function(Me,Qe){y1(P(Me),M(Qe),st)},ar=function(Me,Qe){var ht={list:ga.fromTag(Qe,Me),item:ga.fromTag("li",Me)};return To(ht.list,ht.item),ht},vo=function(Me,Qe,ht){for(var jt=[],wn=0;wn<ht;wn++)jt.push(ar(Me,Qe.listType));return jt},So=function(Me,Qe){for(var ht=0;ht<Me.length-1;ht++)Re(Me[ht].item,"list-style-type","none");P(Me).each(function(jt){Ze(jt.list,Qe.listAttributes),Ze(jt.item,Qe.itemAttributes),po(jt.item,Qe.content)})},yr=function(Me,Qe){Er(Me.list)!==Qe.listType&&(Me.list=Xu(Me.list,Qe.listType)),Ze(Me.list,Qe.listAttributes)},uo=function(Me,Qe,ht){var jt=ga.fromTag("li",Me);return Ze(jt,Qe),po(jt,ht),jt},na=function(Me,Qe){To(Me.list,Qe),Me.item=Qe},Qo=function(Me,Qe,ht){var jt=Qe.slice(0,ht.depth);return P(jt).each(function(wn){var qn=uo(Me,ht.itemAttributes,ht.content);na(wn,qn),yr(wn,ht)}),jt},jo=function(Me,Qe,ht){var jt=vo(Me,ht,ht.depth-Qe.length);return Pt(jt),So(jt,ht),mn(Qe,jt),Qe.concat(jt)},Vi=function(Me,Qe){var ht=V(Qe,function(jt,wn){return wn.depth>jt.length?jo(Me,jt,wn):Qo(Me,jt,wn)},[]);return M(ht).map(function(jt){return jt.list})},Vo=function(Me){return cs(Me,"OL,UL")},di=function(Me){return Dn(Me).exists(Vo)},si=function(Me){return xr(Me).exists(Vo)},$l=function(Me){return Me.depth>0},ha=function(Me){return Me.isSelected},qc=function(Me){var Qe=Xt(Me),ht=si(Me)?Qe.slice(0,-1):Qe;return Y(ht,os)}
205,ps=function(Me,Qe,ht){return Gt(Me).filter(Bt).map(function(jt){return{depth:Qe,dirty:!1,isSelected:ht,content:qc(Me),itemAttributes:St(Me),listAttributes:St(jt),listType:Er(jt)}})},$s=function(Me,Qe){switch(Me){case"Indent":Qe.depth++;break;case"Outdent":Qe.depth--;break;case"Flatten":Qe.depth=0}Qe.dirty=!0},Eh=function(Me,Qe){Me.listType=Qe.listType,Me.listAttributes=j({},Qe.listAttributes)},zs=function(Me){Me.listAttributes=Nn(Me.listAttributes,function(Qe,ht){return ht!=="start"})},Sh=function(Me,Qe){var ht=Me[Qe].depth,jt=function(qn){return qn.depth===ht&&!qn.dirty},wn=function(qn){return qn.depth<ht};return K(le(Me.slice(0,Qe)),jt,wn).orThunk(function(){return K(Me.slice(Qe+1),jt,wn)})},Zf=function(Me){return Q(Me,function(Qe,ht){Sh(Me,ht).fold(function(){Qe.dirty&&zs(Qe)},function(jt){return Eh(Qe,jt)})}),Me},Jo=function(Me){var Qe=Me,ht=function(){return Qe},jt=function(wn){Qe=wn};return{get:ht,set:jt}},Tl=function(Me,Qe,ht,jt){return Dn(jt).filter(Vo).fold(function(){Qe.each(function(Co){fo(Co.start,jt)&&ht.set(!0)});var wn=ps(jt,Me,ht.get());Qe.each(function(Co){fo(Co.end,jt)&&ht.set(!1)});var qn=xr(jt).filter(Vo).map(function(Co){return is(Me,Qe,ht,Co)}).getOr([]);return wn.toArray().concat(qn)},function(wn){return is(Me,Qe,ht,wn)})},is=function(Me,Qe,ht,jt){return ne(Xt(jt),function(wn){var qn=Vo(wn)?is:Tl,Co=Me+1;return qn(Co,Qe,ht,wn)})},ks=function(Me,Qe){var ht=Jo(!1),jt=0;return Y(Me,function(wn){return{sourceList:wn,entries:is(jt,Qe,ht,wn)}})},zl=function(Me,Qe){var ht=Zf(Qe);return Y(ht,function(jt){var wn=Yc(jt.content);return ga.fromDom(ja(Me,wn.dom))})},ll=function(Me,Qe){var ht=Zf(Qe);return Vi(Me.contentDocument,ht).toArray()},Pv=function(Me,Qe){return ne(te(Qe,$l),function(ht){var jt=M(ht).exists($l);return jt?ll(Me,ht):zl(Me,ht)})},pf=function(Me,Qe){Q($(Me,ha),function(ht){return $s(Qe,ht)})},ai=function(Me){var Qe=Y(ml(Me),ga.fromDom);return y1(fe(Qe,S(di)),fe(le(Qe),S(di)),function(ht,jt){return{start:ht,end:jt}})},Pi=function(Me,Qe,ht){var jt=ks(Qe,ai(Me));Q(jt,function(wn){pf(wn.entries,ht);var qn=Pv(Me,wn.entries);Q(qn,function(Co){je(Me,ht==="Indent"?"IndentList":"OutdentList",Co.dom)}),Bn(wn.sourceList,qn),Zo(wn.sourceList)})},tl=function(Me,Qe){var ht=Y(Gn(Me),ga.fromDom),jt=Y(Bv(Me),ga.fromDom),wn=!1;if(ht.length||jt.length){var qn=Me.selection.getBookmark();Pi(Me,ht,Qe),mc(Me,Qe,jt),Me.selection.moveToBookmark(qn),Me.selection.setRng(gc(Me.selection.getRng())),Me.nodeChanged(),wn=!0}return wn},Gd=function(Me){return tl(Me,"Indent")},gl=function(Me){return tl(Me,"Outdent")},mf=function(Me){return tl(Me,"Flatten")},v2=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),Fv=Tu.DOM,Ui=function(Me){var Qe={},ht=function(jt){var wn=Me[jt?"startContainer":"endContainer"],qn=Me[jt?"startOffset":"endOffset"];if(wn.nodeType===1){var Co=Fv.create("span",{"data-mce-type":"bookmark"});wn.hasChildNodes()?(qn=Math.min(qn,wn.childNodes.length-1),jt?wn.insertBefore(Co,wn.childNodes[qn]):Fv.insertAfter(Co,wn.childNodes[qn])):wn.appendChild(Co),wn=Co,qn=0}Qe[jt?"startContainer":"endContainer"]=wn,Qe[jt?"startOffset":"endOffset"]=qn};return ht(!0),Me.collapsed||ht(),Qe},Qf=function(Me){var Qe=function(jt){var wn,qn=function(Aa){for(var Sa=Aa.parentNode.firstChild,ts=0;Sa;){if(Sa===Aa)return ts;(Sa.nodeType!==1||Sa.getAttribute("data-mce-type")!=="bookmark")&&ts++,Sa=Sa.nextSibling}return-1},Co=wn=Me[jt?"startContainer":"endContainer"],Yo=Me[jt?"startOffset":"endOffset"];!Co||(Co.nodeType===1&&(Yo=qn(Co),Co=Co.parentNode,Fv.remove(wn),!Co.hasChildNodes()&&Fv.isBlock(Co)&&Co.appendChild(Fv.create("br"))),Me[jt?"startContainer":"endContainer"]=Co,Me[jt?"startOffset":"endOffset"]=Yo)};Qe(!0),Qe();var ht=Fv.createRng();return ht.setStart(Me.startContainer,Me.startOffset),Me.endContainer&&ht.setEnd(Me.endContainer,Me.endOffset),gc(ht)},Jf=function(Me){switch(Me){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},yc=function(Me){return/\btox\-/.test(Me.className)},Ws=function(Me,Qe,ht){var jt=function(qn){var Co=K(qn.parents,Ka,ql).filter(function(Yo){return Yo.nodeName===Qe&&!yc(Yo)}).isSome();ht(Co)},wn=Me.dom.getParents(Me.selection.getNode());return jt({parents:wn}),Me.on("NodeChange",jt),function(){return Me.off("NodeChange",jt)}
205},Kd=function(Me,Qe,ht){var jt=ht["list-style-type"]?ht["list-style-type"]:null;Me.setStyle(Qe,"list-style-type",jt)},ed=function(Me,Qe){as.each(Qe,function(ht,jt){Me.setAttribute(jt,ht)})},Ou=function(Me,Qe,ht){ed(Qe,ht["list-attributes"]),as.each(Me.select("li",Qe),function(jt){ed(jt,ht["list-item-attributes"])})},Mu=function(Me,Qe,ht){Kd(Me,Qe,ht),Ou(Me,Qe,ht)},Os=function(Me,Qe,ht){as.each(ht,function(jt){var wn;return Me.setStyle(Qe,(wn={},wn[jt]="",wn))})},$v=function(Me,Qe,ht,jt){var wn=Qe[ht?"startContainer":"endContainer"],qn=Qe[ht?"startOffset":"endOffset"];for(wn.nodeType===1&&(wn=wn.childNodes[Math.min(qn,wn.childNodes.length-1)]||wn),!ht&&Au(wn.nextSibling)&&(wn=wn.nextSibling);wn.parentNode!==jt;){if(fu(Me,wn)||/^(TD|TH)$/.test(wn.parentNode.nodeName))return wn;wn=wn.parentNode}return wn},gf=function(Me,Qe,ht){for(var jt=[],wn=Me.dom,qn=$v(Me,Qe,!0,ht),Co=$v(Me,Qe,!1,ht),Yo,Aa=[],Sa=qn;Sa&&(Aa.push(Sa),Sa!==Co);Sa=Sa.nextSibling);return as.each(Aa,function(ts){if(fu(Me,ts)){jt.push(ts),Yo=null;return}if(wn.isBlock(ts)||Au(ts)){Au(ts)&&wn.remove(ts),Yo=null;return}var Iu=ts.nextSibling;if(v2.isBookmarkNode(ts)&&(Ka(Iu)||fu(Me,Iu)||!Iu&&ts.parentNode===ht)){Yo=null;return}Yo||(Yo=wn.create("p"),ts.parentNode.insertBefore(Yo,ts),jt.push(Yo)),Yo.appendChild(ts)}),jt},yl=function(Me,Qe,ht){var jt=Me.getStyle(Qe,"list-style-type"),wn=ht?ht["list-style-type"]:"";return wn=wn===null?"":wn,jt===wn},Th=function(Me,Qe,ht){var jt=Me.selection.getRng(),wn="LI",qn=Qu(Me,Me.selection.getStart(!0)),Co=Me.dom;if(Co.getContentEditable(Me.selection.getNode())!=="false"){Qe=Qe.toUpperCase(),Qe==="DL"&&(wn="DT");var Yo=Ui(jt),Aa=gf(Me,jt,qn);as.each(Aa,function(Sa){var ts,Iu=Sa.previousSibling,Ys=Sa.parentNode;Zu(Ys)||(Iu&&Ka(Iu)&&Iu.nodeName===Qe&&yl(Co,Iu,ht)?(ts=Iu,Sa=Co.rename(Sa,wn),Iu.appendChild(Sa)):(ts=Co.create(Qe),Sa.parentNode.insertBefore(ts,Sa),ts.appendChild(Sa),Sa=Co.rename(Sa,wn)),Os(Co,Sa,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),Mu(Co,ts,ht),Hv(Me.dom,ts))}),Me.selection.setRng(Qf(Yo))}},$m=function(Me,Qe){return Me&&Qe&&Ka(Me)&&Me.nodeName===Qe.nodeName},b1=function(Me,Qe,ht){var jt=Me.getStyle(Qe,"list-style-type",!0),wn=Me.getStyle(ht,"list-style-type",!0);return jt===wn},zv=function(Me,Qe){return Me.className===Qe.className},Gs=function(Me,Qe,ht){return $m(Qe,ht)&&b1(Me,Qe,ht)&&zv(Qe,ht)},Hv=function(Me,Qe){var ht,jt;if(ht=Qe.nextSibling,Gs(Me,Qe,ht)){for(;jt=ht.firstChild;)Qe.appendChild(jt);Me.remove(ht)}if(ht=Qe.previousSibling,Gs(Me,Qe,ht)){for(;jt=ht.lastChild;)Qe.insertBefore(jt,Qe.firstChild);Me.remove(ht)}},yf=function(Me,Qe,ht,jt){if(Qe.nodeName!==ht){var wn=Me.dom.rename(Qe,ht);Mu(Me.dom,wn,jt),je(Me,Jf(ht),wn)}else Mu(Me.dom,Qe,jt),je(Me,Jf(ht),Qe)},Al=function(Me,Qe,ht,jt,wn){var qn=Ka(Qe);if(qn&&Qe.nodeName===jt&&!Xc(wn))mf(Me);else{Th(Me,jt,wn);var Co=Ui(Me.selection.getRng()),Yo=qn?ee([Qe],ht,!0):ht;as.each(Yo,function(Aa){yf(Me,Aa,jt,wn)}),Me.selection.setRng(Qf(Co))}},Xc=function(Me){return"list-style-type"in Me},_1=function(Me,Qe,ht,jt){if(Qe!==Me.getBody())if(Qe)if(Qe.nodeName===ht&&!Xc(jt)&&!yc(Qe))mf(Me);else{var wn=Ui(Me.selection.getRng());Mu(Me.dom,Qe,jt);var qn=Me.dom.rename(Qe,ht);Hv(Me.dom,qn),Me.selection.setRng(Qf(wn)),Th(Me,ht,jt),je(Me,Jf(ht),qn)}else Th(Me,ht,jt),je(Me,Jf(ht),Qe)},Td=function(Me,Qe,ht){var jt=Ea(Me),wn=Sd(Me),qn=l(ht)?ht:{};wn.length>0?Al(Me,jt,wn,Qe,qn):_1(Me,jt,Qe,qn)},xs=Tu.DOM,bc=function(Me,Qe){var ht=Qe.parentNode;if(ht.nodeName==="LI"&&ht.firstChild===Qe){var jt=ht.previousSibling;jt&&jt.nodeName==="LI"?(jt.appendChild(Qe),sn(Me,ht)&&xs.remove(ht)):xs.setStyle(ht,"listStyleType","none")}if(Ka(ht)){var jt=ht.previousSibling;jt&&jt.nodeName==="LI"&&jt.appendChild(Qe)}},Yd=function(Me,Qe){var ht=as.grep(Me.select("ol,ul",Qe));as.each(ht,function(jt){bc(Me,jt)})},du=function(Me,Qe,ht,jt){var wn=Qe.startContainer,qn=Qe.startOffset;if(Fl(wn)&&(ht?qn<wn.data.length:qn>0))return wn;var Co=Me.schema.getNonEmptyElements();wn.nodeType===1&&(wn=sl.getNode(wn,qn));var Yo=new wi(wn,jt);for(ht&&pt(Me.dom,wn)&&Yo.next();wn=Yo[ht?"next":"prev2"]();)if(wn.nodeName==="LI"&&!wn.hasChildNodes()||Co[wn.nodeName]||Fl(wn)&&wn.data.length>0)return wn},Nu=function(Me,Qe){var ht=Qe.childNodes;return ht.length===1&&!Ka(ht[0])&&Me.isBlock(ht[0])},w1=function(Me,Qe){Nu(Me,Qe)&&Me.remove(Qe.firstChild,!0)},qd=function(Me,Qe,ht){var jt,wn=Nu(Me,ht)?ht.firstChild:ht;if(w1(Me,Qe),!sn(Me,Qe,!0))for(;jt=Qe.firstChild;)wn.appendChild(jt)},Xd=function(Me,Qe,ht){var jt,wn=Qe.parentNode;if(!(!kn(Me,Qe)||!kn(Me,ht))){Ka(ht.lastChild)&&(jt=ht.lastChild),wn===ht.lastChild&&Au(wn.previousSibling)&&Me.remove(wn.previousSibling);var qn=ht.lastChild;qn&&Au(qn)&&Qe.hasChildNodes()&&Me.remove(qn),sn(Me,ht,!0)&&Me.$(ht).empty(),qd(Me,Qe,ht),jt&&ht.appendChild(jt);var Co=us(ga.fromDom(ht),ga.fromDom(Qe)),Yo=Co?Me.getParents(Qe,Ka,ht):[];Me.remove(Qe),Q(Yo,function(Aa){sn(Me,Aa)&&Aa!==Me.getRoot()&&Me.remove(Aa)})}},Vv=function(Me,Qe,ht){Me.dom.$(ht).empty(),Xd(Me.dom,Qe,ht),Me.selection.setCursorLocation(ht,0)},C1=function(Me,Qe,ht,jt){var wn=Me.dom;if(wn.isEmpty(jt))Vv(Me,ht,jt);else{var qn=Ui(Qe);
205Xd(wn,ht,jt),Me.selection.setRng(Qf(qn))}},Ko=function(Me,Qe,ht,jt){var wn=Ui(Qe);Xd(Me.dom,ht,jt);var qn=Qf(wn);Me.selection.setRng(qn)},bf=function(Me,Qe){var ht=Me.dom,jt=Me.selection,wn=jt.getStart(),qn=Qu(Me,wn),Co=ht.getParent(jt.getStart(),"LI",qn);if(Co){var Yo=Co.parentNode;if(Yo===Me.getBody()&&sn(ht,Yo))return!0;var Aa=gc(jt.getRng()),Sa=ht.getParent(du(Me,Aa,Qe,qn),"LI",qn);if(Sa&&Sa!==Co)return Me.undoManager.transact(function(){Qe?C1(Me,Aa,Sa,Co):qf(Co)?gl(Me):Ko(Me,Aa,Co,Sa)}),!0;if(!Sa&&!Qe&&Aa.startOffset===0&&Aa.endOffset===0)return Me.undoManager.transact(function(){mf(Me)}),!0}return!1},Ju=function(Me,Qe,ht){var jt=Me.getParent(Qe.parentNode,Me.isBlock,ht);Me.remove(Qe),jt&&Me.isEmpty(jt)&&Me.remove(jt)},Xl=function(Me,Qe){var ht=Me.dom,jt=Me.selection.getStart(),wn=Qu(Me,jt),qn=ht.getParent(jt,ht.isBlock,wn);if(qn&&ht.isEmpty(qn)){var Co=gc(Me.selection.getRng()),Yo=ht.getParent(du(Me,Co,Qe,wn),"LI",wn);if(Yo)return Me.undoManager.transact(function(){Ju(ht,qn,wn),Hv(ht,Yo.parentNode),Me.selection.select(Yo,!0),Me.selection.collapse(Qe)}),!0}return!1},td=function(Me,Qe){return bf(Me,Qe)||Xl(Me,Qe)},Ks=function(Me){var Qe=Me.selection.getStart(),ht=Qu(Me,Qe),jt=Me.dom.getParent(Qe,"LI,DT,DD",ht);return jt||ml(Me).length>0?(Me.undoManager.transact(function(){Me.execCommand("Delete"),Yd(Me.dom,Me.getBody())}),!0):!1},kl=function(Me,Qe){return Me.selection.isCollapsed()?td(Me,Qe):Ks(Me)},nl=function(Me){Me.on("keydown",function(Qe){Qe.keyCode===bo.BACKSPACE?kl(Me,!1)&&Qe.preventDefault():Qe.keyCode===bo.DELETE&&kl(Me,!0)&&Qe.preventDefault()})},Zd=function(Me){return{backspaceDelete:function(Qe){kl(Me,Qe)}}},bl=function(Me,Qe){var ht=Ea(Me);Me.undoManager.transact(function(){l(Qe.styles)&&Me.dom.setStyles(ht,Qe.styles),l(Qe.attrs)&&zt(Qe.attrs,function(jt,wn){return Me.dom.setAttrib(ht,wn,jt)})})},Jr=function(Me){var Qe=le(ot(Me).split("")),ht=Y(Qe,function(jt,wn){var qn=jt.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,wn)*qn});return V(ht,function(jt,wn){return jt+wn},0)},rv=function(Me){if(Me--,Me<0)return"";var Qe=Me%26,ht=Math.floor(Me/26),jt=rv(ht),wn=String.fromCharCode("A".charCodeAt(0)+Qe);return jt+wn},Ah=function(Me){return/^[A-Z]+$/.test(Me)},ya=function(Me){return/^[a-z]+$/.test(Me)},qi=function(Me){return/^[0-9]+$/.test(Me)},Np=function(Me){return qi(Me)?2:Ah(Me)?0:ya(Me)?1:We(Me)?3:4},nd=function(Me){switch(Np(Me)){case 2:return X.some({listStyleType:X.none(),start:Me});case 0:return X.some({listStyleType:X.some("upper-alpha"),start:Jr(Me).toString()});case 1:return X.some({listStyleType:X.some("lower-alpha"),start:Jr(Me).toString()});case 3:return X.some({listStyleType:X.none(),start:""});case 4:return X.none()}},fs=function(Me){var Qe=parseInt(Me.start,10);return Cs(Me.listStyleType,"upper-alpha")?rv(Qe):Cs(Me.listStyleType,"lower-alpha")?rv(Qe).toLowerCase():Me.start},x1=function(Me){var Qe=Ea(Me);!Rc(Qe)||Me.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:fs({start:Me.dom.getAttrib(Qe,"start","1"),listStyleType:X.some(Me.dom.getStyle(Qe,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(ht){var jt=ht.getData();nd(jt.start).each(function(wn){Me.execCommand("mceListUpdate",!1,{attrs:{start:wn.start==="1"?"":wn.start},styles:{"list-style-type":wn.listStyleType.getOr("")}})}),ht.close()}})},Du=function(Me,Qe){return function(){var ht=Ea(Me);return ht&&ht.nodeName===Qe}},x0=function(Me){Me.addCommand("mceListProps",function(){x1(Me)})},pa=function(Me){Me.on("BeforeExecCommand",function(Qe){var ht=Qe.command.toLowerCase();ht==="indent"?Gd(Me):ht==="outdent"&&gl(Me)}),Me.addCommand("InsertUnorderedList",function(Qe,ht){Td(Me,"UL",ht)}),Me.addCommand("InsertOrderedList",function(Qe,ht){Td(Me,"OL",ht)}),Me.addCommand("InsertDefinitionList",function(Qe,ht){Td(Me,"DL",ht)}),Me.addCommand("RemoveList",function(){mf(Me)}),x0(Me),Me.addCommand("mceListUpdate",function(Qe,ht){l(ht)&&bl(Me,ht)}),Me.addQueryStateHandler("InsertUnorderedList",Du(Me,"UL")),Me.addQueryStateHandler("InsertOrderedList",Du(Me,"OL")),Me.addQueryStateHandler("InsertDefinitionList",Du(Me,"DL"))}
205,ec=function(Me){Me.on("keydown",function(Qe){Qe.keyCode!==bo.TAB||bo.metaKeyPressed(Qe)||Me.undoManager.transact(function(){(Qe.shiftKey?gl(Me):Gd(Me))&&Qe.preventDefault()})})},E0=function(Me){er(Me)&&ec(Me),nl(Me)},h2=function(Me){var Qe=function(ht){return function(){return Me.execCommand(ht)}};Me.hasPlugin("advlist")||(Me.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:Qe("InsertOrderedList"),onSetup:function(ht){return Ws(Me,"OL",ht.setActive)}}),Me.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:Qe("InsertUnorderedList"),onSetup:function(ht){return Ws(Me,"UL",ht.setActive)}}))},Xi=function(Me){var Qe={text:"List properties...",icon:"ordered-list",onAction:function(){return Me.execCommand("mceListProps")},onSetup:function(ht){return Ws(Me,"OL",function(jt){return ht.setDisabled(!jt)})}};Me.ui.registry.addMenuItem("listprops",Qe),Me.ui.registry.addContextMenu("lists",{update:function(ht){var jt=Ea(Me,ht);return Rc(jt)?["listprops"]:[]}})};function ov(){e.add("lists",function(Me){return Me.hasPlugin("rtc",!0)===!1?(E0(Me),pa(Me)):x0(Me),h2(Me),Xi(Me),Zd(Me)})}ov()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(an){for(var Rt,Nn=1,Er=arguments.length;Nn<Er;Nn++){Rt=arguments[Nn];for(var Yr in Rt)Object.prototype.hasOwnProperty.call(Rt,Yr)&&(an[Yr]=Rt[Yr])}return an},t.apply(this,arguments)},n=function(zt){var an=typeof zt;return zt===null?"null":an==="object"&&(Array.prototype.isPrototypeOf(zt)||zt.constructor&&zt.constructor.name==="Array")?"array":an==="object"&&(String.prototype.isPrototypeOf(zt)||zt.constructor&&zt.constructor.name==="String")?"string":an},r=function(zt){return function(an){return n(an)===zt}},i=r("string"),l=r("object"),u=r("array"),f=function(zt){return zt==null},v=function(zt){return!f(zt)},h=function(){},g=function(zt){return function(){return zt}},y=function(zt){return zt},w=g(!1),C=g(!0),S=function(){return T},T=function(){var zt=function(Nn){return Nn()},an=y,Rt={fold:function(Nn,Er){return Nn()},isSome:w,isNone:C,getOr:an,getOrThunk:zt,getOrDie:function(Nn){throw new Error(Nn||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:an,orThunk:zt,map:S,each:h,bind:S,exists:w,forall:C,filter:function(){return S()},toArray:function(){return[]},toString:g("none()")};return Rt}(),B=function(zt){var an=g(zt),Rt=function(){return Er},Nn=function(Yr){return Yr(zt)},Er={fold:function(Yr,ft){return ft(zt)},isSome:C,isNone:w,getOr:an,getOrThunk:an,getOrDie:an,getOrNull:an,getOrUndefined:an,or:Rt,orThunk:Rt,map:function(Yr){return B(Yr(zt))},each:function(Yr){Yr(zt)},bind:Nn,exists:Nn,forall:Nn,filter:function(Yr){return Yr(zt)?Er:T},toArray:function(){return[zt]},toString:function(){return"some("+zt+")"}};return Er},F=function(zt){return zt==null?T:B(zt)},R={some:B,none:S,from:F},N=Array.prototype.push,A=function(zt,an){for(var Rt=0,Nn=zt.length;Rt<Nn;Rt++){var Er=zt[Rt];an(Er,Rt)}},X=function(zt){for(var an=[],Rt=0,Nn=zt.length;Rt<Nn;++Rt){if(!u(zt[Rt]))throw new Error("Arr.flatten item "+Rt+" was not an array, input: "+zt);N.apply(an,zt[Rt])}return an},Z=function(zt){var an=zt,Rt=function(){return an},Nn=function(Er){an=Er};return{get:Rt,set:Nn}},z=Object.keys,Y=Object.hasOwnProperty,Q=function(zt,an){for(var Rt=z(zt),Nn=0,Er=Rt.length;Nn<Er;Nn++){var Yr=Rt[Nn],ft=zt[Yr];an(ft,Yr)}},$=function(zt,an){return te(zt,an)?R.from(zt[an]):R.none()},te=function(zt,an){return Y.call(zt,an)},V=function(zt){return zt.getParam("media_scripts")},K=function(zt){return zt.getParam("audio_template_callback")},fe=function(zt){return zt.getParam("video_template_callback")},de=function(zt){return zt.getParam("media_live_embeds",!0)},ne=function(zt){return zt.getParam("media_filter_html",!0)},le=function(zt){return zt.getParam("media_url_resolver")},_e=function(zt){return zt.getParam("media_alt_source",!0)},M=function(zt){return zt.getParam("media_poster",!0)},P=function(zt){return zt.getParam("media_dimensions",!0)},U=tinymce.util.Tools.resolve("tinymce.util.Tools"),j=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),ee=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),ye=function(zt,an){if(zt){for(var Rt=0;Rt<zt.length;Rt++)if(an.indexOf(zt[Rt].filter)!==-1)return zt[Rt]}},ie=j.DOM,he=function(zt){return zt.replace(/px$/,"")},re=function(zt){var an=zt.map.style,Rt=an?ie.parseStyle(an):{};return{type:"ephox-embed-iri",source:zt.map["data-ephox-embed-iri"],altsource:"",poster:"",width:$(Rt,"max-width").map(he).getOr(""),height:$(Rt,"max-height").map(he).getOr("")}},be=function(zt,an){var Rt=Z(!1),Nn={};return ee({validate:!1,allow_conditional_comments:!0,start:function(Er,Yr){if(!Rt.get())if(te(Yr.map,"data-ephox-embed-iri"))Rt.set(!0),Nn=re(Yr);else{if(!Nn.source&&Er==="param"&&(Nn.source=Yr.map.movie),(Er==="iframe"||Er==="object"||Er==="embed"||Er==="video"||Er==="audio")&&(Nn.type||(Nn.type=Er),Nn=U.extend(Yr.map,Nn)),Er==="script"){var ft=ye(zt,Yr.map.src);if(!ft)return;Nn={type:"script",source:Yr.map.src,width:String(ft.width),height:String(ft.height)}}Er==="source"&&(Nn.source?Nn.altsource||(Nn.altsource=Yr.map.src):Nn.source=Yr.map.src),Er==="img"&&!Nn.poster&&(Nn.poster=Yr.map.src)}}}).parse(an),Nn.source=Nn.source||Nn.src||Nn.data,Nn.altsource=Nn.altsource||"",Nn.poster=Nn.poster||"",Nn},Ae=function(zt){var an={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},Rt=zt.toLowerCase().split(".").pop(),Nn=an[Rt];return Nn||""},Te=tinymce.util.Tools.resolve("tinymce.html.Schema"),Ue=tinymce.util.Tools.resolve("tinymce.html.Writer"),Oe=j.DOM,De=function(zt){return/^[0-9.]+$/.test(zt)?zt+"px":zt},$e=function(zt,an){Q(an,function(Rt,Nn){var Er=""+Rt;if(zt.map[Nn])for(var Yr=zt.length;Yr--;){var ft=zt[Yr];ft.name===Nn&&(Er?(zt.map[Nn]=Er,ft.value=Er):(delete zt.map[Nn],zt.splice(Yr,1)))}else Er&&(zt.push({name:Nn,value:Er}),zt.map[Nn]=Er)})},rt=function(zt,an){var Rt=an.map.style,Nn=Rt?Oe.parseStyle(Rt):{};Nn["max-width"]=De(zt.width),Nn["max-height"]=De(zt.height),$e(an,{style:Oe.serializeStyle(Nn)})},ct=["source","altsource"],lt=function(zt,an,Rt){var Nn=Ue(),Er=Z(!1),Yr=0,ft;return ee({validate:!1,allow_conditional_comments:!0,comment:function(Bt){Nn.comment(Bt)},cdata:function(Bt){Nn.cdata(Bt)},text:function(Bt,Rn){Nn.text(Bt,Rn)},start:function(Bt,Rn,Qn){if(!Er.get())if(te(Rn.map,"data-ephox-embed-iri"))Er.set(!0),rt(an,Rn);else{switch(Bt){case"video":case"object":case"embed":case"img":case"iframe":an.height!==void 0&&an.width!==void 0&&$e(Rn,{width:an.width,height:an.height});break}if(Rt)switch(Bt){case"video":$e(Rn,{poster:an.poster,src:""}
205),an.altsource&&$e(Rn,{src:""});break;case"iframe":$e(Rn,{src:an.source});break;case"source":if(Yr<2&&($e(Rn,{src:an[ct[Yr]],type:an[ct[Yr]+"mime"]}),!an[ct[Yr]]))return;Yr++;break;case"img":if(!an.poster)return;ft=!0;break}}Nn.start(Bt,Rn,Qn)},end:function(Bt){if(!Er.get()){if(Bt==="video"&&Rt){for(var Rn=0;Rn<2;Rn++)if(an[ct[Rn]]){var Qn=[];Qn.map={},Yr<=Rn&&($e(Qn,{src:an[ct[Rn]],type:an[ct[Rn]+"mime"]}),Nn.start("source",Qn,!0))}}if(an.poster&&Bt==="object"&&Rt&&!ft){var Ze=[];Ze.map={},$e(Ze,{src:an.poster,width:an.width,height:an.height}),Nn.start("img",Ze,!0)}}Nn.end(Bt)}},Te({})).parse(zt),Nn.getContent()},ot=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],Fe=function(zt){var an=zt.match(/^(https?:\/\/|www\.)(.+)$/i);return an&&an.length>1?an[1]==="www."?"https://":an[1]:"https://"},We=function(zt,an){for(var Rt=Fe(an),Nn=zt.regex.exec(an),Er=Rt+zt.url,Yr=function(Bt){Er=Er.replace("$"+Bt,function(){return Nn[Bt]?Nn[Bt]:""})},ft=0;ft<Nn.length;ft++)Yr(ft);return Er.replace(/\?$/,"")},Ye=function(zt){var an=ot.filter(function(Rt){return Rt.regex.test(zt)});return an.length>0?U.extend({},an[0],{url:We(an[0],zt)}):null},Ke=function(zt){var an=zt.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+zt.source+'" width="'+zt.width+'" height="'+zt.height+'"'+an+"></iframe>"},mt=function(zt){var an='<object data="'+zt.source+'" width="'+zt.width+'" height="'+zt.height+'" type="application/x-shockwave-flash">';return zt.poster&&(an+='<img src="'+zt.poster+'" width="'+zt.width+'" height="'+zt.height+'" />'),an+="</object>",an},Ct=function(zt,an){return an?an(zt):'<audio controls="controls" src="'+zt.source+'">'+(zt.altsource?` 206<source src="`+zt.altsource+'"'+(zt.altsourcemime?' type="'+zt.altsourcemime+'"':"")+` /> 207`:"")+"</audio>"},bt=function(zt,an){return an?an(zt):'<video width="'+zt.width+'" height="'+zt.height+'"'+(zt.poster?' poster="'+zt.poster+'"':"")+` controls="controls"> 208<source src="`+zt.source+'"'+(zt.sourcemime?' type="'+zt.sourcemime+'"':"")+` /> 209`+(zt.altsource?'<source src="'+zt.altsource+'"'+(zt.altsourcemime?' type="'+zt.altsourcemime+'"':"")+` /> 210`:"")+"</video>"},tn=function(zt){return'<script src="'+zt.source+'"><\/script>'},Ft=function(zt,an){var Rt=U.extend({},an);if(!Rt.source&&(U.extend(Rt,be(V(zt),Rt.embed)),!Rt.source))return"";Rt.altsource||(Rt.altsource=""),Rt.poster||(Rt.poster=""),Rt.source=zt.convertURL(Rt.source,"source"),Rt.altsource=zt.convertURL(Rt.altsource,"source"),Rt.sourcemime=Ae(Rt.source),Rt.altsourcemime=Ae(Rt.altsource),Rt.poster=zt.convertURL(Rt.poster,"poster");var Nn=Ye(Rt.source);if(Nn&&(Rt.source=Nn.url,Rt.type=Nn.type,Rt.allowfullscreen=Nn.allowFullscreen,Rt.width=Rt.width||String(Nn.w),Rt.height=Rt.height||String(Nn.h)),Rt.embed)return lt(Rt.embed,Rt,!0);var Er=ye(V(zt),Rt.source);Er&&(Rt.type="script",Rt.width=String(Er.width),Rt.height=String(Er.height));var Yr=K(zt),ft=fe(zt);return Rt.width=Rt.width||"300",Rt.height=Rt.height||"150",U.each(Rt,function(Bt,Rn){Rt[Rn]=zt.dom.encode(""+Bt)}),Rt.type==="iframe"?Ke(Rt):Rt.sourcemime==="application/x-shockwave-flash"?mt(Rt):Rt.sourcemime.indexOf("audio")!==-1?Ct(Rt,Yr):Rt.type==="script"?tn(Rt):bt(Rt,ft)},It=function(zt){return zt.hasAttribute("data-mce-object")||zt.hasAttribute("data-ephox-embed-iri")},Et=function(zt){zt.on("click keyup touchend",function(){var an=zt.selection.getNode();an&&zt.dom.hasClass(an,"mce-preview-object")&&zt.dom.getAttrib(an,"data-mce-selected")&&an.setAttribute("data-mce-selected","2")}),zt.on("ObjectSelected",function(an){var Rt=an.target.getAttribute("data-mce-object");Rt==="script"&&an.preventDefault()}),zt.on("ObjectResized",function(an){var Rt=an.target;if(Rt.getAttribute("data-mce-object")){var Nn=Rt.getAttribute("data-mce-html");Nn&&(Nn=unescape(Nn),Rt.setAttribute("data-mce-html",escape(lt(Nn,{width:String(an.width),height:String(an.height)}))))}})},At=tinymce.util.Tools.resolve("tinymce.util.Promise"),vt={},Tt=function(zt,an,Rt){return new At(function(Nn,Er){var Yr=function(ft){return ft.html&&(vt[zt.source]=ft),Nn({url:zt.source,html:ft.html?ft.html:an(zt)})};vt[zt.source]?Yr(vt[zt.source]):Rt({url:zt.source},Yr,Er)})},Wt=function(zt,an){return At.resolve({html:an(zt),url:zt.source})},xt=function(zt){return function(an){return Ft(zt,an)}},at=function(zt,an){var Rt=le(zt);return Rt?Tt(an,xt(zt),Rt):Wt(an,xt(zt))},_t=function(zt){return te(vt,zt)},en=function(zt,an){return $(an,zt).bind(function(Rt){return $(Rt,"meta")})},An=function(zt,an,Rt){return function(Nn){var Er,Yr=function(){return $(zt,Nn)},ft=function(){return $(an,Nn)},Bt=function(Ze){return $(Ze,"value").bind(function(St){return St.length>0?R.some(St):R.none()})},Rn=function(){return Yr().bind(function(Ze){return l(Ze)?Bt(Ze).orThunk(ft):ft().orThunk(function(){return R.from(Ze)})})},Qn=function(){return ft().orThunk(function(){return Yr().bind(function(Ze){return l(Ze)?Bt(Ze):R.from(Ze)})})};return Er={},Er[Nn]=(Nn===Rt?Rn():Qn()).getOr(""),Er}},Vt=function(zt,an){var Rt={};return $(zt,"dimensions").each(function(Nn){A(["width","height"],function(Er){$(an,Er).orThunk(function(){return $(Nn,Er)}).each(function(Yr){return Rt[Er]=Yr})})}),Rt},_n=function(zt,an){var Rt=an?en(an,zt).getOr({}):{},Nn=An(zt,Rt,an);
210return t(t(t(t(t({},Nn("source")),Nn("altsource")),Nn("poster")),Nn("embed")),Vt(zt,Rt))},Mt=function(zt){var an=t(t({},zt),{source:{value:$(zt,"source").getOr("")},altsource:{value:$(zt,"altsource").getOr("")},poster:{value:$(zt,"poster").getOr("")}});return A(["width","height"],function(Rt){$(zt,Rt).each(function(Nn){var Er=an.dimensions||{};Er[Rt]=Nn,an.dimensions=Er})}),an},pn=function(zt){return function(an){var Rt=an&&an.msg?"Media embed handler error: "+an.msg:"Media embed handler threw unknown error.";zt.notificationManager.open({type:"error",text:Rt})}},En=function(zt,an){return be(V(zt),an)},zn=function(zt){var an=zt.selection.getNode(),Rt=It(an)?zt.serializer.serialize(an,{selection:!0}):"";return t({embed:Rt},be(V(zt),Rt))},nn=function(zt,an){return function(Rt){if(i(Rt.url)&&Rt.url.trim().length>0){var Nn=Rt.html,Er=En(an,Nn),Yr=t(t({},Er),{source:Rt.url,embed:Nn});zt.setData(Mt(Yr))}}},Yn=function(zt,an){for(var Rt=zt.dom.select("*[data-mce-object]"),Nn=0;Nn<an.length;Nn++)for(var Er=Rt.length-1;Er>=0;Er--)an[Nn]===Rt[Er]&&Rt.splice(Er,1);zt.selection.select(Rt[0])},qr=function(zt,an){var Rt=zt.dom.select("*[data-mce-object]");zt.insertContent(an),Yn(zt,Rt),zt.nodeChanged()},Br=function(zt,an,Rt){an.embed=lt(an.embed,an),an.embed&&(zt.source===an.source||_t(an.source))?qr(Rt,an.embed):at(Rt,an).then(function(Nn){qr(Rt,Nn.html)}).catch(pn(Rt))},io=function(zt){var an=zn(zt),Rt=Z(an),Nn=Mt(an),Er=function(Nr,To){var Bn=_n(To.getData(),"source");Nr.source!==Bn.source&&(nn(xr,zt)({url:Bn.source,html:""}),at(zt,Bn).then(nn(xr,zt)).catch(pn(zt)))},Yr=function(Nr){var To=_n(Nr.getData()),Bn=En(zt,To.embed);Nr.setData(Mt(Bn))},ft=function(Nr,To){var Bn=_n(Nr.getData(),To),po=Ft(zt,Bn);Nr.setData(Mt(t(t({},Bn),{embed:po})))},Bt=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],Rn=P(zt)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],Qn={title:"General",name:"general",items:X([Bt,Rn])},Ze={type:"textarea",name:"embed",label:"Paste your embed code below:"},St={title:"Embed",items:[Ze]},Gt=[];_e(zt)&&Gt.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),M(zt)&&Gt.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var Xt={title:"Advanced",name:"advanced",items:Gt},On=[Qn,St];Gt.length>0&&On.push(Xt);var Dn={type:"tabpanel",tabs:On},xr=zt.windowManager.open({title:"Insert/Edit Media",size:"normal",body:Dn,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(Nr){var To=_n(Nr.getData());Br(Rt.get(),To,zt),Nr.close()},onChange:function(Nr,To){switch(To.name){case"source":Er(Rt.get(),Nr);break;case"embed":Yr(Nr);break;case"dimensions":case"altsource":case"poster":ft(Nr,To.name);break}Rt.set(_n(Nr.getData()))},initialData:Nn})},xa=function(zt){var an=function(){io(zt)};return{showDialog:an}},Di=function(zt){var an=function(){io(zt)};zt.addCommand("mceMedia",an)},la=tinymce.util.Tools.resolve("tinymce.html.Node"),Na=tinymce.util.Tools.resolve("tinymce.Env"),Bi=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Ps=function(zt,an){if(ne(zt)===!1)return an;var Rt=Ue(),Nn;return ee({validate:!1,allow_conditional_comments:!1,comment:function(Er){Nn||Rt.comment(Er)},cdata:function(Er){Nn||Rt.cdata(Er)},text:function(Er,Yr){Nn||Rt.text(Er,Yr)},start:function(Er,Yr,ft){if(Nn=!0,!(Er==="script"||Er==="noscript"||Er==="svg")){for(var Bt=Yr.length-1;Bt>=0;Bt--){var Rn=Yr[Bt].name;Rn.indexOf("on")===0&&(delete Yr.map[Rn],Yr.splice(Bt,1)),Rn==="style"&&(Yr[Bt].value=zt.dom.serializeStyle(zt.dom.parseStyle(Yr[Bt].value),Er))}Rt.start(Er,Yr,ft),Nn=!1}},end:function(Er){Nn||Rt.end(Er)}},Te({})).parse(an),Rt.getContent()},rs=function(zt){var an=zt.name;return an==="iframe"||an==="video"||an==="audio"},Ai=function(zt,an,Rt,Nn){Nn===void 0&&(Nn=null);var Er=zt.attr(Rt);return v(Er)?Er:te(an,Rt)?null:Nn},el=function(zt,an,Rt){var Nn=an.name==="img"||zt.name==="video",Er=Nn?"300":null,Yr=zt.name==="audio"?"30":"150",ft=Nn?Yr:null;an.attr({width:Ai(zt,Rt,"width",Er),height:Ai(zt,Rt,"height",ft)})},ga=function(zt,an,Rt,Nn){for(var Er=Bi({forced_root_block:!1,validate:!1},zt.schema).parse(Nn,{context:an});Er.firstChild;)Rt.append(Er.firstChild)},_s=function(zt,an){var Rt=an.name,Nn=new la("img",1);return Nn.shortEnded=!0,il(zt,an,Nn),el(an,Nn,{}),Nn.attr({style:an.attr("style"),src:Na.transparentSrc,"data-mce-object":Rt,class:"mce-object mce-object-"+Rt}),Nn},fo=function(zt,an){var Rt=an.name,Nn=new la("span",1);Nn.attr({contentEditable:"false",style:an.attr("style"),"data-mce-object":Rt,class:"mce-preview-object mce-object-"+Rt}),il(zt,an,Nn);var Er=zt.dom.parseStyle(an.attr("style")),Yr=new la(Rt,1);if(el(an,Yr,Er),Yr.attr({src:an.attr("src"),style:an.attr("style"),class:an.attr("class")}),Rt==="iframe")Yr.attr({allowfullscreen:an.attr("allowfullscreen"),frameborder:"0"});else{var ft=["controls","crossorigin","currentTime","loop","muted","poster","preload"];A(ft,function(Qn){Yr.attr(Qn,an.attr(Qn))});var Bt=Nn.attr("data-mce-html");v(Bt)&&ga(zt,Rt,Yr,unescape(Bt))}var Rn=new la("span",1);return Rn.attr("class","mce-shim"),Nn.append(Yr),Nn.append(Rn),Nn},il=function(zt,an,Rt){for(var Nn=an.attributes,Er=Nn.length;Er--;){var Yr=Nn[Er].name,ft=Nn[Er].value;Yr!=="width"&&Yr!=="height"&&Yr!=="style"&&((Yr==="data"||Yr==="src")&&(ft=zt.convertURL(ft,Yr)),Rt.attr("data-mce-p-"+Yr,ft))}var Bt=an.firstChild&&an.firstChild.value;Bt&&(Rt.attr("data-mce-html",escape(Ps(zt,Bt))),Rt.firstChild=null)},Fs=function(zt){var an=zt.attr("class");return an&&/\btiny-pageembed\b/.test(an)},us=function(zt){for(;zt=zt.parent;)if(zt.attr("data-ephox-embed-iri")||Fs(zt))return!0;return!1},cs=function(zt){return function(an){for(var Rt=an.length,Nn,Er;Rt--;)Nn=an[Rt],Nn.parent&&(Nn.parent.attr("data-mce-object")||Nn.name==="script"&&(Er=ye(V(zt),Nn.attr("src")),!Er)||(Er&&(Er.width&&Nn.attr("width",Er.width.toString()),Er.height&&Nn.attr("height",Er.height.toString())),rs(Nn)&&de(zt)&&Na.ceFalse?us(Nn)||Nn.replace(fo(zt,Nn)):us(Nn)||Nn.replace(_s(zt,Nn))))}},sl=function(zt){zt.on("preInit",function(){var an=zt.schema.getSpecialElements();U.each("video audio iframe object".split(" "),function(Nn){an[Nn]=new RegExp("</"+Nn+"[^>]*>","gi")});var Rt=zt.schema.getBoolAttrs();U.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),function(Nn){Rt[Nn]={}}),zt.parser.addNodeFilter("iframe,video,audio,object,embed,script",cs(zt)),zt.serializer.addAttributeFilter("data-mce-object",function(Nn,Er){for(var Yr=Nn.length,ft,Bt,Rn,Qn,Ze,St,Gt,Xt;Yr--;)if(ft=Nn[Yr],!!ft.parent){for(Gt=ft.attr(Er),Bt=new la(Gt,1),Gt!=="audio"&&Gt!=="script"&&(Xt=ft.attr("class"),Xt&&Xt.indexOf("mce
210-preview-object")!==-1?Bt.attr({width:ft.firstChild.attr("width"),height:ft.firstChild.attr("height")}):Bt.attr({width:ft.attr("width"),height:ft.attr("height")})),Bt.attr({style:ft.attr("style")}),Qn=ft.attributes,Rn=Qn.length;Rn--;){var On=Qn[Rn].name;On.indexOf("data-mce-p-")===0&&Bt.attr(On.substr(11),Qn[Rn].value)}Gt==="script"&&Bt.attr("type","text/javascript"),Ze=ft.attr("data-mce-html"),Ze&&(St=new la("#text",3),St.raw=!0,St.value=Ps(zt,unescape(Ze)),Bt.append(St)),ft.replace(Bt)}})}),zt.on("SetContent",function(){zt.$("span.mce-preview-object").each(function(an,Rt){var Nn=zt.$(Rt);Nn.find("span.mce-shim").length===0&&Nn.append('<span class="mce-shim"></span>')})})},wi=function(zt){zt.on("ResolveName",function(an){var Rt;an.target.nodeType===1&&(Rt=an.target.getAttribute("data-mce-object"))&&(an.name=Rt)})},bo=function(zt){var an=function(){return zt.execCommand("mceMedia")};zt.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:an,onSetup:function(Rt){var Nn=zt.selection;return Rt.setActive(It(Nn.getNode())),Nn.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",Rt.setActive).unbind}}),zt.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:an})};function pl(){e.add("media",function(zt){return Di(zt),bo(zt),wi(zt),sl(zt),Et(zt),xa(zt)})}pl()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(y){var w=y.getParam("nonbreaking_force_tab",0);return typeof w=="boolean"?w===!0?3:0:w},n=function(y){return y.getParam("nonbreaking_wrap",!0,"boolean")},r=function(y,w){for(var C="",S=0;S<w;S++)C+=y;return C},i=function(y){return y.plugins.visualchars?y.plugins.visualchars.isEnabled():!1},l=function(y,w){var C=function(){return i(y)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"},S=function(){return'<span class="'+C()+'" contenteditable="false">'+r(" ",w)+"</span>"},T=n(y),B=T||y.plugins.visualchars?S():r(" ",w);y.undoManager.transact(function(){return y.insertContent(B)})},u=function(y){y.addCommand("mceNonBreaking",function(){l(y,1)})},f=tinymce.util.Tools.resolve("tinymce.util.VK"),v=function(y){var w=t(y);w>0&&y.on("keydown",function(C){if(C.keyCode===f.TAB&&!C.isDefaultPrevented()){if(C.shiftKey)return;C.preventDefault(),C.stopImmediatePropagation(),l(y,w)}})},h=function(y){var w=function(){return y.execCommand("mceNonBreaking")};y.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:w}),y.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:w})};function g(){e.add("nonbreaking",function(y){u(y),h(y),v(y)})}g()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(y){return y.getParam("pagebreak_separator","<!-- pagebreak -->")},r=function(y){return y.getParam("pagebreak_split_block",!1)},i="mce-pagebreak",l=function(y){var w='<img src="'+t.transparentSrc+'" class="'+i+'" data-mce-resize="false" data-mce-placeholder />';return y?"<p>"+w+"</p>":w},u=function(y){var w=n(y),C=function(){return r(y)},S=new RegExp(w.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(T){return"\\"+T}),"gi");y.on("BeforeSetContent",function(T){T.content=T.content.replace(S,l(C()))}),y.on("PreInit",function(){y.serializer.addNodeFilter("img",function(T){for(var B=T.length,F,R;B--;)if(F=T[B],R=F.attr("class"),R&&R.indexOf(i)!==-1){var N=F.parent;if(y.schema.getBlockElements()[N.name]&&C()){N.type=3,N.value=w,N.raw=!0,F.remove();continue}F.type=3,F.value=w,F.raw=!0}})})},f=function(y){y.addCommand("mcePageBreak",function(){y.insertContent(l(r(y)))})},v=function(y){y.on("ResolveName",function(w){w.target.nodeName==="IMG"&&y.dom.hasClass(w.target,i)&&(w.name="pagebreak")})},h=function(y){var w=function(){return y.execCommand("mcePageBreak")};y.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:w}),y.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:w})};function g(){e.add("pagebreak",function(y){f(y),h(y),u(y),v(y)})}g()})();(function(){var e=function(pe){var Re=pe,st=function(){return Re}
210,Pt=function(mn){Re=mn};return{get:st,set:Pt}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(pe){return pe.hasPlugin("powerpaste",!0)?(typeof window.console!="undefined"&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0):!1},r=function(pe){return{clipboard:pe}},i=function(pe){var Re=typeof pe;return pe===null?"null":Re==="object"&&(Array.prototype.isPrototypeOf(pe)||pe.constructor&&pe.constructor.name==="Array")?"array":Re==="object"&&(String.prototype.isPrototypeOf(pe)||pe.constructor&&pe.constructor.name==="String")?"string":Re},l=function(pe){return function(Re){return i(Re)===pe}},u=function(pe){return function(Re){return typeof Re===pe}},f=l("array"),v=function(pe){return pe==null},h=function(pe){return!v(pe)},g=u("function"),y=function(){},w=function(pe){return function(){return pe}},C=function(pe){return pe},S=w(!1),T=w(!0),B=function(){return F},F=function(){var pe=function(Pt){return Pt()},Re=C,st={fold:function(Pt,mn){return Pt()},isSome:S,isNone:T,getOr:Re,getOrThunk:pe,getOrDie:function(Pt){throw new Error(Pt||"error: getOrDie called on none.")},getOrNull:w(null),getOrUndefined:w(void 0),or:Re,orThunk:pe,map:B,each:y,bind:B,exists:S,forall:T,filter:function(){return B()},toArray:function(){return[]},toString:w("none()")};return st}(),R=function(pe){var Re=w(pe),st=function(){return mn},Pt=function(ar){return ar(pe)},mn={fold:function(ar,vo){return vo(pe)},isSome:T,isNone:S,getOr:Re,getOrThunk:Re,getOrDie:Re,getOrNull:Re,getOrUndefined:Re,or:st,orThunk:st,map:function(ar){return R(ar(pe))},each:function(ar){ar(pe)},bind:Pt,exists:Pt,forall:Pt,filter:function(ar){return ar(pe)?mn:F},toArray:function(){return[pe]},toString:function(){return"some("+pe+")"}};return mn},N=function(pe){return pe==null?F:R(pe)},A={some:R,none:B,from:N},X=Array.prototype.slice,Z=Array.prototype.push,z=function(pe,Re){for(var st=0,Pt=pe.length;st<Pt;st++){var mn=pe[st];if(Re(mn,st))return!0}return!1},Y=function(pe,Re){for(var st=pe.length,Pt=new Array(st),mn=0;mn<st;mn++){var ar=pe[mn];Pt[mn]=Re(ar,mn)}return Pt},Q=function(pe,Re){for(var st=0,Pt=pe.length;st<Pt;st++){var mn=pe[st];Re(mn,st)}},$=function(pe,Re){for(var st=[],Pt=0,mn=pe.length;Pt<mn;Pt++){var ar=pe[Pt];Re(ar,Pt)&&st.push(ar)}return st},te=function(pe,Re,st){return Q(pe,function(Pt,mn){st=Re(st,Pt,mn)}),st},V=function(pe){for(var Re=[],st=0,Pt=pe.length;st<Pt;++st){if(!f(pe[st]))throw new Error("Arr.flatten item "+st+" was not an array, input: "+pe);Z.apply(Re,pe[st])}return Re},K=function(pe,Re){return V(Y(pe,Re))},fe=g(Array.from)?Array.from:function(pe){return X.call(pe)},de=function(){return de=Object.assign||function(Re){for(var st,Pt=1,mn=arguments.length;Pt<mn;Pt++){st=arguments[Pt];for(var ar in st)Object.prototype.hasOwnProperty.call(st,ar)&&(Re[ar]=st[ar])}return Re},de.apply(this,arguments)},ne=function(pe){var Re=e(A.none()),st=function(){return Re.get().each(pe)},Pt=function(){st(),Re.set(A.none())},mn=function(){return Re.get().isSome()},ar=function(){return Re.get()},vo=function(So){st(),Re.set(A.some(So))};return{clear:Pt,isSet:mn,get:ar,set:vo}},le=function(){var pe=ne(y),Re=function(st){return pe.get().each(st)};return de(de({},pe),{on:Re})},_e=function(pe,Re,st){return Re===""||pe.length>=Re.length&&pe.substr(st,st+Re.length)===Re},M=function(pe,Re){return _e(pe,Re,0)},P=function(pe,Re){return _e(pe,Re,pe.length-Re.length)},U=function(pe,Re){return Re<=0?"":new Array(Re+1).join(pe)},j=tinymce.util.Tools.resolve("tinymce.Env"),ee=tinymce.util.Tools.resolve("tinymce.util.Delay"),ye=tinymce.util.Tools.resolve("tinymce.util.Promise"),ie=tinymce.util.Tools.resolve("tinymce.util.VK"),he=function(pe,Re,st,Pt){return pe.fire("PastePreProcess",{content:Re,internal:st,wordContent:Pt})},re=function(pe,Re,st,Pt){return pe.fire("PastePostProcess",{node:Re,internal:st,wordContent:Pt})},be=function(pe,Re){return pe.fire("PastePlainTextToggle",{state:Re})},Ae=function(pe,Re){return pe.fire("paste",{ieFake:Re})},Te=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ue=function(pe){return pe.getParam("paste_block_drop",!1)},Oe=function(pe){return pe.getParam("paste_data_images",!1)},De=function(pe){return pe.getParam("paste_filter_drop",!0)},$e=function(pe){return pe.getParam("paste_preprocess")},rt=function(pe){return pe.getParam("paste_postprocess")},ct=function(pe){return pe.getParam("paste_webkit_styles")},lt=function(pe){return pe.getParam("paste_remove_styles_if_webkit",!0)},ot=function(pe){return pe.getParam("paste_merge_formats",!0)},Fe=function(pe){return pe.getParam("smart_paste",!0)},We=function(pe){return pe.getParam("paste_as_text",!1)},Ye=function(pe){return pe.getParam("paste_retain_style_properties")},Ke=function(pe){var Re="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return pe.getParam("paste_word_valid_elements",Re)},mt=function(pe){return pe.getParam("paste_convert_word_fake_lists",!0)},Ct=function(pe){return pe.getParam("paste_enable_default_filters",!0)},bt=function(pe){return pe.getParam("validate")},tn=function(pe){return pe.getParam("allow_html_data_urls",!1,"boolean")},Ft=function(pe){return pe.getParam("paste_data_images",!1,"boolean")},It=function(pe){return pe.getParam("images_dataimg_filter")},Et=function(pe){return pe.getParam("images_reuse_filename")},At=function(pe){return pe.getParam("forced_root_block")},vt=function(pe){return pe.getParam("forced_root_block_attrs")}
210,Tt=function(pe){return pe.getParam("paste_tab_spaces",4,"number")},Wt=function(pe){var Re="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return Te.explode(pe.getParam("images_file_types",Re,"string"))},xt="x-tinymce/html",at="<!-- "+xt+" -->",_t=function(pe){return at+pe},en=function(pe){return pe.replace(at,"")},An=function(pe){return pe.indexOf(at)!==-1},Vt=w(xt),_n=Object.hasOwnProperty,Mt=function(pe,Re){return _n.call(pe,Re)},pn=tinymce.util.Tools.resolve("tinymce.html.Entities"),En=function(pe){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(pe)},zn=function(pe){return pe.replace(/\r?\n/g,"<br>")},nn=function(pe,Re){var st=[],Pt="<"+pe;if(typeof Re=="object"){for(var mn in Re)Mt(Re,mn)&&st.push(mn+'="'+pn.encodeAllRaw(Re[mn])+'"');st.length&&(Pt+=" "+st.join(" "))}return Pt+">"},Yn=function(pe,Re,st){var Pt=pe.split(/\n\n/),mn=nn(Re,st),ar="</"+Re+">",vo=Te.map(Pt,function(yr){return yr.split(/\n/).join("<br />")}),So=function(yr){return mn+yr+ar};return vo.length===1?vo[0]:Te.map(vo,So).join("")},qr=function(pe,Re,st){return Re?Yn(pe,Re===!0?"p":Re,st):zn(pe)},Br=tinymce.util.Tools.resolve("tinymce.html.DomParser"),io=tinymce.util.Tools.resolve("tinymce.html.Serializer"),xa="\xA0",Di=tinymce.util.Tools.resolve("tinymce.html.Node"),la=tinymce.util.Tools.resolve("tinymce.html.Schema"),Na=function(pe){return pe.constructor===RegExp},Bi=function(pe,Re){return Te.each(Re,function(st){Na(st)?pe=pe.replace(st,""):pe=pe.replace(st[0],st[1])}),pe},Ps=function(pe){var Re=la(),st=Br({},Re),Pt="",mn=Re.getShortEndedElements(),ar=Te.makeMap("script noscript style textarea video audio iframe object"," "),vo=Re.getBlockElements(),So=function(yr){var uo=yr.name,na=yr;if(uo==="br"){Pt+=` 211`;return}if(uo!=="wbr"){if(mn[uo]&&(Pt+=" "),ar[uo]){Pt+=" ";return}if(yr.type===3&&(Pt+=yr.value),!yr.shortEnded&&(yr=yr.firstChild))do So(yr);while(yr=yr.next);vo[uo]&&na.next&&(Pt+=` 212`,uo==="p"&&(Pt+=` 213`))}};return pe=Bi(pe,[/<!\[[^\]]+\]>/g]),So(st.parse(pe)),Pt},rs=function(pe){var Re=function(st,Pt,mn){return!Pt&&!mn?" ":xa};return pe=Bi(pe,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,Re],/<br class="Apple-interchange-newline">/g,/<br>$/i]),pe},Ai=function(pe){var Re=0;return function(){return pe+Re++}},el=function(pe){var Re=pe.toLowerCase(),st={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return Te.hasOwn(st,Re)?"image/"+st[Re]:"image/"+Re},ga=function(pe){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(pe)||/class="OutlineElement/.test(pe)||/id="?docs\-internal\-guid\-/.test(pe)},_s=function(pe){var Re=!1,st=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return pe=pe.replace(/^[\u00a0 ]+/,""),Te.each(st,function(Pt){if(Pt.test(pe))return Re=!0,!1}),Re},fo=function(pe){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(pe)},il=function(pe){for(var Re,st,Pt=1,mn=function(Vo){var di="";if(Vo.type===3)return Vo.value;if(Vo=Vo.firstChild)do di+=mn(Vo);while(Vo=Vo.next);return di},ar=function(Vo,di){if(Vo.type===3&&di.test(Vo.value))return Vo.value=Vo.value.replace(di,""),!1;if(Vo=Vo.firstChild)do if(!ar(Vo,di))return!1;while(Vo=Vo.next);return!0},vo=function(Vo){if(Vo._listIgnore){Vo.remove();return}if(Vo=Vo.firstChild)do vo(Vo);while(Vo=Vo.next)},So=function(Vo,di,si){var $l=Vo._listLevel||Pt;$l!==Pt&&($l<Pt?Re&&(Re=Re.parent.parent):(st=Re,Re=null)),!Re||Re.name!==di?(st=st||Re,Re=new Di(di,1),si>1&&Re.attr("start",""+si),Vo.wrap(Re)):Re.append(Vo),Vo.name="li",$l>Pt&&st&&st.lastChild.append(Re),Pt=$l,vo(Vo),ar(Vo,/^\u00a0+/),ar(Vo,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),ar(Vo,/^\u00a0+/)},yr=[],uo=pe.firstChild;typeof uo!="undefined"&&uo!==null;)if(yr.push(uo),uo=uo.walk(),uo!==null)for(;typeof uo!="undefined"&&uo.parent!==pe;)uo=uo.walk();for(var na=0;na<yr.length;na++)if(pe=yr[na],pe.name==="p"&&pe.firstChild){var Qo=mn(pe);
213if(fo(Qo)){So(pe,"ul");continue}if(_s(Qo)){var jo=/([0-9]+)\./.exec(Qo),Vi=1;jo&&(Vi=parseInt(jo[1],10)),So(pe,"ol",Vi);continue}if(pe._listLevel){So(pe,"ul",1);continue}Re=null}else st=Re,Re=null},Fs=function(pe,Re,st,Pt){var mn={},ar=pe.dom.parseStyle(Pt);Te.each(ar,function(So,yr){switch(yr){case"mso-list":var uo=/\w+ \w+([0-9]+)/i.exec(Pt);uo&&(st._listLevel=parseInt(uo[1],10)),/Ignore/i.test(So)&&st.firstChild&&(st._listIgnore=!0,st.firstChild._listIgnore=!0);break;case"horiz-align":yr="text-align";break;case"vert-align":yr="vertical-align";break;case"font-color":case"mso-foreground":yr="color";break;case"mso-background":case"mso-highlight":yr="background";break;case"font-weight":case"font-style":So!=="normal"&&(mn[yr]=So);return;case"mso-element":if(/^(comment|comment-list)$/i.test(So)){st.remove();return}break}if(yr.indexOf("mso-comment")===0){st.remove();return}yr.indexOf("mso-")!==0&&(Ye(pe)==="all"||Re&&Re[yr])&&(mn[yr]=So)}),/(bold)/i.test(mn["font-weight"])&&(delete mn["font-weight"],st.wrap(new Di("b",1))),/(italic)/i.test(mn["font-style"])&&(delete mn["font-style"],st.wrap(new Di("i",1)));var vo=pe.dom.serializeStyle(mn,st.name);return vo||null},us=function(pe,Re){var st,Pt=Ye(pe);Pt&&(st=Te.makeMap(Pt.split(/[, ]/))),Re=Bi(Re,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,xa],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(yr,uo){return uo.length>0?uo.replace(/./," ").slice(Math.floor(uo.length/2)).split("").join(xa):""}]]);var mn=Ke(pe),ar=la({valid_elements:mn,valid_children:"-li[p]"});Te.each(ar.elements,function(yr){yr.attributes.class||(yr.attributes.class={},yr.attributesOrder.push("class")),yr.attributes.style||(yr.attributes.style={},yr.attributesOrder.push("style"))});var vo=Br({},ar);vo.addAttributeFilter("style",function(yr){for(var uo=yr.length,na;uo--;)na=yr[uo],na.attr("style",Fs(pe,st,na,na.attr("style"))),na.name==="span"&&na.parent&&!na.attributes.length&&na.unwrap()}),vo.addAttributeFilter("class",function(yr){for(var uo=yr.length,na,Qo;uo--;)na=yr[uo],Qo=na.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(Qo)&&na.remove(),na.attr("class",null)}),vo.addNodeFilter("del",function(yr){for(var uo=yr.length;uo--;)yr[uo].remove()}),vo.addNodeFilter("a",function(yr){for(var uo=yr.length,na,Qo,jo;uo--;){if(na=yr[uo],Qo=na.attr("href"),jo=na.attr("name"),Qo&&Qo.indexOf("#_msocom_")!==-1){na.remove();continue}if(Qo&&Qo.indexOf("file://")===0&&(Qo=Qo.split("#")[1],Qo&&(Qo="#"+Qo)),!Qo&&!jo)na.unwrap();else{if(jo&&!/^_?(?:toc|edn|ftn)/i.test(jo)){na.unwrap();continue}na.attr({href:Qo,name:jo})}}});var So=vo.parse(Re);return mt(pe)&&il(So),Re=io({validate:bt(pe)},ar).serialize(So),Re},cs=function(pe,Re){return Ct(pe)?us(pe,Re):Re},sl=function(pe,Re){var st=Br({},pe.schema);st.addNodeFilter("meta",function(mn){Te.each(mn,function(ar){ar.remove()})});var Pt=st.parse(Re,{forced_root_block:!1,isRootContent:!0});return io({validate:bt(pe)},pe.schema).serialize(Pt)},wi=function(pe,Re){return{content:pe,cancelled:Re}},bo=function(pe,Re,st,Pt){var mn=pe.dom.create("div",{style:"display:none"},Re),ar=re(pe,mn,st,Pt);return wi(ar.node.innerHTML,ar.isDefaultPrevented())},pl=function(pe,Re,st,Pt){var mn=he(pe,Re,st,Pt),ar=sl(pe,mn.content);return pe.hasEventListeners("PastePostProcess")&&!mn.isDefaultPrevented()?bo(pe,ar,st,Pt):wi(ar,mn.isDefaultPrevented())},zt=function(pe,Re,st){var Pt=ga(Re),mn=Pt?cs(pe,Re):Re;return pl(pe,mn,st,Pt)},an=function(pe,Re){return pe.insertContent(Re,{merge:ot(pe),paste:!0}),!0},Rt=function(pe){return/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(pe)},Nn=function(pe,Re){return Rt(Re)&&z(Wt(pe),function(st){return P(Re.toLowerCase(),"."+st.toLowerCase())})},Er=function(pe,Re,st){return pe.undoManager.extra(function(){st(pe,Re)},function(){pe.insertContent('<img src="'+Re+'">')}),!0}
213,Yr=function(pe,Re,st){return pe.undoManager.extra(function(){st(pe,Re)},function(){pe.execCommand("mceInsertLink",!1,Re)}),!0},ft=function(pe,Re,st){return pe.selection.isCollapsed()===!1&&Rt(Re)?Yr(pe,Re,st):!1},Bt=function(pe,Re,st){return Nn(pe,Re)?Er(pe,Re,st):!1},Rn=function(pe,Re){Te.each([ft,Bt,an],function(st){return st(pe,Re,an)!==!0})},Qn=function(pe,Re,st){st||Fe(pe)===!1?an(pe,Re):Rn(pe,Re)},Ze=function(pe){return" \f \v".indexOf(pe)!==-1},St=function(pe){return pe===` 214`||pe==="\r"},Gt=function(pe,Re){return Re<pe.length&&Re>=0?St(pe[Re]):!1},Xt=function(pe,Re){var st=U(" ",Tt(pe)),Pt=Re.replace(/\t/g,st),mn=te(Pt,function(ar,vo){return Ze(vo)||vo===xa?ar.pcIsSpace||ar.str===""||ar.str.length===Pt.length-1||Gt(Pt,ar.str.length+1)?{pcIsSpace:!1,str:ar.str+xa}:{pcIsSpace:!0,str:ar.str+" "}:{pcIsSpace:St(vo),str:ar.str+vo}},{pcIsSpace:!1,str:""});return mn.str},On=function(pe,Re,st,Pt){var mn=zt(pe,Re,st);mn.cancelled===!1&&Qn(pe,mn.content,Pt)},Dn=function(pe,Re,st){var Pt=st||An(Re);On(pe,en(Re),Pt,!1)},xr=function(pe,Re){var st=pe.dom.encode(Re).replace(/\r\n/g,` 215`),Pt=Xt(pe,st),mn=qr(Pt,At(pe),vt(pe));On(pe,mn,!1,!0)},Nr=function(pe){var Re={},st="data:text/mce-internal,";if(pe){if(pe.getData){var Pt=pe.getData("Text");Pt&&Pt.length>0&&Pt.indexOf(st)===-1&&(Re["text/plain"]=Pt)}if(pe.types)for(var mn=0;mn<pe.types.length;mn++){var ar=pe.types[mn];try{Re[ar]=pe.getData(ar)}catch{Re[ar]=""}}}return Re},To=function(pe,Re){return Nr(Re.clipboardData||pe.getDoc().dataTransfer)},Bn=function(pe,Re){return Re in pe&&pe[Re].length>0},po=function(pe){return Bn(pe,"text/html")||Bn(pe,"text/plain")},Zo=function(pe){var Re=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(pe);return Re?{type:Re[1],data:decodeURIComponent(Re[2])}:{type:null,data:null}},Za=function(pe,Re){var st=It(pe);return st?st(Re):!0},os=function(pe,Re){var st=Re.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return h(st)?pe.dom.encode(st[1]):null},ua=Ai("mceclip"),Xu=function(pe,Re){var st=Zo(Re.uri),Pt=st.data,mn=st.type,ar=ua(),vo=Re.blob,So=new Image;if(So.src=Re.uri,Za(pe,So)){var yr=pe.editorUpload.blobCache,uo=void 0,na=yr.getByData(Pt,mn);if(na)uo=na;else{var Qo=Et(pe)&&h(vo.name),jo=Qo?os(pe,vo.name):ar,Vi=Qo?vo.name:void 0;uo=yr.create(ar,vo,Pt,jo,Vi),yr.add(uo)}Dn(pe,'<img src="'+uo.blobUri()+'">',!1)}else Dn(pe,'<img src="'+Re.uri+'">',!1)},Tu=function(pe){return pe.type==="paste"},as=function(pe){return h(pe.getAsFile)},ff=function(pe){return ye.all(Y(pe,function(Re){return new ye(function(st){var Pt=as(Re)?Re.getAsFile():Re,mn=new window.FileReader;mn.onload=function(){st({blob:Pt,uri:mn.result})},mn.readAsDataURL(Pt)})}))},Pl=function(pe){var Re=Wt(pe);return function(st){return M(st.type,"image/")&&z(Re,function(Pt){return el(Pt)===st.type})}},Fl=function(pe,Re){var st=Re.items?K(fe(Re.items),function(mn){return mn.kind==="file"?[mn.getAsFile()]:[]}):[],Pt=Re.files?fe(Re.files):[];return $(st.length>0?st:Pt,Pl(pe))},Ka=function(pe,Re,st){var Pt=Tu(Re)?Re.clipboardData:Re.dataTransfer;if(Ft(pe)&&Pt){var mn=Fl(pe,Pt);if(mn.length>0)return Re.preventDefault(),ff(mn).then(function(ar){st&&pe.selection.setRng(st),Q(ar,function(vo){Xu(pe,vo)})}),!0}return!1},df=function(pe){var Re=pe.clipboardData;return navigator.userAgent.indexOf("Android")!==-1&&Re&&Re.items&&Re.items.length===0},Rc=function(pe){return ie.metaKeyPressed(pe)&&pe.keyCode===86||pe.shiftKey&&pe.keyCode===45},Zu=function(pe,Re,st){var Pt=le(),mn=le(),ar;
215pe.on("keyup",mn.clear),pe.on("keydown",function(yr){var uo=function(na){Rc(na)&&!na.isDefaultPrevented()&&Re.remove()};if(Rc(yr)&&!yr.isDefaultPrevented()){if(ar=yr.shiftKey&&yr.keyCode===86,ar&&j.webkit&&navigator.userAgent.indexOf("Version/")!==-1)return;if(yr.stopImmediatePropagation(),Pt.set(yr),mn.set(!0),j.ie&&ar){yr.preventDefault(),Ae(pe,!0);return}Re.remove(),Re.create(),pe.once("keyup",uo),pe.once("paste",function(){pe.off("keyup",uo)})}});var vo=function(yr,uo,na,Qo,jo){var Vi;Bn(uo,"text/html")?Vi=uo["text/html"]:(Vi=Re.getHtml(),jo=jo||An(Vi),Re.isDefaultContent(Vi)&&(Qo=!0)),Vi=rs(Vi),Re.remove();var Vo=jo===!1&&En(Vi),di=Rt(Vi);if((!Vi.length||Vo&&!di)&&(Qo=!0),(Qo||di)&&(Bn(uo,"text/plain")&&Vo?Vi=uo["text/plain"]:Vi=Ps(Vi)),Re.isDefaultContent(Vi)){na||yr.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.");return}Qo?xr(yr,Vi):Dn(yr,Vi,jo)},So=function(){return Re.getLastRng()||pe.selection.getRng()};pe.on("paste",function(yr){var uo=Pt.isSet()||mn.isSet();uo&&Pt.clear();var na=To(pe,yr),Qo=st.get()==="text"||ar,jo=Bn(na,Vt());if(ar=!1,yr.isDefaultPrevented()||df(yr)){Re.remove();return}if(!po(na)&&Ka(pe,yr,So())){Re.remove();return}uo||yr.preventDefault(),j.ie&&(!uo||yr.ieFake)&&!Bn(na,"text/html")&&(Re.create(),pe.dom.bind(Re.getEl(),"paste",function(Vi){Vi.stopPropagation()}),pe.getDoc().execCommand("Paste",!1,null),na["text/html"]=Re.getHtml()),Bn(na,"text/html")?(yr.preventDefault(),jo||(jo=An(na["text/html"])),vo(pe,na,uo,Qo,jo)):ee.setEditorTimeout(pe,function(){vo(pe,na,uo,Qo,jo)},0)})},hc=function(pe,Re,st){Zu(pe,Re,st);var Pt;pe.parser.addNodeFilter("img",function(mn,ar,vo){var So=function(jo){return jo.data&&jo.data.paste===!0},yr=function(jo){!jo.attr("data-mce-object")&&Pt!==j.transparentSrc&&jo.remove()},uo=function(jo){return jo.indexOf("webkit-fake-url")===0},na=function(jo){return jo.indexOf("data:")===0};if(!Ft(pe)&&So(vo))for(var Qo=mn.length;Qo--;)Pt=mn[Qo].attr("src"),!!Pt&&(uo(Pt)||!tn(pe)&&na(Pt))&&yr(mn[Qo])})},ql=function(pe){return j.ie&&pe.inline?document.body:pe.getBody()},Au=function(pe){return ql(pe)!==pe.getBody()},qf=function(pe,Re,st){Au(pe)&&pe.dom.bind(Re,"paste keyup",function(Pt){wr(pe,st)||pe.fire("paste")})},fu=function(pe,Re,st){var Pt=pe.dom,mn=pe.getBody();Re.set(pe.selection.getRng());var ar=pe.dom.add(ql(pe),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},st);(j.ie||j.gecko)&&Pt.setStyle(ar,"left",Pt.getStyle(mn,"direction",!0)==="rtl"?65535:-65535),Pt.bind(ar,"beforedeactivate focusin focusout",function(vo){vo.stopPropagation()}),qf(pe,ar,st),ar.focus(),pe.selection.select(ar,!0)},Sl=function(pe,Re){if(pt(pe)){for(var st=void 0,Pt=Re.get();st=pe.dom.get("mcepastebin");)pe.dom.remove(st),pe.dom.unbind(st);Pt&&pe.selection.setRng(Pt)}Re.set(null)},pt=function(pe){return pe.dom.get("mcepastebin")},sn=function(pe){var Re=function(So,yr){So.appendChild(yr),pe.dom.remove(yr,!0)},st=Te.grep(ql(pe).childNodes,function(So){return So.id==="mcepastebin"}),Pt=st.shift();Te.each(st,function(So){Re(Pt,So)});for(var mn=pe.dom.select("div[id=mcepastebin]",Pt),ar=mn.length-1;ar>=0;ar--){var vo=pe.dom.create("div");Pt.insertBefore(vo,mn[ar]),Re(vo,mn[ar])}return Pt?Pt.innerHTML:""},kn=function(pe,Re){return Re===pe},er=function(pe){return pe&&pe.id==="mcepastebin"},wr=function(pe,Re){var st=pt(pe);return er(st)&&kn(Re,st.innerHTML)},mo=function(pe){var Re=e(null),st="%MCEPASTEBIN%";return{create:function(){return fu(pe,Re,st)},remove:function(){return Sl(pe,Re)},getEl:function(){return pt(pe)},getHtml:function(){return sn(pe)},getLastRng:Re.get,isDefault:function(){return wr(pe,st)}
215,isDefaultContent:function(Pt){return kn(st,Pt)}}},ja=function(pe,Re){var st=mo(pe);return pe.on("PreInit",function(){return hc(pe,st,Re)}),{pasteFormat:Re,pasteHtml:function(Pt,mn){return Dn(pe,Pt,mn)},pasteText:function(Pt){return xr(pe,Pt)},pasteImageData:function(Pt,mn){return Ka(pe,Pt,mn)},getDataTransferItems:Nr,hasHtmlOrText:po,hasContentType:Bn}},ii=function(pe,Re){Re.pasteFormat.get()==="text"?(Re.pasteFormat.set("html"),be(pe,!1)):(Re.pasteFormat.set("text"),be(pe,!0)),pe.focus()},da=function(pe,Re){pe.addCommand("mceTogglePlainTextPaste",function(){ii(pe,Re)}),pe.addCommand("mceInsertClipboardContent",function(st,Pt){Pt.content&&Re.pasteHtml(Pt.content,Pt.internal),Pt.text&&Re.pasteText(Pt.text)})},Ci=function(pe){return j.iOS===!1&&typeof(pe==null?void 0:pe.setData)=="function"},es=function(pe,Re,st){if(Ci(pe))try{return pe.clearData(),pe.setData("text/html",Re),pe.setData("text/plain",st),pe.setData(Vt(),Re),!0}catch{return!1}else return!1},pc=function(pe,Re,st,Pt){es(pe.clipboardData,Re.html,Re.text)?(pe.preventDefault(),Pt()):st(Re.html,Pt)},Yi=function(pe){return function(Re,st){var Pt=_t(Re),mn=pe.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),ar=pe.dom.create("div",{contenteditable:"true"},Pt);pe.dom.setStyles(mn,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),mn.appendChild(ar),pe.dom.add(pe.getBody(),mn);var vo=pe.selection.getRng();ar.focus();var So=pe.dom.createRng();So.selectNodeContents(ar),pe.selection.setRng(So),ee.setTimeout(function(){pe.selection.setRng(vo),mn.parentNode.removeChild(mn),st()},0)}},mc=function(pe){return{html:pe.selection.getContent({contextual:!0}),text:pe.selection.getContent({format:"text"})}},Io=function(pe){return!!pe.dom.getParent(pe.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",pe.getBody())},gc=function(pe){return!pe.selection.isCollapsed()||Io(pe)},Wd=function(pe){return function(Re){gc(pe)&&pc(Re,mc(pe),Yi(pe),function(){if(j.browser.isChrome()||j.browser.isFirefox()){var st=pe.selection.getRng();ee.setEditorTimeout(pe,function(){pe.selection.setRng(st),pe.execCommand("Delete")},0)}else pe.execCommand("Delete")})}},Ea=function(pe){return function(Re){gc(pe)&&pc(Re,mc(pe),Yi(pe),y)}},Xf=function(pe){pe.on("cut",Wd(pe)),pe.on("copy",Ea(pe))},ku=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Sd=function(pe,Re){return ku.getCaretRangeFromPoint(Re.clientX,Re.clientY,pe.getDoc())},fi=function(pe){var Re=pe["text/plain"];return Re?Re.indexOf("file://")===0:!1},ml=function(pe,Re){pe.focus(),pe.selection.setRng(Re)},Bv=function(pe,Re,st){Ue(pe)&&pe.on("dragend dragover draggesture dragdrop drop drag",function(Pt){Pt.preventDefault(),Pt.stopPropagation()}),Oe(pe)||pe.on("drop",function(Pt){var mn=Pt.dataTransfer;mn&&mn.files&&mn.files.length>0&&Pt.preventDefault()}),pe.on("drop",function(Pt){var mn=Sd(pe,Pt);if(!(Pt.isDefaultPrevented()||st.get())){var ar=Re.getDataTransferItems(Pt.dataTransfer),vo=Re.hasContentType(ar,Vt());if(!((!Re.hasHtmlOrText(ar)||fi(ar))&&Re.pasteImageData(Pt,mn))&&mn&&De(pe)){var So=ar["mce-internal"]||ar["text/html"]||ar["text/plain"];So&&(Pt.preventDefault(),ee.setEditorTimeout(pe,function(){pe.undoManager.transact(function(){ar["mce-internal"]&&pe.execCommand("Delete"),ml(pe,mn),So=rs(So),ar["text/html"]?Re.pasteHtml(So,vo):Re.pasteText(So)})}))}}}),pe.on("dragstart",function(Pt){st.set(!0)}),pe.on("dragover dragend",function(Pt){Oe(pe)&&st.get()===!1&&(Pt.preventDefault(),ml(pe,Sd(pe,Pt))),Pt.type==="dragend"&&st.set(!1)})},Qu=function(pe){var Re=pe.plugins.paste,st=$e(pe);st&&pe.on("PastePreProcess",function(mn){st.call(Re,Re,mn)});var Pt=rt(pe);Pt&&pe.on("PastePostProcess",function(mn){Pt.call(Re,Re,mn)})},ws=function(pe,Re){pe.on("PastePreProcess",function(st){st.content=Re(pe,st.content,st.internal,st.wordContent)})},vf=function(pe,Re){pe.on("PastePostProcess",function(st){Re(pe,st.node)})},Gn=function(pe,Re){if(!ga(Re))return Re;var st=[];Te.each(pe.schema.getBlockElements(),function(mn,ar){st.push(ar)});var Pt=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+st.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return Re=Bi(Re,[[Pt,"$1"]]),Re=Bi(Re,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),Re},hf=function(pe,Re,st,Pt){if(Pt||st)return Re;var mn=ct(pe),ar;if(lt(pe)===!1||mn==="all")return Re;if(mn&&(ar=mn.split(/[, ]/)),ar){var vo=pe.dom,So=pe.selection.getNode();Re=Re.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(yr,uo,na,Qo){var jo=vo.parseStyle(vo.decode(na)),Vi={};if(ar==="none")return uo+Qo;for(var Vo=0;Vo<ar.length;
215Vo++){var di=jo[ar[Vo]],si=vo.getStyle(So,ar[Vo],!0);/color/.test(ar[Vo])&&(di=vo.toHex(di),si=vo.toHex(si)),si!==di&&(Vi[ar[Vo]]=di)}var $l=vo.serializeStyle(Vi,"span");return $l?uo+' style="'+$l+'"'+Qo:uo+Qo})}else Re=Re.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return Re=Re.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(yr,uo,na,Qo){return uo+' style="'+na+'"'+Qo}),Re},Cs=function(pe,Re){pe.$("a",Re).find("font,u").each(function(st,Pt){pe.dom.remove(Pt,!0)})},y1=function(pe){j.webkit&&ws(pe,hf),j.ie&&(ws(pe,Gn),vf(pe,Cs))},Yc=function(pe,Re){return function(st){st.setActive(Re.pasteFormat.get()==="text");var Pt=function(mn){return st.setActive(mn.state)};return pe.on("PastePlainTextToggle",Pt),function(){return pe.off("PastePlainTextToggle",Pt)}}},je=function(pe,Re){var st=function(){return pe.execCommand("mceTogglePlainTextPaste")};pe.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:st,onSetup:Yc(pe,Re)}),pe.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:st,onSetup:Yc(pe,Re)})};function xe(){t.add("paste",function(pe){if(n(pe)===!1){var Re=e(!1),st=e(We(pe)?"text":"html"),Pt=ja(pe,st);return y1(pe),je(pe,Pt),da(pe,Pt),Qu(pe),Xf(pe),Bv(pe,Pt,Re),r(Pt)}})}xe()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(S){return S.getParam("content_style","","string")},i=function(S){return S.getParam("content_css_cors",!1,"boolean")},l=function(S){var T=S.getParam("body_class","","hash");return T[S.id]||""},u=function(S){var T=S.getParam("body_class","","string");return T.indexOf("=")===-1?T:l(S)},f=function(S){var T=S.getParam("body_id","","hash");return T[S.id]||T},v=function(S){var T=S.getParam("body_id","tinymce","string");return T.indexOf("=")===-1?T:f(S)},h=function(S){var T="",B=S.dom.encode,F=r(S);T+='<base href="'+B(S.documentBaseURI.getURI())+'">';var R=i(S)?' crossorigin="anonymous"':"";n.each(S.contentCSS,function($){T+='<link type="text/css" rel="stylesheet" href="'+B(S.documentBaseURI.toAbsolute($))+'"'+R+">"}),F&&(T+='<style type="text/css">'+F+"</style>");var N=v(S),A=u(S),X=t.mac?"e.metaKey":"e.ctrlKey && !e.altKey",Z='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+X+")) {e.preventDefault();}}}, false);<\/script> ",z=S.getBody().dir,Y=z?' dir="'+B(z)+'"':"",Q="<!DOCTYPE html><html><head>"+T+'</head><body id="'+B(N)+'" class="mce-content-body '+B(A)+'"'+Y+">"+S.getContent()+Z+"</body></html>";return Q},g=function(S){var T=h(S),B=S.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:T}});B.focus("close")},y=function(S){S.addCommand("mcePreview",function(){g(S)})},w=function(S){var T=function(){return S.execCommand("mcePreview")};S.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:T}),S.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:T})};function C(){e.add("preview",function(S){y(S),w(S)})}C()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(l){l.addCommand("mcePrint",function(){t.browser.isIE()?l.getDoc().execCommand("print",!1,null):l.getWin().print()})},r=function(l){var u=function(){return l.execCommand("mcePrint")};l.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:u}),l.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:u})};function i(){e.add("print",function(l){n(l),r(l),l.addShortcut("Meta+P","","mcePrint")})}i()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=0,n=function(Ke){var mt=new Date,Ct=mt.getTime(),bt=Math.floor(Math.random()*1e9);return t++,Ke+"_"+bt+t+String(Ct)},r=function(Ke,mt){var Ct='<table data-mce-id="mce" style="width: 100%">';Ct+="<tbody>";for(var bt=0;bt<mt;bt++){Ct+="<tr>";for(var tn=0;tn<Ke;tn++)Ct+="<td><br></td>";Ct+="</tr>"}return Ct+="</tbody>",Ct+="</table>",Ct},i=function(Ke){var mt=Ke.dom.select("*[data-mce-id]");return mt[0]},l=function(Ke,mt,Ct){Ke.undoManager.transact(function(){Ke.insertContent(r(mt,Ct));var bt=i(Ke);bt.removeAttribute("data-mce-id");var tn=Ke.dom.select("td,th",bt);Ke.selection.setCursorLocation(tn[0],0)})},u=function(Ke,mt,Ct){Ke.plugins.table?Ke.plugins.table.insertTable(mt,Ct):l(Ke,mt,Ct)},f=function(Ke,mt,Ct){var bt=Ke.editorUpload.blobCache,tn=bt.create(n("mceu"),Ct,mt);bt.add(tn),Ke.insertContent(Ke.dom.createHTML("img",{src:tn.blobUri()}))},v=tinymce.util.Tools.resolve("tinymce.util.Promise"),h=function(Ke){return new v(function(mt){var
215Ct=new FileReader;Ct.onloadend=function(){mt(Ct.result.split(",")[1])},Ct.readAsDataURL(Ke)})},g=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),w=function(Ke){return new v(function(mt){var Ct=document.createElement("input");Ct.type="file",Ct.accept="image/*",Ct.style.position="fixed",Ct.style.left="0",Ct.style.top="0",Ct.style.opacity="0.001",document.body.appendChild(Ct);var bt=function(Ft){mt(Array.prototype.slice.call(Ft.target.files))};Ct.addEventListener("change",bt);var tn=function(Ft){var It=function(){mt([]),Ct.parentNode.removeChild(Ct)};g.os.isAndroid()&&Ft.type!=="remove"?y.setEditorTimeout(Ke,It,0):It(),Ke.off("focusin remove",tn)};Ke.on("focusin remove",tn),Ct.click()})},C=function(Ke){Ke.ui.registry.addButton("quickimage",{icon:"image",tooltip:"Insert image",onAction:function(){w(Ke).then(function(mt){if(mt.length>0){var Ct=mt[0];h(Ct).then(function(bt){f(Ke,bt,Ct)})}})}}),Ke.ui.registry.addButton("quicktable",{icon:"table",tooltip:"Insert table",onAction:function(){u(Ke,2,2)}})},S=function(Ke){var mt=typeof Ke;return Ke===null?"null":mt==="object"&&(Array.prototype.isPrototypeOf(Ke)||Ke.constructor&&Ke.constructor.name==="Array")?"array":mt==="object"&&(String.prototype.isPrototypeOf(Ke)||Ke.constructor&&Ke.constructor.name==="String")?"string":mt},T=function(Ke){return function(mt){return S(mt)===Ke}},B=function(Ke){return function(mt){return typeof mt===Ke}},F=function(Ke){return function(mt){return Ke===mt}},R=T("string"),N=T("object"),A=T("array"),X=B("boolean"),Z=F(void 0),z=B("function"),Y=function(){},Q=function(Ke){return function(){return Ke}},$=function(Ke){return Ke},te=Q(!1),V=Q(!0),K=function(){return fe},fe=function(){var Ke=function(bt){return bt()},mt=$,Ct={fold:function(bt,tn){return bt()},isSome:te,isNone:V,getOr:mt,getOrThunk:Ke,getOrDie:function(bt){throw new Error(bt||"error: getOrDie called on none.")},getOrNull:Q(null),getOrUndefined:Q(void 0),or:mt,orThunk:Ke,map:K,each:Y,bind:K,exists:te,forall:V,filter:function(){return K()},toArray:function(){return[]},toString:Q("none()")};return Ct}(),de=function(Ke){var mt=Q(Ke),Ct=function(){return tn},bt=function(Ft){return Ft(Ke)},tn={fold:function(Ft,It){return It(Ke)},isSome:V,isNone:te,getOr:mt,getOrThunk:mt,getOrDie:mt,getOrNull:mt,getOrUndefined:mt,or:Ct,orThunk:Ct,map:function(Ft){return de(Ft(Ke))},each:function(Ft){Ft(Ke)},bind:bt,exists:bt,forall:bt,filter:function(Ft){return Ft(Ke)?tn:fe},toArray:function(){return[Ke]},toString:function(){return"some("+Ke+")"}};return tn},ne=function(Ke){return Ke==null?fe:de(Ke)},le={some:de,none:K,from:ne};function _e(Ke,mt,Ct,bt,tn){return Ke(Ct,bt)?le.some(Ct):z(tn)&&tn(Ct)?le.none():mt(Ct,bt,tn)}var M=1,P=function(Ke,mt){var Ct=mt||document,bt=Ct.createElement("div");if(bt.innerHTML=Ke,!bt.hasChildNodes()||bt.childNodes.length>1)throw console.error("HTML does not have a single root node",Ke),new Error("HTML must have a single root node");return ee(bt.childNodes[0])},U=function(Ke,mt){var Ct=mt||document,bt=Ct.createElement(Ke);return ee(bt)},j=function(Ke,mt){var Ct=mt||document,bt=Ct.createTextNode(Ke);return ee(bt)},ee=function(Ke){if(Ke==null)throw new Error("Node cannot be null or undefined");return{dom:Ke}},ye=function(Ke,mt,Ct){return le.from(Ke.dom.elementFromPoint(mt,Ct)).map(ee)},ie={fromHtml:P,fromTag:U,fromText:j,fromDom:ee,fromPoint:ye},he=function(Ke,mt){var Ct=Ke.dom;if(Ct.nodeType!==M)return!1;var bt=Ct;if(bt.matches!==void 0)return bt.matches(mt);if(bt.msMatchesSelector!==void 0)return bt.msMatchesSelector(mt);if(bt.webkitMatchesSelector!==void 0)return bt.webkitMatchesSelector(mt);if(bt.mozMatchesSelector!==void 0)return bt.mozMatchesSelector(mt);throw new Error("Browser lacks native selectors")};typeof window!="undefined"||Function("return this;")();var re=function(Ke){var mt=Ke.dom.nodeName;return mt.toLowerCase()},be=function(Ke,mt,Ct){for(var bt=Ke.dom,tn=z(Ct)?Ct:te;bt.parentNode;){bt=bt.parentNode;var Ft=ie.fromDom(bt);if(mt(Ft))return le.some(Ft);if(tn(Ft))break}return le.none()},Ae=function(Ke,mt,Ct){var bt=function(tn,Ft){return Ft(tn)};return _e(bt,be,Ke,mt,Ct)},Te=function(Ke,mt,Ct){return be(Ke,function(bt){return he(bt,mt)},Ct)},Ue=function(Ke,mt,Ct){var bt=function(tn,Ft){return he(tn,Ft)};return _e(bt,Te,Ke,mt,Ct)},Oe=function(Ke,mt){if(mt(Ke))return!0;throw new Error("Default value doesn't match requested type.")},De=function(Ke,mt){if(A(Ke)||N(Ke))throw new Error("expected a string but found: "+Ke);
215return Z(Ke)?mt:X(Ke)?Ke===!1?"":mt:Ke},$e=function(Ke){return function(mt,Ct,bt){Oe(bt,Ke);var tn=mt.getParam(Ct,bt);return De(tn,bt)}},rt=$e(R),ct=function(Ke){return rt(Ke,"quickbars_selection_toolbar","bold italic | quicklink h2 h3 blockquote")},lt=function(Ke){return rt(Ke,"quickbars_insert_toolbar","quickimage quicktable")},ot=function(Ke){return rt(Ke,"quickbars_image_toolbar","alignleft aligncenter alignright")},Fe=function(Ke){var mt=lt(Ke);mt.trim().length>0&&Ke.ui.registry.addContextToolbar("quickblock",{predicate:function(Ct){var bt=ie.fromDom(Ct),tn=Ke.schema.getTextBlockElements(),Ft=function(It){return It.dom===Ke.getBody()};return Ue(bt,"table",Ft).fold(function(){return Ae(bt,function(It){return re(It)in tn&&Ke.dom.isEmpty(It.dom)},Ft).isSome()},te)},items:mt,position:"line",scope:"editor"})},We=function(Ke){var mt=function(Ft){return Ke.dom.getContentEditableParent(Ft)!=="false"},Ct=function(Ft){return Ft.nodeName==="IMG"||Ft.nodeName==="FIGURE"&&/image/i.test(Ft.className)},bt=ot(Ke);bt.trim().length>0&&Ke.ui.registry.addContextToolbar("imageselection",{predicate:Ct,items:bt,position:"node"});var tn=ct(Ke);tn.trim().length>0&&Ke.ui.registry.addContextToolbar("textselection",{predicate:function(Ft){return!Ct(Ft)&&!Ke.selection.isCollapsed()&&mt(Ft)},items:tn,position:"selection",scope:"editor"})};function Ye(){e.add("quickbars",function(Ke){C(Ke),Fe(Ke),We(Ke)})}Ye()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools"),r=function(C){return C.getParam("save_enablewhendirty",!0)},i=function(C){return!!C.getParam("save_onsavecallback")},l=function(C){return!!C.getParam("save_oncancelcallback")},u=function(C,S){C.notificationManager.open({text:S,type:"error"})},f=function(C){var S=t.DOM.getParent(C.id,"form");if(!(r(C)&&!C.isDirty())){if(C.save(),i(C)){C.execCallback("save_onsavecallback",C),C.nodeChanged();return}S?(C.setDirty(!1),(!S.onsubmit||S.onsubmit())&&(typeof S.submit=="function"?S.submit():u(C,"Error: Form submit field collision.")),C.nodeChanged()):u(C,"Error: No form element found.")}},v=function(C){var S=n.trim(C.startContent);if(l(C)){C.execCallback("save_oncancelcallback",C);return}C.resetContent(S)},h=function(C){C.addCommand("mceSave",function(){f(C)}),C.addCommand("mceCancel",function(){v(C)})},g=function(C){return function(S){var T=function(){S.setDisabled(r(C)&&!C.isDirty())};return T(),C.on("NodeChange dirty",T),function(){return C.off("NodeChange dirty",T)}}},y=function(C){C.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return C.execCommand("mceSave")},onSetup:g(C)}),C.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return C.execCommand("mceCancel")},onSetup:g(C)}),C.addShortcut("Meta+S","","mceSave")};function w(){e.add("save",function(C){y(C),h(C)})}w()})();(function(){var e=function(ft){var Bt=ft,Rn=function(){return Bt},Qn=function(Ze){Bt=Ze};return{get:Rn,set:Qn}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(Bt){for(var Rn,Qn=1,Ze=arguments.length;Qn<Ze;Qn++){Rn=arguments[Qn];for(var St in Rn)Object.prototype.hasOwnProperty.call(Rn,St)&&(Bt[St]=Rn[St])}return Bt},n.apply(this,arguments)},r=function(ft){var Bt=typeof ft;return ft===null?"null":Bt==="object"&&(Array.prototype.isPrototypeOf(ft)||ft.constructor&&ft.constructor.name==="Array")?"array":Bt==="object"&&(String.prototype.isPrototypeOf(ft)||ft.constructor&&ft.constructor.name==="String")?"string":Bt},i=function(ft){return function(Bt){return r(Bt)===ft}},l=function(ft){return function(Bt){return typeof Bt===ft}},u=i("string"),f=i("array"),v=l("boolean"),h=l("number"),g=function(){},y=function(ft){return function(){return ft}},w=function(ft){return ft},C=y(!1),S=y(!0),T="[!-#%-*,-\\/:;?@\\[-\\]_{}\xA1\xAB\xB7\xBB\xBF;\xB7\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1361-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u3008\u3009\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30\u2E31\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]",B=y(T),F=function(){return R},R=function(){var ft=function(Qn){return Qn()},Bt=w,Rn={fold:function(Qn,Ze){return Qn()},isSome:C,isNone:S,getOr:Bt,getOrThunk:ft,getOrDie:function(Qn){throw new Error(Qn||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:Bt,orThunk:ft,map:F,each:g,bind:F,exists:C,forall:S,filter:function(){return F()},toArray:function(){return[]},toString:y("none()")};return Rn}(),N=function(ft){var Bt=y(ft),Rn=function(){return Ze},Qn=function(St){return St(ft)},Ze={fold:function(St,Gt){return Gt(ft)},isSome:S,isNone:C,getOr:Bt,getOrThunk:Bt,getOrDie:Bt,getOrNull:Bt,getOrUndefined:Bt,or:Rn,orThunk:Rn,map:function(St){return N(St(ft))},each:function(St){St(ft)},bind:Qn,exists:Qn,forall:Qn,filter:function(St){return St(ft)?Ze:
215R},toArray:function(){return[ft]},toString:function(){return"some("+ft+")"}};return Ze},A=function(ft){return ft==null?R:N(ft)},X={some:N,none:F,from:A},Z=B,z=tinymce.util.Tools.resolve("tinymce.Env"),Y=tinymce.util.Tools.resolve("tinymce.util.Tools"),Q=Array.prototype.slice,$=Array.prototype.push,te=function(ft,Bt){for(var Rn=ft.length,Qn=new Array(Rn),Ze=0;Ze<Rn;Ze++){var St=ft[Ze];Qn[Ze]=Bt(St,Ze)}return Qn},V=function(ft,Bt){for(var Rn=0,Qn=ft.length;Rn<Qn;Rn++){var Ze=ft[Rn];Bt(Ze,Rn)}},K=function(ft,Bt){for(var Rn=ft.length-1;Rn>=0;Rn--){var Qn=ft[Rn];Bt(Qn,Rn)}},fe=function(ft,Bt){if(ft.length===0)return[];for(var Rn=Bt(ft[0]),Qn=[],Ze=[],St=0,Gt=ft.length;St<Gt;St++){var Xt=ft[St],On=Bt(Xt);On!==Rn&&(Qn.push(Ze),Ze=[]),Rn=On,Ze.push(Xt)}return Ze.length!==0&&Qn.push(Ze),Qn},de=function(ft,Bt,Rn){return V(ft,function(Qn,Ze){Rn=Bt(Rn,Qn,Ze)}),Rn},ne=function(ft){for(var Bt=[],Rn=0,Qn=ft.length;Rn<Qn;++Rn){if(!f(ft[Rn]))throw new Error("Arr.flatten item "+Rn+" was not an array, input: "+ft);$.apply(Bt,ft[Rn])}return Bt},le=function(ft,Bt){return ne(te(ft,Bt))},_e=function(ft,Bt){var Rn=Q.call(ft,0);return Rn.sort(Bt),Rn},M=Object.hasOwnProperty,P=function(ft,Bt){return M.call(ft,Bt)};typeof window!="undefined"||Function("return this;")();var U=9,j=11,ee=1,ye=3,ie=function(ft){return ft.dom.nodeType},he=function(ft){return function(Bt){return ie(Bt)===ft}},re=he(ye),be=function(ft,Bt,Rn){if(u(Rn)||v(Rn)||h(Rn))ft.setAttribute(Bt,Rn+"");else throw console.error("Invalid call to Attribute.set. Key ",Bt,":: Value ",Rn,":: Element ",ft),new Error("Attribute value was not simple")},Ae=function(ft,Bt,Rn){be(ft.dom,Bt,Rn)},Te=function(ft,Bt,Rn){return(ft.compareDocumentPosition(Bt)&Rn)!==0},Ue=function(ft,Bt){return Te(ft,Bt,Node.DOCUMENT_POSITION_PRECEDING)},Oe=function(ft,Bt){var Rn=Bt||document,Qn=Rn.createElement("div");if(Qn.innerHTML=ft,!Qn.hasChildNodes()||Qn.childNodes.length>1)throw console.error("HTML does not have a single root node",ft),new Error("HTML must have a single root node");return rt(Qn.childNodes[0])},De=function(ft,Bt){var Rn=Bt||document,Qn=Rn.createElement(ft);return rt(Qn)},$e=function(ft,Bt){var Rn=Bt||document,Qn=Rn.createTextNode(ft);return rt(Qn)},rt=function(ft){if(ft==null)throw new Error("Node cannot be null or undefined");return{dom:ft}},ct=function(ft,Bt,Rn){return X.from(ft.dom.elementFromPoint(Bt,Rn)).map(rt)},lt={fromHtml:Oe,fromTag:De,fromText:$e,fromDom:rt,fromPoint:ct},ot=function(ft){return ft.nodeType!==ee&&ft.nodeType!==U&&ft.nodeType!==j||ft.childElementCount===0},Fe=function(ft,Bt){var Rn=Bt===void 0?document:Bt.dom;return ot(Rn)?[]:te(Rn.querySelectorAll(ft),lt.fromDom)},We=function(ft){return X.from(ft.dom.parentNode).map(lt.fromDom)},Ye=function(ft){return te(ft.dom.childNodes,lt.fromDom)},Ke=function(ft,Bt){return{element:ft,offset:Bt}},mt=function(ft,Bt){var Rn=Ye(ft);return Rn.length>0&&Bt<Rn.length?Ke(Rn[Bt],0):Ke(ft,Bt)},Ct=function(ft,Bt){var Rn=We(ft);Rn.each(function(Qn){Qn.dom.insertBefore(Bt.dom,ft.dom)})},bt=function(ft,Bt){ft.dom.appendChild(Bt.dom)},tn=function(ft,Bt){Ct(ft,Bt),bt(Bt,ft)},Ft=function(ft,Bt){var Rn=function(St){if(!ft(St))throw new Error("Can only get "+Bt+" value of a "+Bt+" node");return Qn(St).getOr("")},Qn=function(St){return ft(St)?X.from(St.dom.nodeValue):X.none()},Ze=function(St,Gt){if(!ft(St))throw new Error("Can only set raw "+Bt+" value of a "+Bt+" node");St.dom.nodeValue=Gt};return{get:Rn,getOption:Qn,set:Ze}},It=Ft(re,"text"),Et=function(ft){return It.get(ft)},At=function(ft,Bt){return Fe(Bt,ft)},vt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Tt=function(ft,Bt){return ft.isBlock(Bt)||P(ft.schema.getShortEndedElements(),Bt.nodeName)},Wt=function(ft,Bt){return ft.getContentEditable(Bt)==="false"},xt=function(ft,Bt){return ft.getContentEditable(Bt)==="true"&&ft.getContentEditableParent(Bt.parentNode)==="false"},at=function(ft,Bt){return!ft.isBlock(Bt)&&P(ft.schema.getWhiteSpaceElements(),Bt.nodeName)},_t=function(ft,Bt){return Tt(ft,Bt)||Wt(ft,Bt)||at(ft,Bt)||xt(ft,Bt)},en=function(ft){return ft.nodeType===3},An=function(){return{sOffset:0,fOffset:0,elements:[]}},Vt=function(ft,Bt){return mt(lt.fromDom(ft),Bt)},_n=function(ft,Bt,Rn,Qn,Ze,St){St===void 0&&(St=!0);for(var Gt=St?Bt(!1):Rn;Gt;){var Xt=Wt(ft,Gt);if(Xt||at(ft,Gt)){var On=Xt?Qn.cef(Gt):Qn.boundary(Gt);if(On)break;Gt=Bt(!0);continue}else if(Tt(ft,Gt)){if(Qn.boundary(Gt))break}else en(Gt)&&Qn.text(Gt);if(Gt===Ze)break;Gt=Bt(!1)}},Mt=function(ft,Bt,Rn,Qn,Ze){if(!_t(ft,Rn)){var St=ft.getParent(Qn,ft.isBlock),Gt=new vt(Rn,St),Xt=Ze?Gt.next.bind(Gt):Gt.prev.bind(Gt);_n(ft,Xt,Rn,{boundary:S,cef:S,text:function(On){Ze?Bt.fOffset+=On.length:Bt.sOffset+=On.length,Bt.elements.push(lt.fromDom(On))}})}},pn=function(ft,Bt,Rn,Qn,Ze,St){St===void 0&&(St=!0);var Gt=new vt(Rn,Bt),Xt=[],On=An();Mt(ft,On,Rn,Bt,!1);var Dn=function(){return On.elements.length>0&&(Xt.push(On),On=An()),!1};
215return _n(ft,Gt.next.bind(Gt),Rn,{boundary:Dn,cef:function(xr){return Dn(),Ze&&Xt.push.apply(Xt,Ze.cef(xr)),!1},text:function(xr){On.elements.push(lt.fromDom(xr)),Ze&&Ze.text(xr,On)}},Qn,St),Qn&&Mt(ft,On,Qn,Bt,!0),Dn(),Xt},En=function(ft,Bt){var Rn=Vt(Bt.startContainer,Bt.startOffset),Qn=Rn.element.dom,Ze=Vt(Bt.endContainer,Bt.endOffset),St=Ze.element.dom;return pn(ft,Bt.commonAncestorContainer,Qn,St,{text:function(Gt,Xt){Gt===St?Xt.fOffset+=Gt.length-Ze.offset:Gt===Qn&&(Xt.sOffset+=Rn.offset)},cef:function(Gt){var Xt=le(At(lt.fromDom(Gt),"*[contenteditable=true]"),function(On){var Dn=On.dom;return pn(ft,Dn,Dn)});return _e(Xt,function(On,Dn){return Ue(On.elements[0].dom,Dn.elements[0].dom)?1:-1})}},!1)},zn=function(ft,Bt){return Bt.collapsed?[]:En(ft,Bt)},nn=function(ft,Bt){var Rn=ft.createRng();return Rn.selectNode(Bt),zn(ft,Rn)},Yn=function(ft,Bt){return le(Bt,function(Rn){return nn(ft,Rn)})},qr=function(ft,Bt,Rn,Qn){Rn===void 0&&(Rn=0),Qn===void 0&&(Qn=ft.length);var Ze=Bt.regex;Ze.lastIndex=Rn;for(var St=[],Gt;Gt=Ze.exec(ft);){var Xt=Gt[Bt.matchIndex],On=Gt.index+Gt[0].indexOf(Xt),Dn=On+Xt.length;if(Dn>Qn)break;St.push({start:On,finish:Dn}),Ze.lastIndex=Dn}return St},Br=function(ft,Bt){var Rn=de(ft,function(Qn,Ze){var St=Et(Ze),Gt=Qn.last,Xt=Gt+St.length,On=le(Bt,function(Dn,xr){return Dn.start<Xt&&Dn.finish>Gt?[{element:Ze,start:Math.max(Gt,Dn.start)-Gt,finish:Math.min(Xt,Dn.finish)-Gt,matchId:xr}]:[]});return{results:Qn.results.concat(On),last:Xt}},{results:[],last:0}).results;return fe(Rn,function(Qn){return Qn.matchId})},io=function(ft,Bt){return le(Bt,function(Rn){var Qn=Rn.elements,Ze=te(Qn,Et).join(""),St=qr(Ze,ft,Rn.sOffset,Ze.length-Rn.fOffset);return Br(Qn,St)})},xa=function(ft,Bt){K(ft,function(Rn,Qn){K(Rn,function(Ze){var St=lt.fromDom(Bt.cloneNode(!1));Ae(St,"data-mce-index",Qn);var Gt=Ze.element.dom;if(Gt.length===Ze.finish&&Ze.start===0)tn(Ze.element,St);else{Gt.length!==Ze.finish&&Gt.splitText(Ze.finish);var Xt=Gt.splitText(Ze.start);tn(lt.fromDom(Xt),St)}})})},Di=function(ft,Bt,Rn,Qn){var Ze=nn(ft,Rn),St=io(Bt,Ze);return xa(St,Qn),St.length},la=function(ft,Bt,Rn,Qn){var Ze=Rn.getBookmark(),St=ft.select("td[data-mce-selected],th[data-mce-selected]"),Gt=St.length>0?Yn(ft,St):zn(ft,Rn.getRng()),Xt=io(Bt,Gt);return xa(Xt,Qn),Rn.moveToBookmark(Ze),Xt.length},Na=function(ft){var Bt=ft.getAttribute("data-mce-index");return typeof Bt=="number"?""+Bt:Bt},Bi=function(ft,Bt,Rn,Qn){var Ze=ft.dom.create("span",{"data-mce-bogus":1});Ze.className="mce-match-marker";var St=ft.getBody();return cs(ft,Bt,!1),Qn?la(ft.dom,Rn,ft.selection,Ze):Di(ft.dom,Rn,St,Ze)},Ps=function(ft){var Bt=ft.parentNode;ft.firstChild&&Bt.insertBefore(ft.firstChild,ft),ft.parentNode.removeChild(ft)},rs=function(ft,Bt){var Rn=[],Qn=Y.toArray(ft.getBody().getElementsByTagName("span"));if(Qn.length)for(var Ze=0;Ze<Qn.length;Ze++){var St=Na(Qn[Ze]);St===null||!St.length||St===Bt.toString()&&Rn.push(Qn[Ze])}return Rn},Ai=function(ft,Bt,Rn){var Qn=Bt.get(),Ze=Qn.index,St=ft.dom;Rn=Rn!==!1,Rn?Ze+1===Qn.count?Ze=0:Ze++:Ze-1===-1?Ze=Qn.count-1:Ze--,St.removeClass(rs(ft,Qn.index),"mce-match-marker-selected");var Gt=rs(ft,Ze);return Gt.length?(St.addClass(rs(ft,Ze),"mce-match-marker-selected"),ft.selection.scrollIntoView(Gt[0]),Ze):-1},el=function(ft,Bt){var Rn=Bt.parentNode;ft.remove(Bt),ft.isEmpty(Rn)&&ft.remove(Rn)},ga=function(ft,Bt){var Rn=ft.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").replace(/\s/g,"[^\\S\\r\\n\\uFEFF]"),Qn="("+Rn+")";return Bt?"(?:^|\\s|"+Z()+")"+Qn+("(?=$|\\s|"+Z()+")"):Qn},_s=function(ft,Bt,Rn,Qn,Ze,St){var Gt=ft.selection,Xt=ga(Rn,Ze),On=Gt.isForward(),Dn={regex:new RegExp(Xt,Qn?"g":"gi"),matchIndex:1},xr=Bi(ft,Bt,Dn,St);if(z.browser.isSafari()&&Gt.setRng(Gt.getRng(),On),xr){var Nr=Ai(ft,Bt,!0);Bt.set({index:Nr,count:xr,text:Rn,matchCase:Qn,wholeWord:Ze,inSelection:St})}return xr},fo=function(ft,Bt){var Rn=Ai(ft,Bt,!0);Bt.set(n(n({},Bt.get()),{index:Rn}))},il=function(ft,Bt){var Rn=Ai(ft,Bt,!1);Bt.set(n(n({},Bt.get()),{index:Rn}))},Fs=function(ft){var Bt=Na(ft);return Bt!==null&&Bt.length>0},us=function(ft,Bt,Rn,Qn,Ze){var St=Bt.get(),Gt=St.index,Xt,On=Gt;Qn=Qn!==!1;for(var Dn=ft.getBody(),xr=Y.grep(Y.toArray(Dn.getElementsByTagName("span")),Fs),Nr=0;Nr<xr.length;Nr++){var To=Na(xr[Nr]),Bn=Xt=parseInt(To,10);if(Ze||Bn===St.index){for(Rn.length?(xr[Nr].firstChild.nodeValue=Rn,Ps(xr[Nr])):el(ft.dom,xr[Nr]);xr[++Nr];)if(Bn=parseInt(Na(xr[Nr]),10),Bn===Xt)el(ft.dom,xr[Nr]);else{Nr--;break}Qn&&On--}else Xt>Gt&&xr[Nr].setAttribute("data-mce-index",String(Xt-1))}return Bt.set(n(n({},St),{count:Ze?0:St.count-1,index:On})),Qn?fo(ft,Bt):il(ft,Bt),!Ze&&Bt.get().count>0},cs=function(ft,Bt,Rn){for(var Qn,Ze,St=Bt.get(),Gt=Y.toArray(ft.getBody().getElementsByTagName("span")),Xt=0;Xt<Gt.length;Xt++){var On=Na(Gt[Xt]);On!==null&&On.length&&(On===St.index.toString()&&(Qn||(Qn=Gt[Xt].firstChild),Ze=Gt[Xt].firstChild),Ps(Gt[Xt]))}if(Bt.set(n(n({}
215,St),{index:-1,count:0,text:""})),Qn&&Ze){var Dn=ft.dom.createRng();return Dn.setStart(Qn,0),Dn.setEnd(Ze,Ze.data.length),Rn!==!1&&ft.selection.setRng(Dn),Dn}},sl=function(ft,Bt){return Bt.get().count>1},wi=function(ft,Bt){return Bt.get().count>1},bo=function(ft,Bt){var Rn=function(Xt){return cs(ft,Bt,Xt)},Qn=function(Xt,On,Dn,xr){return xr===void 0&&(xr=!1),_s(ft,Bt,Xt,On,Dn,xr)},Ze=function(){return fo(ft,Bt)},St=function(){return il(ft,Bt)},Gt=function(Xt,On,Dn){return us(ft,Bt,Xt,On,Dn)};return{done:Rn,find:Qn,next:Ze,prev:St,replace:Gt}},pl=function(ft){var Bt=e(X.none()),Rn=function(){return Bt.get().each(ft)},Qn=function(){Rn(),Bt.set(X.none())},Ze=function(){return Bt.get().isSome()},St=function(){return Bt.get()},Gt=function(Xt){Rn(),Bt.set(X.some(Xt))};return{clear:Qn,isSet:Ze,get:St,set:Gt}},zt=function(){var ft=pl(g),Bt=function(Rn){return ft.get().each(Rn)};return n(n({},ft),{on:Bt})},an=function(ft,Bt){var Rn=zt();ft.undoManager.add();var Qn=Y.trim(ft.selection.getContent({format:"text"})),Ze=function(po){var Zo=sl(ft,Bt)?po.enable:po.disable;Zo("next");var Za=wi(ft,Bt)?po.enable:po.disable;Za("prev")},St=function(po){var Zo=po.getData(),Za=Bt.get();Bt.set(n(n({},Za),{matchCase:Zo.matchcase,wholeWord:Zo.wholewords,inSelection:Zo.inselection}))},Gt=function(po,Zo){var Za=["replace","replaceall","prev","next"],os=Zo?po.disable:po.enable;V(Za,os)},Xt=function(po){ft.windowManager.alert("Could not find the specified string.",function(){po.focus("findtext")})},On=function(po,Zo){z.browser.isSafari()&&z.deviceType.isTouch()&&(Zo==="find"||Zo==="replace"||Zo==="replaceall")&&po.focus(Zo)},Dn=function(po){cs(ft,Bt,!1),Gt(po,!0),Ze(po)},xr=function(po){var Zo=po.getData(),Za=Bt.get();if(!Zo.findtext.length){Dn(po);return}if(Za.text===Zo.findtext&&Za.matchCase===Zo.matchcase&&Za.wholeWord===Zo.wholewords)fo(ft,Bt);else{var os=_s(ft,Bt,Zo.findtext,Zo.matchcase,Zo.wholewords,Zo.inselection);os<=0&&Xt(po),Gt(po,os===0)}Ze(po)},Nr=Bt.get(),To={findtext:Qn,replacetext:"",wholewords:Nr.wholeWord,matchcase:Nr.matchCase,inselection:Nr.inSelection},Bn={title:"Find and Replace",size:"normal",body:{type:"panel",items:[{type:"bar",items:[{type:"input",name:"findtext",placeholder:"Find",maximized:!0,inputMode:"search"},{type:"button",name:"prev",text:"Previous",icon:"action-prev",disabled:!0,borderless:!0},{type:"button",name:"next",text:"Next",icon:"action-next",disabled:!0,borderless:!0}]},{type:"input",name:"replacetext",placeholder:"Replace with",inputMode:"search"}]},buttons:[{type:"menu",name:"options",icon:"preferences",tooltip:"Preferences",align:"start",items:[{type:"togglemenuitem",name:"matchcase",text:"Match case"},{type:"togglemenuitem",name:"wholewords",text:"Find whole words only"},{type:"togglemenuitem",name:"inselection",text:"Find in selection"}]},{type:"custom",name:"find",text:"Find",primary:!0},{type:"custom",name:"replace",text:"Replace",disabled:!0},{type:"custom",name:"replaceall",text:"Replace all",disabled:!0}],initialData:To,onChange:function(po,Zo){Zo.name==="findtext"&&Bt.get().count>0&&Dn(po)},onAction:function(po,Zo){var Za=po.getData();switch(Zo.name){case"find":xr(po);break;case"replace":us(ft,Bt,Za.replacetext)?Ze(po):Dn(po);break;case"replaceall":us(ft,Bt,Za.replacetext,!0,!0),Dn(po);break;case"prev":il(ft,Bt),Ze(po);break;case"next":fo(ft,Bt),Ze(po);break;case"matchcase":case"wholewords":case"inselection":St(po),Dn(po);break}On(po,Zo.name)},onSubmit:function(po){xr(po),On(po,"find")},onClose:function(){ft.focus(),cs(ft,Bt),ft.undoManager.add()}};Rn.set(ft.windowManager.open(Bn,{inline:"toolbar"}))},Rt=function(ft,Bt){ft.addCommand("SearchReplace",function(){an(ft,Bt)})},Nn=function(ft,Bt){return function(){an(ft,Bt)}},Er=function(ft,Bt){ft.ui.registry.addMenuItem("searchreplace",{text:"Find and replace...",shortcut:"Meta+F",onAction:Nn(ft,Bt),icon:"search"}),ft.ui.registry.addButton("searchreplace",{tooltip:"Find and replace",onAction:Nn(ft,Bt),icon:"search"}),ft.shortcuts.add("Meta+F","",Nn(ft,Bt))};function Yr(){t.add("searchreplace",function(ft){var Bt=e({index:-1,count:0,text:"",matchCase:!1,wholeWord:!1,inSelection:!1});return Rt(ft,Bt),Er(ft,Bt),bo(ft,Bt)})}Yr()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.EditorManager"),r=tinymce.util.Tools.resolve("tinymce.Env"),i=tinymce.util.Tools.resolve("tinymce.util.Delay"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=tinymce.util.Tools.resolve("tinymce.util.VK"),f=function(C){return C.getParam("tabfocus_elements",":prev,:next")},v=function(C){return C.getParam("tab_focus",f(C))},h=t.DOM,g=function(C){C.keyCode===u.TAB&&!C.ctrlKey&&!C.altKey&&!C.metaKey&&C.preventDefault()},y=function(C){var S=function(T){var B;if(!(T.keyCode!==u.TAB||T.ctrlKey||T.altKey||T.metaKey||T.isDefaultPrevented())){var F=function(X){var Z=
215h.select(":input:enabled,*[tabindex]:not(iframe)"),z=function($){var te=$;return $.nodeName==="BODY"||te.type!=="hidden"&&te.style.display!=="none"&&te.style.visibility!=="hidden"&&z($.parentNode)},Y=function($){return/INPUT|TEXTAREA|BUTTON/.test($.tagName)&&n.get(T.id)&&$.tabIndex!==-1&&z($)};if(l.each(Z,function($,te){if($.id===C.id)return B=te,!1}),X>0){for(var Q=B+1;Q<Z.length;Q++)if(Y(Z[Q]))return Z[Q]}else for(var Q=B-1;Q>=0;Q--)if(Y(Z[Q]))return Z[Q];return null},R=l.explode(v(C));R.length===1&&(R[1]=R[0],R[0]=":prev");var N;if(T.shiftKey?R[0]===":prev"?N=F(-1):N=h.get(R[0]):R[1]===":next"?N=F(1):N=h.get(R[1]),N){var A=n.get(N.id||N.name);N.id&&A?A.focus():i.setTimeout(function(){r.webkit||window.focus(),N.focus()},10),T.preventDefault()}}};C.on("init",function(){C.inline&&h.setAttrib(C.getBody(),"tabIndex",null),C.on("keyup",g),r.gecko?C.on("keypress keydown",S):C.on("keydown",S)})};function w(){e.add("tabfocus",function(C){y(C)})}w()})();(function(){var e=function(_){var O=typeof _;return _===null?"null":O==="object"&&(Array.prototype.isPrototypeOf(_)||_.constructor&&_.constructor.name==="Array")?"array":O==="object"&&(String.prototype.isPrototypeOf(_)||_.constructor&&_.constructor.name==="String")?"string":O},t=function(_){return function(O){return e(O)===_}},n=function(_){return function(O){return typeof O===_}},r=function(_){return function(O){return _===O}},i=t("string"),l=t("object"),u=t("array"),f=r(null),v=n("boolean"),h=r(void 0),g=function(_){return _==null},y=function(_){return!g(_)},w=n("function"),C=n("number"),S=function(){},T=function(_,O){return function(){for(var H=[],oe=0;oe<arguments.length;oe++)H[oe]=arguments[oe];return _(O.apply(null,H))}},B=function(_,O){return function(H){return _(O(H))}},F=function(_){return function(){return _}},R=function(_){return _},N=function(_,O){return _===O};function A(_){for(var O=[],H=1;H<arguments.length;H++)O[H-1]=arguments[H];return function(){for(var oe=[],ve=0;ve<arguments.length;ve++)oe[ve]=arguments[ve];var Se=O.concat(oe);return _.apply(null,Se)}}var X=function(_){return function(O){return!_(O)}},Z=function(_){return function(){throw new Error(_)}},z=F(!1),Y=F(!0),Q=function(){return $},$=function(){var _=function(oe){return oe()},O=R,H={fold:function(oe,ve){return oe()},isSome:z,isNone:Y,getOr:O,getOrThunk:_,getOrDie:function(oe){throw new Error(oe||"error: getOrDie called on none.")},getOrNull:F(null),getOrUndefined:F(void 0),or:O,orThunk:_,map:Q,each:S,bind:Q,exists:z,forall:Y,filter:function(){return Q()},toArray:function(){return[]},toString:F("none()")};return H}(),te=function(_){var O=F(_),H=function(){return ve},oe=function(Se){return Se(_)},ve={fold:function(Se,Pe){return Pe(_)},isSome:Y,isNone:z,getOr:O,getOrThunk:O,getOrDie:O,getOrNull:O,getOrUndefined:O,or:H,orThunk:H,map:function(Se){return te(Se(_))},each:function(Se){Se(_)},bind:oe,exists:oe,forall:oe,filter:function(Se){return Se(_)?ve:$},toArray:function(){return[_]},toString:function(){return"some("+_+")"}};return ve},V=function(_){return _==null?$:te(_)},K={some:te,none:Q,from:V},fe=Array.prototype.slice,de=Array.prototype.indexOf,ne=Array.prototype.push,le=function(_,O){return de.call(_,O)},_e=function(_,O){return le(_,O)>-1},M=function(_,O){for(var H=0,oe=_.length;H<oe;H++){var ve=_[H];if(O(ve,H))return!0}return!1},P=function(_,O){for(var H=[],oe=0;oe<_;oe++)H.push(O(oe));return H},U=function(_,O){for(var H=_.length,oe=new Array(H),ve=0;ve<H;ve++){var Se=_[ve];oe[ve]=O(Se,ve)}return oe},j=function(_,O){for(var H=0,oe=_.length;H<oe;H++){var ve=_[H];O(ve,H)}},ee=function(_,O){for(var H=_.length-1;H>=0;H--){var oe=_[H];O(oe,H)}},ye=function(_,O){for(var H=[],oe=[],ve=0,Se=_.length;ve<Se;ve++){var Pe=_[ve],Xe=O(Pe,ve)?H:oe;Xe.push(Pe)}return{pass:H,fail:oe}},ie=function(_,O){for(var H=[],oe=0,ve=_.length;oe<ve;oe++){var Se=_[oe];O(Se,oe)&&H.push(Se)}return H},he=function(_,O,H){return ee(_,function(oe,ve){H=O(H,oe,ve)}),H},re=function(_,O,H){return j(_,function(oe,ve){H=O(H,oe,ve)}),H},be=function(_,O,H){for(var oe=0,ve=_.length;oe<ve;oe++){var Se=_[oe];if(O(Se,oe))return K.some(Se);if(H(Se,oe))break}return K.none()},Ae=function(_,O){return be(_,O,z)},Te=function(_,O){for(var H=0,oe=_.length;H<oe;H++){var ve=_[H];if(O(ve,H))return K.some(H)}return K.none()},Ue=function(_){for(var O=[],H=0,oe=_.length;H<oe;++H){if(!u(_[H]))throw new Error("Arr.flatten item "+H+" was not an array, input
215: "+_);ne.apply(O,_[H])}return O},Oe=function(_,O){return Ue(U(_,O))},De=function(_,O){for(var H=0,oe=_.length;H<oe;++H){var ve=_[H];if(O(ve,H)!==!0)return!1}return!0},$e=function(_){var O=fe.call(_,0);return O.reverse(),O},rt=function(_,O){for(var H={},oe=0,ve=_.length;oe<ve;oe++){var Se=_[oe];H[String(Se)]=O(Se,oe)}return H},ct=function(_){return[_]},lt=function(_,O){var H=fe.call(_,0);return H.sort(O),H},ot=function(_,O){return O>=0&&O<_.length?K.some(_[O]):K.none()},Fe=function(_){return ot(_,0)},We=function(_){return ot(_,_.length-1)},Ye=function(_,O){for(var H=0;H<_.length;H++){var oe=O(_[H],H);if(oe.isSome())return oe}return K.none()},Ke=function(){return Ke=Object.assign||function(O){for(var H,oe=1,ve=arguments.length;oe<ve;oe++){H=arguments[oe];for(var Se in H)Object.prototype.hasOwnProperty.call(H,Se)&&(O[Se]=H[Se])}return O},Ke.apply(this,arguments)};function mt(_,O,H){if(H||arguments.length===2)for(var oe=0,ve=O.length,Se;oe<ve;oe++)(Se||!(oe in O))&&(Se||(Se=Array.prototype.slice.call(O,0,oe)),Se[oe]=O[oe]);return _.concat(Se||Array.prototype.slice.call(O))}var Ct=function(_){var O=!1,H;return function(){for(var oe=[],ve=0;ve<arguments.length;ve++)oe[ve]=arguments[ve];return O||(O=!0,H=_.apply(null,oe)),H}},bt=function(_,O,H,oe){var ve=_.isiOS()&&/ipad/i.test(H)===!0,Se=_.isiOS()&&!ve,Pe=_.isiOS()||_.isAndroid(),Xe=Pe||oe("(pointer:coarse)"),wt=ve||!Se&&Pe&&oe("(min-device-width:768px)"),Ht=Se||Pe&&!wt,un=O.isSafari()&&_.isiOS()&&/safari/i.test(H)===!1,Jn=!Ht&&!wt&&!un;return{isiPad:F(ve),isiPhone:F(Se),isTablet:F(wt),isPhone:F(Ht),isTouch:F(Xe),isAndroid:_.isAndroid,isiOS:_.isiOS,isWebView:F(un),isDesktop:F(Jn)}},tn=function(_,O){for(var H=0;H<_.length;H++){var oe=_[H];if(oe.test(O))return oe}},Ft=function(_,O){var H=tn(_,O);if(!H)return{major:0,minor:0};var oe=function(ve){return Number(O.replace(H,"$"+ve))};return At(oe(1),oe(2))},It=function(_,O){var H=String(O).toLowerCase();return _.length===0?Et():Ft(_,H)},Et=function(){return At(0,0)},At=function(_,O){return{major:_,minor:O}},vt={nu:At,detect:It,unknown:Et},Tt=function(_,O){return Ye(O.brands,function(H){var oe=H.brand.toLowerCase();return Ae(_,function(ve){var Se;return oe===((Se=ve.brand)===null||Se===void 0?void 0:Se.toLowerCase())}).map(function(ve){return{current:ve.name,version:vt.nu(parseInt(H.version,10),0)}})})},Wt=function(_,O){var H=String(O).toLowerCase();return Ae(_,function(oe){return oe.search(H)})},xt=function(_,O){return Wt(_,O).map(function(H){var oe=vt.detect(H.versionRegexes,O);return{current:H.name,version:oe}})},at=function(_,O){return Wt(_,O).map(function(H){var oe=vt.detect(H.versionRegexes,O);return{current:H.name,version:oe}})},_t=function(_,O){return _.substring(O)},en=function(_,O,H){return O===""||_.length>=O.length&&_.substr(H,H+O.length)===O},An=function(_,O){return _n(_,O)?_t(_,O.length):_},Vt=function(_,O){return _.indexOf(O)!==-1},_n=function(_,O){return en(_,O,0)},Mt=function(_,O){return en(_,O,_.length-O.length)},pn=function(_){return function(O){return O.replace(_,"")}},En=pn(/^\s+|\s+$/g),zn=function(_){return _.length>0},nn=function(_){return!zn(_)},Yn=function(_){var O=parseFloat(_);return isNaN(O)?K.none():K.some(O)},qr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Br=function(_){return function(O){return Vt(O,_)}},io=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(_){return Vt(_,"edge/")&&Vt(_,"chrome")&&Vt(_,"safari")&&Vt(_,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,qr],search:function(_){return Vt(_,"chrome")&&!Vt(_,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(_){return Vt(_,"msie")||Vt(_,"trident")}},{name:"Opera",versionRegexes:[qr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Br("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Br("firefox")},{name:"Safari",versionRegexes:[qr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(_){return(Vt(_,"safari")||Vt(_,"mobile/"))&&Vt(_,"applewebkit")}}],xa=[{name:"Windows",search:Br("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(_){return Vt(_,"iphone")||Vt(_,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Br("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Br("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Br("linux"),versionRegexes:[]},{name:"Solaris",search:Br("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Br("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Br("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Di={browsers:F(io),oses:F(xa)},la="Edge",Na="Chrome",Bi="IE",Ps="Opera",rs="Firefox",Ai="Safari",el=function(){return ga({current:void 0,version:vt.unknown()})},ga=function(_){var O=_.current,H=_.version,oe=function(ve){return function(){return O===ve}};return{current:O,version:H,isEdge:oe(la),isChrome:oe(Na),isIE:oe(Bi),isOpera:oe(Ps),isFirefox:oe(rs),isSafari:oe(Ai)}},_s={unknown:el,nu:ga,edge:F(la),chrome:F(Na),ie:F(Bi),opera:F(Ps),firefox:F(rs),safari:F(Ai)},fo="Windows",il="iOS",Fs="Android",us="Linux",cs="OSX",sl="Solaris",wi="FreeBSD",bo="ChromeOS",pl=function(){return zt({current:void 0,version:vt.unknown()})}
215,zt=function(_){var O=_.current,H=_.version,oe=function(ve){return function(){return O===ve}};return{current:O,version:H,isWindows:oe(fo),isiOS:oe(il),isAndroid:oe(Fs),isOSX:oe(cs),isLinux:oe(us),isSolaris:oe(sl),isFreeBSD:oe(wi),isChromeOS:oe(bo)}},an={unknown:pl,nu:zt,windows:F(fo),ios:F(il),android:F(Fs),linux:F(us),osx:F(cs),solaris:F(sl),freebsd:F(wi),chromeos:F(bo)},Rt=function(_,O,H){var oe=Di.browsers(),ve=Di.oses(),Se=O.bind(function(wt){return Tt(oe,wt)}).orThunk(function(){return xt(oe,_)}).fold(_s.unknown,_s.nu),Pe=at(ve,_).fold(an.unknown,an.nu),Xe=bt(Pe,Se,_,H);return{browser:Se,os:Pe,deviceType:Xe}},Nn={detect:Rt},Er=function(_){return window.matchMedia(_).matches},Yr=Ct(function(){return Nn.detect(navigator.userAgent,K.from(navigator.userAgentData),Er)}),ft=function(){return Yr()},Bt=function(_,O,H){return(_.compareDocumentPosition(O)&H)!==0},Rn=function(_,O){return Bt(_,O,Node.DOCUMENT_POSITION_CONTAINED_BY)},Qn=8,Ze=9,St=11,Gt=1,Xt=3,On=function(_,O){var H=O||document,oe=H.createElement("div");if(oe.innerHTML=_,!oe.hasChildNodes()||oe.childNodes.length>1)throw console.error("HTML does not have a single root node",_),new Error("HTML must have a single root node");return Nr(oe.childNodes[0])},Dn=function(_,O){var H=O||document,oe=H.createElement(_);return Nr(oe)},xr=function(_,O){var H=O||document,oe=H.createTextNode(_);return Nr(oe)},Nr=function(_){if(_==null)throw new Error("Node cannot be null or undefined");return{dom:_}},To=function(_,O,H){return K.from(_.dom.elementFromPoint(O,H)).map(Nr)},Bn={fromHtml:On,fromTag:Dn,fromText:xr,fromDom:Nr,fromPoint:To},po=function(_,O){var H=_.dom;if(H.nodeType!==Gt)return!1;var oe=H;if(oe.matches!==void 0)return oe.matches(O);if(oe.msMatchesSelector!==void 0)return oe.msMatchesSelector(O);if(oe.webkitMatchesSelector!==void 0)return oe.webkitMatchesSelector(O);if(oe.mozMatchesSelector!==void 0)return oe.mozMatchesSelector(O);throw new Error("Browser lacks native selectors")},Zo=function(_){return _.nodeType!==Gt&&_.nodeType!==Ze&&_.nodeType!==St||_.childElementCount===0},Za=function(_,O){var H=O===void 0?document:O.dom;return Zo(H)?[]:U(H.querySelectorAll(_),Bn.fromDom)},os=function(_,O){var H=O===void 0?document:O.dom;return Zo(H)?K.none():K.from(H.querySelector(_)).map(Bn.fromDom)},ua=function(_,O){return _.dom===O.dom},Xu=function(_,O){var H=_.dom,oe=O.dom;return H===oe?!1:H.contains(oe)},Tu=function(_,O){return Rn(_.dom,O.dom)},as=function(_,O){return ft().browser.isIE()?Tu(_,O):Xu(_,O)},ff=po,Pl=Object.keys,Fl=Object.hasOwnProperty,Ka=function(_,O){for(var H=Pl(_),oe=0,ve=H.length;oe<ve;oe++){var Se=H[oe],Pe=_[Se];O(Pe,Se)}},df=function(_,O){return Rc(_,function(H,oe){return{k:oe,v:O(H,oe)}})},Rc=function(_,O){var H={};return Ka(_,function(oe,ve){var Se=O(oe,ve);H[Se.k]=Se.v}),H},Zu=function(_){return function(O,H){_[H]=O}},hc=function(_,O,H,oe){var ve={};return Ka(_,function(Se,Pe){(O(Se,Pe)?H:oe)(Se,Pe)}),ve},ql=function(_,O){var H={};return hc(_,O,Zu(H),S),H},Au=function(_,O){var H=[];return Ka(_,function(oe,ve){H.push(O(oe,ve))}),H},qf=function(_){return Au(_,R)},fu=function(_){return Pl(_).length},Sl=function(_,O){return pt(_,O)?K.from(_[O]):K.none()},pt=function(_,O){return Fl.call(_,O)},sn=function(_,O){return pt(_,O)&&_[O]!==void 0&&_[O]!==null},kn=function(_){for(var O in _)if(Fl.call(_,O))return!1;return!0},er=["tfoot","thead","tbody","colgroup"],wr=function(_){return _e(er,_)},mo=function(_,O){return{rows:_,columns:O}},ja=function(_,O){return{row:_,column:O}},ii=function(_,O,H){return{element:_,rowspan:O,colspan:H}},da=function(_,O,H,oe){return{element:_,rowspan:O,colspan:H,isNew:oe}},Ci=function(_,O,H,oe,ve,Se){return{element:_,rowspan:O,colspan:H,row:oe,column:ve,isLocked:Se}},es=function(_,O,H){return{element:_,cells:O,section:H}},pc=function(_,O,H,oe){return{element:_,cells:O,section:H,isNew:oe}},Yi=function(_,O,H){return{element:_,isNew:O,isLocked:H}},mc=function(_,O,H,oe){return{element:_,cells:O,section:H,isNew:oe}},Io=function(_,O,H,oe){return{startRow:_,startCol:O,finishRow:H,finishCol:oe}},gc=function(_,O,H){return{element:_,colspan:O,column:H}},Wd=function(_,O){return{element:_,columns:O}};typeof window!="undefined"||Function("return this;")();var Ea=function(_){var O=_.dom.nodeName;return O.toLowerCase()},Xf=function(_){return _.dom.nodeType},ku=function(_){return function(O){return Xf(O)===_}},Sd=function(_){return Xf(_)===Qn||Ea(_)==="#comment"},fi=ku(Gt),ml=ku(Xt),Bv=ku(Ze),Qu=ku(St),ws=function(_){return function(O){return fi(O)&&Ea(O)===_}},vf=function(_){return Bn.fromDom(_.dom.ownerDocument)},Gn=function(_){return Bv(_)?_:vf(_)},hf=function(_){return Bn.fromDom(Gn(_).dom.defaultView)},Cs=function(_){return K.from(_.dom.parentNode).map(Bn.fromDom)},y1=function(_){return K.from(_.dom.parentElement).map(Bn.fromDom)},Yc=function(_,O){for(var H=w(O)?O:z,oe=_.dom,ve=[];oe.parentNode!==null&&oe.parentNode!==void 0;){var Se=oe.parentNode,Pe=Bn.fromDom(Se);if(ve.push(Pe),H(Pe)===!0)break;oe=Se}return ve},je=function(_){return K.from(_.dom.previousSibling).map(Bn.fromDom)},xe=function(_){return K.from(_.dom.nextSibling).map(Bn.fromDom)},pe=function(_){return U(_.dom.childNodes,Bn.fromDom)},Re=function(_,O){var H=_.dom.childNodes;return K.from(H[O]).map(Bn.fromDom)},st=function(_){return Re(_,0)},Pt=function(_){return Qu(_)&&y(_.dom.host)},mn=w(Element.prototype.attachShadow)&&w(Node.prototype.getRootNode),ar=F(mn),vo=mn?function(_){return Bn.fromDom(_.dom.getRootNode())}:Gn,So=function(_){var O=vo(_);return Pt(O)?K.some(O):K.none()},yr=function(_){return Bn.fromDom(_.dom.host)},uo=function(_){if(ar()&&y(_.target)){var O=Bn.fromDom(_.target);if(fi(O)&&na(O)&&_.composed&&_.composedPath){var H=_.composedPath();if(H)return Fe(H)}}return K.from(_.target)},na=function(_){return y(_.dom.shadowRoot)},Qo=function(_){var O=ml(_)?_.dom.parentNode:_.dom;if(O==null||O.ownerDocument===null)return!1;var H=O.ownerDocument;return So(Bn.fromDom(O)).fold(function(){return H.body.contains(O)}
215,B(Qo,yr))},jo=function(){return Vi(Bn.fromDom(document))},Vi=function(_){var O=_.dom.body;if(O==null)throw new Error("Body is not available yet");return Bn.fromDom(O)},Vo=function(_,O,H){return ie(Yc(_,H),O)},di=function(_,O){return ie(pe(_),O)},si=function(_,O){var H=[];return j(pe(_),function(oe){O(oe)&&(H=H.concat([oe])),H=H.concat(si(oe,O))}),H},$l=function(_,O,H){return Vo(_,function(oe){return po(oe,O)},H)},ha=function(_,O){return di(_,function(H){return po(H,O)})},qc=function(_,O){return Za(O,_)};function ps(_,O,H,oe,ve){return _(H,oe)?K.some(H):w(ve)&&ve(H)?K.none():O(H,oe,ve)}var $s=function(_,O,H){for(var oe=_.dom,ve=w(H)?H:z;oe.parentNode;){oe=oe.parentNode;var Se=Bn.fromDom(oe);if(O(Se))return K.some(Se);if(ve(Se))break}return K.none()},Eh=function(_,O,H){var oe=function(ve,Se){return Se(ve)};return ps(oe,$s,_,O,H)},zs=function(_,O){var H=function(ve){return O(Bn.fromDom(ve))},oe=Ae(_.dom.childNodes,H);return oe.map(Bn.fromDom)},Sh=function(_,O){var H=function(oe){for(var ve=0;ve<oe.childNodes.length;ve++){var Se=Bn.fromDom(oe.childNodes[ve]);if(O(Se))return K.some(Se);var Pe=H(oe.childNodes[ve]);if(Pe.isSome())return Pe}return K.none()};return H(_.dom)},Zf=function(_,O,H){return $s(_,function(oe){return po(oe,O)},H)},Jo=function(_,O){return zs(_,function(H){return po(H,O)})},Tl=function(_,O){return os(O,_)},is=function(_,O,H){var oe=function(ve,Se){return po(ve,Se)};return ps(oe,Zf,_,O,H)},ks=function(_,O,H){if(i(H)||v(H)||C(H))_.setAttribute(O,H+"");else throw console.error("Invalid call to Attribute.set. Key ",O,":: Value ",H,":: Element ",_),new Error("Attribute value was not simple")},zl=function(_,O,H){ks(_.dom,O,H)},ll=function(_,O){var H=_.dom;Ka(O,function(oe,ve){ks(H,ve,oe)})},Pv=function(_,O){Ka(O,function(H,oe){H.fold(function(){Pi(_,oe)},function(ve){ks(_.dom,oe,ve)})})},pf=function(_,O){var H=_.dom.getAttribute(O);return H===null?void 0:H},ai=function(_,O){return K.from(pf(_,O))},Pi=function(_,O){_.dom.removeAttribute(O)},tl=function(_){return re(_.dom.attributes,function(O,H){return O[H.name]=H.value,O},{})},Gd=function(_,O,H){return H===void 0&&(H=N),_.exists(function(oe){return H(oe,O)})},gl=function(_){for(var O=[],H=function(ve){O.push(ve)},oe=0;oe<_.length;oe++)_[oe].each(H);return O},mf=function(_,O,H){return _.isSome()&&O.isSome()?K.some(H(_.getOrDie(),O.getOrDie())):K.none()},v2=function(_,O){return _!=null?O(_):K.none()},Fv=function(_){return _.bind(R)},Ui=function(_,O){return _?K.some(O):K.none()},Qf=function(_){return _.style!==void 0&&w(_.style.getPropertyValue)},Jf=function(_,O,H){if(!i(H))throw console.error("Invalid call to CSS.set. Property ",O,":: Value ",H,":: Element ",_),new Error("CSS value must be a string: "+H);Qf(_)&&_.style.setProperty(O,H)},yc=function(_,O){Qf(_)&&_.style.removeProperty(O)},Ws=function(_,O,H){var oe=_.dom;Jf(oe,O,H)},Kd=function(_,O){var H=_.dom;Ka(O,function(oe,ve){Jf(H,ve,oe)})},ed=function(_,O){var H=_.dom,oe=window.getComputedStyle(H),ve=oe.getPropertyValue(O);return ve===""&&!Qo(_)?Ou(H,O):ve},Ou=function(_,O){return Qf(_)?_.style.getPropertyValue(O):""},Mu=function(_,O){var H=_.dom,oe=Ou(H,O);return K.from(oe).filter(function(ve){return ve.length>0})},Os=function(_,O){var H=_.dom;yc(H,O),Gd(ai(_,"style").map(En),"")&&Pi(_,"style")},$v=function(_,O){var H=_.dom,oe=O.dom;Qf(H)&&Qf(oe)&&(oe.style.cssText=H.style.cssText)},gf=function(_,O,H){return H===void 0&&(H=0),ai(_,O).map(function(oe){return parseInt(oe,10)}).getOr(H)},yl=function(_,O){return gf(_,O,1)},Th=function(_){return ws("col")(_)?gf(_,"span",1)>1:yl(_,"colspan")>1},$m=function(_){return yl(_,"rowspan")>1},b1=function(_,O){return parseInt(ed(_,O),10)},zv=F(10),Gs=F(10),Hv=function(_,O){return yf(_,O,Y)},yf=function(_,O,H){return Oe(pe(_),function(oe){return po(oe,O)?H(oe)?[oe]:[]:yf(oe,O,H)})},Al=function(_,O,H){if(H===void 0&&(H=z),H(O))return K.none();if(_e(_,Ea(O)))return K.some(O);var oe=function(ve){return po(ve,"table")||H(ve)};return Zf(O,_.join(","),oe)},Xc=function(_,O){return Al(["td","th"],_,O)},_1=function(_){return Hv(_,"th,td")},Td=function(_){return po(_,"colgroup")?ha(_,"col"):Oe(Yd(_),function(O){return ha(O,"col")})},xs=function(_,O){return is(_,"table",O)},bc=function(_){return Hv(_,"tr")},Yd=function(_){return xs(_).fold(F([]),function(O){return ha(O,"colgroup")})},du=function(_,O){return U(_,function(H){if(Ea(H)==="colgroup"){var oe=U(Td(H),function(ve){var Se=gf(ve,"span",1);return ii(ve,1,Se)});return es(H,oe,"colgroup")}else{var oe=U(_1(H),function(Se){var Pe=gf(Se,"rowspan",1),Xe=gf(Se,"colspan",1);return ii(Se,Pe,Xe)});return es(H,oe,O(H))}})},Nu=function(_){return Cs(_).map(function(O){var H=Ea(O);return wr(H)?H:"tbody"}).getOr("tbody")},w1=function(_){var O=bc(_),H=Yd(_),oe=mt(mt([],H,!0),O,!0);return du(oe,Nu)},qd=function(_,O){return du(_,function(){return O})},Xd=function(_,O,H){var oe=_.cells,ve=oe.slice(0,O),Se=oe.slice(O),Pe=ve.concat(H).concat(Se);return Ko(_,Pe)},Vv=function(_,O,H){return Xd(_,O,[H])},C1=function(_,O,H){var oe=_.cells;oe[O]=H},Ko=function(_,O){return mc(_.element,O,_.section,_.isNew)},bf=function(_,O){var H=_.cells,oe=U(H,O);return mc(_.element,oe,_.section,_.isNew)},Ju=function(_,O){return _.cells[O]},Xl=function(_,O){return Ju(_,O).element},td=function(_){return _.cells.length},Ks=function(_){var O=ye(_,function(H){return H.section==="colgroup"});return{rows:O.fail,cols:O.pass}},kl=function(_,O,H){var oe=U(_.cells,H);return mc(O(_.element),oe,_.section,!0)},nl="data-snooker-locked-cols",Zd=function(_){return ai(_,nl).bind(function(O){return K.from(O.match(/\d+/g))}).map(function(O){return rt(O,Y)})},bl=function(_){var O=re(Ks(_).rows,function(oe,ve){return j(ve.cells,function(Se,Pe){Se.isLocked&&(oe[Pe]=!0)}),oe},{}),H=Au(O,function(oe,ve){return parseInt(ve,10)});return lt(H)},Jr=function(_,O){return _+","+O},rv=function(_,O,H){return K.from(_.access[Jr(O,H)])},Ah=function(_,O,H){var oe=ya(_,function(ve){return H(O,ve.element)});return oe.length>0?K.some(oe[0]):K.none()},ya=function(_,O){var H=Oe(_.all,function(oe){return oe.cells});return ie(H,O)},qi=function(_){var O={},H=0;return j(_.cells,function(oe){var ve=oe.colspan;P(ve,function(Se){var Pe=H+Se;O[Pe]=gc(oe.element,ve,Pe)}),H+=ve}),O},Np=function(_){var O={},H=[],oe=Fe(_).map(function(Dr){return Dr.element}).bind(xs),ve=oe.bind(Zd).getOr({}),Se=0,Pe=0,Xe=0,wt=ye(_,function(Dr){return Dr.section==="colgroup"}),Ht=wt.pass,un=wt.fail;j(un,function(Dr){var Lr=[];j(Dr.cells,function(Ro){for(var ri=0;O[Jr(Xe,ri)]!==void 0;)ri++;for(var Po=sn(ve,ri.toString()),aa=Ci(Ro.element,Ro.rowspan,Ro.colspan,Xe,ri,Po),Ya=0;Ya<Ro.colspan;Ya++)for(var Ha=0;Ha<Ro.rowspan;Ha++){var nu=Xe+Ha,ac=ri+Ya,Ff=Jr(nu,ac);O[Ff]=aa,Pe=Math.max(Pe,ac+1)}Lr.push(aa)}),Se++,H.push(es(Dr.element,Lr,Dr.section)),Xe++});var Jn=We(Ht).map(function(Dr){var Lr=qi(Dr),Ro=Wd(Dr.element,qf(Lr));return{colgroups:[Ro],columns:Lr}}).getOrThunk(function(){return{colgroups:[],columns:{}}}),pr=Jn.columns,cr=Jn.colgroups,Xn=mo(Se,Pe);return{grid:Xn,access:O,all:H,columns:pr,colgroups:cr}},nd=function(_){var O=w1(_);return Np(O)},fs=function(_){return Oe(_.all,function(O){return O.cells})},x1=function(_){return qf(_.columns)},Du=function(_){return Pl(_.columns).length>0},x0=function(_,O){return K.from(_.columns[O])},pa={fromTable:nd,generate:Np,getAt:rv,findItem:Ah,filterItems:ya,justCells:fs,justColumns:x1,hasColumns:Du,getColumnAt:x0},ec=function(_,O){var H=O.column,oe=O.column+O.colspan-1,ve=O.row,Se=O.row+O.rowspan-1;return H<=_.finishCol&&oe>=_.startCol&&ve<=_.finishRow&&Se>=_.startRow},E0=function(_,O){return O.column>=_.startCol&&O.column+O.colspan-1<=_.finishCol&&O.row>=_.startRow&&O.row+O.rowspan-1<=_.finishRow},h2=function(_,O){for(var H=!0,oe=A(E0,O),ve=O.startRow;ve<=O.finishRow;ve++)for(var Se=O.startCol;Se<=O.finishCol;Se++)H=H&&pa.getAt(_,ve,Se).exists(oe);return H?K.some(O):K.none()},Xi=function(_,O){return Io(Math.min(_.row,O.row),Math.min(_.column,O.column),Math.max(_.row+_.rowspan-1,O.row+O.rowspan-1),Math.max(_.column+_.colspan-1,O.column+O.colspan-1))},ov=function(_,O,H){var oe=pa.findItem(_,O,ua),ve=pa.findItem(_,H,ua);return oe.bind(function(Se){return ve.map(function(Pe){return Xi(Se,Pe)})})},Me=function(_,O,H){return ov(_,O,H).bind(function(oe){return h2(_,oe)})},Qe=function(_,O,H,oe){return pa.findItem(_,O,ua).bind(function(ve){var Se=H>0?ve.row+ve.rowspan-1:ve.row,Pe=oe>0?ve.column+ve.colspan-1:ve.column,Xe=pa.getAt(_,Se+H,Pe+oe);return Xe.map(function(wt){return wt.element})})},ht=function(_,O,H){return ov(_,O,H).map(function(oe){var ve=pa.filterItems(_,A(ec,oe));return U(ve,function(Se){return Se.element})})},jt=function(_,O){var H=function(oe,ve){return as(ve,oe)};return pa.findItem(_,O,H).map(function(oe){return oe.element})},wn=function(_,O,H){return xs(_).bind(function(oe){var ve=Aa(oe);return Qe(ve,_,O,H)})},qn=function(_,O,H){var oe=Aa(_);return ht(oe,O,H)},Co=function(_,O,H,oe,ve){var Se=Aa(_),Pe=ua(_,H)?K.some(O):jt(Se,O),Xe=ua(_,ve)?K.some(oe):jt(Se,oe);return Pe.bind(function(wt){return Xe.bind(function(Ht){return ht(Se,wt,Ht)})})},Yo=function(_,O,H){var oe=Aa(_);return Me(oe,O,H)},Aa=pa.fromTable,Sa=function(_,O){var H=Cs(_);H.each(function(oe){oe.dom.insertBefore(O.dom,_.dom)}
215)},ts=function(_,O){var H=xe(_);H.fold(function(){var oe=Cs(_);oe.each(function(ve){Ys(ve,O)})},function(oe){Sa(oe,O)})},Iu=function(_,O){var H=st(_);H.fold(function(){Ys(_,O)},function(oe){_.dom.insertBefore(O.dom,oe.dom)})},Ys=function(_,O){_.dom.appendChild(O.dom)},e5=function(_,O,H){Re(_,H).fold(function(){Ys(_,O)},function(oe){Sa(oe,O)})},B3=function(_,O){Sa(_,O),Ys(O,_)},_f=function(_,O){j(O,function(H){Sa(_,H)})},tc=function(_,O){j(O,function(H,oe){var ve=oe===0?_:O[oe-1];ts(ve,H)})},ul=function(_,O){j(O,function(H){Ys(_,H)})},Hl=function(_){_.dom.textContent="",j(pe(_),function(O){Ru(O)})},Ru=function(_){var O=_.dom;O.parentNode!==null&&O.parentNode.removeChild(O)},Dp=function(_){var O=pe(_);O.length>0&&_f(_,O),Ru(_)},Ip=function(_,O){var H=function(Se){if(!_(Se))throw new Error("Can only get "+O+" value of a "+O+" node");return oe(Se).getOr("")},oe=function(Se){return _(Se)?K.from(Se.dom.nodeValue):K.none()},ve=function(Se,Pe){if(!_(Se))throw new Error("Can only set raw "+O+" value of a "+O+" node");Se.dom.nodeValue=Pe};return{get:H,getOption:oe,set:ve}},zm=Ip(ml,"text"),p2=function(_){return zm.get(_)},P3=function(_){return zm.getOption(_)},wb=function(_,O){return zm.set(_,O)},Qd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function S0(){var _=function(Ht){return Bn.fromDom(Ht.dom.cloneNode(!1))},O=function(Ht){return Gn(Ht).dom},H=function(Ht){return fi(Ht)?Ea(Ht)==="body"?!0:_e(Qd,Ea(Ht)):!1},oe=function(Ht){return fi(Ht)?_e(["br","img","hr","input"],Ea(Ht)):!1},ve=function(Ht){return fi(Ht)&&pf(Ht,"contenteditable")==="false"},Se=function(Ht,un){return Ht.dom.compareDocumentPosition(un.dom)},Pe=function(Ht,un){var Jn=tl(Ht);ll(un,Jn)},Xe=function(Ht){var un=Ea(Ht);return _e(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],un)},wt=function(Ht){return fi(Ht)?ai(Ht,"lang"):K.none()};return{up:F({selector:Zf,closest:is,predicate:$s,all:Yc}),down:F({selector:qc,predicate:si}),styles:F({get:ed,getRaw:Mu,set:Ws,remove:Os}),attrs:F({get:pf,set:zl,remove:Pi,copyTo:Pe}),insert:F({before:Sa,after:ts,afterAll:tc,append:Ys,appendAll:ul,prepend:Iu,wrap:B3}),remove:F({unwrap:Dp,remove:Ru}),create:F({nu:Bn.fromTag,clone:_,text:Bn.fromText}),query:F({comparePosition:Se,prevSibling:je,nextSibling:xe}),property:F({children:pe,name:Ea,parent:Cs,document:O,isText:ml,isComment:Sd,isElement:fi,isSpecial:Xe,getLanguage:wt,getText:p2,setText:wb,isBoundary:H,isEmptyTag:oe,isNonEditable:ve}),eq:ua,is:ff}}var t5=function(_,O,H,oe){var ve=H[0],Se=H.slice(1);return oe(_,O,ve,Se)},Hm=function(_,O,H){return H.length>0?t5(_,O,H,Cb):K.none()},Cb=function(_,O,H,oe){var ve=O(_,H);return he(oe,function(Se,Pe){var Xe=O(_,Pe);return F3(_,Se,Xe)},ve)},F3=function(_,O,H){return O.bind(function(oe){return H.filter(A(_.eq,oe))})},T0=function(_,O){return A(_.eq,O)},A0=function(_,O,H,oe){oe===void 0&&(oe=z);var ve=[O].concat(_.up().all(O)),Se=[H].concat(_.up().all(H)),Pe=function(un){var Jn=Te(un,oe);return Jn.fold(function(){return un},function(pr){return un.slice(0,pr+1)})},Xe=Pe(ve),wt=Pe(Se),Ht=Ae(Xe,function(un){return M(wt,T0(_,un))});return{firstpath:Xe,secondpath:wt,shared:Ht}},xb=Hm,Rp=A0,wf=S0(),Eo=function(_,O){return xb(wf,function(H,oe){return _(oe)},O)},Lc=function(_,O,H){return Rp(wf,_,O,H)},Lp=function(_){return Zf(_,"table")},kh=function(_,O,H){var oe=function(ve){return function(Se){return H!==void 0&&H(Se)||ua(Se,ve)}};return ua(_,O)?K.some({boxes:K.some([_]),start:_,finish:O}):Lp(_).bind(function(ve){return Lp(O).bind(function(Se){if(ua(ve,Se))return K.some({boxes:qn(ve,_,O),start:_,finish:O});if(as(ve,Se)){var Pe=$l(O,"td,th",oe(ve)),Xe=Pe.length>0?Pe[Pe.length-1]:O;return K.some({boxes:Co(ve,_,ve,O,Se),start:_,finish:Xe})}else if(as(Se,ve)){var Pe=$l(_,"td,th",oe(Se)),wt=Pe.length>0?Pe[Pe.length-1]:_;return K.some({boxes:Co(Se,_,ve,O,Se),start:_,finish:wt})}else return Lc(_,O).shared.bind(function(Ht){return is(Ht,"table",H).bind(function(un){var Jn=$l(O,"td,th",oe(un)),pr=Jn.length>0?Jn[Jn.length-1]:O,cr=$l(_,"td,th",oe(un)),Xn=cr.length>0?cr[cr.length-1]:_;return K.some({boxes:Co(un,_,ve,O,Se),start:Xn,finish:pr})})})})})},k0=function(_,O){var H=qc(_,O);return H.length>0?K.some(H):K.none()},Cf=function(_,O){return Ae(_,function(H){return po(H,O)})},vi=function(_,O,H){return Tl(_,O).bind(function(oe){return Tl(_,H).bind(function(ve){return Eo(Lp,[oe,ve]).map(function(Se){return{first:oe,last:ve,table:Se}})})})},Bc=function(_,O){return Zf(_,"table").bind(function(H){return Tl(H,O).bind(function(oe){return kh(oe,_).bind(function(ve){return ve.boxes.map(function(Se){return{boxes:Se,start:ve.start,finish:ve.finish}})})})})},Ad=function(_,O,H,oe,ve){return Cf(_,ve).bind(function(Se){return wn(Se,O,H).bind(function(Pe){return Bc(Pe,oe)})})},ds=function(_,O){return k0(_,O)},Zl=function(_,O,H){return vi(_,O,H).bind(function(oe){var ve=function(wt){return ua(_,wt)},Se="thead,tfoot,tbody,table",Pe=Zf(oe.first,Se,ve),Xe=Zf(oe.last,Se,ve);return Pe.bind(function(wt){return Xe.bind(function(Ht){return ua(wt,Ht)?Yo(oe.table,oe.first,oe.last):K.none()})})})},O0=function(_){if(!u(_))throw new Error("cases must be an array");if(_.length===0)throw new Error("there must be at least one case");var O=[],H={};return j(_,function(oe,ve){var Se=Pl(oe);
215if(Se.length!==1)throw new Error("one and only one name per case");var Pe=Se[0],Xe=oe[Pe];if(H[Pe]!==void 0)throw new Error("duplicate key detected:"+Pe);if(Pe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Xe))throw new Error("case arguments must be an array");O.push(Pe),H[Pe]=function(){for(var wt=[],Ht=0;Ht<arguments.length;Ht++)wt[Ht]=arguments[Ht];var un=wt.length;if(un!==Xe.length)throw new Error("Wrong number of arguments to case "+Pe+". Expected "+Xe.length+" ("+Xe+"), got "+un);var Jn=function(pr){var cr=Pl(pr);if(O.length!==cr.length)throw new Error("Wrong number of arguments to match. Expected: "+O.join(",")+` 216Actual: `+cr.join(","));var Xn=De(O,function(Dr){return _e(cr,Dr)});if(!Xn)throw new Error("Not all branches were specified when using match. Specified: "+cr.join(", ")+` 217Required: `+O.join(", "));return pr[Pe].apply(null,wt)};return{fold:function(){for(var pr=[],cr=0;cr<arguments.length;cr++)pr[cr]=arguments[cr];if(pr.length!==_.length)throw new Error("Wrong number of arguments to fold. Expected "+_.length+", got "+pr.length);var Xn=pr[ve];return Xn.apply(null,wt)},match:Jn,log:function(pr){console.log(pr,{constructors:O,constructor:Pe,params:wt})}}}}),H},E1={generate:O0},Vm=E1.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),Bp=function(_,O,H,oe){return _.fold(O,H,oe)},Oh=Vm.none,$3=Vm.multiple,Mh=Vm.single,cl=function(_,O,H){var oe=function(){return ds(_(),H).fold(function(){return O().fold(Oh,Mh)},function(ve){return $3(ve)})};return{get:oe}},Eb=tinymce.util.Tools.resolve("tinymce.PluginManager"),Ms=function(_,O){return Bn.fromDom(_.dom.cloneNode(O))},Jd=function(_){return Ms(_,!1)},hi=function(_){return Ms(_,!0)},av=function(_,O){var H=Bn.fromTag(O),oe=tl(_);return ll(H,oe),H},rd=function(_,O){var H=av(_,O),oe=pe(hi(_));return ul(H,oe),H},n5=function(_,O){var H=av(_,O);Sa(_,H);var oe=pe(_);return ul(H,oe),Ru(_),H},Ol=function(_,O){var H=function(Xe,wt){if(!C(wt)&&!wt.match(/^[0-9]+$/))throw new Error(_+".set accepts only positive integer values. Value was "+wt);var Ht=Xe.dom;
217Qf(Ht)&&(Ht.style[_]=wt+"px")},oe=function(Xe){var wt=O(Xe);if(wt<=0||wt===null){var Ht=ed(Xe,_);return parseFloat(Ht)||0}return wt},ve=oe,Se=function(Xe,wt){return re(wt,function(Ht,un){var Jn=ed(Xe,un),pr=Jn===void 0?0:parseInt(Jn,10);return isNaN(pr)?Ht:Ht+pr},0)},Pe=function(Xe,wt,Ht){var un=Se(Xe,Ht),Jn=wt>un?wt-un:0;return Jn};return{set:H,get:oe,getOuter:ve,aggregate:Se,max:Pe}},Pc=function(){var _=ft().browser;return _.isIE()||_.isEdge()},z3=function(_,O){return Yn(_).getOr(O)},rr=function(_,O,H){return z3(ed(_,O),H)},Fc=function(_){return ed(_,"box-sizing")},Uv=function(_,O,H,oe){var ve=rr(_,"padding-"+H,0),Se=rr(_,"padding-"+oe,0),Pe=rr(_,"border-"+H+"-width",0),Xe=rr(_,"border-"+oe+"-width",0);return O-ve-Se-Pe-Xe},ta=function(_,O){var H=_.dom,oe=H.getBoundingClientRect().height||H.offsetHeight;return O==="border-box"?oe:Uv(_,oe,"top","bottom")},xf=function(_,O){var H=_.dom,oe=H.getBoundingClientRect().width||H.offsetWidth;return O==="border-box"?oe:Uv(_,oe,"left","right")},Pp=function(_){return Pc()?ta(_,Fc(_)):rr(_,"height",_.dom.offsetHeight)},Lu=function(_){return Pc()?xf(_,Fc(_)):rr(_,"width",_.dom.offsetWidth)},jv=function(_){return xf(_,"content-box")},S1=Ol("width",function(_){return _.dom.offsetWidth}),od=function(_){return S1.get(_)},Bu=function(_){return S1.getOuter(_)},pi=jv,e1=Lu,Vl=function(_,O){O===void 0&&(O=Y);var H=_.grid,oe=P(H.columns,R),ve=P(H.rows,R);return U(oe,function(Se){var Pe=function(){return Oe(ve,function(Ht){return pa.getAt(_,Ht,Se).filter(function(un){return un.column===Se}).toArray()})},Xe=function(Ht){return Ht.colspan===1&&O(Ht.element)},wt=function(){return pa.getAt(_,0,Se)};return ji(Pe,Xe,wt)})},ji=function(_,O,H){var oe=_(),ve=Ae(oe,O),Se=ve.orThunk(function(){return K.from(oe[0]).orThunk(H)});return Se.map(function(Pe){return Pe.element})},Wv=function(_){var O=_.grid,H=P(O.rows,R),oe=P(O.columns,R);return U(H,function(ve){var Se=function(){return Oe(oe,function(wt){return pa.getAt(_,ve,wt).filter(function(Ht){return Ht.row===ve}).fold(F([]),function(Ht){return[Ht]})})},Pe=function(wt){return wt.rowspan===1},Xe=function(){return pa.getAt(_,ve,0)};return ji(Se,Pe,Xe)})},Zc=function(_,O){if(O<0||O>=_.length-1)return K.none();var H=_[O].fold(function(){var ve=$e(_.slice(0,O));return Ye(ve,function(Se,Pe){return Se.map(function(Xe){return{value:Xe,delta:Pe+1}})})},function(ve){return K.some({value:ve,delta:0})}),oe=_[O+1].fold(function(){var ve=_.slice(O+1);return Ye(ve,function(Se,Pe){return Se.map(function(Xe){return{value:Xe,delta:Pe+1}})})},function(ve){return K.some({value:ve,delta:1})});return H.bind(function(ve){return oe.map(function(Se){var Pe=Se.delta+ve.delta;return Math.abs(Se.value-ve.value)/Pe})})},Qc=function(_,O){return function(H){return Fp(H)==="rtl"?O:_}},Fp=function(_){return ed(_,"direction")==="rtl"?"rtl":"ltr"},fn=Ol("height",function(_){var O=_.dom;return Qo(_)?O.getBoundingClientRect().height:O.offsetHeight}),_c=function(_){return fn.get(_)},$c=function(_){return fn.getOuter(_)},M0=Pp,nc=function(_,O){var H=function(oe,ve){return nc(_+oe,O+ve)};return{left:_,top:O,translate:H}},Wi=nc,Gi=function(_){var O=_.getBoundingClientRect();return Wi(O.left,O.top)},zc=function(_,O){return _!==void 0?_:O!==void 0?O:0},kd=function(_){var O=_.dom.ownerDocument,H=O.body,oe=O.defaultView,ve=O.documentElement;if(H===_.dom)return Wi(H.offsetLeft,H.offsetTop);var Se=zc(oe==null?void 0:oe.pageYOffset,ve.scrollTop),Pe=zc(oe==null?void 0:oe.pageXOffset,ve.scrollLeft),Xe=zc(ve.clientTop,H.clientTop),wt=zc(ve.clientLeft,H.clientLeft);return Sb(_).translate(Pe-wt,Se-Xe)},Sb=function(_){var O=_.dom,H=O.ownerDocument,oe=H.body;return oe===O?Wi(oe.offsetLeft,oe.offsetTop):Qo(_)?Gi(O):Wi(0,0)},Oo=function(_,O){return{row:_,y:O}},Um=function(_,O){return{col:_,x:O}},Ef=function(_){var O=kd(_);return O.left+Bu(_)},Tb=function(_){return kd(_).left},Gv=function(_,O){return Um(_,Tb(O))},Kv=function(_,O){return Um(_,Ef(O))},N0=function(_){return kd(_).top},D0=function(_,O){return Oo(_,N0(O))},T1=function(_,O){return Oo(_,N0(O)+$c(O))},Yv=function(_,O,H){if(H.length===0)return[];var oe=U(H.slice(1),function(Se,Pe){return Se.map(function(Xe){return _(Pe,Xe)})}),ve=H[H.length-1].map(function(Se){return O(H.length-1,Se)});return oe.concat([ve])},H3=function(_){return-_},iv={delta:R,positions:function(_){return Yv(D0,T1,_)},edge:N0},$p={delta:R,edge:Tb,positions:function(_){return Yv(Gv,Kv,_)}},zp={delta:H3,edge:Ef,positions:function(_){return Yv(Kv,Gv,_)}},jm=Qc($p,zp),I0={delta:function(_,O){return jm(O).delta(_,O)},positions:function(_,O){return jm(O).positions(_,O)},edge:function(_){return jm(_).edge(_)}},V3={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},sv=function(){var _="[0-9]+",O="[+-]?"+_,H="[eE]"+O,oe="\\.",ve=function(Xe){return"(?:"+Xe+")?"},Se=["Infinity",_+oe+ve(_)+ve(H),oe+_+ve(H),_+ve(H)].join("|"),Pe="[+-]?(?:"+Se+")";return new RegExp("^("+Pe+")(.*)$")}(),Hp=function(_,O){return M(O,function(H){return M(V3[H],function(oe){return _===oe})})},Hc=function(_,O){var H=K.from(sv.exec(_));return H.bind(function(oe){var ve=Number(oe[1]),Se=oe[2];return Hp(Se,O)?K.some({value:ve,unit:Se}):K.none()})},Ab=/(\d+(\.\d+)?)%/,r5=/(\d+(\.\d+)?)px|em/,o5=ws("col"),Ml=function(_,O,H){var oe=y1(_).getOrThunk(function(){return Vi(vf(_))});return O(_)/H(oe)*100},A1=function(_,O){Ws(_,"width",O+"px")},Od=function(_,O){Ws(_,"width",O+"%")},qv=function(_,O){Ws(_,"height",O+"px")},U3=function(_){return M0(_)+"px"},t1=function(_,O,H,oe){var ve=xs(_).map(function(Se){var Pe=H(Se);return Math.floor(O/100*Pe)}).getOr(O);return oe(_,ve),ve},R0=function(_,O,H,oe){var ve=parseFloat(_);return Mt(_,"%")&&Ea(O)!=="table"?t1(O,ve,H,oe):ve},lv=function(_){var O=U3(_);return O?R0(O,_,_c,qv):_c(_)},L0=function(_,O,H){var oe=H(_),ve=yl(_,O);return oe/ve},n1=function(_,O){return Mu(_,O).orThunk(function(){return ai(_,O).map(function(H){return H+"px"})})},Vc=function(_){return n1(_,"width")},qs=function(_){return n1(_,"height")},m2=function(_){return Ml(_,od,pi)},kb=function(_){return o5(_)?od(_):e1(_)},r1=function(_){return L0(_,"rowspan",lv)},B0=function(_){var O=Vc(_);return O.bind(function(H){return Hc(H,["fixed","relative","empty"])})},P0=function(_,O,H){Ws(_,"width",O+H)},j3=function(_){return od(_)+"px"}
217,Xv=function(_){return Ml(_,od,pi)+"%"},Nh=function(_){return Vc(_).exists(function(O){return Ab.test(O)})},Ob=function(_){return Vc(_).exists(function(O){return r5.test(O)})},Ns=function(_){return Vc(_).isNone()},Vp=F(Ab),Dh=ws("col"),F0=function(_){return Vc(_).getOrThunk(function(){return kb(_)+"px"})},g2=function(_){return qs(_).getOrThunk(function(){return r1(_)+"px"})},Md=function(_){return U(pa.justColumns(_),function(O){return K.from(O.element)})},Sf=function(_){var O=ft().browser,H=O.isChrome()||O.isFirefox();return Dh(_)?H:!0},uv=function(_,O,H,oe,ve,Se){return _.filter(oe).fold(function(){return Se(Zc(H,O))},function(Pe){return ve(Pe)})},Ih=function(_,O,H,oe){var ve=Vl(_),Se=pa.hasColumns(_)?Md(_):ve,Pe=[K.some(I0.edge(O))].concat(U(I0.positions(ve,O),function(wt){return wt.map(function(Ht){return Ht.x})})),Xe=X(Th);return U(Se,function(wt,Ht){return uv(wt,Ht,Pe,Xe,function(un){if(Sf(un))return H(un);var Jn=v2(ve[Ht],R);return uv(Jn,Ht,Pe,Xe,function(pr){return oe(K.some(od(pr)))},oe)},oe)})},y2=function(_){return _.map(function(O){return O+"px"}).getOr("")},Zv=function(_,O){return Ih(_,O,F0,y2)},b2=function(_,O,H){return Ih(_,O,m2,function(oe){return oe.fold(function(){return H.minCellWidth()},function(ve){return ve/H.pixelWidth()*100})})},Rh=function(_,O,H){return Ih(_,O,kb,function(oe){return oe.getOrThunk(H.minCellWidth)})},_2=function(_,O,H,oe,ve){var Se=Wv(_),Pe=[K.some(H.edge(O))].concat(U(H.positions(Se,O),function(Xe){return Xe.map(function(wt){return wt.y})}));return U(Se,function(Xe,wt){return uv(Xe,wt,Pe,X($m),oe,ve)})},Mb=function(_,O,H){return _2(_,O,H,r1,function(oe){return oe.getOrThunk(Gs)})},w2=function(_,O,H){return _2(_,O,H,g2,y2)},ad=function(_,O){return function(){return Qo(_)?O(_):parseFloat(Mu(_,"width").getOr("0"))}},Jc=function(_){var O=ad(_,od),H=F(0),oe=function(ve,Se){return Rh(ve,_,Se)};return{width:O,pixelWidth:O,getWidths:oe,getCellDelta:H,singleColumnWidth:F([0]),minCellWidth:H,setElementWidth:S,adjustTableWidth:S,isRelative:!0,label:"none"}},$0=function(_){var O=ad(_,function(wt){return parseFloat(Xv(wt))}),H=ad(_,od),oe=function(wt){return wt/H()*100},ve=function(wt,Ht){return[100-wt]},Se=function(){return zv()/H()*100},Pe=function(wt){var Ht=O(),un=wt/100*Ht,Jn=Ht+un;Od(_,Jn)},Xe=function(wt,Ht){return b2(wt,_,Ht)};return{width:O,pixelWidth:H,getWidths:Xe,getCellDelta:oe,singleColumnWidth:ve,minCellWidth:Se,setElementWidth:Od,adjustTableWidth:Pe,isRelative:!0,label:"percent"}},o1=function(_){var O=ad(_,od),H=R,oe=function(Pe,Xe){var wt=Math.max(zv(),Pe+Xe);return[wt-Pe]},ve=function(Pe){var Xe=O()+Pe;A1(_,Xe)},Se=function(Pe,Xe){return Rh(Pe,_,Xe)};return{width:O,pixelWidth:O,getWidths:Se,getCellDelta:H,singleColumnWidth:oe,minCellWidth:zv,setElementWidth:A1,adjustTableWidth:ve,isRelative:!1,label:"pixel"}},vu=function(_,O){var H=Vp().exec(O);return H!==null?$0(_):o1(_)},Lh=function(_){var O=Vc(_);return O.fold(function(){return Jc(_)},function(H){return vu(_,H)})},Nd={getTableSize:Lh,pixelSize:o1,percentageSize:$0,noneSize:Jc},W3=function(_,O,H,oe,ve,Se){return{minRow:_,minCol:O,maxRow:H,maxCol:oe,allCells:ve,selectedCells:Se}},hu=function(_,O){var H=_.grid.columns,oe=_.grid.rows,ve=oe,Se=H,Pe=0,Xe=0,wt=[],Ht=[];return Ka(_.access,function(un){if(wt.push(un),O(un)){Ht.push(un);var Jn=un.row,pr=Jn+un.rowspan-1,cr=un.column,Xn=cr+un.colspan-1;Jn<ve?ve=Jn:pr>Pe&&(Pe=pr),cr<Se?Se=cr:Xn>Xe&&(Xe=Xn)}}),W3(ve,Se,Pe,Xe,wt,Ht)},Nb=function(_,O,H){var oe=_[H].element,ve=Bn.fromTag("td");Ys(ve,Bn.fromTag("br"));var Se=O?Ys:Iu;Se(oe,ve)},C2=function(_,O,H,oe){for(var ve=O.grid.columns,Se=O.grid.rows,Pe=0;Pe<Se;Pe++)for(var Xe=!1,wt=0;wt<ve;wt++)if(!(Pe<H.minRow||Pe>H.maxRow||wt<H.minCol||wt>H.maxCol)){var Ht=pa.getAt(O,Pe,wt).filter(oe).isNone();Ht?Nb(_,Xe,Pe):Xe=!0}},li=function(_,O,H,oe){Ka(H.columns,function(Pe){(Pe.column<O.minCol||Pe.column>O.maxCol)&&Ru(Pe.element)});var ve=ie(Hv(_,"tr"),function(Pe){return Pe.dom.childElementCount===0});j(ve,Ru),(O.minCol===O.maxCol||O.minRow===O.maxRow)&&j(Hv(_,"th,td"),function(Pe){Pi(Pe,"rowspan"),Pi(Pe,"colspan")}),Pi(_,nl),Pi(_,"data-snooker-col-series");var Se=Nd.getTableSize(_);Se.adjustTableWidth(oe)},zo=function(_,O,H,oe){if(oe.minCol===0&&O.grid.columns===oe.maxCol+1)return 0;var ve=Rh(O,_,H),Se=re(ve,function(Ht,un){return Ht+un},0),Pe=re(ve.slice(oe.minCol,oe.maxCol+1),function(Ht,un){return Ht+un},0),Xe=Pe/Se*H.pixelWidth(),wt=Xe-H.pixelWidth();return H.getCellDelta(wt)},Tf=function(_,O){var H=function(pr){return po(pr.element,O)},oe=hi(_),ve=w1(oe),Se=Nd.getTableSize(_),Pe=pa.generate(ve),Xe=hu(Pe,H),wt="th:not("+O+"),td:not("+O+")",Ht=yf(oe,"th,td",function(pr){return po(pr,wt)});j(Ht,Ru),C2(ve,Pe,Xe,H);var un=pa.fromTable(_),Jn=zo(_,un,Se,Xe);return li(oe,Xe,Pe,Jn),oe},x2="\xA0",a1=function(_){return Ea(_)==="img"?1:P3(_).fold(function(){return pe(_).length},function(O){return O.length})},Db=function(_){return P3(_).filter(function(O){return O.trim().length!==0||O.indexOf(x2)>-1}).isSome()},Fi=["img","br"],E2=function(_){var O=Db(_);return O||_e(Fi,Ea(_))},S2=function(_){return Sh(_,E2)},Wm=function(_){return sr(_,E2)},sr=function(_,O){var H=function(oe){for(var ve=pe(oe),Se=ve.length-1;Se>=0;Se--){var Pe=ve[Se];if(O(Pe))return K.some(Pe);var Xe=H(Pe);
217if(Xe.isSome())return Xe}return K.none()};return H(_)},T2={scope:["row","col"]},Up=function(_){return function(){var O=Bn.fromTag("td",_.dom);return Ys(O,Bn.fromTag("br",_.dom)),O}},Bh=function(_){return function(){return Bn.fromTag("col",_.dom)}},Gm=function(_){return function(){return Bn.fromTag("colgroup",_.dom)}},z0=function(_){return function(){return Bn.fromTag("tr",_.dom)}},ms=function(_,O,H){var oe=rd(_,O);return Ka(H,function(ve,Se){ve===null?Pi(oe,Se):zl(oe,Se,ve)}),oe},H0=function(_){return _},Ph=function(_,O,H){var oe=S2(_);return oe.map(function(ve){var Se=H.join(","),Pe=$l(ve,Se,function(Xe){return ua(Xe,_)});return he(Pe,function(Xe,wt){var Ht=Jd(wt);return Pi(Ht,"contenteditable"),Ys(Xe,Ht),Ht},O)}).getOr(O)},Hs=function(_,O){Ka(T2,function(H,oe){return ai(_,oe).filter(function(ve){return _e(H,ve)}).each(function(ve){return zl(O,oe,ve)})})},qo=function(_,O,H){var oe=function(Pe,Xe){$v(Pe.element,Xe),Os(Xe,"height"),Pe.colspan!==1&&Os(Xe,"width")},ve=function(Pe){var Xe=Bn.fromTag(Ea(Pe.element),O.dom),wt=H.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Ht=wt.length>0?Ph(Pe.element,Xe,wt):Xe;return Ys(Ht,Bn.fromTag("br")),oe(Pe,Xe),Hs(Pe.element,Xe),_(Pe.element,Xe),Xe},Se=function(Pe){var Xe=Bn.fromTag(Ea(Pe.element),O.dom);return oe(Pe,Xe),_(Pe.element,Xe),Xe};return{col:Se,colgroup:Gm(O),row:z0(O),cell:ve,replace:ms,colGap:Bh(O),gap:Up(O)}},Uc=function(_){return{col:Bh(_),colgroup:Gm(_),row:z0(_),cell:Up(_),replace:H0,colGap:Bh(_),gap:Up(_)}},A2=function(_,O){var H=O||document,oe=H.createElement("div");return oe.innerHTML=_,pe(Bn.fromDom(oe))},ef=function(_){return U(_,Bn.fromDom)},k2=function(_){return _.nodeName.toLowerCase()},k1=function(_){return Bn.fromDom(_.getBody())},cv=function(_){return _.getBoundingClientRect().width},fv=function(_){return _.getBoundingClientRect().height},id=function(_){return function(O){return ua(O,k1(_))}},dv=function(_){return _?_.replace(/px$/,""):""},Ul=function(_){return/^\d+(\.\d+)?$/.test(_)?_+"px":_},ei=function(_){Pi(_,"data-mce-style");var O=function(H){return Pi(H,"data-mce-style")};j(_1(_),O),j(Td(_),O),j(bc(_),O)},O1=function(_,O){var H=_.dom.getStyle(O,"width")||_.dom.getAttrib(O,"width");return K.from(H).filter(zn)},Fh=function(_){return/^(\d+(\.\d+)?)%$/.test(_)},M1=function(_){return/^(\d+(\.\d+)?)px$/.test(_)},V0=function(_){return Bn.fromDom(_.selection.getStart())},so=function(_){return Bn.fromDom(_.selection.getEnd())},pu=function(_){return Bp(_.get(),F([]),R,ct)},gs=function(_){var O=function(ve,Se){return ai(ve,Se).exists(function(Pe){return parseInt(Pe,10)>1})},H=function(ve){return O(ve,"rowspan")||O(ve,"colspan")},oe=pu(_);return oe.length>0&&De(oe,H)?K.some(oe):K.none()},vv=function(_,O,H){return Bp(O.get(),K.none,function(oe){return oe.length<=1?K.none():Zl(_,H.firstSelectedSelector,H.lastSelectedSelector).map(function(ve){return{bounds:ve,cells:oe}})},K.none)},Km="data-mce-selected",G3="td["+Km+"],th["+Km+"]",U0="["+Km+"]",b="data-mce-first-selected",k="td["+b+"],th["+b+"]",q="data-mce-last-selected",W="td["+q+"],th["+q+"]",ae=U0,Ee={selected:Km,selectedSelector:G3,firstSelected:b,firstSelectedSelector:k,lastSelected:q,lastSelectedSelector:W},Be=function(_){return{element:_,mergable:K.none(),unmergable:K.none(),selection:[_]}},Ve=function(_,O,H){return{element:H,mergable:vv(O,_,Ee),unmergable:gs(_),selection:pu(_)}},Je=function(_,O,H){return{element:_,clipboard:O,generators:H}},dt=function(_,O,H,oe){return{selection:pu(_),clipboard:H,generators:oe}},Yt=function(_){return xs(_).bind(function(O){return ds(O,Ee.firstSelectedSelector)}).fold(F(_),function(O){return O[0]})},rn=function(_){return function(O,H){var oe=Ea(O),ve=oe==="col"||oe==="colgroup"?Yt(O):O;return is(ve,_,H)}},Sn=rn("th,td,caption"),Cn=rn("th,td"),tr=function(_){return pu(_)},Or=function(_,O){var H=Cn(_),oe=H.bind(function(ve){return xs(ve)}).map(function(ve){return bc(ve)});return mf(H,oe,function(ve,Se){return ie(Se,function(Pe){return M(ef(Pe.dom.cells),function(Xe){return pf(Xe,O)==="1"||ua(Xe,ve)})})}).getOr([])},Qr=function(_){return xs(_[0]).map(function(O){var H=Tf(O,ae);return ei(H),[H]})},yo=function(_,O){return U(O,function(H){return _.selection.seri
217alizer.serialize(H.dom,{})}).join("")},Mo=function(_){return U(_,function(O){return O.dom.innerText}).join("")},no=function(_,O,H){_.on("BeforeGetContent",function(oe){var ve=function(Se){oe.preventDefault(),Qr(Se).each(function(Pe){oe.content=oe.format==="text"?Mo(Pe):yo(_,Pe)})};oe.selection===!0&&Bp(O.get(),S,ve,S)}),_.on("BeforeSetContent",function(oe){if(oe.selection===!0&&oe.paste===!0){var ve=tr(O);Fe(ve).each(function(Se){xs(Se).each(function(Pe){var Xe=ie(A2(oe.content),function(pr){return Ea(pr)!=="meta"}),wt=ws("table");if(Xe.length===1&&wt(Xe[0])){oe.preventDefault();var Ht=Bn.fromDom(_.getDoc()),un=Uc(Ht),Jn=Je(Se,Xe[0],un);H.pasteCells(Pe,Jn).each(function(){_.focus()})}})})}})},Uo=E1.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),ca=Ke({},Uo),sa=function(_,O){return _.length===0?ca.none():_.length===1?ca.only(0):O===0?ca.left(0,1):O===_.length-1?ca.right(O-1,O):O>0&&O<_.length-1?ca.middle(O-1,O,O+1):ca.none()},yi=function(_,O,H,oe,ve){var Se=_.slice(0),Pe=sa(_,O),Xe=F(U(Se,F(0))),wt=function(pr){return oe.singleColumnWidth(Se[pr],H)},Ht=function(pr,cr){return ve.calcLeftEdgeDeltas(Se,pr,cr,H,oe.minCellWidth(),oe.isRelative)},un=function(pr,cr,Xn){return ve.calcMiddleDeltas(Se,pr,cr,Xn,H,oe.minCellWidth(),oe.isRelative)},Jn=function(pr,cr){return ve.calcRightEdgeDeltas(Se,pr,cr,H,oe.minCellWidth(),oe.isRelative)};return Pe.fold(Xe,wt,Ht,un,Jn)},Vs=function(_,O,H){for(var oe=0,ve=_;ve<O;ve++)oe+=H[ve]!==void 0?H[ve]:0;return oe},mu=function(_,O){var H=pa.justCells(_);return U(H,function(oe){var ve=Vs(oe.column,oe.column+oe.colspan,O);return{element:oe.element,width:ve,colspan:oe.colspan}})},fl=function(_,O){var H=pa.justColumns(_);return U(H,function(oe,ve){return{element:oe.element,width:O[ve],colspan:oe.colspan}})},tf=function(_,O){var H=pa.justCells(_);return U(H,function(oe){var ve=Vs(oe.row,oe.row+oe.rowspan,O);return{element:oe.element,height:ve,rowspan:oe.rowspan}})},Af=function(_,O){return U(_.all,function(H,oe){return{element:H.element,height:O[oe]}})},Xs=function(_){return he(_,function(O,H){return O+H},0)},Ql=function(_,O){return pa.hasColumns(_)?fl(_,O):mu(_,O)},Da=function(_,O,H){var oe=Ql(_,O);j(oe,function(ve){H.setElementWidth(ve.element,ve.width)})},jl=function(_,O,H,oe,ve){var Se=pa.fromTable(_),Pe=ve.getCellDelta(O),Xe=ve.getWidths(Se,ve),wt=H===Se.grid.columns-1,Ht=oe.clampTableDelta(Xe,H,Pe,ve.minCellWidth(),wt),un=yi(Xe,H,Ht,ve,oe),Jn=U(un,function(pr,cr){return pr+Xe[cr]});Da(Se,Jn,ve),oe.resizeTable(ve.adjustTableWidth,Ht,wt)},Es=function(_,O,H,oe){var ve=pa.fromTable(_),Se=Mb(ve,_,oe),Pe=U(Se,function(un,Jn){return H===Jn?Math.max(O+un,Gs()):un}),Xe=tf(ve,Pe),wt=Af(ve,Pe);j(wt,function(un){qv(un.element,un.height)}),j(Xe,function(un){qv(un.element,un.height)});var Ht=Xs(Pe);qv(_,Ht)},Nl=function(_,O,H,oe,ve){var Se=pa.generate(O),Pe=oe.getWidths(Se,oe),Xe=oe.pixelWidth(),wt=ve.calcRedestributedWidths(Pe,Xe,H.pixelDelta,oe.isRelative),Ht=wt.newSizes,un=wt.delta;Da(Se,Ht,oe),oe.adjustTableWidth(un)},_l=function(_,O,H,oe){var ve=pa.generate(O),Se=oe.getWidths(ve,oe);Da(ve,Se,oe)},kf=function(_){return U(_,F(0))},Of=function(_,O,H,oe,ve){return ve(_.slice(0,O)).concat(oe).concat(ve(_.slice(H)))},Pu=function(_){return function(O,H,oe,ve){if(_(oe)){var Se=Math.max(ve,O[H]-Math.abs(oe)),Pe=Math.abs(Se-O[H]);return oe>=0?Pe:-Pe}else return oe}},sd=Pu(function(_){return _<0}),Jl=Pu(Y),jp=function(){var _=function(Xe,wt,Ht,un,Jn){var pr=sd(Xe,wt,un,Jn);return Of(Xe,wt,Ht+1,[pr,0],kf)},O=function(Xe,wt,Ht,un){var Jn=(100+Ht)/100,pr=Math.max(un,(Xe[wt]+Ht)/Jn);return U(Xe,function(cr,Xn){var Dr=Xn===wt?pr:cr/Jn;return Dr-cr})},H=function(Xe,wt,Ht,un,Jn,pr){return pr?O(Xe,wt,un,Jn):_(Xe,wt,Ht,un,Jn)},oe=function(Xe,wt,Ht,un,Jn,pr,cr){return H(Xe,Ht,un,Jn,pr,cr)},ve=function(Xe,wt){return Xe(wt)},Se=function(Xe,wt,Ht,un,Jn,pr){if(pr)return O(Xe,Ht,un,Jn);var cr=sd(Xe,Ht,un,Jn);return kf(Xe.slice(0,Ht)).concat([cr])},Pe=function(Xe,wt,Ht,un){if(un){var Jn=wt+Ht,pr=Jn/wt,cr=U(Xe,function(Xn){return Xn/pr});return{delta:pr*100-100,newSizes:cr}}else return{delta:Ht,newSizes:Xe}};return{resizeTable:ve,clampTableDelta:sd,calcLeftEdgeDeltas:H,calcMiddleDeltas:oe,calcRightEdgeDeltas:Se,calcRedestributedWidths:Pe}},Mf=function(){var _=function(Pe,Xe,wt,Ht,un){var Jn=Ht>=0?wt:Xe,pr=Jl(Pe,Jn,Ht,un);return Of(Pe,Xe,wt+1,[pr,-pr],kf)},O=function(Pe,Xe,wt,Ht,un,Jn){return _(Pe,wt,Ht,un,Jn)},H=function(Pe,Xe,wt){wt&&Pe(Xe)},oe=function(Pe,Xe,wt,Ht,un,Jn){if(Jn)return kf(Pe);var pr=Ht/Pe.length;return U(Pe,F(pr))}
217,ve=function(Pe,Xe,wt,Ht,un){if(un){if(wt>=0)return wt;var Jn=re(Pe,function(pr,cr){return pr+cr-Ht},0);return Math.max(-Jn,wt)}else return sd(Pe,Xe,wt,Ht)},Se=function(Pe,Xe,wt,Ht){return{delta:0,newSizes:Pe}};return{resizeTable:H,clampTableDelta:ve,calcLeftEdgeDeltas:_,calcMiddleDeltas:O,calcRightEdgeDeltas:oe,calcRedestributedWidths:Se}},j0=function(_,O){var H=K.from(_.dom.documentElement).map(Bn.fromDom).getOr(_);return{parent:F(H),view:F(_),origin:F(Wi(0,0)),isResizable:O}},hv=function(_,O,H){var oe=function(){return kd(O)};return{parent:F(O),view:F(_),origin:oe,isResizable:H}},gu=function(_,O,H){return{parent:F(O),view:F(_),origin:F(Wi(0,0)),isResizable:H}},pv={only:j0,detached:hv,body:gu},W0=E1.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),a5=function(_,O,H){var oe=H.substring(0,H.length-_.length),ve=parseFloat(oe);return oe===ve.toString()?O(ve):W0.invalid(H)},yu=function(_){return Mt(_,"%")?a5("%",W0.percent,_):Mt(_,"px")?a5("px",W0.pixels,_):W0.invalid(_)},Ym=Ke(Ke({},W0),{from:yu}),eu=function(_,O){return U(_,function(H){var oe=Ym.from(H);return oe.fold(function(){return H},function(ve){var Se=ve/O*100;return Se+"%"},function(ve){return ve+"%"})})},Nf=function(_,O,H){var oe=H/O;return U(_,function(ve){var Se=Ym.from(ve);return Se.fold(function(){return ve},function(Pe){return Pe*oe+"px"},function(Pe){return Pe/100*H+"px"})})},qm=function(_,O){var H=_.fold(function(){return F("")},function(oe){var ve=oe/O;return F(ve+"px")},function(){var oe=100/O;return F(oe+"%")});return P(O,H)},i1=function(_,O,H){return _.fold(function(){return O},function(oe){return Nf(O,H,oe)},function(oe){return eu(O,H)})},K3=function(_,O,H){var oe=Ym.from(H),ve=De(_,function(Se){return Se==="0px"})?qm(oe,_.length):i1(oe,_,O);return GC(ve)},$h=function(_,O){return _.length===0?O:he(_,function(H,oe){return Ym.from(oe).fold(F(0),R,R)+H},0)},O2=function(_,O){var H=Math.floor(_);return{value:H+O,remainder:_-H}},M2=function(_,O){return Ym.from(_).fold(F(_),function(H){return H+O+"px"},function(H){return H+O+"%"})},GC=function(_){if(_.length===0)return _;var O=he(_,function(oe,ve){var Se=Ym.from(ve).fold(function(){return{value:ve,remainder:0}},function(Pe){return O2(Pe,"px")},function(Pe){return{value:Pe+"%",remainder:0}});return{output:[Se.value].concat(oe.output),remainder:oe.remainder+Se.remainder}},{output:[],remainder:0}),H=O.output;return H.slice(0,H.length-1).concat([M2(H[H.length-1],Math.round(O.remainder))])},KC=Ym.from,A7=function(_,O,H){j(O,function(oe){var ve=_.slice(oe.column,oe.colspan+oe.column),Se=$h(ve,zv());Ws(oe.element,"width",Se+H)})},k7=function(_,O,H){j(O,function(oe,ve){var Se=$h([_[ve]],zv());Ws(oe.element,"width",Se+H)})},O7=function(_,O,H,oe){j(H,function(ve){var Se=_.slice(ve.row,ve.rowspan+ve.row),Pe=$h(Se,Gs());Ws(ve.element,"height",Pe+oe)}),j(O,function(ve,Se){Ws(ve.element,"height",_[Se])})},YC=function(_){return KC(_).fold(F("px"),F("px"),F("%"))},Y3=function(_,O,H){var oe=pa.fromTable(_),ve=oe.all,Se=pa.justCells(oe),Pe=pa.justColumns(oe);O.each(function(Xe){var wt=YC(Xe),Ht=od(_),un=Zv(oe,_),Jn=K3(un,Ht,Xe);pa.hasColumns(oe)?k7(Jn,Pe,wt):A7(Jn,Se,wt),Ws(_,"width",Xe)}),H.each(function(Xe){var wt=YC(Xe),Ht=_c(_),un=w2(oe,_,iv),Jn=K3(un,Ht,Xe);O7(Jn,ve,Se,wt),Ws(_,"height",Xe)})},q3=Nh,wc=Ob,X3=Ns,i5=function(_){var O=pa.fromTable(_);return O.grid},N1=function(_){var O=[],H=function(Se){if(Se===void 0)throw new Error("Event bind error: undefined handler");O.push(Se)},oe=function(Se){O=ie(O,function(Pe){return Pe!==Se})},ve=function(){for(var Se=[],Pe=0;Pe<arguments.length;Pe++)Se[Pe]=arguments[Pe];var Xe={};j(_,function(wt,Ht){Xe[wt]=Se[Ht]}),j(O,function(wt){wt(Xe)})};return{bind:H,unbind:oe,trigger:ve}},Us=function(_){var O=df(_,function(oe){return{bind:oe.bind,unbind:oe.unbind}}),H=df(_,function(oe){return oe.trigger});return{registry:O,trigger:H}},s1=function(_,O){var H=null,oe=function(){f(H)||(clearTimeout(H),H=null)},ve=function(){for(var Se=[],Pe=0;Pe<arguments.length;Pe++)Se[Pe]=arguments[Pe];oe(),H=setTimeout(function(){H=null,_.apply(null,Se)},O)};return{cancel:oe,throttle:ve}},Wp=function(_){return _.slice(0).sort()},s5=function(_,O){throw new Error("All required keys ("+Wp(_).join(", ")+") were not specified. Specified keys were: "+Wp(O).join(", ")+".")},Z3=function(_){throw new Error("Unsupported keys for object: "+Wp(_).join(", "))},qC=function(_,O){if(!u(O))throw new Error("The "+_+" fields must be an array. Was: "+O+".");j(O,function(H){if(!i(H))throw new Error("The value "+H+" in the "+_+" fields was not a string.")})},Ta=function(_,O){throw new Error("All values need to be of type: "+O+". Keys ("+Wp(_).join(", ")+") were not.")},N2=function(_){var O=Wp(_),H=Ae(O,function(oe,ve){return ve<O.length-1&&oe===O[ve+1]});H.each(function(oe){throw new Error("The field: "+oe+" occurs more than once in the combined fields: ["+O.join(", ")+"].")}
217)},Q3=function(_,O){return l5(_,O,{validate:w,label:"function"})},l5=function(_,O,H){if(O.length===0)throw new Error("You must specify at least one required field.");return qC("required",O),N2(O),function(oe){var ve=Pl(oe),Se=De(O,function(Xe){return _e(ve,Xe)});Se||s5(O,ve),_(O,ve);var Pe=ie(O,function(Xe){return!H.validate(oe[Xe],Xe)});return Pe.length>0&&Ta(Pe,H.label),oe}},bu=function(_,O){var H=ie(O,function(oe){return!_e(_,oe)});H.length>0&&Z3(H)},D1=function(_){return Q3(bu,_)},XC=D1(["compare","extract","mutate","sink"]),Xm=D1(["element","start","stop","destroy"]),Ds=D1(["forceDrop","drop","move","delayDrop"]),Zm=function(){var _=K.none(),O=function(){_=K.none()},H=function(Se,Pe){var Xe=_.map(function(wt){return Se.compare(wt,Pe)});return _=K.some(Pe),Xe},oe=function(Se,Pe){var Xe=Pe.extract(Se);Xe.each(function(wt){var Ht=H(Pe,wt);Ht.each(function(un){ve.trigger.move(un)})})},ve=Us({move:N1(["info"])});return{onEvent:oe,reset:O,events:ve.registry}},J3=function(){var _=Us({move:N1(["info"])});return{onEvent:S,reset:S,events:_.registry}},D2=function(){var _=J3(),O=Zm(),H=_,oe=function(){H.reset(),H=O},ve=function(){H.reset(),H=_},Se=function(Xe,wt){H.onEvent(Xe,wt)},Pe=function(){return H===O};return{on:oe,off:ve,isOn:Pe,onEvent:Se,events:O.events}},u5=function(_,O,H){var oe=!1,ve=Us({start:N1([]),stop:N1([])}),Se=D2(),Pe=function(){cr.stop(),Se.isOn()&&(Se.off(),ve.trigger.stop())},Xe=s1(Pe,200),wt=function(Dr){cr.start(Dr),Se.on(),ve.trigger.start()},Ht=function(Dr){Xe.cancel(),Se.onEvent(Dr,O)};Se.events.move.bind(function(Dr){O.mutate(_,Dr.info)});var un=function(){oe=!0},Jn=function(){oe=!1},pr=function(Dr){return function(){for(var Lr=[],Ro=0;Ro<arguments.length;Ro++)Lr[Ro]=arguments[Ro];oe&&Dr.apply(null,Lr)}},cr=O.sink(Ds({forceDrop:Pe,drop:pr(Pe),move:pr(Ht),delayDrop:pr(Xe.throttle)}),H),Xn=function(){cr.destroy()};return{element:cr.element,go:wt,on:un,off:Jn,destroy:Xn,events:ve.registry}},ZC=function(_,O,H,oe,ve,Se,Pe){return{target:_,x:O,y:H,stop:oe,prevent:ve,kill:Se,raw:Pe}},Ib=function(_){var O=Bn.fromDom(uo(_).getOr(_.target)),H=function(){return _.stopPropagation()},oe=function(){return _.preventDefault()},ve=T(oe,H);return ZC(O,_.clientX,_.clientY,H,oe,ve,_)},QC=function(_,O){return function(H){_(H)&&O(Ib(H))}},G0=function(_,O,H,oe,ve){var Se=QC(H,oe);return _.dom.addEventListener(O,Se,ve),{unbind:A(c5,_,O,Se,ve)}},Df=function(_,O,H,oe){return G0(_,O,H,oe,!1)},c5=function(_,O,H,oe){_.dom.removeEventListener(O,H,oe)},M7=Y,Qv=function(_,O,H){return Df(_,O,M7,H)},K0=Ib,e6=function(_,O){var H=pf(_,O);return H===void 0||H===""?[]:H.split(" ")},N7=function(_,O,H){var oe=e6(_,O),ve=oe.concat([H]);return zl(_,O,ve.join(" ")),!0},D7=function(_,O,H){var oe=ie(e6(_,O),function(ve){return ve!==H});return oe.length>0?zl(_,O,oe.join(" ")):Pi(_,O),!1},Qm=function(_){return _.dom.classList!==void 0},Jm=function(_){return e6(_,"class")},t6=function(_,O){return N7(_,"class",O)},xi=function(_,O){return D7(_,"class",O)},_u=function(_,O){Qm(_)?_.dom.classList.add(O):t6(_,O)},If=function(_){var O=Qm(_)?_.dom.classList:Jm(_);O.length===0&&Pi(_,"class")},ld=function(_,O){if(Qm(_)){var H=_.dom.classList;H.remove(O)}else xi(_,O);If(_)},vs=function(_,O){return Qm(_)&&_.dom.classList.contains(O)},Gp=function(_){var O=_.replace(/\./g,"-"),H=function(oe){return O+"-"+oe};return{resolve:H}},n6=Gp("ephox-dragster"),Fu=n6.resolve,zh=function(_){var O=Ke({layerClass:Fu("blocker")},_),H=Bn.fromTag("div");zl(H,"role","presentation"),Kd(H,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),_u(H,Fu("blocker")),_u(H,O.layerClass);var oe=F(H),ve=function(){Ru(H)};return{element:oe,destroy:ve}},I7=function(_,O){return Wi(O.left-_.left,O.top-_.top)},R7=function(_){return K.some(Wi(_.x,_.y))},r6=function(_,O){_.mutate(O.left,O.top)},o6=function(_,O){var H=zh(O),oe=Qv(H.element(),"mousedown",_.forceDrop),ve=Qv(H.element(),"mouseup",_.drop),Se=Qv(H.element(),"mousemove",_.move),Pe=Qv(H.element(),"mouseout",_.delayDrop),Xe=function(){H.destroy(),ve.unbind(),Se.unbind(),Pe.unbind(),oe.unbind()}
217,wt=function(un){Ys(un,H.element())},Ht=function(){Ru(H.element())};return Xm({element:H.element,start:wt,stop:Ht,destroy:Xe})},f5=XC({compare:I7,extract:R7,sink:o6,mutate:r6}),d5=function(_,O){O===void 0&&(O={});var H=O.mode!==void 0?O.mode:f5;return u5(_,H,O)},eg=function(_){return is(_,"[contenteditable]")},Rb=function(_,O){return O===void 0&&(O=!1),!ft().browser.isIE()&&Qo(_)?_.dom.isContentEditable:eg(_).fold(F(O),function(H){return v5(H)==="true"})},v5=function(_){return _.dom.contentEditable},h5=Gp("ephox-snooker"),I2=h5.resolve,Cc=function(){var _=Us({drag:N1(["xDelta","yDelta"])}),O=function(H,oe){_.trigger.drag(H,oe)};return{mutate:O,events:_.registry}},Dd=function(){var _=Us({drag:N1(["xDelta","yDelta","target"])}),O=K.none(),H=Cc();H.events.drag.bind(function(Se){O.each(function(Pe){_.trigger.drag(Se.xDelta,Se.yDelta,Pe)})});var oe=function(Se){O=K.some(Se)},ve=function(){return O};return{assign:oe,get:ve,mutate:H.mutate,events:_.registry}},Lb=function(_,O,H,oe,ve){var Se=Bn.fromTag("div");return Kd(Se,{position:"absolute",left:O-oe/2+"px",top:H+"px",height:ve+"px",width:oe+"px"}),ll(Se,{"data-column":_,role:"presentation"}),Se},wu=function(_,O,H,oe,ve){var Se=Bn.fromTag("div");return Kd(Se,{position:"absolute",left:O+"px",top:H-ve/2+"px",height:ve+"px",width:oe+"px"}),ll(Se,{"data-row":_,role:"presentation"}),Se},a6=I2("resizer-bar"),Y0=I2("resizer-rows"),p5=I2("resizer-cols"),m5=7,JC=function(_,O){return Oe(_.all,function(H,oe){return O(H.element)?[oe]:[]})},g5=function(_,O){var H=[];return P(_.grid.columns,function(oe){var ve=pa.getColumnAt(_,oe).map(function(Se){return Se.element});ve.forall(O)&&H.push(oe)}),ie(H,function(oe){var ve=pa.filterItems(_,function(Se){return Se.column===oe});return De(ve,function(Se){return O(Se.element)})})},Bb=function(_){var O=qc(_.parent(),"."+a6);j(O,Ru)},i6=function(_,O,H){var oe=_.origin();j(O,function(ve){ve.each(function(Se){var Pe=H(oe,Se);_u(Pe,a6),Ys(_.parent(),Pe)})})},ex=function(_,O,H,oe){i6(_,O,function(ve,Se){var Pe=Lb(Se.col,Se.x-ve.left,H.top-ve.top,m5,oe);return _u(Pe,p5),Pe})},L7=function(_,O,H,oe){i6(_,O,function(ve,Se){var Pe=wu(Se.row,H.left-ve.left,Se.y-ve.top,oe,m5);return _u(Pe,Y0),Pe})},jc=function(_,O,H,oe,ve){var Se=kd(H),Pe=O.isResizable,Xe=oe.length>0?iv.positions(oe,H):[],wt=Xe.length>0?JC(_,Pe):[],Ht=ie(Xe,function(cr,Xn){return M(wt,function(Dr){return Xn===Dr})});L7(O,Ht,Se,Bu(H));var un=ve.length>0?I0.positions(ve,H):[],Jn=un.length>0?g5(_,Pe):[],pr=ie(un,function(cr,Xn){return M(Jn,function(Dr){return Xn===Dr})});ex(O,pr,Se,$c(H))},$u=function(_,O){if(Bb(_),_.isResizable(O)){var H=pa.fromTable(O),oe=Wv(H),ve=Vl(H);jc(H,_,O,oe,ve)}},Rf=function(_,O){var H=qc(_.parent(),"."+a6);j(H,O)},Lf=function(_){Rf(_,function(O){Ws(O,"display","none")})},ud=function(_){Rf(_,function(O){Ws(O,"display","block")})},tu=function(_){return vs(_,Y0)},s6=function(_){return vs(_,p5)},l6=I2("resizer-bar-dragging"),y5=function(_){var O=Dd(),H=d5(O,{}),oe=K.none(),ve=function(Xn,Dr){return K.from(pf(Xn,Dr))};O.events.drag.bind(function(Xn){ve(Xn.target,"data-row").each(function(Dr){var Lr=b1(Xn.target,"top");Ws(Xn.target,"top",Lr+Xn.yDelta+"px")}),ve(Xn.target,"data-column").each(function(Dr){var Lr=b1(Xn.target,"left");Ws(Xn.target,"left",Lr+Xn.xDelta+"px")})});var Se=function(Xn,Dr){var Lr=b1(Xn,Dr),Ro=gf(Xn,"data-initial-"+Dr,0);return Lr-Ro};H.events.stop.bind(function(){O.get().each(function(Xn){oe.each(function(Dr){ve(Xn,"data-row").each(function(Lr){var Ro=Se(Xn,"top");Pi(Xn,"data-initial-top"),cr.trigger.adjustHeight(Dr,Ro,parseInt(Lr,10))}),ve(Xn,"data-column").each(function(Lr){var Ro=Se(Xn,"left");Pi(Xn,"data-initial-left"),cr.trigger.adjustWidth(Dr,Ro,parseInt(Lr,10))}),$u(_,Dr)})})});var Pe=function(Xn,Dr){cr.trigger.startAdjust(),O.assign(Xn),zl(Xn,"data-initial-"+Dr,b1(Xn,Dr)),_u(Xn,l6),Ws(Xn,"opacity","0.2"),H.go(_.parent())},Xe=Qv(_.parent(),"mousedown",function(Xn){tu(Xn.target)&&Pe(Xn.target,"top"),s6(Xn.target)&&Pe(Xn.target,"left")}),wt=function(Xn){return ua(Xn,_.view())},Ht=function(Xn){return is(Xn,"table",wt).filter(Rb)},un=Qv(_.view(),"mouseover",function(Xn){Ht(Xn.target).fold(function(){Qo(Xn.target)&&Bb(_)},function(Dr){oe=K.some(Dr),$u(_,Dr)})}),Jn=function(){Xe.unbind(),un.unbind(),H.destroy(),Bb(_)},pr=function(Xn){$u(_,Xn)},cr=Us({adjustHeight:N1(["table","delta","row"]),adjustWidth:N1(["table","delta","column"]),startAdjust:N1([])});return{destroy:Jn,refresh:pr,on:H.on,off:H.off,hideBars:A(Lf,_),showBars:A(ud,_),events:cr.registry}},tg=function(_,O,H){var oe=iv,ve=I0,Se=y5(_),Pe=Us({beforeResize:N1(["table","type"]),afterResize:N1(["table","type"]),startDrag:N1([])});
217return Se.events.adjustHeight.bind(function(Xe){var wt=Xe.table;Pe.trigger.beforeResize(wt,"row");var Ht=oe.delta(Xe.delta,wt);Es(wt,Ht,Xe.row,oe),Pe.trigger.afterResize(wt,"row")}),Se.events.startAdjust.bind(function(Xe){Pe.trigger.startDrag()}),Se.events.adjustWidth.bind(function(Xe){var wt=Xe.table;Pe.trigger.beforeResize(wt,"col");var Ht=ve.delta(Xe.delta,wt),un=H(wt);jl(wt,Ht,Xe.column,O,un),Pe.trigger.afterResize(wt,"col")}),{on:Se.on,off:Se.off,hideBars:Se.hideBars,showBars:Se.showBars,destroy:Se.destroy,events:Pe.registry}},Kp={create:tg},u6=function(_,O){return _.fire("newrow",{node:O})},c6=function(_,O){return _.fire("newcell",{node:O})},f6=function(_,O,H,oe,ve){_.fire("ObjectResizeStart",{target:O,width:H,height:oe,origin:ve})},R2=function(_,O,H,oe,ve){_.fire("ObjectResized",{target:O,width:H,height:oe,origin:ve})},L2=function(_,O,H,oe,ve){_.fire("TableSelectionChange",{cells:O,start:H,finish:oe,otherCells:ve})},tx=function(_){_.fire("TableSelectionClear")},Hh=function(_,O,H){_.fire("TableModified",Ke(Ke({},H),{table:O}))},ng={structure:!1,style:!0},Zs={structure:!0,style:!1},B7={structure:!0,style:!0},P7="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",d6={"border-collapse":"collapse",width:"100%"},F7=P(5,function(_){var O=_+1+"px";return{title:O,value:O}}),nx=U(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],function(_){return{title:_,value:_.toLowerCase()}}),Rr=function(_){var O;if(q0(_)){var H=_.dom,oe=(O=H.getParent(_.selection.getStart(),H.isBlock))!==null&&O!==void 0?O:_.getBody(),ve=pi(Bn.fromDom(oe));return Ke(Ke({},d6),{width:ve+"px"})}else return B2(_)?ql(d6,function(Se,Pe){return Pe!=="width"}):d6},$7={border:"1"},Cu="preservetable",b5=function(_){return _.getParam("table_sizing_mode","auto")},rg=function(_){return _.getParam("table_responsive_width")},rx=function(_){return _.getParam("table_border_widths",F7,"array")},nf=function(_){return _.getParam("table_border_styles",nx,"array")},Pb=function(_){return _.getParam("table_default_attributes",$7,"object")},v6=function(_){return _.getParam("table_default_styles",Rr(_),"object")},Fb=function(_){return _.getParam("table_resize_bars",!0,"boolean")},Jv=function(_){return _.getParam("table_tab_navigation",!0,"boolean")},$b=function(_){return _.getParam("table_cell_advtab",!0,"boolean")},zb=function(_){return _.getParam("table_row_advtab",!0,"boolean")},Bf=function(_){return _.getParam("table_advtab",!0,"boolean")},eh=function(_){return _.getParam("table_appearance_options",!0,"boolean")},ox=function(_){return _.getParam("table_grid",!0,"boolean")},rf=function(_){return _.getParam("table_style_by_css",!1,"boolean")},Vh=function(_){return _.getParam("table_cell_class_list",[],"array")},Yp=function(_){return _.getParam("table_row_class_list",[],"array")},Hb=function(_){return _.getParam("table_class_list",[],"array")},Kn=function(_){return b5(_)==="relative"||rg(_)===!0},q0=function(_){return b5(_)==="fixed"||rg(_)===!1},B2=function(_){return b5(_)==="responsive"},z7=function(_){return _.getParam("table_toolbar",P7)},h6=function(_){return _.getParam("table_use_colgroups",!1,"boolean")},mv=function(_){var O="section",H=_.getParam("table_header_type",O,"string"),oe=["section","cells","sectionCells","auto"];return _e(oe,H)?H:O},p6=function(_){var O=["preservetable","resizetable"],H=_.getParam("table_column_resizing",Cu,"string");return Ae(O,function(oe){return oe===H}).getOr(Cu)},_5=function(_){return p6(_)==="preservetable"},w5=function(_){return p6(_)==="resizetable"},m6=function(_){var O=_.getParam("table_clone_elements");return i(O)?K.some(O.split(/[ ,]/)):Array.isArray(O)?K.some(O):K.none()},C5=function(_){var O=_.getParam("object_resizing",!0);return i(O)?O==="table":O},x5=function(_){return _.getParam("table_background_color_map",[],"array")},E5=function(_){return _.getParam("table_border_color_map",[],"array")},S5=function(_,O){return Kn(_)?Nd.percentageSize(O):q0(_)?Nd.pixelSize(O):Nd.getTableSize(O)},og=function(_){Pi(_,"width")},ax=function(_){var O=Xv(_);Y3(_,K.some(O),K.none()),og(_)}
217,H7=function(_){var O=j3(_);Y3(_,K.some(O),K.none()),og(_)},V7=function(_){Os(_,"width");var O=Td(_),H=O.length>0?O:_1(_);j(H,function(oe){Os(oe,"width"),og(oe)}),og(_)},P2=ax,F2=H7,g6=V7,T5=function(_){var O=pa.fromTable(_);pa.hasColumns(O)||j(_1(_),function(H){var oe=ed(H,"width");Ws(H,"width",oe),Pi(H,"width")})},$2=function(){var _=Bn.fromTag("div");return Kd(_,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Ys(jo(),_),_},A5=function(_,O){return _.inline?pv.body(k1(_),$2(),O):pv.only(Bn.fromDom(_.getDoc()),O)},wl=function(_,O){_.inline&&Ru(O.parent())},Vb="bar-",Dl=function(_){return pf(_,"data-mce-resize")!=="false"},y6=function(_){var O=K.none(),H=K.none(),oe=K.none(),ve,Se,Pe=function(Xn){return Xn.nodeName==="TABLE"},Xe=function(){return H},wt=function(){return oe.getOr(pv.only(Bn.fromDom(_.getBody()),Dl))},Ht=function(Xn){return S5(_,Xn)},un=function(){return _5(_)?Mf():jp()},Jn=function(Xn){return i5(Xn).columns},pr=function(Xn,Dr,Lr){var Ro=Mt(Dr,"e");if(Se===""&&P2(Xn),Lr!==ve&&Se!==""){Ws(Xn,"width",Se);var ri=un(),Po=Ht(Xn),aa=_5(_)||Ro?Jn(Xn)-1:0;jl(Xn,Lr-ve,aa,ri,Po)}else if(Fh(Se)){var Ya=parseFloat(Se.replace("%","")),Ha=Lr*Ya/ve;Ws(Xn,"width",Ha+"%")}M1(Se)&&T5(Xn)},cr=function(){H.each(function(Xn){Xn.destroy()}),oe.each(function(Xn){wl(_,Xn)})};return _.on("init",function(){var Xn=A5(_,Dl);if(oe=K.some(Xn),C5(_)&&Fb(_)){var Dr=un(),Lr=Kp.create(Xn,Dr,Ht);Lr.on(),Lr.events.startDrag.bind(function(Ro){O=K.some(_.selection.getRng())}),Lr.events.beforeResize.bind(function(Ro){var ri=Ro.table.dom;f6(_,ri,cv(ri),fv(ri),Vb+Ro.type)}),Lr.events.afterResize.bind(function(Ro){var ri=Ro.table,Po=ri.dom;ei(ri),O.each(function(aa){_.selection.setRng(aa),_.focus()}),R2(_,Po,cv(Po),fv(Po),Vb+Ro.type),_.undoManager.add()}),H=K.some(Lr)}}),_.on("ObjectResizeStart",function(Xn){var Dr=Xn.target;if(Pe(Dr)){var Lr=Bn.fromDom(Dr);j(_.dom.select(".mce-clonedresizable"),function(Ro){_.dom.addClass(Ro,"mce-"+p6(_)+"-columns")}),!wc(Lr)&&q0(_)?F2(Lr):!q3(Lr)&&Kn(_)&&P2(Lr),X3(Lr)&&_n(Xn.origin,Vb)&&P2(Lr),ve=Xn.width,Se=B2(_)?"":O1(_,Dr).getOr("")}}),_.on("ObjectResized",function(Xn){var Dr=Xn.target;if(Pe(Dr)){var Lr=Bn.fromDom(Dr),Ro=Xn.origin;_n(Ro,"corner-")&&pr(Lr,Ro,Xn.width),ei(Lr),Hh(_,Lr.dom,ng)}}),_.on("SwitchMode",function(){Xe().each(function(Xn){_.mode.isReadOnly()?Xn.hideBars():Xn.showBars()})}),{lazyResize:Xe,lazyWire:wt,destroy:cr}},ag=function(_,O){return{element:_,offset:O}},k5=function(_,O,H){return _.property().isText(O)&&_.property().getText(O).trim().length===0||_.property().isComment(O)?H(O).bind(function(oe){return k5(_,oe,H).orThunk(function(){return K.some(oe)})}):K.none()},Ub=function(_,O){if(_.property().isText(O))return _.property().getText(O).length;var H=_.property().children(O);return H.length},O5=function(_,O){var H=k5(_,O,_.query().prevSibling).getOr(O);if(_.property().isText(H))return ag(H,Ub(_,H));var oe=_.property().children(H);return oe.length>0?O5(_,oe[oe.length-1]):ag(H,Ub(_,H))},ix=O5,U7=S0(),sx=function(_){return ix(U7,_)},j7=function(_,O){var H=yl(_,"colspan");if(H===1){var oe=B0(_);oe.each(function(ve){var Se=ve.value/2;P0(_,Se,ve.unit),P0(O,Se,ve.unit)})}},b6=ws("th"),jb=function(_){return De(_,function(O){return b6(O.element)})},W7=function(_,O){return _&&O?"sectionCells":_?"section":"cells"},lx=function(_){var O=_.section==="thead",H=Gd(M5(_.cells),"th");return O||H?{type:"header",subType:W7(O,H)}:_.section==="tfoot"?{type:"footer"}:{type:"body"}},M5=function(_){var O=ie(_,function(H){return b6(H.element)});return O.length===0?K.some("td"):O.length===_.length?K.some("th"):K.none()},G7=function(_){var O=U(_,function(Se){return lx(Se).type}),H=_e(O,"header"),oe=_e(O,"footer");if(!H&&!oe)return K.some("body");var ve=_e(O,"body");return H&&!ve&&!oe?K.some("header"):!H&&!ve&&oe?K.some("footer"):K.none()},K7=function(_){return Ye(_.all,function(O){var H=lx(O);return H.type==="header"?K.from(H.subType):K.none()})},_6=function(_,O,H){return Yi(H(_.element,O),!0,_.isLocked)},N5=function(_,O){return _.section!==O?mc(_.element,_.cells,O,_.isNew):_},xc=function(){return{transformRow:N5,transformCell:function(_,O,H){var oe=H(_.element,O),ve=Ea(oe)!=="td"?n5(oe,"td"):oe;return Yi(ve,_.isNew,_.isLocked)}}},z2=function(){return{transformRow:N5,transformCell:_6}},H2=function(){return{transformRow:function(_,O){var H=O==="thead"?"tbody":O;return N5(_,H)},transformCell:_6}},ux=function(){return{transformRow:R,transformCell:_6}}
217,Y7=function(_,O){var H=pa.fromTable(_),oe=K7(H).getOr(O);switch(oe){case"section":return xc();case"sectionCells":return z2();case"cells":return H2()}},Wb={getTableSectionType:Y7,section:xc,sectionCells:z2,cells:H2,fallback:ux},Gb=function(_,O,H,oe){H===oe?Pi(_,O):zl(_,O,H)},ig=function(_,O,H){We(ha(_,O)).fold(function(){return Iu(_,H)},function(oe){return ts(oe,H)})},w6=function(_,O){var H=Jo(_,O).getOrThunk(function(){var oe=Bn.fromTag(O,vf(_).dom);return O==="thead"?ig(_,"caption,colgroup",oe):O==="colgroup"?ig(_,"caption",oe):Ys(_,oe),oe});return Hl(H),H},Kb=function(_,O){var H=[],oe=[],ve=function(cr){return U(cr,function(Xn){Xn.isNew&&H.push(Xn.element);var Dr=Xn.element;return Hl(Dr),j(Xn.cells,function(Lr){Lr.isNew&&oe.push(Lr.element),Gb(Lr.element,"colspan",Lr.colspan,1),Gb(Lr.element,"rowspan",Lr.rowspan,1),Ys(Dr,Lr.element)}),Dr})},Se=function(cr){return Oe(cr,function(Xn){return U(Xn.cells,function(Dr){return Gb(Dr.element,"span",Dr.colspan,1),Dr.element})})},Pe=function(cr,Xn){var Dr=w6(_,Xn),Lr=Xn==="colgroup"?Se:ve,Ro=Lr(cr);ul(Dr,Ro)},Xe=function(cr){Jo(_,cr).each(Ru)},wt=function(cr,Xn){cr.length>0?Pe(cr,Xn):Xe(Xn)},Ht=[],un=[],Jn=[],pr=[];return j(O,function(cr){switch(cr.section){case"thead":Ht.push(cr);break;case"tbody":un.push(cr);break;case"tfoot":Jn.push(cr);break;case"colgroup":pr.push(cr);break}}),wt(pr,"colgroup"),wt(Ht,"thead"),wt(un,"tbody"),wt(Jn,"tfoot"),{newRows:H,newCells:oe}},D5=function(_){return U(_,function(O){var H=Jd(O.element);return j(O.cells,function(oe){var ve=hi(oe.element);Gb(ve,"colspan",oe.colspan,1),Gb(ve,"rowspan",oe.rowspan,1),Ys(H,ve)}),H})},q7=function(_,O){return U(_,function(H){return Ju(H,O)})},Uh=function(_,O){return _[O]},C6=function(_,O){if(_.length===0)return 0;var H=_[0],oe=Te(_,function(ve){return!O(H.element,ve.element)});return oe.getOr(_.length)},X7=function(_,O,H,oe){var ve=Uh(_,O),Se=ve.section==="colgroup",Pe=C6(ve.cells.slice(H),oe),Xe=Se?1:C6(q7(_.slice(O),H),oe);return{colspan:Pe,rowspan:Xe}},qp=function(_,O){var H=U(_,function(ve){return U(ve.cells,z)}),oe=function(ve,Se,Pe,Xe){for(var wt=ve;wt<ve+Pe;wt++)for(var Ht=Se;Ht<Se+Xe;Ht++)H[wt][Ht]=!0};return U(_,function(ve,Se){var Pe=Oe(ve.cells,function(Xe,wt){if(H[Se][wt]===!1){var Ht=X7(_,Se,wt,O);return oe(Se,wt,Ht.rowspan,Ht.colspan),[da(Xe.element,Ht.rowspan,Ht.colspan,Xe.isNew)]}else return[]});return pc(ve.element,Pe,ve.section,ve.isNew)})},Xp=function(_,O,H){var oe=[];j(_.colgroups,function(un){for(var Jn=[],pr=0;pr<_.grid.columns;pr++){var cr=pa.getColumnAt(_,pr).map(function(Xn){return Yi(Xn.element,H,!1)}).getOrThunk(function(){return Yi(O.colGap(),!0,!1)});Jn.push(cr)}oe.push(mc(un.element,Jn,"colgroup",H))});for(var ve=0;ve<_.grid.rows;ve++){for(var Se=[],Pe=0;Pe<_.grid.columns;Pe++){var Xe=pa.getAt(_,ve,Pe).map(function(un){return Yi(un.element,H,un.isLocked)}).getOrThunk(function(){return Yi(O.gap(),!0,!1)});Se.push(Xe)}var wt=_.all[ve],Ht=mc(wt.element,Se,wt.section,H);oe.push(Ht)}return oe},Z7=function(_,O){return Xp(_,O,!1)},x6=function(_){return qp(_,ua)},E6=function(_,O){return Ye(_.all,function(H){return Ae(H.cells,function(oe){return ua(O,oe.element)})})},S6=function(_,O,H){var oe=U(O.selection,function(Se){return Xc(Se).bind(function(Pe){return E6(_,Pe)}).filter(H)}),ve=gl(oe);return Ui(ve.length>0,ve)},rc=function(_,O,H,oe,ve){return function(Se,Pe,Xe,wt,Ht){var un=pa.fromTable(Pe),Jn=K.from(Ht==null?void 0:Ht.section).getOrThunk(Wb.fallback),pr=O(un,Xe).map(function(cr){var Xn=Z7(un,wt),Dr=_(Xn,cr,ua,ve(wt),Jn),Lr=bl(Dr.grid),Ro=x6(Dr.grid);return{info:cr,grid:Ro,cursor:Dr.cursor,lockedColumns:Lr}});return pr.bind(function(cr){var Xn=Kb(Pe,cr.grid),Dr=K.from(Ht==null?void 0:Ht.sizing).getOrThunk(function(){return Nd.getTableSize(Pe)}),Lr=K.from(Ht==null?void 0:Ht.resize).getOrThunk(Mf);return H(Pe,cr.grid,cr.info,{sizing:Dr,resize:Lr,section:Jn}),oe(Pe),$u(Se,Pe),Pi(Pe,nl),cr.lockedColumns.length>0&&zl(Pe,nl,cr.lockedColumns.join(",")),K.some({cursor:cr.cursor,newRows:Xn.newRows,newCells:Xn.newCells})})}},cx=function(_,O){return Xc(O.element).bind(function(H){return E6(_,H).map(function(oe){var ve=Ke(Ke({},oe),{generators:O.generators,clipboard:O.clipboard});return ve})})},I5=function(_,O){return S6(_,O,Y).map(function(H){return{cells:H,generators:O.generators,clipboard:O.clipboard}})},fx=function(_,O){return O.mergable},dx=function(_,O){return O.unmergable},th=function(_,O){return S6(_,O,Y)},X0=function(_,O){return S6(_,O,function(H){return!H.isLocked})},vx=function(_,O){return E6(_,O).exists(function(H){return!H.isLocked})},hx=function(_,O){return De(O,function(H){return vx(_,H)})},R5=function(_,O){return fx(_,O).filter(function(H){return hx(_,H.cells)})},T6=function(_,O){return dx(_,O).filter(function(H){return hx(_,H)})},px=function(_,O,H,oe){var ve=Ks(_).rows;if(ve.length===0)return _;for(var Se=O.startRow;Se<=O.finishRow;Se++)for(var Pe=O.startCol;Pe<=O.finishCol;Pe++){var Xe=ve[Se],wt=Ju(Xe,Pe).isLocked;C1(Xe,Pe,Yi(oe(),!1,wt))}return _},V2=function(_,O,H,oe){for(var ve=Ks(_).rows,Se=!0,Pe=0;Pe<ve.length;Pe++)for(var Xe=0;Xe<td(ve[0]);Xe++){var wt=ve[Pe],Ht=Ju(wt,Xe),un=Ht.element,Jn=H(un,O);Jn===!0&&Se===!1?C1(wt,Xe,Yi(oe(),!0,Ht.isLocked)):Jn===!0&&(Se=!1)}return _},Q7=function(_,O){return re(_,function(H,oe){return M(H,function(ve){return O(ve.element,oe.element)})?H:H.concat([oe])},[])},Yb=function(_,O,H,oe){return O>0&&O<_[0].cells.length&&j(_,function(ve){var Se=ve.cells[O-1],Pe=ve.cells[O],Xe=H(Pe.element,Se.element);Xe&&C1(ve,O,Yi(oe(),!0,Pe.isLocked))}),_},J7=function(_,O,H,oe){var ve=Ks(_).rows;if(O>0&&O<ve.length){var Se=ve[O-1].cells,Pe=Q7(Se,H);j(Pe,function(Xe){for(var wt=K.none(),Ht=O;Ht<ve.length;Ht++)for(var un=function(pr){var cr=ve[Ht],Xn=Ju(cr,pr),Dr=H(Xn.element,Xe.element);Dr&&(wt.isNone()&&(wt=K.some(oe())),wt.each(function(Lr){C1(cr,pr,Yi(Lr,!0,Xn.isLocked))}))},Jn=0;Jn<td(ve[0]);Jn++)un(Jn)})}return _},U2=function(_){var O=function(Jn){return U2(_)},H=function(Jn){return U2(_)},oe=function(Jn){return U2(Jn(_))},ve=function(Jn){return U2(_)},Se=function(Jn){Jn(_)},Pe=function(Jn){return Jn(_)},Xe=function(Jn,pr){return pr(_)},wt=function(Jn){return Jn(_)},Ht=function(Jn){return Jn(_)},un=function(){return K.some(_)};return{isValue:Y,isError:z,getOr:F(_),getOrThunk:F(_),getOrDie:F(_),or:O,orThunk:H,fold:Xe,map:oe,mapError:ve,each:Se,bind:Pe,exists:wt,forall:Ht,toOptional:un}},sg=function(_){var O=function(Ht){return Ht()},H=function(){return Z(String(_))()},oe=R,ve=function(Ht){return Ht()},Se=function(Ht){return sg(_)},Pe=function(Ht){return sg(Ht(_))},Xe=function(Ht){return sg(_)},wt=function(Ht,un){return Ht(_)};return{isValue:z,isError:Y,getOr:R,getOrThunk:O,getOrDie:H,or:oe,orThunk:ve,fold:wt,map:Se,mapError:Pe,each:S,bind:Xe,exists:z,forall:Y,toOptional:K.none}},L5=function(_,O){return _.fold(function(){return sg(O)},U2)},mx={value:U2,error:sg,fromOption:L5},ek=function(_,O,H){if(_.row>=O.length||_.column>td(O[0]))return mx.error("invalid start address out of table bounds, row: "+_.row+", column: "+_.column);var oe=O.slice(_.row),ve=oe[0].cells.slice(_.column),Se=td(H[0]),Pe=H.length;return mx.value({rowDelta:oe.length-Pe,colDelta:ve.length-Se})},gx=function(_,O){var H=td(_[0]),oe=td(O[0]);return{rowDelta:0,colDelta:H-oe}},yx=function(_,O){var H=_.length,oe=O.length;return{rowDelta:H-oe,colDelta:0}},B5=function(_,O,H,oe){var ve=O.section==="colgroup"?H.col:H.cell;return P(_,function(Se){return Yi(ve(),!0,oe(Se))})},tk=function(_,O,H,oe){var ve=_[_.length-1];return _.concat(P(O,function(){var Se=ve.section==="colgroup"?H.colgroup:H.row,Pe=kl(ve,Se,R),Xe=B5(Pe.cells.length,Pe,H,function(wt){return pt(oe,wt.toString())});return Ko(Pe,Xe)}))},A6=function(_,O,H,oe){return U(_,function(ve){var Se=B5(O,ve,H,z);return Xd(ve,oe,Se)})},nk=function(_,O,H){return U(_,function(oe){return re(H,function(ve,Se){var Pe=B5(1,oe,O,Y)[0];return Vv(ve,Se,Pe)},oe)})},qb=function(_,O,H){var oe=O.colDelta<0?A6:R,ve=O.rowDelta<0?tk:R,Se=bl(_),Pe=td(_[0]),Xe=M(Se,function(un){return un===Pe-1}),wt=oe(_,Math.abs(O.colDelta),H,Xe?Pe-1:Pe),Ht=bl(wt);return ve(wt,Math.abs(O.rowDelta),H,rt(Ht,Y))},rk=function(_,O,H,oe){var ve=Ju(_[O],H),Se=A(oe,ve.element),Pe=_[O];return _.length>1&&td(Pe)>1&&(H>0&&Se(Xl(Pe,H-1))||H<Pe.cells.length-1&&Se(Xl(Pe,H+1))||O>0&&Se(Xl(_[O-1],H))||O<_.length-1&&Se(Xl(_[O+1],H)))},ok=function(_,O,H,oe,ve,Se){for(var Pe=_.row,Xe=_.column,wt=H.length,Ht=td(H[0]),un=Pe+wt,Jn=Xe+Ht+Se.length,pr=rt(Se,Y),cr=Pe;cr<un;cr++)for(var Xn=0,Dr=Xe;Dr<Jn;Dr++){if(pr[Dr]){Xn++;continue}rk(O,cr,Dr,ve)&&V2(O,Xl(O[cr],Dr),ve,oe.cell);var Lr=Dr-Xe-Xn,Ro=Ju(H[cr-Pe],Lr),ri=Ro.element,Po=oe.replace(ri);C1(O[cr],Dr,Yi(Po,!0,Ro.isLocked))}return O},ak=function(_,O,H){var oe=td(O[0]),ve=Ks(O).cols.length+_.row,Se=P(oe-_.column,function(Xe){return Xe+_.column}),Pe=Ae(Se,function(Xe){return De(H,function(wt){return wt!==Xe})}).getOr(oe-1);return{row:ve,column:Pe}},k6=function(_,O,H){return ie(H,function(oe){return oe>=_.column&&oe<=td(O[0])+_.column})},ik=function(_,O,H,oe,ve){var Se=bl(O),Pe=ak(_,O,Se),Xe=Ks(H).rows,wt=k6(Pe,Xe,Se),Ht=ek(Pe,O,Xe);return Ht.map(function(un){var Jn=Ke(Ke({},un),{colDelta:un.colDelta-wt.length}),pr=qb(O,Jn,oe),cr=bl(pr),Xn=k6(Pe,Xe,cr);return ok(Pe,pr,Xe,oe,ve,Xn)})},j2=function(_,O,H,oe,ve){Yb(O,_,ve,oe.cell);var Se=yx(H,O),Pe=qb(H,Se,oe),Xe=yx(O,Pe),wt=qb(O,Xe,oe);return U(wt,function(Ht,un){return Xd(Ht,_,Pe[un].cells)})},bx=function(_,O,H,oe,ve){J7(O,_,ve,oe.cell);var Se=bl(O),Pe=gx(O,H),Xe=Ke(Ke({},Pe),{colDelta:Pe.colDelta-Se.length}),wt=qb(O,Xe,oe),Ht=Ks(wt),un=Ht.cols,Jn=Ht.rows,pr=bl(wt),cr=gx(H,O),Xn=Ke(Ke({},cr),{colDelta:cr.colDelta+pr.length}),Dr=nk(H,oe,pr),Lr=qb(Dr,Xn,oe);return un.concat(Jn.slice(0,_)).concat(Lr).concat(Jn.slice(_,Jn.length))},sk=function(_,O,H,oe){return kl(_,function(ve){return oe(ve,H)},O)},P5=function(_,O,H,oe,ve){var Se=Ks(_),Pe=Se.rows,Xe=Se.cols,wt=Pe.slice(0,O),Ht=Pe.slice(O),un=sk(Pe[H],function(Jn,pr){var cr=O>
2170&&O<Pe.length&&oe(Xl(Pe[O-1],pr),Xl(Pe[O],pr)),Xn=cr?Ju(Pe[O],pr):Yi(ve(Jn.element,oe),!0,Jn.isLocked);return Xn},oe,ve);return Xe.concat(wt).concat([un]).concat(Ht)},_x=function(_,O,H,oe,ve,Se,Pe){if(H==="colgroup"||!oe){var Xe=Ju(_,ve);return Yi(Pe(Xe.element,Se),!0,!1)}else return Ju(_,O)},F5=function(_,O,H,oe,ve){return U(_,function(Se){var Pe=O>0&&O<td(Se)&&oe(Xl(Se,O-1),Xl(Se,O)),Xe=_x(Se,O,Se.section,Pe,H,oe,ve);return Vv(Se,O,Xe)})},wx=function(_,O){return Oe(_,function(H){var oe=H.cells,ve=he(O,function(Se,Pe){return Pe>=0&&Pe<Se.length?Se.slice(0,Pe).concat(Se.slice(Pe+1)):Se},oe);return ve.length>0?[mc(H.element,ve,H.section,H.isNew)]:[]})},Cx=function(_,O,H){var oe=Ks(_),ve=oe.rows,Se=oe.cols;return Se.concat(ve.slice(0,O)).concat(ve.slice(H+1))},W2=function(_,O,H,oe){return Xl(_[O],H)!==void 0&&O>0&&oe(Xl(_[O-1],H),Xl(_[O],H))},$5=function(_,O,H){return O>0&&H(Xl(_,O-1),Xl(_,O))},z5=function(_,O,H,oe){return W2(_,O,H,oe)||$5(_[O],H,oe)},lk=function(_,O){var H=De(O,R)&&jb(_.cells);return H?Y:function(oe,ve,Se){var Pe=Ea(oe.element);return!(Pe==="th"&&O[Se])}},uk=function(_,O){var H=De(O,R)&&jb(_);return H?Y:function(oe,ve,Se){var Pe=Ea(oe.element);return!(Pe==="th"&&O[ve])}},H5=function(_,O,H,oe){var ve=function(Xe){return Xe==="row"?$m(O):Th(O)},Se=function(Xe){return ve(Xe)?Xe+"group":Xe};if(_)return b6(O)?Se(H):null;if(oe&&b6(O)){var Pe=H==="row"?"col":"row";return Se(Pe)}else return null},ck=function(_,O){return function(H,oe,ve){return K.some(H5(_,H.element,"col",O[ve]))}},xx=function(_,O){return function(H,oe){return K.some(H5(_,H.element,"row",O[oe]))}},Zp=function(_,O,H){return Yi(H(_.element,O),!0,_.isLocked)},G2=function(_,O,H,oe,ve,Se,Pe){var Xe=function(wt){return M(O,function(Ht){return H(wt.element,Ht.element)})};return U(_,function(wt,Ht){return bf(wt,function(un,Jn){if(Xe(un)){var pr=Pe(un,Ht,Jn)?ve(un,H,oe):un;return Se(pr,Ht,Jn).each(function(cr){Pv(pr.element,{scope:K.from(cr)})}),pr}else return un})})},Ex=function(_,O,H){return Oe(_,function(oe,ve){return z5(_,ve,O,H)?[]:[Ju(oe,O)]})},fk=function(_,O,H){var oe=_[O];return Oe(oe.cells,function(ve,Se){return z5(_,O,Se,H)?[]:[ve]})},Sx=function(_,O,H,oe,ve){var Se=Ks(_).rows,Pe=Oe(O,function(un){return Ex(Se,un,oe)}),Xe=U(_,function(un){return jb(un.cells)}),wt=uk(Pe,Xe),Ht=xx(H,Xe);return G2(_,Pe,oe,ve,Zp,Ht,wt)},dk=function(_,O,H,oe,ve,Se,Pe){var Xe=Ks(_),wt=Xe.cols,Ht=Xe.rows,un=Ht[O[0]],Jn=Oe(O,function(Ro){return fk(Ht,Ro,ve)}),pr=U(un.cells,function(Ro,ri){return jb(Ex(Ht,ri,ve))}),cr=mt([],Ht,!0);j(O,function(Ro){cr[Ro]=Pe.transformRow(Ht[Ro],H)});var Xn=wt.concat(cr),Dr=lk(un,pr),Lr=ck(oe,pr);return G2(Xn,Jn,ve,Se,Pe.transformCell,Lr,Dr)},V5=function(_,O,H,oe){var ve=Ks(_).rows,Se=U(O,function(Pe){return Ju(ve[Pe.row],Pe.column)});return G2(_,Se,H,oe,Zp,K.none,Y)},K2=function(_){var O=function(H,oe){var ve=M(H,function(Se){return Se.column===oe.column});return ve?H:H.concat([oe])};return re(_,O,[]).sort(function(H,oe){return H.column-oe.column})},of=ws("col"),U5=ws("colgroup"),Y2=function(_){return Ea(_)==="tr"||U5(_)},lg=function(_){var O=gf(_,"colspan",1),H=gf(_,"rowspan",1);return{element:_,colspan:O,rowspan:H}},O6=function(_,O){O===void 0&&(O=lg);var H=function(Xe){return of(Xe.element)?_.col(Xe):_.cell(Xe)},oe=function(Xe){return U5(Xe.element)?_.colgroup(Xe):_.row(Xe)},ve=function(Xe){if(Y2(Xe))return oe({element:Xe});var wt=H(O(Xe));return Se=K.some({item:Xe,replacement:wt}),wt},Se=K.none(),Pe=function(Xe,wt){return Se.fold(function(){return ve(Xe)},function(Ht){return wt(Xe,Ht.item)?Ht.replacement:ve(Xe)})};return{getOrInit:Pe}},vk=function(_){return function(O){var H=[],oe=function(Pe,Xe){return Ae(H,function(wt){return Xe(wt.item,Pe)})},ve=function(Pe){var Xe=_==="td"?{scope:null}:{},wt=O.replace(Pe,_,Xe);return H.push({item:Pe,sub:wt}),wt},Se=function(Pe,Xe){return Y2(Pe)||of(Pe)?Pe:oe(Pe,Xe).fold(function(){return ve(Pe)},function(wt){return Xe(Pe,wt.item)?wt.sub:ve(Pe)})};return{replaceOrInit:Se}}},Tx=function(_){return ai(_,"scope").map(function(O){return O.substr(0,3)})},j5=function(_){var O=function(oe){var ve=Tx(oe);return ve.each(function(Se){return zl(oe,"scope",Se)}),function(){var Se=_.cell({element:oe,colspan:1,rowspan:1});return Os(Se,"width"),Os(oe,"width"),ve.each(function(Pe){return zl(Se,"scope",Pe)}),Se}},H=function(oe){var ve=function(){var Se=gl(U(oe,Tx));if(Se.length===0)return K.none();var Pe=Se[0],Xe=["row","col"],wt=M(Se,function(Ht){return Ht!==Pe&&_e(Xe,Ht)});return wt?K.none():K.from(Pe)};return Os(oe[0],"width"),ve().fold(function(){return Pi(oe[0],"scope")},function(Se){return zl(oe[0],"scope",Se+"group")}),F(oe[0])};return{unmerge:O,merge:H}},cd={modification:O6,transform:vk,merging:j5},Xb=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],hk=function(_,O){var H=_.property().name(O);return _e(["ol","ul"],H)},ug=function(_,O){var H=_.property().name(O);return _e(Xb,H)}
217,Qp=function(_,O){return _e(["br","img","hr","input"],_.property().name(O))},q2=S0(),Jp=function(_){return ug(q2,_)},nh=function(_){return hk(q2,_)},rh=function(_){return Qp(q2,_)},M6=function(_){var O=function(wt){return Ea(wt)==="br"},H=function(wt){return De(wt,function(Ht){return O(Ht)||ml(Ht)&&p2(Ht).trim().length===0})},oe=function(wt){return Ea(wt)==="li"||$s(wt,nh).isSome()},ve=function(wt){return xe(wt).map(function(Ht){return Jp(Ht)?!0:rh(Ht)?Ea(Ht)!=="img":!1}).getOr(!1)},Se=function(wt){return Wm(wt).bind(function(Ht){var un=ve(Ht);return Cs(Ht).map(function(Jn){return un===!0||oe(Jn)||O(Ht)||Jp(Jn)&&!ua(wt,Jn)?[]:[Bn.fromTag("br")]})}).getOr([])},Pe=function(){var wt=Oe(_,function(Ht){var un=pe(Ht);return H(un)?[]:un.concat(Se(Ht))});return wt.length===0?[Bn.fromTag("br")]:wt},Xe=Pe();Hl(_[0]),ul(_[0],Xe)},N6=function(_){return Rb(_,!0)},W5=function(_){var O=_1(_);O.length===0&&Ru(_)},X2=function(_,O){return{grid:_,cursor:O}},Z2=function(_){return Ye(_,function(O){return Ye(O.cells,function(H){var oe=H.element;return Ui(N6(oe),oe)})})},Q2=function(_,O,H){var oe,ve,Se=Ks(_).rows;return K.from((ve=(oe=Se[O])===null||oe===void 0?void 0:oe.cells[H])===null||ve===void 0?void 0:ve.element).filter(N6).orThunk(function(){return Z2(Se)})},Wc=function(_,O,H){var oe=Q2(_,O,H);return X2(_,oe)},J2=function(_){var O=function(H,oe){var ve=M(H,function(Se){return Se.row===oe.row});return ve?H:H.concat([oe])};return re(_,O,[]).sort(function(H,oe){return H.row-oe.row})},ey=function(_,O,H,oe){var ve=O[0].row,Se=J2(O),Pe=he(Se,function(Xe,wt){var Ht=P5(Xe.grid,ve,wt.row+Xe.delta,H,oe.getOrInit);return{grid:Ht,delta:Xe.delta+1}},{grid:_,delta:0}).grid;return Wc(Pe,ve,O[0].column)},D6=function(_,O,H,oe){var ve=J2(O),Se=ve[ve.length-1],Pe=Se.row+Se.rowspan,Xe=he(ve,function(wt,Ht){return P5(wt,Pe,Ht.row,H,oe.getOrInit)},_);return Wc(Xe,Pe,O[0].column)},pk=function(_,O,H,oe){var ve=O.details,Se=K2(ve),Pe=Se[0].column,Xe=he(Se,function(wt,Ht){var un=F5(wt.grid,Pe,Ht.column+wt.delta,H,oe.getOrInit);return{grid:un,delta:wt.delta+1}},{grid:_,delta:0}).grid;return Wc(Xe,ve[0].row,Pe)},G5=function(_,O,H,oe){var ve=O.details,Se=ve[ve.length-1],Pe=Se.column+Se.colspan,Xe=K2(ve),wt=he(Xe,function(Ht,un){return F5(Ht,Pe,un.column,H,oe.getOrInit)},_);return Wc(wt,ve[0].row,Pe)},I6=function(_,O,H,oe){var ve=K2(O),Se=U(ve,function(Xe){return Xe.column}),Pe=Sx(_,Se,!0,H,oe.replaceOrInit);return Wc(Pe,O[0].row,O[0].column)},Ec=function(_,O,H,oe){var ve=V5(_,O,H,oe.replaceOrInit);return Wc(ve,O[0].row,O[0].column)},mk=function(_,O,H,oe){var ve=K2(O),Se=U(ve,function(Xe){return Xe.column}),Pe=Sx(_,Se,!1,H,oe.replaceOrInit);return Wc(Pe,O[0].row,O[0].column)},jh=function(_,O,H,oe){var ve=V5(_,O,H,oe.replaceOrInit);return Wc(ve,O[0].row,O[0].column)},R6=function(_,O){return function(H,oe,ve,Se,Pe){var Xe=J2(oe),wt=U(Xe,function(un){return un.row}),Ht=dk(H,wt,_,O,ve,Se.replaceOrInit,Pe);return Wc(Ht,oe[0].row,oe[0].column)}},K5=R6("thead",!0),ty=R6("tbody",!1),Y5=R6("tfoot",!1),Zb=function(_,O,H,oe){var ve=K2(O.details),Se=wx(_,U(ve,function(Xe){return Xe.column})),Pe=Se.length>0?Se[0].cells.length-1:0;return Wc(Se,ve[0].row,Math.min(ve[0].column,Pe))},gk=function(_,O,H,oe){var ve=J2(O),Se=Cx(_,ve[0].row,ve[ve.length-1].row),Pe=Se.length>0?Se.length-1:0;return Wc(Se,Math.min(O[0].row,Pe),O[0].column)},Ax=function(_,O,H,oe){var ve=O.cells;M6(ve);var Se=px(_,O.bounds,H,oe.merge(ve));return X2(Se,K.from(ve[0]))},kx=function(_,O,H,oe){var ve=function(Pe,Xe){return V2(Pe,Xe,H,oe.unmerge(Xe))},Se=he(O,ve,_);return X2(Se,K.from(O[0]))},yk=function(_,O,H,oe){var ve=function(wt,Ht){var un=pa.fromTable(wt);return Xp(un,Ht,!0)},Se=ve(O.clipboard,O.generators),Pe=ja(O.row,O.column),Xe=ik(Pe,_,Se,O.generators,H);return Xe.fold(function(){return X2(_,K.some(O.element))},function(wt){return Wc(wt,O.row,O.column)})},ny=function(_,O,H){var oe=qd(_,H.section),ve=pa.generate(oe);return Xp(ve,O,!0)},Cl=function(_,O,H,oe){var ve=Ks(_).rows,Se=O.cells[0].column,Pe=ve[O.cells[0].row],Xe=ny(O.clipboard,O.generators,Pe),wt=j2(Se,_,Xe,O.generators,H);return Wc(wt,O.cells[0].row,O.cells[0].column)},L6=function(_,O,H,oe){var ve=Ks(_).rows,Se=O.cells[O.cells.length-1].column+O.cells[O.cells.length-1].colspan,Pe=ve[O.cells[0].row],Xe=ny(O.clipboard,O.generators,Pe),wt=j2(Se,_,Xe,O.generators,H);return Wc(wt,O.cells[0].row,O.cells[0].column)},B6=function(_,O,H,oe){var ve=Ks(_).rows,Se=O.cells[0].row,Pe=ve[Se],Xe=ny(O.clipboard,O.generators,Pe),wt=bx(Se,_,Xe,O.generators,H);return Wc(wt,O.cells[0].row,O.cells[0].column)},q5=function(_,O,H,oe){var ve=Ks(_).rows,Se=O.cells[O.cells.length-1].row+O.cells[O.cells.length-1].rowspan,Pe=ve[O.cells[0].row],Xe=ny(O.clipboard,O.generators,Pe),wt=bx(Se,_,Xe,O.generators,H);return Wc(wt,O.cells[0].row,O.cells[0].column)}
217,Ox=function(_,O){var H=pa.fromTable(_),oe=th(H,O);return oe.bind(function(ve){var Se=ve[ve.length-1],Pe=ve[0].column,Xe=Se.column+Se.colspan,wt=Ue(U(H.all,function(Ht){return ie(Ht.cells,function(un){return un.column>=Pe&&un.column<Xe})}));return M5(wt)}).getOr("")},X5=function(_,O){var H=pa.fromTable(_),oe=th(H,O);return oe.bind(M5).getOr("")},cg=function(_,O){var H=pa.fromTable(_),oe=th(H,O);return oe.bind(function(ve){var Se=ve[ve.length-1],Pe=ve[0].row,Xe=Se.row+Se.rowspan,wt=H.all.slice(Pe,Xe);return G7(wt)}).getOr("")},P6=function(_,O,H,oe){return _l(_,O,H,oe.sizing)},fd=function(_,O,H,oe){return Nl(_,O,H,oe.sizing,oe.resize)},oh=function(_,O){return M(O,function(H){return H.column===0&&H.isLocked})},F6=function(_,O){return M(O,function(H){return H.column+H.colspan>=_.grid.columns&&H.isLocked})},Z0=function(_,O){var H=Vl(_),oe=K2(O);return re(oe,function(ve,Se){var Pe=H[Se.column],Xe=Pe.map(Bu).getOr(0);return ve+Xe},0)},gv=function(_){return function(O,H){return th(O,H).filter(function(oe){var ve=_?oh:F6;return!ve(O,oe)}).map(function(oe){return{details:oe,pixelDelta:Z0(O,oe)}})}},ah=function(_,O){return X0(_,O).map(function(H){return{details:H,pixelDelta:-Z0(_,H)}})},af=function(_){return function(O,H){return I5(O,H).filter(function(oe){var ve=_?oh:F6;return!ve(O,oe.cells)})}},I1=cd.transform("th"),ry=cd.transform("td"),Wh=rc(ey,th,S,S,cd.modification),fg=rc(D6,th,S,S,cd.modification),Mx=rc(pk,gv(!0),fd,S,cd.modification),Nx=rc(G5,gv(!1),fd,S,cd.modification),bk=rc(Zb,ah,fd,W5,cd.modification),_k=rc(gk,th,S,W5,cd.modification),Dx=rc(I6,X0,S,S,I1),Ix=rc(mk,X0,S,S,ry),Rx=rc(K5,X0,S,S,I1),wk=rc(ty,X0,S,S,ry),Lx=rc(Y5,X0,S,S,ry),Ck=rc(Ec,X0,S,S,I1),Bx=rc(jh,X0,S,S,ry),Px=rc(Ax,R5,P6,S,cd.merging),Z5=rc(kx,T6,P6,S,cd.merging),Fx=rc(yk,cx,P6,S,cd.modification),xk=rc(Cl,af(!0),S,S,cd.modification),ti=rc(L6,af(!1),S,S,cd.modification),dg=rc(B6,I5,S,S,cd.modification),oy=rc(q5,I5,S,S,cd.modification),Q5=Ox,Ek=X5,dd=cg,Sk=function(_,O,H){var oe=function(Ac){return Ea(k1(Ac))==="table"},ve=function(Ac){return oe(_)===!1||i5(Ac).rows>1},Se=function(Ac){return oe(_)===!1||i5(Ac).columns>1},Pe=m6(_),Xe=w5(_)?S:j7,wt=function(Ac){switch(mv(_)){case"section":return Wb.section();case"sectionCells":return Wb.sectionCells();case"cells":return Wb.cells();default:return Wb.getTableSectionType(Ac,"section")}},Ht=function(Ac,x4){return x4.cursor.fold(function(){var fm=_1(Ac);return Fe(fm).filter(Qo).map(function(sh){O.clear(Ac);var $1=_.dom.createRng();return $1.selectNode(sh.dom),_.selection.setRng($1),zl(sh,"data-mce-selected","1"),$1})},function(fm){var sh=sx(fm),$1=_.dom.createRng();return $1.setStart(sh.element.dom,sh.offset),$1.setEnd(sh.element.dom,sh.offset),_.selection.setRng($1),O.clear(Ac),K.some($1)})},un=function(Ac,x4,fm,sh,$1){return function(wv,E4,kg){kg===void 0&&(kg=!1),ei(wv);var S4=sh(),Og=Bn.fromDom(_.getDoc()),lh=qo(fm,Og,Pe),xy={sizing:S5(_,wv),resize:w5(_)?jp():Mf(),section:wt(wv)};return x4(wv)?Ac(S4,wv,E4,lh,xy).bind(function(x_){j(x_.newRows,function(T4){u6(_,T4.dom)}),j(x_.newCells,function(T4){c6(_,T4.dom)});var JE=Ht(wv,x_);return Qo(wv)&&(ei(wv),kg||Hh(_,wv.dom,$1)),JE.map(function(T4){return{rng:T4,effect:$1}})}):K.none()}},Jn=un(_k,ve,S,H,Zs),pr=un(bk,Se,S,H,Zs),cr=un(Wh,Y,S,H,Zs),Xn=un(fg,Y,S,H,Zs),Dr=un(Mx,Y,Xe,H,Zs),Lr=un(Nx,Y,Xe,H,Zs),Ro=un(Px,Y,S,H,Zs),ri=un(Z5,Y,S,H,Zs),Po=un(xk,Y,S,H,Zs),aa=un(ti,Y,S,H,Zs),Ya=un(dg,Y,S,H,Zs),Ha=un(oy,Y,S,H,Zs),nu=un(Fx,Y,S,H,B7),ac=un(Ck,Y,S,H,Zs),Ff=un(Bx,Y,S,H,Zs),ui=un(Dx,Y,S,H,Zs),fa=un(Ix,Y,S,H,Zs),Ja=un(Rx,Y,S,H,Zs),$i=un(wk,Y,S,H,Zs),dl=un(Lx,Y,S,H,Zs),e0=Ek,Ki=Q5,F1=dd;return{deleteRow:Jn,deleteColumn:pr,insertRowsBefore:cr,insertRowsAfter:Xn,insertColumnsBefore:Dr,insertColumnsAfter:Lr,mergeCells:Ro,unmergeCells:ri,pasteColsBefore:Po,pasteColsAfter:aa,pasteRowsBefore:Ya,pasteRowsAfter:Ha,pasteCells:nu,makeCellsHeader:ac,unmakeCellsHeader:Ff,makeColumnsHeader:ui,unmakeColumnsHeader:fa,makeRowsHeader:Ja,makeRowsBody:$i,makeRowsFooter:dl,getTableRowType:F1,getTableCellType:e0,getTableColType:Ki}},vg={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},em=function(){return Bn.fromTag("th")},$6=function(){return Bn.fromTag("td")},z6=function(){return Bn.fromTag("col")},Tk=function(_,O,H,oe){for(var ve=Bn.fromTag("tr"),Se=0;Se<_;Se++){var Pe=oe<O||Se<H?em():$6();Se<H&&zl(Pe,"scope","row"),oe<O&&zl(Pe,"scope","col"),Ys(Pe,Bn.fromTag("br")),Ys(ve,Pe)}return ve},$x=function(_){var O=Bn.fromTag("colgroup");return P(_,function(){return Ys(O,z6())}),O},H6=function(_,O,H,oe){return P(_,function(ve){return Tk(O,H,oe,ve)})},J5=function(_,O,H,oe,ve,Se){Se===void 0&&(Se=vg);var Pe=Bn.fromTag("table"),Xe=ve!=="cells";Kd(Pe,Se.styles),ll(Pe,Se.attributes),Se.colGroups&&Ys(Pe,$x(O));var wt=Math.min(_,H);if(Xe&&H>0){var Ht=Bn.fromTag("thead");Ys(Pe,Ht);var un=ve==="sectionCells"?wt:0,Jn=H6(H,O,un,oe);ul(Ht,Jn)}var pr=Bn.fromTag("tbody");Ys(Pe,pr);var cr=Xe?_-wt:_,Xn=Xe?0:H,Dr=H6(cr,O,Xn,oe);return ul(pr,Dr),Pe},ay=function(_){return _.dom.innerHTML},V6=function(_){var O=Bn.fromTag("div"),H=Bn.fromDom(_.dom.cloneNode(!0));return Ys(O,H),ay(O)}
217,Ak=function(_,O){_.selection.select(O.dom,!0),_.selection.collapse(!0)},Gh=function(_,O){Tl(O,"td,th").each(A(Ak,_))},ew=function(_,O){j(qc(O,"tr"),function(H){u6(_,H.dom),j(qc(H,"th,td"),function(oe){c6(_,oe.dom)})})},tw=function(_){return i(_)&&_.indexOf("%")!==-1},iy=function(_,O,H,oe,ve){var Se=v6(_),Pe={styles:Se,attributes:Pb(_),colGroups:h6(_)};return _.undoManager.ignore(function(){var Xe=J5(H,O,ve,oe,mv(_),Pe);zl(Xe,"data-mce-id","__mce");var wt=V6(Xe);_.insertContent(wt),_.addVisual()}),Tl(k1(_),'table[data-mce-id="__mce"]').map(function(Xe){return q0(_)?F2(Xe):B2(_)?g6(Xe):(Kn(_)||tw(Se.width))&&P2(Xe),ei(Xe),Pi(Xe,"data-mce-id"),ew(_,Xe),Gh(_,Xe),Xe.dom}).getOr(null)},nw=function(_,O,H,oe,ve){oe===void 0&&(oe={});var Se=function(wt){return C(wt)&&wt>0};if(Se(O)&&Se(H)){var Pe=oe.headerRows||0,Xe=oe.headerColumns||0;return iy(_,H,O,Xe,Pe)}else return console.error(ve),null},Qb=function(_){return function(){return _().fold(function(){return[]},function(O){return U(O,function(H){return H.dom})})}},zx=function(_){return function(O){var H=O.length>0?K.some(ef(O)):K.none();_(H)}},kk=function(_){return function(O,H,oe){oe===void 0&&(oe={});var ve=nw(_,H,O,oe,"Invalid values for insertTable - rows and columns values are required to insert a table.");return _.undoManager.add(),ve}},Kh=function(_,O,H,oe){return{insertTable:kk(_),setClipboardRows:zx(O.setRows),getClipboardRows:Qb(O.getRows),setClipboardCols:zx(O.setColumns),getClipboardCols:Qb(O.getColumns),resizeHandler:H,selectionTargets:oe}},Id=function(_,O,H){var oe=gf(_,O,1);H===1||oe<=1?Pi(_,O):zl(_,O,Math.min(H,oe))},Sc=function(_,O,H){if(pa.hasColumns(_)){var oe=ie(pa.justColumns(_),function(Pe){return Pe.column>=O&&Pe.column<H}),ve=U(oe,function(Pe){var Xe=hi(Pe.element);return Id(Xe,"span",H-O),Xe}),Se=Bn.fromTag("colgroup");return ul(Se,ve),[Se]}else return[]},Ok=function(_,O,H){return U(_.all,function(oe){var ve=ie(oe.cells,function(Xe){return Xe.column>=O&&Xe.column<H}),Se=U(ve,function(Xe){var wt=hi(Xe.element);return Id(wt,"colspan",H-O),wt}),Pe=Bn.fromTag("tr");return ul(Pe,Se),Pe})},rw=function(_,O){var H=pa.fromTable(_),oe=X0(H,O);return oe.map(function(ve){var Se=ve[ve.length-1],Pe=ve[0].column,Xe=Se.column+Se.colspan,wt=Sc(H,Pe,Xe),Ht=Ok(H,Pe,Xe);return mt(mt([],wt,!0),Ht,!0)})},sy=function(_,O,H){var oe=pa.fromTable(_),ve=th(oe,O);return ve.bind(function(Se){var Pe=Xp(oe,H,!1),Xe=Ks(Pe).rows,wt=Xe.slice(Se[0].row,Se[Se.length-1].row+Se[Se.length-1].rowspan),Ht=Oe(wt,function(Jn){var pr=ie(Jn.cells,function(cr){return!cr.isLocked});return pr.length>0?[Ke(Ke({},Jn),{cells:pr})]:[]}),un=x6(Ht);return Ui(un.length>0,un)}).map(function(Se){return D5(Se)})},ow=tinymce.util.Tools.resolve("tinymce.util.Tools"),Jb=function(_,O,H){var oe=_.select("td,th",O),ve,Se=function(Pe,Xe){for(var wt=0;wt<Xe.length;wt++){var Ht=_.getStyle(Xe[wt],H);if(typeof Pe=="undefined"&&(Pe=Ht),Pe!==Ht)return""}return Pe};return Se(ve,oe)},aw=function(_,O,H){H&&_.formatter.apply("align"+H,{},O)},Mk=function(_,O,H){H&&_.formatter.apply("valign"+H,{},O)},zr=function(_,O){ow.each("left center right".split(" "),function(H){_.formatter.remove("align"+H,{},O)})},xu=function(_,O){ow.each("top middle bottom".split(" "),function(H){_.formatter.remove("valign"+H,{},O)})},ly=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],oc=function(_){return{value:_}},R1=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,iw=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,e4=function(_){return R1.test(_)||iw.test(_)},U6=function(_){return An(_,"#").toUpperCase()},j6=function(_){return e4(_)?K.some({value:U6(_)}):K.none()},W6=function(_){var O=_.toString(16);return(O.length===1?"0"+O:O).toUpperCase()},tm=function(_){var O=W6(_.red)+W6(_.green)+W6(_.blue);return oc(O)},t4=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,sw=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,lw=function(_,O,H,oe){return{red:_,green:O,blue:H,alpha:oe}},uw=function(_,O,H,oe){var ve=parseInt(_,10),Se=parseInt(O,10),Pe=parseInt(H,10),Xe=parseFloat(oe);return lw(ve,Se,Pe,Xe)},Nk=function(_){if(_==="transparent")return K.some(lw(0,0,0,0));var O=t4.exec(_);if(O!==null)return K.some(uw(O[1],O[2],O[3],"1"));var H=sw.exec(_);return H!==null?K.some(uw(H[1],H[2],H[3],H[4])):K.none()},Hx=function(_){return j6(_).orThunk(function(){return Nk(_).map(tm)}).getOrThunk(function(){var O=document.createElement("canvas");O.height=1,O.width=1;var H=O.getContext("2d");H.clearRect(0,0,O.width,O.height),H.fillStyle="#FFFFFF",H.fillStyle=_,H.fillRect(0,0,1,1);var oe=H.getImageData(0,0,1,1).data,ve=oe[0],Se=oe[1],Pe=oe[2],Xe=oe[3];return tm(lw(ve,Se,Pe,Xe))})},Q0=function(_){var O=_,H=function(){return O},oe=function(ve){O=ve};return{get:H,set:oe}},Yh=function(_){var O=Q0(K.none()),H=function(){return O.get().each(_)},oe=function(){H(),O.set(K.none())},ve=function(){return O.get().isSome()},Se=function(){return O.get()},Pe=function(Xe){H(),O.set(K.some(Xe))};return{clear:oe,isSet:ve,get:Se,set:Pe}},hg=function(){return Yh(function(_){return _.unbind()})},uy=function(){var _=Yh(S),O=function(H){return _.get().each(H)};return Ke(Ke({},_),{on:O})},cw=function(_,O,H,oe){return function(ve){var Se=hg(),Pe=nn(oe),Xe=function(){var wt=tr(O),Ht=function(un){return _.formatter.match(H,{value:oe},un.dom,Pe)};Pe?(ve.setActive(!M(wt,Ht)),Se.set(_.formatter.formatChanged(H,function(un){return ve.setActive(!un)},!0))):(ve.setActive(De(wt,Ht)),Se.set(_.formatter.formatChanged(H,ve.setActive,!1,{value:oe})))};return _.initialized?Xe():_.on("init",Xe),Se.clear}},G6=function(_){return sn(_,"menu")},qh=function(_){return U(_,function(O){var H=O.text||O.title;return G6(O)?{text:H,items:qh(O.menu)}:{text:H,value:O.value}})},yv=function(_,O,H,oe,ve){return U(H,function(Se){var Pe=Se.text||Se.title;return G6(Se)?{type:"nestedmenuitem",text:Pe,getSubmenuItems:function(){return yv(_,O,Se.menu,oe,ve)}}:{text:Pe,type:"togglemenuitem",onAction:function(){return ve(Se.value)},onSetup:cw(_,O,oe,Se.value)}})},nm=function(_,O){return function(H){var oe;_.execCommand("mceTableApplyCellStyle",!1,(oe={},oe[O]=H,oe))}},rm=function(_){return Oe(_,function(O){return G6(O)?[Ke(Ke({},O),{menu:rm(O.menu)})]:zn(O.value)?[O]:[]})},pg=function(_,O,H,oe,ve){return function(Se){return Se(yv(_,O,H,oe,ve))}},cy=function(_,O,H){var oe=U(O,function(ve){return{text:ve.title,value:"#"+Hx(ve.value).value,type:"choiceitem"}});return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:oe.length>0?oe:void 0,allowCustomColors:!1},onAction:function(ve){var Se,Pe=ve.value==="remove"?"":ve.value;_.execCommand("mceTableApplyCellStyle",!1,(Se={},Se[H]=Pe,Se))}}]},fw=function(_){return function(){var O=_.queryCommandValue("mceTableRowType"),H=O==="header"?"body":"header";_.execCommand("mceTableRowType",!1,{type:H})}},dw=function(_){return function(){var O=_.queryCommandValue("mceTableColType"),H=O==="th"?"td":"th";_.execCommand("mceTableColType",!1,{type:H})}},vw=function(_){var O=qh(Vh(_));return O.length>0?K.some({name:"class",type:"listbox",label:"Class",items:O}):K.none()},K6=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ly}],Tc=function(_){return K6.concat(vw(_).toArray())},l1=function(_,O){var H=[{text:"Select...",value:""}],oe=[{name:"borderstyle",type:"listbox",label:"Border style",items:H.concat(qh(nf(_)))},{name:"bordercolor",type:"colorinput",label:"Border color"}
217,{name:"backgroundcolor",type:"colorinput",label:"Background color"}],ve={name:"borderwidth",type:"input",label:"Border width"},Se=O==="cell"?[ve].concat(oe):oe;return{title:"Advanced",name:"advanced",items:Se}},L1=function(_){return function(O,H){var oe=O.dom,ve=function(Xe,wt){(!_||wt)&&oe.setAttrib(H,Xe,wt)},Se=function(Xe,wt){(!_||wt)&&oe.setStyle(H,Xe,wt)},Pe=function(Xe,wt){(!_||wt)&&(wt===""?O.formatter.remove(Xe,{value:null},H,!0):O.formatter.apply(Xe,{value:wt},H))};return{setAttrib:ve,setStyle:Se,setFormat:Pe}}},Xh={normal:L1(!1),ifTruthy:L1(!0)},fy=function(_){return function(O){return _n(O,"rgb")?_.toHex(O):O}},Y6=function(_,O){var H=Bn.fromDom(O);return{borderwidth:Mu(H,"border-width").getOr(""),borderstyle:Mu(H,"border-style").getOr(""),bordercolor:Mu(H,"border-color").map(fy(_)).getOr(""),backgroundcolor:Mu(H,"background-color").map(fy(_)).getOr("")}},om=function(_){var O=_[0],H=_.slice(1);return j(H,function(oe){j(Pl(O),function(ve){Ka(oe,function(Se,Pe){var Xe=O[ve];Xe!==""&&ve===Pe&&Xe!==Se&&(O[ve]="")})})}),O},mg=function(_,O,H,oe){return Ae(_,function(ve){return!h(H.formatter.matchNode(oe,O+ve))}).getOr("")},gg=A(mg,["left","center","right"],"align"),Dk=A(mg,["top","middle","bottom"],"valign"),hw=function(_,O){var H=v6(_),oe=Pb(_),ve=function(un){return{borderstyle:Sl(H,"border-style").getOr(""),bordercolor:fy(un)(Sl(H,"border-color").getOr("")),backgroundcolor:fy(un)(Sl(H,"background-color").getOr(""))}},Se={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},Pe=function(){var un=H["border-width"];return rf(_)&&un?{border:un}:Sl(oe,"border").fold(function(){return{}},function(Jn){return{border:Jn}})},Xe=O?ve(_.dom):{},wt=function(){var un=Sl(H,"border-spacing").or(Sl(oe,"cellspacing")).fold(function(){return{}},function(pr){return{cellspacing:pr}}),Jn=Sl(H,"border-padding").or(Sl(oe,"cellpadding")).fold(function(){return{}},function(pr){return{cellpadding:pr}});return Ke(Ke({},un),Jn)},Ht=Ke(Ke(Ke(Ke(Ke(Ke({},Se),H),oe),Xe),Pe()),wt());return Ht},Vx=function(_){return xs(Bn.fromDom(_)).map(function(O){var H={selection:ef(_.cells)};return dd(O,H)}).getOr("")},Ux=function(_,O,H){var oe=function(Xe,wt){var Ht=Mu(Bn.fromDom(wt),"border-width");return rf(_)&&Ht.isSome()?Ht.getOr(""):Xe.getAttrib(wt,"border")||Jb(_.dom,wt,"border-width")||Jb(_.dom,wt,"border")},ve=_.dom,Se=rf(_)?ve.getStyle(O,"border-spacing")||ve.getAttrib(O,"cellspacing"):ve.getAttrib(O,"cellspacing")||ve.getStyle(O,"border-spacing"),Pe=rf(_)?Jb(ve,O,"padding")||ve.getAttrib(O,"cellpadding"):ve.getAttrib(O,"cellpadding")||Jb(ve,O,"padding");return Ke({width:ve.getStyle(O,"width")||ve.getAttrib(O,"width"),height:ve.getStyle(O,"height")||ve.getAttrib(O,"height"),cellspacing:Se,cellpadding:Pe,border:oe(ve,O),caption:!!ve.select("caption",O)[0],class:ve.getAttrib(O,"class",""),align:gg(_,O)},H?Y6(ve,O):{})},pw=function(_,O,H){var oe=_.dom;return Ke({height:oe.getStyle(O,"height")||oe.getAttrib(O,"height"),class:oe.getAttrib(O,"class",""),type:Vx(O),align:gg(_,O)},H?Y6(oe,O):{})},mw=function(_,O,H,oe){var ve=_.dom,Se=oe.getOr(O),Pe=function(Xe,wt){return ve.getStyle(Xe,wt)||ve.getAttrib(Xe,wt)};return Ke({width:Pe(Se,"width"),height:Pe(O,"height"),scope:ve.getAttrib(O,"scope"),celltype:k2(O),class:ve.getAttrib(O,"class",""),halign:gg(_,O),valign:Dk(_,O)},H?Y6(ve,O):{})},ns=function(_,O){var H=pa.fromTable(_),oe=pa.justCells(H),ve=ie(oe,function(Se){return M(O,function(Pe){return ua(Se.element,Pe)})});return U(ve,function(Se){return{element:Se.element.dom,column:pa.getColumnAt(H,Se.column).map(function(Pe){return Pe.element.dom})}})},Zh=function(_,O,H){_.setAttrib("scope",H.scope),_.setAttrib("class",H.class),_.setStyle("height",Ul(H.height)),O.setStyle("width",Ul(H.width))},jx=function(_,O){_.setFormat("tablecellbackgroundcolor",O.backgroundcolor),_.setFormat("tablecellbordercolor",O.bordercolor),_.setFormat("tablecellborderstyle",O.borderstyle),_.setFormat("tablecellborderwidth",Ul(O.borderwidth))},Wx=function(_,O,H){var oe=O.length===1;j(O,function(ve){var Se=ve.element,Pe=oe?Xh.normal(_,Se):Xh.ifTruthy(_,Se),Xe=ve.column.map(function(wt){return oe?Xh.normal(_,wt):Xh.ifTruthy(_,wt)}
217).getOr(Pe);Zh(Pe,Xe,H),$b(_)&&jx(Pe,H),oe&&(zr(_,Se),xu(_,Se)),H.halign&&aw(_,Se,H.halign),H.valign&&Mk(_,Se,H.valign)})},Gx=function(_,O){_.execCommand("mceTableCellType",!1,{type:O.celltype,no_events:!0})},q6=function(_,O,H,oe){var ve=ql(oe,function(Se,Pe){return H[Pe]!==Se});fu(ve)>0&&O.length>=1&&xs(O[0]).each(function(Se){var Pe=ns(Se,O),Xe=fu(ql(ve,function(Ht,un){return un!=="scope"&&un!=="celltype"}))>0,wt=pt(ve,"celltype");(Xe||pt(ve,"scope"))&&Wx(_,Pe,oe),wt&&Gx(_,oe),Hh(_,Se.dom,{structure:wt,style:Xe})})},gw=function(_,O,H,oe){var ve=oe.getData();oe.close(),_.undoManager.transact(function(){q6(_,O,H,ve),_.focus()})},n4=function(_,O){var H=xs(O[0]).map(function(oe){return U(ns(oe,O),function(ve){return mw(_,ve.element,$b(_),ve.column)})});return om(H.getOrDie())},Xo=function(_,O){var H=tr(O);if(H.length!==0){var oe=n4(_,H),ve={type:"tabpanel",tabs:[{title:"General",name:"general",items:Tc(_)},l1(_,"cell")]},Se={type:"panel",items:[{type:"grid",columns:2,items:Tc(_)}]};_.windowManager.open({title:"Cell Properties",size:"normal",body:$b(_)?ve:Se,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:oe,onSubmit:A(gw,_,H,oe)})}},Ik=function(_){var O=qh(Yp(_));return O.length>0?K.some({name:"class",type:"listbox",label:"Class",items:O}):K.none()},yw=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Kx=function(_){return yw.concat(Ik(_).toArray())},bw=function(_,O){_.setAttrib("class",O.class),_.setStyle("height",Ul(O.height))},Rk=function(_,O){_.setStyle("background-color",O.backgroundcolor),_.setStyle("border-color",O.bordercolor),_.setStyle("border-style",O.borderstyle)},Yx=function(_,O,H,oe){var ve=O.length===1;j(O,function(Se){var Pe=ve?Xh.normal(_,Se):Xh.ifTruthy(_,Se);bw(Pe,H),zb(_)&&Rk(Pe,H),H.align!==oe.align&&(zr(_,Se),aw(_,Se,H.align))})},_w=function(_,O){_.execCommand("mceTableRowType",!1,{type:O.type,no_events:!0})},ww=function(_,O,H,oe){var ve=ql(oe,function(Xe,wt){return H[wt]!==Xe});if(fu(ve)>0){var Se=pt(ve,"type"),Pe=Se?fu(ve)>1:!0;Pe&&Yx(_,O,oe,H),Se&&_w(_,oe),xs(Bn.fromDom(O[0])).each(function(Xe){return Hh(_,Xe.dom,{structure:Se,style:Pe})})}},Lk=function(_,O,H,oe){var ve=oe.getData();oe.close(),_.undoManager.transact(function(){ww(_,O,H,ve),_.focus()})},u1=function(_){var O=Or(V0(_),Ee.selected);if(O.length!==0){var H=U(O,function(Pe){return pw(_,Pe.dom,zb(_))}),oe=om(H),ve={type:"tabpanel",tabs:[{title:"General",name:"general",items:Kx(_)},l1(_,"row")]},Se={type:"panel",items:[{type:"grid",columns:2,items:Kx(_)}]};_.windowManager.open({title:"Row Properties",size:"normal",body:zb(_)?ve:Se,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:oe,onSubmit:A(Lk,_,U(O,function(Pe){return Pe.dom}),oe)})}},Pf=function(_,O,H){var oe=H?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],ve=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],Se=eh(_)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],Pe=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],Xe=O.length>0?[{type:"listbox",name:"class",label:"Class",items:O}]:[];return oe.concat(ve).concat(Se).concat(Pe).concat(Xe)},Qh=function(_,O,H,oe){if(O.tagName==="TD"||O.tagName==="TH")i(H)?_.setStyle(O,H,oe):_.setStyle(O,H);else if(O.children)for(var ve=0;ve<O.children.length;ve++)Qh(_,O.children[ve],H,oe)},Bk=function(_,O,H){var oe=_.dom,ve={},Se={};if(ve.class=H.class,Se.height=Ul(H.height),oe.getAttrib(O,"width")&&!rf(_)?ve.width=dv(H.width):Se.width=Ul(H.width),rf(_)?(Se["border-width"]=Ul(H.border),Se["border-spacing"]=Ul(H.cellspacing)):(ve.border=H.border,ve.cellpadding=H.cellpadding,ve.cellspacing=H.cellspacing),rf(_)&&O.children)for(var Pe=0;Pe<O.children.length;Pe++)Qh(oe,O.children[Pe],{"border-width":Ul(H.border),padding:Ul(H.cellpadding)}),Bf(_)&&Qh(oe,O.children[Pe],{"border-color":H.bordercolor});Bf(_)&&(Se["background-color"]=H.backgroundcolor,Se["border-color"]=H.bordercolor,Se["border-style"]=H.borderstyle),ve.style=oe.serializeStyle(Ke(Ke({},v6(_)),Se)),oe.setAttribs(O,Ke(Ke({},Pb(_)),ve))},Pk=function(_,O,H,oe){var ve=_.dom,Se=oe.getData(),Pe=ql(Se,function(Xe,wt){return H[wt]!==Xe});oe.close(),Se.class===""&&delete Se.class,_.undoManager.transact(function(){if(!O){var Xe=parseInt(Se.cols,10)||1,wt=parseInt(Se.rows,10)||1;O=iy(_,Xe,wt,0,0)}if(fu(Pe)>0){Bk(_,O,Se);var Ht=ve.select("caption",O)[0];(Ht&&!Se.caption||!Ht&&Se.caption)&&_.execCommand("mceTableToggleCaption"),Se.align===""?zr(_,O):aw(_,O,Se.align)}if(_.focus(),_.addVisual(),fu(Pe)>0){var un=pt(Pe,"caption"),Jn=un?fu(Pe)>1:!0;Hh(_,O,{structure:un,style:Jn})}})},Cw=function(_,O){var H=_.dom,oe,ve=hw(_,Bf(_));O===!1?(oe=H.getParent(_.selection.getStart(),"table",_.getBody()),oe?ve=Ux(_,oe,Bf(_)):Bf(_)&&(ve.borderstyle="",ve.bordercolor="",ve.backgroundcolor="")):(ve.cols="1",ve.rows="1",Bf(_)&&(ve.borderstyle="",ve.bordercolor="",ve.backgroundcolor=""));var Se=qh(Hb(_));Se.length>0&&ve.class&&(ve.class=ve.class.replace(/\s*mce\-item\-table\s*/g,""));var Pe={type:"grid",columns:2,items:Pf(_,Se,O)},Xe=function(){return{type:"panel",items:[Pe]}},wt=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[Pe]},l1(_,"table")]}},Ht=Bf(_)?wt():Xe();_.windowManager.open({title:"Table Properties",size:"normal",body:Ht,onSubmit:A(Pk,_,oe,ve),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:ve})},Wa=function(_){return Sn(V0(_),id(_))},Fk=function(_){return Cn(V0(_),id(_))},X6=function(_,O,H,oe,ve){var Se=id(_),Pe=function(){return Wa(_).each(function(Po){xs(Po,Se).filter(X(Se)).each(function(aa){var Ya=Bn.fromText("");
217if(ts(aa,Ya),Ru(aa),_.dom.isEmpty(_.getBody()))_.setContent(""),_.selection.setCursorLocation();else{var Ha=_.dom.createRng();Ha.setStart(Ya.dom,0),Ha.setEnd(Ya.dom,0),_.selection.setRng(Ha),_.nodeChanged()}})})},Xe=function(Po){return Wa(_).each(function(aa){var Ya=B2(_)||q0(_)||Kn(_);Ya||xs(aa,Se).each(function(Ha){Po==="relative"&&!q3(Ha)?P2(Ha):Po==="fixed"&&!wc(Ha)?F2(Ha):Po==="responsive"&&!X3(Ha)&&g6(Ha),ei(Ha),Hh(_,Ha.dom,Zs)})})},wt=function(Po){return xs(Po,Se)},Ht=function(Po){return Fk(_).bind(function(aa){return wt(aa).map(function(Ya){return Po(Ya,aa)})})},un=function(Po,aa){Ht(function(Ya){_.formatter.toggle("tableclass",{value:aa},Ya.dom),Hh(_,Ya.dom,ng)})},Jn=function(Po,aa){Ht(function(Ya){var Ha=tr(oe),nu=De(Ha,function(Ff){return _.formatter.match("tablecellclass",{value:aa},Ff.dom)}),ac=nu?_.formatter.remove:_.formatter.apply;j(Ha,function(Ff){return ac("tablecellclass",{value:aa},Ff.dom)}),Hh(_,Ya.dom,ng)})},pr=function(){Wa(_).each(function(Po){xs(Po,Se).each(function(aa){Jo(aa,"caption").fold(function(){var Ya=Bn.fromTag("caption");Ys(Ya,Bn.fromText("Caption")),e5(aa,Ya,0),_.selection.setCursorLocation(Ya.dom,0)},function(Ya){ws("caption")(Po)&&os("td",aa).each(function(Ha){return _.selection.setCursorLocation(Ha.dom,0)}),Ru(Ya)}),Hh(_,aa.dom,Zs)})})},cr=function(Po){_.focus()},Xn=function(Po,aa){return aa===void 0&&(aa=!1),Ht(function(Ya,Ha){var nu=Ve(oe,Ya,Ha);Po(Ya,nu,aa).each(cr)})},Dr=function(){return Ht(function(Po,aa){var Ya=Ve(oe,Po,aa),Ha=qo(S,Bn.fromDom(_.getDoc()),K.none());return sy(Po,Ya,Ha)})},Lr=function(){return Ht(function(Po,aa){var Ya=Ve(oe,Po,aa);return rw(Po,Ya)})},Ro=function(Po,aa){return aa().each(function(Ya){var Ha=U(Ya,function(nu){return hi(nu)});Ht(function(nu,ac){var Ff=Uc(Bn.fromDom(_.getDoc())),ui=dt(oe,ac,Ha,Ff);Po(nu,ui).each(cr)})})},ri=function(Po){return function(aa,Ya){return Sl(Ya,"type").each(function(Ha){Xn(Po(Ha),Ya.no_events)})}};Ka({mceTableSplitCells:function(){return Xn(O.unmergeCells)},mceTableMergeCells:function(){return Xn(O.mergeCells)},mceTableInsertRowBefore:function(){return Xn(O.insertRowsBefore)},mceTableInsertRowAfter:function(){return Xn(O.insertRowsAfter)},mceTableInsertColBefore:function(){return Xn(O.insertColumnsBefore)},mceTableInsertColAfter:function(){return Xn(O.insertColumnsAfter)},mceTableDeleteCol:function(){return Xn(O.deleteColumn)},mceTableDeleteRow:function(){return Xn(O.deleteRow)},mceTableCutCol:function(){return Lr().each(function(Po){ve.setColumns(Po),Xn(O.deleteColumn)})},mceTableCutRow:function(){return Dr().each(function(Po){ve.setRows(Po),Xn(O.deleteRow)})},mceTableCopyCol:function(){return Lr().each(function(Po){return ve.setColumns(Po)})},mceTableCopyRow:function(){return Dr().each(function(Po){return ve.setRows(Po)})},mceTablePasteColBefore:function(){return Ro(O.pasteColsBefore,ve.getColumns)},mceTablePasteColAfter:function(){return Ro(O.pasteColsAfter,ve.getColumns)},mceTablePasteRowBefore:function(){return Ro(O.pasteRowsBefore,ve.getRows)},mceTablePasteRowAfter:function(){return Ro(O.pasteRowsAfter,ve.getRows)},mceTableDelete:Pe,mceTableCellToggleClass:Jn,mceTableToggleClass:un,mceTableToggleCaption:pr,mceTableSizingMode:function(Po,aa){return Xe(aa)},mceTableCellType:ri(function(Po){return Po==="th"?O.makeCellsHeader:O.unmakeCellsHeader}),mceTableColType:ri(function(Po){return Po==="th"?O.makeColumnsHeader:O.unmakeColumnsHeader}),mceTableRowType:ri(function(Po){switch(Po){case"header":return O.makeRowsHeader;case"footer":return O.makeRowsFooter;default:return O.makeRowsBody}})},function(Po,aa){return _.addCommand(aa,Po)}),Ka({mceTableProps:A(Cw,_,!1),mceTableRowProps:A(u1,_),mceTableCellProps:A(Xo,_,oe)},function(Po,aa){return _.addCommand(aa,function(){return Po()})}),_.addCommand("mceInsertTable",function(Po,aa){l(aa)&&Pl(aa).length>0?nw(_,aa.rows,aa.columns,aa.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):Cw(_,!0)}),_.addCommand("mceTableApplyCellStyle",function(Po,aa){var Ya=function(ac){return"tablecell"+ac.toLowerCase().replace("-","")};if(!!l(aa)){var Ha=tr(oe);if(Ha.length!==0){var nu=ql(aa,function(ac,Ff){return _.formatter.has(Ya(Ff))&&i(ac)});kn(nu)||(Ka(nu,function(ac,Ff){j(Ha,function(ui){Xh.normal(_,ui.dom).setFormat(Ya(Ff),ac)})}),wt(Ha[0]).each(function(ac){return Hh(_,ac.dom,ng)}))}}})},Z6=function(_,O,H){var oe=id(_),ve=function(Se){return Cn(V0(_)).bind(function(Pe){return xs(Pe,oe).map(function(Xe){var wt=Ve(H,Xe,Pe);return Se(Xe,wt)})}).getOr("")};Ka({mceTableRowType:function(){return ve(O.getTableRowType)},mceTableCellType:function(){return ve(O.getTableCellType)},mceTableColType:function(){return ve(O.getTableColType)}},function(Se,Pe){return _.addQueryValueHandler(Pe,Se)})},Q6=function(){var _=uy(),O=uy();return{getRows:_.get,setRows:function(H){H.fold(_.clear,_.set),O.clear()},clearRows:_.clear,getColumns:O.get,setColumns:function(H){H.fold(O.clear,O.set),_.clear()},clearColumns:O.clear}},r4={remove_similar:!0,inherit:!1},J0=Ke({selector:"td,th"},r4),o4={tablecellbackgroundcolor:Ke({styles:{backgroundColor:"%value"}},J0),tablecellverticalalign:Ke({styles:{"vertical-align":"%value"}},J0),tablecellbordercolor:Ke({styles:{borderColor:"%value"}},J0),tablecellclass:Ke({classes:["%value"]},J0),tableclass:Ke({selector:"table",classes:["%value"]},r4),tablecellborderstyle:Ke({styles:{borderStyle:"%value"}},J0),tablecellborderwidth:Ke({styles:{borderWidth:"%value"}},J0)},$k=function(_){_.formatter.register(o4)},qx=E1.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),xw=function(_){return _===void 0&&(_=void 0),qx.none(_)},am=Ke(Ke({},qx),{none:xw}),J6=function(_,O,H,oe,ve){ve===void 0&&(ve=Y);var Se=oe===1;if(!Se&&H<=0)return am.first(_[0]);if(Se&&H>=_.length-1)return am.last(_[_.length-1]);var Pe=H+oe,Xe=_[Pe];return ve(Xe)?am.middle(O,Xe):J6(_,O,Pe,oe,ve)},Xx=function(_,O){return xs(_,O).bind(function(H){var oe=_1(H),ve=Te(oe,function(Se){return ua(_,Se)});return ve.map(function(Se){return{index:Se,all:oe}})})},zk=function(_,O,H){var oe=Xx(_,H);return oe.fold(function(){return am.none(_)},function(ve){return J6(ve.all,_,ve.index,1,O)})},Hk=function(_,O,H){var oe=Xx(_,H);return oe.fold(function(){return am.none()},function(ve){return J6(ve.all,_,ve.index,-1,O)})},Vk=function(_,O,H,oe){return{start:_,soffset:O,finish:H,foffset:oe}},yg={create:Vk},Ew=E1.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Ho=function(_,O,H,oe){return _.fold(O,H,oe)},Zx=function(_){return _.fold(R,R,R)},Qx=Ew.before,Uk=Ew.on,a4=Ew.after,sf={before:Qx,on:Uk,after:a4,cata:Ho,getStart:Zx},i4=E1.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),jk=function(_){return i4.exact(_.start,_.soffset,_.finish,_.foffset)},Jx=function(_){return _.match({domRange:function(O){return Bn.fromDom(O.startContainer)},relative:function(O,H){return sf.getStart(O)},exact:function(O,H,oe,ve){return O}})},Sw=i4.domRange,Tw=i4.relative,eE=i4.exact,Aw=function(_){var O=Jx(_);return hf(O)},kw=yg.create,ep={domRange:Sw,relative:Tw,exact:eE,exactFromRange:jk,getWin:Aw,range:kw},Wk=function(_,O){var H=_.document.createRange();return H.selectNode(O.dom),H},Gk=function(_,O){var H=_.document.createRange();return tE(H,O),H},tE=function(_,O){return _.selectNodeContents(O.dom)},Kk=function(_,O){O.fold(function(H){_.setStartBefore(H.dom)},function(H,oe){_.setStart(H.dom,oe)},function(H){_.setStartAfter(H.dom)})},s4=function(_,O){O.fold(function(H){_.setEndBefore(H.dom)},function(H,oe){_.setEnd(H.dom,oe)},function(H){_.setEndAfter(H.dom)})},ki=function(_,O,H){var oe=_.document.createRange();return Kk(oe,O),s4(oe,H),oe},e_=function(_,O,H,oe,ve){var Se=_.document.createRange();return Se.setStart(O.dom,H),Se.setEnd(oe.dom,ve),Se},tp=function(_){return{left:_.left,top:_.top,right:_.right,bottom:_.bottom,width:_.width,height:_.height}},bv=function(_){var O=_.getClientRects(),H=O.length>0?O[0]:_.getBoundingClientRect();return H.width>0||H.height>0?K.some(H).map(tp):K.none()},im=E1.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),vd=function(_,O,H){return O(Bn.fromDom(H.startContainer),H.startOffset,Bn.fromDom(H.endContainer),H.endOffset)},t_=function(_,O){return O.match({domRange:function(H){return{ltr:F(H),rtl:K.none}},relative:function(H,oe){return{ltr:Ct(function(){return ki(_,H,oe)}),rtl:Ct(function(){return K.some(ki(_,oe,H))})}},exact:function(H,oe,ve,Se){return{ltr:Ct(function(){return e_(_,H,oe,ve,Se)}),rtl:Ct(function(){return K.some(e_(_,ve,Se,H,oe))})}}})},bg=function(_,O){var H=O.ltr();if(H.collapsed){var oe=O.rtl().filter(function(ve){return ve.collapsed===!1});return oe.map(function(ve){return im.rtl(Bn.fromDom(ve.endContainer),ve.endOffset,Bn.fromDom(ve.startContainer),ve.startOffset)}).getOrThunk(function(){return vd(_,im.ltr,H)})}else return vd(_,im.ltr,H)},dy=function(_,O){var H=t_(_,O);return bg(_,H)},sm=function(_,O){var H=dy(_,O);return H.match({ltr:function(oe,ve,Se,Pe){var Xe=_.document.createRange();return Xe.setStart(oe.dom,ve),Xe.setEnd(Se.dom,Pe),Xe},rtl:function(oe,ve,Se,Pe){var Xe=_.document.createRange();return Xe.setStart(Se.dom,Pe),Xe.setEnd(oe.dom,ve),Xe}})};im.ltr,im.rtl;var Yk=function(_,O,H,oe,ve){if(ve===0)return 0;if(O===oe)return ve-1;for(var Se=oe,Pe=1;Pe<ve;Pe++){var Xe=_(Pe),wt=Math.abs(O-Xe.left);if(H<=Xe.bottom){if(H<Xe.top||wt>Se)return Pe-1;Se=wt}}return 0},nE=function(_,O,H){return O>=_.left&&O<=_.right&&H>=_.top&&H<=_.bottom},qk=function(_,O,H,oe,ve){var Se=function(Ht){var un=_.dom.createRange();return un.setStart(O.dom,Ht),un.collapse(!0),un},Pe=function(Ht){var un=Se(Ht);return un.getBoundingClientRect()},Xe=p2(O).length,wt=Yk(Pe,H,oe,ve.right,Xe);return Se(wt)},Xk=function(_,O,H,oe){var ve=_.dom.createRange();ve.selectNode(O.dom);var Se=ve.getClientRects(),Pe=Ye(Se,function(Xe){return nE(Xe,H,oe)?K.some(Xe):K.none()});return Pe.map(function(Xe){return qk(_,O,H,oe,Xe)})},za=function(_,O,H,oe){var ve=_.dom.createRange(),Se=pe(O);return Ye(Se,function(Pe){return ve.selectNode(Pe.dom),nE(ve.getBoundingClientRect(),H,oe)?_v(_,Pe,H,oe):K.none()})},_v=function(_,O,H,oe){return ml(O)?Xk(_,O,H,oe):za(_,O,H,oe)},vy=function(_,O,H,oe){var ve=_.dom.createRange();ve.selectNode(O.dom);var Se=ve.getBoundingClientRect(),Pe=Math.max(Se.left,Math.min(Se.right,H)),Xe=Math.max(Se.top,Math.min(Se.bottom,oe));return _v(_,O,Pe,Xe)},rE=!0,l4=!1,ni=function(_,O){return O-_.left<_.right-O?rE:l4},oE=function(_,O,H){var oe=_.dom.createRange();return oe.selectNode(O.dom),oe.collapse(H),oe},aE=function(_,O,H){var oe=_.dom.createRange();oe.selectNode(O.dom);var ve=oe.getBoundingClientRect(),Se=ni(ve,H),Pe=Se===rE?S2:Wm;return Pe(O).map(function(Xe){return oE(_,Xe,Se)})},u4=function(_,O,H){var oe=O.dom.getBoundingClientRect(),ve=ni(oe,H);return K.some(oE(_,O,ve))},iE=function(_,O,H){var oe=pe(O).length===0?u4:aE;return oe(_,O,H)},c4=function(_,O,H){var oe,ve;return K.from((ve=(oe=_.dom).caretPositionFromPoint)===null||ve===void 0?void 0:ve.call(oe,O,H)).bind(function(Se){if(Se.offsetNode===null)return K.none();var Pe=_.dom.createRange();return Pe.setStart(Se.offsetNode,Se.offset),Pe.collapse(),K.some(Pe)})},_g=function(_,O,H){var oe,ve;return K.from((ve=(oe=_.dom).caretRangeFromPoint)===null||ve===void 0?void 0:ve.call(oe,O,H))},Ow=function(_,O,H,oe){var ve=_.dom.createRange();ve.selectNode(O.dom);var Se=ve.getBoundingClientRect(),Pe=Math.max(Se.left,Math.min(Se.right,H)),Xe=Math.max(Se.top,Math.min(Se.bottom,oe));return vy(_,O,Pe,Xe)},Mw=function(_,O,H){return Bn.fromPoint(_,O,H).bind(function(oe){var ve=function(){return iE(_,oe,O)};return pe(oe).length===0?ve():Ow(_,oe,O,H).orThunk(ve)})},sE=function(){return document.caretPositionFromPoint?c4:document.caretRangeFromPoint?_g:Mw}(),lE=function(_,O,H){var oe=Bn.fromDom(_.document);return sE(oe,O,H).map(function(ve){return yg.create(Bn.fromDom(ve.startContainer),ve.startOffset,Bn.fromDom(ve.endContainer),ve.endOffset)})},lm=function(_,O){var H=Ea(_);return H==="input"?sf.after(_):_e(["br","img"],H)?O===0?sf.before(_):sf.after(_):sf.on(_,O)},wg=function(_,O){var H=_.fold(sf.before,lm,sf.after),oe=O.fold(sf.before,lm,sf.after);return ep.relative(H,oe)},Nw=function(_,O,H,oe){var ve=lm(_,O),Se=lm(H,oe);return ep.relative(ve,Se)},uE=function(_){return _.match({domRange:function(O){var H=Bn.fromDom(O.startContainer),oe=Bn.fromDom(O.endContainer);return Nw(H,O.startOffset,oe,O.endOffset)},relative:wg,exact:Nw})},n_=function(_,O,H,oe){var ve=vf(_),Se=ve.dom.createRange();return Se.setStart(_.dom,O),Se.setEnd(H.dom,oe),Se},Zk=function(_,O,H,oe){var ve=n_(_,O,H,oe),Se=ua(_,H)&&O===oe;return ve.collapsed&&!Se},hy=function(_){return K.from(_.getSelection())},Dw=function(_,O){hy(_).each(function(H){H.removeAllRanges(),H.addRange(O)})},Iw=function(_,O,H,oe,ve){var Se=e_(_,O,H,oe,ve);Dw(_,Se)},cE=function(_,O,H,oe,ve,Se){O.collapse(H.dom,oe),O.extend(ve.dom,Se)},Rw=function(_,O){return dy(_,O).match({ltr:function(H,oe,ve,Se){Iw(_,H,oe,ve,Se)},rtl:function(H,oe,ve,Se){hy(_).each(function(Pe){if(Pe.setBaseAndExtent)Pe.setBaseAndExtent(H.dom,oe,ve.dom,Se);else if(Pe.extend)try{cE(_,Pe,H,oe,ve,Se)}catch{Iw(_,ve,Se,H,oe)}else Iw(_,ve,Se,H,oe)})}})},r_=function(_,O,H,oe,ve){var Se=Nw(O,H,oe,ve);Rw(_,Se)},o_=function(_,O,H){var oe=wg(O,H);Rw(_,oe)},Lw=function(_){var O=ep.getWin(_).dom,H=function(ve,Se,Pe,Xe){return e_(O,ve,Se,Pe,Xe)},oe=uE(_);return dy(O,oe).match({ltr:H,rtl:H})},Bw=function(_){if(_.rangeCount>0){var O=_.getRangeAt(0),H=_.getRangeAt(_.rangeCount-1);return K.some(yg.create(Bn.fromDom(O.startContainer),O.startOffset,Bn.fromDom(H.endContainer),H.endOffset))}else return K.none()},fE=function(_){if(_.anchorNode===null||_.focusNode===null)return Bw(_);
217var O=Bn.fromDom(_.anchorNode),H=Bn.fromDom(_.focusNode);return Zk(O,_.anchorOffset,H,_.focusOffset)?K.some(yg.create(O,_.anchorOffset,H,_.focusOffset)):Bw(_)},Cg=function(_,O,H){H===void 0&&(H=!0);var oe=H?Gk:Wk,ve=oe(_,O);Dw(_,ve)},py=function(_){return hy(_).filter(function(O){return O.rangeCount>0}).bind(fE)},dE=function(_){return py(_).map(function(O){return ep.exact(O.start,O.soffset,O.finish,O.foffset)})},vE=function(_,O){var H=sm(_,O);return bv(H)},a_=function(_,O,H){return lE(_,O,H)},hE=function(_){hy(_).each(function(O){return O.removeAllRanges()})},pE=tinymce.util.Tools.resolve("tinymce.util.VK"),Pw=function(_,O,H){return yE(_,O,zk(H,Rb))},mE=function(_,O,H){return yE(_,O,Hk(H,Rb))},gE=function(_,O){var H=ep.exact(O,0,O,0);return Lw(H)},yE=function(_,O,H){return H.fold(K.none,K.none,function(oe,ve){return S2(ve).map(function(Se){return gE(_,Se)})},function(oe){return _.execCommand("mceTableInsertRowAfter"),Pw(_,O,oe)})},Qk=["table","li","dl"],bE=function(_,O,H){if(_.keyCode===pE.TAB){var oe=k1(O),ve=function(Xe){var wt=Ea(Xe);return ua(Xe,oe)||_e(Qk,wt)},Se=O.selection.getRng(),Pe=Bn.fromDom(_.shiftKey?Se.startContainer:Se.endContainer);Xc(Pe,ve).each(function(Xe){_.preventDefault(),xs(Xe,ve).each(H.clear),O.selection.collapse(_.shiftKey);var wt=_.shiftKey?mE:Pw,Ht=wt(O,ve,Xe);Ht.each(function(un){O.selection.setRng(un)})})}},Fw=function(_,O){return{selection:_,kill:O}},my={create:Fw},Jk=function(_,O,H,oe){return{start:sf.on(_,O),finish:sf.on(H,oe)}},_E={create:Jk},wE=function(_,O){var H=sm(_,O);return yg.create(Bn.fromDom(H.startContainer),H.startOffset,Bn.fromDom(H.endContainer),H.endOffset)},B1=_E.create,CE=function(_,O,H,oe,ve,Se,Pe){return ua(H,ve)&&oe===Se?K.none():is(H,"td,th",O).bind(function(Xe){return is(ve,"td,th",O).bind(function(wt){return xE(_,O,Xe,wt,Pe)})})},xE=function(_,O,H,oe,ve){return ua(H,oe)?K.none():kh(H,oe,O).bind(function(Se){var Pe=Se.boxes.getOr([]);return Pe.length>1?(ve(_,Pe,Se.start,Se.finish),K.some(my.create(K.some(B1(H,0,H,a1(H))),!0))):K.none()})},i_=function(_,O,H,oe,ve){var Se=function(Pe){return ve.clearBeforeUpdate(H),ve.selectRange(H,Pe.boxes,Pe.start,Pe.finish),Pe.boxes};return Ad(oe,_,O,ve.firstSelectedSelector,ve.lastSelectedSelector).map(Se)},s_=function(_,O){return{item:_,mode:O}},$w=function(_,O,H,oe){return oe===void 0&&(oe=xg),_.property().parent(O).map(function(ve){return s_(ve,oe)})},xg=function(_,O,H,oe){return oe===void 0&&(oe=gy),H.sibling(_,O).map(function(ve){return s_(ve,oe)})},gy=function(_,O,H,oe){oe===void 0&&(oe=gy);var ve=_.property().children(O),Se=H.first(ve);return Se.map(function(Pe){return s_(Pe,oe)})},EE=[{current:$w,next:xg,fallback:K.none()},{current:xg,next:gy,fallback:K.some($w)},{current:gy,next:gy,fallback:K.some(xg)}],SE=function(_,O,H,oe,ve){ve===void 0&&(ve=EE);var Se=Ae(ve,function(Pe){return Pe.current===H});return Se.bind(function(Pe){return Pe.current(_,O,oe,Pe.next).orThunk(function(){return Pe.fallback.bind(function(Xe){return SE(_,O,Xe,oe)})})})},l_=function(){var _=function(H,oe){return H.query().prevSibling(oe)},O=function(H){return H.length>0?K.some(H[H.length-1]):K.none()};return{sibling:_,first:O}},eO=function(){var _=function(H,oe){return H.query().nextSibling(oe)},O=function(H){return H.length>0?K.some(H[0]):K.none()};return{sibling:_,first:O}},u_={left:l_,right:eO},f4=function(_,O,H,oe,ve,Se){var Pe=SE(_,O,oe,ve);return Pe.bind(function(Xe){return Se(Xe.item)?K.none():H(Xe.item)?K.some(Xe.item):f4(_,Xe.item,H,Xe.mode,ve,Se)})},c_=function(_,O,H,oe){return f4(_,O,H,xg,u_.left(),oe)},TE=function(_,O,H,oe){return f4(_,O,H,xg,u_.right(),oe)},f_=function(_){return function(O){return _.property().children(O).length===0}},P1=function(_,O,H){return zw(_,O,f_(_),H)},tO=function(_,O,H){return Hw(_,O,f_(_),H)},zw=c_,Hw=TE,d_=S0(),yy=function(_,O){return P1(d_,_,O)},v_=function(_,O){return tO(d_,_,O)},Vw=function(_,O,H){return zw(d_,_,O,H)},AE=function(_,O,H){return Hw(d_,_,O,H)},kE=function(_,O,H){return $s(_,O,H).isSome()},h_=E1.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),nO=function(_,O,H){var oe=_.getRect(O),ve=_.getRect(H);return ve.right>oe.left&&ve.left<oe.right},OE=function(_){return is(_,"tr")},rO=function(_,O,H,oe,ve,Se,Pe){return is(oe,"td,th",Pe).bind(function(Xe){return is(O,"td,th",Pe).map(function(wt){return ua(Xe,wt)?ua(oe,Xe)&&a1(Xe)===ve?Se(wt):h_.none("in same cell"):Eo(OE,[Xe,wt]).fold(function(){return nO(_,wt,Xe)?h_.success():Se(wt)},function(Ht){return Se(wt)})})}).getOr(h_.none("default"))},oO=function(_,O,H,oe,ve){return _.fold(O,H,oe,ve)},Eg=Ke(Ke({},h_),{verify:rO,cata:oO}),aO=function(_,O,H,oe){return{parent:_,children:O,element:H,index:oe}}
217,iO=function(_){return Cs(_).bind(function(O){var H=pe(O);return sO(H,_).map(function(oe){return aO(O,H,_,oe)})})},sO=function(_,O){return Te(_,A(ua,O))},Uw=function(_){return Ea(_)==="br"},jw=function(_,O,H){return O(_,H).bind(function(oe){return ml(oe)&&p2(oe).trim().length===0?jw(oe,O,H):K.some(oe)})},ME=function(_,O,H){return H.traverse(O).orThunk(function(){return jw(O,H.gather,_)}).map(H.relative)},d4=function(_,O){return Re(_,O).filter(Uw).orThunk(function(){return Re(_,O-1).filter(Uw)})},Ww=function(_,O,H,oe){return d4(O,H).bind(function(ve){return oe.traverse(ve).fold(function(){return jw(ve,oe.gather,_).map(oe.relative)},function(Se){return iO(Se).map(function(Pe){return sf.on(Pe.parent,Pe.index)})})})},Sg=function(_,O,H,oe){var ve=Uw(O)?ME(_,O,oe):Ww(_,O,H,oe);return ve.map(function(Se){return{start:Se,finish:Se}})},NE=function(_){return Eg.cata(_,function(O){return K.none()},function(){return K.none()},function(O){return K.some(ag(O,0))},function(O){return K.some(ag(O,a1(O)))})},v4=function(_,O){return{left:_.left,top:_.top+O,right:_.right,bottom:_.bottom+O}},by=function(_,O){return{left:_.left,top:_.top-O,right:_.right,bottom:_.bottom-O}},DE=function(_,O,H){return{left:_.left+O,top:_.top+H,right:_.right+O,bottom:_.bottom+H}},lO=function(_){return _.top},uO=function(_){return _.bottom},IE=function(_,O,H){return H>=0&&H<a1(O)?_.getRangedRect(O,H,O,H+1):H>0?_.getRangedRect(O,H-1,O,H):K.none()},h4=function(_){return{left:_.left,top:_.top,right:_.right,bottom:_.bottom}},p4=function(_,O){return K.some(_.getRect(O))},m4=function(_,O,H){return fi(O)?p4(_,O).map(h4):ml(O)?IE(_,O,H).map(h4):K.none()},RE=function(_,O){return fi(O)?p4(_,O).map(h4):ml(O)?_.getRangedRect(O,0,O,a1(O)).map(h4):K.none()},hd=5,LE=100,ih=E1.generate([{none:[]},{retry:["caret"]}]),cO=function(_,O){return _.left<O.left||Math.abs(O.right-_.left)<1||_.left>O.right},BE=function(_,O,H){return Eh(O,Jp).fold(z,function(oe){return RE(_,oe).exists(function(ve){return cO(H,ve)})})},_y=function(_,O,H,oe,ve){var Se=v4(ve,hd);return Math.abs(H.bottom-oe.bottom)<1||H.top>ve.bottom?ih.retry(Se):H.top===ve.bottom?ih.retry(v4(ve,1)):BE(_,O,ve)?ih.retry(DE(Se,hd,0)):ih.none()},wy=function(_,O,H,oe,ve){var Se=by(ve,hd);return Math.abs(H.top-oe.top)<1||H.bottom<ve.top?ih.retry(Se):H.bottom===ve.top?ih.retry(by(ve,1)):BE(_,O,ve)?ih.retry(DE(Se,hd,0)):ih.none()},PE={point:lO,adjuster:wy,move:by,gather:yy},FE={point:uO,adjuster:_y,move:v4,gather:v_},um=function(_,O,H){return _.elementFromPoint(O,H).filter(function(oe){return Ea(oe)==="table"}).isSome()},cm=function(_,O,H,oe,ve){return Gw(_,O,H,O.move(oe,hd),ve)},Gw=function(_,O,H,oe,ve){return ve===0?K.some(oe):um(_,oe.left,O.point(oe))?cm(_,O,H,oe,ve-1):_.situsFromPoint(oe.left,O.point(oe)).bind(function(Se){return Se.start.fold(K.none,function(Pe){return RE(_,Pe).bind(function(Xe){return O.adjuster(_,Pe,Xe,H,oe).fold(K.none,function(wt){return Gw(_,O,H,wt,ve-1)})}).orThunk(function(){return K.some(oe)})},K.none)})},fO=function(_,O){return _.situsFromPoint(O.left,O.bottom+hd)},Tg=function(_,O){return _.situsFromPoint(O.left,O.top-hd)},dO=function(_,O,H){return _.point(O)>H.getInnerHeight()?K.some(_.point(O)-H.getInnerHeight()):_.point(O)<0?K.some(-_.point(O)):K.none()},$E=function(_,O,H){var oe=_.move(H,hd),ve=Gw(O,_,H,oe,LE).getOr(oe);return dO(_,ve,O).fold(function(){return O.situsFromPoint(ve.left,_.point(ve))},function(Se){return O.scrollBy(0,Se),O.situsFromPoint(ve.left,_.point(ve)-Se)})},g4={tryUp:A($E,PE),tryDown:A($E,FE),ieTryUp:Tg,ieTryDown:fO,getJumpSize:F(hd)},zE=20,No=function(_,O,H){return _.getSelection().bind(function(oe){return Sg(O,oe.finish,oe.foffset,H).fold(function(){return K.some(ag(oe.finish,oe.foffset))},function(ve){var Se=_.fromSitus(ve),Pe=Eg.verify(_,oe.finish,oe.foffset,Se.finish,Se.foffset,H.failure,O);return NE(Pe)})})},y4=function(_,O,H,oe,ve,Se){return Se===0?K.none():HE(_,O,H,oe,ve).bind(function(Pe){var Xe=_.fromSitus(Pe),wt=Eg.verify(_,H,oe,Xe.finish,Xe.foffset,ve.failure,O);return Eg.cata(wt,function(){return K.none()},function(){return K.some(Pe)},function(Ht){return ua(H,Ht)&&oe===0?b4(_,H,oe,by,ve):y4(_,O,Ht,0,ve,Se-1)},function(Ht){return ua(H,Ht)&&oe===a1(Ht)?b4(_,H,oe,v4,ve):y4(_,O,Ht,a1(Ht),ve,Se-1)})})},b4=function(_,O,H,oe,ve){return m4(_,O,H).bind(function(Se){return Kw(_,ve,oe(Se,g4.getJumpSize()))})},Kw=function(_,O,H){var oe=ft().browser;return oe.isChrome()||oe.isSafari()||oe.isFirefox()||oe.isEdge()?O.otherRetry(_,H):oe.isIE()?O.ieRetry(_,H):K.none()},HE=function(_,O,H,oe,ve){return m4(_,H,oe).bind(function(Se){return Kw(_,ve,Se)})},p_=function(_,O,H){return No(_,O,H).bind(function(oe){return y4(_,O,oe.element,oe.offset,H,zE).map(_.fromSitus)})},_4=function(_,O){return kE(_,function(H){return Cs(H).exists(function(oe){return ua(oe,O)})})},Yw=function(_,O,H,oe,ve){return is(oe,"td,th",O).bind(function(Se){return is(Se,"table",O).bind(function(Pe){return _4(ve,Pe)?p_(_,O,H).bind(function(Xe){return is(Xe.f
217inish,"td,th",O).map(function(wt){return{start:Se,finish:wt,range:Xe}})}):K.none()})})},VE=function(_,O,H,oe,ve,Se){return ft().browser.isIE()?K.none():Se(oe,O).orThunk(function(){return Yw(_,O,H,oe,ve).map(function(Pe){var Xe=Pe.range;return my.create(K.some(B1(Xe.start,Xe.soffset,Xe.finish,Xe.foffset)),!0)})})},vO=function(_,O){return is(_,"tr",O).bind(function(H){return is(H,"table",O).bind(function(oe){var ve=qc(oe,"tr");return ua(H,ve[0])?Vw(oe,function(Se){return Wm(Se).isSome()},O).map(function(Se){var Pe=a1(Se);return my.create(K.some(B1(Se,Pe,Se,Pe)),!0)}):K.none()})})},ra=function(_,O){return is(_,"tr",O).bind(function(H){return is(H,"table",O).bind(function(oe){var ve=qc(oe,"tr");return ua(H,ve[ve.length-1])?AE(oe,function(Se){return S2(Se).isSome()},O).map(function(Se){return my.create(K.some(B1(Se,0,Se,0)),!0)}):K.none()})})},m_=function(_,O,H,oe,ve,Se,Pe){return Yw(_,H,oe,ve,Se).bind(function(Xe){return xE(O,H,Xe.start,Xe.finish,Pe)})},ba=function(_,O){return is(_,"td,th",O)},UE=function(_,O,H,oe){var ve=uy(),Se=ve.clear,Pe=function(un){ve.on(function(Jn){oe.clearBeforeUpdate(O),ba(un.target,H).each(function(pr){kh(Jn,pr,H).each(function(cr){var Xn=cr.boxes.getOr([]);if(Xn.length===1){var Dr=Xn[0],Lr=v5(Dr)==="false",Ro=Gd(eg(un.target),Dr,ua);Lr&&Ro&&(oe.selectRange(O,Xn,Dr,Dr),_.selectContents(Dr))}else Xn.length>1&&(oe.selectRange(O,Xn,cr.start,cr.finish),_.selectContents(pr))})})})},Xe=function(un){oe.clear(O),ba(un.target,H).each(ve.set)},wt=function(un){Pe(un)},Ht=function(un){Pe(un),Se()};return{clearstate:Se,mousedown:Xe,mouseover:wt,mouseup:Ht}},jE={traverse:xe,gather:v_,relative:sf.before,otherRetry:g4.tryDown,ieRetry:g4.ieTryDown,failure:Eg.failedDown},qw={traverse:je,gather:yy,relative:sf.before,otherRetry:g4.tryUp,ieRetry:g4.ieTryUp,failure:Eg.failedUp},Ag=function(_){return function(O){return O===_}},g_=Ag(38),w4=Ag(40),y_=function(_){return _>=37&&_<=40},Xw={isBackward:Ag(37),isForward:Ag(39)},oa={isBackward:Ag(39),isForward:Ag(37)},hO=function(_){var O=_!==void 0?_.dom:document,H=O.body.scrollLeft||O.documentElement.scrollLeft,oe=O.body.scrollTop||O.documentElement.scrollTop;return Wi(H,oe)},WE=function(_,O,H){var oe=H!==void 0?H.dom:document,ve=oe.defaultView;ve&&ve.scrollBy(_,O)},b_=function(_){var O=function(Lr,Ro){return Bn.fromPoint(Bn.fromDom(_.document),Lr,Ro)},H=function(Lr){return Lr.dom.getBoundingClientRect()},oe=function(Lr,Ro,ri,Po){var aa=ep.exact(Lr,Ro,ri,Po);return vE(_,aa)},ve=function(){return dE(_).map(function(Lr){return wE(_,Lr)})},Se=function(Lr){var Ro=ep.relative(Lr.start,Lr.finish);return wE(_,Ro)},Pe=function(Lr,Ro){return a_(_,Lr,Ro).map(function(ri){return _E.create(ri.start,ri.soffset,ri.finish,ri.foffset)})},Xe=function(){hE(_)},wt=function(Lr){Lr===void 0&&(Lr=!1),dE(_).each(function(Ro){return Ro.fold(function(ri){return ri.collapse(Lr)},function(ri,Po){var aa=Lr?ri:Po;o_(_,aa,aa)},function(ri,Po,aa,Ya){var Ha=Lr?ri:aa,nu=Lr?Po:Ya;r_(_,Ha,nu,Ha,nu)})})},Ht=function(Lr){Cg(_,Lr,!1)},un=function(Lr){Cg(_,Lr)},Jn=function(Lr){r_(_,Lr.start,Lr.soffset,Lr.finish,Lr.foffset)},pr=function(Lr,Ro){o_(_,Lr,Ro)},cr=function(){return _.innerHeight},Xn=function(){var Lr=hO(Bn.fromDom(_.document));return Lr.top},Dr=function(Lr,Ro){WE(Lr,Ro,Bn.fromDom(_.document))};return{elementFromPoint:O,getRect:H,getRangedRect:oe,getSelection:ve,fromSitus:Se,situsFromPoint:Pe,clearSelection:Xe,collapseSelection:wt,setSelection:Jn,setRelativeSelection:pr,selectNode:Ht,selectContents:un,getInnerHeight:cr,getScrollY:Xn,scrollBy:Dr}},Jh=function(_,O){return{rows:_,cols:O}},GE=function(_,O,H,oe){var ve=b_(_),Se=UE(ve,O,H,oe);return{clearstate:Se.clearstate,mousedown:Se.mousedown,mouseover:Se.mouseover,mouseup:Se.mouseup}},C4=function(_,O,H,oe){var ve=b_(_),Se=function(){return oe.clear(O),K.none()},Pe=function(wt,Ht,un,Jn,pr,cr){var Xn=wt.raw,Dr=Xn.which,Lr=Xn.shiftKey===!0,Ro=k0(O,oe.selectedSelector).fold(function(){return y_(Dr)&&!Lr&&oe.clearBeforeUpdate(O),w4(Dr)&&Lr?A(m_,ve,O,H,jE,Jn,Ht,oe.selectRange):g_(Dr)&&Lr?A(m_,ve,O,H,qw,Jn,Ht,oe.selectRange):w4(Dr)?A(VE,ve,H,jE,Jn,Ht,ra):g_(Dr)?A(VE,ve,H,qw,Jn,Ht,vO):K.none},function(ri){var Po=function(aa){return function(){var Ya=Ye(aa,function(Ha){return i_(Ha.rows,Ha.cols,O,ri,oe)});return Ya.fold(function(){return vi(O,oe.firstSelectedSelector,oe.lastSelectedSelector).map(function(Ha){var nu=w4(Dr)||cr.isForward(Dr)?sf.after:sf.before;return ve.setRelativeSelection(sf.on(Ha.first,0),nu(Ha.table)),oe.clear(O),my.create(K.none(),!0)})},function(Ha){return K.some(my.create(K.none(),!0))})}};return w4(Dr)&&Lr?Po([Jh(1,0)]):g_(Dr)&&Lr?Po([Jh(-1,0)]):cr.isBackward(Dr)&&Lr?Po([Jh(0,-1),Jh(-1,0)]):cr.isForward(Dr)&&Lr?Po([Jh(0,1),Jh(1,0)]):y_(Dr)&&!Lr?Se:K.none});return Ro()},Xe=function(wt,Ht,un,Jn,pr){return k0(O,oe.selectedSelector).fold(function(){var cr=wt.raw,Xn=cr.which,Dr=cr.shiftKey===!0;return Dr&&y_(Xn)?CE(O,H,Ht,un,Jn,pr,oe.selectRange):K.none()},K.none)};return{keydown:Pe,keyup:Xe}},__=function(_,O,H,oe){var ve=b_(_);return function(Se,Pe){oe.clearBeforeUpdate(O),kh(Se,Pe,H).each(function(Xe){var wt=Xe.boxes.getOr([]);oe.selectRange(O,wt,Xe.start,Xe.finish),ve.selectContents(Pe),ve.collapseSelection()})}},KE=function(_,O){j(O,function(H){ld(_,H)})},YE=function(_){return function(O){_u(O,_)}},pO=function(_){return function(O){KE(O,_)}},mO=function(_){var O=YE(_.selected),H=pO([_.selected,_.lastSelected,_.firstSelected]),oe=function(Se){var Pe=qc(Se,_.selectedSelector);j(Pe,H)},ve=function(Se,Pe,Xe,wt){oe(Se),j(Pe,O),_u(Xe,_.firstSelected),_u(wt,_.lastSelected)};return{clearBeforeUpdate:oe,clear:oe,selectRange:ve,selectedSelector:_.selectedSelector,firstSelectedSelector:_.firstSelectedSelector,lastSelectedSelector:_.lastSelectedSelector}},gO=function(_,O,H){var oe=function(wt){Pi(wt,_.selected),Pi(wt,_.firstSelected),Pi(wt,_.lastSelected)},ve=function(wt){zl(wt,_.selected,"1")},Se=function(wt){Pe(wt),H()},Pe=function(wt){var Ht=qc(wt,_.selectedSelector+","+_.firstSelectedSelector+","+_.lastSelectedSelector);j(Ht,oe)},Xe=function(wt,Ht,un,Jn){Se(wt),j(Ht,ve),zl(un,_.firstSelected,"1"),zl(Jn,_.lastSelected,"1"),O(Ht,un,Jn)};return{clearBeforeUpdate:Pe,clear:Se,selectRange:Xe,selectedSelector:_.selectedSelector,firstSelectedSelector:_.firstSelectedSelector,lastSelectedSelector:_.lastSelectedSelector}},yO={byClass:mO,byAttr:gO},bO=function(_,O){var H=_.slice(0,O[O.length-1].row+1),oe=x6(H);return Oe(oe,function(ve){var Se=ve.cells.slice(0,O[O.length-1].column+1);return U(Se,function(Pe){return Pe.element})})},qE=function(_,O){var H=_.slice(O[0].row+O[0].rowspan-1,_.length),oe=x6(H);return Oe(oe,function(ve){var Se=ve.cells.slice(O[0].column+O[0].colspan-1,ve.cells.length);return U(Se,function(Pe){return Pe.element})})},_O=function(_,O,H){var oe=pa.fromTable(_),ve=th(oe,O);return ve.map(function(Se){var Pe=Xp(oe,H,!1),Xe=bO(Pe,Se),wt=qE(Pe,Se);return{upOrLeftCells:Xe,downOrRightCells:wt}})},Zw=tinymce.util.Tools.resolve("tinymce.Env"),Cy=function(_){return vs(Bn.fromDom(_.target),"ephox-snooker-resizer-bar")===!1}
217;function Qa(_,O,H){var oe=function(Pe,Xe,wt){H.targets().each(function(Ht){var un=xs(Xe);un.each(function(Jn){var pr=m6(_),cr=qo(S,Bn.fromDom(_.getDoc()),pr),Xn=_O(Jn,Ht,cr);L2(_,Pe,Xe,wt,Xn)})})},ve=function(){return tx(_)},Se=yO.byAttr(Ee,oe,ve);return _.on("init",function(Pe){var Xe=_.getWin(),wt=k1(_),Ht=id(_),un=function(){var ui=_.selection,fa=Bn.fromDom(ui.getStart()),Ja=Bn.fromDom(ui.getEnd()),$i=Eo(xs,[fa,Ja]);$i.fold(function(){return Se.clear(wt)},S)},Jn=GE(Xe,wt,Ht,Se),pr=C4(Xe,wt,Ht,Se),cr=__(Xe,wt,Ht,Se),Xn=function(ui){return ui.raw.shiftKey===!0};_.on("TableSelectorChange",function(ui){return cr(ui.start,ui.finish)});var Dr=function(ui,fa){!Xn(ui)||(fa.kill&&ui.kill(),fa.selection.each(function(Ja){var $i=ep.relative(Ja.start,Ja.finish),dl=sm(Xe,$i);_.selection.setRng(dl)}))},Lr=function(ui){var fa=K0(ui);if(fa.raw.shiftKey&&y_(fa.raw.which)){var Ja=_.selection.getRng(),$i=Bn.fromDom(Ja.startContainer),dl=Bn.fromDom(Ja.endContainer);pr.keyup(fa,$i,Ja.startOffset,dl,Ja.endOffset).each(function(e0){Dr(fa,e0)})}},Ro=function(ui){var fa=K0(ui);O().each(function(Ki){return Ki.hideBars()});var Ja=_.selection.getRng(),$i=Bn.fromDom(Ja.startContainer),dl=Bn.fromDom(Ja.endContainer),e0=Qc(Xw,oa)(Bn.fromDom(_.selection.getStart()));pr.keydown(fa,$i,Ja.startOffset,dl,Ja.endOffset,e0).each(function(Ki){Dr(fa,Ki)}),O().each(function(Ki){return Ki.showBars()})},ri=function(ui){return ui.button===0},Po=function(ui){return ui.buttons===void 0||Zw.browser.isEdge()&&ui.buttons===0?!0:(ui.buttons&1)!==0},aa=function(ui){Jn.clearstate()},Ya=function(ui){ri(ui)&&Cy(ui)&&Jn.mousedown(K0(ui))},Ha=function(ui){Po(ui)&&Cy(ui)&&Jn.mouseover(K0(ui))},nu=function(ui){ri(ui)&&Cy(ui)&&Jn.mouseup(K0(ui))},ac=function(){var ui=Q0(Bn.fromDom(wt)),fa=Q0(0),Ja=function($i){var dl=Bn.fromDom($i.target);if(Ea(dl)==="td"||Ea(dl)==="th"){var e0=ui.get(),Ki=fa.get();ua(e0,dl)&&$i.timeStamp-Ki<300&&($i.preventDefault(),cr(dl,dl))}ui.set(dl),fa.set($i.timeStamp)};return{touchEnd:Ja}},Ff=ac();_.on("dragstart",aa),_.on("mousedown",Ya),_.on("mouseover",Ha),_.on("mouseup",nu),_.on("touchend",Ff.touchEnd),_.on("keyup",Lr),_.on("keydown",Ro),_.on("NodeChange",un)}),{clear:Se.clear}}var w_=function(_,O){return Jo(_,O).isSome()},C_=function(_,O){var H=Q0(K.none()),oe=Q0([]),ve=K.none(),Se=ws("caption"),Pe=function(fa){return ve.forall(function(Ja){return!Ja[fa]})},Xe=function(){return Sn(V0(_),id(_))},wt=function(){return Sn(so(_),id(_))},Ht=function(){return Xe().bind(function(fa){return Fv(mf(xs(fa),wt().bind(xs),function(Ja,$i){return ua(Ja,$i)?Se(fa)?K.some(Be(fa)):K.some(Ve(O,Ja,fa)):K.none()}))})},un=function(fa){var Ja=xs(fa.element);return Ja.map(function($i){var dl=pa.fromTable($i),e0=th(dl,fa).getOr([]),Ki=re(e0,function(F1,Ac){return Ac.isLocked&&(F1.onAny=!0,Ac.column===0?F1.onFirst=!0:Ac.column+Ac.colspan>=dl.grid.columns&&(F1.onLast=!0)),F1},{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:R5(dl,fa).isSome(),unmergeable:T6(dl,fa).isSome(),locked:Ki}})},Jn=function(){H.set(Ct(Ht)()),ve=H.get().bind(un),j(oe.get(),function(fa){return fa()})},pr=function(fa){return fa(),oe.set(oe.get().concat([fa])),function(){oe.set(ie(oe.get(),function(Ja){return Ja!==fa}))}},cr=function(fa,Ja){return pr(function(){return H.get().fold(function(){fa.setDisabled(!0)},function($i){fa.setDisabled(Ja($i))})})},Xn=function(fa,Ja,$i){return pr(function(){return H.get().fold(function(){fa.setDisabled(!0),fa.setActive(!1)},function(dl){fa.setDisabled(Ja(dl)),fa.setActive($i(dl))})})},Dr=function(fa){return ve.exists(function(Ja){return Ja.locked[fa]})},Lr=function(fa){return cr(fa,function(Ja){return!1})},Ro=function(fa){return cr(fa,function(Ja){return Se(Ja.element)})},ri=function(fa){return function(Ja){return cr(Ja,function($i){return Se($i.element)||Dr(fa)})}},Po=function(fa){return function(Ja){return cr(Ja,function($i){return Se($i.element)||fa().isNone()})}},aa=function(fa,Ja){return function($i){return cr($i,function(dl){return Se(dl.element)||fa().isNone()||Dr(Ja)})}},Ya=function(fa){return cr(fa,function(Ja){return Pe("mergeable")})},Ha=function(fa){return cr(fa,function(Ja){return Pe("unmergeable")})},nu=function(fa){return Xn(fa,z,function(Ja){var $i=xs(Ja.element,id(_));return $i.exists(function(dl){return w_(dl,"caption")})})},ac=function(fa,Ja){return function($i){return Xn($i,function(dl){return Se(dl.element)},function(){return _.queryCommandValue(fa)===Ja})}},Ff=ac("mceTableRowType","header"),ui=ac("mceTableColType","th");return _.on("NodeChange ExecCommand TableSelectorChange",Jn),{onSetupTable:Lr,onSetupCellOrRow:Ro,onSetupColumn:ri,onSetupPasteable:Po,onSetupPasteableColumn:aa,onSetupMergeable:Ya,onSetupUnmergeable:Ha,resetTargets:Jn,onSetupTableWithCaption:nu,onSetupTableRowHeaders:Ff,onSetupTableColumnHeaders:ui,targets:H.get}},XE=function(_,O,H,oe){_.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(Xe){return Xe("inserttable | cell row column | advtablesort | tableprops deletetable")}});var ve=function(Xe){return function(){return _.execCommand(Xe)}};_.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:ve("mceTableProps"),icon:"table",onSetup:H.onSetupTable}),_.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:ve("mceTableDelete"),icon:"table-delete-table",onSetup:H.onSetupTable}
217),_.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:ve("mceTableCellProps"),icon:"table-cell-properties",onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:ve("mceTableMergeCells"),icon:"table-merge-cells",onSetup:H.onSetupMergeable}),_.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:ve("mceTableSplitCells"),icon:"table-split-cells",onSetup:H.onSetupUnmergeable}),_.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:ve("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:ve("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:ve("mceTableDeleteRow"),icon:"table-delete-row",onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:ve("mceTableRowProps"),icon:"table-row-properties",onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:ve("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:H.onSetupColumn("onFirst")}),_.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:ve("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:H.onSetupColumn("onLast")}),_.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:ve("mceTableDeleteCol"),icon:"table-delete-column",onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:ve("mceTableCutRow"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:ve("mceTableCopyRow"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:ve("mceTablePasteRowBefore"),onSetup:H.onSetupPasteable(oe.getRows)}),_.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:ve("mceTablePasteRowAfter"),onSetup:H.onSetupPasteable(oe.getRows)}),_.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:ve("mceTableCutCol"),onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:ve("mceTableCopyCol"),onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:ve("mceTablePasteColBefore"),onSetup:H.onSetupPasteableColumn(oe.getColumns,"onFirst")}),_.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:ve("mceTablePasteColAfter"),onSetup:H.onSetupPasteableColumn(oe.getColumns,"onLast")}),_.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:ve("mceInsertTable"),icon:"table"});var Se=rm(Hb(_));Se.length!==0&&_.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:pg(_,O,Se,"tableclass",function(Xe){return _.execCommand("mceTableToggleClass",!1,Xe)}),onSetup:H.onSetupTable});var Pe=rm(Vh(_));Pe.length!==0&&_.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:pg(_,O,Pe,"tablecellclass",function(Xe){return _.execCommand("mceTableCellToggleClass",!1,Xe)}),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:pg(_,O,ly,"tablecellverticalalign",nm(_,"vertical-align")),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:pg(_,O,rx(_),"tablecellborderwidth",nm(_,"border-width")),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:pg(_,O,nf(_),"tablecellborderstyle",nm(_,"border-style")),onSetup:H.onSetupCellOrRow}),_.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:ve("mceTableToggleCaption"),icon:"table-caption",onSetup:H.onSetupTableWithCaption}),_.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Backgroun
217d color",fetch:function(Xe){return Xe(cy(_,x5(_),"background-color"))},onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(Xe){return Xe(cy(_,E5(_),"border-color"))},onSetup:H.onSetupCellOrRow}),_.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:fw(_),onSetup:H.onSetupTableRowHeaders}),_.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:dw(_),onSetup:H.onSetupTableColumnHeaders})},ZE=function(_){var O=function(oe){return _.dom.is(oe,"table")&&_.getBody().contains(oe)},H=z7(_);H.length>0&&_.ui.registry.addContextToolbar("table",{predicate:O,items:H,scope:"node",position:"node"})},QE=function(_,O,H,oe){var ve=function(cr){return function(){return _.execCommand(cr)}},Se=function(cr){_.execCommand("mceInsertTable",!1,{rows:cr.numRows,columns:cr.numColumns})},Pe={text:"Table properties",onSetup:H.onSetupTable,onAction:ve("mceTableProps")},Xe={text:"Delete table",icon:"table-delete-table",onSetup:H.onSetupTable,onAction:ve("mceTableDelete")};_.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:ve("mceTableInsertRowBefore"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:ve("mceTableInsertRowAfter"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:ve("mceTableDeleteRow"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:ve("mceTableRowProps"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:ve("mceTableCutRow"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:ve("mceTableCopyRow"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:ve("mceTablePasteRowBefore"),onSetup:H.onSetupPasteable(oe.getRows)}),_.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:ve("mceTablePasteRowAfter"),onSetup:H.onSetupPasteable(oe.getRows)});var wt={type:"nestedmenuitem",text:"Row",getSubmenuItems:F("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};_.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:ve("mceTableInsertColBefore"),onSetup:H.onSetupColumn("onFirst")}),_.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:ve("mceTableInsertColAfter"),onSetup:H.onSetupColumn("onLast")}),_.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:ve("mceTableDeleteCol"),onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:ve("mceTableCutCol"),onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:ve("mceTableCopyCol"),onSetup:H.onSetupColumn("onAny")}),_.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:ve("mceTablePasteColBefore"),onSetup:H.onSetupPasteableColumn(oe.getColumns,"onFirst")}),_.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:ve("mceTablePasteColAfter"),onSetup:H.onSetupPasteableColumn(oe.getColumns,"onLast")});var Ht={type:"nestedmenuitem",text:"Column",getSubmenuItems:F("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};_.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:ve("mceTableCellProps"),onSetup:H.onSetupCellOrRow}),_.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:ve("mceTableMergeCells"),onSetup:H.onSetupMergeable}),_.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:ve("mceTableSplitCells"),onSetup:H.onSetupUnmergeable});var un={type:"nestedmenuitem",text:"Cell",getSubmenuItems:F("tablecellprops tablemergecells tablesplitcells")};ox(_)===!1?_.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:ve("mceInsertTable")}):_.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:Se}]}}),_.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:ve("mceInsertTable")}),_.ui.registry.addMenuItem("tableprops",Pe),_.ui.registry.addMenuItem("deletetable",Xe),_.ui.registry.addNestedMenuItem("row",wt),_.ui.registry.addNestedMenuItem("column",Ht),_.ui.registry.addNestedMenuItem("cell",un),_.ui.registry.addContextMenu("table",{update:function(){return H.resetTargets(),H.targets().fold(F(""),function(cr){return Ea(cr.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"})}});var Jn=rm(Hb(_));Jn.length!==0&&_.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return yv(_,O,Jn,"tableclass",function(cr){return _.execCommand("mceTableToggleClass",!1,cr)})},onSetup:H.onSetupTable});var pr=rm(Vh(_));pr.length!==0&&_.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return yv(_,O,pr,"tablecellclass",function(cr){return _.execCommand("mceTableCellToggleClass",!1,cr)})},onSetup:H.onSetupCellOrRow}
217),_.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return yv(_,O,ly,"tablecellverticalalign",nm(_,"vertical-align"))},onSetup:H.onSetupCellOrRow}),_.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return yv(_,O,rx(_),"tablecellborderwidth",nm(_,"border-width"))},onSetup:H.onSetupCellOrRow}),_.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return yv(_,O,nf(_),"tablecellborderstyle",nm(_,"border-style"))},onSetup:H.onSetupCellOrRow}),_.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:ve("mceTableToggleCaption"),onSetup:H.onSetupTableWithCaption}),_.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return cy(_,x5(_),"background-color")},onSetup:H.onSetupCellOrRow}),_.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return cy(_,E5(_),"border-color")},onSetup:H.onSetupCellOrRow}),_.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:fw(_),onSetup:H.onSetupTableRowHeaders}),_.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:dw(_),onSetup:H.onSetupTableColumnHeaders})},Qw=function(_){var O=cl(function(){return k1(_)},function(){return Cn(V0(_),id(_))},Ee.selectedSelector),H=C_(_,O),oe=y6(_),ve=Qa(_,oe.lazyResize,H),Se=Sk(_,ve,oe.lazyWire),Pe=Q6();return X6(_,Se,ve,O,Pe),Z6(_,Se,O),no(_,O,Se),QE(_,O,H,Pe),XE(_,O,H,Pe),ZE(_),_.on("PreInit",function(){_.serializer.addTempAttr(Ee.firstSelected),_.serializer.addTempAttr(Ee.lastSelected),$k(_)}),Jv(_)&&_.on("keydown",function(Xe){bE(Xe,_,ve)}),_.on("remove",function(){oe.destroy()}),Kh(_,Pe,oe,H)};function Jw(){Eb.add("table",Qw)}Jw()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(Fe){var We=typeof Fe;return Fe===null?"null":We==="object"&&(Array.prototype.isPrototypeOf(Fe)||Fe.constructor&&Fe.constructor.name==="Array")?"array":We==="object"&&(String.prototype.isPrototypeOf(Fe)||Fe.constructor&&Fe.constructor.name==="String")?"string":We},n=function(Fe){return function(We){return t(We)===Fe}},r=function(Fe){return function(We){return typeof We===Fe}},i=n("string"),l=r("function"),u=function(){},f=function(Fe){return function(){return Fe}},v=function(Fe){return Fe};function h(Fe){for(var We=[],Ye=1;Ye<arguments.length;Ye++)We[Ye-1]=arguments[Ye];return function(){for(var Ke=[],mt=0;mt<arguments.length;mt++)Ke[mt]=arguments[mt];var Ct=We.concat(Ke);return Fe.apply(null,Ct)}}var g=f(!1),y=f(!0),w=tinymce.util.Tools.resolve("tinymce.util.Tools"),C=tinymce.util.Tools.resolve("tinymce.util.XHR"),S=function(Fe){return Fe.getParam("template_cdate_classes","cdate")},T=function(Fe){return Fe.getParam("template_mdate_classes","mdate")},B=function(Fe){return Fe.getParam("template_selected_content_classes","selcontent")},F=function(Fe){return Fe.getParam("template_preview_replace_values")},R=function(Fe){return Fe.getParam("content_style","","string")},N=function(Fe){return Fe.getParam("content_css_cors",!1,"boolean")},A=function(Fe){return Fe.getParam("template_replace_values")},X=function(Fe){return Fe.getParam("templates")},Z=function(Fe){return Fe.getParam("template_cdate_format",Fe.translate("%Y-%m-%d"))},z=function(Fe){return Fe.getParam("template_mdate_format",Fe.translate("%Y-%m-%d"))},Y=function(Fe){var We=Fe.getParam("body_class","","hash");return We[Fe.id]||""},Q=function(Fe){var We=Fe.getParam("body_class","","string");return We.indexOf("=")===-1?We:Y(Fe)},$=function(Fe,We){if(Fe=""+Fe,Fe.length<We)for(var Ye=0;Ye<We-Fe.length;Ye++)Fe="0"+Fe;return Fe},te=function(Fe,We,Ye){Ye===void 0&&(Ye=new Date);var Ke="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),mt="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),Ct="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),bt="January February March April May June July August September October November December".split(" ");return We=We.replace("%D","%m/%d/%Y"),We=We.replace("%r","%I:%M:%S %p"),We=We.replace("%Y",""+Ye.getFullYear()),We=We.replace("%y",""+Ye.getYear()),We=We.replace("%m",$(Ye.getMonth()+1,2)),We=We.replace("%d",$(Ye.getDate(),2)),We=We.replace("%H",""+$(Ye.getHours(),2)),We=We.replace("%M",""+$(Ye.getMinutes(),2)),We=We.replace("%S",""+$(Ye.getSeconds(),2)),We=We.replace("%I",""+((Ye.getHours()+11)%12+1)),We=We.replace("%p",Ye.getHours()<12?"AM":"PM"),We=We.replace("%B",""+Fe.translate(bt[Ye.getMonth()])
217),We=We.replace("%b",""+Fe.translate(Ct[Ye.getMonth()])),We=We.replace("%A",""+Fe.translate(mt[Ye.getDay()])),We=We.replace("%a",""+Fe.translate(Ke[Ye.getDay()])),We=We.replace("%%","%"),We},V=function(Fe,We){return function(){var Ye=X(Fe);l(Ye)?Ye(We):i(Ye)?C.send({url:Ye,success:function(Ke){We(JSON.parse(Ke))}}):We(Ye)}},K=function(Fe,We){return w.each(We,function(Ye,Ke){l(Ye)&&(Ye=Ye(Ke)),Fe=Fe.replace(new RegExp("\\{\\$"+Ke+"\\}","g"),Ye)}),Fe},fe=function(Fe,We){var Ye=Fe.dom,Ke=A(Fe);w.each(Ye.select("*",We),function(mt){w.each(Ke,function(Ct,bt){Ye.hasClass(mt,bt)&&l(Ct)&&Ct(mt)})})},de=function(Fe,We){return new RegExp("\\b"+We+"\\b","g").test(Fe.className)},ne=function(Fe,We,Ye){var Ke=Fe.dom,mt=Fe.selection.getContent();Ye=K(Ye,A(Fe));var Ct=Ke.create("div",null,Ye),bt=Ke.select(".mceTmpl",Ct);bt&&bt.length>0&&(Ct=Ke.create("div",null),Ct.appendChild(bt[0].cloneNode(!0))),w.each(Ke.select("*",Ct),function(tn){de(tn,S(Fe).replace(/\s+/g,"|"))&&(tn.innerHTML=te(Fe,Z(Fe))),de(tn,T(Fe).replace(/\s+/g,"|"))&&(tn.innerHTML=te(Fe,z(Fe))),de(tn,B(Fe).replace(/\s+/g,"|"))&&(tn.innerHTML=mt)}),fe(Fe,Ct),Fe.execCommand("mceInsertContent",!1,Ct.innerHTML),Fe.addVisual()},le=function(){return _e},_e=function(){var Fe=function(Ke){return Ke()},We=v,Ye={fold:function(Ke,mt){return Ke()},isSome:g,isNone:y,getOr:We,getOrThunk:Fe,getOrDie:function(Ke){throw new Error(Ke||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:We,orThunk:Fe,map:le,each:u,bind:le,exists:g,forall:y,filter:function(){return le()},toArray:function(){return[]},toString:f("none()")};return Ye}(),M=function(Fe){var We=f(Fe),Ye=function(){return mt},Ke=function(Ct){return Ct(Fe)},mt={fold:function(Ct,bt){return bt(Fe)},isSome:y,isNone:g,getOr:We,getOrThunk:We,getOrDie:We,getOrNull:We,getOrUndefined:We,or:Ye,orThunk:Ye,map:function(Ct){return M(Ct(Fe))},each:function(Ct){Ct(Fe)},bind:Ke,exists:Ke,forall:Ke,filter:function(Ct){return Ct(Fe)?mt:_e},toArray:function(){return[Fe]},toString:function(){return"some("+Fe+")"}};return mt},P=function(Fe){return Fe==null?_e:M(Fe)},U={some:M,none:le,from:P},j=function(Fe,We){for(var Ye=Fe.length,Ke=new Array(Ye),mt=0;mt<Ye;mt++){var Ct=Fe[mt];Ke[mt]=We(Ct,mt)}return Ke},ee=function(Fe,We,Ye){for(var Ke=0,mt=Fe.length;Ke<mt;Ke++){var Ct=Fe[Ke];if(We(Ct,Ke))return U.some(Ct);if(Ye(Ct,Ke))break}return U.none()},ye=function(Fe,We){return ee(Fe,We,g)},ie=tinymce.util.Tools.resolve("tinymce.Env"),he=tinymce.util.Tools.resolve("tinymce.util.Promise"),re=Object.hasOwnProperty,be=function(Fe,We){return Ae(Fe,We)?U.from(Fe[We]):U.none()},Ae=function(Fe,We){return re.call(Fe,We)},Te={'"':""","<":"<",">":">","&":"&","'":"'"},Ue=function(Fe){return Fe.replace(/["'<>&]/g,function(We){return be(Te,We).getOr(We)})},Oe=function(Fe,We){if(We.indexOf("<html>")===-1){var Ye="",Ke=R(Fe),mt=N(Fe)?' crossorigin="anonymous"':"";w.each(Fe.contentCSS,function(At){Ye+='<link type="text/css" rel="stylesheet" href="'+Fe.documentBaseURI.toAbsolute(At)+'"'+mt+">"}),Ke&&(Ye+='<style type="text/css">'+Ke+"</style>");var Ct=Q(Fe),bt=Fe.dom.encode,tn=ie.mac?"e.metaKey":"e.ctrlKey && !e.altKey",Ft='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+tn+")) {e.preventDefault();}}}, false);<\/script> ",It=Fe.getBody().dir,Et=It?' dir="'+bt(It)+'"':"";We='<!DOCTYPE html><html><head><base href="'+bt(Fe.documentBaseURI.getURI())+'">'+Ye+Ft+'</head><body class="'+bt(Ct)+'"'+Et+">"+We+"</body></html>"}return K(We,F(Fe))},De=function(Fe,We){var Ye=function(){if(!We||We.length===0){var At=Fe.translate("No templates defined.");return Fe.notificationManager.open({text:At,type:"info"}),U.none()}return U.from(w.map(We,function(vt,Tt){var Wt=function(xt){return xt.url!==void 0};return{selected:Tt===0,text:vt.title,value:{url:Wt(vt)?U.from(vt.url):U.none(),content:Wt(vt)?U.none():U.from(vt.content),description:vt.description}}}))},Ke=function(At){return j(At,function(vt){return{text:vt.text,value:vt.text}})},mt=function(At,vt){return ye(At,function(Tt){return Tt.text===vt})},Ct=function(At){Fe.windowManager.alert("Could not load the specified template.",function(){return At.focu
217s("template")})},bt=function(At){return new he(function(vt,Tt){At.value.url.fold(function(){return vt(At.value.content.getOr(""))},function(Wt){return C.send({url:Wt,success:function(xt){vt(xt)},error:function(xt){Tt(xt)}})})})},tn=function(At,vt){return function(Tt,Wt){if(Wt.name==="template"){var xt=Tt.getData().template;mt(At,xt).each(function(at){Tt.block("Loading..."),bt(at).then(function(_t){vt(Tt,at,_t)}).catch(function(){vt(Tt,at,""),Tt.disable("save"),Ct(Tt)})})}}},Ft=function(At){return function(vt){var Tt=vt.getData();mt(At,Tt.template).each(function(Wt){bt(Wt).then(function(xt){Fe.execCommand("mceInsertTemplate",!1,xt),vt.close()}).catch(function(){vt.disable("save"),Ct(vt)})})}},It=function(At){var vt=Ke(At),Tt=function(at,_t){return{title:"Insert Template",size:"large",body:{type:"panel",items:at},initialData:_t,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:Ft(At),onChange:tn(At,Wt)}},Wt=function(at,_t,en){var An=Oe(Fe,en),Vt=[{type:"selectbox",name:"template",label:"Templates",items:vt},{type:"htmlpanel",html:'<p aria-live="polite">'+Ue(_t.value.description)+"</p>"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],_n={template:_t.text,preview:An};at.unblock(),at.redial(Tt(Vt,_n)),at.focus("template")},xt=Fe.windowManager.open(Tt([],{template:"",preview:""}));xt.block("Loading..."),bt(At[0]).then(function(at){Wt(xt,At[0],at)}).catch(function(){Wt(xt,At[0],""),xt.disable("save"),Ct(xt)})},Et=Ye();Et.each(It)},$e=function(Fe){return function(We){De(Fe,We)}},rt=function(Fe){Fe.addCommand("mceInsertTemplate",h(ne,Fe)),Fe.addCommand("mceTemplate",V(Fe,$e(Fe)))},ct=function(Fe){Fe.on("PreProcess",function(We){var Ye=Fe.dom,Ke=z(Fe);w.each(Ye.select("div",We.node),function(mt){Ye.hasClass(mt,"mceTmpl")&&(w.each(Ye.select("*",mt),function(Ct){Ye.hasClass(Ct,T(Fe).replace(/\s+/g,"|"))&&(Ct.innerHTML=te(Fe,Ke))}),fe(Fe,mt))})})},lt=function(Fe){var We=function(){return Fe.execCommand("mceTemplate")};Fe.ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:We}),Fe.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:We})};function ot(){e.add("template",function(Fe){lt(Fe),rt(Fe),ct(Fe)})}ot()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager");function t(){e.add("textcolor",function(){})}t()})();(function(){var e=function(Ze){var St=Ze,Gt=function(){return St},Xt=function(On){St=On};return{get:Gt,set:Xt}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){return n=Object.assign||function(St){for(var Gt,Xt=1,On=arguments.length;Xt<On;Xt++){Gt=arguments[Xt];for(var Dn in Gt)Object.prototype.hasOwnProperty.call(Gt,Dn)&&(St[Dn]=Gt[Dn])}return St},n.apply(this,arguments)};function r(Ze,St,Gt){if(Gt||arguments.length===2)for(var Xt=0,On=St.length,Dn;Xt<On;Xt++)(Dn||!(Xt in St))&&(Dn||(Dn=Array.prototype.slice.call(St,0,Xt)),Dn[Xt]=St[Xt]);return Ze.concat(Dn||Array.prototype.slice.call(St))}var i=function(Ze){var St=typeof Ze;return Ze===null?"null":St==="object"&&(Array.prototype.isPrototypeOf(Ze)||Ze.constructor&&Ze.constructor.name==="Array")?"array":St==="object"&&(String.prototype.isPrototypeOf(Ze)||Ze.constructor&&Ze.constructor.name==="String")?"string":St},l=function(Ze){return function(St){return i(St)===Ze}},u=l("string"),f=l("object"),v=l("array"),h=function(){},g=function(Ze){return function(){return Ze}},y=function(Ze){return Ze},w=function(Ze){return function(){throw new Error(Ze)}},C=g(!1),S=g(!0),T=function(){return B},B=function(){var Ze=function(Xt){return Xt()},St=y,Gt={fold:function(Xt,On){return Xt()},isSome:C,isNone:S,getOr:St,getOrThunk:Ze,getOrDie:function(Xt){throw new Error(Xt||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:St,orThunk:Ze,map:T,each:h,bind:T,exists:C,forall:S,filter:function(){return T()},toArray:function(){return[]},toString:g("none()")};return Gt}(),F=function(Ze){var St=g(Ze),Gt=function(){return On},Xt=function(Dn){return Dn(Ze)},On={fold:function(Dn,xr){return xr(Ze)},isSome:S,isNone:C,getOr:St,getOrThunk:St,getOrDie:St,getOrNull:St,getOrUndefined:St,or:Gt,orThunk:Gt,map:function(Dn){return F(Dn(Ze))},each:function(Dn){Dn(Ze)},bind:Xt,exists:Xt,forall:Xt,filter:function(Dn){return Dn(Ze)?On:B},toArray:function(){return[Ze]},toString:function(){return"some("+Ze+")"}};return On},R=function(Ze){return Ze==null?B:F(Ze)},N={some:F,none:T,from:R},A=Array.prototype.slice,X=Array.prototype.indexOf,Z=function(Ze,St){return X.call(Ze,St)},z=function(Ze,St){return Z(Ze,St)>-1},Y=function(Ze,St){for(var Gt=Ze.length,Xt=new Array(Gt),On=0;On<Gt;On++){var Dn=Ze[On];Xt[On]=St(Dn,On)}return Xt},Q=function(Ze,St){for(var Gt=0,Xt=Ze.length;Gt<Xt;Gt++){var On=Ze[Gt];St(On,Gt)}},$=function(Ze,St){for(var Gt=Ze.length-1;Gt>=0;Gt--){var Xt=Ze[Gt];St(Xt,Gt)}},te=function(Ze,St){for(var Gt=[],Xt=0,On=Ze.length;Xt<On;Xt++){var Dn=Ze[Xt];St(Dn,Xt)&&Gt.push(Dn)}return Gt},V=function(Ze,St,Gt){return $(Ze,function(Xt,On){Gt=St(Gt,Xt,On)}),Gt},K=function(Ze,St,Gt){return Q(Ze,function(Xt,On){Gt=St(Gt,Xt,On)}),Gt},fe=function(Ze,St,Gt){for(var Xt=0,On=Ze.length;Xt<On;Xt++){var Dn=Ze[Xt];if(St(Dn,Xt))return N.some(Dn);if(Gt(Dn,Xt))break}return N.none()},de=function(Ze,St){return fe(Ze,St,C)},ne=function(Ze,St){for(var Gt=0,Xt=Ze.length;Gt<Xt;++Gt){var On=Ze[Gt];if(St(On,Gt)!==!0)return!1}return!0},le=function(Ze,St){var Gt=A.call(Ze,0);return Gt.sort(St),Gt},_e=function(Ze,St){return St>=0&&St<Ze.length?N.some(Ze[St]):N.none()},M=function(Ze){return _e(Ze,0)},P=Object.keys,U=Object.hasOwnProperty,j=function(Ze,St){return U.call(Ze,St)},ee=function(Ze){if(!v(Ze))throw new Error("cases must be an array");if(Ze.length===0)throw new Error("there must be at least one case");var St=[],Gt={};return Q(Ze,function(Xt,On){var Dn=P(Xt);if(Dn.length!==1)throw new Error("one and only one name per case");var xr=Dn[0],Nr=Xt[xr];
217if(Gt[xr]!==void 0)throw new Error("duplicate key detected:"+xr);if(xr==="cata")throw new Error("cannot have a case named cata (sorry)");if(!v(Nr))throw new Error("case arguments must be an array");St.push(xr),Gt[xr]=function(){for(var To=[],Bn=0;Bn<arguments.length;Bn++)To[Bn]=arguments[Bn];var po=To.length;if(po!==Nr.length)throw new Error("Wrong number of arguments to case "+xr+". Expected "+Nr.length+" ("+Nr+"), got "+po);var Zo=function(Za){var os=P(Za);if(St.length!==os.length)throw new Error("Wrong number of arguments to match. Expected: "+St.join(",")+` 218Actual: `+os.join(","));var ua=ne(St,function(Xu){return z(os,Xu)});if(!ua)throw new Error("Not all branches were specified when using match. Specified: "+os.join(", ")+` 219Required: `+St.join(", "));return Za[xr].apply(null,To)};return{fold:function(){for(var Za=[],os=0;os<arguments.length;os++)Za[os]=arguments[os];if(Za.length!==Ze.length)throw new Error("Wrong number of arguments to fold. Expected "+Ze.length+", got "+Za.length);var ua=Za[On];return ua.apply(null,To)},match:Zo,log:function(Za){console.log(Za,{constructors:St,constructor:xr,params:To})}}}}),Gt},ye={generate:ee};ye.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ie=function(Ze){var St=[],Gt=[];return Q(Ze,function(Xt){Xt.fold(function(On){St.push(On)},function(On){Gt.push(On)})}),{errors:St,values:Gt}},he=function(Ze){var St=function(Zo){return he(Ze)},Gt=function(Zo){return he(Ze)},Xt=function(Zo){return he(Zo(Ze))},On=function(Zo){return he(Ze)},Dn=function(Zo){Zo(Ze)},xr=function(Zo){return Zo(Ze)},Nr=function(Zo,Za){return Za(Ze)},To=function(Zo){return Zo(Ze)},Bn=function(Zo){return Zo(Ze)},po=function(){return N.some(Ze)};return{isValue:S,isError:C,getOr:g(Ze),getOrThunk:g(Ze),getOrDie:g(Ze),or:St,orThunk:Gt,fold:Nr,map:Xt,mapError:On,each:Dn,bind:xr,exists:To,forall:Bn,toOptional:po}},re=function(Ze){var St=function(Bn){return Bn()},Gt=function(){return w(String(Ze))()},Xt=y,On=function(Bn){return Bn()},Dn=function(Bn){return re(Ze)},xr=function(Bn){return re(Bn(Ze))},Nr=function(Bn){return re(Ze)},To=function(Bn,po){return Bn(Ze)};return{isValue:C,isError:S,getOr:y,getOrThunk:St,getOrDie:Gt,or:Xt,orThunk:On,fold:To,map:Dn,mapError:xr,each:h,bind:Nr,exists:C,forall:S,toOptional:N.none}},be=function(Ze,St){return Ze.fold(function(){return re(St)},he)},Ae={value:he,error:re,fromOption:be},Te=function(Ze){return Ze.type==="inline-command"||Ze.type==="inline-format"},Ue=function(Ze){return Ze.type==="block-command"||Ze.type==="block-format"},Oe=function(Ze){return le(Ze,function(St,Gt){return St.start.length===Gt.start.length?0:St.start.length>Gt.start.length?-1:1})},De=function(Ze){var St=function(Dn){return Ae.error({message:Dn,pattern:Ze})},Gt=function(Dn,xr,Nr){if(Ze.format!==void 0){var To=void 0;if(v(Ze.format)){if(!ne(Ze.format,u))return St(Dn+" pattern has non-string items in the `format` array");To=Ze.format}else if(u(Ze.format))To=[Ze.format];else return St(Dn+" pattern has non-string `format` parameter");return Ae.value(xr(To))}else return Ze.cmd!==void 0?u(Ze.cmd)?Ae.value(Nr(Ze.cmd,Ze.value)):St(Dn+" pattern has non-string `cmd` parameter"):St(Dn+" pattern is missing both `format` and `cmd` parameters")};if(!f(Ze))return St("Raw pattern is not an object");if(!u(Ze.start))return St("Raw pattern is missing `start` parameter");if(Ze.end!==void 0){if(!u(Ze.end))return St("Inline pattern has non-string `end` parameter");if(Ze.start.length===0&&Ze.end.length===0)return St("Inline pattern has empty `start` and `end` parameters");var Xt=Ze.start,On=Ze.end;return On.length===0&&(On=Xt,Xt=""),Gt("Inline",function(Dn){return{type:"inline-format",start:Xt,end:On,format:Dn}},function(Dn,xr){return{type:"inline-command",start:Xt,end:On,cmd:Dn,value:xr}})}else return Ze.replacement!==void 0?u(Ze.replacement)?Ze.start.length===0?St("Replacement pattern has empty `start` parameter"):Ae.value({type:"inline-command",start:"",end:Ze.start,cmd:"mceInsertContent",value:Ze.replacement}):St("Replacement pattern has non-string `replacement` parameter"):Ze.start.length===0?St("Block pattern has empty `start` parameter"):Gt("Block",function(Dn){return{type:"block-format",start:Ze.start,format:Dn[0]}},function(Dn,xr){return{type:"block-command",start:Ze.start,cmd:Dn,value:xr}})},$e=function(Ze){if(Ze.type==="block-command")return{start:Ze.start,cmd:Ze.cmd,value:Ze.value};if(Ze.type==="block-format")return{start:Ze.start,format:Ze.format};
219if(Ze.type==="inline-command")return Ze.cmd==="mceInsertContent"&&Ze.start===""?{start:Ze.end,replacement:Ze.value}:{start:Ze.start,end:Ze.end,cmd:Ze.cmd,value:Ze.value};if(Ze.type==="inline-format")return{start:Ze.start,end:Ze.end,format:Ze.format.length===1?Ze.format[0]:Ze.format}},rt=function(Ze){return{inlinePatterns:te(Ze,Te),blockPatterns:Oe(te(Ze,Ue))}},ct=function(Ze){var St=function(Xt){var On=ie(Y(Xt,De));if(On.errors.length>0){var Dn=On.errors[0];throw new Error(Dn.message+`: 220`+JSON.stringify(Dn.pattern,null,2))}Ze.set(rt(On.values))},Gt=function(){return r(r([],Y(Ze.get().inlinePatterns,$e),!0),Y(Ze.get().blockPatterns,$e),!0)};return{setPatterns:St,getPatterns:Gt}},lt=typeof window!="undefined"?window:Function("return this;")(),ot=function(){for(var Ze=[],St=0;St<arguments.length;St++)Ze[St]=arguments[St];var Gt=lt.console;Gt&&(Gt.error?Gt.error.apply(Gt,Ze):Gt.log.apply(Gt,Ze))},Fe=[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}],We=function(Ze){var St=Ze.getParam("textpattern_patterns",Fe,"array");if(!v(St))return ot("The setting textpattern_patterns should be an array"),{inlinePatterns:[],blockPatterns:[]};var Gt=ie(Y(St,De));return Q(Gt.errors,function(Xt){return ot(Xt.message,Xt.pattern)}),rt(Gt.values)},Ye=function(Ze){var St=Ze.getParam("forced_root_block","p");return St===!1?"":St===!0?"p":St},Ke=tinymce.util.Tools.resolve("tinymce.util.Delay"),mt=tinymce.util.Tools.resolve("tinymce.util.VK"),Ct="\uFEFF",bt="\xA0",tn=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ft=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),It=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),Et=function(Ze,St){return{container:Ze,offset:St}},At=function(Ze){return Ze.nodeType===Node.TEXT_NODE},vt=function(Ze,St,Gt){if(St&&Ze.isEmpty(St)&&!Gt(St)){var Xt=St.parentNode;Ze.remove(St),vt(Ze,Xt,Gt)}},Tt=function(Ze,St,Gt,Xt){Xt===void 0&&(Xt=!0);var On=St.startContainer.parentNode,Dn=St.endContainer.parentNode;St.deleteContents(),Xt&&!Gt(St.startContainer)&&(At(St.startContainer)&&St.startContainer.data.length===0&&Ze.remove(St.startContainer),At(St.endContainer)&&St.endContainer.data.length===0&&Ze.remove(St.endContainer),vt(Ze,On,Gt),On!==Dn&&vt(Ze,Dn,Gt))},Wt=function(Ze,St){var Gt=St.get(Ze);return v(Gt)&&M(Gt).exists(function(Xt){return j(Xt,"block")})},xt=function(Ze){return Ze.start.length===0},at=function(Ze,St){var Gt=N.from(Ze.dom.getParent(St.startContainer,Ze.dom.isBlock));return Ye(Ze)===""?Gt.orThunk(function(){return N.some(Ze.getBody())}):Gt},_t=Ft.DOM,en=function(Ze){return function(St){return Ze===St?-1:0}},An=function(Ze){return function(St){return Ze.isBlock(St)||z(["BR","IMG","HR","INPUT"],St.nodeName)||Ze.getContentEditable(St)==="false"}},Vt=function(Ze,St,Gt){if(At(Ze)&&St>=0)return N.some(Et(Ze,St));var Xt=It(_t);return N.from(Xt.backwards(Ze,St,en(Ze),Gt)).map(function(On){return Et(On.container,On.container.data.length)})},_n=function(Ze,St,Gt){if(At(Ze)&&St>=Ze.length)return N.some(Et(Ze,St));var Xt=It(_t);return N.from(Xt.forwards(Ze,St,en(Ze),Gt)).map(function(On){return Et(On.container,0)})},Mt=function(Ze,St,Gt){if(!At(Ze))return N.none();var Xt=Ze.textContent;if(St>=0&&St<=Xt.length)return N.some(Et(Ze,St));var On=It(_t);return N.from(On.backwards(Ze,St,en(Ze),Gt)).bind(function(Dn){var xr=Dn.container.data;return Mt(Dn.container,St+xr.length,Gt)})},pn=function(Ze,St,Gt){if(!At(Ze))return N.none();var Xt=Ze.textContent;if(St<=Xt.length)return N.some(Et(Ze,St));var On=It(_t);return N.from(On.forwards(Ze,St,en(Ze),Gt)).bind(function(Dn){return pn(Dn.container,St-Xt.length,Gt)})},En=function(Ze,St,Gt,Xt,On){var Dn=It(Ze,An(Ze));return N.from(Dn.backwards(St,Gt,Xt,On))},zn=function(Ze,St,Gt){if(At(St)&&(Gt<0||Gt>St.data.length))return[];for(var Xt=[Gt],On=St;On!==Ze&&On.parentNode;){for(var Dn=On.parentNode,xr=0;xr<Dn.childNodes.length;xr++)if(Dn.childNodes[xr]===On){Xt.push(xr);break}On=Dn}return On===Ze?Xt.reverse():[]},nn=function(Ze,St,Gt,Xt,On){var Dn=zn(Ze,St,Gt),xr=zn(Ze,Xt,On);return{start:Dn,end:xr}},Yn=function(Ze,St){var Gt=St.slice(),Xt=Gt.pop(),On=K(Gt,function(Dn,xr){return Dn.bind(function(Nr){return N.from(Nr.childNodes[xr])})},N.some(Ze));return On.bind(function(Dn){return At(Dn)&&(Xt<0||Xt>Dn.data.length)?N.none():N.some({node:Dn,offset:Xt})})},qr=function(Ze,St){return Yn(Ze,St.start).bind(function(Gt){var Xt=Gt.node,On=Gt.offset;return Yn(Ze,St.end).map(function(Dn){var xr=Dn.node,Nr=Dn.offset,To=document.createRange();return To.setStart(Xt,On),To.setEnd(xr,Nr),To})})},Br=function(Ze,St){return nn(Ze,St.startContainer,St.startOffset,St.endContainer,St.endOffset)},io=function(Ze,St,Gt){var Xt=_n(St,0,St);Xt.each(function(On){var Dn=On.container;pn(Dn,Gt.start.length,St).each(function(xr){var Nr=Ze.createRng();Nr.setStart(Dn,0),Nr.setEnd(xr.container,xr.offset),Tt(Ze,Nr,function(To){return To===St})})})},xa=function(Ze,St){var Gt=Ze.dom,Xt=St.pattern,On=qr(Gt.getRoot(),St.range).getOrDie("Unable to resolve path range");return at(Ze,On).each(function(Dn){Xt.type==="block-format"?Wt(Xt.format,Ze.formatter)&&Ze.undoM
220anager.transact(function(){io(Ze.dom,Dn,Xt),Ze.formatter.apply(Xt.format)}):Xt.type==="block-command"&&Ze.undoManager.transact(function(){io(Ze.dom,Dn,Xt),Ze.execCommand(Xt.cmd,!1,Xt.value)})}),!0},Di=function(Ze,St){var Gt=St.replace(bt," ");return de(Ze,function(Xt){return St.indexOf(Xt.start)===0||Gt.indexOf(Xt.start)===0})},la=function(Ze,St){var Gt=Ze.dom,Xt=Ze.selection.getRng();return at(Ze,Xt).filter(function(On){var Dn=Ye(Ze),xr=Dn===""&&Gt.is(On,"body")||Gt.is(On,Dn);return On!==null&&xr}).bind(function(On){var Dn=On.textContent,xr=Di(St,Dn);return xr.map(function(Nr){return tn.trim(Dn).length===Nr.start.length?[]:[{pattern:Nr,range:nn(Gt.getRoot(),On,0,On,0)}]})}).getOr([])},Na=function(Ze,St){if(St.length!==0){var Gt=Ze.selection.getBookmark();Q(St,function(Xt){return xa(Ze,Xt)}),Ze.selection.moveToBookmark(Gt)}},Bi=0,Ps=function(Ze){var St=new Date,Gt=St.getTime(),Xt=Math.floor(Math.random()*1e9);return Bi++,Ze+"_"+Xt+Bi+String(Gt)},rs=function(Ze,St,Gt){return St===""||Ze.length>=St.length&&Ze.substr(Gt,Gt+St.length)===St},Ai=function(Ze,St){return rs(Ze,St,Ze.length-St.length)},el=function(Ze,St){return Ze.create("span",{"data-mce-type":"bookmark",id:St})},ga=function(Ze,St){var Gt=Ze.createRng();return Gt.setStartAfter(St.start),Gt.setEndBefore(St.end),Gt},_s=function(Ze,St,Gt){var Xt=qr(Ze.getRoot(),Gt).getOrDie("Unable to resolve path range"),On=Xt.startContainer,Dn=Xt.endContainer,xr=Xt.endOffset===0?Dn:Dn.splitText(Xt.endOffset),Nr=Xt.startOffset===0?On:On.splitText(Xt.startOffset);return{prefix:St,end:xr.parentNode.insertBefore(el(Ze,St+"-end"),xr),start:Nr.parentNode.insertBefore(el(Ze,St+"-start"),Nr)}},fo=function(Ze,St,Gt){vt(Ze,Ze.get(St.prefix+"-end"),Gt),vt(Ze,Ze.get(St.prefix+"-start"),Gt)},il=function(Ze,St,Gt){return function(Xt,On){var Dn=Xt.data,xr=Dn.substring(0,On),Nr=xr.lastIndexOf(Gt.charAt(Gt.length-1)),To=xr.lastIndexOf(Gt);return To!==-1?To+Gt.length:Nr!==-1?Nr+1:-1}},Fs=function(Ze,St,Gt,Xt){var On=St.start,Dn=En(Ze,Xt.container,Xt.offset,il(Ze,Gt,On),Gt);return Dn.bind(function(xr){if(xr.offset>=On.length){var Nr=Ze.createRng();return Nr.setStart(xr.container,xr.offset-On.length),Nr.setEnd(xr.container,xr.offset),N.some(Nr)}else{var To=xr.offset-On.length;return Mt(xr.container,To,Gt).map(function(Bn){var po=Ze.createRng();return po.setStart(Bn.container,Bn.offset),po.setEnd(xr.container,xr.offset),po}).filter(function(Bn){return Bn.toString()===On}).orThunk(function(){return Fs(Ze,St,Gt,Et(xr.container,0))})}})},us=function(Ze,St,Gt,Xt,On,Dn){if(Dn===void 0&&(Dn=!1),St.start.length===0&&!Dn){var xr=Ze.createRng();return xr.setStart(Gt,Xt),xr.setEnd(Gt,Xt),N.some(xr)}return Vt(Gt,Xt,On).bind(function(Nr){var To=Fs(Ze,St,On,Nr);return To.bind(function(Bn){if(Dn){if(Bn.endContainer===Nr.container&&Bn.endOffset===Nr.offset)return N.none();if(Nr.offset===0&&Bn.endContainer.textContent.length===Bn.endOffset)return N.none()}return N.some(Bn)})})},cs=function(Ze,St,Gt){var Xt=Ze.dom,On=Xt.getRoot(),Dn=Gt.pattern,xr=Gt.position.container,Nr=Gt.position.offset;return Mt(xr,Nr-Gt.pattern.end.length,St).bind(function(To){var Bn=nn(On,To.container,To.offset,xr,Nr);if(xt(Dn))return N.some({matches:[{pattern:Dn,startRng:Bn,endRng:Bn}],position:To});var po=sl(Ze,Gt.remainingPatterns,To.container,To.offset,St),Zo=po.getOr({matches:[],position:To}),Za=Zo.position,os=us(Xt,Dn,Za.container,Za.offset,St,po.isNone());return os.map(function(ua){var Xu=Br(On,ua);return{matches:Zo.matches.concat([{pattern:Dn,startRng:Xu,endRng:Bn}]),position:Et(ua.startContainer,ua.startOffset)}})})},sl=function(Ze,St,Gt,Xt,On){var Dn=Ze.dom;return Vt(Gt,Xt,Dn.getRoot()).bind(function(xr){var Nr=Dn.createRng();Nr.setStart(On,0),Nr.setEnd(Gt,Xt);for(var To=Nr.toString(),Bn=0;Bn<St.length;Bn++){var po=St[Bn];if(!!Ai(To,po.end)){var Zo=St.slice();Zo.splice(Bn,1);var Za=cs(Ze,On,{pattern:po,remainingPatterns:Zo,position:xr});if(Za.isSome())return Za}}return N.none()})},wi=function(Ze,St,Gt){Ze.selection.setRng(Gt),St.type==="inline-format"?Q(St.format,function(Xt){Ze.formatter.apply(Xt)}):Ze.execCommand(St.cmd,!1,St.value)},bo=function(Ze,St,Gt,Xt){var On=ga(Ze.dom,Gt);
220Tt(Ze.dom,On,Xt),wi(Ze,St,On)},pl=function(Ze,St,Gt,Xt,On){var Dn=Ze.dom,xr=ga(Dn,Xt),Nr=ga(Dn,Gt);Tt(Dn,Nr,On),Tt(Dn,xr,On);var To={prefix:Gt.prefix,start:Gt.end,end:Xt.start},Bn=ga(Dn,To);wi(Ze,St,Bn)},zt=function(Ze,St){var Gt=Ps("mce_textpattern"),Xt=V(St,function(On,Dn){var xr=_s(Ze,Gt+("_end"+On.length),Dn.endRng);return On.concat([n(n({},Dn),{endMarker:xr})])},[]);return V(Xt,function(On,Dn){var xr=Xt.length-On.length-1,Nr=xt(Dn.pattern)?Dn.endMarker:_s(Ze,Gt+("_start"+xr),Dn.startRng);return On.concat([n(n({},Dn),{startMarker:Nr})])},[])},an=function(Ze,St,Gt){var Xt=Ze.selection.getRng();return Xt.collapsed===!1?[]:at(Ze,Xt).bind(function(On){var Dn=Xt.startOffset-(Gt?1:0);return sl(Ze,St,Xt.startContainer,Dn,On)}).fold(function(){return[]},function(On){return On.matches})},Rt=function(Ze,St){if(St.length!==0){var Gt=Ze.dom,Xt=Ze.selection.getBookmark(),On=zt(Gt,St);Q(On,function(Dn){var xr=Gt.getParent(Dn.startMarker.start,Gt.isBlock),Nr=function(To){return To===xr};xt(Dn.pattern)?bo(Ze,Dn.pattern,Dn.endMarker,Nr):pl(Ze,Dn.pattern,Dn.startMarker,Dn.endMarker,Nr),fo(Gt,Dn.endMarker,Nr),fo(Gt,Dn.startMarker,Nr)}),Ze.selection.moveToBookmark(Xt)}},Nn=function(Ze,St){if(!Ze.selection.isCollapsed())return!1;var Gt=an(Ze,St.inlinePatterns,!1),Xt=la(Ze,St.blockPatterns);return Xt.length>0||Gt.length>0?(Ze.undoManager.add(),Ze.undoManager.extra(function(){Ze.execCommand("mceInsertNewLine")},function(){Ze.insertContent(Ct,{preserve_zwsp:!0}),Rt(Ze,Gt),Na(Ze,Xt);var On=Ze.selection.getRng(),Dn=Vt(On.startContainer,On.startOffset,Ze.dom.getRoot());Ze.execCommand("mceInsertNewLine"),Dn.each(function(xr){var Nr=xr.container;Nr.data.charAt(xr.offset-1)===Ct&&(Nr.deleteData(xr.offset-1,1),vt(Ze.dom,Nr.parentNode,function(To){return To===Ze.dom.getRoot()}))})}),!0):!1},Er=function(Ze,St){var Gt=an(Ze,St.inlinePatterns,!0);Gt.length>0&&Ze.undoManager.transact(function(){Rt(Ze,Gt)})},Yr=function(Ze,St,Gt){for(var Xt=0;Xt<Ze.length;Xt++)if(Gt(Ze[Xt],St))return!0;return!1},ft=function(Ze,St){return Yr(Ze,St,function(Gt,Xt){return Gt===Xt.keyCode&&mt.modifierPressed(Xt)===!1})},Bt=function(Ze,St){return Yr(Ze,St,function(Gt,Xt){return Gt.charCodeAt(0)===Xt.charCode})},Rn=function(Ze,St){var Gt=[",",".",";",":","!","?"],Xt=[32];Ze.on("keydown",function(On){On.keyCode===13&&!mt.modifierPressed(On)&&Nn(Ze,St.get())&&On.preventDefault()},!0),Ze.on("keyup",function(On){ft(Xt,On)&&Er(Ze,St.get())}),Ze.on("keypress",function(On){Bt(Gt,On)&&Ke.setEditorTimeout(Ze,function(){Er(Ze,St.get())})})};function Qn(){t.add("textpattern",function(Ze){var St=e(We(Ze));return Rn(Ze,St),ct(St)})}Qn()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),n=tinymce.util.Tools.resolve("tinymce.util.I18n"),r=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(Q){return Q.getParam("toc_class","mce-toc")},l=function(Q){var $=Q.getParam("toc_header","h2");return/^h[1-6]$/.test($)?$:"h2"},u=function(Q){var $=parseInt(Q.getParam("toc_depth","3"),10);return $>=1&&$<=9?$:3},f=function(Q){var $=0;return function(){var te=new Date().getTime().toString(32);return Q+te+($++).toString(32)}},v=f("mcetoc_"),h=function(Q){var $,te=[];for($=1;$<=Q;$++)te.push("h"+$);return te.join(",")},g=function(Q){return y(Q).length>0},y=function(Q){var $=i(Q),te=l(Q),V=h(u(Q)),K=Q.$(V);return K.length&&/^h[1-9]$/i.test(te)&&(K=K.filter(function(fe,de){return!Q.dom.hasClass(de.parentNode,$)})),r.map(K,function(fe){var de=fe.id;return{id:de||v(),level:parseInt(fe.nodeName.replace(/^H/i,""),10),title:Q.$.text(fe),element:fe}})},w=function(Q){for(var $=9,te=0;te<Q.length;te++)if(Q[te].level<$&&($=Q[te].level),$===1)return $;return $},C=function(Q,$){var te="<"+Q+' contenteditable="true">',V="</"+Q+">";return te+t.DOM.encode($)+V},S=function(Q){var $=T(Q);return'<div class="'+Q.dom.encode(i(Q))+'" contenteditable="false">'+$+"</div>"},T=function(Q){var $="",te=y(Q),V=w(te)-1;if(!te.length)return"";$+=C(l(Q),n.translate("Table of Contents"));for(var K=0;K<te.length;K++){var fe=te[K];fe.element.id=fe.id;var de=te[K+1]&&te[K+1].level;if(V===fe.level)$+="<li>";else for(var ne=V;ne<fe.level;ne++)$+="<ul><li>";if($+='<a href="#'+fe.id+'">'+fe.title+"</a>",de===fe.level||!de)$+="</li>",de||($+="</ul>");else for(var ne=fe.level;ne>de;ne--)ne===de+1?$+="</li></ul><li>":$+="</li></ul>";V=fe.level}return $},B=function(Q,$){return!$.length||Q.dom.getParents($[0],".mce-offscreen-selection").length>0},F=function(Q){var $=i(Q),te=Q.$("."+$);B(Q,te)?Q.insertContent(S(Q)):R(Q)},R=function(Q){var $=i(Q),te=Q.$("."+$);te.length&&Q.undoManager.transact(function(){te.html(T(Q))})},N=function(Q){Q.addCommand("mceInsertToc",function(){F(Q)}),Q.addCommand("mceUpdateToc",function(){R(Q)})},A=function(Q){var $=Q.$,te=i(Q);Q.on("PreProcess",function(V){var K=$("."+te,V.node);K.length&&(K.removeAttr("contentEditable"),K.find("[contenteditable]").removeAttr("contentEditable"))}),Q.on("SetContent",function(){var V=$("."+te);V.length&&(V.attr("contentEditable",!1),V.children(":first-child").attr("contentEditable",!0))})},X=function(Q){return function($){var te=function(){return $.setDisabled(Q.mode.isReadOnly()||!g(Q))};return te(),Q.on("LoadContent SetContent change",te),function(){return Q.on("LoadContent SetContent change",te)}}},Z=function(Q){return function($){return $&&Q.dom.is($,"."+i(Q))&&Q.getBody().contains($)}},z=function(Q){var $=function(){return Q.execCommand("mceInsertToc")};Q.ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of contents",onAction:$,onSetup:X(Q)}),Q.ui.registry.addButton("tocupdate",{icon:"reload",tooltip:"Update",onAction:function(){return Q.execCommand("mceUpdateToc")}}),Q.ui.registry.addMenuItem("toc",{icon:"toc",text:"Table of contents",onAction:$,onSetup:X(Q)}),Q.ui.registry.addContextToolbar("toc",{items:"tocupdate",predicate:Z(Q),scope:"node",position:"node"})};function Y(){e.add("toc",function(Q){N(Q),z(Q),A(Q)})}Y()})();(function(){var e=function(g){var y=g,w=function(){return y},C=function(S){y=S};return{get:w,set:C}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(g,y){g.fire("VisualBlocks",{state:y})},r=function(g,y,w){var C=g.dom;C.toggleClass(g.getBody(),"mce-visualblocks"),w.set(!w.get()),n(g,w.get())},i=function(g,y,w){g.addCommand("mceVisualBlocks",function(){r(g,y,w)})},l=function(g){return g.getParam("visualblocks_default_state",!1,"boolean")},u=function(g,y,w){g.on("PreviewFormats AfterPreviewFormats",function(C){w.get()&&g.dom.toggleClass(g.getBody(),"mce-visualblocks",C.type==="afterpreviewformats")}),g.on("init",function(){l(g)&&r(g,y,w)})}
220,f=function(g,y){return function(w){w.setActive(y.get());var C=function(S){return w.setActive(S.state)};return g.on("VisualBlocks",C),function(){return g.off("VisualBlocks",C)}}},v=function(g,y){var w=function(){return g.execCommand("mceVisualBlocks")};g.ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:w,onSetup:f(g,y)}),g.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:w,onSetup:f(g,y)})};function h(){t.add("visualblocks",function(g,y){var w=e(!1);i(g,y,w),v(g,w),u(g,y,w)})}h()})();(function(){var e=function(Mt){var pn=Mt,En=function(){return pn},zn=function(nn){pn=nn};return{get:En,set:zn}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(Mt){var pn=function(){return Mt.get()};return{isEnabled:pn}},r=function(Mt,pn){return Mt.fire("VisualChars",{state:pn})},i=function(Mt){var pn=typeof Mt;return Mt===null?"null":pn==="object"&&(Array.prototype.isPrototypeOf(Mt)||Mt.constructor&&Mt.constructor.name==="Array")?"array":pn==="object"&&(String.prototype.isPrototypeOf(Mt)||Mt.constructor&&Mt.constructor.name==="String")?"string":pn},l=function(Mt){return function(pn){return i(pn)===Mt}},u=function(Mt){return function(pn){return typeof pn===Mt}},f=l("string"),v=u("boolean"),h=u("number"),g=function(){},y=function(Mt){return function(){return Mt}},w=function(Mt){return Mt},C=y(!1),S=y(!0),T=function(){return B},B=function(){var Mt=function(zn){return zn()},pn=w,En={fold:function(zn,nn){return zn()},isSome:C,isNone:S,getOr:pn,getOrThunk:Mt,getOrDie:function(zn){throw new Error(zn||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:pn,orThunk:Mt,map:T,each:g,bind:T,exists:C,forall:S,filter:function(){return T()},toArray:function(){return[]},toString:y("none()")};return En}(),F=function(Mt){var pn=y(Mt),En=function(){return nn},zn=function(Yn){return Yn(Mt)},nn={fold:function(Yn,qr){return qr(Mt)},isSome:S,isNone:C,getOr:pn,getOrThunk:pn,getOrDie:pn,getOrNull:pn,getOrUndefined:pn,or:En,orThunk:En,map:function(Yn){return F(Yn(Mt))},each:function(Yn){Yn(Mt)},bind:zn,exists:zn,forall:zn,filter:function(Yn){return Yn(Mt)?nn:B},toArray:function(){return[Mt]},toString:function(){return"some("+Mt+")"}};return nn},R=function(Mt){return Mt==null?B:F(Mt)},N={some:F,none:T,from:R},A=function(Mt,pn){for(var En=Mt.length,zn=new Array(En),nn=0;nn<En;nn++){var Yn=Mt[nn];zn[nn]=pn(Yn,nn)}return zn},X=function(Mt,pn){for(var En=0,zn=Mt.length;En<zn;En++){var nn=Mt[En];pn(nn,En)}},Z=function(Mt,pn){for(var En=[],zn=0,nn=Mt.length;zn<nn;zn++){var Yn=Mt[zn];pn(Yn,zn)&&En.push(Yn)}return En},z=Object.keys,Y=function(Mt,pn){for(var En=z(Mt),zn=0,nn=En.length;zn<nn;zn++){var Yn=En[zn],qr=Mt[Yn];pn(qr,Yn)}};typeof window!="undefined"||Function("return this;")();var Q=3,$=function(Mt){return Mt.dom.nodeType},te=function(Mt){return Mt.dom.nodeValue},V=function(Mt){return function(pn){return $(pn)===Mt}},K=V(Q),fe=function(Mt,pn,En){if(f(En)||v(En)||h(En))Mt.setAttribute(pn,En+"");else throw console.error("Invalid call to Attribute.set. Key ",pn,":: Value ",En,":: Element ",Mt),new Error("Attribute value was not simple")},de=function(Mt,pn,En){fe(Mt.dom,pn,En)},ne=function(Mt,pn){var En=Mt.dom.getAttribute(pn);return En===null?void 0:En},le=function(Mt,pn){Mt.dom.removeAttribute(pn)},_e=function(Mt,pn){var En=ne(Mt,pn);return En===void 0||En===""?[]:En.split(" ")},M=function(Mt,pn,En){var zn=_e(Mt,pn),nn=zn.concat([En]);return de(Mt,pn,nn.join(" ")),!0},P=function(Mt,pn,En){var zn=Z(_e(Mt,pn),function(nn){return nn!==En});return zn.length>0?de(Mt,pn,zn.join(" ")):le(Mt,pn),!1},U=function(Mt){return Mt.dom.classList!==void 0},j=function(Mt){return _e(Mt,"class")},ee=function(Mt,pn){return M(Mt,"class",pn)},ye=function(Mt,pn){return P(Mt,"class",pn)},ie=function(Mt,pn){U(Mt)?Mt.dom.classList.add(pn):ee(Mt,pn)},he=function(Mt){var pn=U(Mt)?Mt.dom.classList:j(Mt);pn.length===0&&le(Mt,"class")},re=function(Mt,pn){if(U(Mt)){var En=Mt.dom.classList;En.remove(pn)}else ye(Mt,pn);he(Mt)},be=function(Mt,pn){var En=pn||document,zn=En.createElement("div");if(zn.innerHTML=Mt,!zn.hasChildNodes()||zn.childNodes.length>1)throw console.error("HTML does not have a single root node",Mt),new Error("HTML must have a single root node");return Ue(zn.childNodes[0])},Ae=function(Mt,pn){var En=pn||document,zn=En.createElement(Mt);return Ue(zn)},Te=function(Mt,pn){var En=pn||document,zn=En.createTextNode(Mt);return Ue(zn)},Ue=function(Mt){if(Mt==null)throw new Error("Node cannot be null or undefined");return{dom:Mt}},Oe=function(Mt,pn,En){return N.from(Mt.dom.elementFromPoint(pn,En)).map(Ue)},De={fromHtml:be,fromTag:Ae,fromText:Te,fromDom:Ue,fromPoint:Oe},$e={"\xA0":"nbsp","\xAD":"shy"},rt=function(Mt,pn){var En="";return Y(Mt,function(zn,nn){En+=nn}),new RegExp("["+En+"]",pn?"g":"")},ct=function(Mt){var pn="";return Y(Mt,function(En){pn&&(pn+=","),pn+="span.mce-"+En}),pn},lt=rt($e),ot=rt($e,!0),Fe=ct($e),We="mce-nbsp",Ye=function(Mt){return'<span data-mce-bogus="1" class="mce-'+$e[Mt]+'">'+Mt+"</span>"},Ke=function(Mt){var pn=te(Mt);return K(Mt)&&pn!==void 0&<.test(pn)},mt=function(Mt,pn){var En=[],zn=Mt.dom,nn=A(zn.childNodes,De.fromDom);return X(nn,function(Yn){pn(Yn)&&(En=En.concat([Yn])),En=En.concat(mt(Yn,pn))}),En},Ct=function(Mt,pn){for(;Mt.parentNode;){if(Mt.parentNode===pn)return Mt;Mt=Mt.parentNode}},bt=function(Mt){return Mt.replace(ot,Ye)},tn=function(Mt){return Mt.nodeName.toLowerCase()==="span"&&Mt.classList.contains("mce-nbsp-wrap")},Ft=function(Mt,pn){var En=mt(De.fromDom(pn),Ke);X(En,function(zn){var nn=zn.dom.parentNode;if(tn(nn))ie(De.fromDom(nn),We);else{for(var Yn=bt(Mt.dom.encode(te(zn))),qr=Mt.dom.create("div",null,Yn),Br=void 0;Br=qr.lastChild;
220)Mt.dom.insertAfter(Br,zn.dom);Mt.dom.remove(zn.dom)}})},It=function(Mt,pn){var En=Mt.dom.select(Fe,pn);X(En,function(zn){tn(zn)?re(De.fromDom(zn),We):Mt.dom.remove(zn,!0)})},Et=function(Mt){var pn=Mt.getBody(),En=Mt.selection.getBookmark(),zn=Ct(Mt.selection.getNode(),pn);zn=zn!==void 0?zn:pn,It(Mt,zn),Ft(Mt,zn),Mt.selection.moveToBookmark(En)},At=function(Mt,pn){r(Mt,pn.get());var En=Mt.getBody();pn.get()===!0?Ft(Mt,En):It(Mt,En)},vt=function(Mt,pn){pn.set(!pn.get());var En=Mt.selection.getBookmark();At(Mt,pn),Mt.selection.moveToBookmark(En)},Tt=function(Mt,pn){Mt.addCommand("mceVisualChars",function(){vt(Mt,pn)})},Wt=function(Mt){return Mt.getParam("visualchars_default_state",!1)},xt=function(Mt){return Mt.getParam("forced_root_block")!==!1},at=function(Mt,pn){Mt.on("init",function(){At(Mt,pn)})},_t=tinymce.util.Tools.resolve("tinymce.util.Delay"),en=function(Mt,pn){var En=_t.debounce(function(){Et(Mt)},300);xt(Mt)&&Mt.on("keydown",function(zn){pn.get()===!0&&(zn.keyCode===13?Et(Mt):En())}),Mt.on("remove",En.stop)},An=function(Mt,pn){return function(En){En.setActive(pn.get());var zn=function(nn){return En.setActive(nn.state)};return Mt.on("VisualChars",zn),function(){return Mt.off("VisualChars",zn)}}},Vt=function(Mt,pn){var En=function(){return Mt.execCommand("mceVisualChars")};Mt.ui.registry.addToggleButton("visualchars",{tooltip:"Show invisible characters",icon:"visualchars",onAction:En,onSetup:An(Mt,pn)}),Mt.ui.registry.addToggleMenuItem("visualchars",{text:"Show invisible characters",icon:"visualchars",onAction:En,onSetup:An(Mt,pn)})};function _n(){t.add("visualchars",function(Mt){var pn=e(Wt(Mt));return Tt(Mt,pn),Vt(Mt,pn),en(Mt,pn),at(Mt,pn),n(pn)})}_n()})();(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(Oe){return Oe},n=function(){return n=Object.assign||function(De){for(var $e,rt=1,ct=arguments.length;rt<ct;rt++){$e=arguments[rt];for(var lt in $e)Object.prototype.hasOwnProperty.call($e,lt)&&(De[lt]=$e[lt])}return De},n.apply(this,arguments)},r="\uFEFF",i=function(Oe){return Oe.replace(/\uFEFF/g,"")},l=function(Oe,De){for(var $e=Oe.length,rt=new Array($e),ct=0;ct<$e;ct++){var lt=Oe[ct];rt[ct]=De(lt,ct)}return rt},u="[!-#%-*,-\\/:;?@\\[-\\]_{}\xA1\xAB\xB7\xBB\xBF;\xB7\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1361-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u3008\u3009\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30\u2E31\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]",f={aletter:"[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F3\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1A00-\u1A16\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BC0-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u24B6-\u24E9\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u303B\u303C\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790\uA791\uA7A0-\uA7A9\uA7FA-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
220D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]",midnumlet:"[-'\\.\u2018\u2019\u2024\uFE52\uFF07\uFF0E]",midletter:"[:\xB7\xB7\u05F4\u2027\uFE13\uFE55\uFF1A]",midnum:"[\xB1+*/,;;\u0589\u060C\u060D\u066C\u07F8\u2044\uFE10\uFE14\uFE50\uFE54\uFF0C\uFF1B]",numeric:"[0-9\u0660-\u0669\u066B\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9]",cr:"\\r",lf:"\\n",newline:"[\v\f\x85\u2028\u2029]",extend:"[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D02\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B6-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAA\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2\u1DC0-\u1DE6\u1DFC-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA67C\uA67D\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE26\uFF9E\uFF9F]",format:"[\xAD\u0600-\u0603\u06DD\u070F\u17B4\u17B5\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\uFEFF\uFFF9-\uFFFB]",katakana:"[\u3031-\u3035\u309B\u309C\u30A0-\u30FA\u30FC-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF9D]",extendnumlet:"[=_\u203F\u2040\u2054\uFE33\uFE34\uFE4D-\uFE4F\uFF3F\u2200-\u22FF<>]",punctuation:u},v={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},h=[new RegExp(f.aletter),new RegExp(f.midnumlet),new RegExp(f.midletter),new RegExp(f.midnum),new RegExp(f.numeric),new RegExp(f.cr),new RegExp(f.lf),new RegExp(f.newline),new RegExp(f.extend),new RegExp(f.format),new RegExp(f.katakana),new RegExp(f.extendnumlet),new RegExp("@")],g="",y=new RegExp("^"+f.punctuation+"$"),w=/^\s+$/,C=h,S=v.OTHER,T=function(Oe){for(var De=S,$e=C.length,rt=0;rt<$e;++rt){var ct=C[rt];if(ct&&ct.test(Oe)){De=rt;break}}return De},B=function(Oe){var De={};return function($e){if(De[$e])return De[$e];var rt=Oe($e);return De[$e]=rt,rt}},F=function(Oe){var De=B(T);return l(Oe,De)},R=function(Oe,De){var $e=Oe[De],rt=Oe[De+1];if(De<0||De>Oe.length-1&&De!==0||$e===v.ALETTER&&rt===v.ALETTER)return!1;var ct=Oe[De+2];if($e===v.ALETTER&&(rt===v.MIDLETTER||rt===v.MIDNUMLET||rt===v.AT)&&
220ct===v.ALETTER)return!1;var lt=Oe[De-1];return($e===v.MIDLETTER||$e===v.MIDNUMLET||rt===v.AT)&&rt===v.ALETTER&<===v.ALETTER||($e===v.NUMERIC||$e===v.ALETTER)&&(rt===v.NUMERIC||rt===v.ALETTER)||($e===v.MIDNUM||$e===v.MIDNUMLET)&&rt===v.NUMERIC&<===v.NUMERIC||$e===v.NUMERIC&&(rt===v.MIDNUM||rt===v.MIDNUMLET)&&ct===v.NUMERIC||$e===v.EXTEND||$e===v.FORMAT||lt===v.EXTEND||lt===v.FORMAT||rt===v.EXTEND||rt===v.FORMAT||$e===v.CR&&rt===v.LF?!1:$e===v.NEWLINE||$e===v.CR||$e===v.LF||rt===v.NEWLINE||rt===v.CR||rt===v.LF?!0:!($e===v.KATAKANA&&rt===v.KATAKANA||rt===v.EXTENDNUMLET&&($e===v.ALETTER||$e===v.NUMERIC||$e===v.KATAKANA||$e===v.EXTENDNUMLET)||$e===v.EXTENDNUMLET&&(rt===v.ALETTER||rt===v.NUMERIC||rt===v.KATAKANA)||$e===v.AT)},N=g,A=w,X=y,Z=function(Oe){return Oe==="http"||Oe==="https"},z=function(Oe,De){var $e;for($e=De;$e<Oe.length&&!A.test(Oe[$e]);$e++);return $e},Y=function(Oe,De){var $e=z(Oe,De+1),rt=Oe.slice(De+1,$e).join(N);return rt.substr(0,3)==="://"?$e:De},Q=function(Oe,De,$e,rt){for(var ct=[],lt=[],ot=0;ot<$e.length;++ot)if(lt.push(Oe[ot]),R($e,ot)){var Fe=De[ot];if((rt.includeWhitespace||!A.test(Fe))&&(rt.includePunctuation||!X.test(Fe))){var We=ot-lt.length+1,Ye=ot+1,Ke=De.slice(We,Ye).join(N);if(Z(Ke)){var mt=Y(De,ot),Ct=Oe.slice(Ye,mt);Array.prototype.push.apply(lt,Ct),ot=mt}ct.push(lt)}lt=[]}return ct},$=function(){return{includeWhitespace:!1,includePunctuation:!1}},te=function(Oe,De,$e){$e=n(n({},$()),$e);for(var rt=[],ct=[],lt=0;lt<Oe.length;lt++){var ot=De(Oe[lt]);ot!==r&&(rt.push(Oe[lt]),ct.push(ot))}var Fe=F(ct);return Q(rt,ct,Fe,$e)},V=te,K=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),fe=function(Oe,De){for(var $e=De.getBlockElements(),rt=De.getShortEndedElements(),ct=function(We){return $e[We.nodeName]||rt[We.nodeName]},lt=[],ot="",Fe=new K(Oe,Oe);Oe=Fe.next();)Oe.nodeType===3?ot+=i(Oe.data):ct(Oe)&&ot.length&&(lt.push(ot),ot="");return ot.length&<.push(ot),lt},de=function(Oe){return Oe.replace(/\u200B/g,"")},ne=function(Oe){return Oe.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length},le=function(Oe,De){var $e=de(fe(Oe,De).join(` 221`));return V($e.split(""),t).length},_e=function(Oe,De){var $e=fe(Oe,De).join("");return ne($e)},M=function(Oe,De){var $e=fe(Oe,De).join("").replace(/\s/g,"");return ne($e)},P=function(Oe,De){return function(){return De(Oe.getBody(),Oe.schema)}},U=function(Oe,De){return function(){return De(Oe.selection.getRng().cloneContents(),Oe.schema)}},j=function(Oe){return P(Oe,le)},ee=function(Oe){return{body:{getWordCount:j(Oe),getCharacterCount:P(Oe,_e),getCharacterCountWithoutSpaces:P(Oe,M)},selection:{getWordCount:U(Oe,le),getCharacterCount:U(Oe,_e),getCharacterCountWithoutSpaces:U(Oe,M)},getCount:j(Oe)}},ye=function(Oe,De){Oe.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(De.body.getWordCount()),String(De.selection.getWordCount())],["Characters (no spaces)",String(De.body.getCharacterCountWithoutSpaces()),String(De.selection.getCharacterCountWithoutSpaces())],["Characters",String(De.body.getCharacterCount()),String(De.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},ie=function(Oe,De){Oe.addCommand("mceWordCount",function(){return ye(Oe,De)})},he=tinymce.util.Tools.resolve("tinymce.util.Delay"),re=function(Oe,De){Oe.fire("wordCountUpdate",{wordCount:{words:De.body.getWordCount(),characters:De.body.getCharacterCount(),charactersWithoutSpaces:De.body.getCharacterCountWithoutSpaces()}})},be=function(Oe,De){re(Oe,De)},Ae=function(Oe,De,$e){var rt=he.debounce(function(){return be(Oe,De)},$e);Oe.on("init",function(){be(Oe,De),he.setEditorTimeout(Oe,function(){Oe.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",rt)},0)})},Te=function(Oe){var De=function(){return Oe.execCommand("mceWordCount")};Oe.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:De}),Oe.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:De})};function Ue(Oe){Oe===void 0&&(Oe=300),e.add("wordcount",function(De){var $e=ee(De);return ie(De,$e),Te(De),Ae(De,$e,Oe),$e})}Ue()})();(function(e){(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this).mammoth=e()})(function(){return function e(t,n,r){function i(f,v){if(!n[f]){if(!t[f]){var h=typeof require=="function"&&require;if(!v&&h)return h(f,!0);if(l)return l(f,!0);throw v=Error("Cannot find module '"+f+"'"),v.code="MODULE_NOT_FOUND",v}v=n[f]={exports:{}},t[f][0].call(v.exports,function(g){var y=t[f][1][g];return i(y||g)},v,v.exports,e,t,n,r)}return n[f].exports}for(var l=typeof require=="function"&&require,u=0;u<r.length;u++)i(r[u]);return i}({1:[function(e,t,n){var r=e("../../lib/promises");n.Files=function(){return{read:function(i){return r.reject(Error("could not open external image: '"+i+`' 222cannot open linked files from a web browser`))}}}},{"../../lib/promises":23}],2:[function(e,t,n){var r=e("../lib/promises"),i=e("../lib/zipfile");n.openZip=function(l){return l.arrayBuffer?r.resolve(i.openArrayBuffer(l.arrayBuffer)):r.reject(Error("Could not find file in options"))}},{"../lib/promises":23,"../lib/zipfile":38}],3:[function(e,t,n){function r(R,N){function A(j,ee,ye){return u(j,function(ie){return X(ie,ee,ye)})}function X(j,ee,ye){if(!ye)throw Error("options not set");var ie=U[j.type];return ie?ie(j,ee,ye):[]}function Z(j,ee){var ye=Q(j);return ye?ye.to:(j.styleId&&ee.push(l("paragraph",j)),_e)}function z(j,ee){return(j=Y({type:j}
222))?j:ee?y.element(ee,{},{fresh:!1}):y.empty}function Y(j,ee){return(j=Q(j))?j.to:ee}function Q(j){for(var ee=0;ee<M.length;ee++)if(M[ee].from.matches(j))return M[ee]}function $(j,ee,ye){var ie=v.findIndex(j.children,function(re){return!re.type===g.types.tableRow||!re.isHeader});if(ie===-1&&(ie=j.children.length),ie===0)var he=A(j.children,ee,v.extend({},ye,{isTableHeader:!1}));else he=A(j.children.slice(0,ie),ee,v.extend({},ye,{isTableHeader:!0})),j=A(j.children.slice(ie),ee,v.extend({},ye,{isTableHeader:!1})),he=[S.freshElement("thead",{},he),S.freshElement("tbody",{},j)];return[S.forceWrite].concat(he)}function te(j,ee,ye){var ie=j.label;return j=j.comment,ee=A(j.body,ee,ye).concat([S.nonFreshElement("p",{},[S.text(" "),S.freshElement("a",{href:"#"+(ne+("comment-ref-"+j.commentId))},[S.text("\u2191")])])]),[S.freshElement("dt",{id:ne+("comment-"+j.commentId)},[S.text("Comment "+ie)]),S.freshElement("dd",{},ee)]}function V(j){var ee=Q(j);return ee?ee.to:j.breakType==="line"?y.topLevelElement("br"):y.empty}var K=1,fe=[],de=[];R=v.extend({ignoreEmptyParagraphs:!0},R);var ne=R.idPrefix===void 0?"":R.idPrefix,le=R.ignoreEmptyParagraphs,_e=y.topLevelElement("p"),M=R.styleMap||[],P=y.elements([y.element("table",{},{fresh:!0})]),U={document:function(j,ee,ye){var ie=A(j.children,ee,ye),he=fe.map(function(re){return j.notes.resolve(re)});return he=A(he,ee,ye),ie.concat([S.freshElement("ol",{},he),S.freshElement("dl",{},u(de,function(re){return te(re,ee,ye)}))])},paragraph:function(j,ee,ye){return Z(j,ee).wrap(function(){var ie=A(j.children,ee,ye);return le?ie:[S.forceWrite].concat(ie)})},run:function(j,ee,ye){var ie=function(){return A(j.children,ee,ye)},he=[];j.isSmallCaps&&he.push(z("smallCaps")),j.isStrikethrough&&he.push(z("strikethrough","s")),j.isUnderline&&he.push(z("underline")),j.verticalAlignment===g.verticalAlignment.subscript&&he.push(y.element("sub",{},{fresh:!1})),j.verticalAlignment===g.verticalAlignment.superscript&&he.push(y.element("sup",{},{fresh:!1})),j.isItalic&&he.push(z("italic","em")),j.isBold&&he.push(z("bold","strong"));var re=y.empty,be=Q(j);return be?re=be.to:j.styleId&&ee.push(l("run",j)),he.push(re),he.forEach(function(Ae){ie=Ae.wrap.bind(Ae,ie)}),ie()},text:function(j,ee,ye){return[S.text(j.value)]},tab:function(j,ee,ye){return[S.text(" ")]},hyperlink:function(j,ee,ye){var ie={href:j.anchor?"#"+(ne+j.anchor):j.href};return j.targetFrame!=null&&(ie.target=j.targetFrame),j=A(j.children,ee,ye),[S.freshElement("a",ie,j)]},bookmarkStart:function(j,ee,ye){return[S.freshElement("a",{id:ne+j.name},[S.forceWrite])]},noteReference:function(j,ee,ye){return fe.push(j),j=S.freshElement("a",{href:"#"+(ne+(j.noteType+"-"+j.noteId)),id:ne+(j.noteType+"-ref-"+j.noteId)},[S.text("["+K+++"]")]),[S.freshElement("sup",{},[j])]},note:function(j,ee,ye){return ee=A(j.body,ee,ye),ye=S.elementWithTag(y.element("p",{},{fresh:!1}),[S.text(" "),S.freshElement("a",{href:"#"+(ne+(j.noteType+"-ref-"+j.noteId))},[S.text("\u2191")])]),ee=ee.concat([ye]),S.freshElement("li",{id:ne+(j.noteType+"-"+j.noteId)},ee)},commentReference:function(j,ee,ye){return Y(j,y.ignore).wrap(function(){var ie=N[j.commentId],he=de.length+1;return he="["+F(ie)+he+"]",de.push({label:he,comment:ie}),[S.freshElement("a",{href:"#"+(ne+("comment-"+j.commentId)),id:ne+("comment-ref-"+j.commentId)},[S.text(he)])]})},comment:te,image:i(function(j){return function(ee,ye){return h.attempt(function(){return j(ee,ye)}).caught(function(ie){return ye.push(w.error(ie)),[]})}}(R.convertImage||C.dataUri)),table:function(j,ee,ye){return Y(j,P).wrap(function(){return $(j,ee,ye)})},tableRow:function(j,ee,ye){return j=A(j.children,ee,ye),[S.freshElement("tr",{},[S.forceWrite].concat(j))]},tableCell:function(j,ee,ye){var ie=ye.isTableHeader?"th":"td";return ee=A(j.children,ee,ye),ye={},j.colSpan!==1&&(ye.colspan=j.colSpan.toString()),j.rowSpan!==1&&(ye.rowspan=j.rowSpan.toString()),[S.freshElement(ie,ye,[S.forceWrite].concat(ee))]},break:function(j,ee,ye){return V(j).wrap(function(){return[]})}};return{convertToHtml:function(j){var ee=[],ye=X(j,ee,{}),ie=[];f(ye,function(re){re.type==="deferred"&&ie.push(re)});var he={};return h.mapSeries(ie,function(re){return re.value().then(function(be){he[re.id]=be})}).then(function(){function re(Ae){return u(Ae,function(Te){return Te.type==="deferred"?he[Te.id]:Te.children?[v.extend({},Te,{children:re(Te.children)})]:[Te]})}var be=T.writer({prettyPrint:R.prettyPrint,outputFormat:R.outputFormat});return S.write(be,S.simplify(re(ye))),new w.Result(be.asString(),ee)})}}}function i(R){return function(N,A,X){return[{type:"deferred",id:B++,value:function(){return R(N,A,X)}}]}}function l(R,N){return w.warning("Unrecognised "+R+" style: '"+N.styleName+"' (Style ID: "+N.styleId+")")}function u(R,N){return v.flatten(R.map(N),!0)}function f(R,N){R.forEach(function(A){N(A),A.children&&f(A.children,N)})}var v=e("underscore"),h=e("./promises"),g=e("./documents"),y=e("./styles/html-paths"),w=e("./results"),C=e("./images"),S=e("./html"),T=e("./writers");n.DocumentConverter=function(R){return{convertToHtml:function(N){var A=v.indexBy(N.type===g.types.document?N.comments:[],"commentId");return new r(R,A).convertToHtml(N)}}};var B=1,F=n.commentAuthorLabel=function(R){return R.authorInitials||""}},{"./documents":4,"./html":18,"./images":20,"./promises":23,"./results":24,"./styles/html-paths":27,"./writers":32,underscore:153}],4:[function(e,t,n){function r(v){this._notes=l.indexBy(v,function(h){return h.noteType+"-"+h.noteId})}function i(v){return{type:u.break,breakType:v}}var l=e("underscore"),u=n.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",hy
222perlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"},f={baseline:"baseline",superscript:"superscript",subscript:"subscript"};r.prototype.resolve=function(v){return this.findNoteByKey(v.noteType+"-"+v.noteId)},r.prototype.findNoteByKey=function(v){return this._notes[v]||null},n.document=n.Document=function(v,h){return h=h||{},{type:u.document,children:v,notes:h.notes||new r({}),comments:h.comments||[]}},n.paragraph=n.Paragraph=function(v,h){h=h||{};var g=h.indent||{};return{type:u.paragraph,children:v,styleId:h.styleId||null,styleName:h.styleName||null,numbering:h.numbering||null,alignment:h.alignment||null,indent:{start:g.start||null,end:g.end||null,firstLine:g.firstLine||null,hanging:g.hanging||null}}},n.run=n.Run=function(v,h){return h=h||{},{type:u.run,children:v,styleId:h.styleId||null,styleName:h.styleName||null,isBold:h.isBold,isUnderline:h.isUnderline,isItalic:h.isItalic,isStrikethrough:h.isStrikethrough,isSmallCaps:h.isSmallCaps,verticalAlignment:h.verticalAlignment||f.baseline,font:h.font||null}},n.Text=function(v){return{type:u.text,value:v}},n.tab=n.Tab=function(){return{type:u.tab}},n.Hyperlink=function(v,h){return{type:u.hyperlink,children:v,href:h.href,anchor:h.anchor,targetFrame:h.targetFrame}},n.noteReference=n.NoteReference=function(v){return{type:u.noteReference,noteType:v.noteType,noteId:v.noteId}},n.Notes=r,n.Note=function(v){return{type:u.note,noteType:v.noteType,noteId:v.noteId,body:v.body}},n.commentReference=function(v){return{type:u.commentReference,commentId:v.commentId}},n.comment=function(v){return{type:u.comment,commentId:v.commentId,body:v.body,authorName:v.authorName,authorInitials:v.authorInitials}},n.Image=function(v){return{type:u.image,read:v.readImage,altText:v.altText,contentType:v.contentType}},n.Table=function(v,h){return h=h||{},{type:u.table,children:v,styleId:h.styleId||null,styleName:h.styleName||null}},n.TableRow=function(v,h){return h=h||{},{type:u.tableRow,children:v,isHeader:h.isHeader||!1}},n.TableCell=function(v,h){return h=h||{},{type:u.tableCell,children:v,colSpan:h.colSpan==null?1:h.colSpan,rowSpan:h.rowSpan==null?1:h.rowSpan}},n.lineBreak=i("line"),n.pageBreak=i("page"),n.columnBreak=i("column"),n.BookmarkStart=function(v){return{type:u.bookmarkStart,name:v.name}},n.verticalAlignment=f},{underscore:153}],5:[function(e,t,n){function r(A){function X(be){return be=be.map(Z),y(be)}function Z(be){if(be.type==="element"){var Ae=re[be.name];if(Ae)return Ae(be);if(!Object.prototype.hasOwnProperty.call(N,be.name))return be=B("An unrecognised element was ignored: "+be.name),new g(null,null,[be])}return new g(null)}function z(be){return be?(be=be.attributes["w:val"],be!=="false"&&be!=="0"):!1}function Y(be,Ae,Te,Ue){var Oe=[],De=be.first(Ae);return Ae=be=null,De&&(be=De.attributes["w:val"])&&((Ue=Ue(be))?Ae=Ue.name:Oe.push(B(Te+" style with ID "+be+" was referenced but not defined in the document"))),h({styleId:be,name:Ae},Oe)}function Q(){var be=C.last(_e.filter(function(Ae){return Ae.type==="hyperlink"}));return be?be.href:null}function $(be){return function(Ae){return v(new S.NoteReference({noteType:be,noteId:Ae.attributes["w:id"]}))}}function te(be){return X(be.children)}function V(be){return Y(be,"w:tblStyle","Table",ie.findTableStyleById).map(function(Ae){return{styleId:Ae.styleId,styleName:Ae.name}})}function K(be){if(C.any(be,function(Te){return Te.type!==S.types.tableRow}))return h(be,[B("unexpected non-row element in table, cell merging may be incorrect")]);if(C.any(be,function(Te){return C.any(Te.children,function(Ue){return Ue.type!==S.types.tableCell})}))return h(be,[B("unexpected non-cell element in table row, cell merging may be incorrect")]);var Ae={};return be.forEach(function(Te){var Ue=0;Te.children.forEach(function(Oe){Oe._vMerge&&Ae[Ue]?Ae[Ue].rowSpan++:(Ae[Ue]=Oe,Oe._vMerge=!1),Ue+=Oe.colSpan})}),be.forEach(function(Te){Te.children=Te.children.filter(function(Ue){return!Ue._vMerge}
222),Te.children.forEach(function(Ue){delete Ue._vMerge})}),v(be)}function fe(be){var Ae=be.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return y(Ae.map(de.bind(null,be)))}function de(be,Ae){be=be.first("wp:docPr").attributes;var Te=be.descr;return be=Te==null||/^\s*$/.test(Te)?be.title:be.descr,Te=Ae.attributes["r:embed"],Ae=Ae.attributes["r:link"],Te?Ae=ne(Te):(Ae=P.findTargetByRelationshipId(Ae),Ae={path:Ae,read:ee.read.bind(ee,Ae)}),le(Ae,be)}function ne(be){return be=F.uriToZipEntryName("word",P.findTargetByRelationshipId(be)),{path:be,read:j.read.bind(j,be)}}function le(be,Ae){var Te=U.findContentType(be.path);return be=S.Image({readImage:be.read,altText:Ae,contentType:Te}),Te=R[Te]?[]:B("Image of type "+Te+" is unlikely to display in web browsers"),h(be,Te)}var _e=[],M=[],P=A.relationships,U=A.contentTypes,j=A.docxFile,ee=A.files,ye=A.numbering,ie=A.styles,he={type:"unknown"},re={"w:p":function(be){return X(be.children).map(function(Ae){var Te=C.find(Ae,l);return new S.Paragraph(Ae.filter(f(l)),Te)}).insertExtra()},"w:pPr":function(be){return Y(be,"w:pStyle","Paragraph",ie.findParagraphStyleById).map(function(Ae){var Te=Ae.styleId;Ae=Ae.name;var Ue=be.firstOrEmpty("w:jc").attributes["w:val"],Oe=i(be.firstOrEmpty("w:numPr"),ye),De=be.firstOrEmpty("w:ind");return{type:"paragraphProperties",styleId:Te,styleName:Ae,alignment:Ue,numbering:Oe,indent:{start:De.attributes["w:start"]||De.attributes["w:left"],end:De.attributes["w:end"]||De.attributes["w:right"],firstLine:De.attributes["w:firstLine"],hanging:De.attributes["w:hanging"]}}})},"w:r":function(be){return X(be.children).map(function(Ae){var Te=C.find(Ae,u);Ae=Ae.filter(f(u));var Ue=Q();return Ue!==null&&(Ae=[new S.Hyperlink(Ae,{href:Ue})]),new S.Run(Ae,Te)})},"w:rPr":function(be){return Y(be,"w:rStyle","Run",ie.findCharacterStyleById).map(function(Ae){return{type:"runProperties",styleId:Ae.styleId,styleName:Ae.name,verticalAlignment:be.firstOrEmpty("w:vertAlign").attributes["w:val"],font:be.firstOrEmpty("w:rFonts").attributes["w:ascii"],isBold:z(be.first("w:b")),isUnderline:z(be.first("w:u")),isItalic:z(be.first("w:i")),isStrikethrough:z(be.first("w:strike")),isSmallCaps:z(be.first("w:smallCaps"))}})},"w:fldChar":function(be){return be=be.attributes["w:fldCharType"],be==="begin"?(_e.push(he),M=[]):be==="end"?_e.pop():be==="separate"&&(be=M.join(""),be=(be=/\s*HYPERLINK "(.*)"/.exec(be))?be[1]:null,be=be===null?he:{type:"hyperlink",href:be},_e.pop(),_e.push(be)),new g(null)},"w:instrText":function(be){return M.push(be.text()),new g(null)},"w:t":function(be){return v(new S.Text(be.text()))},"w:tab":function(be){return v(new S.Tab)},"w:noBreakHyphen":function(){return v(new S.Text("\u2011"))},"w:hyperlink":function(be){var Ae=be.attributes["r:id"],Te=be.attributes["w:anchor"];return X(be.children).map(function(Ue){function Oe($e){return new S.Hyperlink(Ue,C.extend({targetFrame:be.attributes["w:tgtFrame"]||null},$e))}if(Ae){var De=P.findTargetByRelationshipId(Ae);return Te&&(De=F.replaceFragment(De,Te)),Oe({href:De})}return Te?Oe({anchor:Te}):Ue})},"w:tbl":function(be){var Ae=V(be.firstOrEmpty("w:tblPr"));return X(be.children).flatMap(K).flatMap(function(Te){return Ae.map(function(Ue){return S.Table(Te,Ue)})})},"w:tr":function(be){var Ae=!!be.firstOrEmpty("w:trPr").first("w:tblHeader");return X(be.children).map(function(Te){return S.TableRow(Te,{isHeader:Ae})})},"w:tc":function(be){return X(be.children).map(function(Ae){var Te=be.firstOrEmpty("w:tcPr"),Ue=Te.firstOrEmpty("w:gridSpan").attributes["w:val"];return Ue=Ue?parseInt(Ue,10):1,Ae=S.TableCell(Ae,{colSpan:Ue}),(Te=Te.first("w:vMerge"))?(Te=Te.attributes["w:val"],Te=Te==="continue"||!Te):Te=null,Ae._vMerge=Te,Ae})},"w:footnoteReference":$("footnote"),"w:endnoteReference":$("endnote"),"w:commentReference":function(be){return v(S.commentReference({commentId:be.attributes["w:id"]}))},"w:br":function(be){return be=be.attributes["w:type"],be==null||be==="textWrapping"?v(S.lineBreak):be==="page"?v(S.pageBreak):be==="column"?v(S.columnBreak):new g(null,null,[B("Unsupported break type: "+be)])},"w:bookmarkStart":function(be){return be=be.attributes["w:name"],be==="_GoBack"?new g(null):v(new S.BookmarkStart({name:be}))},"mc:AlternateContent":function(be){return te(be.first("mc:Fallback"))},"w:sdt":function(be){return X(be.firstOrEmpty("w:sdtContent").children)},"w:ins":te,"w:object":te,"w:smartTag":te,"w:drawing":te,"w:pict":function(be){return te(be).toExtra()},"v:roundrect":te,"v:shape":te,"v:textbox":te,"w:txbxContent":te,"wp:inline":fe,"wp:anchor":fe,"v:imagedata":function(be){var Ae=be.attributes["r:id"];return Ae?le(ne(Ae),be.attributes["o:title"]):new g(null,null,[B("A v:imagedata element without a relationship ID was ignored")])},"v:group":te,"v:rect":te};return{readXmlElement:Z,readXmlElements:X}}function i(A,X){var Z=A.firstOrEmpty("w:ilvl").attributes["w:val"];return A=A.firstOrEmpty("w:numId").attributes["w:val"],Z===void 0||A===void 0?null:X.findLevel(A,Z)}function l(A){return A.type==="paragraphProperties"}function u(A){return A.type==="runProperties"}function f(A){return function(X){return!A(X)}}function v(A){return new g(A)}function h(A,X){return new g(A,null,X)}function g(A,X,Z){this.value=A||[],this.extra=X,this._result=new T({element:this.value,extra:X},Z),this.messages=this._result.messages}function y(A){return A=T.combine(C.pluck(A,"_result")),new g(C.flatten(C.pluck(A.value,"element")),C.filter(C.flatten(C.pluck(A.value,"extra")),w),A.messages)}function w(A){return A}n.createBodyReader=function(A){return{readXmlElement:function(X){return new r(A).readXmlElement(X)},readXmlElements:function(X){return new r(A).readXmlElements(X)}}},n._readNumberingProperties=i;var C=e("underscore"),S=e("../documents"),T=e("../results").Result,B=e("../results").warning,F=e("./uris"),R={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},N={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};g.prototype.toExtra=function(){return new g(null,C.flatten([this.extra,this.value]),this.messages)},g.prototype.insertExtra=function(){var A=this.extra;return A&&A.length?new g(C.flatten([this.value,A]),null,this.messages):this},g.prototype.map=function(A){var X=this._result.map(function(Z){return A(Z.element)});return new g(X.value,this.extra,X.messages)},g.prototype.flatMap=function(A){var X=this._result.flatMap(function(Z){return A(Z.element)._result});return new g(X.value.element,C.flatten([this.extra,X.value.extra]),X.messages)}},{"../documents":4,"../results":24,"./uris":16,underscore:153}],6:[function(e,t,n){var r=e("../documents"),i=e("../results").Result;n.createCommentsReader=function(l){function u(f){var v=f.attributes["w:id"];return l.readXmlElements(f.children).map(function(h){return r.comment({commentId:v,body:h,authorName:(f.attributes["w:author"]||"").trim()||null,authorInitials:(f.attributes["w:initials"]||"").trim()||null})})}return function(f){return i.combine(f.getElementsByTagName("w:comment").map(u))}}},{"../documents":4,"../results":24}],7:[function(e,t,n){function r(l,u){return{findContentType:function(f){var v=l[f];return v||(f=f.split("."),f=f[f.length-1],u.hasOwnProperty(f)?u[f]:(f=i[f.toLowerCase()])?"image/"+f:null)}}}n.readContentTypesFromXml=function(l){var u={},f={};
222return l.children.forEach(function(v){if(v.name==="content-types:Default"&&(u[v.attributes.Extension]=v.attributes.ContentType),v.name==="content-types:Override"){var h=v.attributes.PartName;h.charAt(0)==="/"&&(h=h.substring(1)),f[h]=v.attributes.ContentType}}),r(f,u)};var i={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};n.defaultContentTypes=r({},{})},{}],8:[function(e,t,n){n.DocumentXmlReader=function(l){var u=l.bodyReader;return{convertXmlToDocument:function(f){return f=f.first("w:body"),f=u.readXmlElements(f.children).map(function(v){return new r.Document(v,{notes:l.notes,comments:l.comments})}),new i(f.value,f.messages)}}};var r=e("../documents"),i=e("../results").Result},{"../documents":4,"../results":24}],9:[function(e,t,n){function r(Q){return Y(Q).then(function($){var te=i({docxFile:Q,relationships:$,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!Q.exists(te))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return l({filename:f(te),readElement:F.readRelationships,defaultValue:F.defaultValue})(Q).then(function(V){function K(fe){return i({docxFile:Q,relationships:V,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+fe,basePath:C.splitPath(te).dirname,fallbackPath:"word/"+fe+".xml"})}return{mainDocument:te,comments:K("comments"),endnotes:K("endnotes"),footnotes:K("footnotes"),numbering:K("numbering"),styles:K("styles")}})})}function i(Q){var $=Q.docxFile,te=Q.basePath,V=Q.fallbackPath;return Q=Q.relationships.findTargetsByType(Q.relationshipType).map(function(K){return K=C.joinPath(te,K),K=K.substring(0,1)==="/"?K.substring(1):K,K}).filter(function(K){return $.exists(K)}),Q.length===0?V:Q[0]}function l(Q){return function($){return S($,Q.filename).then(function(te){return te?Q.readElement(te):Q.defaultValue})}}function u(Q,$,te){return l({filename:f(Q),readElement:F.readRelationships,defaultValue:F.defaultValue})($.docxFile).then(function(V){var K=new T({relationships:V,contentTypes:$.contentTypes,docxFile:$.docxFile,numbering:$.numbering,styles:$.styles,files:$.files});return S($.docxFile,Q).then(function(fe){return te(K,fe)})})}function f(Q){return Q=C.splitPath(Q),C.joinPath(Q.dirname,"_rels",Q.basename+".rels")}function v(Q,$,te){return l({filename:$,readElement:function(V){return R.readNumberingXml(V,{styles:te})},defaultValue:R.defaultNumbering})(Q)}n.read=function(Q,$){return $=$||{},g.props({contentTypes:z(Q),partPaths:r(Q),docxFile:Q,files:new Z($.path?h.dirname($.path):null)}).also(function(te){return{styles:l({filename:te.partPaths.styles,readElement:N.readStylesXml,defaultValue:N.defaultStyles})(Q)}}).also(function(te){return{numbering:v(Q,te.partPaths.numbering,te.styles)}}).also(function(te){return{footnotes:u(te.partPaths.footnotes,te,function(V,K){return K?A.createFootnotesReader(V)(K):new w([])}),endnotes:u(te.partPaths.endnotes,te,function(V,K){return K?A.createEndnotesReader(V)(K):new w([])}),comments:u(te.partPaths.comments,te,function(V,K){return K?X.createCommentsReader(V)(K):new w([])})}}).also(function(te){return{notes:te.footnotes.flatMap(function(V){return te.endnotes.map(function(K){return new y.Notes(V.concat(K))})})}}).then(function(te){return u(te.partPaths.mainDocument,te,function(V,K){return te.notes.flatMap(function(fe){return te.comments.flatMap(function(de){return new B({bodyReader:V,notes:fe,comments:de}).convertXmlToDocument(K)})})})})},n._findPartPaths=r;var h=e("path"),g=e("../promises"),y=e("../documents"),w=e("../results").Result,C=e("../zipfile"),S=e("./office-xml-reader").readXmlFromZipFile,T=e("./body-reader").createBodyReader,B=e("./document-xml-reader").DocumentXmlReader,F=e("./relationships-reader");t=e("./content-types-reader");var R=e("./numbering-xml"),N=e("./styles-reader"),A=e("./notes-reader"),X=e("./comments-reader"),Z=e("./files").Files,z=l({filename:"[Content_Types].xml",readElement:t.readContentTypesFromXml,defaultValue:t.defaultContentTypes}),Y=l({filename:"_rels/.rels",readElement:F.readRelationships,defaultValue:F.defaultValue})},{"../documents":4,"../promises":23,"../results":24,"../zipfile":38,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15,path:136}],10:[function(e,t,n){function r(u,f){function v(g){return g=g.attributes["w:type"],g!=="continuationSeparator"&&g!=="separator"}function h(g){var y=g.attributes["w:id"];return f.readXmlElements(g.children).map(function(w){return i.Note({noteType:u,noteId:y,body:w})})}return function(g){return l.combine(g.getElementsByTagName("w:"+u).filter(v).map(h))}}var i=e("../documents"),l=e("../results").Result;n.createFootnotesReader=r.bind(this,"footnote"),n.createEndnotesReader=r.bind(this,"endnote")},{"../documents":4,"../results":24}],11:[function(e,t,n){function r(f,v,h){function g(y,w){if(y=f[y]){var C=v[y.abstractNumId];return C.numStyleLink==null?v[y.abstractNumId].levels[w]:(y=h.findNumberingStyleById(C.numStyleLink),g(y.numId,w))}return null}return{findLevel:g}}function i(f){var v={};return f.getElementsByTagName("w:abstractNum").forEach(function(h){v[h.attributes["w:abstractNumId"]]=l(h)}),v}function l(f){var v={};return f.getElementsByTagName("w:lvl").forEach(function(h){var g=h.attributes["w:ilvl"];h=h.first("w:numFmt").attributes["w:val"],v[g]={isOrdered:h!=="bullet",level:g}}),f=f.firstOrEmpty("w:numStyleLink").attributes["w:val"],{levels:v,numStyleLink:f}}function u(f){var v={};return f.getElementsByTagName("w:num").forEach(function(h){var g=h.attributes["w:numId"];h=h.first("w:abstractNumId").attributes["w:val"],v[g]={abstractNumId:h}}),v}n.readNumberingXml=function(f,v){if(!v||!v.styles)throw Error("styles is missing");var h=i(f);return f=u(f),new r(f,h,v.styles)},n.Numbering=r,n.defaultNumbering=new r({})},{}],12:[function(e,t,n){function r(g){return v.readString(g,h).then(function(y){return l(y)[0]})}function i(g){return g.replace(/^\uFEFF/g,"")}function l(g){if(g.type==="element"){if(g.name==="mc:AlternateContent")return g.first("mc:Fallback").children;g.children=u.flatten(g.children.map(l,!0))}return[g]}var u=e("underscore"),f=e("../promises"),v=e("../xml");n.read=r,n.readXmlFromZipFile=function(g,y){return g.exists(y)?g.read(y,"utf-8").then(i).then(r):f.resolve(null)};var h={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","urn:schemas-microsoft-com:vml":"v","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:office:word":"office-word"}},{"../promises":23,"../xml":34,underscore:153}],13:[function(e,t,n){function r(i){var l={};
222i.forEach(function(f){l[f.relationshipId]=f.target});var u={};return i.forEach(function(f){u[f.type]||(u[f.type]=[]),u[f.type].push(f.target)}),{findTargetByRelationshipId:function(f){return l[f]},findTargetsByType:function(f){return u[f]||[]}}}n.readRelationships=function(i){var l=[];return i.children.forEach(function(u){u.name==="{http://schemas.openxmlformats.org/package/2006/relationships}Relationship"&&l.push({relationshipId:u.attributes.Id,target:u.attributes.Target,type:u.attributes.Type})}),new r(l)},n.defaultValue=new r([]),n.Relationships=r},{}],14:[function(e,t,n){function r(w){return w.read("word/_rels/document.xml.rels","utf8").then(v.readString).then(function(C){return l(C.children,"{http://schemas.openxmlformats.org/package/2006/relationships}Relationship","Id",{Id:"rMammothStyleMap",Type:h,Target:y}),w.write("word/_rels/document.xml.rels",v.writeString(C,{"":"http://schemas.openxmlformats.org/package/2006/relationships"}))})}function i(w){return w.read("[Content_Types].xml","utf8").then(v.readString).then(function(C){return l(C.children,"{http://schemas.openxmlformats.org/package/2006/content-types}Override","PartName",{PartName:y,ContentType:"text/prs.mammoth.style-map"}),w.write("[Content_Types].xml",v.writeString(C,{"":"http://schemas.openxmlformats.org/package/2006/content-types"}))})}function l(w,C,S,T){var B=u.find(w,function(F){return F.name===C&&F.attributes[S]===T[S]});B?B.attributes=T:w.push(v.element(C,T))}var u=e("underscore"),f=e("../promises"),v=e("../xml");n.writeStyleMap=function(w,C){return w.write(g,C),r(w).then(function(){return i(w)})},n.readStyleMap=function(w){return w.exists(g)?w.read(g,"utf8"):f.resolve(null)};var h="http://schemas.zwobble.org/mammoth/style-map",g="mammoth/style-map",y="/"+g},{"../promises":23,"../xml":34,underscore:153}],15:[function(e,t,n){function r(i,l,u,f){return{findParagraphStyleById:function(v){return i[v]},findCharacterStyleById:function(v){return l[v]},findTableStyleById:function(v){return u[v]},findNumberingStyleById:function(v){return f[v]}}}n.readStylesXml=function(i){var l={},u={},f={},v={},h={paragraph:l,character:u,table:f};return i.getElementsByTagName("w:style").forEach(function(g){var y=g.attributes["w:type"],w=g.attributes["w:styleId"],C=g.first("w:name");y={type:y,styleId:w,name:C?C.attributes["w:val"]:null},y.type==="numbering"?(y=y.styleId,g={numId:g.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"]},v[y]=g):(g=h[y.type])&&(g[y.styleId]=y)}),new r(l,u,f,v)},n.Styles=r,n.defaultStyles=new r({},{}),r.EMPTY=new r({},{},{},{})},{}],16:[function(e,t,n){n.uriToZipEntryName=function(r,i){return i.charAt(0)==="/"?i.substr(1):r+"/"+i},n.replaceFragment=function(r,i){var l=r.indexOf("#");return l!==-1&&(r=r.substring(0,l)),r+"#"+i}},{}],17:[function(e,t,n){function r(u,f){return{type:"element",tag:u,children:f||[]}}var i=e("../styles/html-paths");n.freshElement=function(u,f,v){return u=i.element(u,f,{fresh:!0}),r(u,v)},n.nonFreshElement=function(u,f,v){return r(i.element(u,f,{fresh:!1}),v)},n.elementWithTag=r,n.text=function(u){return{type:"text",value:u}},n.forceWrite={type:"forceWrite"};var l={br:!0,hr:!0,img:!0};n.isVoidElement=function(u){return u.children.length===0&&l[u.tag.tagName]}},{"../styles/html-paths":27}],18:[function(e,t,n){function r(u,f){f.forEach(function(v){l[v.type](u,v)})}var i=e("./ast");n.freshElement=i.freshElement,n.nonFreshElement=i.nonFreshElement,n.elementWithTag=i.elementWithTag,n.text=i.text,n.forceWrite=i.forceWrite,n.simplify=e("./simplify");var l={element:function(u,f){i.isVoidElement(f)?u.selfClosing(f.tag.tagName,f.tag.attributes):(u.open(f.tag.tagName,f.tag.attributes),r(u,f.children),u.close(f.tag.tagName))},text:function(u,f){u.text(f.value)},forceWrite:function(){}};n.write=r},{"./ast":17,"./simplify":19}],19:[function(e,t,n){function r(C){var S=[];return C.map(i).forEach(function(T){u(S,T)}),S}function i(C){return y[C.type](C)}function l(C){return C}function u(C,S){var T=C[C.length-1];S.type==="element"&&!S.tag.fresh&&T&&T.type==="element"&&S.tag.matchesElement(T.tag)?(S.tag.separator&&u(T.children,g.text(S.tag.separator)),S.children.forEac
222h(function(B){u(T.children,B)})):C.push(S)}function f(C){return v(C,function(S){return w[S.type](S)})}function v(C,S){return h.flatten(h.map(C,S),!0)}var h=e("underscore"),g=e("./ast"),y={element:function(C){return g.elementWithTag(C.tag,r(C.children))},text:l,forceWrite:l},w={element:function(C){var S=f(C.children);return S.length!==0||g.isVoidElement(C)?[g.elementWithTag(C.tag,S)]:[]},text:function(C){return C.value.length===0?[]:[C]},forceWrite:function(C){return[C]}};t.exports=function(C){return r(f(C))}},{"./ast":17,underscore:153}],20:[function(e,t,n){function r(f){return function(v,h){return l.when(f(v)).then(function(g){return g=i.clone(g),v.altText&&(g.alt=v.altText),[u.freshElement("img",g)]})}}var i=e("underscore"),l=e("./promises"),u=e("./html");n.imgElement=r,n.inline=n.imgElement,n.dataUri=r(function(f){return f.read("base64").then(function(v){return{src:"data:"+f.contentType+";base64,"+v}})})},{"./html":18,"./promises":23,underscore:153}],21:[function(e,t,n){function r(T,B){return B=w(B),C.openZip(T).tap(function(F){return h.readStyleMap(F).then(function(R){B.embeddedStyleMap=R})}).then(function(F){return v.read(F,T).then(function(R){return R.map(B.transformDocument)}).then(function(R){return i(R,B)})})}function i(T,B){var F=l(B.readStyleMap());B=f.extend({},B,{styleMap:F.value});var R=new g(B);return T.flatMapThen(function(N){return F.flatMapThen(function(A){return R.convertToHtml(N)})})}function l(T){return S.combine((T||[]).map(y)).map(function(B){return B.filter(function(F){return!!F})})}function u(T){if(T.type==="text")return T.value;var B=T.type==="paragraph"?` 223 224`:"";return(T.children||[]).map(u).join("")+B}var f=e("underscore"),v=e("./docx/docx-reader"),h=e("./docx/style-map"),g=e("./document-to-html").DocumentConverter,y=e("./style-reader").readStyle,w=e("./options-reader").readOptions,C=e("./unzip"),S=e("./results").Result;n.convertToHtml=function(T,B){return r(T,B)},n.convertToMarkdown=function(T,B){return B=Object.create(B||{}),B.outputFormat="markdown",r(T,B)},n.convert=r,n.extractRawText=function(T){return C.openZip(T).then(v.read).then(function(B){return B.map(u)})},n.images=e("./images"),n.transforms=e("./transforms"),n.underline=e("./underline"),n.embedStyleMap=function(T,B){return C.openZip(T).tap(function(F){return h.writeStyleMap(F,B)}).then(function(F){return{toBuffer:F.toBuffer}})},n.readEmbeddedStyleMap=function(T){return C.openZip(T).then(h.readStyleMap)},n.styleMapping=function(){throw Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./results":24,"./style-reader":25,"./transforms":29,"./underline":30,"./unzip":2,underscore:153}],22:[function(e,t,n){function r(f){return f?i.isString(f)?f.split(` 225`).map(function(v){return v.trim()}).filter(function(v){return v!==""&&v.charAt(0)!=="#"}):f:[]}n.readOptions=function(f){return f=f||{},i.extend({},u,f,{customStyleMap:r(f.styleMap),readStyleMap:function(){var v=this.customStyleMap;return this.includeEmbeddedStyleMap&&(v=v.concat(r(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(v=v.concat(l)),v}})};var i=e("underscore"),l=n._defaultStyleMap="p.Heading1 => h1:fresh;p.Heading2 => h2:fresh;p.Heading3 => h3:fresh;p.Heading4 => h4:fresh;p.Heading5 => h5:fresh;p.Heading6 => h6:fresh;p[style-name='Heading 1'] => h1:fresh;p[style-name='Heading 2'] => h2:fresh;p[style-name='Heading 3'] => h3:fresh;p[style-name='Heading 4'] => h4:fresh;p[style-name='Heading 5'] => h5:fresh;p[style-name='Heading 6'] => h6:fresh;p[style-name='heading 1'] => h1:fresh;p[style-name='heading 2'] => h2:fresh;p[style-name='heading 3'] => h3:fresh;p[style-name='heading 4'] => h4:fresh;p[style-name='heading 5'] => h5:fresh;p[style-name='heading 6'] => h6:fresh;r[style-name='Strong'] => strong;p[style-name='footnote text'] => p:fresh;r[style-name='footnote reference'] =>;p[style-name='endnote text'] => p:fresh;r[style-name='endnote reference'] =>;p[style-name='annotation text'] => p:fresh;r[style-name='annotation reference'] =>;p[style-name='Footnote'] => p:fresh;r[style-name='Footnote anchor'] =>;p[style-name='Endnote'] => p:fresh;r[style-name='Endnote anchor'] =>;p:unordered-list(1) => ul > li:fresh;p:unordered-list(2) => ul|ol > li > ul > li:fresh;p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh;p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh;p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh;p:ordered-list(1) => ol > li:fresh;p:ordered-list(2) => ul|ol > li > ol > li:fresh;p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh;p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh;p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh;
225r[style-name='Hyperlink'] =>;p[style-name='Normal'] => p:fresh".split(";"),u=n._standardOptions={transformDocument:function(f){return f},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0}},{underscore:153}],23:[function(e,t,n){var r=e("underscore"),i=e("bluebird/js/release/promise")();n.defer=function(){var l,u,f=new i.Promise(function(v,h){l=v,u=h});return{resolve:l,reject:u,promise:f}},n.when=i.resolve,n.resolve=i.resolve,n.all=i.all,n.props=i.props,n.reject=i.reject,n.promisify=i.promisify,n.mapSeries=i.mapSeries,n.attempt=i.attempt,n.nfcall=function(l){var u=Array.prototype.slice.call(arguments,1);return i.promisify(l).apply(null,u)},i.prototype.fail=i.prototype.caught,i.prototype.also=function(l){return this.then(function(u){return u=r.extend({},u,l(u)),i.props(u)})}},{"bluebird/js/release/promise":60,underscore:153}],24:[function(e,t,n){function r(f,v){this.value=f,this.messages=v||[]}function i(f){var v=[];return u.flatten(u.pluck(f,"messages"),!0).forEach(function(h){u.find(v,l.bind(null,h))===void 0&&v.push(h)}),v}function l(f,v){return f.type===v.type&&f.message===v.message}var u=e("underscore");n.Result=r,n.success=function(f){return new r(f,[])},n.warning=function(f){return{type:"warning",message:f}},n.error=function(f){return{type:"error",message:f.message,error:f}},r.prototype.map=function(f){return new r(f(this.value),this.messages)},r.prototype.flatMap=function(f){return f=f(this.value),new r(f.value,i([this,f]))},r.prototype.flatMapThen=function(f){var v=this;return f(this.value).then(function(h){return new r(h.value,i([v,h]))})},r.combine=function(f){var v=u.flatten(u.pluck(f,"value"));return f=i(f),new r(v,f)}},{underscore:153}],25:[function(e,t,n){function r(){function A(fe){return fe=h.rules.firstOf.apply(h.rules.firstOf,["matcher suffix"].concat(fe)),fe=h.rules.zeroOrMore(fe),h.rules.then(fe,function(de){var ne={};return de.forEach(function(le){v.extend(ne,le)}),ne})}var X=h.rules.sequence,Z=function(fe,de){return h.rules.then(h.rules.token("identifier",fe),function(){return de})},z=Z("p",g.paragraph),Y=Z("r",g.run);z=h.rules.firstOf("p or r or table",z,Y),Y=h.rules.then(R,function(fe){return{styleId:fe}});var Q=h.rules.firstOf("style name matcher",h.rules.then(h.rules.sequence(h.rules.tokenOfType("equals"),h.rules.sequence.cut(),h.rules.sequence.capture(B)).head(),function(fe){return{styleName:g.equalTo(fe)}}),h.rules.then(h.rules.sequence(h.rules.tokenOfType("startsWith"),h.rules.sequence.cut(),h.rules.sequence.capture(B)).head(),function(fe){return{styleName:g.startsWith(fe)}}));Q=h.rules.sequence(h.rules.tokenOfType("open-square-bracket"),h.rules.sequence.cut(),h.rules.token("identifier","style-name"),h.rules.sequence.capture(Q),h.rules.tokenOfType("close-square-bracket")).head();var $=h.rules.firstOf("list type",Z("ordered-list",{isOrdered:!0}),Z("unordered-list",{isOrdered:!1}));$=X(h.rules.tokenOfType("colon"),X.capture($),X.cut(),h.rules.tokenOfType("open-paren"),X.capture(T),h.rules.tokenOfType("close-paren")).map(function(fe,de){return{list:{isOrdered:fe.isOrdered,levelIndex:de-1}}}),z=X(X.capture(z),X.capture(A([Y,Q,$]))).map(function(fe,de){return fe(de)}),Y=X(h.rules.token("identifier","table"),X.capture(A([Y,Q]))).map(function(fe){return g.table(fe)}),Q=Z("b",g.bold),$=Z("i",g.italic);var te=Z("u",g.underline),V=Z("strike",g.strikethrough),K=Z("small-caps",g.smallCaps);return Z=Z("comment-reference",g.commentReference),X=X(h.rules.token("identifier","br"),X.cut(),h.rules.tokenOfType("open-square-bracket"),h.rules.token("identifier","type"),h.rules.tokenOfType("equals"),X.capture(B),h.rules.tokenOfType("close-square-bracket")).map(function(fe){switch(fe){case"line":return g.lineBreak;case"page":return g.pageBreak;case"column":return g.columnBreak}}),h.rules.firstOf("element type",z,Y,Q,$,te,V,K,Z,X)}function i(){var A=h.rules.sequence.capture,X=h.rules.tokenOfType("whitespace"),Z=h.rules.then(h.rules.optional(h.rules.sequence(h.rules.tokenOfType("colon"),h.rules.token("identifier","fresh"))),function(Q){return Q.map(function(){return!0}).valueOrElse(!1)}),z=h.rules.then(h.rules.optional(h.rules.sequence(h.rules.tokenOfType("colon"),h.rules.token("identifier","separator"),h.rules.tokenOfType("open-paren"),A(B),h.rules.tokenOfType("close-paren")).head()),function(Q){return Q.valueOrElse("")}),Y=h.rules.oneOrMoreWithSeparator(S,h.rules.tokenOfType("choice"));return A=h.rules.sequence(A(Y),A(h.rules.zeroOrMore(R)),A(Z),A(z)).map(function(Q,$,te,V){var K={},fe={};return 0<$.length&&(K.class=$.join(" ")),te&&(fe.fresh=!0),V&&(fe.separator=V),y.element
225(Q,K,fe)}),h.rules.firstOf("html path",h.rules.then(h.rules.tokenOfType("bang"),function(){return y.ignore}),h.rules.then(h.rules.zeroOrMoreWithSeparator(A,h.rules.sequence(X,h.rules.tokenOfType("gt"),X)),y.elements))}function l(A){return A.replace(/\\(.)/g,function(X,Z){return F[Z]||Z})}function u(A,X){var Z=w(X);return A=h.Parser().parseTokens(A,Z),A.isSuccess()?C.success(A.value()):new C.Result(null,[C.warning("Did not understand this style mapping, so ignored it: "+X+` 226`+A.errors().map(f).join(` 227`))])}function f(A){return"Error was at character number "+A.characterNumber()+": Expected "+A.expected+" but got "+A.actual}var v=e("underscore"),h=e("lop"),g=e("./styles/document-matchers"),y=e("./styles/html-paths"),w=e("./styles/parser/tokeniser").tokenise,C=e("./results");n.readHtmlPath=function(A){return u(i(),A)},n.readDocumentMatcher=function(A){return u(r(),A)},n.readStyle=function(A){return u(N,A)};var S=h.rules.then(h.rules.tokenOfType("identifier"),l),T=h.rules.tokenOfType("integer"),B=h.rules.then(h.rules.tokenOfType("string"),l),F={n:` 228`,r:"\r",t:" "},R=h.rules.sequence(h.rules.tokenOfType("dot"),h.rules.sequence.cut(),h.rules.sequence.capture(S)).head(),N=function(){return h.rules.sequence(h.rules.sequence.capture(r()),h.rules.tokenOfType("whitespace"),h.rules.tokenOfType("arrow"),h.rules.sequence.capture(h.rules.optional(h.rules.sequence(h.rules.tokenOfType("whitespace"),h.rules.sequence.capture(i())).head())),h.rules.tokenOfType("end")).map(function(A,X){return{from:A,to:X.valueOrElse(y.empty)}})}()},{"./results":24,"./styles/document-matchers":26,"./styles/html-paths":27,"./styles/parser/tokeniser":28,lop:107,underscore:153}],26:[function(e,t,n){function r(u,f){f=f||{},this._elementType=u,this._styleId=f.styleId,this._styleName=f.styleName,f.list&&(this._listIndex=f.list.levelIndex,this._listIsOrdered=f.list.isOrdered)}function i(u,f){return u.toUpperCase()===f.toUpperCase()}function l(u,f){return f.toUpperCase().indexOf(u.toUpperCase())===0}n.paragraph=function(u){return new r("paragraph",u)},n.run=function(u){return new r("run",u)},n.table=function(u){return new r("table",u)},n.bold=new r("bold"),n.italic=new r("italic"),n.underline=new r("underline"),n.strikethrough=new r("strikethrough"),n.smallCaps=new r("smallCaps"),n.commentReference=new r("commentReference"),n.lineBreak=new r("break",{breakType:"line"}),n.pageBreak=new r("break",{breakType:"page"}),n.columnBreak=new r("break",{breakType:"column"}),n.equalTo=function(u){return{operator:i,operand:u}},n.startsWith=function(u){return{operator:l,operand:u}},r.prototype.matches=function(u){return u.type===this._elementType&&(this._styleId===void 0||u.styleId===this._styleId)&&(this._styleName===void 0||u.styleName&&this._styleName.operator(this._styleName.operand,u.styleName))&&(this._listIndex===void 0||u.numbering&&u.numbering.level==this._listIndex&&u.numbering.isOrdered==this._listIsOrdered)&&(this._breakType===void 0||this._breakType===u.breakType)}},{}],27:[function(e,t,n){function r(h){return new i(h.map(function(g){return f.isString(g)?l(g):g}))}function i(h){this._elements=h}function l(h,g,y){return y=y||{},new u(h,g,y)}function u(h,g,y){var w={};f.isArray(h)?(h.forEach(function(C){w[C]=!0}),h=h[0]):w[h]=!0,this.tagName=h,this.tagNames=w,this.attributes=g||{},this.fresh=y.fresh,this.separator=y.separator}var f=e("underscore"),v=e("../html");n.topLevelElement=function(h,g){return r([l(h,g,{fresh:!0})])},n.elements=r,n.element=l,i.prototype.wrap=function(h){h=h();for(var g=this._elements.length-1;0<=g;g--)h=this._elements[g].wrapNodes(h);return h},u.prototype.matchesElement=function(h){return this.tagNames[h.tagName]&&f.isEqual(this.attributes||{},h.attributes||{})},u.prototype.wrap=function(h){return this.wrapNodes(h())},u.prototype.wrapNodes=function(h){return[v.elementWithTag(this,h)]},n.empty=r([]),n.ignore={wrap:function(){return[]}}},{"../html":18,underscore:153}],28:[function(e,t,n){var r=e("lop").RegexTokeniser;n.tokenise=function(l){return new r([{name:"identifier",regex:/((?:[a-zA-Z\-_]|\\.)(?:(?:[a-zA-Z\-_]|\\.)|[0-9])*)/},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(i+"'")},{name:"unterminated-string",regex:new RegExp(i)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]).tokenise(l)};var i="'((?:\\\\.|[^'])*)"},{lop:107}],29:[function(e,t,n){function r(v,h){return i(function(g){return g.type===v?h(g):g})}function i(v){return function h(g){if(g.children){var y=f.map(g.children,h);g=f.extend(g,{children:y})}return v(g)}}function l(v){var h=[];return u(v,function(g){h.push(g)}),h}
228function u(v,h){v.children&&v.children.forEach(function(g){u(g,h),h(g)})}var f=e("underscore");n.paragraph=function(v){return r("paragraph",v)},n.run=function(v){return r("run",v)},n._elements=i,n.getDescendantsOfType=function(v,h){return l(v).filter(function(g){return g.type===h})},n.getDescendants=l},{underscore:153}],30:[function(e,t,n){var r=e("./styles/html-paths"),i=e("./html");n.element=function(l){return function(u){return i.elementWithTag(r.element(l),[u])}}},{"./html":18,"./styles/html-paths":27}],31:[function(e,t,n){function r(){function v(){if(C=!1,!w&&(y.length===0||f[y[y.length-1]])&&!h()){S._append(` 229`);for(var T=0;T<g;T++)S._append(" ")}}function h(){return u.some(y,function(T){return T==="pre"})}var g=0,y=[],w=!0,C=!1,S=i();return{asString:S.asString,open:function(T,B){f[T]&&v(),y.push(T),S.open(T,B),f[T]&&g++,w=!1},close:function(T){f[T]&&(g--,v()),y.pop(),S.close(T)},text:function(T){C||(v(),C=!0),T=h()?T:T.replace(` 230`,` 231 `),S.text(T)},selfClosing:function(T,B){v(),S.selfClosing(T,B)}}}function i(){function v(g){return u.map(g,function(y,w){return l.format(' %s="%s"',w,y.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"))}).join("")}var h=[];return{asString:function(){return h.join("")},open:function(g,y){y=v(y),h.push(l.format("<%s%s>",g,y))},close:function(g){h.push(l.format("</%s>",g))},text:function(g){h.push(g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))},selfClosing:function(g,y){y=v(y),h.push(l.format("<%s%s />",g,y))},_append:function(g){h.push(g)}}}var l=e("util"),u=e("underscore");n.writer=function(v){return v=v||{},v.prettyPrint?r():i()};var f={div:!0,p:!0,ul:!0,li:!0}},{underscore:153,util:157}],32:[function(e,t,n){var r=e("./html-writer"),i=e("./markdown-writer");n.writer=function(l){return l=l||{},l.outputFormat==="markdown"?i.writer():r.writer(l)}},{"./html-writer":31,"./markdown-writer":33}],33:[function(e,t,n){function r(v){return i(v,v)}function i(v,h){return function(){return{start:v,end:h}}}function l(v){return function(h,g){return{start:g?` 232`:"",end:g?"":` 233`,list:{isOrdered:v.isOrdered,indent:g?g.indent+1:0,count:0}}}}var u=e("underscore"),f={p:i("",` 234 235`),br:i("",` 236`),ul:l({isOrdered:!1}),ol:l({isOrdered:!0}),li:function(v,h,g){return h=h||{indent:0,isOrdered:!1,count:0},h.count++,g.hasClosed=!1,v=h.isOrdered?h.count+".":"-",{start:Array(h.indent+1).join(" ")+v+" ",end:function(){if(!g.hasClosed)return g.hasClosed=!0,` 237`}}},strong:r("__"),em:r("*"),a:function(v){return(v=v.href||"")?{start:"[",end:"]("+v+")",anchorPosition:"before"}:{}},img:function(v){var h=v.src||"";return v=v.alt||"",h||v?{start:""}:{}}};(function(){for(var v=1;6>=v;v++)f["h"+v]=i(Array(v+1).join("#")+" ",` 238 239`)})(),n.writer=function(){function v(T,B){B=B||{},T=(f[T]||function(){return{}})(B,C,S),w.push({end:T.end,list:C}),T.list&&(C=T.list);var F=T.anchorPosition==="before";F&&h(B),y.push(T.start||""),F||h(B)}function h(T){T.id&&y.push('<a id="'+T.id+'"></a>')}function g(T){T=w.pop(),C=T.list,T=u.isFunction(T.end)?T.end():T.end,y.push(T||"")}var y=[],w=[],C=null,S={};return{asString:function(){return y.join("")},open:v,close:g,text:function(T){y.push(T.replace(/\\/g,"\\\\").replace(/([`\*_\{\}\[\]\(\)#\+\-\.!])/g,"\\$1"))},selfClosing:function(T,B){v(T,B),g(T)}}}},{underscore:153}],34:[function(e,t,n){t=e("./nodes"),n.Element=t.Element,n.element=t.element,n.text=t.text,n.readString=e("./reader").readString,n.writeString=e("./writer").writeString},{"./nodes":35,"./reader":36,"./writer":37}],35:[function(e,t,n){function r(f,v,h){this.type="element",this.name=f,this.attributes=v||{},this.children=h||[]}var i=e("underscore");n.Element=r,n.element=function(f,v,h){return new r(f,v,h)},n.text=function(f){return{type:"text",value:f}};var l={first:function(){return null},firstOrEmpty:function(){return l},attributes:{}};r.prototype.first=function(f){return i.find(this.children,function(v){return v.name===f})},r.prototype.firstOrEmpty=function(f){return this.first(f)||l},r.prototype.getElementsByTagName=function(f){var v=i.filter(this.children,function(h){return h.name===f});return i.extend(v,u)},r.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw Error("Not implemented");return this.children[0].value};var u={getElementsByTagName:function(f){return i.extend(i.flatten(this.map(function(v){return v.getElementsByTagName(f)},!0)),u)}}},{underscore:153}],36:[function(e,t,n){function r(h,g,y){return u.reduce(h,function(w,C,S){var T=y(C,S,h);return w[T]=g(C,S,h),w},{})}var i=e("../promises"),l=e("sax"),u=e("underscore"),f=e("./nodes"),v=f.Element;n.readString=function(h,g){function y(R){if(R.uri){var N=g[R.uri];return(N?N+":":"{"+R.uri+"}")+R.local}return R.local}g=g||{};var w=!1,C=l.parser(!0,{xmlns:!0,position:!1}),S={children:[]},T=S,B=[],F=i.defer();
239return C.onopentag=function(R){var N=r(R.attributes,function(A){return A.value},y);R=new v(y(R),N),T.children.push(R),B.push(T),T=R},C.onclosetag=function(R){T=B.pop()},C.ontext=function(R){T!==S&&T.children.push(f.text(R))},C.onend=function(){w||(w=!0,F.resolve(S.children[0]))},C.onerror=function(R){w||(w=!0,F.reject(R))},C.write(h).close(),F.promise}},{"../promises":23,"./nodes":35,sax:150,underscore:153}],37:[function(e,t,n){function r(u,f){u.text(f.value)}var i=e("underscore"),l=e("xmlbuilder");n.writeString=function(u,f){function v(y){var w=/^\{(.*)\}(.*)$/.exec(y);return w?(y=h[w[1]],y+(y===""?"":":")+w[2]):y}var h=i.invert(f),g={element:function(y,w){var C=y.element(v(w.name),w.attributes);w.children.forEach(function(S){g[S.type](C,S)})},text:r};return function(y){var w=l.create(v(y.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return i.forEach(f,function(C,S){w.attribute("xmlns"+(S===""?"":":"+S),C)}),y.children.forEach(function(C){g[C.type](w,C)}),w.end()}(u)}},{underscore:153,xmlbuilder:179}],38:[function(e,t,n){(function(r){var i=e("jszip"),l=e("./promises");n.openArrayBuffer=function(u){var f=new i(u);return{exists:function(v){return f.file(v)!==null},read:function(v,h){return v=f.file(v).asUint8Array(),v=new r(v),h?l.when(v.toString(h)):l.when(v)},write:function(v,h){f.file(v,h)},toBuffer:function(){return f.generate({type:"nodebuffer"})}}},n.splitPath=function(u){var f=u.lastIndexOf("/");return f===-1?{dirname:"",basename:u}:{dirname:u.substring(0,f),basename:u.substring(f+1)}},n.joinPath=function(){var u=[];return Array.prototype.filter.call(arguments,function(f){return f}).forEach(function(f){/^\//.test(f)?u=[f]:u.push(f)}),u.join("/")}}).call(this,e("buffer").Buffer)},{"./promises":23,buffer:77,jszip:92}],39:[function(e,t,n){function r(v){var h=v.length;if(0<h%4)throw Error("Invalid string. Length must be a multiple of 4");return v[h-2]==="="?2:v[h-1]==="="?1:0}function i(v,h,g){for(var y=[],w=h;w<g;w+=3)h=(v[w]<<16)+(v[w+1]<<8)+v[w+2],y.push(l[h>>18&63]+l[h>>12&63]+l[h>>6&63]+l[h&63]);return y.join("")}n.byteLength=function(v){return 3*v.length/4-r(v)},n.toByteArray=function(v){var h=v.length,g=r(v),y=new f(3*h/4-g),w=0<g?h-4:h,C=0;for(h=0;h<w;h+=4){var S=u[v.charCodeAt(h)]<<18|u[v.charCodeAt(h+1)]<<12|u[v.charCodeAt(h+2)]<<6|u[v.charCodeAt(h+3)];y[C++]=S>>16&255,y[C++]=S>>8&255,y[C++]=S&255}return g===2?(S=u[v.charCodeAt(h)]<<2|u[v.charCodeAt(h+1)]>>4,y[C++]=S&255):g===1&&(S=u[v.charCodeAt(h)]<<10|u[v.charCodeAt(h+1)]<<4|u[v.charCodeAt(h+2)]>>2,y[C++]=S>>8&255,y[C++]=S&255),y},n.fromByteArray=function(v){for(var h=v.length,g=h%3,y="",w=[],C=0,S=h-g;C<S;C+=16383)w.push(i(v,C,C+16383>S?S:C+16383));return g===1?(v=v[h-1],y+=l[v>>2],y+=l[v<<4&63],y+="=="):g===2&&(v=(v[h-2]<<8)+v[h-1],y+=l[v>>10],y+=l[v>>4&63],y+=l[v<<2&63],y+="="),w.push(y),w.join("")};var l=[],u=[],f=typeof Uint8Array!="undefined"?Uint8Array:Array;for(e=0;64>e;++e)l[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e],u["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(e)]=e;u[45]=62,u[95]=63},{}],40:[function(e,t,n){t.exports=function(r){function i(u){u=new l(u);var f=u.promise();return u.setHowMany(1),u.setUnwrap(),u.init(),f}var l=r._SomePromiseArray;r.any=function(u){return i(u)},r.prototype.any=function(){return i(this)}}},{}],41:[function(e,t,n){(function(r){function i(){this._isTickUsed=this._customScheduler=!1,this._lateQueue=new g(16),this._normalQueue=new g(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var w=this;this.drainQueues=function(){w._drainQueues()},this._schedule=h}function l(w,C,S){this._lateQueue.push(w,C,S),this._queueTick()}function u(w,C,S){this._normalQueue.push(w,C,S),this._queueTick()}function f(w){this._normalQueue._pushOne(w),this._queueTick()}try{throw Error()}catch(w){var v=w}var h=e("./schedule"),g=e("./queue"),y=e("./util");i.prototype.setScheduler=function(w){var C=this._schedule;return this._schedule=w,this._customScheduler=!0,C},i.prototype.hasCustomScheduler=function(){return this._customScheduler},i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){y.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(w,C){C?(r.stderr.write("Fatal "+(w instanceof Error?w.stack:w)+` 240`),r.exit(2)):this.throwLater(w)},i.prototype.throwLater=function(w,C){if(arguments.length===1&&(C=w,w=function(){throw C}),typeof setTimeout!="undefined")setTimeout(function(){w(C)},0);else try{this._schedule(function(){w(C)})}catch{throw Error(`No async scheduler available 241 242 See http://goo.gl/MqrFmX 243`)}},y.hasDevTools?(i.prototype.invokeLater=function(w,C,S){this._trampolineEnabled?l.call(this,w,C,S):this._schedule(function(){setTimeout(function(){w.call(C,S)},100)})},i.prototype.invoke=function(w,C,S){this._trampolineEnabled?u.call(this,w,C,S):this._schedule(function(){w.call(C,S)})},i.prototype.settlePromises=function(w){this._trampolineEnabled?f.call(this,w):this._schedule(function(){w._settlePromises()})}):(i.prototype.invokeLater=l,i.prototype.invoke=u,i.prototype.settlePromises=f),i.prototype._drainQueue=function(w){for(;0<w.length();){var C=w.shift();if(typeof C!="function")C._settlePromises();else{var S=w.shift(),T=w.shift();C.call(S,T)}}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1}
243,t.exports=i,t.exports.firstLineError=v}).call(this,e("_process"))},{"./queue":64,"./schedule":67,"./util":74,_process:138}],42:[function(e,t,n){t.exports=function(r,i,l,u){var f=!1,v=function(w,C){this._reject(C)},h=function(w,C){C.promiseRejectionQueued=!0,C.bindingPromise._then(v,v,null,this,w)},g=function(w,C){(this._bitField&50397184)===0&&this._resolveCallback(C.target)},y=function(w,C){C.promiseRejectionQueued||this._reject(w)};r.prototype.bind=function(w){f||(f=!0,r.prototype._propagateFrom=u.propagateFromFunction(),r.prototype._boundValue=u.boundValueFunction()),w=l(w);var C=new r(i);C._propagateFrom(this,1);var S=this._target();if(C._setBoundTo(w),w instanceof r){var T={promiseRejectionQueued:!1,promise:C,target:S,bindingPromise:w};S._then(i,h,void 0,C,T),w._then(g,y,void 0,C,T),C._setOnCancel(w)}else C._resolveCallback(S);return C},r.prototype._setBoundTo=function(w){w!==void 0?(this._bitField|=2097152,this._boundTo=w):this._bitField&=-2097153},r.prototype._isBound=function(){return(this._bitField&2097152)===2097152},r.bind=function(w,C){return r.resolve(C).bind(w)}}},{}],43:[function(e,t,n){if(n=Object.create){var r=n(null),i=n(null);r[" size"]=i[" size"]=0}t.exports=function(l){function u(R,N){var A;if(R!=null&&(A=R[N]),typeof A!="function")throw R="Object "+g.classString(R)+" has no method '"+g.toString(N)+"'",new l.TypeError(R);return A}function f(R){var N=this.pop();return u(R,N).apply(R,this)}function v(R){return R[this]}function h(R){var N=+this;return 0>N&&(N=Math.max(0,N+R.length)),R[N]}var g=e("./util"),y=g.canEvaluate,w=g.isIdentifier,C=function(R){return new Function("ensureMethod",` 244 return function(obj) { 245 'use strict' 246 var len = this.length; 247 ensureMethod(obj, 'methodName'); 248 switch(len) { 249 case 1: return obj.methodName(this[0]); 250 case 2: return obj.methodName(this[0], this[1]); 251 case 3: return obj.methodName(this[0], this[1], this[2]); 252 case 0: return obj.methodName(); 253 default: 254 return obj.methodName.apply(obj, this); 255 } 256 }; 257 `.replace(/methodName/g,R))(u)},S=function(R){return new Function("obj",` 258 'use strict'; 259 return obj.propertyName; 260 `.replace("propertyName",R))},T=function(R,N,A){var X=A[R];if(typeof X!="function"){if(!w(R))return null;if(X=N(R),A[R]=X,A[" size"]++,512<A[" size"]){for(R=Object.keys(A),N=0;256>N;++N)delete A[R[N]];A[" size"]=R.length-256}}return X},B=function(R){return T(R,C,r)},F=function(R){return T(R,S,i)};l.prototype.call=function(R){for(var N=arguments.length,A=Array(Math.max(N-1,0)),X=1;X<N;++X)A[X-1]=arguments[X];return y&&(N=B(R),N!==null)?this._then(N,void 0,void 0,A,void 0):(A.push(R),this._then(f,void 0,void 0,A,void 0))},l.prototype.get=function(R){if(typeof R!="number")if(y){var N=F(R);N=N!==null?N:v}else N=v;else N=h;return this._then(N,void 0,void 0,R,void 0)}}},{"./util":74}],44:[function(e,t,n){t.exports=function(r,i,l,u){var f=e("./util"),v=f.tryCatch,h=f.errorObj,g=r._async;r.prototype.break=r.prototype.cancel=function(){if(!u.cancellation())return this._warn("cancellation is disabled");for(var y=this,w=y;y._isCancellable();){if(!y._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var C=y._cancellationParent;if(C!=null&&C._isCancellable())y._isFollowing()&&y._followee().cancel(),y._setWillBeCancelled(),w=y,y=C;else{y._isFollowing()?y._followee().cancel():y._cancelBranched();break}}},r.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},r.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||0>=this._branchesRemainingToCancel},r.prototype._cancelBy=function(y){return y===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},r.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},r.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),g.invoke(this._cancelPromises,this,void 0))},r.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},r.prototype._unsetOnCancel=function(){this._onCancelField=void 0},r.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},r.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()}
260,r.prototype._doInvokeOnCancel=function(y,w){if(f.isArray(y))for(var C=0;C<y.length;++C)this._doInvokeOnCancel(y[C],w);else y!==void 0&&(typeof y=="function"?w||(y=v(y).call(this._boundValue()),y===h&&(this._attachExtraTrace(y.e),g.throwLater(y.e))):y._resultCancelled(this))},r.prototype._invokeOnCancel=function(){var y=this._onCancel();this._unsetOnCancel(),g.invoke(this._doInvokeOnCancel,this,y)},r.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},r.prototype._resultCancelled=function(){this.cancel()}}},{"./util":74}],45:[function(e,t,n){t.exports=function(r){var i=e("./util"),l=e("./es5").keys,u=i.tryCatch,f=i.errorObj;return function(v,h,g){return function(y){var w=g._boundValue(),C=0;e:for(;C<v.length;++C){var S=v[C];if(S===Error||S!=null&&S.prototype instanceof Error){if(y instanceof S)return u(h).call(w,y)}else if(typeof S=="function"){if(S=u(S).call(w,y),S===f)return S;if(S)return u(h).call(w,y)}else if(i.isObject(y)){for(var T=l(S),B=0;B<T.length;++B){var F=T[B];if(S[F]!=y[F])continue e}return u(h).call(w,y)}}return r}}}},{"./es5":51,"./util":74}],46:[function(e,t,n){t.exports=function(r){function i(){this._trace=new i.CapturedTrace(l())}function l(){var v=f.length-1;if(0<=v)return f[v]}var u=!1,f=[];return r.prototype._promiseCreated=function(){},r.prototype._pushContext=function(){},r.prototype._popContext=function(){return null},r._peekContext=r.prototype._peekContext=function(){},i.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,f.push(this._trace))},i.prototype._popContext=function(){if(this._trace!==void 0){var v=f.pop(),h=v._promiseCreated;return v._promiseCreated=null,h}return null},i.CapturedTrace=null,i.create=function(){if(u)return new i},i.deactivateLongStackTraces=function(){},i.activateLongStackTraces=function(){var v=r.prototype._pushContext,h=r.prototype._popContext,g=r._peekContext,y=r.prototype._peekContext,w=r.prototype._promiseCreated;i.deactivateLongStackTraces=function(){r.prototype._pushContext=v,r.prototype._popContext=h,r._peekContext=g,r.prototype._peekContext=y,r.prototype._promiseCreated=w,u=!1},u=!0,r.prototype._pushContext=i.prototype._pushContext,r.prototype._popContext=i.prototype._popContext,r._peekContext=r.prototype._peekContext=l,r.prototype._promiseCreated=function(){var C=this._peekContext();C&&C._promiseCreated==null&&(C._promiseCreated=this)}},i}},{}],47:[function(e,t,n){(function(r){t.exports=function(i,l){function u(ot,Fe){return{promise:Fe}}function f(){return!1}function v(ot,Fe,We){var Ye=this;try{ot(Fe,We,function(Ke){if(typeof Ke!="function")throw new TypeError("onCancel must be a function, got: "+fe.toString(Ke));Ye._attachCancellationCallback(Ke)})}catch(Ke){return Ke}}function h(ot){if(!this._isCancellable())return this;var Fe=this._onCancel();Fe!==void 0?fe.isArray(Fe)?Fe.push(ot):this._setOnCancel([Fe,ot]):this._setOnCancel(ot)}function g(){return this._onCancelField}function y(ot){this._onCancelField=ot}function w(){this._onCancelField=this._cancellationParent=void 0}function C(ot,Fe){if((Fe&1)!==0){this._cancellationParent=ot;var We=ot._branchesRemainingToCancel;We===void 0&&(We=0),ot._branchesRemainingToCancel=We+1}(Fe&2)!==0&&ot._isBound()&&this._setBoundTo(ot._boundTo)}function S(){var ot=this._boundTo;if(ot!==void 0&&ot instanceof i){if(ot.isFulfilled())return ot.value()}else return ot}function T(){this._trace=new $(this._peekContext())}function B(ot,Fe){if(de(ot)){var We=this._trace;We!==void 0&&Fe&&(We=We._parent),We!==void 0?We.attachExtraTrace(ot):ot.__stackCleaned__||(Fe=A(ot),fe.notEnumerableProp(ot,"stack",Fe.message+` 261`+Fe.stack.join(` 262`)),fe.notEnumerableProp(ot,"__stackCleaned__",!0))}}function F(ot,Fe,We){if(lt.warnings){ot=new K(ot);var Ye;Fe?We._attachExtraTrace(ot):lt.longStackTraces&&(Ye=i._peekContext())?Ye.attachExtraTrace(ot):(Fe=A(ot),ot.stack=Fe.message+` 263`+Fe.stack.join(` 264`)),Ue("warning",ot)||X(ot,"",!0)}}function R(ot,Fe){for(var We=0;We<Fe.length-1;++We)Fe[We].push("From previous event:"),Fe[We]=Fe[We].join(` 265`);return We<Fe.length&&(Fe[We]=Fe[We].join(` 266`)),ot+` 267`+Fe.join(` 268`)}function N(ot){for(var Fe=[],We=0;We<ot.length;++We){var Ye=ot[We],Ke=Ye===" (No stack trace)"||U.test(Ye),mt=Ke&&De(Ye);Ke&&!mt&&(ee&&Ye.charAt(0)!==" "&&(Ye=" "+Ye),Fe.push(Ye))}return Fe}function A(ot){var Fe=ot.stack,We=ot.toString();if(typeof Fe=="string"&&0<Fe.length){Fe=ot.stack.replace(/\s+$/g,"").split(` 269`);for(var Ye=0;Ye<Fe.length;++Ye){var Ke=Fe[Ye];if(Ke===" (No stack trace)"||U.test(Ke))break}0<Ye&&ot.name!="SyntaxError"&&(Fe=Fe.slice(Ye))}else Fe=[" (No stack trace)"];return{message:We,stack:ot.name=="SyntaxError"?Fe:N(Fe)}}function X(ot,Fe,We){typeof console!="undefined"&&(ot=fe.isObject(ot)?Fe+j(ot.stack,ot):Fe+String(ot),typeof ct=="function"?ct(ot,We):(typeof console.log=="function"||typeof console.log=="object")&&console.log(ot))}function Z(ot,Fe,We,Ye){var Ke=!1;try{typeof Fe=="function"&&(Ke=!0,ot==="rejectionHandled"?Fe(Ye):Fe(We,Ye))}catch(mt){V.throwLater(mt)}ot==="unhandledRejection"?Ue(ot,We,Ye)||Ke||X(We,"Unhandled rejection "):Ue(ot,Ye)}function z(ot){if(typeof ot=="function")var Fe="[function "+(ot.name||"anonymous")+"]";else{if(Fe=ot&&typeof ot.toString=="function"?ot.toString():fe.toString(ot),/\[object [a-zA-Z0-9$_]+\]/.test(Fe))try{Fe=JSON.stringify(ot)}catch{}Fe.length===0&&(Fe="(empty array)")}return ot=41>Fe.length?Fe:Fe.substr(0,38)+"...","(<"+ot+">, no stack trace)"}function Y(){return typeof rt=="function"}function Q(ot){if(ot=ot.match($e))return{fileName:ot[1],line:parseInt(ot[2],10)}}function $(ot){this._parent=ot,this._promisesCreated=0,ot=this._length=1+(ot===void 0?0:ot._length),rt(this,$),32<ot&&this.uncycle()}var te=i._getDomain,V=i._async,K=e("./errors").Warning,fe=e("./util"),de=fe.canAttachTrace,ne,le,_e=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,M=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,U=null,j=null,ee=!1,ye=!(fe.env("BLUEBIRD_DEBUG")==0||!fe.env("BLUEBIRD_DEBUG")&&fe.env("NODE_ENV")!=="development"),ie=!(fe.env("BLUEBIRD_WARNINGS")==0||!ye&&!fe.env("BLUEBIRD_WARNINGS"));ye=!(fe.env("BLUEBIRD_LONG_STACK_TRACES")==0||!ye&&!fe.env("BLUEBIRD_LONG_STACK_TRACES"));var he=fe.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(ie||!!fe.env("BLUEBIRD_W_FORGOTTEN_RETURN"));i.prototype.suppressUnhandledRejections=function(){var ot=this._target();ot._bitField=ot._bitField&-1048577|524288},i.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),V.invokeLater(this._notifyUnhandledRejection,this,void 0))},i.prototype._notifyUnhandledRejectionIsHandled=function(){Z("rejectionHandled",ne,void 0,this)},i.prototype._setReturnedNonUndefined=function(){this._bitField|=268435456},i.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},i.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ot=this._settledValue();this._setUnhandledRejectionIsNotified(),Z("unhandledRejection",le,ot,this)}},i.prototype._setUnhandledRejectionIsNotified=function(){this._bitField|=262144},i.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField&=-262145}
269,i.prototype._isUnhandledRejectionNotified=function(){return 0<(this._bitField&262144)},i.prototype._setRejectionIsUnhandled=function(){this._bitField|=1048576},i.prototype._unsetRejectionIsUnhandled=function(){this._bitField&=-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},i.prototype._isRejectionUnhandled=function(){return 0<(this._bitField&1048576)},i.prototype._warn=function(ot,Fe,We){return F(ot,Fe,We||this)},i.onPossiblyUnhandledRejection=function(ot){var Fe=te();le=typeof ot=="function"?Fe===null?ot:fe.domainBind(Fe,ot):void 0},i.onUnhandledRejectionHandled=function(ot){var Fe=te();ne=typeof ot=="function"?Fe===null?ot:fe.domainBind(Fe,ot):void 0};var re=function(){};i.longStackTraces=function(){if(V.haveItemsQueued()&&!lt.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created 270 271 See http://goo.gl/MqrFmX 272`);if(!lt.longStackTraces&&Y()){var ot=i.prototype._captureStackTrace,Fe=i.prototype._attachExtraTrace;lt.longStackTraces=!0,re=function(){if(V.haveItemsQueued()&&!lt.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created 273 274 See http://goo.gl/MqrFmX 275`);i.prototype._captureStackTrace=ot,i.prototype._attachExtraTrace=Fe,l.deactivateLongStackTraces(),V.enableTrampoline(),lt.longStackTraces=!1},i.prototype._captureStackTrace=T,i.prototype._attachExtraTrace=B,l.activateLongStackTraces(),V.disableTrampolineIfNecessary()}},i.hasLongStackTraces=function(){return lt.longStackTraces&&Y()};var be=function(){try{if(typeof CustomEvent=="function"){var ot=new CustomEvent("CustomEvent");return fe.global.dispatchEvent(ot),function(Fe,We){return Fe=new CustomEvent(Fe.toLowerCase(),{detail:We,cancelable:!0}),!fe.global.dispatchEvent(Fe)}}return typeof Event=="function"?(ot=new Event("CustomEvent"),fe.global.dispatchEvent(ot),function(Fe,We){return Fe=new Event(Fe.toLowerCase(),{cancelable:!0}),Fe.detail=We,!fe.global.dispatchEvent(Fe)}):(ot=document.createEvent("CustomEvent"),ot.initCustomEvent("testingtheevent",!1,!0,{}),fe.global.dispatchEvent(ot),function(Fe,We){var Ye=document.createEvent("CustomEvent");return Ye.initCustomEvent(Fe.toLowerCase(),!1,!0,We),!fe.global.dispatchEvent(Ye)})}catch{}return function(){return!1}}(),Ae=function(){return fe.isNode?function(){return r.emit.apply(r,arguments)}:fe.global?function(ot){var Fe="on"+ot.toLowerCase();return Fe=fe.global[Fe],Fe?(Fe.apply(fe.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}(),Te={promiseCreated:u,promiseFulfilled:u,promiseRejected:u,promiseResolved:u,promiseCancelled:u,promiseChained:function(ot,Fe,We){return{promise:Fe,child:We}},warning:function(ot,Fe){return{warning:Fe}},unhandledRejection:function(ot,Fe,We){return{reason:Fe,promise:We}},rejectionHandled:u},Ue=function(ot){var Fe=!1;try{Fe=Ae.apply(null,arguments)}catch(Ye){V.throwLater(Ye),Fe=!0}var We=!1;try{We=be(ot,Te[ot].apply(null,arguments))}catch(Ye){V.throwLater(Ye),We=!0}return We||Fe};i.config=function(ot){if(ot=Object(ot),"longStackTraces"in ot&&(ot.longStackTraces?i.longStackTraces():!ot.longStackTraces&&i.hasLongStackTraces()&&re()),"warnings"in ot){var Fe=ot.warnings;lt.warnings=!!Fe,he=lt.warnings,fe.isObject(Fe)&&"wForgottenReturn"in Fe&&(he=!!Fe.wForgottenReturn)}if("cancellation"in ot&&ot.cancellation&&!lt.cancellation){if(V.haveItemsQueued())throw Error("cannot enable cancellation after promises are in use");i.prototype._clearCancellationData=w,i.prototype._propagateFrom=C,i.prototype._onCancel=g,i.prototype._setOnCancel=y,i.prototype._attachCancellationCallback=h,i.prototype._execute=v,Oe=C,lt.cancellation=!0}return"monitoring"in ot&&(ot.monitoring&&!lt.monitoring?(lt.monitoring=!0,i.prototype._fireEvent=Ue):!ot.monitoring&<.monitoring&&(lt.monitoring=!1,i.prototype._fireEvent=f)),i},i.prototype._fireEvent=f,i.prototype._execute=function(ot,Fe,We){try{ot(Fe,We)}catch(Ye){return Ye}},i.prototype._onCancel=function(){},i.prototype._setOnCancel=function(ot){},i.prototype._attachCancellationCallback=function(ot){},i.prototype._captureStackTrace=function(){},i.prototype._attachExtraTrace=function(){},i.prototype._clearCancellationData=function(){},i.prototype._propagateFrom=function(ot,Fe){};var Oe=function(ot,Fe){(Fe&2)!==0&&ot._isBound()&&this._setBoundTo(ot._boundTo)},De=function(){return!1},$e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;fe.inherits($,Error),l.CapturedTrace=$,$.prototype.uncycle=function(){var ot=this._length;if(!(2>ot)){var Fe=[],We={},Ye=0;for(ot=this;ot!==void 0;++Ye)Fe.push(ot),ot=ot._parent;for(ot=this._length=Ye,Ye=ot-1;0<=Ye;--Ye){var Ke=Fe[Ye].stack;We[Ke]===void 0&&(We[Ke]=Ye)}for(Ye=0;Ye<ot;++Ye)if(Ke=We[Fe[Ye].stack],Ke!==void 0&&Ke!==Ye){for(0<Ke&&(Fe[Ke-1]._parent=void 0,Fe[Ke-1]._length=1),Fe[Ye]._parent=void 0,Fe[Ye]._length=1,We=0<Ye?Fe[Ye-1]:this,Ke<ot-1?(We._parent=Fe[Ke+1],We._parent.uncycle(),We._length=We._parent._length+1):(We._parent=void 0,We._length=1),ot=We._length+1,Ye-=2;0<=Ye;--Ye)Fe[Ye]._length=ot,ot++;break}}},$.prototype.attachExtraTrace=function(ot){if(!ot.__stackCleaned__){this.uncycle();var Fe=A(ot),We=Fe.message;Fe=[Fe.stack];for(var Ye=this;Ye!==void 0;)Fe.push(N(Ye.stack.split(` 276`))),Ye=Ye._parent;Ye=Fe[0];for(var Ke=1;Ke<Fe.length;++Ke){for(var mt=Fe[Ke],Ct=Ye.length-1,bt=Ye[Ct],tn=-1,Ft=mt.length-1;0<=Ft;--Ft)if(mt[Ft]===bt){tn=Ft;break}for(Ft=tn;0<=Ft&&Ye[Ct]===mt[Ft];--Ft)Ye.pop(),Ct--;Ye=mt}for(Ye=0;Ye<Fe.length;++Ye)(Fe[Ye].length===0||Ye+1<Fe.length&&Fe[Ye][0]===Fe[Ye+1][0])&&(Fe.splice(Ye,1),Ye--);fe.notEnumerableProp(ot,"stack",R(We,Fe)),fe.notEnumerableProp(ot,"__stackCleaned__",!0)}};var rt=function(){var ot=/^\s*at\s*/,Fe=function(mt,Ct){return typeof mt=="string"?mt:Ct.name!==void 0&&Ct.message!==void 0?Ct.toString():z(Ct)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,U=ot,j=Fe;var We=Error.captureStackTrace;return De=function(mt){return _e.test(mt)},function(mt,Ct){Error.stackTraceLimit+=6,We(mt,Ct),Error.stackTraceLimit-=6}}var Ye=Error();
276if(typeof Ye.stack=="string"&&0<=Ye.stack.split(` 277`)[0].indexOf("stackDetection@"))return U=/@/,j=Fe,ee=!0,function(mt){mt.stack=Error().stack};try{throw Error()}catch(mt){var Ke="stack"in mt}return!("stack"in Ye)&&Ke&&typeof Error.stackTraceLimit=="number"?(U=ot,j=Fe,function(mt){Error.stackTraceLimit+=6;try{throw Error()}catch(Ct){mt.stack=Ct.stack}Error.stackTraceLimit-=6}):(j=function(mt,Ct){return typeof mt=="string"?mt:typeof Ct!="object"&&typeof Ct!="function"||Ct.name===void 0||Ct.message===void 0?z(Ct):Ct.toString()},null)}();if(typeof console!="undefined"&&typeof console.warn!="undefined"){var ct=function(ot){console.warn(ot)};fe.isNode&&r.stderr.isTTY?ct=function(ot,Fe){console.warn((Fe?"\x1B[33m":"\x1B[31m")+ot+`\x1B[0m 278`)}:fe.isNode||typeof Error().stack!="string"||(ct=function(ot,Fe){console.warn("%c"+ot,Fe?"color: darkorange":"color: red")})}var lt={warnings:ie,longStackTraces:!1,cancellation:!1,monitoring:!1};return ye&&i.longStackTraces(),{longStackTraces:function(){return lt.longStackTraces},warnings:function(){return lt.warnings},cancellation:function(){return lt.cancellation},monitoring:function(){return lt.monitoring},propagateFromFunction:function(){return Oe},boundValueFunction:function(){return S},checkForgottenReturns:function(ot,Fe,We,Ye,Ke){if(ot===void 0&&Fe!==null&&he&&!(Ke!==void 0&&Ke._returnedNonUndefined()||(Ye._bitField&65535)===0)){if(We&&(We+=" "),Ke=ot="",Fe._trace){for(var mt=Fe._trace.stack.split(` 279`),Ct=N(mt),bt=Ct.length-1;0<=bt;--bt){var tn=Ct[bt];if(!M.test(tn)){(bt=tn.match(P))&&(ot="at "+bt[1]+":"+bt[2]+":"+bt[3]+" ");break}}if(0<Ct.length){for(Ct=Ct[0],bt=0;bt<mt.length;++bt)if(mt[bt]===Ct){0<bt&&(Ke=` 280`+mt[bt-1]);break}}}Ye._warn("a promise was created in a "+We+"handler "+ot+"but was not returned from it, see http://goo.gl/rRqMUw"+Ke,!0,Fe)}},setBounds:function(ot,Fe){if(Y()){ot=ot.stack.split(` 281`),Fe=Fe.stack.split(` 282`);for(var We=-1,Ye=-1,Ke,mt,Ct=0;Ct<ot.length;++Ct){var bt=Q(ot[Ct]);if(bt){Ke=bt.fileName,We=bt.line;break}}for(Ct=0;Ct<Fe.length;++Ct)if(bt=Q(Fe[Ct])){mt=bt.fileName,Ye=bt.line;break}0>We||0>Ye||!Ke||!mt||Ke!==mt||We>=Ye||(De=function(tn){return _e.test(tn)?!0:!!((tn=Q(tn))&&tn.fileName===Ke&&We<=tn.line&&tn.line<=Ye)})}},warn:F,deprecated:function(ot,Fe){return ot+=" is deprecated and will be removed in a future version.",Fe&&(ot+=" Use "+Fe+" instead."),F(ot)},CapturedTrace:$,fireDomEvent:be,fireGlobalEvent:Ae}}}).call(this,e("_process"))},{"./errors":50,"./util":74,_process:138}],48:[function(e,t,n){t.exports=function(r){function i(){return this.value}function l(){throw this.reason}r.prototype.return=r.prototype.thenReturn=function(u){return u instanceof r&&u.suppressUnhandledRejections(),this._then(i,void 0,void 0,{value:u},void 0)},r.prototype.throw=r.prototype.thenThrow=function(u){return this._then(l,void 0,void 0,{reason:u},void 0)},r.prototype.catchThrow=function(u){if(1>=arguments.length)return this._then(void 0,l,void 0,{reason:u},void 0);var f=arguments[1];return this.caught(u,function(){throw f})},r.prototype.catchReturn=function(u){if(1>=arguments.length)return u instanceof r&&u.suppressUnhandledRejections(),this._then(void 0,i,void 0,{value:u},void 0);var f=arguments[1];return f instanceof r&&f.suppressUnhandledRejections(),this.caught(u,function(){return f})}}},{}],49:[function(e,t,n){t.exports=function(r,i){function l(){return f(this)}var u=r.reduce,f=r.all;r.prototype.each=function(v){return u(this,v,i,0)._then(l,void 0,void 0,this,void 0)},r.prototype.mapSeries=function(v){return u(this,v,i,i)},r.each=function(v,h){return u(v,h,i,0)._then(l,void 0,void 0,v,void 0)},r.mapSeries=function(v,h){return u(v,h,i,i)}}},{}],50:[function(e,t,n){function r(B,F){function R(N){if(!(this instanceof R))return new R(N);f(this,"message",typeof N=="string"?N:F),f(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return u(R,Error),R}function i(B){if(!(this instanceof i))return new i(B);f(this,"name","OperationalError"),f(this,"message",B),this.cause=B,this.isOperational=!0,B instanceof Error?(f(this,"message",B.message),f(this,"stack",B.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}n=e("./es5");var l=n.freeze;e=e("./util");var u=e.inherits,f=e.notEnumerableProp;e=r("Warning","warning");var v=r("CancellationError","cancellation error"),h=r("TimeoutError","timeout error"),g=r("AggregateError","aggregate error");try{var y=TypeError,w=RangeError}catch{y=r("TypeError","type error"),w=r("RangeError","range error")}for(var C="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),S=0;S<C.length;++S)typeof Array.prototype[C[S]]=="function"&&(g.prototype[C[S]]=Array.prototype[C[S]]);n.defineProperty(g.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),g.prototype.isOperational=!0;var T=0;g.prototype.toString=function(){var B=Array(4*T+1).join(" "),F=` 283`+B+`AggregateError of: 284`;T++,B=Array(4*T+1).join(" ");for(var R=0;R<this.length;++R){var N=this[R]===this?"[Circular AggregateError]":this[R]+"";N=N.split(` 285`);for(var A=0;A<N.length;++A)N[A]=B+N[A];N=N.join(` 286`),F+=N+` 287`}return T--,F},u(i,Error),C=Error.__BluebirdErrorTypes__,C||(C=l({CancellationError:v,TimeoutError:h,OperationalError:i,RejectionError:i,AggregateError:g}),n.defineProperty(Error,"__BluebirdErrorTypes__",{value:C,writable:!1,enumerable:!1,
287configurable:!1})),t.exports={Error,TypeError:y,RangeError:w,CancellationError:C.CancellationError,OperationalError:C.OperationalError,TimeoutError:C.TimeoutError,AggregateError:C.AggregateError,Warning:e}},{"./es5":51,"./util":74}],51:[function(e,t,n){if(e=function(){return this===void 0}())t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(u,f){return u=Object.getOwnPropertyDescriptor(u,f),!(u&&!u.writable&&!u.set)}};else{var r={}.hasOwnProperty,i={}.toString,l={}.constructor.prototype;n=function(u){var f=[],v;for(v in u)r.call(u,v)&&f.push(v);return f},t.exports={isArray:function(u){try{return i.call(u)==="[object Array]"}catch{return!1}},keys:n,names:n,defineProperty:function(u,f,v){return u[f]=v.value,u},getDescriptor:function(u,f){return{value:u[f]}},freeze:function(u){return u},getPrototypeOf:function(u){try{return Object(u).constructor.prototype}catch{return l}},isES5:e,propertyIsWritable:function(){return!0}}}},{}],52:[function(e,t,n){t.exports=function(r,i){var l=r.map;r.prototype.filter=function(u,f){return l(this,u,f,i)},r.filter=function(u,f,v){return l(u,f,v,i)}}},{}],53:[function(e,t,n){t.exports=function(r,i){function l(S,T,B){this.promise=S,this.type=T,this.handler=B,this.called=!1,this.cancelPromise=null}function u(S){this.finallyHandler=S}function f(S,T){return S.cancelPromise!=null?(1<arguments.length?S.cancelPromise._reject(T):S.cancelPromise._cancel(),S.cancelPromise=null,!0):!1}function v(){return g.call(this,this.promise._target()._settledValue())}function h(S){if(!f(this,S))return C.e=S,C}function g(S){var T=this.promise,B=this.handler;if(!this.called&&(this.called=!0,B=this.isFinallyHandler()?B.call(T._boundValue()):B.call(T._boundValue(),S),B!==void 0&&(T._setReturnedNonUndefined(),B=i(B,T),B instanceof r))){if(this.cancelPromise!=null){if(B._isCancelled())return S=new w("late cancellation observer"),T._attachExtraTrace(S),C.e=S,C;B.isPending()&&B._attachCancellationCallback(new u(this))}return B._then(v,h,void 0,this,void 0)}return T.isRejected()?(f(this),C.e=S,C):(f(this),S)}var y=e("./util"),w=r.CancellationError,C=y.errorObj;return l.prototype.isFinallyHandler=function(){return this.type===0},u.prototype._resultCancelled=function(){f(this.finallyHandler)},r.prototype._passThrough=function(S,T,B,F){return typeof S!="function"?this.then():this._then(B,F,void 0,new l(this,T,S),void 0)},r.prototype.lastly=r.prototype.finally=function(S){return this._passThrough(S,0,g,g)},r.prototype.tap=function(S){return this._passThrough(S,1,g)},l}},{"./util":74}],54:[function(e,t,n){t.exports=function(r,i,l,u,f,v){function h(T,B,F,R){if(v.cancellation()){var N=new r(l),A=this._finallyPromise=new r(l);this._promise=N.lastly(function(){return A}),N._captureStackTrace(),N._setOnCancel(this)}else(this._promise=new r(l))._captureStackTrace();this._stack=R,this._generatorFunction=T,this._receiver=B,this._generator=void 0,this._yieldHandlers=typeof F=="function"?[F].concat(S):S,this._yieldedPromise=null,this._cancellationPhase=!1}var g=e("./errors").TypeError,y=e("./util"),w=y.errorObj,C=y.tryCatch,S=[];y.inherits(h,f),h.prototype._isResolved=function(){return this._promise===null},h.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},h.prototype._promiseCancelled=function(){if(!this._isResolved()){if(typeof this._generator.return=="undefined"){var T=new r.CancellationError("generator .return() sentinel");r.coroutine.returnSentinel=T,this._promise._attachExtraTrace(T),this._promise._pushContext(),T=C(this._generator.throw).call(this._generator,T)}
287else this._promise._pushContext(),T=C(this._generator.return).call(this._generator,void 0);this._promise._popContext(),this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(T)}},h.prototype._promiseFulfilled=function(T){this._yieldedPromise=null,this._promise._pushContext(),T=C(this._generator.next).call(this._generator,T),this._promise._popContext(),this._continue(T)},h.prototype._promiseRejected=function(T){this._yieldedPromise=null,this._promise._attachExtraTrace(T),this._promise._pushContext(),T=C(this._generator.throw).call(this._generator,T),this._promise._popContext(),this._continue(T)},h.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof r){var T=this._yieldedPromise;this._yieldedPromise=null,T.cancel()}},h.prototype.promise=function(){return this._promise},h.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},h.prototype._continue=function(T){var B=this._promise;if(T===w)return this._cleanup(),this._cancellationPhase?B.cancel():B._rejectCallback(T.e,!1);var F=T.value;if(T.done===!0)return this._cleanup(),this._cancellationPhase?B.cancel():B._resolveCallback(F);if(T=u(F,this._promise),!(T instanceof r)){e:{B=T;var R=this._yieldHandlers;T=this._promise;for(var N=0;N<R.length;++N){T._pushContext();var A=C(R[N])(B);if(T._popContext(),A===w){T._pushContext(),B=r.reject(w.e),T._popContext(),T=B;break e}if(A=u(A,T),A instanceof r){T=A;break e}}T=null}if(T===null){this._promiseRejected(new g(`A value %s was yielded that could not be treated as a promise 288 289 See http://goo.gl/MqrFmX 290 291`.replace("%s",F)+`From coroutine: 292`+this._stack.split(` 293`).slice(1,-7).join(` 294`)));return}}T=T._target(),F=T._bitField,(F&50397184)===0?(this._yieldedPromise=T,T._proxy(this,null)):(F&33554432)!==0?r._async.invoke(this._promiseFulfilled,this,T._value()):(F&16777216)!==0?r._async.invoke(this._promiseRejected,this,T._reason()):this._promiseCancelled()},r.coroutine=function(T,B){if(typeof T!="function")throw new g(`generatorFunction must be a function 295 296 See http://goo.gl/MqrFmX 297`);var F=Object(B).yieldHandler,R=Error().stack;return function(){var N=T.apply(this,arguments),A=new h(void 0,void 0,F,R),X=A.promise();return A._generator=N,A._promiseFulfilled(void 0),X}},r.coroutine.addYieldHandler=function(T){if(typeof T!="function")throw new g("expecting a function but got "+y.classString(T));S.push(T)},r.spawn=function(T){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof T!="function")return i(`generatorFunction must be a function 298 299 See http://goo.gl/MqrFmX 300`);T=new h(T,this);var B=T.promise();return T._run(r.spawn),B}}},{"./errors":50,"./util":74}],55:[function(e,t,n){t.exports=function(r,i,l,u,f,v){var h=e("./util"),g=h.canEvaluate,y=h.tryCatch,w=h.errorObj;if(g){for(var C=function(N){for(var A=Array(N),X=0;X<A.length;++X)A[X]="this.p"+(X+1);X=A.join(" = ")+" = null;";var Z=`var promise; 301`+A.map(function(z){return` 302 promise = `+z+`; 303 if (promise instanceof Promise) { 304 promise.cancel(); 305 } 306 `}).join(` 307`);return A=A.join(", "),N=`return function(tryCatch, errorObj, Promise, async) { 308 'use strict'; 309 function [TheName](fn) { 310 [TheProperties] 311 this.fn = fn; 312 this.asyncNeeded = true; 313 this.now = 0; 314 } 315 316 [TheName].prototype._callFunction = function(promise) { 317 promise._pushContext(); 318 var ret = tryCatch(this.fn)([ThePassedArguments]); 319 promise._popContext(); 320 if (ret === errorObj) { 321 promise._rejectCallback(ret.e, false); 322 } else { 323 promise._resolveCallback(ret); 324 } 325 }; 326 327 [TheName].prototype.checkFulfillment = function(promise) { 328 var now = ++this.now; 329 if (now === [TheTotal]) { 330 if (this.asyncNeeded) { 331 async.invoke(this._callFunction, this, promise); 332 } else { 333 this._callFunction(promise); 334 } 335 336 } 337 }; 338 339 [TheName].prototype._resultCancelled = function() { 340 [CancellationCode] 341 }; 342 343 return [TheName]; 344 }(tryCatch, errorObj, Promise, async); 345 `.replace(/\[TheName\]/g,"Holder$"+N).replace(/\[TheTotal\]/g,N).replace(/\[ThePassedArguments\]/g,A).replace(/\[TheProperties\]/g,X).replace(/\[CancellationCode\]/g,Z),new Function("tryCatch","errorObj","Promise","async",N)(y,w,r,f)},S=[],T=[],B=[],F=0;8>F;++F)S.push(C(F+1)),T.push(new Function("value","holder",` 346 'use strict'; 347 holder.pIndex = value; 348 holder.checkFulfillment(this); 349 `.replace(/Index/g,F+1))),B.push(new Function("promise","holder",` 350 'use strict'; 351 holder.pIndex = promise; 352 `.replace(/Index/g,F+1)));var R=function(N){this._reject(N)}}r.join=function(){var N=arguments.length-1;if(0<N&&typeof arguments[N]=="function"){var A=arguments[N];if(8>=N&&g){var X=new r(u);X._captureStackTrace(),A=new S[N-1](A);for(var Z=T,z=0;z<N;++z){var Y=l(arguments[z],X);if(Y instanceof r){Y=Y._target();var Q=Y._bitField;(Q&50397184)===0?(Y._then(Z[z],R,void 0,X,A),B[z](Y,A),A.asyncNeeded=!1):(Q&33554432)!==0?Z[z].call(X,Y._value(),A):(Q&16777216)!==0?X._reject(Y._reason()):X._cancel()}else Z[z].call(X,Y,A)}return X._isFateSealed()||(A.asyncNeeded&&(N=v(),N!==null&&(A.fn=h.domainBind(N,A.fn))),X._setAsyncGuaranteed(),X._setOnCancel(A)),X}}for(X=arguments.length,N=Array(X),Z=0;Z<X;++Z)N[Z]=arguments[Z];return A&&N.pop(),X=new i(N).promise(),A!==void 0?X.spread(A):X}}},{"./util":74}],56:[function(e,t,n){t.exports=function(r,i,l,u,f,v){function h(B,F,R,N){this.constructor$(B),this._promise._captureStackTrace(),B=y(),this._callback=B===null?F:w.domainBind(B,F),this._preservedValues=N===f?Array(this.length()):null,this._limit=R,this._inFlight=0,this._queue=[],T.invoke(this._asyncInit,this,void 0)}function g(B,F,R,N){if(typeof F!="function")return l("expecting a function but got "+w.classString(F));var A=0;if(R!==void 0)if(typeof R=="object"&&R!==null){if(typeof R.concurrency!="number")return r.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(R.concurrency)));A=R.concurrency}else return r.reject(new TypeError("options argument must be an object but it is "+w.classString(R)));return A=typeof A=="number"&&isFinite(A)&&1<=A?A:0,new h(B,F,A,N).promise()}var y=r._getDomain,w=e("./util"),C=w.tryCatch,S=w.errorObj,T=r._async;w.inherits(h,i),h.prototype._asyncInit=function(){this._init$(void 0,-2)},h.prototype._init=function(){},h.prototype._promiseFulfilled=function(B,F){var R=this._values,N=this.length(),A=this._preservedValues,X=this._limit;if(0>F){if(R[-1*F-1]=B,1<=X&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(1<=X&&this._inFlight>=X)return R[F]=B,this._queue.push(F),!1;A!==null&&(A[F]=B);var Z=this._promise,z=this._callback,Y=Z._boundValue();if(Z._pushContext(),B=C(z).call(Y,B,F,N),z=Z._popContext(),v.checkForgottenReturns(B,z,A!==null?"Promise.filter":"Promise.map",Z),B===S)return this._reject(B.e),!0;if(Z=u(B,this._promise),Z instanceof r){if(Z=Z._target(),B=Z._bitField,(B&50397184)===0)return 1<=X&&this._inFlight++,R[F
352]=Z,Z._proxy(this,-1*(F+1)),!1;if((B&33554432)!==0)B=Z._value();else return(B&16777216)!==0?this._reject(Z._reason()):this._cancel(),!0}R[F]=B}return++this._totalResolved>=N?(A!==null?this._filter(R,A):this._resolve(R),!0):!1},h.prototype._drainQueue=function(){for(var B=this._queue,F=this._limit,R=this._values;0<B.length&&this._inFlight<F&&!this._isResolved();){var N=B.pop();this._promiseFulfilled(R[N],N)}},h.prototype._filter=function(B,F){for(var R=F.length,N=Array(R),A=0,X=0;X<R;++X)B[X]&&(N[A++]=F[X]);N.length=A,this._resolve(N)},h.prototype.preservedValues=function(){return this._preservedValues},r.prototype.map=function(B,F){return g(this,B,F,null)},r.map=function(B,F,R,N){return g(B,F,R,N)}}},{"./util":74}],57:[function(e,t,n){t.exports=function(r,i,l,u,f){var v=e("./util"),h=v.tryCatch;r.method=function(g){if(typeof g!="function")throw new r.TypeError("expecting a function but got "+v.classString(g));return function(){var y=new r(i);y._captureStackTrace(),y._pushContext();var w=h(g).apply(this,arguments),C=y._popContext();return f.checkForgottenReturns(w,C,"Promise.method",y),y._resolveFromSyncValue(w),y}},r.attempt=r.try=function(g){if(typeof g!="function")return u("expecting a function but got "+v.classString(g));var y=new r(i);if(y._captureStackTrace(),y._pushContext(),1<arguments.length){f.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],C=arguments[2];w=v.isArray(w)?h(g).apply(C,w):h(g).call(C,w)}else w=h(g)();return C=y._popContext(),f.checkForgottenReturns(w,C,"Promise.try",y),y._resolveFromSyncValue(w),y},r.prototype._resolveFromSyncValue=function(g){g===v.errorObj?this._rejectCallback(g.e,!1):this._resolveCallback(g,!0)}}},{"./util":74}],58:[function(e,t,n){var r=e("./util"),i=r.maybeWrapAsError,l=e("./errors").OperationalError,u=e("./es5"),f=/^(?:name|message|stack|cause)$/;t.exports=function(v,h){return function(g,y){if(v!==null){if(g){var w=i(g);if(w instanceof Error&&u.getPrototypeOf(w)===Error.prototype){var C=new l(w);C.name=w.name,C.message=w.message,C.stack=w.stack;for(var S=u.keys(w),T=0;T<S.length;++T){var B=S[T];f.test(B)||(C[B]=w[B])}w=C}else r.markAsOriginatingFromRejection(w);v._attachExtraTrace(w),v._reject(w)}else if(h){for(w=arguments.length,C=Array(Math.max(w-1,0)),S=1;S<w;++S)C[S-1]=arguments[S];v._fulfill(C)}else v._fulfill(y);v=null}}}},{"./errors":50,"./es5":51,"./util":74}],59:[function(e,t,n){t.exports=function(r){function i(y,w){if(!f.isArray(y))return l.call(this,y,w);y=h(w).apply(this._boundValue(),[null].concat(y)),y===g&&v.throwLater(y.e)}function l(y,w){var C=this._boundValue();y=y===void 0?h(w).call(C,null):h(w).call(C,null,y),y===g&&v.throwLater(y.e)}function u(y,w){if(!y){var C=Error(y+"");C.cause=y,y=C}y=h(w).call(this._boundValue(),y),y===g&&v.throwLater(y.e)}var f=e("./util"),v=r._async,h=f.tryCatch,g=f.errorObj;r.prototype.asCallback=r.prototype.nodeify=function(y,w){if(typeof y=="function"){var C=l;w!==void 0&&Object(w).spread&&(C=i),this._then(C,u,void 0,this,y)}return this}}},{"./util":74}],60:[function(e,t,n){(function(r){t.exports=function(){function i(){}function l(ne){if(this._bitField=0,this._receiver0=this._promise0=this._rejectionHandler0=this._fulfillmentHandler0=void 0,ne!==A){if(typeof ne!="function")throw new R("expecting a function but got "+C.classString(ne));if(this.constructor!==l)throw new R(`the promise constructor cannot be invoked directly 353 354 See http://goo.gl/MqrFmX 355`);this._resolveFromExecutor(ne)}this._promiseCreated(),this._fireEvent("promiseCreated",this)}function u(ne){this.promise._resolveCallback(ne)}function f(ne){this.promise._rejectCallback(ne,!1)}function v(ne){var le=new l(A);le._fulfillmentHandler0=ne,le._rejectionHandler0=ne,le._promise0=ne,le._receiver0=ne}var h=function(){return new R(`circular promise resolution chain 356 357 See http://goo.gl/MqrFmX 358`)},g=function(){return new l.PromiseInspection(this._target())},y=function(ne){return l.reject(new R(ne))},w={},C=e("./util"),S=C.isNode?function(){var ne=r.domain;return ne===void 0&&(ne=null),ne}:function(){return null};C.notEnumerableProp(l,"_getDomain",S);var T=e("./es5"),B=e("./async"),F=new B;T.defineProperty(l,"_async",{value:F}),T=e("./errors");var R=l.TypeError=T.TypeError;l.RangeError=T.RangeError;var N=l.CancellationError=T.CancellationError;l.TimeoutError=T.TimeoutError,l.OperationalError=T.OperationalError,l.RejectionError=T.OperationalError,l.AggregateError=T.AggregateError;var A=function(){},X={},Z={},z=e("./thenables")(l,A),Y=e("./promise_array")(l,A,z,y,i);T=e("./context")(l);var Q=T.create,$=e("./debuggability")(l,T),te=e("./finally")(l,z),V=e("./catch_filter")(Z),K=e("./nodeback"),fe=C.errorObj,de=C.tryCatch;return l.prototype.toString=function(){return"[object Promise]"},l.prototype.caught=l.prototype.catch=function(ne){var le=arguments.length;if(1<le){var _e=Array(le-1),M=0,P;for(P=0;P<le-1;++P){var U=arguments[P];
358if(C.isObject(U))_e[M++]=U;else return y("expecting an object but got A catch statement predicate "+C.classString(U))}return _e.length=M,ne=arguments[P],this.then(void 0,V(_e,ne,this))}return this.then(void 0,ne)},l.prototype.reflect=function(){return this._then(g,g,void 0,this,void 0)},l.prototype.then=function(ne,le){if($.warnings()&&0<arguments.length&&typeof ne!="function"&&typeof le!="function"){var _e=".then() only accepts functions but was passed: "+C.classString(ne);1<arguments.length&&(_e+=", "+C.classString(le)),this._warn(_e)}return this._then(ne,le,void 0,void 0,void 0)},l.prototype.done=function(ne,le){this._then(ne,le,void 0,void 0,void 0)._setIsFinal()},l.prototype.spread=function(ne){return typeof ne!="function"?y("expecting a function but got "+C.classString(ne)):this.all()._then(ne,void 0,void 0,X,void 0)},l.prototype.toJSON=function(){var ne={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(ne.fulfillmentValue=this.value(),ne.isFulfilled=!0):this.isRejected()&&(ne.rejectionReason=this.reason(),ne.isRejected=!0),ne},l.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new Y(this).promise()},l.prototype.error=function(ne){return this.caught(C.originatesFromRejection,ne)},l.getNewLibraryCopy=t.exports,l.is=function(ne){return ne instanceof l},l.fromNode=l.fromCallback=function(ne){var le=new l(A);le._captureStackTrace();var _e=1<arguments.length?!!Object(arguments[1]).multiArgs:!1;return _e=de(ne)(K(le,_e)),_e===fe&&le._rejectCallback(_e.e,!0),le._isFateSealed()||le._setAsyncGuaranteed(),le},l.all=function(ne){return new Y(ne).promise()},l.cast=function(ne){var le=z(ne);return le instanceof l||(le=new l(A),le._captureStackTrace(),le._setFulfilled(),le._rejectionHandler0=ne),le},l.resolve=l.fulfilled=l.cast,l.reject=l.rejected=function(ne){var le=new l(A);return le._captureStackTrace(),le._rejectCallback(ne,!0),le},l.setScheduler=function(ne){if(typeof ne!="function")throw new R("expecting a function but got "+C.classString(ne));return F.setScheduler(ne)},l.prototype._then=function(ne,le,_e,M,P){var U=P!==void 0;P=U?P:new l(A),_e=this._target();var j=_e._bitField;if(U||(P._propagateFrom(this,3),P._captureStackTrace(),M===void 0&&(this._bitField&2097152)!==0&&(M=(j&50397184)!==0?this._boundValue():_e===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,P)),U=S(),(j&50397184)!==0){var ee=_e._settlePromiseCtx;(j&33554432)!==0?j=_e._rejectionHandler0:(j&16777216)!==0?(j=_e._fulfillmentHandler0,ne=le,_e._unsetRejectionIsUnhandled()):(ee=_e._settlePromiseLateCancellationObserver,j=new N("late cancellation observer"),_e._attachExtraTrace(j),ne=le),F.invoke(ee,_e,{handler:U===null?ne:typeof ne=="function"&&C.domainBind(U,ne),promise:P,receiver:M,value:j})}else _e._addCallbacks(ne,le,P,M,U);return P},l.prototype._length=function(){return this._bitField&65535},l.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},l.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},l.prototype._setLength=function(ne){this._bitField=this._bitField&-65536|ne&65535},l.prototype._setFulfilled=function(){this._bitField|=33554432,this._fireEvent("promiseFulfilled",this)},l.prototype._setRejected=function(){this._bitField|=16777216,this._fireEvent("promiseRejected",this)},l.prototype._setFollowing=function(){this._bitField|=67108864,this._fireEvent("promiseResolved",this)},l.prototype._setIsFinal=function(){this._bitField|=4194304},l.prototype._isFinal=function(){return 0<(this._bitField&4194304)},l.prototype._unsetCancelled=function(){this._bitField&=-65537},l.prototype._setCancelled=function(){this._bitField|=65536,this._fireEvent("promiseCancelled",this)},l.prototype._setWillBeCancelled=function(){this._bitField|=8388608},l.prototype._setAsyncGuaranteed=function(){F.hasCustomScheduler()||(this._bitField|=134217728)},l.prototype._receiverAt=function(ne){if(ne=ne===0?this._receiver0:this[4*ne-4+3],ne!==w)return ne===void 0&&this._isBound()?this._boundValue():ne},l.prototype._promiseAt=function(ne){return this[4*ne-4+2]},l.prototype._fulfillmentHandlerAt=function(ne){return this[4*ne-4]},l.prototype._rejectionHandlerAt=function(ne){return this[4*ne-4+1]},l.prototype._boundValue=function(){},l.prototype._migrateCallback0=function(ne){var le=ne._fulfillmentHandler0,_e=ne._rejectionHandler0,M=ne._promise0;ne=ne._receiverAt(0),ne===void 0&&(ne=w),this._addCallbacks(le,_e,M,ne,null)},l.prototype._migrateCallbackAt=function(ne,le){var _e=ne._fulfillmentHandlerAt(le),M=ne._rejectionHandlerAt(le),P=ne._promiseAt(le);ne=ne._receiverAt(le),ne===void 0&&(ne=w),this._addCallbacks(_e,M,P,ne,null)},l.prototype._addCallbacks=function(ne,le,_e,M,P){var U=this._length();if(65531<=U&&(U=0,this._setLength(0)),U===0)this._promise0=_e,this._receiver0=M,typeof ne=="function"&&(this._fulfillmentHandler0=P===null?ne:C.domainBind(P,ne)),typeof le=="function"&&(this._rejectionHandler0=P===null?le:C.domainBind(P,le));else{var j=4*U-4;this[j+2]=_e,this[j+3]=M,typeof ne=="function"&&(this[j+0]=P===null?ne:C.domainBind(P,ne)),typeof le=="function"&&(this[j+1]=P===null?le:C.domainBind(P,le))}return this._setLength(U+1),U},l.prototype._proxy=function(ne,le){this._addCallbacks(void 0,void 0,le,ne,null)},l.prototype._resolveCallback=function(ne,le){if((this._bitField&117506048)===0){if(ne===this)return this._rejectCallback(h(),!1);var _e=z(ne,this);if(!(_e instanceof l))return this._fulfill(ne);if(le&&this._propagateFrom(_e,2),ne=_e._target(),ne===this)this._reject(h());else if(le=ne._bitField,(le&50397184)===0){for(le=this._length(),0<le&&ne._migrateCallback0(this),_e=1;_e<le;++_e)ne._migrateCallbackAt(this,_e);this._setFollowing(),this._setLength(0),this._setFollowee(ne)}else(le&33554432)!==0?this._fulfill(ne._value()):(le&16777216)!==0?this._reject(ne._reason()):(le=new N("late cancellation observer"),ne._attachExtraTrace(le),this._reject(le))}},l.prototype._rejectCallback=function(ne,le,_e){var M=C.ensureErrorObject(ne),P=M===ne;P||_e||!$.warnings()||(_e="a promise was rejected with a non-error: "+C.classString(ne),this._warn(_e,!0)),this._attachExtraTrace(M,le?P:!1),this._reject(ne)},l.prototype._resolveFromExecutor=function(ne){var le=this;this._captureStackTrace(),this._pushContext();var _e=!0;ne=this._execute(ne,function(M){le._resolveCallback(M)},function(M){le._rejectCallback(M,_e)}),_e=!1,this._popContext(),ne!==void 0&&le._rejectCallback(ne,!0)},l.prototype._settlePromiseFromHandler=function(ne,le,_e,M){var P=M._bitField;(P&65536)===0&&(M._pushContext(),le===X?_e&&typeof _e.length=="number"?ne=de(ne).apply(this._boundValue(),_e):(ne=fe,ne.e=new R("cannot .spread() a non-array: "+C.classString(_e))):ne=de(ne).call(le,_e),le=M._popContext(),P=M._bitField,(P&65536)===0&&(ne===Z?M._reject(_e):ne===fe?M._rejectCallback(ne.e,!1):($.checkForgottenReturns(ne,le,"",M,this),M._resolveCallback(ne))))},l.prototype._target=function(){for(var ne=this;ne._isFollowing();)ne=ne._followee();return ne},l.prototype._followee=function(){return this._rejectionHandler0},l.prototype._setFollowee=function(ne){this._rejectionHandler0=ne},l.prototype._settlePromise=function(ne,le,_e,M){var P=ne instanceof l,U=this._bitField,j=(U&134217728)!==0;(U&65536)!==0?(P&&ne._invokeInternalOnCancel(),_e instanceof te&&_e.isFinallyHandler()?(_e.cancelPromise=ne,de(le).call(_e,M)===fe&&ne._reject(fe.e)):le===g?ne._fulfill(g.call(_e)):_e instanceof i?_e._promiseCancelled(ne):P||ne instanceof Y?ne._cancel():_e.cancel()):typeof le=="function"?P?(j&&ne._setAsyncGuaranteed(),this._settlePromiseFromHandler(le,_e,M,ne)):le.call(_e,M,ne):_e instanceof i?_e._isResolved()||((U&33554432)!==0?_e._promiseFulfilled(M,ne):_e._promiseRe
358jected(M,ne)):P&&(j&&ne._setAsyncGuaranteed(),(U&33554432)!==0?ne._fulfill(M):ne._reject(M))},l.prototype._settlePromiseLateCancellationObserver=function(ne){var le=ne.handler,_e=ne.promise,M=ne.receiver;ne=ne.value,typeof le=="function"?_e instanceof l?this._settlePromiseFromHandler(le,M,ne,_e):le.call(M,ne,_e):_e instanceof l&&_e._reject(ne)},l.prototype._settlePromiseCtx=function(ne){this._settlePromise(ne.promise,ne.handler,ne.receiver,ne.value)},l.prototype._settlePromise0=function(ne,le,_e){_e=this._promise0;var M=this._receiverAt(0);this._receiver0=this._promise0=void 0,this._settlePromise(_e,ne,M,le)},l.prototype._clearCallbackDataAtIndex=function(ne){ne=4*ne-4,this[ne+2]=this[ne+3]=this[ne+0]=this[ne+1]=void 0},l.prototype._fulfill=function(ne){var le=this._bitField;if(!((le&117506048)>>>16)){if(ne===this)return ne=h(),this._attachExtraTrace(ne),this._reject(ne);this._setFulfilled(),this._rejectionHandler0=ne,0<(le&65535)&&((le&134217728)!==0?this._settlePromises():F.settlePromises(this))}},l.prototype._reject=function(ne){var le=this._bitField;if(!((le&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=ne,this._isFinal())return F.fatalError(ne,C.isNode);0<(le&65535)?F.settlePromises(this):this._ensurePossibleRejectionHandled()}},l.prototype._fulfillPromises=function(ne,le){for(var _e=1;_e<ne;_e++){var M=this._fulfillmentHandlerAt(_e),P=this._promiseAt(_e),U=this._receiverAt(_e);this._clearCallbackDataAtIndex(_e),this._settlePromise(P,M,U,le)}},l.prototype._rejectPromises=function(ne,le){for(var _e=1;_e<ne;_e++){var M=this._rejectionHandlerAt(_e),P=this._promiseAt(_e),U=this._receiverAt(_e);this._clearCallbackDataAtIndex(_e),this._settlePromise(P,M,U,le)}},l.prototype._settlePromises=function(){var ne=this._bitField,le=ne&65535;if(0<le){if((ne&16842752)!==0){var _e=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,_e,ne),this._rejectPromises(le,_e)}else _e=this._rejectionHandler0,this._settlePromise0(this._fulfillmentHandler0,_e,ne),this._fulfillPromises(le,_e);this._setLength(0)}this._clearCancellationData()},l.prototype._settledValue=function(){var ne=this._bitField;if((ne&33554432)!==0)return this._rejectionHandler0;if((ne&16777216)!==0)return this._fulfillmentHandler0},l.defer=l.pending=function(){return $.deprecated("Promise.defer","new Promise"),{promise:new l(A),resolve:u,reject:f}},C.notEnumerableProp(l,"_makeSelfResolutionError",h),e("./method")(l,A,z,y,$),e("./bind")(l,A,z,$),e("./cancel")(l,Y,y,$),e("./direct_resolve")(l),e("./synchronous_inspection")(l),e("./join")(l,Y,z,A,F,S),l.Promise=l,l.version="3.4.7",e("./map.js")(l,Y,y,z,A,$),e("./call_get.js")(l),e("./using.js")(l,y,z,Q,A,$),e("./timers.js")(l,A,$),e("./generators.js")(l,y,A,z,i,$),e("./nodeify.js")(l),e("./promisify.js")(l,A),e("./props.js")(l,Y,z,y),e("./race.js")(l,A,z,y),e("./reduce.js")(l,Y,y,z,A,$),e("./settle.js")(l,Y,$),e("./some.js")(l,Y,y),e("./filter.js")(l,A),e("./each.js")(l,A),e("./any.js")(l),C.toFastProperties(l),C.toFastProperties(l.prototype),v({a:1}),v({b:2}),v({c:3}),v(1),v(function(){}),v(void 0),v(!1),v(new l(A)),$.setBounds(B.firstLineError,C.lastLineError),l}}).call(this,e("_process"))},{"./any.js":40,"./async":41,"./bind":42,"./call_get.js":43,"./cancel":44,"./catch_filter":45,"./context":46,"./debuggability":47,"./direct_resolve":48,"./each.js":49,"./errors":50,"./es5":51,"./filter.js":52,"./finally":53,"./generators.js":54,"./join":55,"./map.js":56,"./method":57,"./nodeback":58,"./nodeify.js":59,"./promise_array":61,"./promisify.js":62,"./props.js":63,"./race.js":65,"./reduce.js":66,"./settle.js":68,"./some.js":69,"./synchronous_inspection":70,"./thenables":71,"./timers.js":72,"./using.js":73,"./util":74,_process:138}],61:[function(e,t,n){t.exports=function(r,i,l,u,f){function v(y){switch(y){case-2:return[];case-3:return{}}}function h(y){var w=this._promise=new r(i);y instanceof r&&w._propagateFrom(y,3),w._setOnCancel(this),this._values=y,this._totalResolved=this._length=0,this._init(void 0,-2)}var g=e("./util");return g.inherits(h,f),h.prototype.length=function(){return this._length},h.prototype.promise=function(){return this._promise},h.prototype._init=function y(w,C){if(w=l(this._values,this._promise),w instanceof r){w=w._target();var S=w._bitField;if(this._values=w,(S&50397184)===0)return this._promise._setAsyncGuaranteed(),w._then(y,this._reject,void 0,this,C);
358if((S&33554432)!==0)w=w._value();else return(S&16777216)!==0?this._reject(w._reason()):this._cancel()}w=g.asArray(w),w===null?(C=u("expecting an array or an iterable object but got "+g.classString(w)).reason(),this._promise._rejectCallback(C,!1)):w.length===0?C===-5?this._resolveEmptyArray():this._resolve(v(C)):this._iterate(w)},h.prototype._iterate=function(y){var w=this.getActualLength(y.length);this._length=w,this._values=this.shouldCopyValues()?Array(w):this._values;for(var C=this._promise,S=!1,T,B=0;B<w;++B){var F=l(y[B],C);F instanceof r?(F=F._target(),T=F._bitField):T=null,S?T!==null&&F.suppressUnhandledRejections():T!==null?(T&50397184)===0?(F._proxy(this,B),this._values[B]=F):S=(T&33554432)!==0?this._promiseFulfilled(F._value(),B):(T&16777216)!==0?this._promiseRejected(F._reason(),B):this._promiseCancelled(B):S=this._promiseFulfilled(F,B)}S||C._setAsyncGuaranteed()},h.prototype._isResolved=function(){return this._values===null},h.prototype._resolve=function(y){this._values=null,this._promise._fulfill(y)},h.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},h.prototype._reject=function(y){this._values=null,this._promise._rejectCallback(y,!1)},h.prototype._promiseFulfilled=function(y,w){return this._values[w]=y,++this._totalResolved>=this._length?(this._resolve(this._values),!0):!1},h.prototype._promiseCancelled=function(){return this._cancel(),!0}
358,h.prototype._promiseRejected=function(y){return this._totalResolved++,this._reject(y),!0},h.prototype._resultCancelled=function(){if(!this._isResolved()){var y=this._values;if(this._cancel(),y instanceof r)y.cancel();else for(var w=0;w<y.length;++w)y[w]instanceof r&&y[w].cancel()}},h.prototype.shouldCopyValues=function(){return!0},h.prototype.getActualLength=function(y){return y},h}},{"./util":74}],62:[function(e,t,n){t.exports=function(r,i){function l(z){return!R.test(z)}function u(z){try{return z.__isPromisified__===!0}catch{return!1}}function f(z,Y,Q,$){for(var te=y.inheritedDataKeys(z),V=[],K=0;K<te.length;++K){var fe=te[K],de=z[fe],ne=$===N?!0:N(fe),le;(le=typeof de=="function"&&!u(de))&&(le=y.getDataPropertyOrDefault(z,fe+Y,F),le=!(le&&u(le))),le&&$(fe,de,z,ne)&&V.push(fe,de)}for(z=0;z<V.length;z+=2)if($=V[z],Q.test($)){for($=$.replace(Q,""),te=0;te<V.length;te+=2)if(V[te]===$)throw new B(`Cannot promisify an API that has normal methods with '%s'-suffix 359 360 See http://goo.gl/MqrFmX 361`.replace("%s",Y))}return V}function v(z,Y,Q,$,te,V){function K(){var ne=Y;Y===g&&(ne=this);var le=new r(i);le._captureStackTrace();var _e=typeof de=="string"&&this!==fe?this[de]:z,M=w(le,V);try{_e.apply(ne,C(arguments,M))}catch(P){le._rejectCallback(S(P),!0,!0)}return le._isFateSealed()||le._setAsyncGuaranteed(),le}var fe=function(){return this}(),de=z;return typeof de=="string"&&(z=$),y.notEnumerableProp(K,"__isPromisified__",!0),K}function h(z,Y,Q,$,te){var V=new RegExp(Y.replace(/([$])/,"\\$")+"$");Q=f(z,Y,V,Q),V=0;for(var K=Q.length;V<K;V+=2){var fe=Q[V],de=Q[V+1],ne=fe+Y;if($===Z)z[ne]=Z(fe,g,fe,de,Y,te);else{var le=$(de,function(){return Z(fe,g,fe,de,Y,te)});y.notEnumerableProp(le,"__isPromisified__",!0),z[ne]=le}}return y.toFastProperties(z),z}var g={},y=e("./util"),w=e("./nodeback"),C=y.withAppended,S=y.maybeWrapAsError,T=y.canEvaluate,B=e("./errors").TypeError,F={__isPromisified__:!0},R=/^(?:arity|length|name|arguments|caller|callee|prototype|__isPromisified__)$/,N=function(z){return y.isIdentifier(z)&&z.charAt(0)!=="_"&&z!=="constructor"},A=function(z){for(var Y=[z],Q=Math.max(0,z-1-3),$=z-1;$>=Q;--$)Y.push($);for($=z+1;3>=$;++$)Y.push($);return Y},X=function(z,Y,Q,$,te,V){Q=Math.max(0,(typeof $.length=="number"?Math.max(Math.min($.length,1024),0):0)-1);var K=A(Q),fe=typeof z=="string"||Y===g;return z=typeof z=="string"?"this != null ? this['"+z+"'] : fn":"fn",V=`'use strict'; 362 var ret = function (Parameters) { 363 'use strict'; 364 var len = arguments.length; 365 var promise = new Promise(INTERNAL); 366 promise._captureStackTrace(); 367 var nodeback = nodebackForPromise(promise, `+V+`); 368 var ret; 369 var callback = tryCatch([GetFunctionCode]); 370 switch(len) { 371 [CodeForSwitchCase] 372 } 373 if (ret === errorObj) { 374 promise._rejectCallback(maybeWrapAsError(ret.e), true, true); 375 } 376 if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); 377 return promise; 378 }; 379 notEnumerableProp(ret, '__isPromisified__', true); 380 return ret; 381 `.replace("[CodeForSwitchCase]",function(){for(var de="",ne=0;ne<K.length;++ne){var le="case "+K[ne]+":",_e=K[ne],M=y.filledRange(_e,"_arg","").join(", ");_e=0<_e?", ":"",M=(fe?`ret = callback.call(this, {{args}}, nodeback); break; 382`:Y===void 0?`ret = callback({{args}}, nodeback); break; 383`:`ret = callback.call(receiver, {{args}}, nodeback); break; 384`).replace("{{args}}",M).replace(", ",_e),de+=le+M}return de+=` 385 default: 386 var args = new Array(len + 1); 387 var i = 0; 388 for (var i = 0; i < len; ++i) { 389 args[i] = arguments[i]; 390 } 391 args[i] = nodeback; 392 [CodeForCall] 393 break; 394 `.replace("[CodeForCall]",fe?`ret = callback.apply(this, args); 395`:`ret = callback.apply(receiver, args); 396`)}()).replace("[GetFunctionCode]",z),V=V.replace("Parameters",y.filledRange(Math.max(Q,3),"_arg","")),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",V)(r,$,Y,C,S,w,y.tryCatch,y.errorObj,y.notEnumerableProp,i)},Z=T?X:v;r.promisify=function(z,Y){if(typeof z!="function")throw new B("expecting a function but got "+y.classString(z));return u(z)?z:(Y=Object(Y),Y=Z(z,Y.context===void 0?g:Y.context,void 0,z,null,!!Y.multiArgs),y.copyDescriptors(z,Y,l),Y)},r.promisifyAll=function(z,Y){if(typeof z!="function"&&typeof z!="object")throw new B(`the target of promisifyAll must be an object or a function 397 398 See http://goo.gl/MqrFmX 399`);Y=Object(Y);var Q=!!Y.multiArgs,$=Y.suffix;typeof $!="string"&&($="Async");var te=Y.filter;if(typeof te!="function"&&(te=N),Y=Y.promisifier,typeof Y!="function"&&(Y=Z),!y.isIdentifier($))throw new RangeError(`suffix must be a valid identifier 400 401 See http://goo.gl/MqrFmX 402`);for(var V=y.inheritedDataKeys(z),K=0;K<V.length;++K){var fe=z[V[K]];V[K]!=="constructor"&&y.isClass(fe)&&(h(fe.prototype,$,te,Y,Q),h(fe,$,te,Y,Q))}return h(z,$,te,Y,Q)}}},{"./errors":50,"./nodeback":58,"./util":74}],63:[function(e,t,n){t.exports=function(r,i,l,u){function f(S){var T=!1;if(w!==void 0&&S instanceof w){var B=C(S);T=!0}else{var F=y.keys(S),R=F.length;B=Array(2*R);for(var N=0;N<R;++N){var A=F[N];B[N]=S[A],B[N+R]=A}}this.constructor$(B),this._isMap=T,this._init$(void 0,-3)}function v(S){var T=l(S);if(g(T))S=T instanceof r?T._then(r.props,void 0,void 0,void 0,void 0):new f(T).promise();else return u(`cannot await properties of a non-object 403 404 See http://goo.gl/MqrFmX 405`);return T instanceof r&&S._propagateFrom(T,2),S}var h=e("./util"),g=h.isObject,y=e("./es5"),w;typeof Map=="function"&&(w=Map);var C=function(){function S(F,R){this[T]=F,this[T+B]=R,T++}var T=0,B=0;return function(F){B=F.size,T=0;var R=Array(2*F.size);return F.forEach(S,R),R}}();h.inherits(f,i),f.prototype._init=function(){},f.prototype._promiseFulfilled=function(S,T){if(this._values[T]=S,++this._totalResolved>=this._length){if(this._isMap){S=this._values,T=new w;for(var B=S.length/2|0,F=0;F<B;++F)T.set(S[B+F],S[F]);S=T}else for(S={},T=this.length(),B=0,F=this.length();B<F;++B)S[this._values[B+T]]=this._values[B];return this._resolve(S),!0}return!1},f.prototype.shouldCopyValues=function(){return!1},f.prototype.getActualLength=function(S){return S>>1},r.prototype.props=function(){return v(this)},r.props=function(S){return v(S)}}},{"./es5":51,"./util":74}],64:[function(e,t,n){function r(i){this._capacity=i,this._front=this._length=0}r.prototype._willBeOverCapacity=function(i){return this._capacity<i},r.prototype._pushOne=function(i){var l=this.length();this._checkCapacity(l+1),this[this._front+l&this._capacity-1]=i,this._length=l+1},r.prototype.push=function(i,l,u){var f=this.length()+3;if(this._willBeOverCapacity(f))this._pushOne(i),this._pushOne(l),this._pushOne(u);else{var v=this._front+f-3;this._checkCapacity(f);var h=this._capacity-1;this[v+0&h]=i,this[v+1&h]=l,this[v+2&h]=u,this._length=f}},r.prototype.shift=function(){var i=this._front,l=this[i];return this[i]=void 0,this._front=i+1&this._capacity-1,this._length--,l},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(i){this._capacity<i&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(i){var l=this._capacity;this._capacity=i,i=this._front+this._length&l-1;for(var u=0;u<i;++u)this[u+l]=this[u+0],this[u+0]=void 0},t.exports=r},{}],65:[function(e,t,n){t.exports=function(r,i,l,u){function f(g,y){var w=l(g);if(w instanceof r)return h(w);if(g=v.asArray(g),g===null)return u("expecting an array or an iterable object but got "+v.classString(g));w=new r(i),y!==void 0&&w._propagateFrom(y,3),y=w._fulfill;for(var C=w._reject,S=0,T=g.length;S<T;++S){var B=g[S];(B!==void 0||S in g)&&r.cast(B)._then(y,C,void 0,w,null)}return w}var v=e("./util"),h=function(g){return g.then(function(y){return f(y,g)}
405)};r.race=function(g){return f(g,void 0)},r.prototype.race=function(){return f(this,void 0)}}},{"./util":74}],66:[function(e,t,n){t.exports=function(r,i,l,u,f,v){function h(F,R,N,A){this.constructor$(F),F=S(),this._fn=F===null?R:T.domainBind(F,R),N!==void 0&&(N=r.resolve(N),N._attachCancellationCallback(this)),this._initialValue=N,this._currentCancellable=null,this._eachValues=A===f?Array(this._length):A===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function g(F,R){this.isFulfilled()?R._resolve(F):R._reject(F)}function y(F,R,N,A){return typeof R!="function"?l("expecting a function but got "+T.classString(R)):new h(F,R,N,A).promise()}function w(F){return this.accum=F,this.array._gotAccum(F),F=u(this.value,this.array._promise),F instanceof r?(this.array._currentCancellable=F,F._then(C,void 0,void 0,this,void 0)):C.call(this,F)}function C(F){var R=this.array,N=R._promise,A=B(R._fn);return N._pushContext(),F=R._eachValues!==void 0?A.call(N._boundValue(),F,this.index,this.length):A.call(N._boundValue(),this.accum,F,this.index,this.length),F instanceof r&&(R._currentCancellable=F),A=N._popContext(),v.checkForgottenReturns(F,A,R._eachValues!==void 0?"Promise.each":"Promise.reduce",N),F}var S=r._getDomain,T=e("./util"),B=T.tryCatch;T.inherits(h,i),h.prototype._gotAccum=function(F){this._eachValues!==void 0&&this._eachValues!==null&&F!==f&&this._eachValues.push(F)},h.prototype._eachComplete=function(F){return this._eachValues!==null&&this._eachValues.push(F),this._eachValues},h.prototype._init=function(){},h.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},h.prototype.shouldCopyValues=function(){return!1},h.prototype._resolve=function(F){this._promise._resolveCallback(F),this._values=null},h.prototype._resultCancelled=function(F){if(F===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof r&&this._currentCancellable.cancel(),this._initialValue instanceof r&&this._initialValue.cancel())},h.prototype._iterate=function(F){this._values=F;var R=F.length;if(this._initialValue!==void 0)var N=this._initialValue,A=0;else N=r.resolve(F[0]),A=1;if(this._currentCancellable=N,!N.isRejected())for(;A<R;++A)N=N._then(w,void 0,void 0,{accum:null,value:F[A],index:A,length:R,array:this},void 0);this._eachValues!==void 0&&(N=N._then(this._eachComplete,void 0,void 0,this,void 0)),N._then(g,g,void 0,N,this)},r.prototype.reduce=function(F,R){return y(this,F,R,null)},r.reduce=function(F,R,N,A){return y(F,R,N,A)}}},{"./util":74}],67:[function(e,t,n){(function(r,i){var l=e("./util"),u=function(){throw Error(`No async scheduler available 406 407 See http://goo.gl/MqrFmX 408`)},f=l.getNativePromise();if(l.isNode&&typeof MutationObserver=="undefined"){var v=i.setImmediate,h=r.nextTick;l=l.isRecentNode?function(y){v.call(i,y)}:function(y){h.call(r,y)}}else if(typeof f=="function"&&typeof f.resolve=="function"){var g=f.resolve();l=function(y){g.then(y)}}else l=typeof MutationObserver=="undefined"||typeof window!="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova)?typeof setImmediate!="undefined"?function(y){setImmediate(y)}:typeof setTimeout!="undefined"?function(y){setTimeout(y,0)}:u:function(){var y=document.createElement("div"),w={attributes:!0},C=!1,S=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),C=!1}).observe(S,w),function(T){var B=new MutationObserver(function(){B.disconnect(),T()});B.observe(y,w),C||(C=!0,S.classList.toggle("foo"))}}();t.exports=l}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./util":74,_process:138}],68:[function(e,t,n){t.exports=function(r,i,l){function u(v){this.constructor$(v)}var f=r.PromiseInspection;e("./util").inherits(u,i),u.prototype._promiseResolved=function(v,h){return this._values[v]=h,++this._totalResolved>=this._length?(this._resolve(this._values),!0):!1},u.prototype._promiseFulfilled=function(v,h){var g=new f;return g._bitField=33554432,g._settledValueField=v,this._promiseResolved(h,g)}
408,u.prototype._promiseRejected=function(v,h){var g=new f;return g._bitField=16777216,g._settledValueField=v,this._promiseResolved(h,g)},r.settle=function(v){return l.deprecated(".settle()",".reflect()"),new u(v).promise()},r.prototype.settle=function(){return r.settle(this)}}},{"./util":74}],69:[function(e,t,n){t.exports=function(r,i,l){function u(C){this.constructor$(C),this._howMany=0,this._initialized=this._unwrap=!1}function f(C,S){if((S|0)!==S||0>S)return l(`expecting a positive integer 409 410 See http://goo.gl/MqrFmX 411`);C=new u(C);var T=C.promise();return C.setHowMany(S),C.init(),T}var v=e("./util"),h=e("./errors").RangeError,g=e("./errors").AggregateError,y=v.isArray,w={};v.inherits(u,i),u.prototype._init=function(){if(this._initialized)if(this._howMany===0)this._resolve([]);else{this._init$(void 0,-5);var C=y(this._values);!this._isResolved()&&C&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(C){this._howMany=C},u.prototype._promiseFulfilled=function(C){return this._addFulfilled(C),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1}
411,u.prototype._promiseRejected=function(C){return this._addRejected(C),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof r||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var C=new g,S=this.length();S<this._values.length;++S)this._values[S]!==w&&C.push(this._values[S]);return 0<C.length?this._reject(C):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(C){this._values.push(C)},u.prototype._addFulfilled=function(C){this._values[this._totalResolved++]=C},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(C){return new h("Input array must contain at least "+this._howMany+" items but contains only "+C+" items")},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},r.some=function(C,S){return f(C,S)},r.prototype.some=function(C){return f(this,C)},r._SomePromiseArray=u}},{"./errors":50,"./util":74}],70:[function(e,t,n){t.exports=function(r){function i(y){y!==void 0?(y=y._target(),this._bitField=y._bitField,this._settledValueField=y._isFateSealed()?y._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}i.prototype._settledValue=function(){return this._settledValueField};var l=i.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise 412 413 See http://goo.gl/MqrFmX 414`);return this._settledValue()},u=i.prototype.error=i.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise 415 416 See http://goo.gl/MqrFmX 417`);return this._settledValue()},f=i.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},v=i.prototype.isRejected=function(){return(this._bitField&16777216)!==0},h=i.prototype.isPending=function(){return(this._bitField&50397184)===0},g=i.prototype.isResolved=function(){return(this._bitField&50331648)!==0};i.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},r.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},r.prototype._isCancelled=function(){return this._target().__isCancelled()},r.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},r.prototype.isPending=function(){return h.call(this._target())},r.prototype.isRejected=function(){return v.call(this._target())},r.prototype.isFulfilled=function(){return f.call(this._target())},r.prototype.isResolved=function(){return g.call(this._target())},r.prototype.value=function(){return l.call(this._target())},r.prototype.reason=function(){var y=this._target();return y._unsetRejectionIsUnhandled(),u.call(y)},r.prototype._value=function(){return this._settledValue()},r.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},r.PromiseInspection=i}},{}],71:[function(e,t,n){t.exports=function(r,i){function l(g,y,w){var C=new r(i),S=C;w&&w._pushContext(),C._captureStackTrace(),w&&w._popContext();var T=!0;return g=u.tryCatch(y).call(g,function(B){C&&(C._resolveCallback(B),C=null)},function(B){C&&(C._rejectCallback(B,T,!0),C=null)}),T=!1,C&&g===f&&(C._rejectCallback(g.e,!0,!0),C=null),S}var u=e("./util"),f=u.errorObj,v=u.isObject,h={}.hasOwnProperty;return function(g,y){if(v(g)){if(g instanceof r)return g;try{var w=g.then}catch(S){f.e=S,w=f}if(w===f)return y&&y._pushContext(),w=r.reject(w.e),y&&y._popContext(),w;if(typeof w=="function"){try{var C=h.call(g,"_promise0")}catch{C=!1}return C?(w=new r(i),g._then(w._fulfill,w._reject,void 0,w,null),w):l(g,w,y)}}return g}}},{"./util":74}],72:[function(e,t,n){t.exports=function(r,i,l){function u(C){this.handle=C}function f(C){return clearTimeout(this.handle),C}function v(C){throw clearTimeout(this.handle),C}var h=e("./util"),g=r.TimeoutError;u.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(C){return w(+this).thenReturn(C)},w=r.delay=function(C,S){if(S!==void 0){var T=r.resolve(S)._then(y,null,null,C,void 0);l.cancellation()&&S instanceof r&&T._setOnCancel(S)}else T=new r(i),C=setTimeout(function(){T._fulfill()},+C),l.cancellation()&&T._setOnCancel(new u(C)),T._captureStackTrace();return T._setAsyncGuaranteed(),T};r.prototype.delay=function(C){return w(C,this)},r.prototype.timeout=function(C,S){if(C=new u(setTimeout(function(){if(B.isPending()){var F=B,R=T,N=typeof S!="str
417ing"?S instanceof Error?S:new g("operation timed out"):new g(S);h.markAsOriginatingFromRejection(N),F._attachExtraTrace(N),F._reject(N),R!=null&&R.cancel()}},+C)),l.cancellation()){var T=this.then(),B=T._then(f,v,void 0,C,void 0);B._setOnCancel(C)}else B=this._then(f,v,void 0,C,void 0);return B}}},{"./util":74}],73:[function(e,t,n){t.exports=function(r,i,l,u,f,v){function h(X){setTimeout(function(){throw X},0)}function g(X,Z){function z(){if(Y>=Q)return $._fulfill();var te=X[Y++],V=l(te);if(V!==te&&typeof te._isDisposable=="function"&&typeof te._getDisposer=="function"&&te._isDisposable()&&V._setDisposable(te._getDisposer()),te=V,te instanceof r&&te._isDisposable()){try{te=l(te._getDisposer().tryDispose(Z),X.promise)}catch(K){return h(K)}if(te instanceof r)return te._then(z,h,null,null,null)}z()}var Y=0,Q=X.length,$=new r(f);return z(),$}function y(X,Z,z){this._data=X,this._promise=Z,this._context=z}function w(X,Z,z){this.constructor$(X,Z,z)}function C(X){return y.isDisposer(X)?(this.resources[this.index]._setDisposable(X),X.promise()):X}function S(X){this.length=X,this.promise=null,this[X-1]=null}var T=e("./util"),B=e("./errors").TypeError,F=e("./util").inherits,R=T.errorObj,N=T.tryCatch,A={};y.prototype.data=function(){return this._data},y.prototype.promise=function(){return this._promise},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():A},y.prototype.tryDispose=function(X){var Z=this.resource(),z=this._context;return z!==void 0&&z._pushContext(),X=Z!==A?this.doDispose(Z,X):null,z!==void 0&&z._popContext(),this._promise._unsetDisposable(),this._data=null,X},y.isDisposer=function(X){return X!=null&&typeof X.resource=="function"&&typeof X.tryDispose=="function"},F(w,y),w.prototype.doDispose=function(X,Z){return this.data().call(X,X,Z)},S.prototype._resultCancelled=function(){for(var X=this.length,Z=0;Z<X;++Z){var z=this[Z];z instanceof r&&z.cancel()}},r.using=function(){var X=arguments.length;if(2>X)return i("you must pass at least 2 arguments to Promise.using");var Z=arguments[X-1];if(typeof Z!="function")return i("expecting a function but got "+T.classString(Z));var z=!0;if(X===2&&Array.isArray(arguments[0])){var Y=arguments[0];X=Y.length,z=!1}else Y=arguments,X--;for(var Q=new S(X),$=0;$<X;++$){var te=Y[$];if(y.isDisposer(te)){var V=te;te=te.promise(),te._setDisposable(V)}else V=l(te),V instanceof r&&(te=V._then(C,null,null,{resources:Q,index:$},void 0));Q[$]=te}for(X=Array(Q.length),$=0;$<X.length;++$)X[$]=r.resolve(Q[$]).reflect();var K=r.all(X).then(function(de){for(var ne=0;ne<de.length;++ne){var le=de[ne];if(le.isRejected())return R.e=le.error(),R;if(!le.isFulfilled()){K.cancel();return}de[ne]=le.value()}return fe._pushContext(),Z=N(Z),de=z?Z.apply(void 0,de):Z(de),ne=fe._popContext(),v.checkForgottenReturns(de,ne,"Promise.using",fe),de}),fe=K.lastly(function(){var de=new r.PromiseInspection(K);return g(Q,de)});return Q.promise=fe,fe._setOnCancel(Q),fe},r.prototype._setDisposable=function(X){this._bitField|=131072,this._disposer=X},r.prototype._isDisposable=function(){return 0<(this._bitField&131072)},r.prototype._getDisposer=function(){return this._disposer},r.prototype._unsetDisposable=function(){this._bitField&=-131073,this._disposer=void 0},r.prototype.disposer=function(X){if(typeof X=="function")return new w(X,this,u());throw new B}}},{"./errors":50,"./util":74}],74:[function(e,t,n){(function(r,i){function l(){try{var z=S;return S=null,z.apply(this,arguments)}catch(Y){return C.e=Y,C}}function u(z){return z==null||z===!0||z===!1||typeof z=="string"||typeof z=="number"}function f(z,Y,Q){return u(z)||y.defineProperty(z,Y,{value:Q,configurable:!0,enumerable:!1,writable:!0}),z}function v(z){return z!==null&&typeof z=="object"&&typeof z.message=="string"&&typeof z.name=="string"}function h(z){return v(z)&&y.propertyIsWritable(z,"stack")}function g(z){return{}.toString.call(z)}var y=e("./es5"),w=typeof navigator=="undefined",C={e:{}},S;i=typeof self!="undefined"?self:typeof window!="undefined"?window:typeof i!="undefined"?i:this!==void 0?this:null;var T=function(){var z=[Array.prototype,Object.prototype,Function.prototype],Y=function(te){for(var V=0;V<z.length;++V)if(z[V]===te)return!0;return!1};if(y.isES5){var Q=Object.getOwnPropertyNames;return function(te){for(var V=[],K=Object.create(null);te!=null&&!Y(te);){try{var fe=Q(te)}catch{break}for(var de=0;de<fe.length;++de){var ne=fe[de];if(!K[ne]){K[ne]=!0;var le=Object.getOwnPropertyDescriptor(te,ne);le!=null&&le.get==null&&le.set==null&&V.push(ne)}}te=y.getPrototypeOf(te)}return V}}var $={}.hasOwnProperty;return function(te){if(Y(te))return[];var V=[],K;e:for(K in te){if(!$.call(te,K)){for(var fe=0;fe<z.length;
417++fe)if($.call(z[fe],K))continue e}V.push(K)}return V}}(),B=/this\s*\.\s*\S+\s*=/,F=/^[a-z$_][a-z$_0-9]*$/i,R=function(){return"stack"in Error()?function(z){return h(z)?z:Error(z+"")}:function(z){if(h(z))return z;try{throw Error(z+"")}catch(Y){return Y}}}(),N=function(z){return y.isArray(z)?z:null};if(typeof Symbol!="undefined"&&Symbol.iterator){var A=typeof Array.from=="function"?function(z){return Array.from(z)}:function(z){var Y=[];z=z[Symbol.iterator]();for(var Q;!(Q=z.next()).done;)Y.push(Q.value);return Y};N=function(z){return y.isArray(z)?z:z!=null&&typeof z[Symbol.iterator]=="function"?A(z):null}}var X=typeof r!="undefined"&&g(r).toLowerCase()==="[object process]",Z=typeof r!="undefined"&&typeof r.env!="undefined";w={isClass:function(z){try{if(typeof z=="function"){var Y=y.names(z.prototype),Q=y.isES5&&1<Y.length,$=0<Y.length&&!(Y.length===1&&Y[0]==="constructor"),te=B.test(z+"")&&0<y.names(z).length;if(Q||$||te)return!0}return!1}catch{return!1}},isIdentifier:function(z){return F.test(z)},inheritedDataKeys:T,getDataPropertyOrDefault:function(z,Y,Q){if(y.isES5){if(z=Object.getOwnPropertyDescriptor(z,Y),z!=null)return z.get==null&&z.set==null?z.value:Q}else return{}.hasOwnProperty.call(z,Y)?z[Y]:void 0},thrower:function(z){throw z},isArray:y.isArray,asArray:N,notEnumerableProp:f,isPrimitive:u,isObject:function(z){return typeof z=="function"||typeof z=="object"&&z!==null},isError:v,canEvaluate:w,errorObj:C,tryCatch:function(z){return S=z,l},inherits:function(z,Y){function Q(){this.constructor=z,this.constructor$=Y;for(var te in Y.prototype)$.call(Y.prototype,te)&&te.charAt(te.length-1)!=="$"&&(this[te+"$"]=Y.prototype[te])}var $={}.hasOwnProperty;return Q.prototype=Y.prototype,z.prototype=new Q,z.prototype},withAppended:function(z,Y){var Q=z.length,$=Array(Q+1),te;for(te=0;te<Q;++te)$[te]=z[te];return $[te]=Y,$},maybeWrapAsError:function(z){return u(z)?Error(z+""):z},toFastProperties:function(z){return z},filledRange:function(z,Y,Q){for(var $=Array(z),te=0;te<z;++te)$[te]=Y+te+Q;return $},toString:function(z){return z+""},canAttachTrace:h,ensureErrorObject:R,originatesFromRejection:function(z){return z==null?!1:z instanceof Error.__BluebirdErrorTypes__.OperationalError||z.isOperational===!0},markAsOriginatingFromRejection:function(z){try{f(z,"isOperational",!0)}catch{}},classString:g,copyDescriptors:function(z,Y,Q){for(var $=y.names(z),te=0;te<$.length;++te){var V=$[te];if(Q(V))try{y.defineProperty(Y,V,y.getDescriptor(z,V))}catch{}}},hasDevTools:typeof chrome!="undefined"&&chrome&&typeof chrome.loadTimes=="function",isNode:X,hasEnvVariables:Z,env:function(z){return Z?r.env[z]:void 0},global:i,getNativePromise:function(){if(typeof Promise=="function")try{var z=new Promise(function(){});if({}.toString.call(z)==="[object Promise]")return Promise}catch{}},domainBind:function(z,Y){return z.bind(Y)}},w.isRecentNode=w.isNode&&function(){var z=r.versions.node.split(".").map(Number);return z[0]===0&&10<z[1]||0<z[0]}(),w.isNode&&w.toFastProperties(r);try{throw Error()}catch(z){w.lastLineError=z}t.exports=w}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./es5":51,_process:138}],75:[function(e,t,n){},{}],76:[function(e,t,n){(function(r){var i=e("buffer"),l=i.Buffer,u=i.SlowBuffer,f=i.kMaxLength||2147483647;n.alloc=function(v,h,g){if(typeof l.alloc=="function")return l.alloc(v,h,g);if(typeof g=="number")throw new TypeError("encoding must not be number");if(typeof v!="number")throw new TypeError("size must be a number");if(v>f)throw new RangeError("size is too large");var y=h;if(y===void 0&&(g=void 0,y=0),h=new l(v),typeof y=="string"){g=new l(y,g),y=g.length;for(var w=-1;++w<v;)h[w]=g[w%y]}else h.fill(y);return h},n.allocUnsafe=function(v){if(typeof l.allocUnsafe=="function")return l.allocUnsafe(v);if(typeof v!="number")throw new TypeError("size must be a number");if(v>f)throw new RangeError("size is too large");return new l(v)},n.from=function(v,h,g){if(typeof l.from=="function"&&(!r.Uint8Array||Uint8Array.from!==l.from))return l.from(v,h,g);if(typeof v=="number")throw new TypeError('"value" argument must not be a number');if(typeof v=="string")return new l(v,h);if(typeof ArrayBuffer!="undefined"&&v instanceof ArrayBuffer){var y=h;if(arguments.length===1)return new l(v);typeof y=="undefined"&&(y=0);var w=g;if(typeof w=="undefined"&&(w=v.byteLength-y),y>=v.byteLength)throw new RangeError("'offset' is out of bounds");if(w>v.byteLength-y)throw new RangeError("'length' is out of bounds");return new l(v.slice(y,y+w))}if(l.isBuffer(v))return y=new l(v.length),v.copy(y,0,0,v.length),y;if(v){if(Array.isArray(v)||typeof ArrayBuffer!="undefined"&&v.buffer instanceof ArrayBuffer||"length"in v)return new l(v);
417if(v.type==="Buffer"&&Array.isArray(v.data))return new l(v.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(v){if(typeof l.allocUnsafeSlow=="function")return l.allocUnsafeSlow(v);if(typeof v!="number")throw new TypeError("size must be a number");if(v>=f)throw new RangeError("size is too large");return new u(v)}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{buffer:77}],77:[function(e,t,n){(function(r){function i(){try{var M=new Uint8Array(1);return M.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},M.foo()===42&&typeof M.subarray=="function"&&M.subarray(1,1).byteLength===0}catch{return!1}}function l(M,P){if((u.TYPED_ARRAY_SUPPORT?2147483647:1073741823)<P)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(M=new Uint8Array(P),M.__proto__=u.prototype):(M===null&&(M=new u(P)),M.length=P),M}function u(M,P,U){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(M,P,U);if(typeof M=="number"){if(typeof P=="string")throw Error("If encoding is specified then the first argument must be a string");return h(this,M)}return f(this,M,P,U)}function f(M,P,U,j){if(typeof P=="number")throw new TypeError('"value" argument must not be a number');if(typeof ArrayBuffer!="undefined"&&P instanceof ArrayBuffer){if(P.byteLength,0>U||P.byteLength<U)throw new RangeError("'offset' is out of bounds");if(P.byteLength<U+(j||0))throw new RangeError("'length' is out of bounds");return P=U===void 0&&j===void 0?new Uint8Array(P):j===void 0?new Uint8Array(P,U):new Uint8Array(P,U,j),u.TYPED_ARRAY_SUPPORT?(M=P,M.__proto__=u.prototype):M=g(M,P),M}if(typeof P=="string"){if(j=M,M=U,(typeof M!="string"||M==="")&&(M="utf8"),!u.isEncoding(M))throw new TypeError('"encoding" must be a valid string encoding');return U=C(P,M)|0,j=l(j,U),P=j.write(P,M),P!==U&&(j=j.slice(0,P)),j}return y(M,P)}function v(M){if(typeof M!="number")throw new TypeError('"size" argument must be a number');if(0>M)throw new RangeError('"size" argument must not be negative')}function h(M,P){if(v(P),M=l(M,0>P?0:w(P)|0),!u.TYPED_ARRAY_SUPPORT)for(var U=0;U<P;++U)M[U]=0;return M}function g(M,P){var U=0>P.length?0:w(P.length)|0;M=l(M,U);for(var j=0;j<U;j+=1)M[j]=P[j]&255;return M}function y(M,P){if(u.isBuffer(P)){var U=w(P.length)|0;return M=l(M,U),M.length===0||P.copy(M,0,0,U),M}if(P){if(typeof ArrayBuffer!="undefined"&&P.buffer instanceof ArrayBuffer||"length"in P)return(U=typeof P.length!="number")||(U=P.length,U=U!==U),U?l(M,0):g(M,P);if(P.type==="Buffer"&&ne(P.data))return g(M,P.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(M){if(M>=(u.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(u.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return M|0}function C(M,P){if(u.isBuffer(M))return M.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var U=M.length;if(U===0)return 0;for(var j=!1;;)switch(P){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":case void 0:return te(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return fe.toByteArray($(M)).length;default:if(j)return te(M).length;P=(""+P).toLowerCase(),j=!0}}function S(M,P,U){var j=!1;if((P===void 0||0>P)&&(P=0),P>this.length||((U===void 0||U>this.length)&&(U=this.length),0>=U)||(U>>>=0,P>>>=0,U<=P))return"";for(M||(M="utf8");;)switch(M){case"hex":for(M=P,P=U,U=this.length,(!M||0>M)&&(M=0),(!P||0>P||P>U)&&(P=U),j="",U=M;U<P;++U)M=j,j=this[U],j=16>j?"0"+j.toString(16):j.toString(16),j=M+j;return j;case"utf8":case"utf-8":return R(this,P,U);case"ascii":for(M="",U=Math.min(this.length,U);P<U;++P)M+=String.fromCharCode(this[P]&127);return M;case"latin1":case"binary":for(M="",U=Math.min(this.length,U);P<U;++P)M+=String.fromCharCode(this[P]);return M;case"base64":return P=P===0&&U===this.length?fe.fromByteArray(this):fe.fromByteArray(this.slice(P,U)),P;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(P=this.slice(P,U),U="",M=0;M<P.length;M+=2)U+=String.fromCharCode(P[M]+256*P[M+1]);return U;default:if(j)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),j=!0}}function T(M,P,U){var j=M[P];M[P]=M[U],M[U]=j}function B(M,P,U,j,ee){if(M.length===0)return-1;if(typeof U=="string"?(j=U,U=0):2147483647<U?U=2147483647:-2147483648>U&&(U=-2147483648),U=+U,isNaN(U)&&(U=ee?0:M.length-1),0>U&&(U=M.length+U),U>=M.length){if(ee)return-1;U=M.length-1}else if(0>U)if(ee)U=0;else return-1;if(typeof P=="string"&&(P=u.from(P,j)),u.isBuffer(P))return P.length===0?-1:F(M,P,U,j,ee);if(typeof P=="number")return P&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(M,P,U):Uint8Array.prototype.lastIndexOf.call(M,P,U):F(M,[P],U,j,ee);throw new TypeError("val must be string, number or Buffer")}function F(M,P,U,j,ee){function ye(be,Ae){return ie===1?be[Ae]:be.readUInt16BE(Ae*ie)}var ie=1,he=M.length,re=P.length;if(j!==void 0&&(j=String(j).toLowerCase(),j==="ucs2"||j==="ucs-2"||j==="utf16le"||j==="utf-16le")){if(2>M.length||2>P.length)return-1;ie=2,he/=2,re/=2,U/=2}if(ee)for(j=-1;U<he;U++)if(ye(M,U)===ye(P,j===-1?0:U-j)){if(j===-1&&(j=U),U-j+1===re)return j*ie}else j!==-1&&(U-=U-j),j=-1;else for(U+re>he&&(U=he-re);0<=U;U--){for(he=!0,j=0;j<re;j++)if(ye(M,U+j)!==ye(P,j)){he=!1;break}if(he)return U}return-1}function R(M,P,U){U=Math.min(M.length,U);for(var j=[];P<U;){var ee=M[P],ye=null,ie=239<ee?4:223<ee?3:191<ee?2:1;if(P+ie<=U)switch(ie){case 1:128>ee&&(ye=ee);break;case 2:var he=M[P+1];(he&192)===128&&(ee=(ee&31)<<6|he&63,127<ee&&(ye=ee));break;case 3:he=M[P+1];var re=M[P+2];(he&192)===128&&(re&192)===128&&(ee=(ee&15)<<12|(he&63)<<6|re&63,2047<ee&&(55296>
417ee||57343<ee)&&(ye=ee));break;case 4:he=M[P+1],re=M[P+2];var be=M[P+3];(he&192)===128&&(re&192)===128&&(be&192)===128&&(ee=(ee&15)<<18|(he&63)<<12|(re&63)<<6|be&63,65535<ee&&1114112>ee&&(ye=ee))}ye===null?(ye=65533,ie=1):65535<ye&&(ye-=65536,j.push(ye>>>10&1023|55296),ye=56320|ye&1023),j.push(ye),P+=ie}if(M=j.length,M<=le)j=String.fromCharCode.apply(String,j);else{for(U="",P=0;P<M;)U+=String.fromCharCode.apply(String,j.slice(P,P+=le));j=U}return j}function N(M,P,U){if(M%1!==0||0>M)throw new RangeError("offset is not uint");if(M+P>U)throw new RangeError("Trying to access beyond buffer length")}function A(M,P,U,j,ee,ye){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>ee||P<ye)throw new RangeError('"value" argument is out of bounds');if(U+j>M.length)throw new RangeError("Index out of range")}function X(M,P,U,j){0>P&&(P=65535+P+1);for(var ee=0,ye=Math.min(M.length-U,2);ee<ye;++ee)M[U+ee]=(P&255<<8*(j?ee:1-ee))>>>8*(j?ee:1-ee)}function Z(M,P,U,j){0>P&&(P=4294967295+P+1);for(var ee=0,ye=Math.min(M.length-U,4);ee<ye;++ee)M[U+ee]=P>>>8*(j?ee:3-ee)&255}function z(M,P,U,j,ee,ye){if(U+j>M.length)throw new RangeError("Index out of range");if(0>U)throw new RangeError("Index out of range")}function Y(M,P,U,j,ee){return ee||z(M,P,U,4),de.write(M,P,U,j,23,4),U+4}function Q(M,P,U,j,ee){return ee||z(M,P,U,8),de.write(M,P,U,j,52,8),U+8}function $(M){if(M=M.trim?M.trim():M.replace(/^\s+|\s+$/g,""),M=M.replace(_e,""),2>M.length)return"";for(;M.length%4!==0;)M+="=";return M}function te(M,P){P=P||1/0;for(var U,j=M.length,ee=null,ye=[],ie=0;ie<j;++ie){if(U=M.charCodeAt(ie),55295<U&&57344>U){if(!ee){if(56319<U){-1<(P-=3)&&ye.push(239,191,189);continue}else if(ie+1===j){-1<(P-=3)&&ye.push(239,191,189);continue}ee=U;continue}if(56320>U){-1<(P-=3)&&ye.push(239,191,189),ee=U;continue}U=(ee-55296<<10|U-56320)+65536}else ee&&-1<(P-=3)&&ye.push(239,191,189);if(ee=null,128>U){if(0>--P)break;ye.push(U)}else if(2048>U){if(0>(P-=2))break;ye.push(U>>6|192,U&63|128)}else if(65536>U){if(0>(P-=3))break;ye.push(U>>12|224,U>>6&63|128,U&63|128)}else if(1114112>U){if(0>(P-=4))break;ye.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw Error("Invalid code point")}return ye}function V(M){for(var P=[],U=0;U<M.length;++U)P.push(M.charCodeAt(U)&255);return P}function K(M,P,U,j){for(var ee=0;ee<j&&!(ee+U>=P.length||ee>=M.length);++ee)P[ee+U]=M[ee];return ee}var fe=e("base64-js"),de=e("ieee754"),ne=e("isarray");n.Buffer=u,n.SlowBuffer=function(M){return+M!=M&&(M=0),u.alloc(+M)},n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:i(),n.kMaxLength=u.TYPED_ARRAY_SUPPORT?2147483647:1073741823,u.poolSize=8192,u._augment=function(M){return M.__proto__=u.prototype,M},u.from=function(M,P,U){return f(null,M,P,U)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(M,P,U){return v(M),M=0>=M?l(null,M):P!==void 0?typeof U=="string"?l(null,M).fill(P,U):l(null,M).fill(P):l(null,M),M},u.allocUnsafe=function(M){return h(null,M)},u.allocUnsafeSlow=function(M){return h(null,M)},u.isBuffer=function(M){return!(M==null||!M._isBuffer)},u.compare=function(M,P){if(!u.isBuffer(M)||!u.isBuffer(P))throw new TypeError("Arguments must be Buffers");if(M===P)return 0;for(var U=M.length,j=P.length,ee=0,ye=Math.min(U,j);ee<ye;++ee)if(M[ee]!==P[ee]){U=M[ee],j=P[ee];break}return U<j?-1:j<U?1:0},u.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(M,P){if(!ne(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return u.alloc(0);var U;if(P===void 0)for(U=P=0;U<M.length;++U)P+=M[U].length;P=u.allocUnsafe(P);var j=0;for(U=0;U<M.length;++U){var ee=M[U];if(!u.isBuffer(ee))throw new TypeError('"list" argument must be an Array of Buffers');ee.copy(P,j),j+=ee.length}return P},u.byteLength=C,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var M=this.length;if(M%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;P<M;P+=2)T(this,P,P+1);return this},u.prototype.swap32=function(){var M=this.length;if(M%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var P=0;P<M;P+=4)T(this,P,P+3),T(this,P+1,P+2);return this},u.prototype.swap64=function(){var M=this.length;if(M%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var P=0;P<M;P+=8)T(this,P,P+7),T(this,P+1,P+6),T(this,P+2,P+5),T(this,P+3,P+4);return this},u.prototype.toString=function(){var M=this.length|0;return M===0?"":arguments.length===0?R(this,0,M):S.apply(this,arguments)},u.prototype.equals=function(M){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M?!0:u.compare(this,M)===0},u.prototype.inspect=function(){var M="",P=n.INSPECT_MAX_BYTES;return 0<this.length&&(M=this.toString("hex",0,P).match(/.{2}/g).join(" "),this.length>P&&(M+=" ... ")),"<Buffer "+M+">"},u.prototype.compare=function(M,P,U,j,ee){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if(P===void 0&&(P=0),U===void 0&&(U=M?M.length:0),j===void 0&&(j=0),ee===void 0&&(ee=this.length),0>P||U>M.length||0>j||ee>this.length)throw new RangeError("out of range index");if(j>=ee&&P>=U)return 0;if(j>=ee)return-1;if(P>=U)return 1;if(P>>>=0,U>>>=0,j>>>=0,ee>>>=0,this===M)return 0;var ye=ee-j,ie=U-P,he=Math.min(ye,ie);for(j=this.slice(j,ee),M=M.slice(P,U),P=0;P<he;++P)if(j[P]!==M[P]){ye=j[P],ie=M[P];break}return ye<ie?-1:ie<ye?1:0},u.prototype.includes=function(M,P,U){return this.indexOf(M,P,U)!==-1},u.prototype.indexOf=function(M,P,U){return B(this,M,P,U,!0)},u.prototype.lastIndexOf=function(M,P,U){return B(this,M,P,U,!1)},u.prototype.write=function(M,P,U,j){if(P===void 0)j="utf8",U=this.length,P=0;else if(U===void 0&&typeof P=="string")j=P,U=this.length,P=0;else if(isFinite(P))P|=0,isFinite(U)?(U|=0,j===void 0&&(j="utf8")):(j=U,U=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee=this.length-P;if((U===void 0||U>ee)&&(U=ee),0<M.length&&(0>U||0>P)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(j||(j="utf8"),ee=!1;;)switch(j){case"hex":e:{if(P=Number(P)||0,j=this.length-P,U?(U=Number(U),U>j&&(U=j)):U=j,j=M.length,j%2!==0)throw new TypeError("Invalid hex string");for(U>j/2&&(U=j/2),j=0;j<U;++j){if(ee=parseInt(M.substr(2*j,2),16),isNaN(ee)){M=j;break e}this[P+j]=ee}M=j}return M;case"utf8":case"utf-8":return K(te(M,this.length-P),this,P,U);case"ascii":return K(V(M),this,P,U);case"latin1":case"binary":return K(V(M),this,P,U);case"base64":return K(fe.toByteArray($(M)),this,P,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":j=M,ee=this.length-P;for(var ye=[],ie=0;ie<j.length&&!(0>(ee-=2));++ie){var he=j.charCodeAt(ie);M=he>>8,he%=256,ye.push(he),ye.push(M)}return K(ye,this,P,U);default:if(ee)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),ee=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var le=4096;u.prototype.slice=function(M,P){var U=this.length;if(M=~~M,P=P===void 0?U:~~P,0>M?(M+=U,0>
417M&&(M=0)):M>U&&(M=U),0>P?(P+=U,0>P&&(P=0)):P>U&&(P=U),P<M&&(P=M),u.TYPED_ARRAY_SUPPORT)P=this.subarray(M,P),P.__proto__=u.prototype;else{U=P-M,P=new u(U,void 0);for(var j=0;j<U;++j)P[j]=this[j+M]}return P},u.prototype.readUIntLE=function(M,P,U){M|=0,P|=0,U||N(M,P,this.length),U=this[M];for(var j=1,ee=0;++ee<P&&(j*=256);)U+=this[M+ee]*j;return U},u.prototype.readUIntBE=function(M,P,U){M|=0,P|=0,U||N(M,P,this.length),U=this[M+--P];for(var j=1;0<P&&(j*=256);)U+=this[M+--P]*j;return U},u.prototype.readUInt8=function(M,P){return P||N(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,P){return P||N(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,P){return P||N(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,P){return P||N(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,P){return P||N(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,P,U){M|=0,P|=0,U||N(M,P,this.length),U=this[M];for(var j=1,ee=0;++ee<P&&(j*=256);)U+=this[M+ee]*j;return U>=128*j&&(U-=Math.pow(2,8*P)),U},u.prototype.readIntBE=function(M,P,U){M|=0,P|=0,U||N(M,P,this.length),U=P;for(var j=1,ee=this[M+--U];0<U&&(j*=256);)ee+=this[M+--U]*j;return ee>=128*j&&(ee-=Math.pow(2,8*P)),ee},u.prototype.readInt8=function(M,P){return P||N(M,1,this.length),this[M]&128?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,P){return P||N(M,2,this.length),M=this[M]|this[M+1]<<8,M&32768?M|4294901760:M},u.prototype.readInt16BE=function(M,P){return P||N(M,2,this.length),M=this[M+1]|this[M]<<8,M&32768?M|4294901760:M},u.prototype.readInt32LE=function(M,P){return P||N(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,P){return P||N(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,P){return P||N(M,4,this.length),de.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,P){return P||N(M,4,this.length),de.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,P){return P||N(M,8,this.length),de.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,P){return P||N(M,8,this.length),de.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,P,U,j){M=+M,P|=0,U|=0,j||A(this,M,P,U,Math.pow(2,8*U)-1,0),j=1;var ee=0;for(this[P]=M&255;++ee<U&&(j*=256);)this[P+ee]=M/j&255;return P+U},u.prototype.writeUIntBE=function(M,P,U,j){M=+M,P|=0,U|=0,j||A(this,M,P,U,Math.pow(2,8*U)-1,0),j=U-1;var ee=1;for(this[P+j]=M&255;0<=--j&&(ee*=256);)this[P+j]=M/ee&255;return P+U},u.prototype.writeUInt8=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[P]=M&255,P+1},u.prototype.writeUInt16LE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[P]=M&255,this[P+1]=M>>>8):X(this,M,P,!0),P+2},u.prototype.writeUInt16BE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[P]=M>>>8,this[P+1]=M&255):X(this,M,P,!1),P+2},u.prototype.writeUInt32LE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[P+3]=M>>>24,this[P+2]=M>>>16,this[P+1]=M>>>8,this[P]=M&255):Z(this,M,P,!0),P+4},u.prototype.writeUInt32BE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[P]=M>>>24,this[P+1]=M>>>16,this[P+2]=M>>>8,this[P+3]=M&255):Z(this,M,P,!1),P+4},u.prototype.writeIntLE=function(M,P,U,j){M=+M,P|=0,j||(j=Math.pow(2,8*U-1),A(this,M,P,U,j-1,-j)),j=0;var ee=1,ye=0;for(this[P]=M&255;++j<U&&(ee*=256);)0>M&&ye===0&&this[P+j-1]!==0&&(ye=1),this[P+j]=(M/ee>>0)-ye&255;return P+U},u.prototype.writeIntBE=function(M,P,U,j){M=+M,P|=0,j||(j=Math.pow(2,8*U-1),A(this,M,P,U,j-1,-j)),j=U-1;var ee=1,ye=0;for(this[P+j]=M&255;0<=--j&&(ee*=256);)0>M&&ye===0&&this[P+j+1]!==0&&(ye=1),this[P+j]=(M/ee>>0)-ye&255;return P+U},u.prototype.writeInt8=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),0>M&&(M=255+M+1),this[P]=M&255,P+1},u.prototype.writeInt16LE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[P]=M&255,this[P+1]=M>>>8):X(this,M,P,!0),P+2},u.prototype.writeInt16BE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[P]=M>>>8,this[P+1]=M&255):X(this,M,P,!1),P+2},u.prototype.writeInt32LE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[P]=M&255,this[P+1]=M>>>8,this[P+2]=M>>>16,this[P+3]=M>>>24):Z(this,M,P,!0),P+4},u.prototype.writeInt32BE=function(M,P,U){return M=+M,P|=0,U||A(this,M,P,4,2147483647,-2147483648),0>M&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[P]=M>>>24,this[P+1]=M>>>16,this[P+2]=M>>>8,this[P+3]=M&255):Z(this,M,P,!1),P+4},u.prototype.writeFloatLE=function(M,P,U){return Y(this,M,P,!0,U)},u.prototype.writeFloatBE=function(M,P,U){return Y(this,M,P,!1,U)},u.prototype.writeDoubleLE=function(M,P,U){return Q(this,M,P,!0,U)},u.prototype.writeDoubleBE=function(M,P,U){return Q(this,M,P,!1,U)},u.prototype.copy=function(M,P,U,j){if(U||(U=0),j||j===0||(j=this.length),P>=M.length&&(P=M.length),P||(P=0),0<j&&j<U&&(j=U),j===U||M.length===0||this.length===0)return 0;if(0>P)throw new RangeError("targetStart out of bounds");if(0>U||U>=this.length)throw new RangeError("sourceStart out of bounds");if(0>j)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),M.length-P<j-U&&(j=M.length-P+U);var ee=j-U;if(this===M&&U<P&&P<j)for(j=ee-1;0<=j;--j)M[j+P]=this[j+U];else if(1e3>ee||!u.TYPED_ARRAY_SUPPORT)for(j=0;j<ee;++j)M[j+P]=this[j+U];else Uint8Array.prototype.set.call(M,this.subarray(U,U+ee),P);return ee}
417,u.prototype.fill=function(M,P,U,j){if(typeof M=="string"){if(typeof P=="string"?(j=P,P=0,U=this.length):typeof U=="string"&&(j=U,U=this.length),M.length===1){var ee=M.charCodeAt(0);256>ee&&(M=ee)}if(j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!u.isEncoding(j))throw new TypeError("Unknown encoding: "+j)}else typeof M=="number"&&(M&=255);if(0>P||this.length<P||this.length<U)throw new RangeError("Out of range index");if(U<=P)return this;if(P>>>=0,U=U===void 0?this.length:U>>>0,M||(M=0),typeof M=="number")for(j=P;j<U;++j)this[j]=M;else for(M=u.isBuffer(M)?M:te(new u(M,j).toString()),ee=M.length,j=0;j<U-P;++j)this[j+P]=M[j%ee];return this};var _e=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":39,ieee754:80,isarray:83}],78:[function(e,t,n){(function(r){n.isArray=function(i){return Array.isArray?Array.isArray(i):Object.prototype.toString.call(i)==="[object Array]"},n.isBoolean=function(i){return typeof i=="boolean"},n.isNull=function(i){return i===null},n.isNullOrUndefined=function(i){return i==null},n.isNumber=function(i){return typeof i=="number"},n.isString=function(i){return typeof i=="string"},n.isSymbol=function(i){return typeof i=="symbol"},n.isUndefined=function(i){return i===void 0},n.isRegExp=function(i){return Object.prototype.toString.call(i)==="[object RegExp]"},n.isObject=function(i){return typeof i=="object"&&i!==null},n.isDate=function(i){return Object.prototype.toString.call(i)==="[object Date]"},n.isError=function(i){return Object.prototype.toString.call(i)==="[object Error]"||i instanceof Error},n.isFunction=function(i){return typeof i=="function"},n.isPrimitive=function(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"},n.isBuffer=r.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":82}],79:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(u){return typeof u=="function"}function l(u){return typeof u=="object"&&u!==null}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(u){if(typeof u!="number"||0>u||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},r.prototype.emit=function(u){var f;if(this._events||(this._events={}),u==="error"&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){var v=arguments[1];if(v instanceof Error)throw v;var h=Error('Uncaught, unspecified "error" event. ('+v+")");throw h.context=v,h}if(h=this._events[u],h===void 0)return!1;if(i(h))switch(arguments.length){case 1:h.call(this);break;case 2:h.call(this,arguments[1]);break;case 3:h.call(this,arguments[1],arguments[2]);break;default:v=Array.prototype.slice.call(arguments,1),h.apply(this,v)}else if(l(h)){v=Array.prototype.slice.call(arguments,1);var g=h.slice();for(h=g.length,f=0;f<h;f++)g[f].apply(this,v)}return!0},r.prototype.addListener=function(u,f){if(!i(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,i(f.listener)?f.listener:f),this._events[u]?l(this._events[u])?this._events[u].push(f):this._events[u]=[this._events[u],f]:this._events[u]=f,l(this._events[u])&&!this._events[u].warned&&(f=this._maxListeners!==void 0?this._maxListeners:r.defaultMaxListeners)&&0<f&&this._events[u].length>f&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(u,f){function v(){this.removeListener(u,v),h||(h=!0,f.apply(this,arguments))}if(!i(f))throw TypeError("listener must be a function");var h=!1;return v.listener=f,this.on(u,v),this},r.prototype.removeListener=function(u,f){if(!i(f))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;var v=this._events[u],h=v.length,g=-1;if(v===f||i(v.listener)&&v.listener===f)delete this._events[u],this._events.removeListener&&this.emit
417("removeListener",u,f);else if(l(v)){for(;0<h--;)if(v[h]===f||v[h].listener&&v[h].listener===f){g=h;break}if(0>g)return this;v.length===1?(v.length=0,delete this._events[u]):v.splice(g,1),this._events.removeListener&&this.emit("removeListener",u,f)}return this},r.prototype.removeAllListeners=function(u){if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(f in this._events)f!=="removeListener"&&this.removeAllListeners(f);return this.removeAllListeners("removeListener"),this._events={},this}var f=this._events[u];if(i(f))this.removeListener(u,f);else if(f)for(;f.length;)this.removeListener(u,f[f.length-1]);return delete this._events[u],this},r.prototype.listeners=function(u){return this._events&&this._events[u]?i(this._events[u])?[this._events[u]]:this._events[u].slice():[]},r.prototype.listenerCount=function(u){if(this._events){if(u=this._events[u],i(u))return 1;if(u)return u.length}return 0},r.listenerCount=function(u,f){return u.listenerCount(f)}},{}],80:[function(e,t,n){n.read=function(r,i,l,u,f){var v=8*f-u-1,h=(1<<v)-1,g=h>>1,y=-7;f=l?f-1:0;var w=l?-1:1,C=r[i+f];for(f+=w,l=C&(1<<-y)-1,C>>=-y,y+=v;0<y;l=256*l+r[i+f],f+=w,y-=8);for(v=l&(1<<-y)-1,l>>=-y,y+=u;0<y;v=256*v+r[i+f],f+=w,y-=8);if(l===0)l=1-g;else{if(l===h)return v?NaN:1/0*(C?-1:1);v+=Math.pow(2,u),l-=g}return(C?-1:1)*v*Math.pow(2,l-u)},n.write=function(r,i,l,u,f,v){var h,g=8*v-f-1,y=(1<<g)-1,w=y>>1,C=f===23?Math.pow(2,-24)-Math.pow(2,-77):0;v=u?0:v-1;var S=u?1:-1,T=0>i||i===0&&0>1/i?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(i=isNaN(i)?1:0,u=y):(u=Math.floor(Math.log(i)/Math.LN2),1>i*(h=Math.pow(2,-u))&&(u--,h*=2),i=1<=u+w?i+C/h:i+C*Math.pow(2,1-w),2<=i*h&&(u++,h/=2),u+w>=y?(i=0,u=y):1<=u+w?(i=(i*h-1)*Math.pow(2,f),u+=w):(i=i*Math.pow(2,w-1)*Math.pow(2,f),u=0));8<=f;r[l+v]=i&255,v+=S,i/=256,f-=8);for(u=u<<f|i,g+=f;0<g;r[l+v]=u&255,v+=S,u/=256,g-=8);r[l+v-S]|=128*T}},{}],81:[function(e,t,n){t.exports=typeof Object.create=="function"?function(r,i){r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:function(r,i){r.super_=i;var l=function(){};l.prototype=i.prototype,r.prototype=new l,r.prototype.constructor=r}},{}],82:[function(e,t,n){function r(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}t.exports=function(i){return i!=null&&(r(i)||typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&r(i.slice(0,0))||!!i._isBuffer)}},{}],83:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(i){return r.call(i)=="[object Array]"}},{}],84:[function(e,t,n){n.encode=function(r,i){i="";for(var l,u,f,v,h,g,y=0;y<r.length;)l=r.charCodeAt(y++),u=r.charCodeAt(y++),f=r.charCodeAt(y++),v=l>>2,l=(l&3)<<4|u>>4,h=(u&15)<<2|f>>6,g=f&63,isNaN(u)?h=g=64:isNaN(f)&&(g=64),i=i+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g);return i},n.decode=function(r,i){i="";var l=0;for(r=r.replace(/[^A-Za-z0-9\+\/=]/g,"");l<r.length;){var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r.charAt(l++)),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r.charAt(l++)),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r.charAt(l++)),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r.charAt(l++));u=u<<2|f>>4,f=(f&15)<<4|v>>2;var g=(v&3)<<6|h;i+=String.fromCharCode(u),v!=64&&(i+=String.fromCharCode(f)),h!=64&&(i+=String.fromCharCode(g))}return i}},{}],85:[function(e,t,n){function r(){this.crc32=this.uncompressedSize=this.compressedSize=0,this.compressedContent=this.compressionMethod=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],86:[function(e,t,n){n.STORE={magic:"\0\0",compress:function(r,i){return r},uncompress:function(r){return r},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":91}],87:[function(e,t,n){var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,39
41704427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(l,u){if(typeof l=="undefined"||!l.length)return 0;var f=r.getTypeOf(l)!=="string";typeof u=="undefined"&&(u=0),u^=-1;for(var v=0,h=l.length;v<h;v++){var g=f?l[v]:l.charCodeAt(v);g=(u^g)&255,g=i[g],u=u>>>8^g}return u^-1}},{"./utils":104}],88:[function(e,t,n){function r(l){this.data=null,this.index=this.length=0}var i=e("./utils");r.prototype={checkOffset:function(l){this.checkIndex(this.index+l)},checkIndex:function(l){if(this.length<l||0>l)throw Error("End of data reached (data length = "+this.length+", asked index = "+l+"). Corrupted zip ?")},setIndex:function(l){this.checkIndex(l),this.index=l},skip:function(l){this.setIndex(this.index+l)},byteAt:function(l){},readInt:function(l){var u=0,f;for(this.checkOffset(l),f=this.index+l-1;f>=this.index;f--)u=(u<<8)+this.byteAt(f);return this.index+=l,u},readString:function(l){return i.transformTo("string",this.readData(l))},readData:function(l){},lastIndexOfSignature:function(l){},readDate:function(){var l=this.readInt(4);return new Date((l>>25&127)+1980,(l>>21&15)-1,l>>16&31,l>>11&31,l>>5&63,(l&31)<<1)}},t.exports=r},{"./utils":104}],89:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],90:[function(e,t,n){var r=e("./utils");n.string2binary=function(i){return r.string2binary(i)},n.string2Uint8Array=function(i){return r.transformTo("uint8array",i)},n.uint8Array2String=function(i){return r.transformTo("string",i)},n.string2Blob=function(i){return i=r.transformTo("arraybuffer",i),r.arrayBuffer2Blob(i)},n.arrayBuffer2Blob=function(i){return r.arrayBuffer2Blob(i)},n.transformTo=function(i,l){return r.transformTo(i,l)},n.getTypeOf=function(i){return r.getTypeOf(i)},n.checkSupport=function(i){return r.checkSupport(i)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(i){return r.pretty(i)},n.findCompression=function(i){return r.findCompression(i)},n.isRegExp=function(i){return r.isRegExp(i)}},{"./utils":104}],91:[function(e,t,n){t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined";var r=e("pako");n.uncompressInputType=t?"uint8array":"array",n.compressInputType=t?"uint8array":"array",n.magic="\b\0",n.compress=function(i,l){return r.deflateRaw(i,{level:l.level||-1})},n.uncompress=function(i){return r.inflateRaw(i)}},{pako:120}],92:[function(e,t,n){function r(l,u){if(!(this instanceof r))return new r(l,u);this.files={},this.comment=null,this.root="",l&&this.load(l,u),this.clone=function(){var f=new r,v;for(v in this)typeof this[v]!="function"&&(f[v]=this[v]);return f}}var i=e("./base64");r.prototype=e("./object"),r.prototype.load=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.utils=e("./deprecatedPublicUtils"),r.base64={encode:function(l){return i.encode(l)},decode:function(l){return i.decode(l)}}
417,r.compressions=e("./compressions"),t.exports=r},{"./base64":84,"./compressions":86,"./defaults":89,"./deprecatedPublicUtils":90,"./load":93,"./object":96,"./support":100}],93:[function(e,t,n){var r=e("./base64"),i=e("./zipEntries");t.exports=function(l,u){var f;u=u||{},u.base64&&(l=r.decode(l));var v=new i(l,u);for(l=v.files,f=0;f<l.length;f++){var h=l[f];this.file(h.fileName,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileComment.length?h.fileComment:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:u.createFolders})}return v.zipComment.length&&(this.comment=v.zipComment),this}},{"./base64":84,"./zipEntries":105}],94:[function(e,t,n){(function(r){t.exports=function(i,l){return new r(i,l)},t.exports.test=function(i){return r.isBuffer(i)}}).call(this,e("buffer").Buffer)},{buffer:77}],95:[function(e,t,n){function r(i){this.data=i,this.length=this.data.length,this.index=0}e=e("./uint8ArrayReader"),r.prototype=new e,r.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.index,this.index+i);return this.index+=i,l},t.exports=r},{"./uint8ArrayReader":101}],96:[function(e,t,n){var r=e("./support"),i=e("./utils"),l=e("./crc32"),u=e("./signature"),f=e("./defaults"),v=e("./base64"),h=e("./compressions"),g=e("./compressedObject"),y=e("./nodeBuffer"),w=e("./utf8"),C=e("./stringWriter"),S=e("./uint8ArrayWriter"),T=function(Q){if(Q._data instanceof g&&(Q._data=Q._data.getContent(),Q.options.binary=!0,Q.options.base64=!1,i.getTypeOf(Q._data)==="uint8array")){var $=Q._data;Q._data=new Uint8Array($.length),$.length!==0&&Q._data.set($,0)}return Q._data},B=function(Q){var $=T(Q);return i.getTypeOf($)==="string"?!Q.options.binary&&r.nodebuffer?y($,"utf-8"):Q.asBinary():$},F=function(Q){var $=T(this);return $===null||typeof $=="undefined"?"":(this.options.base64&&($=v.decode($)),$=Q&&this.options.binary?Y.utf8decode($):i.transformTo("string",$),Q||this.options.binary||($=i.transformTo("string",Y.utf8encode($))),$)},R=function(Q,$,te){this.name=Q,this.dir=te.dir,this.date=te.date,this.comment=te.comment,this.unixPermissions=te.unixPermissions,this.dosPermissions=te.dosPermissions,this._data=$,this.options=te,this._initialMetadata={dir:te.dir,date:te.date}};R.prototype={asText:function(){return F.call(this,!0)},asBinary:function(){return F.call(this,!1)},asNodeBuffer:function(){var Q=B(this);return i.transformTo("nodebuffer",Q)},asUint8Array:function(){var Q=B(this);return i.transformTo("uint8array",Q)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var N=function(Q,$){var te="",V;for(V=0;V<$;V++)te+=String.fromCharCode(Q&255),Q>>>=8;return te},A=function(){var Q={},$,te;for($=0;$<arguments.length;$++)for(te in arguments[$])arguments[$].hasOwnProperty(te)&&typeof Q[te]=="undefined"&&(Q[te]=arguments[$][te]);return Q},X=function(Q,$,te){var V=i.getTypeOf($);te=te||{},te.base64!==!0||te.binary!==null&&te.binary!==void 0||(te.binary=!0),te=A(te,f),te.date=te.date||new Date,te.compression!==null&&(te.compression=te.compression.toUpperCase()),typeof te.unixPermissions=="string"&&(te.unixPermissions=parseInt(te.unixPermissions,8)),te.unixPermissions&&te.unixPermissions&16384&&(te.dir=!0),te.dosPermissions&&te.dosPermissions&16&&(te.dir=!0),te.dir&&(Q=Z(Q));var K;if(K=te.createFolders){var fe=Q;fe.slice(-1)=="/"&&(fe=fe.substring(0,fe.length-1)),K=fe.lastIndexOf("/"),K=fe=0<K?fe.substring(0,K):""}if(K&&z.call(this,fe,!0),te.dir||$===null||typeof $=="undefined")te.base64=!1,te.binary=!1,$=null;else if(V==="string")te.binary&&!te.base64&&te.optimizedBinaryString!==!0&&($=i.string2binary($));else{if(te.base64=!1,te.binary=!0,!(V||$ instanceof g))throw Error("The data of '"+Q+"' is in an unsupported format !");V==="arraybuffer"&&($=i.transformTo("uint8array",$))}return $=new R(Q,$,te),this.files[Q]=$},Z=function(Q){return Q.slice(-1)!="/"&&(Q+="/"),Q},z=function(Q,$){return $=typeof $!="undefined"?$:!1,Q=Z(Q),this.files[Q]||X.call(this,Q,null,{dir:!0,createFolders:$}),this.files[Q]},Y={load:function(Q,$){throw Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(Q){var $=[],te;for(te in this.files)if(this.files.hasOwnProperty(te)){var V=this.files[te],K=new R(V.name,V._data,A(V.options));V=te.slice(this.root.length,te.length),te.slice(0,this.root.length)===this.root&&Q(V,K)&&$.pu
417sh(K)}return $},file:function(Q,$,te){if(arguments.length===1){if(i.isRegExp(Q)){var V=Q;return this.filter(function(K,fe){return!fe.dir&&V.test(K)})}return this.filter(function(K,fe){return!fe.dir&&K===Q})[0]||null}return Q=this.root+Q,X.call(this,Q,$,te),this},folder:function(Q){if(!Q)return this;if(i.isRegExp(Q))return this.filter(function(V,K){return K.dir&&Q.test(V)});var $=z.call(this,this.root+Q),te=this.clone();return te.root=$.name,te},remove:function(Q){Q=this.root+Q;var $=this.files[Q];if($||(Q.slice(-1)!="/"&&(Q+="/"),$=this.files[Q]),$&&!$.dir)delete this.files[Q];else{$=this.filter(function(V,K){return K.name.slice(0,Q.length)===Q});for(var te=0;te<$.length;te++)delete this.files[$[te].name]}return this},generate:function(Q){Q=A(Q||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip"}),i.checkSupport(Q.type),(Q.platform==="darwin"||Q.platform==="freebsd"||Q.platform==="linux"||Q.platform==="sunos")&&(Q.platform="UNIX"),Q.platform==="win32"&&(Q.platform="DOS");var $=[],te=0,V=0,K=i.transformTo("string",this.utf8encode(Q.comment||this.comment||""));for(be in this.files)if(this.files.hasOwnProperty(be)){var fe=this.files[be],de=fe.options.compression||Q.compression.toUpperCase(),ne=h[de];if(!ne)throw Error(de+" is not a valid compression method !");de=fe;var le=ne,_e=fe.options.compressionOptions||Q.compressionOptions||{},M=new g;de._data instanceof g?(M.uncompressedSize=de._data.uncompressedSize,M.crc32=de._data.crc32,M.uncompressedSize===0||de.dir?(le=h.STORE,M.compressedContent="",M.crc32=0):de._data.compressionMethod===le.magic?M.compressedContent=de._data.getCompressedContent():(ne=de._data.getContent(),M.compressedContent=le.compress(i.transformTo(le.compressInputType,ne),_e))):(ne=B(de),(!ne||ne.length===0||de.dir)&&(le=h.STORE,ne=""),M.uncompressedSize=ne.length,M.crc32=l(ne),M.compressedContent=le.compress(i.transformTo(le.compressInputType,ne),_e)),M.compressedSize=M.compressedContent.length,M.compressionMethod=le.magic,de=M;var P=fe;fe=de,ne=te;var U=Q.platform;le=i.transformTo("string",w.utf8encode(P.name)),M=P.comment||"",_e=i.transformTo("string",w.utf8encode(M));var j=le.length!==P.name.length,ee=_e.length!==M.length,ye=P.options;M="";var ie=P._initialMetadata.dir!==P.dir?P.dir:ye.dir,he=P._initialMetadata.date!==P.date?P.date:ye.date;if(ye=0,ie&&(ye|=16),U==="UNIX"){U=798;var re=P=P.unixPermissions;P||(re=ie?16893:33204),ye|=(re&65535)<<16}else U=20,ye|=(P.dosPermissions||0)&63;P=he.getHours(),P=P<<6|he.getMinutes(),P=P<<5|he.getSeconds()/2,ie=he.getFullYear()-1980,ie=ie<<4|he.getMonth()+1,ie=ie<<5|he.getDate(),j&&(he=N(1,1)+N(l(le),4)+le,M+="up"+N(he.length,2)+he),ee&&(he=N(1,1)+N(this.crc32(_e),4)+_e,M+="uc"+N(he.length,2)+he),j=` 418\0`+(j||ee?"\0\b":"\0\0")+fe.compressionMethod,j+=N(P,2),j+=N(ie,2),j+=N(fe.crc32,4),j+=N(fe.compressedSize,4),j+=N(fe.uncompressedSize,4),j+=N(le.length,2),j+=N(M.length,2),ee=u.LOCAL_FILE_HEADER+j+le+M,ne=u.CENTRAL_FILE_HEADER+N(U,2)+j+N(_e.length,2)+"\0\0\0\0"+N(ye,4)+N(ne,4)+le+M+_e,fe={fileRecord:ee,dirRecord:ne,compressedObject:fe},te+=fe.fileRecord.length+de.compressedSize,V+=fe.dirRecord.length,$.push(fe)}K=u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+N($.length,2)+N($.length,2)+N(V,4)+N(te,4)+N(K.length,2)+K;var be=Q.type.toLowerCase();for(te=be==="uint8array"||be==="arraybuffer"||be==="blob"||be==="nodebuffer"?new S(te+V+K.length):new C(te+V+K.length),V=0;V<$.length;V++)te.append($[V].fileRecord),te.append($[V].compressedObject.compressedContent);for(V=0;V<$.length;V++)te.append($[V].dirRecord);switch(te.append(K),$=te.finalize(),Q.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(Q.type.toLowerCase(),$);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",$),Q.mimeType);case"base64":return Q.base64?v.encode($):$;default:return $}},crc32:function(Q,$){return l(Q,$)},utf8encode:function(Q){return i.transformTo("string",w.utf8encode(Q))},utf8decode:function(Q){return w.utf8decode(Q)}};t.exports=Y},{"./base64":84,"./compressedObject":85,"./compressions":86,"./cr
418c32":87,"./defaults":89,"./nodeBuffer":94,"./signature":97,"./stringWriter":99,"./support":100,"./uint8ArrayWriter":102,"./utf8":103,"./utils":104}],97:[function(e,t,n){n.LOCAL_FILE_HEADER="PK��",n.CENTRAL_FILE_HEADER="PK��",n.CENTRAL_DIRECTORY_END="PK��",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK��",n.DATA_DESCRIPTOR="PK\x07\b"},{}],98:[function(e,t,n){function r(l,u){this.data=l,u||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0}n=e("./dataReader");var i=e("./utils");r.prototype=new n,r.prototype.byteAt=function(l){return this.data.charCodeAt(l)},r.prototype.lastIndexOfSignature=function(l){return this.data.lastIndexOf(l)},r.prototype.readData=function(l){this.checkOffset(l);var u=this.data.slice(this.index,this.index+l);return this.index+=l,u},t.exports=r},{"./dataReader":88,"./utils":104}],99:[function(e,t,n){var r=e("./utils");e=function(){this.data=[]},e.prototype={append:function(i){i=r.transformTo("string",i),this.data.push(i)},finalize:function(){return this.data.join("")}},t.exports=e},{"./utils":104}],100:[function(e,t,n){if(e=e("buffer").Buffer,n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",n.nodebuffer=typeof e!="undefined",n.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")n.blob=!1;else{e=new ArrayBuffer(0);try{n.blob=new Blob([e],{type:"application/zip"}).size===0}catch{try{var r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);r.append(e),n.blob=r.getBlob("application/zip").size===0}catch{n.blob=!1}}}},{buffer:77}],101:[function(e,t,n){function r(i){i&&(this.data=i,this.length=this.data.length,this.index=0)}e=e("./dataReader"),r.prototype=new e,r.prototype.byteAt=function(i){return this.data[i]},r.prototype.lastIndexOfSignature=function(i){var l=i.charCodeAt(0),u=i.charCodeAt(1),f=i.charCodeAt(2);i=i.charCodeAt(3);for(var v=this.length-4;0<=v;--v)if(this.data[v]===l&&this.data[v+1]===u&&this.data[v+2]===f&&this.data[v+3]===i)return v;return-1},r.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var l=this.data.subarray(this.index,this.index+i);return this.index+=i,l},t.exports=r},{"./dataReader":88}],102:[function(e,t,n){var r=e("./utils");e=function(i){this.data=new Uint8Array(i),this.index=0},e.prototype={append:function(i){i.length!==0&&(i=r.transformTo("uint8array",i),this.data.set(i,this.index),this.index+=i.length)},finalize:function(){return this.data}},t.exports=e},{"./utils":104}],103:[function(e,t,n){var r=e("./utils"),i=e("./support"),l=e("./nodeBuffer"),u=Array(256);for(e=0;256>e;e++)u[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;u[254]=u[254]=1;var f=function(v){var h,g,y=v.length,w=Array(2*y);for(h=g=0;h<y;){var C=v[h++];if(128>C)w[g++]=C;else{var S=u[C];if(4<S)w[g++]=65533,h+=S-1;else{for(C&=S===2?31:S===3?15:7;1<S&&h<y;)C=C<<6|v[h++]&63,S--;1<S?w[g++]=65533:65536>C?w[g++]=C:(C-=65536,w[g++]=55296|C>>10&1023,w[g++]=56320|C&1023)}}}return w.length!==g&&(w.subarray?w=w.subarray(0,g):w.length=g),r.applyFromCharCode(w)};n.utf8encode=function(v){if(i.nodebuffer)return l(v,"utf-8");var h,g,y=v.length,w=0;for(h=0;h<y;h++){var C=v.charCodeAt(h);if((C&64512)===55296&&h+1<y){var S=v.charCodeAt(h+1);(S&64512)===56320&&(C=65536+(C-55296<<10)+(S-56320),h++)}w+=128>C?1:2048>C?2:65536>C?3:4}var T=i.uint8array?new Uint8Array(w):Array(w);for(h=g=0;g<w;h++)C=v.charCodeAt(h),(C&64512)===55296&&h+1<y&&(S=v.charCodeAt(h+1),(S&64512)===56320&&(C=65536+(C-55296<<10)+(S-56320),h++)),128>C?T[g++]=C:(2048>C?T[g++]=192|C>>>6:(65536>C?T[g++]=224|C>>>12:(T[g++]=240|C>>>18,T[g++]=128|C>>>12&63),T[g++]=128|C>>>6&63),T[g++]=128|C&63);return T},n.utf8decode=function(v){if(i.nodebuffer)return r.transformTo("nodebuffer",v).toString("utf-8");v=r.transformTo(i.uint8array?"uint8array":"array",v);for(var h=[],g=0,y=v.length;g<y;){var w,C=Math.min(g+65536,y);for(C=C||v.length,C>v.length&&(C=v.length),w=C-1;0<=w&&(v[w]&192)===128;)w--;w=0>w||w===0?C:w+u[v[w]]>C?w:C,i.uint8array?h.push(f(v.subarray(g,w))):h.push(f(v.slice(g,w))),g=w}return h.join("")}},{"./nodeBuffer":94,"./support":100,"./utils":104}],104:[function(e,t,n){function r(y){return y}function i(y,w){for(var C=0;C<y.length;++C)w[C]=y.charCodeAt(C)&255;return w}function l(y){var w=65536,C=[],S=y.length,T=n.getTypeOf(y),B=0,F=!0;
418try{switch(T){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,h(0))}}catch{F=!1}if(!F){for(w="",C=0;C<y.length;C++)w+=String.fromCharCode(y[C]);return w}for(;B<S&&1<w;)try{T==="array"||T==="nodebuffer"?C.push(String.fromCharCode.apply(null,y.slice(B,Math.min(B+w,S)))):C.push(String.fromCharCode.apply(null,y.subarray(B,Math.min(B+w,S)))),B+=w}catch{w=Math.floor(w/2)}return C.join("")}function u(y,w){for(var C=0;C<y.length;C++)w[C]=y[C];return w}var f=e("./support"),v=e("./compressions"),h=e("./nodeBuffer");n.string2binary=function(y){for(var w="",C=0;C<y.length;C++)w+=String.fromCharCode(y.charCodeAt(C)&255);return w},n.arrayBuffer2Blob=function(y,w){n.checkSupport("blob"),w=w||"application/zip";try{return new Blob([y],{type:w})}catch{try{var C=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return C.append(y),C.getBlob(w)}catch{throw Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=l;var g={};g.string={string:r,array:function(y){return i(y,Array(y.length))},arraybuffer:function(y){return g.string.uint8array(y).buffer},uint8array:function(y){return i(y,new Uint8Array(y.length))},nodebuffer:function(y){return i(y,h(y.length))}},g.array={string:l,array:r,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h(y)}},g.arraybuffer={string:function(y){return l(new Uint8Array(y))},array:function(y){return u(new Uint8Array(y),Array(y.byteLength))},arraybuffer:r,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return h(new Uint8Array(y))}},g.uint8array={string:l,array:function(y){return u(y,Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:r,nodebuffer:function(y){return h(y)}},g.nodebuffer={string:l,array:function(y){return u(y,Array(y.length))},arraybuffer:function(y){return g.nodebuffer.uint8array(y).buffer},uint8array:function(y){return u(y,new Uint8Array(y.length))},nodebuffer:r},n.transformTo=function(y,w){if(w||(w=""),!y)return w;n.checkSupport(y);var C=n.getTypeOf(w);return g[C][y](w)},n.getTypeOf=function(y){if(typeof y=="string")return"string";if(Object.prototype.toString.call(y)==="[object Array]")return"array";if(f.nodebuffer&&h.test(y))return"nodebuffer";if(f.uint8array&&y instanceof Uint8Array)return"uint8array";if(f.arraybuffer&&y instanceof ArrayBuffer)return"arraybuffer"},n.checkSupport=function(y){if(!f[y.toLowerCase()])throw Error(y+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(y){var w="",C;for(C=0;C<(y||"").length;C++){var S=y.charCodeAt(C);w+="\\x"+(16>S?"0":"")+S.toString(16).toUpperCase()}return w},n.findCompression=function(y){for(var w in v)if(v.hasOwnProperty(w)&&v[w].magic===y)return v[w];return null},n.isRegExp=function(y){return Object.prototype.toString.call(y)==="[object RegExp]"}},{"./compressions":86,"./nodeBuffer":94,"./support":100}],105:[function(e,t,n){function r(w,C){this.files=[],this.loadOptions=C,w&&this.load(w)}var i=e("./stringReader"),l=e("./nodeBufferReader"),u=e("./uint8ArrayReader"),f=e("./utils"),v=e("./signature"),h=e("./zipEntry"),g=e("./support"),y=e("./object");r.prototype={checkSignature:function(w){var C=this.reader.readString(4);if(C!==w)throw Error("Corrupted zip or bug : unexpected signature ("+f.pretty(C)+", expected "+f.pretty(w)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=y.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var w=this.zip64EndOfCentralSize-44,C,S,T;0<w;)C=this.reader.readInt(2),S=this.reader.readInt(4),T=this.reader.readString(S),this.zip64ExtensibleData[C]={id:C,length:S,value:T}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var w;for(w=0;w<this.files.length;w++){var C=this.files[w];this.reader.setIndex(C.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),C.readLocalPart(this.reader),C.handleUTF8(),C.processAttributes()}},readCentralDir:function(){for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===v.CENTRAL_FILE_HEADER;){var w=new h({zip64:this.zip64},this.loadOptions);w.readCentralPart(this.reader),this.files.push(w)}},readEndOfCentral:function(){var w=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(w===-1){w=!0;try{this.reader.setIndex(0),this.checkSignature(v.LOCAL_FILE_HEADER),w=!1}catch{}throw Error(w?"Can't find end of central directory : is this a zip f
418ile ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html":"Corrupted zip : can't find end of central directory")}if(this.reader.setIndex(w),this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===f.MAX_VALUE_16BITS||this.diskWithCentralDirStart===f.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===f.MAX_VALUE_16BITS||this.centralDirRecords===f.MAX_VALUE_16BITS||this.centralDirSize===f.MAX_VALUE_32BITS||this.centralDirOffset===f.MAX_VALUE_32BITS){if(this.zip64=!0,w=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),w===-1)throw Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(w),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(w){var C=f.getTypeOf(w);this.reader=C!=="string"||g.uint8array?C==="nodebuffer"?new l(w):new u(f.transformTo("uint8array",w)):new i(w,this.loadOptions.optimizedBinaryString)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=r},{"./nodeBufferReader":95,"./object":96,"./signature":97,"./stringReader":98,"./support":100,"./uint8ArrayReader":101,"./utils":104,"./zipEntry":106}],106:[function(e,t,n){function r(v,h){this.options=v,this.loadOptions=h}var i=e("./stringReader"),l=e("./utils"),u=e("./compressedObject"),f=e("./object");r.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},prepareCompressedContent:function(v,h,g){return function(){var y=v.index;v.setIndex(h);var w=v.readData(g);return v.setIndex(y),w}},prepareContent:function(v,h,g,y,w){return function(){var C=l.transformTo(y.uncompressInputType,this.getCompressedContent());if(C=y.uncompress(C),C.length!==w)throw Error("Bug : uncompressed data size mismatch");return C}},readLocalPart:function(v){v.skip(22),this.fileNameLength=v.readInt(2);var h=v.readInt(2);if(this.fileName=v.readString(this.fileNameLength),v.skip(h),this.compressedSize==-1||this.uncompressedSize==-1)throw Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(h=l.findCompression(this.compressionMethod),h===null)throw Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new u,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(v,v.index,this.compressedSize,h),this.decompressed.getContent=this.prepareContent(v,v.index,this.compressedSize,h,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=l.transformTo("string",this.decompressed.getContent()),f.crc32(this.decompressed)!==this.crc32))throw Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(v){if(this.versionMadeBy=v.readInt(2),this.versionNeeded=v.readInt(2),this.bitFlag=v.readInt(2),this.compressionMethod=v.readString(2),this.date=v.readDate(),this.crc32=v.readInt(4),this.compressedSize=v.readInt(4),this.uncompressedSize=v.readInt(4),this.fileNameLength=v.readInt(2),this.extraFieldsLength=v.readInt(2),this.fileCommentLength=v.readInt(2),this.diskNumberStart=v.readInt(2),this.internalFileAttributes=v.readInt(2),this.externalFileAttributes=v.readInt(4),this.localHeaderOffset=v.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");this.fileName=v.readString(this.fileNameLength),this.readExtraFields(v),this.parseZIP64ExtraField(v),this.fileComment=v.readString(this.fileCommentLength)},processAttributes:function(){this.dosPermissions=this.unixPermissions=null;var v=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),v===0&&(this.dosPermissions=this.externalFileAttributes&63),v===3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileName.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(v){this.extraFields[1]&&(v=new i(this.extraFields[1].value),this.uncompressedSize===l.MAX_VALUE_32BITS&&
418(this.uncompressedSize=v.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=v.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&(this.localHeaderOffset=v.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=v.readInt(4)))},readExtraFields:function(v){var h=v.index;for(this.extraFields=this.extraFields||{};v.index<h+this.extraFieldsLength;){var g=v.readInt(2),y=v.readInt(2),w=v.readString(y);this.extraFields[g]={id:g,length:y,value:w}}},handleUTF8:function(){if(this.useUTF8())this.fileName=f.utf8decode(this.fileName),this.fileComment=f.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();v!==null&&(this.fileName=v),v=this.findExtraFieldUnicodeComment(),v!==null&&(this.fileComment=v)}},findExtraFieldUnicodePath:function(){var v=this.extraFields[28789];if(v){var h=new i(v.value);return h.readInt(1)!==1||f.crc32(this.fileName)!==h.readInt(4)?null:f.utf8decode(h.readString(v.length-5))}return null},findExtraFieldUnicodeComment:function(){var v=this.extraFields[25461];if(v){var h=new i(v.value);return h.readInt(1)!==1||f.crc32(this.fileComment)!==h.readInt(4)?null:f.utf8decode(h.readString(v.length-5))}return null}},t.exports=r},{"./compressedObject":85,"./object":96,"./stringReader":98,"./utils":104}],107:[function(e,t,n){n.Parser=e("./lib/parser").Parser,n.rules=e("./lib/rules"),n.errors=e("./lib/errors"),n.results=e("./lib/parsing-results"),n.StringSource=e("./lib/StringSource"),n.Token=e("./lib/Token"),n.bottomUp=e("./lib/bottom-up"),n.RegexTokeniser=e("./lib/regex-tokeniser").RegexTokeniser,n.rule=function(r){var i;return function(l){return i||(i=r()),i(l)}}},{"./lib/StringSource":108,"./lib/Token":109,"./lib/bottom-up":111,"./lib/errors":112,"./lib/parser":114,"./lib/parsing-results":115,"./lib/regex-tokeniser":116,"./lib/rules":117}],108:[function(e,t,n){var r=e("util");t.exports=function(l,u){return{asString:function(){return l},range:function(f,v){return new i(l,u,f,v)}}};var i=function(l,u,f,v){this._string=l,this._description=u,this._startIndex=f,this._endIndex=v};i.prototype.to=function(l){return new i(this._string,this._description,this._startIndex,l._endIndex)},i.prototype.describe=function(){var l=this._position();return r.format(`%sLine number: %s 419Character number: %s`,this._description?this._description+` 420`:"",l.lineNumber,l.characterNumber)},i.prototype.lineNumber=function(){return this._position().lineNumber},i.prototype.characterNumber=function(){return this._position().characterNumber},i.prototype._position=function(){for(var l=0,u=1;this._string.indexOf(` 421`,l)!==-1&&this._string.indexOf(` 422`,l)<this._startIndex;)l=this._string.indexOf(` 423`,l)+1,u+=1;return{lineNumber:u,characterNumber:this._startIndex-l+1}}},{util:157}],109:[function(e,t,n){t.exports=function(r,i,l){this.name=r,this.value=i,l&&(this.source=l)}},{}],110:[function(e,t,n){var r=t.exports=function(i,l){this._tokens=i,this._startIndex=l||0};r.prototype.head=function(){return this._tokens[this._startIndex]},r.prototype.tail=function(i){return new r(this._tokens,this._startIndex+1)},r.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},r.prototype.end=function(){return this._tokens[this._tokens.length-1]},r.prototype.to=function(i){var l=this.head().source;return i=i.head()||i.end(),l.to(i.source)}},{}],111:[function(e,t,n){function r(f){function v(){return f.map(function(g){return g.name})}function h(g){return i.firstOf("infix",f.map(function(y){return y.rule}))(g)}return{apply:function(g){for(var y,w;;)if(y=h(g.remaining()),y.isSuccess())w=g.source().to(y.source()),g=l.success(y.value()(g.value(),w),y.remaining(),w);else return y.isFailure()?g:y},untilExclusive:function(g){return new r(f.slice(0,v().indexOf(g)))},untilInclusive:function(g){return new r(f.slice(0,v().indexOf(g)+1))}}}var i=e("./rules"),l=e("./parsing-results");n.parser=function(f,v,h){function g(S,T){return T=C(T),T.isSuccess()?S.apply(T):T}var y={rule:function(){return g.bind(null,w)},leftAssociative:function(S){return g.bind(null,w.untilExclusive(S))},rightAssociative:function(S){return g.bind(null,w.untilInclusive(S))}},w=new r(h.map(function(S){return{name:S.name,rule:u(S.ruleBuilder.bind(null,y))}})),C=i.firstOf(f,v);return y},n.infix=function(f,v){return{name:f,ruleBuilder:v,map:function(h){return n.infix(f,function(g){var y=v(g);return function(w){return y(w).map(function(C){return function(S,T){return h(S,C,T)}})}})}}};var u=function(f){var v;return function(h){return v||(v=f()),v(h)}}},{"./parsing-results":115,"./rules":117}],112:[function(e,t,n){n.error=function(i){return new r(i)};var r=function(i){this.expected=i.expected,this.actual=i.actual,this._location=i.location};r.prototype.describe=function(){return(this._location?this._location.describe()+`: 424`:"")+"Expected "+this.expected+` 425but got `+this.actual},r.prototype.lineNumber=function(){return this._location.lineNumber()},r.prototype.characterNumber=function(){return this._location.characterNumber()}},{}],113:[function(e,t,n){n.fromArray=function(i){var l=0,u=function(){return l<i.length};return new r({hasNext:u,next:function(){if(u())return i[l++];throw Error("No more elements")}})};var r=function(i){this._iterator=i};r.prototype.map=function(i){var l=this._iterator;return new r({hasNext:function(){return l.hasNext()},next:function(){return i(l.next())}})},r.prototype.filter=function(i){var l=this._iterator,u=!1,f=!1,v,h=function(){if(!u)for(u=!0,f=!1;l.hasNext()&&!f;)v=l.next(),f=i(v)};return new r({hasNext:function(){return h(),f},next:function(){h();var g=v;return u=!1,g}})},r.prototype.first=function(){var i=this._iterator;return this._iterator.hasNext()?i.next():null},r.prototype.toArray=function(){for(var i=[];this._iterator.hasNext();)i.push(this._iterator.next());return i}},{}],114:[function(e,t,n){var r=e("./TokenIterator");n.Parser=function(i){return{parseTokens:function(l,u){return l(new r(u))}}}},{"./TokenIterator":110}],115:[function(e,t,n){t.exports={failure:function(i,l){if(1>i.length)throw Error("Failure must have errors");return new r({status:"failure",remaining:l,errors:i})},error:function(i,l){if(1>i.length)throw Error("Failure must have errors");return new r({status:"error",remaining:l,errors:i})},success:function(i,l,u){return new r({status:"success",value:i,source:u,remaining:l,errors:[]})},cut:function(i){return new r({status:"cut",remaining:i,errors:[]})}};var r=function(i){this._value=i.value,this._status=i.status,this._hasValue=i.value!==void 0,this._remaining=i.remaining,this._source=i.source,this._errors=i.errors};r.prototype.map=function(i){return this._hasValue?new r({value:i(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},r.prototype.changeRemaining=function(i){return new r({value:this._value,status:this._status,remaining:i,source:this._source,errors:this._errors})},r.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},r.prototype.isFailure=function(){return this._status==="failure"},r.prototype.isError=function(){return this._status==="error"},r.prototype.isCut=function(){return this._status==="cut"},r.prototype.value=function(){return this._value},r.prototype.remaining=function(){return this._remaining},r.prototype.source=function(){return this._source},r.prototype.errors=function(){return this._errors}},{}],116:[function(e,t,n){var r=e("./Token"),i=e("./StringSource");
425n.RegexTokeniser=function(l){return l=l.map(function(u){return{name:u.name,regex:new RegExp(u.regex.source,"g")}}),{tokenise:function(u,f){f=new i(u,f);for(var v=0,h=[];v<u.length;){e:{for(var g=u,y=v,w=f,C=0;C<l.length;C++){v=l[C].regex,v.lastIndex=y;var S=v.exec(g);if(S&&(v=y+S[0].length,S.index===y&&v>y)){g=new r(l[C].name,S[1],w.range(y,v));break e}}v=y+1,g=new r("unrecognisedCharacter",g.substring(y,v),w.range(y,v))}h.push(g)}return h.push(new r("end",null,f.range(u.length,u.length))),h}}}},{"./StringSource":108,"./Token":109}],117:[function(e,t,n){function r(S){return f.success(null,S)}function i(S,T){var B=S.head();return T=B?v.error({expected:T,actual:C(B),location:B.source}):v.error({expected:T,actual:"end of tokens"}),f.failure([T],S)}var l=e("underscore"),u=e("option"),f=e("./parsing-results"),v=e("./errors"),h=e("./lazy-iterators");n.token=function(S,T){var B=T!==void 0;return function(F){var R=F.head();return!R||R.name!==S||B&&R.value!==T?(R=C({name:S,value:T}),i(F,R)):f.success(R.value,F.tail(),R.source)}},n.tokenOfType=function(S){return n.token(S)},n.firstOf=function(S,T){return l.isArray(T)||(T=Array.prototype.slice.call(arguments,1)),function(B){return h.fromArray(T).map(function(F){return F(B)}).filter(function(F){return F.isSuccess()||F.isError()}).first()||i(B,S)}},n.then=function(S,T){return function(B){return B=S(B),B.map||console.log(B),B.map(T)}},n.sequence=function(){function S(F){return F.isCaptured}var T=Array.prototype.slice.call(arguments,0),B=function(F){var R=l.foldl(T,function(A,X){var Z=A.result;if(A=A.hasCut,!Z.isSuccess())return{result:Z,hasCut:A};var z=X(Z.remaining());return z.isCut()?{result:Z,hasCut:!0}:z.isSuccess()?(X=X.isCaptured?Z.value().withValue(X,z.value()):Z.value(),Z=z.remaining(),z=F.to(Z),{result:f.success(X,Z,z),hasCut:A}):A?{result:f.error(z.errors(),z.remaining()),hasCut:A}:{result:z,hasCut:A}},{result:f.success(new g,F),hasCut:!1}).result,N=F.to(R.remaining());return R.map(function(A){return A.withValue(n.sequence.source,N)})};return B.head=function(){var F=l.find(T,S);return n.then(B,n.sequence.extract(F))},B.map=function(F){return n.then(B,function(R){return F.apply(this,R.toArray())})},B};var g=function(S,T){this._values=S||{},this._valuesArray=T||[]};g.prototype.withValue=function(S,T){if(S.captureName&&S.captureName in this._values)throw Error('Cannot add second value for capture "'+S.captureName+'"');var B=l.clone(this._values);return B[S.captureName]=T,S=this._valuesArray.concat([T]),new g(B,S)},g.prototype.get=function(S){if(S.captureName in this._values)return this._values[S.captureName];throw Error('No value for capture "'+S.captureName+'"')},g.prototype.toArray=function(){return this._valuesArray},n.sequence.capture=function(S,T){var B=function(){return S.apply(this,arguments)};return B.captureName=T,B.isCaptured=!0,B},n.sequence.extract=function(S){return function(T){return T.get(S)}},n.sequence.applyValues=function(S){var T=Array.prototype.slice.call(arguments,1);return function(B){var F=T.map(function(R){return B.get(R)});return S.apply(this,F)}},n.sequence.source={captureName:"\u2603source\u2603"},n.sequence.cut=function(){return function(S){return f.cut(S)}},n.optional=function(S){return function(T){var B=S(T);return B.isSuccess()?B.map(u.some):B.isFailure()?f.success(u.none,T):B}},n.zeroOrMoreWithSeparator=function(S,T){return w(S,T,!1)},n.oneOrMoreWithSeparator=function(S,T){return w(S,T,!0)};var y=n.zeroOrMore=function(S){return function(T){for(var B=[],F;(F=S(T))&&F.isSuccess();)T=F.remaining(),B.push(F.value());return F.isError()?F:f.success(B,T)}};n.oneOrMore=function(S){return n.oneOrMoreWithSeparator(S,r)};var w=function(S,T,B){return function(F){var R=S(F);return R.isSuccess()?(F=n.sequence.capture(S,"main"),F=y(n.then(n.sequence(T,F),n.sequence.extract(F)))(R.remaining()),f.success([R.value()].concat(F.value()),F.remaining())):B||R.isError()?R:f.success([],F)}};n.leftAssociative=function(S,T,B){T=B?[{func:B,rule:T}]:T,T=T.map(function(R){return n.then(R.rule,function(N){return function(A,X){return R.func(A,N,X)}})});
425var F=n.firstOf.apply(null,["rules"].concat(T));return function(R){var N=S(R);if(!N.isSuccess())return N;for(var A=F(N.remaining());A.isSuccess();){var X=A.remaining(),Z=R.to(A.remaining());A=A.value(),N=f.success(A(N.value(),Z),X,Z),A=F(N.remaining())}return A.isError()?A:N}},n.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},n.nonConsuming=function(S){return function(T){return S(T).changeRemaining(T)}};var C=function(S){return S.value?S.name+' "'+S.value+'"':S.name}},{"./errors":112,"./lazy-iterators":113,"./parsing-results":115,option:119,underscore:118}],118:[function(e,t,n){(function(){var r=this,i=r._,l={},u=Array.prototype,f=Object.prototype,v=u.push,h=u.slice,g=u.concat,y=f.toString,w=f.hasOwnProperty,C=u.forEach,S=u.map,T=u.reduce,B=u.reduceRight,F=u.filter,R=u.every,N=u.some,A=u.indexOf,X=u.lastIndexOf;f=Array.isArray;var Z=Object.keys,z=Function.prototype.bind,Y=function(j){if(j instanceof Y)return j;if(!(this instanceof Y))return new Y(j);this._wrapped=j};typeof n!="undefined"?(typeof t!="undefined"&&t.exports&&(n=t.exports=Y),n._=Y):r._=Y,Y.VERSION="1.4.4";var Q=Y.each=Y.forEach=function(j,ee,ye){if(j!=null){if(C&&j.forEach===C)j.forEach(ee,ye);else if(j.length===+j.length)for(var ie=0,he=j.length;ie<he&&ee.call(ye,j[ie],ie,j)!==l;ie++);else for(ie in j)if(Y.has(j,ie)&&ee.call(ye,j[ie],ie,j)===l)break}};Y.map=Y.collect=function(j,ee,ye){var ie=[];return j==null?ie:S&&j.map===S?j.map(ee,ye):(Q(j,function(he,re,be){ie[ie.length]=ee.call(ye,he,re,be)}),ie)},Y.reduce=Y.foldl=Y.inject=function(j,ee,ye,ie){var he=2<arguments.length;if(j==null&&(j=[]),T&&j.reduce===T)return ie&&(ee=Y.bind(ee,ie)),he?j.reduce(ee,ye):j.reduce(ee);if(Q(j,function(re,be,Ae){he?ye=ee.call(ie,ye,re,be,Ae):(ye=re,he=!0)}),!he)throw new TypeError("Reduce of empty array with no initial value");return ye},Y.reduceRight=Y.foldr=function(j,ee,ye,ie){var he=2<arguments.length;if(j==null&&(j=[]),B&&j.reduceRight===B)return ie&&(ee=Y.bind(ee,ie)),he?j.reduceRight(ee,ye):j.reduceRight(ee);var re=j.length;if(re!==+re){var be=Y.keys(j);re=be.length}if(Q(j,function(Ae,Te,Ue){Te=be?be[--re]:--re,he?ye=ee.call(ie,ye,j[Te],Te,Ue):(ye=j[Te],he=!0)}),!he)throw new TypeError("Reduce of empty array with no initial value");return ye},Y.find=Y.detect=function(j,ee,ye){var ie;return $(j,function(he,re,be){if(ee.call(ye,he,re,be))return ie=he,!0}),ie},Y.filter=Y.select=function(j,ee,ye){var ie=[];return j==null?ie:F&&j.filter===F?j.filter(ee,ye):(Q(j,function(he,re,be){ee.call(ye,he,re,be)&&(ie[ie.length]=he)}),ie)},Y.reject=function(j,ee,ye){return Y.filter(j,function(ie,he,re){return!ee.call(ye,ie,he,re)},ye)},Y.every=Y.all=function(j,ee,ye){ee||(ee=Y.identity);var ie=!0;return j==null?ie:R&&j.every===R?j.every(ee,ye):(Q(j,function(he,re,be){if(!(ie=ie&&ee.call(ye,he,re,be)))return l}),!!ie)};var $=Y.some=Y.any=function(j,ee,ye){ee||(ee=Y.identity);var ie=!1;return j==null?ie:N&&j.some===N?j.some(ee,ye):(Q(j,function(he,re,be){if(ie||(ie=ee.call(ye,he,re,be)))return l}),!!ie)};Y.contains=Y.include=function(j,ee){return j==null?!1:A&&j.indexOf===A?j.indexOf(ee)!=-1:$(j,function(ye){return ye===ee})},Y.invoke=function(j,ee){var ye=h.call(arguments,2),ie=Y.isFunction(ee);return Y.map(j,function(he){return(ie?ee:he[ee]).apply(he,ye)})},Y.pluck=function(j,ee){return Y.map(j,function(ye){return ye[ee]})},Y.where=function(j,ee,ye){return Y.isEmpty(ee)?ye?null:[]:Y[ye?"find":"filter"](j,function(ie){for(var he in ee)if(ee[he]!==ie[he])return!1;return!0})},Y.findWhere=function(j,ee){return Y.where(j,ee,!0)},Y.max=function(j,ee,ye){if(!ee&&Y.isArray(j)&&j[0]===+j[0]&&65535>j.length)return Math.max.apply(Math,j);if(!ee&&Y.isEmpty(j))return-1/0;var ie={computed:-1/0,value:-1/0};return Q(j,function(he,re,be){re=ee?ee.call(ye,he,re,be):he,re>=ie.computed&&(ie={value:he,computed:re})}),ie.value},Y.min=function(j,ee,ye){if(!ee&&Y.isArray(j)&&j[0]===+j[0]&&65535>j.length)return Math.min.apply(Math,j);if(!ee&&Y.isEmpty(j))return 1/0;var ie={computed:1/0,value:1/0};return Q(j,function(he,re,be){re=ee?ee.call(ye,he,re,be):he,re<ie.computed&&(ie={value:he,computed:re})}),ie.value},Y.shuffle=function(j){var ee,ye=0,ie=[];return Q(j,function(he){ee=Y.random(ye++),ie[ye-1]=ie[ee],ie[ee]=he}),ie};var te=function(j){return Y.isFunction(j)?j:function(ee){return ee[j]}};Y.sortBy=function(j,ee,ye){var ie=te(ee);return Y.pluck(Y.map(j,function(he,re,be){return{value:he,index:re,criteria:ie.call(ye,he,re,be)}}).sort(function(he,re){var be=he.criteria,Ae=re.criteria;if(be!==Ae){if(be>Ae||be===void 0)return 1;if(be<Ae||Ae===void 0)return-1}return he.index<re.index?-1:1}),"value")};var V=function(j,ee,ye,ie){var he={}
425,re=te(ee||Y.identity);return Q(j,function(be,Ae){Ae=re.call(ye,be,Ae,j),ie(he,Ae,be)}),he};Y.groupBy=function(j,ee,ye){return V(j,ee,ye,function(ie,he,re){(Y.has(ie,he)?ie[he]:ie[he]=[]).push(re)})},Y.countBy=function(j,ee,ye){return V(j,ee,ye,function(ie,he){Y.has(ie,he)||(ie[he]=0),ie[he]++})},Y.sortedIndex=function(j,ee,ye,ie){ye=ye==null?Y.identity:te(ye),ee=ye.call(ie,ee);for(var he=0,re=j.length;he<re;){var be=he+re>>>1;ye.call(ie,j[be])<ee?he=be+1:re=be}return he},Y.toArray=function(j){return j?Y.isArray(j)?h.call(j):j.length===+j.length?Y.map(j,Y.identity):Y.values(j):[]},Y.size=function(j){return j==null?0:j.length===+j.length?j.length:Y.keys(j).length},Y.first=Y.head=Y.take=function(j,ee,ye){if(j!=null)return ee==null||ye?j[0]:h.call(j,0,ee)},Y.initial=function(j,ee,ye){return h.call(j,0,j.length-(ee==null||ye?1:ee))},Y.last=function(j,ee,ye){if(j!=null)return ee==null||ye?j[j.length-1]:h.call(j,Math.max(j.length-ee,0))},Y.rest=Y.tail=Y.drop=function(j,ee,ye){return h.call(j,ee==null||ye?1:ee)},Y.compact=function(j){return Y.filter(j,Y.identity)};var K=function(j,ee,ye){return Q(j,function(ie){Y.isArray(ie)?ee?v.apply(ye,ie):K(ie,ee,ye):ye.push(ie)}),ye};Y.flatten=function(j,ee){return K(j,ee,[])},Y.without=function(j){return Y.difference(j,h.call(arguments,1))},Y.uniq=Y.unique=function(j,ee,ye,ie){Y.isFunction(ee)&&(ie=ye,ye=ee,ee=!1),ye=ye?Y.map(j,ye,ie):j;var he=[],re=[];return Q(ye,function(be,Ae){(ee?Ae&&re[re.length-1]===be:Y.contains(re,be))||(re.push(be),he.push(j[Ae]))}),he},Y.union=function(){return Y.uniq(g.apply(u,arguments))},Y.intersection=function(j){var ee=h.call(arguments,1);return Y.filter(Y.uniq(j),function(ye){return Y.every(ee,function(ie){return 0<=Y.indexOf(ie,ye)})})},Y.difference=function(j){var ee=g.apply(u,h.call(arguments,1));return Y.filter(j,function(ye){return!Y.contains(ee,ye)})},Y.zip=function(){for(var j=h.call(arguments),ee=Y.max(Y.pluck(j,"length")),ye=Array(ee),ie=0;ie<ee;ie++)ye[ie]=Y.pluck(j,""+ie);return ye},Y.object=function(j,ee){if(j==null)return{};for(var ye={},ie=0,he=j.length;ie<he;ie++)ee?ye[j[ie]]=ee[ie]:ye[j[ie][0]]=j[ie][1];return ye},Y.indexOf=function(j,ee,ye){if(j==null)return-1;var ie=0,he=j.length;if(ye)if(typeof ye=="number")ie=0>ye?Math.max(0,he+ye):ye;else return ie=Y.sortedIndex(j,ee),j[ie]===ee?ie:-1;if(A&&j.indexOf===A)return j.indexOf(ee,ye);for(;ie<he;ie++)if(j[ie]===ee)return ie;return-1},Y.lastIndexOf=function(j,ee,ye){if(j==null)return-1;var ie=ye!=null;if(X&&j.lastIndexOf===X)return ie?j.lastIndexOf(ee,ye):j.lastIndexOf(ee);for(ye=ie?ye:j.length;ye--;)if(j[ye]===ee)return ye;return-1},Y.range=function(j,ee,ye){1>=arguments.length&&(ee=j||0,j=0),ye=arguments[2]||1;for(var ie=Math.max(Math.ceil((ee-j)/ye),0),he=0,re=Array(ie);he<ie;)re[he++]=j,j+=ye;return re},Y.bind=function(j,ee){if(j.bind===z&&z)return z.apply(j,h.call(arguments,1));var ye=h.call(arguments,2);return function(){return j.apply(ee,ye.concat(h.call(arguments)))}},Y.partial=function(j){var ee=h.call(arguments,1);return function(){return j.apply(this,ee.concat(h.call(arguments)))}},Y.bindAll=function(j){var ee=h.call(arguments,1);return ee.length===0&&(ee=Y.functions(j)),Q(ee,function(ye){j[ye]=Y.bind(j[ye],j)}),j},Y.memoize=function(j,ee){var ye={};return ee||(ee=Y.identity),function(){var ie=ee.apply(this,arguments);return Y.has(ye,ie)?ye[ie]:ye[ie]=j.apply(this,arguments)}},Y.delay=function(j,ee){var ye=h.call(arguments,2);return setTimeout(function(){return j.apply(null,ye)},ee)},Y.defer=function(j){return Y.delay.apply(Y,[j,1].concat(h.call(arguments,1)))},Y.throttle=function(j,ee){var ye,ie,he,re,be=0,Ae=function(){be=new Date,he=null,re=j.apply(ye,ie)};return function(){var Te=new Date,Ue=ee-(Te-be);return ye=this,ie=arguments,0>=Ue?(clearTimeout(he),he=null,be=Te,re=j.apply(ye,ie)):he||(he=setTimeout(Ae,Ue)),re}},Y.debounce=function(j,ee,ye){var ie,he;return function(){var re=this,be=arguments,Ae=ye&&!ie;return clearTimeout(ie),ie=setTimeout(function(){ie=null,ye||(he=j.apply(re,be))},ee),Ae&&(he=j.apply(re,be)),he}},Y.once=function(j){var ee=!1,ye;return function(){return ee||(ee=!0,ye=j.apply(this,arguments),j=null),ye}},Y.wrap=function(j,ee){return function(){var ye=[j];return v.apply(ye,arguments),ee.apply(this,ye)}},Y.compose=function(){var j=arguments;return function(){for(var ee=arguments,ye=j.length-1;0<=ye;ye--)ee=[j[ye].apply(this,ee)];return ee[0]}},Y.after=function(j,ee){return 0>=j?ee():function(){if(1>--j)return ee.apply(this,arguments)}},Y.keys=Z||function(j){if(j!==Object(j))throw new TypeError("Invalid object");var ee=[],ye;for(ye in j)Y.has(j,ye)&&(ee[ee.length]=ye);return ee},Y.values=function(j){var ee=[],ye;for(ye in j)Y.has(j,ye)&&ee.push(j[ye]);return ee},Y.pairs=function(j){var ee=[],ye;for(ye in j)Y.has(j,ye)&&ee.push([ye,j[ye]]);return ee},Y.invert=function(j){var ee={},ye;for(ye in j)Y.has(j,ye)&&(ee[j[ye]]=ye);return ee},Y.functions=Y.methods=function(j){var ee=[],ye;for(ye in j)Y.isFunction(j[ye])&&ee.push(ye);return ee.sort()}
425,Y.extend=function(j){return Q(h.call(arguments,1),function(ee){if(ee)for(var ye in ee)j[ye]=ee[ye]}),j},Y.pick=function(j){var ee={},ye=g.apply(u,h.call(arguments,1));return Q(ye,function(ie){ie in j&&(ee[ie]=j[ie])}),ee},Y.omit=function(j){var ee={},ye=g.apply(u,h.call(arguments,1)),ie;for(ie in j)Y.contains(ye,ie)||(ee[ie]=j[ie]);return ee},Y.defaults=function(j){return Q(h.call(arguments,1),function(ee){if(ee)for(var ye in ee)j[ye]==null&&(j[ye]=ee[ye])}),j},Y.clone=function(j){return Y.isObject(j)?Y.isArray(j)?j.slice():Y.extend({},j):j},Y.tap=function(j,ee){return ee(j),j};var fe=function(j,ee,ye,ie){if(j===ee)return j!==0||1/j==1/ee;if(j==null||ee==null)return j===ee;j instanceof Y&&(j=j._wrapped),ee instanceof Y&&(ee=ee._wrapped);var he=y.call(j);if(he!=y.call(ee))return!1;switch(he){case"[object String]":return j==String(ee);case"[object Number]":return j!=+j?ee!=+ee:j==0?1/j==1/ee:j==+ee;case"[object Date]":case"[object Boolean]":return+j==+ee;case"[object RegExp]":return j.source==ee.source&&j.global==ee.global&&j.multiline==ee.multiline&&j.ignoreCase==ee.ignoreCase}if(typeof j!="object"||typeof ee!="object")return!1;for(var re=ye.length;re--;)if(ye[re]==j)return ie[re]==ee;ye.push(j),ie.push(ee),re=0;var be=!0;if(he=="[object Array]"){if(re=j.length,be=re==ee.length)for(;re--&&(be=fe(j[re],ee[re],ye,ie)););}else{he=j.constructor;var Ae=ee.constructor;if(he!==Ae&&!(Y.isFunction(he)&&he instanceof he&&Y.isFunction(Ae)&&Ae instanceof Ae))return!1;for(var Te in j)if(Y.has(j,Te)&&(re++,!(be=Y.has(ee,Te)&&fe(j[Te],ee[Te],ye,ie))))break;if(be){for(Te in ee)if(Y.has(ee,Te)&&!re--)break;be=!re}}return ye.pop(),ie.pop(),be};Y.isEqual=function(j,ee){return fe(j,ee,[],[])},Y.isEmpty=function(j){if(j==null)return!0;if(Y.isArray(j)||Y.isString(j))return j.length===0;for(var ee in j)if(Y.has(j,ee))return!1;return!0},Y.isElement=function(j){return!(!j||j.nodeType!==1)},Y.isArray=f||function(j){return y.call(j)=="[object Array]"},Y.isObject=function(j){return j===Object(j)},Q("Arguments Function String Number Date RegExp".split(" "),function(j){Y["is"+j]=function(ee){return y.call(ee)=="[object "+j+"]"}}),Y.isArguments(arguments)||(Y.isArguments=function(j){return!(!j||!Y.has(j,"callee"))}),typeof/./!="function"&&(Y.isFunction=function(j){return typeof j=="function"}),Y.isFinite=function(j){return isFinite(j)&&!isNaN(parseFloat(j))},Y.isNaN=function(j){return Y.isNumber(j)&&j!=+j},Y.isBoolean=function(j){return j===!0||j===!1||y.call(j)=="[object Boolean]"},Y.isNull=function(j){return j===null},Y.isUndefined=function(j){return j===void 0},Y.has=function(j,ee){return w.call(j,ee)},Y.noConflict=function(){return r._=i,this},Y.identity=function(j){return j},Y.times=function(j,ee,ye){for(var ie=Array(j),he=0;he<j;he++)ie[he]=ee.call(ye,he);return ie},Y.random=function(j,ee){return ee==null&&(ee=j,j=0),j+Math.floor(Math.random()*(ee-j+1))};var de={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};de.unescape=Y.invert(de.escape);var ne={escape:new RegExp("["+Y.keys(de.escape).join("")+"]","g"),unescape:new RegExp("("+Y.keys(de.unescape).join("|")+")","g")};Y.each(["escape","unescape"],function(j){Y[j]=function(ee){return ee==null?"":(""+ee).replace(ne[j],function(ye){return de[j][ye]})}}),Y.result=function(j,ee){return j==null?null:(ee=j[ee],Y.isFunction(ee)?ee.call(j):ee)},Y.mixin=function(j){Q(Y.functions(j),function(ee){var ye=Y[ee]=j[ee];Y.prototype[ee]=function(){var ie=[this._wrapped];return v.apply(ie,arguments),U.call(this,ye.apply(Y,ie))}})};var le=0;Y.uniqueId=function(j){var ee=++le+"";return j?j+ee:ee},Y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var _e=/(.)^/,M={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\t|\u2028|\u2029/g;Y.template=function(j,ee,ye){ye=Y.defaults({},ye,Y.templateSettings);var ie=new RegExp([(ye.escape||_e).source,(ye.interpolate||_e).source,(ye.evaluate||_e).source].join("|")+"|$","g"),he=0,re="__p+='";j.replace(ie,function(Ae,Te,Ue,Oe,De){return re+=j.slice(he,De).replace(P,function($e){return"\\"+M[$e]}),Te&&(re+=`'+ 426((__t=(`+Te+`))==null?'':_.escape(__t))+ 427'`),Ue&&(re+=`'+ 428((__t=(`+Ue+`))==null?'':__t)+ 429'`),Oe&&(re+=`'; 430`+Oe+` 431__p+='`),he=De+Ae.length,Ae}),re+=`'; 432`,ye.variable||(re=`with(obj||{}){
433`+re+`} 434`),re=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 435`+re+`return __p; 436`;try{var be=new Function(ye.variable||"obj","_",re)}catch(Ae){throw Ae.source=re,Ae}return ee?be(ee,Y):(ee=function(Ae){return be.call(this,Ae,Y)},ee.source="function("+(ye.variable||"obj")+`){ 437`+re+"}",ee)},Y.chain=function(j){return Y(j).chain()};var U=function(j){return this._chain?Y(j).chain():j};Y.mixin(Y),Q("pop push reverse shift sort splice unshift".split(" "),function(j){var ee=u[j];Y.prototype[j]=function(){var ye=this._wrapped;return ee.apply(ye,arguments),j!="shift"&&j!="splice"||ye.length!==0||delete ye[0],U.call(this,ye)}}),Q(["concat","join","slice"],function(j){var ee=u[j];Y.prototype[j]=function(){return U.call(this,ee.apply(this._wrapped,arguments))}}),Y.extend(Y.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this)},{}],119:[function(e,t,n){function r(l){return typeof l=="function"?l():l}n.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return n.none},flatMap:function(){return n.none},toArray:function(){return[]},orElse:r,valueOrElse:r}),n.some=function(l){return new i(l)};var i=function(l){this._value=l};i.prototype.value=function(){return this._value},i.prototype.isNone=function(){return!1},i.prototype.isSome=function(){return!0},i.prototype.map=function(l){return new i(l(this._value))},i.prototype.flatMap=function(l){return l(this._value)},i.prototype.toArray=function(){return[this._value]},i.prototype.orElse=function(l){return this},i.prototype.valueOrElse=function(l){return this._value},n.isOption=function(l){return l===n.none||l instanceof i},n.fromNullable=function(l){return l==null?n.none:new i(l)}},{}],120:[function(e,t,n){n=e("./lib/utils/common").assign;var r=e("./lib/deflate"),i=e("./lib/inflate");e=e("./lib/zlib/constants");var l={};n(l,r,i,e),t.exports=l},{"./lib/deflate":121,"./lib/inflate":122,"./lib/utils/common":123,"./lib/zlib/constants":126}],121:[function(e,t,n){function r(y){if(!(this instanceof r))return new r(y);y=this.options=u.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},y||{}),y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&16>y.windowBits&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var w=l.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(w!==0)throw Error(v[w]);if(y.header&&l.deflateSetHeader(this.strm,y.header),y.dictionary){if(y=typeof y.dictionary=="string"?f.string2buf(y.dictionary):g.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,w=l.deflateSetDictionary(this.strm,y),w!==0)throw Error(v[w]);this._dict_set=!0}}function i(y,w){if(w=new r(w),w.push(y,!0),w.err)throw w.msg;return w.result}var l=e("./zlib/deflate"),u=e("./utils/common"),f=e("./utils/strings"),v=e("./zlib/messages"),h=e("./zlib/zstream"),g=Object.prototype.toString;r.prototype.push=function(y,w){var C=this.strm,S=this.options.chunkSize;if(this.ended)return!1;w=w===~~w?w:w===!0?4:0,typeof y=="string"?C.input=f.string2buf(y):g.call(y)==="[object ArrayBuffer]"?C.input=new Uint8Array(y):C.input=y,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new u.Buf8(S),C.next_out=0,C.avail_out=S),y=l.deflate(C,w),y!==1&&y!==0)return this.onEnd(y),this.ended=!0,!1;(C.avail_out===0||C.avail_in===0&&(w===4||w===2))&&(this.options.to==="string"?this.onData(f.buf2binstring(u.shrinkBuf(C.output,C.next_out))):this.onData(u.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&y!==1);return w===4?(y=l.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===0):(w===2&&(this.onEnd(0),C.avail_out=0),!0)},r.prototype.onData=function(y){this.chunks.push(y)},r.prototype.onEnd=function(y){y===0&&(this.result=this.options.to==="string"?this.chunks.join(""):u.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},n.Deflate=r,n.deflate=i,n.deflateRaw=function(y,w){return w=w||{},w.raw=!0,i(y,w)},n.gzip=function(y,w){return w=w||{},w.gzip=!0,i(y,w)}},{"./utils/common":123,"./utils/strings":124,"./zlib/deflate":128,"./zlib/messages":133,"./zlib/zstream":135}],122:[function(e,t,n){function r(C){if(!(this instanceof r))return new r(C);var S=this.options=u.assign({chunkSize:16384,windowBits:0,to:""},C||{});if(S.raw&&0<=S.windowBits&&16>S.windowBits&&(S.windowBits=-S.windowBits,S.windowBits===0&&(S.windowBits=-15)),!(0<=S.windowBits&&16>S.windowBits)||C&&C.windowBits||(S.windowBits+=32),15<S.windowBits&&48>S.windowBits&&(S.windowBits&15)===0&&(S.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0,C=l.inflateInit2(this.strm,S.windowBits),C!==v.Z_OK)throw Error(h[C]);this.header=new y,l.inflateGetHeader(this.strm,this.header)}function i(C,S){if(S=new r(S),S.push(C,!0),S.err)throw S.msg;return S.result}var l=e("./zlib/inflate"),u=e("./utils/common"),f=e("./utils/strings"),v=e("./zlib/constants"),h=e("./zlib/messages"),g=e("./zlib/zstream"),y=e("./zlib/gzheader"),w=Object.prototype.toString;r.prototype.push=function(C,S){var T=this.strm,B=this.options.chunkSize,F=this.options.dictionary,R=!1;if(this.ended)return!1;S=S===~~S?S:S===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof C=="string"?T.input=f.binstring2buf(C):w.call(C)==="[object ArrayBuffer]"?T.input=new
437Uint8Array(C):T.input=C,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new u.Buf8(B),T.next_out=0,T.avail_out=B),C=l.inflate(T,v.Z_NO_FLUSH),C===v.Z_NEED_DICT&&F&&(C=typeof F=="string"?f.string2buf(F):w.call(F)==="[object ArrayBuffer]"?new Uint8Array(F):F,C=l.inflateSetDictionary(this.strm,C)),C===v.Z_BUF_ERROR&&R===!0&&(C=v.Z_OK,R=!1),C!==v.Z_STREAM_END&&C!==v.Z_OK)return this.onEnd(C),this.ended=!0,!1;if(T.next_out&&(T.avail_out===0||C===v.Z_STREAM_END||T.avail_in===0&&(S===v.Z_FINISH||S===v.Z_SYNC_FLUSH)))if(this.options.to==="string"){var N=f.utf8border(T.output,T.next_out),A=T.next_out-N,X=f.buf2string(T.output,N);T.next_out=A,T.avail_out=B-A,A&&u.arraySet(T.output,T.output,N,A,0),this.onData(X)}else this.onData(u.shrinkBuf(T.output,T.next_out));T.avail_in===0&&T.avail_out===0&&(R=!0)}while((0<T.avail_in||T.avail_out===0)&&C!==v.Z_STREAM_END);return C===v.Z_STREAM_END&&(S=v.Z_FINISH),S===v.Z_FINISH?(C=l.inflateEnd(this.strm),this.onEnd(C),this.ended=!0,C===v.Z_OK):(S===v.Z_SYNC_FLUSH&&(this.onEnd(v.Z_OK),T.avail_out=0),!0)},r.prototype.onData=function(C){this.chunks.push(C)},r.prototype.onEnd=function(C){C===v.Z_OK&&(this.result=this.options.to==="string"?this.chunks.join(""):u.flattenChunks(this.chunks)),this.chunks=[],this.err=C,this.msg=this.strm.msg},n.Inflate=r,n.inflate=i,n.inflateRaw=function(C,S){return S=S||{},S.raw=!0,i(C,S)},n.ungzip=i},{"./utils/common":123,"./utils/strings":124,"./zlib/constants":126,"./zlib/gzheader":129,"./zlib/inflate":131,"./zlib/messages":133,"./zlib/zstream":135}],123:[function(e,t,n){e=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined",n.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var f=u.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var v in f)f.hasOwnProperty(v)&&(l[v]=f[v])}}return l},n.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var r={arraySet:function(l,u,f,v,h){if(u.subarray&&l.subarray)l.set(u.subarray(f,f+v),h);else for(var g=0;g<v;g++)l[h+g]=u[f+g]},flattenChunks:function(l){var u,f,v=f=0;for(u=l.length;v<u;v++)f+=l[v].length;var h=new Uint8Array(f);for(v=f=0,u=l.length;v<u;v++){var g=l[v];h.set(g,f),f+=g.length}return h}},i={arraySet:function(l,u,f,v,h){for(var g=0;g<v;g++)l[h+g]=u[f+g]},flattenChunks:function(l){return[].concat.apply([],l)}};n.setTyped=function(l){l?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(e)},{}],124:[function(e,t,n){function r(v,h){if(65537>h&&(v.subarray&&u||!v.subarray&&l))return String.fromCharCode.apply(null,i.shrinkBuf(v,h));for(var g="",y=0;y<h;y++)g+=String.fromCharCode(v[y]);return g}var i=e("./common"),l=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}var f=new i.Buf8(256);for(e=0;256>e;e++)f[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;f[254]=f[254]=1,n.string2buf=function(v){var h,g,y=v.length,w=0;for(h=0;h<y;h++){var C=v.charCodeAt(h);if((C&64512)===55296&&h+1<y){var S=v.charCodeAt(h+1);(S&64512)===56320&&(C=65536+(C-55296<<10)+(S-56320),h++)}w+=128>C?1:2048>C?2:65536>C?3:4}var T=new i.Buf8(w);for(h=g=0;g<w;h++)C=v.charCodeAt(h),(C&64512)===55296&&h+1<y&&(S=v.charCodeAt(h+1),(S&64512)===56320&&(C=65536+(C-55296<<10)+(S-56320),h++)),128>C?T[g++]=C:(2048>C?T[g++]=192|C>>>6:(65536>C?T[g++]=224|C>>>12:(T[g++]=240|C>>>18,T[g++]=128|C>>>12&63),T[g++]=128|C>>>6&63),T[g++]=128|C&63);return T},n.buf2binstring=function(v){return r(v,v.length)},n.binstring2buf=function(v){for(var h=new i.Buf8(v.length),g=0,y=h.length;g<y;g++)h[g]=v.charCodeAt(g);return h},n.buf2string=function(v,h){var g,y=h||v.length,w=Array(2*y);for(h=g=0;h<y;){var C=v[h++];if(128>C)w[g++]=C;else{var S=f[C];if(4<S)w[g++]=65533,h+=S-1;else{for(C&=S===2?31:S===3?15:7;1<S&&h<y;)C=C<<6|v[h++]&63,S--;1<S?w[g++]=65533:65536>C?w[g++]=C:(C-=65536,w[g++]=55296|C>>10&1023,w[g++]=56320|C&1023)}}}return r(w,g)},n.utf8border=function(v,h){var g;for(h=h||v.length,h>v.length&&(h=v.length),g=h-1;0<=g&&(v[g]&192)===128;)g--;return 0>g||g===0?h:g+f[v[g]]>h?g:h}},{"./common":123}],125:[function(e,t,n){t.exports=function(r,i,l,u){var f=r&65535|0;r=r>>>16&65535|0;for(var v;l!==0;){v=2e3<l?2e3:l,l-=v;do f=f+i[u++]|0,r=r+f|0;while(--v);f%=65521,r%=65521}return f|r<<16|0}},{}],126:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
437ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],127:[function(e,t,n){var r=function(){for(var i,l=[],u=0;256>u;u++){i=u;for(var f=0;8>f;f++)i=i&1?3988292384^i>>>1:i>>>1;l[u]=i}return l}();t.exports=function(i,l,u,f){for(u=f+u,i^=-1;f<u;f++)i=i>>>8^r[(i^l[f])&255];return i^-1}},{}],128:[function(e,t,n){function r($,te){return $.msg=Y[te],te}function i($){for(var te=$.length;0<=--te;)$[te]=0}function l($){var te=$.state,V=te.pending;V>$.avail_out&&(V=$.avail_out),V!==0&&(A.arraySet($.output,te.pending_buf,te.pending_out,V,$.next_out),$.next_out+=V,te.pending_out+=V,$.total_out+=V,$.avail_out-=V,te.pending-=V,te.pending===0&&(te.pending_out=0))}function u($,te){X._tr_flush_block($,0<=$.block_start?$.block_start:-1,$.strstart-$.block_start,te),$.block_start=$.strstart,l($.strm)}function f($,te){$.pending_buf[$.pending++]=te}function v($,te){$.pending_buf[$.pending++]=te>>>8&255,$.pending_buf[$.pending++]=te&255}function h($,te){var V=$.max_chain_length,K=$.strstart,fe=$.prev_length,de=$.nice_match,ne=$.strstart>$.w_size-262?$.strstart-($.w_size-262):0,le=$.window,_e=$.w_mask,M=$.prev,P=$.strstart+258,U=le[K+fe-1],j=le[K+fe];$.prev_length>=$.good_match&&(V>>=2),de>$.lookahead&&(de=$.lookahead);do{var ee=te;if(le[ee+fe]===j&&le[ee+fe-1]===U&&le[ee]===le[K]&&le[++ee]===le[K+1]){for(K+=2,ee++;le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&le[++K]===le[++ee]&&K<P;);if(ee=258-(P-K),K=P-258,ee>fe){if($.match_start=te,fe=ee,ee>=de)break;U=le[K+fe-1],j=le[K+fe]}}}while((te=M[te&_e])>ne&&--V!==0);return fe<=$.lookahead?fe:$.lookahead}function g($){var te=$.w_size,V;do{var K=$.window_size-$.lookahead-$.strstart;if($.strstart>=te+(te-262)){A.arraySet($.window,$.window,te,te,0),$.match_start-=te,$.strstart-=te,$.block_start-=te;var fe=V=$.hash_size;do{var de=$.head[--fe];$.head[fe]=de>=te?de-te:0}while(--V);fe=V=te;do de=$.prev[--fe],$.prev[fe]=de>=te?de-te:0;while(--V);K+=te}if($.strm.avail_in===0)break;fe=$.strm,V=$.window,de=$.strstart+$.lookahead;var ne=fe.avail_in;if(ne>K&&(ne=K),ne===0?V=0:(fe.avail_in-=ne,A.arraySet(V,fe.input,fe.next_in,ne,de),fe.state.wrap===1?fe.adler=Z(fe.adler,V,ne,de):fe.state.wrap===2&&(fe.adler=z(fe.adler,V,ne,de)),fe.next_in+=ne,fe.total_in+=ne,V=ne),$.lookahead+=V,3<=$.lookahead+$.insert)for(K=$.strstart-$.insert,$.ins_h=$.window[K],$.ins_h=($.ins_h<<$.hash_shift^$.window[K+1])&$.hash_mask;$.insert&&($.ins_h=($.ins_h<<$.hash_shift^$.window[K+3-1])&$.hash_mask,$.prev[K&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=K,K++,$.insert--,!(3>$.lookahead+$.insert)););}while(262>$.lookahead&&$.strm.avail_in!==0)}function y($,te){for(var V;;){if(262>$.lookahead){if(g($),262>$.lookahead&&te===0)return 1;if($.lookahead===0)break}if(V=0,3<=$.lookahead&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,V=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),V!==0&&$.strstart-V<=$.w_size-262&&($.match_length=h($,V)),3<=$.match_length)if(V=X._tr_tally($,$.strstart-$.match_start,$.match_length-3),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&3<=$.lookahead){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else V=X._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(V&&(u($,!1),$.strm.avail_out===0))return 1}return $.insert=2>$.strstart?$.strstart:2,te===4?(u($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(u($,!1),$.strm.avail_out===0)?1:2}function w($,te){for(var V,K;;){if(262>$.lookahead){if(g($),262>$.lookahead&&te===0)return 1;if($.lookahead===0)break}if(V=0,3<=$.lookahead&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,V=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=2,V!==0&&$.prev_length<$.max_lazy_match&&$.strstart-V<=$.w_size-262&&($.match_length=h($,V),5>=$.match_length&&($.strategy===1||$.match_length===3&&4096<$.strstart-$.match_start)&&($.match_length=2)),3<=$.prev_length&&$.match_length<=$.prev_length){K=$.strstart+$.lookahead-3,V=X._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-3),$.lookahead-=$.prev_length-1,$.prev_length-=2;do++$.strstart<=K&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+3-1])&$.hash_mask,$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart);while(--$.prev_length!==0);if($.match_available=0,$.match_length=2,$.strstart++,V&&(u($,!1),$.strm.avail_out===0))return 1}else if($.match_available){if((V=X._tr_tally($,0,$.window[$.strstart-1]))&&u($,!1),$.strstart++,$.lookahead--,$.strm.avail_out===0)return 1}else $.match_available=1,$.strstart++,$.lookahead--}return $.match_available&&(X._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0),$.insert=2>$.strstart?$.strstart:2,te===4?(u($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(u($,!1),$.strm.avail_out===0)?1:2}function C($,te){for(var V,K,fe,de=$.window;;){if(258>=$.lookahead){if(g($),258>=$.lookahead&&te===0)return 1;if($.lookahead===0)break}if($.match_length=0,3<=$.lookahead&&0<$.strstart&&(K=$.strstart-1,V=de[K],V===de[++K]&&V===de[++K]&&V===de[++K])){for(fe=$.strstart+258;V===de[++K]&&V===de[++K]&&V===de[++K]&&V===de[++K]&&V===de[++K]&&V===de[++K]&&V===de[++K]&&V===de[++K]&&K<fe;);$.match_length=258-(fe-K),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if(3<=$.match_length?(V=X._tr_tally($,1,$.match_length-3),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(V=X._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),V&&(u($,!1),$.strm.avail_out===0))return 1}return $.insert=0,te===4?(u($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(u($,!1),$.strm.avail_out===0)?1:2}function S($,te){for(var V;;){if($.lookahead===0&&(g($),$.lookahead===0)){if(te===0)return 1;break}if($.match_length=0,V=X._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,V&&(u($,!1),$.strm.avail_out===0))return 1}return $.insert=0,te===4?(u($,!0),$.strm.avail_out===0?3:4):$.last_lit&&(u($,!1),$.strm.avail_out===0)?1:2}function T($,te,V,K,fe){this.good_length=$,this.max_lazy=te,this.nice_length=V,this.max_chain=K,this.func=fe}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.wrap=this.pending=this.pending_out=this.pending_buf_size=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_mask=this.w_b
437its=this.w_size=0,this.window=null,this.window_size=0,this.head=this.prev=null,this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0,this.dyn_ltree=new A.Buf16(1146),this.dyn_dtree=new A.Buf16(122),this.bl_tree=new A.Buf16(78),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.bl_desc=this.d_desc=this.l_desc=null,this.bl_count=new A.Buf16(16),this.heap=new A.Buf16(573),i(this.heap),this.heap_max=this.heap_len=0,this.depth=new A.Buf16(573),i(this.depth),this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function F($){if(!$||!$.state)return r($,-2);$.total_in=$.total_out=0,$.data_type=2;var te=$.state;return te.pending=0,te.pending_out=0,0>te.wrap&&(te.wrap=-te.wrap),te.status=te.wrap?42:113,$.adler=te.wrap===2?0:1,te.last_flush=0,X._tr_init(te),0}function R($){var te=F($);return te===0&&($=$.state,$.window_size=2*$.w_size,i($.head),$.max_lazy_match=Q[$.level].max_lazy,$.good_match=Q[$.level].good_length,$.nice_match=Q[$.level].nice_length,$.max_chain_length=Q[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=2,$.match_available=0,$.ins_h=0),te}function N($,te,V,K,fe,de){if(!$)return-2;var ne=1;if(te===-1&&(te=6),0>K?(ne=0,K=-K):15<K&&(ne=2,K-=16),1>fe||9<fe||V!==8||8>K||15<K||0>te||9<te||0>de||4<de)return r($,-2);K===8&&(K=9);var le=new B;return $.state=le,le.strm=$,le.wrap=ne,le.gzhead=null,le.w_bits=K,le.w_size=1<<le.w_bits,le.w_mask=le.w_size-1,le.hash_bits=fe+7,le.hash_size=1<<le.hash_bits,le.hash_mask=le.hash_size-1,le.hash_shift=~~((le.hash_bits+3-1)/3),le.window=new A.Buf8(2*le.w_size),le.head=new A.Buf16(le.hash_size),le.prev=new A.Buf16(le.w_size),le.lit_bufsize=1<<fe+6,le.pending_buf_size=4*le.lit_bufsize,le.pending_buf=new A.Buf8(le.pending_buf_size),le.d_buf=1*le.lit_bufsize,le.l_buf=3*le.lit_bufsize,le.level=te,le.strategy=de,le.method=V,R($)}var A=e("../utils/common"),X=e("./trees"),Z=e("./adler32"),z=e("./crc32"),Y=e("./messages"),Q=[new T(0,0,0,0,function($,te){var V=65535;for(V>$.pending_buf_size-5&&(V=$.pending_buf_size-5);;){if(1>=$.lookahead){if(g($),$.lookahead===0&&te===0)return 1;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var K=$.block_start+V;if(($.strstart===0||$.strstart>=K)&&($.lookahead=$.strstart-K,$.strstart=K,u($,!1),$.strm.avail_out===0)||$.strstart-$.block_start>=$.w_size-262&&(u($,!1),$.strm.avail_out===0))return 1}return $.insert=0,te===4?(u($,!0),$.strm.avail_out===0?3:4):($.strstart>$.block_start&&u($,!1),1)}),new T(4,4,8,4,y),new T(4,5,16,8,y),new T(4,6,32,32,y),new T(4,4,16,16,w),new T(8,16,32,32,w),new T(8,16,128,128,w),new T(8,32,128,256,w),new T(32,128,258,1024,w),new T(32,258,258,4096,w)];n.deflateInit=function($,te){return N($,te,8,15,8,0)},n.deflateInit2=N,n.deflateReset=R,n.deflateResetKeep=F,n.deflateSetHeader=function($,te){return!$||!$.state||$.state.wrap!==2?-2:($.state.gzhead=te,0)},n.deflate=function($,te){if(!$||!$.state||5<te||0>te)return $?r($,-2):-2;var V=$.state;if(!$.output||!$.input&&$.avail_in!==0||V.status===666&&te!==4)return r($,$.avail_out===0?-5:-2);V.strm=$;var K=V.last_flush;if(V.last_flush=te,V.status===42)if(V.wrap===2)$.adler=0,f(V,31),f(V,139),f(V,8),V.gzhead?(f(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),f(V,V.gzhead.time&255),f(V,V.gzhead.time>>8&255),f(V,V.gzhead.time>>16&255),f(V,V.gzhead.time>>24&255),f(V,V.level===9?2:2<=V.strategy||2>V.level?4:0),f(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length&&(f(V,V.gzhead.extra.length&255),f(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&($.adler=z($.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(f(V,0),f(V,0),f(V,0),f(V,0),f(V,0),f(V,V.level===9?2:2<=V.strategy||2>V.level?4:0),f(V,3),V.status=113);else{var fe=8+(V.w_bits-8<<4)<<8;fe|=(2<=V.strategy||2>V.level?0:6>V.level?1:V.level===6?2:3)<<6,V.strstart!==0&&(fe|=32),V.status=113,v(V,fe+(31-fe%31)),V.strstart!==0&&(v(V,$.adler>>>16),v(V,$.adler&65535)),$.adler=1}if(V.status===69)if(V.gzhead.extra){for(fe=V.pending;V.gzindex<(V.gzhead.extra.length&65535)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),l($),fe=V.pending,V.pending!==V.pending_buf_size));)f(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++;V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),V.gzindex===V.gzhead.extra.length&&(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){fe=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),l($),fe=V.pending,V.pending===V.pending_buf_size)){var de=1;break}de=V.gzindex<V.gzhead.name.length?V.gzhead.name.charCodeAt(V.gzindex++)&255:0,f(V,de)}while(de!==0);V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),de===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===91)if(V.gzhead.comment){fe=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),l($),fe=V.pending,V.pending===V.pending_buf_size)){de=1;break}de=V.gzindex<V.gzhead.comment.length?V.gzhead.comment.charCodeAt(V.gzindex++)&255:0,f(V,de)}while(de!==0);V.gzhead.hcrc&&V.pending>fe&&($.adler=z($.adler,V.pending_buf,V.pending-fe,fe)),de===0&&(V.status=103)}else V.status=103;if(V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&l($),V.pending+2<=V.pending_buf_size&&(f(V,$.adler&255),f(V,$.adler>>8&255),$.adler=0,V.status=113)):V.status=113),V.pending!==0){if(l($),$.avail_out===0)return V.last_flush=-1,0}else if($.avail_in===0&&(te<<1)-(4<te?9:0)<=(K<<1)-(4<K?9:0)&&te!==4)return r($,-5);if(V.status===666&&$.avail_in!==0)return r($,-5);if($.avail_in!==0||V.lookahead!==0||te!==0&&V.status!==666){if(K=V.strategy===2?S(V,te):V.strategy===3?C(V,te):Q[V.level].func(V,te),(K===3||K===4)&&(V.status=666),K===1||K===3)return $.avail_out===0&&(V.last_flush=-1),0;if(K===2&&(te===1?X._tr_align(V):te!==5&&(X._tr_stored_block(V,0,0,!1),te===3&&(i(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),l($),$.avail_out===0))return V.last_flush=-1,0}return te!==4?0:0>=V.wrap?1:(V.wrap===2?(f(V,$.adler&255),f(V,$.adler>>8&255),f(V,$.adler>>16&255),f(V,$.adler>>24&255),f(V,$.total_in&255),f(V,$.total_in>>8&255),f(V,$.total_in>>16&255),f(V,$.total_in>>24&255)):(v(V,$.adler>>>16),v(V,$.adler&65535)),l($),0<V.wrap&&(V.wrap=-V.wrap),V.pending!==0?0:1)},n.deflateEnd=function($){if(!$||!$.state)return-2;var te=$.state.status;return te!==42&&te!==69&&te!==73&&te!==91&&te!==103&&te!==113&&te!==666?r($,-2):($.state=null,te===113?r($,-3):0)},n.deflateSetDictionary=function($,te){var V=te.length;if(!$||!$.state)return-2;var K=$.state,fe=K.wrap;if(fe===2||fe===1&&K.status!==42||K.lookahead)return-2;
437if(fe===1&&($.adler=Z($.adler,te,V,0)),K.wrap=0,V>=K.w_size){fe===0&&(i(K.head),K.strstart=0,K.block_start=0,K.insert=0);var de=new A.Buf8(K.w_size);A.arraySet(de,te,V-K.w_size,K.w_size,0),te=de,V=K.w_size}de=$.avail_in;var ne=$.next_in,le=$.input;for($.avail_in=V,$.next_in=0,$.input=te,g(K);3<=K.lookahead;){te=K.strstart,V=K.lookahead-2;do K.ins_h=(K.ins_h<<K.hash_shift^K.window[te+3-1])&K.hash_mask,K.prev[te&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=te,te++;while(--V);K.strstart=te,K.lookahead=2,g(K)}return K.strstart+=K.lookahead,K.block_start=K.strstart,K.insert=K.lookahead,K.lookahead=0,K.match_length=K.prev_length=2,K.match_available=0,$.next_in=ne,$.input=le,$.avail_in=de,K.wrap=fe,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":123,"./adler32":125,"./crc32":127,"./messages":133,"./trees":134}],129:[function(e,t,n){t.exports=function(){this.os=this.xflags=this.time=this.text=0,this.extra=null,this.extra_len=0,this.comment=this.name="",this.hcrc=0,this.done=!1}},{}],130:[function(e,t,n){t.exports=function(r,i){var l=r.state,u=r.next_in,f=r.input,v=u+(r.avail_in-5),h=r.next_out,g=r.output;i=h-(i-r.avail_out);var y=h+(r.avail_out-257),w=l.dmax,C=l.wsize,S=l.whave,T=l.wnext,B=l.window,F=l.hold,R=l.bits,N=l.lencode,A=l.distcode,X=(1<<l.lenbits)-1,Z=(1<<l.distbits)-1;e:do{15>R&&(F+=f[u++]<<R,R+=8,F+=f[u++]<<R,R+=8);var z=N[F&X];t:for(;;){var Y=z>>>24;if(F>>>=Y,R-=Y,Y=z>>>16&255,Y===0)g[h++]=z&65535;else if(Y&16){var Q=z&65535;(Y&=15)&&(R<Y&&(F+=f[u++]<<R,R+=8),Q+=F&(1<<Y)-1,F>>>=Y,R-=Y),15>R&&(F+=f[u++]<<R,R+=8,F+=f[u++]<<R,R+=8),z=A[F&Z];n:for(;;){if(Y=z>>>24,F>>>=Y,R-=Y,Y=z>>>16&255,Y&16){if(z&=65535,Y&=15,R<Y&&(F+=f[u++]<<R,R+=8,R<Y&&(F+=f[u++]<<R,R+=8)),z+=F&(1<<Y)-1,z>w){r.msg="invalid distance too far back",l.mode=30;break e}if(F>>>=Y,R-=Y,Y=h-i,z>Y){if(Y=z-Y,Y>S&&l.sane){r.msg="invalid distance too far back",l.mode=30;break e}var $=0,te=B;if(T===0){if($+=C-Y,Y<Q){Q-=Y;do g[h++]=B[$++];while(--Y);$=h-z,te=g}}else if(T<Y){if($+=C+T-Y,Y-=T,Y<Q){Q-=Y;do g[h++]=B[$++];while(--Y);if($=0,T<Q){Y=T,Q-=Y;do g[h++]=B[$++];while(--Y);$=h-z,te=g}}}else if($+=T-Y,Y<Q){Q-=Y;do g[h++]=B[$++];while(--Y);$=h-z,te=g}for(;2<Q;)g[h++]=te[$++],g[h++]=te[$++],g[h++]=te[$++],Q-=3;Q&&(g[h++]=te[$++],1<Q&&(g[h++]=te[$++]))}else{$=h-z;do g[h++]=g[$++],g[h++]=g[$++],g[h++]=g[$++],Q-=3;while(2<Q);Q&&(g[h++]=g[$++],1<Q&&(g[h++]=g[$++]))}}else if((Y&64)===0){z=A[(z&65535)+(F&(1<<Y)-1)];continue n}else{r.msg="invalid distance code",l.mode=30;break e}break}}else if((Y&64)===0){z=N[(z&65535)+(F&(1<<Y)-1)];continue t}else{Y&32?l.mode=12:(r.msg="invalid literal/length code",l.mode=30);break e}break}}while(u<v&&h<y);Q=R>>3,u-=Q,R-=Q<<3,r.next_in=u,r.next_out=h,r.avail_in=u<v?5+(v-u):5-(u-v),r.avail_out=h<y?257+(y-h):257-(h-y),l.hold=F&(1<<R)-1,l.bits=R}},{}],131:[function(e,t,n){function r(R){return(R>>>24&255)+(R>>>8&65280)+((R&65280)<<8)+((R&255)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.total=this.check=this.dmax=this.flags=0,this.head=null,this.wnext=this.whave=this.wsize=this.wbits=0,this.window=null,this.extra=this.offset=this.length=this.bits=this.hold=0,this.distcode=this.lencode=null,this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.distdyn=this.lendyn=null,this.was=this.back=this.sane=0}function l(R){if(!R||!R.state)return-2;var N=R.state;return R.total_in=R.total_out=N.total=0,R.msg="",N.wrap&&(R.adler=N.wrap&1),N.mode=1,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new g.Buf32(852),N.distcode=N.distdyn=new g.Buf32(592),N.sane=1,N.back=-1,0}function u(R){if(!R||!R.state)return-2;var N=R.state;return N.wsize=0,N.whave=0,N.wnext=0,l(R)}function f(R,N){if(!R||!R.state)return-2;var A=R.state;if(0>N){var X=0;N=-N}else X=(N>>4)+1,48>N&&(N&=15);return N&&(8>N||15<N)?-2:(A.window!==null&&A.wbits!==N&&(A.window=null),A.wrap=X,A.wbits=N,u(R))}function v(R,N){if(!R)return-2;var A=new i;return R.state=A,A.window=null,N=f(R,N),N!==0&&(R.state=null),N}function h(R,N,A,X){var Z=R.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new g.Buf8(Z.wsize)),X>=Z.wsize?(g.arraySet(Z.window,N,A-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(R=Z.wsize-Z.wnext,R>X&&(R=X),g.arraySet(Z.window,N,A-X,R,Z.wnext),(X-=R)?(g.arraySet(Z.window,N,A-X,X,0),Z.wnext=X,Z.whave=Z.wsize):(Z.wnext+=R,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave
437<Z.wsize&&(Z.whave+=R))),0}var g=e("../utils/common"),y=e("./adler32"),w=e("./crc32"),C=e("./inffast"),S=e("./inftrees"),T=!0,B,F;n.inflateReset=u,n.inflateReset2=f,n.inflateResetKeep=l,n.inflateInit=function(R){return v(R,15)},n.inflateInit2=v,n.inflate=function(R,N){var A,X=new g.Buf8(4),Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return-2;var z=R.state;z.mode===12&&(z.mode=13);var Y=R.next_out,Q=R.output,$=R.avail_out,te=R.next_in,V=R.input,K=R.avail_in,fe=z.hold,de=z.bits,ne=K,le=$,_e=0;e:for(;;)switch(z.mode){case 1:if(z.wrap===0){z.mode=13;break}for(;16>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(z.wrap&2&&fe===35615){z.check=0,X[0]=fe&255,X[1]=fe>>>8&255,z.check=w(z.check,X,2,0),de=fe=0,z.mode=2;break}if(z.flags=0,z.head&&(z.head.done=!1),!(z.wrap&1)||(((fe&255)<<8)+(fe>>8))%31){R.msg="incorrect header check",z.mode=30;break}if((fe&15)!==8){R.msg="unknown compression method",z.mode=30;break}fe>>>=4,de-=4;var M=(fe&15)+8;if(z.wbits===0)z.wbits=M;else if(M>z.wbits){R.msg="invalid window size",z.mode=30;break}z.dmax=1<<M,R.adler=z.check=1,z.mode=fe&512?10:12,de=fe=0;break;case 2:for(;16>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(z.flags=fe,(z.flags&255)!==8){R.msg="unknown compression method",z.mode=30;break}if(z.flags&57344){R.msg="unknown header flags set",z.mode=30;break}z.head&&(z.head.text=fe>>8&1),z.flags&512&&(X[0]=fe&255,X[1]=fe>>>8&255,z.check=w(z.check,X,2,0)),de=fe=0,z.mode=3;case 3:for(;32>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.head&&(z.head.time=fe),z.flags&512&&(X[0]=fe&255,X[1]=fe>>>8&255,X[2]=fe>>>16&255,X[3]=fe>>>24&255,z.check=w(z.check,X,4,0)),de=fe=0,z.mode=4;case 4:for(;16>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.head&&(z.head.xflags=fe&255,z.head.os=fe>>8),z.flags&512&&(X[0]=fe&255,X[1]=fe>>>8&255,z.check=w(z.check,X,2,0)),de=fe=0,z.mode=5;case 5:if(z.flags&1024){for(;16>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.length=fe,z.head&&(z.head.extra_len=fe),z.flags&512&&(X[0]=fe&255,X[1]=fe>>>8&255,z.check=w(z.check,X,2,0)),de=fe=0}else z.head&&(z.head.extra=null);z.mode=6;case 6:if(z.flags&1024){var P=z.length;if(P>K&&(P=K),P&&(z.head&&(M=z.head.extra_len-z.length,z.head.extra||(z.head.extra=Array(z.head.extra_len)),g.arraySet(z.head.extra,V,te,P,M)),z.flags&512&&(z.check=w(z.check,V,P,te)),K-=P,te+=P,z.length-=P),z.length)break e}z.length=0,z.mode=7;case 7:if(z.flags&2048){if(K===0)break e;P=0;do M=V[te+P++],z.head&&M&&65536>z.length&&(z.head.name+=String.fromCharCode(M));while(M&&P<K);if(z.flags&512&&(z.check=w(z.check,V,P,te)),K-=P,te+=P,M)break e}else z.head&&(z.head.name=null);z.length=0,z.mode=8;case 8:if(z.flags&4096){if(K===0)break e;P=0;do M=V[te+P++],z.head&&M&&65536>z.length&&(z.head.comment+=String.fromCharCode(M));while(M&&P<K);if(z.flags&512&&(z.check=w(z.check,V,P,te)),K-=P,te+=P,M)break e}else z.head&&(z.head.comment=null);z.mode=9;case 9:if(z.flags&512){for(;16>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(fe!==(z.check&65535)){R.msg="header crc mismatch",z.mode=30;break}de=fe=0}z.head&&(z.head.hcrc=z.flags>>9&1,z.head.done=!0),R.adler=z.check=0,z.mode=12;break;case 10:for(;32>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}R.adler=z.check=r(fe),de=fe=0,z.mode=11;case 11:if(z.havedict===0)return R.next_out=Y,R.avail_out=$,R.next_in=te,R.avail_in=K,z.hold=fe,z.bits=de,2;R.adler=z.check=1,z.mode=12;case 12:if(N===5||N===6)break e;case 13:if(z.last){fe>>>=de&7,de-=de&7,z.mode=27;break}for(;3>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}switch(z.last=fe&1,fe>>>=1,--de,fe&3){case 0:z.mode=14;break;case 1:if(M=z,T){for(B=new g.Buf32(512),F=new g.Buf32(32),P=0;144>P;)M.lens[P++]=8;for(;256>P;)M.lens[P++]=9;for(;280>P;)M.lens[P++]=7;for(;288>P;)M.lens[P++]=8;for(S(1,M.lens,0,288,B,0,M.work,{bits:9}),P=0;32>P;)M.lens[P++]=5;S(2,M.lens,0,32,F,0,M.work,{bits:5}),T=!1}if(M.lencode=B,M.lenbits=9,M.distcode=F,M.distbits=5,z.mode=20,N===6){fe>>>=2,de-=2;break e}break;case 2:z.mode=17;break;case 3:R.msg="invalid block type",z.mode=30}fe>>>=2,de-=2;break;case 14:for(fe>>>=de&7,de-=de&7;32>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if((fe&65535)!==(fe>>
437>16^65535)){R.msg="invalid stored block lengths",z.mode=30;break}if(z.length=fe&65535,de=fe=0,z.mode=15,N===6)break e;case 15:z.mode=16;case 16:if(P=z.length){if(P>K&&(P=K),P>$&&(P=$),P===0)break e;g.arraySet(Q,V,te,P,Y),K-=P,te+=P,$-=P,Y+=P,z.length-=P;break}z.mode=12;break;case 17:for(;14>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(z.nlen=(fe&31)+257,fe>>>=5,de-=5,z.ndist=(fe&31)+1,fe>>>=5,de-=5,z.ncode=(fe&15)+4,fe>>>=4,de-=4,286<z.nlen||30<z.ndist){R.msg="too many length or distance symbols",z.mode=30;break}z.have=0,z.mode=18;case 18:for(;z.have<z.ncode;){for(;3>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.lens[Z[z.have++]]=fe&7,fe>>>=3,de-=3}for(;19>z.have;)z.lens[Z[z.have++]]=0;if(z.lencode=z.lendyn,z.lenbits=7,P={bits:z.lenbits},_e=S(0,z.lens,0,19,z.lencode,0,z.work,P),z.lenbits=P.bits,_e){R.msg="invalid code lengths set",z.mode=30;break}z.have=0,z.mode=19;case 19:for(;z.have<z.nlen+z.ndist;){for(;;){var U=z.lencode[fe&(1<<z.lenbits)-1];if(P=U>>>24,U&=65535,P<=de)break;if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(16>U)fe>>>=P,de-=P,z.lens[z.have++]=U;else{if(U===16){for(M=P+2;de<M;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(fe>>>=P,de-=P,z.have===0){R.msg="invalid bit length repeat",z.mode=30;break}M=z.lens[z.have-1],P=3+(fe&3),fe>>>=2,de-=2}else if(U===17){for(M=P+3;de<M;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}fe>>>=P,de-=P,M=0,P=3+(fe&7),fe>>>=3,de-=3}else{for(M=P+7;de<M;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}fe>>>=P,de-=P,M=0,P=11+(fe&127),fe>>>=7,de-=7}if(z.have+P>z.nlen+z.ndist){R.msg="invalid bit length repeat",z.mode=30;break}for(;P--;)z.lens[z.have++]=M}}if(z.mode===30)break;if(z.lens[256]===0){R.msg="invalid code -- missing end-of-block",z.mode=30;break}if(z.lenbits=9,P={bits:z.lenbits},_e=S(1,z.lens,0,z.nlen,z.lencode,0,z.work,P),z.lenbits=P.bits,_e){R.msg="invalid literal/lengths set",z.mode=30;break}if(z.distbits=6,z.distcode=z.distdyn,P={bits:z.distbits},_e=S(2,z.lens,z.nlen,z.ndist,z.distcode,0,z.work,P),z.distbits=P.bits,_e){R.msg="invalid distances set",z.mode=30;break}if(z.mode=20,N===6)break e;case 20:z.mode=21;case 21:if(6<=K&&258<=$){R.next_out=Y,R.avail_out=$,R.next_in=te,R.avail_in=K,z.hold=fe,z.bits=de,C(R,le),Y=R.next_out,Q=R.output,$=R.avail_out,te=R.next_in,V=R.input,K=R.avail_in,fe=z.hold,de=z.bits,z.mode===12&&(z.back=-1);break}for(z.back=0;U=z.lencode[fe&(1<<z.lenbits)-1],P=U>>>24,M=U>>>16&255,U&=65535,!(P<=de);){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(M&&(M&240)===0){var j=P,ee=M;for(A=U;U=z.lencode[A+((fe&(1<<j+ee)-1)>>j)],P=U>>>24,M=U>>>16&255,U&=65535,!(j+P<=de);){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}fe>>>=j,de-=j,z.back+=j}if(fe>>>=P,de-=P,z.back+=P,z.length=U,M===0){z.mode=26;break}if(M&32){z.back=-1,z.mode=12;break}if(M&64){R.msg="invalid literal/length code",z.mode=30;break}z.extra=M&15,z.mode=22;case 22:if(z.extra){for(M=z.extra;de<M;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.length+=fe&(1<<z.extra)-1,fe>>>=z.extra,de-=z.extra,z.back+=z.extra}z.was=z.length,z.mode=23;case 23:for(;U=z.distcode[fe&(1<<z.distbits)-1],P=U>>>24,M=U>>>16&255,U&=65535,!(P<=de);){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if((M&240)===0){for(j=P,ee=M,A=U;U=z.distcode[A+((fe&(1<<j+ee)-1)>>j)],P=U>>>24,M=U>>>16&255,U&=65535,!(j+P<=de);){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}fe>>>=j,de-=j,z.back+=j}if(fe>>>=P,de-=P,z.back+=P,M&64){R.msg="invalid distance code",z.mode=30;break}z.offset=U,z.extra=M&15,z.mode=24;case 24:if(z.extra){for(M=z.extra;de<M;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}z.offset+=fe&(1<<z.extra)-1,fe>>>=z.extra,de-=z.extra,z.back+=z.extra}if(z.offset>z.dmax){R.msg="invalid distance too far back",z.mode=30;break}z.mode=25;case 25:if($===0)break e;if(P=le-$,z.offset>P){if(P=z.offset-P,P>z.whave&&z.sane){R.msg="invalid distance too far back",z.mode=30;break}P>z.wnext?(P-=z.wnext,M=z.wsize-P):M=z.wnext-P,P>z.length&&(P=z.length),j=z.window}else j=Q,M=Y-z.offset,P=z.length;P>$&&(P=$),$-=P,z.length-=P;do Q[Y++]=j[M++];while(--P);z.length===0&&(z.mode=21);break;case 26:if($===0)break e;Q[Y++]=z.length,$--,z.mode=21;break;case 27:if(z.wrap){for(;32>de;){if(K===0)break e;K--,fe|=V[te++]<<de,de+=8}if(le-=$,R.total_out+=le,z.total+=le,le&&(R.adler=z.check=z.flags?w(z.check,Q,le,Y-le):y(z.check,Q,le,Y-le)),le=$,(z.flags?fe:r(fe))!==z.check){R.msg="incorrect data check",z.mode=30;break}de=fe=0}z.mode=28;case 28:if(z.wrap&&z.flags){for(;32>de;){if(K===0)break e;K--,fe+=V[te++]<<de,de+=8}if(fe!==(z.total&4294967295)){R.msg="incorrect length check",z.mode=30;break}de=fe=0}z.mode=29;case 29:_e=1;break e;case 30:_e=-3;break e;case 31:return-4;default:return-2}return R.next_out=Y,R.avail_out=$,R.next_in=te,R.avail_in=K,z.hold=fe,z.bits=de,(z.wsize||le!==R.avail_out&&30>z.mode&&(27>z.mode||N!==4))&&h(R,R.output,R.next_out,le-R.avail_out)?(z.mode=31,-4):(ne-=R.avail_in,le-=R.avail_out,R.total_in+=ne,R.total_out+=le,z.total+=le,z.wrap&&le&&(R.adler=z.check=z.flags?w(z.check,Q,le,R.next_out-le):y(z.check,Q,le,R.next_out-le)),R.data_type=z.bits+(z.last?64:0)+(z.mode===12?128:0)+(z.mode===20||z.mode===15?256:0),(ne===0&&le===0||N===4)&&_e===0&&(_e=-5),_e)},n.inflateEnd=function(R){if(!R||!R.state)return-2;var N=R.state;return N.window&&(N.window=null),R.state=null,0}
437,n.inflateGetHeader=function(R,N){return!R||!R.state||(R=R.state,(R.wrap&2)===0)?-2:(R.head=N,N.done=!1,0)},n.inflateSetDictionary=function(R,N){var A=N.length;if(!R||!R.state)return-2;var X=R.state;if(X.wrap!==0&&X.mode!==11)return-2;if(X.mode===11){var Z=y(1,N,A,0);if(Z!==X.check)return-3}return h(R,N,A,A),X.havedict=1,0},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":123,"./adler32":125,"./crc32":127,"./inffast":130,"./inftrees":132}],132:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(v,h,g,y,w,C,S,T){var B=T.bits,F,R,N,A,X,Z,z=0,Y=new r.Buf16(16),Q=new r.Buf16(16),$,te=0;for(F=0;15>=F;F++)Y[F]=0;for(R=0;R<y;R++)Y[h[g+R]]++;var V=B;for(N=15;1<=N&&Y[N]===0;N--);if(V>N&&(V=N),N===0)return w[C++]=20971520,w[C++]=20971520,T.bits=1,0;for(B=1;B<N&&Y[B]===0;B++);for(V<B&&(V=B),F=A=1;15>=F;F++)if(A<<=1,A-=Y[F],0>A)return-1;if(0<A&&(v===0||N!==1))return-1;for(Q[1]=0,F=1;15>F;F++)Q[F+1]=Q[F]+Y[F];for(R=0;R<y;R++)h[g+R]!==0&&(S[Q[h[g+R]]++]=R);if(v===0)var K=$=S,fe=19;else v===1?(K=i,z-=257,$=l,te-=257,fe=256):(K=u,$=f,fe=-1);R=X=0,F=B;var de=C;y=V,Q=0;var ne=-1,le=1<<V,_e=le-1;if(v===1&&852<le||v===2&&592<le)return 1;for(var M=0;;){M++;var P=F-Q;if(S[R]<fe)var U=0,j=S[R];else S[R]>fe?(U=$[te+S[R]],j=K[z+S[R]]):(U=96,j=0);A=1<<F-Q,B=Z=1<<y;do Z-=A,w[de+(X>>Q)+Z]=P<<24|U<<16|j|0;while(Z!==0);for(A=1<<F-1;X&A;)A>>=1;if(A!==0?(X&=A-1,X+=A):X=0,R++,--Y[F]===0){if(F===N)break;F=h[g+S[R]]}if(F>V&&(X&_e)!==ne){for(Q===0&&(Q=V),de+=B,y=F-Q,A=1<<y;y+Q<N&&(A-=Y[y+Q],!(0>=A));)y++,A<<=1;if(le+=1<<y,v===1&&852<le||v===2&&592<le)return 1;ne=X&_e,w[ne]=V<<24|y<<16|de-C|0}}return X!==0&&(w[de+X]=F-Q<<24|4194304),T.bits=V,0}},{"../utils/common":123}],133:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],134:[function(e,t,n){function r(P){for(var U=P.length;0<=--U;)P[U]=0}function i(P,U,j,ee,ye){this.static_tree=P,this.extra_bits=U,this.extra_base=j,this.elems=ee,this.max_length=ye,this.has_stree=P&&P.length}function l(P,U){this.dyn_tree=P,this.max_code=0,this.stat_desc=U}function u(P,U){P.pending_buf[P.pending++]=U&255,P.pending_buf[P.pending++]=U>>>8&255}function f(P,U,j){P.bi_valid>16-j?(P.bi_buf|=U<<P.bi_valid&65535,u(P,P.bi_buf),P.bi_buf=U>>16-P.bi_valid,P.bi_valid+=j-16):(P.bi_buf|=U<<P.bi_valid&65535,P.bi_valid+=j)}function v(P,U,j){f(P,j[2*U],j[2*U+1])}function h(P,U){var j=0;do j|=P&1,P>>>=1,j<<=1;while(0<--U);return j>>>1}function g(P,U,j){var ee=Array(16),ye=0,ie;for(ie=1;15>=ie;ie++)ee[ie]=ye=ye+j[ie-1]<<1;for(j=0;j<=U;j++)ye=P[2*j+1],ye!==0&&(P[2*j]=h(ee[ye]++,ye))}function y(P){var U;for(U=0;286>U;U++)P.dyn_ltree[2*U]=0;for(U=0;30>U;U++)P.dyn_dtree[2*U]=0;for(U=0;19>U;U++)P.bl_tree[2*U]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0}function w(P){8<P.bi_valid?u(P,P.bi_buf):0<P.bi_valid&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0}function C(P,U,j,ee){var ye=2*U,ie=2*j;return P[ye]<P[ie]||P[ye]===P[ie]&&ee[U]<=ee[j]}function S(P,U,j){for(var ee=P.heap[j],ye=j<<1;ye<=P.heap_len&&(ye<P.heap_len&&C(U,P.heap[ye+1],P.heap[ye],P.depth)&&ye++,!C(U,ee,P.heap[ye],P.depth));)P.heap[j]=P.heap[ye],j=ye,ye<<=1;P.heap[j]=ee}function T(P,U,j){var ee=0;if(P.last_lit!==0)do{var ye=P.pending_buf[P.d_buf+2*ee]<<8|P.pending_buf[P.d_buf+2*ee+1],ie=P.pending_buf[P.l_buf+ee];if(ee++,ye===0)v(P,ie,U);else{var he=K[ie];v(P,he+256+1,U);var re=Z[he];re!==0&&(ie-=fe[he],f(P,ie,re)),ye--,he=256>ye?V[ye]:V[256+(ye>>>7)],v(P,he,j),re=z[he],re!==0&&(ye-=de[he],f(P,ye,re))}}while(ee<P.last_lit);v(P,256,U)}function B(P,U){var j=U.dyn_tree,ee=U.stat_desc.static_tree,ye=U.stat_desc.has_stree,ie=U.stat_desc.elems,he,re=-1;for(P.heap_len=0,P.heap_max=573,he=0;he<ie;
437he++)j[2*he]!==0?(P.heap[++P.heap_len]=re=he,P.depth[he]=0):j[2*he+1]=0;for(;2>P.heap_len;){var be=P.heap[++P.heap_len]=2>re?++re:0;j[2*be]=1,P.depth[be]=0,P.opt_len--,ye&&(P.static_len-=ee[2*be+1])}for(U.max_code=re,he=P.heap_len>>1;1<=he;he--)S(P,j,he);be=ie;do he=P.heap[1],P.heap[1]=P.heap[P.heap_len--],S(P,j,1),ee=P.heap[1],P.heap[--P.heap_max]=he,P.heap[--P.heap_max]=ee,j[2*be]=j[2*he]+j[2*ee],P.depth[be]=(P.depth[he]>=P.depth[ee]?P.depth[he]:P.depth[ee])+1,j[2*he+1]=j[2*ee+1]=be,P.heap[1]=be++,S(P,j,1);while(2<=P.heap_len);P.heap[--P.heap_max]=P.heap[1],he=U.dyn_tree,be=U.max_code,ee=U.stat_desc.static_tree,ye=U.stat_desc.has_stree,ie=U.stat_desc.extra_bits;var Ae=U.stat_desc.extra_base,Te=U.stat_desc.max_length,Ue,Oe=0;for(Ue=0;15>=Ue;Ue++)P.bl_count[Ue]=0;for(he[2*P.heap[P.heap_max]+1]=0,U=P.heap_max+1;573>U;U++){var De=P.heap[U];if(Ue=he[2*he[2*De+1]+1]+1,Ue>Te&&(Ue=Te,Oe++),he[2*De+1]=Ue,!(De>be)){P.bl_count[Ue]++;var $e=0;De>=Ae&&($e=ie[De-Ae]);var rt=he[2*De];P.opt_len+=rt*(Ue+$e),ye&&(P.static_len+=rt*(ee[2*De+1]+$e))}}if(Oe!==0){do{for(Ue=Te-1;P.bl_count[Ue]===0;)Ue--;P.bl_count[Ue]--,P.bl_count[Ue+1]+=2,P.bl_count[Te]--,Oe-=2}while(0<Oe);for(Ue=Te;Ue!==0;Ue--)for(De=P.bl_count[Ue];De!==0;)ee=P.heap[--U],ee>be||(he[2*ee+1]!==Ue&&(P.opt_len+=(Ue-he[2*ee+1])*he[2*ee],he[2*ee+1]=Ue),De--)}g(j,re,P.bl_count)}function F(P,U,j){var ee,ye=-1,ie=U[1],he=0,re=7,be=4;for(ie===0&&(re=138,be=3),U[2*(j+1)+1]=65535,ee=0;ee<=j;ee++){var Ae=ie;ie=U[2*(ee+1)+1],++he<re&&Ae===ie||(he<be?P.bl_tree[2*Ae]+=he:Ae!==0?(Ae!==ye&&P.bl_tree[2*Ae]++,P.bl_tree[32]++):10>=he?P.bl_tree[34]++:P.bl_tree[36]++,he=0,ye=Ae,ie===0?(re=138,be=3):Ae===ie?(re=6,be=3):(re=7,be=4))}}function R(P,U,j){var ee,ye=-1,ie=U[1],he=0,re=7,be=4;for(ie===0&&(re=138,be=3),ee=0;ee<=j;ee++){var Ae=ie;if(ie=U[2*(ee+1)+1],!(++he<re&&Ae===ie)){if(he<be)do v(P,Ae,P.bl_tree);while(--he!==0);else Ae!==0?(Ae!==ye&&(v(P,Ae,P.bl_tree),he--),v(P,16,P.bl_tree),f(P,he-3,2)):10>=he?(v(P,17,P.bl_tree),f(P,he-3,3)):(v(P,18,P.bl_tree),f(P,he-11,7));he=0,ye=Ae,ie===0?(re=138,be=3):Ae===ie?(re=6,be=3):(re=7,be=4)}}}function N(P){var U=4093624447,j;for(j=0;31>=j;j++,U>>>=1)if(U&1&&P.dyn_ltree[2*j]!==0)return 0;if(P.dyn_ltree[18]!==0||P.dyn_ltree[20]!==0||P.dyn_ltree[26]!==0)return 1;for(j=32;256>j;j++)if(P.dyn_ltree[2*j]!==0)return 1;return 0}function A(P,U,j,ee){f(P,ee?1:0,3),w(P),u(P,j),u(P,~j),X.arraySet(P.pending_buf,P.window,U,j,P.pending),P.pending+=j}var X=e("../utils/common"),Z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],z=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=Array(576);r($);var te=Array(60);r(te);var V=Array(512);r(V);var K=Array(256);r(K);var fe=Array(29);r(fe);var de=Array(30);r(de);var ne,le,_e,M=!1;n._tr_init=function(P){if(!M){var U,j,ee,ye=Array(16);for(ee=j=0;28>ee;ee++)for(fe[ee]=j,U=0;U<1<<Z[ee];U++)K[j++]=ee;for(K[j-1]=ee,ee=j=0;16>ee;ee++)for(de[ee]=j,U=0;U<1<<z[ee];U++)V[j++]=ee;for(j>>=7;30>ee;ee++)for(de[ee]=j<<7,U=0;U<1<<z[ee]-7;U++)V[256+j++]=ee;for(U=0;15>=U;U++)ye[U]=0;for(U=0;143>=U;)$[2*U+1]=8,U++,ye[8]++;for(;255>=U;)$[2*U+1]=9,U++,ye[9]++;for(;279>=U;)$[2*U+1]=7,U++,ye[7]++;for(;287>=U;)$[2*U+1]=8,U++,ye[8]++;for(g($,287,ye),U=0;30>U;U++)te[2*U+1]=5,te[2*U]=h(U,5);ne=new i($,Z,257,286,15),le=new i(te,z,0,30,15),_e=new i([],Y,0,19,7),M=!0}P.l_desc=new l(P.dyn_ltree,ne),P.d_desc=new l(P.dyn_dtree,le),P.bl_desc=new l(P.bl_tree,_e),P.bi_buf=0,P.bi_valid=0,y(P)},n._tr_stored_block=A,n._tr_flush_block=function(P,U,j,ee){var ye=0;if(0<P.level){for(P.strm.data_type===2&&(P.strm.data_type=N(P)),B(P,P.l_desc),B(P,P.d_desc),F(P,P.dyn_ltree,P.l_desc.max_code),F(P,P.dyn_dtree,P.d_desc.max_code),B(P,P.bl_desc),ye=18;3<=ye&&P.bl_tree[2*Q[ye]+1]===0;ye--);P.opt_len+=3*(ye+1)+14;var ie=P.opt_len+3+7>>>3,he=P.static_len+3+7>>>3;he<=ie&&(ie=he)}else ie=he=j+5;if(j+4<=ie&&U!==-1)A(P,U,j,ee);else if(P.strategy===4||he===ie)f(P,2+(ee?1:0),3),T(P,$,te);else{for(f(P,4+(ee?1:0),3),U=P.l_desc.max_code+1,j=P.d_desc.max_code+1,ye+=1,f(P,U-257,5),f(P,j-1,5),f(P,ye-4,4),ie=0;ie<ye;ie++)f(P,P.bl_tree[2*Q[ie]+1],3);R(P,P.dyn_ltree,U-1),R(P,P.dyn_dtree,j-1),T(P,P.dyn_ltree,P.dyn_dtree)}y(P),ee&&w(P)},n._tr_tally=function(P,U,j){return P.pending_buf[P.d_buf+2*P.last_lit]=U>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=U&255,P.pending_buf[P.l_buf+P.last_lit]=j&255,P.last_lit++,U===0?P.dyn_ltree[2*j]++:(P.matches++,U--,P.dyn_ltree[2*(K[j]+256+1)]++,P.dyn_dtree[2*(256>U?V[U]:V[256+(U>>>7)])]++),P.last_lit===P.lit_bufsize-1},n._tr_align=function(P){f(P,2,3),v(P,256,$),P.bi_valid===16?(u(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):8<=P.bi_valid&&(P.pen
437ding_buf[P.pending++]=P.bi_buf&255,P.bi_buf>>=8,P.bi_valid-=8)}},{"../utils/common":123}],135:[function(e,t,n){t.exports=function(){this.input=null,this.total_in=this.avail_in=this.next_in=0,this.output=null,this.total_out=this.avail_out=this.next_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],136:[function(e,t,n){(function(r){function i(v,h){for(var g=0,y=v.length-1;0<=y;y--){var w=v[y];w==="."?v.splice(y,1):w===".."?(v.splice(y,1),g++):g&&(v.splice(y,1),g--)}if(h)for(;g--;g)v.unshift("..");return v}function l(v,h){if(v.filter)return v.filter(h);for(var g=[],y=0;y<v.length;y++)h(v[y],y,v)&&g.push(v[y]);return g}var u=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;n.resolve=function(){for(var v="",h=!1,g=arguments.length-1;-1<=g&&!h;g--){var y=0<=g?arguments[g]:r.cwd();if(typeof y!="string")throw new TypeError("Arguments to path.resolve must be strings");y&&(v=y+"/"+v,h=y.charAt(0)==="/")}return v=i(l(v.split("/"),function(w){return!!w}),!h).join("/"),(h?"/":"")+v||"."},n.normalize=function(v){var h=n.isAbsolute(v),g=f(v,-1)==="/";return(v=i(l(v.split("/"),function(y){return!!y}),!h).join("/"))||h||(v="."),v&&g&&(v+="/"),(h?"/":"")+v},n.isAbsolute=function(v){return v.charAt(0)==="/"},n.join=function(){var v=Array.prototype.slice.call(arguments,0);return n.normalize(l(v,function(h,g){if(typeof h!="string")throw new TypeError("Arguments to path.join must be strings");return h}).join("/"))},n.relative=function(v,h){function g(S){for(var T=0;T<S.length&&S[T]==="";T++);for(var B=S.length-1;0<=B&&S[B]==="";B--);return T>B?[]:S.slice(T,B-T+1)}v=n.resolve(v).substr(1),h=n.resolve(h).substr(1),v=g(v.split("/")),h=g(h.split("/"));for(var y=Math.min(v.length,h.length),w=y,C=0;C<y;C++)if(v[C]!==h[C]){w=C;break}for(y=[],C=w;C<v.length;C++)y.push("..");return y=y.concat(h.slice(w)),y.join("/")}
437,n.sep="/",n.delimiter=":",n.dirname=function(v){var h=u.exec(v).slice(1);return v=h[0],h=h[1],!v&&!h?".":(h&&(h=h.substr(0,h.length-1)),v+h)},n.basename=function(v,h){return v=u.exec(v).slice(1)[2],h&&v.substr(-1*h.length)===h&&(v=v.substr(0,v.length-h.length)),v},n.extname=function(v){return u.exec(v).slice(1)[3]};var f="ab".substr(-1)==="b"?function(v,h,g){return v.substr(h,g)}:function(v,h,g){return 0>h&&(h=v.length+h),v.substr(h,g)}}).call(this,e("_process"))},{_process:138}],137:[function(e,t,n){(function(r){function i(l,u,f,v){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var h=arguments.length;switch(h){case 0:case 1:return r.nextTick(l);case 2:return r.nextTick(function(){l.call(null,u)});case 3:return r.nextTick(function(){l.call(null,u,f)});case 4:return r.nextTick(function(){l.call(null,u,f,v)});default:var g=Array(h-1);for(h=0;h<g.length;)g[h++]=arguments[h];return r.nextTick(function(){l.apply(null,g)})}}!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?t.exports=i:t.exports=r.nextTick}).call(this,e("_process"))},{_process:138}],138:[function(e,t,n){function r(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function l(F){if(y===setTimeout)return setTimeout(F,0);if((y===r||!y)&&setTimeout)return y=setTimeout,setTimeout(F,0);try{return y(F,0)}catch{try{return y.call(null,F,0)}catch{return y.call(this,F,0)}}}function u(F){if(w===clearTimeout)return clearTimeout(F);if((w===i||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(F);try{return w(F)}catch{try{return w.call(null,F)}catch{return w.call(this,F)}}}function f(){S&&T&&(S=!1,T.length?C=T.concat(C):B=-1,C.length&&v())}function v(){if(!S){var F=l(f);S=!0;for(var R=C.length;R;){for(T=C,C=[];++B<R;)T&&T[B].run();B=-1,R=C.length}T=null,S=!1,u(F)}}function h(F,R){this.fun=F,this.array=R}function g(){}e=t.exports={};try{var y=typeof setTimeout=="function"?setTimeout:r}catch{y=r}try{var w=typeof clearTimeout=="function"?clearTimeout:i}catch{w=i}var C=[],S=!1,T,B=-1;e.nextTick=function(F){var R=Array(arguments.length-1);if(1<arguments.length)for(var N=1;N<arguments.length;N++)R[N-1]=arguments[N];C.push(new h(F,R)),C.length!==1||S||l(v)},h.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.binding=function(F){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(F){throw Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],139:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":140}],140:[function(e,t,n){function r(h){if(!(this instanceof r))return new r(h);f.call(this,h),v.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||u(l,this)}function l(h){h.end()}n=Object.keys||function(h){var g=[],y;for(y in h)g.push(y);return g},t.exports=r;var u=e("process-nextick-args");t=e("core-util-is"),t.inherits=e("inherits");var f=e("./_stream_readable"),v=e("./_stream_writable");for(t.inherits(r,f),e=n(v.prototype),t=0;t<e.length;t++)n=e[t],r.prototype[n]||(r.prototype[n]=v.prototype[n])},{"./_stream_readable":142,"./_stream_writable":144,"core-util-is":78,inherits:81,"process-nextick-args":137}],141:[function(e,t,n){function r(l){if(!(this instanceof r))return new r(l);i.call(this,l)}t.exports=r;var i=e("./_stream_transform");t=e("core-util-is"),t.inherits=e("inherits"),t.inherits(r,i),r.prototype._transform=function(l,u,f){f(null,l)}},{"./_stream_transform":143,"core-util-is":78,inherits:81}],142:[function(e,t,n){(function(r){function i(ne,le,_e){if(typeof ne.prependListener=="function")return ne.prependListener(le,_e);ne._events&&ne._events[le]?Z(ne._events[le])?ne._events[le].unshift(_e):ne._events[le]=[_e,ne._events[le]]:ne.on(le,_e)}function l(ne,le){z=z||e("./_stream_duplex"),ne=ne||{},this.objectMode=!!ne.objectMode,le instanceof z&&(this.objectMode=this.objectMode||!!ne.readableObjectMode),le=ne.highWaterMark;var _e=this.objectMode?16:16384;this.highWaterMark=le||le===0?le:_e,this.highWaterMark=~~this.highWaterMark,this.buffer=new fe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,ne.encoding&&(de||(de=e("string_decoder/").StringDecoder),this.decoder=new de(ne.encoding),this.encoding=ne.encoding)}function u(ne){if(z=z||e("./_stream_duplex"),!(this instanceof u))return new u(ne);this._readableState=new l(ne,this),this.readable=!0,ne&&typeof ne.read=="function"&&(this._read=ne.read),Y.call(this)}function f(ne,le,_e,M,P){var U=_e,j=null;if(Q.isBuffer(U)||typeof U=="string"||U===null||U===void 0||le.objectMode||(j=new TypeError("Invalid non-string/buffer chunk")),U=j)ne.emit("error",U);else if(_e===null)le.reading=!1,le.ended||(le.decoder&&(_e=le.decoder.end())&&_e.length&&(le.buffer.push(_e),le.length+=le.objectMode?1:_e.length),le.ended=!0,h(ne));else if(le.objectMode||_e&&0<_e.length)if(le.ended&&!P)ne.emit("error",Error("stream.push() after EOF"));else if(le.endEmitted&&P)ne.emit("error",Error("stream.unshift() after end event"));else{if(le.decoder&&!P&&!M){_e=le.decoder.write(_e);var ee=!le.objectMode&&_e.length===0}P||(le.reading=!1),ee||(le.flowing&&le.length===0&&!le.sync?(ne.emit("data",_e),ne.read(0)):(le.length+=le.objectMode?1:_e.length,P?le.buffer.unshift(_e):le.buffer.push(_e),le.needReadable&&h(ne))),le.readingMore||(le.readingMore=!0,X(y,ne,le))}else P||(le.reading=!1);return!le.ended&&(le.needReadable||le.length<le.highWaterMark||le.length===0)}function v(ne,le){if(0>=ne||le.length===0&&le.ended)return 0;if(le.objectMode)return 1;if(ne!==ne)return le.flowing&&le.length?le.buffer.head.data.length:le.length;if(ne>le.highWaterMark){var _e=ne;8388608<=_e?_e=8388608:(_e--,_e|=_e>>>1,_e|=_e>>>2,_e|=_e>>>4,_e|=_e>>>8,_e|=_e>>>16,_e++),le.highWaterMark=_e}return ne<=le.length?ne:le.ended?le.length:(le.needReadable=!0,0)}function h(ne){var le=ne._readableState;le.needReadable=!1,le.emittedReadable||(K("emitReadable",le.flowing),le.emittedReadable=!0,le.sync?X(g,ne):g(ne))}function g(ne){K("emit readable"),ne.emit("readable"),T(ne)}function y(ne,le){for(var _e=le.length;!le.reading&&!le.flowing&&!le.ended&&le.length<le.highWaterMark&&(K("maybeReadMore read 0"),ne.read(0),_e!==le.length);)_e=le.length;le.readingMore=!1}function w(ne){return function(){var le=ne._readableState;K("pipeOnDrain",le.awaitDrain),le.awaitDrain&&le.awaitDrain--,le.awaitDrain===0&&ne.listeners("data").length&&(le.flowing=!0,T(ne))}}function C(ne){K("readable nexttick read 0"),ne.read(0)}function S(ne,le){le.reading||(K("resume read 0"),ne.read(0)),le.resumeScheduled=!1,le.awaitDrain=0,ne.emit("resume"),T(ne),le.flowing&&!le.reading&&ne.read(0)}function T(ne){var le=ne._readableState;for(K("flow",le.flowing);le.flowing&&ne.read()!==null;);}function B(ne,le){if(le.length===0)return null;if(le.objectMode)var _e=le.buffer.shift();else if(!ne||ne>=le.length)_e=le.decoder?le.buffer.join(""):le.buffer.length===1?le.buffer.head.data:le.buffer.concat(le.length),le.buffer.clear();else{if(_e=le.buffer,le=le.decoder,ne<_e.head.data.length)le=_e.head.data.slice(0,ne),_e.head.data=_e.head.data.slice(ne);else{if(ne===_e.head.data.length)_e=_e.shift();else if(le){le=_e.head;var M=1,P=le.data;for(ne-=P.length;le=le.next;){var U=le.data,j=ne>U.length?U.length:ne;if(P=j===U.length?P+U:P+U.slice(0,ne),ne-=j,ne===0){j===U.length?(++M,_e.head=le.next?le.next:_e.tail=null):(_e.head=le,le.data=U.slice(j));break}++M}_e.length-=M,_e=P}else{for(le=$.allocUnsafe(ne),M=_e.head,P=1,M.data.copy(le),ne-=M.data.length;M=M.next;){if(U=M.data,j=ne>U.length?U.length:ne,U.copy(le,le.length-ne,0,j),ne-=j,ne===0){j===U.length?(++P,_e.head=M.next?M.next:_e.tail=null):(_e.head=M,M.data=U.slice(j));break}++P}_e.length-=P,_e=le}le=_e}_e=le}return _e}function F(ne){var le=ne._readableState;if(0<le.length)throw Error('"endReadable()" called on non-empty stream');le.endEmitted||(le.ended=!0,X(R,le,ne))}function R(ne,le){ne.endEmitted||ne.length!==0||(ne.endEmitted=!0,le.readable=!1,le.emit("end"))}function N(ne,le){for(var _e=0,M=ne.length;_e<M;_e++)le(ne[_e],_e)}function A(ne,le){for(var _e=0,M=ne.length;_e<M;_e++)if(ne[_e]===le)return _e;return-1}t.exports=u;var X=e("process-nextick-args"),Z=e("isarray"),z;u.ReadableState=l,e("events");try{var Y=e("stream")}catch{}finally{Y||(Y=e("events").EventEmitter)}
437var Q=e("buffer").Buffer,$=e("buffer-shims"),te=e("core-util-is");te.inherits=e("inherits");var V=e("util"),K=void 0;K=V&&V.debuglog?V.debuglog("stream"):function(){};var fe=e("./internal/streams/BufferList"),de;te.inherits(u,Y),u.prototype.push=function(ne,le){var _e=this._readableState;return _e.objectMode||typeof ne!="string"||(le=le||_e.defaultEncoding,le!==_e.encoding&&(ne=$.from(ne,le),le="")),f(this,_e,ne,le,!1)},u.prototype.unshift=function(ne){return f(this,this._readableState,ne,"",!0)},u.prototype.isPaused=function(){return this._readableState.flowing===!1},u.prototype.setEncoding=function(ne){return de||(de=e("string_decoder/").StringDecoder),this._readableState.decoder=new de(ne),this._readableState.encoding=ne,this},u.prototype.read=function(ne){K("read",ne),ne=parseInt(ne,10);var le=this._readableState,_e=ne;if(ne!==0&&(le.emittedReadable=!1),ne===0&&le.needReadable&&(le.length>=le.highWaterMark||le.ended))return K("read: emitReadable",le.length,le.ended),le.length===0&&le.ended?F(this):h(this),null;if(ne=v(ne,le),ne===0&&le.ended)return le.length===0&&F(this),null;var M=le.needReadable;return K("need readable",M),(le.length===0||le.length-ne<le.highWaterMark)&&(M=!0,K("length less than watermark",M)),le.ended||le.reading?K("reading or ended",!1):M&&(K("do read"),le.reading=!0,le.sync=!0,le.length===0&&(le.needReadable=!0),this._read(le.highWaterMark),le.sync=!1,le.reading||(ne=v(_e,le))),M=0<ne?B(ne,le):null,M===null?(le.needReadable=!0,ne=0):le.length-=ne,le.length===0&&(le.ended||(le.needReadable=!0),_e!==ne&&le.ended&&F(this)),M!==null&&this.emit("data",M),M},u.prototype._read=function(ne){this.emit("error",Error("_read() is not implemented"))},u.prototype.pipe=function(ne,le){function _e(Ue){K("onunpipe"),Ue===he&&P()}function M(){K("onend"),ne.end()}function P(){K("cleanup"),ne.removeListener("close",ee),ne.removeListener("finish",ye),ne.removeListener("drain",be),ne.removeListener("error",j),ne.removeListener("unpipe",_e),he.removeListener("end",M),he.removeListener("end",P),he.removeListener("data",U),Ae=!0,!re.awaitDrain||ne._writableState&&!ne._writableState.needDrain||be()}function U(Ue){K("ondata"),Te=!1,ne.write(Ue)!==!1||Te||((re.pipesCount===1&&re.pipes===ne||1<re.pipesCount&&A(re.pipes,ne)!==-1)&&!Ae&&(K("false write response, pause",he._readableState.awaitDrain),he._readableState.awaitDrain++,Te=!0),he.pause())}function j(Ue){K("onerror",Ue),ie(),ne.removeListener("error",j),ne.listeners("error").length===0&&ne.emit("error",Ue)}function ee(){ne.removeListener("finish",ye),ie()}function ye(){K("onfinish"),ne.removeListener("close",ee),ie()}function ie(){K("unpipe"),he.unpipe(ne)}var he=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=ne;break;case 1:re.pipes=[re.pipes,ne];break;default:re.pipes.push(ne)}re.pipesCount+=1,K("pipe count=%d opts=%j",re.pipesCount,le),le=le&&le.end===!1||ne===r.stdout||ne===r.stderr?P:M,re.endEmitted?X(le):he.once("end",le),ne.on("unpipe",_e);var be=w(he);ne.on("drain",be);var Ae=!1,Te=!1;return he.on("data",U),i(ne,"error",j),ne.once("close",ee),ne.once("finish",ye),ne.emit("pipe",he),re.flowing||(K("pipe resume"),he.resume()),ne},u.prototype.unpipe=function(ne){var le=this._readableState;if(le.pipesCount===0)return this;if(le.pipesCount===1)return ne&&ne!==le.pipes?this:(ne||(ne=le.pipes),le.pipes=null,le.pipesCount=0,le.flowing=!1,ne&&ne.emit("unpipe",this),this);if(!ne){ne=le.pipes;var _e=le.pipesCount;for(le.pipes=null,le.pipesCount=0,le.flowing=!1,le=0;le<_e;le++)ne[le].emit("unpipe",this);return this}return _e=A(le.pipes,ne),_e===-1?this:(le.pipes.splice(_e,1),--le.pipesCount,le.pipesCount===1&&(le.pipes=le.pipes[0]),ne.emit("unpipe",this),this)},u.prototype.on=function(ne,le){return le=Y.prototype.on.call(this,ne,le),ne==="data"?this._readableState.flowing!==!1&&this.resume():ne==="readable"&&(ne=this._readableState,ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&h(this):X(C,this))),le},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(K("resume"),ne.flowing=!0,ne.resumeScheduled||(ne.resumeScheduled=!0,X(S,this,ne))),this},u.prototype.pause=function(){return K("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(K("pause"),this._readableState.flowing=!1,this.emit
437("pause")),this},u.prototype.wrap=function(ne){var le=this._readableState,_e=!1,M=this;ne.on("end",function(){if(K("wrapped end"),le.decoder&&!le.ended){var U=le.decoder.end();U&&U.length&&M.push(U)}M.push(null)}),ne.on("data",function(U){K("wrapped data"),le.decoder&&(U=le.decoder.write(U)),le.objectMode&&U==null||!(le.objectMode||U&&U.length)||M.push(U)||(_e=!0,ne.pause())});for(var P in ne)this[P]===void 0&&typeof ne[P]=="function"&&(this[P]=function(U){return function(){return ne[U].apply(ne,arguments)}}(P));return N(["error","close","destroy","pause","resume"],function(U){ne.on(U,M.emit.bind(M,U))}),M._read=function(U){K("wrapped _read",U),_e&&(_e=!1,ne.resume())},M},u._fromList=B}).call(this,e("_process"))},{"./_stream_duplex":140,"./internal/streams/BufferList":145,_process:138,buffer:77,"buffer-shims":76,"core-util-is":78,events:79,inherits:81,isarray:83,"process-nextick-args":137,"string_decoder/":152,util:75}],143:[function(e,t,n){function r(f){this.afterTransform=function(v,h){var g=f._transformState;g.transforming=!1;var y=g.writecb;return y?(g.writechunk=null,g.writecb=null,h!=null&&f.push(h),y(v),v=f._readableState,v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&f._read(v.highWaterMark),v=void 0):v=f.emit("error",Error("no writecb in Transform class")),v},this.transforming=this.needTransform=!1,this.writeencoding=this.writechunk=this.writecb=null}function i(f){if(!(this instanceof i))return new i(f);u.call(this,f),this._transformState=new r(this);var v=this;this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(h,g){l(v,h,g)}):l(v)})}function l(f,v,h){if(v)return f.emit("error",v);if(h!=null&&f.push(h),v=f._transformState,f._writableState.length)throw Error("Calling transform done when ws.length != 0");if(v.transforming)throw Error("Calling transform done when still transforming");return f.push(null)}t.exports=i;var u=e("./_stream_duplex");t=e("core-util-is"),t.inherits=e("inherits"),t.inherits(i,u),i.prototype.push=function(f,v){return this._transformState.needTransform=!1,u.prototype.push.call(this,f,v)},i.prototype._transform=function(f,v,h){throw Error("_transform() is not implemented")},i.prototype._write=function(f,v,h){var g=this._transformState;g.writecb=h,g.writechunk=f,g.writeencoding=v,g.transforming||(f=this._readableState,(g.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark))},i.prototype._read=function(f){f=this._transformState,f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0}},{"./_stream_duplex":140,"core-util-is":78,inherits:81}],144:[function(e,t,n){(function(r){function i(){}function l(Z,z,Y){this.chunk=Z,this.encoding=z,this.callback=Y,this.next=null}function u(Z,z){B=B||e("./_stream_duplex"),Z=Z||{},this.objectMode=!!Z.objectMode,z instanceof B&&(this.objectMode=this.objectMode||!!Z.writableObjectMode);var Y=Z.highWaterMark,Q=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:Q,this.highWaterMark=~~this.highWaterMark,this.finished=this.ended=this.ending=this.needDrain=!1,this.decodeStrings=Z.decodeStrings!==!1,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){var te=z._writableState,V=te.sync,K=te.writecb;te.writing=!1,te.writecb=null,te.length-=te.writelen,te.writelen=0,$?(--te.pendingcb,V?S(K,$):K($),z._writableState.errorEmitted=!0,z.emit("error",$)):(($=y(te))||te.corked||te.bufferProcessing||!te.bufferedRequest||g(z,te),V?T(h,z,te,$,K):h(z,te,$,K))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new C(this)}function f(Z){if(B=B||e("./_stream_duplex"),!(X.call(f,this)||this instanceof B))return new f(Z);this._writableState=new u(Z,this),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev)),R.call(this)}function v(Z,z,Y,Q,$,te,V){z.writelen=Q,z.writecb=V,z.writing=!0,z.sync=!0,Y?Z._writev($,z.onwrite):Z._write($,te,z.onwrite),z.sync=!1}function h(Z,z,Y,Q){!Y&&z.length===0&&z.needDrain&&(z.needDrain=!1,Z.emit("drain")),z.pendingcb--,Q(),w(Z,z)}function g(Z,z){z.bufferProcessing=!0;var Y=z.bufferedRequest;if(Z._writev&&Y&&Y.next){var Q=Array(z.bufferedRequestCount),$=z.corkedRequestsFree;$.entry=Y;for(var te=0;Y;)Q[te]=Y,Y=Y.next,te+=1;v(Z,z,!0,z.length,Q,"",$.finish),z.pendingcb++,z.lastBufferedRequest=null,$.next?(z.corkedRequestsFree=$.next,$.next=null):z.corkedRequestsFree=new C(z)}else{for(;Y&&(Q=Y.chunk,v(Z,z,!1,z.objectMode?1:Q.length,Q,Y.encoding,Y.callback),Y=Y.next,!z.writing););Y===null&&(z.lastBufferedRequest=null)}z.bufferedRequestCount=0,z.bufferedRequest=Y,z.bufferProcessing=!1}function y(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function w(Z,z){var Y=y(z);return Y&&(z.pendingcb===0?(z.prefinished||(z.prefinished=!0,Z.emit("prefinish")),z.finished=!0,Z.emit("finish")):z.prefinished||(z.prefinished=!0,Z.emit("prefinish"))),Y}function C(Z){var z=this;this.entry=this.next=null,this.finish=function(Y){var Q=z.entry;for(z.entry=null;Q;){var $=Q.callback;Z.pendingcb--,$(Y),Q=Q.next}Z.corkedRequestsFree?Z.corkedRequestsFree.next=z:Z.corkedRequestsFree=z}}t.exports=f;var S=e("process-nextick-args"),T=!r.browser&&-1<["v0.10","v0.9."].indexOf(r.ver
437sion.slice(0,5))?setImmediate:S,B;f.WritableState=u,r=e("core-util-is"),r.inherits=e("inherits");var F={deprecate:e("util-deprecate")};try{var R=e("stream")}catch{}finally{R||(R=e("events").EventEmitter)}var N=e("buffer").Buffer,A=e("buffer-shims");if(r.inherits(f,R),u.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,z=[];Z;)z.push(Z),Z=Z.next;return z},function(){try{Object.defineProperty(u.prototype,"buffer",{get:F.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"){var X=Function.prototype[Symbol.hasInstance];Object.defineProperty(f,Symbol.hasInstance,{value:function(Z){return X.call(this,Z)?!0:Z&&Z._writableState instanceof u}})}else X=function(Z){return Z instanceof this};f.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},f.prototype.write=function(Z,z,Y){var Q=this._writableState,$=!1,te=N.isBuffer(Z);if(typeof z=="function"&&(Y=z,z=null),te?z="buffer":z||(z=Q.defaultEncoding),typeof Y!="function"&&(Y=i),Q.ended)Q=Y,te=Error("write after end"),this.emit("error",te),S(Q,te);else{var V;if(!(V=te)){V=Y;var K=!0,fe=!1;Z===null?fe=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||Q.objectMode||(fe=new TypeError("Invalid non-string/buffer chunk")),fe&&(this.emit
437("error",fe),S(V,fe),K=!1),V=K}V&&(Q.pendingcb++,$=Z,te||(te=$,Q.objectMode||Q.decodeStrings===!1||typeof te!="string"||(te=A.from(te,z)),$=te,N.isBuffer($)&&(z="buffer")),Z=Q.objectMode?1:$.length,Q.length+=Z,te=Q.length<Q.highWaterMark,te||(Q.needDrain=!0),Q.writing||Q.corked?(Z=Q.lastBufferedRequest,Q.lastBufferedRequest=new l($,z,Y),Z?Z.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1):v(this,Q,!1,Z,$,z,Y),$=te)}return $},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,Z.writing||Z.corked||Z.finished||Z.bufferProcessing||!Z.bufferedRequest||g(this,Z))},f.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((Z+"").toLowerCase())))throw new TypeError("Unknown encoding: "+Z);return this._writableState.defaultEncoding=Z,this},f.prototype._write=function(Z,z,Y){Y(Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(Z,z,Y){var Q=this._writableState;typeof Z=="function"?(Y=Z,z=Z=null):typeof z=="function"&&(Y=z,z=null),Z!=null&&this.write(Z,z),Q.corked&&(Q.corked=1,this.uncork()),!Q.ending&&!Q.finished&&(Z=Y,Q.ending=!0,w(this,Q),Z&&(Q.finished?S(Z):this.once("finish",Z)),Q.ended=!0,this.writable=!1)}}).call(this,e("_process"))},{"./_stream_duplex":140,_process:138,buffer:77,"buffer-shims":76,"core-util-is":78,events:79,inherits:81,"process-nextick-args":137,"util-deprecate":154}],145:[function(e,t,n){function r(){this.tail=this.head=null,this.length=0}e("buffer");var i=e("buffer-shims");t.exports=r,r.prototype.push=function(l){l={data:l,next:null},0<this.length?this.tail.next=l:this.head=l,this.tail=l,++this.length},r.prototype.unshift=function(l){l={data:l,next:this.head},this.length===0&&(this.tail=l),this.head=l,++this.length},r.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,l}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(l){if(this.length===0)return"";for(var u=this.head,f=""+u.data;u=u.next;)f+=l+u.data;return f},r.prototype.concat=function(l){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;l=i.allocUnsafe(l>>>0);for(var u=this.head,f=0;u;)u.data.copy(l,f),f+=u.data.length,u=u.next;return l}},{buffer:77,"buffer-shims":76}],146:[function(e,t,n){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":141}],147:[function(e,t,n){var r=e("_process");e:{try{var i=e("stream");break e}catch{}i=void 0}n=t.exports=e("./lib/_stream_readable.js"),n.Stream=i||n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),!r.browser&&r.env.READABLE_STREAM==="disable"&&i&&(t.exports=i)},{"./lib/_stream_duplex.js":140,"./lib/_stream_passthrough.js":141,"./lib/_stream_readable.js":142,"./lib/_stream_transform.js":143,"./lib/_stream_writable.js":144,_process:138}],148:[function(e,t,n){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":143}],149:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":144}],150:[function(e,t,n){(function(r){(function(i){function l(ie,he){if(!(this instanceof l))return new l(ie,he);for(var re=0,be=Z.length;re<be;re++)this[Z[re]]="";this.q=this.c="",this.bufferCheckPosition=i.MAX_BUFFER_LENGTH,this.opt=he||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!ie,this.noscript=!(!ie&&!this.opt.noscript),this.state=ee.BEGIN,this.ENTITIES=(this.strictEntities=this.opt.strictEntities)?Object.create(i.XML_ENTITIES):Object.create(i.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(_e)),(this.trackPosition=this.opt.position!==!1)&&(this.position=this.line=this.column=0),this.onready&&this.onready(void 0)}function u(ie,he){if(!(this instanceof u))return new u(ie,he);z.apply(this),this._parser=new l(ie,he),this.readable=this.writable=!0;var re=this;this._parser.onend=function(){re.emit("end")},this._parser.onerror=function(be){re.emit("error",be),re._parser.error=null},this._decoder=null,Y.forEach(function(be){Object.defineProperty(re,"on"+be,{get:function(){return re._parser["on"+be]},set:function(Ae){if(!Ae)return re.removeAllListeners(be),re._parser["on"+be]=Ae;re.on(be,Ae)},enumerable:!0,configurable:!1})})}function f(ie){return ie.split("").reduce(function(he,re){return he[re]=!0,he},{})}function v(ie,he){return Object.prototype.toString.call(ie)==="[object RegExp]"?!!he.match(ie):ie[he]}function h(ie,he,re){ie.textNode&&g(ie),ie[he]&&ie[he](re)}function g(ie){ie.textNode=y(ie.opt,ie.textNode),ie.textNode&&ie.ontext&&ie.ontext(ie.textNode),ie.textNode=""}function y(ie,he){return ie.trim&&(he=he.trim()),ie.normalize&&(he=he.replace(/\s+/g," ")),he}function w(ie,he){return g(ie),ie.trackPosition&&(he+=` 438Line: `+ie.line+` 439Column: `+ie.column+` 440Char: `+ie.c),he=Error(he),ie.error=he,ie.onerror&&ie.onerror(he),ie}function C(ie){return ie.sawRoot&&!ie.closedRoot&&S(ie,"Unclosed root tag"),ie.state!==ee.BEGIN&&ie.state!==ee.BEGIN_WHITESPACE&&ie.state!==ee.TEXT&&w(ie,"Unexpected end"),g(ie),ie.c="",ie.closed=!0,ie.onend&&ie.onend(void 0),l.call(ie,ie.strict,ie.opt),ie}function S(ie,he){if(typeof ie!="object"||!(ie instanceof l))throw Error("bad call to strictFail");ie.strict&&w(ie,he)}function T(ie,he){var re=0>ie.indexOf(":")?["",ie]:ie.split(":"),be=re[0];return re=re[1],he&&ie==="xmlns"&&(be="xmlns",re=""),{prefix:be,local:re}}function B(ie){if(ie.strict||(ie.attribName=ie.attribName[ie.looseCase]()),ie.attribList.indexOf(ie.attribName)===-1&&!ie.tag.attributes.hasOwnProperty(ie.attribName))if(ie.opt.xmlns){var he=T(ie.attribName,!0),re=he.local;if(he.prefix==="xmlns")if(re==="xml"&&ie.attribValue!==ne)S(ie,"xml: prefix must be bound to "+ne+` 441Actual: `+ie.attribValue);else if(re==="xmlns"&&ie.attribValue!==le)S(ie,"xmlns: prefix must be bound to "+le+` 442Actual: `+ie.attribValue);else{he=ie.tag;var be=ie.tags[ie.tags.length-1]||ie;he.ns===be.ns&&(he.ns=Object.create(be.ns)),he.ns[re]=ie.attribValue}ie.attribList.push([ie.attribName,ie.attribValue])}else ie.tag.attributes[ie.attribName]=ie.attribValue,h(ie,"onattribute",{name:ie.attribName,value:ie.attribValue});ie.attribName=ie.attribValue=""}function F(ie,he){if(ie.opt.xmlns){var re=ie.tag,be=T(ie.tagName);re.prefix=be.prefix,re.local=be.local,re.uri=re.ns[be.prefix]||"",re.prefix&&!re.uri&&(S(ie,"Unbound namespace prefix: "+JSON.stringify(ie.tagName)),re.uri=be.prefix),be=ie.tags[ie.tags.length-1]||ie,re.ns&&be.ns!==re.ns&&Object.keys(re.ns).forEac
442h(function(rt){h(ie,"onopennamespace",{prefix:rt,uri:re.ns[rt]})}),be=0;for(var Ae=ie.attribList.length;be<Ae;be++){var Te=ie.attribList[be],Ue=Te[0],Oe=Te[1],De=T(Ue,!0);Te=De.prefix;var $e=Te===""?"":re.ns[Te]||"";Oe={name:Ue,value:Oe,prefix:Te,local:De.local,uri:$e},Te&&Te!=="xmlns"&&!$e&&(S(ie,"Unbound namespace prefix: "+JSON.stringify(Te)),Oe.uri=Te),ie.tag.attributes[Ue]=Oe,h(ie,"onattribute",Oe)}ie.attribList.length=0}ie.tag.isSelfClosing=!!he,ie.sawRoot=!0,ie.tags.push(ie.tag),h(ie,"onopentag",ie.tag),he||(ie.noscript||ie.tagName.toLowerCase()!=="script"?ie.state=ee.TEXT:ie.state=ee.SCRIPT,ie.tag=null,ie.tagName=""),ie.attribName=ie.attribValue="",ie.attribList.length=0}function R(ie){if(ie.tagName){if(ie.script){if(ie.tagName!=="script"){ie.script+="</"+ie.tagName+">",ie.tagName="",ie.state=ee.SCRIPT;return}h(ie,"onscript",ie.script),ie.script=""}var he=ie.tags.length,re=ie.tagName;ie.strict||(re=re[ie.looseCase]());for(var be=re;he--&&ie.tags[he].name!==be;)S(ie,"Unexpected close tag");if(0>he)S(ie,"Unmatched closing tag: "+ie.tagName),ie.textNode+="</"+ie.tagName+">";else{for(ie.tagName=re,re=ie.tags.length;re-- >he;){var Ae=ie.tag=ie.tags.pop();ie.tagName=ie.tag.name,h(ie,"onclosetag",ie.tagName);for(var Te in Ae.ns);be=ie.tags[ie.tags.length-1]||ie,ie.opt.xmlns&&Ae.ns!==be.ns&&Object.keys(Ae.ns).forEach(function(Ue){h(ie,"onclosenamespace",{prefix:Ue,uri:Ae.ns[Ue]})})}he===0&&(ie.closedRoot=!0),ie.tagName=ie.attribValue=ie.attribName="",ie.attribList.length=0}}else S(ie,"Weird empty close tag."),ie.textNode+="</>";ie.state=ee.TEXT}function N(ie){var he=ie.entity,re=he.toLowerCase(),be="";if(ie.ENTITIES[he])return ie.ENTITIES[he];if(ie.ENTITIES[re])return ie.ENTITIES[re];if(he=re,he.charAt(0)==="#")if(he.charAt(1)==="x"){he=he.slice(2);var Ae=parseInt(he,16);be=Ae.toString(16)}else he=he.slice(1),Ae=parseInt(he,10),be=Ae.toString(10);return he=he.replace(/^0+/,""),be.toLowerCase()!==he?(S(ie,"Invalid character entity"),"&"+ie.entity+";"):String.fromCodePoint(Ae)}function A(ie,he){he==="<"?(ie.state=ee.OPEN_WAKA,ie.startTagPosition=ie.position):v(Q,he)||(S(ie,"Non-whitespace before first tag."),ie.textNode=he,ie.state=ee.TEXT)}function X(ie,he){var re="";return he<ie.length&&(re=ie.charAt(he)),re}i.parser=function(ie,he){return new l(ie,he)},i.SAXParser=l,i.SAXStream=u,i.createStream=function(ie,he){return new u(ie,he)},i.MAX_BUFFER_LENGTH=65536;var Z="comment sgmlDecl textNode tagName doctype procInstName procInstBody entity attribName attribValue cdata script".split(" ");i.EVENTS="text processinginstruction sgmldeclaration doctype comment attribute opentag closetag opencdata cdata closecdata error end ready script opennamespace closenamespace".split(" "),Object.create||(Object.create=function(ie){function he(){}return he.prototype=ie,new he}),Object.keys||(Object.keys=function(ie){var he=[],re;for(re in ie)ie.hasOwnProperty(re)&&he.push(re);return he}),l.prototype={end:function(){C(this)},write:function(ie){if(this.error)throw this.error;if(this.closed)return w(this,"Cannot write after close. Assign an onready handler.");if(ie===null)return C(this);typeof ie=="object"&&(ie=ie.toString());for(var he=0,re;this.c=re=X(ie,he++),!!re;)switch(this.trackPosition&&(this.position++,re===` 443`?(this.line++,this.column=0):this.column++),this.state){case ee.BEGIN:if(this.state=ee.BEGIN_WHITESPACE,re==="\uFEFF")continue;A(this,re);continue;case ee.BEGIN_WHITESPACE:A(this,re);continue;case ee.TEXT:if(this.sawRoot&&!this.closedRoot){for(var be=he-1;re&&re!=="<"&&re!=="&";)(re=X(ie,he++))&&this.trackPosition&&(this.position++,re===` 444`?(this.line++,this.column=0):this.column++);this.textNode+=ie.substring(be,he-1)}re!=="<"||this.sawRoot&&this.closedRoot&&!this.strict?(v(Q,re)||this.sawRoot&&!this.closedRoot||S(this,"Text data outside of root node."),re==="&"?this.state=ee.TEXT_ENTITY:this.textNode+=re):(this.state=ee.OPEN_WAKA,this.startTagPosition=this.position);continue;case ee.SCRIPT:re==="<"?this.state=ee.SCRIPT_ENDING:this.script+=re;continue;case ee.SCRIPT_ENDING:re==="/"?this.state=ee.CLOSE_TAG:(this.script+="<"+re,this.state=ee.SCRIPT);continue;case ee.OPEN_WAKA:re==="!"?(this.state=ee.SGML_DECL,this.sgmlDecl=""):v(Q,re)||(v(M,re)?(this.state=ee.OPEN_TAG,this.tagName=re):re==="/"?(this.state=ee.CLOSE_TAG,this.tagName=""):re==="?"?(this.state=ee.PROC_INST,this.procInstName=this.procInstBody=""):(S(this,"Unencoded <"),this.startTagPosition+1<this.position&&(re=Array(this.position-this.startTagPosition).join(" ")+re),this.textNode+="<"+re,this.state=ee.TEXT));continue;case ee.SGML_DECL:(this.sgmlDecl+re).toUpperCase()===fe?(h(this,"onopencdata"),this.state=ee.CDATA,this.cdata=this.sgmlDecl=""):this.sgmlDecl+re==="--"?(this.state=ee.COMMENT,this.sgmlDecl=this.comment=""):(this.sgmlDecl+re).toUpperCase()===de?(this.state=ee.DOCTYPE,(this.doctype||this.sawRoot)&&S(this,"Inappropriately located doctype declaration"),this.sgmlDecl=this.doctype=""):re===">"?(h(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=ee.TEXT):(v(V,re)&&(this.state=ee.SGML_DECL_QUOTED),this.sgmlDecl+=re);continue;case ee.SGML_DECL_QUOTED:re===this.q&&(this.state=ee.SGML_DECL,this.q=""),this.sgmlDecl+=re;continue;case ee.DOCTYPE:re===">"?(this.state=ee.TEXT,h(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=re,re==="["?this.state=ee.DOCTYPE_DTD:v(V,re)&&(this.state=ee.DOCTYPE_QUOTED,this.q=re));continue;case ee.DOCTYPE_QUOTED:this.doctype+=re,re===this.q&&(this.q="",this.state=ee.DOCTYPE);continue;case ee.DOCTYPE_DTD:this.doctype+=re,re==="]"?this.state=ee.DOCTYPE:v(V,re)&&(this.state=ee.DOCTYPE_DTD_QUOTED,this.q=re);continue;case ee.DOCTYPE_DTD_QUOTED:this.doctype+=re,re===this.q&&(this.state=ee.DOCTYPE_DTD,this.q="");continue;case ee.COMMENT:re==="-"?this.state=ee.COMMENT_ENDING:this.comment+=re;continue;case ee.COMMENT_ENDING:re==="-"?(this.state=ee.COMMENT_ENDED,(this.comment=y(this.opt,this.comment))&&h(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+re,this.state=ee.COMMENT);continue;case ee.COMMENT_ENDED:re!==">"?(S(this,"Malformed comment"),this.comment+="--"+re,this.state=ee.COMMENT):this.state=ee.TEXT;continue;case ee.CDATA:re==="]"?this.state=ee.CDATA_ENDING:this.cdata+=re;continue;case ee.CDATA_ENDING:re==="]"?this.state=ee.CDATA_ENDING_2:(this.cdata+="]"
444+re,this.state=ee.CDATA);continue;case ee.CDATA_ENDING_2:re===">"?(this.cdata&&h(this,"oncdata",this.cdata),h(this,"onclosecdata"),this.cdata="",this.state=ee.TEXT):re==="]"?this.cdata+="]":(this.cdata+="]]"+re,this.state=ee.CDATA);continue;case ee.PROC_INST:re==="?"?this.state=ee.PROC_INST_ENDING:v(Q,re)?this.state=ee.PROC_INST_BODY:this.procInstName+=re;continue;case ee.PROC_INST_BODY:if(!this.procInstBody&&v(Q,re))continue;re==="?"?this.state=ee.PROC_INST_ENDING:this.procInstBody+=re;continue;case ee.PROC_INST_ENDING:re===">"?(h(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=ee.TEXT):(this.procInstBody+="?"+re,this.state=ee.PROC_INST_BODY);continue;case ee.OPEN_TAG:if(v(P,re))this.tagName+=re;else{this.strict||(this.tagName=this.tagName[this.looseCase]()),be=this.tags[this.tags.length-1]||this;var Ae=this.tag={name:this.tagName,attributes:{}};this.opt.xmlns&&(Ae.ns=be.ns),this.attribList.length=0,re===">"?F(this):re==="/"?this.state=ee.OPEN_TAG_SLASH:(v(Q,re)||S(this,"Invalid character in tag name"),this.state=ee.ATTRIB)}continue;case ee.OPEN_TAG_SLASH:re===">"?(F(this,!0),R(this)):(S(this,"Forward-slash in opening tag not followed by >"),this.state=ee.ATTRIB);continue;case ee.ATTRIB:if(v(Q,re))continue;re===">"?F(this):re==="/"?this.state=ee.OPEN_TAG_SLASH:v(M,re)?(this.attribName=re,this.attribValue="",this.state=ee.ATTRIB_NAME):S(this,"Invalid attribute name");continue;case ee.ATTRIB_NAME:re==="="?this.state=ee.ATTRIB_VALUE:re===">"?(S(this,"Attribute without value"),this.attribValue=this.attribName,B(this),F(this)):v(Q,re)?this.state=ee.ATTRIB_NAME_SAW_WHITE:v(P,re)?this.attribName+=re:S(this,"Invalid attribute name");continue;case ee.ATTRIB_NAME_SAW_WHITE:if(re==="=")this.state=ee.ATTRIB_VALUE;else{if(v(Q,re))continue;S(this,"Attribute without value"),this.attribValue=this.tag.attributes[this.attribName]="",h(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",re===">"?F(this):v(M,re)?(this.attribName=re,this.state=ee.ATTRIB_NAME):(S(this,"Invalid attribute name"),this.state=ee.ATTRIB)}continue;case ee.ATTRIB_VALUE:if(v(Q,re))continue;v(V,re)?(this.q=re,this.state=ee.ATTRIB_VALUE_QUOTED):(S(this,"Unquoted attribute value"),this.state=ee.ATTRIB_VALUE_UNQUOTED,this.attribValue=re);continue;case ee.ATTRIB_VALUE_QUOTED:if(re!==this.q){re==="&"?this.state=ee.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=re;continue}B(this),this.q="",this.state=ee.ATTRIB_VALUE_CLOSED;continue;case ee.ATTRIB_VALUE_CLOSED:v(Q,re)?this.state=ee.ATTRIB:re===">"?F(this):re==="/"?this.state=ee.OPEN_TAG_SLASH:v(M,re)?(S(this,"No whitespace between attributes"),this.attribName=re,this.attribValue="",this.state=ee.ATTRIB_NAME):S(this,"Invalid attribute name");continue;case ee.ATTRIB_VALUE_UNQUOTED:if(!v(K,re)){re==="&"?this.state=ee.ATTRIB_VALUE_ENTITY_U:this.attribValue+=re;continue}B(this),re===">"?F(this):this.state=ee.ATTRIB;continue;case ee.CLOSE_TAG:if(this.tagName)re===">"?R(this):v(P,re)?this.tagName+=re:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=ee.SCRIPT):(v(Q,re)||S(this,"Invalid tagname in closing tag"),this.state=ee.CLOSE_TAG_SAW_WHITE);else{if(v(Q,re))continue;v(M,re)?this.tagName=re:this.script?(this.script+="</"+re,this.state=ee.SCRIPT):S(this,"Invalid tagname in closing tag.")}continue;case ee.CLOSE_TAG_SAW_WHITE:if(v(Q,re))continue;re===">"?R(this):S(this,"Invalid characters in closing tag");continue;case ee.TEXT_ENTITY:case ee.ATTRIB_VALUE_ENTITY_Q:case ee.ATTRIB_VALUE_ENTITY_U:switch(this.state){case ee.TEXT_ENTITY:var Te=ee.TEXT,Ue="textNode";break;case ee.ATTRIB_VALUE_ENTITY_Q:Te=ee.ATTRIB_VALUE_QUOTED,Ue="attribValue";break;case ee.ATTRIB_VALUE_ENTITY_U:Te=ee.ATTRIB_VALUE_UNQUOTED,Ue="attribValue"}re===";"?(this[Ue]+=N(this),this.entity="",this.state=Te):v(this.entity.length?j:U,re)?this.entity+=re:(S(this,"Invalid character in entity name"),this[Ue]+="&"+this.entity+re,this.entity="",this.state=Te);continue;default:throw Error(this,"Unknown state: "+this.state)}if(this.position>=this.bufferCheckPosition){for(ie=Math.max(i.MAX_BUFFER_LENGTH,10),re=he=0,Te=Z.length;re<Te;re++){if(Ue=this[Z[re]].length,Ue>ie)switch(Z[re]){case"textNode":g(this);break;case"cdata":h(this,"oncdata",this.cdata),this.cdata="";break;case"script":h(this,"onscript",this.script),this.script="";break;default:w(this,"Max buffer length exceeded: "+Z[re])}he=Math.max(he,Ue)}this.bufferCheckPosition=i.MAX_BUFFER_LENGTH-he+this.position}return this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){g(this),this.cdata!==""&&(h(this,"oncdata",this.cdata),this.cdata=""),this.script!==""&&(h(this,"onscript",this.script),this.script="")}};try{var z=e("stream").Stream}catch{z=function(){}}var Y=i.EVENTS.filter(function(ie){return ie!=="error"&&ie!=="end"});u.prototype=Object.create(z.prototype,{constructor:{value:u}}),u.prototype.write=function(ie){return typeof r=="function"&&typeof r.isBuffer=="function"&&r.isBuffer(ie)&&(this._decoder||(this._decoder=new(e("string_decoder")).StringDecoder("utf8")),ie=this._decoder.write(ie)),this._parser.write(ie.toString()),this.emit
vendor: 2,801 bytes, lines 444-445
444("data",ie),!0},u.prototype.end=function(ie){return ie&&ie.length&&this.write(ie),this._parser.end(),!0},u.prototype.on=function(ie,he){var re=this;return re._parser["on"+ie]||Y.indexOf(ie)===-1||(re._parser["on"+ie]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,ie),re.emit.apply(re,be)}),z.prototype.on.call(re,ie,he)};var Q=`\r 445 `,$="0124356789",te="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",V=`'"`,K=Q+">",fe="[CDATA[",de="DOCTYPE",ne="http://www.w3.org/XML/1998/namespace",le="http://www.w3.org/2000/xmlns/",_e={xml:ne,xmlns:le};Q=f(Q),$=f($),te=f(te);var M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,P=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,U=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;V=f(V),K=f(K);var ee=0;i.STATE={BEGIN:ee++,BEGIN_WHITESPACE:ee++,TEXT:ee++,TEXT_ENTITY:ee++,OPEN_WAKA:ee++,SGML_DECL:ee++,SGML_DECL_QUOTED:ee++,DOCTYPE:ee++,DOCTYPE_QUOTED:ee++,DOCTYPE_DTD:ee++,DOCTYPE_DTD_QUOTED:ee++,COMMENT_STARTING:ee++,COMMENT:ee++,COMMENT_ENDING:ee++,COMMENT_ENDED:ee++,CDATA:ee++,CDATA_ENDING:ee++,CDATA_ENDING_2:ee++,PROC_INST:ee++,PROC_INST_BODY:ee++,PROC_INST_ENDING:ee++,OPEN_TAG:ee++,OPEN_TAG_SLASH:ee++,ATTRIB:ee++,ATTRIB_NAME:ee++,ATTRIB_NAME_SAW_WHITE:ee++,ATTRIB_VALUE:ee++,ATTRIB_VALUE_QUOTED:ee++,ATTRIB_VALUE_CLOSED:ee++,ATTRIB_VALUE_UNQUOTED:ee++,ATTRIB_VALUE_ENTITY_Q:ee++,ATTRIB_VALUE_ENTITY_U:ee++,CLOSE_TAG:ee++,CLOSE_TAG_SAW_WHITE:ee++,SCRIPT:ee++,SCRIPT_ENDING:ee++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
44574,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(i.ENTITIES).forEach(function(ie){var he=i.ENTITIES[ie];he=typeof he=="number"?String.fromCharCode(he):he,i.ENTITIES[ie]=he});for(var ye in i.STATE)i.STATE[i.STATE[ye]]=ye;ee=i.STATE,String.fromCodePoint||function(){var ie=String.fromCharCode,he=Math.floor,re=function(){var be=[],Ae=-1,Te=arguments.length;if(!Te)return"";for(var Ue="";++Ae<Te;){var Oe=Number(arguments[Ae]);if(!isFinite(Oe)||0>Oe||1114111<Oe||he(Oe)!==Oe)throw RangeError("Invalid code point: "+Oe);if(65535>=Oe)be.push(Oe);else{Oe-=65536;var De=(Oe>>10)+55296;Oe=Oe%1024+56320,be.push(De,Oe)}(Ae+1===Te||16384<be.length)&&(Ue+=ie.apply(null,be),be.length=0)}return Ue};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:re,configurable:!0,writable:!0}):String.fromCodePoint=re}()})(typeof n=="undefined"?this.sax={}:n)}).call(this,e("buffer").Buffer)},{buffer:77,stream:151,string_decoder:152}],151:[function(e,t,n){function r(){i.call(this)}t.exports=r;var i=e("events").EventEmitter;e("inherits")(r,i),r.Readable=e("readable-stream/readable.js"),r.Writable=e("readable-stream/writable.js"),r.Duplex=e("readable-stream/duplex.js"),r.Transform=e("readable-stream/transform.js"),r.PassThrough=e("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(l,u){function f(T){l.writable&&l.write(T)===!1&&C.pause&&C.pause()}function v(){C.readable&&C.resume&&C.resume()}function h(){S||(S=!0,l.end())}function g(){S||(S=!0,typeof l.destroy=="function"&&l.destroy())}function y(T){if(w(),i.listenerCount(this,"error")===0)throw T}function w(){C.removeListener("data",f),l.removeListener("drain",v),C.removeListener("end",h),C.removeListener("close",g),C.removeListener("error",y),l.removeListener("error",y),C.removeListener("end",w),C.removeListener("close",w),l.removeListener("close",w)}var C=this;C.on("data",f),l.on("drain",v),l._isStdio||u&&u.end===!1||(C.on("end",h),C.on("close",g));var S=!1;return C.on("error",y),l.on("error",y),C.on("end",w),C.on("close",w),l.on("close",w),l.emit("pipe",C),l}},{events:79,inherits:81,"readable-stream/duplex.js":139,"readable-stream/passthrough.js":146,"readable-stream/readable.js":147,"readable-stream/transform.js":148,"readable-stream/writable.js":149}],152:[function(e,t,n){function r(v){return v.toString(this.encoding)}function i(v){this.charLength=(this.charReceived=v.length%2)?2:0}function l(v){this.charLength=(this.charReceived=v.length%3)?3:0}var u=e("buffer").Buffer,f=u.isEncoding||function(v){switch(v&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e=n.StringDecoder=function(v){if(this.encoding=(v||"utf8").toLowerCase().replace(/[-_]/,""),v&&!f(v))throw Error("Unknown encoding: "+v);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=l;break;default:this.write=r;return}this.charBuffer=new u(6),this.charLength=this.charReceived=0},e.prototype.write=function(v){for(var h="";this.charLength;){if(h=v.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:v.length,v.copy(this.charBuffer,this.charReceived,0,h),this.charReceived+=h,this.charReceived<this.charLength)return"";v=v.slice(h,v.length),h=this.charBuffer.slice(0,this.charLength).toString(this.encoding);
445var g=h.charCodeAt(h.length-1);if(55296<=g&&56319>=g)this.charLength+=this.surrogateSize,h="";else{if(this.charReceived=this.charLength=0,v.length===0)return h;break}}this.detectIncompleteChar(v);var y=v.length;return this.charLength&&(v.copy(this.charBuffer,0,v.length-this.charReceived,y),y-=this.charReceived),h+=v.toString(this.encoding,0,y),y=h.length-1,g=h.charCodeAt(y),55296<=g&&56319>=g?(g=this.surrogateSize,this.charLength+=g,this.charReceived+=g,this.charBuffer.copy(this.charBuffer,g,0,g),v.copy(this.charBuffer,0,0,g),h.substring(0,y)):h},e.prototype.detectIncompleteChar=function(v){for(var h=3<=v.length?3:v.length;0<h;h--){var g=v[v.length-h];if(h==1&&g>>5==6){this.charLength=2;break}if(2>=h&&g>>4==14){this.charLength=3;break}if(3>=h&&g>>3==30){this.charLength=4;break}}this.charReceived=h},e.prototype.end=function(v){var h="";return v&&v.length&&(h=this.write(v)),this.charReceived&&(v=this.encoding,h+=this.charBuffer.slice(0,this.charReceived).toString(v)),h}},{buffer:77}],153:[function(e,t,n){(function(){function r(ie){return function(he,re,be,Ae){re=X(re,Ae,4);var Te=!V(he)&&A.keys(he),Ue=(Te||he).length,Oe=0<ie?0:Ue-1;3>arguments.length&&(be=he[Te?Te[Oe]:Oe],Oe+=ie);for(var De=re,$e=be;0<=Oe&&Oe<Ue;Oe+=ie){var rt=Te?Te[Oe]:Oe;$e=De($e,he[rt],rt,he)}return $e}}function i(ie){return function(he,re,be){re=Z(re,be),be=te(he);for(var Ae=0<ie?0:be-1;0<=Ae&&Ae<be;Ae+=ie)if(re(he[Ae],Ae,he))return Ae;return-1}}function l(ie,he,re){return function(be,Ae,Te){var Ue=0,Oe=te(be);if(typeof Te=="number")0<ie?Ue=0<=Te?Te:Math.max(Te+Oe,Ue):Oe=0<=Te?Math.min(Te+1,Oe):Te+Oe+1;else if(re&&Te&&Oe)return Te=re(be,Ae),be[Te]===Ae?Te:-1;if(Ae!==Ae)return Te=he(w.call(be,Ue,Oe),A.isNaN),0<=Te?Te+Ue:-1;for(Te=0<ie?Ue:Oe-1;0<=Te&&Te<Oe;Te+=ie)if(be[Te]===Ae)return Te;return-1}}function u(ie,he){var re=le.length,be=ie.constructor;be=A.isFunction(be)&&be.prototype||g;var Ae="constructor";for(A.has(ie,Ae)&&!A.contains(he,Ae)&&he.push(Ae);re--;)Ae=le[re],Ae in ie&&ie[Ae]!==be[Ae]&&!A.contains(he,Ae)&&he.push(Ae)}var f=this,v=f._,h=Array.prototype,g=Object.prototype,y=h.push,w=h.slice,C=g.toString,S=g.hasOwnProperty,T=Array.isArray,B=Object.keys,F=Function.prototype.bind,R=Object.create,N=function(){},A=function(ie){if(ie instanceof A)return ie;if(!(this instanceof A))return new A(ie);this._wrapped=ie};typeof n!="undefined"?(typeof t!="undefined"&&t.exports&&(n=t.exports=A),n._=A):f._=A,A.VERSION="1.8.3";var X=function(ie,he,re){if(he===void 0)return ie;switch(re==null?3:re){case 1:return function(be){return ie.call(he,be)};case 2:return function(be,Ae){return ie.call(he,be,Ae)};case 3:return function(be,Ae,Te){return ie.call(he,be,Ae,Te)};case 4:return function(be,Ae,Te,Ue){return ie.call(he,be,Ae,Te,Ue)}}return function(){return ie.apply(he,arguments)}},Z=function(ie,he,re){return ie==null?A.identity:A.isFunction(ie)?X(ie,he,re):A.isObject(ie)?A.matcher(ie):A.property(ie)};A.iteratee=function(ie,he){return Z(ie,he,1/0)};var z=function(ie,he){return function(re){var be=arguments.length;if(2>be||re==null)return re;for(var Ae=1;Ae<be;Ae++)for(var Te=arguments[Ae],Ue=ie(Te),Oe=Ue.length,De=0;De<Oe;De++){var $e=Ue[De];he&&re[$e]!==void 0||(re[$e]=Te[$e])}return re}},Y=function(ie){return A.isObject(ie)?R?R(ie):(N.prototype=ie,ie=new N,N.prototype=null,ie):{}},Q=function(ie){return function(he){return he==null?void 0:he[ie]}},$=Math.pow(2,53)-1,te=Q("length"),V=function(ie){return ie=te(ie),typeof ie=="number"&&0<=ie&&ie<=$};A.each=A.forEach=function(ie,he,re){he=X(he,re);var be;if(V(ie))for(re=0,be=ie.length;re<be;re++)he(ie[re],re,ie);else{var Ae=A.keys(ie);for(re=0,be=Ae.length;re<be;re++)he(ie[Ae[re]],Ae[re],ie)}return ie},A.map=A.collect=function(ie,he,re){he=Z(he,re),re=!V(ie)&&A.keys(ie);for(var be=(re||ie).length,Ae=Array(be),Te=0;Te<be;Te++){var Ue=re?re[Te]:Te;Ae[Te]=he(ie[Ue],Ue,ie)}return Ae},A.reduce=A.foldl=A.inject=r(1),A.reduceRight=A.foldr=r(-1),A.find=A.detect=function(ie,he,re){if(he=V(ie)?A.findIndex(ie,he,re):A.findKey(ie,he,re),he!==void 0&&he!==-1)return ie[he]},A.filter=A.select=function(ie,he,re){var be=[];return he=Z(he,re),A.each(ie,function(Ae,Te,Ue){he(Ae,Te,Ue)&&be.push(Ae)}),be},A.reject=function(ie,he,re){return A.filter(ie,A.negate(Z(he)),re)},A.every=A.all=function(ie,he,re){he=Z(he,re),re=!V(ie)&&A.keys(ie);for(var be=(re||ie).length,Ae=0;Ae<be;Ae++){var Te=re?re[Ae]:Ae;if(!he(ie[Te],Te,ie))return!1}return!0},A.some=A.any=function(ie,he,re){he=Z(he,re),re=!V(ie)&&A.keys(ie);for(var be=(re||ie).length,Ae=0;Ae<be;Ae++){var Te=re?re[Ae]:Ae;if(he(ie[Te],Te,ie))return!0}return!1},A.contains=A.includes=A.include=function(ie,he,re,be){return V(ie)||(ie=A.values(ie)),(typeof re!="number"||be)&&(re=0),0<=A.indexOf(ie,he,re)},A.invoke=function(ie,he){var re=w.call(arguments,2),be=A.isFunction(he);return A.map(ie,function(Ae){var Te=be?he:Ae[he];return Te==null?Te:Te.apply(Ae,re)})},A.pluck=function(ie,he){return A.map(ie,A.property(he))},A.where=function(ie,he){return A.filter(ie,A.matcher(he))},A.findWhere=function(ie,he){return A.find(ie,A.matcher(he))},A.max=function(ie,he,re){var be=-1/0,Ae=-1/0,Te;if(he==null&&ie!=null){ie=V(ie)?ie:A.values(ie);for(var Ue=0,Oe=ie.length;Ue<Oe;Ue++)re=ie[Ue],re>be&&(be=re)}else he=Z(he,re),A.each(ie,function(De,$e,rt){Te=he(De,$e,rt),(Te>Ae||Te===-1/0&&be===-1/0)&&(be=De,Ae=Te)});return be},A.min=function(ie,he,re){var be=1/0,Ae=1/0,Te;if(he==null&&ie!=null){ie=V(ie)?ie:A.values(ie);for(var Ue=0,Oe=ie.length;Ue<Oe;Ue++)re=ie[Ue],re<be&&(be=re)}else he=Z(he,re),A.each(ie,function(De,$e,rt){Te=he(De,$e,rt),(Te<Ae||Te===1/0&&be===1/0)&&(be=De,Ae=Te)});return be},A.shuffle=function(ie){ie=V(ie)?ie:A.values(ie);for(var he=ie.length,re=Array(he),be=0,Ae;be<he;be++)Ae=A.random(0,be),Ae!==be&&(re[be]=re[Ae]),re[Ae]=ie[be];return re},A.sample=function(ie,he,re){return he==null||re?(V(ie)||(ie=A.values(ie)),ie[A.random(ie.length-1)]):A.shuffle(ie).slice(0,Math.max(0,he))},A.sortBy=function(ie,he,re){return he=Z(he,re),A.pluck(A.map(ie,function(be,Ae,Te){return{value:be,index:Ae,criteria:he(be,Ae,Te)}}).sort(function(be,Ae){var Te=be.criteria,Ue=Ae.criteria;if(Te!==Ue){if(Te>Ue||Te===void 0)return 1;if(Te<Ue||Ue===void 0)return-1}return be.index-Ae.index}),"value")};var K=function(ie){return function(he,re,be){var Ae={};return re=Z(re,be),A.each(he,function(Te,Ue){Ue=re(Te,Ue,he),ie(Ae,Te,Ue)}),Ae}};A.groupBy=K(function(ie,he,re){A.has(ie,re)?ie[re].push(he):ie[re]=[he]}),A.indexBy=K(function(ie,he,re){ie[re]=he}),A.countBy=K(function(ie,he,re){A.has(ie,re)?ie[re]++:ie[re]=1}
445),A.toArray=function(ie){return ie?A.isArray(ie)?w.call(ie):V(ie)?A.map(ie,A.identity):A.values(ie):[]},A.size=function(ie){return ie==null?0:V(ie)?ie.length:A.keys(ie).length},A.partition=function(ie,he,re){he=Z(he,re);var be=[],Ae=[];return A.each(ie,function(Te,Ue,Oe){(he(Te,Ue,Oe)?be:Ae).push(Te)}),[be,Ae]},A.first=A.head=A.take=function(ie,he,re){if(ie!=null)return he==null||re?ie[0]:A.initial(ie,ie.length-he)},A.initial=function(ie,he,re){return w.call(ie,0,Math.max(0,ie.length-(he==null||re?1:he)))},A.last=function(ie,he,re){if(ie!=null)return he==null||re?ie[ie.length-1]:A.rest(ie,Math.max(0,ie.length-he))},A.rest=A.tail=A.drop=function(ie,he,re){return w.call(ie,he==null||re?1:he)},A.compact=function(ie){return A.filter(ie,A.identity)};var fe=function(ie,he,re,be){var Ae=[],Te=0;be=be||0;for(var Ue=te(ie);be<Ue;be++){var Oe=ie[be];if(V(Oe)&&(A.isArray(Oe)||A.isArguments(Oe))){he||(Oe=fe(Oe,he,re));var De=0,$e=Oe.length;for(Ae.length+=$e;De<$e;)Ae[Te++]=Oe[De++]}else re||(Ae[Te++]=Oe)}return Ae};A.flatten=function(ie,he){return fe(ie,he,!1)},A.without=function(ie){return A.difference(ie,w.call(arguments,1))},A.uniq=A.unique=function(ie,he,re,be){A.isBoolean(he)||(be=re,re=he,he=!1),re!=null&&(re=Z(re,be)),be=[];for(var Ae=[],Te=0,Ue=te(ie);Te<Ue;Te++){var Oe=ie[Te],De=re?re(Oe,Te,ie):Oe;he?(Te&&Ae===De||be.push(Oe),Ae=De):re?A.contains(Ae,De)||(Ae.push(De),be.push(Oe)):A.contains(be,Oe)||be.push(Oe)}return be},A.union=function(){return A.uniq(fe(arguments,!0,!0))},A.intersection=function(ie){for(var he=[],re=arguments.length,be=0,Ae=te(ie);be<Ae;be++){var Te=ie[be];if(!A.contains(he,Te)){for(var Ue=1;Ue<re&&A.contains(arguments[Ue],Te);Ue++);Ue===re&&he.push(Te)}}return he},A.difference=function(ie){var he=fe(arguments,!0,!0,1);return A.filter(ie,function(re){return!A.contains(he,re)})},A.zip=function(){return A.unzip(arguments)},A.unzip=function(ie){for(var he=ie&&A.max(ie,te).length||0,re=Array(he),be=0;be<he;be++)re[be]=A.pluck(ie,be);return re},A.object=function(ie,he){for(var re={},be=0,Ae=te(ie);be<Ae;be++)he?re[ie[be]]=he[be]:re[ie[be][0]]=ie[be][1];return re},A.findIndex=i(1),A.findLastIndex=i(-1),A.sortedIndex=function(ie,he,re,be){re=Z(re,be,1),he=re(he),be=0;for(var Ae=te(ie);be<Ae;){var Te=Math.floor((be+Ae)/2);re(ie[Te])<he?be=Te+1:Ae=Te}return be},A.indexOf=l(1,A.findIndex,A.sortedIndex),A.lastIndexOf=l(-1,A.findLastIndex),A.range=function(ie,he,re){he==null&&(he=ie||0,ie=0),re=re||1,he=Math.max(Math.ceil((he-ie)/re),0);for(var be=Array(he),Ae=0;Ae<he;Ae++,ie+=re)be[Ae]=ie;return be};var de=function(ie,he,re,be,Ae){return be instanceof he?(he=Y(ie.prototype),ie=ie.apply(he,Ae),A.isObject(ie)?ie:he):ie.apply(re,Ae)};A.bind=function(ie,he){if(F&&ie.bind===F)return F.apply(ie,w.call(arguments,1));if(!A.isFunction(ie))throw new TypeError("Bind must be called on a function");var re=w.call(arguments,2),be=function(){return de(ie,be,he,this,re.concat(w.call(arguments)))};return be},A.partial=function(ie){var he=w.call(arguments,1),re=function(){for(var be=0,Ae=he.length,Te=Array(Ae),Ue=0;Ue<Ae;Ue++)Te[Ue]=he[Ue]===A?arguments[be++]:he[Ue];for(;be<arguments.length;)Te.push(arguments[be++]);return de(ie,re,this,this,Te)};return re},A.bindAll=function(ie){var he,re=arguments.length;if(1>=re)throw Error("bindAll must be passed function names");for(he=1;he<re;he++){var be=arguments[he];ie[be]=A.bind(ie[be],ie)}return ie},A.memoize=function(ie,he){var re=function(be){var Ae=re.cache,Te=""+(he?he.apply(this,arguments):be);return A.has(Ae,Te)||(Ae[Te]=ie.apply(this,arguments)),Ae[Te]};return re.cache={},re},A.delay=function(ie,he){var re=w.call(arguments,2);return setTimeout(function(){return ie.apply(null,re)},he)},A.defer=A.partial(A.delay,A,1),A.throttle=function(ie,he,re){var be,Ae,Te,Ue=null,Oe=0;re||(re={});var De=function(){Oe=re.leading===!1?0:A.now(),Ue=null,Te=ie.apply(be,Ae),Ue||(be=Ae=null)};return function(){var $e=A.now();Oe||re.leading!==!1||(Oe=$e);var rt=he-($e-Oe);return be=this,Ae=arguments,0>=rt||rt>he?(Ue&&(clearTimeout(Ue),Ue=null),Oe=$e,Te=ie.apply(be,Ae),Ue||(be=Ae=null)):Ue||re.trailing===!1||(Ue=setTimeout(De,rt)),Te}},A.debounce=function(ie,he,re){var be,Ae,Te,Ue,Oe,De=function(){var $e=A.now()-Ue;$e<he&&0<=$e?be=setTimeout(De,he-$e):(be=null,re||(Oe=ie.apply(Te,Ae),be||(Te=Ae=null)))};return function(){Te=this,Ae=arguments,Ue=A.now();var $e=re&&!be;return be||(be=setTimeout(De,he)),$e&&(Oe=ie.apply(Te,Ae),Te=Ae=null),Oe}},A.wrap=function(ie,he){return A.partial(he,ie)},A.negate=function(ie){return function(){return!ie.apply(this,arguments)}},A.compose=function(){var ie=arguments,he=ie.length-1;return function(){for(var re=he,be=ie[he].apply(this,arguments);re--;)be=ie[re].call(this,be);return be}},A.after=function(ie,he){return function(){if(1>--ie)return he.apply(this,arguments)}},A.before=function(ie,he){var re;return function(){return 0<--ie&&(re=he.apply(this,arguments)),1>=ie&&(he=null),re}},A.once=A.partial(A.before,2);var ne=!{toString:null}.propertyIsEnumerable("toString"),le="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleStr
445ing".split(" ");A.keys=function(ie){if(!A.isObject(ie))return[];if(B)return B(ie);var he=[],re;for(re in ie)A.has(ie,re)&&he.push(re);return ne&&u(ie,he),he},A.allKeys=function(ie){if(!A.isObject(ie))return[];var he=[],re;for(re in ie)he.push(re);return ne&&u(ie,he),he},A.values=function(ie){for(var he=A.keys(ie),re=he.length,be=Array(re),Ae=0;Ae<re;Ae++)be[Ae]=ie[he[Ae]];return be},A.mapObject=function(ie,he,re){he=Z(he,re),re=A.keys(ie);for(var be=re.length,Ae={},Te,Ue=0;Ue<be;Ue++)Te=re[Ue],Ae[Te]=he(ie[Te],Te,ie);return Ae},A.pairs=function(ie){for(var he=A.keys(ie),re=he.length,be=Array(re),Ae=0;Ae<re;Ae++)be[Ae]=[he[Ae],ie[he[Ae]]];return be},A.invert=function(ie){for(var he={},re=A.keys(ie),be=0,Ae=re.length;be<Ae;be++)he[ie[re[be]]]=re[be];return he},A.functions=A.methods=function(ie){var he=[],re;for(re in ie)A.isFunction(ie[re])&&he.push(re);return he.sort()},A.extend=z(A.allKeys),A.extendOwn=A.assign=z(A.keys),A.findKey=function(ie,he,re){he=Z(he,re),re=A.keys(ie);for(var be,Ae=0,Te=re.length;Ae<Te;Ae++)if(be=re[Ae],he(ie[be],be,ie))return be},A.pick=function(ie,he,re){var be={},Ae=ie;if(Ae==null)return be;if(A.isFunction(he))var Te=A.allKeys(Ae),Ue=X(he,re);else Te=fe(arguments,!1,!1,1),Ue=function(ct,lt,ot){return lt in ot},Ae=Object(Ae);for(var Oe=0,De=Te.length;Oe<De;Oe++){var $e=Te[Oe],rt=Ae[$e];Ue(rt,$e,Ae)&&(be[$e]=rt)}return be},A.omit=function(ie,he,re){if(A.isFunction(he))he=A.negate(he);else{var be=A.map(fe(arguments,!1,!1,1),String);he=function(Ae,Te){return!A.contains(be,Te)}}return A.pick(ie,he,re)},A.defaults=z(A.allKeys,!0),A.create=function(ie,he){return ie=Y(ie),he&&A.extendOwn(ie,he),ie},A.clone=function(ie){return A.isObject(ie)?A.isArray(ie)?ie.slice():A.extend({},ie):ie},A.tap=function(ie,he){return he(ie),ie},A.isMatch=function(ie,he){var re=A.keys(he),be=re.length;if(ie==null)return!be;ie=Object(ie);for(var Ae=0;Ae<be;Ae++){var Te=re[Ae];if(he[Te]!==ie[Te]||!(Te in ie))return!1}return!0};var _e=function(ie,he,re,be){if(ie===he)return ie!==0||1/ie===1/he;if(ie==null||he==null)return ie===he;ie instanceof A&&(ie=ie._wrapped),he instanceof A&&(he=he._wrapped);var Ae=C.call(ie);if(Ae!==C.call(he))return!1;switch(Ae){case"[object RegExp]":case"[object String]":return""+ie==""+he;case"[object Number]":return+ie!=+ie?+he!=+he:+ie==0?1/+ie===1/he:+ie==+he;case"[object Date]":case"[object Boolean]":return+ie==+he}if(Ae=Ae==="[object Array]",!Ae){if(typeof ie!="object"||typeof he!="object")return!1;var Te=ie.constructor,Ue=he.constructor;if(Te!==Ue&&!(A.isFunction(Te)&&Te instanceof Te&&A.isFunction(Ue)&&Ue instanceof Ue)&&"constructor"in ie&&"constructor"in he)return!1}for(re=re||[],be=be||[],Te=re.length;Te--;)if(re[Te]===ie)return be[Te]===he;if(re.push(ie),be.push(he),Ae){if(Te=ie.length,Te!==he.length)return!1;for(;Te--;)if(!_e(ie[Te],he[Te],re,be))return!1}else{if(Ae=A.keys(ie),Te=Ae.length,A.keys(he).length!==Te)return!1;for(;Te--;)if(Ue=Ae[Te],!A.has(he,Ue)||!_e(ie[Ue],he[Ue],re,be))return!1}return re.pop(),be.pop(),!0};A.isEqual=function(ie,he){return _e(ie,he)},A.isEmpty=function(ie){return ie==null?!0:V(ie)&&(A.isArray(ie)||A.isString(ie)||A.isArguments(ie))?ie.length===0:A.keys(ie).length===0},A.isElement=function(ie){return!(!ie||ie.nodeType!==1)},A.isArray=T||function(ie){return C.call(ie)==="[object Array]"},A.isObject=function(ie){var he=typeof ie;return he==="function"||he==="object"&&!!ie},A.each("Arguments Function String Number Date RegExp Error".split(" "),function(ie){A["is"+ie]=function(he){return C.call(he)==="[object "+ie+"]"}}),A.isArguments(arguments)||(A.isArguments=function(ie){return A.has(ie,"callee")}),typeof/./!="function"&&typeof Int8Array!="object"&&(A.isFunction=function(ie){return typeof ie=="function"||!1}),A.isFinite=function(ie){return isFinite(ie)&&!isNaN(parseFloat(ie))},A.isNaN=function(ie){return A.isNumber(ie)&&ie!==+ie},A.isBoolean=function(ie){return ie===!0||ie===!1||C.call(ie)==="[object Boolean]"},A.isNull=function(ie){return ie===null},A.isUndefined=function(ie){return ie===void 0},A.has=function(ie,he){return ie!=null&&S.call(ie,he)},A.noConflict=function(){return f._=v,this},A.identity=function(ie){return ie},A.constant=function(ie){return function(){return ie}},A.noop=function(){},A.property=Q,A.propertyOf=function(ie){return ie==null?function(){}:function(he){return ie[he]}
445},A.matcher=A.matches=function(ie){return ie=A.extendOwn({},ie),function(he){return A.isMatch(he,ie)}},A.times=function(ie,he,re){var be=Array(Math.max(0,ie));for(he=X(he,re,1),re=0;re<ie;re++)be[re]=he(re);return be},A.random=function(ie,he){return he==null&&(he=ie,ie=0),ie+Math.floor(Math.random()*(he-ie+1))},A.now=Date.now||function(){return new Date().getTime()},T={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},z=A.invert(T),Q=function(ie){var he=function(Te){return ie[Te]},re="(?:"+A.keys(ie).join("|")+")",be=RegExp(re),Ae=RegExp(re,"g");return function(Te){return Te=Te==null?"":""+Te,be.test(Te)?Te.replace(Ae,he):Te}},A.escape=Q(T),A.unescape=Q(z),A.result=function(ie,he,re){return he=ie==null?void 0:ie[he],he===void 0&&(he=re),A.isFunction(he)?he.call(ie):he};var M=0;A.uniqueId=function(ie){var he=++M+"";return ie?ie+he:he},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},j=/\\|'|\r|\n|\u2028|\u2029/g,ee=function(ie){return"\\"+U[ie]};A.template=function(ie,he,re){!he&&re&&(he=re),he=A.defaults({},he,A.templateSettings),re=RegExp([(he.escape||P).source,(he.interpolate||P).source,(he.evaluate||P).source].join("|")+"|$","g");var be=0,Ae="__p+='";ie.replace(re,function(Ue,Oe,De,$e,rt){return Ae+=ie.slice(be,rt).replace(j,ee),be=rt+Ue.length,Oe?Ae+=`'+ 446((__t=(`+Oe+`))==null?'':_.escape(__t))+ 447'`:De?Ae+=`'+ 448((__t=(`+De+`))==null?'':__t)+ 449'`:$e&&(Ae+=`'; 450`+$e+` 451__p+='`),Ue}),Ae+=`'; 452`,he.variable||(Ae=`with(obj||{}){ 453`+Ae+`} 454`),Ae=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 455`+Ae+`return __p; 456`;try{var Te=new Function(he.variable||"obj","_",Ae)}catch(Ue){throw Ue.source=Ae,Ue}return re=function(Ue){return Te.call(this,Ue,A)},re.source="function("+(he.variable||"obj")+`){ 457`+Ae+"}",re},A.chain=function(ie){return ie=A(ie),ie._chain=!0,ie};var ye=function(ie,he){return ie._chain?A(he).chain():he};A.mixin=function(ie){A.each(A.functions(ie),function(he){var re=A[he]=ie[he];A.prototype[he]=function(){var be=[this._wrapped];return y.apply(be,arguments),ye(this,re.apply(A,be))}})},A.mixin(A),A.each("pop push reverse shift sort splice unshift".split(" "),function(ie){var he=h[ie];A.prototype[ie]=function(){var re=this._wrapped;return he.apply(re,arguments),ie!=="shift"&&ie!=="splice"||re.length!==0||delete re[0],ye(this,re)}}),A.each(["concat","join","slice"],function(ie){var he=h[ie];A.prototype[ie]=function(){return ye(this,he.apply(this._wrapped,arguments))}}),A.prototype.value=function(){return this._wrapped},A.prototype.valueOf=A.prototype.toJSON=A.prototype.value,A.prototype.toString=function(){return""+this._wrapped}}).call(this)},{}],154:[function(e,t,n){(function(r){function i(l){try{if(!r.localStorage)return!1}catch{return!1}return l=r.localStorage[l],l==null?!1:String(l).toLowerCase()==="true"}t.exports=function(l,u){if(i("noDeprecation"))return l;var f=!1;return function(){if(!f){if(i("throwDeprecation"))throw Error(u);i("traceDeprecation")?console.trace(u):console.warn(u),f=!0}return l.apply(this,arguments)}}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],155:[function(e,t,n){arguments[4][81][0].apply(n,arguments)},{dup:81}],156:[function(e,t,n){t.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}},{}],157:[function(e,t,n){(function(r,i){function l(de,ne){var le={seen:[],stylize:f};return 3<=arguments.length&&(le.depth=arguments[2]),4<=arguments.length&&(le.colors=arguments[3]),B(ne)?le.showHidden=ne:ne&&n._extend(le,ne),N(le.showHidden)&&(le.showHidden=!1),N(le.depth)&&(le.depth=2),N(le.colors)&&(le.colors=!1),N(le.customInspect)&&(le.customInspect=!0),le.colors&&(le.stylize=u),h(le,de,le.depth)}function u(de,ne){return(ne=l.styles[ne])?"\x1B["+l.colors[ne][0]+"m"+de+"\x1B["+l.colors[ne][1]+"m":de}function f(de,ne){return de}function v(de){var ne={};return de.forEach(function(le,_e){ne[le]=!0}),ne}function h(de,ne,le){if(de.customInspect&&ne&&Y(ne.inspect)&&ne.inspect!==n.inspect&&(!ne.constructor||ne.constructor.prototype!==ne)){var _e=ne.inspect(le,de);return R(_e)||(_e=h(de,_e,le)),_e}if(_e=g(de,ne))return _e;var M=Object.keys(ne),P=v(M);if(de.showHidden&&(M=Object.getOwnPropertyNames(ne)),z(ne)&&(0<=M.indexOf("message")||0<=M.indexOf("description")))return y(ne);if(M.length===0){if(Y(ne))return de.stylize("[Function"+(ne.name?": "+ne.name:"")+"]","special");if(A(ne))return de.stylize(RegExp.prototype.toString.call(ne),"regexp");if(Z(ne))return de.stylize(Date.prototype.toString.call(ne),"date");if(z(ne))return y(ne)}_e="";var U=!1,j=["{","}"];return T(ne)&&(U=!0,j=["[","]"]),Y(ne)&&(_e=" [Function"+(ne.name?": "+ne.name:"")+"]"),A(ne)&&(_e=" "+RegExp.prototype.toString.call(ne)),Z(ne)&&(_e=" "+Date.prototype.toUTCString.call(ne)),z(ne)&&(_e=" "+y(ne)),M.length===0&&(!U||ne.length==0)?j[0]+_e+j[1]:0>le?A(ne)?de.stylize(RegExp.prototype.toString.call(ne),"regexp"):de.stylize("[Object]","special"):(de.seen.push(ne),M=U?w(de,ne,le,P,M):M.map(function(ee){return C(de,ne,le,P,ee,U)}),de.seen.pop(),S(M,_e,j))}function g(de,ne){if(N(ne))return de.stylize("undefined","undefined");if(R(ne))return ne="'"+JSON.stringify(ne).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",de.stylize(ne,"string");if(F(ne))return de.stylize(""+ne,"number");if(B(ne))return de.stylize(""+ne,"boolean");if(ne===null)return de.stylize("null","null")}function y(de){return"["+Error.prototype.toString.call(de)+"]"}function w(de,ne,le,_e,M){for(var P=[],U=0,j=ne.length;U<j;++U)Object.prototype.hasOwnProperty.call(ne,String(U))?P.push(C(de,ne,le,_e,String(U),!0)):P.push("");return M.forEach(function(ee){ee.match(/^\d+$/)||P.push(C(de,ne,le,_e,ee,!0))}),P}function C(de,ne,le,_e,M,P){var U,j;
457if(ne=Object.getOwnPropertyDescriptor(ne,M)||{value:ne[M]},ne.get?j=ne.set?de.stylize("[Getter/Setter]","special"):de.stylize("[Getter]","special"):ne.set&&(j=de.stylize("[Setter]","special")),Object.prototype.hasOwnProperty.call(_e,M)||(U="["+M+"]"),j||(0>de.seen.indexOf(ne.value)?(j=le===null?h(de,ne.value,null):h(de,ne.value,le-1),-1<j.indexOf(` 458`)&&(j=P?j.split(` 459`).map(function(ee){return" "+ee}).join(` 460`).substr(2):` 461`+j.split(` 462`).map(function(ee){return" "+ee}).join(` 463`))):j=de.stylize("[Circular]","special")),N(U)){if(P&&M.match(/^\d+$/))return j;U=JSON.stringify(""+M),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=de.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=de.stylize(U,"string"))}return U+": "+j}function S(de,ne,le){var _e=0;return 60<de.reduce(function(M,P){return _e++,0<=P.indexOf(` 464`)&&_e++,M+P.replace(/\u001b\[\d\d?m/g,"").length+1},0)?le[0]+(ne===""?"":ne+` 465 `)+" "+de.join(`, 466 `)+" "+le[1]:le[0]+ne+" "+de.join(", ")+" "+le[1]}function T(de){return Array.isArray(de)}function B(de){return typeof de=="boolean"}function F(de){return typeof de=="number"}function R(de){return typeof de=="string"}function N(de){return de===void 0}function A(de){return X(de)&&Object.prototype.toString.call(de)==="[object RegExp]"}function X(de){return typeof de=="object"&&de!==null}function Z(de){return X(de)&&Object.prototype.toString.call(de)==="[object Date]"}function z(de){return X(de)&&(Object.prototype.toString.call(de)==="[object Error]"||de instanceof Error)}function Y(de){return typeof de=="function"}function Q(de){return 10>de?"0"+de.toString(10):de.toString(10)}function $(){var de=new Date,ne=[Q(de.getHours()),Q(de.getMinutes()),Q(de.getSeconds())].join(":");return[de.getDate(),fe[de.getMonth()],ne].join(" ")}var te=/%[sdj%]/g;n.format=function(de){if(!R(de)){for(var ne=[],le=0;le<arguments.length;le++)ne.push(l(arguments[le]));return ne.join(" ")}le=1;var _e=arguments,M=_e.length;ne=String(de).replace(te,function(U){if(U==="%%")return"%";if(le>=M)return U;switch(U){case"%s":return String(_e[le++]);case"%d":return Number(_e[le++]);case"%j":try{return JSON.stringify(_e[le++])}catch{return"[Circular]"}default:return U}});for(var P=_e[le];le<M;P=_e[++le])ne=P!==null&&X(P)?ne+(" "+l(P)):ne+(" "+P);return ne},n.deprecate=function(de,ne){if(N(i.process))return function(){return n.deprecate(de,ne).apply(this,arguments)};if(r.noDeprecation===!0)return de;var le=!1;return function(){if(!le){if(r.throwDeprecation)throw Error(ne);r.traceDeprecation?console.trace(ne):console.error(ne),le=!0}return de.apply(this,arguments)}};var V={},K;n.debuglog=function(de){if(N(K)&&(K=r.env.NODE_DEBUG||""),de=de.toUpperCase(),!V[de])if(new RegExp("\\b"+de+"\\b","i").test(K)){var ne=r.pid;V[de]=function(){var le=n.format.apply(n,arguments);console.error("%s %d: %s",de,ne,le)}}else V[de]=function(){};return V[de]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=T,n.isBoolean=B,n.isNull=function(de){return de===null},n.isNullOrUndefined=function(de){return de==null}
466,n.isNumber=F,n.isString=R,n.isSymbol=function(de){return typeof de=="symbol"},n.isUndefined=N,n.isRegExp=A,n.isObject=X,n.isDate=Z,n.isError=z,n.isFunction=Y,n.isPrimitive=function(de){return de===null||typeof de=="boolean"||typeof de=="number"||typeof de=="string"||typeof de=="symbol"||typeof de=="undefined"},n.isBuffer=e("./support/isBuffer");var fe="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");n.log=function(){console.log("%s - %s",$(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(de,ne){if(!ne||!X(ne))return de;for(var le=Object.keys(ne),_e=le.length;_e--;)de[le[_e]]=ne[le[_e]];return de}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":156,_process:138,inherits:155}],158:[function(e,t,n){(function(){var r=[].slice,i={}.hasOwnProperty,l=function(v){return!!v&&Object.prototype.toString.call(v)==="[object Function]"},u=function(v){var h;return!!v&&((h=typeof v)=="function"||h==="object")},f=function(v){return l(Array.isArray)?Array.isArray(v):Object.prototype.toString.call(v)==="[object Array]"};t.exports.assign=function(){var v,h,g=arguments[0],y=2<=arguments.length?r.call(arguments,1):[];if(l(Object.assign))Object.assign.apply(null,arguments);else{var w=0;for(h=y.length;w<h;w++){var C=y[w];if(C!=null)for(v in C)i.call(C,v)&&(g[v]=C[v])}}return g},t.exports.isFunction=l,t.exports.isObject=u,t.exports.isArray=f,t.exports.isEmpty=function(v){var h;if(f(v))return!v.length;for(h in v)if(i.call(v,h))return!1;return!0},t.exports.isPlainObject=function(v){var h,g;return u(v)&&(g=Object.getPrototypeOf(v))&&(h=g.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},t.exports.getValue=function(v){return l(v.valueOf)?v.valueOf():v}}).call(this)},{}],159:[function(e,t,n){(function(){t.exports=function(){function r(i,l,u){if(this.options=i.options,this.stringify=i.stringify,this.parent=i,l==null)throw Error("Missing attribute name. "+this.debugInfo(l));if(u==null)throw Error("Missing attribute value. "+this.debugInfo(l));this.name=this.stringify.attName(l),this.value=this.stringify.attValue(u)}return r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(i){return this.options.writer.set(i).attribute(this)},r.prototype.debugInfo=function(i){var l,u;return i=i||this.name,i!=null||(l=this.parent)!=null&&l.name?i==null?"parent: <"+this.parent.name+">":(u=this.parent)!=null&&u.name?"attribute: {"+i+"}, parent: <"+this.parent.name+">":"attribute: {"+i+"}":""},r}()}).call(this)},{}],160:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(h)}return r(f,u),f.prototype.clone=function(){return Object.create(this)},f.prototype.toString=function(v){return this.options.writer.set(v).cdata(this)},f}(l)}).call(this)},{"./XMLNode":171}],161:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(h)}return r(f,u),f.prototype.clone=function(){return Object.create(this)},f.prototype.toString=function(v){return this.options.writer.set(v).comment(this)},f}(l)}).call(this)},{"./XMLNode":171}],162:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h,g,y,w,C){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing DTD element name. "+this.debugInfo());if(g==null)throw Error("Missing DTD attribute name. "+this.debugInfo(h));if(!y)throw Error("Missing DTD attribute type. "+this.debugInfo(h));if(!w)throw Error("Missing DTD attribute default. "+this.debugInfo(h));if(w.indexOf("#")!==0&&(w="#"+w),!w.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(h));if(C&&!w.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(h));this.elementName=this.stringify.eleName(h),this.attributeName=this.stringify.attName(g),this.attributeType=this.stringify.dtdAttType(y),this.defaultValue=this.stringify.dtdAttDefault(C),this.defaultValueType=w}return r(f,u),f.prototype.toString=function(v){return this.options.writer.set(v).dtdAttList(this)},f}(l)}).call(this)},{"./XMLNode":171}],163:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h,g){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing DTD element name. "+this.debugInfo());g||(g="(#PCDATA)"),Array.isArray(g)&&(g="("+g.join(",")+")"),this.name=this.stringify.eleName(h),this.value=this.stringify.dtdElementValue(g)}return r(f,u),f.prototype.toString=function(v){return this.options.writer.set(v).dtdElement(this)},f}(l)}).call(this)},{"./XMLNode":171}],164:[function(e,t,n){(function(){var r=function(f,v){function h(){this.constructor=f}for(var g in v)i.call(v,g)&&(f[g]=v[g]);return h.prototype=v.prototype,f.prototype=new h,f.__super__=v.prototype,f},i={}.hasOwnProperty,l=e("./Utility").isObject,u=e("./XMLNode");t.exports=function(f){function v(h,g,y,w){if(v.__super__.constructor.call(this,h),y==null)throw Error("Missing DTD entity name. "+this.debugInfo(y));if(w==null)throw Error("Missing DTD entity value. "+this.debugInfo(y));
466if(this.pe=!!g,this.name=this.stringify.eleName(y),l(w)){if(!w.pubID&&!w.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(y));if(w.pubID&&!w.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(y));if(w.pubID!=null&&(this.pubID=this.stringify.dtdPubID(w.pubID)),w.sysID!=null&&(this.sysID=this.stringify.dtdSysID(w.sysID)),w.nData!=null&&(this.nData=this.stringify.dtdNData(w.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(y))}else this.value=this.stringify.dtdEntityValue(w)}return r(v,f),v.prototype.toString=function(h){return this.options.writer.set(h).dtdEntity(this)},v}(u)}).call(this)},{"./Utility":158,"./XMLNode":171}],165:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h,g){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing DTD notation name. "+this.debugInfo(h));if(!g.pubID&&!g.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(h));this.name=this.stringify.eleName(h),g.pubID!=null&&(this.pubID=this.stringify.dtdPubID(g.pubID)),g.sysID!=null&&(this.sysID=this.stringify.dtdSysID(g.sysID))}return r(f,u),f.prototype.toString=function(v){return this.options.writer.set(v).dtdNotation(this)},f}(l)}).call(this)},{"./XMLNode":171}],166:[function(e,t,n){(function(){var r=function(f,v){function h(){this.constructor=f}for(var g in v)i.call(v,g)&&(f[g]=v[g]);return h.prototype=v.prototype,f.prototype=new h,f.__super__=v.prototype,f},i={}.hasOwnProperty,l=e("./Utility").isObject,u=e("./XMLNode");t.exports=function(f){function v(h,g,y,w){v.__super__.constructor.call(this,h),l(g)&&(h=g,g=h.version,y=h.encoding,w=h.standalone),g||(g="1.0"),this.version=this.stringify.xmlVersion(g),y!=null&&(this.encoding=this.stringify.xmlEncoding(y)),w!=null&&(this.standalone=this.stringify.xmlStandalone(w))}return r(v,f),v.prototype.toString=function(h){return this.options.writer.set(h).declaration(this)},v}(u)}).call(this)},{"./Utility":158,"./XMLNode":171}],167:[function(e,t,n){(function(){var r=function(y,w){function C(){this.constructor=y}for(var S in w)i.call(w,S)&&(y[S]=w[S]);return C.prototype=w.prototype,y.prototype=new C,y.__super__=w.prototype,y},i={}.hasOwnProperty,l=e("./Utility").isObject,u=e("./XMLNode"),f=e("./XMLDTDAttList"),v=e("./XMLDTDEntity"),h=e("./XMLDTDElement"),g=e("./XMLDTDNotation");t.exports=function(y){function w(C,S,T){w.__super__.constructor.call(this,C),this.name="!DOCTYPE",this.documentObject=C,l(S)&&(T=S,S=T.pubID,T=T.sysID),T==null&&(S=[S,T],T=S[0],S=S[1]),S!=null&&(this.pubID=this.stringify.dtdPubID(S)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return r(w,y),w.prototype.element=function(C,S){return C=new h(this,C,S),this.children.push(C),this},w.prototype.attList=function(C,S,T,B,F){return C=new f(this,C,S,T,B,F),this.children.push(C),this},w.prototype.entity=function(C,S){return C=new v(this,!1,C,S),this.children.push(C),this},w.prototype.pEntity=function(C,S){return C=new v(this,!0,C,S),this.children.push(C),this},w.prototype.notation=function(C,S){return C=new g(this,C,S),this.children.push(C),this},w.prototype.toString=function(C){return this.options.writer.set(C).docType(this)},w.prototype.ele=function(C,S){return this.element(C,S)},w.prototype.att=function(C,S,T,B,F){return this.attList(C,S,T,B,F)},w.prototype.ent=function(C,S){return this.entity(C,S)},w.prototype.pent=function(C,S){return this.pEntity(C,S)},w.prototype.not=function(C,S){return this.notation(C,S)},w.prototype.up=function(){return this.root()||this.documentObject},w}(u)}).call(this)},{"./Utility":158,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLNode":171}],168:[function(e,t,n){(function(){var r=function(h,g){function y(){this.constructor=h}
466for(var w in g)i.call(g,w)&&(h[w]=g[w]);return y.prototype=g.prototype,h.prototype=new y,h.__super__=g.prototype,h},i={}.hasOwnProperty,l=e("./Utility").isPlainObject,u=e("./XMLNode"),f=e("./XMLStringifier"),v=e("./XMLStringWriter");t.exports=function(h){function g(y){g.__super__.constructor.call(this,null),this.name="?xml",y||(y={}),y.writer||(y.writer=new v),this.options=y,this.stringify=new f(y),this.isDocument=!0}return r(g,h),g.prototype.end=function(y){return y?l(y)&&(y=this.options.writer.set(y)):y=this.options.writer,y.document(this)},g.prototype.toString=function(y){return this.options.writer.set(y).document(this)},g}(u)}).call(this)},{"./Utility":158,"./XMLNode":171,"./XMLStringWriter":175,"./XMLStringifier":176}],169:[function(e,t,n){(function(){var r={}.hasOwnProperty,i=e("./Utility"),l=i.isObject,u=i.isFunction,f=i.isPlainObject,v=i.getValue,h=e("./XMLElement"),g=e("./XMLCData"),y=e("./XMLComment"),w=e("./XMLRaw"),C=e("./XMLText"),S=e("./XMLProcessingInstruction"),T=e("./XMLDeclaration"),B=e("./XMLDocType"),F=e("./XMLDTDAttList"),R=e("./XMLDTDEntity"),N=e("./XMLDTDElement"),A=e("./XMLDTDNotation"),X=e("./XMLAttribute"),Z=e("./XMLStringifier"),z=e("./XMLStringWriter");t.exports=function(){function Y(Q,$,te){if(this.name="?xml",Q||(Q={}),!Q.writer)Q.writer=new z(Q);else if(f(Q.writer)){var V=Q.writer;Q.writer=new z(V)}this.options=Q,this.writer=Q.writer,this.stringify=new Z(Q),this.onDataCallback=$||function(){},this.onEndCallback=te||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentCompleted=this.documentStarted=!1,this.root=null}return Y.prototype.node=function(Q,$,te){if(Q==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(Q));return this.openCurrent(),Q=v(Q),$==null&&($={}),$=v($),l($)||($=[$,te],te=$[0],$=$[1]),this.currentNode=new h(this,Q,$),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,te!=null&&this.text(te),this},Y.prototype.element=function(Q,$,te){return this.currentNode&&this.currentNode instanceof B?this.dtdElement.apply(this,arguments):this.node(Q,$,te)},Y.prototype.attribute=function(Q,$){var te;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Q));if(Q!=null&&(Q=v(Q)),l(Q))for(te in Q)r.call(Q,te)&&($=Q[te],this.attribute(te,$));else u($)&&($=$.apply()),this.options.skipNullAttributes&&$==null||(this.currentNode.attributes[Q]=new X(this,Q,$));return this},Y.prototype.text=function(Q){return this.openCurrent(),Q=new C(this,Q),this.onData(this.writer.text(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.cdata=function(Q){return this.openCurrent(),Q=new g(this,Q),this.onData(this.writer.cd
466ata(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.comment=function(Q){return this.openCurrent(),Q=new y(this,Q),this.onData(this.writer.comment(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.raw=function(Q){return this.openCurrent(),Q=new w(this,Q),this.onData(this.writer.raw(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.instruction=function(Q,$){var te;if(this.openCurrent(),Q!=null&&(Q=v(Q)),$!=null&&($=v($)),Array.isArray(Q))for($=0,te=Q.length;$<te;$++){var V=Q[$];this.instruction(V)}else if(l(Q))for(V in Q)r.call(Q,V)&&($=Q[V],this.instruction(V,$));else u($)&&($=$.apply()),Q=new S(this,Q,$),this.onData(this.writer.processingInstruction(Q,this.currentLevel+1),this.currentLevel+1);return this},Y.prototype.declaration=function(Q,$,te){if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return Q=new T(this,Q,$,te),this.onData(this.writer.declaration(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.doctype=function(Q,$,te){if(this.openCurrent(),Q==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new B(this,$,te),this.currentNode.rootNodeName=Q,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Y.prototype.dtdElement=function(Q,$){return this.openCurrent(),Q=new N(this,Q,$),this.onData(this.writer.dtdElement(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.attList=function(Q,$,te,V,K){return this.openCurrent(),Q=new F(this,Q,$,te,V,K),this.onData(this.writer.dtdAttList(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.entity=function(Q,$){return this.openCurrent(),Q=new R(this,!1,Q,$),this.onData(this.writer.dtdEntity(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.pEntity=function(Q,$){return this.openCurrent(),Q=new R(this,!0,Q,$),this.onData(this.writer.dtdEntity(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.notation=function(Q,$){return this.openCurrent(),Q=new A(this,Q,$),this.onData(this.writer.dtdNotation(Q,this.currentLevel+1),this.currentLevel+1),this},Y.prototype.up=function(){if(0>this.currentLevel)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Y.prototype.end=function(){for(;0<=this.currentLevel;)this.up();return this.onEnd()},Y.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Y.prototype.openNode=function(Q){if(!Q.isOpen)return!this.root&&this.currentLevel===0&&Q instanceof h&&(this.root=Q),this.onData(this.writer.openNode(Q,this.currentLevel),this.currentLevel),Q.isOpen=!0},Y.prototype.closeNode=function(Q){if(!Q.isClosed)return this.onData(this.writer.closeNode(Q,this.currentLevel),this.currentLevel),Q.isClosed=!0},Y.prototype.onData=function(Q,$){return this.documentStarted=!0,this.onDataCallback(Q,$+1)},Y.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Y.prototype.debugInfo=function(Q){return Q==null?"":"node: <"+Q+">"},Y.prototype.ele=function(){return this.element.apply(this,arguments)},Y.prototype.nod=function(Q,$,te){return this.node(Q,$,te)},Y.prototype.txt=function(Q){return this.text(Q)},Y.prototype.dat=function(Q){return this.cdata(Q)},Y.prototype.com=function(Q){return this.comment(Q)},Y.prototype.ins=function(Q,$){return this.instruction(Q,$)},Y.prototype.dec=function(Q,$,te){return this.declaration(Q,$,te)},Y.prototype.dtd=function(Q,$,te){return this.doctype(Q,$,te)},Y.prototype.e=function(Q,$,te){return this.element(Q,$,te)},Y.prototype.n=function(Q,$,te){return this.node(Q,$,te)},Y.prototype.t=function(Q){return this.text(Q)},Y.prototype.d=function(Q){return this.cdata(Q)},Y.prototype.c=function(Q){return this.comment(Q)},Y.prototype.r=function(Q){return this.raw(Q)},Y.prototype.i=function(Q,$){return this.instruction(Q,$)},Y.prototype.att=function(){return this.currentNode&&this.currentNode instanceof B?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Y.prototype.a=function(){return this.currentNode&&this.currentNode instanceof B?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Y.prototype.ent=function(Q,$){return this.entity(Q,$)},Y.prototype.pent=function(Q,$){return this.pEntity(Q,$)},Y.prototype.not=function(Q,$){return this.notation(Q,$)},Y}()}).call(this)},{"./Utility":158,"./XMLAttribute":159,"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,"./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLStringWriter"
466:175,"./XMLStringifier":176,"./XMLText":177}],170:[function(e,t,n){(function(){var r=function(g,y){function w(){this.constructor=g}for(var C in y)i.call(y,C)&&(g[C]=y[C]);return w.prototype=y.prototype,g.prototype=new w,g.__super__=y.prototype,g},i={}.hasOwnProperty,l=e("./Utility"),u=l.isObject,f=l.isFunction,v=l.getValue;l=e("./XMLNode");var h=e("./XMLAttribute");t.exports=function(g){function y(w,C,S){if(y.__super__.constructor.call(this,w),C==null)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(C),this.attributes={},S!=null&&this.attribute(S),w.isDocument&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this)}return r(y,g),y.prototype.clone=function(){var w,C=Object.create(this);C.isRoot&&(C.documentObject=null),C.attributes={};var S=this.attributes;for(w in S)if(i.call(S,w)){var T=S[w];C.attributes[w]=T.clone()}return C.children=[],this.children.forEach(function(B){return B=B.clone(),B.parent=C,C.children.push(B)}),C},y.prototype.attribute=function(w,C){var S;if(w!=null&&(w=v(w)),u(w))for(S in w)i.call(w,S)&&(C=w[S],this.attribute(S,C));else f(C)&&(C=C.apply()),this.options.skipNullAttributes&&C==null||(this.attributes[w]=new h(this,w,C));return this},y.prototype.removeAttribute=function(w){var C;if(w==null)throw Error("Missing attribute name. "+this.debugInfo());if(w=v(w),Array.isArray(w)){var S=0;for(C=w.length;S<C;S++){var T=w[S];delete this.attributes[T]}}else delete this.attributes[w];return this},y.prototype.toString=function(w){return this.options.writer.set(w).element(this)},y.prototype.att=function(w,C){return this.attribute(w,C)},y.prototype.a=function(w,C){return this.attribute(w,C)},y}(l)}).call(this)},{"./Utility":158,"./XMLAttribute":159,"./XMLNode":171}],171:[function(e,t,n){(function(){var r,i,l,u,f,v,h,g={}.hasOwnProperty,y=e("./Utility"),w=y.isObject,C=y.isFunction,S=y.isEmpty,T=y.getValue,B=h=v=u=l=i=r=f=null;t.exports=function(){function F(R){(this.parent=R)&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],f||(f=e("./XMLElement"),r=e("./XMLCData"),i=e("./XMLComment"),l=e("./XMLDeclaration"),u=e("./XMLDocType"),v=e("./XMLRaw"),h=e("./XMLText"),B=e("./XMLProcessingInstruction"))}return F.prototype.element=function(R,N,A){var X=null;if(N==null&&(N={}),N=T(N),w(N)||(N=[N,A],A=N[0],N=N[1]),R!=null&&(R=T(R)),Array.isArray(R)){var Z=0;for(A=R.length;Z<A;Z++)X=R[Z],X=this.element(X)}else if(C(R))X=this.element(R.apply());else if(w(R)){for(Z in R)if(g.call(R,Z)){var z=R[Z];if(C(z)&&(z=z.apply()),w(z)&&S(z)&&(z=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Z.indexOf(this.stringify.convertAttKey)===0)X=this.attribute(Z.substr(this.stringify.convertAttKey.length),z);else if(!this.options.separateArrayItems&&Array.isArray(z))for(A=0,N=z.length;A<N;A++){X=z[A];var Y={};Y[Z]=X,X=this.element(Y)}else w(z)?(X=this.element(Z),X.element(z)):X=this.element(Z,z)}}else X=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&R.indexOf(this.stringify.convertTextKey)===0?this.text(A):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&R.indexOf(this.stringify.convertCDataKey)===0?this.cdata(A):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&R.indexOf(this.stringify.convertCommentKey)===0?this.comment(A):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&R.indexOf(this.stringify.convertRawKey)===0?this.raw(A):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&R.indexOf(this.stringify.convertPIKey)===0?this.instruction(R.substr(this.stringify.convertPIKey.length),A):this.node(R,N,A);if(X==null)throw Error("Could not create any elements with: "+R+". "+this.debugInfo());return X},F.prototype.insertBefore=function(R,N,A){if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(R));var X=this.parent.children.indexOf(this);return X=this.parent.children.splice(X),R=this.parent.element(R,N,A),Array.prototype.push.apply(this.parent.children,X),R},F.prototype.insertAfter=function(R,N,A){if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(R));var X=this.parent.children.indexOf(this);return X=this.parent.children.splice(X+1),R=this.parent.element(R,N,A),Array.prototype.push.apply(this.parent.children,X),R},F.prototype.remove=function(){if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());var R=this.parent.children.indexOf(this);return[].splice.apply(this.parent.children,[R,R-R+1].concat(R=[])),this.parent},F.prototype.node=function(R,N,A){return R!=null&&(R=T(R)),N||(N={}),N=T(N),w(N)||(N=[N,A],A=N[0],N=N[1]),R=new f(this,R,N),A!=null&&R.text(A),this.children.push(R),R},F.prototype.text=function(R){return R=new h(this,R),this.children.push(R),this},F.prototype.cdata=function(R){return R=new r(this,R),this.children.push(R),this},F.prototype.comment=function(R){return R=new i(this,R),this.children.push(R),this},F.prototype.commentBefore=function(R){var N=this.parent.children.indexOf(this);return N=this.parent.children.splice(N),this.parent.comment(R),Array.prototype.push.apply(this.parent.children,N),this},F.prototype.commentAfter=function(R){var N=this.parent.children.indexOf(this);return N=this.parent.children.splice(N+1),this.parent.comment(R),Array.prototype.push.apply(this.parent.children,N),this},F.prototype.raw=function(R){return R=new v(this,R),this.children.push(R),this},F.prototype.instruction=function(R,N){var A;if(R!=null&&(R=T(R)),N!=null&&(N=T(N)),Array.isArray(R))for(N=0,A=R.length;N<A;N++){var X=R[N];this.instruction(X)}else if(w(R))for(X in R)g.call(R,X)&&(N=R[X],this.instruction(X,N));else C(N)&&(N=N.apply()),R=new B(this,R,N),this.children.push(R);return this},F.prototype.instructionBefore=function(R,N){var A=this.parent.children.indexOf(this);return A=this.parent.children.splice(A),this.parent.instruction(R,N),Array.prototype.push.apply(this.parent.children,A),this},F.prototype.instructionAfter=function(R,N){var A=this.parent.children.indexOf(this);return A=this.parent.children.splice(A+1),this.parent.instruction(R,N),Array.prototype.push.apply(this.parent.children,A),this},F.prototype.declaration=function(R,N,A){var X=this.document();return R=new l(X,R,N,A),X.children[0]instanceof l?X.children[0]=R:X.children.unshift(R),X.root()||X},F.prototype.doctype=function(R,N){var A,X,Z=this.document();N=new u(Z,R,N);var z=Z.children,Y=A=0;for(X=z.length;A<X;Y=++A)if(R=z[Y],R instanceof u)return Z.children[Y]=N;for(z=Z.children,Y=A=0,X=z.length;A<X;Y=++A)if(R=z[Y],R.isRoot)return Z.children.splice(Y,0,N),N;return Z.children.push(N),N},F.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},F.prototype.root=function(){var R;for(R=this;R;){if(R.isDocument)return R.rootObject;if(R.isRoot)return R;R=R.parent}},F.prototype.document=function(){var R;for(R=this;R;){if(R.isDocument)return R;R=R.parent}},F.prototype.end=function(R){return this.document().end(R)},F.prototype.prev=function(){var R=this.parent.children.indexOf(this);if(1>R)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[R-1]},F.prototype.next=function(){var R=this.parent.children.indexOf(this);if(R===-1||R===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[R+1]},F.prototype.importDocument=function(R){return R=R.root().clone(),R.parent=this,R.isRoot=!1,this.children.push(R),this},F.prototype.debugInfo=function(R){var N,A;return R=R||this.name,R!=null||(N=this.parent)!=null&&N.name?R==null?"parent: <"+this.parent.name+">":(A=this.parent)!=null&&A.name?"node: <"+R+">, parent: <"+this.parent.name+">":"node: <"+R+">":""}
466,F.prototype.ele=function(R,N,A){return this.element(R,N,A)},F.prototype.nod=function(R,N,A){return this.node(R,N,A)},F.prototype.txt=function(R){return this.text(R)},F.prototype.dat=function(R){return this.cdata(R)},F.prototype.com=function(R){return this.comment(R)},F.prototype.ins=function(R,N){return this.instruction(R,N)},F.prototype.doc=function(){return this.document()},F.prototype.dec=function(R,N,A){return this.declaration(R,N,A)},F.prototype.dtd=function(R,N){return this.doctype(R,N)},F.prototype.e=function(R,N,A){return this.element(R,N,A)},F.prototype.n=function(R,N,A){return this.node(R,N,A)},F.prototype.t=function(R){return this.text(R)},F.prototype.d=function(R){return this.cdata(R)},F.prototype.c=function(R){return this.comment(R)},F.prototype.r=function(R){return this.raw(R)},F.prototype.i=function(R,N){return this.instruction(R,N)},F.prototype.u=function(){return this.up()},F.prototype.importXMLBuilder=function(R){return this.importDocument(R)},F}()}).call(this)},{"./Utility":158,"./XMLCData":160,"./XMLComment":161,"./XMLDeclaration":166,"./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177}],172:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h,g){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(h),g&&(this.value=this.stringify.insValue(g))}return r(f,u),f.prototype.clone=function(){return Object.create(this)},f.prototype.toString=function(v){return this.options.writer.set(v).processingInstruction(this)},f}(l)}).call(this)},{"./XMLNode":171}],173:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(h)}return r(f,u),f.prototype.clone=function(){return Object.create(this)},f.prototype.toString=function(v){return this.options.writer.set(v).raw(this)},f}(l)}).call(this)},{"./XMLNode":171}],174:[function(e,t,n){(function(){var r=function(R,N){function A(){this.constructor=R}for(var X in N)i.call(N,X)&&(R[X]=N[X]);return A.prototype=N.prototype,R.prototype=new A,R.__super__=N.prototype,R},i={}.hasOwnProperty,l=e("./XMLDeclaration"),u=e("./XMLDocType"),f=e("./XMLCData"),v=e("./XMLComment"),h=e("./XMLElement"),g=e("./XMLRaw"),y=e("./XMLText"),w=e("./XMLProcessingInstruction"),C=e("./XMLDTDAttList"),S=e("./XMLDTDElement"),T=e("./XMLDTDEntity"),B=e("./XMLDTDNotation"),F=e("./XMLWriterBase");t.exports=function(R){function N(A,X){N.__super__.constructor.call(this,X),this.stream=A}return r(N,R),N.prototype.document=function(A){var X,Z=A.children,z=0;for(X=Z.length;z<X;z++){var Y=Z[z];Y.isLastRootNode=!1}for(A.children[A.children.length-1].isLastRootNode=!0,X=A.children,Z=[],A=0,z=X.length;A<z;A++)switch(Y=X[A],!1){case!(Y instanceof l):Z.push(this.declaration(Y));break;case!(Y instanceof u):Z.push(this.docType(Y));break;case!(Y instanceof v):Z.push(this.comment(Y));break;case!(Y instanceof w):Z.push(this.processingInstruction(Y));break;default:Z.push(this.element(Y))}return Z},N.prototype.attribute=function(A){return this.stream.write(" "+A.name+'="'+A.value+'"')},N.prototype.cdata=function(A,X){return this.stream.write(this.space(X)+"<![CDATA["+A.text+"]]>"+this.endline(A))},N.prototype.comment=function(A,X){return this.stream.write(this.space(X)+"<!-- "+A.text+" -->"+this.endline(A))},N.prototype.declaration=function(A,X){return this.stream.write(this.space(X)),this.stream.write('<?xml version="'+A.version+'"'),A.encoding!=null&&this.stream.write(' encoding="'+A.encoding+'"'),A.standalone!=null&&this.stream.write(' standalone="'+A.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(A))},N.prototype.docType=function(A,X){var Z;if(X||(X=0),this.stream.write(this.space(X)),this.stream.write("<!DOCTYPE "+A.root
466().name),A.pubID&&A.sysID?this.stream.write(' PUBLIC "'+A.pubID+'" "'+A.sysID+'"'):A.sysID&&this.stream.write(' SYSTEM "'+A.sysID+'"'),0<A.children.length){this.stream.write(" ["),this.stream.write(this.endline(A));var z=A.children,Y=0;for(Z=z.length;Y<Z;Y++){var Q=z[Y];switch(!1){case!(Q instanceof C):this.dtdAttList(Q,X+1);break;case!(Q instanceof S):this.dtdElement(Q,X+1);break;case!(Q instanceof T):this.dtdEntity(Q,X+1);break;case!(Q instanceof B):this.dtdNotation(Q,X+1);break;case!(Q instanceof f):this.cdata(Q,X+1);break;case!(Q instanceof v):this.comment(Q,X+1);break;case!(Q instanceof w):this.processingInstruction(Q,X+1);break;default:throw Error("Unknown DTD node type: "+Q.constructor.name)}}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(A))},N.prototype.element=function(A,X){X||(X=0);var Z=this.space(X);this.stream.write(Z+"<"+A.name);var z=A.attributes;for($ in z)if(i.call(z,$)){var Y=z[$];this.attribute(Y)}if(A.children.length===0||A.children.every(function(te){return te.value===""}))this.allowEmpty?this.stream.write("></"+A.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&A.children.length===1&&A.children[0].value!=null)this.stream.write(">"),this.stream.write(A.children[0].value),this.stream.write("</"+A.name+">");else{this.stream.write(">"+this.newline);var Q=A.children,$=0;for(z=Q.length;$<z;$++)switch(Y=Q[$],!1){case!(Y instanceof f):this.cdata(Y,X+1);break;case!(Y instanceof v):this.comment(Y,X+1);break;case!(Y instanceof h):this.element(Y,X+1);break;case!(Y instanceof g):this.raw(Y,X+1);break;case!(Y instanceof y):this.text(Y,X+1);break;case!(Y instanceof w):this.processingInstruction(Y,X+1);break;default:throw Error("Unknown XML node type: "+Y.constructor.name)}this.stream.write(Z+"</"+A.name+">")}return this.stream.write(this.endline(A))},N.prototype.processingInstruction=function(A,X){return this.stream.write(this.space(X)+"<?"+A.target),A.value&&this.stream.write(" "+A.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(A))},N.prototype.raw=function(A,X){return this.stream.write(this.space(X)+A.value+this.endline(A))},N.prototype.text=function(A,X){return this.stream.write(this.space(X)+A.value+this.endline(A))},N.prototype.dtdAttList=function(A,X){return this.stream.write(this.space(X)+"<!ATTLIST "+A.elementName+" "+A.attributeName+" "+A.attributeType),A.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+A.defaultValueType),A.defaultValue&&this.stream.write(' "'+A.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(A))},N.prototype.dtdElement=function(A,X){return this.stream.write(this.space(X)+"<!ELEMENT "+A.name+" "+A.value),this.stream.write(this.spacebeforeslash+">"+this.endline(A))},N.prototype.dtdEntity=function(A,X){return this.stream.write(this.space(X)+"<!ENTITY"),A.pe&&this.stream.write(" %"),this.stream.write(" "+A.name),A.value?this.stream.write(' "'+A.value+'"'):(A.pubID&&A.sysID?this.stream.write(' PUBLIC "'+A.pubID+'" "'+A.sysID+'"'):A.sysID&&this.stream.write(' SYSTEM "'+A.sysID+'"'),A.nData&&this.stream.write(" NDATA "+A.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(A))},N.prototype.dtdNotation=function(A,X){return this.stream.write(this.space(X)+"<!NOTATION "+A.name),A.pubID&&A.sysID?this.stream.write(' PUBLIC "'+A.pubID+'" "'+A.sysID+'"'):A.pubID?this.stream.write(' PUBLIC "'+A.pubID+'"'):A.sysID&&this.stream.write(' SYSTEM "'+A.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(A))},N.prototype.endline=function(A){return A.isLastRootNode?"":this.newline},N}(F)}).call(this)},{"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,"./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177,"./XMLWriterBase":178}],175:[function(e,t,n){(function(){var r=function(R,N){function A(){this.constructor=R}for(var X in N)i.call(N,X)&&(R[X]=N[X]);return A.prototype=N.prototype,R.prototype=new A,R.__super__=N.prototype,R},i={}.hasOwnProperty,l=e("./XMLDeclaration"),u=e("./XMLDocType"),f=e("./XMLCData"),v=e("./XMLComment"),h=e("./XMLElement"),g=e("./XMLRaw"),y=e("./XMLText"),w=e("./XMLProcessingInstruction"),C=e("./XMLDTDAttList"),S=e("./XMLDTDElement"),T=e("./XMLDTDEntity"),B=e("./XMLDTDNotation"),F=e("./XMLWriterBase");t.exports=function(R){function N(A){N.__super__.constructor.call(this,A)}return r(N,R),N.prototype.document=function(A){var X;this.textispresent=!1;var Z="",z=A.children;for(A=0,X=z.length;A<X;A++){var Y=z[A];Z+=function(){switch(!1){case!(Y instanceof l):return this.declaration(Y);case!(Y instanceof u):return this.docType(Y);case!(Y instanceof v):return this.comment(Y);case!(Y instanceof w):return this.processingInstruction(Y);
466default:return this.element(Y,0)}}.call(this)}return this.pretty&&Z.slice(-this.newline.length)===this.newline&&(Z=Z.slice(0,-this.newline.length)),Z},N.prototype.attribute=function(A){return" "+A.name+'="'+A.value+'"'},N.prototype.cdata=function(A,X){return this.space(X)+"<![CDATA["+A.text+"]]>"+this.newline},N.prototype.comment=function(A,X){return this.space(X)+"<!-- "+A.text+" -->"+this.newline},N.prototype.declaration=function(A,X){return X=this.space(X),X+='<?xml version="'+A.version+'"',A.encoding!=null&&(X+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(X+=' standalone="'+A.standalone+'"'),X+=this.spacebeforeslash+"?>",X+=this.newline},N.prototype.docType=function(A,X){var Z;X||(X=0);var z=this.space(X);if(z+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?z+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(z+=' SYSTEM "'+A.sysID+'"'),0<A.children.length){z=z+" ["+this.newline;var Y=A.children;for(A=0,Z=Y.length;A<Z;A++){var Q=Y[A];z+=function(){switch(!1){case!(Q instanceof C):return this.dtdAttList(Q,X+1);case!(Q instanceof S):return this.dtdElement(Q,X+1);case!(Q instanceof T):return this.dtdEntity(Q,X+1);case!(Q instanceof B):return this.dtdNotation(Q,X+1);case!(Q instanceof f):return this.cdata(Q,X+1);case!(Q instanceof v):return this.comment(Q,X+1);case!(Q instanceof w):return this.processingInstruction(Q,X+1);default:throw Error("Unknown DTD node type: "+Q.constructor.name)}}.call(this)}z+="]"}return z+=this.spacebeforeslash+">",z+=this.newline},N.prototype.element=function(A,X){var Z;X||(X=0);var z=!1;this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault);var Y=this.space(X),Q=Y+"<"+A.name,$=A.attributes;for(Z in $)if(i.call($,Z)){var te=$[Z];Q+=this.attribute(te)}if(A.children.length===0||A.children.every(function(K){return K.value===""}))Q=this.allowEmpty?Q+("></"+A.name+">"+this.newline):Q+(this.spacebeforeslash+"/>"+this.newline);else if(this.pretty&&A.children.length===1&&A.children[0].value!=null)Q=Q+">"+A.children[0].value,Q+="</"+A.name+">"+this.newline;else{if(this.dontprettytextnodes)for($=A.children,te=0,Z=$.length;te<Z;te++){var V=$[te];if(V.value!=null){this.textispresent++,z=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,Y=this.space(X)),Q+=">"+this.newline,$=A.children,te=0,Z=$.length;te<Z;te++)V=$[te],Q+=function(){switch(!1){case!(V instanceof f):return this.cdata(V,X+1);case!(V instanceof v):return this.comment(V,X+1);case!(V instanceof h):return this.element(V,X+1);case!(V instanceof g):return this.raw(V,X+1);case!(V instanceof y):return this.text(V,X+1);case!(V instanceof w):return this.processingInstruction(V,X+1);default:throw Error("Unknown XML node type: "+V.constructor.name)}}.call(this);z&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),Q+=Y+"</"+A.name+">"+this.newline}return Q},N.prototype.processingInstruction=function(A,X){return X=this.space(X)+"<?"+A.target,A.value&&(X+=" "+A.value),X+=this.spacebeforeslash+"?>"+this.newline},N.prototype.raw=function(A,X){return this.space(X)+A.value+this.newline},N.prototype.text=function(A,X){return this.space(X)+A.value+this.newline},N.prototype.dtdAttList=function(A,X){return X=this.space(X)+"<!ATTLIST "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(X+=" "+A.defaultValueType),A.defaultValue&&(X+=' "'+A.defaultValue+'"'),X+=this.spacebeforeslash+">"+this.newline},N.prototype.dtdElement=function(A,X){return this.space(X)+"<!ELEMENT "+A.name+" "+A.value+this.spacebeforeslash+">"+this.newline},N.prototype.dtdEntity=function(A,X){return X=this.space(X)+"<!ENTITY",A.pe&&(X+=" %"),X+=" "+A.name,A.value?X+=' "'+A.value+'"':(A.pubID&&A.sysID?X+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(X+=' SYSTEM "'+A.sysID+'"'),A.nData&&(X+=" NDATA "+A.nData)),X+=this.spacebeforeslash+">"+this.newline},N.prototype.dtdNotation=function(A,X){return X=this.space(X)+"<!NOTATION "+A.name,A.pubID&&A.sysID?X+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?X+=' PUBLIC "'+A.pubID+'"':A.sysID&&(X+=' SYSTEM "'+A.sysID+'"'),X+=this.spacebeforeslash+">"+this.newline},N.prototype.openNode=function(A,X){var Z;if(X||(X=0),A instanceof h){var z=this.space(X)+"<"+A.name,Y=A.attributes;
466for(Z in Y)i.call(Y,Z)&&(X=Y[Z],z+=this.attribute(X));z+=(A.children?">":"/>")+this.newline}else z=this.space(X)+"<!DOCTYPE "+A.rootNodeName,A.pubID&&A.sysID?z+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(z+=' SYSTEM "'+A.sysID+'"'),z+=(A.children?" [":">")+this.newline;return z},N.prototype.closeNode=function(A,X){switch(X||(X=0),!1){case!(A instanceof h):return this.space(X)+"</"+A.name+">"+this.newline;case!(A instanceof u):return this.space(X)+"]>"+this.newline}},N}(F)}).call(this)},{"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,"./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177,"./XMLWriterBase":178}],176:[function(e,t,n){(function(){var r=function(l,u){return function(){return l.apply(u,arguments)}},i={}.hasOwnProperty;t.exports=function(){function l(u){this.assertLegalChar=r(this.assertLegalChar,this);var f;u||(u={}),this.noDoubleEncoding=u.noDoubleEncoding,u=u.stringify||{};for(f in u)if(i.call(u,f)){var v=u[f];this[f]=v}}return l.prototype.eleName=function(u){return this.assertLegalChar(""+u||"")},l.prototype.eleText=function(u){return this.assertLegalChar(this.elEscape(""+u||""))},l.prototype.cdata=function(u){return u=(""+u||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(u)},l.prototype.comment=function(u){if(u=""+u||"",u.match(/--/))throw Error("Comment text cannot contain double-hypen: "+u);return this.assertLegalChar(u)},l.prototype.raw=function(u){return""+u||""},l.prototype.attName=function(u){return""+u||""},l.prototype.attValue=function(u){return this.attEscape(""+u||"")},l.prototype.insTarget=function(u){return""+u||""},l.prototype.insValue=function(u){if(u=""+u||"",u.match(/\?>/))throw Error("Invalid processing instruction value: "+u);return u},l.prototype.xmlVersion=function(u){if(u=""+u||"",!u.match(/1\.[0-9]+/))throw Error("Invalid version number: "+u);return u},l.prototype.xmlEncoding=function(u){if(u=""+u||"",!u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+u);return u},l.prototype.xmlStandalone=function(u){return u?"yes":"no"},l.prototype.dtdPubID=function(u){return""+u||""},l.prototype.dtdSysID=function(u){return""+u||""},l.prototype.dtdElementValue=function(u){return""+u||""},l.prototype.dtdAttType=function(u){return""+u||""},l.prototype.dtdAttDefault=function(u){return u!=null?""+u||"":u},l.prototype.dtdEntityValue=function(u){return""+u||""},l.prototype.dtdNData=function(u){return""+u||""},l.prototype.convertAttKey="@",l.prototype.convertPIKey="?",l.prototype.convertTextKey="#text",l.prototype.convertCDataKey="#cdata",l.prototype.convertCommentKey="#comment",l.prototype.convertRawKey="#raw",l.prototype.assertLegalChar=function(u){var f;if(f=u.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw Error("Invalid character in string: "+u+" at index "+f.index);return u},l.prototype.elEscape=function(u){return u.replace(this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},l.prototype.attEscape=function(u){return u.replace(this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},l}()}).call(this)},{}],177:[function(e,t,n){(function(){var r=function(u,f){function v(){this.constructor=u}for(var h in f)i.call(f,h)&&(u[h]=f[h]);return v.prototype=f.prototype,u.prototype=new v,u.__super__=f.prototype,u},i={}.hasOwnProperty,l=e("./XMLNode");t.exports=function(u){function f(v,h){if(f.__super__.constructor.call(this,v),h==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(h)}return r(f,u),f.prototype.clone=function(){return Object.create(this)},f.prototype.toString=function(v){return this.options.writer.set(v).text(this)},f}(l)}).call(this)},{"./XMLNode":171}],178:[function(e,t,n){(function(){var r={}.hasOwnProperty;t.exports=function(){function i(l){var u,f,v,h,g,y,w;l||(l={}),this.pretty=l.pretty||!1,this.allowEmpty=(f=l.allowEmpty)!=null?f:!1,this.pretty?(this.indent=(v=l.indent)!=null?v:" ",this.newline=(h=l.newline)!=null?h:` 467`,this.offset=(g=l.offset)!=null?g:0,this.dontprettytextnodes=(y=l.dontprettytextnodes)!=null?y:0):(this.newline=this.indent="",this.dontprettytextnodes=this.offset=0),this.spacebeforeslash=(w=l.spacebeforeslash)!=null?w:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=l.writer||{};for(u in l)r.call(l,u)&&(f=l[u],this[u]=f)}return i.prototype.set=function(l){var u;l||(l={}),"pretty"in l&&(this.pretty=l.pretty),"allowEmpty"in l&&(this.allowEmpty=l.allowEmpty),this.pretty?(this.indent="indent"in l?l.indent:" ",this.newline="newline"in l?l.newline:` 468`,this.offset="offset"in l?l.offset:0,this.dontprettytextnodes="dontprettytextnodes"in l?l.dontprettytextnodes:0):(this.newline=this.indent="",this.dontprettytextnodes=this.offset=0),this.spacebeforeslash="spacebeforeslash"in l?l.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=l.writer||{};for(u in l)if(r.call(l,u)){var f=l[u];this[u]=f}return this},i.prototype.space=function(l){return this.pretty?(l=(l||0)+this.offset+1,0<l?Array(l).join(this.indent):""):""},i}()}).call(this)},{}],179:[function(e,t,n){(function(){var r=e("./Utility"),i=r.assign,l=r.isFunction,u=e("./XMLDocument"),f=e("./XMLDocumentCB"),v=e("./XMLStringWriter"),h=e("./XMLStreamWriter");t.exports.create=function(g,y,w,C){if(g==null)throw Error("Root element needs a name.");return C=i({}
468,y,w,C),y=new u(C),g=y.element(g),C.headless||(y.declaration(C),C.pubID==null&&C.sysID==null||y.doctype(C)),g},t.exports.begin=function(g,y,w){return l(g)&&(g=[g,y],y=g[0],w=g[1],g={}),y?new f(g,y,w):new u(g)},t.exports.stringWriter=function(g){return new v(g)},t.exports.streamWriter=function(g,y){return new h(g,y)}}).call(this)},{"./Utility":158,"./XMLDocument":168,"./XMLDocumentCB":169,"./XMLStreamWriter":174,"./XMLStringWriter":175}]},{},[21])(21)});tinymce.PluginManager.add("importword",function(e,t){function n(w){i(w,function(C){mammoth.convertToHtml({arrayBuffer:C}).then(r).done()})}function r(w){var C=w.messages;typeof v=="function"?(w=w.value.replace(/<table/gi,'<table style="border-collapse:collapse;" border="1"').replace(/<img/gi,'<img style="max-width:100%;" '),v(w,function(S){e.insertContent(S),e.notificationManager.close(),e.notificationManager.open({text:" \u5BFC\u5165 word \u6210\u529F ",type:"success",timeout:3e3})},C)):(e.insertContent(w.value.replace(/<table/gi,'<table style="border-collapse:collapse;" border="1"').replace(/<img/gi,'<img style="max-width:100%;" ')),e.notificationManager.close(),e.notificationManager.open({text:" \u5BFC\u5165 word \u6210\u529F ",type:"success",timeout:2e3}))}function i(w,C){w=w[0];var S=new FileReader;S.onload=function(T){C(T.target.result)},S.readAsArrayBuffer(w)}var l=tinymce.util.Tools.resolve("tinymce.util.Promise"),u=tinymce.util.Tools.resolve("tinymce.Env"),f=tinymce.util.Tools.resolve("tinymce.util.Delay"),v=e.getParam("importword_filter",void 0,"function"),h=e.getParam("importword_handler",void 0,"function"),g=function(w){return new l(function(C){var S=document.createElement("input");S.type="file",S.style.position="fixed",S.style.left="0",S.style.top="0",S.style.opacity="0.001",document.body.appendChild(S),S.addEventListener("change",function(B){C(Array.prototype.slice.call(B.target.files))});var T=function(B){var F=function(){C([]),S.parentNode.removeChild(S)};u.os.isAndroid()&&B.type!=="remove"?f.setEditorTimeout(w,F,0):F(),w.off("focusin remove",T)};w.on("focusin remove",T),S.click()})},y=function(){g(e).then(function(w){if(typeof h=="function")h(e,w,function(S){n(S)});else{var C=w[0].name;C.substr(C.lastIndexOf(".")+1)=="docx"?(e.notificationManager.open({text:"\u6B63\u5728\u8F6C\u6362\u4E2D...",type:"info",closeButton:!1}),n(w)):e.notificationManager.open({text:"\u76EE\u524D\u4EC5\u652F\u6301docx\u6587\u4EF6\u683C\u5F0F\uFF0C\u82E5\u4E3Adoc\u683C\u5F0F\uFF0C\u8BF7\u5C06\u6269\u5C55\u540D\u6539\u4E3Adocx",type:"warning"})}})};return e.ui.registry.getAll().icons.importword||e.ui.registry.addIcon("importword",'<svg t="1604625110140" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14669" width="24" height="24"><path d="M546.21184 76.9024a30.72 30.72 0 0 1 21.70368 8.9856l248.22784 247.75168a30.72 30.72 0 0 1 9.0112 21.74464v163.3792a10.24 10.24 0 0 1-10.24 10.24h-51.712a10.24 10.24 0 0 1-10.24-10.24v-109.568h-232.448a30.72 30.72 0 0 1-30.72-30.72v-229.888h-330.752v726.016h438.272a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-478.72a30.72 30.72 0 0 1-30.72-30.72V107.6224a30.72 30.72 0 0 1 30.72-30.72h427.61728z m197.84192 531.712l-171.40736 141.43488a30.72 30.72 0 0 0 0 47.39072l171.40736 141.43488a10.24 10.24 0 0 0 14.2848-1.2288l36.01408-41.95328a10.24 10.24 0 0 0-1.6128-14.848l-94.68416-71.26016h232.43264a10.24 10.24 0 0 0 10.24-10.24v-51.2a10.24 10.24 0 0 0-10.24-10.24h-232.448l94.69952-71.26016a10.24 10.24 0 0 0 1.6128-14.848l-36.01408-41.95328a10.24 10.24 0 0 0-14.2848-1.2288z m-323.8912-224.512a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z m141.312-207.36v155.648a5.12 5.12 0 0 0 5.12 5.12h155.648l-160.768-160.768zM276.48 542.72l37.888 171.008 45.056-171.008h59.904l43.52 173.568 38.4-173.568h50.688l-60.928 248.832H437.76l-49.664-185.856-49.664 185.856H284.16L225.28 542.72h51.2z m143.68768-292.2496a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z" fill="#333" ></path></svg>'),e.ui.registry.addButton("importword",{icon:"importword",tooltip:"\u5BFC\u5165Word",onAction:function(){y()}}),{getMetadata:function(){return{name:"\u5BFC\u5165Word",url:"https://github.com/Five-great/tinymce-plugins"}}}});tinymce.PluginManager.add("axupimgs",function(e,t){var n="\u591A\u56FE\u7247\u6279\u91CF\u4E0A\u4F20";window.axupimgs={},tinymce.baseURL;var r=e.getParam("axupimgs_html_path","","string");axupimgs.images_upload_handler=e.getParam("images_upload_handler",void 0,"function"),axupimgs.images_upload_base_path=e.getParam("images_upload_base_path","","string"),axupimgs.axupimgs_filetype=e.getParam("axupimgs_filetype",".png,.gif,.jpg,.jpeg","string"),axupimgs.res=[];var i=function(){return e.windowManager.openUrl({title:n,size:"large",url:r,buttons:[{type:"cancel",text:"Close"},{type:"custom",text:"Save",name:"save",primary:!0}],onAction:function(l,u){switch(u.name){case"save":var f="",v=axupimgs.res,h=v.length;for(let g=0;g<h;g++)v[g].url&&(f+='<img src="'+v[g].url+'" />');e.insertContent(f),axupimgs.res=[],l.close();break}}})};return e.ui.registry.getAll().icons.axupimgs||e.ui.registry.addIcon("axupimgs",'<svg viewBox="0 0 1280 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
468<path d="M1126.2,779.8V87.6c0-24-22.6-86.9-83.5-86.9H83.5C14.7,0.7,0,63.7,0,87.7v692c0,36.2,29.2,89.7,83.5,89.7l959.3-1.3c51.7,0,83.5-42.5,83.5-88.3zm-1044,4V86.3h961.6V783.7H82.2v0.1z" fill="#53565A"/><path d="M603,461.6L521.1,366.3,313,629.8,227.2,546.8,102.4,716.8H972.8v-170L768.2,235.2,603.1,461.6zM284.6,358.4a105.4,105.4,0,0,0,73.5-30c19.5-19.1,30.3-45,30.2-71.8,0-56.8-45.9-103-102.4-103-56.6,0-102.4,46.1-102.4,103C183.4,313.5,228,358.4,284.6,358.4z" fill="#9598A0"/><path d="M1197.7,153.6l-0.3,669.3s13.5,113.9-67.4,113.9H153.6c0,24.1,23.9,87.2,83.5,87.2h959.3c58.3,0,83.6-49.5,83.6-89.9V240.8c-0.1-41.8-44.9-87.2-82.3-87.2z" fill="#53565A"/></svg>'),e.ui.registry.addButton("axupimgs",{icon:"axupimgs",tooltip:n,onAction:function(){i()}}),e.ui.registry.addMenuItem("axupimgs",{icon:"axupimgs",text:"\u56FE\u7247\u6279\u91CF\u4E0A\u4F20...",onAction:function(){i()}}),{getMetadata:function(){return{name:n,url:"http://tinymce.ax-z.cn/more-plugins/axupimgs.php"}}}});tinymce.PluginManager.add("formulas",function(e,t){var n="\u516C\u5F0F",r=e.getParam("formulas_html_path","","string"),i=function(){return e.windowManager.openUrl({title:n,size:"large",url:r,buttons:[{type:"cancel",text:"Close"}]})};return e.ui.registry.addButton("formulas",{text:n,onAction:function(){i()}}),e.ui.registry.addMenuItem("formulas",{text:n,onAction:function(){i()}}),{getMetadata:function(){return{name:"Example plugin",url:"http://exampleplugindocsurl.com"}}}});tinymce.PluginManager.add("bdmap",function(e,t){var n="\u63D2\u5165\u767E\u5EA6\u5730\u56FE";tinymce.baseURL;var r=e.getParam("bdmap_html_path","","string"),i=e.getParam("bdmap_show_path","","string"),l=function(v){return v.getParam("bdmap_width",1e3)},u=function(v){return v.getParam("bdmap_height",500)};window.tinymceLng="",window.tinymceLat="";var f=function(){return e.windowManager.openUrl({title:n,size:"large",url:r,buttons:[{type:"cancel",text:"Close"},{type:"custom",text:"Save",name:"save",primary:!0}],onAction:function(v,h){switch(h.name){case"save":let g=`<iframe src="${i}?center=${tinymceLng}%2C${tinymceLat}&zoom=19" frameborder="0" width="${l(e)}px" height="${u(e)}px">`;e.insertContent(g),v.close();break}}})};return e.ui.registry.getAll().icons.bdmap||e.ui.registry.addIcon("bdmap",'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M670.8,733c21.1-46.1,45.6-73.7,64.5-90.5,10.3-9.2,21.1-16.8,32.5-21.7-6-8.1-10.6-15.3-15.2-22.2-8.4-12.6-17.3-27.1-21.7-34.1-28.7,15.7-55.9,48.2-77.5,77-12.5,16.7-23.8,34.7-34.7,53.7l52,37.9zM450.2,803.5c6,14.6,9.2,29.3,13.5,40.6,1.6,7.1,3.2,13.5,5.4,19.5,19.5-6,39-12,58-20.1,32.5-13.6,71-33,95.4-58.5l-45-48.2c-8.1,8.1-17.9,14.7-30.4,22.8-21.1,13.6-51.5,30.4-97,43.9zM373.8,204.1c0-52,43.4-95.4,95.4-95.4,53.7,0,94.8,43.4,94.8,95.4,0,53.6-41.2,95.4-94.8,95.4-52,0-95.4-41.7-95.4-95.4zm-105.7,0c0,20.1,2.7,39.6,8.7,58.5h-2.2c16.8,39,35.8,79.9,52,111.1l27.1,52c47.5,91.2,105.7,191.3,114.3,204.3,1.1,0,0.547,0,1.1,1.1,32.5-54.7,60.6-104.1,81.8-143.6l34.1-63.4,26.6-52c15.8-30.9,34.7-71,51.5-110.6h-1.6c6-19,8.7-38.5,8.7-58.5,0-110.6-90.5-200.5-201.1-200.5-111.1,0-201.1,90-201.1,200.5zM229.6,800.2c15.2,11.4,31.3,21.3,48.2,30.4,30.2,16,68.8,34.1,112.7,40.7,1.6-13.1,2.5-29.9,4.3-42.3l3.3-21.7c-11.9-2.2-25.6-5.6-40.1-10.8-24.5-8.8-55.8-23.8-90.5-48.2-9.2,13.5-18.6,25.7-26,35.8l-11.9,16.3zM17.2,949.8c0,41.2,33.6,74.2,74.2,74.2H932.5a74,74,0,0,0,74.2-74.2V336.9A74,74,0,0,0,932.5,262.6H728.2L692.4,362.9H894.6c9.2,0,15.7,6,15.7,15.2V511.4c-28.7-0.531-73.2,2.2-116.5,23.3l5.4,14.6,17.3,45c25.5-8.1,47.7-14.2,65-16.8l28.7-4.3V911.9c0,9.2-6.5,15.1-15.7,15.1H133.2c-9.2,0-15.7-5.9-15.7-15.1V704.8a261.1,261.1,0,0,0,15.2,14.1c9.3,8,23.3,21.1,41.2,36.3,10.3-9.2,20-21.2,28.2-29.8,4.8-5,9.2-9.8,13-14.6-42.8-35.8-86.2-86.2-97.5-100.3V378c0-8.7,6.5-15.2,15.7-15.2h53L209.5,262.5H91.4c-40.7,0-74.2,33.1-74.2,74.3V949.7z"/></svg>'),e.ui.registry.addButton("bdmap",{icon:"bdmap",tooltip:n,onAction:function(){f()}}),e.ui.registry.addMenuItem("bdmap",{text:n,onAction:function(){f()}}),{getMetadata:function(){return{name:n,url:"http://tinymce.ax-z.cn/more-plugins/bdmap.php"}}}});(function(){var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DomQuery");class n{constructor(l){var u=l.getParam("catchremoteimage_loading","","string"),f=l.getParam("catchremoteimage_callback",void 0,"function");return f?(this.images=[],this.editor=l,this.catchremoteimage_loading=u,this.catchremoteimage_callback=f,this.event(),this):!1}event(){let l=this;this.editor.on("paste",function(u){setTimeout(function(){let f=[],v=[];const h=l.editor.getDoc().getElementsByTagName("img");if(h.length)for(var g=0;g<h.length;g++){var y=h[g];if(!y.getAttribute("word_img")){var w=y.getAttribute("data-src")||y.getAttribute("_src")||y.getAttribute("src")||"";/^(https?|ftp):/img.test(w)&&(f.push(w),v.push(y),l.replaceImage(y,{url:l.catchremoteimage_loading}))}}f.length&&l.uploadImage(f,C=>{for(var S=0;S<f.length;S++)l.replaceImage(v[S],C.list[S]);l.editor.save()},C=>{l.editor.notificationManager.open({text:C||"\u4E0A\u4F20\u51FA\u9519\uFF0C\u8BF7\u91CD\u8BD5~",type:"error",timeout:3e3})})},100)})}replaceImage(l,u){let f=this;const v=function(S,T){for(var B=0,F=S.length;B<F;B++){var R=S[B];T(R,B)}},h=function(S,T){for(var B=S.length,F=new Array(B),R=0;R<B;R++){var N=S[R];F[R]=T(N,R)}return F},g=function(S,T,B){let F=0;do F=S.indexOf(T,F),F!==-1&&(S=S.substring(0,F)+B+S.substr(F+T.length),F+=B.length-T.length+1);while(F!==-1);return S},y=function(S,T,B){let F='src="'+B+'"';return S=g(S,'src="'+T+'"',F),S=g(S,'data-mce-src="'+T+'"','data-mce-src="'+B+'"'),S},w=function(S,T){v(f.editor.undoManager.data,function(B){B.type==="fragmented"?B.fragments=h(B.fragments,function(F){return y(F,S,T)}):B.content=y(B.content,S,T)})};this.editor.convertURL(u.url,"src");let C={src:u.url,"data-mce-src":u.url};w(l.src,u.url),t(l).attr(C).removeAttr("alt")}uploadImage(l,u,f){if(!this.catchremoteimage_callback)return f("\u8FDC\u7A0B\u56FE\u7247\u672C\u5730\u5316\uFF1A\u4E0A\u4F20\u56DE\u8C03\u201Ccatchremoteimage_callback\u201D\u914D\u7F6E\u6709\u8BEF"),!1;this.catchremoteimage_callback(l,u,f)}}function r(){e.add("catchremoteimage",function(i){i.on("init",function(l){new n(i)})})}r()})();const Q7t={components:{Editor:X7t},props:{modelValue:String,placeholder:String,disabled:{type:Boolean,default:!1},plugins:{type:[String,Array],default:"print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount textpattern autosave emoticons axupimgs formulas bdmap quickbars powerpaste importword catchremoteimage"},toolbar:{type:[String,Array],default:"undo redo styleselect bold italic strikethrough blockquote bullist numlist table hr link image media codesample formulas | preview fullscreen"}},data(){return{init:{menubar:{},plugins:this.plugins,toolbar:this.toolbar,language_url:"/static/tinymce/langs/zh-Hans.js",language:"zh-Hans",skin_url:"/static/tinymce/skins/ui/oxide",content_css:"/static/tinymce/skins/content/default/content.css",min_height:600,toolbar_mode:"wrap",placeholder:this.placeholder?this.placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9...",content_style:"p {margin: 5px 0;}",fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px",font_formats:"\u5FAE\u8F6F\u96C5\u9ED1=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;\u82F9\u679C\u82F9\u65B9=PingFang SC,Microsoft YaHei,sans-serif;\u5B8B\u4F53=simsun,serif;\u4EFF\u5B8B\u4F53=FangSong,serif;\u9ED1\u4F53=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",lineheight_formats:"0.5 0.8 1 1.2 1.5 1.75 2 2.5 3 4 5",promotion:!1,branding:!1,autosave_ask_before_unload:!1,convert_urls:!1,paste_data_images:!0,emoticons_database_url:"/static/tinymce/emoticons/js/emojis.js",axupimgs_html_path:"/static/tinymce/axupimgs/upfiles.html",formulas_html_path:"/static/tinymce/formulas/formulas.html",bdmap_html_path:"/static/tinymce/bdmap/map.html",bdmap_show_path:"/static/tinymce/bdmap/bd.html",external_plugins:{powerpaste:"/static/tinymce/powerpaste/plugin.min.js"},powerpaste_word_import:"merge",powerpaste_html_import:"merge",powerpaste_allow_local_images:!0,images_upload_handler:(e,t,n)=>{var r="/file/upload",i=new FormData;i.append("fileType",1);var l=new XMLHttpRequest;l.withCredentials=!1,l.open("POST",r),l.timeout=60*60*1e3,l.onload=function(){if(l.status!=200){alert(l.status),t("/error.jpg",{alt:"\u4E0A\u4F20\u5931\u8D25"});return}var u=JSON.parse(l.responseText);if(!u||typeof u.path!="string"){alert(l.responseText),t("/error.jpg",{alt:"\u4E0A\u4F20\u5931\u8D25"});return}u.code==1?t(u.path,{alt:e.filename()}):(alert(u.msg),t("/error.jpg",{alt:"\u4E0A\u4F20\u5931\u8D25"}))},i.append("file",e.blob(),e.filename()),l.send(i)},file_picker_callback:(e,t,n,r)=>{var i=".pdf, .txt, .zip, .rar, .7z, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .mp3, .mp4",l="",u=new FormData;switch(n.filetype){case"image":i=".jpg, .jpeg, .png, .gif",l="/file/upload",u.append("fileType",1);break;case"media":i=".mp3, .mp4",l="/file/upload",u.append("fileType",2);break;case"file":i=".pdf, .txt, .zip, .rar, .7z, .doc, .docx, .xls, .xlsx, .ppt, .pptx",l="/file/upload",u.append("fileType",2);break}var f=document.createElement("input");f.setAttribute("type","file"),f.setAttribute("accept",i),f.click(),f.onchange=function(){var v=this.files[0],h=new XMLHttpRequest;h.withCredentials=!1,h.open("POST",l),h.timeout=60*60*1e3;var g;if(n.filetype!="image"){var y=document.createElement("div");y.id="editor-upload-tips",y.className="el-message el-message--warning is-closable",y.style="top: 16px; z-index: 140000000",y.innerHTML='<p class="el-message__content">\u6B63\u5728\u4E0A\u4F20\uFF0C\u8BF7\u7A0D\u5019...</p><i class="el-icon el-message__closeBtn" onclick="this.parentNode.remove()"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
468<path fill="currentColor" d="M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"></path></svg></i>',document.body.appendChild(y),g=document.getElementById("editor-upload-tips"),h.upload.addEventListener("progress",function(w){var C=w.loaded/w.total*100;g.querySelector("p").innerText="\u6B63\u5728\u4E0A\u4F20\uFF1A"+C.toFixed(2)+"%"})}h.onload=function(){if(g&&g.remove(),h.status!=200){alert(h.status);return}var w=JSON.parse(h.responseText);if(!w||typeof w.path!="string"){alert(h.responseText);return}w.code==1?e(w.path,{title:v.name,text:v.name,alt:v.name}):alert(w.msg)},u.append("file",v,v.name),h.send(u)}},catchremoteimage_loading:"/static/tinymce/catchremoteimage/loading.gif",catchremoteimage_callback(e,t,n){var r="/file/catchRemoteImage",i=new FormData;i.append("images",JSON.stringify(e));var l=new XMLHttpRequest;l.withCredentials=!1,l.open("POST",r),l.timeout=60*60*1e3,l.onload=function(){if(l.status!=200){alert(l.status);return}var u=JSON.parse(l.responseText);if(!u){alert(l.responseText);return}t(u)},l.send(i)}},content:""}},created(){this.content=this.modelValue,this.$watch(()=>this.modelValue,(e,t)=>{this.content=e}),this.$watch(()=>this.content,(e,t)=>{this.$emit("update:modelValue",e)})},mounted(){Z7t.init({})},methods:{}};function J7t(e,t,n,r,i,l){const u=Kr("editor",!0);return Ce(),Ie("div",null,[gt(u,{modelValue:i.content,"onUpdate:modelValue":t[0]||(t[0]=f=>i.content=f),init:i.init,disabled:n.disabled},null,8,["modelValue","init","disabled"])])}var ekt=tv(Q7t,[["render",J7t],["__scopeId","data-v-1434a608"]]);var tkt=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),l=/Edge\/(\d+)/.exec(e),u=r||i||l,f=u&&(r?document.documentMode||6:+(l||i)[1]),v=!l&&/WebKit\//.test(e),h=v&&/Qt\/\d+\.\d+/.test(e),g=!l&&/Chrome\//.test(e),y=/Opera\//.test(e),w=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),S=/PhantomJS/.test(e),T=w&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),B=/Android/.test(e),F=T||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),R=T||/Mac/.test(t),N=/\bCrOS\b/.test(e),A=/win/i.test(t),X=y&&e.match(/Version\/(\d*\.\d*)/);X&&(X=Number(X[1])),X&&X>=15&&(y=!1,v=!0);var Z=R&&(h||y&&(X==null||X<12.11)),z=n||u&&f>=9;function Y(b){return new RegExp("(^|\\s)"+b+"(?:$|\\s)\\s*")}var Q=function(b,k){var q=b.className,W=Y(k).exec(q);if(W){var ae=q.slice(W.index+W[0].length);b.className=q.slice(0,W.index)+(ae?W[1]+ae:"")}};function $(b){for(var k=b.childNodes.length;k>0;--k)b.removeChild(b.firstChild);return b}function te(b,k){return $(b).appendChild(k)}function V(b,k,q,W){var ae=document.createElement(b);if(q&&(ae.className=q),W&&(ae.style.cssText=W),typeof k=="string")ae.appendChild(document.createTextNode(k));else if(k)for(var Ee=0;Ee<k.length;++Ee)ae.appendChild(k[Ee]);return ae}function K(b,k,q,W){var ae=V(b,k,q,W);return ae.setAttribute("role","presentation"),ae}var fe;document.createRange?fe=function(b,k,q,W){var ae=document.createRange();return ae.setEnd(W||b,q),ae.setStart(b,k),ae}:fe=function(b,k,q){var W=document.body.createTextRange();try{W.moveToElementText(b.parentNode)}catch{return W}return W.collapse(!0),W.moveEnd("character",q),W.moveStart("character",k),W};function de(b,k){if(k.nodeType==3&&(k=k.parentNode),b.contains)return b.contains(k);do if(k.nodeType==11&&(k=k.host),k==b)return!0;while(k=k.parentNode)}function ne(){var b;try{b=document.activeElement}catch{b=document.body||null}for(;b&&b.shadowRoot&&b.shadowRoot.activeElement;)b=b.shadowRoot.activeElement;return b}function le(b,k){var q=b.className;Y(k).test(q)||(b.className+=(q?" ":"")+k)}function _e(b,k){for(var q=b.split(" "),W=0;W<q.length;W++)q[W]&&!Y(q[W]).test(k)&&(k+=" "+q[W]);return k}var M=function(b){b.select()};T?M=function(b){b.selectionStart=0,b.selectionEnd=b.value.length}:u&&(M=function(b){try{b.select()}catch{}});
vendor: 34,745 bytes, lines 468-472
468function P(b){var k=Array.prototype.slice.call(arguments,1);return function(){return b.apply(null,k)}}function U(b,k,q){k||(k={});for(var W in b)b.hasOwnProperty(W)&&(q!==!1||!k.hasOwnProperty(W))&&(k[W]=b[W]);return k}function j(b,k,q,W,ae){k==null&&(k=b.search(/[^\s\u00a0]/),k==-1&&(k=b.length));for(var Ee=W||0,Be=ae||0;;){var Ve=b.indexOf(" ",Ee);if(Ve<0||Ve>=k)return Be+(k-Ee);Be+=Ve-Ee,Be+=q-Be%q,Ee=Ve+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};ee.prototype.onTimeout=function(b){b.id=0,b.time<=+new Date?b.f():setTimeout(b.handler,b.time-+new Date)},ee.prototype.set=function(b,k){this.f=k;var q=+new Date+b;(!this.id||q<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,b),this.time=q)};function ye(b,k){for(var q=0;q<b.length;++q)if(b[q]==k)return q;return-1}var ie=50,he={toString:function(){return"CodeMirror.Pass"}},re={scroll:!1},be={origin:"*mouse"},Ae={origin:"+move"};function Te(b,k,q){for(var W=0,ae=0;;){var Ee=b.indexOf(" ",W);Ee==-1&&(Ee=b.length);var Be=Ee-W;if(Ee==b.length||ae+Be>=k)return W+Math.min(Be,k-ae);if(ae+=Ee-W,ae+=q-ae%q,W=Ee+1,ae>=k)return W}}var Ue=[""];function Oe(b){for(;Ue.length<=b;)Ue.push(De(Ue)+" ");return Ue[b]}function De(b){return b[b.length-1]}function $e(b,k){for(var q=[],W=0;W<b.length;W++)q[W]=k(b[W],W);return q}function rt(b,k,q){for(var W=0,ae=q(k);W<b.length&&q(b[W])<=ae;)W++;b.splice(W,0,k)}function ct(){}function lt(b,k){var q;return Object.create?q=Object.create(b):(ct.prototype=b,q=new ct),k&&U(k,q),q}var ot=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fe(b){return/\w/.test(b)||b>"\x80"&&(b.toUpperCase()!=b.toLowerCase()||ot.test(b))}function We(b,k){return k?k.source.indexOf("\\w")>-1&&Fe(b)?!0:k.test(b):Fe(b)}function Ye(b){for(var k in b)if(b.hasOwnProperty(k)&&b[k])return!1;return!0}var Ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mt(b){return b.charCodeAt(0)>=768&&Ke.test(b)}function Ct(b,k,q){for(;(q<0?k>0:k<b.length)&&mt(b.charAt(k));)k+=q;return k}function bt(b,k,q){for(var W=k>q?-1:1;;){if(k==q)return k;var ae=(k+q)/2,Ee=W<0?Math.ceil(ae):Math.floor(ae);if(Ee==k)return b(Ee)?k:q;b(Ee)?q=Ee:k=Ee+W}}function tn(b,k,q,W){if(!b)return W(k,q,"ltr",0);for(var ae=!1,Ee=0;Ee<b.length;++Ee){var Be=b[Ee];(Be.from<q&&Be.to>k||k==q&&Be.to==k)&&(W(Math.max(Be.from,k),Math.min(Be.to,q),Be.level==1?"rtl":"ltr",Ee),ae=!0)}ae||W(k,q,"ltr")}var Ft=null;function It(b,k,q){var W;Ft=null;for(var ae=0;ae<b.length;++ae){var Ee=b[ae];if(Ee.from<k&&Ee.to>k)return ae;Ee.to==k&&(Ee.from!=Ee.to&&q=="before"?W=ae:Ft=ae),Ee.from==k&&(Ee.from!=Ee.to&&q!="before"?W=ae:Ft=ae)}return W!=null?W:Ft}var Et=function(){var b="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",k="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function q(dt){return dt<=247?b.charAt(dt):1424<=dt&&dt<=1524?"R":1536<=dt&&dt<=1785?k.charAt(dt-1536):1774<=dt&&dt<=2220?"r":8192<=dt&&dt<=8203?"w":dt==8204?"b":"L"}var W=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,Ee=/[LRr]/,Be=/[Lb1n]/,Ve=/[1n]/;function Je(dt,Yt,rn){this.level=dt,this.from=Yt,this.to=rn}return function(dt,Yt){var rn=Yt=="ltr"?"L":"R";if(dt.length==0||Yt=="ltr"&&!W.test(dt))return!1;for(var Sn=dt.length,Cn=[],tr=0;tr<Sn;++tr)Cn.push(q(dt.charCodeAt(tr)));for(var Or=0,Qr=rn;Or<Sn;++Or){var yo=Cn[Or];yo=="m"?Cn[Or]=Qr:Qr=yo}for(var Mo=0,no=rn;Mo<Sn;++Mo){var Uo=Cn[Mo];Uo=="1"&&no=="r"?Cn[Mo]="n":Ee.test(Uo)&&(no=Uo,Uo=="r"&&(Cn[Mo]="R"))}for(var ca=1,sa=Cn[0];ca<Sn-1;++ca){var yi=Cn[ca];yi=="+"&&sa=="1"&&Cn[ca+1]=="1"?Cn[ca]="1":yi==","&&sa==Cn[ca+1]&&(sa=="1"||sa=="n")&&(Cn[ca]=sa),sa=yi}for(var Vs=0;Vs<Sn;++Vs){var mu=Cn[Vs];if(mu==",")Cn[Vs]="N";else if(mu=="%"){var fl=void 0;for(fl=Vs+1;fl<Sn&&Cn[fl]=="%";++fl);for(var tf=Vs&&Cn[Vs-1]=="!"||fl<Sn&&Cn[fl]=="1"?"1":"N",Af=Vs;Af<fl;++Af)Cn[Af]=tf;Vs=fl-1}}for(var Xs=0,Ql=rn;Xs<Sn;++Xs){var Da=Cn[Xs];Ql=="L"&&Da=="1"?Cn[Xs]="L":Ee.test(Da)&&(Ql=Da)}for(var jl=0;jl<Sn;++jl)if(ae.test(Cn[jl])){var Es=void 0;for(Es=jl+1;Es<Sn&&ae.test(Cn[Es]);++Es);for(var Nl=(jl?Cn[jl-1]:rn)=="L",_l=(Es<Sn?Cn[Es]:rn)=="L",kf=Nl==_l?Nl?"L":"R":rn,Of=jl;Of<Es;++Of)Cn[Of]=kf;jl=Es-1}for(var Pu=[],sd,Jl=0;Jl<Sn;)if(Be.test(Cn[Jl])){var jp=Jl;for(++Jl;Jl<Sn&&Be.test(Cn[Jl]);++Jl);Pu.push(new Je(0,jp,Jl))}else{var Mf=Jl,j0=Pu.length,hv=Yt=="rtl"?1:0;for(++Jl;Jl<Sn&&Cn[Jl]!="L";++Jl);for(var gu=Mf;gu<Jl;)if(Ve.test(Cn[gu])){Mf<gu&&(Pu.splice(j0,0,new Je(1,Mf,gu)),j0+=hv);var pv=gu;for(++gu;gu<Jl&&Ve.test(Cn[gu]);++gu);Pu.splice(j0,0,new Je(2,pv,gu)),j0+=hv,Mf=gu}else++gu;Mf<Jl&&Pu.splice(j0,0,new Je(1,Mf,Jl))}return Yt=="ltr"&&(Pu[0].level==1&&(sd=dt.match(/^\s+/))&&(Pu[0].from=sd[0].length,Pu.unshift(new Je(0,0,sd[0].length))),De(Pu).level==1&&(sd=dt.match(/\s+$/))&&(De(Pu).to-=sd[0].length,Pu.push(new Je(0,Sn-sd[0].length,Sn)))),Yt=="rtl"?Pu.reverse():Pu}}();function At(b,k){var q=b.order;return q==null&&(q=b.order=Et(b.text,k)),q}var vt=[],Tt=function(b,k,q){if(b.addEventListener)b.addEventListener(k,q,!1);else if(b.attachEvent)b.attachEvent("on"+k,q);else{var W=b._handlers||(b._handlers={});W[k]=(W[k]||vt).concat(q)}};function Wt(b,k){return b._handlers&&b._handlers[k]||vt}function xt(b,k,q){if(b.removeEventListener)b.removeEventListener(k,q,!1);else if(b.detachEvent)b.detachEvent("on"+k,q);else{var W=b._handlers,ae=W&&W[k];if(ae){var Ee=ye(ae,q);Ee>-1&&(W[k]=ae.slice(0,Ee).concat(ae.slice(Ee+1)))}}}function at(b,k){var q=Wt(b,k);if(!!q.length)for(var W=Array.prototype.slice.call(arguments,2),ae=0;ae<q.length;++ae)q[ae].apply(null,W)}function _t(b,k,q){return typeof k=="string"&&(k={type:k,preventDefault:function(){this.defaultPrevented=!0}}),at(b,q||k.type,b,k),pn(k)||k.codemirrorIgnore}function en(b){var k=b._handlers&&b._handlers.cursorActivity;if(!!k)for(var q=b.curOp.cursorActivityHandlers||(b.curOp.cursorActivityHandlers=[]),W=0;W<k.length;++W)ye(q,k[W])==-1&&q.push(k[W])}function An(b,k){return Wt(b,k).length>0}function Vt(b){b.prototype.on=function(k,q){Tt(this,k,q)},b.prototype.off=function(k,q){xt(this,k,q)}}function _n(b){b.preventDefault?b.preventDefault():b.returnValue=!1}function Mt(b){b.stopPropagation?b.stopPropagation():b.cancelBubble=!0}function pn(b){return b.defaultPrevented!=null?b.defaultPrevented:b.returnValue==!1}function En(b){_n(b),Mt(b)}function zn(b){return b.target||b.srcElement}function nn(b){var k=b.which;return k==null&&(b.button&1?k=1:b.button&2?k=3:b.button&4&&(k=2)),R&&b.ctrlKey&&k==1&&(k=3),k}var Yn=function(){if(u&&f<9)return!1;var b=V("div");return"draggable"in b||"dragDrop"in b}(),qr;function Br(b){if(qr==null){var k=V("span","\u200B");te(b,V("span",[k,document.createTextNode("x")])),b.firstChild.offsetHeight!=0&&(qr=k.offsetWidth<=1&&k.offsetHeight>2&&!(u&&f<8))}var q=qr?V("span","\u200B"):V("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return q.setAttribute("cm-text",""),q}var io;function xa(b){if(io!=null)return io;var k=te(b,document.createTextNode("A\u062EA")),q=fe(k,0,1).getBoundingClientRect(),W=fe(k,1,2).getBoundingClientRect();return $(b),!q||q.left==q.right?!1:io=W.right-q.right<3}var Di=` 469 470b`.split(/\n/).length!=3?function(b){for(var k=0,q=[],W=b.length;k<=W;){var ae=b.indexOf(` 471`,k);ae==-1&&(ae=b.length);var Ee=b.slice(k,b.charAt(ae-1)=="\r"?ae-1:ae),Be=Ee.indexOf("\r");Be!=-1?(q.push(Ee.slice(0,Be)),k+=Be+1):(q.push(Ee),k=ae+1)}return q}:function(b){return b.split(/\r\n?|\n/)},la=window.getSelection?function(b){try{return b.selectionStart!=b.selectionEnd}catch{return!1}}:function(b){var k;try{k=b.ownerDocument.selection.createRange()}catch{}return!k||k.parentElement()!=b?!1:k.compareEndPoints("StartToEnd",k)!=0},Na=function(){var b=V("div");return"oncopy"in b?!0:(b.setAttribute("oncopy","return;"),typeof b.oncopy=="function")}(),Bi=null;function Ps(b){if(Bi!=null)return Bi;var k=te(b,V("span","x")),q=k.getBoundingClientRect(),W=fe(k,0,1).getBoundingClientRect();return Bi=Math.abs(q.left-W.left)>1}var rs={},Ai={};function el(b,k){arguments.length>2&&(k.dependencies=Array.prototype.slice.call(arguments,2)),rs[b]=k}function ga(b,k){Ai[b]=k}function _s(b){if(typeof b=="string"&&Ai.hasOwnProperty(b))b=Ai[b];else if(b&&typeof b.name=="string"&&Ai.hasOwnProperty(b.name)){var k=Ai[b.name];typeof k=="string"&&(k={name:k}),b=lt(k,b),b.name=k.name}else{if(typeof b=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(b))return _s("application/xml");if(typeof b=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(b))return _s("application/json")}return typeof b=="string"?{name:b}:b||{name:"null"}}function fo(b,k){k=_s(k);var q=rs[k.name];if(!q)return fo(b,"text/plain");var W=q(b,k);if(il.hasOwnProperty(k.name)){var ae=il[k.name];for(var Ee in ae)!ae.hasOwnProperty(Ee)||(W.hasOwnProperty(Ee)&&(W["_"+Ee]=W[Ee]),W[Ee]=ae[Ee])}if(W.name=k.name,k.helperType&&(W.helperType=k.helperType),k.modeProps)for(var Be in k.modeProps)W[Be]=k.modeProps[Be];return W}var il={};function Fs(b,k){var q=il.hasOwnProperty(b)?il[b]:il[b]={};U(k,q)}function us(b,k){if(k===!0)return k;if(b.copyState)return b.copyState(k);var q={};for(var W in k){var ae=k[W];ae instanceof Array&&(ae=ae.concat([])),q[W]=ae}return q}function cs(b,k){for(var q;b.innerMode&&(q=b.innerMode(k),!(!q||q.mode==b));)k=q.state,b=q.mode;return q||{mode:b,state:k}}function sl(b,k,q){return b.startState?b.startState(k,q):!0}var wi=function(b,k,q){this.pos=this.start=0,this.string=b,this.tabSize=k||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=q};wi.prototype.eol=function(){return this.pos>=this.string.length},wi.prototype.sol=function(){return this.pos==this.lineStart},wi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},wi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},wi.prototype.eat=function(b){var k=this.string.charAt(this.pos),q;if(typeof b=="string"?q=k==b:q=k&&(b.test?b.test(k):b(k)),q)return++this.pos,k},wi.prototype.eatWhile=function(b){for(var k=this.pos;this.eat(b););return this.pos>k},wi.prototype.eatSpace=function(){for(var b=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>b},wi.prototype.skipToEnd=function(){this.pos=this.string.length},wi.prototype.skipTo=function(b){var k=this.string.indexOf(b,this.pos);if(k>-1)return this.pos=k,!0},wi.prototype.backUp=function(b){this.pos-=b},wi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},wi.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},wi.prototype.match=function(b,k,q){if(typeof b=="string"){var W=function(Be){return q?Be.toLowerCase():Be},ae=this.string.substr(this.pos,b.length);if(W(ae)==W(b))return k!==!1&&(this.pos+=b.length),!0}else{var Ee=this.string.slice(this.pos).match(b);return Ee&&Ee.index>0?null:(Ee&&k!==!1&&(this.pos+=Ee[0].length),Ee)}},wi.prototype.current=function(){return this.string.slice(this.start,this.pos)},wi.prototype.hideFirstChars=function(b,k){this.lineStart+=b;try{return k()}finally{this.lineStart-=b}},wi.prototype.lookAhead=function(b){var k=this.lineOracle;return k&&k.lookAhead(b)},wi.prototype.baseToken=function(){var b=this.lineOracle;return b&&b.baseToken(this.pos)};function bo(b,k){if(k-=b.first,k<0||k>=b.size)throw new Error("There is no line "+(k+b.first)+" in the document.");for(var q=b;!q.lines;)for(var W=0;;++W){var ae=q.children[W],Ee=ae.chunkSize();if(k<Ee){q=ae;break}k-=Ee}return q.lines[k]}function pl(b,k,q){var W=[],ae=k.line;return b.iter(k.line,q.line+1,function(Ee){var Be=Ee.text;ae==q.line&&(Be=Be.slice(0,q.ch)),ae==k.line&&(Be=Be.slice(k.ch)),W.push(Be),++ae}),W}function zt(b,k,q){var W=[];return b.iter(k,q,function(ae){W.push(ae.text)}),W}function an(b,k){var q=k-b.height;if(q)for(var W=b;W;W=W.parent)W.height+=q}function Rt(b){if(b.parent==null)return null;for(var k=b.parent,q=ye(k.lines,b),W=k.parent;W;k=W,W=W.parent)for(var ae=0;W.children[ae]!=k;++ae)q+=W.children[ae].chunkSize();return q+k.first}function Nn(b,k){var q=b.first;e:do{for(var W=0;W<b.children.length;++W){var ae=b.children[W],Ee=ae.height;if(k<Ee){b=ae;continue e}k-=Ee,q+=ae.chunkSize()}return q}while(!b.lines);for(var Be=0;Be<b.lines.length;++Be){var Ve=b.lines[Be],Je=Ve.height;if(k<Je)break;k-=Je}return q+Be}function Er(b,k){return k>=b.first&&k<b.first+b.size}function Yr(b,k){return String(b.lineNumberFormatter(k+b.firstLineNumber))}function ft(b,k,q){if(q===void 0&&(q=null),!(this instanceof ft))return new ft(b,k,q);this.line=b,this.ch=k,this.sticky=q}function Bt(b,k){return b.line-k.line||b.ch-k.ch}function Rn(b,k){return b.sticky==k.sticky&&Bt(b,k)==0}function Qn(b){return ft(b.line,b.ch)}function Ze(b,k){return Bt(b,k)<0?k:b}function St(b,k){return Bt(b,k)<0?b:k}function Gt(b,k){return Math.max(b.first,Math.min(k,b.first+b.size-1))}function Xt(b,k){if(k.line<b.first)return ft(b.first,0);var q=b.first+b.size-1;return k.line>q?ft(q,bo(b,q).text.length):On(k,bo(b,k.line).text.length)}function On(b,k){var q=b.ch;return q==null||q>k?ft(b.line,k):q<0?ft(b.line,0):b}function Dn(b,k){for(var q=[],W=0;W<k.length;W++)q[W]=Xt(b,k[W]);return q}var xr=function(b,k){this.state=b,this.lookAhead=k},Nr=function(b,k,q,W){this.state=k,this.doc=b,this.line=q,this.maxLookAhead=W||0,this.baseTokens=null,this.baseTokenPos=1};Nr.prototype.lookAhead=function(b){var k=this.doc.getLine(this.line+b);return k!=null&&b>this.maxLookAhead&&(this.maxLookAhead=b),k},Nr.prototype.baseToken=function(b){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=b;)this.baseTokenPos+=2;var k=this.baseTokens[this.baseTokenPos+1];return{type:k&&k.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-b}},Nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nr.fromSaved=function(b,k,q){return k instanceof xr?new Nr(b,us(b.mode,k.state),q,k.lookAhead):new Nr(b,us(b.mode,k),q)},Nr.prototype.save=function(b){var k=b!==!1?us(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xr(k,this.maxLookAhead):k};function To(b,k,q,W){var ae=[b.state.modeGen],Ee={};as(b,k.text,b.doc.mode,q,function(dt,Yt){return ae.push(dt,Yt)},Ee,W);for(var Be=q.state,Ve=function(dt){q.baseTokens=ae;var Yt=b.state.overlays[dt],rn=1,Sn=0;q.state=!0,as(b,k.text,Yt.mode,q,function(Cn,tr){for(var Or=rn;Sn<Cn;){var Qr=ae[rn];Qr>Cn&&ae.splice(rn,1,Cn,ae[rn+1],Qr),rn+=2,Sn=Math.min(Cn,Qr)}if(!!tr)if(Yt.opaque)ae.splice(Or,rn-Or,Cn,"overlay "+tr),rn=Or+2;else for(;Or<rn;Or+=2){var yo=ae[Or+1];ae[Or+1]=(yo?yo+" ":"")+"overlay "+tr}},Ee),q.state=Be,q.baseTokens=null,q.baseTokenPos=1},Je=0;Je<b.state.overlays.length;++Je)Ve(Je);return{styles:ae,classes:Ee.bgClass||Ee.textClass?Ee:null}}function Bn(b,k,q){if(!k.styles||k.styles[0]!=b.state.modeGen){var W=po(b,Rt(k)),ae=k.text.length>b.options.maxHighlightLength&&us(b.doc.mode,W.state),Ee=To(b,k,W);ae&&(W.state=ae),k.stateAfter=W.save(!ae),k.styles=Ee.styles,Ee.classes?k.styleClasses=Ee.classes:k.styleClasses&&(k.styleClasses=null),q===b.doc.highlightFrontier&&(b.doc.modeFrontier=Math.max(b.doc.modeFrontier,++b.doc.highlightFrontier))}return k.styles}function po(b,k,q){var W=b.doc,ae=b.display;if(!W.mode.startState)return new Nr(W,!0,k);var Ee=ff(b,k,q),Be=Ee>W.first&&bo(W,Ee-1).stateAfter,Ve=Be?Nr.fromSaved(W,Be,Ee):new Nr(W,sl(W.mode),Ee);return W.iter(Ee,k,function(Je){Zo(b,Je.text,Ve);var dt=Ve.line;Je.stateAfter=dt==k-1||dt%5==0||dt>=ae.viewFrom&&dt<ae.viewTo?Ve.save():null,Ve.nextLine()}),q&&(W.modeFrontier=Ve.line),Ve}function Zo(b,k,q,W){var ae=b.doc.mode,Ee=new wi(k,b.options.tabSize,q);for(Ee.start=Ee.pos=W||0,k==""&&Za(ae,q.state);!Ee.eol();)os(ae,Ee,q.state),Ee.start=Ee.pos}function Za(b,k){if(b.blankLine)return b.blankLine(k);if(!!b.innerMode){var q=cs(b,k);if(q.mode.blankLine)return q.mode.blankLine(q.state)}}function os(b,k,q,W){for(var ae=0;ae<10;ae++){W&&(W[0]=cs(b,q).mode);var Ee=b.token(k,q);if(k.pos>k.start)return Ee}throw new Error("Mode "+b.name+" failed to advance stream.")}var ua=function(b,k,q){this.start=b.start,this.end=b.pos,this.string=b.current(),this.type=k||null,this.state=q};function Xu(b,k,q,W){var ae=b.doc,Ee=ae.mode,Be;k=Xt(ae,k);var Ve=bo(ae,k.line),Je=po(b,k.line,q),dt=new wi(Ve.text,b.options.tabSize,Je),Yt;for(W&&(Yt=[]);(W||dt.pos<k.ch)&&!dt.eol();)dt.start=dt.pos,Be=os(Ee,dt,Je.state),W&&Yt.push(new ua(dt,Be,us(ae.mode,Je.state)));return W?Yt:new ua(dt,Be,Je.state)}function Tu(b,k){if(b)for(;;){var q=b.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!q)break;b=b.slice(0,q.index)+b.slice(q.index+q[0].length);var W=q[1]?"bgClass":"textClass";k[W]==null?k[W]=q[2]:new RegExp("(?:^|\\s)"+q[2]+"(?:$|\\s)").test(k[W])||(k[W]+=" "+q[2])}return b}function as(b,k,q,W,ae,Ee,Be){var Ve=q.flattenSpans;Ve==null&&(Ve=b.options.flattenSpans);var Je=0,dt=null,Yt=new wi(k,b.options.tabSize,W),rn,Sn=b.options.addModeClass&&[null];for(k==""&&Tu(Za(q,W.state),Ee);!Yt.eol();){if(Yt.pos>b.options.maxHighlightLength?(Ve=!1,Be&&Zo(b,k,W,Yt.pos),Yt.pos=k.length,rn=null):rn=Tu(os(q,Yt,W.state,Sn),Ee),Sn){var Cn=Sn[0].name;Cn&&(rn="m-"+(rn?Cn+" "+rn:Cn))}if(!Ve||dt!=rn){for(;Je<Yt.start;)Je=Math.min(Yt.start,Je+5e3),ae(Je,dt);dt=rn}Yt.start=Yt.pos}for(;Je<Yt.pos;){var tr=Math.min(Yt.pos,Je+5e3);ae(tr,dt),Je=tr}}function ff(b,k,q){for(var W,ae,Ee=b.doc,Be=q?-1:k-(b.doc.mode.innerMode?1e3:100),Ve=k;Ve>Be;--Ve){if(Ve<=Ee.first)return Ee.first;var Je=bo(Ee,Ve-1),dt=Je.stateAfter;if(dt&&(!q||Ve+(dt instanceof xr?dt.lookAhead:0)<=Ee.modeFrontier))return Ve;var Yt=j(Je.text,null,b.options.tabSize);(ae==null||W>Yt)&&(ae=Ve-1,W=Yt)}return ae}function Pl(b,k){if(b.modeFrontier=Math.min(b.modeFrontier,k),!(b.highlightFrontier<k-10)){for(var q=b.first,W=k-1;W>q;W--){var ae=bo(b,W).stateAfter;if(ae&&(!(ae instanceof xr)||W+ae.lookAhead<k)){q=W+1;break}}b.highlightFrontier=Math.min(b.highlightFrontier,q)}}var Fl=!1,Ka=!1;function df(){Fl=!0}function Rc(){Ka=!0}function Zu(b,k,q){this.marker=b,this.from=k,this.to=q}function hc(b,k){if(b)for(var q=0;q<b.length;++q){var W=b[q];if(W.marker==k)return W}}function ql(b,k){for(var q,W=0;W<b.length;++W)b[W]!=k&&(q||(q=[])).push(b[W]);return q}function Au(b,k,q){var W=q&&window.WeakSet&&(q.markedSpans||(q.markedSpans=new WeakSet));W&&b.markedSpans&&W.has(b.markedSpans)?b.markedSpans.push(k):(b.markedSpans=b.markedSpans?b.markedSpans.concat([k]):[k],W&&W.add(b.markedSpans)),k.marker.attachLine(b)}function qf(b,k,q){var W;if(b)for(var ae=0;ae<b.length;++ae){var Ee=b[ae],Be=Ee.marker,Ve=Ee.from==null||(Be.inclusiveLeft?Ee.from<=k:Ee.from<k);if(Ve||Ee.from==k&&Be.type=="bookmark"&&(!q||!Ee.marker.insertLeft)){var Je=Ee.to==null||(Be.inclusiveRight?Ee.to>=k:Ee.to>k);(W||(W=[])).push(new Zu(Be,Ee.from,Je?null:Ee.to))}}return W}function fu(b,k,q){var W;if(b)for(var ae=0;ae<b.length;++ae){var Ee=b[ae],Be=Ee.marker,Ve=Ee.to==null||(Be.inclusiveRight?Ee.to>=k:Ee.to>k);if(Ve||Ee.from==k&&Be.type=="bookmark"&&(!q||Ee.marker.insertLeft)){var Je=Ee.from==null||(Be.inclusiveLeft?Ee.from<=k:Ee.from<k);(W||(W=[])).push(new Zu(Be,Je?null:Ee.from-k,Ee.to==null?null:Ee.to-k))}}return W}function Sl(b,k){if(k.full)return null;var q=Er(b,k.from.line)&&bo(b,k.from.line).markedSpans,W=Er(b,k.to.line)&&bo(b,k.to.line).markedSpans;if(!q&&!W)return null;var ae=k.from.ch,Ee=k.to.ch,Be=Bt(k.from,k.to)==0,Ve=qf(q,ae,Be),Je=fu(W,Ee,Be),dt=k.text.length==1,Yt=De(k.text).length+(dt?ae:0);if(Ve)for(var rn=0;rn<Ve.length;++rn){var Sn=Ve[rn];if(Sn.to==null){var Cn=hc(Je,Sn.marker);Cn?dt&&(Sn.to=Cn.to==null?null:Cn.to+Yt):Sn.to=ae}}if(Je)for(var tr=0;tr<Je.length;++tr){var Or=Je[tr];if(Or.to!=null&&(Or.to+=Yt),Or.from==null){var Qr=hc(Ve,Or.marker);Qr||(Or.from=Yt,dt&&(Ve||(Ve=[])).push(Or))}else Or.from+=Yt,dt&&(Ve||(Ve=[])).push(Or)}Ve&&(Ve=pt(Ve)),Je&&Je!=Ve&&(Je=pt(Je));var yo=[Ve];if(!dt){var Mo=k.text.length-2,no;if(Mo>0&&Ve)for(var Uo=0;Uo<Ve.length;++Uo)Ve[Uo].to==null&&(no||(no=[])).push(new Zu(Ve[Uo].marker,null,null));for(var ca=0;ca<Mo;++ca)yo.push(no);yo.push(Je)}return yo}function pt(b){for(var k=0;k<b.length;++k){var q=b[k];q.from!=null&&q.from==q.to&&q.marker.clearWhenEmpty!==!1&&b.splice(k--,1)}return b.length?b:null}function sn(b,k,q){var W=null;if(b.iter(k.line,q.line+1,function(Cn){if(Cn.markedSpans)for(var tr=0;tr<Cn.markedSpans.length;++tr){var Or=Cn.markedSpans[tr].marker;Or.readOnly&&(!W||ye(W,Or)==-1)&&(W||(W=[])).push(Or)}}),!W)return null;for(var ae=[{from:k,to:q}],Ee=0;Ee<W.length;++Ee)for(var Be=W[Ee],Ve=Be.find(0),Je=0;Je<ae.length;++Je){var dt=ae[Je];if(!(Bt(dt.to,Ve.from)<0||Bt(dt.from,Ve.to)>0)){var Yt=[Je,1],rn=Bt(dt.from,Ve.from),Sn=Bt(dt.to,Ve.to);(rn<0||!Be.inclusiveLeft&&!rn)&&Yt.push({from:dt.from,to:Ve.from}),(Sn>0||!Be.inclusiveRight&&!Sn)&&Yt.push({from:Ve.to,to:dt.to}),ae.splice.apply(ae,Yt),Je+=Yt.length-3}}return ae}function kn(b){var k=b.markedSpans;if(!!k){for(var q=0;q<k.length;++q)k[q].marker.detachLine(b);b.markedSpans=null}}function er(b,k){if(!!k){for(var q=0;q<k.length;++q)k[q].marker.attachLine(b);b.markedSpans=k}}function wr(b){return b.inclusiveLeft?-1:0}function mo(b){return b.inclusiveRight?1:0}function ja(b,k){var q=b.lines.length-k.lines.length;if(q!=0)return q;var W=b.find(),ae=k.find(),Ee=Bt(W.from,ae.from)||wr(b)-wr(k);if(Ee)return-Ee;var Be=Bt(W.to,ae.to)||mo(b)-mo(k);return Be||k.id-b.id}function ii(b,k){var q=Ka&&b.markedSpans,W;if(q)for(var ae=void 0,Ee=0;Ee<q.length;++Ee)ae=q[Ee],ae.marker.collapsed&&(k?ae.from:ae.to)==null&&(!W||ja(W,ae.marker)<0)&&(W=ae.marker);return W}function da(b){return ii(b,!0)}function Ci(b){return ii(b,!1)}function es(b,k){var q=Ka&&b.markedSpans,W;if(q)for(var ae=0;ae<q.length;++ae){var Ee=q[ae];Ee.marker.collapsed&&(Ee.from==null||Ee.from<k)&&(Ee.to==null||Ee.to>k)&&(!W||ja(W,Ee.marker)<0)&&(W=Ee.marker)}return W}function pc(b,k,q,W,ae){var Ee=bo(b,k),Be=Ka&&Ee.markedSpans;if(Be)for(var Ve=0;Ve<Be.length;++Ve){var Je=Be[Ve];if(!!Je.marker.collapsed){var dt=Je.marker.find(0),Yt=Bt(dt.from,q)||wr(Je.marker)-wr(ae),rn=Bt(dt.to,W)||mo(Je.marker)-mo(ae);if(!(Yt>=0&&rn<=0||Yt<=0&&rn>=0)&&(Yt<=0&&(Je.marker.inclusiveRight&&ae.inclusiveLeft?Bt(dt.to,q)>=0:Bt(dt.to,q)>0)||Yt>=0&&(Je.marker.inclusiveRight&&ae.inclusiveLeft?Bt(dt.from,W)<=0:Bt(dt.from,W)<0)))return!0}}}function Yi(b){for(var k;k=da(b);)b=k.find(-1,!0).line;return b}function mc(b){for(var k;k=Ci(b);)b=k.find(1,!0).line;return b}function Io(b){for(var k,q;k=Ci(b);)b=k.find(1,!0).line,(q||(q=[])).push(b);return q}function gc(b,k){var q=bo(b,k),W=Yi(q);return q==W?k:Rt(W)}function Wd(b,k){if(k>b.lastLine())return k;var q=bo(b,k),W;if(!Ea(b,q))return k;for(;W=Ci(q);)q=W.find(1,!0).line;return Rt(q)+1}function Ea(b,k){var q=Ka&&k.markedSpans;if(q){for(var W=void 0,ae=0;ae<q.length;++ae)if(W=q[ae],!!W.marker.collapsed){if(W.from==null)return!0;if(!W.marker.widgetNode&&W.from==0&&W.marker.inclusiveLeft&&Xf(b,k,W))return!0}}}function Xf(b,k,q){if(q.to==null){var W=q.marker.find(1,!0);return Xf(b,W.line,hc(W.line.markedSpans,q.marker))}if(q.marker.inclusiveRight&&q.to==k.text.length)return!0;for(var ae=void 0,Ee=0;Ee<k.markedSpans.length;++Ee)if(ae=k.markedSpans[Ee],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==q.to&&(ae.to==null||ae.to!=q.from)&&(ae.marker.inclusiveLeft||q.marker.inclusiveRight)&&Xf(b,k,ae))return!0}function ku(b){b=Yi(b);for(var k=0,q=b.parent,W=0;W<q.lines.length;++W){var ae=q.lines[W];if(ae==b)break;k+=ae.height}for(var Ee=q.parent;Ee;q=Ee,Ee=q.parent)for(var Be=0;Be<Ee.children.length;++Be){var Ve=Ee.children[Be];if(Ve==q)break;k+=Ve.height}return k}function Sd(b){if(b.height==0)return 0;for(var k=b.text.length,q,W=b;q=da(W);){var ae=q.find(0,!0);W=ae.from.line,k+=ae.from.ch-ae.to.ch}for(W=b;q=Ci(W);){var Ee=q.find(0,!0);k-=W.text.length-Ee.from.ch,W=Ee.to.line,k+=W.text.length-Ee.to.ch}return k}function fi(b){var k=b.display,q=b.doc;k.maxLine=bo(q,q.first),k.maxLineLength=Sd(k.maxLine),k.maxLineChanged=!0,q.iter(function(W){var ae=Sd(W);ae>k.maxLineLength&&(k.maxLineLength=ae,k.maxLine=W)})}var ml=function(b,k,q){this.text=b,er(this,k),this.height=q?q(this):1};ml.prototype.lineNo=function(){return Rt(this)},Vt(ml);function Bv(b,k,q,W){b.text=k,b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null),b.order!=null&&(b.order=null),kn(b),er(b,q);var ae=W?W(b):1;ae!=b.height&&an(b,ae)}function Qu(b){b.parent=null,kn(b)}var ws={},vf={};function Gn(b,k){if(!b||/^\s*$/.test(b))return null;var q=k.addModeClass?vf:ws;return q[b]||(q[b]=b.replace(/\S+/g,"cm-$&"))}function hf(b,k){var q=K("span",null,null,v?"padding-right: .1px":null),W={pre:K("pre",[q],"CodeMirror-line"),content:q,col:0,pos:0,cm:b,trailingSpace:!1,splitSpaces:b.getOption("lineWrapping")};k.measure={};for(var ae=0;ae<=(k.rest?k.rest.length:0);ae++){var Ee=ae?k.rest[ae-1]:k.line,Be=void 0;W.pos=0,W.addToken=y1,xa(b.display.measure)&&(Be=At(Ee,b.doc.direction))&&(W.addToken=je(W.addToken,Be)),W.map=[];var Ve=k!=b.display.externalMeasured&&Rt(Ee);pe(Ee,W,Bn(b,Ee,Ve)),Ee.styleClasses&&(Ee.styleClasses.bgClass&&(W.bgClass=_e(Ee.styleClasses.bgClass,W.bgClass||"")),Ee.styleClasses.textClass&&(W.textClass=_e(Ee.styleClasses.textClass,W.textClass||""))),W.map.length==0&&W.map.push(0,0,W.content.appendChild(Br(b.display.measure))),ae==0?(k.measure.map=W.map,k.measure.cache={}):((k.measure.maps||(k.measure.maps=[])).push(W.map),(k.measure.caches||(k.measure.caches=[])).push({}))}if(v){var Je=W.content.lastChild;(/\bcm-tab\b/.test(Je.className)||Je.querySelector&&Je.querySelector(".cm-tab"))&&(W.content.className="cm-tab-wrap-hack")}return at(b,"renderLine",b,k.line,W.pre),W.pre.className&&(W.textClass=_e(W.pre.className,W.textClass||"")),W}function Cs(b){var k=V("span","\u2022","cm-invalidchar");return k.title="\\u"+b.charCodeAt(0).toString(16),k.setAttribute("aria-label",k.title),k}function y1(b,k,q,W,ae,Ee,Be){if(!!k){var Ve=b.splitSpaces?Yc(k,b.trailingSpace):k,Je=b.cm.state.specialChars,dt=!1,Yt;if(!Je.test(k))b.col+=k.length,Yt=document.createTextNode(Ve),b.map.push(b.pos,b.pos+k.length,Yt),u&&f<9&&(dt=!0),b.pos+=k.length;else{Yt=document.createDocumentFragment();for(var rn=0;;){Je.lastIndex=rn;var Sn=Je.exec(k),Cn=Sn?Sn.index-rn:k.length-rn;if(Cn){var tr=document.createTextNode(Ve.slice(rn,rn+Cn));u&&f<9?Yt.appendChild(V("span",[tr])):Yt.appendChild(tr),b.map.push(b.pos,b.pos+Cn,tr),b.col+=Cn,b.pos+=Cn}if(!Sn)break;rn+=Cn+1;var Or=void 0;if(Sn[0]==" "){var Qr=b.cm.options.tabSize,yo=Qr-b.col%Qr;Or=Yt.appendChild(V("span",Oe(yo),"cm-tab")),Or.setAttribute("role","presentation"),Or.setAttribute("cm-text"," "),b.col+=yo}else Sn[0]=="\r"||Sn[0]==` 472`?(Or=Yt.appendChild(V("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Or.setAttribute("cm-text",Sn[0]),b.col+=1):(Or=b.cm.options.specialCharPlaceholder(Sn[0]),Or.setAttribute("cm-text",Sn[0]),u&&f<9?Yt.appendChild(V("span",[Or])):Yt.appendChild(Or),b.col+=1);b.map.push(b.pos,b.pos+1,Or),b.pos++}}if(b.trailingSpace=Ve.charCodeAt(k.length-1)==32,q||W||ae||dt||Ee||Be){var Mo=q||"";W&&(Mo+=W),ae&&(Mo+=ae);var no=V("span",[Yt],Mo,Ee);if(Be)for(var Uo in Be)Be.hasOwnProperty(Uo)&&Uo!="style"&&Uo!="class"&&no.setAttribute(Uo,Be[Uo]);return b.content.appendChild(no)}b.content.appendChild(Yt)}}function Yc(b,k){if(b.length>1&&!/ /.test(b))return b;for(var q=k,W="",ae=0;ae<b.length;ae++){var Ee=b.charAt(ae);Ee==" "&&q&&(ae==b.length-1||b.charCodeAt(ae+1)==32)&&(Ee="\xA0"),W+=Ee,q=Ee==" "}return W}function je(b,k){return function(q,W,ae,Ee,Be,Ve,Je){ae=ae?ae+" cm-force-border":"cm-force-border";for(var dt=q.pos,Yt=dt+W.length;;){for(var rn=void 0,Sn=0;Sn<k.length&&(rn=k[Sn],!(rn.to>dt&&rn.from<=dt));Sn++);if(rn.to>=Yt)return b(q,W,ae,Ee,Be,Ve,Je);b(q,W.slice(0,rn.to-dt),ae,Ee,null,Ve,Je),Ee=null,W=W.slice(rn.to-dt),dt=rn.to}}}function xe(b,k,q,W){var ae=!W&&q.widgetNode;ae&&b.map.push(b.pos,b.pos+k,ae),!W&&b.cm.display.input.needsContentAttribute&&(ae||(ae=b.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",q.id)),ae&&(b.cm.display.input.setUneditable(ae),b.content.appendChild(ae)),b.pos+=k,b.trailingSpace=!1}function pe(b,k,q){var W=b.markedSpans,ae=b.text,Ee=0;if(!W){for(var Be=1;Be<q.length;Be+=2)k.addToken(k,ae.slice(Ee,Ee=q[Be]),Gn(q[Be+1],k.cm.options));return}for(var Ve=ae.length,Je=0,dt=1,Yt="",rn,Sn,Cn=0,tr,Or,Qr,yo,Mo;;){if(Cn==Je){tr=Or=Qr=Sn="",Mo=null,yo=null,Cn=1/0;for(var no=[],Uo=void 0,ca=0;ca<W.length;++ca){var sa=W[ca],yi=sa.marker;if(yi.type=="bookmark"&&sa.from==Je&&yi.widgetNode)no.push(yi);else if(sa.from<=Je&&(sa.to==null||sa.to>Je||yi.collapsed&&sa.to==Je&&sa.from==Je)){if(sa.to!=null&&sa.to!=Je&&Cn>sa.to&&(Cn=sa.to,Or=""),yi.className&&(tr+=" "+yi.className),yi.css&&(Sn=(Sn?Sn+";":"")+yi.css),yi.startStyle&&sa.from==Je&&(Qr+=" "+yi.startStyle),yi.endStyle&&sa.to==Cn&&(Uo||(Uo=[])).push(yi.endStyle,sa.to),yi.title&&((Mo||(Mo={})).title=yi.title),yi.attributes)for(var Vs in yi.attributes)(Mo||(Mo={}))[Vs]=yi.attributes[Vs];yi.collapsed&&(!yo||ja(yo.marker,yi)<0)&&(yo=sa)}else sa.from>Je&&Cn>sa.from&&(Cn=sa.from)}if(Uo)for(var mu=0;mu<Uo.length;mu+=2)Uo[mu+1]==Cn&&(Or+=" "+Uo[mu]);if(!yo||yo.from==Je)for(var fl=0;fl<no.length;++fl)xe(k,0,no[fl]);if(yo&&(yo.from||0)==Je){if(xe(k,(yo.to==null?Ve+1:yo.to)-Je,yo.marker,yo.from==null),yo.to==null)return;yo.to==Je&&(yo=!1)}}if(Je>=Ve)break;for(var tf=Math.min(Ve,Cn);;){if(Yt){var Af=Je+Yt.length;if(!yo){var Xs=Af>tf?Yt.slice(0,tf-Je):Yt;k.addToken(k,Xs,rn?rn+tr:tr,Qr,Je+Xs.length==Cn?Or:"",Sn,Mo)}if(Af>=tf){Yt=Yt.slice(tf-Je),Je=tf;break}Je=Af,Qr=""}Yt=ae.slice(Ee,Ee=q[dt++]),rn=Gn(q[dt++],k.cm.options)}}}function Re(b,k,q){this.line=k,this.rest=Io(k),this.size=this.rest?Rt(De(this.rest))-q+1:1,this.node=this.text=null,this.hidden=Ea(b,k)}function st(b,k,q){for(var W=[],ae,Ee=k;Ee<q;Ee=ae){var Be=new Re(b.doc,bo(b.doc,Ee),Ee);ae=Ee+Be.size,W.push(Be)}return W}var Pt=null;function mn(b){Pt?Pt.ops.push(b):b.ownsGroup=Pt={ops:[b],delayedCallbacks:[]}}function ar(b){var k=b.delayedCallbacks,q=0;do{for(;q<k.length;q++)k[q].call(null);for(var W=0;W<b.ops.length;W++){var ae=b.ops[W];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(q<k.length)}function vo(b,k){var q=b.ownsGroup;if(!!q)try{ar(q)}finally{Pt=null,k(q)}}var So=null;function yr(b,k){var q=Wt(b,k);if(!!q.length){var W=Array.prototype.slice.call(arguments,2),ae;Pt?ae=Pt.delayedCallbacks:So?ae=So:(ae=So=[],setTimeout(uo,0));for(var Ee=function(Ve){ae.push(function(){return q[Ve].apply(null,W)})},Be=0;Be<q.length;++Be)Ee(Be)}}function uo(){var b=So;So=null;for(var k=0;k<b.length;++k)b[k]()}function na(b,k,q,W){for(var ae=0;ae<k.changes.length;ae++){var Ee=k.changes[ae];Ee=="text"?Vo(b,k):Ee=="gutter"?si(b,k,q,W):Ee=="class"?di(b,k):Ee=="widget"&&$l(b,k,W)}k.changes=null}function Qo(b){return b.node==b.text&&(b.node=V("div",null,null,"position: relative"),b.text.parentNode&&b.text.parentNode.replaceChild(b.node,b.text),b.node.appendChild(b.text),u&&f<8&&(b.node.style.zIndex=2)),b.node}function jo(b,k){var q=k.bgClass?k.bgClass+" "+(k.line.bgClass||""):k.line.bgClass;if(q&&(q+=" CodeMirror-linebackground"),k.background)q?k.background.className=q:(k.background.parentNode.removeChild(k.background),k.background=null);else if(q){var W=Qo(k);k.background=W.insertBefore(V("div",null,q),W.firstChild),b.display.input.setUneditable(k.background)}}function Vi(b,k){var q=b.display.externalMeasured;return q&&q.line==k.line?(b.display.externalMeasured=null,k.measure=q.measure,q.built):hf(b,k)}function Vo(b,k){var q=k.text.className,W=Vi(b,k);k.text==k.node&&(k.node=W.pre),k.text.parentNode.replaceChild(W.pre,k.text),k.text=W.pre,W.bgClass!=k.bgClass||W.textClass!=k.textClass?(k.bgClass=W.bgClass,k.textClass=W.textClass,di(b,k)):q&&(k.text.className=q)}function di(b,k){jo(b,k),k.line.wrapClass?Qo(k).className=k.line.wrapClass:k.node!=k.text&&(k.node.className="");var q=k.textClass?k.textClass+" "+(k.line.textClass||""):k.line.textClass;k.text.className=q||""}function si(b,k,q,W){if(k.gutter&&(k.node.removeChild(k.gutter),k.gutter=null),k.gutterBackground&&(k.node.removeChild(k.gutterBackground),k.gutterBackground=null),k.line.gutterClass){var ae=Qo(k);k.gutterBackground=V("div",null,"CodeMirror-gutter-background "+k.line.gutterClass,"left: "+(b.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px;
472 width: "+W.gutterTotalWidth+"px"),b.display.input.setUneditable(k.gutterBackground),ae.insertBefore(k.gutterBackground,k.text)}var Ee=k.line.gutterMarkers;if(b.options.lineNumbers||Ee){var Be=Qo(k),Ve=k.gutter=V("div",null,"CodeMirror-gutter-wrapper","left: "+(b.options.fixedGutter?W.fixedPos:-W.gutterTotalWidth)+"px");if(Ve.setAttribute("aria-hidden","true"),b.display.input.setUneditable(Ve),Be.insertBefore(Ve,k.text),k.line.gutterClass&&(Ve.className+=" "+k.line.gutterClass),b.options.lineNumbers&&(!Ee||!Ee["CodeMirror-linenumbers"])&&(k.lineNumber=Ve.appendChild(V("div",Yr(b.options,q),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+W.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+b.display.lineNumInnerWidth+"px"))),Ee)for(var Je=0;Je<b.display.gutterSpecs.length;++Je){var dt=b.display.gutterSpecs[Je].className,Yt=Ee.hasOwnProperty(dt)&&Ee[dt];Yt&&Ve.appendChild(V("div",[Yt],"CodeMirror-gutter-elt","left: "+W.gutterLeft[dt]+"px; width: "+W.gutterWidth[dt]+"px"))}}}function $l(b,k,q){k.alignable&&(k.alignable=null);for(var W=Y("CodeMirror-linewidget"),ae=k.node.firstChild,Ee=void 0;ae;ae=Ee)Ee=ae.nextSibling,W.test(ae.className)&&k.node.removeChild(ae);qc(b,k,q)}function ha(b,k,q,W){var ae=Vi(b,k);return k.text=k.node=ae.pre,ae.bgClass&&(k.bgClass=ae.bgClass),ae.textClass&&(k.textClass=ae.textClass),di(b,k),si(b,k,q,W),qc(b,k,W),k.node}function qc(b,k,q){if(ps(b,k.line,k,q,!0),k.rest)for(var W=0;W<k.rest.length;W++)ps(b,k.rest[W],k,q,!1)}function ps(b,k,q,W,ae){if(!!k.widgets)for(var Ee=Qo(q),Be=0,Ve=k.widgets;Be<Ve.length;++Be){var Je=Ve[Be],dt=V("div",[Je.node],"CodeMirror-linewidget"+(Je.className?" "+Je.className:""));Je.handleMouseEvents||dt.setAttribute("cm-ignore-events","true"),$s(Je,dt,q,W),b.display.input.setUneditable(dt),ae&&Je.above?Ee.insertBefore(dt,q.gutter||q.text):Ee.appendChild(dt),yr(Je,"redraw")}}function $s(b,k,q,W){if(b.noHScroll){(q.alignable||(q.alignable=[])).push(k);
vendor: 138,677 bytes, lines 472-491
472var ae=W.wrapperWidth;k.style.left=W.fixedPos+"px",b.coverGutter||(ae-=W.gutterTotalWidth,k.style.paddingLeft=W.gutterTotalWidth+"px"),k.style.width=ae+"px"}b.coverGutter&&(k.style.zIndex=5,k.style.position="relative",b.noHScroll||(k.style.marginLeft=-W.gutterTotalWidth+"px"))}function Eh(b){if(b.height!=null)return b.height;var k=b.doc.cm;if(!k)return 0;if(!de(document.body,b.node)){var q="position: relative;";b.coverGutter&&(q+="margin-left: -"+k.display.gutters.offsetWidth+"px;"),b.noHScroll&&(q+="width: "+k.display.wrapper.clientWidth+"px;"),te(k.display.measure,V("div",[b.node],null,q))}return b.height=b.node.parentNode.offsetHeight}function zs(b,k){for(var q=zn(k);q!=b.wrapper;q=q.parentNode)if(!q||q.nodeType==1&&q.getAttribute("cm-ignore-events")=="true"||q.parentNode==b.sizer&&q!=b.mover)return!0}function Sh(b){return b.lineSpace.offsetTop}function Zf(b){return b.mover.offsetHeight-b.lineSpace.offsetHeight}function Jo(b){if(b.cachedPaddingH)return b.cachedPaddingH;var k=te(b.measure,V("pre","x","CodeMirror-line-like")),q=window.getComputedStyle?window.getComputedStyle(k):k.currentStyle,W={left:parseInt(q.paddingLeft),right:parseInt(q.paddingRight)};return!isNaN(W.left)&&!isNaN(W.right)&&(b.cachedPaddingH=W),W}function Tl(b){return ie-b.display.nativeBarWidth}function is(b){return b.display.scroller.clientWidth-Tl(b)-b.display.barWidth}function ks(b){return b.display.scroller.clientHeight-Tl(b)-b.display.barHeight}function zl(b,k,q){var W=b.options.lineWrapping,ae=W&&is(b);if(!k.measure.heights||W&&k.measure.width!=ae){var Ee=k.measure.heights=[];if(W){k.measure.width=ae;for(var Be=k.text.firstChild.getClientRects(),Ve=0;Ve<Be.length-1;Ve++){var Je=Be[Ve],dt=Be[Ve+1];Math.abs(Je.bottom-dt.bottom)>2&&Ee.push((Je.bottom+dt.top)/2-q.top)}}Ee.push(q.bottom-q.top)}}function ll(b,k,q){if(b.line==k)return{map:b.measure.map,cache:b.measure.cache};if(b.rest){for(var W=0;W<b.rest.length;W++)if(b.rest[W]==k)return{map:b.measure.maps[W],cache:b.measure.caches[W]};for(var ae=0;ae<b.rest.length;ae++)if(Rt(b.rest[ae])>q)return{map:b.measure.maps[ae],cache:b.measure.caches[ae],before:!0}}}function Pv(b,k){k=Yi(k);var q=Rt(k),W=b.display.externalMeasured=new Re(b.doc,k,q);W.lineN=q;var ae=W.built=hf(b,W);return W.text=ae.pre,te(b.display.lineMeasure,ae.pre),W}function pf(b,k,q,W){return tl(b,Pi(b,k),q,W)}function ai(b,k){if(k>=b.display.viewFrom&&k<b.display.viewTo)return b.display.view[du(b,k)];var q=b.display.externalMeasured;if(q&&k>=q.lineN&&k<q.lineN+q.size)return q}function Pi(b,k){var q=Rt(k),W=ai(b,q);W&&!W.text?W=null:W&&W.changes&&(na(b,W,q,_1(b)),b.curOp.forceUpdate=!0),W||(W=Pv(b,k));var ae=ll(W,k,q);return{line:k,view:W,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function tl(b,k,q,W,ae){k.before&&(q=-1);var Ee=q+(W||""),Be;return k.cache.hasOwnProperty(Ee)?Be=k.cache[Ee]:(k.rect||(k.rect=k.view.text.getBoundingClientRect()),k.hasHeights||(zl(b,k.view,k.rect),k.hasHeights=!0),Be=v2(b,k,q,W),Be.bogus||(k.cache[Ee]=Be)),{left:Be.left,right:Be.right,top:ae?Be.rtop:Be.top,bottom:ae?Be.rbottom:Be.bottom}}var Gd={left:0,right:0,top:0,bottom:0};function gl(b,k,q){for(var W,ae,Ee,Be,Ve,Je,dt=0;dt<b.length;dt+=3)if(Ve=b[dt],Je=b[dt+1],k<Ve?(ae=0,Ee=1,Be="left"):k<Je?(ae=k-Ve,Ee=ae+1):(dt==b.length-3||k==Je&&b[dt+3]>k)&&(Ee=Je-Ve,ae=Ee-1,k>=Je&&(Be="right")),ae!=null){if(W=b[dt+2],Ve==Je&&q==(W.insertLeft?"left":"right")&&(Be=q),q=="left"&&ae==0)for(;dt&&b[dt-2]==b[dt-3]&&b[dt-1].insertLeft;)W=b[(dt-=3)+2],Be="left";if(q=="right"&&ae==Je-Ve)for(;dt<b.length-3&&b[dt+3]==b[dt+4]&&!b[dt+5].insertLeft;)W=b[(dt+=3)+2],Be="right";break}return{node:W,start:ae,end:Ee,collapse:Be,coverStart:Ve,coverEnd:Je}}function mf(b,k){var q=Gd;if(k=="left")for(var W=0;W<b.length&&(q=b[W]).left==q.right;W++);else for(var ae=b.length-1;ae>=0&&(q=b[ae]).left==q.right;ae--);return q}function v2(b,k,q,W){var ae=gl(k.map,q,W),Ee=ae.node,Be=ae.start,Ve=ae.end,Je=ae.collapse,dt;if(Ee.nodeType==3){for(var Yt=0;Yt<4;Yt++){for(;Be&&mt(k.line.text.charAt(ae.coverStart+Be));)--Be;for(;ae.coverStart+Ve<ae.coverEnd&&mt(k.line.text.charAt(ae.coverStart+Ve));)++Ve;if(u&&f<9&&Be==0&&Ve==ae.coverEnd-ae.coverStart?dt=Ee.parentNode.getBoundingClientRect():dt=mf(fe(Ee,Be,Ve).getClientRects(),W),dt.left||dt.right||Be==0)break;Ve=Be,Be=Be-1,Je="right"}u&&f<11&&(dt=Fv(b.display.measure,dt))}else{Be>0&&(Je=W="right");var rn;b.options.lineWrapping&&(rn=Ee.getClientRects()).length>1?dt=rn[W=="right"?rn.length-1:0]:dt=Ee.getBoundingClientRect()}if(u&&f<9&&!Be&&(!dt||!dt.left&&!dt.right)){var Sn=Ee.parentNode.getClientRects()[0];Sn?dt={left:Sn.left,right:Sn.left+Xc(b.display),top:Sn.top,bottom:Sn.bottom}:dt=Gd}for(var Cn=dt.top-k.rect.top,tr=dt.bottom-k.rect.top,Or=(Cn+tr)/2,Qr=k.view.measure.heights,yo=0;yo<Qr.length-1&&!(Or<Qr[yo]);yo++);var Mo=yo?Qr[yo-1]:0,no=Qr[yo],Uo={left:(Je=="right"?dt.right:dt.left)-k.rect.left,right:(Je=="left"?dt.left:dt.right)-k.rect.left,top:Mo,bottom:no};return!dt.left&&!dt.right&&(Uo.bogus=!0),b.options.singleCursorHeightPerLine||(Uo.rtop=Cn,Uo.rbottom=tr),Uo}function Fv(b,k){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ps(b))return k;var q=screen.logicalXDPI/screen.deviceXDPI,W=screen.logicalYDPI/screen.deviceYDPI;return{left:k.left*q,right:k.right*q,top:k.top*W,bottom:k.bottom*W}}function Ui(b){if(b.measure&&(b.measure.cache={},b.measure.heights=null,b.rest))for(var k=0;k<b.rest.length;k++)b.measure.caches[k]={}}function Qf(b){b.display.externalMeasure=null,$(b.display.lineMeasure);for(var k=0;k<b.display.view.length;k++)Ui(b.display.view[k])}function Jf(b){Qf(b),b.display.cachedCharWidth=b.display.cachedTextHeight=b.display.cachedPaddingH=null,b.options.lineWrapping||(b.display.maxLineChanged=!0),b.display.lineNumChars=null}function yc(){return g&&B?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ws(){return g&&B?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Kd(b){var k=Yi(b),q=k.widgets,W=0;if(q)for(var ae=0;ae<q.length;++ae)q[ae].above&&(W+=Eh(q[ae]));return W}function ed(b,k,q,W,ae){if(!ae){var Ee=Kd(k);q.top+=Ee,q.bottom+=Ee}if(W=="line")return q;W||(W="local");var Be=ku(k);if(W=="local"?Be+=Sh(b.display):Be-=b.display.viewOffset,W=="page"||W=="window"){var Ve=b.display.lineSpace.getBoundingClientRect();Be+=Ve.top+(W=="window"?0:Ws());var Je=Ve.left+(W=="window"?0:yc());q.left+=Je,q.right+=Je}return q.top+=Be,q.bottom+=Be,q}function Ou(b,k,q){if(q=="div")return k;var W=k.left,ae=k.top;if(q=="page")W-=yc(),ae-=Ws();else if(q=="local"||!q){var Ee=b.display.sizer.getBoundingClientRect();W+=Ee.left,ae+=Ee.top}var Be=b.display.lineSpace.getBoundingClientRect();return{left:W-Be.left,top:ae-Be.top}}function Mu(b,k,q,W,ae){return W||(W=bo(b.doc,k.line)),ed(b,W,pf(b,W,k.ch,ae),q)}function Os(b,k,q,W,ae,Ee){W=W||bo(b.doc,k.line),ae||(ae=Pi(b,W));function Be(tr,Or){var Qr=tl(b,ae,tr,Or?"right":"left",Ee);return Or?Qr.left=Qr.right:Qr.right=Qr.left,ed(b,W,Qr,q)}var Ve=At(W,b.doc.direction),Je=k.ch,dt=k.sticky;if(Je>=W.text.length?(Je=W.text.length,dt="before"):Je<=0&&(Je=0,dt="after"),!Ve)return Be(dt=="before"?Je-1:Je,dt=="before");function Yt(tr,Or,Qr){var yo=Ve[Or],Mo=yo.level==1;return Be(Qr?tr-1:tr,Mo!=Qr)}var rn=It(Ve,Je,dt),Sn=Ft,Cn=Yt(Je,rn,dt=="before");return Sn!=null&&(Cn.other=Yt(Je,Sn,dt!="before")),Cn}function $v(b,k){var q=0;k=Xt(b.doc,k),b.options.lineWrapping||(q=Xc(b.display)*k.ch);var W=bo(b.doc,k.line),ae=ku(W)+Sh(b.display);return{left:q,right:q,top:ae,bottom:ae+W.height}}function gf(b,k,q,W,ae){var Ee=ft(b,k,q);return Ee.xRel=ae,W&&(Ee.outside=W),Ee}function yl(b,k,q){var W=b.doc;if(q+=b.display.viewOffset,q<0)return gf(W.first,0,null,-1,-1);var ae=Nn(W,q),Ee=W.first+W.size-1;if(ae>Ee)return gf(W.first+W.size-1,bo(W,Ee).text.length,null,1,1);k<0&&(k=0);for(var Be=bo(W,ae);;){var Ve=zv(b,Be,ae,k,q),Je=es(Be,Ve.ch+(Ve.xRel>0||Ve.outside>0?1:0));if(!Je)return Ve;var dt=Je.find(1);if(dt.line==ae)return dt;Be=bo(W,ae=dt.line)}}function Th(b,k,q,W){W-=Kd(k);var ae=k.text.length,Ee=bt(function(Be){return tl(b,q,Be-1).bottom<=W},ae,0);return ae=bt(function(Be){return tl(b,q,Be).top>W},Ee,ae),{begin:Ee,end:ae}}function $m(b,k,q,W){q||(q=Pi(b,k));var ae=ed(b,k,tl(b,q,W),"line").top;return Th(b,k,q,ae)}function b1(b,k,q,W){return b.bottom<=q?!1:b.top>q?!0:(W?b.left:b.right)>k}function zv(b,k,q,W,ae){ae-=ku(k);var Ee=Pi(b,k),Be=Kd(k),Ve=0,Je=k.text.length,dt=!0,Yt=At(k,b.doc.direction);if(Yt){var rn=(b.options.lineWrapping?Hv:Gs)(b,k,q,Ee,Yt,W,ae);dt=rn.level!=1,Ve=dt?rn.from:rn.to-1,Je=dt?rn.to:rn.from-1}var Sn=null,Cn=null,tr=bt(function(ca){var sa=tl(b,Ee,ca);return sa.top+=Be,sa.bottom+=Be,b1(sa,W,ae,!1)?(sa.top<=ae&&sa.left<=W&&(Sn=ca,Cn=sa),!0):!1},Ve,Je),Or,Qr,yo=!1;if(Cn){var Mo=W-Cn.left<Cn.right-W,no=Mo==dt;tr=Sn+(no?0:1),Qr=no?"after":"before",Or=Mo?Cn.left:Cn.right}else{!dt&&(tr==Je||tr==Ve)&&tr++,Qr=tr==0?"after":tr==k.text.length?"before":tl(b,Ee,tr-(dt?1:0)).bottom+Be<=ae==dt?"after":"before";var Uo=Os(b,ft(q,tr,Qr),"line",k,Ee);Or=Uo.left,yo=ae<Uo.top?-1:ae>=Uo.bottom?1:0}return tr=Ct(k.text,tr,1),gf(q,tr,Qr,yo,W-Or)}function Gs(b,k,q,W,ae,Ee,Be){var Ve=bt(function(rn){var Sn=ae[rn],Cn=Sn.level!=1;return b1(Os(b,ft(q,Cn?Sn.to:Sn.from,Cn?"before":"after"),"line",k,W),Ee,Be,!0)},0,ae.length-1),Je=ae[Ve];if(Ve>0){var dt=Je.level!=1,Yt=Os(b,ft(q,dt?Je.from:Je.to,dt?"after":"before"),"line",k,W);b1(Yt,Ee,Be,!0)&&Yt.top>Be&&(Je=ae[Ve-1])}return Je}function Hv(b,k,q,W,ae,Ee,Be){var Ve=Th(b,k,W,Be),Je=Ve.begin,dt=Ve.end;/\s/.test(k.text.charAt(dt-1))&&dt--;for(var Yt=null,rn=null,Sn=0;Sn<ae.length;Sn++){var Cn=ae[Sn];if(!(Cn.from>=dt||Cn.to<=Je)){var tr=Cn.level!=1,Or=tl(b,W,tr?Math.min(dt,Cn.to)-1:Math.max(Je,Cn.from)).right,Qr=Or<Ee?Ee-Or+1e9:Or-Ee;(!Yt||rn>Qr)&&(Yt=Cn,rn=Qr)}}return Yt||(Yt=ae[ae.length-1]),Yt.from<Je&&(Yt={from:Je,to:Yt.to,level:Yt.level}),Yt.to>dt&&(Yt={from:Yt.from,to:dt,level:Yt.level}),Yt}var yf;function Al(b){if(b.cachedTextHeight!=null)return b.cachedTextHeight;if(yf==null){yf=V("pre",null,"CodeMirror-line-like");for(var k=0;k<49;++k)yf.appendChild(document.createTextNode("x")),yf.appendChild(V("br"));yf.appendChild(document.createTextNode("x"))}te(b.measure,yf);var q=yf.offsetHeight/50;return q>3&&(b.cachedTextHeight=q),$(b.measure),q||1}function Xc(b){if(b.cachedCharWidth!=null)return b.cachedCharWidth;var k=V("span","xxxxxxxxxx"),q=V("pre",[k],"CodeMirror-line-like");te(b.measure,q);var W=k.getBoundingClientRect(),ae=(W.right-W.left)/10;return ae>2&&(b.cachedCharWidth=ae),ae||10}function _1(b){for(var k=b.display,q={},W={},ae=k.gutters.clientLeft,Ee=k.gutters.firstChild,Be=0;Ee;Ee=Ee.nextSibling,++Be){var Ve=b.display.gutterSpecs[Be].className;q[Ve]=Ee.offsetLeft+Ee.clientLeft+ae,W[Ve]=Ee.clientWidth}return{fixedPos:Td(k),gutterTotalWidth:k.gutters.offsetWidth,gutterLeft:q,gutterWidth:W,wrapperWidth:k.wrapper.clientWidth}}function Td(b){return b.scroller.getBoundingClientRect().left-b.sizer.getBoundingClientRect().left}function xs(b){var k=Al(b.display),q=b.options.lineWrapping,W=q&&Math.max(5,b.display.scroller.clientWidth/Xc(b.display)-3);return function(ae){if(Ea(b.doc,ae))return 0;var Ee=0;if(ae.widgets)for(var Be=0;Be<ae.widgets.length;Be++)ae.widgets[Be].height&&(Ee+=ae.widgets[Be].height);return q?Ee+(Math.ceil(ae.text.length/W)||1)*k:Ee+k}}function bc(b){var k=b.doc,q=xs(b);k.iter(function(W){var ae=q(W);ae!=W.height&&an(W,ae)})}function Yd(b,k,q,W){var ae=b.display;if(!q&&zn(k).getAttribute("cm-not-content")=="true")return null;var Ee,Be,Ve=ae.lineSpace.getBoundingClientRect();try{Ee=k.clientX-Ve.left,Be=k.clientY-Ve.top}catch{return null}var Je=yl(b,Ee,Be),dt;if(W&&Je.xRel>0&&(dt=bo(b.doc,Je.line).text).length==Je.ch){var Yt=j(dt,dt.length,b.options.tabSize)-dt.length;Je=ft(Je.line,Math.max(0,Math.round((Ee-Jo(b.display).left)/Xc(b.display))-Yt))}return Je}function du(b,k){if(k>=b.display.viewTo||(k-=b.display.viewFrom,k<0))return null;for(var q=b.display.view,W=0;W<q.length;W++)if(k-=q[W].size,k<0)return W}function Nu(b,k,q,W){k==null&&(k=b.doc.first),q==null&&(q=b.doc.first+b.doc.size),W||(W=0);var ae=b.display;if(W&&q<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>k)&&(ae.updateLineNumbers=k),b.curOp.viewChanged=!0,k>=ae.viewTo)Ka&&gc(b.doc,k)<ae.viewTo&&qd(b);else if(q<=ae.viewFrom)Ka&&Wd(b.doc,q+W)>ae.viewFrom?qd(b):(ae.viewFrom+=W,ae.viewTo+=W);else if(k<=ae.viewFrom&&q>=ae.viewTo)qd(b);else if(k<=ae.viewFrom){var Ee=Xd(b,q,q+W,1);Ee?(ae.view=ae.view.slice(Ee.index),ae.viewFrom=Ee.lineN,ae.viewTo+=W):qd(b)}else if(q>=ae.viewTo){var Be=Xd(b,k,k,-1);Be?(ae.view=ae.view.slice(0,Be.index),ae.viewTo=Be.lineN):qd(b)}else{var Ve=Xd(b,k,k,-1),Je=Xd(b,q,q+W,1);Ve&&Je?(ae.view=ae.view.slice(0,Ve.index).concat(st(b,Ve.lineN,Je.lineN)).concat(ae.view.slice(Je.index)),ae.viewTo+=W):qd(b)}var dt=ae.externalMeasured;dt&&(q<dt.lineN?dt.lineN+=W:k<dt.lineN+dt.size&&(ae.externalMeasured=null))}function w1(b,k,q){b.curOp.viewChanged=!0;var W=b.display,ae=b.display.externalMeasured;if(ae&&k>=ae.lineN&&k<ae.lineN+ae.size&&(W.externalMeasured=null),!(k<W.viewFrom||k>=W.viewTo)){var Ee=W.view[du(b,k)];if(Ee.node!=null){var Be=Ee.changes||(Ee.changes=[]);ye(Be,q)==-1&&Be.push(q)}}}function qd(b){b.display.viewFrom=b.display.viewTo=b.doc.first,b.display.view=[],b.display.viewOffset=0}function Xd(b,k,q,W){var ae=du(b,k),Ee,Be=b.display.view;if(!Ka||q==b.doc.first+b.doc.size)return{index:ae,lineN:q};for(var Ve=b.display.viewFrom,Je=0;Je<ae;Je++)Ve+=Be[Je].size;if(Ve!=k){if(W>0){if(ae==Be.length-1)return null;Ee=Ve+Be[ae].size-k,ae++}else Ee=Ve-k;k+=Ee,q+=Ee}for(;gc(b.doc,q)!=q;){if(ae==(W<0?0:Be.length-1))return null;q+=W*Be[ae-(W<0?1:0)].size,ae+=W}return{index:ae,lineN:q}}function Vv(b,k,q){var W=b.display,ae=W.view;ae.length==0||k>=W.viewTo||q<=W.viewFrom?(W.view=st(b,k,q),W.viewFrom=k):(W.viewFrom>k?W.view=st(b,k,W.viewFrom).concat(W.view):W.viewFrom<k&&(W.view=W.view.slice(du(b,k))),W.viewFrom=k,W.viewTo<q?W.view=W.view.concat(st(b,W.viewTo,q)):W.viewTo>q&&(W.view=W.view.slice(0,du(b,q)))),W.viewTo=q}function C1(b){for(var k=b.display.view,q=0,W=0;W<k.length;W++){var ae=k[W];!ae.hidden&&(!ae.node||ae.changes)&&++q}return q}function Ko(b){b.display.input.showSelection(b.display.input.prepareSelection())}function bf(b,k){k===void 0&&(k=!0);var q=b.doc,W={},ae=W.cursors=document.createDocumentFragment(),Ee=W.selection=document.createDocumentFragment(),Be=b.options.$customCursor;Be&&(k=!0);for(var Ve=0;Ve<q.sel.ranges.length;Ve++)if(!(!k&&Ve==q.sel.primIndex)){var Je=q.sel.ranges[Ve];if(!(Je.from().line>=b.display.viewTo||Je.to().line<b.display.viewFrom)){var dt=Je.empty();if(Be){var Yt=Be(b,Je);Yt&&Ju(b,Yt,ae)}else(dt||b.options.showCursorWhenSelecting)&&Ju(b,Je.head,ae);dt||td(b,Je,Ee)}}return W}function Ju(b,k,q){var W=Os(b,k,"div",null,null,!b.options.singleCursorHeightPerLine),ae=q.appendChild(V("div","\xA0","CodeMirror-cursor"));if(ae.style.left=W.left+"px",ae.style.top=W.top+"px",ae.style.height=Math.max(0,W.bottom-W.top)*b.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(b.getWrapperElement().className)){var Ee=Mu(b,k,"div",null,null),Be=Ee.right-Ee.left;ae.style.width=(Be>0?Be:b.defaultCharWidth())+"px"}if(W.other){var Ve=q.appendChild(V("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ve.style.display="",Ve.style.left=W.other.left+"px",Ve.style.top=W.other.top+"px",Ve.style.height=(W.other.bottom-W.other.top)*.85+"px"}}function Xl(b,k){return b.top-k.top||b.left-k.left}function td(b,k,q){var W=b.display,ae=b.doc,Ee=document.createDocumentFragment(),Be=Jo(b.display),Ve=Be.left,Je=Math.max(W.sizerWidth,is(b)-W.sizer.offsetLeft)-Be.right,dt=ae.direction=="ltr";function Yt(no,Uo,ca,sa){Uo<0&&(Uo=0),Uo=Math.round(Uo),sa=Math.round(sa),Ee.appendChild(V("div",null,"CodeMirror-selected","position: absolute; left: "+no+`px; 473 top: `+Uo+"px; width: "+(ca==null?Je-no:ca)+`px; 474 height: `+(sa-Uo)+"px"))}function rn(no,Uo,ca){var sa=bo(ae,no),yi=sa.text.length,Vs,mu;function fl(Xs,Ql){return Mu(b,ft(no,Xs),"div",sa,Ql)}function tf(Xs,Ql,Da){var jl=$m(b,sa,null,Xs),Es=Ql=="ltr"==(Da=="after")?"left":"right",Nl=Da=="after"?jl.begin:jl.end-(/\s/.test(sa.text.charAt(jl.end-1))?2:1);return fl(Nl,Es)[Es]}var Af=At(sa,ae.direction);return tn(Af,Uo||0,ca==null?yi:ca,function(Xs,Ql,Da,jl){var Es=Da=="ltr",Nl=fl(Xs,Es?"left":"right"),_l=fl(Ql-1,Es?"right":"left"),kf=Uo==null&&Xs==0,Of=ca==null&&Ql==yi,Pu=jl==0,sd=!Af||jl==Af.length-1;if(_l.top-Nl.top<=3){var Jl=(dt?kf:Of)&&Pu,jp=(dt?Of:kf)&&sd,Mf=Jl?Ve:(Es?Nl:_l).left,j0=jp?Je:(Es?_l:Nl).right;Yt(Mf,Nl.top,j0-Mf,Nl.bottom)}else{var hv,gu,pv,W0;Es?(hv=dt&&kf&&Pu?Ve:Nl.left,gu=dt?Je:tf(Xs,Da,"before"),pv=dt?Ve:tf(Ql,Da,"after"),W0=dt&&Of&&sd?Je:_l.right):(hv=dt?tf(Xs,Da,"before"):Ve,gu=!dt&&kf&&Pu?Je:Nl.right,pv=!dt&&Of&&sd?Ve:_l.left,W0=dt?tf(Ql,Da,"after"):Je),Yt(hv,Nl.top,gu-hv,Nl.bottom),Nl.bottom<_l.top&&Yt(Ve,Nl.bottom,null,_l.top),Yt(pv,_l.top,W0-pv,_l.bottom)}(!Vs||Xl(Nl,Vs)<0)&&(Vs=Nl),Xl(_l,Vs)<0&&(Vs=_l),(!mu||Xl(Nl,mu)<0)&&(mu=Nl),Xl(_l,mu)<0&&(mu=_l)}),{start:Vs,end:mu}}var Sn=k.from(),Cn=k.to();if(Sn.line==Cn.line)rn(Sn.line,Sn.ch,Cn.ch);else{var tr=bo(ae,Sn.line),Or=bo(ae,Cn.line),Qr=Yi(tr)==Yi(Or),yo=rn(Sn.line,Sn.ch,Qr?tr.text.length+1:null).end,Mo=rn(Cn.line,Qr?0:null,Cn.ch).start;Qr&&(yo.top<Mo.top-2?(Yt(yo.right,yo.top,null,yo.bottom),Yt(Ve,Mo.top,Mo.left,Mo.bottom)):Yt(yo.right,yo.top,Mo.left-yo.right,yo.bottom)),yo.bottom<Mo.top&&Yt(Ve,yo.bottom,null,Mo.top)}q.appendChild(Ee)}function Ks(b){if(!!b.state.focused){var k=b.display;clearInterval(k.blinker);var q=!0;k.cursorDiv.style.visibility="",b.options.cursorBlinkRate>0?k.blinker=setInterval(function(){b.hasFocus()||bl(b),k.cursorDiv.style.visibility=(q=!q)?"":"hidden"},b.options.cursorBlinkRate):b.options.cursorBlinkRate<0&&(k.cursorDiv.style.visibility="hidden")}}function kl(b){b.hasFocus()||(b.display.input.focus(),b.state.focused||Zd(b))}function nl(b){b.state.delayingBlurEvent=!0,setTimeout(function(){b.state.delayingBlurEvent&&(b.state.delayingBlurEvent=!1,b.state.focused&&bl(b))},100)}function Zd(b,k){b.state.delayingBlurEvent&&!b.state.draggingText&&(b.state.delayingBlurEvent=!1),b.options.readOnly!="nocursor"&&(b.state.focused||(at(b,"focus",b,k),b.state.focused=!0,le(b.display.wrapper,"CodeMirror-focused"),!b.curOp&&b.display.selForContextMenu!=b.doc.sel&&(b.display.input.reset(),v&&setTimeout(function(){return b.display.input.reset(!0)},20)),b.display.input.receivedFocus()),Ks(b))}function bl(b,k){b.state.delayingBlurEvent||(b.state.focused&&(at(b,"blur",b,k),b.state.focused=!1,Q(b.display.wrapper,"CodeMirror-focused")),clearInterval(b.display.blinker),setTimeout(function(){b.state.focused||(b.display.shift=!1)},150))}function Jr(b){for(var k=b.display,q=k.lineDiv.offsetTop,W=Math.max(0,k.scroller.getBoundingClientRect().top),ae=k.lineDiv.getBoundingClientRect().top,Ee=0,Be=0;Be<k.view.length;Be++){var Ve=k.view[Be],Je=b.options.lineWrapping,dt=void 0,Yt=0;if(!Ve.hidden){if(ae+=Ve.line.height,u&&f<8){var rn=Ve.node.offsetTop+Ve.node.offsetHeight;dt=rn-q,q=rn}else{var Sn=Ve.node.getBoundingClientRect();dt=Sn.bottom-Sn.top,!Je&&Ve.text.firstChild&&(Yt=Ve.text.firstChild.getBoundingClientRect().right-Sn.left-1)}var Cn=Ve.line.height-dt;if((Cn>.005||Cn<-.005)&&(ae<W&&(Ee-=Cn),an(Ve.line,dt),rv(Ve.line),Ve.rest))for(var tr=0;tr<Ve.rest.length;tr++)rv(Ve.rest[tr]);if(Yt>b.display.sizerWidth){var Or=Math.ceil(Yt/Xc(b.display));Or>b.display.maxLineLength&&(b.display.maxLineLength=Or,b.display.maxLine=Ve.line,b.display.maxLineChanged=!0)}}}Math.abs(Ee)>2&&(k.scroller.scrollTop+=Ee)}function rv(b){if(b.widgets)for(var k=0;k<b.widgets.length;++k){var q=b.widgets[k],W=q.node.parentNode;W&&(q.height=W.offsetHeight)}}function Ah(b,k,q){var W=q&&q.top!=null?Math.max(0,q.top):b.scroller.scrollTop;W=Math.floor(W-Sh(b));var ae=q&&q.bottom!=null?q.bottom:W+b.wrapper.clientHeight,Ee=Nn(k,W),Be=Nn(k,ae);if(q&&q.ensure){var Ve=q.ensure.from.line,Je=q.ensure.to.line;Ve<Ee?(Ee=Ve,Be=Nn(k,ku(bo(k,Ve))+b.wrapper.clientHeight)):Math.min(Je,k.lastLine())>=Be&&(Ee=Nn(k,ku(bo(k,Je))-b.wrapper.clientHeight),Be=Je)}return{from:Ee,to:Math.max(Be,Ee+1)}}function ya(b,k){if(!_t(b,"scrollCursorIntoView")){var q=b.display,W=q.sizer.getBoundingClientRect(),ae=null;if(k.top+W.top<0?ae=!0:k.bottom+W.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!S){var Ee=V("div","\u200B",null,`position: absolute; 475 top: `+(k.top-q.viewOffset-Sh(b.display))+`px; 476 height: `+(k.bottom-k.top+Tl(b)+q.barHeight)+`px; 477 left: `+k.left+"px; width: "+Math.max(2,k.right-k.left)+"px;");b.display.lineSpace.appendChild(Ee),Ee.scrollIntoView(ae),b.display.lineSpace.removeChild(Ee)}}}function qi(b,k,q,W){W==null&&(W=0);var ae;!b.options.lineWrapping&&k==q&&(q=k.sticky=="before"?ft(k.line,k.ch+1,"before"):k,k=k.ch?ft(k.line,k.sticky=="before"?k.ch-1:k.ch,"after"):k);for(var Ee=0;Ee<5;Ee++){var Be=!1,Ve=Os(b,k),Je=!q||q==k?Ve:Os(b,q);ae={left:Math.min(Ve.left,Je.left),top:Math.min(Ve.top,Je.top)-W,right:Math.max(Ve.left,Je.left),bottom:Math.max(Ve.bottom,Je.bottom)+W};var dt=nd(b,ae),Yt=b.doc.scrollTop,rn=b.doc.scrollLeft;if(dt.scrollTop!=null&&(E0(b,dt.scrollTop),Math.abs(b.doc.scrollTop-Yt)>1&&(Be=!0)),dt.scrollLeft!=null&&(Xi(b,dt.scrollLeft),Math.abs(b.doc.scrollLeft-rn)>1&&(Be=!0)),!Be)break}return ae}function Np(b,k){var q=nd(b,k);q.scrollTop!=null&&E0(b,q.scrollTop),q.scrollLeft!=null&&Xi(b,q.scrollLeft)}function nd(b,k){var q=b.display,W=Al(b.display);k.top<0&&(k.top=0);var ae=b.curOp&&b.curOp.scrollTop!=null?b.curOp.scrollTop:q.scroller.scrollTop,Ee=ks(b),Be={};k.bottom-k.top>Ee&&(k.bottom=k.top+Ee);var Ve=b.doc.height+Zf(q),Je=k.top<W,dt=k.bottom>Ve-W;if(k.top<ae)Be.scrollTop=Je?0:k.top;else if(k.bottom>ae+Ee){var Yt=Math.min(k.top,(dt?Ve:k.bottom)-Ee);Yt!=ae&&(Be.scrollTop=Yt)}var rn=b.options.fixedGutter?0:q.gutters.offsetWidth,Sn=b.curOp&&b.curOp.scrollLeft!=null?b.curOp.scrollLeft:q.scroller.scrollLeft-rn,Cn=is(b)-q.gutters.offsetWidth,tr=k.right-k.left>Cn;return tr&&(k.right=k.left+Cn),k.left<10?Be.scrollLeft=0:k.left<Sn?Be.scrollLeft=Math.max(0,k.left+rn-(tr?0:10)):k.right>Cn+Sn-3&&(Be.scrollLeft=k.right+(tr?0:10)-Cn),Be}function fs(b,k){k!=null&&(pa(b),b.curOp.scrollTop=(b.curOp.scrollTop==null?b.doc.scrollTop:b.curOp.scrollTop)+k)}function x1(b){pa(b);var k=b.getCursor();b.curOp.scrollToPos={from:k,to:k,margin:b.options.cursorScrollMargin}}function Du(b,k,q){(k!=null||q!=null)&&pa(b),k!=null&&(b.curOp.scrollLeft=k),q!=null&&(b.curOp.scrollTop=q)}function x0(b,k){pa(b),b.curOp.scrollToPos=k}function pa(b){var k=b.curOp.scrollToPos;if(k){b.curOp.scrollToPos=null;var q=$v(b,k.from),W=$v(b,k.to);ec(b,q,W,k.margin)}}function ec(b,k,q,W){var ae=nd(b,{left:Math.min(k.left,q.left),top:Math.min(k.top,q.top)-W,right:Math.max(k.right,q.right),bottom:Math.max(k.bottom,q.bottom)+W});Du(b,ae.scrollLeft,ae.scrollTop)}function E0(b,k){Math.abs(b.doc.scrollTop-k)<2||(n||S0(b,{top:k}),h2(b,k,!0),n&&S0(b),Ru(b,100))}function h2(b,k,q){k=Math.max(0,Math.min(b.display.scroller.scrollHeight-b.display.scroller.clientHeight,k)),!(b.display.scroller.scrollTop==k&&!q)&&(b.doc.scrollTop=k,b.display.scrollbars.setScrollTop(k),b.display.scroller.scrollTop!=k&&(b.display.scroller.scrollTop=k))}function Xi(b,k,q,W){k=Math.max(0,Math.min(k,b.display.scroller.scrollWidth-b.display.scroller.clientWidth)),!((q?k==b.doc.scrollLeft:Math.abs(b.doc.scrollLeft-k)<2)&&!W)&&(b.doc.scrollLeft=k,F3(b),b.display.scroller.scrollLeft!=k&&(b.display.scroller.scrollLeft=k),b.display.scrollbars.setScrollLeft(k))}function ov(b){var k=b.display,q=k.gutters.offsetWidth,W=Math.round(b.doc.height+Zf(b.display));return{clientHeight:k.scroller.clientHeight,viewHeight:k.wrapper.clientHeight,scrollWidth:k.scroller.scrollWidth,clientWidth:k.scroller.clientWidth,viewWidth:k.wrapper.clientWidth,barLeft:b.options.fixedGutter?q:0,docHeight:W,scrollHeight:W+Tl(b)+k.barHeight,nativeBarWidth:k.nativeBarWidth,gutterWidth:q}}var Me=function(b,k,q){this.cm=q;var W=this.vert=V("div",[V("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=V("div",[V("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");W.tabIndex=ae.tabIndex=-1,b(W),b(ae),Tt(W,"scroll",function(){W.clientHeight&&k(W.scrollTop,"vertical")}),Tt(ae,"scroll",function(){ae.clientWidth&&k(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Me.prototype.update=function(b){var k=b.scrollWidth>b.clientWidth+1,q=b.scrollHeight>b.clientHeight+1,W=b.nativeBarWidth;if(q){this.vert.style.display="block",this.vert.style.bottom=k?W+"px":"0";var ae=b.viewHeight-(k?W:0);this.vert.firstChild.style.height=Math.max(0,b.scrollHeight-b.clientHeight+ae)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(k){this.horiz.style.display="block",this.horiz.style.right=q?W+"px":"0",this.horiz.style.left=b.barLeft+"px";var Ee=b.viewWidth-b.barLeft-(q?W:0);this.horiz.firstChild.style.width=Math.max(0,b.scrollWidth-b.clientWidth+Ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&b.clientHeight>0&&(W==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:q?W:0,bottom:k?W:0}},Me.prototype.setScrollLeft=function(b){this.horiz.scrollLeft!=b&&(this.horiz.scrollLeft=b),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Me.prototype.setScrollTop=function(b){this.vert.scrollTop!=b&&(this.vert.scrollTop=b),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Me.prototype.zeroWidthHack=function(){var b=R&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=b,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Me.prototype.enableZeroWidthBar=function(b,k,q){b.style.pointerEvents="auto";function W(){var ae=b.getBoundingClientRect(),Ee=q=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);Ee!=b?b.style.pointerEvents="none":k.set(1e3,W)}k.set(1e3,W)},Me.prototype.clear=function(){var b=this.horiz.parentNode;b.removeChild(this.horiz),b.removeChild(this.vert)};var Qe=function(){};Qe.prototype.update=function(){return{bottom:0,right:0}},Qe.prototype.setScrollLeft=function(){},Qe.prototype.setScrollTop=function(){},Qe.prototype.clear=function(){};function ht(b,k){k||(k=ov(b));var q=b.display.barWidth,W=b.display.barHeight;jt(b,k);for(var ae=0;ae<4&&q!=b.display.barWidth||W!=b.display.barHeight;ae++)q!=b.display.barWidth&&b.options.lineWrapping&&Jr(b),jt(b,ov(b)),q=b.display.barWidth,W=b.display.barHeight}function jt(b,k){var q=b.display,W=q.scrollbars.update(k);q.sizer.style.paddingRight=(q.barWidth=W.right)+"px",q.sizer.style.paddingBottom=(q.barHeight=W.bottom)+"px",q.heightForcer.style.borderBottom=W.bottom+"px solid transparent",W.right&&W.bottom?(q.scrollbarFiller.style.display="block",q.scrollbarFiller.style.height=W.bottom+"px",q.scrollbarFiller.style.width=W.right+"px"):q.scrollbarFiller.style.display="",W.bottom&&b.options.coverGutterNextToScrollbar&&b.options.fixedGutter?(q.gutterFiller.style.display="block",q.gutterFiller.style.height=W.bottom+"px",q.gutterFiller.style.width=k.gutterWidth+"px"):q.gutterFiller.style.display=""}var wn={native:Me,null:Qe};function qn(b){b.display.scrollbars&&(b.display.scrollbars.clear(),b.display.scrollbars.addClass&&Q(b.display.wrapper,b.display.scrollbars.addClass)),b.display.scrollbars=new wn[b.options.scrollbarStyle](function(k){b.display.wrapper.insertBefore(k,b.display.scrollbarFiller),Tt(k,"mousedown",function(){b.state.focused&&setTimeout(function(){return b.display.input.focus()},0)}),k.setAttribute("cm-not-content","true")},function(k,q){q=="horizontal"?Xi(b,k):E0(b,k)},b),b.display.scrollbars.addClass&&le(b.display.wrapper,b.display.scrollbars.addClass)}var Co=0;function Yo(b){b.curOp={cm:b,viewChanged:!1,startHeight:b.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Co,markArrays:null},mn(b.curOp)}function Aa(b){var k=b.curOp;k&&vo(k,function(q){for(var W=0;W<q.ops.length;W++)q.ops[W].cm.curOp=null;Sa(q)})}function Sa(b){for(var k=b.ops,q=0;q<k.length;q++)ts(k[q]);for(var W=0;W<k.length;W++)Iu(k[W]);for(var ae=0;ae<k.length;ae++)Ys(k[ae]);for(var Ee=0;Ee<k.length;Ee++)e5(k[Ee]);for(var Be=0;Be<k.length;Be++)B3(k[Be])}function ts(b){var k=b.cm,q=k.display;zm(k),b.updateMaxLine&&fi(k),b.mustUpdate=b.viewChanged||b.forceUpdate||b.scrollTop!=null||b.scrollToPos&&(b.scrollToPos.from.line<q.viewFrom||b.scrollToPos.to.line>=q.viewTo)||q.maxLineChanged&&k.options.lineWrapping,b.update=b.mustUpdate&&new Ip(k,b.mustUpdate&&{top:b.scrollTop,ensure:b.scrollToPos},b.forceUpdate)}function Iu(b){b.updatedDisplay=b.mustUpdate&&wb(b.cm,b.update)}function Ys(b){var k=b.cm,q=k.display;b.updatedDisplay&&Jr(k),b.barMeasure=ov(k),q.maxLineChanged&&!k.options.lineWrapping&&(b.adjustWidthTo=pf(k,q.maxLine,q.maxLine.text.length).left+3,k.display.sizerWidth=b.adjustWidthTo,b.barMeasure.scrollWidth=Math.max(q.scroller.clientWidth,q.sizer.offsetLeft+b.adjustWidthTo+Tl(k)+k.display.barWidth),b.maxScrollLeft=Math.max(0,q.sizer.offsetLeft+b.adjustWidthTo-is(k))),(b.updatedDisplay||b.selectionChanged)&&(b.preparedSelection=q.input.prepareSelection())}function e5(b){var k=b.cm;b.adjustWidthTo!=null&&(k.display.sizer.style.minWidth=b.adjustWidthTo+"px",b.maxScrollLeft<k.doc.scrollLeft&&Xi(k,Math.min(k.display.scroller.scrollLeft,b.maxScrollLeft),!0),k.display.maxLineChanged=!1);var q=b.focus&&b.focus==ne();b.preparedSelection&&k.display.input.showSelection(b.preparedSelection,q),(b.updatedDisplay||b.startHeight!=k.doc.height)&&ht(k,b.barMeasure),b.updatedDisplay&&Cb(k,b.barMeasure),b.selectionChanged&&Ks(k),k.state.focused&&b.updateInput&&k.display.input.reset(b.typing),q&&kl(b.cm)}function B3(b){var k=b.cm,q=k.display,W=k.doc;if(b.updatedDisplay&&Qd(k,b.update),q.wheelStartX!=null&&(b.scrollTop!=null||b.scrollLeft!=null||b.scrollToPos)&&(q.wheelStartX=q.wheelStartY=null),b.scrollTop!=null&&h2(k,b.scrollTop,b.forceScroll),b.scrollLeft!=null&&Xi(k,b.scrollLeft,!0,!0),b.scrollToPos){var ae=qi(k,Xt(W,b.scrollToPos.from),Xt(W,b.scrollToPos.to),b.scrollToPos.margin);ya(k,ae)}var Ee=b.maybeHiddenMarkers,Be=b.maybeUnhiddenMarkers;if(Ee)for(var Ve=0;Ve<Ee.length;++Ve)Ee[Ve].lines.length||at(Ee[Ve],"hide");if(Be)for(var Je=0;Je<Be.length;++Je)Be[Je].lines.length&&at(Be[Je],"unhide");q.wrapper.offsetHeight&&(W.scrollTop=k.display.scroller.scrollTop),b.changeObjs&&at(k,"changes",k,b.changeObjs),b.update&&b.update.finish()}function _f(b,k){if(b.curOp)return k();Yo(b);try{return k()}finally{Aa(b)}}function tc(b,k){return function(){if(b.curOp)return k.apply(b,arguments);Yo(b);try{return k.apply(b,arguments)}finally{Aa(b)}}}function ul(b){return function(){if(this.curOp)return b.apply(this,arguments);Yo(this);try{return b.apply(this,arguments)}finally{Aa(this)}}}function Hl(b){return function(){var k=this.cm;if(!k||k.curOp)return b.apply(this,arguments);Yo(k);try{return b.apply(this,arguments)}finally{Aa(k)}}}function Ru(b,k){b.doc.highlightFrontier<b.display.viewTo&&b.state.highlight.set(k,P(Dp,b))}function Dp(b){var k=b.doc;if(!(k.highlightFrontier>=b.display.viewTo)){var q=+new Date+b.options.workTime,W=po(b,k.highlightFrontier),ae=[];k.iter(W.line,Math.min(k.first+k.size,b.display.viewTo+500),function(Ee){if(W.line>=b.display.viewFrom){var Be=Ee.styles,Ve=Ee.text.length>b.options.maxHighlightLength?us(k.mode,W.state):null,Je=To(b,Ee,W,!0);Ve&&(W.state=Ve),Ee.styles=Je.styles;var dt=Ee.styleClasses,Yt=Je.classes;Yt?Ee.styleClasses=Yt:dt&&(Ee.styleClasses=null);for(var rn=!Be||Be.length!=Ee.styles.length||dt!=Yt&&(!dt||!Yt||dt.bgClass!=Yt.bgClass||dt.textClass!=Yt.textClass),Sn=0;!rn&&Sn<Be.length;++Sn)rn=Be[Sn]!=Ee.styles[Sn];rn&&ae.push(W.line),Ee.stateAfter=W.save(),W.nextLine()}else Ee.text.length<=b.options.maxHighlightLength&&Zo(b,Ee.text,W),Ee.stateAfter=W.line%5==0?W.save():null,W.nextLine();if(+new Date>q)return Ru(b,b.options.workDelay),!0}),k.highlightFrontier=W.line,k.modeFrontier=Math.max(k.modeFrontier,W.line),ae.length&&_f(b,function(){for(var Ee=0;Ee<ae.length;Ee++)w1(b,ae[Ee],"text")})}}var Ip=function(b,k,q){var W=b.display;this.viewport=k,this.visible=Ah(W,b.doc,k),this.editorIsHidden=!W.wrapper.offsetWidth,this.wrapperHeight=W.wrapper.clientHeight,this.wrapperWidth=W.wrapper.clientWidth,this.oldDisplayWidth=is(b),this.force=q,this.dims=_1(b),this.events=[]};Ip.prototype.signal=function(b,k){An(b,k)&&this.events.push(arguments)},Ip.prototype.finish=function(){for(var b=0;b<this.events.length;b++)at.apply(null,this.events[b])};function zm(b){var k=b.display;!k.scrollbarsClipped&&k.scroller.offsetWidth&&(k.nativeBarWidth=k.scroller.offsetWidth-k.scroller.clientWidth,k.heightForcer.style.height=Tl(b)+"px",k.sizer.style.marginBottom=-k.nativeBarWidth+"px",k.sizer.style.borderRightWidth=Tl(b)+"px",k.scrollbarsClipped=!0)}function p2(b){if(b.hasFocus())return null;var k=ne();if(!k||!de(b.display.lineDiv,k))return null;var q={activeElt:k};if(window.getSelection){var W=window.getSelection();W.anchorNode&&W.extend&&de(b.display.lineDiv,W.anchorNode)&&(q.anchorNode=W.anchorNode,q.anchorOffset=W.anchorOffset,q.focusNode=W.focusNode,q.focusOffset=W.focusOffset)}return q}function P3(b){if(!(!b||!b.activeElt||b.activeElt==ne())&&(b.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(b.activeElt.nodeName)&&b.anchorNode&&de(document.body,b.anchorNode)&&de(document.body,b.focusNode))){var k=window.getSelection(),q=document.createRange();q.setEnd(b.anchorNode,b.anchorOffset),q.collapse(!1),k.removeAllRanges(),k.addRange(q),k.extend(b.focusNode,b.focusOffset)}}function wb(b,k){var q=b.display,W=b.doc;if(k.editorIsHidden)return qd(b),!1;if(!k.force&&k.visible.from>=q.viewFrom&&k.visible.to<=q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo)&&q.renderedView==q.view&&C1(b)==0)return!1;T0(b)&&(qd(b),k.dims=_1(b));var ae=W.first+W.size,Ee=Math.max(k.visible.from-b.options.viewportMargin,W.first),Be=Math.min(ae,k.visible.to+b.options.viewportMargin);q.viewFrom<Ee&&Ee-q.viewFrom<20&&(Ee=Math.max(W.first,q.viewFrom)),q.viewTo>Be&&q.viewTo-Be<20&&(Be=Math.min(ae,q.viewTo)),Ka&&(Ee=gc(b.doc,Ee),Be=Wd(b.doc,Be));var Ve=Ee!=q.viewFrom||Be!=q.viewTo||q.lastWrapHeight!=k.wrapperHeight||q.lastWrapWidth!=k.wrapperWidth;Vv(b,Ee,Be),q.viewOffset=ku(bo(b.doc,q.viewFrom)),b.display.mover.style.top=q.viewOffset+"px";var Je=C1(b);if(!Ve&&Je==0&&!k.force&&q.renderedView==q.view&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo))return!1;var dt=p2(b);return Je>4&&(q.lineDiv.style.display="none"),t5(b,q.updateLineNumbers,k.dims),Je>4&&(q.lineDiv.style.display=""),q.renderedView=q.view,P3(dt),$(q.cursorDiv),$(q.selectionDiv),q.gutters.style.height=q.sizer.style.minHeight=0,Ve&&(q.lastWrapHeight=k.wrapperHeight,q.lastWrapWidth=k.wrapperWidth,Ru(b,400)),q.updateLineNumbers=null,!0}function Qd(b,k){for(var q=k.viewport,W=!0;;W=!1){if(!W||!b.options.lineWrapping||k.oldDisplayWidth==is(b)){if(q&&q.top!=null&&(q={top:Math.min(b.doc.height+Zf(b.display)-ks(b),q.top)}),k.visible=Ah(b.display,b.doc,q),k.visible.from>=b.display.viewFrom&&k.visible.to<=b.display.viewTo)break}else W&&(k.visible=Ah(b.display,b.doc,q));if(!wb(b,k))break;Jr(b);var ae=ov(b);Ko(b),ht(b,ae),Cb(b,ae),k.force=!1}k.signal(b,"update",b),(b.display.viewFrom!=b.display.reportedViewFrom||b.display.viewTo!=b.display.reportedViewTo)&&(k.signal(b,"viewportChange",b,b.display.viewFrom,b.display.viewTo),b.display.reportedViewFrom=b.display.viewFrom,b.display.reportedViewTo=b.display.viewTo)}function S0(b,k){var q=new Ip(b,k);if(wb(b,q)){Jr(b),Qd(b,q);var W=ov(b);Ko(b),ht(b,W),Cb(b,W),q.finish()}}function t5(b,k,q){var W=b.display,ae=b.options.lineNumbers,Ee=W.lineDiv,Be=Ee.firstChild;function Ve(tr){var Or=tr.nextSibling;return v&&R&&b.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),Or}for(var Je=W.view,dt=W.viewFrom,Yt=0;Yt<Je.length;Yt++){var rn=Je[Yt];if(!rn.hidden)if(!rn.node||rn.node.parentNode!=Ee){var Sn=ha(b,rn,dt,q);Ee.insertBefore(Sn,Be)}else{for(;Be!=rn.node;)Be=Ve(Be);var Cn=ae&&k!=null&&k<=dt&&rn.lineNumber;rn.changes&&(ye(rn.changes,"gutter")>-1&&(Cn=!1),na(b,rn,dt,q)),Cn&&($(rn.lineNumber),rn.lineNumber.appendChild(document.createTextNode(Yr(b.options,dt)))),Be=rn.node.nextSibling}dt+=rn.size}for(;Be;)Be=Ve(Be)}function Hm(b){var k=b.gutters.offsetWidth;b.sizer.style.marginLeft=k+"px",yr(b,"gutterChanged",b)}function Cb(b,k){b.display.sizer.style.minHeight=k.docHeight+"px",b.display.heightForcer.style.top=k.docHeight+"px",b.display.gutters.style.height=k.docHeight+b.display.barHeight+Tl(b)+"px"}function F3(b){var k=b.display,q=k.view;if(!(!k.alignWidgets&&(!k.gutters.firstChild||!b.options.fixedGutter))){for(var W=Td(k)-k.scroller.scrollLeft+b.doc.scrollLeft,ae=k.gutters.offsetWidth,Ee=W+"px",Be=0;Be<q.length;Be++)if(!q[Be].hidden){b.options.fixedGutter&&(q[Be].gutter&&(q[Be].gutter.style.left=Ee),q[Be].gutterBackground&&(q[Be].gutterBackground.style.left=Ee));var Ve=q[Be].alignable;if(Ve)for(var Je=0;Je<Ve.length;Je++)Ve[Je].style.left=Ee}b.options.fixedGutter&&(k.gutters.style.left=W+ae+"px")}}function T0(b){if(!b.options.lineNumbers)return!1;var k=b.doc,q=Yr(b.options,k.first+k.size-1),W=b.display;if(q.length!=W.lineNumChars){var ae=W.measure.appendChild(V("div",[V("div",q)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ee=ae.firstChild.offsetWidth,Be=ae.offsetWidth-Ee;return W.lineGutter.style.width="",W.lineNumInnerWidth=Math.max(Ee,W.lineGutter.offsetWidth-Be)+1,W.lineNumWidth=W.lineNumInnerWidth+Be,W.lineNumChars=W.lineNumInnerWidth?q.length:-1,W.lineGutter.style.width=W.lineNumWidth+"px",Hm(b.display),!0}return!1}function A0(b,k){for(var q=[],W=!1,ae=0;ae<b.length;ae++){var Ee=b[ae],Be=null;if(typeof Ee!="string"&&(Be=Ee.style,Ee=Ee.className),Ee=="CodeMirror-linenumbers")if(k)W=!0;else continue;q.push({className:Ee,style:Be})}return k&&!W&&q.push({className:"CodeMirror-linenumbers",style:null}),q}function xb(b){var k=b.gutters,q=b.gutterSpecs;$(k),b.lineGutter=null;for(var W=0;W<q.length;++W){var ae=q[W],Ee=ae.className,Be=ae.style,Ve=k.appendChild(V("div",null,"CodeMirror-gutter "+Ee));Be&&(Ve.style.cssText=Be),Ee=="CodeMirror-linenumbers"&&(b.lineGutter=Ve,Ve.style.width=(b.lineNumWidth||1)+"px")}k.style.display=q.length?"":"none",Hm(b)}function Rp(b){xb(b.display),Nu(b),F3(b)}function wf(b,k,q,W){var ae=this;this.input=q,ae.scrollbarFiller=V("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=V("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=K("div",null,"CodeMirror-code"),ae.selectionDiv=V("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=V("div",null,"CodeMirror-cursors"),ae.measure=V("div",null,"CodeMirror-measure"),ae.lineMeasure=V("div",null,"CodeMirror-measure"),ae.lineSpace=K("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var Ee=K("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=V("div",[Ee],null,"position: relative"),ae.sizer=V("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=V("div",null,null,"position: absolute; height: "+ie+"px; width: 1px;"),ae.gutters=V("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=V("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=V("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),ae.wrapper.setAttribute("translate","no"),u&&f<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!v&&!(n&&F)&&(ae.scroller.draggable=!0),b&&(b.appendChild?b.appendChild(ae.wrapper):b(ae.wrapper)),ae.viewFrom=ae.viewTo=k.first,ae.reportedViewFrom=ae.reportedViewTo=k.first,ae.view=[],ae.renderedView=null,ae.externalMeasured=null,ae.viewOffset=0,ae.lastWrapHeight=ae.lastWrapWidth=0,ae.updateLineNumbers=null,ae.nativeBarWidth=ae.barHeight=ae.barWidth=0,ae.scrollbarsClipped=!1,ae.lineNumWidth=ae.lineNumInnerWidth=ae.lineNumChars=null,ae.alignWidgets=!1,ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.maxLine=null,ae.maxLineLength=0,ae.maxLineChanged=!1,ae.wheelDX=ae.wheelDY=ae.wheelStartX=ae.wheelStartY=null,ae.shift=!1,ae.selForContextMenu=null,ae.activeTouch=null,ae.gutterSpecs=A0(W.gutters,W.lineNumbers),xb(ae),q.init(ae)}var Eo=0,Lc=null;u?Lc=-.53:n?Lc=15:g?Lc=-.7:w&&(Lc=-1/3);function Lp(b){var k=b.wheelDeltaX,q=b.wheelDeltaY;return k==null&&b.detail&&b.axis==b.HORIZONTAL_AXIS&&(k=b.detail),q==null&&b.detail&&b.axis==b.VERTICAL_AXIS?q=b.detail:q==null&&(q=b.wheelDelta),{x:k,y:q}}function kh(b){var k=Lp(b);return k.x*=Lc,k.y*=Lc,k}function k0(b,k){var q=Lp(k),W=q.x,ae=q.y,Ee=Lc;k.deltaMode===0&&(W=k.deltaX,ae=k.deltaY,Ee=1);var Be=b.display,Ve=Be.scroller,Je=Ve.scrollWidth>Ve.clientWidth,dt=Ve.scrollHeight>Ve.clientHeight;if(!!(W&&Je||ae&&dt)){if(ae&&R&&v){e:for(var Yt=k.target,rn=Be.view;Yt!=Ve;Yt=Yt.parentNode)for(var Sn=0;Sn<rn.length;Sn++)if(rn[Sn].node==Yt){b.display.currentWheelTarget=Yt;break e}}if(W&&!n&&!y&&Ee!=null){ae&&dt&&E0(b,Math.max(0,Ve.scrollTop+ae*Ee)),Xi(b,Math.max(0,Ve.scrollLeft+W*Ee)),(!ae||ae&&dt)&&_n(k),Be.wheelStartX=null;return}if(ae&&Ee!=null){var Cn=ae*Ee,tr=b.doc.scrollTop,Or=tr+Be.wrapper.clientHeight;Cn<0?tr=Math.max(0,tr+Cn-50):Or=Math.min(b.doc.height,Or+Cn+50),S0(b,{top:tr,bottom:Or})}Eo<20&&k.deltaMode!==0&&(Be.wheelStartX==null?(Be.wheelStartX=Ve.scrollLeft,Be.wheelStartY=Ve.scrollTop,Be.wheelDX=W,Be.wheelDY=ae,setTimeout(function(){if(Be.wheelStartX!=null){var Qr=Ve.scrollLeft-Be.wheelStartX,yo=Ve.scrollTop-Be.wheelStartY,Mo=yo&&Be.wheelDY&&yo/Be.wheelDY||Qr&&Be.wheelDX&&Qr/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,Mo&&(Lc=(Lc*Eo+Mo)/(Eo+1),++Eo)}},200)):(Be.wheelDX+=W,Be.wheelDY+=ae))}}var Cf=function(b,k){this.ranges=b,this.primIndex=k};Cf.prototype.primary=function(){return this.ranges[this.primIndex]},Cf.prototype.equals=function(b){if(b==this)return!0;if(b.primIndex!=this.primIndex||b.ranges.length!=this.ranges.length)return!1;for(var k=0;k<this.ranges.length;k++){var q=this.ranges[k],W=b.ranges[k];if(!Rn(q.anchor,W.anchor)||!Rn(q.head,W.head))return!1}return!0},Cf.prototype.deepCopy=function(){for(var b=[],k=0;k<this.ranges.length;k++)b[k]=new vi(Qn(this.ranges[k].anchor),Qn(this.ranges[k].head));return new Cf(b,this.primIndex)},Cf.prototype.somethingSelected=function(){for(var b=0;b<this.ranges.length;b++)if(!this.ranges[b].empty())return!0;return!1},Cf.prototype.contains=function(b,k){k||(k=b);for(var q=0;q<this.ranges.length;q++){var W=this.ranges[q];if(Bt(k,W.from())>=0&&Bt(b,W.to())<=0)return q}return-1};var vi=function(b,k){this.anchor=b,this.head=k};vi.prototype.from=function(){return St(this.anchor,this.head)},vi.prototype.to=function(){return Ze(this.anchor,this.head)},vi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bc(b,k,q){var W=b&&b.options.selectionsMayTouch,ae=k[q];k.sort(function(Sn,Cn){return Bt(Sn.from(),Cn.from())}),q=ye(k,ae);for(var Ee=1;Ee<k.length;Ee++){var Be=k[Ee],Ve=k[Ee-1],Je=Bt(Ve.to(),Be.from());if(W&&!Be.empty()?Je>0:Je>=0){var dt=St(Ve.from(),Be.from()),Yt=Ze(Ve.to(),Be.to()),rn=Ve.empty()?Be.from()==Be.head:Ve.from()==Ve.head;Ee<=q&&--q,k.splice(--Ee,2,new vi(rn?Yt:dt,rn?dt:Yt))}}return new Cf(k,q)}function Ad(b,k){return new Cf([new vi(b,k||b)],0)}function ds(b){return b.text?ft(b.from.line+b.text.length-1,De(b.text).length+(b.text.length==1?b.from.ch:0)):b.to}function Zl(b,k){if(Bt(b,k.from)<0)return b;if(Bt(b,k.to)<=0)return ds(k);var q=b.line+k.text.length-(k.to.line-k.from.line)-1,W=b.ch;return b.line==k.to.line&&(W+=ds(k).ch-k.to.ch),ft(q,W)}function O0(b,k){for(var q=[],W=0;W<b.sel.ranges.length;W++){var ae=b.sel.ranges[W];q.push(new vi(Zl(ae.anchor,k),Zl(ae.head,k)))}return Bc(b.cm,q,b.sel.primIndex)}function E1(b,k,q){return b.line==k.line?ft(q.line,b.ch-k.ch+q.ch):ft(q.line+(b.line-k.line),b.ch)}function Vm(b,k,q){for(var W=[],ae=ft(b.first,0),Ee=ae,Be=0;Be<k.length;Be++){var Ve=k[Be],Je=E1(Ve.from,ae,Ee),dt=E1(ds(Ve),ae,Ee);if(ae=Ve.to,Ee=dt,q=="around"){var Yt=b.sel.ranges[Be],rn=Bt(Yt.head,Yt.anchor)<0;W[Be]=new vi(rn?dt:Je,rn?Je:dt)}else W[Be]=new vi(Je,Je)}return new Cf(W,b.sel.primIndex)}function Bp(b){b.doc.mode=fo(b.options,b.doc.modeOption),Oh(b)}function Oh(b){b.doc.iter(function(k){k.stateAfter&&(k.stateAfter=null),k.styles&&(k.styles=null)}),b.doc.modeFrontier=b.doc.highlightFrontier=b.doc.first,Ru(b,100),b.state.modeGen++,b.curOp&&Nu(b)}function $3(b,k){return k.from.ch==0&&k.to.ch==0&&De(k.text)==""&&(!b.cm||b.cm.options.wholeLineUpdateBefore)}function Mh(b,k,q,W){function ae(Mo){return q?q[Mo]:null}function Ee(Mo,no,Uo){Bv(Mo,no,Uo,W),yr(Mo,"change",Mo,k)}function Be(Mo,no){for(var Uo=[],ca=Mo;ca<no;++ca)Uo.push(new ml(dt[ca],ae(ca),W));return Uo}var Ve=k.from,Je=k.to,dt=k.text,Yt=bo(b,Ve.line),rn=bo(b,Je.line),Sn=De(dt),Cn=ae(dt.length-1),tr=Je.line-Ve.line;if(k.full)b.insert(0,Be(0,dt.length)),b.remove(dt.length,b.size-dt.length);else if($3(b,k)){var Or=Be(0,dt.length-1);Ee(rn,rn.text,Cn),tr&&b.remove(Ve.line,tr),Or.length&&b.insert(Ve.line,Or)}else if(Yt==rn)if(dt.length==1)Ee(Yt,Yt.text.slice(0,Ve.ch)+Sn+Yt.text.slice(Je.ch),Cn);else{var Qr=Be(1,dt.length-1);Qr.push(new ml(Sn+Yt.text.slice(Je.ch),Cn,W)),Ee(Yt,Yt.text.slice(0,Ve.ch)+dt[0],ae(0)),b.insert(Ve.line+1,Qr)}else if(dt.length==1)Ee(Yt,Yt.text.slice(0,Ve.ch)+dt[0]+rn.text.slice(Je.ch),ae(0)),b.remove(Ve.line+1,tr);else{Ee(Yt,Yt.text.slice(0,Ve.ch)+dt[0],ae(0)),Ee(rn,Sn+rn.text.slice(Je.ch),Cn);var yo=Be(1,dt.length-1);tr>1&&b.remove(Ve.line+1,tr-1),b.insert(Ve.line+1,yo)}yr(b,"change",b,k)}function cl(b,k,q){function W(ae,Ee,Be){if(ae.linked)for(var Ve=0;Ve<ae.linked.length;++Ve){var Je=ae.linked[Ve];if(Je.doc!=Ee){var dt=Be&&Je.sharedHist;q&&!dt||(k(Je.doc,dt),W(Je.doc,ae,dt))}}}W(b,null,!0)}function Eb(b,k){if(k.cm)throw new Error("This document is already in use.");b.doc=k,k.cm=b,bc(b),Bp(b),Ms(b),b.options.direction=k.direction,b.options.lineWrapping||fi(b),b.options.mode=k.modeOption,Nu(b)}function Ms(b){(b.doc.direction=="rtl"?le:Q)(b.display.lineDiv,"CodeMirror-rtl")}function Jd(b){_f(b,function(){Ms(b),Nu(b)})}function hi(b){this.done=[],this.undone=[],this.undoDepth=b?b.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=b?b.maxGeneration:1}function av(b,k){var q={from:Qn(k.from),to:ds(k),text:pl(b,k.from,k.to)};return Fc(b,q,k.from.line,k.to.line+1),cl(b,function(W){return Fc(W,q,k.from.line,k.to.line+1)},!0),q}function rd(b){for(;b.length;){var k=De(b);if(k.ranges)b.pop();else break}}function n5(b,k){if(k)return rd(b.done),De(b.done);if(b.done.length&&!De(b.done).ranges)return De(b.done);if(b.done.length>1&&!b.done[b.done.length-2].ranges)return b.done.pop(),De(b.done)}function Ol(b,k,q,W){var ae=b.history;ae.undone.length=0;var Ee=+new Date,Be,Ve;if((ae.lastOp==W||ae.lastOrigin==k.origin&&k.origin&&(k.origin.charAt(0)=="+"&&ae.lastModTime>Ee-(b.cm?b.cm.options.historyEventDelay:500)||k.origin.charAt(0)=="*"))&&(Be=n5(ae,ae.lastOp==W)))Ve=De(Be.changes),Bt(k.from,k.to)==0&&Bt(k.from,Ve.to)==0?Ve.to=ds(k):Be.changes.push(av(b,k));else{var Je=De(ae.done);for((!Je||!Je.ranges)&&rr(b.sel,ae.done),Be={changes:[av(b,k)],generation:ae.generation},ae.done.push(Be);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(q),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=Ee,ae.lastOp=ae.lastSelOp=W,ae.lastOrigin=ae.lastSelOrigin=k.origin,Ve||at(b,"historyAdded")}function Pc(b,k,q,W){var ae=k.charAt(0);return ae=="*"||ae=="+"&&q.ranges.length==W.ranges.length&&q.somethingSelected()==W.somethingSelected()&&new Date-b.history.lastSelTime<=(b.cm?b.cm.options.historyEventDelay:500)}function z3(b,k,q,W){var ae=b.history,Ee=W&&W.origin;q==ae.lastSelOp||Ee&&ae.lastSelOrigin==Ee&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==Ee||Pc(b,Ee,De(ae.done),k))?ae.done[ae.done.length-1]=k:rr(k,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=Ee,ae.lastSelOp=q,W&&W.clearRedo!==!1&&rd(ae.undone)}function rr(b,k){var q=De(k);q&&q.ranges&&q.equals(b)||k.push(b)}function Fc(b,k,q,W){var ae=k["spans_"+b.id],Ee=0;b.iter(Math.max(b.first,q),Math.min(b.first+b.size,W),function(Be){Be.markedSpans&&((ae||(ae=k["spans_"+b.id]={}))[Ee]=Be.markedSpans),++Ee})}function Uv(b){if(!b)return null;for(var k,q=0;q<b.length;++q)b[q].marker.explicitlyCleared?k||(k=b.slice(0,q)):k&&k.push(b[q]);return k?k.length?k:null:b}function ta(b,k){var q=k["spans_"+b.id];if(!q)return null;for(var W=[],ae=0;ae<k.text.length;++ae)W.push(Uv(q[ae]));return W}function xf(b,k){var q=ta(b,k),W=Sl(b,k);if(!q)return W;if(!W)return q;for(var ae=0;ae<q.length;++ae){var Ee=q[ae],Be=W[ae];if(Ee&&Be){e:for(var Ve=0;Ve<Be.length;++Ve){for(var Je=Be[Ve],dt=0;dt<Ee.length;++dt)if(Ee[dt].marker==Je.marker)continue e;Ee.push(Je)}}else Be&&(q[ae]=Be)}return q}function Pp(b,k,q){for(var W=[],ae=0;ae<b.length;++ae){var Ee=b[ae];if(Ee.ranges){W.push(q?Cf.prototype.deepCopy.call(Ee):Ee);continue}var Be=Ee.changes,Ve=[];W.push({changes:Ve});for(var Je=0;Je<Be.length;++Je){var dt=Be[Je],Yt=void 0;if(Ve.push({from:dt.from,to:dt.to,text:dt.text}),k)for(var rn in dt)(Yt=rn.match(/^spans_(\d+)$/))&&ye(k,Number(Yt[1]))>-1&&(De(Ve)[rn]=dt[rn],delete dt[rn])}}return W}function Lu(b,k,q,W){if(W){var ae=b.anchor;if(q){var Ee=Bt(k,ae)<0;Ee!=Bt(q,ae)<0?(ae=k,k=q):Ee!=Bt(k,q)<0&&(k=q)}return new vi(ae,k)}else return new vi(q||k,k)}function jv(b,k,q,W,ae){ae==null&&(ae=b.cm&&(b.cm.display.shift||b.extend)),Vl(b,new Cf([Lu(b.sel.primary(),k,q,ae)],0),W)}function S1(b,k,q){for(var W=[],ae=b.cm&&(b.cm.display.shift||b.extend),Ee=0;Ee<b.sel.ranges.length;Ee++)W[Ee]=Lu(b.sel.ranges[Ee],k[Ee],null,ae);var Be=Bc(b.cm,W,b.sel.primIndex);Vl(b,Be,q)}function od(b,k,q,W){var ae=b.sel.ranges.slice(0);ae[k]=q,Vl(b,Bc(b.cm,ae,b.sel.primIndex),W)}function Bu(b,k,q,W){Vl(b,Ad(k,q),W)}function pi(b,k,q){var W={ranges:k.ranges,update:function(ae){this.ranges=[];for(var Ee=0;Ee<ae.length;Ee++)this.ranges[Ee]=new vi(Xt(b,ae[Ee].anchor),Xt(b,ae[Ee].head))},origin:q&&q.origin};return at(b,"beforeSelectionChange",b,W),b.cm&&at(b.cm,"beforeSelectionChange",b.cm,W),W.ranges!=k.ranges?Bc(b.cm,W.ranges,W.ranges.length-1):k}function e1(b,k,q){var W=b.history.done,ae=De(W);ae&&ae.ranges?(W[W.length-1]=k,ji(b,k,q)):Vl(b,k,q)}function Vl(b,k,q){ji(b,k,q),z3(b,b.sel,b.cm?b.cm.curOp.id:NaN,q)}function ji(b,k,q){(An(b,"beforeSelectionChange")||b.cm&&An(b.cm,"beforeSelectionChange"))&&(k=pi(b,k,q));var W=q&&q.bias||(Bt(k.primary().head,b.sel.primary().head)<0?-1:1);Wv(b,Qc(b,k,W,!0)),!(q&&q.scroll===!1)&&b.cm&&b.cm.getOption("readOnly")!="nocursor"&&x1(b.cm)}function Wv(b,k){k.equals(b.sel)||(b.sel=k,b.cm&&(b.cm.curOp.updateInput=1,b.cm.curOp.selectionChanged=!0,en(b.cm)),yr(b,"cursorActivity",b))}function Zc(b){Wv(b,Qc(b,b.sel,null,!1))}function Qc(b,k,q,W){for(var ae,Ee=0;Ee<k.ranges.length;Ee++){var Be=k.ranges[Ee],Ve=k.ranges.length==b.sel.ranges.length&&b.sel.ranges[Ee],Je=fn(b,Be.anchor,Ve&&Ve.anchor,q,W),dt=fn(b,Be.head,Ve&&Ve.head,q,W);(ae||Je!=Be.anchor||dt!=Be.head)&&(ae||(ae=k.ranges.slice(0,Ee)),ae[Ee]=new vi(Je,dt))}return ae?Bc(b.cm,ae,k.primIndex):k}function Fp(b,k,q,W,ae){var Ee=bo(b,k.line);if(Ee.markedSpans)for(var Be=0;Be<Ee.markedSpans.length;++Be){var Ve=Ee.markedSpans[Be],Je=Ve.marker,dt="selectLeft"in Je?!Je.selectLeft:Je.inclusiveLeft,Yt="selectRight"in Je?!Je.selectRight:Je.inclusiveRight;if((Ve.from==null||(dt?Ve.from<=k.ch:Ve.from<k.ch))&&(Ve.to==null||(Yt?Ve.to>=k.ch:Ve.to>k.ch))){if(ae&&(at(Je,"beforeCursorEnter"),Je.explicitlyCleared))if(Ee.markedSpans){--Be;continue}else break;if(!Je.atomic)continue;if(q){var rn=Je.find(W<0?1:-1),Sn=void 0;if((W<0?Yt:dt)&&(rn=_c(b,rn,-W,rn&&rn.line==k.line?Ee:null)),rn&&rn.line==k.line&&(Sn=Bt(rn,q))&&(W<0?Sn<0:Sn>0))return Fp(b,rn,k,W,ae)}var Cn=Je.find(W<0?-1:1);return(W<0?dt:Yt)&&(Cn=_c(b,Cn,W,Cn.line==k.line?Ee:null)),Cn?Fp(b,Cn,k,W,ae):null}}return k}function fn(b,k,q,W,ae){var Ee=W||1,Be=Fp(b,k,q,Ee,ae)||!ae&&Fp(b,k,q,Ee,!0)||Fp(b,k,q,-Ee,ae)||!ae&&Fp(b,k,q,-Ee,!0);return Be||(b.cantEdit=!0,ft(b.first,0))}function _c(b,k,q,W){return q<0&&k.ch==0?k.line>b.first?Xt(b,ft(k.line-1)):null:q>0&&k.ch==(W||bo(b,k.line)).text.length?k.line<b.first+b.size-1?ft(k.line+1,0):null:new ft(k.line,k.ch+q)}function $c(b){b.setSelection(ft(b.firstLine(),0),ft(b.lastLine()),re)}function M0(b,k,q){var W={canceled:!1,from:k.from,to:k.to,text:k.text,origin:k.origin,cancel:function(){return W.canceled=!0}};return q&&(W.update=function(ae,Ee,Be,Ve){ae&&(W.from=Xt(b,ae)),Ee&&(W.to=Xt(b,Ee)),Be&&(W.text=Be),Ve!==void 0&&(W.origin=Ve)}),at(b,"beforeChange",b,W),b.cm&&at(b.cm,"beforeChange",b.cm,W),W.canceled?(b.cm&&(b.cm.curOp.updateInput=2),null):{from:W.from,to:W.to,text:W.text,origin:W.origin}}function nc(b,k,q){if(b.cm){if(!b.cm.curOp)return tc(b.cm,nc)(b,k,q);if(b.cm.state.suppressEdits)return}if(!((An(b,"beforeChange")||b.cm&&An(b.cm,"beforeChange"))&&(k=M0(b,k,!0),!k))){var W=Fl&&!q&&sn(b,k.from,k.to);if(W)for(var ae=W.length-1;ae>=0;--ae)Wi(b,{from:W[ae].from,to:W[ae].to,text:ae?[""]:k.text,origin:k.origin});else Wi(b,k)}}function Wi(b,k){if(!(k.text.length==1&&k.text[0]==""&&Bt(k.from,k.to)==0)){var q=O0(b,k);Ol(b,k,q,b.cm?b.cm.curOp.id:NaN),kd(b,k,q,Sl(b,k));var W=[];cl(b,function(ae,Ee){!Ee&&ye(W,ae.history)==-1&&(Tb(ae.history,k),W.push(ae.history)),kd(ae,k,null,Sl(ae,k))})}}function Gi(b,k,q){var W=b.cm&&b.cm.state.suppressEdits;if(!(W&&!q)){for(var ae=b.history,Ee,Be=b.sel,Ve=k=="undo"?ae.done:ae.undone,Je=k=="undo"?ae.undone:ae.done,dt=0;dt<Ve.length&&(Ee=Ve[dt],!(q?Ee.ranges&&!Ee.equals(b.sel):!Ee.ranges));dt++);if(dt!=Ve.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(Ee=Ve.pop(),Ee.ranges){if(rr(Ee,Je),q&&!Ee.equals(b.sel)){Vl(b,Ee,{clearRedo:!1});return}Be=Ee}else if(W){Ve.push(Ee);return}else break;var Yt=[];rr(Be,Je),Je.push({changes:Yt,generation:ae.generation}),ae.generation=Ee.generation||++ae.maxGeneration;for(var rn=An(b,"beforeChange")||b.cm&&An(b.cm,"beforeChange"),Sn=function(Or){var Qr=Ee.changes[Or];if(Qr.origin=k,rn&&!M0(b,Qr,!1))return Ve.length=0,{};Yt.push(av(b,Qr));var yo=Or?O0(b,Qr):De(Ve);kd(b,Qr,yo,xf(b,Qr)),!Or&&b.cm&&b.cm.scrollIntoView({from:Qr.from,to:ds(Qr)});var Mo=[];cl(b,function(no,Uo){!Uo&&ye(Mo,no.history)==-1&&(Tb(no.history,Qr),Mo.push(no.history)),kd(no,Qr,null,xf(no,Qr))})},Cn=Ee.changes.length-1;Cn>=0;--Cn){var tr=Sn(Cn);if(tr)return tr.v}}}}function zc(b,k){if(k!=0&&(b.first+=k,b.sel=new Cf($e(b.sel.ranges,function(ae){return new vi(ft(ae.anchor.line+k,ae.anchor.ch),ft(ae.head.line+k,ae.head.ch))}),b.sel.primIndex),b.cm)){Nu(b.cm,b.first,b.first-k,k);for(var q=b.cm.display,W=q.viewFrom;W<q.viewTo;W++)w1(b.cm,W,"gutter")}}function kd(b,k,q,W){if(b.cm&&!b.cm.curOp)return tc(b.cm,kd)(b,k,q,W);if(k.to.line<b.first){zc(b,k.text.length-1-(k.to.line-k.from.line));return}if(!(k.from.line>b.lastLine())){if(k.from.line<b.first){var ae=k.text.length-1-(b.first-k.from.line);zc(b,ae),k={from:ft(b.first,0),to:ft(k.to.line+ae,k.to.ch),text:[De(k.text)],origin:k.origin}}var Ee=b.lastLine();k.to.line>Ee&&(k={from:k.from,to:ft(Ee,bo(b,Ee).text.length),text:[k.text[0]],origin:k.origin}),k.removed=pl(b,k.from,k.to),q||(q=O0(b,k)),b.cm?Sb(b.cm,k,W):Mh(b,k,W),ji(b,q,re),b.cantEdit&&fn(b,ft(b.firstLine(),0))&&(b.cantEdit=!1)}}function Sb(b,k,q){var W=b.doc,ae=b.display,Ee=k.from,Be=k.to,Ve=!1,Je=Ee.line;b.options.lineWrapping||(Je=Rt(Yi(bo(W,Ee.line))),W.iter(Je,Be.line+1,function(Cn){if(Cn==ae.maxLine)return Ve=!0,!0})),W.sel.contains(k.from,k.to)>-1&&en(b),Mh(W,k,q,xs(b)),b.options.lineWrapping||(W.iter(Je,Ee.line+k.text.length,function(Cn){var tr=Sd(Cn);tr>ae.maxLineLength&&(ae.maxLine=Cn,ae.maxLineLength=tr,ae.maxLineChanged=!0,Ve=!1)}),Ve&&(b.curOp.updateMaxLine=!0)),Pl(W,Ee.line),Ru(b,400);var dt=k.text.length-(Be.line-Ee.line)-1;k.full?Nu(b):Ee.line==Be.line&&k.text.length==1&&!$3(b.doc,k)?w1(b,Ee.line,"text"):Nu(b,Ee.line,Be.line+1,dt);var Yt=An(b,"changes"),rn=An(b,"change");if(rn||Yt){var Sn={from:Ee,to:Be,text:k.text,removed:k.removed,origin:k.origin};rn&&yr(b,"change",b,Sn),Yt&&(b.curOp.changeObjs||(b.curOp.changeObjs=[])).push(Sn)}b.display.selForContextMenu=null}function Oo(b,k,q,W,ae){var Ee;W||(W=q),Bt(W,q)<0&&(Ee=[W,q],q=Ee[0],W=Ee[1]),typeof k=="string"&&(k=b.splitLines(k)),nc(b,{from:q,to:W,text:k,origin:ae})}function Um(b,k,q,W){q<b.line?b.line+=W:k<b.line&&(b.line=k,b.ch=0)}function Ef(b,k,q,W){for(var ae=0;ae<b.length;++ae){var Ee=b[ae],Be=!0;if(Ee.ranges){Ee.copied||(Ee=b[ae]=Ee.deepCopy(),Ee.copied=!0);for(var Ve=0;Ve<Ee.ranges.length;Ve++)Um(Ee.ranges[Ve].anchor,k,q,W),Um(Ee.ranges[Ve].head,k,q,W);continue}for(var Je=0;Je<Ee.changes.length;++Je){var dt=Ee.changes[Je];if(q<dt.from.line)dt.from=ft(dt.from.line+W,dt.from.ch),dt.to=ft(dt.to.line+W,dt.to.ch);else if(k<=dt.to.line){Be=!1;break}}Be||(b.splice(0,ae+1),ae=0)}}function Tb(b,k){var q=k.from.line,W=k.to.line,ae=k.text.length-(W-q)-1;Ef(b.done,q,W,ae),Ef(b.undone,q,W,ae)}function Gv(b,k,q,W){var ae=k,Ee=k;return typeof k=="number"?Ee=bo(b,Gt(b,k)):ae=Rt(k),ae==null?null:(W(Ee,ae)&&b.cm&&w1(b.cm,ae,q),Ee)}function Kv(b){this.lines=b,this.parent=null;for(var k=0,q=0;q<b.length;++q)b[q].parent=this,k+=b[q].height;this.height=k}Kv.prototype={chunkSize:function(){return this.lines.length},removeInner:function(b,k){for(var q=b,W=b+k;q<W;++q){var ae=this.lines[q];this.height-=ae.height,Qu(ae),yr(ae,"delete")}this.lines.splice(b,k)},collapse:function(b){b.push.apply(b,this.lines)},insertInner:function(b,k,q){this.height+=q,this.lines=this.lines.slice(0,b).concat(k).concat(this.lines.slice(b));for(var W=0;W<k.length;++W)k[W].parent=this},iterN:function(b,k,q){for(var W=b+k;b<W;++b)if(q(this.lines[b]))return!0}};function N0(b){this.children=b;for(var k=0,q=0,W=0;W<b.length;++W){var ae=b[W];k+=ae.chunkSize(),q+=ae.height,ae.parent=this}this.size=k,this.height=q,this.parent=null}N0.prototype={chunkSize:function(){return this.size},removeInner:function(b,k){this.size-=k;for(var q=0;q<this.children.length;++q){var W=this.children[q],ae=W.chunkSize();if(b<ae){var Ee=Math.min(k,ae-b),Be=W.height;if(W.removeInner(b,Ee),this.height-=Be-W.height,ae==Ee&&(this.children.splice(q--,1),W.parent=null),(k-=Ee)==0)break;b=0}else b-=ae}if(this.size-k<25&&(this.children.length>1||!(this.children[0]instanceof Kv))){var Ve=[];this.collapse(Ve),this.children=[new Kv(Ve)],this.children[0].parent=this}},collapse:function(b){for(var k=0;k<this.children.length;++k)this.children[k].collapse(b)},insertInner:function(b,k,q){this.size+=k.length,this.height+=q;for(var W=0;W<this.children.length;++W){var ae=this.children[W],Ee=ae.chunkSize();if(b<=Ee){if(ae.insertInner(b,k,q),ae.lines&&ae.lines.length>50){for(var Be=ae.lines.length%25+25,Ve=Be;Ve<ae.lines.length;){var Je=new Kv(ae.lines.slice(Ve,Ve+=25));ae.height-=Je.height,this.children.splice(++W,0,Je),Je.parent=this}ae.lines=ae.lines.slice(0,Be),this.maybeSpill()}break}b-=Ee}},maybeSpill:function(){if(!(this.children.length<=10)){var b=this;do{var k=b.children.splice(b.children.length-5,5),q=new N0(k);if(b.parent){b.size-=q.size,b.height-=q.height;var ae=ye(b.parent.children,b);b.parent.children.splice(ae+1,0,q)}else{var W=new N0(b.children);W.parent=b,b.children=[W,q],b=W}q.parent=b.parent}while(b.children.length>10);b.parent.maybeSpill()}},iterN:function(b,k,q){for(var W=0;W<this.children.length;++W){var ae=this.children[W],Ee=ae.chunkSize();if(b<Ee){var Be=Math.min(k,Ee-b);if(ae.iterN(b,Be,q))return!0;if((k-=Be)==0)break;b=0}else b-=Ee}}};var D0=function(b,k,q){if(q)for(var W in q)q.hasOwnProperty(W)&&(this[W]=q[W]);this.doc=b,this.node=k};D0.prototype.clear=function(){var b=this.doc.cm,k=this.line.widgets,q=this.line,W=Rt(q);if(!(W==null||!k)){for(var ae=0;ae<k.length;++ae)k[ae]==this&&k.splice(ae--,1);k.length||(q.widgets=null);var Ee=Eh(this);an(q,Math.max(0,q.height-Ee)),b&&(_f(b,function(){T1(b,q,-Ee),w1(b,W,"widget")}),yr(b,"lineWidgetCleared",b,this,W))}},D0.prototype.changed=function(){var b=this,k=this.height,q=this.doc.cm,W=this.line;this.height=null;var ae=Eh(this)-k;!ae||(Ea(this.doc,W)||an(W,W.height+ae),q&&_f(q,function(){q.curOp.forceUpdate=!0,T1(q,W,ae),yr(q,"lineWidgetChanged",q,b,Rt(W))}))},Vt(D0);function T1(b,k,q){ku(k)<(b.curOp&&b.curOp.scrollTop||b.doc.scrollTop)&&fs(b,q)}function Yv(b,k,q,W){var ae=new D0(b,q,W),Ee=b.cm;return Ee&&ae.noHScroll&&(Ee.display.alignWidgets=!0),Gv(b,k,"widget",function(Be){var Ve=Be.widgets||(Be.widgets=[]);if(ae.insertAt==null?Ve.push(ae):Ve.splice(Math.min(Ve.length,Math.max(0,ae.insertAt)),0,ae),ae.line=Be,Ee&&!Ea(b,Be)){var Je=ku(Be)<b.scrollTop;an(Be,Be.height+Eh(ae)),Je&&fs(Ee,ae.height),Ee.curOp.forceUpdate=!0}return!0}),Ee&&yr(Ee,"lineWidgetAdded",Ee,ae,typeof k=="number"?k:Rt(k)),ae}var H3=0,iv=function(b,k){this.lines=[],this.type=k,this.doc=b,this.id=++H3};iv.prototype.clear=function(){if(!this.explicitlyCleared){var b=this.doc.cm,k=b&&!b.curOp;if(k&&Yo(b),An(this,"clear")){var q=this.find();q&&yr(this,"clear",q.from,q.to)}for(var W=null,ae=null,Ee=0;Ee<this.lines.length;++Ee){var Be=this.lines[Ee],Ve=hc(Be.markedSpans,this);b&&!this.collapsed?w1(b,Rt(Be),"text"):b&&(Ve.to!=null&&(ae=Rt(Be)),Ve.from!=null&&(W=Rt(Be))),Be.markedSpans=ql(Be.markedSpans,Ve),Ve.from==null&&this.collapsed&&!Ea(this.doc,Be)&&b&&an(Be,Al(b.display))}if(b&&this.collapsed&&!b.options.lineWrapping)for(var Je=0;Je<this.lines.length;++Je){var dt=Yi(this.lines[Je]),Yt=Sd(dt);Yt>b.display.maxLineLength&&(b.display.maxLine=dt,b.display.maxLineLength=Yt,b.display.maxLineChanged=!0)}W!=null&&b&&this.collapsed&&Nu(b,W,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,b&&Zc(b.doc)),b&&yr(b,"markerCleared",b,this,W,ae),k&&Aa(b),this.parent&&this.parent.clear()}},iv.prototype.find=function(b,k){b==null&&this.type=="bookmark"&&(b=1);for(var q,W,ae=0;ae<this.lines.length;++ae){var Ee=this.lines[ae],Be=hc(Ee.markedSpans,this);if(Be.from!=null&&(q=ft(k?Ee:Rt(Ee),Be.from),b==-1))return q;if(Be.to!=null&&(W=ft(k?Ee:Rt(Ee),Be.to),b==1))return W}return q&&{from:q,to:W}},iv.prototype.changed=function(){var b=this,k=this.find(-1,!0),q=this,W=this.doc.cm;!k||!W||_f(W,function(){var ae=k.line,Ee=Rt(k.line),Be=ai(W,Ee);if(Be&&(Ui(Be),W.curOp.selectionChanged=W.curOp.forceUpdate=!0),W.curOp.updateMaxLine=!0,!Ea(q.doc,ae)&&q.height!=null){var Ve=q.height;q.height=null;var Je=Eh(q)-Ve;Je&&an(ae,ae.height+Je)}yr(W,"markerChanged",W,b)})},iv.prototype.attachLine=function(b){if(!this.lines.length&&this.doc.cm){var k=this.doc.cm.curOp;(!k.maybeHiddenMarkers||ye(k.maybeHiddenMarkers,this)==-1)&&(k.maybeUnhiddenMarkers||(k.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(b)},iv.prototype.detachLine=function(b){if(this.lines.splice(ye(this.lines,b),1),!this.lines.length&&this.doc.cm){var k=this.doc.cm.curOp;(k.maybeHiddenMarkers||(k.maybeHiddenMarkers=[])).push(this)}},Vt(iv);function $p(b,k,q,W,ae){if(W&&W.shared)return jm(b,k,q,W,ae);if(b.cm&&!b.cm.curOp)return tc(b.cm,$p)(b,k,q,W,ae);var Ee=new iv(b,ae),Be=Bt(k,q);if(W&&U(W,Ee,!1),Be>0||Be==0&&Ee.clearWhenEmpty!==!1)return Ee;if(Ee.replacedWith&&(Ee.collapsed=!0,Ee.widgetNode=K("span",[Ee.replacedWith],"CodeMirror-widget"),W.handleMouseEvents||Ee.widgetNode.setAttribute("cm-ignore-events","true"),W.insertLeft&&(Ee.widgetNode.insertLeft=!0)),Ee.collapsed){if(pc(b,k.line,k,q,Ee)||k.line!=q.line&&pc(b,q.line,k,q,Ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rc()}Ee.addToHistory&&Ol(b,{from:k,to:q,origin:"markText"},b.sel,NaN);var Ve=k.line,Je=b.cm,dt;if(b.iter(Ve,q.line+1,function(rn){Je&&Ee.collapsed&&!Je.options.lineWrapping&&Yi(rn)==Je.display.maxLine&&(dt=!0),Ee.collapsed&&Ve!=k.line&&an(rn,0),Au(rn,new Zu(Ee,Ve==k.line?k.ch:null,Ve==q.line?q.ch:null),b.cm&&b.cm.curOp),++Ve}),Ee.collapsed&&b.iter(k.line,q.line+1,function(rn){Ea(b,rn)&&an(rn,0)}),Ee.clearOnEnter&&Tt(Ee,"beforeCursorEnter",function(){return Ee.clear()}),Ee.readOnly&&(df(),(b.history.done.length||b.history.undone.length)&&b.clearHistory()),Ee.collapsed&&(Ee.id=++H3,Ee.atomic=!0),Je){if(dt&&(Je.curOp.updateMaxLine=!0),Ee.collapsed)Nu(Je,k.line,q.line+1);else if(Ee.className||Ee.startStyle||Ee.endStyle||Ee.css||Ee.attributes||Ee.title)for(var Yt=k.line;Yt<=q.line;Yt++)w1(Je,Yt,"text");Ee.atomic&&Zc(Je.doc),yr(Je,"markerAdded",Je,Ee)}return Ee}var zp=function(b,k){this.markers=b,this.primary=k;for(var q=0;q<b.length;++q)b[q].parent=this};zp.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var b=0;b<this.markers.length;++b)this.markers[b].clear();yr(this,"clear")}},zp.prototype.find=function(b,k){return this.primary.find(b,k)},Vt(zp);function jm(b,k,q,W,ae){W=U(W),W.shared=!1;var Ee=[$p(b,k,q,W,ae)],Be=Ee[0],Ve=W.widgetNode;return cl(b,function(Je){Ve&&(W.widgetNode=Ve.cloneNode(!0)),Ee.push($p(Je,Xt(Je,k),Xt(Je,q),W,ae));for(var dt=0;dt<Je.linked.length;++dt)if(Je.linked[dt].isParent)return;Be=De(Ee)}),new zp(Ee,Be)}function I0(b){return b.findMarks(ft(b.first,0),b.clipPos(ft(b.lastLine())),function(k){return k.parent})}function V3(b,k){for(var q=0;q<k.length;q++){var W=k[q],ae=W.find(),Ee=b.clipPos(ae.from),Be=b.clipPos(ae.to);if(Bt(Ee,Be)){var Ve=$p(b,Ee,Be,W.primary,W.primary.type);W.markers.push(Ve),Ve.parent=W}}}function sv(b){for(var k=function(W){var ae=b[W],Ee=[ae.primary.doc];cl(ae.primary.doc,function(Je){return Ee.push(Je)});for(var Be=0;Be<ae.markers.length;Be++){var Ve=ae.markers[Be];ye(Ee,Ve.doc)==-1&&(Ve.parent=null,ae.markers.splice(Be--,1))}},q=0;q<b.length;q++)k(q)}var Hp=0,Hc=function(b,k,q,W,ae){if(!(this instanceof Hc))return new Hc(b,k,q,W,ae);q==null&&(q=0),N0.call(this,[new Kv([new ml("",null)])]),this.first=q,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=q;var Ee=ft(q,0);this.sel=Ad(Ee),this.history=new hi(null),this.id=++Hp,this.modeOption=k,this.lineSep=W,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof b=="string"&&(b=this.splitLines(b)),Mh(this,{from:Ee,to:Ee,text:b}),Vl(this,Ad(Ee),re)};Hc.prototype=lt(N0.prototype,{constructor:Hc,iter:function(b,k,q){q?this.iterN(b-this.first,k-b,q):this.iterN(this.first,this.first+this.size,b)},insert:function(b,k){for(var q=0,W=0;W<k.length;++W)q+=k[W].height;this.insertInner(b-this.first,k,q)},remove:function(b,k){this.removeInner(b-this.first,k)},getValue:function(b){var k=zt(this,this.first,this.first+this.size);return b===!1?k:k.join(b||this.lineSeparator())},setValue:Hl(function(b){var k=ft(this.first,0),q=this.first+this.size-1;nc(this,{from:k,to:ft(q,bo(this,q).text.length),text:this.splitLines(b),origin:"setValue",full:!0},!0),this.cm&&Du(this.cm,0,0),Vl(this,Ad(k),re)}),replaceRange:function(b,k,q,W){k=Xt(this,k),q=q?Xt(this,q):k,Oo(this,b,k,q,W)},getRange:function(b,k,q){var W=pl(this,Xt(this,b),Xt(this,k));return q===!1?W:q===""?W.join(""):W.join(q||this.lineSeparator())},getLine:function(b){var k=this.getLineHandle(b);return k&&k.text},getLineHandle:function(b){if(Er(this,b))return bo(this,b)},getLineNumber:function(b){return Rt(b)},getLineHandleVisualStart:function(b){return typeof b=="number"&&(b=bo(this,b)),Yi(b)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(b){return Xt(this,b)},getCursor:function(b){var k=this.sel.primary(),q;return b==null||b=="head"?q=k.head:b=="anchor"?q=k.anchor:b=="end"||b=="to"||b===!1?q=k.to():q=k.from(),q},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Hl(function(b,k,q){Bu(this,Xt(this,typeof b=="number"?ft(b,k||0):b),null,q)}),setSelection:Hl(function(b,k,q){Bu(this,Xt(this,b),Xt(this,k||b),q)}),extendSelection:Hl(function(b,k,q){jv(this,Xt(this,b),k&&Xt(this,k),q)}),extendSelections:Hl(function(b,k){S1(this,Dn(this,b),k)}),extendSelectionsBy:Hl(function(b,k){var q=$e(this.sel.ranges,b);S1(this,Dn(this,q),k)}),setSelections:Hl(function(b,k,q){if(!!b.length){for(var W=[],ae=0;ae<b.length;ae++)W[ae]=new vi(Xt(this,b[ae].anchor),Xt(this,b[ae].head||b[ae].anchor));k==null&&(k=Math.min(b.length-1,this.sel.primIndex)),Vl(this,Bc(this.cm,W,k),q)}}),addSelection:Hl(function(b,k,q){var W=this.sel.ranges.slice(0);W.push(new vi(Xt(this,b),Xt(this,k||b))),Vl(this,Bc(this.cm,W,W.length-1),q)}),getSelection:function(b){for(var k=this.sel.ranges,q,W=0;W<k.length;W++){var ae=pl(this,k[W].from(),k[W].to());q=q?q.concat(ae):ae}return b===!1?q:q.join(b||this.lineSeparator())},getSelections:function(b){for(var k=[],q=this.sel.ranges,W=0;W<q.length;W++){var ae=pl(this,q[W].from(),q[W].to());b!==!1&&(ae=ae.join(b||this.lineSeparator())),k[W]=ae}return k},replaceSelection:function(b,k,q){for(var W=[],ae=0;ae<this.sel.ranges.length;ae++)W[ae]=b;this.replaceSelections(W,k,q||"+input")},replaceSelections:Hl(function(b,k,q){for(var W=[],ae=this.sel,Ee=0;Ee<ae.ranges.length;Ee++){var Be=ae.ranges[Ee];W[Ee]={from:Be.from(),to:Be.to(),text:this.splitLines(b[Ee]),origin:q}}for(var Ve=k&&k!="end"&&Vm(this,W,k),Je=W.length-1;Je>=0;Je--)nc(this,W[Je]);Ve?e1(this,Ve):this.cm&&x1(this.cm)}),undo:Hl(function(){Gi(this,"undo")}),redo:Hl(function(){Gi(this,"redo")}),undoSelection:Hl(function(){Gi(this,"undo",!0)}),redoSelection:Hl(function(){Gi(this,"redo",!0)}),setExtending:function(b){this.extend=b},getExtending:function(){return this.extend},historySize:function(){for(var b=this.history,k=0,q=0,W=0;W<b.done.length;W++)b.done[W].ranges||++k;for(var ae=0;ae<b.undone.length;ae++)b.undone[ae].ranges||++q;return{undo:k,redo:q}},clearHistory:function(){var b=this;this.history=new hi(this.history),cl(this,function(k){return k.history=b.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(b){return b&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(b){return this.history.generation==(b||this.cleanGeneration)},getHistory:function(){return{done:Pp(this.history.done),undone:Pp(this.history.undone)}},setHistory:function(b){var k=this.history=new hi(this.history);k.done=Pp(b.done.slice(0),null,!0),k.undone=Pp(b.undone.slice(0),null,!0)},setGutterMarker:Hl(function(b,k,q){return Gv(this,b,"gutter",function(W){var ae=W.gutterMarkers||(W.gutterMarkers={});return ae[k]=q,!q&&Ye(ae)&&(W.gutterMarkers=null),!0})}),clearGutter:Hl(function(b){var k=this;this.iter(function(q){q.gutterMarkers&&q.gutterMarkers[b]&&Gv(k,q,"gutter",function(){return q.gutterMarkers[b]=null,Ye(q.gutterMarkers)&&(q.gutterMarkers=null),!0})})}),lineInfo:function(b){var k;if(typeof b=="number"){if(!Er(this,b)||(k=b,b=bo(this,b),!b))return null}else if(k=Rt(b),k==null)return null;return{line:k,handle:b,text:b.text,gutterMarkers:b.gutterMarkers,textClass:b.textClass,bgClass:b.bgClass,wrapClass:b.wrapClass,widgets:b.widgets}},addLineClass:Hl(function(b,k,q){return Gv(this,b,k=="gutter"?"gutter":"class",function(W){var ae=k=="text"?"textClass":k=="background"?"bgClass":k=="gutter"?"gutterClass":"wrapClass";if(!W[ae])W[ae]=q;else{if(Y(q).test(W[ae]))return!1;W[ae]+=" "+q}return!0})}),removeLineClass:Hl(function(b,k,q){return Gv(this,b,k=="gutter"?"gutter":"class",function(W){var ae=k=="text"?"textClass":k=="background"?"bgClass":k=="gutter"?"gutterClass":"wrapClass",Ee=W[ae];if(Ee)if(q==null)W[ae]=null;else{var Be=Ee.match(Y(q));if(!Be)return!1;var Ve=Be.index+Be[0].length;W[ae]=Ee.slice(0,Be.index)+(!Be.index||Ve==Ee.length?"":" ")+Ee.slice(Ve)||null}else return!1;return!0})}),addLineWidget:Hl(function(b,k,q){return Yv(this,b,k,q)}),removeLineWidget:function(b){b.clear()},markText:function(b,k,q){return $p(this,Xt(this,b),Xt(this,k),q,q&&q.type||"range")},setBookmark:function(b,k){var q={replacedWith:k&&(k.nodeType==null?k.widget:k),insertLeft:k&&k.insertLeft,clearWhenEmpty:!1,shared:k&&k.shared,handleMouseEvents:k&&k.handleMouseEvents};return b=Xt(this,b),$p(this,b,b,q,"bookmark")},findMarksAt:function(b){b=Xt(this,b);var k=[],q=bo(this,b.line).markedSpans;if(q)for(var W=0;W<q.length;++W){var ae=q[W];(ae.from==null||ae.from<=b.ch)&&(ae.to==null||ae.to>=b.ch)&&k.push(ae.marker.parent||ae.marker)}return k},findMarks:function(b,k,q){b=Xt(this,b),k=Xt(this,k);var W=[],ae=b.line;return this.iter(b.line,k.line+1,function(Ee){var Be=Ee.markedSpans;if(Be)for(var Ve=0;Ve<Be.length;Ve++){var Je=Be[Ve];!(Je.to!=null&&ae==b.line&&b.ch>=Je.to||Je.from==null&&ae!=b.line||Je.from!=null&&ae==k.line&&Je.from>=k.ch)&&(!q||q(Je.marker))&&W.push(Je.marker.parent||Je.marker)}++ae}),W},getAllMarks:function(){var b=[];return this.iter(function(k){var q=k.markedSpans;if(q)for(var W=0;W<q.length;++W)q[W].from!=null&&b.push(q[W].marker)}),b},posFromIndex:function(b){var k,q=this.first,W=this.lineSeparator().length;return this.iter(function(ae){var Ee=ae.text.length+W;if(Ee>b)return k=b,!0;b-=Ee,++q}),Xt(this,ft(q,k))},indexFromPos:function(b){b=Xt(this,b);var k=b.ch;if(b.line<this.first||b.ch<0)return 0;var q=this.lineSeparator().length;return this.iter(this.first,b.line,function(W){k+=W.text.length+q}),k},copy:function(b){var k=new Hc(zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return k.scrollTop=this.scrollTop,k.scrollLeft=this.scrollLeft,k.sel=this.sel,k.extend=!1,b&&(k.history.undoDepth=this.history.undoDepth,k.setHistory(this.getHistory())),k},linkedDoc:function(b){b||(b={});var k=this.first,q=this.first+this.size;b.from!=null&&b.from>k&&(k=b.from),b.to!=null&&b.to<q&&(q=b.to);var W=new Hc(zt(this,k,q),b.mode||this.modeOption,k,this.lineSep,this.direction);return b.sharedHist&&(W.history=this.history),(this.linked||(this.linked=[])).push({doc:W,sharedHist:b.sharedHist}),W.linked=[{doc:this,isParent:!0,sharedHist:b.sharedHist}],V3(W,I0(this)),W},unlinkDoc:function(b){if(b instanceof ms&&(b=b.doc),this.linked)for(var k=0;k<this.linked.length;++k){var q=this.linked[k];if(q.doc==b){this.linked.splice(k,1),b.unlinkDoc(this),sv(I0(this));break}}if(b.history==this.history){var W=[b.id];cl(b,function(ae){return W.push(ae.id)},!0),b.history=new hi(null),b.history.done=Pp(this.history.done,W),b.history.undone=Pp(this.history.undone,W)}},iterLinkedDocs:function(b){cl(this,b)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(b){return this.lineSep?b.split(this.lineSep):Di(b)},lineSeparator:function(){return this.lineSep||` 478`},setDirection:Hl(function(b){b!="rtl"&&(b="ltr"),b!=this.direction&&(this.direction=b,this.iter(function(k){return k.order=null}),this.cm&&Jd(this.cm))})}),Hc.prototype.eachLine=Hc.prototype.iter;var Ab=0;function r5(b){var k=this;if(A1(k),!(_t(k,b)||zs(k.display,b))){_n(b),u&&(Ab=+new Date);var q=Yd(k,b,!0),W=b.dataTransfer.files;if(!(!q||k.isReadOnly()))if(W&&W.length&&window.FileReader&&window.File)for(var ae=W.length,Ee=Array(ae),Be=0,Ve=function(){++Be==ae&&tc(k,function(){q=Xt(k.doc,q);var Cn={from:q,to:q,text:k.doc.splitLines(Ee.filter(function(tr){return tr!=null}).join(k.doc.lineSeparator())),origin:"paste"};nc(k.doc,Cn),e1(k.doc,Ad(Xt(k.doc,q),Xt(k.doc,ds(Cn))))})()},Je=function(Cn,tr){if(k.options.allowDropFileTypes&&ye(k.options.allowDropFileTypes,Cn.type)==-1){Ve();return}var Or=new FileReader;Or.onerror=function(){return Ve()},Or.onload=function(){var Qr=Or.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qr)){Ve();return}Ee[tr]=Qr,Ve()},Or.readAsText(Cn)},dt=0;dt<W.length;dt++)Je(W[dt],dt);else{if(k.state.draggingText&&k.doc.sel.contains(q)>-1){k.state.draggingText(b),setTimeout(function(){return k.display.input.focus()},20);return}try{var Yt=b.dataTransfer.getData("Text");if(Yt){var rn;if(k.state.draggingText&&!k.state.draggingText.copy&&(rn=k.listSelections()),ji(k.doc,Ad(q,q)),rn)for(var Sn=0;Sn<rn.length;++Sn)Oo(k.doc,"",rn[Sn].anchor,rn[Sn].head,"drag");k.replaceSelection(Yt,"around","paste"),k.display.input.focus()}}catch{}}}}function o5(b,k){if(u&&(!b.state.draggingText||+new Date-Ab<100)){En(k);return}if(!(_t(b,k)||zs(b.display,k))&&(k.dataTransfer.setData("Text",b.getSelection()),k.dataTransfer.effectAllowed="copyMove",k.dataTransfer.setDragImage&&!w)){var q=V("img",null,null,"position: fixed; left: 0; top: 0;");q.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(q.width=q.height=1,b.display.wrapper.appendChild(q),q._top=q.offsetTop),k.dataTransfer.setDragImage(q,0,0),y&&q.parentNode.removeChild(q)}}function Ml(b,k){var q=Yd(b,k);if(!!q){var W=document.createDocumentFragment();Ju(b,q,W),b.display.dragCursor||(b.display.dragCursor=V("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),b.display.lineSpace.insertBefore(b.display.dragCursor,b.display.cursorDiv)),te(b.display.dragCursor,W)}}function A1(b){b.display.dragCursor&&(b.display.lineSpace.removeChild(b.display.dragCursor),b.display.dragCursor=null)}function Od(b){if(!!document.getElementsByClassName){for(var k=document.getElementsByClassName("CodeMirror"),q=[],W=0;W<k.length;W++){var ae=k[W].CodeMirror;ae&&q.push(ae)}q.length&&q[0].operation(function(){for(var Ee=0;Ee<q.length;Ee++)b(q[Ee])})}}var qv=!1;function U3(){qv||(t1(),qv=!0)}function t1(){var b;Tt(window,"resize",function(){b==null&&(b=setTimeout(function(){b=null,Od(R0)},100))}),Tt(window,"blur",function(){return Od(bl)})}function R0(b){var k=b.display;k.cachedCharWidth=k.cachedTextHeight=k.cachedPaddingH=null,k.scrollbarsClipped=!1,b.setSize()}for(var lv={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},L0=0;L0<10;L0++)lv[L0+48]=lv[L0+96]=String(L0);for(var n1=65;n1<=90;n1++)lv[n1]=String.fromCharCode(n1);for(var Vc=1;Vc<=12;Vc++)lv[Vc+111]=lv[Vc+63235]="F"+Vc;var qs={};qs.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qs.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qs.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qs.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qs.default=R?qs.macDefault:qs.pcDefault;function m2(b){var k=b.split(/-(?!$)/);b=k[k.length-1];for(var q,W,ae,Ee,Be=0;Be<k.length-1;Be++){var Ve=k[Be];if(/^(cmd|meta|m)$/i.test(Ve))Ee=!0;else if(/^a(lt)?$/i.test(Ve))q=!0;else if(/^(c|ctrl|control)$/i.test(Ve))W=!0;else if(/^s(hift)?$/i.test(Ve))ae=!0;else throw new Error("Unrecognized modifier name: "+Ve)}return q&&(b="Alt-"+b),W&&(b="Ctrl-"+b),Ee&&(b="Cmd-"+b),ae&&(b="Shift-"+b),b}function kb(b){var k={};for(var q in b)if(b.hasOwnProperty(q)){var W=b[q];if(/^(name|fallthrough|(de|at)tach)$/.test(q))continue;if(W=="..."){delete b[q];continue}for(var ae=$e(q.split(" "),m2),Ee=0;Ee<ae.length;Ee++){var Be=void 0,Ve=void 0;Ee==ae.length-1?(Ve=ae.join(" "),Be=W):(Ve=ae.slice(0,Ee+1).join(" "),Be="...");var Je=k[Ve];if(!Je)k[Ve]=Be;else if(Je!=Be)throw new Error("Inconsistent bindings for "+Ve)}delete b[q]}for(var dt in k)b[dt]=k[dt];return b}function r1(b,k,q,W){k=Xv(k);var ae=k.call?k.call(b,W):k[b];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&q(ae))return"handled";if(k.fallthrough){if(Object.prototype.toString.call(k.fallthrough)!="[object Array]")return r1(b,k.fallthrough,q,W);for(var Ee=0;Ee<k.fallthrough.length;Ee++){var Be=r1(b,k.fallthrough[Ee],q,W);if(Be)return Be}}}function B0(b){var k=typeof b=="string"?b:lv[b.keyCode];return k=="Ctrl"||k=="Alt"||k=="Shift"||k=="Mod"}function P0(b,k,q){var W=b;return k.altKey&&W!="Alt"&&(b="Alt-"+b),(Z?k.metaKey:k.ctrlKey)&&W!="Ctrl"&&(b="Ctrl-"+b),(Z?k.ctrlKey:k.metaKey)&&W!="Mod"&&(b="Cmd-"+b),!q&&k.shiftKey&&W!="Shift"&&(b="Shift-"+b),b}function j3(b,k){if(y&&b.keyCode==34&&b.char)return!1;var q=lv[b.keyCode];return q==null||b.altGraphKey?!1:(b.keyCode==3&&b.code&&(q=b.code),P0(q,b,k))}function Xv(b){return typeof b=="string"?qs[b]:b}function Nh(b,k){for(var q=b.doc.sel.ranges,W=[],ae=0;ae<q.length;ae++){for(var Ee=k(q[ae]);W.length&&Bt(Ee.from,De(W).to)<=0;){var Be=W.pop();if(Bt(Be.from,Ee.from)<0){Ee.from=Be.from;break}}W.push(Ee)}_f(b,function(){for(var Ve=W.length-1;Ve>=0;Ve--)Oo(b.doc,"",W[Ve].from,W[Ve].to,"+delete");x1(b)})}function Ob(b,k,q){var W=Ct(b.text,k+q,q);return W<0||W>b.text.length?null:W}function Ns(b,k,q){var W=Ob(b,k.ch,q);return W==null?null:new ft(k.line,W,q<0?"after":"before")}function Vp(b,k,q,W,ae){if(b){k.doc.direction=="rtl"&&(ae=-ae);var Ee=At(q,k.doc.direction);if(Ee){var Be=ae<0?De(Ee):Ee[0],Ve=ae<0==(Be.level==1),Je=Ve?"after":"before",dt;if(Be.level>0||k.doc.direction=="rtl"){var Yt=Pi(k,q);dt=ae<0?q.text.length-1:0;var rn=tl(k,Yt,dt).top;dt=bt(function(Sn){return tl(k,Yt,Sn).top==rn},ae<0==(Be.level==1)?Be.from:Be.to-1,dt),Je=="before"&&(dt=Ob(q,dt,1))}else dt=ae<0?Be.to:Be.from;return new ft(W,dt,Je)}}return new ft(W,ae<0?q.text.length:0,ae<0?"before":"after")}function Dh(b,k,q,W){var ae=At(k,b.doc.direction);if(!ae)return Ns(k,q,W);q.ch>=k.text.length?(q.ch=k.text.length,q.sticky="before"):q.ch<=0&&(q.ch=0,q.sticky="after");var Ee=It(ae,q.ch,q.sticky),Be=ae[Ee];if(b.doc.direction=="ltr"&&Be.level%2==0&&(W>0?Be.to>q.ch:Be.from<q.ch))return Ns(k,q,W);var Ve=function(yo,Mo){return Ob(k,yo instanceof ft?yo.ch:yo,Mo)},Je,dt=function(yo){return b.options.lineWrapping?(Je=Je||Pi(b,k),$m(b,k,Je,yo)):{begin:0,end:k.text.length}},Yt=dt(q.sticky=="before"?Ve(q,-1):q.ch);if(b.doc.direction=="rtl"||Be.level==1){var rn=Be.level==1==W<0,Sn=Ve(q,rn?1:-1);if(Sn!=null&&(rn?Sn<=Be.to&&Sn<=Yt.end:Sn>=Be.from&&Sn>=Yt.begin)){var Cn=rn?"before":"after";return new ft(q.line,Sn,Cn)}}var tr=function(yo,Mo,no){for(var Uo=function(Vs,mu){return mu?new ft(q.line,Ve(Vs,1),"before"):new ft(q.line,Vs,"after")};yo>=0&&yo<ae.length;yo+=Mo){var ca=ae[yo],sa=Mo>0==(ca.level!=1),yi=sa?no.begin:Ve(no.end,-1);if(ca.from<=yi&&yi<ca.to||(yi=sa?ca.from:Ve(ca.to,-1),no.begin<=yi&&yi<no.end))return Uo(yi,sa)}},Or=tr(Ee+W,W,Yt);if(Or)return Or;var Qr=W>0?Yt.end:Ve(Yt.begin,-1);return Qr!=null&&!(W>0&&Qr==k.text.length)&&(Or=tr(W>0?0:ae.length-1,W,dt(Qr)),Or)?Or:null}var F0={selectAll:$c,singleSelection:function(b){return b.setSelection(b.getCursor("anchor"),b.getCursor("head"),re)},killLine:function(b){return Nh(b,function(k){if(k.empty()){var q=bo(b.doc,k.head.line).text.length;return k.head.ch==q&&k.head.line<b.lastLine()?{from:k.head,to:ft(k.head.line+1,0)}:{from:k.head,to:ft(k.head.line,q)}}else return{from:k.from(),to:k.to()}})},deleteLine:function(b){return Nh(b,function(k){return{from:ft(k.from().line,0),to:Xt(b.doc,ft(k.to().line+1,0))}})},delLineLeft:function(b){return Nh(b,function(k){return{from:ft(k.from().line,0),to:k.from()}})},delWrappedLineLeft:function(b){return Nh(b,function(k){var q=b.charCoords(k.head,"div").top+5,W=b.coordsChar({left:0,top:q},"div");return{from:W,to:k.from()}})},delWrappedLineRight:function(b){return Nh(b,function(k){var q=b.charCoords(k.head,"div").top+5,W=b.coordsChar({left:b.display.lineDiv.offsetWidth+100,top:q},"div");return{from:k.from(),to:W}})},undo:function(b){return b.undo()},redo:function(b){return b.redo()},undoSelection:function(b){return b.undoSelection()},redoSelection:function(b){return b.redoSelection()},goDocStart:function(b){return b.extendSelection(ft(b.firstLine(),0))},goDocEnd:function(b){return b.extendSelection(ft(b.lastLine()))},goLineStart:function(b){return b.extendSelectionsBy(function(k){return g2(b,k.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(b){return b.extendSelectionsBy(function(k){return Sf(b,k.head)},{origin:"+move",bias:1})},goLineEnd:function(b){return b.extendSelectionsBy(function(k){return Md(b,k.head.line)},{origin:"+move",bias:-1})},goLineRight:function(b){return b.extendSelectionsBy(function(k){var q=b.cursorCoords(k.head,"div").top+5;return b.coordsChar({left:b.display.lineDiv.offsetWidth+100,top:q},"div")},Ae)},goLineLeft:function(b){return b.extendSelectionsBy(function(k){var q=b.cursorCoords(k.head,"div").top+5;return b.coordsChar({left:0,top:q},"div")},Ae)},goLineLeftSmart:function(b){return b.extendSelectionsBy(function(k){var q=b.cursorCoords(k.head,"div").top+5,W=b.coordsChar({left:0,top:q},"div");return W.ch<b.getLine(W.line).search(/\S/)?Sf(b,k.head):W},Ae)},goLineUp:function(b){return b.moveV(-1,"line")},goLineDown:function(b){return b.moveV(1,"line")},goPageUp:function(b){return b.moveV(-1,"page")},goPageDown:function(b){return b.moveV(1,"page")},goCharLeft:function(b){return b.moveH(-1,"char")},goCharRight:function(b){return b.moveH(1,"char")},goColumnLeft:function(b){return b.moveH(-1,"column")},goColumnRight:function(b){return b.moveH(1,"column")},goWordLeft:function(b){return b.moveH(-1,"word")},goGroupRight:function(b){return b.moveH(1,"group")},goGroupLeft:function(b){return b.moveH(-1,"group")},goWordRight:function(b){return b.moveH(1,"word")},delCharBefore:function(b){return b.deleteH(-1,"codepoint")},delCharAfter:function(b){return b.deleteH(1,"char")},delWordBefore:function(b){return b.deleteH(-1,"word")},delWordAfter:function(b){return b.deleteH(1,"word")},delGroupBefore:function(b){return b.deleteH(-1,"group")},delGroupAfter:function(b){return b.deleteH(1,"group")},indentAuto:function(b){return b.indentSelection("smart")},indentMore:function(b){return b.indentSelection("add")},indentLess:function(b){return b.indentSelection("subtract")},insertTab:function(b){return b.replaceSelection(" ")},insertSoftTab:function(b){for(var k=[],q=b.listSelections(),W=b.options.tabSize,ae=0;ae<q.length;ae++){var Ee=q[ae].from(),Be=j(b.getLine(Ee.line),Ee.ch,W);k.push(Oe(W-Be%W))}b.replaceSelections(k)},defaultTab:function(b){b.somethingSelected()?b.indentSelection("add"):b.execCommand("insertTab")},transposeChars:function(b){return _f(b,function(){for(var k=b.listSelections(),q=[],W=0;W<k.length;W++)if(!!k[W].empty()){var ae=k[W].head,Ee=bo(b.doc,ae.line).text;if(Ee){if(ae.ch==Ee.length&&(ae=new ft(ae.line,ae.ch-1)),ae.ch>0)ae=new ft(ae.line,ae.ch+1),b.replaceRange(Ee.charAt(ae.ch-1)+Ee.charAt(ae.ch-2),ft(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>b.doc.first){var Be=bo(b.doc,ae.line-1).text;Be&&(ae=new ft(ae.line,1),b.replaceRange(Ee.charAt(0)+b.doc.lineSeparator()+Be.charAt(Be.length-1),ft(ae.line-1,Be.length-1),ae,"+transpose"))}}q.push(new vi(ae,ae))}b.setSelections(q)})},newlineAndIndent:function(b){return _f(b,function(){for(var k=b.listSelections(),q=k.length-1;q>=0;q--)b.replaceRange(b.doc.lineSeparator(),k[q].anchor,k[q].head,"+input");k=b.listSelections();for(var W=0;W<k.length;W++)b.indentLine(k[W].from().line,null,!0);x1(b)})},openLine:function(b){return b.replaceSelection(` 479`,"start")},toggleOverwrite:function(b){return b.toggleOverwrite()}};function g2(b,k){var q=bo(b.doc,k),W=Yi(q);return W!=q&&(k=Rt(W)),Vp(!0,b,W,k,1)}function Md(b,k){var q=bo(b.doc,k),W=mc(q);return W!=q&&(k=Rt(W)),Vp(!0,b,q,k,-1)}function Sf(b,k){var q=g2(b,k.line),W=bo(b.doc,q.line),ae=At(W,b.doc.direction);if(!ae||ae[0].level==0){var Ee=Math.max(q.ch,W.text.search(/\S/)),Be=k.line==q.line&&k.ch<=Ee&&k.ch;return ft(q.line,Be?0:Ee,q.sticky)}return q}function uv(b,k,q){if(typeof k=="string"&&(k=F0[k],!k))return!1;b.display.input.ensurePolled();var W=b.display.shift,ae=!1;try{b.isReadOnly()&&(b.state.suppressEdits=!0),q&&(b.display.shift=!1),ae=k(b)!=he}finally{b.display.shift=W,b.state.suppressEdits=!1}return ae}function Ih(b,k,q){for(var W=0;W<b.state.keyMaps.length;W++){var ae=r1(k,b.state.keyMaps[W],q,b);if(ae)return ae}return b.options.extraKeys&&r1(k,b.options.extraKeys,q,b)||r1(k,b.options.keyMap,q,b)}var y2=new ee;function Zv(b,k,q,W){var ae=b.state.keySeq;if(ae){if(B0(k))return"handled";if(/\'$/.test(k)?b.state.keySeq=null:y2.set(50,function(){b.state.keySeq==ae&&(b.state.keySeq=null,b.display.input.reset())}),b2(b,ae+" "+k,q,W))return!0}return b2(b,k,q,W)}function b2(b,k,q,W){var ae=Ih(b,k,W);return ae=="multi"&&(b.state.keySeq=k),ae=="handled"&&yr(b,"keyHandled",b,k,q),(ae=="handled"||ae=="multi")&&(_n(q),Ks(b)),!!ae}function Rh(b,k){var q=j3(k,!0);return q?k.shiftKey&&!b.state.keySeq?Zv(b,"Shift-"+q,k,function(W){return uv(b,W,!0)})||Zv(b,q,k,function(W){if(typeof W=="string"?/^go[A-Z]/.test(W):W.motion)return uv(b,W)}):Zv(b,q,k,function(W){return uv(b,W)}):!1}function _2(b,k,q){return Zv(b,"'"+q+"'",k,function(W){return uv(b,W,!0)})}var Mb=null;function w2(b){var k=this;if(!(b.target&&b.target!=k.display.input.getField())&&(k.curOp.focus=ne(),!_t(k,b))){u&&f<11&&b.keyCode==27&&(b.returnValue=!1);var q=b.keyCode;k.display.shift=q==16||b.shiftKey;var W=Rh(k,b);y&&(Mb=W?q:null,!W&&q==88&&!Na&&(R?b.metaKey:b.ctrlKey)&&k.replaceSelection("",null,"cut")),n&&!R&&!W&&q==46&&b.shiftKey&&!b.ctrlKey&&document.execCommand&&document.execCommand("cut"),q==18&&!/\bCodeMirror-crosshair\b/.test(k.display.lineDiv.className)&&ad(k)}}function ad(b){var k=b.display.lineDiv;le(k,"CodeMirror-crosshair");function q(W){(W.keyCode==18||!W.altKey)&&(Q(k,"CodeMirror-crosshair"),xt(document,"keyup",q),xt(document,"mouseover",q))}Tt(document,"keyup",q),Tt(document,"mouseover",q)}function Jc(b){b.keyCode==16&&(this.doc.sel.shift=!1),_t(this,b)}function $0(b){var k=this;if(!(b.target&&b.target!=k.display.input.getField())&&!(zs(k.display,b)||_t(k,b)||b.ctrlKey&&!b.altKey||R&&b.metaKey)){var q=b.keyCode,W=b.charCode;if(y&&q==Mb){Mb=null,_n(b);return}if(!(y&&(!b.which||b.which<10)&&Rh(k,b))){var ae=String.fromCharCode(W==null?q:W);ae!="\b"&&(_2(k,b,ae)||k.display.input.onKeyPress(b))}}}var o1=400,vu=function(b,k,q){this.time=b,this.pos=k,this.button=q};vu.prototype.compare=function(b,k,q){return this.time+o1>b&&Bt(k,this.pos)==0&&q==this.button};var Lh,Nd;function W3(b,k){var q=+new Date;return Nd&&Nd.compare(q,b,k)?(Lh=Nd=null,"triple"):Lh&&Lh.compare(q,b,k)?(Nd=new vu(q,b,k),Lh=null,"double"):(Lh=new vu(q,b,k),Nd=null,"single")}function hu(b){var k=this,q=k.display;if(!(_t(k,b)||q.activeTouch&&q.input.supportsTouch())){if(q.input.ensurePolled(),q.shift=b.shiftKey,zs(q,b)){v||(q.scroller.draggable=!1,setTimeout(function(){return q.scroller.draggable=!0},100));return}if(!Fi(k,b)){var W=Yd(k,b),ae=nn(b),Ee=W?W3(W,ae):"single";window.focus(),ae==1&&k.state.selectingText&&k.state.selectingText(b),!(W&&Nb(k,ae,W,Ee,b))&&(ae==1?W?li(k,W,Ee,b):zn(b)==q.scroller&&_n(b):ae==2?(W&&jv(k.doc,W),setTimeout(function(){return q.input.focus()},20)):ae==3&&(z?k.display.input.onContextMenu(b):nl(k)))}}}function Nb(b,k,q,W,ae){var Ee="Click";return W=="double"?Ee="Double"+Ee:W=="triple"&&(Ee="Triple"+Ee),Ee=(k==1?"Left":k==2?"Middle":"Right")+Ee,Zv(b,P0(Ee,ae),ae,function(Be){if(typeof Be=="string"&&(Be=F0[Be]),!Be)return!1;var Ve=!1;try{b.isReadOnly()&&(b.state.suppressEdits=!0),Ve=Be(b,q)!=he}finally{b.state.suppressEdits=!1}return Ve})}function C2(b,k,q){var W=b.getOption("configureMouse"),ae=W?W(b,k,q):{};if(ae.unit==null){var Ee=N?q.shiftKey&&q.metaKey:q.altKey;ae.unit=Ee?"rectangle":k=="single"?"char":k=="double"?"word":"line"}return(ae.extend==null||b.doc.extend)&&(ae.extend=b.doc.extend||q.shiftKey),ae.addNew==null&&(ae.addNew=R?q.metaKey:q.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(R?q.altKey:q.ctrlKey)),ae}function li(b,k,q,W){u?setTimeout(P(kl,b),0):b.curOp.focus=ne();var ae=C2(b,q,W),Ee=b.doc.sel,Be;b.options.dragDrop&&Yn&&!b.isReadOnly()&&q=="single"&&(Be=Ee.contains(k))>-1&&(Bt((Be=Ee.ranges[Be]).from(),k)<0||k.xRel>0)&&(Bt(Be.to(),k)>0||k.xRel<0)?zo(b,W,k,ae):x2(b,W,k,ae)}function zo(b,k,q,W){var ae=b.display,Ee=!1,Be=tc(b,function(dt){v&&(ae.scroller.draggable=!1),b.state.draggingText=!1,b.state.delayingBlurEvent&&(b.hasFocus()?b.state.delayingBlurEvent=!1:nl(b)),xt(ae.wrapper.ownerDocument,"mouseup",Be),xt(ae.wrapper.ownerDocument,"mousemove",Ve),xt(ae.scroller,"dragstart",Je),xt(ae.scroller,"drop",Be),Ee||(_n(dt),W.addNew||jv(b.doc,q,null,null,W.extend),v&&!w||u&&f==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),Ve=function(dt){Ee=Ee||Math.abs(k.clientX-dt.clientX)+Math.abs(k.clientY-dt.clientY)>=10},Je=function(){return Ee=!0};v&&(ae.scroller.draggable=!0),b.state.draggingText=Be,Be.copy=!W.moveOnDrag,Tt(ae.wrapper.ownerDocument,"mouseup",Be),Tt(ae.wrapper.ownerDocument,"mousemove",Ve),Tt(ae.scroller,"dragstart",Je),Tt(ae.scroller,"drop",Be),b.state.delayingBlurEvent=!0,setTimeout(function(){return ae.input.focus()},20),ae.scroller.dragDrop&&ae.scroller.dragDrop()}function Tf(b,k,q){if(q=="char")return new vi(k,k);if(q=="word")return b.findWordAt(k);if(q=="line")return new vi(ft(k.line,0),Xt(b.doc,ft(k.line+1,0)));var W=q(b,k);return new vi(W.from,W.to)}function x2(b,k,q,W){u&&nl(b);var ae=b.display,Ee=b.doc;_n(k);var Be,Ve,Je=Ee.sel,dt=Je.ranges;if(W.addNew&&!W.extend?(Ve=Ee.sel.contains(q),Ve>-1?Be=dt[Ve]:Be=new vi(q,q)):(Be=Ee.sel.primary(),Ve=Ee.sel.primIndex),W.unit=="rectangle")W.addNew||(Be=new vi(q,q)),q=Yd(b,k,!0,!0),Ve=-1;else{var Yt=Tf(b,q,W.unit);W.extend?Be=Lu(Be,Yt.anchor,Yt.head,W.extend):Be=Yt}W.addNew?Ve==-1?(Ve=dt.length,Vl(Ee,Bc(b,dt.concat([Be]),Ve),{scroll:!1,origin:"*mouse"})):dt.length>1&&dt[Ve].empty()&&W.unit=="char"&&!W.extend?(Vl(Ee,Bc(b,dt.slice(0,Ve).concat(dt.slice(Ve+1)),0),{scroll:!1,origin:"*mouse"}),Je=Ee.sel):od(Ee,Ve,Be,be):(Ve=0,Vl(Ee,new Cf([Be],0),be),Je=Ee.sel);var rn=q;function Sn(no){if(Bt(rn,no)!=0)if(rn=no,W.unit=="rectangle"){for(var Uo=[],ca=b.options.tabSize,sa=j(bo(Ee,q.line).text,q.ch,ca),yi=j(bo(Ee,no.line).text,no.ch,ca),Vs=Math.min(sa,yi),mu=Math.max(sa,yi),fl=Math.min(q.line,no.line),tf=Math.min(b.lastLine(),Math.max(q.line,no.line));fl<=tf;fl++){var Af=bo(Ee,fl).text,Xs=Te(Af,Vs,ca);Vs==mu?Uo.push(new vi(ft(fl,Xs),ft(fl,Xs))):Af.length>Xs&&Uo.push(new vi(ft(fl,Xs),ft(fl,Te(Af,mu,ca))))}Uo.length||Uo.push(new vi(q,q)),Vl(Ee,Bc(b,Je.ranges.slice(0,Ve).concat(Uo),Ve),{origin:"*mouse",scroll:!1}),b.scrollIntoView(no)}else{var Ql=Be,Da=Tf(b,no,W.unit),jl=Ql.anchor,Es;Bt(Da.anchor,jl)>0?(Es=Da.head,jl=St(Ql.from(),Da.anchor)):(Es=Da.anchor,jl=Ze(Ql.to(),Da.head));var Nl=Je.ranges.slice(0);Nl[Ve]=a1(b,new vi(Xt(Ee,jl),Es)),Vl(Ee,Bc(b,Nl,Ve),be)}}var Cn=ae.wrapper.getBoundingClientRect(),tr=0;function Or(no){var Uo=++tr,ca=Yd(b,no,!0,W.unit=="rectangle");if(!!ca)if(Bt(ca,rn)!=0){b.curOp.focus=ne(),Sn(ca);var sa=Ah(ae,Ee);(ca.line>=sa.to||ca.line<sa.from)&&setTimeout(tc(b,function(){tr==Uo&&Or(no)}),150)}else{var yi=no.clientY<Cn.top?-20:no.clientY>Cn.bottom?20:0;yi&&setTimeout(tc(b,function(){tr==Uo&&(ae.scroller.scrollTop+=yi,Or(no))}),50)}}function Qr(no){b.state.selectingText=!1,tr=1/0,no&&(_n(no),ae.input.focus()),xt(ae.wrapper.ownerDocument,"mousemove",yo),xt(ae.wrapper.ownerDocument,"mouseup",Mo),Ee.history.lastSelOrigin=null}var yo=tc(b,function(no){no.buttons===0||!nn(no)?Qr(no):Or(no)}),Mo=tc(b,Qr);b.state.selectingText=Mo,Tt(ae.wrapper.ownerDocument,"mousemove",yo),Tt(ae.wrapper.ownerDocument,"mouseup",Mo)}function a1(b,k){var q=k.anchor,W=k.head,ae=bo(b.doc,q.line);if(Bt(q,W)==0&&q.sticky==W.sticky)return k;var Ee=At(ae);if(!Ee)return k;var Be=It(Ee,q.ch,q.sticky),Ve=Ee[Be];if(Ve.from!=q.ch&&Ve.to!=q.ch)return k;var Je=Be+(Ve.from==q.ch==(Ve.level!=1)?0:1);if(Je==0||Je==Ee.length)return k;var dt;if(W.line!=q.line)dt=(W.line-q.line)*(b.doc.direction=="ltr"?1:-1)>0;else{var Yt=It(Ee,W.ch,W.sticky),rn=Yt-Be||(W.ch-q.ch)*(Ve.level==1?-1:1);Yt==Je-1||Yt==Je?dt=rn<0:dt=rn>0}var Sn=Ee[Je+(dt?-1:0)],Cn=dt==(Sn.level==1),tr=Cn?Sn.from:Sn.to,Or=Cn?"after":"before";return q.ch==tr&&q.sticky==Or?k:new vi(new ft(q.line,tr,Or),W)}function Db(b,k,q,W){var ae,Ee;if(k.touches)ae=k.touches[0].clientX,Ee=k.touches[0].clientY;else try{ae=k.clientX,Ee=k.clientY}catch{return!1}if(ae>=Math.floor(b.display.gutters.getBoundingClientRect().right))return!1;W&&_n(k);var Be=b.display,Ve=Be.lineDiv.getBoundingClientRect();if(Ee>Ve.bottom||!An(b,q))return pn(k);Ee-=Ve.top-Be.viewOffset;for(var Je=0;Je<b.display.gutterSpecs.length;++Je){var dt=Be.gutters.childNodes[Je];if(dt&&dt.getBoundingClientRect().right>=ae){var Yt=Nn(b.doc,Ee),rn=b.display.gutterSpecs[Je];return at(b,q,b,Yt,rn.className,k),pn(k)}}}function Fi(b,k){return Db(b,k,"gutterClick",!0)}function E2(b,k){zs(b.display,k)||S2(b,k)||_t(b,k,"contextmenu")||z||b.display.input.onContextMenu(k)}function S2(b,k){return An(b,"gutterContextMenu")?Db(b,k,"gutterContextMenu",!1):!1}function Wm(b){b.display.wrapper.className=b.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+b.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Jf(b)}var sr={toString:function(){return"CodeMirror.Init"}},T2={},Up={};function Bh(b){var k=b.optionHandlers;function q(W,ae,Ee,Be){b.defaults[W]=ae,Ee&&(k[W]=Be?function(Ve,Je,dt){dt!=sr&&Ee(Ve,Je,dt)}:Ee)}b.defineOption=q,b.Init=sr,q("value","",function(W,ae){return W.setValue(ae)},!0),q("mode",null,function(W,ae){W.doc.modeOption=ae,Bp(W)},!0),q("indentUnit",2,Bp,!0),q("indentWithTabs",!1),q("smartIndent",!0),q("tabSize",4,function(W){Oh(W),Jf(W),Nu(W)},!0),q("lineSeparator",null,function(W,ae){if(W.doc.lineSep=ae,!!ae){var Ee=[],Be=W.doc.first;W.doc.iter(function(Je){for(var dt=0;;){var Yt=Je.text.indexOf(ae,dt);if(Yt==-1)break;dt=Yt+ae.length,Ee.push(ft(Be,Yt))}Be++});for(var Ve=Ee.length-1;Ve>=0;Ve--)Oo(W.doc,ae,Ee[Ve],ft(Ee[Ve].line,Ee[Ve].ch+ae.length))}}),q("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(W,ae,Ee){W.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),Ee!=sr&&W.refresh()}),q("specialCharPlaceholder",Cs,function(W){return W.refresh()},!0),q("electricChars",!0),q("inputStyle",F?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),q("spellcheck",!1,function(W,ae){return W.getInputField().spellcheck=ae},!0),q("autocorrect",!1,function(W,ae){return W.getInputField().autocorrect=ae},!0),q("autocapitalize",!1,function(W,ae){return W.getInputField().autocapitalize=ae},!0),q("rtlMoveVisually",!A),q("wholeLineUpdateBefore",!0),q("theme","default",function(W){Wm(W),Rp(W)},!0),q("keyMap","default",function(W,ae,Ee){var Be=Xv(ae),Ve=Ee!=sr&&Xv(Ee);Ve&&Ve.detach&&Ve.detach(W,Be),Be.attach&&Be.attach(W,Ve||null)}),q("extraKeys",null),q("configureMouse",null),q("lineWrapping",!1,z0,!0),q("gutters",[],function(W,ae){W.display.gutterSpecs=A0(ae,W.options.lineNumbers),Rp(W)},!0),q("fixedGutter",!0,function(W,ae){W.display.gutters.style.left=ae?Td(W.display)+"px":"0",W.refresh()},!0),q("coverGutterNextToScrollbar",!1,function(W){return ht(W)},!0),q("scrollbarStyle","native",function(W){qn(W),ht(W),W.display.scrollbars.setScrollTop(W.doc.scrollTop),W.display.scrollbars.setScrollLeft(W.doc.scrollLeft)},!0),q("lineNumbers",!1,function(W,ae){W.display.gutterSpecs=A0(W.options.gutters,ae),Rp(W)},!0),q("firstLineNumber",1,Rp,!0),q("lineNumberFormatter",function(W){return W},Rp,!0),q("showCursorWhenSelecting",!1,Ko,!0),q("resetSelectionOnContextMenu",!0),q("lineWiseCopyCut",!0),q("pasteLinesPerSelection",!0),q("selectionsMayTouch",!1),q("readOnly",!1,function(W,ae){ae=="nocursor"&&(bl(W),W.display.input.blur()),W.display.input.readOnlyChanged(ae)}),q("screenReaderLabel",null,function(W,ae){ae=ae===""?null:ae,W.display.input.screenReaderLabelChanged(ae)}),q("disableInput",!1,function(W,ae){ae||W.display.input.reset()},!0),q("dragDrop",!0,Gm),q("allowDropFileTypes",null),q("cursorBlinkRate",530),q("cursorScrollMargin",0),q("cursorHeight",1,Ko,!0),q("singleCursorHeightPerLine",!0,Ko,!0),q("workTime",100),q("workDelay",100),q("flattenSpans",!0,Oh,!0),q("addModeClass",!1,Oh,!0),q("pollInterval",100),q("undoDepth",200,function(W,ae){return W.doc.history.undoDepth=ae}),q("historyEventDelay",1250),q("viewportMargin",10,function(W){return W.refresh()},!0),q("maxHighlightLength",1e4,Oh,!0),q("moveInputWithCursor",!0,function(W,ae){ae||W.display.input.resetPosition()}),q("tabindex",null,function(W,ae){return W.display.input.getField().tabIndex=ae||""}),q("autofocus",null),q("direction","ltr",function(W,ae){return W.doc.setDirection(ae)},!0),q("phrases",null)}function Gm(b,k,q){var W=q&&q!=sr;if(!k!=!W){var ae=b.display.dragFunctions,Ee=k?Tt:xt;Ee(b.display.scroller,"dragstart",ae.start),Ee(b.display.scroller,"dragenter",ae.enter),Ee(b.display.scroller,"dragover",ae.over),Ee(b.display.scroller,"dragleave",ae.leave),Ee(b.display.scroller,"drop",ae.drop)}}function z0(b){b.options.lineWrapping?(le(b.display.wrapper,"CodeMirror-wrap"),b.display.sizer.style.minWidth="",b.display.sizerWidth=null):(Q(b.display.wrapper,"CodeMirror-wrap"),fi(b)),bc(b),Nu(b),Jf(b),setTimeout(function(){return ht(b)},100)}function ms(b,k){var q=this;if(!(this instanceof ms))return new ms(b,k);this.options=k=k?U(k):{},U(T2,k,!1);var W=k.value;typeof W=="string"?W=new Hc(W,k.mode,null,k.lineSeparator,k.direction):k.mode&&(W.modeOption=k.mode),this.doc=W;var ae=new ms.inputStyles[k.inputStyle](this),Ee=this.display=new wf(b,W,ae,k);Ee.wrapper.CodeMirror=this,Wm(this),k.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},k.autofocus&&!F&&Ee.input.focus(),u&&f<11&&setTimeout(function(){return q.display.input.reset(!0)},20),H0(this),U3(),Yo(this),this.curOp.forceUpdate=!0,Eb(this,W),k.autofocus&&!F||this.hasFocus()?setTimeout(function(){q.hasFocus()&&!q.state.focused&&Zd(q)},20):bl(this);for(var Be in Up)Up.hasOwnProperty(Be)&&Up[Be](this,k[Be],sr);T0(this),k.finishInit&&k.finishInit(this);for(var Ve=0;Ve<Ph.length;++Ve)Ph[Ve](this);Aa(this),v&&k.lineWrapping&&getComputedStyle(Ee.lineDiv).textRendering=="optimizelegibility"&&(Ee.lineDiv.style.textRendering="auto")}ms.defaults=T2,ms.optionHandlers=Up;function H0(b){var k=b.display;Tt(k.scroller,"mousedown",tc(b,hu)),u&&f<11?Tt(k.scroller,"dblclick",tc(b,function(Je){if(!_t(b,Je)){var dt=Yd(b,Je);if(!(!dt||Fi(b,Je)||zs(b.display,Je))){_n(Je);var Yt=b.findWordAt(dt);jv(b.doc,Yt.anchor,Yt.head)}}})):Tt(k.scroller,"dblclick",function(Je){return _t(b,Je)||_n(Je)}),Tt(k.scroller,"contextmenu",function(Je){return E2(b,Je)}),Tt(k.input.getField(),"contextmenu",function(Je){k.scroller.contains(Je.target)||E2(b,Je)});var q,W={end:0};function ae(){k.activeTouch&&(q=setTimeout(function(){return k.activeTouch=null},1e3),W=k.activeTouch,W.end=+new Date)}function Ee(Je){if(Je.touches.length!=1)return!1;var dt=Je.touches[0];return dt.radiusX<=1&&dt.radiusY<=1}function Be(Je,dt){if(dt.left==null)return!0;var Yt=dt.left-Je.left,rn=dt.top-Je.top;return Yt*Yt+rn*rn>20*20}Tt(k.scroller,"touchstart",function(Je){if(!_t(b,Je)&&!Ee(Je)&&!Fi(b,Je)){k.input.ensurePolled(),clearTimeout(q);var dt=+new Date;k.activeTouch={start:dt,moved:!1,prev:dt-W.end<=300?W:null},Je.touches.length==1&&(k.activeTouch.left=Je.touches[0].pageX,k.activeTouch.top=Je.touches[0].pageY)}}),Tt(k.scroller,"touchmove",function(){k.activeTouch&&(k.activeTouch.moved=!0)}),Tt(k.scroller,"touchend",function(Je){var dt=k.activeTouch;if(dt&&!zs(k,Je)&&dt.left!=null&&!dt.moved&&new Date-dt.start<300){var Yt=b.coordsChar(k.activeTouch,"page"),rn;!dt.prev||Be(dt,dt.prev)?rn=new vi(Yt,Yt):!dt.prev.prev||Be(dt,dt.prev.prev)?rn=b.findWordAt(Yt):rn=new vi(ft(Yt.line,0),Xt(b.doc,ft(Yt.line+1,0))),b.setSelection(rn.anchor,rn.head),b.focus(),_n(Je)}ae()}),Tt(k.scroller,"touchcancel",ae),Tt(k.scroller,"scroll",function(){k.scroller.clientHeight&&(E0(b,k.scroller.scrollTop),Xi(b,k.scroller.scrollLeft,!0),at(b,"scroll",b))}),Tt(k.scroller,"mousewheel",function(Je){return k0(b,Je)}),Tt(k.scroller,"DOMMouseScroll",function(Je){return k0(b,Je)}),Tt(k.wrapper,"scroll",function(){return k.wrapper.scrollTop=k.wrapper.scrollLeft=0}),k.dragFunctions={enter:function(Je){_t(b,Je)||En(Je)},over:function(Je){_t(b,Je)||(Ml(b,Je),En(Je))},start:function(Je){return o5(b,Je)},drop:tc(b,r5),leave:function(Je){_t(b,Je)||A1(b)}};var Ve=k.input.getField();Tt(Ve,"keyup",function(Je){return Jc.call(b,Je)}),Tt(Ve,"keydown",tc(b,w2)),Tt(Ve,"keypress",tc(b,$0)),Tt(Ve,"focus",function(Je){return Zd(b,Je)}),Tt(Ve,"blur",function(Je){return bl(b,Je)})}var Ph=[];ms.defineInitHook=function(b){return Ph.push(b)};function Hs(b,k,q,W){var ae=b.doc,Ee;q==null&&(q="add"),q=="smart"&&(ae.mode.indent?Ee=po(b,k).state:q="prev");var Be=b.options.tabSize,Ve=bo(ae,k),Je=j(Ve.text,null,Be);Ve.stateAfter&&(Ve.stateAfter=null);var dt=Ve.text.match(/^\s*/)[0],Yt;if(!W&&!/\S/.test(Ve.text))Yt=0,q="not";else if(q=="smart"&&(Yt=ae.mode.indent(Ee,Ve.text.slice(dt.length),Ve.text),Yt==he||Yt>150)){if(!W)return;q="prev"}q=="prev"?k>ae.first?Yt=j(bo(ae,k-1).text,null,Be):Yt=0:q=="add"?Yt=Je+b.options.indentUnit:q=="subtract"?Yt=Je-b.options.indentUnit:typeof q=="number"&&(Yt=Je+q),Yt=Math.max(0,Yt);var rn="",Sn=0;if(b.options.indentWithTabs)for(var Cn=Math.floor(Yt/Be);Cn;--Cn)Sn+=Be,rn+=" ";if(Sn<Yt&&(rn+=Oe(Yt-Sn)),rn!=dt)return Oo(ae,rn,ft(k,0),ft(k,dt.length),"+input"),Ve.stateAfter=null,!0;for(var tr=0;tr<ae.sel.ranges.length;tr++){var Or=ae.sel.ranges[tr];if(Or.head.line==k&&Or.head.ch<dt.length){var Qr=ft(k,dt.length);od(ae,tr,new vi(Qr,Qr));break}}}var qo=null;function Uc(b){qo=b}function A2(b,k,q,W,ae){var Ee=b.doc;b.display.shift=!1,W||(W=Ee.sel);var Be=+new Date-200,Ve=ae=="paste"||b.state.pasteIncoming>Be,Je=Di(k),dt=null;if(Ve&&W.ranges.length>1)if(qo&&qo.text.join(` 480`)==k){if(W.ranges.length%qo.text.length==0){dt=[];for(var Yt=0;Yt<qo.text.length;Yt++)dt.push(Ee.splitLines(qo.text[Yt]))}}else Je.length==W.ranges.length&&b.options.pasteLinesPerSelection&&(dt=$e(Je,function(yo){return[yo]}));for(var rn=b.curOp.updateInput,Sn=W.ranges.length-1;Sn>=0;Sn--){var Cn=W.ranges[Sn],tr=Cn.from(),Or=Cn.to();Cn.empty()&&(q&&q>0?tr=ft(tr.line,tr.ch-q):b.state.overwrite&&!Ve?Or=ft(Or.line,Math.min(bo(Ee,Or.line).text.length,Or.ch+De(Je).length)):Ve&&qo&&qo.lineWise&&qo.text.join(` 481`)==Je.join(` 482`)&&(tr=Or=ft(tr.line,0)));var Qr={from:tr,to:Or,text:dt?dt[Sn%dt.length]:Je,origin:ae||(Ve?"paste":b.state.cutIncoming>Be?"cut":"+input")};nc(b.doc,Qr),yr(b,"inputRead",b,Qr)}k&&!Ve&&k2(b,k),x1(b),b.curOp.updateInput<2&&(b.curOp.updateInput=rn),b.curOp.typing=!0,b.state.pasteIncoming=b.state.cutIncoming=-1}function ef(b,k){var q=b.clipboardData&&b.clipboardData.getData("Text");if(q)return b.preventDefault(),!k.isReadOnly()&&!k.options.disableInput&&_f(k,function(){return A2(k,q,0,null,"paste")}),!0}function k2(b,k){if(!(!b.options.electricChars||!b.options.smartIndent))for(var q=b.doc.sel,W=q.ranges.length-1;W>=0;W--){var ae=q.ranges[W];if(!(ae.head.ch>100||W&&q.ranges[W-1].head.line==ae.head.line)){var Ee=b.getModeAt(ae.head),Be=!1;if(Ee.electricChars){for(var Ve=0;Ve<Ee.electricChars.length;Ve++)if(k.indexOf(Ee.electricChars.charAt(Ve))>-1){Be=Hs(b,ae.head.line,"smart");break}}else Ee.electricInput&&Ee.electricInput.test(bo(b.doc,ae.head.line).text.slice(0,ae.head.ch))&&(Be=Hs(b,ae.head.line,"smart"));Be&&yr(b,"electricInput",b,ae.head.line)}}}function k1(b){for(var k=[],q=[],W=0;W<b.doc.sel.ranges.length;W++){var ae=b.doc.sel.ranges[W].head.line,Ee={anchor:ft(ae,0),head:ft(ae+1,0)};q.push(Ee),k.push(b.getRange(Ee.anchor,Ee.head))}return{text:k,ranges:q}}function cv(b,k,q,W){b.setAttribute("autocorrect",q?"":"off"),b.setAttribute("autocapitalize",W?"":"off"),b.setAttribute("spellcheck",!!k)}function fv(){var b=V("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),k=V("div",[b],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?b.style.width="1000px":b.setAttribute("wrap","off"),T&&(b.style.border="1px solid black"),cv(b),k}function id(b){var k=b.optionHandlers,q=b.helpers={};b.prototype={constructor:b,focus:function(){window.focus(),this.display.input.focus()},setOption:function(W,ae){var Ee=this.options,Be=Ee[W];Ee[W]==ae&&W!="mode"||(Ee[W]=ae,k.hasOwnProperty(W)&&tc(this,k[W])(this,ae,Be),at(this,"optionChange",this,W))},getOption:function(W){return this.options[W]},getDoc:function(){return this.doc},addKeyMap:function(W,ae){this.state.keyMaps[ae?"push":"unshift"](Xv(W))},removeKeyMap:function(W){for(var ae=this.state.keyMaps,Ee=0;Ee<ae.length;++Ee)if(ae[Ee]==W||ae[Ee].name==W)return ae.splice(Ee,1),!0},addOverlay:ul(function(W,ae){var Ee=W.token?W:b.getMode(this.options,W);if(Ee.startState)throw new Error("Overlays may not be stateful.");rt(this.state.overlays,{mode:Ee,modeSpec:W,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(Be){return Be.priority}),this.state.modeGen++,Nu(this)}),removeOverlay:ul(function(W){for(var ae=this.state.overlays,Ee=0;Ee<ae.length;++Ee){var Be=ae[Ee].modeSpec;if(Be==W||typeof W=="string"&&Be.name==W){ae.splice(Ee,1),this.state.modeGen++,Nu(this);return}}}),indentLine:ul(function(W,ae,Ee){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),Er(this.doc,W)&&Hs(this,W,ae,Ee)}),indentSelection:ul(function(W){for(var ae=this.doc.sel.ranges,Ee=-1,Be=0;Be<ae.length;Be++){var Ve=ae[Be];if(Ve.empty())Ve.head.line>Ee&&(Hs(this,Ve.head.line,W,!0),Ee=Ve.head.line,Be==this.doc.sel.primIndex&&x1(this));else{var Je=Ve.from(),dt=Ve.to(),Yt=Math.max(Ee,Je.line);Ee=Math.min(this.lastLine(),dt.line-(dt.ch?0:1))+1;for(var rn=Yt;rn<Ee;++rn)Hs(this,rn,W);var Sn=this.doc.sel.ranges;Je.ch==0&&ae.length==Sn.length&&Sn[Be].from().ch>0&&od(this.doc,Be,new vi(Je,Sn[Be].to()),re)}}}),getTokenAt:function(W,ae){return Xu(this,W,ae)},getLineTokens:function(W,ae){return Xu(this,ft(W),ae,!0)},getTokenTypeAt:function(W){W=Xt(this.doc,W);var ae=Bn(this,bo(this.doc,W.line)),Ee=0,Be=(ae.length-1)/2,Ve=W.ch,Je;if(Ve==0)Je=ae[2];else for(;;){var dt=Ee+Be>>1;if((dt?ae[dt*2-1]:0)>=Ve)Be=dt;else if(ae[dt*2+1]<Ve)Ee=dt+1;else{Je=ae[dt*2+2];break}}var Yt=Je?Je.indexOf("overlay "):-1;return Yt<0?Je:Yt==0?null:Je.slice(0,Yt-1)},getModeAt:function(W){var ae=this.doc.mode;return ae.innerMode?b.innerMode(ae,this.getTokenAt(W).state).mode:ae},getHelper:function(W,ae){return this.getHelpers(W,ae)[0]},getHelpers:function(W,ae){var Ee=[];if(!q.hasOwnProperty(ae))return Ee;var Be=q[ae],Ve=this.getModeAt(W);if(typeof Ve[ae]=="string")Be[Ve[ae]]&&Ee.push(Be[Ve[ae]]);else if(Ve[ae])for(var Je=0;Je<Ve[ae].length;Je++){var dt=Be[Ve[ae][Je]];dt&&Ee.push(dt)}else Ve.helperType&&Be[Ve.helperType]?Ee.push(Be[Ve.helperType]):Be[Ve.name]&&Ee.push(Be[Ve.name]);for(var Yt=0;Yt<Be._global.length;Yt++){var rn=Be._global[Yt];rn.pred(Ve,this)&&ye(Ee,rn.val)==-1&&Ee.push(rn.val)}return Ee},getStateAfter:function(W,ae){var Ee=this.doc;return W=Gt(Ee,W==null?Ee.first+Ee.size-1:W),po(this,W+1,ae).state},cursorCoords:function(W,ae){var Ee,Be=this.doc.sel.primary();return W==null?Ee=Be.head:typeof W=="object"?Ee=Xt(this.doc,W):Ee=W?Be.from():Be.to(),Os(this,Ee,ae||"page")},charCoords:function(W,ae){return Mu(this,Xt(this.doc,W),ae||"page")},coordsChar:function(W,ae){return W=Ou(this,W,ae||"page"),yl(this,W.left,W.top)},lineAtHeight:function(W,ae){return W=Ou(this,{top:W,left:0},ae||"page").top,Nn(this.doc,W+this.display.viewOffset)},heightAtLine:function(W,ae,Ee){var Be=!1,Ve;if(typeof W=="number"){var Je=this.doc.first+this.doc.size-1;W<this.doc.first?W=this.doc.first:W>Je&&(W=Je,Be=!0),Ve=bo(this.doc,W)}else Ve=W;return ed(this,Ve,{top:0,left:0},ae||"page",Ee||Be).top+(Be?this.doc.height-ku(Ve):0)},defaultTextHeight:function(){return Al(this.display)},defaultCharWidth:function(){return Xc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(W,ae,Ee,Be,Ve){var Je=this.display;W=Os(this,Xt(this.doc,W));var dt=W.bottom,Yt=W.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),Je.sizer.appendChild(ae),Be=="over")dt=W.top;else if(Be=="above"||Be=="near"){var rn=Math.max(Je.wrapper.clientHeight,this.doc.height),Sn=Math.max(Je.sizer.clientWidth,Je.lineSpace.clientWidth);(Be=="above"||W.bottom+ae.offsetHeight>rn)&&W.top>ae.offsetHeight?dt=W.top-ae.offsetHeight:W.bottom+ae.offsetHeight<=rn&&(dt=W.bottom),Yt+ae.offsetWidth>Sn&&(Yt=Sn-ae.offsetWidth)}ae.style.top=dt+"px",ae.style.left=ae.style.right="",Ve=="right"?(Yt=Je.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(Ve=="left"?Yt=0:Ve=="middle"&&(Yt=(Je.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=Yt+"px"),Ee&&Np(this,{left:Yt,top:dt,right:Yt+ae.offsetWidth,bottom:dt+ae.offsetHeight})},triggerOnKeyDown:ul(w2),triggerOnKeyPress:ul($0),triggerOnKeyUp:Jc,triggerOnMouseDown:ul(hu),execCommand:function(W){if(F0.hasOwnProperty(W))return F0[W].call(null,this)},triggerElectric:ul(function(W){k2(this,W)}),findPosH:function(W,ae,Ee,Be){var Ve=1;ae<0&&(Ve=-1,ae=-ae);for(var Je=Xt(this.doc,W),dt=0;dt<ae&&(Je=dv(this.doc,Je,Ve,Ee,Be),!Je.hitSide);++dt);return Je},moveH:ul(function(W,ae){var Ee=this;this.extendSelectionsBy(function(Be){return Ee.display.shift||Ee.doc.extend||Be.empty()?dv(Ee.doc,Be.head,W,ae,Ee.options.rtlMoveVisually):W<0?Be.from():Be.to()},Ae)}),deleteH:ul(function(W,ae){var Ee=this.doc.sel,Be=this.doc;Ee.somethingSelected()?Be.replaceSelection("",null,"+delete"):Nh(this,function(Ve){var Je=dv(Be,Ve.head,W,ae,!1);return W<0?{from:Je,to:Ve.head}:{from:Ve.head,to:Je}})}),findPosV:function(W,ae,Ee,Be){var Ve=1,Je=Be;ae<0&&(Ve=-1,ae=-ae);for(var dt=Xt(this.doc,W),Yt=0;Yt<ae;++Yt){var rn=Os(this,dt,"div");if(Je==null?Je=rn.left:rn.left=Je,dt=Ul(this,rn,Ve,Ee),dt.hitSide)break}return dt},moveV:ul(function(W,ae){var Ee=this,Be=this.doc,Ve=[],Je=!this.display.shift&&!Be.extend&&Be.sel.somethingSelected();if(Be.extendSelectionsBy(function(Yt){if(Je)return W<0?Yt.from():Yt.to();var rn=Os(Ee,Yt.head,"div");Yt.goalColumn!=null&&(rn.left=Yt.goalColumn),Ve.push(rn.left);var Sn=Ul(Ee,rn,W,ae);return ae=="page"&&Yt==Be.sel.primary()&&fs(Ee,Mu(Ee,Sn,"div").top-rn.top),Sn},Ae),Ve.length)for(var dt=0;dt<Be.sel.ranges.length;dt++)Be.sel.ranges[dt].goalColumn=Ve[dt]}),findWordAt:function(W){var ae=this.doc,Ee=bo(ae,W.line).text,Be=W.ch,Ve=W.ch;if(Ee){var Je=this.getHelper(W,"wordChars");(W.sticky=="before"||Ve==Ee.length)&&Be?--Be:++Ve;for(var dt=Ee.charAt(Be),Yt=We(dt,Je)?function(rn){return We(rn,Je)}:/\s/.test(dt)?function(rn){return/\s/.test(rn)}:function(rn){return!/\s/.test(rn)&&!We(rn)};Be>0&&Yt(Ee.charAt(Be-1));)--Be;for(;Ve<Ee.length&&Yt(Ee.charAt(Ve));)++Ve}return new vi(ft(W.line,Be),ft(W.line,Ve))},toggleOverwrite:function(W){W!=null&&W==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?le(this.display.cursorDiv,"CodeMirror-overwrite"):Q(this.display.cursorDiv,"CodeMirror-overwrite"),at(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ne()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ul(function(W,ae){Du(this,W,ae)}),getScrollInfo:function(){var W=this.display.scroller;return{left:W.scrollLeft,top:W.scrollTop,height:W.scrollHeight-Tl(this)-this.display.barHeight,width:W.scrollWidth-Tl(this)-this.display.barWidth,clientHeight:ks(this),clientWidth:is(this)}},scrollIntoView:ul(function(W,ae){W==null?(W={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof W=="number"?W={from:ft(W,0),to:null}:W.from==null&&(W={from:W,to:null}),W.to||(W.to=W.from),W.margin=ae||0,W.from.line!=null?x0(this,W):ec(this,W.from,W.to,W.margin)}),setSize:ul(function(W,ae){var Ee=this,Be=function(Je){return typeof Je=="number"||/^\d+$/.test(String(Je))?Je+"px":Je};W!=null&&(this.display.wrapper.style.width=Be(W)),ae!=null&&(this.display.wrapper.style.height=Be(ae)),this.options.lineWrapping&&Qf(this);var Ve=this.display.viewFrom;this.doc.iter(Ve,this.display.viewTo,function(Je){if(Je.widgets){for(var dt=0;dt<Je.widgets.length;dt++)if(Je.widgets[dt].noHScroll){w1(Ee,Ve,"widget");break}}++Ve}),this.curOp.forceUpdate=!0,at(this,"refresh",this)}),operation:function(W){return _f(this,W)},startOperation:function(){return Yo(this)},endOperation:function(){return Aa(this)},refresh:ul(function(){var W=this.display.cachedTextHeight;Nu(this),this.curOp.forceUpdate=!0,Jf(this),Du(this,this.doc.scrollLeft,this.doc.scrollTop),Hm(this.display),(W==null||Math.abs(W-Al(this.display))>.5||this.options.lineWrapping)&&bc(this),at(this,"refresh",this)}),swapDoc:ul(function(W){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),Eb(this,W),Jf(this),this.display.input.reset(),Du(this,W.scrollLeft,W.scrollTop),this.curOp.forceScroll=!0,yr(this,"swapDoc",this,ae),ae}),phrase:function(W){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,W)?ae[W]:W},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Vt(b),b.registerHelper=function(W,ae,Ee){q.hasOwnProperty(W)||(q[W]=b[W]={_global:[]}),q[W][ae]=Ee},b.registerGlobalHelper=function(W,ae,Ee,Be){b.registerHelper(W,ae,Be),q[W]._global.push({pred:Ee,val:Be})}}function dv(b,k,q,W,ae){var Ee=k,Be=q,Ve=bo(b,k.line),Je=ae&&b.direction=="rtl"?-q:q;function dt(){var Mo=k.line+Je;return Mo<b.first||Mo>=b.first+b.size?!1:(k=new ft(Mo,k.ch,k.sticky),Ve=bo(b,Mo))}function Yt(Mo){var no;if(W=="codepoint"){var Uo=Ve.text.charCodeAt(k.ch+(q>0?0:-1));if(isNaN(Uo))no=null;else{var ca=q>0?Uo>=55296&&Uo<56320:Uo>=56320&&Uo<57343;no=new ft(k.line,Math.max(0,Math.min(Ve.text.length,k.ch+q*(ca?2:1))),-q)}}else ae?no=Dh(b.cm,Ve,k,q):no=Ns(Ve,k,q);if(no==null)if(!Mo&&dt())k=Vp(ae,b.cm,Ve,k.line,Je);else return!1;else k=no;return!0}if(W=="char"||W=="codepoint")Yt();else if(W=="column")Yt(!0);else if(W=="word"||W=="group")for(var rn=null,Sn=W=="group",Cn=b.cm&&b.cm.getHelper(k,"wordChars"),tr=!0;!(q<0&&!Yt(!tr));tr=!1){var Or=Ve.text.charAt(k.ch)||` 483`,Qr=We(Or,Cn)?"w":Sn&&Or==` 484`?"n":!Sn||/\s/.test(Or)?null:"p";if(Sn&&!tr&&!Qr&&(Qr="s"),rn&&rn!=Qr){q<0&&(q=1,Yt(),k.sticky="after");break}if(Qr&&(rn=Qr),q>0&&!Yt(!tr))break}var yo=fn(b,k,Ee,Be,!0);return Rn(Ee,yo)&&(yo.hitSide=!0),yo}function Ul(b,k,q,W){var ae=b.doc,Ee=k.left,Be;if(W=="page"){var Ve=Math.min(b.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Je=Math.max(Ve-.5*Al(b.display),3);Be=(q>0?k.bottom:k.top)+q*Je}else W=="line"&&(Be=q>0?k.bottom+3:k.top-3);for(var dt;dt=yl(b,Ee,Be),!!dt.outside;){if(q<0?Be<=0:Be>=ae.height){dt.hitSide=!0;break}Be+=q*5}return dt}var ei=function(b){this.cm=b,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ei.prototype.init=function(b){var k=this,q=this,W=q.cm,ae=q.div=b.lineDiv;ae.contentEditable=!0,cv(ae,W.options.spellcheck,W.options.autocorrect,W.options.autocapitalize);function Ee(Ve){for(var Je=Ve.target;Je;Je=Je.parentNode){if(Je==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Je.className))break}return!1}Tt(ae,"paste",function(Ve){!Ee(Ve)||_t(W,Ve)||ef(Ve,W)||f<=11&&setTimeout(tc(W,function(){return k.updateFromDOM()}),20)}),Tt(ae,"compositionstart",function(Ve){k.composing={data:Ve.data,done:!1}}),Tt(ae,"compositionupdate",function(Ve){k.composing||(k.composing={data:Ve.data,done:!1})}),Tt(ae,"compositionend",function(Ve){k.composing&&(Ve.data!=k.composing.data&&k.readFromDOMSoon(),k.composing.done=!0)}),Tt(ae,"touchstart",function(){return q.forceCompositionEnd()}),Tt(ae,"input",function(){k.composing||k.readFromDOMSoon()});function Be(Ve){if(!(!Ee(Ve)||_t(W,Ve))){if(W.somethingSelected())Uc({lineWise:!1,text:W.getSelections()}),Ve.type=="cut"&&W.replaceSelection("",null,"cut");else if(W.options.lineWiseCopyCut){var Je=k1(W);Uc({lineWise:!0,text:Je.text}),Ve.type=="cut"&&W.operation(function(){W.setSelections(Je.ranges,0,re),W.replaceSelection("",null,"cut")})}else return;if(Ve.clipboardData){Ve.clipboardData.clearData();var dt=qo.text.join(` 485`);if(Ve.clipboardData.setData("Text",dt),Ve.clipboardData.getData("Text")==dt){Ve.preventDefault();return}}var Yt=fv(),rn=Yt.firstChild;W.display.lineSpace.insertBefore(Yt,W.display.lineSpace.firstChild),rn.value=qo.text.join(` 486`);var Sn=ne();M(rn),setTimeout(function(){W.display.lineSpace.removeChild(Yt),Sn.focus(),Sn==ae&&q.showPrimarySelection()},50)}}Tt(ae,"copy",Be),Tt(ae,"cut",Be)},ei.prototype.screenReaderLabelChanged=function(b){b?this.div.setAttribute("aria-label",b):this.div.removeAttribute("aria-label")},ei.prototype.prepareSelection=function(){var b=bf(this.cm,!1);return b.focus=ne()==this.div,b},ei.prototype.showSelection=function(b,k){!b||!this.cm.display.view.length||((b.focus||k)&&this.showPrimarySelection(),this.showMultipleSelections(b))},ei.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ei.prototype.showPrimarySelection=function(){var b=this.getSelection(),k=this.cm,q=k.doc.sel.primary(),W=q.from(),ae=q.to();if(k.display.viewTo==k.display.viewFrom||W.line>=k.display.viewTo||ae.line<k.display.viewFrom){b.removeAllRanges();return}var Ee=so(k,b.anchorNode,b.anchorOffset),Be=so(k,b.focusNode,b.focusOffset);if(!(Ee&&!Ee.bad&&Be&&!Be.bad&&Bt(St(Ee,Be),W)==0&&Bt(Ze(Ee,Be),ae)==0)){var Ve=k.display.view,Je=W.line>=k.display.viewFrom&&O1(k,W)||{node:Ve[0].measure.map[2],offset:0},dt=ae.line<k.display.viewTo&&O1(k,ae);if(!dt){var Yt=Ve[Ve.length-1].measure,rn=Yt.maps?Yt.maps[Yt.maps.length-1]:Yt.map;dt={node:rn[rn.length-1],offset:rn[rn.length-2]-rn[rn.length-3]}}if(!Je||!dt){b.removeAllRanges();return}var Sn=b.rangeCount&&b.getRangeAt(0),Cn;try{Cn=fe(Je.node,Je.offset,dt.offset,dt.node)}catch{}Cn&&(!n&&k.state.focused?(b.collapse(Je.node,Je.offset),Cn.collapsed||(b.removeAllRanges(),b.addRange(Cn))):(b.removeAllRanges(),b.addRange(Cn)),Sn&&b.anchorNode==null?b.addRange(Sn):n&&this.startGracePeriod()),this.rememberSelection()}},ei.prototype.startGracePeriod=function(){var b=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){b.gracePeriod=!1,b.selectionChanged()&&b.cm.operation(function(){return b.cm.curOp.selectionChanged=!0})},20)},ei.prototype.showMultipleSelections=function(b){te(this.cm.display.cursorDiv,b.cursors),te(this.cm.display.selectionDiv,b.selection)},ei.prototype.rememberSelection=function(){var b=this.getSelection();this.lastAnchorNode=b.anchorNode,this.lastAnchorOffset=b.anchorOffset,this.lastFocusNode=b.focusNode,this.lastFocusOffset=b.focusOffset},ei.prototype.selectionInEditor=function(){var b=this.getSelection();if(!b.rangeCount)return!1;var k=b.getRangeAt(0).commonAncestorContainer;return de(this.div,k)},ei.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ne()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ei.prototype.blur=function(){this.div.blur()},ei.prototype.getField=function(){return this.div},ei.prototype.supportsTouch=function(){return!0},ei.prototype.receivedFocus=function(){var b=this,k=this;this.selectionInEditor()?setTimeout(function(){return b.pollSelection()},20):_f(this.cm,function(){return k.cm.curOp.selectionChanged=!0});function q(){k.cm.state.focused&&(k.pollSelection(),k.polling.set(k.cm.options.pollInterval,q))}this.polling.set(this.cm.options.pollInterval,q)},ei.prototype.selectionChanged=function(){var b=this.getSelection();return b.anchorNode!=this.lastAnchorNode||b.anchorOffset!=this.lastAnchorOffset||b.focusNode!=this.lastFocusNode||b.focusOffset!=this.lastFocusOffset},ei.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var b=this.getSelection(),k=this.cm;if(B&&g&&this.cm.display.gutterSpecs.length&&Fh(b.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var q=so(k,b.anchorNode,b.anchorOffset),W=so(k,b.focusNode,b.focusOffset);q&&W&&_f(k,function(){Vl(k.doc,Ad(q,W),re),(q.bad||W.bad)&&(k.curOp.selectionChanged=!0)})}}},ei.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var b=this.cm,k=b.display,q=b.doc.sel.primary(),W=q.from(),ae=q.to();if(W.ch==0&&W.line>b.firstLine()&&(W=ft(W.line-1,bo(b.doc,W.line-1).length)),ae.ch==bo(b.doc,ae.line).text.length&&ae.line<b.lastLine()&&(ae=ft(ae.line+1,0)),W.line<k.viewFrom||ae.line>k.viewTo-1)return!1;var Ee,Be,Ve;W.line==k.viewFrom||(Ee=du(b,W.line))==0?(Be=Rt(k.view[0].line),Ve=k.view[0].node):(Be=Rt(k.view[Ee].line),Ve=k.view[Ee-1].node.nextSibling);var Je=du(b,ae.line),dt,Yt;if(Je==k.view.length-1?(dt=k.viewTo-1,Yt=k.lineDiv.lastChild):(dt=Rt(k.view[Je+1].line)-1,Yt=k.view[Je+1].node.previousSibling),!Ve)return!1;for(var rn=b.doc.splitLines(V0(b,Ve,Yt,Be,dt)),Sn=pl(b.doc,ft(Be,0),ft(dt,bo(b.doc,dt).text.length));rn.length>1&&Sn.length>1;)if(De(rn)==De(Sn))rn.pop(),Sn.pop(),dt--;else if(rn[0]==Sn[0])rn.shift(),Sn.shift(),Be++;else break;for(var Cn=0,tr=0,Or=rn[0],Qr=Sn[0],yo=Math.min(Or.length,Qr.length);Cn<yo&&Or.charCodeAt(Cn)==Qr.charCodeAt(Cn);)++Cn;for(var Mo=De(rn),no=De(Sn),Uo=Math.min(Mo.length-(rn.length==1?Cn:0),no.length-(Sn.length==1?Cn:0));tr<Uo&&Mo.charCodeAt(Mo.length-tr-1)==no.charCodeAt(no.length-tr-1);)++tr;if(rn.length==1&&Sn.length==1&&Be==W.line)for(;Cn&&Cn>W.ch&&Mo.charCodeAt(Mo.length-tr-1)==no.charCodeAt(no.length-tr-1);)Cn--,tr++;rn[rn.length-1]=Mo.slice(0,Mo.length-tr).replace(/^\u200b+/,""),rn[0]=rn[0].slice(Cn).replace(/\u200b+$/,"");var ca=ft(Be,Cn),sa=ft(dt,Sn.length?De(Sn).length-tr:0);if(rn.length>1||rn[0]||Bt(ca,sa))return Oo(b.doc,rn,ca,sa,"+input"),!0},ei.prototype.ensurePolled=function(){this.forceCompositionEnd()},ei.prototype.reset=function(){this.forceCompositionEnd()},ei.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ei.prototype.readFromDOMSoon=function(){var b=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(b.readDOMTimeout=null,b.composing)if(b.composing.done)b.composing=null;else return;b.updateFromDOM()},80))},ei.prototype.updateFromDOM=function(){var b=this;(this.cm.isReadOnly()||!this.pollContent())&&_f(this.cm,function(){return Nu(b.cm)})},ei.prototype.setUneditable=function(b){b.contentEditable="false"},ei.prototype.onKeyPress=function(b){b.charCode==0||this.composing||(b.preventDefault(),this.cm.isReadOnly()||tc(this.cm,A2)(this.cm,String.fromCharCode(b.charCode==null?b.keyCode:b.charCode),0))},ei.prototype.readOnlyChanged=function(b){this.div.contentEditable=String(b!="nocursor")},ei.prototype.onContextMenu=function(){},ei.prototype.resetPosition=function(){},ei.prototype.needsContentAttribute=!0;function O1(b,k){var q=ai(b,k.line);if(!q||q.hidden)return null;var W=bo(b.doc,k.line),ae=ll(q,W,k.line),Ee=At(W,b.doc.direction),Be="left";if(Ee){var Ve=It(Ee,k.ch);Be=Ve%2?"right":"left"}var Je=gl(ae.map,k.ch,Be);return Je.offset=Je.collapse=="right"?Je.end:Je.start,Je}function Fh(b){for(var k=b;k;k=k.parentNode)if(/CodeMirror-gutter-wrapper/.test(k.className))return!0;return!1}function M1(b,k){return k&&(b.bad=!0),b}function V0(b,k,q,W,ae){var Ee="",Be=!1,Ve=b.doc.lineSeparator(),Je=!1;function dt(Cn){return function(tr){return tr.id==Cn}}function Yt(){Be&&(Ee+=Ve,Je&&(Ee+=Ve),Be=Je=!1)}function rn(Cn){Cn&&(Yt(),Ee+=Cn)}function Sn(Cn){if(Cn.nodeType==1){var tr=Cn.getAttribute("cm-text");if(tr){rn(tr);return}var Or=Cn.getAttribute("cm-marker"),Qr;if(Or){var yo=b.findMarks(ft(W,0),ft(ae+1,0),dt(+Or));yo.length&&(Qr=yo[0].find(0))&&rn(pl(b.doc,Qr.from,Qr.to).join(Ve));return}if(Cn.getAttribute("contenteditable")=="false")return;var Mo=/^(pre|div|p|li|table|br)$/i.test(Cn.nodeName);if(!/^br$/i.test(Cn.nodeName)&&Cn.textContent.length==0)return;Mo&&Yt();for(var no=0;no<Cn.childNodes.length;no++)Sn(Cn.childNodes[no]);/^(pre|p)$/i.test(Cn.nodeName)&&(Je=!0),Mo&&(Be=!0)}else Cn.nodeType==3&&rn(Cn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(k),k!=q;)k=k.nextSibling,Je=!1;return Ee}function so(b,k,q){var W;if(k==b.display.lineDiv){if(W=b.display.lineDiv.childNodes[q],!W)return M1(b.clipPos(ft(b.display.viewTo-1)),!0);k=null,q=0}else for(W=k;;W=W.parentNode){if(!W||W==b.display.lineDiv)return null;if(W.parentNode&&W.parentNode==b.display.lineDiv)break}for(var ae=0;ae<b.display.view.length;ae++){var Ee=b.display.view[ae];if(Ee.node==W)return pu(Ee,k,q)}}function pu(b,k,q){var W=b.text.firstChild,ae=!1;if(!k||!de(W,k))return M1(ft(Rt(b.line),0),!0);if(k==W&&(ae=!0,k=W.childNodes[q],q=0,!k)){var Ee=b.rest?De(b.rest):b.line;return M1(ft(Rt(Ee),Ee.text.length),ae)}var Be=k.nodeType==3?k:null,Ve=k;for(!Be&&k.childNodes.length==1&&k.firstChild.nodeType==3&&(Be=k.firstChild,q&&(q=Be.nodeValue.length));Ve.parentNode!=W;)Ve=Ve.parentNode;var Je=b.measure,dt=Je.maps;function Yt(Qr,yo,Mo){for(var no=-1;no<(dt?dt.length:0);no++)for(var Uo=no<0?Je.map:dt[no],ca=0;ca<Uo.length;ca+=3){var sa=Uo[ca+2];if(sa==Qr||sa==yo){var yi=Rt(no<0?b.line:b.rest[no]),Vs=Uo[ca]+Mo;return(Mo<0||sa!=Qr)&&(Vs=Uo[ca+(Mo?1:0)]),ft(yi,Vs)}}}var rn=Yt(Be,Ve,q);if(rn)return M1(rn,ae);for(var Sn=Ve.nextSibling,Cn=Be?Be.nodeValue.length-q:0;Sn;Sn=Sn.nextSibling){if(rn=Yt(Sn,Sn.firstChild,0),rn)return M1(ft(rn.line,rn.ch-Cn),ae);Cn+=Sn.textContent.length}for(var tr=Ve.previousSibling,Or=q;tr;tr=tr.previousSibling){if(rn=Yt(tr,tr.firstChild,-1),rn)return M1(ft(rn.line,rn.ch+Or),ae);Or+=tr.textContent.length}}var gs=function(b){this.cm=b,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};gs.prototype.init=function(b){var k=this,q=this,W=this.cm;this.createField(b);var ae=this.textarea;b.wrapper.insertBefore(this.wrapper,b.wrapper.firstChild),T&&(ae.style.width="0px"),Tt(ae,"input",function(){u&&f>=9&&k.hasSelection&&(k.hasSelection=null),q.poll()}),Tt(ae,"paste",function(Be){_t(W,Be)||ef(Be,W)||(W.state.pasteIncoming=+new Date,q.fastPoll())});function Ee(Be){if(!_t(W,Be)){if(W.somethingSelected())Uc({lineWise:!1,text:W.getSelections()});else if(W.options.lineWiseCopyCut){var Ve=k1(W);Uc({lineWise:!0,text:Ve.text}),Be.type=="cut"?W.setSelections(Ve.ranges,null,re):(q.prevInput="",ae.value=Ve.text.join(` 487`),M(ae))}else return;Be.type=="cut"&&(W.state.cutIncoming=+new Date)}}Tt(ae,"cut",Ee),Tt(ae,"copy",Ee),Tt(b.scroller,"paste",function(Be){if(!(zs(b,Be)||_t(W,Be))){if(!ae.dispatchEvent){W.state.pasteIncoming=+new Date,q.focus();return}var Ve=new Event("paste");Ve.clipboardData=Be.clipboardData,ae.dispatchEvent(Ve)}}),Tt(b.lineSpace,"selectstart",function(Be){zs(b,Be)||_n(Be)}),Tt(ae,"compositionstart",function(){var Be=W.getCursor("from");q.composing&&q.composing.range.clear(),q.composing={start:Be,range:W.markText(Be,W.getCursor("to"),{className:"CodeMirror-composing"})}}),Tt(ae,"compositionend",function(){q.composing&&(q.poll(),q.composing.range.clear(),q.composing=null)})},gs.prototype.createField=function(b){this.wrapper=fv(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(b){b?this.textarea.setAttribute("aria-label",b):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var b=this.cm,k=b.display,q=b.doc,W=bf(b);if(b.options.moveInputWithCursor){var ae=Os(b,q.sel.primary().head,"div"),Ee=k.wrapper.getBoundingClientRect(),Be=k.lineDiv.getBoundingClientRect();W.teTop=Math.max(0,Math.min(k.wrapper.clientHeight-10,ae.top+Be.top-Ee.top)),W.teLeft=Math.max(0,Math.min(k.wrapper.clientWidth-10,ae.left+Be.left-Ee.left))}return W},gs.prototype.showSelection=function(b){var k=this.cm,q=k.display;te(q.cursorDiv,b.cursors),te(q.selectionDiv,b.selection),b.teTop!=null&&(this.wrapper.style.top=b.teTop+"px",this.wrapper.style.left=b.teLeft+"px")},gs.prototype.reset=function(b){if(!(this.contextMenuPending||this.composing)){var k=this.cm;if(k.somethingSelected()){this.prevInput="";var q=k.getSelection();this.textarea.value=q,k.state.focused&&M(this.textarea),u&&f>=9&&(this.hasSelection=q)}else b||(this.prevInput=this.textarea.value="",u&&f>=9&&(this.hasSelection=null))}},gs.prototype.getField=function(){return this.textarea},gs.prototype.supportsTouch=function(){return!1},gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!F||ne()!=this.textarea))try{this.textarea.focus()}catch{}},gs.prototype.blur=function(){this.textarea.blur()},gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gs.prototype.receivedFocus=function(){this.slowPoll()},gs.prototype.slowPoll=function(){var b=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){b.poll(),b.cm.state.focused&&b.slowPoll()})},gs.prototype.fastPoll=function(){var b=!1,k=this;k.pollingFast=!0;function q(){var W=k.poll();!W&&!b?(b=!0,k.polling.set(60,q)):(k.pollingFast=!1,k.slowPoll())}k.polling.set(20,q)},gs.prototype.poll=function(){var b=this,k=this.cm,q=this.textarea,W=this.prevInput;if(this.contextMenuPending||!k.state.focused||la(q)&&!W&&!this.composing||k.isReadOnly()||k.options.disableInput||k.state.keySeq)return!1;var ae=q.value;if(ae==W&&!k.somethingSelected())return!1;if(u&&f>=9&&this.hasSelection===ae||R&&/[\uf700-\uf7ff]/.test(ae))return k.display.input.reset(),!1;if(k.doc.sel==k.display.selForContextMenu){var Ee=ae.charCodeAt(0);if(Ee==8203&&!W&&(W="\u200B"),Ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var Be=0,Ve=Math.min(W.length,ae.length);Be<Ve&&W.charCodeAt(Be)==ae.charCodeAt(Be);)++Be;return _f(k,function(){A2(k,ae.slice(Be),W.length-Be,null,b.composing?"*compose":null),ae.length>1e3||ae.indexOf(` 488`)>-1?q.value=b.prevInput="":b.prevInput=ae,b.composing&&(b.composing.range.clear(),b.composing.range=k.markText(b.composing.start,k.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){u&&f>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(b){var k=this,q=k.cm,W=q.display,ae=k.textarea;k.contextMenuPending&&k.contextMenuPending();var Ee=Yd(q,b),Be=W.scroller.scrollTop;if(!Ee||y)return;var Ve=q.options.resetSelectionOnContextMenu;Ve&&q.doc.sel.contains(Ee)==-1&&tc(q,Vl)(q.doc,Ad(Ee),re);var Je=ae.style.cssText,dt=k.wrapper.style.cssText,Yt=k.wrapper.offsetParent.getBoundingClientRect();k.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px; 489 top: `+(b.clientY-Yt.top-5)+"px; left: "+(b.clientX-Yt.left-5)+`px; 490 z-index: 1000; background: `+(u?"rgba(255, 255, 255, .05)":"transparent")+`; 491 outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rn;v&&(rn=window.scrollY),W.input.focus(),v&&window.scrollTo(null,rn),W.input.reset(),q.somethingSelected()||(ae.value=k.prevInput=" "),k.contextMenuPending=Cn,W.selForContextMenu=q.doc.sel,clearTimeout(W.detectingSelectAll);function Sn(){if(ae.selectionStart!=null){var Or=q.somethingSelected(),Qr="\u200B"+(Or?ae.value:"");ae.value="\u21DA",ae.value=Qr,k.prevInput=Or?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=Qr.length,W.selForContextMenu=q.doc.sel}}function Cn(){if(k.contextMenuPending==Cn&&(k.contextMenuPending=!1,k.wrapper.style.cssText=dt,ae.style.cssText=Je,u&&f<9&&W.scrollbars.setScrollTop(W.scroller.scrollTop=Be),ae.selectionStart!=null)){(!u||u&&f<9)&&Sn();var Or=0,Qr=function(){W.selForContextMenu==q.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&k.prevInput=="\u200B"?tc(q,$c)(q):Or++<10?W.detectingSelectAll=setTimeout(Qr,500):(W.selForContextMenu=null,W.input.reset())};W.detectingSelectAll=setTimeout(Qr,200)}}if(u&&f>=9&&Sn(),z){En(b);var tr=function(){xt(window,"mouseup",tr),setTimeout(Cn,20)};Tt(window,"mouseup",tr)}else setTimeout(Cn,50)},gs.prototype.readOnlyChanged=function(b){b||this.reset(),this.textarea.disabled=b=="nocursor",this.textarea.readOnly=!!b},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;
491function vv(b,k){if(k=k?U(k):{},k.value=b.value,!k.tabindex&&b.tabIndex&&(k.tabindex=b.tabIndex),!k.placeholder&&b.placeholder&&(k.placeholder=b.placeholder),k.autofocus==null){var q=ne();k.autofocus=q==b||b.getAttribute("autofocus")!=null&&q==document.body}function W(){b.value=Ve.getValue()}var ae;if(b.form&&(Tt(b.form,"submit",W),!k.leaveSubmitMethodAlone)){var Ee=b.form;ae=Ee.submit;try{var Be=Ee.submit=function(){W(),Ee.submit=ae,Ee.submit(),Ee.submit=Be}}catch{}}k.finishInit=function(Je){Je.save=W,Je.getTextArea=function(){return b},Je.toTextArea=function(){Je.toTextArea=isNaN,W(),b.parentNode.removeChild(Je.getWrapperElement()),b.style.display="",b.form&&(xt(b.form,"submit",W),!k.leaveSubmitMethodAlone&&typeof b.form.submit=="function"&&(b.form.submit=ae))}},b.style.display="none";var Ve=ms(function(Je){return b.parentNode.insertBefore(Je,b.nextSibling)},k);return Ve}function Km(b){b.off=xt,b.on=Tt,b.wheelEventPixels=kh,b.Doc=Hc,b.splitLines=Di,b.countColumn=j,b.findColumn=Te,b.isWordChar=Fe,b.Pass=he,b.signal=at,b.Line=ml,b.changeEnd=ds,b.scrollbarModel=wn,b.Pos=ft,b.cmpPos=Bt,b.modes=rs,b.mimeModes=Ai,b.resolveMode=_s,b.getMode=fo,b.modeExtensions=il,b.extendMode=Fs,b.copyState=us,b.startState=sl,b.innerMode=cs,b.commands=F0,b.keyMap=qs,b.keyName=j3,b.isModifierKey=B0,b.lookupKey=r1,b.normalizeKeyMap=kb,b.StringStream=wi,b.SharedTextMarker=zp,b.TextMarker=iv,b.LineWidget=D0,b.e_preventDefault=_n,b.e_stopPropagation=Mt,b.e_stop=En,b.addClass=le,b.contains=de,b.rmClass=Q,b.keyNames=lv}Bh(ms),id(ms);var G3="iter insert remove copy getEditor constructor".split(" ");for(var U0 in Hc.prototype)Hc.prototype.hasOwnProperty(U0)&&ye(G3,U0)<0&&(ms.prototype[U0]=function(b){return function(){return b.apply(this.doc,arguments)}}(Hc.prototype[U0]));return Vt(Hc),ms.inputStyles={textarea:gs,contenteditable:ei},ms.defineMode=function(b){!ms.defaults.mode&&b!="null"&&(ms.defaults.mode=b),el.apply(this,arguments)},ms.defineMIME=ga,ms.defineMode("null",function(){return{token:function(b){return b.skipToEnd()}}}),ms.defineMIME("text/plain","null"),ms.defineExtension=function(b,k){ms.prototype[b]=k},ms.defineDocExtension=function(b,k){Hc.prototype[b]=k},ms.fromTextArea=vv,Km(ms),ms.version="5.65.3",ms},nkt=function(e){e.defineOption("placeholder","",function(f,v,h){var g=h&&h!=e.Init;if(v&&!g)f.on("blur",i),f.on("change",l),f.on("swapDoc",l),e.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){r(f)}),l(f);else if(!v&&g){f.off("blur",i),f.off("change",l),f.off("swapDoc",l),e.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),t(f);var y=f.getWrapperElement();y.className=y.className.replace(" CodeMirror-empty","")}v&&!f.hasFocus()&&i(f)});function t(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function n(f){t(f);var v=f.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=f.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var h=f.getOption("placeholder");typeof h=="string"&&(h=document.createTextNode(h)),v.appendChild(h),f.display.lineSpace.insertBefore(v,f.display.lineSpace.firstChild)}function r(f){setTimeout(function(){var v=!1;if(f.lineCount()==1){var h=f.getInputField();v=h.nodeName=="TEXTAREA"?!f.getLine(0).length:!/[^\u200b]/.test(h.querySelector(".CodeMirror-line").textContent)}v?n(f):t(f)},20)}function i(f){u(f)&&n(f)}function l(f){var v=f.getWrapperElement(),h=u(f);v.className=v.className.replace(" CodeMirror-empty","")+(h?" CodeMirror-empty":""),h?n(f):t(f)}function u(f){return f.lineCount()===1&&f.getLine(0)===""}},rkt=function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(l){if(l.getOption("disableInput"))return e.Pass;for(var u=l.listSelections(),f=[],v=0;v<u.length;v++){var h=u[v].head,g=l.getStateAfter(h.line),y=e.innerMode(l.getMode(),g);if(y.mode.name!=="markdown"&&y.mode.helperType!=="markdown"){l.execCommand("newlineAndIndent");return}else g=y.state;var w=g.list!==!1,C=g.quote!==0,S=l.getLine(h.line),T=t.exec(S),B=/^\s*$/.test(S.slice(0,h.ch));if(!u[v].empty()||!w&&!C||!T||B){l.execCommand("newlineAndIndent");return}if(n.test(S)){var F=C&&/>\s*$/.test(S),R=!/>\s*$/.test(S);(F||R)&&l.replaceRange("",{line:h.line,ch:0},{line:h.line,ch:h.ch+1}),f[v]=` 492`}else{var N=T[1],A=T[5],X=!(r.test(T[2])||T[2].indexOf(">")>=0),Z=X?parseInt(T[3],10)+1+T[4]:T[2].replace("x"," ");f[v]=` 493`+N+Z+A,X&&i(l,h)}}l.replaceSelections(f)};function i(l,u){var f=u.line,v=0,h=0,g=t.exec(l.getLine(f)),y=g[1];do{v+=1;var w=f+v,C=l.getLine(w),S=t.exec(C);if(S){var T=S[1],B=parseInt(g[3],10)+v-h,F=parseInt(S[3],10),R=F;if(y===T&&!isNaN(F))B===F&&(R=F+1),B>F&&(R=B+1),l.replaceRange(C.replace(t,T+R+S[4]+S[5]),{line:w,ch:0},{line:w,ch:C.length});else{if(y.length>T.length||y.length<T.length&&v===1)return;h+=1}}}while(S)}},okt=function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,l){return(i!=l.streamSeen||Math.min(l.basePos,l.overlayPos)<i.start)&&(l.streamSeen=i,l.basePos=l.overlayPos=i.start),i.start==l.basePos&&(l.baseCur=t.token(i,l.base),l.basePos=i.pos),i.start==l.overlayPos&&(i.pos=i.start,l.overlayCur=n.token(i,l.overlay),l.overlayPos=i.pos),i.pos=Math.min(l.basePos,l.overlayPos),l.overlayCur==null?l.baseCur:l.baseCur!=null&&l.overlay.combineTokens||r&&l.overlay.combineTokens==null?l.baseCur+" "+l.overlayCur:l.overlayCur},indent:t.indent&&function(i,l,u){return t.indent(i.base,l,u)}
493,electricChars:t.electricChars,innerMode:function(i){return{state:i.base,mode:t}},blankLine:function(i){var l,u;return t.blankLine&&(l=t.blankLine(i.base)),n.blankLine&&(u=n.blankLine(i.overlay)),u==null?l:r&&l!=null?l+" "+u:u}}}},akt=function(e){var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»ââââ]))/i;e.defineMode("gfm",function(n,r){var i=0;function l(h){return h.code=!1,null}var u={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(h){return{code:h.code,codeBlock:h.codeBlock,ateSpace:h.ateSpace}},token:function(h,g){if(g.combineTokens=null,g.codeBlock)return h.match(/^```+/)?(g.codeBlock=!1,null):(h.skipToEnd(),null);if(h.sol()&&(g.code=!1),h.sol()&&h.match(/^```+/))return h.skipToEnd(),g.codeBlock=!0,null;if(h.peek()==="`"){h.next();var y=h.pos;h.eatWhile("`");var w=1+h.pos-y;return g.code?w===i&&(g.code=!1):(i=w,g.code=!0),null}else if(g.code)return h.next(),null;if(h.eatSpace())return g.ateSpace=!0,null;if((h.sol()||g.ateSpace)&&(g.ateSpace=!1,r.gitHubSpice!==!1)){if(h.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return g.combineTokens=!0,"link";if(h.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return g.combineTokens=!0,"link"}return h.match(t)&&h.string.slice(h.start-2,h.start)!="]("&&(h.start==0||/\W/.test(h.string.charAt(h.start-1)))?(g.combineTokens=!0,"link"):(h.next(),null)},blankLine:l},f={taskLists:!0,strikethrough:!0,emoji:!0};for(var v in r)f[v]=r[v];return f.name="markdown",e.overlayMode(e.getMode(n,f),u)},"markdown"),e.defineMIME("text/x-gfm","gfm")},ikt=function(e){e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i=r.name=="null";function l(P){if(e.findModeByName){var U=e.findModeByName(P);U&&(P=U.mime||U.mimes[0])}var j=e.getMode(t,P);return j.name=="null"?null:j}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var u={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in u)u.hasOwnProperty(f)&&n.tokenTypeOverrides[f]&&(u[f]=n.tokenTypeOverrides[f]);var v=/^([*\-_])(?:\s*\1){2,}\s*$/,h=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,g=/^\[(x| )\](?=\s)/i,y=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,C=/^[^#!\[\]*_\\<>` "'(~:]+/,S=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,B=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,F=" ";function R(P,U,j){return U.f=U.inline=j,j(P,U)}function N(P,U,j){return U.f=U.block=j,j(P,U)}function A(P){return!P||!/\S/.test(P.string)}function X(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==z){var U=i;if(!U){var j=e.innerMode(r,P.htmlState);U=j.mode.name=="xml"&&j.state.tagStart===null&&!j.state.context&&j.state.tokenize.
493isInText}U&&(P.f=te,P.block=Z,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function Z(P,U){var j=P.column()===U.indentation,ee=A(U.prevLine.stream),ye=U.indentedCode,ie=U.prevLine.hr,he=U.list!==!1,re=(U.listStack[U.listStack.length-1]||0)+3;U.indentedCode=!1;var be=U.indentation;if(U.indentationDiff===null&&(U.indentationDiff=U.indentation,he)){for(U.list=null;be<U.listStack[U.listStack.length-1];)U.listStack.pop(),U.listStack.length?U.indentation=U.listStack[U.listStack.length-1]:U.list=!1;U.list!==!1&&(U.indentationDiff=be-U.listStack[U.listStack.length-1])}var Ae=!ee&&!ie&&!U.prevLine.header&&(!he||!ye)&&!U.prevLine.fencedCodeEnd,Te=(U.list===!1||ie||ee)&&U.indentation<=re&&P.match(v),Ue=null;if(U.indentationDiff>=4&&(ye||U.prevLine.fencedCodeEnd||U.prevLine.header||ee))return P.skipToEnd(),U.indentedCode=!0,u.code;if(P.eatSpace())return null;if(j&&U.indentation<=re&&(Ue=P.match(y))&&Ue[1].length<=6)return U.quote=0,U.header=Ue[1].length,U.thisLine.header=!0,n.highlightFormatting&&(U.formatting="header"),U.f=U.inline,Q(U);if(U.indentation<=re&&P.eat(">"))return U.quote=j?1:U.quote+1,n.highlightFormatting&&(U.formatting="quote"),P.eatSpace(),Q(U);if(!Te&&!U.setext&&j&&U.indentation<=re&&(Ue=P.match(h))){var Oe=Ue[1]?"ol":"ul";return U.indentation=be+P.current().length,U.list=!0,U.quote=0,U.listStack.push(U.indentation),U.em=!1,U.strong=!1,U.code=!1,U.strikethrough=!1,n.taskLists&&P.match(g,!1)&&(U.taskList=!0),U.f=U.inline,n.highlightFormatting&&(U.formatting=["list","list-"+Oe]),Q(U)}else{if(j&&U.indentation<=re&&(Ue=P.match(S,!0)))return U.quote=0,U.fencedEndRE=new RegExp(Ue[1]+"+ *$"),U.localMode=n.fencedCodeBlockHighlighting&&l(Ue[2]||n.fencedCodeBlockDefaultMode),U.localMode&&(U.localState=e.startState(U.localMode)),U.f=U.block=Y,n.highlightFormatting&&(U.formatting="code-block"),U.code=-1,Q(U);if(U.setext||(!Ae||!he)&&!U.quote&&U.list===!1&&!U.code&&!Te&&!T.test(P.string)&&(Ue=P.lookAhead(1))&&(Ue=Ue.match(w)))return U.setext?(U.header=U.setext,U.setext=0,P.skipToEnd(),n.highlightFormatting&&(U.formatting="header")):(U.header=Ue[0].charAt(0)=="="?1:2,U.setext=U.header),U.thisLine.header=!0,U.f=U.inline,Q(U);if(Te)return P.skipToEnd(),U.hr=!0,U.thisLine.hr=!0,u.hr;if(P.peek()==="[")return R(P,U,ne)}return R(P,U,U.inline)}function z(P,U){var j=r.token(P,U.htmlState);if(!i){var ee=e.innerMode(r,U.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||U.md_inside&&P.current().indexOf(">")>-1)&&(U.f=te,U.block=Z,U.htmlState=null)}return j}function Y(P,U){var j=U.listStack[U.listStack.length-1]||0,ee=U.indentation<j,ye=j+3;if(U.fencedEndRE&&U.indentation<=ye&&(ee||P.match(U.fencedEndRE))){n.highlightFormatting&&(U.formatting="code-block");var ie;return ee||(ie=Q(U)),U.localMode=U.localState=null,U.block=Z,U.f=te,U.fencedEndRE=null,U.code=0,U.thisLine.fencedCodeEnd=!0,ee?N(P,U,U.block):ie}else return U.localMode?U.localMode.token(P,U.localState):(P.skipToEnd(),u.code)}function Q(P){var U=[];if(P.formatting){U.push(u.formatting),typeof P.formatting=="string"&&(P.formatting=[P.formatting]);for(var j=0;j<P.formatting.length;j++)U.push(u.formatting+"-"+P.formatting[j]),P.formatting[j]==="header"&&U.push(u.formatting+"-"+P.formatting[j]+"-"+P.header),P.formatting[j]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=P.quote?U.push(u.formatting+"-"+P.formatting[j]+"-"+P.quote):U.push("error"))}if(P.taskOpen)return U.push("meta"),U.length?U.join(" "):null;if(P.taskClosed)return U.push("property"),U.length?U.join(" "):null;if(P.linkHref?U.push(u.linkHref,"url"):(P.strong&&U.push(u.strong),P.em&&U.push(u.em),P.strikethrough&&U.push(u.strikethrough),P.emoji&&U.push(u.emoji),P.linkText&&U.push(u.linkText),P.code&&U.push(u.code),P.image&&U.push(u.image),P.imageAltText&&U.push(u.imageAltText,"link"),P.imageMarker&&U.push(u.imageMarker)),P.header&&U.push(u.header,u.header+"-"+P.header),P.quote&&(U.push(u.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=P.quote?U.push(u.quote+"-"+P.quote):U.push(u.quote+"-"+n.maxBlockquoteDepth)),P.list!==!1){var ee=(P.listStack.length-1)%3;ee?ee===1?U.push(u.list2):U.push(u.list3):U.push(u.list1)}return P.trailingSpaceNewLine?U.push("trailing-space-new-line"):P.trailingSpace&&U.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),U.length?U.join(" "):null}
493function $(P,U){if(P.match(C,!0))return Q(U)}function te(P,U){var j=U.text(P,U);if(typeof j!="undefined")return j;if(U.list)return U.list=null,Q(U);if(U.taskList){var ee=P.match(g,!0)[1]===" ";return ee?U.taskOpen=!0:U.taskClosed=!0,n.highlightFormatting&&(U.formatting="task"),U.taskList=!1,Q(U)}if(U.taskOpen=!1,U.taskClosed=!1,U.header&&P.match(/^#+$/,!0))return n.highlightFormatting&&(U.formatting="header"),Q(U);var ye=P.next();if(U.linkTitle){U.linkTitle=!1;var ie=ye;ye==="("&&(ie=")"),ie=(ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var he="^\\s*(?:[^"+ie+"\\\\]+|\\\\\\\\|\\\\.)"+ie;if(P.match(new RegExp(he),!0))return u.linkHref}if(ye==="`"){var re=U.formatting;n.highlightFormatting&&(U.formatting="code"),P.eatWhile("`");var be=P.current().length;if(U.code==0&&(!U.quote||be==1))return U.code=be,Q(U);if(be==U.code){var Ae=Q(U);return U.code=0,Ae}else return U.formatting=re,Q(U)}else if(U.code)return Q(U);if(ye==="\\"&&(P.next(),n.highlightFormatting)){var Te=Q(U),Ue=u.formatting+"-escape";return Te?Te+" "+Ue:Ue}if(ye==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return U.imageMarker=!0,U.image=!0,n.highlightFormatting&&(U.formatting="image"),Q(U);if(ye==="["&&U.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return U.imageMarker=!1,U.imageAltText=!0,n.highlightFormatting&&(U.formatting="image"),Q(U);if(ye==="]"&&U.imageAltText){n.highlightFormatting&&(U.formatting="image");var Te=Q(U);return U.imageAltText=!1,U.image=!1,U.inline=U.f=K,Te}if(ye==="["&&!U.image)return U.linkText&&P.match(/^.*?\]/)||(U.linkText=!0,n.highlightFormatting&&(U.formatting="link")),Q(U);if(ye==="]"&&U.linkText){n.highlightFormatting&&(U.formatting="link");var Te=Q(U);return U.linkText=!1,U.inline=U.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?K:te,Te}if(ye==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=V,n.highlightFormatting&&(U.formatting="link");var Te=Q(U);return Te?Te+=" ":Te="",Te+u.linkInline}if(ye==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=V,n.highlightFormatting&&(U.formatting="link");var Te=Q(U);return Te?Te+=" ":Te="",Te+u.linkEmail}if(n.xml&&ye==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Oe=P.string.indexOf(">",P.pos);if(Oe!=-1){var De=P.string.substring(P.start,Oe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(De)&&(U.md_inside=!0)}return P.backUp(1),U.htmlState=e.startState(r),N(P,U,z)}if(n.xml&&ye==="<"&&P.match(/^\/\w*?>/))return U.md_inside=!1,"tag";if(ye==="*"||ye==="_"){for(var $e=1,rt=P.pos==1?" ":P.string.charAt(P.pos-2);$e<3&&P.eat(ye);)$e++;var ct=P.peek()||" ",lt=!/\s/.test(ct)&&(!B.test(ct)||/\s/.test(rt)||B.test(rt)),ot=!/\s/.test(rt)&&(!B.test(rt)||/\s/.test(ct)||B.test(ct)),Fe=null,We=null;if($e%2&&(!U.em&<&&(ye==="*"||!ot||B.test(rt))?Fe=!0:U.em==ye&&ot&&(ye==="*"||!lt||B.test(ct))&&(Fe=!1)),$e>1&&(!U.strong&<&&(ye==="*"||!ot||B.test(rt))?We=!0:U.strong==ye&&ot&&(ye==="*"||!lt||B.test(ct))&&(We=!1)),We!=null||Fe!=null){n.highlightFormatting&&(U.formatting=Fe==null?"strong":We==null?"em":"strong em"),Fe===!0&&(U.em=ye),We===!0&&(U.strong=ye);var Ae=Q(U);return Fe===!1&&(U.em=!1),We===!1&&(U.strong=!1),Ae}}else if(ye===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return Q(U);P.backUp(1)}if(n.strikethrough){if(ye==="~"&&P.eatWhile(ye)){if(U.strikethrough){n.highlightFormatting&&(U.formatting="strikethrough");var Ae=Q(U);return U.strikethrough=!1,Ae}else if(P.match(/^[^\s]/,!1))return U.strikethrough=!0,n.highlightFormatting&&(U.formatting="strikethrough"),Q(U)}else if(ye===" "&&P.match("~~",!0)){if(P.peek()===" ")return Q(U);P.backUp(2)}}if(n.emoji&&ye===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){U.emoji=!0,n.highlightFormatting&&(U.formatting="emoji");var Ye=Q(U);return U.emoji=!1,Ye}return ye===" "&&(P.match(/^ +$/,!1)?U.trailingSpace++:U.trailingSpace&&(U.trailingSpaceNewLine=!0)),Q(U)}function V(P,U){var j=P.next();if(j===">"){U.f=U.inline=te,n.highlightFormatting&&(U.formatting="link");var ee=Q(U);return ee?ee+=" ":ee="",ee+u.linkInline}return P.match(/^[^>]+/,!0),u.linkInline}function K(P,U){if(P.eatSpace())return null;var j=P.next();return j==="("||j==="["?(U.f=U.inline=de(j==="("?")":"]"),n.highlightFormatting&&(U.formatting="link-string"),U.linkHref=!0,Q(U)):"error"}var fe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(P){return function(U,j){var ee=U.next();if(ee===P){j.f=j.inline=te,n.highlightFormatting&&(j.formatting="link-string");var ye=Q(j);return j.linkHref=!1,ye}return U.match(fe[P]),j.linkHref=!0,Q(j)}}function ne(P,U){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(U.f=le,P.next(),n.highlightFormatting&&(U.formatting="link"),U.linkText=!0,Q(U)):R(P,U,te)}function le(P,U){if(P.match("]:",!0)){U.f=U.inline=_e,n.highlightFormatting&&(U.formatting="link");var j=Q(U);return U.linkText=!1,j}return P.match(/^([^\]\\]|\\.)+/,!0),u.linkText}function _e(P,U){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?U.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),U.f=U.inline=te,u.linkHref+" url")}
493var M={startState:function(){return{f:Z,prevLine:{stream:null},thisLine:{stream:null},block:Z,htmlState:null,indentation:0,inline:te,text:$,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&e.copyState(r,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?e.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,U){if(U.formatting=!1,P!=U.thisLine.stream){if(U.header=0,U.hr=!1,P.match(/^\s*$/,!0))return X(U),null;if(U.prevLine=U.thisLine,U.thisLine={stream:P},U.taskList=!1,U.trailingSpace=0,U.trailingSpaceNewLine=!1,!U.localState&&(U.f=U.block,U.f!=z)){var j=P.match(/^\s*/,!0)[0].replace(/\t/g,F).length;if(U.indentation=j,U.indentationDiff=null,j>0)return null}}return U.f(P,U)},innerMode:function(P){return P.block==z?{state:P.htmlState,mode:r}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:M}},indent:function(P,U,j){return P.block==z&&r.indent?r.indent(P.htmlState,U,j):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,U,j):e.Pass},blankLine:X,getType:Q,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},skt=function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var l=r.indentUnit,u={},f=i.htmlMode?t:n;for(var v in f)u[v]=f[v];for(var v in i)u[v]=i[v];var h,g;function y(K,fe){function de(_e){return fe.tokenize=_e,_e(K,fe)}var ne=K.next();if(ne=="<")return K.eat("!")?K.eat("[")?K.match("CDATA[")?de(S("atom","]]>")):null:K.match("--")?de(S("comment","-->")):K.match("DOCTYPE",!0,!0)?(K.eatWhile(/[\w\._\-]/),de(T(1))):null:K.eat("?")?(K.eatWhile(/[\w\._\-]/),fe.tokenize=S("meta","?>"),"meta"):(h=K.eat("/")?"closeTag":"openTag",fe.tokenize=w,"tag bracket");if(ne=="&"){var le;return K.eat("#")?K.eat("x")?le=K.eatWhile(/[a-fA-F\d]/)&&K.eat(";"):le=K.eatWhile(/[\d]/)&&K.eat(";"):le=K.eatWhile(/[\w\.\-:]/)&&K.eat(";"),le?"atom":"error"}else return K.eatWhile(/[^&<]/),null}y.isInText=!0;function w(K,fe){var de=K.next();if(de==">"||de=="/"&&K.eat(">"))return fe.tokenize=y,h=de==">"?"endTag":"selfcloseTag","tag bracket";if(de=="=")return h="equals",null;if(de=="<"){fe.tokenize=y,fe.state=A,fe.tagName=fe.tagStart=null;var ne=fe.tokenize(K,fe);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(de)?(fe.tokenize=C(de),fe.stringStartCol=K.column(),fe.tokenize(K,fe)):(K.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(K){var fe=function(de,ne){for(;!de.eol();)if(de.next()==K){ne.tokenize=w;break}return"string"};return fe.isInAttribute=!0,fe}function S(K,fe){return function(de,ne){for(;!de.eol();){if(de.match(fe)){ne.tokenize=y;break}de.next()}return K}}function T(K){return function(fe,de){for(var ne;(ne=fe.next())!=null;){if(ne=="<")return de.tokenize=T(K+1),de.tokenize(fe,de);if(ne==">")if(K==1){de.tokenize=y;break}else return de.tokenize=T(K-1),de.tokenize(fe,de)}return"meta"}}function B(K){return K&&K.toLowerCase()}function F(K,fe,de){this.prev=K.context,this.tagName=fe||"",this.indent=K.indented,this.startOfLine=de,(u.doNotIndent.hasOwnProperty(fe)||K.context&&K.context.noIndent)&&(this.noIndent=!0)}function R(K){K.context&&(K.context=K.context.prev)}function N(K,fe){for(var de;;){if(!K.context||(de=K.context.tagName,!u.contextGrabbers.hasOwnProperty(B(de))||!u.contextGrabbers[B(de)].hasOwnProperty(B(fe))))return;R(K)}}function A(K,fe,de){return K=="openTag"?(de.tagStart=fe.column(),X):K=="closeTag"?Z:A}function X(K,fe,de){return K=="word"?(de.tagName=fe.current(),g="tag",Q):u.allowMissingTagName&&K=="endTag"?(g="tag bracket",Q(K,fe,de)):(g="error",X)}function Z(K,fe,de){if(K=="word"){var ne=fe.current();return de.context&&de.context.tagName!=ne&&u.implicitlyClosed.hasOwnProperty(B(de.context.tagName))&&R(de),de.context&&de.context.tagName==ne||u.matchClosing===!1?(g="tag",z):(g="tag error",Y)}else return u.allowMissingTagName&&K=="endTag"?(g="tag bracket",z(K,fe,de)):(g="error",Y)}function z(K,fe,de){return K!="endTag"?(g="error",z):(R(de),A)}function Y(K,fe,de){return g="error",z(K,fe,de)}function Q(K,fe,de){if(K=="word")return g="attribute",$;if(K=="endTag"||K=="selfcloseTag"){var ne=de.tagName,le=de.tagStart;return de.tagName=de.tagStart=null,K=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(B(ne))?N(de,ne):(N(de,ne),de.context=new F(de,ne,le==de.indented)),A}return g="error",Q}function $(K,fe,de){return K=="equals"?te:(u.allowMissing||(g="error"),Q(K,fe,de))}function te(K,fe,de){return K=="string"?V:K=="word"&&u.allowUnquoted?(g="string",Q):(g="error",Q(K,fe,de))}function V(K,fe,de){return K=="string"?V:Q(K,fe,de)}return{startState:function(K){var fe={tokenize:y,state:A,indented:K||0,tagName:null,tagStart:null,context:null};return K!=null&&(fe.baseIndent=K),fe},token:function(K,fe){if(!fe.tagName&&K.sol()&&(fe.indented=K.indentation()),K.eatSpace())return null;h=null;var de=fe.tokenize(K,fe);return(de||h)&&de!="comment"&&(g=null,fe.state=fe.state(h||de,K,fe),g&&(de=g=="error"?de+" error":g)),de},indent:function(K,fe,de){var ne=K.context;
493if(K.tokenize.isInAttribute)return K.tagStart==K.indented?K.stringStartCol+1:K.indented+l;if(ne&&ne.noIndent)return e.Pass;if(K.tokenize!=w&&K.tokenize!=y)return de?de.match(/^(\s*)/)[0].length:0;if(K.tagName)return u.multilineTagIndentPastTag!==!1?K.tagStart+K.tagName.length+2:K.tagStart+l*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(fe))return 0;var le=fe&&/^<(\/)?([\w_:\.-]*)/.exec(fe);if(le&&le[1])for(;ne;)if(ne.tagName==le[2]){ne=ne.prev;break}else if(u.implicitlyClosed.hasOwnProperty(B(ne.tagName)))ne=ne.prev;else break;else if(le)for(;ne;){var _e=u.contextGrabbers[B(ne.tagName)];if(_e&&_e.hasOwnProperty(B(le[2])))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+l:K.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(K){K.state==te&&(K.state=Q)},xmlCurrentTag:function(K){return K.tagName?{name:K.tagName,close:K.type=="closeTag"}:null},xmlCurrentContext:function(K){for(var fe=[],de=K.context;de;de=de.prev)fe.push(de.tagName);return fe.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},lkt=function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,l){var u=e.getMode(i,"yaml"),f=e.getMode(i,l&&l.base||"gfm");function v(h){return h.state==n?{mode:u,state:h.yaml}:{mode:f,state:h.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(f)}},copyState:function(h){return{state:h.state,yaml:h.yaml&&e.copyState(u,h.yaml),inner:e.copyState(f,h.inner)}},token:function(h,g){if(g.state==t)return h.match("---",!1)?(g.state=n,g.yaml=e.startState(u),u.token(h,g.yaml)):(g.state=r,f.token(h,g.inner));if(g.state==n){var y=h.sol()&&h.match(/(---|\.\.\.)/,!1),w=u.token(h,g.yaml);return y&&(g.state=r,g.yaml=null),w}else return f.token(h,g.inner)},innerMode:v,indent:function(h,g,y){var w=v(h);return w.mode.indent?w.mode.indent(w.state,g,y):e.Pass},blankLine:function(h){var g=v(h);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}})},ukt=function(e){e.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(r,i){var l=r.peek(),u=i.escaped;if(i.escaped=!1,l=="#"&&(r.pos==0||/\s/.test(r.string.charAt(r.pos-1))))return r.skipToEnd(),"comment";if(r.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&r.indentation()>i.keyCol)return r.skipToEnd(),"string";if(i.literal&&(i.literal=!1),r.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,r.match("---")||r.match("..."))return"def";if(r.match(/\s*-\s+/))return"meta"}if(r.match(/^(\{|\}|\[|\])/))return l=="{"?i.inlinePairs++:l=="}"?i.inlinePairs--:l=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!u&&l==",")return r.next(),"meta";if(i.inlinePairs>0&&!u&&l==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,r.next(),"meta";if(i.pairStart){if(r.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(r.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&r.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&r.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(r.match(n))return"keyword"}return!i.pair&&r.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=r.indentation(),"atom"):i.pair&&r.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=l=="\\",r.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")},ckt=function(e){e===void 0&&(e={});var t=e.accept;t===void 0&&(t="");var n=e.capture;n===void 0&&(n=!1);var r=e.multiple;r===void 0&&(r=!1);var i=document.createElement("input");return i.type="file",i.accept=t,i.capture=n,i.multiple=r,i},Yge=function(e){return new Promise(function(t){var n=ckt(e);n.addEventListener("change",function(){return t(n.files||null)}),setTimeout(function(){var r=new MouseEvent("click");n.dispatchEvent(r)},0)})},fkt=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,dkt=function(e){var t=e.match(fkt),n=0;if(!t)return 0;for(var r=0;r<t.length;r++)t[r].charCodeAt(0)>=19968?n+=t[r].length:n+=1;return n};const Kne=function(e){if(e==null)return mkt;if(typeof e=="string")return pkt(e);if(typeof e=="object")return Array.isArray(e)?vkt(e):hkt(e);if(typeof e=="function")return KV(e);throw new Error("Expected function, string, or object as test")};function vkt(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Kne(e[n]);return KV(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].call(this,...i))return!0;return!1}}function hkt(e){return KV(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function pkt(e){return KV(t);function t(n){return n&&n.type===e}}function KV(e){return t;function t(n,...r){return Boolean(n&&typeof n=="object"&&"type"in n&&Boolean(e.call(this,n,...r)))}}function mkt(){return!0}const gkt=!0,Rue=!1,ykt="skip",qge=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=Kne(t),l=r?-1:1;u(e,void 0,[])();function u(f,v,h){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return y;function y(){let w=[],C,S,T;if((!t||i(f,v,h[h.length-1]||null))&&(w=bkt(n(f,h)),w[0]===Rue))return w;if(f.children&&w[0]!==ykt)for(S=(r?f.children.length:-1)+l,T=h.concat(f);S>-1&&S<f.children.length;){if(C=u(f.children[S],S,T)(),C[0]===Rue)return C;S=typeof C[1]=="number"?C[1]:S+l}return w}}};function bkt(e){return Array.isArray(e)?e:typeof e=="number"?[gkt,e]:[e]}const YV=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),qge(e,t,i,r);function i(l,u){const f=u[u.length-1];return n(l,f?f.children.indexOf(l):null,f)}};var _kt="tippy-box",Xge="tippy-content",wkt="tippy-backdrop",Zge="tippy-arrow",Qge="tippy-svg-arrow",N8={passive:!0,capture:!0},Jge=function(){return document.body};function HZ(e,t,n){if(Array.isArray(e)){var r=e[t];return r==null?Array.isArray(n)?n[t]:n:r}return e}function Yne(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function e2e(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Lue(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ckt(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}
vendor: 4,947 bytes, line 493
493function xkt(e){return e.split(/\s+/).filter(Boolean)}function oC(e){return[].concat(e)}function Bue(e,t){e.indexOf(t)===-1&&e.push(t)}function Ekt(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Skt(e){return e.split("-")[0]}function HH(e){return[].slice.call(e)}function Pue(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function eI(){return document.createElement("div")}function qV(e){return["Element","Fragment"].some(function(t){return Yne(e,t)})}function Tkt(e){return Yne(e,"NodeList")}function Akt(e){return Yne(e,"MouseEvent")}function kkt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Okt(e){return qV(e)?[e]:Tkt(e)?HH(e):Array.isArray(e)?e:HH(document.querySelectorAll(e))}function VZ(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Fue(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Mkt(e){var t,n=oC(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Nkt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var l=i.popperRect,u=i.popperState,f=i.props,v=f.interactiveBorder,h=Skt(u.placement),g=u.modifiersData.offset;if(!g)return!0;var y=h==="bottom"?g.top.y:0,w=h==="top"?g.bottom.y:0,C=h==="right"?g.left.x:0,S=h==="left"?g.right.x:0,T=l.top-r+y>v,B=r-l.bottom-w>v,F=l.left-n+C>v,R=n-l.right-S>v;return T||B||F||R})}function UZ(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function $ue(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var eb={isTouch:!1},zue=0;function Dkt(){eb.isTouch||(eb.isTouch=!0,window.performance&&document.addEventListener("mousemove",t2e))}function t2e(){var e=performance.now();e-zue<20&&(eb.isTouch=!1,document.removeEventListener("mousemove",t2e)),zue=e}function Ikt(){var e=document.activeElement;if(kkt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Rkt(){document.addEventListener("touchstart",Dkt,N8),window.addEventListener("blur",Ikt)}var Lkt=typeof window!="undefined"&&typeof document!="undefined",Bkt=Lkt?!!window.msCrypto:!1,Pkt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Fkt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ep=Object.assign({appendTo:Jge,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Pkt,Fkt),$kt=Object.keys(Ep),zkt=function(t){var n=Object.keys(t);n.forEach(function(r){Ep[r]=t[r]})};function n2e(e){var t=e.plugins||[],n=t.reduce(function(r,i){var l=i.name,u=i.defaultValue;if(l){var f;r[l]=e[l]!==void 0?e[l]:(f=Ep[l])!=null?f:u}return r},{});return Object.assign({},e,n)}function Hkt(e,t){var n=t?Object.keys(n2e(Object.assign({},Ep,{plugins:t}))):$kt,r=n.reduce(function(i,l){var u=(e.getAttribute("data-tippy-"+l)||"").trim();if(!u)return i;if(l==="content")i[l]=u;else try{i[l]=JSON.parse(u)}catch{i[l]=u}return i},{});return r}function Hue(e,t){var n=Object.assign({},t,{content:e2e(t.content,[e])},t.ignoreAttributes?{}:Hkt(e,t.plugins));return n.aria=Object.assign({},Ep.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Vkt=function(){return"innerHTML"};function dee(e,t){e[Vkt()]=t}function Vue(e){var t=eI();return e===!0?t.className=Zge:(t.className=Qge,qV(e)?t.appendChild(e):dee(t,e)),t}function Uue(e,t){qV(t.content)?(dee(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?dee(e,t.content):e.textContent=t.content)}function vee(e){var t=e.firstElementChild,n=HH(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Xge)}),arrow:n.find(function(r){return r.classList.contains(Zge)||r.classList.contains(Qge)}),backdrop:n.find(function(r){return r.classList.contains(wkt)})}}function r2e(e){var t=eI(),n=eI();n.className=_kt,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=eI();r.className=Xge,r.setAttribute("data-state","hidden"),Uue(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(l,u){var f=vee(t),v=f.box,h=f.content,g=f.arrow;u.theme?v.setAttribute("data-theme",u.theme):v.removeAttribute("data-theme"),typeof u.animation=="str
493ing"?v.setAttribute("data-animation",u.animation):v.removeAttribute("data-animation"),u.inertia?v.setAttribute("data-inertia",""):v.removeAttribute("data-inertia"),v.style.maxWidth=typeof u.maxWidth=="number"?u.maxWidth+"px":u.maxWidth,u.role?v.setAttribute("role",u.role):v.removeAttribute("role"),(l.content!==u.content||l.allowHTML!==u.allowHTML)&&Uue(h,e.props),u.arrow?g?l.arrow!==u.arrow&&(v.removeChild(g),v.appendChild(Vue(u.arrow))):v.appendChild(Vue(u.arrow)):g&&v.removeChild(g)}return{popper:t,onUpdate:i}}r2e.$$tippy=!0;var Ukt=1,tz=[],jZ=[];function jkt(e,t){var n=Hue(e,Object.assign({},Ep,n2e(Pue(t)))),r,i,l,u=!1,f=!1,v=!1,h=!1,g,y,w,C=[],S=Lue($e,n.interactiveDebounce),T,B=Ukt++,F=null,R=Ekt(n.plugins),N={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:B,reference:e,popper:eI(),popperInstance:F,props:n,state:N,plugins:R,clearDelayTimeouts:tn,setProps:Ft,setContent:It,show:Et,hide:At,hideWithInteractivity:vt,enable:Ct,disable:bt,unmount:Tt,destroy:Wt};if(!n.render)return A;var X=n.render(A),Z=X.popper,z=X.onUpdate;Z.setAttribute("data-tippy-root",""),Z.id="tippy-"+A.id,A.popper=Z,e._tippy=A,Z._tippy=A;var Y=R.map(function(xt){return xt.fn(A)}),Q=e.hasAttribute("aria-expanded");return Ue(),P(),le(),_e("onCreate",[A]),n.showOnCreate&&Ke(),Z.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),Z.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&fe().addEventListener("mousemove",S)}),A;function $(){var xt=A.props.touch;return Array.isArray(xt)?xt:[xt,0]}function te(){return $()[0]==="hold"}function V(){var xt;return!!((xt=A.props.render)!=null&&xt.$$tippy)}function K(){return T||e}function fe(){var xt=K().parentNode;return xt?Mkt(xt):document}function de(){return vee(Z)}function ne(xt){return A.state.isMounted&&!A.state.isVisible||eb.isTouch||g&&g.type==="focus"?0:HZ(A.props.delay,xt?0:1,Ep.delay)}function le(xt){xt===void 0&&(xt=!1),Z.style.pointerEvents=A.props.interactive&&!xt?"":"none",Z.style.zIndex=""+A.props.zIndex}function _e(xt,at,_t){if(_t===void 0&&(_t=!0),Y.forEach(function(An){An[xt]&&An[xt].apply(An,at)}),_t){var en;(en=A.props)[xt].apply(en,at)}}function M(){var xt=A.props.aria;if(!!xt.content){var at="aria-"+xt.content,_t=Z.id,en=oC(A.props.triggerTarget||e);en.forEach(function(An){var Vt=An.getAttribute(at);if(A.state.isVisible)An.setAttribute(at,Vt?Vt+" "+_t:_t);else{var _n=Vt&&Vt.replace(_t,"").trim();_n?An.setAttribute(at,_n):An.removeAttribute(at)}})}}function P(){if(!(Q||!A.props.aria.expanded)){var xt=oC(A.props.triggerTarget||e);xt.forEach(function(at){A.props.interactive?at.setAttribute("aria-expanded",A.state.isVisible&&at===K()?"true":"false"):at.removeAttribute("aria-expanded")})}}function U(){fe().removeEventListener("mousemove",S),tz=tz.filter(function(xt){return xt!==S})}function j(xt){if(!(eb.isTouch&&(v||xt.type==="mousedown"))){var at=xt.composedPath&&xt.composedPath()[0]||xt.target;if(!(A.props.interactive&&$ue(Z,at))){if(oC(A.props.triggerTarget||e).some(function(_t){return $ue(_t,at)})){if(eb.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else _e("onClickOutside",[A,xt]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),f=!0,setTimeout(function(){f=!1}),A.state.isMounted||he())}}}function ee(){v=!0}function ye(){v=!1}function ie(){var xt=fe();xt.addEventListener("mousedown",j,!0),xt.addEventListener("touchend",j,N8),xt.addEventListener("touchstart",ye,N8),xt.addEventListener("touchmove",ee,N8)}function he(){var xt=fe();xt.removeEventListener("mousedown",j,!0),xt.removeEventListener("touchend",j,N8),xt.removeEventListener("touchstart",ye,N8),xt.removeEventListener("touchmove",ee,N8)}function re(xt,at){Ae(xt,function(){!A.state.isVisible&&Z.parentNode&&Z.parentNode.contains(Z)&&at()})}function be(xt,at){Ae(xt,at)}function Ae(xt,at){var _t=de().box;function en(An){An.target===_t&&(UZ(_t,"remove",en),at())}if(xt===0)return at();UZ(_t,"remove",y),UZ(_t,"add",en),y=en}function Te(xt,at,_t){_t===void 0&&(_t=!1);var en=oC(A.props.triggerTarget||e);
vendor: 5,306 bytes, line 493
493en.forEach(function(An){An.addEventListener(xt,at,_t),C.push({node:An,eventType:xt,handler:at,options:_t})})}function Ue(){te()&&(Te("touchstart",De,{passive:!0}),Te("touchend",rt,{passive:!0})),xkt(A.props.trigger).forEach(function(xt){if(xt!=="manual")switch(Te(xt,De),xt){case"mouseenter":Te("mouseleave",rt);break;case"focus":Te(Bkt?"focusout":"blur",ct);break;case"focusin":Te("focusout",ct);break}})}function Oe(){C.forEach(function(xt){var at=xt.node,_t=xt.eventType,en=xt.handler,An=xt.options;at.removeEventListener(_t,en,An)}),C=[]}function De(xt){var at,_t=!1;if(!(!A.state.isEnabled||lt(xt)||f)){var en=((at=g)==null?void 0:at.type)==="focus";g=xt,T=xt.currentTarget,P(),!A.state.isVisible&&Akt(xt)&&tz.forEach(function(An){return An(xt)}),xt.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||u)&&A.props.hideOnClick!==!1&&A.state.isVisible?_t=!0:Ke(xt),xt.type==="click"&&(u=!_t),_t&&!en&&mt(xt)}}function $e(xt){var at=xt.target,_t=K().contains(at)||Z.contains(at);if(!(xt.type==="mousemove"&&_t)){var en=Ye().concat(Z).map(function(An){var Vt,_n=An._tippy,Mt=(Vt=_n.popperInstance)==null?void 0:Vt.state;return Mt?{popperRect:An.getBoundingClientRect(),popperState:Mt,props:n}:null}).filter(Boolean);Nkt(en,xt)&&(U(),mt(xt))}}function rt(xt){var at=lt(xt)||A.props.trigger.indexOf("click")>=0&&u;if(!at){if(A.props.interactive){A.hideWithInteractivity(xt);return}mt(xt)}}function ct(xt){A.props.trigger.indexOf("focusin")<0&&xt.target!==K()||A.props.interactive&&xt.relatedTarget&&Z.contains(xt.relatedTarget)||mt(xt)}function lt(xt){return eb.isTouch?te()!==xt.type.indexOf("touch")>=0:!1}function ot(){Fe();var xt=A.props,at=xt.popperOptions,_t=xt.placement,en=xt.offset,An=xt.getReferenceClientRect,Vt=xt.moveTransition,_n=V()?vee(Z).arrow:null,Mt=An?{getBoundingClientRect:An,contextElement:An.contextElement||K()}:e,pn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(nn){var Yn=nn.state;if(V()){var qr=de(),Br=qr.box;["placement","reference-hidden","escaped"].forEach(function(io){io==="placement"?Br.setAttribute("data-placement",Yn.placement):Yn.attributes.popper["data-popper-"+io]?Br.setAttribute("data-"+io,""):Br.removeAttribute("data-"+io)}),Yn.attributes.popper={}}}},En=[{name:"offset",options:{offset:en}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Vt}},pn];V()&&_n&&En.push({name:"arrow",options:{element:_n,padding:3}}),En.push.apply(En,(at==null?void 0:at.modifiers)||[]),A.popperInstance=Jte(Mt,Z,Object.assign({},at,{placement:_t,onFirstUpdate:w,modifiers:En}))}function Fe(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function We(){var xt=A.props.appendTo,at,_t=K();A.props.interactive&&xt===Jge||xt==="parent"?at=_t.parentNode:at=e2e(xt,[_t]),at.contains(Z)||at.appendChild(Z),A.state.isMounted=!0,ot()}function Ye(){return HH(Z.querySelectorAll("[data-tippy-root]"))}function Ke(xt){A.clearDelayTimeouts(),xt&&_e("onTrigger",[A,xt]),ie();var at=ne(!0),_t=$(),en=_t[0],An=_t[1];eb.isTouch&&en==="hold"&&An&&(at=An),at?r=setTimeout(function(){A.show()},at):A.show()}function mt(xt){if(A.clearDelayTimeouts(),_e("onUntrigger",[A,xt]),!A.state.isVisible){he();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(xt.type)>=0&&u)){var at=ne(!1);at?i=setTimeout(function(){A.state.isVisible&&A.hide()},at):l=requestAnimationFrame(function(){A.hide()})}}function Ct(){A.state.isEnabled=!0}function bt(){A.hide(),A.state.isEnabled=!1}function tn(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(l)}function Ft(xt){if(!A.state.isDestroyed){_e("onBeforeUpdate",[A,xt]),Oe();var at=A.props,_t=Hue(e,Object.assign({},at,Pue(xt),{ignoreAttributes:!0}));A.props=_t,Ue(),at.interactiveDebounce!==_t.interactiveDebounce&&(U(),S=Lue($e,_t.interactiveDebounce)),at.triggerTarget&&!_t.triggerTarget?oC(at.triggerTarget).forEach(function(en){en.removeAttribute("aria-expanded")}):_t.triggerTarget&&e.removeAttribute("aria-expanded"),P(),le(),z&&z(at,_t),A.popperInstance&&(ot(),Ye().forEach(function(en){requestAnimationFrame(en._tippy.popperInstance.forceUpdate)})),_e("onAfterUpdate",[A,xt])}}function It(xt){A.setProps({content:xt})}function Et(){var xt=A.state.isVisible,at=A.state.isDestroyed,_t=!A.state.isEnabled,en=eb.isTouch&&!A.props.touch,An=HZ(A.props.duration,0,Ep.duration);if(!(xt||at||_t||en)&&!K().hasAttribute("disabled")&&(_e("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,V()&&(Z.style.visibility="visible"),le(),ie(),A.state.isMounted||(Z.style.transition="none"),V()){var Vt=de(),_n=Vt.box,Mt=Vt.content;VZ([_n,Mt],0)}w=function(){var En;if(!(!A.state.isVisible||h)){if(h=!0,Z.offsetHeight,Z.style.transition=A.props.moveTransition,V()&&A.props.animation){var zn=de(),nn=zn.box,Yn=zn.content;VZ([nn,Yn],An),Fue([nn,Yn],"visible")}M(),P(),Bue(jZ,A),(En=A.popperInstance)==null||En.forceUpdate(),_e("onMount",[A]),A.props.animation&&V()&&be(An,function(){A.state.isShown=!0,_e("onShown",[A])})}},We()}}function At(){var xt=!A.state.isVisible,at=A.state.isDestroyed,_t=!A.state.isEnabled,en=HZ(A.props.duration,1,Ep.duration);if(!(xt||at||_t)&&(_e("onHide",[A],!1),A.props.onHide(A)!==!1)){if
493(A.state.isVisible=!1,A.state.isShown=!1,h=!1,u=!1,V()&&(Z.style.visibility="hidden"),U(),he(),le(!0),V()){var An=de(),Vt=An.box,_n=An.content;A.props.animation&&(VZ([Vt,_n],en),Fue([Vt,_n],"hidden"))}M(),P(),A.props.animation?V()&&re(en,A.unmount):A.unmount()}}function vt(xt){fe().addEventListener("mousemove",S),Bue(tz,S),S(xt)}function Tt(){A.state.isVisible&&A.hide(),A.state.isMounted&&(Fe(),Ye().forEach(function(xt){xt._tippy.unmount()}),Z.parentNode&&Z.parentNode.removeChild(Z),jZ=jZ.filter(function(xt){return xt!==A}),A.state.isMounted=!1,_e("onHidden",[A]))}function Wt(){A.state.isDestroyed||(A.clearDelayTimeouts(),A.unmount(),Oe(),delete e._tippy,A.state.isDestroyed=!0,_e("onDestroy",[A]))}}function s7(e,t){t===void 0&&(t={});var n=Ep.plugins.concat(t.plugins||[]);Rkt();var r=Object.assign({},t,{plugins:n}),i=Okt(e),l=i.reduce(function(u,f){var v=f&&jkt(f,r);return v&&u.push(v),u},[]);return qV(e)?l[0]:l}s7.defaultProps=Ep;s7.setDefaultProps=zkt;s7.currentInput=eb;Object.assign({},Gte,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var Wkt={mouseover:"mouseenter",focusin:"focus",click:"click"};function Gkt(e,t){var n=[],r=[],i=!1,l=t.target,u=Ckt(t,["target"]),f=Object.assign({},u,{trigger:"manual",touch:!1}),v=Object.assign({touch:Ep.touch},u,{showOnCreate:!0}),h=s7(e,f),g=oC(h);function y(B){if(!(!B.target||i)){var F=B.target.closest(l);if(!!F){var R=F.getAttribute("data-tippy-trigger")||t.trigger||Ep.trigger;if(!F._tippy&&!(B.type==="touchstart"&&typeof v.touch=="boolean")&&!(B.type!=="touchstart"&&R.indexOf(Wkt[B.type])<0)){var N=s7(F,v);N&&(r=r.concat(N))}}}}function w(B,F,R,N){N===void 0&&(N=!1),B.addEventListener(F,R,N),n.push({node:B,eventType:F,handler:R,options:N})}function C(B){var F=B.reference;w(F,"touchstart",y,N8),w(F,"mouseover",y),w(F,"focusin",y),w(F,"click",y)}function S(){n.forEach(function(B){var F=B.node,R=B.eventType,N=B.handler,A=B.options;F.removeEventListener(R,N,A)}),n=[]}function T(B){var F=B.destroy,R=B.enable,N=B.disable;B.destroy=function(A){A===void 0&&(A=!0),A&&r.forEach(function(X){X.destroy()}),r=[],S(),F()},B.enable=function(){R(),r.forEach(function(A){return A.enable()}),i=!1},B.disable=function(){N(),r.forEach(function(A){return A.disable()}),i=!0},C(B)}return g.forEach(T),h}s7.setDefaultProps({render:r2e});const qne={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},tb={}.hasOwnProperty,WZ={root:{children:jue},doctype:Ykt,comment:qkt,element:{tagName:a2e,properties:Xkt,children:jue},text:{value:Jkt},"*":{data:Wue,position:Wue}};function Kkt(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=o2e(Object.assign({},qne,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function o2e(e,t,n){const r=t&&t.type,i={type:t.type};let l;if(tb.call(WZ,r)){let u=WZ[r];if(typeof u=="function"&&(u=u(e,t)),u){const f=Object.assign({},u,WZ["*"]);let v;l=!0;for(v in f)if(tb.call(f,v)){const h=f[v](e,t[v],t,n);h===!1?(l=void 0,i[v]=t[v]):h!=null&&(i[v]=h)}}}return l?i:i.type==="element"&&e.strip&&!e.strip.includes(i.tagName)?i.children:void 0}function jue(e,t,n,r){const i=[];if(Array.isArray(t)){let l=-1;for(n.type==="element"&&r.push(n.tagName);++l<t.length;){const u=o2e(e,t[l],r);u&&(Array.isArray(u)?i.push(...u):i.push(u))}n.type==="element"&&r.pop()}return i}function Ykt(e){return e.allowDoctypes?{name:Zkt}:void 0}function qkt(e){return e.allowComments?{value:Qkt}:void 0}function Xkt(e,t,n,r){const i=a2e(e,n.tagName,n,r),l=e.attributes||{},u=e.required||{},f=t||{},v=Object.assign({},Gue(l["*"]),Gue(i&&tb.call(l,i)?l[i]:[])),h={};let g;for(g in f)if(tb.call(f,g)){let y=f[g],w;if(tb.call(v,g))w=v[g];else if(nOt(g)&&tb.call(v,"data*"))w=v["data*"];else continue;y=Array.isArray(y)?eOt(e,y,g,w):i2e(e,y,g,w),y!=null&&(h[g]=y)}if(i&&tb.call(u,i))for(g in u[i])tb.call(h,g)||(h[g]=u[i][g]);return h}function Zkt(){return"html"}function a2e(e,t,n,r){const i=typeof t=="string"?t:"";let l=-1;if(!i||i==="*"||e.tagNames&&!e.tagNames.includes(i))return!1;if(e.ancestors&&tb.call(e.ancestors,i)){for(;++l<e.ancestors[i].length;)if(r.includes(e.ancestors[i][l]))return i;return!1}return i}function Qkt(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function Jkt(e,t){return typeof t=="string"?t:""}function Wue(e,t){return t}function eOt(e,t,n,r){let i=-1;const l=[];for(;++i<t.length;){const u=i2e(e,t[i],n,r);u!=null&&l.push(u)}return l}function i2e(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&tOt(e,t,n)&&(r.length===0||r.some(i=>i&&typeof i=="object"&&"flags"in i?i.test(String(t)):i===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function tOt(e,t,n){const r=String(t),i=r.indexOf(":"),l=r.indexOf("?"),u=r.indexOf("#"),f=r.indexOf("/"),v=e.protocols&&tb.call(e.protocols,n)?e.protocols[n].concat():[];let h=-1;if(v.length===0||i<0||f>-1&&i>f||l>-1&&i>l||u>-1&&i>u)return!0;for(;++h<v.length;)if(i===v[h].length&&r.slice(0,v[h].length)===v[h])return!0;return!1}function Gue(e){const t={};let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?t[r[0]]=r.slice(1):t[r]=[]}return t}function nOt(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var f2={};const rOt=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];f2.REPLACEMENT_CHARACTER="\uFFFD";f2.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APO
vendor: 5,333 bytes, line 493
493STROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};f2.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};f2.isSurrogate=function(e){return e>=55296&&e<=57343};f2.isSurrogatePair=function(e){return e>=56320&&e<=57343};f2.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};f2.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};f2.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||rOt.indexOf(e)>-1};var Xne={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const dA=f2,GZ=Xne,G9=dA.CODE_POINTS,oOt=1<<16;class aOt{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=oOt}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(dA.isSurrogatePair(n))return this.pos++,this._addGap(),dA.getSurrogatePairC
vendor: 1,378 bytes, line 493
493odePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,G9.EOF;return this._err(GZ.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,G9.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===G9.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===G9.CARRIAGE_RETURN?(this.skipNextNewLine=!0,G9.LINE_FEED):(this.skipNextNewLine=!1,dA.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===G9.LINE_FEED||t===G9.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){dA.isControlCodePoint(t)?this._err(GZ.controlCharacterInInputStream):dA.isUndefinedCodePoint(t)&&this._err(GZ.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}var iOt=aOt,sOt
vendor: 5,900 bytes, line 493
493=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,11
vendor: 67,560 bytes, line 493
4937,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const
493lOt=iOt,au=f2,vC=sOt,Vr=Xne,bn=au.CODE_POINTS,K9=au.CODE_POINT_SEQUENCES,uOt={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},s2e=1<<0,l2e=1<<1,u2e=1<<2,cOt=s2e|l2e|u2e,Ss="DATA_STATE",vA="RCDATA_STATE",PD="RAWTEXT_STATE",u3="SCRIPT_DATA_STATE",c2e="PLAINTEXT_STATE",Kue="TAG_OPEN_STATE",Yue="END_TAG_OPEN_STATE",KZ="TAG_NAME_STATE",que="RCDATA_LESS_THAN_SIGN_STATE",Xue="RCDATA_END_TAG_OPEN_STATE",Zue="RCDATA_END_TAG_NAME_STATE",Que="RAWTEXT_LESS_THAN_SIGN_STATE",Jue="RAWTEXT_END_TAG_OPEN_STATE",ece="RAWTEXT_END_TAG_NAME_STATE",tce="SCRIPT_DATA_LESS_THAN_SIGN_STATE",nce="SCRIPT_DATA_END_TAG_OPEN_STATE",rce="SCRIPT_DATA_END_TAG_NAME_STATE",oce="SCRIPT_DATA_ESCAPE_START_STATE",ace="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Ug="SCRIPT_DATA_ESCAPED_STATE",ice="SCRIPT_DATA_ESCAPED_DASH_STATE",YZ="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",nz="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",sce="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",lce="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",uce="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",n3="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",cce="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",fce="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",rz="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",dce="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",qy="BEFORE_ATTRIBUTE_NAME_STATE",oz="ATTRIBUTE_NAME_STATE",qZ="AFTER_ATTRIBUTE_NAME_STATE",XZ="BEFORE_ATTRIBUTE_VALUE_STATE",az="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",iz="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",sz="ATTRIBUTE_VALUE_UNQUOTED_STATE",ZZ="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",y8="SELF_CLOSING_START_TAG_STATE",xD="BOGUS_COMMENT_STATE",vce="MARKUP_DECLARATION_OPEN_STATE",hce="COMMENT_START_STATE",pce="COMMENT_START_DASH_STATE",b8="COMMENT_STATE",mce="COMMENT_LESS_THAN_SIGN_STATE",gce="COMMENT_LESS_THAN_SIGN_BANG_STATE",yce="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",bce="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",lz="COMMENT_END_DASH_STATE",uz="COMMENT_END_STATE",_ce="COMMENT_END_BANG_STATE",wce="DOCTYPE_STATE",cz="BEFORE_DOCTYPE_NAME_STATE",fz="DOCTYPE_NAME_STATE",Cce="AFTER_DOCTYPE_NAME_STATE",xce="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Ece="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",QZ="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",JZ="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",eQ="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Sce="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Tce="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Ace="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ED="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",SD="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",tQ="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",r3="BOGUS_DOCTYPE_STATE",dz="CDATA_SECTION_STATE",kce="CDATA_SECTION_BRACKET_STATE",Oce="CDATA_SECTION_END_STATE",eA="CHARACTER_REFERENCE_STATE",Mce="NAMED_CHARACTER_REFERENCE_STATE",Nce="AMBIGUOS_AMPERSAND_STATE",Dce="NUMERIC_CHARACTER_REFERENCE_STATE",Ice="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Rce="DECIMAL_CHARACTER_REFERENCE_START_STATE",Lce="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Bce="DECIMAL_CHARACTER_REFERENCE_STATE",TD="NUMERIC_CHARACTER_REFERENCE_END_STATE";function fc(e){return e===bn.SPACE||e===bn.LINE_FEED||e===bn.TABULATION||e===bn.FORM_FEED}function tI(e){return e>=bn.DIGIT_0&&e<=bn.DIGIT_9}function Wg(e){return e>=bn.LATIN_CAPITAL_A&&e<=bn.LATIN_CAPITAL_Z}function J9(e){return e>=bn.LATIN_SMALL_A&&e<=bn.LATIN_SMALL_Z}function k8(e){return J9(e)||Wg(e)}function nQ(e){return k8(e)||tI(e)}function f2e(e){return e>=bn.LATIN_CAPITAL_A&&e<=bn.LATIN_CAPITAL_F}function d2e(e){return e>=bn.LATIN_SMALL_A&&e<=bn.LATIN_SMALL_F}function fOt(e){return tI(e)||f2e(e)||d2e(e)}function eH(e){return e+32}function cf(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function _8(e){return String.fromCharCode(eH(e))}function Pce(e,t){const n=vC[++e];let r=++e,i=r+n-1;for(;r<=i;){const l=r+i>>>1,u=vC[l];if(u<t)r=l+1;else if(u>t)i=l-1;else return vC[l+n]}return-1}class Gu{constructor(){this.preprocessor=new lOt,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ss,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Gu.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,l=!0;const u=t.length;let f=0,v=n,h;for(;f<u;f++){if(f>0&&(v=this._consume(),i++),v===bn.EOF){l=!1;break}if(h=t[f],v!==h&&(r||v!==eH(h))){l=!1;break}}if(!l)for(;i--;)this._unconsume();return l}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==K9.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==K9.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:Gu.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Gu.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Gu.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:Gu.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,
vendor: 34,786 bytes, line 493
493systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:Gu.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){Gu.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(Vr.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===Gu.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===Gu.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(Vr.endTagWithAttributes),t.selfClosing&&this._err(Vr.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=Gu.CHARACTER_TOKEN;fc(t)?n=Gu.WHITESPACE_CHARACTER_TOKEN:t===bn.NULL&&(n=Gu.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,cf(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(Gu.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=Pce(0,t);for(this.tempBuff.push(t);i>-1;){const l=vC[i],u=l<cOt;u&&l&s2e&&(n=l&l2e?[vC[++i],vC[++i]]:[vC[++i]],r=0);const v=this._consume();if(this.tempBuff.push(v),r++,v===bn.EOF)break;u?i=l&u2e?Pce(i,v):-1:i=v===l?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===az||this.returnState===iz||this.returnState===sz}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===bn.EQUALS_SIGN||nQ(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=cf(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[Ss](t){this.preprocessor.dropParsedChunk(),t===bn.LESS_THAN_SIGN?this.state=Kue:t===bn.AMPERSAND?(this.returnState=Ss,this.state=eA):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitCodePoint(t)):t===bn.EOF?this._emitEOFToken():this._emitCodePoint(t)}[vA](t){this.preprocessor.dropParsedChunk(),t===bn.AMPERSAND?(this.returnState=vA,this.state=eA):t===bn.LESS_THAN_SIGN?this.state=que:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?this._emitEOFToken():this._emitCodePoint(t)}[PD](t){this.preprocessor.dropParsedChunk(),t===bn.LESS_THAN_SIGN?this.state=Que:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?this._emitEOFToken():this._emitCodePoint(t)}[u3](t){this.preprocessor.dropParsedChunk(),t===bn.LESS_THAN_SIGN?this.state=tce:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?this._emitEOFToken():this._emitCodePoint(t)}[c2e](t){this.preprocessor.dropParsedChunk(),t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Kue](t){t===bn.EXCLAMATION_MARK?this.state=vce:t===bn.SOLIDUS?this.state=Yue:k8(t)?(this._createStartTagToken(),this._reconsumeInState(KZ)):t===bn.QUESTION_MARK?(this._err(Vr.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(xD)):t===bn.EOF?(this._err(Vr.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(Vr.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(Ss))}[Yue](t){k8(t)?(this._createEndTagToken(),this._reconsumeInState(KZ)):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingEndTagName),this.state=Ss):t===bn.EOF?(this._err(Vr.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(Vr.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(xD))}[KZ](t){fc(t)?this.state=qy:t===bn.SOLIDUS?this.state=y8:t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):Wg(t)?this.currentToken.tagName+=_8(t):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.tagName+=au.REPLACEMENT_CHARACTER):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=cf(t)}[que](t){t===bn.SOLIDUS?(this.tempBuff=[],this.state=Xue):(this._emitChars("<"),this._reconsumeInState(vA))}[Xue](t){k8(t)?(this._createEndTagToken(),this._reconsumeInState(Zue)):(this._emitChars("</"),this._reconsumeInState(vA))}[Zue](t){if(Wg(t))this.currentToken.tagName+=_8(t),this.tempBuff.push(t);else if(J9(t))this.currentToken.tagName+=cf(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fc(t)){this.state=qy;return}if(t===bn.SOLIDUS){this.state=y8;return}if(t===bn.GREATER_THAN_SIGN){this.state=Ss,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(vA)}}[Que](t){t===bn.SOLIDUS?(this.tempBuff=[],this.state=Jue):(this._emitChars("<"),this._reconsumeInState(PD))}[Jue](t){k8(t)?(this._createEndTagToken(),this._reconsumeInState(ece)):(this._emitChars("</"),this._reconsumeInState(PD))}[ece](t){if(Wg(t))this.currentToken.tagName+=_8(t),this.tempBuff.push(t);else if(J9(t))this.currentToken.tagName+=cf(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fc(t)){this.state=qy;return}if(t===bn.SOLIDUS){this.state=y8;return}if(t===bn.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Ss;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(PD)}}[tce](t){t===bn.SOLIDUS?(this.tempBuff=[],this.state=nce):t===bn.EXCLAMATION_MARK?(this.state=oce,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(u3))}[nce](t){k8(t)?(this._createEndTagToken(),this._reconsumeInState(rce)):(this._emitChars("</"),this._reconsumeInState(u3))}[rce](t){if(Wg(t))this.currentToken.tagName+=_8(t),this.tempBuff.push(t);else if(J9(t))this.currentToken.tagName+=cf(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fc(t)){this.state=qy;return}else if(t===bn.SOLIDUS){this.state=y8;return}else if(t===bn.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Ss;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(u3)}}[oce](t){t===bn.HYPHEN_MINUS?(this.state=ace,this._emitChars("-")):this._reconsumeInState(u3)}[ace](t){t===bn.HYPHEN_MINUS?(this.state=YZ,this._emitChars("-")):this._reconsumeInState(u3)}[Ug](t){t===bn.HYPHEN_MINUS?(this.state=ice,this._emitChars("-")):t===bn.LESS_THAN_SIGN?this.state=nz:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[ice](t){t===bn.HYPHEN_MINUS?(this.state=YZ,this._emitChars("-")):t===bn.LESS_THAN_SIGN?this.state=nz:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.state=Ug,this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ug,this._emitCodePoint(t))}[YZ](t){t===bn.HYPHEN_MINUS?this._emitChars("-"):t===bn.LESS_THAN_SIGN?this.state=nz:t===bn.GREATER_THAN_SIGN?(this.state=u3,this._emitChars(">")):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.state=Ug,this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ug,this._emitCodePoint(t))}[nz](t){t===bn.SOLIDUS?(this.tempBuff=[],this.state=sce):k8(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(uce)):(this._emitChars("<"),this._reconsumeInState(Ug))}[sce](t){k8(t)?(this._createEndTagToken(),this._reconsumeInState(lce)):(this._emitChars("</"),this._reconsumeInState(Ug))}[lce](t){if(Wg(t))this.currentToken.tagName+=_8(t),this.tempBuff.push(t);else if(J9(t))this.currentToken.tagName+=cf(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fc(t)){this.state=qy;return}if(t===bn.SOLIDUS){this.state=y8;return}if(t===bn.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Ss;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Ug)}}[uce](t){fc(t)||t===bn.SOLIDUS||t===bn.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?n3:Ug,this._emitCodePoint(t)):Wg(t)?(this.tempBuff.push(eH(t)),this._emitCodePoint(t)):J9(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ug)}[n3](t){t===bn.HYPHEN_MINUS?(this.state=cce,this._emitChars("-")):t===bn.LESS_THAN_SIGN?(this.state=rz,this._emitChars("<")):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[cce](t){t===bn.HYPHEN_MINUS?(this.state=fce,this._emitChars("-")):t===bn.LESS_THAN_SIGN?(this.state=rz,this._emitChars("<")):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.state=n3,this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=n3,this._emitCodePoint(t))}[fce](t){t===bn.HYPHEN_MINUS?this._emitChars("-"):t===bn.LESS_THAN_SIGN?(this.state=rz,this._emitChars("<")):t===bn.GREATER_THAN_SIGN?(this.state=u3,this._emitChars(">")):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.state=n3,this._emitChars(au.REPLACEMENT_CHARACTER)):t===bn.EOF?(this._err(Vr.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=n3,this._emitCodePoint(t))}[rz](t){t===bn.SOLIDUS?(this.tempBuff=[],this.state=dce,this._emitChars("/")):this._reconsumeInState(n3)}[dce](t){fc(t)||t===bn.SOLIDUS||t===bn.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Ug:n3,this._emitCodePoint(t)):Wg(t)?(this.tempBuff.push(eH(t)),this._emitCodePoint(t)):J9(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(n3)}[qy](t){fc(t)||(t===bn.SOLIDUS||t===bn.GREATER_THAN_SIGN||t===bn.EOF?this._reconsumeInState(qZ):t===bn.EQUALS_SIGN?(this._err(Vr.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=oz):(this._createAttr(""),this._reconsumeInState(oz)))}[oz](t){fc(t)||t===bn.SOLIDUS||t===bn.GREATER_THAN_SIGN||t===bn.EOF?(this._leaveAttrName(qZ),this._unconsume()):t===bn.EQUALS_SIGN?this._leaveAttrName(XZ):Wg(t)?this.currentAttr.name+=_8(t):t===bn.QUOTATION_MARK||t===bn.APOSTROPHE||t===bn.LESS_THAN_SIGN?(this._err(Vr.unexpectedCharacterInAttributeName),this.currentAttr.name+=cf(t)):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentAttr.name+=au.REPLACEMENT_CHARACTER):this.currentAttr.name+=cf(t)}[qZ](t){fc(t)||(t===bn.SOLIDUS?this.state=y8:t===bn.EQUALS_SIGN?this.state=XZ:t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(oz)))}[XZ](t){fc(t)||(t===bn.QUOTATION_MARK?this.state=az:t===bn.APOSTROPHE?this.state=iz:t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingAttributeValue),this.state=Ss,this._emitCurrentToken()):this._reconsumeInState(sz))}[az](t){t===bn.QUOTATION_MARK?this.state=ZZ:t===bn.AMPERSAND?(this.returnState=az,this.state=eA):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentAttr.value+=au.REPLACEMENT_CHARACTER):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=cf(t)}[iz](t){t===bn.APOSTROPHE?this.state=ZZ:t===bn.AMPERSAND?(this.returnState=iz,this.state=eA):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentAttr.value+=au.REPLACEMENT_CHARACTER):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=cf(t)}[sz](t){fc(t)?this._leaveAttrValue(qy):t===bn.AMPERSAND?(this.returnState=sz,this.state=eA):t===bn.GREATER_THAN_SIGN?(this._leaveAttrValue(Ss),this._emitCurrentToken()):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentAttr.value+=au.REPLACEMENT_CHARACTER):t===bn.QUOTATION_MARK||t===bn.APOSTROPHE||t===bn.LESS_THAN_SIGN||t===bn.EQUALS_SIGN||t===bn.GRAVE_ACCENT?(this._err(Vr.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=cf(t)):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):this.currentAttr.value+=cf(t)}[ZZ](t){fc(t)?this._leaveAttrValue(qy):t===bn.SOLIDUS?this._leaveAttrValue(y8):t===bn.GREATER_THAN_SIGN?(this._leaveAttrValue(Ss),this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):(this._err(Vr.missingWhitespaceBetweenAttributes),this._reconsumeInState(qy))}[y8](t){t===bn.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInTag),this._emitEOFToken()):(this._err(Vr.unexpectedSolidusInTag),this._reconsumeInState(qy))}[xD](t){t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.data+=au.REPLACEMENT_CHARACTER):this.currentToken.data+=cf(t)}[vce](t){this._consumeSequenceIfMatch(K9.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=hce):this._consumeSequenceIfMatch(K9.DOCTYPE_STRING,t,!1)?this.state=wce:this._consumeSequenceIfMatch(K9.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=dz:(this._err(Vr.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=xD):this._ensureHibernation()||(this._err(Vr.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(xD))}[hce](t){t===bn.HYPHEN_MINUS?this.state=pce:t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptClosingOfEmptyComment),this.state=Ss,this._emitCurrentToken()):this._reconsumeInState(b8)}[pce](t){t===bn.HYPHEN_MINUS?this.state=uz:t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptClosingOfEmptyComment),this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(b8))}[b8](t){t===bn.HYPHEN_MINUS?this.state=lz:t===bn.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=mce):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.data+=au.REPLACEMENT_CHARACTER):t===bn.EOF?(this._err(Vr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=cf(t)}[mce](t){t===bn.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=gce):t===bn.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(b8)}[gce](t){t===bn.HYPHEN_MINUS?this.state=yce:this._reconsumeInState(b8)}[yce](t){t===bn.HYPHEN_MINUS?this.state=bce:this._reconsumeInState(lz)}[bce](t){t!==bn.GREATER_THAN_SIGN&&t!==bn.EOF&&this._err(Vr.nestedComment),this._reconsumeInState(uz)}[lz](t){t===bn.HYPHEN_MINUS?this.state=uz:t===bn.EOF?(this._err(Vr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(b8))}[uz](t){t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):t===bn.EXCLAMATION_MARK?this.state=_ce:t===bn.HYPHEN_MINUS?this.currentToken.data+="-":t===bn.EOF?(this._err(Vr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(b8))}[_ce](t){t===bn.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=lz):t===bn.GREATER_THAN_SIGN?(this._err(Vr.incorrectlyClosedComment),this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(b8))}[wce](t){fc(t)?this.state=cz:t===bn.GREATER_THAN_SIGN?this._reconsumeInState(cz):t===bn.EOF?(this._err(Vr.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(cz))}[cz](t){fc(t)||(Wg(t)?(this._createDoctypeToken(_8(t)),this.state=fz):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this._createDoctypeToken(au.REPLACEMENT_CHARACTER),this.state=fz):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(cf(t)),this.state=fz))}[fz](t){fc(t)?this.state=Cce:t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):Wg(t)?this.currentToken.name+=_8(t):t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.name+=au.REPLACEMENT_CHARACTER):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=cf(t)}[Cce](t){fc(t)||(t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(K9.PUBLIC_STRING,t,!1)?this.state=xce:this._consumeSequenceIfMatch(K9.SYSTEM_STRING,t,!1)?this.state=Tce:this._ensureHibernation()||(this._err(Vr.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3)))}[xce](t){fc(t)?this.state=Ece:t===bn.QUOTATION_MARK?(this._err(Vr.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=QZ):t===bn.APOSTROPHE?(this._err(Vr.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=JZ):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3))}[Ece](t){fc(t)||(t===bn.QUOTATION_MARK?(this.currentToken.publicId="",this.state=QZ):t===bn.APOSTROPHE?(this.currentToken.publicId="",this.state=JZ):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3)))}[QZ](t){t===bn.QUOTATION_MARK?this.state=eQ:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.publicId+=au.REPLACEMENT_CHARACTER):t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=cf(t)}[JZ](t){t===bn.APOSTROPHE?this.state=eQ:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.publicId+=au.REPLACEMENT_CHARACTER):t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=cf(t)}[eQ](t){fc(t)?this.state=Sce:t===bn.GREATER_THAN_SIGN?(this.state=Ss,this._emitCurrentToken()):t===bn.QUOTATION_MARK?(this._err(Vr.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ED):t===bn.APOSTROPHE?(this._err(Vr.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=SD):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3))}[Sce](t){fc(t)||(t===bn.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ss):t===bn.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ED):t===bn.APOSTROPHE?(this.currentToken.systemId="",this.state=SD):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3)))}[Tce](t){fc(t)?this.state=Ace:t===bn.QUOTATION_MARK?(this._err(Vr.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ED):t===bn.APOSTROPHE?(this._err(Vr.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=SD):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3))}[Ace](t){fc(t)||(t===bn.QUOTATION_MARK?(this.currentToken.systemId="",this.state=ED):t===bn.APOSTROPHE?(this.currentToken.systemId="",this.state=SD):t===bn.GREATER_THAN_SIGN?(this._err(Vr.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ss,this._emitCurrentToken()):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(r3)))}[ED](t){t===bn.QUOTATION_MARK?this.state=tQ:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.systemId+=au.REPLACEMENT_CHARACTER):t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=cf(t)}[SD](t){t===bn.APOSTROPHE?this.state=tQ:t===bn.NULL?(this._err(Vr.unexpectedNullCharacter),this.currentToken.systemId+=au.REPLACEMENT_CHARACTER):t===bn.GREATER_THAN_SIGN?(this._err(Vr.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=cf(t)}[tQ](t){fc(t)||(t===bn.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ss):t===bn.EOF?(this._err(Vr.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Vr.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(r3)))}[r3](t){t===bn.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ss):t===bn.NULL?this._err(Vr.unexpectedNullCharacter):t===bn.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[dz](t){t===bn.RIGHT_SQUARE_BRACKET?this.state=kce:t===bn.EOF?(this._err(Vr.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[kce](t){t===bn.RIGHT_SQUARE_BRACKET?this.state=Oce:(this._emitChars("]"),this._reconsumeInState(dz))}[Oce](t){t===bn.GREATER_THAN_SIGN?this.state=Ss:t===bn.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(dz))}[eA](t){this.tempBuff=[bn.AMPERSAND],t===bn.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Dce):nQ(t)?this._reconsumeInState(Mce):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Mce](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[bn.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===bn.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Vr.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Nce}[Nce](t){nQ(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=cf(t):this._emitCodePoint(t):(t===bn.SEMICOLON&&this._err(Vr.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Dce](t){this.charRefCode=0,t===bn.LATIN_SMALL_X||t===bn.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Ice):this._reconsumeInState(Rce)}[Ice](t){fOt(t)?this._reconsumeInState(Lce):(this._err(Vr.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rce](t){tI(t)?this._reconsumeInState(Bce):(this._err(Vr.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Lce](t){f2e(t)?this.charRefCode=this.charRefCode*16+t-55:d2e(t)?this.charRefCode=this.charRefCode*16+t-87:tI(t)?this.charRefCode=this.charRefCode*16+t-48:t===bn.SEMICOLON?this.state=TD:(this._err(Vr.missingSemicolonAfterCharacterReference),this._reconsumeInState(TD))}[Bce](t){tI(t)?this.charRefCode=this.charRefCode*10+t-48:t===bn.SEMICOLON?this.state=TD:(this._err(Vr.missingSemicolonAfterCharacterReference),this._reconsumeInState(TD))}[TD](){if(this.charRefCode===bn.NULL)this._err(Vr.nullCharacterReference),this.charRefCode=bn.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Vr.characterReferenceOutsideUnicodeRange),this.charRefCode=bn.REPLACEMENT_CHARACTER;else if(au.isSurrogate(this.charRefCode))this._err(Vr.surrogateCharacterReference),this.charRefCode=bn.REPLACEMENT_CHARACTER;else if(au.isUndefinedCodePoint(this.charRefCode))this._err(Vr.noncharacterCharacterReference);else if(au.isControlCodePoint(this.charRefCode)||this.charRefCode===bn.CARRIAGE_RETURN){this._err(Vr.controlCharacterReference);const t=uOt[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Gu.CHARACTER_TOKEN="CHARACTER_TOKEN";Gu.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Gu.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Gu.START_TAG_TOKEN="START_TAG_TOKEN";Gu.END_TAG_TOKEN="END_TAG_TOKEN";Gu.COMMENT_TOKEN="COMMENT_TOKEN";Gu.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Gu.EOF_TOKEN="EOF_TOKEN";Gu.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Gu.MODE={DATA:Ss,RCDATA:vA,RAWTEXT:PD,SCRIPT_DATA:u3,PLAINTEXT:c2e};Gu.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var XV=Gu,d2={};const rQ=d2.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};d2.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};d2.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const xo=d2.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};d2.SPECIAL_ELEMENTS={[rQ.HTML]:{[xo.ADDRESS]:!0,[xo.APPLET]:!0,[xo.AREA]:!0,[xo.ARTICLE]:!0,[xo.ASIDE]:!0,[xo.BASE]:!0,[xo.BASEFONT]:!0,[xo.BGSOUND]:!0,[xo.BLOCKQUOTE]:!0,[xo.BODY]:!0,[xo.BR]:!0,[xo.BUTTON]:!0,[xo.CAPTION]:!0,[xo.CENTER]:!0,[xo.COL]:!0,[xo.COLGROUP]:!0,[xo.DD]:!0,[xo.DETAILS]:!0,[xo.DIR]:!0,[xo.DIV]:!0,[xo.DL]:!0,[xo.DT]:!0,[xo.EMBED]:!0,[xo.FIELDSET]:!0,[xo.FIGCAPTION]:!0,[xo.FIGURE]:!0,[xo.FOOTER]:!0,[xo.FORM]:!0,[xo.FRAME]:!0,[xo.FRAMESET]:!0,[xo.H1]:!0,[xo.H2]:!0,[xo.H3]:!0,[xo.H4]:!0,[xo.H5]:!0,[xo.H6]:!0,[xo.HEAD]:!0,[xo.HEADER]:!0,[xo.HGROUP]:!0,[xo.HR]:!0,[xo.HTML]:!0,[xo.IFRAME]:!0,[xo.IMG]:!0,[xo.INPUT]:!0,[xo.LI]:!0,[xo.LINK]:!0,[xo.LISTING]:!0,[xo.MAIN]:!0,[xo.MARQUEE]:!0,[xo.MENU]:!0,[xo.META]:!0,[xo.NAV]:!0,[xo.NOEMBED]:!0,[xo.NOFRAMES]:!0,[xo.NOSCRIPT]:!0,[xo.OBJECT]:!0,[xo.OL]:!0,[xo.P]:!0,[xo.PARAM]:!0,[xo.PLAINTEXT]:!0,[xo.PRE]:!0,[xo.SCRIPT]:!0,[xo.SECTION]:!0,[xo.SELECT]:!0,[xo.SOURCE]:!0,[xo.STYLE]:!0,[xo.SUMMARY]:!0,[xo.TABLE]:!0,[xo.TBODY]:!0,[xo.TD]:!0,[xo.TEMPLATE]:!0,[xo.TEXTAREA]:!0,[xo.TFOOT]:!0,[xo.TH]:!0,[xo.THEAD]:!0,[xo.TITLE]:!0,[xo.TR]:!0,[xo.TRACK]:!0,[xo.UL]:!0,[xo.WBR]:!0,[xo.XMP]:!0},[rQ.MATHML]:{[xo.MI]:!0,[xo.MO]:!0,[xo.MN]:!0,[xo.MS]:!0,[xo.MTEXT]:!0,[xo.ANNOTATION_XML]:!0},[rQ.SVG]:{[xo.TITLE]:!0,[xo.FOREIGN_OBJECT]:!0,[xo.DESC]:!0}};const v2e=d2,ko=v2e.TAG_NAMES,iu=v2e.NAMESPACES;function Fce(e){switch(e.length){case 1:return e===ko.P;case 2:return e===ko.RB||e===ko.RP||e===ko.RT||e===ko.DD||e===ko.DT||e===ko.LI;case 3:return e===ko.RTC;case 6:return e===ko.OPTION;case 8:return e===ko.OPTGROUP}return!1}function dOt(e){switch(e.length){case 1:return e===ko.P;case 2:return e===ko.RB||e===ko.RP||e===ko.RT||e===ko.DD||e===ko.DT||e===ko.LI||e===ko.TD||e===ko.TH||e===ko.TR;case 3:return e===ko.RTC;case 5:return e===ko.TBODY||e===ko.TFOOT||e===ko.THEAD;case 6:return e===ko.OPTION;case 7:return e===ko.CAPTION;case 8:return e===ko.OPTGROUP||e===ko.COLGROUP}return!1}function vz(e,t){switch(e.length){case 2:if(e===ko.TD||e===ko.TH)return t===iu.HTML;if(e===ko.MI||e===ko.MO||e===ko.MN||e===ko.MS)return t===iu.MATHML;break;case 4:if(e===ko.HTML)return t===iu.HTML;if(e===ko.DESC)return t===iu.SVG;break;case 5:if(e===ko.TABLE)return t===iu.HTML;if(e===ko.MTEXT)return t===iu.MATHML;if(e===ko.TITLE)return t===iu.SVG;break;case 6:return(e===ko.APPLET||e===ko.OBJECT)&&t===iu.HTML;case 7:return(e===ko.CAPTION||e===ko.MARQUEE)&&t===iu.HTML;case 8:return e===ko.TEMPLATE&&t===iu.HTML;case 13:return e===ko.FOREIGN_OBJECT&&t===iu.SVG;case 14:return e===ko.ANNOTATION_XML&&t===iu.MATHML}return!1}class vOt{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===ko.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===iu.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===iu.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ko.H1||t===ko.H2||t===ko.H3||t===ko.H4||t===ko.H5||t===ko.H6&&n===iu.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===ko.TD||t===ko.TH&&n===iu.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==ko.TABLE&&this.currentTagName!==ko.TEMPLATE&&this.currentTagName!==ko.HTML||this.treeAdapter.getNamespaceURI(this.current)!==iu.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==ko.TBODY&&this.currentTagName!==ko.TFOOT&&this.currentTagName!==ko.THEAD&&this.currentTagName!==ko.TEMPLATE&&this.currentTagName!==ko.HTML||this.treeAdapter.getNamespaceURI(this.current)!==iu.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==ko.TR&&this.currentTagName!==ko.TEMPLATE&&this.currentTagName!==ko.HTML||this.treeAdapter.getNamespaceURI(this.current)!==iu.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===ko.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===ko.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===iu.HTML)return!0;
vendor: 38,059 bytes, lines 493-496
493if(vz(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===ko.H1||n===ko.H2||n===ko.H3||n===ko.H4||n===ko.H5||n===ko.H6)&&r===iu.HTML)return!0;if(vz(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===iu.HTML)return!0;if((r===ko.UL||r===ko.OL)&&i===iu.HTML||vz(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===iu.HTML)return!0;if(r===ko.BUTTON&&i===iu.HTML||vz(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===iu.HTML){if(r===t)return!0;if(r===ko.TABLE||r===ko.TEMPLATE||r===ko.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===iu.HTML){if(n===ko.TBODY||n===ko.THEAD||n===ko.TFOOT)return!0;if(n===ko.TABLE||n===ko.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===iu.HTML){if(r===t)return!0;if(r!==ko.OPTION&&r!==ko.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Fce(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;dOt(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Fce(this.currentTagName)&&this.currentTagName!==t;)this.pop()}}var hOt=vOt;const hz=3;class Kg{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=hz){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let u=this.length-1;u>=0;u--){const f=this.entries[u];if(f.type===Kg.MARKER_ENTRY)break;const v=f.element,h=this.treeAdapter.getAttrList(v);this.treeAdapter.getTagName(v)===i&&this.treeAdapter.getNamespaceURI(v)===l&&h.length===r&&n.push({idx:u,attrs:h})}}return n.length<hz?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),l=i.length,u=Object.create(null);for(let f=0;f<l;f++){const v=i[f];u[v.name]=v.value}for(let f=0;f<l;f++)for(let v=0;v<r;v++){const h=n[v].attrs[f];if(u[h.name]!==h.value&&(n.splice(v,1),r--),n.length<hz)return}for(let f=r-1;f>=hz-1;f--)this.entries.splice(n[f].idx,1),this.length--}}insertMarker(){this.entries.push({type:Kg.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Kg.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Kg.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Kg.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Kg.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Kg.ELEMENT_ENTRY&&r.element===t)return r}return null}}Kg.MARKER_ENTRY="MARKER_ENTRY";Kg.ELEMENT_ENTRY="ELEMENT_ENTRY";var pOt=Kg;class h2e{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}}h2e.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var I3=h2e;const mOt=I3;class gOt extends mOt{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===` 494`||i==="\r"&&this.html[r+1]!==` 495`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}}var p2e=gOt;const $ce=I3,oQ=XV,yOt=p2e;class bOt extends $ce{constructor(t){super(t),this.tokenizer=t,this.posTracker=$ce.install(t.preprocessor,yOt),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,l){n._createCharacterToken.call(this,i,l),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===oQ.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(oQ.MODE).forEach(i=>{const l=oQ.MODE[i];r[l]=function(u){t.ctLoc=t._getCurrentLocation(),n[l].call(this,u)}}),r}}var m2e=bOt;const _Ot=I3;class wOt extends _Ot{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}}var COt=wOt;const aQ=I3,zce=XV,xOt=m2e,EOt=COt,SOt=d2,iQ=SOt.TAG_NAMES;class TOt extends aQ{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,l=this.treeAdapter.getTagName(t),u=n.type===zce.END_TAG_TOKEN&&l===n.tagName,f={};u?(f.endTag=Object.assign({},i),f.endLine=i.endLine,f.endCol=i.endCol,f.endOffset=i.endOffset):(f.endLine=i.startLine,f.endCol=i.startCol,f.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,f)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const l=aQ.install(this.tokenizer,xOt);t.posTracker=l.posTracker,aQ.install(this.openElements,EOt,{onItemPop:function(u){t._setEndLocation(u,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===zce.END_TAG_TOKEN&&(r.tagName===iQ.HTML||r.tagName===iQ.BODY&&this.openElements.hasInScope(iQ.BODY)))for(let l=this.openElements.stackTop;l>=0;l--){const u=this.openElements.items[l];if(this.treeAdapter.getTagName(u)===r.tagName){t._setEndLocation(u,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),l=i.length;for(let u=0;u<l;u++){const f=i[u];if(this.treeAdapter.isDocumentTypeNode(f)){this.treeAdapter.setNodeSourceCodeLocation(f,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const l=this.treeAdapter.getChildNodes(i),u=l[l.length-1];this.treeAdapter.setNodeSourceCodeLocation(u,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),l=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,u=this.treeAdapter.getChildNodes(l),f=i&&t.lastFosterParentingLocation.beforeElement?u.indexOf(t.lastFosterParentingLocation.beforeElement)-1:u.length-1,v=u[f];if(this.treeAdapter.getNodeSourceCodeLocation(v)){const{endLine:g,endCol:y,endOffset:w}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(v,{endLine:g,endCol:y,endOffset:w})}else this.treeAdapter.setNodeSourceCodeLocation(v,r.location)}}}}var AOt=TOt;const kOt=I3;class OOt extends kOt{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}}var Zne=OOt;const MOt=Zne,NOt=p2e,DOt=I3;class IOt extends MOt{constructor(t,n){super(t,n),this.posTracker=DOt.install(t,NOt),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}}var ROt=IOt;const LOt=Zne,BOt=ROt,POt=I3;class FOt extends LOt{constructor(t,n){super(t,n);const r=POt.install(t.preprocessor,BOt,n);this.posTracker=r.posTracker}}var $Ot=FOt;const zOt=Zne,HOt=$Ot,VOt=m2e,Hce=I3;class UOt extends zOt{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),Hce.install(this.tokenizer,HOt,t.opts),Hce.install(this.tokenizer,VOt)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}}var jOt=UOt,Js={};const{DOCUMENT_MODE:WOt}=d2;Js.createDocument=function(){return{nodeName:"#document",mode:WOt.NO_QUIRKS,childNodes:[]}};Js.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Js.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Js.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const g2e=function(e){return{nodeName:"#text",value:e,parentNode:null}},y2e=Js.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},GOt=Js.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Js.setTemplateContent=function(e,t){e.content=t};Js.getTemplateContent=function(e){return e.content};Js.setDocumentType=function(e,t,n,r){let i=null;for(let l=0;l<e.childNodes.length;l++)if(e.childNodes[l].nodeName==="#documentType"){i=e.childNodes[l];break}i?(i.name=t,i.publicId=n,i.systemId=r):y2e(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Js.setDocumentMode=function(e,t){e.mode=t};Js.getDocumentMode=function(e){return e.mode};Js.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Js.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}y2e(e,g2e(t))};Js.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:GOt(e,g2e(t),n)};Js.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};Js.getFirstChild=function(e){return e.childNodes[0]};Js.getChildNodes=function(e){return e.childNodes};Js.getParentNode=function(e){return e.parentNode};Js.getAttrList=function(e){return e.attrs};Js.getTagName=function(e){return e.tagName};Js.getNamespaceURI=function(e){return e.namespaceURI};Js.getTextNodeContent=function(e){return e.value};Js.getCommentNodeContent=function(e){return e.data};Js.getDocumentTypeNodeName=function(e){return e.name};Js.getDocumentTypeNodePublicId=function(e){return e.publicId};Js.getDocumentTypeNodeSystemId=function(e){return e.systemId};Js.isTextNode=function(e){return e.nodeName==="#text"};Js.isCommentNode=function(e){return e.nodeName==="#comment"};Js.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Js.isElementNode=function(e){return!!e.tagName};Js.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Js.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Js.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var KOt=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(l=>{r[l]=i[l]}),r),Object.create(null))},ZV={};const{DOCUMENT_MODE:tA}=d2,b2e="html",YOt="about:legacy-compat",qOt="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_2e=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],XOt=_2e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),ZOt=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],w2e=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],QOt=w2e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Vce(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Uce(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}ZV.isConforming=function(e){return e.name===b2e&&e.publicId===null&&(e.systemId===null||e.systemId===YOt)};ZV.getDocumentMode=function(e){if(e.name!==b2e)return tA.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===qOt)return tA.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),ZOt.indexOf(n)>-1)return tA.QUIRKS;let r=t===null?XOt:_2e;if(Uce(n,r))return tA.QUIRKS;if(r=t===null?w2e:QOt,Uce(n,r))return tA.LIMITED_QUIRKS}return tA.NO_QUIRKS};ZV.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Vce(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Vce(n)),r};var X8={};const sQ=XV,Qne=d2,Xa=Qne.TAG_NAMES,K1=Qne.NAMESPACES,tH=Qne.ATTRS,jce={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},JOt="definitionurl",eMt="definitionURL",tMt={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},nMt={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:K1.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:K1.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:K1.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:K1.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:K1.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:K1.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:K1.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:K1.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:K1.XML},"xml:space":{prefix:"xml",name:"space",namespace:K1.XML},xmlns:{prefix:"",name:"xmlns",namespace:K1.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:K1.XMLNS}},rMt=X8.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},oMt={[Xa.B]:!0,[Xa.BIG]:!0,[Xa.BLOCKQUOTE]:!0,[Xa.BODY]:!0,[Xa.BR]:!0,[Xa.CENTER]:!0,[Xa.CODE]:!0,[Xa.DD]:!0,[Xa.DIV]:!0,[Xa.DL]:!0,[Xa.DT]:!0,[Xa.EM]:!0,[Xa.EMBED]:!0,[Xa.H1]:!0,[Xa.H2]:!0,[Xa.H3]:!0,[Xa.H4]:!0,[Xa.H5]:!0,[Xa.H6]:!0,[Xa.HEAD]:!0,[Xa.HR]:!0,[Xa.I]:!0,[Xa.IMG]:!0,[Xa.LI]:!0,[Xa.LISTING]:!0,[Xa.MENU]:!0,[Xa.META]:!0,[Xa.NOBR]:!0,[Xa.OL]:!0,[Xa.P]:!0,[Xa.PRE]:!0,[Xa.RUBY]:!0,[Xa.S]:!0,[Xa.SMALL]:!0,[Xa.SPAN]:!0,[Xa.STRONG]:!0,[Xa.STRIKE]:!0,[Xa.SUB]:!0,[Xa.SUP]:!0,[Xa.TABLE]:!0,[Xa.TT]:!0,[Xa.U]:!0,[Xa.UL]:!0,[Xa.VAR]:!0};X8.causesExit=function(e){const t=e.tagName;return t===Xa.FONT&&(sQ.getTokenAttr(e,tH.COLOR)!==null||sQ.getTokenAttr(e,tH.SIZE)!==null||sQ.getTokenAttr(e,tH.FACE)!==null)?!0:oMt[t]};X8.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===JOt){e.attrs[t].name=eMt;break}};X8.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=tMt[e.attrs[t].name];n&&(e.attrs[t].name=n)}};X8.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=nMt[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};X8.adjustTokenSVGTagName=function(e){const t=rMt[e.tagName];t&&(e.tagName=t)};function aMt(e,t){return t===K1.MATHML&&(e===Xa.MI||e===Xa.MO||e===Xa.MN||e===Xa.MS||e===Xa.MTEXT)}function iMt(e,t,n){if(t===K1.MATHML&&e===Xa.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===tH.ENCODING){const i=n[r].value.toLowerCase();return i===jce.TEXT_HTML||i===jce.APPLICATION_XML}}return t===K1.SVG&&(e===Xa.FOREIGN_OBJECT||e===Xa.DESC||e===Xa.TITLE)}X8.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===K1.HTML)&&iMt(e,t,n)||(!r||r===K1.MATHML)&&aMt(e,t))};const Tn=XV,sMt=hOt,Wce=pOt,lMt=AOt,uMt=jOt,Gce=I3,cMt=Js,fMt=KOt,Kce=ZV,rb=X8,Q1=Xne,dMt=f2,HC=d2,qe=HC.TAG_NAMES,ma=HC.NAMESPACES,C2e=HC.ATTRS,vMt={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:cMt},x2e="hidden",hMt=8,pMt=3,E2e="INITIAL_MODE",Jne="BEFORE_HTML_MODE",QV="BEFORE_HEAD_MODE",_7="IN_HEAD_MODE",S2e="IN_HEAD_NO_SCRIPT_MODE",JV="AFTER_HEAD_MODE",sb="IN_BODY_MODE",VH="TEXT_MODE",kv="IN_TABLE_MODE",T2e="IN_TABLE_TEXT_MODE",eU="IN_CAPTION_MODE",fR="IN_COLUMN_GROUP_MODE",Om="IN_TABLE_BODY_MODE",x3="IN_ROW_MODE",tU="IN_CELL_MODE",ere="IN_SELECT_MODE",tre="IN_SELECT_IN_TABLE_MODE",UH="IN_TEMPLATE_MODE",nre="AFTER_BODY_MODE",nU="IN_FRAMESET_MODE",A2e="AFTER_FRAMESET_MODE",k2e="AFTER_AFTER_BODY_MODE",O2e="AFTER_AFTER_FRAMESET_MODE",mMt={[qe.TR]:x3,[qe.TBODY]:Om,[qe.THEAD]:Om,[qe.TFOOT]:Om,[qe.CAPTION]:eU,[qe.COLGROUP]:fR,[qe.TABLE]:kv,[qe.BODY]:sb,[qe.FRAMESET]:nU},gMt={[qe.CAPTION]:kv,[qe.COLGROUP]:kv,[qe.TBODY]:kv,[qe.TFOOT]:kv,[qe.THEAD]:kv,[qe.COL]:fR,[qe.TR]:Om,[qe.TD]:x3,[qe.TH]:x3},Yce={[E2e]:{[Tn.CHARACTER_TOKEN]:kD,[Tn.NULL_CHARACTER_TOKEN]:kD,[Tn.WHITESPACE_CHARACTER_TOKEN]:Rs,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:AMt,[Tn.START_TAG_TOKEN]:kD,[Tn.END_TAG_TOKEN]:kD,[Tn.EOF_TOKEN]:kD},[Jne]:{[Tn.CHARACTER_TOKEN]:nI,[Tn.NULL_CHARACTER_TOKEN]:nI,[Tn.WHITESPACE_CHARACTER_TOKEN]:Rs,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:kMt,[Tn.END_TAG_TOKEN]:OMt,[Tn.EOF_TOKEN]:nI},[QV]:{[Tn.CHARACTER_TOKEN]:rI,[Tn.NULL_CHARACTER_TOKEN]:rI,[Tn.WHITESPACE_CHARACTER_TOKEN]:Rs,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:pz,[Tn.START_TAG_TOKEN]:MMt,[Tn.END_TAG_TOKEN]:NMt,[Tn.EOF_TOKEN]:rI},[_7]:{[Tn.CHARACTER_TOKEN]:oI,[Tn.NULL_CHARACTER_TOKEN]:oI,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:pz,[Tn.START_TAG_TOKEN]:p1,[Tn.END_TAG_TOKEN]:VC,[Tn.EOF_TOKEN]:oI},[S2e]:{[Tn.CHARACTER_TOKEN]:aI,[Tn.NULL_CHARACTER_TOKEN]:aI,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:pz,[Tn.START_TAG_TOKEN]:DMt,[Tn.END_TAG_TOKEN]:IMt,[Tn.EOF_TOKEN]:aI},[JV]:{[Tn.CHARACTER_TOKEN]:iI,[Tn.NULL_CHARACTER_TOKEN]:iI,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:pz,[Tn.START_TAG_TOKEN]:RMt,[Tn.END_TAG_TOKEN]:LMt,[Tn.EOF_TOKEN]:iI},[sb]:{[Tn.CHARACTER_TOKEN]:mz,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:C0,[Tn.END_TAG_TOKEN]:rre,[Tn.EOF_TOKEN]:a3},[VH]:{[Tn.CHARACTER_TOKEN]:d0,[Tn.NULL_CHARACTER_TOKEN]:d0,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Rs,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:Rs,[Tn.END_TAG_TOKEN]:dNt,[Tn.EOF_TOKEN]:vNt},[kv]:{[Tn.CHARACTER_TOKEN]:i3,[Tn.NULL_CHARACTER_TOKEN]:i3,[Tn.WHITESPACE_CHARACTER_TOKEN]:i3,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:ore,[Tn.END_TAG_TOKEN]:are,[Tn.EOF_TOKEN]:a3},[T2e]:{[Tn.CHARACTER_TOKEN]:xNt,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:CNt,[Tn.COMMENT_TOKEN]:OD,[Tn.DOCTYPE_TOKEN]:OD,[Tn.START_TAG_TOKEN]:OD,[Tn.END_TAG_TOKEN]:OD,[Tn.EOF_TOKEN]:OD},[eU]:{[Tn.CHARACTER_TOKEN]:mz,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:ENt,[Tn.END_TAG_TOKEN]:SNt,[Tn.EOF_TOKEN]:a3},[fR]:{[Tn.CHARACTER_TOKEN]:jH,[Tn.NULL_CHARACTER_TOKEN]:jH,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:TNt,[Tn.END_TAG_TOKEN]:ANt,[Tn.EOF_TOKEN]:a3},[Om]:{[Tn.CHARACTER_TOKEN]:i3,[Tn.NULL_CHARACTER_TOKEN]:i3,[Tn.WHITESPACE_CHARACTER_TOKEN]:i3,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:kNt,[Tn.END_TAG_TOKEN]:ONt,[Tn.EOF_TOKEN]:a3},[x3]:{[Tn.CHARACTER_TOKEN]:i3,[Tn.NULL_CHARACTER_TOKEN]:i3,[Tn.WHITESPACE_CHARACTER_TOKEN]:i3,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:MNt,[Tn.END_TAG_TOKEN]:NNt,[Tn.EOF_TOKEN]:a3},[tU]:{[Tn.CHARACTER_TOKEN]:mz,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:DNt,[Tn.END_TAG_TOKEN]:INt,[Tn.EOF_TOKEN]:a3},[ere]:{[Tn.CHARACTER_TOKEN]:d0,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:M2e,[Tn.END_TAG_TOKEN]:N2e,[Tn.EOF_TOKEN]:a3},[tre]:{[Tn.CHARACTER_TOKEN]:d0,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:RNt,[Tn.END_TAG_TOKEN]:LNt,[Tn.EOF_TOKEN]:a3},[UH]:{[Tn.CHARACTER_TOKEN]:mz,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:BNt,[Tn.END_TAG_TOKEN]:PNt,[Tn.EOF_TOKEN]:D2e},[nre]:{[Tn.CHARACTER_TOKEN]:WH,[Tn.NULL_CHARACTER_TOKEN]:WH,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:TMt,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:FNt,[Tn.END_TAG_TOKEN]:$Nt,[Tn.EOF_TOKEN]:AD},[nU]:{[Tn.CHARACTER_TOKEN]:Rs,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:zNt,[Tn.END_TAG_TOKEN]:HNt,[Tn.EOF_TOKEN]:AD},[A2e]:{[Tn.CHARACTER_TOKEN]:Rs,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:d0,[Tn.COMMENT_TOKEN]:Hd,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:VNt,[Tn.END_TAG_TOKEN]:UNt,[Tn.EOF_TOKEN]:AD},[k2e]:{[Tn.CHARACTER_TOKEN]:nH,[Tn.NULL_CHARACTER_TOKEN]:nH,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:qce,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:jNt,[Tn.END_TAG_TOKEN]:nH,[Tn.EOF_TOKEN]:AD},[O2e]:{[Tn.CHARACTER_TOKEN]:Rs,[Tn.NULL_CHARACTER_TOKEN]:Rs,[Tn.WHITESPACE_CHARACTER_TOKEN]:Y9,[Tn.COMMENT_TOKEN]:qce,[Tn.DOCTYPE_TOKEN]:Rs,[Tn.START_TAG_TOKEN]:WNt,[Tn.END_TAG_TOKEN]:Rs,[Tn.EOF_TOKEN]:AD}};class yMt{constructor(t){this.options=fMt(vMt,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Gce.install(this,lMt),this.options.onParseError&&Gce.install(this,uMt,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(qe.TEMPLATE,ma.HTML,[]));const r=this.treeAdapter.createElement("documentmock",ma.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===qe.TEMPLATE&&this._pushTmplInsertionMode(UH),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),l=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,l),l}_bootstrap(t,n){this.tokenizer=new Tn(this.options),this.stopped=!1,this.insertionMode=E2e,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new sMt(this.document,this.treeAdapter),this.activeFormattingElements=new Wce(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===Tn.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===Tn.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===` 496`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==ma.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,ma.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=VH}switchToPlaintextParsing(){this.insertionMode=VH,this.originalInsertionMode=sb,this.tokenizer.state=Tn.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===qe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===ma.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===qe.TITLE||t===qe.TEXTAREA?this.tokenizer.state=Tn.MODE.RCDATA:t===qe.STYLE||t===qe.XMP||t===qe.IFRAME||t===qe.NOEMBED||t===qe.NOFRAMES||t===qe.NOSCRIPT?this.tokenizer.state=Tn.MODE.RAWTEXT:t===qe.SCRIPT?this.tokenizer.state=Tn.MODE.SCRIPT_DATA:t===qe.PLAINTEXT&&(this.tokenizer.state=Tn.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,ma.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ma.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(qe.HTML,ma.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===ma.HTML||this.treeAdapter.getTagName(n)===qe.ANNOTATION_XML&&r===ma.MATHML&&t.type===Tn.START_TAG_TOKEN&&t.tagName===qe.SVG)return!1;const i=t.type===Tn.CHARACTER_TOKEN||t.type===Tn.NULL_CHARACTER_TOKEN||t.type===Tn.WHITESPACE_CHARACTER_TOKEN;return(t.type===Tn.START_TAG_TOKEN&&t.tagName!==qe.MGLYPH&&t.tagName!==qe.MALIGNMARK||i)&&this._isIntegrationPoint(n,ma.MATHML)||(t.type===Tn.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,ma.HTML)?!1:t.type!==Tn.EOF_TOKEN}_processToken(t){Yce[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Yce[sb][t.type](this,t)}_processTokenInForeignContent(t){t.type===Tn.CHARACTER_TOKEN?KNt(this,t):t.type===Tn.NULL_CHARACTER_TOKEN?GNt(this,t):t.type===Tn.WHITESPACE_CHARACTER_TOKEN?d0(this,t):t.type===Tn.COMMENT_TOKEN?Hd(this,t):t.type===Tn.START_TAG_TOKEN?YNt(this,t):t.type===Tn.END_TAG_TOKEN&&qNt(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===Tn.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Q1.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),l=this.treeAdapter.getAttrList(t);return rb.isIntegrationPoint(r,i,l,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===Wce.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=x3}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(qe.P),this.openElements.popUntilTagNamePopped(qe.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),l=mMt[i];if(l){this.insertionMode=l;break}else if(!n&&(i===qe.TD||i===qe.TH)){this.insertionMode=tU;break}else if(!n&&i===qe.HEAD){this.insertionMode=_7;break}else if(i===qe.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===qe.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===qe.HTML){this.insertionMode=this.headElement?JV:QV;break}el
vendor: 26,857 bytes, line 496
496se if(n){this.insertionMode=sb;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===qe.TEMPLATE)break;if(i===qe.TABLE){this.insertionMode=tre;return}}this.insertionMode=ere}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===qe.TABLE||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),l=this.treeAdapter.getNamespaceURI(r);if(i===qe.TEMPLATE&&l===ma.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===qe.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return HC.SPECIAL_ELEMENTS[r][n]}}var bMt=yMt;function _Mt(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Gg(e,t),n}function wMt(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function CMt(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let l=0,u=i;u!==n;l++,u=i){i=e.openElements.getCommonAncestor(u);const f=e.activeFormattingElements.getElementEntry(u),v=f&&l>=pMt;!f||v?(v&&e.activeFormattingElements.removeEntry(f),e.openElements.remove(u)):(u=xMt(e,f),r===t&&(e.activeFormattingElements.bookmark=f),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function xMt(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function EMt(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===qe.TEMPLATE&&i===ma.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function SMt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,l=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l)}function D8(e,t){let n;for(let r=0;r<hMt&&(n=_Mt(e,t),!!n);r++){const i=wMt(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const l=CMt(e,i,n.element),u=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(l),EMt(e,u,l),SMt(e,i,n)}}function Rs(){}function pz(e){e._err(Q1.misplacedDoctype)}function Hd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function TMt(e,t){e._appendCommentNode(t,e.openElements.items[0])}function qce(e,t){e._appendCommentNode(t,e.document)}function d0(e,t){e._insertCharacters(t)}function AD(e){e.stopped=!0}function AMt(e,t){e._setDocumentType(t);const n=t.forceQuirks?HC.DOCUMENT_MODE.QUIRKS:Kce.getDocumentMode(t);Kce.isConforming(t)||e._err(Q1.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Jne}function kD(e,t){e._err(Q1.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,HC.DOCUMENT_MODE.QUIRKS),e.insertionMode=Jne,e._processToken(t)}function kMt(e,t){t.tagName===qe.HTML?(e._insertElement(t,ma.HTML),e.insertionMode=QV):nI(e,t)}function OMt(e,t){const n=t.tagName;(n===qe.HTML||n===qe.HEAD||n===qe.BODY||n===qe.BR)&&nI(e,t)}function nI(e,t){e._insertFakeRootElement(),e.insertionMode=QV,e._processToken(t)}function MMt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.HEAD?(e._insertElement(t,ma.HTML),e.headElement=e.openElements.current,e.insertionMode=_7):rI(e,t)}function NMt(e,t){const n=t.tagName;n===qe.HEAD||n===qe.BODY||n===qe.HTML||n===qe.BR?rI(e,t):e._err(Q1.endTagWithoutMatchingOpenElement)}function rI(e,t){e._insertFakeElement(qe.HEAD),e.headElement=e.openElements.current,e.insertionMode=_7,e._processToken(t)}function p1(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.BASE||n===qe.BASEFONT||n===qe.BGSOUND||n===qe.LINK||n===qe.META?(e._appendElement(t,ma.HTML),t.ackSelfClosing=!0):n===qe.TITLE?e._switchToTextParsing(t,Tn.MODE.RCDATA):n===qe.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,Tn.MODE.RAWTEXT):(e._insertElement(t,ma.HTML),e.insertionMode=S2e):n===qe.NOFRAMES||n===qe.STYLE?e._switchToTextParsing(t,Tn.MODE.RAWTEXT):n===qe.SCRIPT?e._switchToTextParsing(t,Tn.MODE.SCRIPT_DATA):n===qe.TEMPLATE?(e._insertTemplate(t,ma.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=UH,e._pushTmplInsertionMode(UH)):n===qe.HEAD?e._err(Q1.misplacedStartTagForHeadElement):oI(e,t)}function VC(e,t){const n=t.tagName;n===qe.HEAD?(e.openElements.pop(),e.insertionMode=JV):n===qe.BODY||n===qe.BR||n===qe.HTML?oI(e,t):n===qe.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==qe.TEMPLATE&&e._err(Q1.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(qe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Q1.endTagWithoutMatchingOpenElement)}function oI(e,t){e.openElements.pop(),e.insertionMode=JV,e._processToken(t)}function DMt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.BASEFONT||n===qe.BGSOUND||n===qe.HEAD||n===qe.LINK||n===qe.META||n===qe.NOFRAMES||n===qe.STYLE?p1(e,t):n===qe.NOSCRIPT?e._err(Q1.nestedNoscriptInHead):aI(e,t)}function IMt(e,t){const n=t.tagName;n===qe.NOSCRIPT?(e.openElements.pop(),e.insertionMode=_7):n===qe.BR?aI(e,t):e._err(Q1.endTagWithoutMatchingOpenElement)}function aI(e,t){const n=t.type===Tn.EOF_TOKEN?Q1.openElementsLeftAfterEof:Q1.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=_7,e._processToken(t)}function RMt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.BODY?(e._insertElement(t,ma.HTML),e.framesetOk=!1,e.insertionMode=sb):n===qe.FRAMESET?(e._insertElement(t,ma.HTML),e.insertionMode=nU):n===qe.BASE||n===qe.BASEFONT||n===qe.BGSOUND||n===qe.LINK||n===qe.META||n===qe.NOFRAMES||n===qe.SCRIPT||n===qe.STYLE||n===qe.TEMPLATE||n===qe.TITLE?(e._err(Q1.abandonedHeadElementChild),e.openElements.push(e.headElement),p1(e,t),e.openElements.remove(e.headElement)):n===qe.HEAD?e._err(Q1.misplacedStartTagForHeadElement):iI(e,t)}function LMt(e,t){const n=t.tagName;n===qe.BODY||n===qe.HTML||n===qe.BR?iI(e,t):n===qe.TEMPLATE?VC(e,t):e._err(Q1.endTagWithoutMatchingOpenElement)}function iI(e,t){e._insertFakeElement(qe.BODY),e.insertionMode=sb,e._processToken(t)}function Y9(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function mz(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function BMt(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function PMt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function FMt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ma.HTML),e.insertionMode=nU)}function o3(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML)}function $Mt(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===qe.H1||n===qe.H2||n===qe.H3||n===qe.H4||n===qe.H5||n===qe.H6)&&e.openElements.pop(),e._insertElement(t,ma.HTML)}function Xce(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function zMt(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML),n||(e.formElement=e.openElements.current))}function HMt(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],l=e.treeAdapter.getTagName(i);let u=null;if(n===qe.LI&&l===qe.LI?u=qe.LI:(n===qe.DD||n===qe.DT)&&(l===qe.DD||l===qe.DT)&&(u=l),u){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u);break}if(l!==qe.ADDRESS&&l!==qe.DIV&&l!==qe.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML)}function VMt(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML),e.tokenizer.state=Tn.MODE.PLAINTEXT}function UMt(e,t){e.openElements.hasInScope(qe.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(qe.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML),e.framesetOk=!1}function jMt(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(qe.A);n&&(D8(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function WMt(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(qe.NOBR)&&(D8(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ma.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Zce(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function GMt(e,t){e.treeAdapter.getDocumentMode(e.document)!==HC.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML),e.framesetOk=!1,e.insertionMode=kv}function hA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ma.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function KMt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ma.HTML);const n=Tn.getTokenAttr(t,C2e.TYPE);(!n||n.toLowerCase()!==x2e)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Qce(e,t){e._appendElement(t,ma.HTML),t.ackSelfClosing=!0}function YMt(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._appendElement(t,ma.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function qMt(e,t){t.tagName=qe.IMG,hA(e,t)}function XMt(e,t){e._insertElement(t,ma.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Tn.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=VH}function ZMt(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Tn.MODE.RAWTEXT)}function QMt(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Tn.MODE.RAWTEXT)}function Jce(e,t){e._switchToTextParsing(t,Tn.MODE.RAWTEXT)}function JMt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML),e.framesetOk=!1,e.insertionMode===kv||e.insertionMode===eU||e.insertionMode===Om||e.insertionMode===x3||e.insertionMode===tU?e.insertionMode=tre:e.insertionMode=ere}function efe(e,t){e.openElements.currentTagName===qe.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML)}function tfe(e,t){e.openElements.hasInScope(qe.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ma.HTML)}function eNt(e,t){e.openElements.hasInScope(qe.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(qe.RTC),e._insertElement(t,ma.HTML)}function tNt(e,t){e.openElements.hasInButtonScope(qe.P)&&e._closePElement(),e._insertElement(t,ma.HTML)}function nNt(e,t){e._reconstructActiveFormattingElements(),rb.adjustTokenMathMLAttrs(t),rb.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ma.MATHML):e._insertElement(t,ma.MATHML),t.ackSelfClosing=!0}function rNt(e,t){e._reconstructActiveFormattingElements(),rb.adjustTokenSVGAttrs(t),rb.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ma.SVG):e._insertElement(t,ma.SVG),t.ackSelfClosing=!0}function wm(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ma.HTML)}function C0(e,t){const n=t.tagName;switch(n.length){case 1:n===qe.I||n===qe.S||n===qe.B||n===qe.U?nA(e,t):n===qe.P?o3(e,t):n===qe.A?jMt(e,t):wm(e,t);break;case 2:n===qe.DL||n===qe.OL||n===qe.UL?o3(e,t):n===qe.H1||n===qe.H2||n===qe.H3||n===qe.H4||n===qe.H5||n===qe.H6?$Mt(e,t):n===qe.LI||n===qe.DD||n===qe.DT?HMt(e,t):n===qe.EM||n===qe.TT?nA(e,t):n===qe.BR?hA(e,t):n===qe.HR?YMt(e,t):n===qe.RB?tfe(e,t):n===qe.RT||n===qe.RP?eNt(e,t):n!==qe.TH&&n!==qe.TD&&n!==qe.TR&&wm(e,t);break;case 3:n===qe.DIV||n===qe.DIR||n===qe.NAV?o3(e,t):n===qe.PRE?Xce(e,t):n===qe.BIG?nA(e,t):n===qe.IMG||n===qe.WBR?hA(e,t):n===qe.XMP?ZMt(e,t):n===qe.SVG?rNt(e,t):n===qe.RTC?tfe(e,t):n!==qe.COL&&wm(e,t);break;case 4:n===qe.HTML?BMt(e,t):n===qe.BASE||n===qe.LINK||n===qe.META?p1(e,t):n===qe.BODY?PMt(e,t):n===qe.MAIN||n===qe.MENU?o3(e,t):n===qe.FORM?zMt(e,t):n===qe.CODE||n===qe.FONT?nA(e,t):n===qe.NOBR?WMt(e,t):n===qe.AREA?hA(e,t):n===qe.MATH?nNt(e,t):n===qe.MENU?tNt(e,t):n!==qe.HEAD&&wm(e,t);break;case 5:n===qe.STYLE||n===qe.TITLE?p1(e,t):n===qe.ASIDE?o3(e,t):n===qe.SMALL?nA(e,t):n===qe.TABLE?GMt(e,t):n===qe.EMBED?hA(e,t):n===qe.INPUT?KMt(e,t):n===qe.PARAM||n===qe.TRACK?Qce(e,t):n===qe.IMAGE?qMt(e,t):n!==qe.FRAME&&n!==qe.TBODY&&n!==qe.TFOOT&&n!==qe.THEAD&&wm(e,t);break;case 6:n===qe.SCRIPT?p1(e,t):n===qe.CENTER||n===qe.FIGURE||n===qe.FOOTER||n===qe.HEADER||n===qe.HGROUP||n===qe.DIALOG?o3(e,t):n===qe.BUTTON?UMt(e,t):n===qe.STRIKE||n===qe.STRONG?nA(e,t):n===qe.APPLET||n===qe.OBJECT?Zce(e,t):n===qe.KEYGEN?hA(e,t):n===qe.SOURCE?Qce(e,t):n===qe.IFRAME?QMt(e,t):n===qe.SELECT?JMt(e,t):n===qe.OPTION?efe(e,t):wm(e,t);break;case 7:n===qe.BGSOUND?p1(e,t):n===qe.DETAILS||n===qe.ADDRESS||n===qe.ARTICLE||n===qe.SECTION||n===qe.SUMMARY?o3(e,t):n===qe.LISTING?Xce(e,t):n===qe.MARQUEE?Zce(e,t):n===qe.NOEMBED?Jce(e,t):n!==qe.CAPTION&&wm(e,t);break;case 8:n===qe.BASEFONT?p1(e,t):n===qe.FRAMESET?FMt(e,t):n===qe.FIELDSET?o3(e,t):n===qe.TEXTAREA?XMt(e,t):n===qe.TEMPLATE?p1(e,t):n===qe.NOSCRIPT?e.options.scriptingEnabled?Jce(e,t):wm(e,t):n===qe.OPTGROUP?efe(e,t):n!==qe.COLGROUP&&wm(e,t);break;case 9:n===qe.PLAINTEXT?VMt(e,t):wm(e,t);break;case 10:n===qe.BLOCKQUOTE||n===qe.FIGCAPTION?o3(e,t):wm(e,t);break;default:wm(e,t)}}function oNt(e){e.openElements.hasInScope(qe.BODY)&&(e.insertionMode=nre)}function aNt(e,t){e.openElements.hasInScope(qe.BODY)&&(e.insertionMode=nre,e._processToken(t))}function w8(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function iNt(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(qe.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(qe.FORM):e.openElements.remove(n))}function sNt(e){e.openElements.hasInButtonScope(qe.P)||e._insertFakeElement(qe.P),e._closePElement()}function lNt(e){e.openElements.hasInListItemScope(qe.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(qe.LI),e.openElements.popUntilTagNamePopped(qe.LI))}function uNt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cNt(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function nfe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function fNt(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(qe.BR),e.openElements.pop(),e.framesetOk=!1}function Gg(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function rre(e,t){const n=t.tagName;switch(n.length){case 1:n===qe.A||n===qe.B||n===qe.I||n===qe.S||n===qe.U?D8(e,t):n===qe.P?sNt(e):Gg(e,t);break;case 2:n===qe.DL||n===qe.UL||n===qe.OL?w8(e,t):n===qe.LI?lNt(e):n===qe.DD||n===qe.DT?uNt(e,t):n===qe.H1||n===qe.H2||n===qe.H3||n===qe.H4||n===qe.H5||n===qe.H6?cNt(e):n===qe.BR?fNt(e):n===qe.EM||n===qe.TT?D8(e,t):Gg(e,t);break;case 3:n===qe.BIG?D8(e,t):n===qe.DIR||n===qe.DIV||n===qe.NAV||n===qe.PRE?w8(e,t):Gg(e,t);break;case 4:n===qe.BODY?oNt(e):n===qe.HTML?aNt(e,t):n===qe.FORM?iNt(e):n===qe.CODE||n===qe.FONT||n===qe.NOBR?D8(e,t):n===qe.MAIN||n===qe.MENU?w8(e,t):Gg(e,t);break;case 5:n===qe.ASIDE?w8(e,t):n===qe.SMALL?D8(e,t):Gg(e,t);break;case 6:n===qe.CENTER||n===qe.FIGURE||n===qe.FOOTER||n===qe.HEADER||n===qe.HGROUP||n===qe.DIALOG?w8(e,t):n===qe.APPLET||n===qe.OBJECT?nfe(e,t):n===qe.STRIKE||n===qe.STRONG?D8(e,t):Gg(e,t);break;case 7:n===qe.ADDRESS||n===qe.ARTICLE||n===qe.DETAILS||n===qe.SECTION||n===qe.SUMMARY||n===qe.LISTING?w8(e,t):n===qe.MARQUEE?nfe(e,t):Gg(e,t);break;case 8:n===qe.FIELDSET?w8(e,t):n===qe.TEMPLATE?VC(e,t):Gg(e,t);break;case 10:n===qe.BLOCKQUOTE||n===qe.FIGCAPTION?w8(e,t):Gg(e,t);break;default:Gg(e,t)}}function a3(e,t){e.tmplInsertionModeStackTop>-1?D2e(e,t):e.stopped=!0}function dNt(e,t){t.tagName===qe.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function vNt(e,t){e._err(Q1.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function i3(e,t){const n=e.openElements.currentTagName;n===qe.TABLE||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T2e,e._processToken(t)):xm(e,t)}function hNt(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ma.HTML),e.insertionMode=eU}function pNt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ma.HTML),e.insertionMode=fR}function mNt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(qe.COLGROUP),e.insertionMode=fR,e._processToken(t)}function gNt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ma.HTML),e.insertionMode=Om}function yNt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(qe.TBODY),e.insertionMode=Om,e._processToken(t)}function bNt(e,t){e.openElements.hasInTableScope(qe.TABLE)&&(e.openElements.popUntilTagNamePopped(qe.TABLE),e._resetInsertionMode(),e._processToken(t))}function _Nt(e,t){const n=Tn.getTokenAttr(t,C2e.TYPE);n&&n.toLowerCase()===x2e?e._appendElement(t,ma.HTML):xm(e,t),t.ackSelfClosing=!0}function wNt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ma.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ore(e,t){const n=t.tagName;switch(n.length){case 2:n===qe.TD||n===qe.TH||n===qe.TR?yNt(e,t):xm(e,t);break;case 3:n===qe.COL?mNt(e,t):xm(e,t);break;case 4:n===qe.FORM?wNt(e,t):xm(e,t);break;case 5:n===qe.TABLE?bNt(e,t):n===qe.STYLE?p1(e,t):n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD?gNt(e,t):n===qe.INPUT?_Nt(e,t):xm(e,t);break;case 6:n===qe.SCRIPT?p1(e,t):xm(e,t);break;case 7:n===qe.CAPTION?hNt(e,t):xm(e,t);break;case 8:n===qe.COLGROUP?pNt(e,t):n===qe.TEMPLATE?p1(e,t):xm(e,t);break;default:xm(e,t)}}function are(e,t){const n=t.tagName;n===qe.TABLE?e.openElements.hasInTableScope(qe.TABLE)&&(e.openElements.popUntilTagNamePopped(qe.TABLE),e._resetInsertionMode()):n===qe.TEMPLATE?VC(e,t):n!==qe.BODY&&n!==qe.CAPTION&&n!==qe.COL&&n!==qe.COLGROUP&&n!==qe.HTML&&n!==qe.TBODY&&n!==qe.TD&&n!==qe.TFOOT&&n!==qe.TH&&n!==qe.THEAD&&n!==qe.TR&&xm(e,t)}function xm(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function CNt(e,t){e.pendingCharacterTokens.push(t)}function xNt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function OD(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)xm(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function ENt(e,t){const n=t.tagName;n===qe.CAPTION||n===qe.COL||n===qe.COLGROUP||n===qe.TBODY||n===qe.TD||n===qe.TFOOT||n===qe.TH||n===qe.THEAD||n===qe.TR?e.openElements.hasInTableScope(qe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(qe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kv,e._processToken(t)):C0(e,t)}function SNt(e,t){const n=t.tagName;n===qe.CAPTION||n===qe.TABLE?e.openElements.hasInTableScope(qe.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(qe.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=kv,n===qe.TABLE&&e._processToken(t)):n!==qe.BODY&&n!==qe.COL&&n!==qe.COLGROUP&&n!==qe.HTML&&n!==qe.TBODY&&n!==qe.TD&&n!==qe.TFOOT&&n!==qe.TH&&n!==qe.THEAD&&n!==qe.TR&&rre(e,t)}function TNt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.COL?(e._appendElement(t,ma.HTML),t.ackSelfClosing=!0):n===qe.TEMPLATE?p1(e,t):jH(e,t)}function ANt(e,t){const n=t.tagName;n===qe.COLGROUP?e.openElements.currentTagName===qe.COLGROUP&&(e.openElements.pop(),e.insertionMode=kv):n===qe.TEMPLATE?VC(e,t):n!==qe.COL&&jH(e,t)}function jH(e,t){e.openElements.currentTagName===qe.COLGROUP&&(e.openElements.pop(),e.insertionMode=kv,e._processToken(t))}function kNt(e,t){const n=t.tagName;n===qe.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ma.HTML),e.insertionMode=x3):n===qe.TH||n===qe.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(qe.TR),e.insertionMode=x3,e._processToken(t)):n===qe.CAPTION||n===qe.COL||n===qe.COLGROUP||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kv,e._processToken(t)):ore(e,t)}function ONt(e,t){const n=t.tagName;n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kv):n===qe.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=kv,e._processToken(t)):(n!==qe.BODY&&n!==qe.CAPTION&&n!==qe.COL&&n!==qe.COLGROUP||n!==qe.HTML&&n!==qe.TD&&n!==qe.TH&&n!==qe.TR)&&are(e,t)}function MNt(e,t){const n=t.tagName;n===qe.TH||n===qe.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,ma.HTML),e.insertionMode=tU,e.activeFormattingElements.insertMarker()):n===qe.CAPTION||n===qe.COL||n===qe.COLGROUP||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR?e.openElements.hasInTableScope(qe.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Om,e._processToken(t)):ore(e,t)}function NNt(e,t){const n=t.tagName;n===qe.TR?e.openElements.hasInTableScope(qe.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Om):n===qe.TABLE?e.openElements.hasInTableScope(qe.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Om,e._processToken(t)):n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(qe.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Om,e._processToken(t)):(n!==qe.BODY&&n!==qe.CAPTION&&n!==qe.COL&&n!==qe.COLGROUP||n!==qe.HTML&&n!==qe.TD&&n!==qe.TH)&&are(e,t)}function DNt(e,t){const n=t.tagName;n===qe.CAPTION||n===qe.COL||n===qe.COLGROUP||n===qe.TBODY||n===qe.TD||n===qe.TFOOT||n===qe.TH||n===qe.THEAD||n===qe.TR?(e.openElements.hasInTableScope(qe.TD)||e.openElements.hasInTableScope(qe.TH))&&(e._closeTableCell(),e._processToken(t)):C0(e,t)}function INt(e,t){const n=t.tagName;n===qe.TD||n===qe.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=x3):n===qe.TABLE||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==qe.BODY&&n!==qe.CAPTION&&n!==qe.COL&&n!==qe.COLGROUP&&n!==qe.HTML&&rre(e,t)}function M2e(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.OPTION?(e.openElements.currentTagName===qe.OPTION&&e.openElements.pop(),e._insertElement(t,ma.HTML)):n===qe.OPTGROUP?(e.openElements.currentTagName===qe.OPTION&&e.openElements.pop(),e.openElements.currentTagName===qe.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ma.HTML)):n===qe.INPUT||n===qe.KEYGEN||n===qe.TEXTAREA||n===qe.SELECT?e.openElements.hasInSelectScope(qe.SELECT)&&(e.openElements.popUntilTagNamePopped(qe.SELECT),e._resetInsertionMode(),n!==qe.SELECT&&e._processToken(t)):(n===qe.SCRIPT||n===qe.TEMPLATE)&&p1(e,t)}function N2e(e,t){const n=t.tagName;if(n===qe.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===qe.OPTION&&i===qe.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===qe.OPTGROUP&&e.openElements.pop()}else n===qe.OPTION?e.openElements.currentTagName===qe.OPTION&&e.openElements.pop():n===qe.SELECT&&e.o
vendor: 4,393 bytes, line 496
496penElements.hasInSelectScope(qe.SELECT)?(e.openElements.popUntilTagNamePopped(qe.SELECT),e._resetInsertionMode()):n===qe.TEMPLATE&&VC(e,t)}function RNt(e,t){const n=t.tagName;n===qe.CAPTION||n===qe.TABLE||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR||n===qe.TD||n===qe.TH?(e.openElements.popUntilTagNamePopped(qe.SELECT),e._resetInsertionMode(),e._processToken(t)):M2e(e,t)}function LNt(e,t){const n=t.tagName;n===qe.CAPTION||n===qe.TABLE||n===qe.TBODY||n===qe.TFOOT||n===qe.THEAD||n===qe.TR||n===qe.TD||n===qe.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(qe.SELECT),e._resetInsertionMode(),e._processToken(t)):N2e(e,t)}function BNt(e,t){const n=t.tagName;if(n===qe.BASE||n===qe.BASEFONT||n===qe.BGSOUND||n===qe.LINK||n===qe.META||n===qe.NOFRAMES||n===qe.SCRIPT||n===qe.STYLE||n===qe.TEMPLATE||n===qe.TITLE)p1(e,t);else{const r=gMt[n]||sb;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function PNt(e,t){t.tagName===qe.TEMPLATE&&VC(e,t)}function D2e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(qe.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function FNt(e,t){t.tagName===qe.HTML?C0(e,t):WH(e,t)}function $Nt(e,t){t.tagName===qe.HTML?e.fragmentContext||(e.insertionMode=k2e):WH(e,t)}function WH(e,t){e.insertionMode=sb,e._processToken(t)}function zNt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.FRAMESET?e._insertElement(t,ma.HTML):n===qe.FRAME?(e._appendElement(t,ma.HTML),t.ackSelfClosing=!0):n===qe.NOFRAMES&&p1(e,t)}function HNt(e,t){t.tagName===qe.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==qe.FRAMESET&&(e.insertionMode=A2e))}function VNt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.NOFRAMES&&p1(e,t)}function UNt(e,t){t.tagName===qe.HTML&&(e.insertionMode=O2e)}function jNt(e,t){t.tagName===qe.HTML?C0(e,t):nH(e,t)}function nH(e,t){e.insertionMode=sb,e._processToken(t)}function WNt(e,t){const n=t.tagName;n===qe.HTML?C0(e,t):n===qe.NOFRAMES&&p1(e,t)}function GNt(e,t){t.chars=dMt.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function KNt(e,t){e._insertCharacters(t),e.framesetOk=!1}function YNt(e,t){if(rb.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ma.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ma.MATHML?rb.adjustTokenMathMLAttrs(t):r===ma.SVG&&(rb.adjustTokenSVGTagName(t),rb.adjustTokenSVGAttrs(t)),rb.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function qNt(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ma.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const dR=I2e("start"),rU=I2e("end");function XNt(e){return{start:dR(e),end:rU(e)}}function I2e(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}class vR{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}vR.prototype.property={};vR.prototype.normal={};vR.prototype.space=null;function R2e(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new vR(n,r,t)}function HI(e){return e.toLowerCase()}class Pm{constructor(t,n){this.property=t,this.attribute=n}}Pm.prototype.space=null;Pm.prototype.boolean=!1;Pm.prototype.booleanish=!1;Pm.prototype.overloadedBoolean=!1;Pm.prototype.number=!1;Pm.prototype.commaSeparated=!1;Pm.prototype.spaceSeparated=!1;Pm.prototype.commaOrSpaceSeparated=!1;Pm.prototype.mustUseProperty=!1;Pm.prototype.defined=!1;let ZNt=0;const Zi=UC(),yd=UC(),L2e=UC(),wo=UC(),Wu=UC(),LA=UC(),bp=UC();function UC(){return 2**++ZNt}var hee=Object.freeze(Object.defineProperty({__proto__:null,boolean:Zi,booleanish:yd,overloadedBoolean:L2e,number:wo,spaceSeparated:Wu,commaSeparated:LA,commaOrSpaceSeparated:bp},Symbol.toStringTag,{value:"Module"}));const lQ=Object.keys(hee);class ire extends Pm{constructor(t,n,r,i){let l=-1;
vendor: 4,809 bytes, line 496
496if(super(t,n),rfe(this,"space",i),typeof r=="number")for(;++l<lQ.length;){const u=lQ[l];rfe(this,lQ[l],(r&hee[u])===hee[u])}}}ire.prototype.defined=!0;function rfe(e,t,n){n&&(e[t]=n)}const QNt={}.hasOwnProperty;function w7(e){const t={},n={};let r;for(r in e.properties)if(QNt.call(e.properties,r)){const i=e.properties[r],l=new ire(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[HI(r)]=r,n[HI(l.attribute)]=r}return new vR(t,n,e.space)}const B2e=w7({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),P2e=w7({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function F2e(e,t){return t in e?e[t]:t}function $2e(e,t){return F2e(e,t.toLowerCase())}const z2e=w7({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$2e,properties:{xmlns:null,xmlnsXLink:null}}),H2e=w7({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:yd,ariaAutoComplete:null,ariaBusy:yd,ariaChecked:yd,ariaColCount:wo,ariaColIndex:wo,ariaColSpan:wo,ariaControls:Wu,ariaCurrent:null,ariaDescribedBy:Wu,ariaDetails:null,ariaDisabled:yd,ariaDropEffect:Wu,ariaErrorMessage:null,ariaExpanded:yd,ariaFlowTo:Wu,ariaGrabbed:yd,ariaHasPopup:null,ariaHidden:yd,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wu,ariaLevel:wo,ariaLive:null,ariaModal:yd,ariaMultiLine:yd,ariaMultiSelectable:yd,ariaOrientation:null,ariaOwns:Wu,ariaPlaceholder:null,ariaPosInSet:wo,ariaPressed:yd,ariaReadOnly:yd,ariaRelevant:null,ariaRequired:yd,ariaRoleDescription:Wu,ariaRowCount:wo,ariaRowIndex:wo,ariaRowSpan:wo,ariaSelected:yd,ariaSetSize:wo,ariaSort:null,ariaValueMax:wo,ariaValueMin:wo,ariaValueNow:wo,ariaValueText:null,role:null}}),JNt=w7({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$2e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:LA,acceptCharset:Wu,accessKey:Wu,action:null,allow:null,allowFullScreen:Zi,allowPaymentRequest:Zi,allowUserMedia:Zi,alt:null,as:null,async:Zi,autoCapitalize:null,autoComplete:Wu,autoFocus:Zi,autoPlay:Zi,blocking:Wu,capture:null,charSet:null,checked:Zi,cite:null,className:Wu,cols:wo,colSpan:null,content:null,contentEditable:yd,controls:Zi,controlsList:Wu,coords:wo|LA,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Zi,defer:Zi,dir:null,dirName:null,disabled:Zi,download:L2e,draggable:yd,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Zi,formTarget:null,headers:Wu,height:wo,hidden:Zi,high:wo,href:null,hrefLang:null,htmlFor:Wu,httpEquiv:Wu,id:null,imageSizes:null,imageSrcSet:null,inert:Zi,inputMode:null,integrity:null,is:null,isMap:Zi,itemId:null,itemProp:Wu,itemRef:Wu,itemScope:Zi,itemType:Wu,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Zi,low:wo,manifest:null,max:null,maxLength:wo,media:null,method:null,min:null,minLength:wo,multiple:Zi,muted:Zi,name:null,nonce:null,noModule:Zi,noValidate:Zi,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Zi,optimum:wo,pattern:null,ping:Wu,placeholder:null,playsInl
496ine:Zi,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Zi,referrerPolicy:null,rel:Wu,required:Zi,reversed:Zi,rows:wo,rowSpan:wo,sandbox:Wu,scope:null,scoped:Zi,seamless:Zi,selected:Zi,shadowRootClonable:Zi,shadowRootDelegatesFocus:Zi,shadowRootMode:null,shape:null,size:wo,sizes:null,slot:null,span:wo,spellCheck:yd,src:null,srcDoc:null,srcLang:null,srcSet:null,start:wo,step:null,style:null,tabIndex:wo,target:null,title:null,translate:null,type:null,typeMustMatch:Zi,useMap:null,value:yd,width:wo,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wu,axis:null,background:null,bgColor:null,border:wo,borderColor:null,bottomMargin:wo,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Zi,declare:Zi,event:null,face:null,frame:null,frameBorder:null,hSpace:wo,leftMargin:wo,link:null,longDesc:null,lowSrc:null,marginHeight:wo,marginWidth:wo,noResize:Zi,noHref:Zi,noShade:Zi,noWrap:Zi,object:null,profile:null,prompt:null,rev:null,rightMargin:wo,rules:null,scheme:null,scrolling:yd,standby:null,summary:null,text:null,topMargin:wo,valueType:null,version:null,vAlign:null,vLink:null,vSpace:wo,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Zi,disableRemotePlayback:Zi,prefix:null,property:null,results:wo,security:null,unselectable:null}}),eDt=w7({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
496-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:F2e,properties:{about:bp,accentHeight:wo,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:wo,amplitude:wo,arabicForm:null,ascent:wo,attributeName:null,attributeType:null,azimuth:wo,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:wo,by:null,calcMode:null,capHeight:wo,className:Wu,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:wo,diffuseConstant:wo,direction:null,display:null,dur:null,divisor:wo,dominantBaseline:null,download:Zi,dx:null,dy:null,edgeMode:null,editable:null,elevation:wo,enableBackground:null,end:null,event:null,exponent:wo,externalResourcesRequired:null,fill:null,fillOpacity:wo,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:LA,g2:LA,glyphName:LA,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:wo,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:wo,horizOriginX:wo,horizOriginY:wo,id:null,ideographic:wo,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:wo,k:wo,k1:wo,
vendor: 10,557 bytes, line 496
496k2:wo,k3:wo,k4:wo,kernelMatrix:bp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:wo,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:wo,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:wo,overlineThickness:wo,paintOrder:null,panose1:null,path:null,pathLength:wo,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Wu,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:wo,pointsAtY:wo,pointsAtZ:wo,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bp,rev:bp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bp,requiredFeatures:bp,requiredFonts:bp,requiredFormats:bp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:wo,specularExponent:wo,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:wo,strikethroughThickness:wo,string:null,stroke:null,strokeDashArray:bp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:wo,strokeOpacity:wo,strokeWidth:null,style:null,surfaceScale:wo,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bp,tabIndex:wo,tableValues:null,target:null,targetX:wo,targetY:wo,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:wo,underlineThickness:wo,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:wo,values:null,vAlphabetic:wo,vMathematical:wo,vectorEffect:null,vHanging:wo,vIdeographic:wo,version:null,vertAdvY:wo,vertOriginX:wo,vertOriginY:wo,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:wo,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tDt=/^data[-\w.:]+$/i,ofe=/-[a-z]/g,nDt=/[A-Z]/g;function oU(e,t){const n=HI(t);let r=t,i=Pm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&tDt.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ofe,oDt);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ofe.test(l)){let u=l.replace(nDt,rDt);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=ire}return new i(r,t)}function rDt(e){return"-"+e.toLowerCase()}function oDt(e){return e.charAt(1).toUpperCase()}const hR=R2e([P2e,B2e,z2e,H2e,JNt],"html"),jC=R2e([P2e,B2e,z2e,H2e,eDt],"svg"),afe=/[#.]/g;function aDt(e,t){const n=e||"",r={};let i=0,l,u;for(;i<n.length;){afe.lastIndex=i;const f=afe.exec(n),v=n.slice(i,f?f.index:n.length);v&&(l?l==="#"?r.id=v:Array.isArray(r.className)?r.className.push(v):r.className=[v]:u=v,i+=v.length),f&&(l=f[0],i++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function ife(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function V2e(e){return e.join(" ").trim()}function sfe(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,l=!1;for(;!l;){r===-1&&(r=n.length,l=!0);const u=n.slice(i,r).trim();(u||!l)&&t.push(u),i=r+1,r=n.indexOf(",",i)}return t}function U2e(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iDt=new Set(["menu","submit","reset","button"]),pee={}.hasOwnProperty;function j2e(e,t,n){const r=n&&cDt(n);return function(l,u,...f){let v=-1,h;if(l==null)h={type:"root",children:[]},f.unshift(u);else if(h=aDt(l,t),h.tagName=h.tagName.toLowerCase(),r&&pee.call(r,h.tagName)&&(h.tagName=r[h.tagName]),sDt(u,h.tagName)){let g;for(g in u)pee.call(u,g)&&lDt(e,h.properties,g,u[g])}else f.unshift(u);for(;++v<f.length;)mee(h.children,f[v]);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}}function sDt(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?iDt.has(e.type.toLowerCase()):!("value"in e)}function lDt(e,t,n,r){const i=oU(e,n);let l=-1,u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?i.spaceSeparated?u=ife(r):i.commaSeparated?u=sfe(r):i.commaOrSpaceSeparated?u=ife(sfe(r).join(" ")):u=lfe(i,i.property,r):Array.isArray(r)?u=r.concat():u=i.property==="style"?uDt(r):String(r);if(Array.isArray(u)){const f=[];for(;++l<u.length;)f[l]=lfe(i,i.property,u[l]);u=f}i.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[i.property]=u}}function mee(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)mee(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?mee(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function lfe(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||HI(n)===HI(t)))return!0}return n}function uDt(e){const t=[];let n;for(n in e)pee.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function cDt(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const fDt=j2e(hR,"div"),dDt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],vDt=j2e(jC,"g",dDt);function hDt(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:l};function i(u){let f=-1;if(typeof u=="number"&&u>-1&&u<n[n.length-1]){for(;++f<n.length;)if(n[f]>u)return{line:f+1,column:u-(f>0?n[f-1]:0)+1,offset:u}}return{line:void 0,column:void 0,offset:void 0}}function l(u){const f=u&&u.line,v=u&&u.column;if(typeof f=="number"&&typeof v=="number"&&!Number.isNaN(f)&&!Number.isNaN(v)&&f-1 in n){const h=(n[f-2]||0)+v-1||0;if(h>-1&&h<n[n.length-1])return h}return-1}}const VI={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},W2e={}.hasOwnProperty,pDt=Object.prototype;function mDt(e,t){const n=t||{};let r,i;return bDt(n)?(i=n,r={}):(i=n.file||void 0,r=n),sre({schema:r.space==="svg"?jC:hR,file:i,verbose:r.verbose,location:!1},e)}function sre(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},rH(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:G2e(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const l=String(e.file),u=hDt(l),f=u.toPoint(0),v=u.toPoint(l.length);n.position={start:f,end:v}}return n}case"#documentType":{const r=t;return n={type:"doctype"},rH(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},rH(e,r,n),n}default:return n=gDt(e,t),n}}function G2e(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=sre(e,t[n]);return r}function gDt(e,t){const n=e.schema;e.schema=t.namespaceURI===VI.svg?jC:hR;let r=-1;const i={};for(;++r<t.attrs.length;){const f=t.attrs[r],v=(f.prefix?f.prefix+":":"")+f.name;W2e.call(pDt,v)||(i[v]=f.value)}const u=(e.schema.space==="svg"?vDt:fDt)(t.tagName,i,G2e(e,t.childNodes));if(rH(e,t,u),u.tagName==="template"){const f=t,v=f.sourceCodeLocation,h=v&&v.startTag&&CA(v.startTag),g=v&&v.endTag&&CA(v.endTag),y=sre(e,f.content);h&&g&&e.file&&(y.position={start:h.end,end:g.start}),u.content=y}return e.schema=n,u}function rH(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=yDt(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function yDt(e,t,n){const r=CA(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const l={};let u;
496if(n.attrs)for(u in n.attrs)W2e.call(n.attrs,u)&&(l[oU(e.schema,u).property]=CA(n.attrs[u]));t.data={position:{opening:CA(n.startTag),closing:n.endTag?CA(n.endTag):null,properties:l}}}}return r}function CA(e){const t=ufe({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ufe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ufe(e){return e.line&&e.column?e:void 0}function bDt(e){return"messages"in e}const cfe={}.hasOwnProperty;function lre(e,t){const n=t||{};function r(i,...l){let u=r.invalid;const f=r.handlers;if(i&&cfe.call(i,e)){const v=String(i[e]);u=cfe.call(f,v)?f[v]:r.unknown}if(u)return u.call(this,i,...l)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const _Dt={}.hasOwnProperty,K2e=lre("type",{handlers:{root:CDt,element:ADt,text:SDt,comment:TDt,doctype:EDt}});function wDt(e,t){const n=t&&typeof t=="object"?t.space:t;return K2e(e,n==="svg"?jC:hR)}function CDt(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ure(e.children,n,t),C7(e,n),n}function xDt(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ure(e.children,n,t),C7(e,n),n}function EDt(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return C7(e,t),t}function SDt(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return C7(e,t),t}function TDt(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return C7(e,t),t}function ADt(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=jC);const i=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&_Dt.call(e.properties,l)){const f=kDt(r,l,e.properties[l]);f&&i.push(f)}}const u={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:VI[r.space],childNodes:[],parentNode:void 0};return u.childNodes=ure(e.children,u,r),C7(e,u),e.tagName==="template"&&e.content&&(u.content=xDt(e.content,r)),u}function kDt(e,t,n){const r=oU(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?U2e(n):V2e(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const l=i.name.indexOf(":");l<0?i.prefix="":(i.name=i.name.slice(l+1),i.prefix=r.attribute.slice(0,l)),i.namespace=VI[r.space]}return i}function ure(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const l=K2e(e[r],n);l.parentNode=t,i.push(l)}return i}function C7(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Y2e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],ODt="IN_TEMPLATE_MODE",MDt="DATA_STATE",NDt="CHARACTER_TOKEN",DDt="START_TAG_TOKEN",IDt="END_TAG_TOKEN",RDt="COMMENT_TOKEN",LDt="DOCTYPE_TOKEN",BDt={sourceCodeLocationInfo:!0,scriptingEnabled:!1},q2e=function(e,t,n){let r=-1;const i=new bMt(BDt),l=lre("type",{handlers:{root:T,element:B,text:F,comment:N,doctype:R,raw:A},unknown:zDt});let u,f,v,h,g;if(VDt(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)l.handlers[n.passThrough[r]]=X;const y=mDt(HDt(e)?C():w(),t);if(u&&YV(y,"comment",(z,Y,Q)=>{const $=z;if($.value.stitch&&Q!==null&&Y!==null)return Q.children[Y]=$.value.stitch,Y}),e.type!=="root"&&y.type==="root"&&y.children.length===1)return y.children[0];return y;function w(){const z={nodeName:"template",tagName:"template",attrs:[],namespaceURI:VI.html,childNodes:[]},Y={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:VI.html,childNodes:[]},Q={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(Y,z),i._pushTmplInsertionMode(ODt),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),f=i.tokenizer,!f)throw new Error("Expected `tokenizer`");return v=f.preprocessor,g=f.__mixins[0],h=g.posTracker,l(e),Z(),i._adoptNodes(Y.childNodes[0],Q),Q}function C(){const z=i.treeAdapter.createDocument();if(i._bootstrap(z,void 0),f=i.tokenizer,!f)throw new Error("Expected `tokenizer`");return v=f.preprocessor,g=f.__mixins[0],h=g.posTracker,l(e),Z(),z}function S(z){let Y=-1;if(z)for(;++Y<z.length;)l(z[Y])}function T(z){S(z.children)}function B(z){Z(),i._processInputToken(PDt(z)),S(z.children),Y2e.includes(z.tagName)||(Z(),i._processInputToken($Dt(z)))}function F(z){Z(),i._processInputToken({type:NDt,chars:z.value,location:xA(z)})}function R(z){Z(),i._processInputToken({type:LDt,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xA(z)})}function N(z){Z(),i._processInputToken({type:RDt,data:z.value,location:xA(z)})}function A(z){const Y=dR(z),Q=Y.line||1,$=Y.column||1,te=Y.offset||0;if(!v)throw new Error("Expected `preprocessor`");if(!f)throw new Error("Expected `tokenizer`");
496if(!h)throw new Error("Expected `posTracker`");if(!g)throw new Error("Expected `locationTracker`");v.html=void 0,v.pos=-1,v.lastGapPos=-1,v.lastCharPos=-1,v.gapStack=[],v.skipNextNewLine=!1,v.lastChunkWritten=!1,v.endOfChunkHit=!1,h.isEol=!1,h.lineStartPos=-$+1,h.droppedBufferSize=te,h.offset=0,h.col=1,h.line=Q,g.currentAttrLocation=void 0,g.ctLoc=xA(z),f.write(z.value),i._runParsingLoop(null),(f.state==="NAMED_CHARACTER_REFERENCE_STATE"||f.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(v.lastChunkWritten=!0,f[f.state](f._consume()))}function X(z){u=!0;let Y;"children"in z?Y={...z,children:q2e({type:"root",children:z.children},t,n).children}:Y={...z},N({type:"comment",value:{stitch:Y}})}function Z(){if(!f)throw new Error("Expected `tokenizer`");if(!h)throw new Error("Expected `posTracker`");const z=f.currentCharacterToken;z&&(z.location.endLine=h.line,z.location.endCol=h.col+1,z.location.endOffset=h.offset+1,i._processInputToken(z)),f.tokenQueue=[],f.state=MDt,f.returnState="",f.charRefCode=-1,f.tempBuff=[],f.lastStartTagName="",f.consumedAfterSnapshot=-1,f.active=!1,f.currentCharacterToken=void 0,f.currentToken=void 0,f.currentAttr=void 0}};function PDt(e){const t=Object.assign(xA(e));return t.startTag=Object.assign({},t),{type:DDt,tagName:e.tagName,selfClosing:!1,attrs:FDt(e),location:t}}function FDt(e){return wDt({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function $Dt(e){const t=Object.assign(xA(e));return t.startTag=Object.assign({},t),{type:IDt,tagName:e.tagName,attrs:[],location:t}}function zDt(e){throw new Error("Cannot compile `"+e.type+"` node")}function HDt(e){const t=e.type==="root"?e.children[0]:e;return Boolean(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function xA(e){const t=dR(e),n=rU(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function VDt(e){return Boolean(e&&!("message"in e&&"messages"in e))}function UDt(e={}){return(t,n)=>q2e(t,n,e)}function jDt(e=qne){return t=>Kkt(t,e)}const WDt=/["&'<>`]/g,GDt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KDt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,YDt=/[|\\{}()[\]^$+*?.]/g,ffe=new WeakMap;function qDt(e,t){if(e=e.replace(t.subset?XDt(t.subset):WDt,r),t.subset||t.escapeOnly)return e;return e.replace(GDt,n).replace(KDt,r);function n(i,l,u){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,u.charCodeAt(l+2),t)}function r(i,l,u){return t.format(i.charCodeAt(0),u.charCodeAt(l+1),t)}}function XDt(e){let t=ffe.get(e);return t||(t=ZDt(e),ffe.set(e,t)),t}function ZDt(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(YDt,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const QDt=/[\dA-Fa-f]/;function JDt(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!QDt.test(String.fromCharCode(t))?r:r+";"}const eIt=/\d/;function tIt(e,t,n){const r="&#"+String(e);return n&&t&&!eIt.test(String.fromCharCode(t))?r:r+";"}const nIt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
496sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],uQ={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},rIt=["cent","copy","divide","gt","lt","not","para","times"],X2e={}.hasOwnProperty,gee={};let gz;for(gz in uQ)X2e.call(uQ,gz)&&(gee[uQ[gz]]=gz);const oIt=/[^\dA-Za-z]/;function aIt(e,t,n,r){const i=String.fromCharCode(e);if(X2e.call(gee,i)){const l=gee[i],u="&"+l;return n&&nIt.includes(l)&&!rIt.includes(l)&&(!r||t&&t!==61&&oIt.test(String.fromCharCode(t)))?u:u+";"}return""}function iIt(e,t,n){let r=JDt(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=aIt(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const l=tIt(e,t,n.omitOptionalSemicolons);l.length<r.length&&(r=l)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function BA(e,t){return qDt(e,Object.assign({format:iIt},t))}function sIt(e,t,n,r){return r.settings.bogusComments?"<?"+BA(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(l){return BA(l,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}
vendor: 8,476 bytes, lines 496-504
496function lIt(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function GH(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function cre(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const xd=Q2e(1),Z2e=Q2e(-1);function Q2e(e){return t;function t(n,r,i){const l=n?n.children:[];let u=(r||0)+e,f=l&&l[u];if(!i)for(;f&&cre(f);)u+=e,f=l[u];return f}}const uIt={}.hasOwnProperty;function J2e(e){return t;function t(n,r,i){return uIt.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const fre=J2e({html:cIt,head:cQ,body:fIt,p:dIt,li:vIt,dt:hIt,dd:pIt,rt:dfe,rp:dfe,optgroup:mIt,option:gIt,menuitem:yIt,colgroup:cQ,caption:cQ,thead:bIt,tbody:_It,tfoot:wIt,tr:CIt,td:vfe,th:vfe});function cQ(e,t,n){const r=xd(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&cre(r.value.charAt(0)))}function cIt(e,t,n){const r=xd(n,t);return!r||r.type!=="comment"}function fIt(e,t,n){const r=xd(n,t);return!r||r.type!=="comment"}function dIt(e,t,n){const r=xd(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function vIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&r.tagName==="li"}function hIt(e,t,n){const r=xd(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function pIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function dfe(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function mIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function gIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function yIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function bIt(e,t,n){const r=xd(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function _It(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function wIt(e,t,n){return!xd(n,t)}function CIt(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function vfe(e,t,n){const r=xd(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const xIt=J2e({html:EIt,head:SIt,body:TIt,colgroup:AIt,tbody:kIt});function EIt(e){const t=xd(e,-1);return!t||t.type!=="comment"}function SIt(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const i=t[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return t.length>0}function TIt(e){const t=xd(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&cre(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function AIt(e,t,n){const r=Z2e(n,t),i=xd(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&fre(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function kIt(e,t,n){const r=Z2e(n,t),i=xd(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&fre(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const yz={name:[[` 497\f\r &/=>`.split(""),` 498\f\r "&'/=>\``.split("")],[`\0 499\f\r "&'/<=>`.split(""),`\0 500\f\r "&'/<=>\``.split("")]],unquoted:[[` 501\f\r &>`.split(""),`\0 502\f\r "&'<=>\``.split("")],[`\0 503\f\r "&'<=>\``.split(""),`\0 504\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function OIt(e,t,n,r){const i=r.schema,l=i.space==="svg"?!1:r.settings.omitOptionalTags;let u=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const f=[];let v;i.space==="html"&&e.tagName==="svg"&&(r.schema=jC);const h=MIt(r,e.properties),g=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,g&&(u=!1),(h||!l||!xIt(e,t,n))&&(f.push("<",e.tagName,h?" "+h:""),u&&(i.space==="svg"||r.settings.closeSelfClosing)&&(v=h.charAt(h.length-1),(!r.settings.tightSelfClosing||v==="/"||v&&v!=='"'&&v!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(g),!u&&(!l||!fre(e,t,n))&&f.push("</"+e.tagName+">"),f.join("")}function MIt(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const l=NIt(e,i,t[i]);l&&n.push(l)}}for(;++r<n.length;){const l=e.settings.tightAttributes?n[r].charAt(n[r].length-1):null;r!==n.length-1&&l!=='"'&&l!=="'"&&(n[r]+=" ")}return n.join("")}function NIt(e,t,n){const r=oU(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,l=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=Boolean(n)),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const v=BA(r.attribute,Object.assign({},e.settings.characterReferences,{subset:yz.name[i][l]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?U2e:V2e)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?v:(e.settings.preferUnquoted&&(f=BA(n,Object.assign({},e.settings.characterReferences,{subset:yz.unquoted[i][l],attribute:!0}))),f!==n&&(e.settings.quoteSmart&&GH(n,u)>GH(n,e.alternative)&&(u=e.alternative),f=u+BA(n,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?yz.single:yz.double)[i][l],attribute:!0}))+u),v+(f&&"="+f))}function eye(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:BA(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function DIt(e,t,n,r){return r.settings.allowDangerousHtml?e.value:eye(e,t,n,r)}function IIt(e,t,n,r){return r.all(e)}const RIt=lre("type",{invalid:LIt,unknown:BIt,handlers:{comment:sIt,doctype:lIt,element:OIt,raw:DIt,root:IIt,text:eye}});function LIt(e){throw new Error("Expected node, not `"+e+"`")}function BIt(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function PIt(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:FIt,all:$It,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Y2e,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?jC:hR,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function FIt(e,t,n){return RIt(e,t,n,this)}function $It(e){const t=[],n=e&&e.children||[];let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function zIt(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return PIt(i,n)}}const HIt={};function VIt(e,t){const n=t||HIt,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tye(e,r,i)}
vendor: 10,678 bytes, line 504
504function tye(e,t,n){if(UIt(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hfe(e.children,t,n)}return Array.isArray(e)?hfe(e,t,n):""}function hfe(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=tye(e[i],t,n);return r.join("")}function UIt(e){return Boolean(e&&typeof e=="object")}function Ap(e,t,n,r){const i=e.length;let l=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<r.length;)u=r.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function Em(e,t){return e.length>0?(Ap(e,e.length,0,t),e):t}const pfe={}.hasOwnProperty;function nye(e){const t={};let n=-1;for(;++n<e.length;)jIt(t,e[n]);return t}function jIt(e,t){let n;for(n in t){const i=(pfe.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){pfe.call(i,u)||(i[u]=[]);const f=l[u];WIt(i[u],Array.isArray(f)?f:f?[f]:[])}}}function WIt(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ap(e,0,0,r)}const GIt=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,gh=Z8(/[A-Za-z]/),Mv=Z8(/[\dA-Za-z]/),KIt=Z8(/[#-'*+\--9=?A-Z^-~]/);function KH(e){return e!==null&&(e<32||e===127)}const yee=Z8(/\d/),YIt=Z8(/[\dA-Fa-f]/),qIt=Z8(/[!-/:-@[-`{-~]/);function Ba(e){return e!==null&&e<-2}function Su(e){return e!==null&&(e<0||e===32)}function As(e){return e===-2||e===-1||e===32}const aU=Z8(GIt),DC=Z8(/\s/);function Z8(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function bs(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(v){return As(v)?(e.enter(n),f(v)):t(v)}function f(v){return As(v)&&l++<i?(e.consume(v),f):(e.exit(n),t(v))}}const XIt={tokenize:ZIt};function ZIt(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),bs(e,t,"linePrefix")}function i(f){return e.enter("paragraph"),l(f)}function l(f){const v=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=v),n=v,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ba(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),u)}}const QIt={tokenize:JIt},mfe={tokenize:eRt};function JIt(e){const t=this,n=[];let r=0,i,l,u;return f;function f(N){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,v,h)(N)}return h(N)}function v(N){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&R();const A=t.events.length;let X=A,Z;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){Z=t.events[X][1].end;break}F(r);let z=A;for(;z<t.events.length;)t.events[z][1].end=Object.assign({},Z),z++;return Ap(t.events,X+1,0,t.events.slice(A)),t.events.length=z,h(N)}return f(N)}function h(N){if(r===n.length){if(!i)return w(N);if(i.currentConstruct&&i.currentConstruct.concrete)return S(N);t.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mfe,g,y)(N)}function g(N){return i&&R(),F(r),w(N)}function y(N){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,S(N)}function w(N){return t.containerState={},e.attempt(mfe,C,S)(N)}function C(N){return r++,n.push([t.currentConstruct,t.containerState]),w(N)}function S(N){if(N===null){i&&R(),F(0),e.consume(N);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),T(N)}function T(N){if(N===null){B(e.exit("chunkFlow"),!0),F(0),e.consume(N);return}return Ba(N)?(e.consume(N),B(e.exit("chunkFlow")),r=0,t.interrupt=void 0,f):(e.consume(N),T)}function B(N,A){const X=t.sliceStream(N);if(A&&X.push(null),N.previous=l,l&&(l.next=N),l=N,i.defineSkip(N.start),i.write(X),t.parser.lazy[N.start.line]){let Z=i.events.length;for(;Z--;)if(i.events[Z][1].start.offset<u&&(!i.events[Z][1].end||i.events[Z][1].end.offset>u))return;const z=t.events.length;let Y=z,Q,$;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(Q){$=t.events[Y][1].end;break}Q=!0}for(F(r),Z=z;Z<t.events.length;)t.events[Z][1].end=Object.assign({},$),Z++;Ap(t.events,Y+1,0,t.events.slice(z)),t.events.length=Z}}function F(N){let A=n.length;for(;A-- >N;){const X=n[A];t.containerState=X[1],X[0].exit.call(t,e)}n.length=N}function R(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function eRt(e,t,n){return bs(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function YH(e){if(e===null||Su(e)||DC(e))return 1;if(aU(e))return 2}function iU(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const bee={name:"attention",tokenize:nRt,resolveAll:tRt};function tRt(e,t){let n=-1,r,i,l,u,f,v,h,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;v=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y=Object.assign({},e[r][1].end),w=Object.assign({},e[n][1].start);gfe(y,-v),gfe(w,v),u={type:v>1?"strongSequence":"emphasisSequence",start:y,end:Object.assign({},e[r][1].end)},f={type:v>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:w},l={type:v>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:v>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},f.end)},e[r][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},f.end),h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Em(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Em(h,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=Em(h,iU(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Em(h,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,h=Em(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,Ap(e,r-1,n-r+3,h),n=r+h.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nRt(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=YH(r);let l;return u;function u(v){return l=v,e.enter("attentionSequence"),f(v)}function f(v){if(v===l)return e.consume(v),f;const h=e.exit("attentionSequence"),g=YH(v),y=!g||g===2&&i||n.includes(v),w=!i||i===2&&g||n.includes(r);return h._open=Boolean(l===42?y:y&&(i||!w)),h._close=Boolean(l===42?w:w&&(g||!y)),t(v)}}function gfe(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rRt={name:"autolink",tokenize:oRt};function oRt(e,t,n){let r=0;return i;function i(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(C){return gh(C)?(e.consume(C),u):h(C)}function u(C){return C===43||C===45||C===46||Mv(C)?(r=1,f(C)):h(C)}function f(C){return C===58?(e.consume(C),r=0,v):(C===43||C===45||C===46||Mv(C))&&r++<32?(e.consume(C),f):(r=0,h(C))}function v(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),t):C===null||C===32||C===60||KH(C)?n(C):(e.consume(C),v)}function h(C){return C===64?(e.consume(C),g):KIt(C)?(e.consume(C),h):n(C)}function g(C){return Mv(C)?y(C):n(C)}function y(C){return C===46?(e.consume(C),r=0,g):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),t):w(C)}function w(C){if((C===45||Mv(C))&&r++<63){const S=C===45?w:y;return e.consume(C),S}return n(C)}}const pR={tokenize:aRt,partial:!0};function aRt(e,t,n){return r;function r(l){return As(l)?bs(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Ba(l)?t(l):n(l)}}const rye={name:"blockQuote",tokenize:iRt,continuation:{tokenize:sRt},exit:lRt};function iRt(e,t,n){const r=this;return i;function i(u){if(u===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return As(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function sRt(e,t,n){const r=this;return i;function i(u){return As(u)?bs(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(rye,t,n)(u)}}function lRt(e){e.exit("blockQuote")}const oye={name:"characterEscape",tokenize:uRt};function uRt(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return qIt(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const yfe=document.createElement("i");function dre(e){const t="&"+e+";";yfe.innerHTML=t;const n=yfe.textContent;
vendor: 4,983 bytes, line 504
504return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const aye={name:"characterReference",tokenize:cRt};function cRt(e,t,n){const r=this;let i=0,l,u;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),v}function v(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,u=Mv,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=YIt,g):(e.enter("characterReferenceValue"),l=7,u=yee,g(y))}function g(y){if(y===59&&i){const w=e.exit("characterReferenceValue");return u===Mv&&!dre(r.sliceSerialize(w))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(y)&&i++<l?(e.consume(y),g):n(y)}}const bfe={tokenize:dRt,partial:!0},_fe={name:"codeFenced",tokenize:fRt,concrete:!0};function fRt(e,t,n){const r=this,i={tokenize:X,partial:!0};let l=0,u=0,f;return v;function v(Z){return h(Z)}function h(Z){const z=r.events[r.events.length-1];return l=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,f=Z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(Z)}function g(Z){return Z===f?(u++,e.consume(Z),g):u<3?n(Z):(e.exit("codeFencedFenceSequence"),As(Z)?bs(e,y,"whitespace")(Z):y(Z))}function y(Z){return Z===null||Ba(Z)?(e.exit("codeFencedFence"),r.interrupt?t(Z):e.check(bfe,T,A)(Z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),w(Z))}function w(Z){return Z===null||Ba(Z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(Z)):As(Z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),bs(e,C,"whitespace")(Z)):Z===96&&Z===f?n(Z):(e.consume(Z),w)}function C(Z){return Z===null||Ba(Z)?y(Z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(Z))}function S(Z){return Z===null||Ba(Z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(Z)):Z===96&&Z===f?n(Z):(e.consume(Z),S)}function T(Z){return e.attempt(i,A,B)(Z)}function B(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),F}function F(Z){return l>0&&As(Z)?bs(e,R,"linePrefix",l+1)(Z):R(Z)}function R(Z){return Z===null||Ba(Z)?e.check(bfe,T,A)(Z):(e.enter("codeFlowValue"),N(Z))}function N(Z){return Z===null||Ba(Z)?(e.exit("codeFlowValue"),R(Z)):(e.consume(Z),N)}function A(Z){return e.exit("codeFenced"),t(Z)}function X(Z,z,Y){let Q=0;return $;function $(de){return Z.enter("lineEnding"),Z.consume(de),Z.exit("lineEnding"),te}function te(de){return Z.enter("codeFencedFence"),As(de)?bs(Z,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):V(de)}function V(de){return de===f?(Z.enter("codeFencedFenceSequence"),K(de)):Y(de)}function K(de){return de===f?(Q++,Z.consume(de),K):Q>=u?(Z.exit("codeFencedFenceSequence"),As(de)?bs(Z,fe,"whitespace")(de):fe(de)):Y(de)}function fe(de){return de===null||Ba(de)?(Z.exit("codeFencedFence"),z(de)):Y(de)}}}function dRt(e,t,n){const r=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const fQ={name:"codeIndented",tokenize:hRt},vRt={tokenize:pRt,partial:!0};function hRt(e,t,n){const r=this;return i;function i(h){return e.enter("codeIndented"),bs(e,l,"linePrefix",4+1)(h)}function l(h){const g=r.events[r.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?v(h):Ba(h)?e.attempt(vRt,u,v)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Ba(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),f)}function v(h){return e.exit("codeIndented"),t(h)}}function pRt(e,t,n){const r=this;return i;function i(u){return r.parser.lazy[r.now().line]?n(u):Ba(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):bs(e,l,"linePrefix",4+1)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Ba(u)?i(u):n(u)}}const mRt={name:"codeText",tokenize:bRt,resolve:gRt,previous:yRt};function gRt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function yRt(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bRt(e,t,n){let r=0,i,l;return u;
vendor: 20,687 bytes, line 504
504function u(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),r++,f):(e.exit("codeTextSequence"),v(y))}function v(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),v):y===96?(l=e.enter("codeTextSequence"),i=0,g(y)):Ba(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),v):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ba(y)?(e.exit("codeTextData"),v(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),i++,g):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(l.type="codeTextData",h(y))}}function iye(e){const t={};let n=-1,r,i,l,u,f,v,h;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(v=r[1]._tokenizer.events,l=0,l<v.length&&v[l][1].type==="lineEndingBlank"&&(l+=2),l<v.length&&v[l][1].type==="content"))for(;++l<v.length&&v[l][1].type!=="content";)v[l][1].type==="chunkText"&&(v[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_Rt(e,n)),n=t[n],h=!0);else if(r[1]._container){for(l=n,i=void 0;l--&&(u=e[l],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),u[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},e[i][1].start),f=e.slice(i,n),f.unshift(r),Ap(e,i,n-i+1,f))}}return!h}function _Rt(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const l=[],u=n._tokenizer||r.parser[n.contentType](n.start),f=u.events,v=[],h={};let g,y,w=-1,C=n,S=0,T=0;const B=[T];for(;C;){for(;e[++i][1]!==C;);l.push(i),C._tokenizer||(g=r.sliceStream(C),C.next||g.push(null),y&&u.defineSkip(C.start),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),C._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=C,C=C.next}for(C=n;++w<f.length;)f[w][0]==="exit"&&f[w-1][0]==="enter"&&f[w][1].type===f[w-1][1].type&&f[w][1].start.line!==f[w][1].end.line&&(T=w+1,B.push(T),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(u.events=[],C?(C._tokenizer=void 0,C.previous=void 0):B.pop(),w=B.length;w--;){const F=f.slice(B[w],B[w+1]),R=l.pop();v.unshift([R,R+F.length-1]),Ap(e,R,2,F)}for(w=-1;++w<v.length;)h[S+v[w][0]]=S+v[w][1],S+=v[w][1]-v[w][0]-1;return h}const wRt={tokenize:ERt,resolve:xRt},CRt={tokenize:SRt,partial:!0};function xRt(e){return iye(e),e}function ERt(e,t){let n;return r;function r(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(f)}function i(f){return f===null?l(f):Ba(f)?e.check(CRt,u,l)(f):(e.consume(f),i)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function SRt(e,t,n){const r=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),bs(e,l,"linePrefix")}function l(u){if(u===null||Ba(u))return n(u);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function sye(e,t,n,r,i,l,u,f,v){const h=v||Number.POSITIVE_INFINITY;let g=0;return y;function y(F){return F===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(F),e.exit(l),w):F===null||F===32||F===41||KH(F)?n(F):(e.enter(r),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),T(F))}function w(F){return F===62?(e.enter(l),e.consume(F),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===62?(e.exit("chunkString"),e.exit(f),w(F)):F===null||F===60||Ba(F)?n(F):(e.consume(F),F===92?S:C)}function S(F){return F===60||F===62||F===92?(e.consume(F),C):C(F)}function T(F){return!g&&(F===null||F===41||Su(F))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(r),t(F)):g<h&&F===40?(e.consume(F),g++,T):F===41?(e.consume(F),g--,T):F===null||F===32||F===40||KH(F)?n(F):(e.consume(F),F===92?B:T)}function B(F){return F===40||F===41||F===92?(e.consume(F),T):T(F)}}function lye(e,t,n,r,i,l){const u=this;let f=0,v;return h;function h(C){return e.enter(r),e.enter(i),e.consume(C),e.exit(i),e.enter(l),g}function g(C){return f>999||C===null||C===91||C===93&&!v||C===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(C):C===93?(e.exit(l),e.enter(i),e.consume(C),e.exit(i),e.exit(r),t):Ba(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===null||C===91||C===93||Ba(C)||f++>999?(e.exit("chunkString"),g(C)):(e.consume(C),v||(v=!As(C)),C===92?w:y)}function w(C){return C===91||C===92||C===93?(e.consume(C),f++,y):y(C)}}function uye(e,t,n,r,i,l){let u;return f;function f(w){return w===34||w===39||w===40?(e.enter(r),e.enter(i),e.consume(w),e.exit(i),u=w===40?41:w,v):n(w)}function v(w){return w===u?(e.enter(i),e.consume(w),e.exit(i),e.exit(r),t):(e.enter(l),h(w))}function h(w){return w===u?(e.exit(l),v(u)):w===null?n(w):Ba(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),bs(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===u||w===null||Ba(w)?(e.exit("chunkString"),h(w)):(e.consume(w),w===92?y:g)}function y(w){return w===u||w===92?(e.consume(w),g):g(w)}}function sI(e,t){let n;return r;function r(i){return Ba(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):As(i)?bs(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function t2(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const TRt={name:"definition",tokenize:kRt},ARt={tokenize:ORt,partial:!0};function kRt(e,t,n){const r=this;let i;return l;function l(C){return e.enter("definition"),u(C)}function u(C){return lye.call(r,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function f(C){return i=t2(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),v):n(C)}function v(C){return Su(C)?sI(e,h)(C):h(C)}function h(C){return sye(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function g(C){return e.attempt(ARt,y,y)(C)}function y(C){return As(C)?bs(e,w,"whitespace")(C):w(C)}function w(C){return C===null||Ba(C)?(e.exit("definition"),r.parser.defined.push(i),t(C)):n(C)}}function ORt(e,t,n){return r;function r(f){return Su(f)?sI(e,i)(f):n(f)}function i(f){return uye(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return As(f)?bs(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Ba(f)?t(f):n(f)}}const MRt={name:"hardBreakEscape",tokenize:NRt};function NRt(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Ba(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const DRt={name:"headingAtx",tokenize:RRt,resolve:IRt};function IRt(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ap(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function RRt(e,t,n){let r=0;return i;function i(g){return e.enter("atxHeading"),l(g)}function l(g){return e.enter("atxHeadingSequence"),u(g)}function u(g){return g===35&&r++<6?(e.consume(g),u):g===null||Su(g)?(e.exit("atxHeadingSequence"),f(g)):n(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),v(g)):g===null||Ba(g)?(e.exit("atxHeading"),t(g)):As(g)?bs(e,f,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function v(g){return g===35?(e.consume(g),v):(e.exit("atxHeadingSequence"),f(g))}function h(g){return g===null||g===35||Su(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),h)}}const LRt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wfe=["pre","script","style","textarea"],BRt={name:"htmlFlow",tokenize:zRt,resolveTo:$Rt,concrete:!0},PRt={tokenize:VRt,partial:!0},FRt={tokenize:HRt,partial:!0};function $Rt(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zRt(e,t,n){const r=this;let i,l,u,f,v;return h;function h(ee){return g(ee)}function g(ee){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ee),y}function y(ee){return ee===33?(e.consume(ee),w):ee===47?(e.consume(ee),l=!0,T):ee===63?(e.consume(ee),i=3,r.interrupt?t:P):gh(ee)?(e.consume(ee),u=String.fromCharCode(ee),B):n(ee)}function w(ee){return ee===45?(e.consume(ee),i=2,C):ee===91?(e.consume(ee),i=5,f=0,S):gh(ee)?(e.consume(ee),i=4,r.interrupt?t:P):n(ee)}function C(ee){return ee===45?(e.consume(ee),r.interrupt?t:P):n(ee)}function S(ee){const ye="CDATA[";return ee===ye.charCodeAt(f++)?(e.consume(ee),f===ye.length?r.interrupt?t:V:S):n(ee)}function T(ee){return gh(ee)?(e.consume(ee),u=String.fromCharCode(ee),B):n(ee)}function B(ee){if(ee===null||ee===47||ee===62||Su(ee)){const ye=ee===47,ie=u.toLowerCase();return!ye&&!l&&wfe.includes(ie)?(i=1,r.interrupt?t(ee):V(ee)):LRt.includes(u.toLowerCase())?(i=6,ye?(e.consume(ee),F):r.interrupt?t(ee):V(ee)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(ee):l?R(ee):N(ee))}return ee===45||Mv(ee)?(e.consume(ee),u+=String.fromCharCode(ee),B):n(ee)}function F(ee){return ee===62?(e.consume(ee),r.interrupt?t:V):n(ee)}function R(ee){return As(ee)?(e.consume(ee),R):$(ee)}function N(ee){return ee===47?(e.consume(ee),$):ee===58||ee===95||gh(ee)?(e.consume(ee),A):As(ee)?(e.consume(ee),N):$(ee)}function A(ee){return ee===45||ee===46||ee===58||ee===95||Mv(ee)?(e.consume(ee),A):X(ee)}function X(ee){return ee===61?(e.consume(ee),Z):As(ee)?(e.consume(ee),X):N(ee)}function Z(ee){return ee===null||ee===60||ee===61||ee===62||ee===96?n(ee):ee===34||ee===39?(e.consume(ee),v=ee,z):As(ee)?(e.consume(ee),Z):Y(ee)}function z(ee){return ee===v?(e.consume(ee),v=null,Q):ee===null||Ba(ee)?n(ee):(e.consume(ee),z)}function Y(ee){return ee===null||ee===34||ee===39||ee===47||ee===60||ee===61||ee===62||ee===96||Su(ee)?X(ee):(e.consume(ee),Y)}function Q(ee){return ee===47||ee===62||As(ee)?N(ee):n(ee)}function $(ee){return ee===62?(e.consume(ee),te):n(ee)}function te(ee){return ee===null||Ba(ee)?V(ee):As(ee)?(e.consume(ee),te):n(ee)}function V(ee){return ee===45&&i===2?(e.consume(ee),ne):ee===60&&i===1?(e.consume(ee),le):ee===62&&i===4?(e.consume(ee),U):ee===63&&i===3?(e.consume(ee),P):ee===93&&i===5?(e.consume(ee),M):Ba(ee)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(PRt,j,K)(ee)):ee===null||Ba(ee)?(e.exit("htmlFlowData"),K(ee)):(e.consume(ee),V)}function K(ee){return e.check(FRt,fe,j)(ee)}function fe(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),de}function de(ee){return ee===null||Ba(ee)?K(ee):(e.enter("htmlFlowData"),V(ee))}function ne(ee){return ee===45?(e.consume(ee),P):V(ee)}function le(ee){return ee===47?(e.consume(ee),u="",_e):V(ee)}function _e(ee){if(ee===62){const ye=u.toLowerCase();return wfe.includes(ye)?(e.consume(ee),U):V(ee)}return gh(ee)&&u.length<8?(e.consume(ee),u+=String.fromCharCode(ee),_e):V(ee)}function M(ee){return ee===93?(e.consume(ee),P):V(ee)}function P(ee){return ee===62?(e.consume(ee),U):ee===45&&i===2?(e.consume(ee),P):V(ee)}function U(ee){return ee===null||Ba(ee)?(e.exit("htmlFlowData"),j(ee)):(e.consume(ee),U)}function j(ee){return e.exit("htmlFlow"),t(ee)}}function HRt(e,t,n){const r=this;return i;function i(u){return Ba(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function VRt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(pR,t,n)}}const URt={name:"htmlText",tokenize:jRt};function jRt(e,t,n){const r=this;let i,l,u;return f;function f(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),v}function v(P){return P===33?(e.consume(P),h):P===47?(e.consume(P),X):P===63?(e.consume(P),N):gh(P)?(e.consume(P),Y):n(P)}function h(P){return P===45?(e.consume(P),g):P===91?(e.consume(P),l=0,S):gh(P)?(e.consume(P),R):n(P)}function g(P){return P===45?(e.consume(P),C):n(P)}function y(P){return P===null?n(P):P===45?(e.consume(P),w):Ba(P)?(u=y,le(P)):(e.consume(P),y)}function w(P){return P===45?(e.consume(P),C):y(P)}function C(P){return P===62?ne(P):P===45?w(P):y(P)}function S(P){const U="CDATA[";return P===U.charCodeAt(l++)?(e.consume(P),l===U.length?T:S):n(P)}function T(P){return P===null?n(P):P===93?(e.consume(P),B):Ba(P)?(u=T,le(P)):(e.consume(P),T)}function B(P){return P===93?(e.consume(P),F):T(P)}function F(P){return P===62?ne(P):P===93?(e.consume(P),F):T(P)}function R(P){return P===null||P===62?ne(P):Ba(P)?(u=R,le(P)):(e.consume(P),R)}function N(P){return P===null?n(P):P===63?(e.consume(P),A):Ba(P)?(u=N,le(P)):(e.consume(P),N)}function A(P){return P===62?ne(P):N(P)}function X(P){return gh(P)?(e.consume(P),Z):n(P)}function Z(P){return P===45||Mv(P)?(e.consume(P),Z):z(P)}function z(P){return Ba(P)?(u=z,le(P)):As(P)?(e.consume(P),z):ne(P)}function Y(P){return P===45||Mv(P)?(e.consume(P),Y):P===47||P===62||Su(P)?Q(P):n(P)}function Q(P){return P===47?(e.consume(P),ne):P===58||P===95||gh(P)?(e.consume(P),$):Ba(P)?(u=Q,le(P)):As(P)?(e.consume(P),Q):ne(P)}function $(P){return P===45||P===46||P===58||P===95||Mv(P)?(e.consume(P),$):te(P)}function te(P){return P===61?(e.consume(P),V):Ba(P)?(u=te,le(P)):As(P)?(e.consume(P),te):Q(P)}function V(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),i=P,K):Ba(P)?(u=V,le(P)):As(P)?(e.consume(P),V):(e.consume(P),fe)}function K(P){return P===i?(e.consume(P),i=void 0,de):P===null?n(P):Ba(P)?(u=K,le(P)):(e.consume(P),K)}function fe(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Su(P)?Q(P):(e.consume(P),fe)}function de(P){return P===47||P===62||Su(P)?Q(P):n(P)}function ne(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),_e}function _e(P){return As(P)?bs(e,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):M(P)}function M(P){return e.enter("htmlTextData"),u(P)}}const vre={name:"labelEnd",tokenize:XRt,resolveTo:qRt,resolveAll:YRt},WRt={tokenize:ZRt},GRt={tokenize:QRt},KRt={tokenize:JRt};function YRt(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function qRt(e,t){let n=e.length,r=0,i,l,u,f;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(u=n);const v={type:e[l][1].type==="labelLink"?"link":"image",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)},h={type:"label",start:Object.assign({},e[l][1].start),end:Object.assign({},e[u][1].end)},g={type:"labelText",start:Object.assign({},e[l+r+2][1].end),end:Object.assign({},e[u-2][1].start)};return f=[["enter",v,t],["enter",h,t]],f=Em(f,e.slice(l+1,l+r+3)),f=Em(f,[["enter",g,t]]),f=Em(f,iU(t.parser.constructs.insideSpan.null,e.slice(l+r+4,u-3),t)),f=Em(f,[["exit",g,t],e[u-2],e[u-1],["exit",h,t]]),f=Em(f,e.slice(u+1)),f=Em(f,[["exit",v,t]]),Ap(e,l,e.length,f),e}function XRt(e,t,n){const r=this;let i=r.events.length,l,u;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return f;function f(w){return l?l._inactive?y(w):(u=r.parser.defined.includes(t2(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(w),e.exit("labelMarker"),e.exit("labelEnd"),v):n(w)}function v(w){return w===40?e.attempt(WRt,g,u?g:y)(w):w===91?e.attempt(GRt,g,u?h:y)(w):u?g(w):y(w)}function h(w){return e.attempt(KRt,g,y)(w)}function g(w){return t(w)}function y(w){return l._balanced=!0,n(w)}}function ZRt(e,t,n){return r;function r(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),i}function i(y){return Su(y)?sI(e,l)(y):l(y)}function l(y){return y===41?g(y):sye(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return Su(y)?sI(e,v)(y):g(y)}function f(y){return n(y)}function v(y){return y===34||y===39||y===40?uye(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return Su(y)?sI(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function QRt(e,t,n){const r=this;return i;function i(f){return lye.call(r,e,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return r.parser.defined.includes(t2(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function JRt(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const eLt={name:"labelStartImage",tokenize:tLt,resolveAll:vre.resolveAll};function tLt(e,t,n){const r=this;return i;function i(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(f):t(f)}}const nLt={name:"labelStartLink",tokenize:rLt,resolveAll:vre.resolveAll};function rLt(e,t,n){const r=this;return i;function i(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const dQ={name:"lineEnding",tokenize:oLt};function oLt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),bs(e,t,"linePrefix")}}const oH={name:"thematicBreak",tokenize:aLt};function aLt(e,t,n){let r=0,i;return l;function l(h){return e.enter("thematicBreak"),u(h)}function u(h){return i=h,f(h)}function f(h){return h===i?(e.enter("thematicBreakSequence"),v(h)):r>=3&&(h===null||Ba(h))?(e.exit("thematicBreak"),t(h)):n(h)}function v(h){return h===i?(e.consume(h),r++,v):(e.exit("thematicBreakSequence"),As(h)?bs(e,f,"whitespace")(h):f(h))}}const v0={name:"list",tokenize:lLt,continuation:{tokenize:uLt},exit:fLt},iLt={tokenize:dLt,partial:!0},sLt={tokenize:cLt,partial:!0};function lLt(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return f;function f(C){const S=r.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||C===r.containerState.marker:yee(C)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(oH,n,h)(C):h(C);if(!r.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),v(C)}return n(C)}function v(C){return yee(C)&&++u<10?(e.consume(C),v):(!r.interrupt||u<2)&&(r.containerState.marker?C===r.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),h(C)):n(C)}function h(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||C,e.check(pR,r.interrupt?n:g,e.attempt(iLt,w,y))}
vendor: 14,309 bytes, lines 504-506
504function g(C){return r.containerState.initialBlankLine=!0,l++,w(C)}function y(C){return As(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),w):n(C)}function w(C){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(C)}}function uLt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(pR,i,l);function i(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bs(e,t,"listItemIndent",r.containerState.size+1)(f)}function l(f){return r.containerState.furtherBlankLines||!As(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sLt,t,u)(f))}function u(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,bs(e,e.attempt(v0,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function cLt(e,t,n){const r=this;return bs(e,i,"listItemIndent",r.containerState.size+1);function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(l):n(l)}}function fLt(e){e.exit(this.containerState.type)}function dLt(e,t,n){const r=this;return bs(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const u=r.events[r.events.length-1];return!As(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Cfe={name:"setextUnderline",tokenize:hLt,resolveTo:vLt};function vLt(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",u,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[l][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function hLt(e,t,n){const r=this;let i;return l;function l(h){let g=r.events.length,y;for(;g--;)if(r.events[g][1].type!=="lineEnding"&&r.events[g][1].type!=="linePrefix"&&r.events[g][1].type!=="content"){y=r.events[g][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||y)?(e.enter("setextHeadingLine"),i=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===i?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),As(h)?bs(e,v,"lineSuffix")(h):v(h))}function v(h){return h===null||Ba(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const pLt={tokenize:mLt};function mLt(e){const t=this,n=e.attempt(pR,r,e.attempt(this.parser.constructs.flowInitial,i,bs(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wRt,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gLt={resolveAll:fye()},yLt=cye("string"),bLt=cye("text");function cye(e){return{tokenize:t,resolveAll:fye(e==="text"?_Lt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,u,f);return u;function u(g){return h(g)?l(g):f(g)}function f(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),v}function v(g){return h(g)?(n.exit("data"),l(g)):(n.consume(g),v)}function h(g){if(g===null)return!0;const y=i[g];let w=-1;if(y)for(;++w<y.length;){const C=y[w];if(!C.previous||C.previous.call(r,r.previous))return!0}return!1}}}function fye(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function _Lt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,u=-1,f=0,v;for(;l--;){const h=i[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(h===-2)v=!0,f++;else if(h!==-1){l++;break}}if(f){const h={type:n===e.length||v||f<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-f,offset:r.end.offset-f,_index:r.start._index+l,_bufferIndex:l?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},h.start),r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}function wLt(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let u=[],f=[];const v={consume:R,enter:N,exit:A,attempt:z(X),check:z(Z),interrupt:z(Z,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:C,sliceSerialize:w,now:S,defineSkip:T,write:y};let g=t.tokenize.call(h,v);return t.resolveAll&&l.push(t),h;function y(te){return u=Em(u,te),B(),u[u.length-1]!==null?[]:(Y(t,0),h.events=iU(l,h.events,h),h.events)}function w(te,V){return xLt(C(te),V)}function C(te){return CLt(u,te)}function S(){const{line:te,column:V,offset:K,_index:fe,_bufferIndex:de}=r;return{line:te,column:V,offset:K,_index:fe,_bufferIndex:de}}function T(te){i[te.line]=te.column,$()}function B(){let te;for(;r._index<u.length;){const V=u[r._index];if(typeof V=="string")for(te=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===te&&r._bufferIndex<V.length;)F(V.charCodeAt(r._bufferIndex));else F(V)}}function F(te){g=g(te)}function R(te){Ba(te)?(r.line++,r.column=1,r.offset+=te===-3?2:1,$()):te!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=te}function N(te,V){const K=V||{};return K.type=te,K.start=S(),h.events.push(["enter",K,h]),f.push(K),K}function A(te){const V=f.pop();return V.end=S(),h.events.push(["exit",V,h]),V}function X(te,V){Y(te,V.from)}function Z(te,V){V.restore()}function z(te,V){return K;function K(fe,de,ne){let le,_e,M,P;return Array.isArray(fe)?j(fe):"tokenize"in fe?j([fe]):U(fe);function U(he){return re;function re(be){const Ae=be!==null&&he[be],Te=be!==null&&he.null,Ue=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return j(Ue)(be)}}function j(he){return le=he,_e=0,he.length===0?ne:ee(he[_e])}function ee(he){return re;function re(be){return P=Q(),M=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ie():he.tokenize.call(V?Object.assign(Object.create(h),V):h,v,ye,ie)(be)}}function ye(he){return te(M,P),de}function ie(he){return P.restore(),++_e<le.length?ee(le[_e]):ne}}}function Y(te,V){te.resolveAll&&!l.includes(te)&&l.push(te),te.resolve&&Ap(h.events,V,h.events.length-V,te.resolve(h.events.slice(V),h)),te.resolveTo&&(h.events=te.resolveTo(h.events,h))}function Q(){const te=S(),V=h.previous,K=h.currentConstruct,fe=h.events.length,de=Array.from(f);return{restore:ne,from:fe};function ne(){r=te,h.previous=V,h.currentConstruct=K,h.events.length=fe,f=de,$()}}function $(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function CLt(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let u;if(n===i)u=[e[n].slice(r,l)];else{if(u=e.slice(n,i),r>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(r):u.shift()}l>0&&u.push(e[i].slice(0,l))}return u}function xLt(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=` 505`;break}case-3:{u=`\r 506`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(l)}i=l===-2,r.push(u)}return r.join("")}const ELt={[42]:v0,[43]:v0,[45]:v0,[48]:v0,[49]:v0,[50]:v0,[51]:v0,[52]:v0,[53]:v0,[54]:v0,[55]:v0,[56]:v0,[57]:v0,[62]:rye},SLt={[91]:TRt},TLt={[-2]:fQ,[-1]:fQ,[32]:fQ},ALt={[35]:DRt,[42]:oH,[45]:[Cfe,oH],[60]:BRt,[61]:Cfe,[95]:oH,[96]:_fe,[126]:_fe},kLt={[38]:aye,[92]:oye},OLt={[-5]:dQ,[-4]:dQ,[-3]:dQ,[33]:eLt,[38]:aye,[42]:bee,[60]:[rRt,URt],[91]:nLt,[92]:[MRt,oye],[93]:vre,[95]:bee,[96]:mRt},MLt={null:[bee,gLt]},NLt={null:[42,95]},DLt={null:[]};var ILt=Object.freeze(Object.defineProperty({__proto__:null,document:ELt,contentInitial:SLt,flowInitial:TLt,flow:ALt,string:kLt,text:OLt,insideSpan:MLt,attentionMarkers:NLt,disable:DLt},Symbol.toStringTag,{value:"Module"}));function RLt(e){const n=nye([ILt,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(XIt),document:i(QIt),flow:i(pLt),string:i(yLt),text:i(bLt)};return r;function i(l){return u;function u(f){return wLt(r,l,f)}}}const xfe=/[\0\t\n\r]/g;function LLt(){let e=1,t="",n=!0,r;return i;function i(l,u,f){const v=[];let h,g,y,w,C;for(l=t+l.toString(u),y=0,t="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(xfe.lastIndex=y,h=xfe.exec(l),w=h&&h.index!==void 0?h.index:l.length,C=l.charCodeAt(w),!h){t=l.slice(y);break}if(C===10&&y===w&&r)v.push(-3),r=void 0;else switch(r&&(v.push(-5),r=void 0),y<w&&(v.push(l.slice(y,w)),e+=w-y),C){case 0:{v.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,v.push(-2);e++<g;)v.push(-1);break}case 10:{v.push(-4),e=1;break}default:r=!0,e=1}y=w+1}return f&&(r&&v.push(-5),t&&v.push(t),v.push(null)),v}}function BLt(e){for(;!iye(e););return e}function dye(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCharCode(n)}const PLt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vye(e){return e.replace(PLt,FLt)}function FLt(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return dye(n.slice(l?2:1),l?16:10)}return dre(n)||e}function lI(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Efe(e.position):"start"in e||"end"in e?Efe(e):"line"in e||"column"in e?_ee(e):""}function _ee(e){return Sfe(e&&e.line)+":"+Sfe(e&&e.column)}function Efe(e){return _ee(e&&e.start)+"-"+_ee(e&&e.end)}function Sfe(e){return e&&typeof e=="number"?e:1}const hye={}.hasOwnProperty,$Lt=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),zLt(n)(BLt(RLt(n).document().write(LLt()(e,t,!0))))};function zLt(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(We),autolinkProtocol:te,autolinkEmail:te,atxHeading:f(ct),blockQuote:f(Ue),characterEscape:te,characterReference:te,codeFenced:f(Oe),codeFencedFenceInfo:v,codeFencedFenceMeta:v,codeIndented:f(Oe,v),codeText:f(De,v),codeTextData:te,data:te,codeFlowValue:te,definition:f($e),definitionDestinationString:v,definitionLabelString:v,definitionTitleString:v,emphasis:f(rt),hardBreakEscape:f(lt),hardBreakTrailing:f(lt),htmlFlow:f(ot,v),htmlFlowData:te,htmlText:f(ot,v),htmlTextData:te,image:f(Fe),label:v,link:f(We),listItem:f(Ke),listItemValue:S,listOrdered:f(Ye,C),listUnordered:f(Ye),paragraph:f(mt),reference:ie,referenceString:v,resourceDestinationString:v,resourceTitleString:v,setextHeading:f(ct),strong:f(Ct),thematicBreak:f(tn)},exit:{atxHeading:g(),atxHeadingSequence:z,autolink:g(),autolinkEmail:Te,autolinkProtocol:Ae,blockQuote:g(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:be,codeFenced:g(R),codeFencedFence:F,codeFencedFenceInfo:T,codeFencedFenceMeta:B,codeFlowValue:V,codeIndented:g(N),codeText:g(le),codeTextData:V,data:V,definition:g(),definitionDestinationString:Z,definitionLabelString:A,definitionTitleString:X,emphasis:g(),hardBreakEscape:g(fe),hardBreakTrailing:g(fe),htmlFlow:g(de),htmlFlowData:V,htmlText:g(ne),htmlTextData:V,image:g(M),label:U,labelText:P,lineEnding:K,link:g(_e),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:he,resourceDestinationString:j,resourceTitleString:ee,resource:ye,setextHeading:g($),setextHeadingLineSequence:Q,setextHeadingText:Y,strong:g(),thematicBreak:g()}};pye(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Ft){let It={type:"root",children:[]};const Et={stack:[It],tokenStack:[],config:t,enter:h,exit:y,buffer:v,resume:w,setData:l,getData:u},At=[];let vt=-1;for(;++vt<Ft.length;)if(Ft[vt][1].type==="listOrdered"||Ft[vt][1].type==="listUnordered")if(Ft[vt][0]==="enter")At.push(vt);else{const Tt=At.pop();vt=i(Ft,Tt,vt)}for(vt=-1;++vt<Ft.length;){const Tt=t[Ft[vt][0]];hye.call(Tt,Ft[vt][1].type)&&Tt[Ft[vt][1].type].call(Object.assign({sliceSerialize:Ft[vt][2].sliceSerialize},Et),Ft[vt][1])}if(Et.tokenStack.length>0){const Tt=Et.tokenStack[Et.tokenStack.length-1];(Tt[1]||Tfe).call(Et,void 0,Tt[0])}for(It.position={start:C8(Ft.length>0?Ft[0][1].start:{line:1,column:1,offset:0}),end:C8(Ft.length>0?Ft[Ft.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<t.transforms.length;)It=t.transforms[vt](It)||It;return It}function i(Ft,It,Et){let At=It-1,vt=-1,Tt=!1,Wt,xt,at,_t;for(;++At<=Et;){const en=Ft[At];if(en[1].type==="listUnordered"||en[1].type==="listOrdered"||en[1].type==="blockQuote"?(en[0]==="enter"?vt++:vt--,_t=void 0):en[1].type==="lineEndingBlank"?en[0]==="enter"&&(Wt&&!_t&&!vt&&!at&&(at=At),_t=void 0):en[1].type==="linePrefix"||en[1].type==="listItemValue"||en[1].type==="listItemMarker"||en[1].type==="listItemPrefix"||en[1].type==="listItemPrefixWhitespace"||(_t=void 0),!vt&&en[0]==="enter"&&en[1].type==="listItemPrefix"||vt===-1&&en[0]==="exit"&&(en[1].type==="listUnordered"||en[1].type==="listOrdered")){if(Wt){let An=At;for(xt=void 0;An--;){const Vt=Ft[An];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;xt&&(Ft[xt][1].type="lineEndingBlank",Tt=!0),Vt[1].type="lineEnding",xt=An}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(Wt._spread=!0),Wt.end=Object.assign({},xt?Ft[xt][1].start:en[1].end),Ft.splice(xt||At,0,["exit",Wt,en[2]]),At++,Et++}
506en[1].type==="listItemPrefix"&&(Wt={type:"listItem",_spread:!1,start:Object.assign({},en[1].start),end:void 0},Ft.splice(At,0,["enter",Wt,en[2]]),At++,Et++,at=void 0,_t=!0)}}return Ft[It][1]._spread=Tt,Et}function l(Ft,It){n[Ft]=It}function u(Ft){return n[Ft]}function f(Ft,It){return Et;function Et(At){h.call(this,Ft(At),At),It&&It.call(this,At)}}function v(){this.stack.push({type:"fragment",children:[]})}function h(Ft,It,Et){return this.stack[this.stack.length-1].children.push(Ft),this.stack.push(Ft),this.tokenStack.push([It,Et]),Ft.position={start:C8(It.start)},Ft}function g(Ft){return It;function It(Et){Ft&&Ft.call(this,Et),y.call(this,Et)}}function y(Ft,It){const Et=this.stack.pop(),At=this.tokenStack.pop();if(At)At[0].type!==Ft.type&&(It?It.call(this,Ft,At[0]):(At[1]||Tfe).call(this,Ft,At[0]));else throw new Error("Cannot close `"+Ft.type+"` ("+lI({start:Ft.start,end:Ft.end})+"): it\u2019s not open");return Et.position.end=C8(Ft.end),Et}function w(){return VIt(this.stack.pop())}function C(){l("expectingFirstListItemValue",!0)}function S(Ft){if(u("expectingFirstListItemValue")){const It=this.stack[this.stack.length-2];It.start=Number.parseInt(this.sliceSerialize(Ft),10),l("expectingFirstListItemValue")}}function T(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.lang=Ft}function B(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.meta=Ft}function F(){u("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function R(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.value=Ft.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function N(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.value=Ft.replace(/(\r?\n|\r)$/g,"")}function A(Ft){const It=this.resume(),Et=this.stack[this.stack.length-1];Et.label=It,Et.identifier=t2(this.sliceSerialize(Ft)).toLowerCase()}function X(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.title=Ft}function Z(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.url=Ft}function z(Ft){const It=this.stack[this.stack.length-1];if(!It.depth){const Et=this.sliceSerialize(Ft).length;It.depth=Et}}function Y(){l("setextHeadingSlurpLineEnding",!0)}function Q(Ft){const It=this.stack[this.stack.length-1];It.depth=this.sliceSerialize(Ft).charCodeAt(0)===61?1:2}function $(){l("setextHeadingSlurpLineEnding")}function te(Ft){const It=this.stack[this.stack.length-1];let Et=It.children[It.children.length-1];(!Et||Et.type!=="text")&&(Et=bt(),Et.position={start:C8(Ft.start)},It.children.push(Et)),this.stack.push(Et)}function V(Ft){const It=this.stack.pop();It.value+=this.sliceSerialize(Ft),It.position.end=C8(Ft.end)}function K(Ft){const It=this.stack[this.stack.length-1];if(u("atHardBreak")){const Et=It.children[It.children.length-1];Et.position.end=C8(Ft.end),l("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(It.type)&&(te.call(this,Ft),V.call(this,Ft))}function fe(){l("atHardBreak",!0)}function de(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.value=Ft}function ne(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.value=Ft}function le(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.value=Ft}function _e(){const Ft=this.stack[this.stack.length-1];if(u("inReference")){const It=u("referenceType")||"shortcut";Ft.type+="Reference",Ft.referenceType=It,delete Ft.url,delete Ft.title}else delete Ft.identifier,delete Ft.label;l("referenceType")}function M(){const Ft=this.stack[this.stack.length-1];if(u("inReference")){const It=u("referenceType")||"shortcut";Ft.type+="Reference",Ft.referenceType=It,delete Ft.url,delete Ft.title}else delete Ft.identifier,delete Ft.label;l("referenceType")}function P(Ft){const It=this.sliceSerialize(Ft),Et=this.stack[this.stack.length-2];Et.label=vye(It),Et.identifier=t2(It).toLowerCase()}function U(){const Ft=this.stack[this.stack.length-1],It=this.resume(),Et=this.stack[this.stack.length-1];if(l("inReference",!0),Et.type==="link"){const At=Ft.children;Et.children=At}else Et.alt=It}function j(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.url=Ft}function ee(){const Ft=this.resume(),It=this.stack[this.stack.length-1];It.title=Ft}function ye(){l("inReference")}function ie(){l("referenceType","collapsed")}function he(Ft){const It=this.resume(),Et=this.stack[this.stack.length-1];
506Et.label=It,Et.identifier=t2(this.sliceSerialize(Ft)).toLowerCase(),l("referenceType","full")}function re(Ft){l("characterReferenceType",Ft.type)}function be(Ft){const It=this.sliceSerialize(Ft),Et=u("characterReferenceType");let At;Et?(At=dye(It,Et==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):At=dre(It);const vt=this.stack.pop();vt.value+=At,vt.position.end=C8(Ft.end)}function Ae(Ft){V.call(this,Ft);const It=this.stack[this.stack.length-1];It.url=this.sliceSerialize(Ft)}function Te(Ft){V.call(this,Ft);const It=this.stack[this.stack.length-1];It.url="mailto:"+this.sliceSerialize(Ft)}function Ue(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function De(){return{type:"inlineCode",value:""}}function $e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rt(){return{type:"emphasis",children:[]}}function ct(){return{type:"heading",depth:void 0,children:[]}}function lt(){return{type:"break"}}function ot(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function We(){return{type:"link",title:null,url:"",children:[]}}function Ye(Ft){return{type:"list",ordered:Ft.type==="listOrdered",start:null,spread:Ft._spread,children:[]}}function Ke(Ft){return{type:"listItem",spread:Ft._spread,checked:null,children:[]}}function mt(){return{type:"paragraph",children:[]}}function Ct(){return{type:"strong",children:[]}}function bt(){return{type:"text",value:""}}function tn(){return{type:"thematicBreak"}}}function C8(e){return{line:e.line,column:e.column,offset:e.offset}}function pye(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?pye(e,r):HLt(e,r)}}function HLt(e,t){let n;for(n in t)if(hye.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function Tfe(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lI({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lI({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lI({start:t.start,end:t.end})+") is still open")}function VLt(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return $Lt(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function ULt(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jLt(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 507`}]}function WLt(e,t){const n=t.value?t.value+` 508`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function GLt(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KLt(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x7(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&Mv(e.charCodeAt(n+1))&&Mv(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),i=1):u="\uFFFD"}else u=String.fromCharCode(l);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+i+1,u=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function mye(e,t){const n=String(t.identifier).toUpperCase(),r=x7(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let l;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,l=e.footnoteOrder.length):(e.footnoteCounts[n]++,l=i+1);const u=e.footnoteCounts[n],f={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,f);const v={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,v),e.applyData(t,v)}function YLt(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},mye(e,{type:"footnoteReference",identifier:i,position:t.position})}function qLt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XLt(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function gye(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const u=i[i.length-1];return u&&u.type==="text"?u.value+=r:i.push({type:"text",value:r}),i}function ZLt(e,t){const n=e.definition(t.identifier);if(!n)return gye(e,t);const r={src:x7(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function QLt(e,t){const n={src:x7(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function JLt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eBt(e,t){const n=e.definition(t.identifier);if(!n)return gye(e,t);const r={href:x7(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tBt(e,t){const n={href:x7(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nBt(e,t,n){const r=e.all(t),i=n?rBt(n):yye(t),l={},u=[];
508if(typeof t.checked=="boolean"){const g=r[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},r.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const g=r[f];(i||f!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:` 509`}),g.type==="element"&&g.tagName==="p"&&!i?u.push(...g.children):u.push(g)}const v=r[r.length-1];v&&(i||v.type!=="element"||v.tagName!=="p")&&u.push({type:"text",value:` 510`});const h={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,h),e.applyData(t,h)}function rBt(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=yye(n[r])}return t}function yye(e){const t=e.spread;return t==null?e.children.length>1:t}function oBt(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const u=r[i];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function aBt(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iBt(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function sBt(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lBt(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),i.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=dR(t.children[1]),v=rU(t.children[t.children.length-1]);f.line&&v.line&&(u.position={start:f,end:v}),i.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function uBt(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let v=-1;const h=[];for(;++v<f;){const y=t.children[v],w={},C=u?u[v]:void 0;C&&(w.align=C);let S={type:"element",tagName:l,properties:w,children:[]};y&&(S.children=e.all(y),e.patch(y,S),S=e.applyData(t,S)),h.push(S)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function cBt(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Afe=9,kfe=32;function fBt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Ofe(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Ofe(t.slice(i),i>0,!1)),l.join("")}function Ofe(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Afe||l===kfe;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Afe||l===kfe;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function dBt(e,t){const n={type:"text",value:fBt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function vBt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const hBt={blockquote:ULt,break:jLt,code:WLt,delete:GLt,emphasis:KLt,footnoteReference:mye,footnote:YLt,heading:qLt,html:XLt,imageReference:ZLt,image:QLt,inlineCode:JLt,linkReference:eBt,link:tBt,listItem:nBt,list:oBt,paragraph:aBt,root:iBt,strong:sBt,table:lBt,tableCell:cBt,tableRow:uBt,text:dBt,thematicBreak:vBt,toml:bz,yaml:bz,definition:bz,footnoteDefinition:bz};function bz(){return null}function pBt(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const Mfe={}.hasOwnProperty;function mBt(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return YV(e,"definition",r=>{const i=Nfe(r.identifier);i&&!Mfe.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Nfe(r);return i&&Mfe.call(t,i)?t[i]:null}}function Nfe(e){return String(e||"").toUpperCase()}const qH={}.hasOwnProperty;function gBt(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return u.dangerous=r,u.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,u.footnoteLabel=n.footnoteLabel||"Footnotes",u.footnoteLabelTagName=n.footnoteLabelTagName||"h2",u.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},u.footnoteBackLabel=n.footnoteBackLabel||"Back to content",u.unknownHandler=n.unknownHandler,u.passThrough=n.passThrough,u.handlers={...hBt,...n.handlers},u.definition=mBt(e),u.footnoteById=i,u.footnoteOrder=[],u.footnoteCounts={},u.patch=yBt,u.applyData=bBt,u.one=f,u.all=v,u.wrap=wBt,u.augment=l,YV(e,"footnoteDefinition",h=>{const g=String(h.identifier).toUpperCase();qH.call(i,g)||(i[g]=h)}),u;function l(h,g){if(h&&"data"in h&&h.data){const y=h.data;y.hName&&(g.type!=="element"&&(g={type:"element",tagName:"",properties:{},children:[]}),g.tagName=y.hName),g.type==="element"&&y.hProperties&&(g.properties={...g.properties,...y.hProperties}),"children"in g&&g.children&&y.hChildren&&(g.children=y.hChildren)}if(h){const y="type"in h?h:{position:h};
510pBt(y)||(g.position={start:dR(y),end:rU(y)})}return g}function u(h,g,y,w){return Array.isArray(y)&&(w=y,y={}),l(h,{type:"element",tagName:g,properties:y||{},children:w||[]})}function f(h,g){return bye(u,h,g)}function v(h){return hre(u,h)}}function yBt(e,t){e.position&&(t.position=XNt(e))}function bBt(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&l&&(n.properties={...n.properties,...l}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function bye(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return qH.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:hre(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):_Bt(e,t)}function hre(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const l=bye(e,r[i],t);if(l){if(i&&r[i-1].type==="break"&&(!Array.isArray(l)&&l.type==="text"&&(l.value=l.value.replace(/^\s+/,"")),!Array.isArray(l)&&l.type==="element")){const u=l.children[0];u&&u.type==="text"&&(u.value=u.value.replace(/^\s+/,""))}Array.isArray(l)?n.push(...l):n.push(l)}}}return n}function _Bt(e,t){const n=t.data||{},r="value"in t&&!(qH.call(n,"hProperties")||qH.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:hre(e,t)};return e.patch(t,r),e.applyData(t,r)}function wBt(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 511`});++r<e.length;)r&&n.push({type:"text",value:` 512`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 513`}),n}function CBt(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),l=String(r.identifier).toUpperCase(),u=x7(l.toLowerCase());let f=0;const v=[];for(;++f<=e.footnoteCounts[l];){const y={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+u+(f>1?"-"+f:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};f>1&&y.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(f)}]}),v.length>0&&v.push({type:"text",value:" "}),v.push(y)}const h=i[i.length-1];if(h&&h.type==="element"&&h.tagName==="p"){const y=h.children[h.children.length-1];y&&y.type==="text"?y.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...v)}else i.push(...v);const g={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+u},children:e.wrap(i,!0)};e.patch(r,g),t.push(g)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` 514`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` 515`}]}}function _ye(e,t){const n=gBt(e,t),r=n.one(e,null),i=CBt(n);return i&&r.children.push({type:"text",value:` 516`},i),Array.isArray(r)?{type:"root",children:r}:r}const xBt=function(e,t){return e&&"run"in e?SBt(e,t):TBt(e||t)};var EBt=xBt;function SBt(e,t){return(n,r,i)=>{e.run(_ye(n,t),r,l=>{i(l)})}}function TBt(e){return t=>_ye(t,e)}function Dfe(e){if(e)throw e}/*! 517 * Determine if an object is a Buffer 518 * 519 * @author Feross Aboukhadijeh <https://feross.org> 520 * @license MIT 521 */var ABt=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},aH=Object.prototype.hasOwnProperty,wye=Object.prototype.toString,Ife=Object.defineProperty,Rfe=Object.getOwnPropertyDescriptor,Lfe=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wye.call(t)==="[object Array]"},Bfe=function(t){if(!t||wye.call(t)!=="[object Object]")return!1;var n=aH.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&aH.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i=="undefined"||aH.call(t,i)},Pfe=function(t,n){Ife&&n.name==="__proto__"?Ife(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ffe=function(t,n){if(n==="__proto__")if(aH.call(t,n)){if(Rfe)return Rfe(t,n).value}else return;return t[n]},$fe=function e(){var t,n,r,i,l,u,f=arguments[0],v=1,h=arguments.length,g=!1;for(typeof f=="boolean"&&(g=f,f=arguments[1]||{},v=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});v<h;++v)if(t=arguments[v],t!=null)for(n in t)r=Ffe(f,n),i=Ffe(t,n),f!==i&&(g&&i&&(Bfe(i)||(l=Lfe(i)))?(l?(l=!1,u=r&&Lfe(r)?r:[]):u=r&&Bfe(r)?r:{},Pfe(f,{name:n,newValue:e(g,u,i)})):typeof i!="undefined"&&Pfe(f,{name:n,newValue:i}));return f};function wee(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);
vendor: 9,236 bytes, lines 521-526
521return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kBt(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const u=i.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...i);function f(v,...h){const g=e[++l];let y=-1;if(v){u(v);return}for(;++y<i.length;)(h[y]===null||h[y]===void 0)&&(h[y]=i[y]);i=h,g?OBt(g,f)(...h):u(null,...h)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function OBt(e,t){let n;return r;function r(...u){const f=e.length>u.length;let v;f&&u.push(i);try{v=e.apply(this,u)}catch(h){const g=h;if(f&&n)throw g;return i(g)}f||(v&&v.then&&typeof v.then=="function"?v.then(l,i):v instanceof Error?i(v):l(v))}function i(u,...f){n||(n=!0,t(u,...f))}function l(u){i(null,u)}}/*! 522 * Determine if an object is a Buffer 523 * 524 * @author Feross Aboukhadijeh <https://feross.org> 525 * @license MIT 526 */var MBt=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};class Fm extends Error{constructor(t,n,r){const i=[null,null];let l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const u=r.indexOf(":");u===-1?i[1]=r:(i[0]=r.slice(0,u),i[1]=r.slice(u+1))}n&&("type"in n||"position"in n?n.position&&(l=n.position):"start"in n||"end"in n?l=n:("line"in n||"column"in n)&&(l.start=n)),this.name=lI(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Fm.prototype.file="";Fm.prototype.name="";Fm.prototype.reason="";Fm.prototype.message="";Fm.prototype.stack="";Fm.prototype.fatal=null;Fm.prototype.column=null;Fm.prototype.line=null;Fm.prototype.source=null;Fm.prototype.ruleId=null;Fm.prototype.position=null;const Zy={basename:NBt,dirname:DBt,extname:IBt,join:RBt,sep:"/"};function NBt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');mR(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,f=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(l){n=i+1;break}}else u<0&&(l=!0,u=i+1),f>-1&&(e.charCodeAt(i)===t.charCodeAt(f--)?f<0&&(r=i):(f=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function DBt(e){if(mR(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function IBt(e){mR(e);let t=e.length,n=-1,r=0,i=-1,l=0,u;for(;t--;){const f=e.charCodeAt(t);if(f===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function RBt(...e){let t=-1,n;for(;++t<e.length;)mR(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":LBt(n)}function LBt(e){mR(e);const t=e.charCodeAt(0)===47;let n=BBt(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function BBt(e,t){let n="",r=0,i=-1,l=0,u=-1,f,v;for(;++u<=e.length;){if(u<e.length)f=e.charCodeAt(u);else{if(f===47)break;f=47}if(f===47){if(!(i===u-1||l===1))if(i!==u-1&&l===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(v=n.lastIndexOf("/"),v!==n.length-1){v<0?(n="",r=0):(n=n.slice(0,v),r=n.length-1-n.lastIndexOf("/")),i=u,l=0;continue}}else if(n.length>0){n="",r=0,i=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),r=u-i-1;i=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function mR(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PBt={cwd:FBt};function FBt(){return"/"}function Cee(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function $Bt(e){if(typeof e=="string")e=new URL(e);else if(!Cee(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return zBt(e)}function zBt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const vQ=["history","path","basename","stem","extname","dirname"];class HBt{constructor(t){let n;t?typeof t=="string"||VBt(t)?n={value:t}:Cee(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=PBt.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<vQ.length;){const l=vQ[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)vQ.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){Cee(t)&&(t=$Bt(t)),pQ(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?Zy.dirname(this.path):void 0}set dirname(t){zfe(this.basename,"dirname"),this.path=Zy.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?Zy.basename(this.path):void 0}set basename(t){pQ(t,"basename"),hQ(t,"basename"),this.path=Zy.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?Zy.extname(this.path):void 0}set extname(t){if(hQ(t,"extname"),zfe(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zy.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?Zy.basename(this.path,this.extname):void 0}set stem(t){pQ(t,"stem"),hQ(t,"stem"),this.path=Zy.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Fm(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function hQ(e,t){if(e&&e.includes(Zy.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Zy.sep+"`")}function pQ(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zfe(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function VBt(e){return MBt(e)}const UBt=xye().freeze(),Cye={}.hasOwnProperty;function xye(){const e=kBt(),t=[];let n={},r,i=-1;return l.data=u,l.Parser=void 0,l.Compiler=void 0,l.freeze=f,l.attachers=t,l.use=v,l.parse=h,l.stringify=g,l.run=y,l.runSync=w,l.process=C,l.processSync=S,l;function l(){const T=xye();let B=-1;for(;++B<t.length;)T.use(...t[B]);return T.data($fe(!0,{},n)),T}function u(T,B){return typeof T=="string"?arguments.length===2?(yQ("data",r),n[T]=B,l):Cye.call(n,T)&&n[T]||null:T?(yQ("data",r),n=T,l):n}function f(){if(r)return l;for(;++i<t.length;){const[T,...B]=t[i];if(B[0]===!1)continue;B[0]===!0&&(B[0]=void 0);const F=T.call(l,...B);typeof F=="function"&&e.use(F)}return r=!0,i=Number.POSITIVE_INFINITY,l}function v(T,...B){let F;if(yQ("use",r),T!=null)if(typeof T=="function")X(T,...B);else if(typeof T=="object")Array.isArray(T)?A(T):N(T);else throw new TypeError("Expected usable value, not `"+T+"`");return F&&(n.settings=Object.assign(n.settings||{},F)),l;function R(Z){if(typeof Z=="function")X(Z);else if(typeof Z=="object")if(Array.isArray(Z)){const[z,...Y]=Z;X(z,...Y)}else N(Z);else throw new TypeError("Expected usable value, not `"+Z+"`")}function N(Z){A(Z.plugins),Z.settings&&(F=Object.assign(F||{},Z.settings))}function A(Z){let z=-1;if(Z!=null)if(Array.isArray(Z))for(;++z<Z.length;){const Y=Z[z];R(Y)}else throw new TypeError("Expected a list of plugins, not `"+Z+"`")}function X(Z,z){let Y=-1,Q;for(;++Y<t.length;)if(t[Y][0]===Z){Q=t[Y];break}Q?(wee(Q[1])&&wee(z)&&(z=$fe(!0,Q[1],z)),Q[1]=z):t.push([...arguments])}}function h(T){l.freeze();const B=MD(T),F=l.Parser;return mQ("parse",F),Hfe(F,"parse")?new F(String(B),B).parse():F(String(B),B)}function g(T,B){l.freeze();const F=MD(B),R=l.Compiler;return gQ("stringify",R),Vfe(T),Hfe(R,"compile")?new R(T,F).compile():R(T,F)}function y(T,B,F){if(Vfe(T),l.freeze(),!F&&typeof B=="function"&&(F=B,B=void 0),!F)return new Promise(R);R(null,F);function R(N,A){e.run(T,MD(B),X);function X(Z,z,Y){z=z||T,Z?A(Z):N?N(z):F(null,z,Y)}}}function w(T,B){let F,R;return l.run(T,B,N),Ufe("runSync","run",R),F;function N(A,X){Dfe(A),F=X,R=!0}
526}function C(T,B){if(l.freeze(),mQ("process",l.Parser),gQ("process",l.Compiler),!B)return new Promise(F);F(null,B);function F(R,N){const A=MD(T);l.run(l.parse(A),A,(Z,z,Y)=>{if(Z||!z||!Y)X(Z);else{const Q=l.stringify(z,Y);Q==null||(GBt(Q)?Y.value=Q:Y.result=Q),X(Z,Y)}});function X(Z,z){Z||!z?N(Z):R?R(z):B(null,z)}}}function S(T){let B;l.freeze(),mQ("processSync",l.Parser),gQ("processSync",l.Compiler);const F=MD(T);return l.process(F,R),Ufe("processSync","process",B),F;function R(N){B=!0,Dfe(N)}}}function Hfe(e,t){return typeof e=="function"&&e.prototype&&(jBt(e.prototype)||t in e.prototype)}function jBt(e){let t;for(t in e)if(Cye.call(e,t))return!0;return!1}function mQ(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function gQ(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function yQ(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Vfe(e){if(!wee(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ufe(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function MD(e){return WBt(e)?e:new HBt(e)}function WBt(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function GBt(e){return typeof e=="string"||ABt(e)}function Op(){}function Eye(e){return e()}function jfe(){return Object.create(null)}function bb(e){e.forEach(Eye)}function Sye(e){return typeof e=="function"}function Tye(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function sU(e,t){return e!=e?t==t:e!==t}function KBt(e){return Object.keys(e).length===0}function bi(e,t){e.appendChild(t)}function Cd(e,t,n){e.insertBefore(t,n||null)}function Yf(e){e.parentNode&&e.parentNode.removeChild(e)}function UI(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Hi(e){return document.createElement(e)}function bd(e){return document.createTextNode(e)}function gR(){return bd("")}function Sp(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function l7(e){return function(t){t.target===this&&e.call(this,t)}}function Ts(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function YBt(e){return Array.from(e.childNodes)}function q1(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _d(e,t,n){e.classList[n?"add":"remove"](t)}function qBt(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}let jI;function uI(e){jI=e}function lU(){if(!jI)throw new Error("Function called outside component initialization");return jI}function pre(e){lU().$$.on_mount.push(e)}function XBt(e){lU().$$.after_update.push(e)}function Aye(e){lU().$$.on_destroy.push(e)}function yR(){const e=lU();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const l=qBt(t,n,{cancelable:r});return i.slice().forEach(u=>{u.call(e,l)}),!l.defaultPrevented}return!0}}const pA=[],xC=[];let PA=[];const Wfe=[],kye=Promise.resolve();let xee=!1;function Oye(){xee||(xee=!0,kye.then(Mye))}function iH(){return Oye(),kye}function Eee(e){PA.push(e)}const bQ=new Set;let rA=0;function Mye(){if(rA!==0)return;const e=jI;do{try{for(;rA<pA.length;){const t=pA[rA];rA++,uI(t),ZBt(t.$$)}}catch(t){throw pA.length=0,rA=0,t}for(uI(null),pA.length=0,rA=0;xC.length;)xC.pop()();for(let t=0;t<PA.length;t+=1){const n=PA[t];bQ.has(n)||(bQ.add(n),n())}PA.length=0}while(pA.length);for(;Wfe.length;)Wfe.pop()();xee=!1,bQ.clear(),uI(e)}function ZBt(e){if(e.fragment!==null){e.update(),bb(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Eee)}}function QBt(e){const t=[],n=[];PA.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),PA=t}const sH=new Set;let hC;function JBt(){hC={r:0,c:[],p:hC}}function ePt(){hC.r||bb(hC.c),hC=hC.p}function c3(e,t){e&&e.i&&(sH.delete(e),e.i(t))}function eC(e,t,n,r){if(e&&e.o){if(sH.has(e))return;sH.add(e),hC.c.push(()=>{sH.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function FD(e){e&&e.c()}function EA(e,t,n,r){const{fragment:i,after_update:l}=e.$$;i&&i.m(t,n),r||Eee(()=>{const u=e.$$.on_mount.map(Eye).filter(Sye);e.$$.on_destroy?e.$$.on_destroy.push(...u):bb(u),e.$$.on_mount=[]}),l.forEach(Eee)}function SA(e,t){const n=e.$$;n.fragment!==null&&(QBt(n.after_update),bb(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function tPt(e,t){e.$$.dirty[0]===-1&&(pA.push(e),Oye(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function E7(e,t,n,r,i,l,u,f=[-1]){const v=jI;uI(e);const h=e.$$={fragment:null,ctx:[],props:l,update:Op,not_equal:i,bound:jfe(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(v?v.$$.context:[])),callbacks:jfe(),dirty:f,skip_bound:!1,root:t.target||v.$$.root};u&&u(h.root);let g=!1;if(h.ctx=n?n(e,t.props||{},(y,w,...C)=>{const S=C.length?C[0]:w;return h.ctx&&i(h.ctx[y],h.ctx[y]=S)&&(!h.skip_bound&&h.bound[y]&&h.bound[y](S),g&&tPt(e,y)),w}):[],h.update(),g=!0,bb(h.before_update),h.fragment=r?r(h.ctx):!1,t.target){if(t.hydrate){const y=YBt(t.target);
526h.fragment&&h.fragment.l(y),y.forEach(Yf)}else h.fragment&&h.fragment.c();t.intro&&c3(e.$$.fragment),EA(e,t.target,t.anchor,t.customElement),Mye()}uI(v)}class S7{$destroy(){SA(this,1),this.$destroy=Op}$on(t,n){if(!Sye(n))return Op;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!KBt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const nPt="Bold",rPt="bold text",oPt="Markdown Cheatsheet",aPt="Close help",iPt="Close table of contents",sPt="Code",lPt="Code block",uPt="lang",cPt="code",fPt="Exit fullscreen",dPt="Exit preview only",vPt="Exit write only",hPt="Fullscreen",pPt="Heading 1",mPt="Heading 2",gPt="Heading 3",yPt="Heading 4",bPt="Heading 5",_Pt="Heading 6",wPt="heading",CPt="Help",xPt="Horizontal rule",EPt="Image",SPt="alt",TPt="title",APt="Italic",kPt="italic text",OPt="The maximum character limit has been reached",MPt="Lines",NPt="Link",DPt="link text",IPt="Ordered list",RPt="item",LPt="Preview",BPt="Preview only",PPt="Quote",FPt="quoted text",$Pt="Shortcuts",zPt="Source code",HPt="Scroll sync",VPt="Table of contents",UPt="Scroll to top",jPt="Unordered list",WPt="item",GPt="Words",KPt="Write",YPt="Write only",qPt={bold:nPt,boldText:rPt,cheatsheet:oPt,closeHelp:aPt,closeToc:iPt,code:sPt,codeBlock:lPt,codeLang:uPt,codeText:cPt,exitFullscreen:fPt,exitPreviewOnly:dPt,exitWriteOnly:vPt,fullscreen:hPt,h1:pPt,h2:mPt,h3:gPt,h4:yPt,h5:bPt,h6:_Pt,headingText:wPt,help:CPt,hr:xPt,image:EPt,imageAlt:SPt,imageTitle:TPt,italic:APt,italicText:kPt,limited:OPt,lines:MPt,link:NPt,linkText:DPt,ol:IPt,olItem:RPt,preview:LPt,previewOnly:BPt,quote:PPt,quotedText:FPt,shortcuts:$Pt,source:zPt,sync:HPt,toc:VPt,top:UPt,ul:jPt,ulItem:WPt,words:GPt,write:KPt,writeOnly:YPt},dc={Close:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m8 8 32 32M8 40 40 8"/></svg>',H:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 5v38M36 5v38M12 24h24"/></svg>',H1:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M25 8v32M6 24h19M34.226 24 39 19.017V40"/></svg>',H2:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 25c0-3.167 2.667-5 5-5s5 1.833 5 5c0 5.7-10 9.933-10 15h10"/></svg>',H3:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 20h10l-7 9c4 0 7 2 7 6s-3 5-5 5c-2.381 0-4-1-5-2.1"/></svg>',LevelFourTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M39.977 40V20L31 32.997v2.023h12"/></svg>',LevelFiveTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M40 21.01h-8v7.024C32 28 34 27 37 27s4 2.534 4 6.5-1 6.5-5 6.5c-3 0-4-2-4-3.992"/></svg>',LevelSixTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16"/><path stroke="currentColor" stroke-width="4" d="M36.5 40a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M41.596 24.74C40.778 22.545 38.804 21 36.5 21c-3.038 0-5.5 2.686-5.5 6v7"/></svg>',TextBold:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 24c5.506 0 9.969-4.477 9.969-10S29.506 4 24 4H11v20h13ZM28.031 44C33.537 44 38 39.523 38 34s-4.463-10-9.969-10H11v20h17.031Z" clip-rule="evenodd"/></svg>
526',TextItalic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 6h16M12 42h16M29 5.952 19 42"/></svg>',Quote:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path fill="currentColor" fill-rule="evenodd" d="M18.853 9.116C11.323 13.952 7.14 19.58 6.303 26.003 5 36 13.94 40.893 18.47 36.497 23 32.1 20.285 26.52 17.005 24.994c-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.016-7.69 9.116-10.322a.749.749 0 0 0 .114-1.02L20.285 9.3c-.44-.572-.862-.55-1.432-.185ZM38.679 9.116c-7.53 4.836-11.714 10.465-12.55 16.887-1.303 9.997 7.637 14.89 12.167 10.494 4.53-4.397 1.815-9.977-1.466-11.503-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.017-7.69 9.117-10.322a.749.749 0 0 0 .113-1.02L40.11 9.3c-.44-.572-.862-.55-1.431-.185Z" clip-rule="evenodd"/></svg>',LinkOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m26.24 16.373-9.14-9.14c-2.661-2.661-7.035-2.603-9.768.131-2.734 2.734-2.793 7.107-.131 9.768l7.935 7.936M32.903 23.003l7.935 7.935c2.661 2.662 2.603 7.035-.13 9.769-2.735 2.734-7.108 2.792-9.77.13l-9.14-9.14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26.11 26.142c2.733-2.734 2.792-7.108.13-9.769M21.799 21.798c-2.734 2.734-2.792 7.108-.131 9.769"/></svg>',Pic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 10a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V10Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="m15 24 5 4 6-7 17 13v4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-4l10-10Z"/></svg>',Code:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 13 4 25.432 16 37M32 13l12 12.432L32 37"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="m28 4-7 40"/></svg>',CodeBrackets:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 4c-2 0-5 1-5 5v9c0 3-5 5-5 5s5 2 5 5v11c0 4 3 5 5 5M32 4c2 0 5 1 5 5v9c0 3 5 5 5 5s-5 2-5 5v11c0 4-3 5-5 5"/></svg>',ListTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M9 42a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 14a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 28a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M21 24h22M21 38h22M21 10h22"/></svg>',OrderedList:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 4v9M12 13H6M12 27H6M6 20s3-3 5 0-5 7-5 7M6 34.5s2-3 5-1 0 4.5 0 4.5 3 2.5 0 4.5-5-1-5-1M11 38H9M9 4 6 6M21 24h22M21 38h22M21 10h22"/></svg>',DividingLine:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M21 38h6M37 38h6M21 10h6M5 38h6M5 10h6M37 10h6"/></svg>',AlignTextLeftOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26 24H14M34 15H14M32 33H14"/></svg>',Helpcenter:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 28.625v-4a6 6 0 1 0-6-6"/>
526<path fill="currentColor" fill-rule="evenodd" d="M24 37.625a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/></svg>',LeftExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="6" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M42 6v36"/></svg>',RightExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="14" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 6v36"/></svg>',OffScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6v9h9M15 6v9H6M15 42v-9H6M33 42v-9h8.9"/></svg>',FullScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6h9v9M42 33v9h-9M15 42H6v-9M6 15V6h9"/></svg>',GithubOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M29.344 30.477c2.404-.5 4.585-1.366 6.28-2.638C38.52 25.668 40 22.314 40 19c0-2.324-.881-4.494-2.407-6.332-.85-1.024 1.636-8.667-.573-7.638-2.21 1.03-5.45 3.308-7.147 2.805A20.712 20.712 0 0 0 24 7c-1.8 0-3.532.223-5.147.634C16.505 8.232 14.259 6 12 5.03c-2.26-.97-1.026 6.934-1.697 7.765C8.84 14.605 8 16.73 8 19c0 3.314 1.79 6.668 4.686 8.84 1.93 1.446 4.348 2.368 7.054 2.822M19.74 30.662c-1.159 1.275-1.738 2.486-1.738 3.632v8.717M29.345 30.477c1.097 1.44 1.646 2.734 1.646 3.88v8.654M6 31.215c.899.11 1.566.524 2 1.24.652 1.075 3.074 5.063 5.825 5.063h4.177"/></svg>'};function XPt(){const e=tkt();return nkt(e),okt(e),skt(e),ikt(e),akt(e),ukt(e),lkt(e),rkt(e),e}function ZPt(e,t){return{wrapText(n,r=n){const i=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),l=i.from(),u=i.to(),f=t.getRange(l,u),v=e.Pos(l.line,l.ch-n.length),h=e.Pos(u.line,u.ch+r.length);if(t.getRange(v,l)===n&&t.getRange(u,h)===r)t.replaceRange(f,v,h),t.setSelection(v,e.Pos(v.line,v.ch+f.length));else{t.replaceRange(n+f+r,l,u);const g=t.getCursor();t.setSelection(e.Pos(g.line,g.ch-r.length-f.length),e.Pos(g.line,g.ch-r.length))}},replaceLines(n){const[r]=t.listSelections(),i=[e.Pos(r.from().line,0),e.Pos(r.to().line)],l=t.getRange(...i).split(` 527`);t.replaceRange(l.map(n).join(` 528`),...i),t.setSelection(...i)},appendBlock(n){const r=t.getCursor();let i=-1;for(let l=r.line;l<t.lineCount();l++)if(!t.getLine(l).trim()){i=l;break}return i===-1&&(t.replaceRange(` 529`,e.Pos(t.lineCount())),i=t.lineCount()),t.replaceRange(` 530`+n,e.Pos(i)),e.Pos(i+1,0)},selectFiles:Yge}}function _Q(e,t){let n=t.length-2;for(let r=0;r<t.length;r++)if(e<t[r]){n=r-1;break}return n=Math.max(n,0),n}const x8=(e,t=!1)=>{const n=t?"Shift-":"",r=typeof navigator!="undefined"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return n+r+e};async function Nye({editor:e,appendBlock:t,codemirror:n},r,i){const l=await r(i),u=t(l.map(({url:f,alt:v,title:h},g)=>(v=v!=null?v:i[g].name,``)).join(` 531 532`));e.setSelection(u,n.Pos(u.line+l.length*2-2)),e.focus()}function QPt(e,t,n){const r=[{icon:dc.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(l=>({title:e[`h${l}`],icon:[dc.H1,dc.H2,dc.H3,dc.LevelFourTitle,dc.LevelFiveTitle,dc.LevelSixTitle][l-1],cheatsheet:l<=3?`${"#".repeat(l)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:u,editor:f}){u(v=>(v=v.trim().replace(/^#*/,"").trim(),v="#".repeat(l)+" "+v,v)),f.focus()}}}))}},{title:e.bold,icon:dc.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:x8("B"),click({wrapText:l,editor:u}){l("**"),u.focus()}}}
532,{title:e.italic,icon:dc.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:x8("I"),click({wrapText:l,editor:u}){l("*"),u.focus()}}},{title:e.quote,icon:dc.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:l,editor:u}){l(f=>"> "+f),u.focus()}}},{title:e.link,icon:dc.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:x8("K"),click({editor:l,wrapText:u,codemirror:f}){u("[","](url)");const v=l.getCursor();l.setSelection(f.Pos(v.line,v.ch+2),f.Pos(v.line,v.ch+5)),l.focus()}}},{title:e.image,icon:dc.Pic,cheatsheet:``,handler:n?{type:"action",shortcut:x8("I",!0),async click(l){const u=await Yge({accept:"image/*",multiple:!0});u!=null&&u.length&&await Nye(l,n,Array.from(u))}}:void 0},{title:e.code,icon:dc.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:x8("K",!0),click({wrapText:l,editor:u}){l("`"),u.focus()}}},{title:e.codeBlock,icon:dc.CodeBrackets,cheatsheet:"```"+e.codeLang+"\u21B5",handler:{type:"action",shortcut:x8("C",!0),click({editor:l,appendBlock:u,codemirror:f}){const v=u("```js\n```");l.setSelection(f.Pos(v.line,3),f.Pos(v.line,5)),l.focus()}}},{title:e.ul,icon:dc.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:x8("U",!0),click({replaceLines:l,editor:u}){l(f=>"- "+f),u.focus()}}},{title:e.ol,icon:dc.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:x8("O",!0),click({replaceLines:l,editor:u}){l((f,v)=>`${v+1}. ${f}`),u.focus()}}},{title:e.hr,icon:dc.DividingLine,cheatsheet:"---"}],i=[];return t.forEach(({actions:l})=>{l&&l.forEach(u=>{!u.position||u.position!=="right"?r.push(u):i.unshift(u)})}),{leftActions:r,rightActions:i}}function Gfe(e,t,n){const r=e.slice();return r[5]=t[n],r}function Kfe(e,t,n){const r=e.slice();return r[5]=t[n],r}function Yfe(e){let t,n,r=e[5].icon+"",i,l=e[5].title+"",u,f,v,h=e[5].cheatsheet+"",g;return{c(){t=Hi("li"),n=Hi("div"),i=Hi("div"),u=bd(l),f=Hi("div"),v=Hi("code"),g=bd(h),Ts(n,"class","bytemd-help-icon"),Ts(i,"class","bytemd-help-title"),Ts(f,"class","bytemd-help-content")},m(y,w){Cd(y,t,w),bi(t,n),n.innerHTML=r,bi(t,i),bi(i,u),bi(t,f),bi(f,v),bi(v,g)},p(y,w){w&4&&r!==(r=y[5].icon+"")&&(n.innerHTML=r),w&4&&l!==(l=y[5].title+"")&&q1(u,l),w&4&&h!==(h=y[5].cheatsheet+"")&&q1(g,h)},d(y){y&&Yf(t)}}}function qfe(e){let t,n=e[5].cheatsheet&&Yfe(e);return{c(){n&&n.c(),t=gR()},m(r,i){n&&n.m(r,i),Cd(r,t,i)},p(r,i){r[5].cheatsheet?n?n.p(r,i):(n=Yfe(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Yf(t)}}}function Xfe(e){let t,n,r=e[5].icon+"",i,l=e[5].title+"",u,f,v,h=e[5].handler.shortcut+"",g;return{c(){t=Hi("li"),n=Hi("div"),i=Hi("div"),u=bd(l),f=Hi("div"),v=Hi("kbd"),g=bd(h),Ts(n,"class","bytemd-help-icon"),Ts(i,"class","bytemd-help-title"),Ts(f,"class","bytemd-help-content")},m(y,w){Cd(y,t,w),bi(t,n),n.innerHTML=r,bi(t,i),bi(i,u),bi(t,f),bi(f,v),bi(v,g)},p(y,w){w&4&&r!==(r=y[5].icon+"")&&(n.innerHTML=r),w&4&&l!==(l=y[5].title+"")&&q1(u,l),w&4&&h!==(h=y[5].handler.shortcut+"")&&q1(g,h)},d(y){y&&Yf(t)}}}function Zfe(e){let t,n=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&Xfe(e);return{c(){n&&n.c(),t=gR()},m(r,i){n&&n.m(r,i),Cd(r,t,i)},p(r,i){r[5].handler&&r[5].handler.type==="action"&&r[5].handler.shortcut?n?n.p(r,i):(n=Xfe(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Yf(t)}}}function JPt(e){let t,n,r=e[0].cheatsheet+"",i,l,u,f=e[0].shortcuts+"",v,h,g=e[2],y=[];for(let S=0;S<g.length;S+=1)y[S]=qfe(Kfe(e,g,S));let w=e[2],C=[];for(let S=0;S<w.length;S+=1)C[S]=Zfe(Gfe(e,w,S));return{c(){t=Hi("div"),n=Hi("h2"),i=bd(r),l=Hi("ul");for(let S=0;S<y.length;S+=1)y[S].c();u=Hi("h2"),v=bd(f),h=Hi("ul");for(let S=0;S<C.length;S+=1)C[S].c();Ts(t,"class","bytemd-help"),_d(t,"bytemd-hidden",!e[1])},m(S,T){Cd(S,t,T),bi(t,n),bi(n,i),bi(t,l);for(let B=0;B<y.length;B+=1)y[B]&&y[B].m(l,null);bi(t,u),bi(u,v),bi(t,h);for(let B=0;B<C.length;B+=1)C[B]&&C[B].m(h,null)},p(S,[T]){if(T&1&&r!==(r=S[0].cheatsheet+"")&&q1(i,r),T&4){g=S[2];let B;for(B=0;B<g.length;B+=1){const F=Kfe(S,g,B);y[B]?y[B].p(F,T):(y[B]=qfe(F),y[B].c(),y[B].m(l,null))}for(;B<y.length;B+=1)y[B].d(1);y.length=g.length}if(T&1&&f!==(f=S[0].shortcuts+"")&&q1(v,f),T&4){w=S[2];let B;for(B=0;B<w.length;B+=1){const F=Gfe(S,w,B);C[B]?C[B].p(F,T):(C[B]=Zfe(F),C[B].c(),C[B].m(h,null))}for(;B<C.length;B+=1)C[B].d(1);C.length=w.length}T&2&&_d(t,"bytemd-hidden",!S[1])},i:Op,o:Op,d(S){S&&Yf(t),UI(y,S),UI(C,S)}}}function eFt(e,t,n){let r,{actions:i}=t,{locale:l}=t,{visible:u}=t;function f(v){let h=[];return v.forEach(g=>{const{handler:y,cheatsheet:w}=g;(y==null?void 0:y.type)==="dropdown"&&h.push(...f(y.actions)),w&&h.push(g)}),h}return e.$$set=v=>{"actions"in v&&n(3,i=v.actions),"locale"in v&&n(0,l=v.locale),"visible"in v&&n(1,u=v.visible)},e.$$.update=()=>{e.$$.dirty&8&&n(2,r=f(i))},[l,u,r,i]}class tFt extends S7{constructor(t){super(),E7(this,t,eFt,JPt,Tye,{actions:3,locale:0,visible:1})}}function Qfe(e){let t,n=e[2].limited+"",r;return{c(){t=Hi("span"),r=bd(n),Ts(t,"class","bytemd-status-error")},m(i,l){Cd(i,t,l),bi(t,r)},p(i,l){l&4&&n!==(n=i[2].limited+"")&&q1(r,n)},d(i){i&&Yf(t)}}}function Jfe(e){let t,n,r=e[2].sync+"",i,l,u;return{c(){t=Hi("label"),n=Hi("input"),i=bd(r),Ts(n,"type","checkbox"),n.checked=e[1]},m(f,v){Cd(f,t,v),bi(t,n),bi(t,i),l||(u=Sp(n,"change",e[8]),l=!0)},p(f,v){v&2&&(n.checked=f[1]),v&4&&r!==(r=f[2].sync+"")&&q1(i,r)},d(f){f&&Yf(t),l=!1,u()}}}function nFt(e){let t,n,r,i=e[2].words+"",l,u,f,v,h,g=e[2].lines+"",y,w,C,S,T,B,F=e[2].top+"",R,N,A,X=e[3]&&Qfe(e),Z=e[0]&&Jfe(e);return{c(){t=Hi("div"),n=Hi("div"),r=Hi("span"),l=bd(i),u=bd(": "),f=Hi("strong"),v=bd(e[5]),h=Hi("span"),y=bd(g),w=bd(": "),C=Hi("strong"),S=bd(e[4]),X&&X.c(),T=Hi("div"),Z&&Z.c(),B=Hi("span"),R=bd(F),Ts(n,"class","bytemd-status-left"),Ts(T,"class","bytemd-status-right"),Ts(t,"class","bytemd-status")},m(z,Y){Cd(z,t,Y),bi(t,n),bi(n,r),bi(r,l),bi(r,u),bi(r,f),bi(f,v),bi(n,h),bi(h,y),bi(h,w),bi(h,C),bi(C,S),X&&X.m(n,null),bi(t,T),Z&&Z.m(T,null),bi(T,B),bi(B,R),N||(A=[Sp(B,"click",e[9]),Sp(B,"keydown",l7(e[10]))],N=!0)},p(z,[Y]){Y&4&&i!==(i=z[2].words+"")&&q1(l,i),Y&32&&q1(v,z[5]),Y&4&&g!==(g=z[2].lines+"")&&q1(y,g),Y&16&&q1(S,z[4]),z[3]?X?X.p(z,Y):(X=Qfe(z),X.c(),X.m(n,null)):X&&(X.d(1),X=null),z[0]?Z?Z.p(z,Y):(Z=Jfe(z),Z.c(),Z.m(T,B)):Z&&(Z.d(1),Z=null),Y&4&&F!==(F=z[2].top+"")&&q1(R,F)}
532,i:Op,o:Op,d(z){z&&Yf(t),X&&X.d(),Z&&Z.d(),N=!1,bb(A)}}}function rFt(e,t,n){let r,i,{showSync:l}=t,{value:u}=t,{syncEnabled:f}=t,{locale:v}=t,{islimited:h}=t;const g=yR(),y=()=>g("sync",!f),w=()=>g("top"),C=S=>["Enter","Space"].includes(S.code)&&g("top");return e.$$set=S=>{"showSync"in S&&n(0,l=S.showSync),"value"in S&&n(7,u=S.value),"syncEnabled"in S&&n(1,f=S.syncEnabled),"locale"in S&&n(2,v=S.locale),"islimited"in S&&n(3,h=S.islimited)},e.$$.update=()=>{e.$$.dirty&128&&n(5,r=dkt(u)),e.$$.dirty&128&&n(4,i=u.split(` 533`).length)},[l,f,v,h,i,r,g,u,y,w,C]}class oFt extends S7{constructor(t){super(),E7(this,t,rFt,nFt,Tye,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function ede(e,t,n){const r=e.slice();return r[11]=t[n],r[13]=n,r}function tde(e){let t,n=e[11].text+"",r,i,l,u,f;function v(){return e[8](e[13])}function h(...g){return e[9](e[13],...g)}return{c(){t=Hi("li"),r=bd(n),Ts(t,"class",i=`bytemd-toc-${e[11].level}`),Ts(t,"style",l=`padding-left:${(e[11].level-e[3])*16+8}px`),_d(t,"bytemd-toc-active",e[4]===e[13]),_d(t,"bytemd-toc-first",e[11].level===e[3])},m(g,y){Cd(g,t,y),bi(t,r),u||(f=[Sp(t,"click",v),Sp(t,"keydown",l7(h))],u=!0)},p(g,y){e=g,y&4&&n!==(n=e[11].text+"")&&q1(r,n),y&4&&i!==(i=`bytemd-toc-${e[11].level}`)&&Ts(t,"class",i),y&12&&l!==(l=`padding-left:${(e[11].level-e[3])*16+8}px`)&&Ts(t,"style",l),y&20&&_d(t,"bytemd-toc-active",e[4]===e[13]),y&12&&_d(t,"bytemd-toc-first",e[11].level===e[3])},d(g){g&&Yf(t),u=!1,bb(f)}}}function aFt(e){let t,n,r=e[0].toc+"",i,l,u=e[2],f=[];for(let v=0;v<u.length;v+=1)f[v]=tde(ede(e,u,v));return{c(){t=Hi("div"),n=Hi("h2"),i=bd(r),l=Hi("ul");for(let v=0;v<f.length;v+=1)f[v].c();Ts(t,"class","bytemd-toc"),_d(t,"bytemd-hidden",!e[1])},m(v,h){Cd(v,t,h),bi(t,n),bi(n,i),bi(t,l);for(let g=0;g<f.length;g+=1)f[g]&&f[g].m(l,null)},p(v,[h]){if(h&1&&r!==(r=v[0].toc+"")&&q1(i,r),h&60){u=v[2];let g;for(g=0;g<u.length;g+=1){const y=ede(v,u,g);f[g]?f[g].p(y,h):(f[g]=tde(y),f[g].c(),f[g].m(l,null))}for(;g<f.length;g+=1)f[g].d(1);f.length=u.length}h&2&&_d(t,"bytemd-hidden",!v[1])},i:Op,o:Op,d(v){v&&Yf(t),UI(f,v)}}}function iFt(e,t,n){let{hast:r}=t,{currentBlockIndex:i}=t,{locale:l}=t,{visible:u}=t;const f=yR();let v,h=6,g=0;function y(S){let T="";return YV(S,B=>{B.type==="text"&&(T+=B.value)}),T}const w=S=>{f("click",S)},C=(S,T)=>{["Enter","Space"].includes(T.code)&&f("click",S)};return e.$$set=S=>{"hast"in S&&n(6,r=S.hast),"currentBlockIndex"in S&&n(7,i=S.currentBlockIndex),"locale"in S&&n(0,l=S.locale),"visible"in S&&n(1,u=S.visible)},e.$$.update=()=>{e.$$.dirty&204&&(n(2,v=[]),n(4,g=0),r.children.filter(S=>S.type==="element").forEach((S,T)=>{if(S.tagName[0]==="h"&&!!S.children.length){const B=Number(S.tagName[1]);n(3,h=Math.min(h,B)),v.push({level:B,text:y(S)})}i>=T&&n(4,g=v.length-1)}))},[l,u,v,h,g,f,r,i,w,C]}class sFt extends S7{constructor(t){super(),E7(this,t,iFt,aFt,sU,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function nde(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function rde(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function lFt(e){let t,n=e[2].write+"",r,i,l=e[2].preview+"",u,f,v;return{c(){t=Hi("div"),r=bd(n),i=Hi("div"),u=bd(l),Ts(t,"class","bytemd-toolbar-tab"),_d(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),Ts(i,"class","bytemd-toolbar-tab"),_d(i,"bytemd-toolbar-tab-active",e[1]==="preview")},m(h,g){Cd(h,t,g),bi(t,r),Cd(h,i,g),bi(i,u),f||(v=[Sp(t,"click",e[16]),Sp(t,"keydown",l7(e[17])),Sp(i,"click",e[18]),Sp(i,"keydown",l7(e[19]))],f=!0)},p(h,g){g&4&&n!==(n=h[2].write+"")&&q1(r,n),g&2&&_d(t,"bytemd-toolbar-tab-active",h[1]!=="preview"),g&4&&l!==(l=h[2].preview+"")&&q1(u,l),g&2&&_d(i,"bytemd-toolbar-tab-active",h[1]==="preview")},d(h){h&&Yf(t),h&&Yf(i),f=!1,bb(v)}}}function uFt(e){let t,n=e[3],r=[];for(let i=0;i<n.length;i+=1)r[i]=ade(rde(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=gR()},m(i,l){for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(i,l);Cd(i,t,l)},p(i,l){if(l&8){n=i[3];let u;for(u=0;
533u<n.length;u+=1){const f=rde(i,n,u);r[u]?r[u].p(f,l):(r[u]=ade(f),r[u].c(),r[u].m(t.parentNode,t))}for(;u<r.length;u+=1)r[u].d(1);r.length=n.length}},d(i){UI(r,i),i&&Yf(t)}}}function ode(e){let t,n=e[25].icon+"";return{c(){t=Hi("div"),Ts(t,"class",["bytemd-toolbar-icon",XH].join(" ")),Ts(t,"bytemd-tippy-path",e[27])},m(r,i){Cd(r,t,i),t.innerHTML=n},p(r,i){i&8&&n!==(n=r[25].icon+"")&&(t.innerHTML=n)},d(r){r&&Yf(t)}}}function ade(e){let t,n=e[25].handler&&ode(e);return{c(){n&&n.c(),t=gR()},m(r,i){n&&n.m(r,i),Cd(r,t,i)},p(r,i){r[25].handler?n?n.p(r,i):(n=ode(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Yf(t)}}}function ide(e){let t,n=e[25].icon+"";return{c(){t=Hi("div"),Ts(t,"class",["bytemd-toolbar-icon",XH,lH].join(" ")),Ts(t,"bytemd-tippy-path",e[27]),_d(t,"bytemd-toolbar-icon-active",e[25].active)},m(r,i){Cd(r,t,i),t.innerHTML=n},p(r,i){i&32&&n!==(n=r[25].icon+"")&&(t.innerHTML=n),i&32&&_d(t,"bytemd-toolbar-icon-active",r[25].active)},d(r){r&&Yf(t)}}}function sde(e){let t,n=!e[25].hidden&&ide(e);return{c(){n&&n.c(),t=gR()},m(r,i){n&&n.m(r,i),Cd(r,t,i)},p(r,i){r[25].hidden?n&&(n.d(1),n=null):n?n.p(r,i):(n=ide(r),n.c(),n.m(t.parentNode,t))},d(r){n&&n.d(r),r&&Yf(t)}}}function cFt(e){let t,n,r,i,l;function u(y,w){return y[0]?uFt:lFt}let f=u(e),v=f(e),h=e[5],g=[];for(let y=0;y<h.length;y+=1)g[y]=sde(nde(e,h,y));return{c(){t=Hi("div"),n=Hi("div"),v.c(),r=Hi("div");for(let y=0;y<g.length;y+=1)g[y].c();Ts(n,"class","bytemd-toolbar-left"),Ts(r,"class","bytemd-toolbar-right"),Ts(t,"class","bytemd-toolbar")},m(y,w){Cd(y,t,w),bi(t,n),v.m(n,null),bi(t,r);for(let C=0;C<g.length;C+=1)g[C]&&g[C].m(r,null);e[20](t),i||(l=[Sp(t,"click",e[7]),Sp(t,"keydown",l7(e[21]))],i=!0)},p(y,[w]){if(f===(f=u(y))&&v?v.p(y,w):(v.d(1),v=f(y),v&&(v.c(),v.m(n,null))),w&32){h=y[5];let C;for(C=0;C<h.length;C+=1){const S=nde(y,h,C);g[C]?g[C].p(S,w):(g[C]=sde(S),g[C].c(),g[C].m(r,null))}for(;C<g.length;C+=1)g[C].d(1);g.length=h.length}},i:Op,o:Op,d(y){y&&Yf(t),v.d(),UI(g,y),e[20](null),i=!1,bb(l)}}}const XH="bytemd-tippy",lH="bytemd-tippy-right",wQ="bytemd-tippy-path";function fFt(e,t,n){let r,i,l,u,f;const v=yR();let h,{context:g}=t,{split:y}=t,{activeTab:w}=t,{fullscreen:C}=t,{sidebar:S}=t,{locale:T}=t,{actions:B}=t,{rightAfferentActions:F}=t;function R(V){var K,fe;const de=(fe=(K=V.getAttribute(wQ))==null?void 0:K.split("-"))==null?void 0:fe.map(le=>parseInt(le,10));if(!de)return;let ne={title:"",handler:{type:"dropdown",actions:V.classList.contains(lH)?f:B}};return de==null||de.forEach(le=>{var _e;((_e=ne.handler)==null?void 0:_e.type)==="dropdown"&&(ne=ne.handler.actions[le])}),{paths:de,item:ne}}let N;function A(){N=Gkt(h,{target:`.${XH}`,onCreate({setProps:V,reference:K}){const fe=R(K);if(!fe)return;const{item:de,paths:ne}=fe,{handler:le}=de;if(!!le){if(le.type==="action")V({content:de.title,onHidden(_e){_e.destroy()}});else if(le.type==="dropdown"){const _e=document.createElement("div");if(_e.classList.add("bytemd-dropdown"),de.title){const M=document.createElement("div");M.classList.add("bytemd-dropdown-title"),M.appendChild(document.createTextNode(de.title)),_e.appendChild(M)}le.actions.forEach((M,P)=>{var U;const j=document.createElement("div");j.classList.add("bytemd-dropdown-item"),j.setAttribute(wQ,[...ne,P].join("-")),((U=M.handler)==null?void 0:U.type)==="dropdown"&&j.classList.add(XH),K.classList.contains(lH)&&j.classList.add(lH),j.innerHTML=`${M.icon?`<div class="bytemd-dropdown-item-icon">${M.icon}</div>`:""}<div class="bytemd-dropdown-item-title">${M.title}</div>`,_e.appendChild(j)}),V({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:_e.outerHTML,onHidden(M){M.destroy()},onCreate(M){[...M.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((P,U)=>{var j;const ee=(j=le.actions[U])==null?void 0:j.handler;if((ee==null?void 0:ee.type)==="action"){const{mouseenter:ye,mouseleave:ie}=ee;ye&&P.addEventListener("mouseenter",()=>{ye(g)}),ie&&P.addEventListener("mouseleave",()=>{ie(g)})}})}})}}}})}pre(()=>{A()});function X(V){var K,fe;const de=V.target.closest(`[${wQ}]`);if(!de)return;const ne=(fe=(K=R(de))==null?void 0:K.item)==null?void 0:fe.handler;(ne==null?void 0:ne.type)==="action"&&ne.click(g),N==null||N.destroy(),A()}const Z=()=>v("tab","write"),z=V=>["Enter","Space"].includes(V.code)&&v("tab","write"),Y=()=>v("tab","preview"),Q=V=>["Enter","Space"].includes(V.code)&&v("tab","preview");function $(V){xC[V?"unshift":"push"](()=>{h=V,n(4,h)})}const te=V=>["Enter","Space"].includes(V.code)&&X(V);return e.$$set=V=>{"context"in V&&n(8,g=V.context),"split"in V&&n(0,y=V.split),"activeTab"in V&&n(1,w=V.activeTab),"fullscreen"in V&&n(9,C=V.fullscreen),"sidebar"in V&&n(10,S=V.sidebar),"locale"in V&&n(2,T=V.locale),"actions"in V&&n(3,B=V.actions),"rightAfferentActions"in V&&n(11,F=V.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&n(15,r=S==="toc"),e.$$.dirty&1024&&n(14,i=S==="help"),e.$$.dirty&2&&n(13,l=w==="write"),e.$$.dirty&2&&n(12,u=w==="preview"),e.$$.dirty&64005&&n(5,f=[{title:r?T.closeToc:T.toc,icon:dc.AlignTextLeftOne,handler:{type:"action",click(){v("click","toc")}},active:r},{title:i?T.closeHelp:T.help,icon:dc.Helpcenter,handler:{type:"action",click(){v("click","help")}},active:i},{title:l?T.exitWriteOnly:T.writeOnly,icon:dc.LeftExpand,handler:{type:"action",click(){v("tab","write")}},active:l,hidden:!y}
533,{title:u?T.exitPreviewOnly:T.previewOnly,icon:dc.RightExpand,handler:{type:"action",click(){v("tab","preview")}},active:u,hidden:!y},{title:C?T.exitFullscreen:T.fullscreen,icon:C?dc.OffScreen:dc.FullScreen,handler:{type:"action",click(){v("click","fullscreen")}}},{title:T.source,icon:dc.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...F])},[y,w,T,B,h,f,v,X,g,C,S,F,u,l,i,r,Z,z,Y,Q,$,te]}class dFt extends S7{constructor(t){super(),E7(this,t,fFt,cFt,sU,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const vFt=JSON.stringify(qne);function Dye({sanitize:e,plugins:t,remarkRehype:n={}}){let r=UBt().use(VLt);t==null||t.forEach(({remark:l})=>{l&&(r=l(r))}),r=r.use(EBt,{allowDangerousHtml:!0,...n}).use(UDt);let i=JSON.parse(vFt);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(jDt,i),t==null||t.forEach(({rehype:l})=>{l&&(r=l(r))}),r.use(zIt)}function hFt(e){let t;return{c(){t=Hi("div"),Ts(t,"class","markdown-body")},m(n,r){Cd(n,t,r),t.innerHTML=e[1],e[8](t)},p(n,[r]){r&2&&(t.innerHTML=n[1])},i:Op,o:Op,d(n){n&&Yf(t),e[8](null)}}}function pFt(e,t,n){let r;const i=yR();let{value:l=""}=t,{plugins:u=[]}=t,{sanitize:f=void 0}=t,{remarkRehype:v=void 0}=t,h,g=[];function y(){g=u.map(F=>{var R;return(R=F.viewerEffect)==null?void 0:R.call(F,{markdownBody:h,file:C})})}function w(){g.forEach(F=>F==null?void 0:F())}pre(()=>{h.addEventListener("click",F=>{var R;const N=F.target;if(N.tagName!=="A")return;const A=N.getAttribute("href");!(A!=null&&A.startsWith("#"))||(R=h.querySelector("#user-content-"+A.slice(1)))==null||R.scrollIntoView()})}),Aye(w);let C,S=0;const T=()=>(F,R)=>{iH().then(()=>{i("hast",{hast:F,file:R})})};XBt(()=>{w(),y()});function B(F){xC[F?"unshift":"push"](()=>{h=F,n(0,h)})}return e.$$set=F=>{"value"in F&&n(2,l=F.value),"plugins"in F&&n(3,u=F.plugins),"sanitize"in F&&n(4,f=F.sanitize),"remarkRehype"in F&&n(5,v=F.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{n(6,C=Dye({sanitize:f,plugins:[...u,{rehype:F=>F.use(T)}],remarkRehype:v}).processSync(l)),n(7,S++,S)}catch(F){console.error(F)}e.$$.dirty&192&&n(1,r=`${C}<!--${S}-->`)},[h,r,l,u,f,v,C,S,B]}class mFt extends S7{constructor(t){super(),E7(this,t,pFt,hFt,sU,{value:2,plugins:3,sanitize:4,remarkRehype:5})}}function lde(e){let t,n;return t=new mFt({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){FD(t.$$.fragment)},m(r,i){EA(t,r,i),n=!0},p(r,i){const l={};i[0]&65536&&(l.value=r[16]),i[0]&2&&(l.plugins=r[1]),i[0]&4&&(l.sanitize=r[2]),i[0]&8&&(l.remarkRehype=r[3]),t.$set(l)},i(r){n||(c3(t.$$.fragment,r),n=!0)},o(r){eC(t.$$.fragment,r),n=!1},d(r){SA(t,r)}}}function gFt(e){let t,n,r,i,l,u,f,v,h,g=dc.Close+"",y,w,C,S,T,B;n=new dFt({props:{context:e[10],split:e[11],activeTab:e[8],sidebar:e[9],fullscreen:e[15],rightAfferentActions:e[21].rightActions,locale:e[12],actions:e[21].leftActions}}),n.$on("key",e[31]),n.$on("tab",e[32]),n.$on("click",e[33]);let F=!e[4]&&(e[11]||e[8]==="preview")&&lde(e);return y=new tFt({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),w=new sFt({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),w.$on("click",e[39]),C=new oFt({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),C.$on("sync",e[40]),C.$on("top",e[41]),{c(){t=Hi("div"),FD(n.$$.fragment),r=Hi("div"),i=Hi("div"),u=Hi("div"),F&&F.c(),v=Hi("div"),h=Hi("div"),FD(y.$$.fragment),FD(w.$$.fragment),FD(C.$$.fragment),Ts(i,"class","bytemd-editor"),Ts(i,"style",l=e[22].edit),Ts(u,"class","bytemd-preview"),Ts(u,"style",f=e[22].preview),Ts(h,"class","bytemd-sidebar-close"),Ts(v,"class","bytemd-sidebar"),_d(v,"bytemd-hidden",e[9]===!1),Ts(r,"class","bytemd-body"),Ts(t,"class","bytemd"),_d(t,"bytemd-split",e[11]&&e[8]===!1),_d(t,"bytemd-fullscreen",e[15])},m(R,N){Cd(R,t,N),EA(n,t,null),bi(t,r),bi(r,i),e[34](i),bi(r,u),F&&F.m(u,null),e[36](u),bi(r,v),bi(v,h),h.innerHTML=g,EA(y,v,null),EA(w,v,null),EA(C,t,null),e[42](t),S=!0,T||(B=[Sp(h,"click",e[37]),Sp(h,"keydown",l7(e[38]))],T=!0)},p(R,N){const A={};N[0]&1024&&(A.context=R[10]),N[0]&2048&&(A.split=R[11]),N[0]&256&&(A.activeTab=R[8]),N[0]&512&&(A.sidebar=R[9]),N[0]&32768&&(A.fullscreen=R[15]),N[0]&2097152&&(A.rightAfferentActions=R[21].rightActions),N[0]&4096&&(A.locale=R[12]),N[0]&2097152&&(A.actions=R[21].leftActions),n.$set(A),(!S||N[0]&4194304&&l!==(l=R[22].edit))&&Ts(i,"style",l),!R[4]&&(
533R[11]||R[8]==="preview")?F?(F.p(R,N),N[0]&2320&&c3(F,1)):(F=lde(R),F.c(),c3(F,1),F.m(u,null)):F&&(JBt(),eC(F,1,1,()=>{F=null}),ePt()),(!S||N[0]&4194304&&f!==(f=R[22].preview))&&Ts(u,"style",f);const X={};N[0]&4096&&(X.locale=R[12]),N[0]&2097152&&(X.actions=R[21].leftActions),N[0]&512&&(X.visible=R[9]==="help"),y.$set(X);const Z={};N[0]&262144&&(Z.hast=R[18]),N[0]&4096&&(Z.locale=R[12]),N[0]&1048576&&(Z.currentBlockIndex=R[20]),N[0]&512&&(Z.visible=R[9]==="toc"),w.$set(Z),(!S||N[0]&512)&&_d(v,"bytemd-hidden",R[9]===!1);const z={};N[0]&4096&&(z.locale=R[12]),N[0]&2064&&(z.showSync=!R[4]&&R[11]),N[0]&65536&&(z.value=R[16]),N[0]&131072&&(z.syncEnabled=R[17]),N[0]&33&&(z.islimited=R[0].length>R[5]),C.$set(z),(!S||N[0]&2304)&&_d(t,"bytemd-split",R[11]&&R[8]===!1),(!S||N[0]&32768)&&_d(t,"bytemd-fullscreen",R[15])},i(R){S||(c3(n.$$.fragment,R),c3(F),c3(y.$$.fragment,R),c3(w.$$.fragment,R),c3(C.$$.fragment,R),S=!0)},o(R){eC(n.$$.fragment,R),eC(F),eC(y.$$.fragment,R),eC(w.$$.fragment,R),eC(C.$$.fragment,R),S=!1},d(R){R&&Yf(t),SA(n),e[34](null),F&&F.d(),e[36](null),SA(y),SA(w),SA(C),e[42](null),T=!1,bb(B)}}}function yFt(e,t,n){let r,i,l,u,f,{value:v=""}=t,{plugins:h=[]}=t,{sanitize:g=void 0}=t,{remarkRehype:y=void 0}=t,{mode:w="auto"}=t,{previewDebounce:C=300}=t,{placeholder:S=void 0}=t,{editorConfig:T=void 0}=t,{locale:B=void 0}=t,{uploadImages:F=void 0}=t,{overridePreview:R=void 0}=t,{maxLength:N=1/0}=t;const A=yR();let X,Z,z,Y=1/0,Q,$,te,V=!1,K=!1,fe=[],de={};function ne(){fe=h.map(We=>{var Ye;return(Ye=We.editorEffect)==null?void 0:Ye.call(We,f)}),de={},i.leftActions.forEach(({handler:We})=>{(We==null?void 0:We.type)==="action"&&We.shortcut&&(de[We.shortcut]=()=>{We.click(f)})}),$.addKeyMap(de)}function le(){fe.forEach(We=>We&&We()),$==null||$.removeKeyMap(de)}let _e=v;const M=Lv(We=>{n(16,_e=We),R==null||R(z,{value:_e,plugins:h,sanitize:g,remarkRehype:y})},C);let P=!0,U=!1,j=!1,ee,ye,ie={type:"root",children:[]},he,re=0;pre(async()=>{n(30,Q=XPt()),n(7,$=Q(Z,{value:v,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...T,placeholder:S})),$.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),$.on("change",()=>{A("change",{value:$.getValue()})});const We=F8(()=>{ee=[],ye=[];const Ct=$.getScrollInfo(),bt=z.childNodes[0];if(!(bt instanceof HTMLElement))return;const tn=ie.children.filter(It=>It.type==="element"),Ft=[...bt.childNodes].filter(It=>It instanceof HTMLElement);for(let It=0;It<tn.length;It++){const Et=tn[It],At=Ft[It];if(!Et.position)continue;const vt=$.heightAtLine(Et.position.start.line-1,"local")/(Ct.height-Ct.clientHeight),Tt=(At.offsetTop-bt.offsetTop)/(z.scrollHeight-z.clientHeight);if(vt>=1||Tt>=1)break;ee.push(vt),ye.push(Tt)}ee.push(1),ye.push(1)},1e3),Ye=()=>{if(R||!P)return;if(j){j=!1;return}We();const Ct=$.getScrollInfo(),bt=Ct.top/(Ct.height-Ct.clientHeight),tn=_Q(bt,ee),Ft=(bt-ee[tn])*(ye[tn+1]-ye[tn])/(ee[tn+1]-ee[tn])+ye[tn];z.scrollTo(0,Ft*(z.scrollHeight-z.clientHeight)),U=!0},Ke=()=>{if(R||(We(),n(20,re=_Q(z.scrollTop/(z.scrollHeight-z.offsetHeight),ye)),!P))return;if(U){U=!1;return}const Ct=z.scrollTop/(z.scrollHeight-z.clientHeight),bt=_Q(Ct,ye),tn=(Ct-ye[bt])*(ee[bt+1]-ee[bt])/(ye[bt+1]-ye[bt])+ee[bt];if(isNaN(tn))return;const Ft=$.getScrollInfo();$.scrollTo(0,tn*(Ft.height-Ft.clientHeight)),j=!0};$.on("scroll",Ye),z.addEventListener("scroll",Ke,{passive:!0});const mt=async(Ct,bt)=>{if(!F)return;const tn=Array.from(bt!=null?bt:[]).map(Ft=>{if(Ft.type.startsWith("image/"))return Ft.getAsFile()}).filter(Ft=>Ft!=null);tn.length&&(Ct.preventDefault(),await Nye(f,F,tn))};$.on("drop",async(Ct,bt)=>{var tn;mt(bt,(tn=bt.dataTransfer)==null?void 0:tn.items)}),$.on("paste",async(Ct,bt)=>{var tn;mt(bt,(tn=bt.clipboardData)==null?void 0:tn.items)}),new ResizeObserver(Ct=>{n(29,Y=Ct[0].contentRect.width)}).observe(X,{box:"border-box"})}),Aye(le);const be=We=>{$.setOption("keyMap",We.detail),$.focus()},Ae=We=>{const Ye=We.detail;l?n(8,te=te===Ye?!1:Ye):n(8,te=Ye),te==="write"&&iH().then(()=>{$&&$.focus()}),Ye==="write"&&iH().then(()=>{$&&$.setSize(null,null)})},Te=We=>{switch(We.detail){case"fullscreen":n(15,V=!V);break;case"help":n(9,K=K==="help"?!1:"help");break;case"toc":n(9,K=K==="toc"?!1:"toc");break}};function Ue(We){xC[We?"unshift":"push"](()=>{Z=We,n(13,Z)})}const Oe=We=>{n(18,ie=We.detail.hast),n(19,he=We.detail.file)};function De(We){xC[We?"unshift":"push"](()=>
533{z=We,n(14,z)})}const $e=()=>{n(9,K=!1)},rt=We=>{["Enter","Space"].includes(We.code)&&n(9,K=!1)},ct=We=>{z.querySelectorAll("h1,h2,h3,h4,h5,h6")[We.detail].scrollIntoView()},lt=We=>{n(17,P=We.detail)},ot=()=>{$.scrollTo(null,0),z.scrollTo({top:0})};function Fe(We){xC[We?"unshift":"push"](()=>{X=We,n(6,X)})}return e.$$set=We=>{"value"in We&&n(0,v=We.value),"plugins"in We&&n(1,h=We.plugins),"sanitize"in We&&n(2,g=We.sanitize),"remarkRehype"in We&&n(3,y=We.remarkRehype),"mode"in We&&n(23,w=We.mode),"previewDebounce"in We&&n(24,C=We.previewDebounce),"placeholder"in We&&n(25,S=We.placeholder),"editorConfig"in We&&n(26,T=We.editorConfig),"locale"in We&&n(27,B=We.locale),"uploadImages"in We&&n(28,F=We.uploadImages),"overridePreview"in We&&n(4,R=We.overridePreview),"maxLength"in We&&n(5,N=We.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&n(12,r={...qPt,...B}),e.$$.dirty[0]&268439554&&n(21,i=QPt(r,h,F)),e.$$.dirty[0]&545259520&&n(11,l=w==="split"||w==="auto"&&Y>=800),e.$$.dirty[0]&2048&&(We=>{l&&n(8,te=!1)})(),e.$$.dirty[0]&2816&&n(22,u=(()=>{let We,Ye;return l&&te===!1?K?(We=`width:calc(50% - ${K?140:0}px)`,Ye=`width:calc(50% - ${K?140:0}px)`):(We="width:50%",Ye="width:50%"):te==="preview"?(We="display:none",Ye=`width:calc(100% - ${K?280:0}px)`):(We=`width:calc(100% - ${K?280:0}px)`,Ye="display:none"),{edit:We,preview:Ye}})()),e.$$.dirty[0]&1073742016&&n(10,f=(()=>({codemirror:Q,editor:$,root:X,...ZPt(Q,$)}))()),e.$$.dirty[0]&1&&M(v),e.$$.dirty[0]&129&&$&&v!==$.getValue()&&$.setValue(v),e.$$.dirty[0]&130&&$&&h&&(le(),iH().then(()=>{ne()}))},[v,h,g,y,R,N,X,$,te,K,f,l,r,Z,z,V,_e,P,ie,he,re,i,u,w,C,S,T,B,F,Y,Q,be,Ae,Te,Ue,Oe,De,$e,rt,ct,lt,ot,Fe]}class bFt extends S7{constructor(t){super(),E7(this,t,yFt,gFt,sU,{value:0,plugins:1,sanitize:2,remarkRehype:3,mode:23,previewDebounce:24,placeholder:25,editorConfig:26,locale:27,uploadImages:28,overridePreview:4,maxLength:5},null,[-1,-1])}}const _Ft=Zt({props:{value:String,plugins:Array,sanitize:Function,remarkRehype:Object,mode:String,previewDebounce:Number,placeholder:String,editorConfig:Object,locale:Object,uploadImages:Function},emits:["change"],setup(e,{emit:t}){const n=et(null),r=et(null);return $n(()=>e,i=>{var l;const u={...i};for(let f in u)u[f]===void 0&&delete u[f];(l=r.value)==null||l.$set(u)},{deep:!0}),ia(()=>{const i=new bFt({target:n.value,props:e});i.$on("change",l=>{t("change",l.detail.value)}),r.value=i}),{el:n}}}),Iye=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},wFt={ref:"el"};function CFt(e,t,n,r,i,l){return Ce(),Ie("div",wFt,null,512)}const xFt=Iye(_Ft,[["render",CFt]]),EFt=Zt({props:["value","plugins","sanitize","remarkRehype"],setup(e,t){const n=et(null),r=et([]),i=Ne(()=>Dye(e).processSync(e.value)),l=Ne(()=>[i,e.plugins,e.sanitize,e.remarkRehype]);$n(l,()=>{f(),Gr(()=>{v()})},{deep:!0}),ia(()=>{v()}),T3(()=>{f()});const u=h=>{const g=h.target;if(g.tagName!=="A")return;const y=g.getAttribute("href");if(!y||!y.startsWith("#"))return;const w=n.value.querySelector("#user-content-"+y.slice(1));w&&w.scrollIntoView()},f=()=>{r.value.length&&r.value.forEach(h=>h&&h())},v=()=>{e.plugins&&i&&(r.value=e.plugins.map(({viewerEffect:h})=>h&&h({markdownBody:n.value,file:i})))};return{markdownBody:n,file:i,handleClick:u}}}),SFt=["innerHTML"];function TFt(e,t,n,r,i,l){return Ce(),Ie("div",{innerHTML:e.file.toString(),className:"markdown-body",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u)),ref:"markdownBody"},null,8,SFt)}const AFt=Iye(EFt,[["render",TFt]]);function kFt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const OFt={}.hasOwnProperty,MFt=function(e,t,n,r){let i,l;typeof t=="string"||t instanceof RegExp?(l=[[t,n]],i=r):(l=t,i=n),i||(i={});const u=Kne(i.ignore||[]),f=NFt(l);let v=-1;for(;++v<f.length;)qge(e,"text",h);return e;function h(y,w){let C=-1,S;for(;++C<w.length;){const T=w[C];if(u(T,S?S.children.indexOf(T):void 0,S))return;S=T}if(S)return g(y,w)}function g(y,w){const C=w[w.length-1],S=f[v][0],T=f[v][1];let B=0;const F=C.children.indexOf(y);let R=!1,N=[];S.lastIndex=0;let A=S.exec(y.value);for(;A;){const X=A.index,Z={index:A.index,input:A.input,stack:[...w,y]};let z=T(...A,Z);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z!==!1&&(B!==X&&N.push({type:"text",value:y.value.slice(B,X)}),Array.isArray(z)?N.push(...z):z&&N.push(z),B=X+A[0].length,R=!0),!S.global)break;A=S.exec(y.value)}return R?(B<y.value.length&&N.push({type:"text",value:y.value.slice(B)}),C.children.splice(F,1,...N)):N=[y],F+N.length}};function NFt(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([ude(e[n][0]),cde(e[n][1])])}else{let n;
vendor: 8,904 bytes, lines 533-535
533for(n in e)OFt.call(e,n)&&t.push([ude(n),cde(e[n])])}return t}function ude(e){return typeof e=="string"?new RegExp(kFt(e),"g"):e}function cde(e){return typeof e=="function"?e:()=>e}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Rye(e){return typeof e=="undefined"||e===null}function DFt(e){return typeof e=="object"&&e!==null}function IFt(e){return Array.isArray(e)?e:Rye(e)?[]:[e]}function RFt(e,t){var n,r,i,l;if(t)for(l=Object.keys(t),n=0,r=l.length;n<r;n+=1)i=l[n],e[i]=t[i];return e}function LFt(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function BFt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var PFt=Rye,FFt=DFt,$Ft=IFt,zFt=LFt,HFt=BFt,VFt=RFt,mre={isNothing:PFt,isObject:FFt,toArray:$Ft,repeat:zFt,isNegativeZero:HFt,extend:VFt};function Lye(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=` 534 535`+e.mark.snippet),r+" "+n):r}function WI(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Lye(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}WI.prototype=Object.create(Error.prototype);WI.prototype.constructor=WI;WI.prototype.toString=function(t){return this.name+": "+Lye(this,t)};var aC=WI,UFt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],jFt=["scalar","sequence","mapping"];function WFt(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function GFt(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(UFt.indexOf(n)===-1)throw new aC('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=WFt(t.styleAliases||null),jFt.indexOf(this.kind)===-1)throw new aC('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Dv=GFt;function fde(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(l,u){l.tag===r.tag&&l.kind===r.kind&&l.multi===r.multi&&(i=u)}),n[i]=r}),n}function KFt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function See(e){return this.extend(e)}See.prototype.extend=function(t){var n=[],r=[];if(t instanceof Dv)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new aC("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof Dv))throw new aC("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new aC("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new aC("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(l){if(!(l instanceof Dv))throw new aC("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(See.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=fde(i,"implicit"),i.compiledExplicit=fde(i,"explicit"),i.compiledTypeMap=KFt(i.compiledImplicit,i.compiledExplicit),i};var YFt=See,qFt=new Dv("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),XFt=new Dv("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ZFt=new Dv("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),QFt=new YFt({explicit:[qFt,XFt,ZFt]});function JFt(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function e$t(){return null}function t$t(e){return e===null}var n$t=new Dv("tag:yaml.org,2002:null",{kind:"scalar",resolve:JFt,construct:e$t,predicate:t$t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function r$t(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function o$t(e){return e==="true"||e==="True"||e==="TRUE"}function a$t(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var i$t=new Dv("tag:yaml.org,2002:bool",{kind:"scalar",resolve:r$t,construct:o$t,predicate:a$t,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function s$t(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function l$t(e){return 48<=e&&e<=55}function u$t(e){return 48<=e&&e<=57}function c$t(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!s$t(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!l$t(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!u$t(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function f$t(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function d$t(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!mre.isNegativeZero(e)}var v$t=new Dv("tag:yaml.org,2002:int",{kind:"scalar",resolve:c$t,construct:f$t,predicate:d$t,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),h$t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function p$t(e){return!(e===null||!h$t.test(e)||e[e.length-1]==="_")}function m$t(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var g$t=/^[-+]?[0-9]+e/;function y$t(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(mre.isNegativeZero(e))return"-0.0";return n=e.toString(10),g$t.test(n)?n.replace("e",".e"):n}function b$t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||mre.isNegativeZero(e))}var _$t=new Dv("tag:yaml.org,2002:float",{kind:"scalar",resolve:p$t,construct:m$t,predicate:b$t,represent:y$t,defaultStyle:"lowercase"}),w$t=QFt.extend({implicit:[n$t,i$t,v$t,_$t]}),C$t=w$t,Bye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Pye=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function x$t(e){return e===null?!1:Bye.exec(e)!==null||Pye.exec(e)!==null}function E$t(e){var t,n,r,i,l,u,f,v=0,h=null,g,y,w;if(t=Bye.exec(e),t===null&&(t=Pye.exec(e)),t===null)throw new Error("Date resolve error");
535if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(l=+t[4],u=+t[5],f=+t[6],t[7]){for(v=t[7].slice(0,3);v.length<3;)v+="0";v=+v}return t[9]&&(g=+t[10],y=+(t[11]||0),h=(g*60+y)*6e4,t[9]==="-"&&(h=-h)),w=new Date(Date.UTC(n,r,i,l,u,f,v)),h&&w.setTime(w.getTime()-h),w}function S$t(e){return e.toISOString()}var T$t=new Dv("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:x$t,construct:E$t,instanceOf:Date,represent:S$t});function A$t(e){return e==="<<"||e===null}var k$t=new Dv("tag:yaml.org,2002:merge",{kind:"scalar",resolve:A$t}),gre=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 536\r`;function O$t(e){if(e===null)return!1;var t,n,r=0,i=e.length,l=gre;for(n=0;n<i;n++)if(t=l.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function M$t(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,l=gre,u=0,f=[];for(t=0;t<i;t++)t%4===0&&t&&(f.push(u>>16&255),f.push(u>>8&255),f.push(u&255)),u=u<<6|l.indexOf(r.charAt(t));return n=i%4*6,n===0?(f.push(u>>16&255),f.push(u>>8&255),f.push(u&255)):n===18?(f.push(u>>10&255),f.push(u>>2&255)):n===12&&f.push(u>>4&255),new Uint8Array(f)}function N$t(e){var t="",n=0,r,i,l=e.length,u=gre;for(r=0;r<l;r++)r%3===0&&r&&(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]),n=(n<<8)+e[r];return i=l%3,i===0?(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]):i===2?(t+=u[n>>10&63],t+=u[n>>4&63],t+=u[n<<2&63],t+=u[64]):i===1&&(t+=u[n>>2&63],t+=u[n<<4&63],t+=u[64],t+=u[64]),t}function D$t(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var I$t=new Dv("tag:yaml.org,2002:binary",{kind:"scalar",resolve:O$t,construct:M$t,predicate:D$t,represent:N$t}),R$t=Object.prototype.hasOwnProperty,L$t=Object.prototype.toString;function B$t(e){if(e===null)return!0;var t=[],n,r,i,l,u,f=e;for(n=0,r=f.length;n<r;n+=1){if(i=f[n],u=!1,L$t.call(i)!=="[object Object]")return!1;for(l in i)if(R$t.call(i,l))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(l)===-1)t.push(l);else return!1}return!0}function P$t(e){return e!==null?e:[]}var F$t=new Dv("tag:yaml.org,2002:omap",{kind:"sequence",resolve:B$t,construct:P$t}),$$t=Object.prototype.toString;function z$t(e){if(e===null)return!0;var t,n,r,i,l,u=e;for(l=new Array(u.length),t=0,n=u.length;t<n;t+=1){if(r=u[t],$$t.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;l[t]=[i[0],r[i[0]]]}return!0}function H$t(e){if(e===null)return[];var t,n,r,i,l,u=e;for(l=new Array(u.length),t=0,n=u.length;t<n;t+=1)r=u[t],i=Object.keys(r),l[t]=[i[0],r[i[0]]];return l}var V$t=new Dv("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:z$t,construct:H$t}),U$t=Object.prototype.hasOwnProperty;function j$t(e){if(e===null)return!0;var t,n=e;for(t in n)if(U$t.call(n,t)&&n[t]!==null)return!1;return!0}function W$t(e){return e!==null?e:{}}var G$t=new Dv("tag:yaml.org,2002:set",{kind:"mapping",resolve:j$t,construct:W$t});C$t.extend({implicit:[T$t,k$t],explicit:[I$t,F$t,V$t,G$t]});function dde(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` 537`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}var K$t=new Array(256),Y$t=new Array(256);for(var oA=0;oA<256;oA++)K$t[oA]=dde(oA)?1:0,Y$t[oA]=dde(oA);const q$t={tokenize:tzt,partial:!0},Fye={tokenize:nzt,partial:!0},$ye={tokenize:rzt,partial:!0},zye={tokenize:ozt,partial:!0},X$t={tokenize:azt,partial:!0},Hye={tokenize:J$t,previous:Uye},Vye={tokenize:ezt,previous:jye},R3={tokenize:Q$t,previous:Wye},_b={},Z$t={text:_b};let q9=48;for(;q9<123;)_b[q9]=R3,q9++,q9===58?q9=65:q9===91&&(q9=97);_b[43]=R3;_b[45]=R3;_b[46]=R3;_b[95]=R3;_b[72]=[R3,Vye];_b[104]=[R3,Vye];_b[87]=[R3,Hye];_b[119]=[R3,Hye];function Q$t(e,t,n){const r=this;let i,l;return u;function u(y){return!Tee(y)||!Wye.call(r,r.previous)||yre(r.events)?n(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Tee(y)?(e.consume(y),f):y===64?(e.consume(y),v):n(y)}function v(y){return y===46?e.check(X$t,g,h)(y):y===45||y===95||Mv(y)?(l=!0,e.consume(y),v):g(y)}function h(y){return e.consume(y),i=!0,v}function g(y){return l&&i&&gh(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(y)):n(y)}}function J$t(e,t,n){const r=this;return i;function i(u){return u!==87&&u!==119||!Uye.call(r,r.previous)||yre(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(q$t,e.attempt(Fye,e.attempt($ye,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function ezt(e,t,n){const r=this;let i="",l=!1;return u;function u(y){return(y===72||y===104)&&jye.call(r,r.previous)&&!yre(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(y),e.consume(y),f):n(y)}function f(y){if(gh(y)&&i.length<5)return i+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const w=i.toLowerCase();if(w==="http"||w==="https")return e.consume(y),v}return n(y)}function v(y){return y===47?(e.consume(y),l?h:(l=!0,v)):n(y)}function h(y){return y===null||KH(y)||Su(y)||DC(y)||aU(y)?n(y):e.attempt(Fye,e.attempt($ye,g),n)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(y)}}function tzt(e,t,n){let r=0;return i;function i(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),i):u===46&&r===3?(e.consume(u),l):n(u)}function l(u){return u===null?n(u):t(u)}}function nzt(e,t,n){let r,i,l;return u;function u(h){return h===46||h===95?e.check(zye,v,f)(h):h===null||Su(h)||DC(h)||h!==45&&aU(h)?v(h):(l=!0,e.consume(h),u)}function f(h){return h===95?r=!0:(i=r,r=void 0),e.consume(h),u}function v(h){return i||r||!l?n(h):t(h)}}function rzt(e,t){let n=0,r=0;return i;function i(u){return u===40?(n++,e.consume(u),i):u===41&&r<n?l(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(zye,t,l)(u):u===null||Su(u)||DC(u)?t(u):(e.consume(u),i)}function l(u){return u===41&&r++,e.consume(u),i}}function ozt(e,t,n){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),l):f===93?(e.consume(f),i):f===60||f===null||Su(f)||DC(f)?t(f):n(f)}function i(f){return f===null||f===40||f===91||Su(f)||DC(f)?t(f):r(f)}function l(f){return gh(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),r):gh(f)?(e.consume(f),u):n(f)}}function azt(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Mv(l)?n(l):t(l)}}function Uye(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Su(e)}function jye(e){return!gh(e)}function Wye(e){return!(e===47||Tee(e))}function Tee(e){return e===43||e===45||e===46||e===95||Mv(e)}function yre(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const izt={tokenize:hzt,partial:!0};function szt(){return{document:{[91]:{tokenize:fzt,continuation:{tokenize:dzt},exit:vzt}},text:{[91]:{tokenize:czt},[93]:{add:"after",tokenize:lzt,resolveTo:uzt}}}}function lzt(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;i--;){const v=r.events[i][1];if(v.type==="labelImage"){u=v;break}if(v.type==="gfmFootnoteCall"||v.type==="labelLink"||v.type==="label"||v.type==="image"||v.type==="link")break}return f;function f(v){if(!u||!u._balanced)return n(v);const h=t2(r.sliceSerialize({start:u.end,end:r.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(v):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(v),e.exit("gfmFootnoteCallLabelMarker"),t(v))}}function uzt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},f=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...f),e}function czt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,u;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),v}function v(y){return y!==94?n(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(l>999||y===93&&!u||y===null||y===91||Su(y))return n(y);if(y===93){e.exit("chunkString");const w=e.exit("gfmFootnoteCallString");return i.includes(t2(r.sliceSerialize(w)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(y)}return Su(y)||(u=!0),l++,e.consume(y),y===92?g:h}function g(y){return y===91||y===92||y===93?(e.consume(y),l++,h):h(y)}}function fzt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,u=0,f;return v;function v(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(S)}function g(S){if(u>999||S===93&&!f||S===null||S===91||Su(S))return n(S);if(S===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return l=t2(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),w}return Su(S)||(f=!0),u++,e.consume(S),S===92?y:g}function y(S){return S===91||S===92||S===93?(e.consume(S),u++,g):g(S)}function w(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),i.includes(l)||i.push(l),bs(e,C,"gfmFootnoteDefinitionWhitespace")):n(S)}function C(S){return t(S)}}function dzt(e,t,n){return e.check(pR,t,e.attempt(izt,t,n))}function vzt(e){e.exit("gfmFootnoteDefinition")}function hzt(e,t,n){const r=this;return bs(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(l):n(l)}}function pzt(e){let n=(e||{}).singleTilde;const r={tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(u,f){let v=-1;for(;++v<u.length;)if(u[v][0]==="enter"&&u[v][1].type==="strikethroughSequenceTemporary"&&u[v][1]._close){let h=v;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[v][1].end.offset-u[v][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[v][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({}
vendor: 5,517 bytes, line 537
537,u[h][1].start),end:Object.assign({},u[v][1].end)},y={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[v][1].start)},w=[["enter",g,f],["enter",u[h][1],f],["exit",u[h][1],f],["enter",y,f]],C=f.parser.constructs.insideSpan.null;C&&Ap(w,w.length,0,iU(C,u.slice(h+1,v),f)),Ap(w,w.length,0,[["exit",y,f],["enter",u[v][1],f],["exit",u[v][1],f],["exit",g,f]]),Ap(u,h-1,v-h+3,w),v=h+w.length-2;break}}for(v=-1;++v<u.length;)u[v][1].type==="strikethroughSequenceTemporary"&&(u[v][1].type="data");return u}function l(u,f,v){const h=this.previous,g=this.events;let y=0;return w;function w(S){return h===126&&g[g.length-1][1].type!=="characterEscape"?v(S):(u.enter("strikethroughSequenceTemporary"),C(S))}function C(S){const T=YH(h);if(S===126)return y>1?v(S):(u.consume(S),y++,C);if(y<2&&!n)return v(S);const B=u.exit("strikethroughSequenceTemporary"),F=YH(S);return B._open=!F||F===2&&Boolean(T),B._close=!T||T===2&&Boolean(F),f(S)}}}class mzt{constructor(){this.map=[]}add(t,n,r){gzt(this,t,n,r)}consume(t){if(this.map.sort((l,u)=>l[0]-u[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function gzt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function yzt(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const bzt={flow:{null:{tokenize:_zt,resolveAll:wzt}}};function _zt(e,t,n){const r=this;let i=0,l=0,u;return f;function f($){let te=r.events.length-1;for(;te>-1;){const fe=r.events[te][1].type;if(fe==="lineEnding"||fe==="linePrefix")te--;else break}const V=te>-1?r.events[te][1].type:null,K=V==="tableHead"||V==="tableRow"?Z:v;return K===Z&&r.parser.lazy[r.now().line]?n($):K($)}function v($){return e.enter("tableHead"),e.enter("tableRow"),h($)}function h($){return $===124||(u=!0,l+=1),g($)}function g($){return $===null?n($):Ba($)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),C):n($):As($)?bs(e,g,"whitespace")($):(l+=1,u&&(u=!1,i+=1),$===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),u=!0,g):(e.enter("data"),y($)))}function y($){return $===null||$===124||Su($)?(e.exit("data"),g($)):(e.consume($),$===92?w:y)}function w($){return $===92||$===124?(e.consume($),y):y($)}function C($){return r.interrupt=!1,r.parser.lazy[r.now().line]?n($):(e.enter("tableDelimiterRow"),u=!1,As($)?bs(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):S($))}function S($){return $===45||$===58?B($):$===124?(u=!0,e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),T):X($)}function T($){return As($)?bs(e,B,"whitespace")($):B($)}function B($){return $===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),F):$===45?(l+=1,F($)):$===null||Ba($)?A($):X($)}function F($){return $===45?(e.enter("tableDelimiterFiller"),R($)):X($)}function R($){return $===45?(e.consume($),R):$===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N($))}function N($){return As($)?bs(e,A,"whitespace")($):A($)}function A($){return $===124?S($):$===null||Ba($)?!u||i!==l?X($):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t($)):X($)}function X($){return n($)}function Z($){return e.enter("tableRow"),z($)}function z($){return $===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),z):$===null||Ba($)?(e.exit("tableRow"),t($)):As($)?bs(e,z,"whitespace")($):(e.enter("data"),Y($))}function Y($){return $===null||$===124||Su($)?(e.exit("data"),z($)):(e.consume($),$===92?Q:Y)}function Q($){return $===92||$===124?(e.consume($),Y):Y($)}}function wzt(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],u=[0,0,0,0],f=!1,v=0,h,g,y;const w=new mzt;for(;++n<e.length;){const C=e[n],S=C[1];C[0]==="enter"?S.type==="tableHead"?(f=!1,v!==0&&(vde(w,t,v,h,g),g=void 0,v=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},w.add(n,0,[["enter",h,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,y=void 0,l=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},w.add(n,0,[["enter",g,t]])),i=S.type==="tableDelimiterRow"?2:g?3:1):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(l[1]!==0&&(u[0]=u[1],y=_z(w,t,l,i,void 0,y),l=[0,0,0,0]),u[2]=n)):S.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(u[0]=u[1],y=_z(w,t,l,i,void 0,y)),l=u,u=[l[1],n,0,0])):S.type==="tableHead"?(f=!0,v=n):S.type==="tableRow"||S.type==="tableDelimiterRow"?(v=n,l[1]!==0?(u[0]=u[1],y=_z(w,t,l,i,n,y)):u[1]!==0&&(y=_z(w,t,u,i,n,y)),i=0):i&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=n)}for(v!==0&&vde(w,t,v,h,g),w.consume(t.events),n=-1;++n<t.events.length;){const C=t.events[n];
537C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=yzt(t.events,n))}return e}function _z(e,t,n,r,i,l){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(l.end=Object.assign({},mA(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const v=mA(t.events,n[1]);if(l={type:u,start:Object.assign({},v),end:Object.assign({},v)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=mA(t.events,n[2]),g=mA(t.events,n[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",y,t]]),r!==2){const w=t.events[n[2]],C=t.events[n[3]];if(w[1].end=Object.assign({},C[1].end),w[1].type="chunkText",w[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,T=n[3]-n[2]-1;e.add(S,T,[])}}e.add(n[3]+1,0,[["exit",y,t]])}return i!==void 0&&(l.end=Object.assign({},mA(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function vde(e,t,n,r,i){const l=[],u=mA(t.events,n);i&&(i.end=Object.assign({},u),l.push(["exit",i,t])),r.end=Object.assign({},u),l.push(["exit",r,t]),e.add(n+1,0,l)}function mA(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Czt={tokenize:Ezt},xzt={text:{[91]:Czt}};function Ezt(e,t,n){const r=this;return i;function i(v){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(v):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(v),e.exit("taskListCheckMarker"),l)}function l(v){return Su(v)?(e.enter("taskListCheckValueUnchecked"),e.consume(v),e.exit("taskListCheckValueUnchecked"),u):v===88||v===120?(e.enter("taskListCheckValueChecked"),e.consume(v),e.exit("taskListCheckValueChecked"),u):n(v)}function u(v){return v===93?(e.enter("taskListCheckMarker"),e.consume(v),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(v)}function f(v){return Ba(v)?t(v):As(v)?e.check({tokenize:Szt},t,n)(v):n(v)}}function Szt(e,t,n){return bs(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Tzt(e){return nye([Z$t,szt(),pzt(e),bzt,xzt])}const CQ="phrasing",xQ=["autolink","link","image","label"],Azt={transforms:[Rzt],enter:{literalAutolink:Ozt,literalAutolinkEmail:EQ,literalAutolinkHttp:EQ,literalAutolinkWww:EQ},exit:{literalAutolink:Izt,literalAutolinkEmail:Dzt,literalAutolinkHttp:Mzt,literalAutolinkWww:Nzt}},kzt={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:CQ,notInConstruct:xQ},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:CQ,notInConstruct:xQ},{character:":",before:"[ps]",after:"\\/",inConstruct:CQ,notInConstruct:xQ}]};function Ozt(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function EQ(e){this.config.enter.autolinkProtocol.call(this,e)}function Mzt(e){this.config.exit.autolinkProtocol.call(this,e)}function Nzt(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Dzt(e){this.config.exit.autolinkEmail.call(this,e)}function Izt(e){this.exit(e)}function Rzt(e){MFt(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Lzt],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Bzt]],{ignore:["link","linkReference"]})}function Lzt(e,t,n,r,i){let l="";if(!Gye(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Pzt(n)))return!1;const u=Fzt(n+r);if(!u[0])return!1;const f={type:"link",title:null,url:l+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function Bzt(e,t,n,r){return!Gye(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Pzt(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Fzt(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=GH(e,"(");let l=GH(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Gye(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||DC(n)||aU(n))&&(!t||n!==47)}function Kye(e){return e.label||!e.identifier?e.label||"":vye(e.identifier)}function $zt(e,t,n){const r=t.indexStack,i=e.children||[],l=t.createTracker(n),u=[];let f=-1;for(r.push(-1);++f<i.length;){const v=i[f];r[r.length-1]=f,u.push(l.move(t.handle(v,e,t,{before:` 538`,after:` 539`,...l.current()}))),v.type!=="list"&&(t.bulletLastUsed=void 0),f<i.length-1&&u.push(l.move(zzt(v,i[f+1],e,t)))}return r.pop(),u.join("")}function zzt(e,t,n,r){let i=r.join.length;for(;i--;){const l=r.join[i](e,t,n,r);if(l===!0||l===1)break;if(typeof l=="number")return` 540`.repeat(1+l);if(l===!1)return` 541 542<!----> 543 544`}return` 545 546`}const Hzt=/\r?\n|\r/g;function Vzt(e,t){const n=[];let r=0,i=0,l;for(;l=Hzt.exec(e);)u(e.slice(r,l.index)),n.push(l[0]),r=l.index+l[0].length,i++;return u(e.slice(r)),n.join("");function u(f){n.push(t(f,i,!f))}}function bre(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Uzt(e,t){return hde(e,t.inConstruct,!0)&&!hde(e,t.notInConstruct,!1)}function hde(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function _re(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],u={};let f=-1;for(;++f<e.unsafe.length;){const g=e.unsafe[f];if(!Uzt(e.stack,g))continue;const y=bre(g);let w;for(;w=y.exec(r);){const C="before"in g||Boolean(g.atBreak),S="after"in g,T=w.index+(C?w[1].length:0);i.includes(T)?(u[T].before&&!C&&(u[T].before=!1),u[T].after&&!S&&(u[T].after=!1)):(i.push(T),u[T]={before:C,after:S})}}i.sort(jzt);let v=n.before?n.before.length:0;const h=r.length-(n.after?n.after.length:0);for(f=-1;++f<i.length;){const g=i[f];g<v||g>=h||g+1<h&&i[f+1]===g+1&&u[g].after&&!u[g+1].before&&!u[g+1].after||i[f-1]===g-1&&u[g].before&&!u[g-1].before&&!u[g-1].after||(v!==g&&l.push(pde(r.slice(v,g),"\\")),v=g,/[!-/:-@[-`{-~]/.test(r.charAt(g))&&(!n.encode||!n.encode.includes(r.charAt(g)))?l.push("\\"):(l.push("&#x"+r.charCodeAt(g).toString(16).toUpperCase()+";"),v++))}return l.push(pde(r.slice(v,h),n.after)),l.join("")}function jzt(e,t){return e-t}function pde(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],l=e+t;let u=-1,f=0,v;for(;v=n.exec(l);)r.push(v.index);for(;++u<r.length;)f!==r[u]&&i.push(e.slice(f,r[u])),i.push("\\"),f=r[u];return i.push(e.slice(f)),i.join("")}function bR(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:v,current:u,shift:f};function u(){return{now:{line:i,column:l},lineShift:r}}function f(h){r+=h}function v(h){const g=h||"",y=g.split(/\r?\n|\r/g),w=y[y.length-1];return i+=y.length-1,l=y.length===1?l+w.length:1+w.length+r,g}}Yye.peek=tHt;function Wzt(){return{enter:{gfmFootnoteDefinition:Kzt,gfmFootnoteDefinitionLabelString:Yzt,gfmFootnoteCall:Zzt,gfmFootnoteCallString:Qzt},exit:{gfmFootnoteDefinition:Xzt,gfmFootnoteDefinitionLabelString:qzt,gfmFootnoteCall:eHt,gfmFootnoteCallString:Jzt}}}function Gzt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:nHt,footnoteReference:Yye}}
vendor: 6,097 bytes, lines 546-550
546}function Kzt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Yzt(){this.buffer()}function qzt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t2(this.sliceSerialize(e)).toLowerCase()}function Xzt(e){this.exit(e)}function Zzt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Qzt(){this.buffer()}function Jzt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=t2(this.sliceSerialize(e)).toLowerCase()}function eHt(e){this.exit(e)}function Yye(e,t,n,r){const i=bR(r);let l=i.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return l+=i.move(_re(n,Kye(e),{...i.current(),before:l,after:"]"})),f(),u(),l+=i.move("]"),l}function tHt(){return"["}function nHt(e,t,n,r){const i=bR(r);let l=i.move("[^");const u=n.enter("footnoteDefinition"),f=n.enter("label");return l+=i.move(_re(n,Kye(e),{...i.current(),before:l,after:"]"})),f(),l+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),l+=i.move(Vzt($zt(e,n,i.current()),rHt)),u(),l}function rHt(e,t,n){return t===0?e:(n?"":" ")+e}function qye(e,t,n){const r=t.indexStack,i=e.children||[],l=[];let u=-1,f=n.before;r.push(-1);let v=t.createTracker(n);for(;++u<i.length;){const h=i[u];let g;if(r[r.length-1]=u,u+1<i.length){let y=t.handle.handlers[i[u+1].type];y&&y.peek&&(y=y.peek),g=y?y(i[u+1],e,t,{before:"",after:"",...v.current()}).charAt(0):""}else g=n.after;l.length>0&&(f==="\r"||f===` 547`)&&h.type==="html"&&(l[l.length-1]=l[l.length-1].replace(/(\r?\n|\r)$/," "),f=" ",v=t.createTracker(n),v.move(l.join(""))),l.push(v.move(t.handle(h,e,t,{...v.current(),before:f,after:g}))),f=l[l.length-1].slice(-1)}return r.pop(),l.join("")}const oHt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Xye.peek=uHt;const aHt={canContainEols:["delete"],enter:{strikethrough:sHt},exit:{strikethrough:lHt}},iHt={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oHt}],handlers:{delete:Xye}};function sHt(e){this.enter({type:"delete",children:[]},e)}function lHt(e){this.exit(e)}function Xye(e,t,n,r){const i=bR(r),l=n.enter("strikethrough");let u=i.move("~~");return u+=qye(e,n,{...i.current(),before:u,after:"~"}),u+=i.move("~~"),l(),u}function uHt(){return"~"}Zye.peek=cHt;function Zye(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const u=n.unsafe[l],f=bre(u);let v;if(!!u.atBreak)for(;v=f.exec(r);){let h=v.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(v.index+1)}}return i+r+i}function cHt(){return"`"}function fHt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||vHt,i=[],l=[],u=[],f=[];let v=0,h=-1;for(;++h<e.length;){const S=[],T=[];let B=-1;for(e[h].length>v&&(v=e[h].length);++B<e[h].length;){const F=dHt(e[h][B]);if(t.alignDelimiters!==!1){const R=r(F);T[B]=R,(f[B]===void 0||R>f[B])&&(f[B]=R)}S.push(F)}l[h]=S,u[h]=T}let g=-1;if(typeof n=="object"&&"length"in n)for(;++g<v;)i[g]=mde(n[g]);else{const S=mde(n);for(;++g<v;)i[g]=S}g=-1;const y=[],w=[];for(;++g<v;){const S=i[g];let T="",B="";S===99?(T=":",B=":"):S===108?T=":":S===114&&(B=":");let F=t.alignDelimiters===!1?1:Math.max(1,f[g]-T.length-B.length);const R=T+"-".repeat(F)+B;t.alignDelimiters!==!1&&(F=T.length+F+B.length,F>f[g]&&(f[g]=F),w[g]=F),y[g]=R}l.splice(1,0,y),u.splice(1,0,w),h=-1;const C=[];for(;++h<l.length;){const S=l[h],T=u[h];g=-1;const B=[];for(;++g<v;){const F=S[g]||"";let R="",N="";if(t.alignDelimiters!==!1){const A=f[g]-(T[g]||0),X=i[g];X===114?R=" ".repeat(A):X===99?A%2?(R=" ".repeat(A/2+.5),N=" ".repeat(A/2-.5)):(R=" ".repeat(A/2),N=R):N=" ".repeat(A)}t.delimiterStart!==!1&&!g&&B.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&F==="")&&(t.delimiterStart!==!1||g)&&B.push(" "),t.alignDelimiters!==!1&&B.push(R),B.push(F),t.alignDelimiters!==!1&&B.push(N),t.padding!==!1&&B.push(" "),(t.delimiterEnd!==!1||g!==v-1)&&B.push("|")}C.push(t.delimiterEnd===!1?B.join("").replace(/ +$/,""):B.join(""))}return C.join(` 548`)}function dHt(e){return e==null?"":String(e)}function vHt(e){return e.length}function mde(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const hHt={enter:{table:pHt,tableData:gde,tableHeader:gde,tableRow:gHt},exit:{codeText:yHt,table:mHt,tableData:SQ,tableHeader:SQ,tableRow:SQ}};function pHt(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function mHt(e){this.exit(e),this.setData("inTable")}function gHt(e){this.enter({type:"tableRow",children:[]},e)}function SQ(e){this.exit(e)}function gde(e){this.enter({type:"tableCell",children:[]},e)}function yHt(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,bHt));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function bHt(e,t){return t==="|"?t:e}function _Ht(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 549`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:u,tableRow:f,tableCell:v,inlineCode:w}};function u(C,S,T,B){return h(g(C,T,B),C.align)}function f(C,S,T,B){const F=y(C,T,B),R=h([F]);return R.slice(0,R.indexOf(` 550`))}function v(C,S,T,B){const F=T.enter("tableCell"),R=T.enter("phrasing"),N=qye(C,T,{...B,before:l,after:l});return R(),F(),N}function h(C,S){return fHt(C,{align:S,alignDelimiters:r,padding:n,stringLength:i})}function g(C,S,T){const B=C.children;let F=-1;const R=[],N=S.enter("table");for(;++F<B.length;)R[F]=y(B[F],S,T);return N(),R}function y(C,S,T){const B=C.children;let F=-1;const R=[],N=S.enter("tableRow");for(;++F<B.length;)R[F]=v(B[F],C,S,T);return N(),R}function w(C,S,T){let B=Zye(C,S,T);
550return T.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function wHt(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function CHt(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xHt(e,t,n,r){const i=CHt(n);let l=n.bulletCurrent||wHt(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let u=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(r);f.move(l+" ".repeat(u-l.length)),f.shift(u);const v=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,f.current()),g);return v(),h;function g(y,w,C){return w?(C?"":" ".repeat(u))+y:(C?l:l+" ".repeat(u-l.length))+y}}const EHt={exit:{taskListCheckValueChecked:yde,taskListCheckValueUnchecked:yde,paragraph:THt}},SHt={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:AHt}};function yde(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function THt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,u;for(;++l<i.length;){const f=i[l];if(f.type==="paragraph"){u=f;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function AHt(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=bR(r);l&&f.move(u);let v=xHt(e,t,n,{...r,...f.current()});return l&&(v=v.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),v;function h(g){return g+u}}function kHt(){return[Azt,Wzt(),aHt,hHt,EHt]}function OHt(e){return{extensions:[kzt,Gzt(),iHt,_Ht(e),SHt]}}function MHt(e={}){const t=this.data();n("micromarkExtensions",Tzt(e)),n("fromMarkdownExtensions",kHt()),n("toMarkdownExtensions",OHt(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const TQ={Strikethrough:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M24 24c16 6 10 20 0 20s-12-8-12-8M36 12s-3-8-12-8-12.564 7.6-8.39 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 36s4 8 12 8 12.564-7.6 8.39-14"/></svg>',CheckCorrect:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#a)"><path d="M42 20v19a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h21"/><path d="m16 20 10 8L41 7"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h48v48H0z"/></clipPath></defs></svg>',InsertTable:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-width="4" d="M39.3 6H8.7A2.7 2.7 0 0 0 6 8.7v30.6A2.7 2.7 0 0 0 8.7 42h30.6a2.7 2.7 0 0 0 2.7-2.7V8.7A2.7 2.7 0 0 0 39.3 6Z"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M18 6v36M30 6v36M6 18h36M6 30h36"/></svg>'},NHt="Strikethrough",DHt="text",IHt="Table",RHt="Heading",LHt="Task list",BHt="todo",PHt={strike:NHt,strikeText:DHt,table:IHt,tableHeading:RHt,task:LHt,taskText:BHt};function Qye({locale:e,...t}={}){const n={...PHt,...e};return{remark:r=>r.use(MHt,t),actions:[{title:n.strike,icon:TQ.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:TQ.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(l=>"- [ ] "+l),i.focus()}}},{title:n.table,icon:TQ.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:l}){const{line:u}=i(`| ${n.tableHeading} | | 551| --- | --- | 552| | | 553`);r.setSelection(l.Pos(u,2),l.Pos(u,2+n.tableHeading.length)),r.focus()}}}]}}function Jye({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await Ra(()=>import("./index.587b6a9a.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>
553{t.highlightElement(i)}))})()}}}const FHt={tokenize:$Ht,concrete:!0},bde={tokenize:zHt,partial:!0};function $Ht(e,t,n){const r=this,i=r.events[r.events.length-1],l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let u=0;return f;function f(R){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),v(R)}function v(R){return R===36?(e.consume(R),u++,v):u<2?n(R):(e.exit("mathFlowFenceSequence"),bs(e,h,"whitespace")(R))}function h(R){return R===null||Ba(R)?y(R):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(R))}function g(R){return R===null||Ba(R)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),y(R)):R===36?n(R):(e.consume(R),g)}function y(R){return e.exit("mathFlowFence"),r.interrupt?t(R):e.attempt(bde,w,B)(R)}function w(R){return e.attempt({tokenize:F,partial:!0},B,C)(R)}function C(R){return(l?bs(e,S,"linePrefix",l+1):S)(R)}function S(R){return R===null?B(R):Ba(R)?e.attempt(bde,w,B)(R):(e.enter("mathFlowValue"),T(R))}function T(R){return R===null||Ba(R)?(e.exit("mathFlowValue"),S(R)):(e.consume(R),T)}function B(R){return e.exit("mathFlow"),t(R)}function F(R,N,A){let X=0;return bs(R,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Z(Q){return R.enter("mathFlowFence"),R.enter("mathFlowFenceSequence"),z(Q)}function z(Q){return Q===36?(X++,R.consume(Q),z):X<u?A(Q):(R.exit("mathFlowFenceSequence"),bs(R,Y,"whitespace")(Q))}function Y(Q){return Q===null||Ba(Q)?(R.exit("mathFlowFence"),N(Q)):A(Q)}}}function zHt(e,t,n){const r=this;return i;function i(u){return u===null?t(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function HHt(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:VHt,previous:UHt};function r(i,l,u){let f=0,v,h;return g;function g(T){return i.enter("mathText"),i.enter("mathTextSequence"),y(T)}function y(T){return T===36?(i.consume(T),f++,y):f<2&&!n?u(T):(i.exit("mathTextSequence"),w(T))}function w(T){return T===null?u(T):T===36?(h=i.enter("mathTextSequence"),v=0,S(T)):T===32?(i.enter("space"),i.consume(T),i.exit("space"),w):Ba(T)?(i.enter("lineEnding"),i.consume(T),i.exit("lineEnding"),w):(i.enter("mathTextData"),C(T))}function C(T){return T===null||T===32||T===36||Ba(T)?(i.exit("mathTextData"),w(T)):(i.consume(T),C)}function S(T){return T===36?(i.consume(T),v++,S):v===f?(i.exit("mathTextSequence"),i.exit("mathText"),l(T)):(h.type="mathTextData",C(T))}}}function VHt(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function UHt(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function jHt(e){return{flow:{[36]:FHt},text:{[36]:HHt(e)}}}function WHt(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>u&&(u=l):l=1,i=r+t.length,r=n.indexOf(t,i);return u}function GHt(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:l},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:f,mathText:u,mathTextData:f}};function e(v){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},v)}function t(){this.buffer()}function n(){const v=this.resume(),h=this.stack[this.stack.length-1];h.meta=v}function r(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function i(v){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),g=this.exit(v);g.value=h,g.data.hChildren[0].value=h,this.setData("mathFlowInside")}function l(v){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},v),this.buffer()}function u(v){const h=this.resume(),g=this.exit(v);g.value=h,g.data.hChildren[0].value=h}function f(v){this.config.enter.data.call(this,v),this.config.exit.data.call(this,v)}}function KHt(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 554`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(l,u,f,v){const h=l.value||"",g=bR(v),y="$".repeat(Math.max(WHt(h,"$")+1,2)),w=f.enter("mathFlow");let C=g.move(y);if(l.meta){const S=f.enter("mathFlowMeta");C+=g.move(_re(f,l.meta,{before:C,after:` 555`,encode:["$"],...g.current()})),S()}return C+=g.move(` 556`),h&&(C+=g.move(h+` 557`)),C+=g.move(y),w(),C}function r(l,u,f){let v=l.value||"",h=1;for(t||h++;new RegExp("(^|[^$])"+"\\$".repeat(h)+"([^$]|$)").test(v);)h++;const g="$".repeat(h);/[^ \r\n]/.test(v)&&(/^[ \r\n]/.test(v)&&/[ \r\n]$/.test(v)||/^\$|\$$/.test(v))&&(v=" "+v+" ");let y=-1;for(;++y<f.unsafe.length;){const w=f.unsafe[y],C=bre(w);let S;if(!!w.atBreak)for(;S=C.exec(v);){let T=S.index;v.codePointAt(T)===10&&v.codePointAt(T-1)===13&&T--,v=v.slice(0,T)+" "+v.slice(S.index+1)}}return g+v+g}function i(){return"$"}}function YHt(e={}){const t=this.data();n("micromarkExtensions",jHt(e)),n("fromMarkdownExtensions",GHt()),n("toMarkdownExtensions",KHt(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const qHt="Block formula",XHt="formula",ZHt="Inline formula",QHt="formula",JHt={block:qHt,blockText:XHt,inline:ZHt,inlineText:QHt},AQ={Formula:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m40 9-3-3H8l18 18L8 42h29l3-3"/></svg>',Inline:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m37 9-3-3H8l17 18L8 42h26l3-3M5 24h10M33 24h10"/></svg>',Block:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m36 11-3-3H12l16 16-16 16h21l3-3M6 5v38M42 5v38"/></svg>'};function eVt(e){return[{icon:AQ.Formula,handler:{type:"dropdown",actions:[{title:e.inline,icon:AQ.Inline,cheatsheet:`$${e.inlineText}$`,handler:{type:"action",click({wrapText:t,editor:n}){t("$"),n.focus()}}},{title:e.block,icon:AQ.Block,cheatsheet:`$$\u21B5${e.blockText}\u21B5$$`,handler:{type:"action",click({appendBlock:t,editor:n,codemirror:r}){const{line:i}=t(`$$ 558\\TeX 559$$`);n.setSelection(r.Pos(i+1,0),r.Pos(i+1,4)),n.focus()}}}]}}]}function ebe({locale:e,katexOptions:t}={}){const n={...JHt,...e};let r;return{remark:i=>i.use(YHt),viewerEffect({markdownBody:i}){const l=async(u,f)=>{const v=i.querySelectorAll(u);v.length!==0&&(r||(r=await Ra(()=>import("./katex.027b937e.js"),[]).then(h=>h.default)),v.forEach(h=>{r.render(h.innerText,h,{...t,throwOnError:!1,displayMode:f})}))};l(".math.math-inline",!1),l(".math.math-display",!0)},actions:eVt(n)}}const tVt="\u7C97\u4F53",nVt="\u7C97\u4F53\u6587\u672C",rVt="Markdown \u8BED\u6CD5",oVt="\u5173\u95ED\u5E2E\u52A9",aVt="\u5173\u95ED\u76EE\u5F55",iVt="\u4EE3\u7801",sVt="\u4EE3\u7801\u5757",lVt="\u7F16\u7A0B\u8BED\u8A00",uVt="\u4EE3\u7801",cVt="\u9000\u51FA\u5168\u5C4F",fVt="\u6062\u590D\u9ED8\u8BA4",dVt="\u6062\u590D\u9ED8\u8BA4",vVt="\u5168\u5C4F",hVt="\u4E00\u7EA7\u6807\u9898",pVt="\u4E8C\u7EA7\u6807\u9898",mVt="\u4E09\u7EA7\u6807\u9898",gVt="\u56DB\u7EA7\u6807\u9898",yVt="\u4E94\u7EA7\u6807\u9898",bVt="\u516D\u7EA7\u6807\u9898",_Vt="\u6807\u9898",wVt="\u5E2E\u52A9",CVt="\u5206\u5272\u7EBF",xVt="\u56FE\u7247",EVt="alt",SVt="\u56FE\u7247\u63CF\u8FF0",TVt="\u659C\u4F53",AVt="\u659C\u4F53\u6587\u672C",kVt="\u5DF2\u8FBE\u6700\u5927\u5B57\u7B26\u6570\u9650\u5236",OVt="\u884C\u6570",MVt="\u94FE\u63A5",NVt="\u94FE\u63A5\u63CF\u8FF0",DVt="\u6709\u5E8F\u5217\u8868",IVt="\u9879\u76EE",RVt="\u9884\u89C8",LVt="\u4EC5\u9884\u89C8\u533A",BVt="\u5F15\u7528",PVt="\u5F15\u7528\u6587\u672C",FVt="\u5FEB\u6377\u952E",$Vt="\u6E90\u4EE3\u7801",zVt="\u540C\u6B65\u6EDA\u52A8",HVt="\u76EE\u5F55",VVt="\u56DE\u5230\u9876\u90E8",UVt="\u65E0\u5E8F\u5217\u8868",jVt="\u9879\u76EE",WVt="\u5B57\u6570",GVt="\u7F16\u8F91",KVt="\u4EC5\u7F16\u8F91\u533A";var tbe={bold:tVt,boldText:nVt,cheatsheet:rVt,closeHelp:oVt,closeToc:aVt,code:iVt,codeBlock:sVt,codeLang:lVt,codeText:uVt,exitFullscreen:cVt,exitPreviewOnly:fVt,exitWriteOnly:dVt,fullscreen:vVt,h1:hVt,h2:pVt,h3:mVt,h4:gVt,h5:yVt,h6:bVt,headingText:_Vt,help:wVt,hr:CVt,image:xVt,imageAlt:EVt,imageTitle:SVt,italic:TVt,
559italicText:AVt,limited:kVt,lines:OVt,link:MVt,linkText:NVt,ol:DVt,olItem:IVt,preview:RVt,previewOnly:LVt,quote:BVt,quotedText:PVt,shortcuts:FVt,source:$Vt,sync:zVt,toc:HVt,top:VVt,ul:UVt,ulItem:jVt,words:WVt,write:GVt,writeOnly:KVt};const YVt="\u5220\u9664\u7EBF",qVt="\u6587\u672C",XVt="\u8868\u683C",ZVt="\u6807\u9898",QVt="\u4EFB\u52A1\u5217\u8868",JVt="\u5F85\u529E\u4E8B\u9879";var nbe={strike:YVt,strikeText:qVt,table:XVt,tableHeading:ZVt,task:QVt,taskText:JVt};const eUt="\u5757\u7EA7\u516C\u5F0F",tUt="\u516C\u5F0F",nUt="\u884C\u5185\u516C\u5F0F",rUt="\u516C\u5F0F";var rbe={block:eUt,blockText:tUt,inline:nUt,inlineText:rUt};const oUt={components:{Editor:xFt},props:{modelValue:String},data(){return{content:"",plugins:[Qye({locale:nbe}),Jye(),ebe({locale:rbe})],zhHans:tbe}},created(){this.content=this.modelValue,this.$watch(()=>this.modelValue,(e,t)=>{this.content=e}),this.$watch(()=>this.content,(e,t)=>{this.$emit("update:modelValue",e)})},methods:{handleUploadImages(e){var t=[];for(const l of e){var n="/file/upload",r=new FormData;r.append("fileType",1);var i=new XMLHttpRequest;i.withCredentials=!1,i.open("POST",n,!1),i.onload=function(){if(i.status!=200){alert(i.status);return}var u=JSON.parse(i.responseText);if(!u||typeof u.path!="string"){alert(i.responseText);return}u.code==1?t.push({url:u.path,alt:l.name,title:""}):alert(u.msg)},r.append("file",l,l.name),i.send(r)}return t},handleChange(e){this.content=e}}};function aUt(e,t,n,r,i,l){const u=Kr("Editor");return Ce(),Ie("div",null,[gt(u,{value:i.content,plugins:i.plugins,locale:i.zhHans,uploadImages:l.handleUploadImages,onChange:l.handleChange},null,8,["value","plugins","locale","uploadImages","onChange"])])}var iUt=tv(oUt,[["render",aUt],["__scopeId","data-v-d22b0a56"]]);const sUt={components:{Viewer:AFt},props:{html:String},data(){return{plugins:[Qye({locale:nbe}),Jye(),ebe({locale:rbe})],zhHans:tbe}},created(){},methods:{}};function lUt(e,t,n,r,i,l){const u=Kr("Viewer");return Ce(),Ie("div",null,[gt(u,{value:n.html,plugins:i.plugins,locale:i.zhHans},null,8,["value","plugins","locale"])])}var uUt=tv(sUt,[["render",lUt],["__scopeId","data-v-4593aaa4"]]),uU="/assets/index-new-img.b5a66e5a.png",cU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAEbklEQVQ4jQXBW2xTZQAH8P+59vTerVs76IW5lTG2ZQMZdRgFM4wKglMQiSaICQmJJsbEJ5XEmOCb7z7yoJKgPsiC8QGBZV6WgUMF0k1ljK1d152etuvl9Fy+c853/P2Y11/9FDrfBYeTwLotUErBgZ8k+sbpwvKNSa+3ks7094BQJq/I7VtG2/7OtNs3TdMGIQ5C4QAinUGwuhQDsQzotgtOCAxKkjgjCvpNQ988bzNSRm17RFluio6hZ0IB5nxnVLpBHXbGsuxBnnfBcwx4joJLDR3FaFyDh7EOlZrcjCRgF8xHsMyHYFgJmq7BNFUU1xtoNDUQQsEwwV5RwFmBZ+dM01qzbResZNdxMLE6+P5zzek+vxIsV1VsaSwqShWt+iNUGirkioHuoBcCA6zkZbT0GrqioaDf75u2KRk0NAJu9/BBxl6buba6sphJh3U8NRTF0I4O9CUTmNg7BE7bQkKi+OzcSbgMh19zq/D6OsG4DDyCKxGTjDOs5xIf9fOHaw1+ovBYwQdnuzCa1mAxFN74KFxK8c6zfZi/8xduP1hC3bGR6OkGZSRsVqvwCxZElp/wdXoOc08mQx9NjCf3nX/7BPq3hVBTKqDhNMLpnZBLCtLDe7FzbA9+mr2N6d/+hm5YUJs1sK4L3XBAKUW7aZrMlYvnlrdH2P7xZw7CFgIA78GN3++jqVo4/cpxbDbqiPi9cHQFYy+/hy0aQ5ePQaNcgO1oiHR0gOWER+yh5w6k+jIjMIQuSDuGEegdxf6JQxjPZiEln8D3V69j3+GT0ODDV19+AUEUYDMWTKsJ1zEhcBL6R5IpdrVYNdloCkKgE6RlQlWqCASDiKVTaJsU+WoDK/l1zC0UMXnsDaQCBmpKFbFEHN3bAnDdGhqlEvgHueUNXbN3JfoNpAbG4O2IYGOjgOlr16FsqvhvKQdJFCHwFAAw+fxLKE3/Ao9fhSQI4OGHotTXuaf3jGWpTcbKsgLB70M83YtQLIGNlVVcvvw1yptFHDkyibfOnEK4MwaH9SJXpvD5w7B1CofxQjfIj/zPs7cvm636me09XShVm7AcHjt2DWDqxHHsHhnAeiGP3SPD2N67E2ajgMeyCkGQ4OO6YdRlKIX7YKn7DffxmamV4t27L+5/4WgymRlAvdFAVSljMXcPoihg755xeDxerC0v4turt3Bv3YE/EABpyWg1a7Asc97DMxeYO5+/C9HrGRz78OK8WtoMt9saXJdAlosgDoVuUjRqW7i3MIfcwzLqXBLeUAR6U4beVhuR6LYDxFSW+HzuX2TfPPUPoE0ZevUaIVYw2tWDWE8crEeCZbuobRYRD4gorF2BsrEIsuVDuVxoDaR6poKWsPS4XAS7sLyMNaUOWMYsGCfLgM671IFhElRkGVvlAuKxKLLHXsPAQAaklkfCp813iDRLDX2WJxV4HB2cEAyAsByGRkagqaioxLmkEW3OpYxRq8kdlr4V4HivYbHiClFrPyz88ecnEstcCIcjFZfhYBENNVXD/2/VNLWRybpqAAAAAElFTkSuQmCC",obe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABH0lEQVQokY3SsUodQRSA4W9XERFbJRAiioUoahkQArdLkSZ9YCtBt5AtFBR8CXEsnFYnpBAhkCJFitj5AJpCLOy000ILbfRaZCGLuer9q5lz5p85ZzhZu93WiRBTHzYwguOqLNab+byj9ZcFTGIRrRDTWrfiO/yuyuICe3jfrTiHk3o9gLNmsreTEWL6hqwqi/061MJQiGkeZ1VZHPSGmCr8wTmWMI4efGrctYMZTONLiKmVbW7vXuMzVnCNr1VZ/HyhBSGmwxzfq7I4qMtefk2qOc0xWG9uMfqaEWIaQ3/zVztPwv9M4y5H1ghmzxxuMoWbvPFSG/ddiBO4avY4jIeXjBDTW3zEr2xze/cIq5jFB1z6N1HZk/Lf4EdVFluPlcFIElcDLdoAAAAASUVORK5CYII=",fU="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAACEJVa/AAABXUlEQVQokWXSP0hWYRQG8J/f9zlIJDgEbk6CUFOhEJWGiEIEDUWQJNLUF5ngpk0OQYOT4j+ovv4TUUIQUWQUDg0ViXOtgYKk2CRR6nDPhZfrAy+X93nPec45z7l1k3OPFNCGKppRwj9UsIN13MdyHjxcHVApCEzjOD7hIb5gA43owGnM4wcu50mpyCIacBarCd+ETXyIM4Fn+I527JQi8AHKOJkIdOIt7uIdeoLfwpno5rWY+QJOoDupfiTGeYKruIN7UTnHJTRPzT8equAmBgvejKCGp3FfQEvw/UncRbwoyVyvK4iUsV3gtoMv4n8Jt5KKOWZwA30y8zsxitlC3EvUKniFc1hCVzx+wzWMyTxpilGWEoHn+DVcHZjLV3wF7/EZ57GGN3Fa8TNJPhgdHMIxsu3k6MWKbJ23cSo8yAU6MI6P+I2j2MW+P/Y6Dsd3KDr8i3ocwJ94+5om7QHank0qlQ65fwAAAABJRU5ErkJggg==",T7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAYAAADJ7fe0AAABZElEQVQokY3Tv0tVcRjH8de93UEcpARBRRfBoB8UKplIq6NOkaCDUYMIUlCDi4iLmxSEdwnEa6iILqb9BxIoKDVbmwmCDpWrchvOc+hyuBf8wIEv3+f5vs/5fD/PyZUOy2roKd6gHwt4gt+ZnjwuCjUAI1jFPWzjfsBOK3puoB4H+SqAFwFowivcQUcA6lDEKK5wgZMsZBwf4w3zYaEzajexHwen8Tq1VAmZwgc0YA1dYSNVHR5gCefoTQspZBozuIV1tOBh5itPMRRWj/Ey9i8LmMDzODQnubA+1bUTT
5596rb6MqVDstldOMvfiJXA5BVJ44wmccz7Ia1WXy7BuBRAKbGuhUL2JRc5pEk1lb88D+VrB5jD2/xDtJhW8QlztAc62O0ZwD9+CqZpaV0s3Jil/FHkkJzrH+hLepD+IwxfKokZ8d+C4MB6kEjvqOE9xjGRtZftX/nCwawgruS2Cclse9X6fcPZQJJ02jxhZgAAAAASUVORK5CYII=",abe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA7UlEQVQokYXPsS4EcRTF4e8/UWxEopagUNFIEIlNtF6CSiMhEiuqmU4zrcaWWvXGG0hEWC0PoBNRaRRirmaGtTac7tz87rn3pIjQKBXRQhdT9egZu1Gmt4bJ/NQtJnGIDlropyK+uYgQEeTVjry6avzA/FJe7Td+8MIaLvxWD6ujXrrB5oiFLdx99RwqfVaHdBHYQxZl2m6YsaG0JxRYxgeWcDIIZHXyTCriBbOYQxvrmMZ4KuI1FbEISV5N4AHnUaZ8RAepiA6OsZDk1SlWokztUfDAUg/vGTZw9Bdc6wDzGe6jTNf/0VGmR/Q/AdXgXNhne5tNAAAAAElFTkSuQmCC",ibe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABDElEQVQokaWRsUoEMRRFz4yj1YrbiZ0sCIt2VlZib2MjYpFSSLP5AEv7LRKLpBMSRLARf8Ba0MIPEBc7LQQFUYvBWEzQcQSdxQchF3LPfclLpq3fBVaBNyDj94rAJHBZAJvAFnDfEpwCTgrgFrhRUpR/QJ9lXBjlqUunLZQqz8cEvsi0x3SFPePCUdJD48JB0ta4MKyDRSNoHugn3QNmk14Anr85tfWn2vpujJG2S1t/+K83RiXF45hcWQA948I68ED1Na9Kiqu6y7iwBMwA71RzWcy09TvABlAmcA64VlJsJ2gfWANGVNOfAM6yGCON9GngAjgGnoABsKKkuKv7foC1gHOgCywrKV6a5x82znKJHuXFPwAAAABJRU5ErkJggg==",sbe="/assets/search-admin-touxiang.2b645e76.png",lbe="/assets/search-baoming-left.95d217c1.png",ube="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABVElEQVQokY3SP2tUQRiF8d9e1ggLFpaxEG2tRNBGsLR3YQQVxD/MgGyxNpIqtlY2KYTM7cQQ2EGwt4qFX8BCCy1FURGxSGPkWuxc2MUN+sALM4f3HAbmDLqu05PbcgoTrGNU5X18RU4xvO13mwXTBC/wG1sphnGKYYzH+Imd3JbNfn/QdZ3clnt4gMsphvc16BKkGF7V+zpeYifF8KjJbTmN+7jQmyp366gBn3AWt3JbzjWY4nmK4ZtlPtexYD5Ai2mDE9j1N2v4vkJ/itEQaymGNysWBrid23JQzx9TDLsphi+5LfvDKq4io8OZunNkKXU7zwo2UwzvDglYTmvLcWw35p979X9Mlev41WAL13JbRv8w9EzwpC/ABm7iYorhxyFPPIo97KUYNgZ9V3NbHuIKZpilGD5U/STGuIHXKYYptXILqedxB8fMO9thaF70Z3394A/FyX4NyvpiawAAAABJRU5ErkJggg==",cbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAOCAYAAAD0f5bSAAABhklEQVQokXXSz4uNURzH8de97iykbJQySE1+LCY1mgV2kqaIhXKyu/LjOSml1GAjZWFhMyyknKM0NBbzhL9B2ek+K3PLz6jZyWJIIfVYeG4eC+86nc738/1++57POZ26ro1IuTyGddiJA/iMe1iN+ViEb9AZFaVc3sQUvqPGeRzGUSxjC2IswrDnLydwOhbhaSt2q1lSLn9iN4bdVsIFPEm5nGjFpFyuTbms8SAW4T50G2ErrmIuFuF9uygW4QsWsDflcjOsGt842cNbLMQizKZcTg2q4b7p6cmXKZfHB9VwLBbhzqAaTmB+UA3nupjDq1iEi03zZRxKucw42JzFIsziBXIX+3GlNdEmvMOZZt/Q0s5iTxe/sNQSTmIWK7iMfkt7g08j99qOzTfJK7jUmDBiHGM9fMA5PG9mr1ClXC7FIjzzL33UnbtpcRteox+L8NB/SLnchQoznbqupVwewWM8wmJzx69Yg+2YwSlci0W43f5763EDO5rmP/x5/B4+4noswhL8BiMniRwPgycjAAAAAElFTkSuQmCC",fbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAABJklEQVQokYXRsUocYRQF4G/XMRElS+qIhQhiFQyEgBgVayEuwjzCjL0PkUbyAJl5gSUD26RMlSIIKymUpLWwUBAFRSO4iJNi/4FZ45JT/vece865f6MsSxWyvBhHFzMocY52msR/Kk7TMPYwhTY20Ucvy4uxihDVtm/jRZrEb2sLNrK8+IUd7D52eI9v/sVXLD8VqYel4PYxy4tP4X0V+xWpUZUOOQ/xGz9C3NdYwUKaxP0hQa1LB8d4wHyaxFv1ed1hEc9xg/Uw/44JPKRJ/BMan7Mvzwxu/wqXuMe1wT+0QrQWrvAhQgdzeJcm8fUTV5LlxWRw6zbxBmujyJAm8a3B2WebOMPFKHJNdIeTKGSfyfLi9D+al5iOcBB69NEYQS4Nyh/9BX7yXDOg6OLOAAAAAElFTkSuQmCC";const cUt={data(){return{searchList:1,zongheType:1}},props:{modelValue:String,accept:{type:String,default:""}},created(){},methods:{SearchList(e){var t=this;t.searchList=e},ZongheType(e){var t=this;t.zongheType=e}}},Ed=e=>(pb("data-v-7e3b0e62"),e=e(),mb(),e),fUt={class:"essay"},dUt={class:"search-content"},vUt={class:"hd"},hUt={class:"bd"},pUt={key:0,class:"search-zonghe"},mUt={class:"search-zonghe-type"},gUt={class:"zonghe-new index-tuijian"},yUt=Ed(()=>ce("div",{class:"index-new-img"},[ce("img",{src:uU,alt:""})],-1)),bUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}," UI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBEUI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBE "),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:cU,alt:""})]),ce("div",{class:"index-new-name"}," \u963F\u91CC\u5DF4\u5DF4 "),ce("div",{class:"index-new-dianzan"},[ce("img",{src:obe,alt:""}),lo(" 215 ")]),ce("div",{class:"index-new-liulan"},[ce("img",{src:fU,alt:""}),lo(" 150k ")])]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),_Ut=Ed(()=>ce("div",{class:"index-new-img"},[ce("img",{src:uU,alt:""})],-1)),wUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}
559," UI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBEUI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBE "),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:cU,alt:""})]),ce("div",{class:"index-new-name"}," \u963F\u91CC\u5DF4\u5DF4 "),ce("div",{class:"index-new-dianzan"},[ce("img",{src:obe,alt:""}),lo(" 215 ")]),ce("div",{class:"index-new-liulan"},[ce("img",{src:fU,alt:""}),lo(" 150k ")])]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),CUt={class:"wenda-new index-tuijian"},xUt=Ed(()=>ce("div",{class:"index-new-img"},[ce("div",{class:"index-new-img-item huozan"},[ce("div",{class:"index-new-img-number"}," 88 "),ce("div",{class:"index-new-img-text"}," \u83B7\u8D5E ")]),ce("div",{class:"index-new-img-item jiejue"},[ce("div",{class:"index-new-img-number"}," 25 "),ce("div",{class:"index-new-img-text"}," \u89E3\u51B3 ")]),ce("div",{class:"index-new-img-item liulan"},[ce("div",{class:"index-new-img-number"}," 88 "),ce("div",{class:"index-new-img-text"}," \u6D4F\u89C8 ")])],-1)),EUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:cU,alt:""})]),ce("div",{class:"index-new-name"}," \u963F\u91CC\u5DF4\u5DF4 "),ce("div",{class:"index-new-fabu"}," 1\u4E2A\u6708\u524D\u53D1\u5E03 ")]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),SUt=Ed(()=>ce("div",{class:"index-new-img"},[ce("div",{class:"index-new-img-item huozan"},[ce("div",{class:"index-new-img-number"}," 88 "),ce("div",{class:"index-new-img-text"}," \u83B7\u8D5E ")]),ce("div",{class:"index-new-img-item wenda"},[ce("div",{class:"index-new-img-number"}," 25 "),ce("div",{class:"index-new-img-text"}," \u95EE\u7B54 ")]),ce("div",{class:"index-new-img-item liulan"},[ce("div",{class:"index-new-img-number"}," 88 "),ce("div",{class:"index-new-img-text"}," \u6D4F\u89C8 ")])],-1)),TUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:cU,alt:""})]),ce("div",{class:"index-new-name"}," \u963F\u91CC\u5DF4\u5DF4 "),ce("div",{class:"index-new-fabu"}," 1\u4E2A\u6708\u524D\u53D1\u5E03 ")]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),AUt={class:"xiangmu-new index-tuijian"},kUt=Ed(()=>ce("div",{class:"index-new-img"},[ce("img",{src:uU,alt:""}),ce("div",{class:"index-new-img-inner jinxingzhong"}," \u8FDB\u884C\u4E2D ")],-1)),OUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}
559," UI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBEUI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBE "),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:abe,alt:""})]),ce("div",{class:"index-new-name"}," \u8D21\u732E\u8005\uFF1A\u53E4\u6708\u5C45 "),ce("div",{class:"index-new-liulan"},[ce("img",{src:fU,alt:""}),lo(" 150k ")]),ce("div",{class:"index-new-dianzan"},[ce("img",{src:ibe,alt:""}),lo(" 28 ")])]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),MUt=Ed(()=>ce("div",{class:"index-new-img"},[ce("img",{src:uU,alt:""}),ce("div",{class:"index-new-img-inner yijiexiang"}," \u5DF2\u7ED3\u9879 ")],-1)),NUt=Ed(()=>ce("div",{class:"index-new-info"},[ce("div",{class:"index-new-title"}," \u65B0\u624B\u81EA\u5B66UI\u8BBE\u8BA1\uFF0C\u8FD9\u51E0\u70B9\u662F\u4F60\u5FC5\u987B\u8981\u6E05\u695A\u7684\uFF01 "),ce("div",{class:"index-new-text"}," UI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBEUI\u53EA\u662F\u4E00\u4E2A\u7B80\u79F0\uFF0C\u5168\u79F0\u662FUser Interface \u5373\u7528\u6237\u754C\u9762\u8BBE\u8BA1\uFF0C\u6307\u7684\u662F\u5BF9\u4E8E\u6240\u6709\u8F6F\u4EF6\u7684\u754C\u9762\u7F8E\u89C2\u3001\u64CD\u4F5C\u903B\u8F91\u3001\u4EBA\u673A\u4EA4\u4E92\u7684\u6574\u4F53\u8BBE "),ce("div",{class:"index-new-foot"},[ce("div",{class:"index-new-left"},[ce("div",{class:"index-new-toux"},[ce("img",{src:abe,alt:""})]),ce("div",{class:"index-new-name"}," \u8D21\u732E\u8005\uFF1A\u53E4\u6708\u5C45 "),ce("div",{class:"index-new-liulan"},[ce("img",{src:fU,alt:""}),lo(" 150k ")]),ce("div",{class:"index-new-dianzan"},[ce("img",{src:ibe,alt:""}),lo(" 28 ")])]),ce("div",{class:"index-new-right"},[ce("img",{src:T7,alt:""}),ce("div",{class:"index-new-biaoqian"}," \u8BBE\u8BA1\u6559\u7A0B "),ce("div",{class:"index-new-biaoqian"}," \u7EBF\u6027\u56DE\u5F52 "),ce("div",{class:"index-new-biaoqian"}," \u968F\u673A\u68EE\u6797 "),ce("div",{class:"index-new-biaoqian"}," XGBoost ")])])],-1)),DUt={class:"search-admin-list"},IUt=Ed(()=>ce("div",{class:"search-admin-left"},[ce("div",{class:"search-admin-touxiang"},[ce("img",{src:sbe,alt:""})]),ce("div",{class:"search-admin-info"},[ce("div",{class:"search-admin-name"}," \u7F57\u4F2F\u7279\u7965 "),ce("div",{class:"search-admin-text"},[ce("ul",null,[ce("li",null,[ce("span",null,"15"),lo("\u7BC7\u6587\u7AE0")]),ce("li",null,[ce("span",null,"20"),lo("\u4E2A\u95EE\u7B54")]),ce("li",null,[ce("span",null,"20"),lo("\u4E2A\u9879\u76EE")]),ce("li",null,[ce("span",null,"1528"),lo("\u7C89\u4E1D")])])])])],-1)),RUt=Ed(()=>ce("div",{class:"search-admin-btn"}," \u5173\u6CE8TA ",-1)),LUt=Ed(()=>ce("div",{class:"search-admin-left"},[ce("div",{class:"search-admin-touxiang"},[ce("img",{src:sbe,alt:""})]),ce("div",{class:"search-admin-info"},[ce("div",{class:"search-admin-name"}," \u7F57\u4F2F\u7279\u7965 "),ce("div",{class:"search-admin-text"},[ce("ul",null,[ce("li",null,[ce("span",null,"15"),lo("\u7BC7\u6587\u7AE0")]),ce("li",null,[ce("span",null,"20"),lo("\u4E2A\u95EE\u7B54")]),ce("li",null,[ce("span",null,"20"),lo("\u4E2A\u9879\u76EE")]),ce("li",null,[ce("span",null,"1528"),lo("\u7C89\u4E1D")])])])])],-1)),BUt=Ed(()=>ce("div",{class:"search-admin-btn"}," \u5173\u6CE8TA ",-1)),PUt={class:"search-baoming-list"},FUt=Ed(()=>ce("div",{class:"search-baoming-left"},[ce("img",{src:lbe,alt:""})],-1)),$Ut=Ed(()=>ce("div",{class:"search-baoming-right"},[ce("div",{class:"search-baoming-title"},[ce("p",null,"\u7B2C\u5341\u4E5D\u5E73\u7EBF\u667A\u6167\u533B\u7597\u6311\u6218\u8D5B"),ce("span",null,"\u62A5\u540D\u4E2D")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:ube,alt:""}),lo(" \u5927\u8D5B\u65F6\u95F4\uFF1A2024-03-15 00:00:00 - 2024-06-15 23:59:00 ")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:cbe,alt:""}),lo(" \u7ADE\u8D5B\u5956\u91D1\uFF1A\u56FD\u5BB6A\u7C7B\u7ADE\u8D5B ")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:fbe,alt:""}),lo(" \u4E3E \xA0 \u529E \xA0 \u65B9\uFF1A\u5730\u5E73\u7EBF ")])],-1)),zUt=Ed(()=>ce("div",{class:"search-baoming-left"},[ce("img",{src:lbe,alt:""})],-1)),HUt=Ed(()=>ce("div",{class:"search-baoming-right"},[ce("div",{class:"search-baoming-title"},[ce("p",null,"\u7B2C\u5341\u4E5D\u5C4A\u5168\u56FD\u5927\u5B66\u751F\u667A\u80FD\u6C7D\u8F66\u7ADE\u8D5B-\u5730\u5E73\u7EBF\u667A\u6167\u533B\u7597\u6311\u6218\u5927\u5B66\u751F\u667A\u80FD\u6C7D\u8F66\u7ADE\u8D5B-\u5730\u5E73\u7EBF\u667A\u6167\u533B\u7597\u6311\u6218\u5927\u5B66\u751F\u667A\u80FD\u6C7D\u8F66\u7ADE\u8D5B-\u5730\u5E73\u7EBF\u667A\u6167\u533B\u7597\u6311\u6218\u5927\u5B66\u751F\u667A\u80FD\u6C7D\u8F66\u7ADE\u8D5B-\u5730\u5E73\u7EBF\u667A\u6167\u533B\u7597\u6311\u6218\u8D5B "),ce("span",null,"\u62A5\u540D\u4E2D")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:ube,alt:""}),lo(" \u5927\u8D5B\u65F6\u95F4\uFF1A2024-03-15 00:00:00 - 2024-06-15 23:59:00 ")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:cbe,alt:""}),lo(" \u7ADE\u8D5B\u5956\u91D1\uFF1A\u56FD\u5BB6A\u7C7B\u7ADE\u8D5B ")]),ce("div",{class:"search-baoming-info"},[ce("img",{src:fbe,alt:""}),lo(" \u4E3E \xA0 \u529E \xA0 \u65B9\uFF1A\u5730\u5E73\u7EBF ")])],-1)),VUt={key:1},UUt={key:2};function jUt(e,t,n,r,i,l){const u=Kr("router-link");return Ce(),Ie("div",fUt,[ce("div",dUt,[ce("div",vUt,[ce("ul",null,[ce("li",{class:He(i.searchList==1?"on":""),onClick:t[0]||(t[0]=f=>l.SearchList(1))},"\u7EFC\u5408",2),ce("li",{class:He(i.searchList==2?"on":""),onClick:t[1]||(t[1]=f=>l.SearchList(2))},"\u535A\u5BA2",2),ce("li",{class:He(i.searchList==3?"on":""),onClick:t[2]||(t[2]=f=>l.SearchList(3))},"\u95EE\u7B54",2),ce("li",{class:He(i.searchList==4?"on":""),onClick:t[3]||(t[3]=f=>l.SearchList(4))},"\u9879\u76EE",2),ce("li",{class:He(i.searchList==5?"on":""),onClick:t[4]||(t[4]=f=>l.SearchList(5))},"\u8BFE\u7A0B",2),ce("li",{class:He(i.searchList==6?"on":""),onClick:t[5]||(t[5]=f=>l.SearchList(6))},"\u7528\u6237",2),ce("li",{class:He(i.searchList==7?"on":""),onClick:t[6]||(t[6]=f=>l.SearchList(7))},"\u7ADE\u8D5B",2),ce("li",{class:He(i.searchList==8?"on":""),onClick:t[7]||(t[7]=f=>l.SearchList(8))},"\u53E4\u6708\u77E5\u9053",2)])]),ce("div",hUt,[i.searchList==1?(Ce(),Ie("ul",pUt,[ce("div",mUt,[ce("div",{class:He(i.zongheType==1?"search-zonghe-type-item on":"search-zonghe-type-item"),onClick:t[8]||(t[8]=f=>l.ZongheType(1))}," \u63A8\u8350\u6392\u5E8F ",2),ce("div",{class:He(i.zongheType==2?"search-zonghe-type-item on":"search-zonghe-type-item"),onClick:t[9]||(t[9]=f=>l.ZongheType(2))}," \u6700\u65B0\u6392\u5E8F ",2),ce("div",{class:He(i.zongheType==3?"search-zonghe-type-item on":"search-zonghe-type-item"),onClick:t[10
559]||(t[10]=f=>l.ZongheType(3))}," \u6700\u70ED\u6392\u5E8F ",2)]),ce("div",gUt,[gt(u,{to:"/detail",class:"zonghe-new-item"},{default:Dt(()=>[yUt,bUt]),_:1}),gt(u,{to:"",class:"zonghe-new-item"},{default:Dt(()=>[_Ut,wUt]),_:1})]),ce("div",CUt,[gt(u,{to:"",class:"zonghe-new-item"},{default:Dt(()=>[xUt,EUt]),_:1}),gt(u,{to:"",class:"zonghe-new-item"},{default:Dt(()=>[SUt,TUt]),_:1})]),ce("div",AUt,[gt(u,{to:"",class:"zonghe-new-item"},{default:Dt(()=>[kUt,OUt]),_:1}),gt(u,{to:"",class:"zonghe-new-item"},{default:Dt(()=>[MUt,NUt]),_:1})]),ce("div",DUt,[gt(u,{class:"search-admin-item",to:""},{default:Dt(()=>[IUt,RUt]),_:1}),gt(u,{class:"search-admin-item",to:""},{default:Dt(()=>[LUt,BUt]),_:1})]),ce("div",PUt,[gt(u,{class:"search-baoming-item",to:""},{default:Dt(()=>[FUt,$Ut]),_:1}),gt(u,{class:"search-baoming-item",to:""},{default:Dt(()=>[zUt,HUt]),_:1})])])):on("",!0),i.searchList==2?(Ce(),Ie("ul",VUt," 2 ")):on("",!0),i.searchList==3?(Ce(),Ie("ul",UUt," 3 ")):on("",!0)])])])}var WUt=tv(cUt,[["render",jUt],["__scopeId","data-v-7e3b0e62"]]),GUt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAmCAYAAAAm56DSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM5RjhBQjc1MzhFMDExRUY4NzY0ODFBQUI3RTFFMjEyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM5RjhBQjc2MzhFMDExRUY4NzY0ODFBQUI3RTFFMjEyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzlGOEFCNzMzOEUwMTFFRjg3NjQ4MUFBQjdFMUUyMTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzlGOEFCNzQzOEUwMTFFRjg3NjQ4MUFBQjdFMUUyMTIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5NjAnjAAABfElEQVR42uyUzytEURTH5808vyaKDQu/slFWNv4FirCwMXspJQsLpBRlI5ZsbEYpxW4W8hf4C6zYqFFWTCI1DWaez6kzul1vXpPuQp5Tn7ndc2e+99xzzhwvCIKEK0smHJpTMX8ms7DCugpN1pkH9ebgHfZ9PnYdBbYpYqWQqLJwDaNKPfYsOXuznGswB3swBufqv4B+6NO1BwYhr+cfviVUCnn2BkxCN0wZfslnI6S/ChCS9BSUDV+HrsNwEFlNay83ncASFGAIjvWsrM/P64UVzfWhPv2bmNgs3MEVTECvFbndp16tyC4hI5XRs1OQPszBCBzV+0yp6jQ8Wd+5h3F40AJtSeWM3y9Dpy12EyJUtUfNYQucQVH9sp83xRr0YAB2tFmLhlBaC1Ftg9saF6ZErFk3rdqwP7V2EduGRSPCpFW1QNsgyiSHWS8ew/H3inmJ9YqzsS1izsr5P7b/0tiW1nhhbasxtl+hyxjbUVaIydh2/neKwdj+FGAA582C3mCMsP8AAAAASUVORK5CYII=",KUt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAmCAYAAAAm56DSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjUxNEFGRDdCMzhFMDExRUZBODVBODdGM0U2QTE1QjAyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjUxNEFGRDdDMzhFMDExRUZBODVBODdGM0U2QTE1QjAyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTE0QUZENzkzOEUwMTFFRkE4NUE4N0YzRTZBMTVCMDIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTE0QUZEN0EzOEUwMTFFRkE4NUE4N0YzRTZBMTVCMDIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6uuw0dAAABdUlEQVR42uyUzytEURTH504slFAWNGJhYe8P8BdQopSljZqSlZX5A/gDbKzs1DSLycbCP8E/oIiUSLGZQXF9bh2l9+5997zXy2Ry6ttZnPO+99wf72OstZWyolopMQayiqvr9bpLaAbdoZN28/Ag1G9C28SoRVrzlE4xXFJvE6OtgJGLReoN1WQ0GtK1bC0UT2iCCT9ik41EjFyMS190m130HDF7RZ2oGaO/k44jZm363rTvbBfdBmqPaDvX05DL2Cctu8MWE/csdlTvjI8HSbMy8YOc3zyaQvfoHLmeSfSJbjDvpswwWpCzmk4s+CKHPYTGEjW3wAaGZ8nfqYlqnulHRb5wE7a+6z8voFbw/x4ukxpVn9lFQbNLH4JW0BGak0WyqGnkNq/Qpuqd9ZS0v4dt07ApbNs9kx/bGAWxjaEe2xhlYpu6Dts0qrHNhH8V24yuwjZ9PcQ2l5HCNhPpsM3HubGNeRrbGBXGNob/2O47bH8JMACAvawhJAR6vgAAAABJRU5ErkJggg==";const YUt={data(){return{}},created(){},methods:{}},wre=e=>(pb("data-v-6d9a1687"),e=e(),mb(),e),qUt={class:"memberNav"},XUt={class:"account-nav"},ZUt=wre(()=>ce("h3",null,[ce("b",null,"\u7F16\u8F91\u8D44\u6599")],-1)),QUt=wre(()=>ce("p",null,[ce("em",null,[ce("img",{src:GUt,alt:""})]),ce("span",null,"\u4E2A\u4EBA\u8D44\u6599")],-1)),JUt=wre(()=>ce("p",null,[ce("em",null,[ce("img",{src:KUt,alt:""})]),ce("span",null,"\u8D26\u6237\u8BBE\u7F6E")],-1));function ejt(e,t,n,r,i,l){const u=Kr("router-link");return Ce(),Ie("div",qUt,[ce("div",XUt,[ZUt,ce("div",null,[gt(u,{to:"/edit",class:He(["more",e.$store.getters.editNav=="personalInfor"?"on":""])},{default:Dt(()=>[QUt]),_:1},8,["class"]),gt(u,{to:"/account",class:He(["more",e.$store.getters.editNav=="account"?"on":""])},{default:Dt(()=>[JUt]),_:1},8,["class"])])])])}var tjt=tv(YUt,[["render",ejt],["__scopeId","data-v-6d9a1687"]]),njt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i
55977u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUwQzQxMzEwMzkyMDExRUY5NkNFQ0JBMUQxRTc1OTdGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUwQzQxMzExMzkyMDExRUY5NkNFQ0JBMUQxRTc1OTdGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTBDNDEzMEUzOTIwMTFFRjk2Q0VDQkExRDFFNzU5N0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTBDNDEzMEYzOTIwMTFFRjk2Q0VDQkExRDFFNzU5N0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Rl/xDAAABJElEQVR42mL8//8/AyWAJa+4GZ/8NiDmBmJ3IP6B1QAcGlmBeDcQ20P5Z4HYAYhfoytkwqKZD4hPIGkGAS2oIYqEDBCHKjTCYrAsVE4XlwEgBReAWAVPmAgC8RkgNkY3AOTEi0AsQUTAswHxaWiYgA3wg2oWJCH2GIF4PxAnggyYiSc2CIEpIAPMgHgtkuA7IP6FRTEoHXxE4u8DYk2QAY+B+DmSRBAQcwHxYSSxPUDMCcTJSGJvgPgRzOncSBJFUM12aC4AGZCJxsfqd1CgfgbiCUC8FYiZoWJ50BjAmpRZ0cRBXqiCYgY8yR2eDjjIiAFuZBdMhCYmASD+T0Qa+ALEnWAOpeUBI0Plv9HyYMiXB6BofE6kzdjAt9HyYFiUBwABBgDAY1fVaFXlcgAAAABJRU5ErkJggg==",rjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkZEOUQyNTMyMzkyMDExRUZCOEVDOUExOEMwQTExMzE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkZEOUQyNTMzMzkyMDExRUZCOEVDOUExOEMwQTExMzE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RkQ5RDI1MzAzOTIwMTFFRkI4RUM5QTE4QzBBMTEzMTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RkQ5RDI1MzEzOTIwMTFFRkI4RUM5QTE4QzBBMTEzMTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5FSdYzAAABgElEQVR42uzUTygEURzA8Zm1tLQolHBwdVlFctyTFDm5KHFREsoBlyU5uLg5OcqfG0U5+JeDUkrh5oKrXJB/sfm34/um36sxzVrNHDjsq8/8eb335vf+zM+0LMsIUsJDI1MD3CeR/8s+H1hBP6wwl1kfH+7DDM5CXN58Rl9gTwGvyJPQ9vCMkKtxStrGUeSYil2pyws6cfPDV4/QkG4ANfK1R6dP3MFEqdSdSt23AdR+3uJdGuv9LUGZo90umnGIqHOuD6gUFY7nuKPNNnowiEW9jboU4lgW1ZDdSaJc3vfRgk25JxBzDpCD2jSLp8PekM4XWDdc2/WIKpm/0ib1amG7sIpWHMi0Lt2LGME0nmSAaqkfQy/asYUOLGFBRaEGyJWG6jB1e4R/gkaMYh5raMKEnkIkw5Gdk2NbjCvprE+nPYVxDEsEXqVO6HKPHZyrFzNoPjCNRCpQPlAD+A2hJpsPsvng/+QDdZSTGX7peskHUckHy/JLx9R2/n0++BJgAERDjnqXz+8VAAAAAElFTkSuQmCC",ojt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE4N0I4N0U2MzkyMTExRUZBODRGRDhEOTg3QjBGMUE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE4N0I4N0U3MzkyMTExRUZBODRGRDhEOTg3QjBGMUE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTg3Qjg3RTQzOTIxMTFFRkE4NEZEOEQ5ODdCMEYxQTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTg3Qjg3RTUzOTIxMTFFRkE4NEZEOEQ5ODdCMEYxQTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7+aa7KAAAB7klEQVR42syUSyuEURjHZ6ZhRFmIDRpJI4qNslLKRAkrKfkCVlKTlXu5JyzGZWnnO0yULJWwkLKaspDLTHLNLV6/o2d458w77wxFTv163sPzf85z5pzzdxqG4bAavX3j2YRB6IQNGA7OD0f1PKdVAcTdhBEoMv35CiYhSKFnywII1WqjUOmwHz0UWf4sgLCO7zHwpxAewik0wo7alkv+sZWGWI0BVm4ScS2EYgUebURvpu8sibcS76wKhOUHUyMEXliVeYYWn13aalFaLCN2yPyA+QlxN1l7eoEzifvaSi7TUarxEHeMnEKE73y4hBpogyXYgy6YhnZYgEVYB5/Kd0uhTIl5sAlP8lsUwJpENW8RfJLvjhXIlXgPVez7we4s6VgVK1W6WIFWmIFqWCHhiGgk0XtFfAz9+lUOyD5TjQl1c+n0JeExUSSHEJCXmKUJ52AWYcT2NUqhYnlYzbAtz/lIz3Mn63HRM6SO9EJOJPpxySzyLDtwDhi2fmBMOa39AGHafkCRLz9A+Hd+wMr/3Q9oMc4PmP+uH+gXqZATKRE/UKOeeTmx
559QeZ+5ofymBzmY7w2Pemw3D6PdHAufvCq9iw5FRJvLP2Afdv6AQva+wEJP/MDhN/yAzpN9AOKpPQDhKn9gEIJfoAwwQ/eBRgAtI3pe+kDGlEAAAAASUVORK5CYII=",ajt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJFRDE0OTkwMzkyMTExRUZCN0Q0QzMzRjFBQkU4MzI1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJFRDE0OTkxMzkyMTExRUZCN0Q0QzMzRjFBQkU4MzI1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkVEMTQ5OEUzOTIxMTFFRkI3RDRDMzNGMUFCRTgzMjUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkVEMTQ5OEYzOTIxMTFFRkI3RDRDMzNGMUFCRTgzMjUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7s3WlOAAABjklEQVR42uyUPyjFURTHf+/55c/yM7CRRVEWkUcZbGKglLL6M1gkMeDpMZCFwfBKvUQMRgZiUGZsEmEhDAYLo8jzPXVuXadzr1cWwzv1qd/vd8659/zuPecbG52YD4SVgkHQBmpBCO7AGdgC93ZwKJKHwBIoE99rQCeYA4tg1jjiVhA51pVk22IgBfbkAlTyjAh+4kVp1xPh6wYZ8wsR2BAB56DBel8Am6Df+jYM1qiCEaVUk3wDXkA1GFDiklRBu+IoBGN8C9phG2skR6XieAPF/NwLbsGxElceOlY3yX1gF5yCFiUuTmfw7Lm2EtDhSCZ7DfmKWh0By+Dds8EFVZD2BNSDKvDh8K/QAg/cvppNgmlQoPgOwJE5wClQB7pE0LhjYWq0HjkL1J6rwe+2A5rBp9Yg1JXb3KZNoAJk+aYueZwPf4xzuigld7jiEiOePtrkEVwzYjyTX7nogbHs/9MD+oWIh8enB4GiB2SJvB7k9YD0wJ6FfUUPAo8eJGik/6wHchoDPtCc9eBbgAEAhnxsvAiM+IUAAAAASUVORK5CYII=",ijt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjEzNUY5NjIzNUUxRDExRUZCRUEwRjE5ODkzNzIxNzY2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjEzNUY5NjI0NUUxRDExRUZCRUEwRjE5ODkzNzIxNzY2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTM1Rjk2MjE1RTFEMTFFRkJFQTBGMTk4OTM3MjE3NjYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTM1Rjk2MjI1RTFEMTFFRkJFQTBGMTk4OTM3MjE3NjYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz44N88bAAABKUlEQVR42mL8//8/AyWAiYFCwAIi8oqbnYHUYiDmQZL7DsSJk3prt+EzgBHkBaABa4DsYCzyP4DYDohfgNTC9ADxL6DBz5G98AmHBRxAfAqIHyLhB0D8CGhpFrIBfwl4lRGL1yOJCcQ9QLwUh9xrfAY8AeLrQJwE9GsMkL4GxPfR1PzHZ8AJoEYtIH4M4gBpbSC1lpR0EAIMpBQYBxrNRTjTAQ7wD6hRHEgLA/FPXJax4HEJKJT7gJgfiHfgcj3MAEEsClyQ2B5Y5EWQDZgDxOZAzA0LXQJp4hcQz4Mn5QHNjQNvADgQGav+4ywP/rcxEi4PgAaQXB4ADaasPABaOlTKA6BfySsPgBq1gBhcHgBp0ssDYCDBywNoNJNeHgA1jpYH9MiNAAEGALNOejsxRgCwAAAAAElFTkSuQmCC",sjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTlEOTc3Njk3QzlCMTFFRjk2QkI4NUJDNENFOUNGRDQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTlEOTc3Njg3QzlCMTFFRjk2QkI4NUJDNENFOUNGRDQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkVEMTQ5OTAzOTIxMTFFRkI3RDRDMzNGMUFCRTgzMjUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkVEMTQ5OTEzOTIxMTFFRkI3RDRDMzNGMUFCRTgzMjUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6oUhRrAAABPElEQVR42mLMLWryY2BgaANibiDeDMR5QBwDxI1AzMiAAPOBuBmIc4C4CIj/AXE1I9CAc0CGIVTRXyCWBeLVQGzNgAo+AbEOEO8GYnWo2AEWIPERSREzED9FsxkG+ID4EZrYByYg8QdNEJtmXOAvC5oAyH8HCGjSA+JlMA66AaCAFMDjiv9QrzDgMqCTgUTAgkXsD5oL/uNQBwZMaHwPIGaFaoBhVqiBT4hxQSwQm6MZLApNNIJQ/mJoQmPEZkA0Fku+ADEPlG0MxI+hBmB1wU0gfg01HYT1gbgYiLcCsQUQP0BPaOgGZALxfiT+RiCeCU3CG7AkOrAByCEO8t8bpABWhrKv4IgERpABQkgC0lBMLBACGbADiFUYyAOHWCaz15wAMvzILA+uMTJU/hstD0bLg9HyYFiUBwABBgAfPl626HXNKgAAAABJRU5ErkJggg==";const ljt={data(){return{}},created(){},methods:{}},WC=e=>(pb("data-v-2b06d7c8"),e=e(),mb(),e),ujt={class:"memberNav"},cjt={class:"account-nav"},fjt=WC(()=>ce("h3",null,[ce("b",null,"\u521B\u4F5C\u8005\u4E2D\u5FC3")],-1)),djt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:njt,alt:""})]),ce("span",null,"\u9996\u9875")],-1)),vjt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:rjt,alt:""})]),ce("span",null,"\u5185\u5BB9\u521B\u4F5C")],-1)),hjt=lo("\u6587\u7AE0\u7BA1\u7406"),pjt=lo("\u95EE\u7B54\u7BA1\u7406"),mjt=lo("\u9879\u76EE\u7BA1\u7406"),gjt=lo("\u6587\u7AE0\u4E13\u680F\u7BA1\u7406"),yjt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:ojt,alt:""})]),ce("span",null,"\u6570\u636E\u7EDF\u8BA1")],-1)),bjt=lo("\u5185\u5BB9\u6570\u636E"),_jt=lo("\u7C89\u4E1D\u6570\u636E"),wjt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:ajt,alt:""})]),ce("span",null,"\u5E2E\u52A9\u4E2D\u5FC3")],-1)),Cjt=lo("\u5E38\u89C1\u95EE\u9898"),xjt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:ijt,alt:""})]),ce("span",null,"\u6536\u85CF\u5939\u7BA1\u7406")],-1)),Ejt=WC(()=>ce("p",null,[ce("em",null,[ce("img",{src:sjt,alt:""})]),ce("span",null,"\u62A5\u540D\u8BB0\u5F55")],-1));function Sjt(e,t,n,r,i,l){const u=Kr("router-link");return Ce(),Ie("div",ujt,[ce("div",cjt,[fjt,ce("div",null,[ce("ul",null,[ce("li",null,[gt(u,{to:"/creation",class:He(["more",e.$store.getters.editCreation=="creation"?"on":""])},{default:Dt(()=>[djt]),_:1},8,["class"])]),ce("li",null,[vjt,gt(u,{to:"/ArticleManagement",class:He(["more",e.$store.getters.editCreation=="ArticleManagement"?"on":""])},{default:Dt(()=>[hjt]),_:1},8,["class"]),gt(u,{to:"/questionManagement",class:He(["more",e.$store.getters.editCreation=="questionManagement"?"on":""])},{default:Dt(()=>[pjt]),_:1},8,["class"]),gt(u,{to:"/projectManagement",class:He(["more",e.$store.getters.editCreation=="projectManagement"?"on":""])},{default:Dt(()=>[mjt]),_:1},8,["class"]),gt(u,{to:"/specialColumnManagement",class:He(["more",e.$store.getters.editCreation=="specialColumnManagement"?"on":""])},{default:Dt(()=>[gjt]),_:1},8,["class"])]),ce("li",null,[yjt,gt(u,{to:"/ContentData",class:He(["more",e.$store.getters.editCreation=="ContentData"?"on":""])},{default:Dt(()=>[bjt]),_:1},8,["class"]),gt(u,{to:"/fansContentData",class:He(["more",e.$store.getters.editCreation=="fansContentData"?"on":""])},{default:Dt(()=>[_jt]),_:1},8,["class"])]),ce("li",null,[wjt,gt(u,{to:"/faq",class:He(["more",e.$store.getters.editCreation=="faq"?"on":""])},{default:Dt(()=>[Cjt]),_:1},8,["class"])]),ce("li",null,[gt(u,{to:"/favorites",class:He(["more",e.$store.getters.editCreation=="favorites"?"on":""])},{default:Dt(()=>[xjt]),_:1},8,["class"])]),ce("li",null,[gt(u,{to:"/activityApply",class:He(["more",e.$store.getters.editCreation=="activityApply"?"on":""])},{default:Dt(()=>[Ejt]),_:1},8,["class"])])])])])])}var Tjt=tv(ljt,[["render",Sjt],["__scopeId","data-v-2b06d7c8"]]),Ajt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i
55977u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkUwODQxMDUzNEQ0OTExRUZBMjc1QzIxNEFGRTE1NjA0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkUwODQxMDU0NEQ0OTExRUZBMjc1QzIxNEFGRTE1NjA0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RTA4NDEwNTE0RDQ5MTFFRkEyNzVDMjE0QUZFMTU2MDQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RTA4NDEwNTI0RDQ5MTFFRkEyNzVDMjE0QUZFMTU2MDQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6EKQ7dAAABgElEQVR42uyUzSuEURTG78vFiwWR2PhYWYydxNJCpJQ9JVlMGEnJhhVTVlZK0dgp/A80f8FYsmajWEyZxncZnqNHXcd9pykLpTn1a945c855zz33zBMsLieNY60gA2ZA2ny3QXAA+sHtl9OCNjANakEBtIMx0AOaGJdjXAdYYNwrOLZ8U4yBJ2ATNINt1cE+WAe9YJy+uHWSxUZAJRgyPy0OTsGw4+uSAjKEGvAO6tnqHrhTBRpAC9gB9yAAL5Y/hCwgluVnoyrwmQDqODv5/iwPS+YXVgHyJcaegW6w5vjy1hOY47FcOwcDvL4H3YFrSS5TSiX3MXlKX6/uoJODmuVzjMnim+QmmmIFZCMfQQKMcjsleQIcRg1R2zz3QOyJbz6Kmqx0UO3xyxHewCXYKnIzVZZb6LNECVcbSoEVEnLS7uYZZ0P10eXfuBuY1cLf6oF0cKH0IEM9mPPowbXSgyspoM+YjtAD49EDIwU2PHqQLaIHN2U9KOvBP9SDDwEGAIYxfgL6wcF5AAAAAElFTkSuQmCC",kjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkY5RTJGRTI3M0NGQzExRUZCNTc4QUQyNEM2MDY2ODVCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkY5RTJGRTI4M0NGQzExRUZCNTc4QUQyNEM2MDY2ODVCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RjlFMkZFMjUzQ0ZDMTFFRkI1NzhBRDI0QzYwNjY4NUIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjlFMkZFMjYzQ0ZDMTFFRkI1NzhBRDI0QzYwNjY4NUIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz42wL5MAAABlklEQVR42uzUTShEURTA8ffGjIURJV8LWaBINsNCsVDSLCxmJSmyUmMlsVJ2slMWshAWPkoWFpRCFnZWoogMC+UzkXxkIzP+p86bntcb0qjZzK1f790795535t7uMWOxmJFM8/YNjvx1TQ2mUIZbzw8TcxKMH+EGxQgkCtCFZ3S4/NaJNoxjzusyoV9/lLaEbMxovxWLWMCADDgzGNPFKyjCLqYRQinWsY/u+CbaFi+jXTeoV8casIVV7Z+jFmHU414C5GmqQQxj1JFVUBeWo07HZF6JlYF8uQU9mEUGJpGLPf1bFY6gFxrgWgJMYF43xtCMwvoe0ACNeqwf2ManfQ/WXE7iHVl65tI24ccJqjVQPIAPzcjEAZ5sgaxTukIl7rRv2ifI8WxoJpL6G5wXJOp4fvuCz3439Om37Ye0fEffehZKgFe5FHjQVK3zfkRE+8faP9N+RPuHZrLX2WMk2UxjKJquB6muB3IKv9UDw1YP5Iq/4PLf6oFkENLJVj0okNT0/RRVLvVgB01WQUnXg1TXgy8BBgCuN5YzOcvTiwAAAABJRU5ErkJggg==",Ojt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjBGNjQwRkM4M0NGRDExRUY5RDlCREQ5NUZFNTdGQzBCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjBGNjQwRkM5M0NGRDExRUY5RDlCREQ5NUZFNTdGQzBCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MEY2NDBGQzYzQ0ZEMTFFRjlEOUJERDk1RkU1N0ZDMEIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MEY2NDBGQzczQ0ZEMTFFRjlEOUJERDk1RkU1N0ZDMEIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HyYe5AAAB20lEQVR42tyUyytEcRTH545bGs8UylJmQSLZW7C0E2maLETNQpGyQixMlCIS2bKyxEYKf4AFS5MosvBO8mpK5ud7pnN0jDsvM1n41affvb85r985c7+WMcaVybLlYWAoWIJtEzTEsS3k/RmcgPaF2bFztzIYBU1s6MQN2Of
559nRjBPTpZcARWQQTk4BKvAKCjRIjIa2O3huYXPPTY7t7IzrQcOEom5Qhvs8rG/8LsF/NKDXmVI5S2x4ROfGXYg6pVtjwRoVoc7KNXHleU5NHMOBCSZBAgrg044bnBDA04TU8vIFJbVIZW5BvrYyY7jTGslGgAlB7ENgytwzc5VYB3cgm1QR9WBI3AMpkG/jkxl74JHUAuoDxMyLtANLsAgKKMgNFYZIxmEwBn3o4aDToJT4FWJ3kAu70VSgZv/opUO9/TGvMtk7sVRViTN78jSAT5AcZoBSr8CoBl07xmewB13Ph70+yUY//YxZawH1ohJWw/MlJVFPUAFSfUAGQ3sfuoBDlPSA9j9kR6gVB9XllQPoj2AIc21QmXzp6gHr9nRA5T8az3QY6zGVqD0gNhSetDBehASPUDiA+mBh7/vWD1wJdIDBPgPemDzFMLoA+lBF8jhxiXK/M764foUYADcC87PXMVYvwAAAABJRU5ErkJggg==",Mjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjI3NEQ1RjJEM0NGRDExRUY5NDgxQTlBOUNEQkRGNjBGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjI3NEQ1RjJFM0NGRDExRUY5NDgxQTlBOUNEQkRGNjBGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Mjc0RDVGMkIzQ0ZEMTFFRjk0ODFBOUE5Q0RCREY2MEYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Mjc0RDVGMkMzQ0ZEMTFFRjk0ODFBOUE5Q0RCREY2MEYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5/Cc+XAAAB9klEQVR42uzUTUhUURTA8ZnRTERTE0TUFCTCUBHLj4VmVgQuVHLRKhBp5cJS1I1gQuJWBT+QlrloYbs20SYpo42YCYYLo8CSVPxCTSW/+h85D45XhRFceuDHzHtz75n77n3n+J80tPmcyEI1SpCKAKYxjAGM2MGhzuTnaPUdjVhkoxadaPR+CJhBb0+Y7EYDPrkJ5DlK9fsG2lGOP3qvAjWY1+tC9HsJruKZ+Yf36EUl7iBRPz/r8r2QhPmSoN5ZYjHuYxzhCMEvpKDKGdskCe6ZG//wAGPoxhXcRRcm9XRmzfgCOYVkc+MvhpyN9fbph/qNBO90JIHfTIhALn5iX54RUbove7iEJDPeLwlmcE1vhCED69hFJuIxgR1dbYxJsCwJPpgEq3hpBrzQTVzR6yl817dVYiygm+VFiLPLW/ooNi6Y7x2hujxJ8hSRGNSNkriu+zKqiaL1vZF4hY9eLdThBorw8JjXt9i5/opHbi3cQl8QtSB7dPOkapRqe43HyNPzlmOewxed/O5QOfdcbHH/YQkL2NSzD+hmLupvh8Lva94Lph/YOO8HTj+QTZQ6Tzf9oFSX+g1luKzdOA1xeGPKeVoSrOkrfFBdOsHWhqxy29wb0ZKXWDvvB2fQD2wtDGs/CCakH+ScST9wq1Hi9mn6wX8BBgA/O5oVDE2CfwAAAABJRU5ErkJggg==";const Njt={data(){return{}},created(){},methods:{}},_R=e=>(pb("data-v-5a04989c"),e=e(),mb(),e),Djt={class:"memberNav"},Ijt={class:"account-nav"},Rjt=_R(()=>ce("h3",null,[ce("b",null,"\u6210\u957F\u4E2D\u5FC3")],-1)),Ljt=_R(()=>ce("p",null,[ce("em",null,[ce("img",{src:Ajt,alt:""})]),ce("span",null,"\u6BCF\u65E5\u7B7E\u5230")],-1)),Bjt=_R(()=>ce("p",null,[ce("em",null,[ce("img",{src:kjt,alt:""})]),ce("span",null,"\u6210\u957F\u7B49\u7EA7")],-1)),Pjt=_R(()=>ce("p",null,[ce("em",null,[ce("img",{src:Ojt,alt:""})]),ce("span",null,"\u5151\u6362\u5546\u57CE")],-1)),Fjt=_R(()=>ce("p",null,[ce("em",null,[ce("img",{src:Mjt,alt:""})]),ce("span",null,"\u5151\u6362\u8BB0\u5F55")],-1));function $jt(e,t,n,r,i,l){const u=Kr("router-link");return Ce(),Ie("div",Djt,[ce("div",Ijt,[Rjt,ce("div",null,[gt(u,{to:"/grow",class:He(["more",e.$store.getters.editGrow=="grow"?"on":""])},{default:Dt(()=>[Ljt]),_:1},8,["class"]),gt(u,{to:"/level",class:He(["more",e.$store.getters.editGrow=="level"?"on":""])},{default:Dt(()=>[Bjt]),_:1},8,["class"]),gt(u,{to:"/redemption",class:He(["more",e.$store.getters.editGrow=="redemption"?"on":""])},{default:Dt(()=>[Pjt]),_:1},8,["class"]),gt(u,{to:"/redemptionRecord",class:He(["more",e.$store.getters.editGrow=="redemptionRecord"?"on":""])},{default:Dt(()=>[Fjt]),_:1},8,["class"])])])])}var zjt=tv(Njt,[["render",$jt],["__scopeId","data-v-5a04989c"]]),Hjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAASCAYAAACEnoQPAAABN0lEQVQ4jZXSPS9EQRjF8d/u3oiNkCBEg0SoxAcgoaCRqLehRfRUSLYRnSjFiobOW6EjSj6El4SIoEOhEK/F3EJu7tp1kknuzDz/mbnnOZn10s4kFtGAT5WVwytWI2xUASTViJUsurH/T/gEfVkUsIwRlPBYBnjGFsYwh+HMemnnO95cik/8RJPgQQ0+8IInfGEIRdREuIqfvhiPW5ziRjAmj3YMoOfXS24jwb3f6sB4Ff+dy6YsPmAvsXaI62RhGpzBPGbieTH+/k4WpsFtuECE0fjGe3RVA99hAfnpqcJRfEgR58nCKAWuRz+UNnbPMIgWNFcDE3r7JrTqBXVCjyvCzzjAOy5xLISmF62V4E4hhjCBbeneyAoRLKdNoXVpykVChsup9o+9tgizQqbzUoKQooxg5toP9ks/YOh9TjgAAAAASUVORK5CYII=",Vjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAASCAYAAACEnoQPAAABLElEQVQ4jZXUMS8EURiF4Wd2J2IjFIRokAiV+AEkFDQStYZWoadZJNuIVimRaGhR6IiSH4GCiKBDoRDsKu5INuuuXaeaufO9d+6cczKJYnkR6+jAl8bK4w1biWK50gQQVQ5DOPwnd4bRHOawiWns4KkO8II9zGIFU9XH3sh2/EKn4EELPvGKZ5QxiRJaEsXydXb0H93hHLeCMQX0YRzD1XOp4F61+jHfxHfnc5HFRxzUrB3jpnYwBidYxVJ2X8quf0Uag3txhRQz2RsfMNgMfI81FCqbyUm2SQmXtYNpBG7HGCSrlQtMoBtdzcCEbN+FqF7RJmTcEH7BET5wjVOhNCPoaQQPCDWEBeyLeyMnVLCedoXoYsqnQofrqfWPZ70ploWfQUGkCBElgpnb36K4QEmj+Sj3AAAAAElFTkSuQmCC",Ujt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA90lEQVQ4ja3UMS8EQRjG8d+yhVKDiFDpiYTvIBLdhS9wWypEzyfQU2kkcrUSjfK4EAXJ6SQSmvsGe4rbjY1Mzlj7NDPzzMw/7zvvzCQnpx0ROkKGT+zjppzI2i2QRkA2cVj053GNBbxXF01EgFYC3u5PIwY0F/Bm64B2Al73r6Azo3OpaogXTFb3J4GqTWEdB9gOwId4K0A5+thLcY9zHOMSG5gZE2WCpcp4EZ0Ua3gszK0xgHFaLnMcFO1HTdBzCUpqAkr1Ysofo4emQE9NpJarRPQfUDdrtwZNpHbH9xWfLtrQA/1NPUb/UR+vhXmL1UhAjitcwBefiCopGarlRgAAAABJRU5ErkJggg==",jjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAA9UlEQVQ4ja3UMS8EQRjG8d+yhVKDiFDpiYTvIBItn0CpEI3KVVf6DBqJqJVolMeFKEhOJ5HQ3DfYVdxsbGSyxtmnmZlnZv5533lnJnNUSFAHe/jEAW6qibKbgTwBsonj0J/HNRbwXl80kQBaiXi7P40U0FzEmx0HtBPxen8FnRqdS10lXjBZ359FqjaFdRxiOwIv8RZABQbYz3GPM5zgEhuYaYgyw1JtvIiLHGt4DOZWA6BJy1WOw9B+jAl6rkDZmIBK/ZTyp+ihLdBTG6kVahH9B9Qru9mwjdTu+L7i06GNPdDf1Gf0Hw3wGsxbrCYCClzhHL4AgjEqKaLvdZAAAAAASUVORK5CYII=",Wjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAABYklEQVQ4ja3UP0gWcRzH8ddzqWDQlNCgT4Jg4BJEQuisiJMQHU4uwl1bDQ0NIkGLgxDk4p/FRZdapCH/REODuOhWgg1NPYhBk1sKNtw9dfzw1Ef9wHE/vp/f931fvr/f9yrzC++co7cYxQekoZkm8b91dA7oKZ7hDpJ8XaqzYN2YO6XKrsvAPpXEVy8Ki9CLFXSW5NzDMh7iRtGo5AeQYhCPUD2j2lA1bOMLZpuwhqEGAEW1588I4ugKoFB9
559EV5dE2wmwmvsBcZnbJUk7WAjiH1Pk/h5/TQfB+YA+vFG1uQj/Mai7LTD1gzz/2rsYqJgfsRNvEAHWtCG8dx/n79PMJYm8Y8iDGaCL9UwlVd4Fw/wMo8/yfcdpEm8VE+qFAa9HT81phqqaRKfhJU1NQiCZlkLXAesVWGkioDDkoSv+IYe3A+8Wzg+DfYLk7J/2D7WZaO2WdjTJ7sWw7iN6TSJ/9TNvxFyQkpkV//YAAAAAElFTkSuQmCC",Gjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAABYUlEQVQ4ja3UMWhUQRDG8d/GKES0UghGD0GIwcZGIcRaI2ltrGwEzy5NqkOC3WsEQRvtrKzShAgmIilSiE3sVMTCykMRBOE6lVuLt88sz3tJTm6aXfab+TM7M7tBp28Pe4DrWEO7LsYi/N2P7QG6jUVM4lbaN9pusGk8HpDlmf+BvWw4X98vbAwXsYrTDTFn8RQXcCAXQmpAG1cwi9Yu2dati21s4VHQ6W/g6hCAJnsddPpxBCCUNbo7ItbDqmYfMJMJmziMuQFBb/Ad89nZx1iEmaqb12oBl3EJ95VF/pUAT5Tdrtd4gZ3ReI87mfg8ZbaEUziE47iZ9JW0RtyIRfjEzmjAEfQy4A/lC3iGzziWrraIqeTzNRbhRBWQw06moGGsi1YsQsyvCeNDguCgsgRGAZuQPakc0PvXF7zFO5zD+Zp2FL8Hwb5hWfmHfcELbOBV5jOnHIsFZUPuxSL8rMQ/62FJAlauRtcAAAAASUVORK5CYII=",Kjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAARCAYAAADQWvz5AAABCUlEQVQ4ja3UvS5EQRjG8d85jsoS7oDIEokK0bsAOpUWV6BzGRq7tSg2FFodrfioJCLZhESh0GysRtYqZjaOEx/J7nmTKZ438/xn8j6TSWr1RhUHmNNfPWAzwyGW+oTAPI5STA4A6VUlxWsJoHaKbgkgaRmQ30C7wvBvot7DAs6iPsEijv8DneMSz1Ff4VqIGe5i7zZvSmr1RhNTuV4rQqpRv6OJ2ai7uMc0hmLvKfvhRmNx9Wo4B4EEM0VTqcNOygJVSuCMpL7SGKTaGTawL6SUCKl8CDedKBje8OL7SB6xkwnvYkWIMg8aFb6X1Wi4wJrwNHqg7vbWegfy8XcKp7ei8RTjWP5jr09tCjUPc//CXgAAAABJRU5ErkJggg==",Yjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAARCAYAAADQWvz5AAABBklEQVQ4ja3UO0oEQRSF4a/bNnIU3YEio5iqmLsA3YCpSzAZzN2AiQswNTA103TwEQkiDCgaGJgMjolMt0FVY9v4gJm+UMG51PmruKeoRCdv4xgrRqsH7CY6eRfrI0LKekoxPyYEWineGgANUhQNgKRNQH4D7QvDv4n6EKs4j/oUazj5D3SBS7xEfYVrIWa4i73bqinRyXtYqPT6EdKO+gM9LEdd4B6LmIi95+yHG83EVdZkBRIOZ6luanTYSVOgVgOcqdRXGuPUIMMOjoSUEiGVXLjpXM3wjlffR/KIvUx4F5tClFXQtPC9bEVDF9vC0yhBRXGQDKEa/7B2ej8azzCLjT/2+gQR5DZOB5feMQAAAABJRU5ErkJggg==",qjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAABX0lEQVQ4jZ3TzUtUYRTH8c+MAy5a5EZwl9ILrqyFf0CpCNUqYQgiaTUDoRK4aOPGXbiZ1Sg47iRIG4JACoZedCVIRiCC0KYIwiJE2rRRscWdkct4n4E7P7ib8z18n/uce09msfJSG7mLp7iMr5grFvK1TBuyEbxLqA9lU4oyWAiwclpZB64G2LW0sust2FFcdgPjGE1ovIQX2MZpQPa8ISvjC5ZRw3q9fgGr+I57eIRefG4SbWIyh4n6E89N7OEKjjFVP7CRQTwUzW+nWMi/ghxmAq/dj0nMh64FxUL+rJBFT6AZfrdg55J1/v7xVLGP+wnsNh5Xlqq34rLpgGgCfdjFCn7hDrrwHm9FP/DHylL1DTTWaQyzooEeiOb0LCYeQAnD+IuLCYeXmnezG4eiL5iUIXwIsH+5psKfQGMjGy1YZzuL/iPAvqWVneBJgE2nlcFr0Q5/wk9s4UGxkF/7D3ZVSnn8tHHWAAAAAElFTkSuQmCC",Xjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAABWUlEQVQ4jZ3TTUsVYRiH8d9zFFy4yI1gKxNfltqiD2AWQbWyjRCKa1EJXAS6anWkjSvrA0SQEoEQCtKbK0FUBAkCN4rQGxHhxo3puJhzYjjNc2DOHwaG+7q5npl75g5mLzSQ+3iMbhzgaVIO66EB2W28y6kPlQqKAp5H2GJRWRN6I6yvqGygDjvLyq5jDHdyGjvxCjtIIrKXVdki9vAC6/hUqbdiGUcYxjiuYbdGtImpZkxWrmwG8QU9+IvpyoHV3MCodH77STm8gWD24huuRh59Cs8iDCTl8O++hI46vT/riWpT8v/7Z/Ma3zGSw+5iIswlN7OymYhoEl34jCX8wD204T3WpD/wxzCXrJLODB7giXSgv6Vzms+I+7GAWzjBlZzDF2p3sx1/pF8wL0P4EGGnzTWFX5HGajbqsJZGFv04wg6Lys7xKMJmispgRbrD2/iKLTxMyuHtJWNEStl5N66aAAAAAElFTkSuQmCC",Zjt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABfUlEQVQ4jaXVvW4TURCG4efsrn+C4xAqbNOmAJQOuAFa7oNrwJFAVKSEG6NDShVBgey44C9RlBgluxQ+C9hedq3wSdN98+45c2Zmg3GuQgkGMe6gixyX+IGTGGvJWQVsgIfoVXxkO8Y9nOMI01VTqYAHeFIBq1IPj2NOqALex94GoFXtxdwl4PCGsL+hwxKYYL/OPTsIh99ehXcN0H0kWSR365z9jkE7baxrF6MSWKv5tbOC6yYfBgl2m1xF4Sov1nuuQrvBOH9m+bXNDsJhO7Nd8nY6RkhO5z6LLfLzyvndN8WLFWCeWXT7ErCV2mqntuLpIAmEVuJW+N1x1SUIxvlTDY389WV420r1+q+L53U+XCQ4bTAJQRpWbvEPfU+szGKVOql+J7OzAfAki8BLNb14NjdrZ4ua1ugSkxDX1wiPNjhBnd5jUtZlguP/gB1HxlKhj/DxBrBPMRfLC7bAB3yx2HFNs1u5YKs29hQzixkf4rY/D1b+AqYx1sbxFyD2Vt5Ow2wbAAAAAElFTkSuQmCC";const Qjt={props:{dataType:Number,dataId:String,likeCount:Number,collectCount:Number,commentCount:Number,likeId:String,collectId:String,transmissionMemberId:String,reportFlagValue:Boolean},data(){return{collectFlag:!1,addCollectFlag:!1,rewardFlag:!1,reportFlag:!1,shareFlag:!1,radio:1,input:"",textarea:"",reportForm:{type:"",textarea:""},reportDicData:[],likeCountTemp:"",collectCountTemp:"",commentCountTemp:"",dataIdTemp:"",likeIdTemp:"",collectIdTemp:"",memberIdTemp:"",integralTemp:"",collectListData:[],collectListDataLoading:!0,entity:{},id:"",rewardIntegral:0,rewardIntegralType:1,rewardIntegralValue:0,checked:!1}
559},created(){var e=this;this.likeCountTemp=this.likeCount,this.collectCountTemp=this.collectCount,this.commentCountTemp=this.commentCount,this.dataIdTemp=this.dataId,this.likeIdTemp=this.likeId,this.collectIdTemp=this.collectId,this.memberIdTemp=this.transmissionMemberId,this.reportFlag=this.reportFlagValue,console.log(this.reportFlag),console.log(this.reportFlagValue),this.$watch(()=>e.likeCount,(t,n)=>{this.likeCountTemp=t}),this.$watch(()=>e.collectCount,(t,n)=>{this.collectCountTemp=t}),this.$watch(()=>e.commentCount,(t,n)=>{this.commentCountTemp=t}),this.$watch(()=>e.dataId,(t,n)=>{this.dataIdTemp=t}),this.$watch(()=>e.likeId,(t,n)=>{this.likeIdTemp=t}),this.$watch(()=>e.collectId,(t,n)=>{this.collectIdTemp=t}),this.$watch(()=>e.transmissionMemberId,(t,n)=>{this.memberIdTemp=t}),this.$watch(()=>e.reportFlagValue,(t,n)=>{this.reportFlag=t}),this.getComplaintType()},methods:{copy(){this.$helper.copyStr(window.location.href)},shareOpa(){this.$ajax.loadData("/api/home/isLogin",{},e=>{e.isLogin?this.shareFlag=!0:this.$store.commit("showLogin",!0)})},reward(){console.log(this.rewardIntegralValue),this.$ajax.prompt("/api/member/giveReward",{authorId:this.memberIdTemp,integral:this.rewardIntegralValue},{1:e=>{this.$message.success(e.msg),this.checked&&(this.$ajax.prompt("/api/like/like",{dataType:this.dataType,dataId:this.dataIdTemp},{1:t=>{this.$message.success(t.msg),this.likeIdTemp=t.likeId,this.likeCountTemp=parseInt(this.likeCountTemp)+1}}),this.checked=!1),this.rewardFlag=!1,this.$ajax.loadData("/api/member/info",{},t=>{this.integralTemp=t.entity.integral})}})},validateInput(){this.rewardIntegralValue=this.rewardIntegral},getComplaintType(){this.$ajax.loadData("/api/dictionary/list",{dictionaryId:"1816055321177407489"},e=>{this.reportDicData=e})},complaint(){console.log(this.reportForm.type),this.reportForm.type==""?this.$message.error("\u4E3E\u62A5\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A\uFF01"):this.$ajax.prompt("/api/complaint/submit",{dataType:this.dataType,dataId:this.dataId,complaintType:this.reportForm.type,complaintCause:this.reportForm.textarea},{1:e=>{this.$message.success(e.msg),this.reportClose()}})},reportClose(){this.$emit("change-reportFlagValue",!1)},scrollComment(){this.$emit("scrollComment")},chnageIntegral(e){this.rewardIntegral=0,this.rewardIntegralType=e,this.rewardIntegralValue=e},showReward(){this.$ajax.loadData("/api/home/isLogin",{},e=>{e.isLogin?(this.rewardFlag=!0,this.chnageIntegral(1),this.$ajax.loadData("/api/member/info",{},t=>{this.integralTemp=t.entity.integral})):this.$store.commit("showLogin",!0)})},collectOpa(){var e=this;this.$ajax.loadData("/api/home/isLogin",{},t=>{t.isLogin?e.collectIdTemp==null?(e.collectFlag=!0,e.collectList()):e.$ajax.prompt("/api/collect/cancelCollect",{id:e.collectIdTemp},{1:n=>{this.$message.success(n.msg),e.collectIdTemp=null,e.collectCountTemp=parseInt(e.collectCountTemp)-1,e.$emit("change-collectCount",e.collectCountTemp)}}):this.$store.commit("showLogin",!0)})},collect(e){var t=this;t.$ajax.prompt("/api/collect/collect",{favoriteId:e,dataType:t.dataType,dataId:t.$route.query.id},{1:n=>{this.$message.success(n.msg),t.collectIdTemp=n.collectId,t.collectCountTemp=parseInt(t.collectCountTemp)+1,t.$emit("change-collectCount",t.collectCountTemp),t.collectFlag=!1}})},showAddCollect(){var e=this;e.collectListData.length>9?e.$message.warning("\u60A8\u5DF2\u8FBE\u5230\u6536\u85CF\u5939\u4E0A\u9650\uFF0810\u6761\uFF09\uFF01"):e.addCollectFlag=!0},collectEdit(){var e=this;e.$ajax.loadData("/api/favorite/edit",{id:e.id},function(t){e.entity=t.entity,e.entity.isPublic=e.entity.isPublic?"1":"2",console.log(e.entity)})},collectList(){var e=this;e.collectListDataLoading=!0,e.$ajax.loadData("/api/favorite/list",{},function(t){e.collectListData=t,e.collectListDataLoading=!1})},likeOpa(){var e=this;e.likeIdTemp==null?e.$ajax.prompt("/api/like/like",{dataType:e.dataType,dataId:e.dataIdTemp},{1:t=>{this.$message.success(t.msg),e.likeIdTemp=t.likeId,e.likeCountTemp=parseInt(e.likeCountTemp)+1,e.$emit("change-likeCount",e.likeCountTemp)}}):e.$ajax.prompt("/api/like/cancelLike",{id:e.likeIdTemp},{1:t=>{this.$message.success(t.msg),e.likeIdTemp=null,e.likeCountTemp=parseInt(e.likeCountTemp)-1,e.$emit("change-likeCount",e.likeCountTemp)}})},formSubmit(e){var t=this;this.$refs.form.validate(n=>{if(n){var r=t.entity;r.id=t.id,t.entity.isPublic=t.entity.isPublic==1,this.$ajax.prompt("/api/favorite/editSave",r,{1:i=>{this.$message.success(i.msg),t.addCollectFlag=!1,t.collectList(),t.entity={}}})}})}}},nv=e=>(pb("data-v-3895171e"),e=e(),mb(),e),Jjt={class:"detailOpa"},eWt={class:"detail-left"},tWt=nv(()=>ce("img",{src:Hjt,alt:""},null,-1)),nWt=nv(()=>ce("img",{src:Vjt,alt:""},null,-1)),rWt=[tWt,nWt],oWt=nv(()=>ce("img",{src:Ujt,alt:""},null,-1)),aWt=nv(()=>ce("img",{src:jjt,alt:""},null,-1)),iWt=nv(()=>ce("img",{src:Wjt,alt:""},null,-1)),sWt=nv(()=>ce("img",{src:Gjt,alt:""},null,-1)),lWt=nv(()=>ce("img",{src:Kjt,alt:""},null,-1)),uWt=nv(()=>ce("img",{src:Yjt,alt:""},null,-1)),cWt=nv(()=>ce("img",{src:qjt,alt:""},null,-1)),fWt=nv(()=>ce("img",{src:Xjt,alt:""},null,-1)),dWt=[cWt,fWt],vWt=nv(()=>ce("h3",{class:"title"},"\u91C7\u96C6\u5230\u6536\u85CF\u5939",-1)),hWt=["onClick"],pWt={key:0,class:"nodata"},mWt=nv(()=>ce("img",{src:Zjt,alt:""},null,-1)),gWt=lo(" \u521B\u5EFA\u6536\u85CF\u5939"),yWt=[mWt,gWt],bWt=nv(()=>ce("h3",{class:"title"},"\u65B0\u5EFA\u6536\u85CF\u5939",-1)),_Wt=lo("\u516C\u5F00"),wWt=lo(" \uFF08\u516C\u5F00\u540E\u4E0D\u53EF\u66F4\u6539\u4E3A\u9690\u79C1\uFF09"),CWt=lo("\u9690\u79C1"),xWt=lo(" \uFF08\u4EC5\u81EA\u5DF1\u53EF\u89C1\u6B64\u6536\u85CF\u5939\uFF09"),EWt={class:"btn"},SWt=nv(()=>ce("h3",{class:"title"},"\u9F13\u52B1\u4E00\u4E0B\u4F5C\u8005",-1)),TWt={key:0},AWt=lo("\u786E\u8BA4"),kWt=nv(()=>ce("h3",{class:"title"},"\u4E3E\u62A5\u53CD\u9988",-1)),OWt={class:"report-list"},MWt=nv(()=>ce("span",{class:"report-title"},"\u4E3E\u62A5\u7C7B\u578B\uFF08\u5FC5\u9009\uFF09",-1)),NWt={class:"report-type"},DWt=nv(()=>ce("span",{class:"report-title"},"\u4E3E\u62A5\u539F\u56E0\uFF08\u5FC5\u586B\uFF09",-1)),IWt={class:"report-textarea"},RWt={class:"report-btn"},LWt=lo("\u53D6\u6D88"),BWt=lo("\u63D0\u4EA4"),PWt={class:"share"},FWt={class:"share-img"},$Wt=["src"],zWt={class:""},HWt=["href"];function VWt(e,t,n,r,i,l){const u=Kr("router-link"),f=Kr("el-dialog"),v=Kr("el-input"),h=Kr("el-form-item"),g=Kr("el-radio"),y=Kr("el-radio-group"),w=Kr("el-form"),C=Kr("el-checkbox"),S=Kr("el-button"),T=$A("loading");return Ce(),Ie("div",Jjt,[ce("div",eWt,[ce("ul",null,[ce("li",{onClick:t[0]||(t[0]=B=>l.showReward())},rWt),ce("li",{onClick:t[1]||(t[1]=B=>l.likeOpa()),class:He(i.likeIdTemp?"on":"")},[oWt,aWt,ce("span",null,Zn(i.likeCountTemp),1)],2),ce("li",{onClick:t[2]||(t[2]=B=>l.collectOpa()),class:He(i.collectIdTemp?"on":"")},[iWt,sWt,ce("span",null,Zn(i.collectCountTemp),1)],2),ce("li",{onClick:t[3]||(t[3]=B=>
559l.scrollComment())},[lWt,uWt,ce("span",null,Zn(i.commentCountTemp),1)]),ce("li",{onClick:t[4]||(t[4]=B=>l.shareOpa())},dWt)])]),gt(f,{modelValue:i.collectFlag,"onUpdate:modelValue":t[6]||(t[6]=B=>i.collectFlag=B),width:"520",class:"common collect","align-center":"true"},{default:Dt(()=>[vWt,ea(ce("ul",null,[(Ce(!0),Ie(Ur,null,La(i.collectListData,(B,F)=>(Ce(),Ie("li",null,[gt(u,{to:"/collect?id="+B.favoriteId,target:"_blank",class:"more"},{default:Dt(()=>[ce("em",null,Zn(B.favoriteName),1),ce("b",null,Zn(B.collectCount)+"\u6761\u5185\u5BB9 \xB7 "+Zn(B.isPublic?"\u516C\u5F00":"\u79C1\u5BC6"),1)]),_:2},1032,["to"]),ce("i",{onClick:R=>l.collect(B.favoriteId)},"\u6536\u85CF",8,hWt)]))),256)),i.collectListData.length==0?(Ce(),Ie("div",pWt,"\u6CA1\u6709\u66F4\u591A\u4E86")):on("",!0)],512),[[T,i.collectListDataLoading]]),ce("p",null,[ce("span",{onClick:t[5]||(t[5]=B=>l.showAddCollect())},yWt)])]),_:1},8,["modelValue"]),gt(f,{modelValue:i.addCollectFlag,"onUpdate:modelValue":t[13]||(t[13]=B=>i.addCollectFlag=B),width:"520",class:"common form","align-center":"true"},{default:Dt(()=>[bWt,gt(w,{model:i.entity,ref:"form",onSubmit:t[12]||(t[12]=Do(()=>{},["prevent"]))},{default:Dt(()=>[gt(h,{prop:"favoriteName",rules:e.$form.rule("\u6536\u85CF\u5939\u540D\u79F0","blur","required,maxSize[200]"),style:{}},{default:Dt(()=>[gt(v,{modelValue:i.entity.favoriteName,"onUpdate:modelValue":t[7]||(t[7]=B=>i.entity.favoriteName=B),placeholder:"\u8BF7\u8F93\u5165\u6536\u85CF\u5939\u540D\u79F0\uFF08\u965020\u5B57\uFF09",maxlength:"20",style:{height:"40px",background:"#f5f6f7",margin:"10px 0 0"}},null,8,["modelValue"])]),_:1},8,["rules"]),gt(h,{prop:"favoriteDesc",rules:e.$form.rule("\u6536\u85CF\u5939\u63CF\u8FF0","blur","maxSize[200]"),style:{}},{default:Dt(()=>[gt(v,{modelValue:i.entity.favoriteDesc,"onUpdate:modelValue":t[8]||(t[8]=B=>i.entity.favoriteDesc=B),rows:7,type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u6536\u85CF\u5939\u63CF\u8FF0\uFF08\u9650100\u5B57\uFF0C\u9009\u586B\uFF09",maxlength:"100",resize:"none",class:"textarea"},null,8,["modelValue"])]),_:1},8,["rules"]),gt(h,{prop:"isPublic",rules:e.$form.rule("\u9690\u79C1","blur","required,maxSize[200]"),style:{}},{default:Dt(()=>[gt(y,{modelValue:i.entity.isPublic,"onUpdate:modelValue":t[9]||(t[9]=B=>i.entity.isPublic=B),class:"radio"},{default:Dt(()=>
559[ce("p",null,[gt(g,{label:"1",size:"default"},{default:Dt(()=>[_Wt]),_:1}),wWt]),ce("p",null,[gt(g,{label:"2",size:"default"},{default:Dt(()=>[CWt]),_:1}),xWt])]),_:1},8,["modelValue"])]),_:1},8,["rules"]),ce("div",EWt,[ce("em",{onClick:t[10]||(t[10]=B=>l.formSubmit())},"\u786E\u8BA4"),ce("span",{onClick:t[11]||(t[11]=B=>i.addCollectFlag=!1)},"\u53D6\u6D88")])]),_:1},8,["model"])]),_:1},8,["modelValue"]),gt(f,{modelValue:i.rewardFlag,"onUpdate:modelValue":t[21]||(t[21]=B=>i.rewardFlag=B),width:"460",class:"common reward","align-center":"true"},{default:Dt(()=>[SWt,ce("ul",null,[ce("li",{class:He(i.rewardIntegralType==1?"on":""),onClick:t[14]||(t[14]=B=>l.chnageIntegral(1))},"1\u79EF\u5206",2),ce("li",{class:He(i.rewardIntegralType==2?"on":""),onClick:t[15]||(t[15]=B=>l.chnageIntegral(2))},"2\u79EF\u5206",2),ce("li",{class:He(i.rewardIntegralType==0?"on":""),onClick:t[16]||(t[16]=B=>l.chnageIntegral(0))},"\u81EA\u5B9A\u4E49\u79EF\u5206",2),i.rewardIntegralType==0?(Ce(),Ie("p",TWt,[ea(ce("input",{type:"number","onUpdate:modelValue":t[17]||(t[17]=B=>i.rewardIntegral=B),placeholder:"\u8BF7\u8F93\u5165\u6253\u8D4F\u79EF\u5206",onInput:t[18]||(t[18]=B=>l.validateInput())},null,544),[[UA,i.rewardIntegral]])])):on("",!0)]),ce("div",null,[ce("em",null,"\u5269\u4F59\u79EF\u5206\uFF1A"+Zn(i.integralTemp),1),gt(C,{modelValue:i.checked,"onUpdate:modelValue":t[19]||(t[19]=B=>i.checked=B),label:"\u540C\u65F6\u70B9\u8D5E\u5185\u5BB9",size:"large"},null,8,["modelValue"])]),gt(S,{style:{height:"40px",background:"#0079fe",color:"#fff",margin:"0 30px 30px",width:"400px"},onClick:t[20]||(t[20]=B=>l.reward())},{default:Dt(()=>[AWt]),_:1})]),_:1},8,["modelValue"]),gt(f,{modelValue:i.reportFlag,"onUpdate:modelValue":t[24]||(t[24]=B=>i.reportFlag=B),width:"520",class:"common report","align-center":"true",onClose:l.reportClose},{default:Dt(()=>[kWt,ce("div",OWt,[MWt,ce("div",NWt,[gt(y,{modelValue:i.reportForm.type,"onUpdate:modelValue":t[22]||(t[22]=B=>i.reportForm.type=B)},{default:Dt(()=>[(Ce(!0),Ie(Ur,null,La(i.reportDicData,B=>(Ce(),yn(g,{label:B.dictionaryChildId,size:"default"},{default:Dt(()=>[lo(Zn(B.dictionaryChildName),1)]),_:2},1032,["label"]))),256))]),_:1},8,["modelValue"])]),DWt,ce("div",IWt,[gt(v,{modelValue:i.reportForm.textarea,"onUpdate:modelValue":t[23]||(t[23]=B=>i.reportForm.textarea=B),style:{},type:"textarea",placeholder:"\u8BF7\u8BE6\u7EC6\u63CF\u8FF0\u4E3E\u62A5\u539F\u56E0\uFF0C\u6211\u4EEC\u5C06\u7B2C\u4E00\u65F6\u95F4\u6838\u5B9E\u5904\u7406"},null,8,["modelValue"])]),ce("div",RWt,[gt(S,{round:"",onClick:l.reportClose},{default:Dt(()=>[LWt]),_:1},8,["onClick"]),gt(S,{round:"",type:"primary",onClick:l.complaint},{default:Dt(()=>[BWt]),_:1},8,["onClick"])])])]),_:1},8,["modelValue","onClose"]),gt(f,{modelValue:i.shareFlag,"onUpdate:modelValue":t[26]||(t[26]=B=>i.shareFlag=B),width:"490",class:"common share","align-center":"true","close-on-click-modal":"true","show-close":!1},{default:Dt(()=>
559[ce("div",PWt,[ce("div",FWt,[ce("img",{src:"/api/share/poster?dataType="+n.dataType+"&dataId="+i.dataIdTemp},null,8,$Wt),ce("div",zWt,[ce("em",{onClick:t[25]||(t[25]=B=>l.copy())},"\u590D\u5236\u94FE\u63A5"),ce("a",{href:"/api/share/poster?dataType="+n.dataType+"&dataId="+i.dataIdTemp+"&download=true",target:"_blank"},"\u4FDD\u5B58\u56FE\u7247",8,HWt)])])])]),_:1},8,["modelValue"])])}var UWt=tv(Qjt,[["render",VWt],["__scopeId","data-v-3895171e"]]),jWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjIwRjBBQzg2Mzc4NzExRUY5NzM3RkU2QkFFN0JDRUM4IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjIwRjBBQzg3Mzc4NzEx
559RUY5NzM3RkU2QkFFN0JDRUM4Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MjBGMEFDODQzNzg3MTFFRjk3MzdGRTZCQUU3QkNFQzgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MjBGMEFDODUzNzg3MTFFRjk3MzdGRTZCQUU3QkNFQzgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7ubXduAAABpElEQVR42tSUQSgEURjHdyYHRA5KcXdyVEpJuXChHBwoR7kRKaT2RJyojbOL1DqIcnKRk0KJuCjHuXFw2RTL+D19O2Zm570301549eubfd/3/ftm35u/4/t+rpZVl7Q5s7DaSdiFPtm6guntzfxdvNaJT0BzF+FBfu7Ap9oGF3oQubZNcAZlaKC4LHtzCL9Irjlc7CaM3gZToebKmoAmanq1AqxWiY8Jkz1JbDcJ3EpcShBYlnhu+xPnCVuwCHvwBeNQgDyvtmYUEJFXQktsWwnVI/ChFaBxlHAEb3AMHqiCDhgR0UlE9qsEaB4mnMAljFHkxaZSp1OEAXUi5IuBAMlGnktwQ6LbdHWpPSUMquOm9rlyChsS+213n6YheSyEj3EW7kmWUn5DF3KxAgF16w4zfIQH8K49xizLzdW4Ev3AWfET/cBfd+x+QLPRDxBJ7wcUB36AsN0PZPQfPwg1R/yAmr/uB4xo9ANeze4HiGj9AAG9H9CYyg8QqfYDmiN+QJEXmyriB+R//YBk4AckjH5AbeAH1Gb3A5r0fkDyH/rBtwADANf826rUdeumAAAAAElFTkSuQmCC",WWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjUzOEEwMDI0Mzc4NzExRUZBRThDOTM2NDk2M0YwNUQ5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjUzOEEwMDI1Mzc4NzExRUZBRThDOTM2NDk2M0YwNUQ5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTM4QTAwMjIzNzg3MTFFRkFFOEM5MzY0OTYzRjA1RDkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTM4QTAwMjMzNzg3MTFFRkFFOEM5MzY0OTYzRjA1RDkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz77fVv4AAACU0lEQVR42rSUMWhTURSG82JaDLTSFgStGdpFhEDBLB0UFIq7pOjkIipxkQ4li9BJCVqQWAUVKaWgDh0zVVvUySKRDkFah1bbJiAtHaytQUxCnt95nISXl/cSbOyFL/fm3nPOvefc+37DNE1fKy0gP7dG7zyjuwCFJrarcOnxg7FfNQFoVyAKX2AHyjbHQ9AFBqzDWXhdWfRrn4NFIufU4TAEtTeYz8IG42lYth/LkBqQgux8HrZhHo6BqRuswUUCFDVdCdIP15lbCdiCdTOxRT/kVQSc5zSFe/AeQvYAPzGQHV9AD5SgDTYIHGNthPEA3IderUe1BtKCGErxkpCAJ5CCVzhfpn/IuqT2HGJw1RmgqCeIwGn4gcNT+o8wA4Nq9xVuSP72a7QC6FVJgCPyJgj4iT4Pd3FI8/8D43eMJ53vQFoPC5v0N21Fk2N+h9+Mp+Q9YHOm7iVqK7kU/hw8kmuU6uNsOA3sNci7BAjDNXgj18wp4hB2O0EITrC453jCE/CZnTOa0rj8hyVngJReW0FfoE/7bzCM41G1fQsLdU+5leb3tdisFIzb5j/pgZkwDkgPiOyqB8xnwVsPSKGpHhCgqOlW9YC5Wj1goqEe4NxYDzBw1QMCx1hz1QN7gCCGZQyTmn8H9MmrY87SA9YNxsf1AztZ9znrCSJavDQOs8y1M/7j1APJv6ke4FzVAxzS/Lf0gLG7HrBQowc4VPWAsaUH2OxfD6QGLekBp4iDtx6w6KoH7JzRlOr0oPISXzI+5aEHnVDRA/mIogTc/W968FeAAQAY8Rav9famkgAAAABJRU5ErkJggg==",GWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjZDRjVGNzQwMzc4NzExRUY4QjRCRjc2QjFCNTdDM0JCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjZDRjVGNzQxMzc4NzExRUY4QjRCRjc2QjFCNTdDM0JCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NkNGNUY3M0UzNzg3MTFFRjhCNEJGNzZCMUI1N0MzQkIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NkNGNUY3M0YzNzg3MTFFRjhCNEJGNzZCMUI1N0MzQkIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xPrGbAAABvElEQVR42sSUP0vDUBTF82IRQUVxqA5OYvUjCE7+gSLoouDQyV3o5CYIguAi4uA3cBPRpU4VRRyqOLk46VIVhwiCKChiG38Jl/AS0zRtUC+c3nDfPee+vpccZdu2kSRSzk9+ae2QNAK+YvJawO325spoSgoTYA5cA1Nq7zRYMqCH1Cn1KmgHl94OiBdwCuFDHwNxy+mhnic/B9aedAEnekFZa7ghdYFPnqfJgwhVtX7T0LZrBNQ3SAMQ0qCf5zTYqXmIIXEEzgKHVoktwNSi7GSSdADuqC2E9Zp1rmseWJCHI9+DiDgH+3VfJNl2OWR9CnTImQSjogt0839XyQ9yYI8IFkBOu5lx0pAQW0GfLrAHFmVROVMhlBDICnmXNANegS1nd+ysqbCPCUKGdAVOwBuYBWMIXgR7Va2vEZE25wZkuxnI92F9KunnbBoJwz1EtWw35Qf2uor2AxosGRDPDyD4/ACi6wfUf/gBa9F+QIPnBzy7foBQPD+A4PoBhDT4Bz9galF24vkBteb9APIf+AFTkvkB/9fnBwgWQE67mcb8AEIJgayQG/MDCKF+gGB8P0DE5weQf8cPvgUYAG
559y40K+L0fE7AAAAAElFTkSuQmCC",KWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjg0NUM5RjJGMzc4NzExRUZBOTU3OEFFODNGNzNGOThGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjg0NUM5RjMwMzc4NzExRUZBOTU3OEFFODNGNzNGOThGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ODQ1QzlGMkQzNzg3MTFFRkE5NTc4QUU4M0Y3M0Y5OEYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6ODQ1QzlGMkUzNzg3MTFFRkE5NTc4QUU4M0Y3M0Y5OEYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6t+FMpAAACgklEQVR42tyUTYhNYRjH7xlXFmTD4voYptFIyYxGjRDZIQtf0dgpCwtRWGhkpmSMKRlpZmHF6tY0RYoNq5maELlz5SNnYimSEt1mmpLj95z+98x733PcxtapX+/7fJ7nvO/pH0RRlHOfU+cur2K5BG2Ql9uS3sG1wevdJTe/wSs+yfIW5sNZklsN9sfhJ4ySc9WtCaoTEDjBcgt2UjQm31GWeXAfXwW7hf0k9GN3JQ0INLP/CO0EJrAH2FvxM/gFm+EJsU5iBfafYTv2ePUT+uGxinvZn4G92AfgsE0F+4gVsb+wvwFD7gQh+2PwEirQQWLZO5+lLF9hic7oBTmrqxPMYDxlXQ/v/WJ78H1jeQ672VujGfcW8rxhGesnWJH7+9MIr8m1usBtYFd0Wp1DEkp+Jb5hTfKG5Qgsyjk/ih3cA7Cr2aEmr+z6dAu7YB1sVP4duOL/B9ZgA29okn2eZ
559ZumLOHvkX+UZQ12Y00DBe0gF8NBEkLvE5azFGEttBCfSjVQ4k07D514SZ9go2+BhxTud/PzGSc9oh/HDuoerIStcBvu+skNGQ0KGvMQLIRp2KNDLPjJWRNMavRNupUpNfsgf/0GQwsu/lCTNumCqwffB+t9QnAhqtGDqC9oNVw9ICdbDwgkekDRmHyJHuCrYCd6gD2rBwQSPSAwgZ2pB8Q6iSV6gD2eiyfo+j0Cj7TvhQjazZavGaahKHsAyvHLNUFKD+he9s4npQfkzOoBRqIHfnF8DX1Bogfs03rAG+asB+Rm64E6hySkfhh8w5pkbnpAwb/pAQWxHvCGJtk1eoC/R/5YD7DTekAw0QMSQu8TavSAeLYekFhXDyj83/TgjwADAKpbe2Lf65HRAAAAAElFTkSuQmCC",YWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk5REY3QkY4Mzc4NzExRUZBNjI2OUE1QUEwRDc1M0EyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk5REY3QkY5Mzc4NzExRUZBNjI2OUE1QUEwRDc1M0EyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTlERjdCRjYzNzg3MTFFRkE2MjY5QTVBQTBENzUzQTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTlERjdCRjczNzg3MTFFRkE2MjY5QTVBQTBENzUzQTIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6q6UHfAAACVUlEQVR42rSUy0vUURTHZ4ZcBzkKMRI6K90PmCThPyBkCiLpQpuNCzdKguIzwyTQfIALrRYq4Upw07KcjYrBbLNgQI1EFKSiiBb663Pk3B937jzyUT/4zLlzHr9777m/+w16nhe4ynPNdXR0jRRhBqEObqj7O7yBoZnx/l07P+QUt2IO4R4swwNogldwF3bI6bJrgmYLBNowL2V2ZnmcbbnktGNmoZecp/4LCIQZH+kSh62CRkwE34Tli2PmoQL/tunBHPyWYhIijF9DA8SgCibwr2IT8jLGQ4yXJG5eIA17ruMfsAcnJD+ydnCgq5TnGUy5TXwvPxR9k5XCdWvZpdqbRXV9yHaMN63xAtRS2If9BeOwBZUaD7vHuA0PrRdIo6bhiRa/gHorLif21T6FGsbvpGEsc9NaelI+Jnylli+KSUEL/qWQ7nsNswIbul/zlMAtq7hQi9elOK2JOGSJCdkOieYTnoQxLS7AfIRP5N7JdRea4TMUwzGJo1ZMXiAruJ/vMp2qfcuMKScWUfsz52Vixn39SORIqx3K9K4ks16mf6YHwV4vrx54o8HcekDxX/WAnDQ9CMgWzrbRc9oGHgwYnwuxds3p8X0aCGtg0ClohE7HF9fccvkfsvWA/Q2zxAgktBcxc+78X4VOcuRefFE9COTVA5IvrgcUZegBM5/pAbGL6QGF/18PTGdrtLO3nY4nYcfxRTW32T8F9ubrge43qx4Q8/WAmnQ9wOHrAYkZeoDP1wNyz6cHJF5eD5jxXHqQ9gJm3KdQPpJu51jNk6EHfwQYAPXWcoGgv+/mAAAAAElFTkSuQmCC",qWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAAbifjMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkIxQjNFNDU3Mzc4NzExRUZBQzQxODNBODVBNUNBMDc1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkIxQjNFNDU4Mzc4NzExRUZBQzQxODNBODVBNUNBMDc1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjFCM0U0NTUzNzg3MTFFRkFDNDE4M0E4NUE1Q0EwNzUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QjFCM0U0NTYzNzg3MTFFRkFDNDE4M0E4NUE1Q0EwNzUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5oQnzmAAABV0lEQVR42uyUsUvDUBCH82IRxV0oxaG4OLjooGCHLs4OTlJ3t05uBQepiIsiuNql/0K7dHZ0dHEXFERdxWr7/K6c4SVtbR7BoeDBR96Fl19+d3k5Y60NskTuZ1E9rFflomkXZqEHXzCn9w30oXl1fnQSEyCOoQ5LcAB7sK/XHd0jdjegBkMCz3ANq7KJN7RxFbJeY91ynN6r6CBCR0DsFiAP72wU2yvwkSg7r2UESQcSn/AA2/AG83D7WxPDRL4AT/Codd7Aa6qvoLEMd9Rc0PySUmZ8HBgejh0M8p6PQN/3ILkCRhs3KV7G9UCslqi5O0FgfZyAHNkKlNXNqJD+LLrOXYEiNKAzojdujzb1Ew8JnMEubKXo20XUuKy/cxhkjKgEU7Ne88Cemj+eB7yhjavBPGDdcpymmwdsnOZ5QM3RPKAUv3nAw7GTRT5t84Ca/+eBZ3wLMAACH4YtJyR2zwAAAABJRU5ErkJggg==",XWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAOCAYAAAAbvf3sAAAA/UlEQVQokYXSrU4DQRTF8V+XDZSPEBRVPAGGx+AFSNCFYGAMg6kYASPJCliDA4fA4HB1vAsoMBhSKKLbpIW0HDM3d87/3szktE5OL7Zxiy+0MDStcW8FxyUe8YyzCWhSQxTN/X2JJRzWVRqYr16IebfABzqzXCHm5eZs4b1o+gtzJl+FmJ/qKg2xX8wxgrpKR+iEmK/rKr2Wv9Yv4hwbRh8Ab+gjhphXp4BGa1ifAIb4bOr2FFBX6RPh94QQcx+3dZW6/74hxHyDdl2lboh5fbzhew7Tq6v01tQPBZbxMss9YYbN0igKlyHmhIHZ0QjolNjDHXb8Dd5YLWzh4AeHhkedFc18twAAAABJRU5ErkJggg==";const ZWt={data(){return{memberEntity:{},memberDetailData:[],maxGrowthValue:0}},created(){this.loadData()}
559,methods:{loadData(){this.$ajax.loadData("/api/member/info",{},e=>{this.memberDetailData=e,this.memberEntity=e.entity,this.$emit("headPhoto",this.memberEntity.headPhoto)}),this.getLevelListInfor()},getLevelListInfor(){this.$ajax.loadData("/api/member/growthGradelist",{},e=>{this.maxGrowthValue=e[e.length-1].growthValue})},logout(){this.$confirm("\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F").then(()=>{this.$store.commit("token",""),this.$router.push("/"),setTimeout(()=>{location.reload()},200)})}}},Mp=e=>(pb("data-v-446c86a2"),e=e(),mb(),e),QWt={class:""},JWt={class:"brief"},eGt=["src"],tGt=lo("\u4E2A\u4EBA\u8D44\u6599>"),nGt={class:"ex"},rGt={class:"menu"},oGt=Mp(()=>ce("p",null,[ce("img",{src:jWt,alt:""})],-1)),aGt=Mp(()=>ce("span",null,"\u6211\u7684\u4E3B\u9875",-1)),iGt=Mp(()=>ce("p",null,[ce("img",{src:WWt,alt:""})],-1)),sGt=Mp(()=>ce("span",null,"\u6211\u7684\u6587\u7AE0",-1)),lGt=Mp(()=>ce("p",null,[ce("img",{src:GWt,alt:""})],-1)),uGt=Mp(()=>ce("span",null,"\u6211\u7684\u95EE\u7B54",-1)),cGt=Mp(()=>ce("p",null,[ce("img",{src:KWt,alt:""})],-1)),fGt=Mp(()=>ce("span",null,"\u6210\u957F\u4E2D\u5FC3",-1)),dGt=Mp(()=>ce("p",null,[ce("img",{src:YWt,alt:""})],-1)),vGt=Mp(()=>ce("span",null,"\u521B\u4F5C\u8005\u4E2D\u5FC3",-1)),hGt=Mp(()=>ce("a",{href:"https://class.guyuehome.com/",class:"more",target:"_blank"},[ce("p",null,[ce("img",{src:qWt,alt:""})]),ce("span",null,"\u6211\u7684\u8BFE\u7A0B")],-1)),pGt=Mp(()=>ce("img",{src:XWt,alt:""},null,-1)),mGt=Mp(()=>ce("span",null,"\u9000\u51FA\u767B\u5F55",-1)),gGt=[pGt,mGt];function yGt(e,t,n,r,i,l){const u=Kr("router-link"),f=Kr("el-progress");return Ce(),Ie("div",QWt,[ce("dd",null,[ce("div",JWt,[ce("div",null,[ce("p",null,[ce("img",{src:i.memberEntity.headPhoto||e.$userImg,alt:""},null,8,eGt)]),ce("span",null,[ce("em",null,Zn(i.memberEntity.nickname),1),ce("b",null,"lv"+Zn(i.memberDetailData.growthGradeValue),1)])]),gt(u,{to:"/edit",class:"more"},{default:Dt(()=>[tGt]),_:1})]),ce("div",nGt,[ce("p",null,[ce("span",null,Zn(i.memberDetailData.growthGradeName)+"v"+Zn(i.memberDetailData.growthGradeValue)+".0",1),ce("em",null,Zn(i.memberEntity.growthValue)+"/"+Zn(i.memberDetailData.nextGrowthValue>i.maxGrowthValue?i.maxGrowthValue:i.memberDetailData.nextGrowthValue),1)]),gt(f,{percentage:i.memberEntity.growthValue/i.memberDetailData.nextGrowthValue*100,"show-text":!1},null,8,["percentage"])]),ce("div",rGt,[gt(u,{to:"/member",class:"more"},{default:Dt(()=>[oGt,aGt]),_:1}),gt(u,{to:"/ArticleManagement",class:"more"},{default:Dt(()=>[iGt,sGt]),_:1}),gt(u,{to:"/questionManagement",class:"more"},{default:Dt(()=>[lGt,uGt]),_:1}),gt(u,{to:"/grow",class:"more"},{default:Dt(()=>
559[cGt,fGt]),_:1}),gt(u,{to:"/creation",class:"more"},{default:Dt(()=>[dGt,vGt]),_:1}),hGt]),ce("div",{class:"btn",onClick:t[0]||(t[0]=v=>l.logout())},gGt)])])}var bGt=tv(ZWt,[["render",yGt],["__scopeId","data-v-446c86a2"]]),dbe={exports:{}},Bs={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oi,function(){var n=n||function(r,i){var l;if(typeof window!="undefined"&&window.crypto&&(l=window.crypto),typeof self!="undefined"&&self.crypto&&(l=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(l=globalThis.crypto),!l&&typeof window!="undefined"&&window.msCrypto&&(l=window.msCrypto),!l&&typeof oi!="undefined"&&oi.crypto&&(l=oi.crypto),!l&&typeof Gmt=="function")try{l=require("crypto")}catch{}var u=function(){if(l){if(typeof l.getRandomValues=="function")try{return l.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof l.randomBytes=="function")try{return l.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function R(){}return function(N){var A;return R.prototype=N,A=new R,R.prototype=null,A}}(),v={},h=v.lib={},g=h.Base=function(){return{extend:function(R){var N=f(this);return R&&N.mixIn(R),(!N.hasOwnProperty("init")||this.init===N.init)&&(N.init=function(){N.$super.init.apply(this,arguments)}),N.init.prototype=N,N.$super=this,N},create:function(){var R=this.extend();return R.init.apply(R,arguments),R},init:function(){},mixIn:function(R){for(var N in R)R.hasOwnProperty(N)&&(this[N]=R[N]);R.hasOwnProperty("toString")&&(this.toString=R.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=h.WordArray=g.extend({init:function(R,N){R=this.words=R||[],N!=i?this.sigBytes=N:this.sigBytes=R.length*4},toString:function(R){return(R||C).stringify(this)},concat:function(R){var N=this.words,A=R.words,X=this.sigBytes,Z=R.sigBytes;if(this.clamp(),X%4)for(var z=0;z<Z;z++){var Y=A[z>>>2]>>>24-z%4*8&255;N[X+z>>>2]|=Y<<24-(X+z)%4*8}else for(var Q=0;Q<Z;Q+=4)N[X+Q>>>2]=A[Q>>>2];return this.sigBytes+=Z,this},clamp:function(){var R=this.words,N=this.sigBytes;R[N>>>2]&=4294967295<<32-N%4*8,R.length=r.ceil(N/4)},clone:function(){var R=g.clone.call(this);return R.words=this.words.slice(0),R},random:function(R){for(var N=[],A=0;A<R;A+=4)N.push(u());return new y.init(N,R)}}),w=v.enc={},C=w.Hex={stringify:function(R){for(var N=R.words,A=R.sigBytes,X=[],Z=0;Z<A;Z++){var z=N[Z>>>2]>>>24-Z%4*8&255;X.push((z>>>4).toString(16)),X.push((z&15).toString(16))}return X.join("")},parse:function(R){for(var N=R.length,A=[],X=0;X<N;X+=2)A[X>>>3]|=parseInt(R.substr(X,2),16)<<24-X%8*4;return new y.init(A,N/2)}},S=w.Latin1={stringify:function(R){for(var N=R.words,A=R.sigBytes,X=[],Z=0;Z<A;Z++){var z=N[Z>>>2]>>>24-Z%4*8&255;X.push(String.fromCharCode(z))}return X.join("")},parse:function(R){for(var N=R.length,A=[],X=0;X<N;X++)A[X>>>2]|=(R.charCodeAt(X)&255)<<24-X%4*8;return new y.init(A,N)}},T=w.Utf8={stringify:function(R){try{return decodeURIComponent(escape(S.stringify(R)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(R){return S.parse(unescape(encodeURIComponent(R)))}},B=h.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(R){typeof R=="string"&&(R=T.parse(R)),this._data.concat(R),this._nDataBytes+=R.sigBytes},_process:function(R){var N,A=this._data,X=A.words,Z=A.sigBytes,z=this.blockSize,Y=z*4,Q=Z/Y;R?Q=r.ceil(Q):Q=r.max((Q|0)-this._minBufferSize,0);var $=Q*z,te=r.min($*4,Z);if($){for(var V=0;V<$;V+=z)this._doProcessBlock(X,V);N=X.splice(0,$),A.sigBytes-=te}return new y.init(N,te)},clone:function(){var R=g.clone.call(this);return R._data=this._data.clone(),R},_minBufferSize:0});h.Hasher=B.extend({cfg:g.extend(),init:function(R){this.cfg=this.cfg.extend(R),this.reset()},reset:function(){B.reset.call(this),this._doReset()},update:function(R){return this._append(R),this._process(),this},finalize:function(R){R&&this._append(R);var N=this._doFinalize();return N},blockSize:16,_createHelper:function(R){return function(N,A){return new R.init(A).finalize(N)}},_createHmacHelper:function(R){return function(N,A){return new F.HMAC.init(R,A).finalize(N)}}});var F=v.algo={};return v}(Math);return n})})(Bs);var wR={exports:{}};
vendor: 36,025 bytes, lines 559-572
559(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(r){var i=n,l=i.lib,u=l.Base,f=l.WordArray,v=i.x64={};v.Word=u.extend({init:function(h,g){this.high=h,this.low=g}}),v.WordArray=u.extend({init:function(h,g){h=this.words=h||[],g!=r?this.sigBytes=g:this.sigBytes=h.length*8},toX32:function(){for(var h=this.words,g=h.length,y=[],w=0;w<g;w++){var C=h[w];y.push(C.high),y.push(C.low)}return f.create(y,this.sigBytes)},clone:function(){for(var h=u.clone.call(this),g=h.words=this.words.slice(0),y=g.length,w=0;w<y;w++)g[w]=g[w].clone();return h}})}(),n})})(wR);var vbe={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,l=i.WordArray,u=l.init,f=l.init=function(v){if(v instanceof ArrayBuffer&&(v=new Uint8Array(v)),(v instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&v instanceof Uint8ClampedArray||v instanceof Int16Array||v instanceof Uint16Array||v instanceof Int32Array||v instanceof Uint32Array||v instanceof Float32Array||v instanceof Float64Array)&&(v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength)),v instanceof Uint8Array){for(var h=v.byteLength,g=[],y=0;y<h;y++)g[y>>>2]|=v[y]<<24-y%4*8;u.call(this,g,h)}else u.apply(this,arguments)};f.prototype=l}}(),n.lib.WordArray})})(vbe);var hbe={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=r.enc;u.Utf16=u.Utf16BE={stringify:function(v){for(var h=v.words,g=v.sigBytes,y=[],w=0;w<g;w+=2){var C=h[w>>>2]>>>16-w%4*8&65535;y.push(String.fromCharCode(C))}return y.join("")},parse:function(v){for(var h=v.length,g=[],y=0;y<h;y++)g[y>>>1]|=v.charCodeAt(y)<<16-y%2*16;return l.create(g,h*2)}},u.Utf16LE={stringify:function(v){for(var h=v.words,g=v.sigBytes,y=[],w=0;w<g;w+=2){var C=f(h[w>>>2]>>>16-w%4*8&65535);y.push(String.fromCharCode(C))}return y.join("")},parse:function(v){for(var h=v.length,g=[],y=0;y<h;y++)g[y>>>1]|=f(v.charCodeAt(y)<<16-y%2*16);return l.create(g,h*2)}};function f(v){return v<<8&4278255360|v>>>8&16711935}}(),n.enc.Utf16})})(hbe);var Q8={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=r.enc;u.Base64={stringify:function(v){var h=v.words,g=v.sigBytes,y=this._map;v.clamp();for(var w=[],C=0;C<g;C+=3)for(var S=h[C>>>2]>>>24-C%4*8&255,T=h[C+1>>>2]>>>24-(C+1)%4*8&255,B=h[C+2>>>2]>>>24-(C+2)%4*8&255,F=S<<16|T<<8|B,R=0;R<4&&C+R*.75<g;R++)w.push(y.charAt(F>>>6*(3-R)&63));var N=y.charAt(64);if(N)for(;w.length%4;)w.push(N);return w.join("")},parse:function(v){var h=v.length,g=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var w=0;w<g.length;w++)y[g.charCodeAt(w)]=w}var C=g.charAt(64);if(C){var S=v.indexOf(C);S!==-1&&(h=S)}return f(v,h,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(v,h,g){for(var y=[],w=0,C=0;C<h;C++)if(C%4){var S=g[v.charCodeAt(C-1)]<<C%4*2,T=g[v.charCodeAt(C)]>>>6-C%4*2,B=S|T;y[w>>>2]|=B<<24-w%4*8,w++}return l.create(y,w)}}(),n.enc.Base64})})(Q8);var pbe={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=r.enc;u.Base64url={stringify:function(v,h){h===void 0&&(h=!0);var g=v.words,y=v.sigBytes,w=h?this._safe_map:this._map;v.clamp();for(var C=[],S=0;S<y;S+=3)for(var T=g[S>>>2]>>>24-S%4*8&255,B=g[S+1>>>2]>>>24-(S+1)%4*8&255,F=g[S+2>>>2]>>>24-(S+2)%4*8&255,R=T<<16|B<<8|F,N=0;N<4&&S+N*.75<y;N++)C.push(w.charAt(R>>>6*(3-N)&63));var A=w.charAt(64);if(A)for(;C.length%4;)C.push(A);return C.join("")},parse:function(v,h){h===void 0&&(h=!0);var g=v.length,y=h?this._safe_map:this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var C=0;C<y.length;C++)w[y.charCodeAt(C)]=C}var S=y.charAt(64);if(S){var T=v.indexOf(S);T!==-1&&(g=T)}return f(v,g,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(v,h,g){for(var y=[],w=0,C=0;C<h;C++)if(C%4){var S=g[v.charCodeAt(C-1)]<<C%4*2,T=g[v.charCodeAt(C)]>>>6-C%4*2,B=S|T;y[w>>>2]|=B<<24-w%4*8,w++}return l.create(y,w)}}(),n.enc.Base64url})})(pbe);var J8={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(r){var i=n,l=i.lib,u=l.WordArray,f=l.Hasher,v=i.algo,h=[];(function(){for(var T=0;T<64;T++)h[T]=r.abs(r.sin(T+1))*4294967296|0})();var g=v.MD5=f.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,B){for(var F=0;F<16;F++){var R=B+F,N=T[R];T[R]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}var A=this._hash.words,X=T[B+0],Z=T[B+1],z=T[B+2],Y=T[B+3],Q=T[B+4],$=T[B+5],te=T[B+6],V=T[B+7],K=T[B+8],fe=T[B+9],de=T[B+10],ne=T[B+11],le=T[B+12],_e=T[B+13],M=T[B+14],P=T[B+15],U=A[0],j=A[1],ee=A[2],ye=A[3];U=y(U,j,ee,ye,X,7,h[0]),ye=y(ye,U,j,ee,Z,12,h[1]),ee=y(ee,ye,U,j,z,17,h[2]),j=y(j,ee,ye,U,Y,22,h[3]),U=y(U,j,ee,ye,Q,7,h[4]),ye=y(ye,U,j,ee,$,12,h[5]),ee=y(ee,ye,U,j,te,17,h[6]),j=y(j,ee,ye,U,V,22,h[7]),U=y(U,j,ee,ye,K,7,h[8]),ye=y(ye,U,j,ee,fe,12,h[9]),ee=y(ee,ye,U,j,de,17,h[10]),j=y(j,ee,ye,U,ne,22,h[11]),U=y(U,j,ee,ye,le,7,h[12]),ye=y(ye,U,j,ee,_e,12,h[13]),ee=y(ee,ye,U,j,M,17,h[14]),j=y(j,ee,ye,U,P,22,h[15]),U=w(U,j,ee,ye,Z,5,h[16]),ye=w(ye,U,j,ee,te,9,h[17]),ee=w(ee,ye,U,j,ne,14,h[18]),j=w(j,ee,ye,U,X,20,h[19]),U=w(U,j,ee,ye,$,5,h[20]),ye=w(ye,U,j,ee,de,9,h[21]),ee=w(ee,ye,U,j,P,14,h[22]),j=w(j,ee,ye,U,Q,20,h[23]),U=w(U,j,ee,ye,fe,5,h[24]),ye=w(ye,U,j,ee,M,9,h[25]),ee=w(ee,ye,U,j,Y,14,h[26]),j=w(j,ee,ye,U,K,20,h[27]),U=w(U,j,ee,ye,_e,5,h[28]),ye=w(ye,U,j,ee,z,9,h[29]),ee=w(ee,ye,U,j,V,14,h[30]),j=w(j,ee,ye,U,le,20,h[31]),U=C(U,j,ee,ye,$,4,h[32]),ye=C(ye,U,j,ee,K,11,h[33]),ee=C(ee,ye,U,j,ne,16,h[34]),j=C(j,ee,ye,U,M,23,h[35]),U=C(U,j,ee,ye,Z,4,h[36]),ye=C(ye,U,j,ee,Q,11,h[37]),ee=C(ee,ye,U,j,V,16,h[38]),j=C(j,ee,ye,U,de,23,h[39]),U=C(U,j,ee,ye,_e,4,h[40]),ye=C(ye,U,j,ee,X,11,h[41]),ee=C(ee,ye,U,j,Y,16,h[42]),j=C(j,ee,ye,U,te,23,h[43]),U=C(U,j,ee,ye,fe,4,h[44]),ye=C(ye,U,j,ee,le,11,h[45]),ee=C(ee,ye,U,j,P,16,h[46]),j=C(j,ee,ye,U,z,23,h[47]),U=S(U,j,ee,ye,X,6,h[48]),ye=S(ye,U,j,ee,V,10,h[49]),ee=S(ee,ye,U,j,M,15,h[50]),j=S(j,ee,ye,U,$,21,h[51]),U=S(U,j,ee,ye,le,6,h[52]),ye=S(ye,U,j,ee,Y,10,h[53]),ee=S(ee,ye,U,j,de,15,h[54]),j=S(j,ee,ye,U,Z,21,h[55]),U=S(U,j,ee,ye,K,6,h[56]),ye=S(ye,U,j,ee,P,10,h[57]),ee=S(ee,ye,U,j,te,15,h[58]),j=S(j,ee,ye,U,_e,21,h[59]),U=S(U,j,ee,ye,Q,6,h[60]),ye=S(ye,U,j,ee,ne,10,h[61]),ee=S(ee,ye,U,j,z,15,h[62]),j=S(j,ee,ye,U,fe,21,h[63]),A[0]=A[0]+U|0,A[1]=A[1]+j|0,A[2]=A[2]+ee|0,A[3]=A[3]+ye|0},_doFinalize:function(){var T=this._data,B=T.words,F=this._nDataBytes*8,R=T.sigBytes*8;B[R>>>5]|=128<<24-R%32;var N=r.floor(F/4294967296),A=F;B[(R+64>>>9<<4)+15]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,B[(R+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T.sigBytes=(B.length+1)*4,this._process();for(var X=this._hash,Z=X.words,z=0;z<4;z++){var Y=Z[z];Z[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return X},clone:function(){var T=f.clone.call(this);return T._hash=this._hash.clone(),T}});function y(T,B,F,R,N,A,X){var Z=T+(B&F|~B&R)+N+X;return(Z<<A|Z>>>32-A)+B}function w(T,B,F,R,N,A,X){var Z=T+(B&R|F&~R)+N+X;return(Z<<A|Z>>>32-A)+B}function C(T,B,F,R,N,A,X){var Z=T+(B^F^R)+N+X;return(Z<<A|Z>>>32-A)+B}function S(T,B,F,R,N,A,X){var Z=T+(F^(B|~R))+N+X;return(Z<<A|Z>>>32-A)+B}i.MD5=f._createHelper(g),i.HmacMD5=f._createHmacHelper(g)}(Math),n.MD5})})(J8);var Cre={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=i.Hasher,f=r.algo,v=[],h=f.SHA1=u.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,y){for(var w=this._hash.words,C=w[0],S=w[1],T=w[2],B=w[3],F=w[4],R=0;R<80;R++){if(R<16)v[R]=g[y+R]|0;else{var N=v[R-3]^v[R-8]^v[R-14]^v[R-16];v[R]=N<<1|N>>>31}var A=(C<<5|C>>>27)+F+v[R];R<20?A+=(S&T|~S&B)+1518500249:R<40?A+=(S^T^B)+1859775393:R<60?A+=(S&T|S&B|T&B)-1894007588:A+=(S^T^B)-899497514,F=B,B=T,T=S<<30|S>>>2,S=C,C=A}w[0]=w[0]+C|0,w[1]=w[1]+S|0,w[2]=w[2]+T|0,w[3]=w[3]+B|0,w[4]=w[4]+F|0},_doFinalize:function(){var g=this._data,y=g.words,w=this._nDataBytes*8,C=g.sigBytes*8;return y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=Math.floor(w/4294967296),y[(C+64>>>9<<4)+15]=w,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=u.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA1=u._createHelper(h),r.HmacSHA1=u._createHmacHelper(h)}(),n.SHA1})})(Cre);var dU={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){return function(r){var i=n,l=i.lib,u=l.WordArray,f=l.Hasher,v=i.algo,h=[],g=[];(function(){function C(F){for(var R=r.sqrt(F),N=2;N<=R;N++)if(!(F%N))return!1;return!0}function S(F){return(F-(F|0))*4294967296|0}for(var T=2,B=0;B<64;)C(T)&&(B<8&&(h[B]=S(r.pow(T,1/2))),g[B]=S(r.pow(T,1/3)),B++),T++})();var y=[],w=v.SHA256=f.extend({_doReset:function(){this._hash=new u.init(h.slice(0))},_doProcessBlock:function(C,S){for(var T=this._hash.words,B=T[0],F=T[1],R=T[2],N=T[3],A=T[4],X=T[5],Z=T[6],z=T[7],Y=0;Y<64;Y++){if(Y<16)y[Y]=C[S+Y]|0;else{var Q=y[Y-15],$=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,te=y[Y-2],V=(te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10;y[Y]=$+y[Y-7]+V+y[Y-16]}var K=A&X^~A&Z,fe=B&F^B&R^F&R,de=(B<<30|B>>>2)^(B<<19|B>>>13)^(B<<10|B>>>22),ne=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),le=z+ne+K+g[Y]+y[Y],_e=de+fe;z=Z,Z=X,X=A,A=N+le|0,N=R,R=F,F=B,B=le+_e|0}T[0]=T[0]+B|0,T[1]=T[1]+F|0,T[2]=T[2]+R|0,T[3]=T[3]+N|0,T[4]=T[4]+A|0,T[5]=T[5]+X|0,T[6]=T[6]+Z|0,T[7]=T[7]+z|0},_doFinalize:function(){var C=this._data,S=C.words,T=this._nDataBytes*8,B=C.sigBytes*8;return S[B>>>5]|=128<<24-B%32,S[(B+64>>>9<<4)+14]=r.floor(T/4294967296),S[(B+64>>>9<<4)+15]=T,C.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var C=f.clone.call(this);return C._hash=this._hash.clone(),C}});i.SHA256=f._createHelper(w),i.HmacSHA256=f._createHmacHelper(w)}(Math),n.SHA256})})(dU);var mbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,dU.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=r.algo,f=u.SHA256,v=u.SHA224=f.extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var h=f._doFinalize.call(this);return h.sigBytes-=4,h}});r.SHA224=f._createHelper(v),r.HmacSHA224=f._createHmacHelper(v)}(),n.SHA224})})(mbe);var xre={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,wR.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.Hasher,u=r.x64,f=u.Word,v=u.WordArray,h=r.algo;function g(){return f.create.apply(f,arguments)}var y=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],w=[];(function(){for(var S=0;S<80;S++)w[S]=g()})();var C=h.SHA512=l.extend({_doReset:function(){this._hash=new v.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(S,T){for(var B=this._hash.words,F=B[0],R=B[1],N=B[2],A=B[3],X=B[4],Z=B[5],z=B[6],Y=B[7],Q=F.high,$=F.low,te=R.high,V=R.low,K=N.high,fe=N.low,de=A.high,ne=A.low,le=X.high,_e=X.low,M=Z.high,P=Z.low,U=z.high,j=z.low,ee=Y.high,ye=Y.low,ie=Q,he=$,re=te,be=V,Ae=K,Te=fe,Ue=de,Oe=ne,De=le,$e=_e,rt=M,ct=P,lt=U,ot=j,Fe=ee,We=ye,Ye=0;Ye<80;Ye++){var Ke,mt,Ct=w[Ye];if(Ye<16)mt=Ct.high=S[T+Ye*2]|0,Ke=Ct.low=S[T+Ye*2+1]|0;else{var bt=w[Ye-15],tn=bt.high,Ft=bt.low,It=(tn>>>1|Ft<<31)^(tn>>>8|Ft<<24)^tn>>>7,Et=(Ft>>>1|tn<<31)^(Ft>>>8|tn<<24)^(Ft>>>7|tn<<25),At=w[Ye-2],vt=At.high,Tt=At.low,Wt=(vt>>>19|Tt<<13)^(vt<<3|Tt>>>29)^vt>>>6,xt=(Tt>>>19|vt<<13)^(Tt<<3|vt>>>29)^(Tt>>>6|vt<<26),at=w[Ye-7],_t=at.high,en=at.low,An=w[Ye-16],Vt=An.high,_n=An.low;Ke=Et+en,mt=It+_t+(Ke>>>0<Et>>>0?1:0),Ke=Ke+xt,mt=mt+Wt+(Ke>>>0<xt>>>0?1:0),Ke=Ke+_n,mt=mt+Vt+(Ke>>>0<_n>>>0?1:0),Ct.high=mt,Ct.low=Ke}var Mt=De&rt^~De<,pn=$e&ct^~$e&ot,En=ie&re^ie&Ae^re&Ae,zn=he&be^he&Te^be&Te,nn=(ie>>>28|he<<4)^(ie<<30|he>>>2)^(ie<<25|he>>>7),Yn=(he>>>28|ie<<4)^(he<<30|ie>>>2)^(he<<25|ie>>>7),qr=(De>>>14|$e<<18)^(De>>>18|$e<<14)^(De<<23|$e>>>9),Br=($e>>>14|De<<18)^($e>>>18|De<<14)^($e<<23|De>>>9),io=y[Ye],xa=io.high,Di=io.low,la=We+Br,Na=Fe+qr+(la>>>0<We>>>0?1:0),la=la+pn,Na=Na+Mt+(la>>>0<pn>>>0?1:0),la=la+Di,Na=Na+xa+(la>>>0<Di>>>0?1:0),la=la+Ke,Na=Na+mt+(la>>>0<Ke>>>0?1:0),Bi=Yn+zn,Ps=nn+En+(Bi>>>0<Yn>>>0?1:0);Fe=lt,We=ot,lt=rt,ot=ct,rt=De,ct=$e,$e=Oe+la|0,De=Ue+Na+($e>>>0<Oe>>>0?1:0)|0,Ue=Ae,Oe=Te,Ae=re,Te=be,re=ie,be=he,he=la+Bi|0,ie=Na+Ps+(he>>>0<la>>>0?1:0)|0}$=F.low=$+he,F.high=Q+ie+($>>>0<he>>>0?1:0),V=R.low=V+be,R.high=te+re+(V>>>0<be>>>0?1:0),fe=N.low=fe+Te,N.high=K+Ae+(fe>>>0<Te>>>0?1:0),ne=A.low=ne+Oe,A.high=de+Ue+(ne>>>0<Oe>>>0?1:0),_e=X.low=_e+$e,X.high=le+De+(_e>>>0<$e>>>0?1:0),P=Z.low=P+ct,Z.high=M+rt+(P>>>0<ct>>>0?1:0),j=z.low=j+ot,z.high=U+lt+(j>>>0<ot>>>0?1:0),ye=Y.low=ye+We,Y.high=ee+Fe+(ye>>>0<We>>>0?1:0)},_doFinalize:function(){var S=this._data,T=S.words,B=this._nDataBytes*8,F=S.sigBytes*8;T[F>>>5]|=128<<24-F%32,T[(F+128>>>10<<5)+30]=Math.floor(B/4294967296),T[(F+128>>>10<<5)+31]=B,S.sigBytes=T.length*4,this._process();var R=this._hash.toX32();return R},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S},blockSize:1024/32});r.SHA512=l._createHelper(C),r.HmacSHA512=l._createHmacHelper(C)}(),n.SHA512})})(xre);var gbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,wR.exports,xre.exports)})(oi,function(n){return function(){var r=n,i=r.x64,l=i.Word,u=i.WordArray,f=r.algo,v=f.SHA512,h=f.SHA384=v.extend({_doReset:function(){this._hash=new u.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var g=v._doFinalize.call(this);return g.sigBytes-=16,g}});r.SHA384=v._createHelper(h),r.HmacSHA384=v._createHmacHelper(h)}(),n.SHA384})})(gbe);var ybe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,wR.exports)})(oi,function(n){return function(r){var i=n,l=i.lib,u=l.WordArray,f=l.Hasher,v=i.x64,h=v.Word,g=i.algo,y=[],w=[],C=[];(function(){for(var B=1,F=0,R=0;R<24;R++){y[B+5*F]=(R+1)*(R+2)/2%64;var N=F%5,A=(2*B+3*F)%5;B=N,F=A}for(var B=0;B<5;B++)for(var F=0;F<5;F++)w[B+5*F]=F+(2*B+3*F)%5*5;for(var X=1,Z=0;Z<24;Z++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(X&1){var $=(1<<Q)-1;$<32?Y^=1<<$:z^=1<<$-32}X&128?X=X<<1^113:X<<=1}C[Z]=h.create(z,Y)}})();var S=[];(function(){for(var B=0;B<25;B++)S[B]=h.create()})();var T=g.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var B=this._state=[],F=0;F<25;F++)B[F]=new h.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(B,F){for(var R=this._state,N=this.blockSize/2,A=0;A<N;A++){var X=B[F+2*A],Z=B[F+2*A+1];X=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360,Z=(Z<<8|Z>>>24)&16711935|(Z<<24|Z>>>8)&4278255360;var z=R[A];z.high^=Z,z.low^=X}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var $=0,te=0,V=0;V<5;V++){var z=R[Q+5*V];$^=z.high,te^=z.low}var K=S[Q];K.high=$,K.low=te}for(var Q=0;Q<5;Q++)for(var fe=S[(Q+4)%5],de=S[(Q+1)%5],ne=de.high,le=de.low,$=fe.high^(ne<<1|le>>>31),te=fe.low^(le<<1|ne>>>31),V=0;V<5;V++){var z=R[Q+5*V];z.high^=$,z.low^=te}for(var _e=1;_e<25;_e++){var $,te,z=R[_e],M=z.high,P=z.low,U=y[_e];U<32?($=M<<U|P>>>32-U,te=P<<U|M>>>32-U):($=P<<U-32|M>>>64-U,te=M<<U-32|P>>>64-U);var j=S[w[_e]];j.high=$,j.low=te}var ee=S[0],ye=R[0];ee.high=ye.high,ee.low=ye.low;for(var Q=0;Q<5;Q++)for(var V=0;V<5;V++){var _e=Q+5*V,z=R[_e],ie=S[_e],he=S[(Q+1)%5+5*V],re=S[(Q+2)%5+5*V];z.high=ie.high^~he.high&re.high,z.low=ie.low^~he.low&re.low}var z=R[0],be=C[Y];z.high^=be.high,z.low^=be.low}},_doFinalize:function(){var B=this._data,F=B.words;this._nDataBytes*8;var R=B.sigBytes*8,N=this.blockSize*32;F[R>>>5]|=1<<24-R%32,F[(r.ceil((R+1)/N)*N>>>5)-1]|=128,B.sigBytes=F.length*4,this._process();for(var A=this._state,X=this.cfg.outputLength/8,Z=X/8,z=[],Y=0;Y<Z;Y++){var Q=A[Y],$=Q.high,te=Q.low;$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,te=(te<<8|te>>>24)&16711935|(te<<24|te>>>8)&4278255360,z.push(te),z.push($)}return new u.init(z,X)},clone:function(){for(var B=f.clone.call(this),F=B._state=this._state.slice(0),R=0;R<25;R++)F[R]=F[R].clone();return B}});i.SHA3=f._createHelper(T),i.HmacSHA3=f._createHmacHelper(T)}(Math),n.SHA3})})(ybe);var bbe={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){/** @preserve 560 (c) 2012 by Cédric Mesnil. All rights reserved. 561 562 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 563 564 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 565 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 566 567 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 568 */return function(r){var i=n,l=i.lib,u=l.WordArray,f=l.Hasher,v=i.algo,h=u.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),g=u.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=u.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),w=u.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),C=u.create([0,1518500249,1859775393,2400959708,2840853838]),S=u.create([1352829926,1548603684,1836072691,2053994217,0]),T=v.RIPEMD160=f.extend({_doReset:function(){this._hash=u.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Z,z){for(var Y=0;Y<16;Y++){var Q=z+Y,$=Z[Q];Z[Q]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}var te=this._hash.words,V=C.words,K=S.words,fe=h.words,de=g.words,ne=y.words,le=w.words,_e,M,P,U,j,ee,ye,ie,he,re;ee=_e=te[0],ye=M=te[1],ie=P=te[2],he=U=te[3],re=j=te[4];for(var be,Y=0;Y<80;Y+=1)be=_e+Z[z+fe[Y]]|0,Y<16?be+=B(M,P,U)+V[0]:Y<32?be+=F(M,P,U)+V[1]:Y<48?be+=R(M,P,U)+V[2]:Y<64?be+=N(M,P,U)+V[3]:be+=A(M,P,U)+V[4],be=be|0,be=X(be,ne[Y]),be=be+j|0,_e=j,j=U,U=X(P,10),P=M,M=be,be=ee+Z[z+de[Y]]|0,Y<16?be+=A(ye,ie,he)+K[0]:Y<32?be+=N(ye,ie,he)+K[1]:Y<48?be+=R(ye,ie,he)+K[2]:Y<64?be+=F(ye,ie,he)+K[3]:be+=B(ye,ie,he)+K[4],be=be|0,be=X(be,le[Y]),be=be+re|0,ee=re,re=he,he=X(ie,10),ie=ye,ye=be;be=te[1]+P+he|0,te[1]=te[2]+U+re|0,te[2]=te[3]+j+ee|0,te[3]=te[4]+_e+ye|0,te[4]=te[0]+M+ie|0,te[0]=be},_doFinalize:function(){var Z=this._data,z=Z.words,Y=this._nDataBytes*8,Q=Z.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,Z.sigBytes=(z.length+1)*4,this._process();for(var $=this._hash,te=$.words,V=0;V<5;V++){var K=te[V];te[V]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return $},clone:function(){var Z=f.clone.call(this);return Z._hash=this._hash.clone(),Z}});function B(Z,z,Y){return Z^z^Y}function F(Z,z,Y){return Z&z|~Z&Y}function R(Z,z,Y){return(Z|~z)^Y}function N(Z,z,Y){return Z&Y|z&~Y}function A(Z,z,Y){return Z^(z|~Y)}function X(Z,z){return Z<<z|Z>>>32-z}i.RIPEMD160=f._createHelper(T),i.HmacRIPEMD160=f._createHmacHelper(T)}(),n.RIPEMD160})})(bbe);var vU={exports:{}};(function(e,t){(function(n,r){e.exports=r(Bs.exports)})(oi,function(n){(function(){var r=n,i=r.lib,l=i.Base,u=r.enc,f=u.Utf8,v=r.algo;v.HMAC=l.extend({init:function(h,g){h=this._hasher=new h.init,typeof g=="string"&&(g=f.parse(g));var y=h.blockSize,w=y*4;g.sigBytes>w&&(g=h.finalize(g)),g.clamp();for(var C=this._oKey=g.clone(),S=this._iKey=g.clone(),T=C.words,B=S.words,F=0;F<y;F++)T[F]^=1549556828,B[F]^=909522486;C.sigBytes=S.sigBytes=w,this.reset()},reset:function(){var h=this._hasher;h.reset(),h.update(this._iKey)},update:function(h){return this._hasher.update(h),this},finalize:function(h){var g=this._hasher,y=g.finalize(h);g.reset();var w=g.finalize(this._oKey.clone().concat(y));return w}})})()})})(vU);var _be={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,dU.exports,vU.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.Base,u=i.WordArray,f=r.algo,v=f.SHA256,h=f.HMAC,g=f.PBKDF2=l.extend({cfg:l.extend({keySize:128/32,hasher:v,iterations:25e4}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,w){for(var C=this.cfg,S=h.create(C.hasher,y),T=u.create(),B=u.create([1]),F=T.words,R=B.words,N=C.keySize,A=C.iterations;F.length<N;){var X=S.update(w).finalize(B);S.reset();for(var Z=X.words,z=Z.length,Y=X,Q=1;Q<A;Q++){Y=S.finalize(Y),S.reset();for(var $=Y.words,te=0;te<z;te++)Z[te]^=$[te]}T.concat(X),R[0]++}return T.sigBytes=N*4,T}});r.PBKDF2=function(y,w,C){return g.create(C).compute(y,w)}}(),n.PBKDF2})})(_be);var L3={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Cre.exports,vU.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.Base,u=i.WordArray,f=r.algo,v=f.MD5,h=f.EvpKDF=l.extend({cfg:l.extend({keySize:128/32,hasher:v,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,y){for(var w,C=this.cfg,S=C.hasher.create(),T=u.create(),B=T.words,F=C.keySize,R=C.iterations;B.length<F;){w&&S.update(w),w=S.update(g).finalize(y),S.reset();for(var N=1;N<R;N++)w=S.finalize(w),S.reset();T.concat(w)}return T.sigBytes=F*4,T}});r.EvpKDF=function(g,y,w){return h.create(w).compute(g,y)}}(),n.EvpKDF})})(L3);var jd={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,L3.exports)})(oi,function(n){n.lib.Cipher||function(r){var i=n,l=i.lib,u=l.Base,f=l.WordArray,v=l.BufferedBlockAlgorithm,h=i.enc;h.Utf8;var g=h.Base64,y=i.algo,w=y.EvpKDF,C=l.Cipher=v.extend({cfg:u.extend(),createEncryptor:function($,te){return this.create(this._ENC_XFORM_MODE,$,te)},createDecryptor:function($,te){return this.create(this._DEC_XFORM_MODE,$,te)},init:function($,te,V){this.cfg=this.cfg.extend(V),this._xformMode=$,this._key=te,this.reset()},reset:function(){v.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){$&&this._append($);var te=this._doFinalize();return te},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(te){return typeof te=="string"?Q:Z}return function(te){return{encrypt:function(V,K,fe){return $(K).encrypt(te,V,K,fe)},decrypt:function(V,K,fe){return $(K).decrypt(te,V,K,fe)}}}}()});l.StreamCipher=C.extend({_doFinalize:function(){var $=this._process(!0);return $},blockSize:1});var S=i.mode={},T=l.BlockCipherMode=u.extend({createEncryptor:function($,te){return this.Encryptor.create($,te)},createDecryptor:function($,te){return this.Decryptor.create($,te)},init:function($,te){this._cipher=$,this._iv=te}}),B=S.CBC=function(){var $=T.extend();$.Encryptor=$.extend({processBlock:function(V,K){var fe=this._cipher,de=fe.blockSize;te.call(this,V,K,de),fe.encryptBlock(V,K),this._prevBlock=V.slice(K,K+de)}}),$.Decryptor=$.extend({processBlock:function(V,K){var fe=this._cipher,de=fe.blockSize,ne=V.slice(K,K+de);fe.decryptBlock(V,K),te.call(this,V,K,de),this._prevBlock=ne}});function te(V,K,fe){var de,ne=this._iv;ne?(de=ne,this._iv=r):de=this._prevBlock;for(var le=0;le<fe;le++)V[K+le]^=de[le]}return $}(),F=i.pad={},R=F.Pkcs7={pad:function($,te){for(var V=te*4,K=V-$.sigBytes%V,fe=K<<24|K<<16|K<<8|K,de=[],ne=0;ne<K;ne+=4)de.push(fe);var le=f.create(de,K);$.concat(le)},unpad:function($){var te=$.words[$.sigBytes-1>>>2]&255;$.sigBytes-=te}};l.BlockCipher=C.extend({cfg:C.cfg.extend({mode:B,padding:R}),reset:function(){var $;C.reset.call(this);var te=this.cfg,V=te.iv,K=te.mode;this._xformMode==this._ENC_XFORM_MODE?$=K.createEncryptor:($=K.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,V&&V.words):(this._mode=$.call(K,this,V&&V.words),this._mode.__creator=$)},_doProcessBlock:function($,te){this._mode.processBlock($,te)},_doFinalize:function(){var $,te=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(te.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),te.unpad($)),$},blockSize:128/32});var N=l.CipherParams=u.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),A=i.format={},X=A.OpenSSL={stringify:function($){var te,V=$.ciphertext,K=$.salt;return K?te=f.create([1398893684,1701076831]).concat(K).concat(V):te=V,te.toString(g)},parse:function($){var te,V=g.parse($),K=V.words;return K[0]==1398893684&&K[1]==1701076831&&(te=f.create(K.slice(2,4)),K.splice(0,4),V.sigBytes-=16),N.create({ciphertext:V,salt:te})}},Z=l.SerializableCipher=u.extend({cfg:u.extend({format:X}),encrypt:function($,te,V,K){K=this.cfg.extend(K);var fe=$.createEncryptor(V,K),de=fe.finalize(te),ne=fe.cfg;return N.create({ciphertext:de,key:V,iv:ne.iv,algorithm:$,mode:ne.mode,padding:ne.padding,blockSize:$.blockSize,formatter:K.format})},decrypt:function($,te,V,K){K=this.cfg.extend(K),te=this._parse(te,K.format);var fe=$.createDecryptor(V,K).finalize(te.ciphertext);return fe},_parse:function($,te){return typeof $=="string"?te.parse($,this):$}}),z=i.kdf={},Y=z.OpenSSL={execute:function($,te,V,K,fe){if(K||(K=f.random(64/8)),fe)var de=w.create({keySize:te+V,hasher:fe}).compute($,K);else var de=w.create({keySize:te+V}).compute($,K);var ne=f.create(de.words.slice(te),V*4);return de.sigBytes=te*4,N.create({key:de,iv:ne,salt:K})}},Q=l.PasswordBasedCipher=Z.extend({cfg:Z.cfg.extend({kdf:Y}),encrypt:function($,te,V,K){K=this.cfg.extend(K);var fe=K.kdf.execute(V,$.keySize,$.ivSize,K.salt,K.hasher);K.iv=fe.iv;var de=Z.encrypt.call(this,$,te,fe.key,K);return de.mixIn(fe),de},decrypt:function($,te,V,K){K=this.cfg.extend(K),te=this._parse(te,K.format);var fe=K.kdf.execute(V,$.keySize,$.ivSize,te.salt,K.hasher);K.iv=fe.iv;var de=Z.decrypt.call(this,$,te,fe.key,K);return de}})}()})})(jd);var wbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(l,u){var f=this._cipher,v=f.blockSize;i.call(this,l,u,v,f),this._prevBlock=l.slice(u,u+v)}}),r.Decryptor=r.extend({processBlock:function(l,u){var f=this._cipher,v=f.blockSize,h=l.slice(u,u+v);i.call(this,l,u,v,f),this._prevBlock=h}});function i(l,u,f,v){var h,g=this._iv;g?(h=g.slice(0),this._iv=void 0):h=this._prevBlock,v.encryptBlock(h,0);for(var y=0;y<f;y++)l[u+y]^=h[y]}return r}(),n.mode.CFB})})(wbe);var Cbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(l,u){var f=this._cipher,v=f.blockSize,h=this._iv,g=this._counter;h&&(g=this._counter=h.slice(0),this._iv=void 0);var y=g.slice(0);f.encryptBlock(y,0),g[v-1]=g[v-1]+1|0;for(var w=0;w<v;w++)l[u+w]^=y[w]}});return r.Decryptor=i,r}(),n.mode.CTR})})(Cbe);var xbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){/** @preserve 569 * Counter block mode compatible with Dr Brian Gladman fileenc.c 570 * derived from CryptoJS.mode.CTR 571 * Jan Hruby [email protected] 572 */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(f){if((f>>24&255)===255){var v=f>>16&255,h=f>>8&255,g=f&255;v===255?(v=0,h===255?(h=0,g===255?g=0:++g):++h):++v,f=0,f+=v<<16,f+=h<<8,f+=g}else f+=1<<24;return f}function l(f){return(f[0]=i(f[0]))===0&&(f[1]=i(f[1])),f}var u=r.Encryptor=r.extend({processBlock:function(f,v){var h=this._cipher,g=h.blockSize,y=this._iv,w=this._counter;y&&(w=this._counter=y.slice(0),this._iv=void 0),l(w);var C=w.slice(0);h.encryptBlock(C,0);for(var S=0;S<g;S++)f[v+S]^=C[S]}});return r.Decryptor=u,r}(),n.mode.CTRGladman})})(xbe);var Ebe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(l,u){var f=this._cipher,v=f.blockSize,h=this._iv,g=this._keystream;h&&(g=this._keystream=h.slice(0),this._iv=void 0),f.encryptBlock(g,0);for(var y=0;y<v;y++)l[u+y]^=g[y]}});return r.Decryptor=i,r}(),n.mode.OFB})})(Ebe);var Sbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,l){this._cipher.encryptBlock(i,l)}}),r.Decryptor=r.extend({processBlock:function(i,l){this._cipher.decryptBlock(i,l)}}),r}(),n.mode.ECB})})(Sbe);var Tbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.pad.AnsiX923={pad:function(r,i){var l=r.sigBytes,u=i*4,f=u-l%u,v=l+f-1;r.clamp(),r.words[v>>>2]|=f<<24-v%4*8,r.sigBytes+=f},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})})(Tbe);var Abe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.pad.Iso10126={pad:function(r,i){var l=i*4,u=l-r.sigBytes%l;r.concat(n.lib.WordArray.random(u-1)).concat(n.lib.WordArray.create([u<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})})(Abe);var kbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(kbe);var Obe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.pad.ZeroPadding={pad:function(r,i){var l=i*4;r.clamp(),r.sigBytes+=l-(r.sigBytes%l||l)},unpad:function(r){for(var i=r.words,l=r.sigBytes-1,l=r.sigBytes-1;l>=0;l--)if(i[l>>>2]>>>24-l%4*8&255){r.sigBytes=l+1;break}}},n.pad.ZeroPadding})})(Obe);var Mbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(Mbe);var Nbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,jd.exports)})(oi,function(n){return function(r){var i=n,l=i.lib,u=l.CipherParams,f=i.enc,v=f.Hex,h=i.format;h.Hex={stringify:function(g){return g.ciphertext.toString(v)},parse:function(g){var y=v.parse(g);return u.create({ciphertext:y})}}}(),n.format.Hex})})(Nbe);var Dbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exports,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.BlockCipher,u=r.algo,f=[],v=[],h=[],g=[],y=[],w=[],C=[],S=[],T=[],B=[];(function(){for(var N=[],A=0;A<256;A++)A<128?N[A]=A<<1:N[A]=A<<1^283;for(var X=0,Z=0,A=0;A<256;A++){var z=Z^Z<<1^Z<<2^Z<<3^Z<<4;z=z>>>8^z&255^99,f[X]=z,v[z]=X;var Y=N[X],Q=N[Y],$=N[Q],te=N[z]*257^z*16843008;h[X]=te<<24|te>>>8,g[X]=te<<16|te>>>16,y[X]=te<<8|te>>>24,w[X]=te;var te=$*16843009^Q*65537^Y*257^X*16843008;C[z]=te<<24|te>>>8,S[z]=te<<16|te>>>16,T[z]=te<<8|te>>>24,B[z]=te,X?(X=Y^N[N[N[$^Y]]],Z^=N[N[Z]]):X=Z=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],R=u.AES=l.extend({_doReset:function(){var N;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var A=this._keyPriorReset=this._key,X=A.words,Z=A.sigBytes/4,z=this._nRounds=Z+6,Y=(z+1)*4,Q=this._keySchedule=[],$=0;$<Y;$++)$<Z?Q[$]=X[$]:(N=Q[$-1],$%Z?Z>6&&$%Z==4&&(N=f[N>>>24]<<24|f[N>>>16&255]<<16|f[N>>>8&255]<<8|f[N&255]):(N=N<<8|N>>>24,N=f[N>>>24]<<24|f[N>>>16&255]<<16|f[N>>>8&255]<<8|f[N&255],N^=F[$/Z|0]<<24),Q[$]=Q[$-Z]^N);for(var te=this._invKeySchedule=[],V=0;V<Y;V++){var $=Y-V;if(V%4)var N=Q[$];else var N=Q[$-4];V<4||$<=4?te[V]=N:te[V]=C[f[N>>>24]]^S[f[N>>>16&255]]^T[f[N>>>8&255]]^B[f[N&255]]}}},encryptBlock:function(N,A){this._doCryptBlock(N,A,this._keySchedule,h,g,y,w,f)},decryptBlock:function(N,A){var X=N[A+1];N[A+1]=N[A+3],N[A+3]=X,this._doCryptBlock(N,A,this._invKeySchedule,C,S,T,B,v);var X=N[A+1];N[A+1]=N[A+3],N[A+3]=X},_doCryptBlock:function(N,A,X,Z,z,Y,Q,$){for(var te=this._nRounds,V=N[A]^X[0],K=N[A+1]^X[1],fe=N[A+2]^X[2],de=N[A+3]^X[3],ne=4,le=1;le<te;le++){var _e=Z[V>>>24]^z[K>>>16&255]^Y[fe>>>8&255]^Q[de&255]^X[ne++],M=Z[K>>>24]^z[fe>>>16&255]^Y[de>>>8&255]^Q[V&255]^X[ne++],P=Z[fe>>>24]^z[de>>>16&255]^Y[V>>>8&255]^Q[K&255]^X[ne++],U=Z[de>>>24]^z[V>>>16&255]^Y[K>>>8&255]^Q[fe&255]^X[ne++];V=_e,K=M,fe=P,de=U}var _e=($[V>>>24]<<24|$[K>>>16&255]<<16|$[fe>>>
5728&255]<<8|$[de&255])^X[ne++],M=($[K>>>24]<<24|$[fe>>>16&255]<<16|$[de>>>8&255]<<8|$[V&255])^X[ne++],P=($[fe>>>24]<<24|$[de>>>16&255]<<16|$[V>>>8&255]<<8|$[K&255])^X[ne++],U=($[de>>>24]<<24|$[V>>>16&255]<<16|$[K>>>8&255]<<8|$[fe&255])^X[ne++];N[A]=_e,N[A+1]=M,N[A+2]=P,N[A+3]=U},keySize:256/32});r.AES=l._createHelper(R)}(),n.AES})})(Dbe);var Ibe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exports,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.WordArray,u=i.BlockCipher,f=r.algo,v=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y
vendor: 7,629 bytes, line 572
572=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 7,817 bytes, line 572
572w=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=f.DES=u.extend({_doReset:function(){for(var F=this._key,R=F.words,N=[],A=0;A<56;A++){var X=v[A]-1;N[A]=R[X>>>5]>>>31-X%32&1}for(var Z=this._subKeys=[],z=0;z<16;z++){for(var Y=Z[z]=[],Q=g[z],A=0;A<24;A++)Y[A/6|0]|=N[(h[A]-1+Q)%28]<<31-A%6,Y[4+(A/6|0)]|=N[28+(h[A+24]-1+Q)%28]<<31-A%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var A=1;A<7;A++)Y[A]=Y[A]>>>(A-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var $=this._invSubKeys=[],A=0;A<16;A++)$[A]=Z[15-A]},encryptBlock:function(F,R){this._doCryptBlock(F,R,this._subKeys)},decryptBlock:function(F,R){this._doCryptBlock(F,R,this._invSubKeys)},_doCryptBlock:function(F,R,N){this._lBlock=F[R],this._rBlock=F[R+1],S.call(this,4,252645135),S.call(this,16,65535),T.call(this,2,858993459),T.call(this,8,16711935),S.call(this,1,1431655765);for(var A=0;A<16;A++){for(var X=N[A],Z=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=y[Q][((z^X[Q])&w[Q])>>>0];this._lBlock=z,this._rBlock=Z^Y}var $=this._lBlock;this._lBlock=this._rBlock,this._rBlock=$,S.call(this,1,1431655765),T.call(this,8,16711935),T.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),F[R]=this._lBlock,F[R+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(F,R){var N=(this._lBlock>>>F^this._rBlock)&R;this._rBlock^=N,this._lBlock^=N<<F}function T(F,R){var N=(this._rBlock>>>F^this._lBlock)&R;this._lBlock^=N,this._rBlock^=N<<F}r.DES=u._createHelper(C);var B=f.TripleDES=u.extend({_doReset:function(){var F=this._key,R=F.words;if(R.length!==2&&R.length!==4&&R.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var N=R.slice(0,2),A=R.length<4?R.slice(0,2):R.slice(2,4),X=R.length<6?R.slice(0,2):R.slice(4,6);this._des1=C.createEncryptor(l.create(N)),this._des2=C.createEncryptor(l.create(A)),this._des3=C.createEncryptor(l.create(X))},encryptBlock:function(F,R){this._des1.encryptBlock(F,R),this._des2.decryptBlock(F,R),this._des3.encryptBlock(F,R)},decryptBlock:function(F,R){this._des3.decryptBlock(F,R),this._des2.encryptBlock(F,R),this._des1.decryptBlock(F,R)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=u._createHelper(B)}(),n.TripleDES})})(Ibe);var Rbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exports,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.StreamCipher,u=r.algo,f=u.RC4=l.extend({_doReset:function(){for(var g=this._key,y=g.words,w=g.sigBytes,C=this._S=[],S=0;S<256;S++)C[S]=S;for(var S=0,T=0;S<256;S++){var B=S%w,F=y[B>>>2]>>>24-B%4*8&255;T=(T+C[S]+F)%256;var R=C[S];C[S]=C[T],C[T]=R}this._i=this._j=0},_doProcessBlock:function(g,y){g[y]^=v.call(this)},keySize:256/32,ivSize:0});function v(){for(var g=this._S,y=this._i,w=this._j,C=0,S=0;S<4;S++){y=(y+1)%256,w=(w+g[y])%256;var T=g[y];g[y]=g[w],g[w]=T,C|=g[(g[y]+g[w])%256]<<24-S*8}return this._i=y,this._j=w,C}r.RC4=l._createHelper(f);var h=u.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)v.call(this)}});r.RC4Drop=l._createHelper(h)}(),n.RC4})})(Rbe);var Lbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exports,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.StreamCipher,u=r.algo,f=[],v=[],h=[],g=u.Rabbit=l.extend({_doReset:function(){for(var w=this._key.words,C=this.cfg.iv,S=0;S<4;S++)w[S]=(w[S]<<8|w[S]>>>24)&16711935|(w[S]<<24|w[S]>>>8)&4278255360;var T=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],B=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)B[S]^=T[S+4&7];if(C){var F=C.words,R=F[0],N=F[1],A=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,X=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,Z=A>>>16|X&4294901760,z=X<<16|A&65535;B[0]^=A,B[1]^=Z,B[2]^=X,B[3]^=z,B[4]^=A,B[5]^=Z,B[6]^=X,B[7]^=z;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(w,C){var S=this._X;y.call(this),f[0]=S[0]^S[5]>>>16^S[3]<<16,f[1]=S[2]^S[7]>>>16^S[5]<<16,f[2]=S[4]^S[1]>>>16^S[7]<<16,f[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)f[T]=(f[T]<<8|f[T]>>>24)&16711935|(f[T]<<24|f[T]>>>8)&4278255360,w[C+T]^=f[T]},blockSize:128/32,ivSize:64/32});function y(){for(var w=this._X,C=this._C,S=0;S<8;S++)v[S]=C[S];C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<v[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<v[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<v[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<v[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<v[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<v[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<v[6]>>>0?1:0)|0,this._b=C[7]>>>0<v[7]>>>0?1:0;for(var S=0;S<8;S++){var T=w[S]+C[S],B=T&65535,F=T>>>16,R=((B*B>>>17)+B*F>>>15)+F*F,N=((T&4294901760)*T|0)+((T&65535)*T|0);h[S]=R^N}w[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,w[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,w[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,w[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,w[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,w[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,w[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,w[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}r.Rabbit=l._createHelper(g)}(),n.Rabbit})})(Lbe);var Bbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exports,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.StreamCipher,u=r.algo,f=[],v=[],h=[],g=u.RabbitLegacy=l.extend({_doReset:function(){var w=this._key.words,C=this.cfg.iv,S=this._X=[w[0],w[3]<<16|w[2]>>>16,w[1],w[0]<<16|w[3]>>>16,w[2],w[1]<<16|w[0]>>>16,w[3],w[2]<<16|w[1]>>>16],T=this._C=[w[2]<<16|w[2]>>>16,w[0]&4294901760|w[1]&65535,w[3]<<16|w[3]>>>16,w[1]&4294901760|w[2]&65535,w[0]<<16|w[0]>>>16,w[2]&4294901760|w[3]&65535,w[1]<<16|w[1]>>>16,w[3]&4294901760|w[0]&65535];this._b=0;for(var B=0;B<4;B++)y.call(this);for(var B=0;B<8;B++)T[B]^=S[B+4&7];if(C){var F=C.words,R=F[0],N=F[1],A=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,X=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,Z=A>>>16|X&4294901760,z=X<<16|A&65535;T[0]^=A,T[1]^=Z,T[2]^=X,T[3]^=z,T[4]^=A,T[5]^=Z,T[6]^=X,T[7]^=z;for(var B=0;B<4;B++)y.call(this)}},_doProcessBlock:function(w,C){var S=this._X;y.call(this),f[0]=S[0]^S[5]>>>16^S[3]<<16,f[1]=S[2]^S[7]>>>16^S[5]<<16,f[2]=S[4]^S[1]>>>16^S[7]<<16,f[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)f[T]=(f[T]<<8|f[T]>>>24)&16711935|(f[T]<<24|f[T]>>>8)&4278255360,w[C+T]^=f[T]},blockSize:128/32,ivSize:64/32});function y(){for(var w=this._X,C=this._C,S=0;S<8;S++)v[S]=C[S];C[0]=C[0]+1295307597+this._b|0,C[1]=C[1]+3545052371+(C[0]>>>0<v[0]>>>0?1:0)|0,C[2]=C[2]+886263092+(C[1]>>>0<v[1]>>>0?1:0)|0,C[3]=C[3]+1295307597+(C[2]>>>0<v[2]>>>0?1:0)|0,C[4]=C[4]+3545052371+(C[3]>>>0<v[3]>>>0?1:0)|0,C[5]=C[5]+886263092+(C[4]>>>0<v[4]>>>0?1:0)|0,C[6]=C[6]+1295307597+(C[5]>>>0<v[5]>>>0?1:0)|0,C[7]=C[7]+3545052371+(C[6]>>>0<v[6]>>>0?1:0)|0,this._b=C[7]>>>0<v[7]>>>0?1:0;for(var S=0;S<8;S++){var T=w[S]+C[S],B=T&65535,F=T>>>16,R=((B*B>>>17)+B*F>>>15)+F*F,N=((T&4294901760)*T|0)+((T&65535)*T|0);h[S]=R^N}w[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,w[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,w[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,w[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,w[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,w[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,w[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,w[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}r.RabbitLegacy=l._createHelper(g)}(),n.RabbitLegacy})})(Bbe);var Pbe={exports:{}};(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,Q8.exports,J8.exports,L3.exp
572orts,jd.exports)})(oi,function(n){return function(){var r=n,i=r.lib,l=i.BlockCipher,u=r.algo;const f=16,v=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],h
vendor: 11,038 bytes, line 572
572=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var
vendor: 1,480 bytes, line 572
572g={pbox:[],sbox:[]};function y(B,F){let R=F>>24&255,N=F>>16&255,A=F>>8&255,X=F&255,Z=B.sbox[0][R]+B.sbox[1][N];return Z=Z^B.sbox[2][A],Z=Z+B.sbox[3][X],Z}function w(B,F,R){let N=F,A=R,X;for(let Z=0;Z<f;++Z)N=N^B.pbox[Z],A=y(B,N)^A,X=N,N=A,A=X;return X=N,N=A,A=X,A=A^B.pbox[f],N=N^B.pbox[f+1],{left:N,right:A}}function C(B,F,R){let N=F,A=R,X;for(let Z=f+1;Z>1;--Z)N=N^B.pbox[Z],A=y(B,N)^A,X=N,N=A,A=X;return X=N,N=A,A=X,A=A^B.pbox[1],N=N^B.pbox[0],{left:N,right:A}}function S(B,F,R){for(let z=0;z<4;z++){B.sbox[z]=[];for(let Y=0;Y<256;Y++)B.sbox[z][Y]=h[z][Y]}let N=0;for(let z=0;z<f+2;z++)B.pbox[z]=v[z]^F[N],N++,N>=R&&(N=0);let A=0,X=0,Z=0;for(let z=0;z<f+2;z+=2)Z=w(B,A,X),A=Z.left,X=Z.right,B.pbox[z]=A,B.pbox[z+1]=X;for(let z=0;z<4;z++)for(let Y=0;Y<256;Y+=2)Z=w(B,A,X),A=Z.left,X=Z.right,B.sbox[z][Y]=A,B.sbox[z][Y+1]=X;return!0}var T=u.Blowfish=l.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var B=this._keyPriorReset=this._key,F=B.words,R=B.sigBytes/4;S(g,F,R)}},encryptBlock:function(B,F){var R=w(g,B[F],B[F+1]);B[F]=R.left,B[F+1]=R.right},decryptBlock:function(B,F){var R=C(g,B[F],B[F+1]);B[F]=R.left,B[F+1]=R.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=l._createHelper(T)}(),n.Blowfish})})(Pbe);(function(e,t){(function(n,r,i){e.exports=r(Bs.exports,wR.exports,vbe.exports,hbe.exports,Q8.exports,pbe.exports,J8.exports,Cre.exports,dU.exports,mbe.exports,xre.exports,gbe.exports,ybe.exports,bbe.exports,vU.exports,_be.exports,L3.exp
572orts,jd.exports,wbe.exports,Cbe.exports,xbe.exports,Ebe.exports,Sbe.exports,Tbe.exports,Abe.exports,kbe.exports,Obe.exports,Mbe.exports,Nbe.exports,Dbe.exports,Ibe.exports,Rbe.exports,Lbe.exports,Bbe.exports,Pbe.exports)})(oi,function(n){return n})})(dbe);var ND=dbe.exports;function ZH(e,t="XwKsGlMcdPMEhR1B"){var n=ND.enc.Utf8.parse(t),r=ND.enc.Utf8.parse(e),i=ND.AES.encrypt(r,n,{mode:ND.mode.ECB,padding:ND.pad.Pkcs7});return i.toString()}function Fbe(e){var t,n,r,i,l=e.$el.parentNode.offsetWidth||window.offsetWidth,u=e.$el.parentNode.offsetHeight||window.offsetHeight;return e.imgSize.width.indexOf("%")!=-1?t=parseInt(e.imgSize.width)/100*l+"px":t=e.imgSize.width,e.imgSize.height.indexOf("%")!=-1?n=parseInt(e.imgSize.height)/100*u+"px":n=e.imgSize.height,e.barSize.width.indexOf("%")!=-1?r=parseInt(e.barSize.width)/100*l+"px":r=e.barSize.width,e.barSize.height.indexOf("%")!=-1?i=parseInt(e.barSize.height)/100*u+"px":i=e.barSize.height,{imgWidth:t,imgHeight:n,barWidth:r,barHeight:i}}pte.defaults.baseURL="";const hU=pte.create({timeout:4e4,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8"}});hU.interceptors.request.use(e=>e,e=>{Promise.reject(e)});hU.interceptors.response.use(e=>e.data,e=>{});function $be(e){return hU({url:"/captcha/get",method:"post",data:e})}function zbe(e){return hU({url:"/captcha/check",method:"post",data:e})}const _Gt={name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"\u5411\u53F3\u6ED1\u52A8\u5B8C\u6210\u9A8C\u8BC1"},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(e,t){const{mode:n,captchaType:r,vSpace:i,imgSize:l,barSize:u,type:f,blockSize:v,explain:h}=Dc(e),{proxy:g}=va();let y=et(""),w=et(""),C=et(""),S=et(""),T=et(""),B=et(""),F=et(""),R=et(""),N=et(""),A=et(""),X=et(""),Z=gi({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),z=et(0),Y=et(0),Q=et(void 0),$=et(void 0),te=et(void 0),V=et("#ddd"),K=et(void 0),fe=et("icon-right"),de=et(!1),ne=et(!1),le=et(!0),_e=et(""),M=et(""),P=et(0);const U=Ne(()=>g.$el.querySelector(".verify-bar-area"));function j(){A.value=h.value,re(),Gr(()=>{let{imgHeight:be,imgWidth:Ae,barHeight:Te,barWidth:Ue}=Fbe(g);Z.imgHeight=be,Z.imgWidth=Ae,Z.barHeight=Te,Z.barWidth=Ue,g.$parent.$emit("ready",g)}),window.removeEventListener("touchmove",function(be){ye(be)}),window.removeEventListener("mousemove",function(be){ye(be)}),window.removeEventListener("touchend",function(){ie()}),window.removeEventListener("mouseup",function(){ie()}),window.addEventListener("touchmove",function(be){ye(be)}),window.addEventListener("mousemove",function(be){ye(be)}),window.addEventListener("touchend",function(){ie()}),window.addEventListener("mouseup",function(){ie()})}$n(f,()=>{j()}),ia(()=>{j(),g.$el.onselectstart=function(){return!1}});function ee(be){if(be=be||window.event,be.touches)var Ae=be.touches[0].pageX;else var Ae=be.clientX;console.log(U),P.value=Math.floor(Ae-U.value.getBoundingClientRect().left),B.value=+new Date,ne.value==!1&&(A.value="",te.value="#337ab7",V.value="#337AB7",K.value="#fff",be.stopPropagation(),de.value=!0)}function ye(be){if(be=be||window.event,de.value&&ne.value==!1){if(be.touches)var Ae=be.touches[0].pageX;else var Ae=be.clientX;var Te=U.value.getBoundingClientRect().left,Ue=Ae-Te;Ue>=U.value.offsetWidth-parseInt(parseInt(v.value.width)/2)-2&&(Ue=U.value.offsetWidth-parseInt(parseInt(v.value.width)/2)-2),Ue<=0&&(Ue=parseInt(parseInt(v.value.width)/2)),Q.value=Ue-P.value+"px",$.value=Ue-P.value+"px"}}function ie(){if(F.value=+new Date,de.value&&ne.value==!1){var be=parseInt((Q.value||"").replace("px",""));be=be*310/parseInt(Z.imgWidth);let Ae={captchaType:r.value,pointJson:y.value?ZH(JSON.stringify({x:be,y:5}),y.value):JSON.stringify({x:be,y:5}),token:T.value};zbe(Ae).then(Te=>{if(Te.repCode=="0000"){te.value="#5cb85c",V.value="#5cb85c",K.value="#fff",fe.value="icon-check",le.value=!1,ne.value=!0,n.value=="pop"&&setTimeout(()=>{g.$parent.clickShow=!1,he()},1500),w.value=!0,N.value=`${((F.value-B.value)/1e3).toFixed(2)}s\u9A8C\u8BC1\u6210\u529F`;var Ue=y.value?ZH(T.value+"---"+JSON.stringify({x:be,y:5}),y.value):T.value+"---"+JSON.stringify({x:be,y:5});setTimeout(()=>{N.value="",g.$parent.closeBox(),g.$parent.$emit("success",{captchaVerification:Ue})},1e3)}else te.value="#d9534f",V.value="#d9534f",K.value="#fff",fe.value="icon-close",w.value=!1,setTimeout(function(){he()},1e3),g.$parent.$emit("error",g),N.value="\u9A8C\u8BC1\u5931\u8D25",setTimeout(()=>{N.value=""},1e3)}),de.value=!1}}const he=()=>{le.value=!0,X.value="",_e.value="left .3s",Q.value=0,$.value=void 0,M.value="width .3s",V.value="#ddd",te.value="#fff",K.value="#000",fe.value="icon-right",ne.value=!1,re(),setTimeout(()=>{M.value="",_e.value="",A.value=h.value},300)};function re(){let be={captchaType:r.value};$be(be).then(Ae=>{Ae.repCode=="0000"?(C.value=Ae.repData.originalImageBase64,S.value=Ae.repData.jigsawImageBase64,T.value=Ae.repData.token,y.value=Ae.repData.secretKey):N.value=Ae.repMsg})}return{secretKey:y,passFlag:w,backImgBase:C,blockBackImgBase:S,backToken:T,startMoveTime:B,endMovetime:F,tipsBackColor:R,tipWords:N,text:A,finishText:X,setSize:Z,top:z,left:Y,moveBlockLeft:Q,leftBarWidth:$,moveBlockBackgroun
572dColor:te,leftBarBorderColor:V,iconColor:K,iconClass:fe,status:de,isEnd:ne,showRefresh:le,transitionLeft:_e,transitionWidth:M,barArea:U,refresh:he,start:ee}}},wGt={style:{position:"relative"}},CGt=["src"],xGt=ce("i",{class:"iconfont icon-refresh"},null,-1),EGt=[xGt],SGt=["textContent"],TGt=["textContent"],AGt=["src"];function kGt(e,t,n,r,i,l){return Ce(),Ie("div",wGt,[n.type==="2"?(Ce(),Ie("div",{key:0,class:"verify-img-out",style:Pr({height:parseInt(r.setSize.imgHeight)+n.vSpace+"px"})},[ce("div",{class:"verify-img-panel",style:Pr({width:r.setSize.imgWidth,height:r.setSize.imgHeight})},[ce("img",{src:"data:image/png;base64,"+r.backImgBase,alt:"",style:{width:"100%",height:"100%",display:"block"}},null,8,CGt),ea(ce("div",{class:"verify-refresh",onClick:t[0]||(t[0]=(...u)=>r.refresh&&r.refresh(...u))},EGt,512),[[Ti,r.showRefresh]]),gt(Ic,{name:"tips"},{default:Dt(()=>[r.tipWords?(Ce(),Ie("span",{key:0,class:He(["verify-tips",r.passFlag?"suc-bg":"err-bg"])},Zn(r.tipWords),3)):on("",!0)]),_:1})],4)],4)):on("",!0),ce("div",{class:"verify-bar-area",style:Pr({width:r.setSize.imgWidth,height:n.barSize.height,"line-height":n.barSize.height})},[ce("span",{class:"verify-msg",textContent:Zn(r.text)},null,8,SGt),ce("div",{class:"verify-left-bar",style:Pr({width:r.leftBarWidth!==void 0?r.leftBarWidth:n.barSize.height,height:n.barSize.height,"border-color":r.leftBarBorderColor,transaction:r.transitionWidth})},[ce("span",{class:"verify-msg",textContent:Zn(r.finishText)},null,8,TGt),ce("div",{class:"verify-move-block",onTouchstart:t[1]||(t[1]=(...u)=>r.start&&r.start(...u)),onMousedown:t[2]||(t[2]=(...u)=>r.start&&r.start(...u)),style:Pr({width:n.barSize.height,height:n.barSize.height,"background-color":r.moveBlockBackgroundColor,left:r.moveBlockLeft,transition:r.transitionLeft})},[ce("i",{class:He(["verify-icon iconfont",r.iconClass]),style:Pr({color:r.iconColor})},null,6),n.type==="2"?(Ce(),Ie("div",{key:0,class:"verify-sub-block",style:Pr({width:Math.floor(parseInt(r.setSize.imgWidth)*47/310)+"px",height:r.setSize.imgHeight,top:"-"+(parseInt(r.setSize.imgHeight)+n.vSpace)+"px","background-size":r.setSize.imgWidth+" "+r.setSize.imgHeight})},[ce("img",{src:"data:image/png;base64,"+r.blockBackImgBase,alt:"",style:{width:"100%",height:"100%",display:"block","-webkit-user-drag":"none"}},null,8,AGt)],4)):on("",!0)],36)],4)],4)])}var OGt=tv(_Gt,[["render",kGt]]);const MGt={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default(){return{width:"310px",height:"40px"}}}},setup(e,t){const{mode:n,captchaType:r,vSpace:i,imgSize:l,barSize:u}=Dc(e),{proxy:f}=va();let v=et(""),h=et(3),g=gi([]),y=gi([]),w=et(1),C=et(""),S=gi([]),T=et(""),B=gi({imgHeight:0,imgWidth:0,barHeight:0,barWidth:0}),F=gi([]),R=et(""),N=et(void 0),A=et(void 0),X=et(!0),Z=et(!0);const z=()=>{g.splice(0,g.length),y.splice(0,y.length),w.value=1,K(),Gr(()=>{let{imgHeight:de,imgWidth:ne,barHeight:le,barWidth:_e}=Fbe(f);B.imgHeight=de,B.imgWidth=ne,B.barHeight=le,B.barWidth=_e,f.$parent.$emit("ready",f)})};ia(()=>{z(),f.$el.onselectstart=function(){return!1}});const Y=et(null),Q=de=>{if(y.push($(Y,de)),w.value==h.value){w.value=te($(Y,de));let ne=fe(y,B);y.length=0,y.push(...ne),setTimeout(()=>{var le=v.value?ZH(T.value+"---"+JSON.stringify(y),v.value):T.value+"---"+JSON.stringify(y);let _e={captchaType:r.value,pointJson:v.value?ZH(JSON.stringify(y),v.value):JSON.stringify(y),token:T.value};zbe(_e).then(M=>{M.repCode=="0000"?(N.value="#4cae4c",A.value="#5cb85c",R.value="\u9A8C\u8BC1\u6210\u529F",Z.value=!1,n.value=="pop"&&setTimeout(()=>{f.$parent.clickShow=!1,V()},1500),f.$parent.$emit("success",{captchaVerification:le})):(f.$parent.$emit("error",f),N.value="#d9534f",A.value="#d9534f",R.value="\u9A8C\u8BC1\u5931\u8D25",setTimeout(()=>{V()},700))})},400)}w.value<h.value&&(w.value=te($(Y,de)))},$=function(de,ne){var le=ne.offsetX,_e=ne.offsetY;return{x:le,y:_e}},te=function(de){return F.push(Object.assign({},de)),w.value+1},V=function(){F.splice(0,F.length),N.value="#000",A.value="#ddd",Z.value=!0,g.splice(0,g.length),y.splice(0,y.length),w.value=1,K(),R.value="\u9A8C\u8BC1\u5931\u8D25",X.value=!0};function K(){let de={captchaType:r.value};$be(de).then(ne=>{ne.repCode=="0000"?(C.value=ne.repData.originalImageBase64,T.value=ne.repData.token,v.value=ne.repData.secretKey,S.value=ne.repData.wordList,R.value="\u8BF7\u4F9D\u6B21\u70B9\u51FB\u3010"+S.value.join(",")+"\u3011"):R.value=ne.repMsg})}const fe=function(de,ne){var le=de.map(_e=>{let M=Math.round(310*_e.x/parseInt(ne.imgWidth)),P=Math.round(155*_e.y/parseInt(ne.imgHeight));return{x:M,y:P}});return le};return{secretKey:v,checkNum:h,fontPos:g,checkPosArr:y,num:w,pointBackImgBase:C,poinTextList:S,backToken:T,setSize:B,tempPoints:F,text:R,barAreaColor:N,barAreaBorderColor:A,showRefresh:X,bindingClick:Z,init:z,canvas:Y,canvasClick:Q,getMousePos:$,createPoint:te,refresh:V,getPictrue:K,pointTransfrom:fe}}},NGt={style:{position:"relative"}}
572,DGt={class:"verify-img-out"},IGt=ce("i",{class:"iconfont icon-refresh"},null,-1),RGt=[IGt],LGt=["src"],BGt={class:"verify-msg"};function PGt(e,t,n,r,i,l){return Ce(),Ie("div",NGt,[ce("div",DGt,[ce("div",{class:"verify-img-panel",style:Pr({width:r.setSize.imgWidth,height:r.setSize.imgHeight,"background-size":r.setSize.imgWidth+" "+r.setSize.imgHeight,"margin-bottom":n.vSpace+"px"})},[ea(ce("div",{class:"verify-refresh",style:{"z-index":"3"},onClick:t[0]||(t[0]=(...u)=>r.refresh&&r.refresh(...u))},RGt,512),[[Ti,r.showRefresh]]),ce("img",{src:"data:image/png;base64,"+r.pointBackImgBase,ref:"canvas",alt:"",style:{width:"100%",height:"100%",display:"block"},onClick:t[1]||(t[1]=u=>r.bindingClick?r.canvasClick(u):void 0)},null,8,LGt),(Ce(!0),Ie(Ur,null,La(r.tempPoints,(u,f)=>(Ce(),Ie("div",{key:f,class:"point-area",style:Pr({"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"20px",height:"20px","text-align":"center","line-height":"20px","border-radius":"50%",position:"absolute",top:parseInt(u.y-10)+"px",left:parseInt(u.x-10)+"px"})},Zn(f+1),5))),128))],4)]),ce("div",{class:"verify-bar-area",style:Pr({width:r.setSize.imgWidth,color:this.barAreaColor,"border-color":this.barAreaBorderColor,"line-height":this.barSize.height})},[ce("span",BGt,Zn(r.text),1)],4)])}var FGt=tv(MGt,[["render",PGt]]);const $Gt={name:"Vue2Verify",components:{VerifySlide:OGt,VerifyPoints:FGt},props:{captchaType:{type:String,required:!0},figure:{type:Number},arith:{type:Number},mode:{type:String,default:"pop"},vSpace:{type:Number},explain:{type:String},imgSize:{type:Object,default(){return{width:"310px",height:"155px"}}},blockSize:{type:Object},barSize:{type:Object}},setup(e){const{captchaType:t,figure:n,arith:r,mode:i,vSpace:l,explain:u,imgSize:f,blockSize:v,barSize:h}=Dc(e),g=et(!1),y=et(void 0),w=et(void 0),C=et({}),S=Ne(()=>i.value=="pop"?g.value:!0),T=()=>{console.log(C.value),C.value.refresh&&C.value.refresh()},B=()=>{g.value=!1,T()},F=()=>{i.value=="pop"&&(g.value=!0)};return h0(()=>{switch(t.value){case"blockPuzzle":y.value="2",w.value="VerifySlide";break;case"clickWord":y.value="",w.value="VerifyPoints";break}}),{clickShow:g,verifyType:y,componentType:w,instance:C,showBox:S,closeBox:B,show:F}}},zGt={key:0,class:"verifybox-top"},HGt=lo(" \u8BF7\u5B8C\u6210\u5B89\u5168\u9A8C\u8BC1 "),VGt=ce("i",{class:"iconfont icon-close"},null,-1),UGt=[VGt];function jGt(e,t,n,r,i,l){return ea((Ce(),Ie("div",{class:He(n.mode=="pop"?"mask":"")},[ce("div",{class:He(n.mode=="pop"?"verifybox":""),style:Pr({"max-width":parseInt(n.imgSize.width)+30+"px"})},[n.mode=="pop"?(Ce(),Ie("div",zGt,[HGt,ce("span",{class:"verifybox-close",onClick:t[0]||(t[0]=(...u)=>r.closeBox&&r.closeBox(...u))},UGt)])):on("",!0),ce("div",{class:"verifybox-bottom",style:Pr({padding:n.mode=="pop"?"15px":"0"})},[r.componentType?(Ce(),yn(Fa(r.componentType),{key:0,captchaType:n.captchaType,type:r.verifyType,figure:n.figure,arith:n.arith,mode:n.mode,vSpace:n.vSpace,explain:n.explain,imgSize:n.imgSize,blockSize:n.blockSize,barSize:n.barSize,ref:"instance"},null,8,["captchaType","type","figure","arith","mode","vSpace","explain","imgSize","blockSize","barSize"])):on("",!0)],4)],6)],2)),[[Ti,r.showBox]])}var WGt=tv($Gt,[["render",jGt]]),GGt={loadingInstance:null,helper(e,t,n){JTe.post(e,t,{headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",token:Tz.getters.token}}).then(r=>{this.globalPrompt(r.data,n)}).catch(r=>{wA.error("\u7CFB\u7EDF\u7E41\u5FD9\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),console.log(r)})},prompt(e,t,n){this.loadingInstance=Vge.service(),this.helper(e,t,r=>{n||(n={}),n[1]||(n[1]=()=>{wA.success(r.msg)}),n[r.code]?n[r.code](r):wA.error(r.msg)})},loadData(e,t,n,r){this.helper(e,t,i=>{switch(i.code){case 0:n&&n(r?i:i.data);break;default:wA.error(i.msg);break}})},loadListData(e,t,n,r,i){let l=this;if(r?(n.loadover=!1,n.loading=!1,n.data=[],n.pageIndex=1):n.pageIndex=n.pageIndex+1,!n.loading){n.loading=!0,t.pageIndex=n.pageIndex,t.pageSize||(t.pageSize=30);let u=n.data;l.helper(e,t,f=>{f.totalRecord>t.pageIndex*t.pageSize?n.loading=!1:n.loadover=!0,n.data=u.concat(f.data),i&&i()},()=>{n.loading=!1,r||(n.pageIndex=n.pageIndex-1),uni.showModal({title:"\u7CFB\u7EDF\u63D0\u793A",content:"\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",showCancel:!1,success(f){l.loadListData(e,t,n,r,i)}})})}},globalPrompt(e,t){switch(this.loadingInstance!=null&&(this.loadingInstance.close(),this.loadingInstance=null),e.code){case-11:Tz.commit("token",""),Tz.commit("showLogin",!0);break;case-9999:location.href=e.redirectUrl;break;default:t&&t(e);break}}},KGt={verify:{minSize:["{name}\u6700\u5C11 {0} \u4E2A\u5B57\u7B26"],maxSize:["{name}\u6700\u591A {0} \u4E2A\u5B57\u7B26"],min:["{name}\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"],max:["{name}\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E {0}"],idcard:["\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],required:["[\\S]+","{name}\u4E0D\u80FD\u4E3A\u7A7A"],telephone:["^(0[0-9]{2,3}-)?([2-9][0-9]{6,7})+(-[0-9]{1,4})?$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name},\u5982:010-29292929"],mobilephone:["^[1][0-9]{10}$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],muchTel:["^(0[0-9]{2,3}-)?([2-9][0-9]{6,7})+(-[0-9]{1,4})?|[1][0-9]{10}$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],email:["^[a-zA-Z0-9_.-]+@([a-zA-Z0-9-]+.)+[a-zA-Z0-9]{2,4}$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],date:["^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name},\u5982:2008-08-08"],datetime:["^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\\s+([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name},\u5982:2008-08-08 08:08:08"],ip:["^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],chinese:["^[\u4E00-\u9FA5]+$","{name}\u8BF7\u8F93\u5165\u4E2D\u6587"],url:["^http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],urlNoHttp:["^([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],zipcode:["^[1-9]\\d{5}$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],qq:["^[1-9]\\d{4,10}$","\u8BF7\u8F93\u5165\u6709\u6548\u7684{name}"],onlyNumber:["^[-]?[0-9]+$","{name}\u8BF7\u8F93\u5165\u6570\u5B57"],onlyNumberWide:["^[-]?\\d+(\\.\\d{1,4})?$","{name}\u8BF7\u8F93\u5165\u6574\u6570\u6216\u5C0F\u6570"],onlyDecimal:["^[-]?\\d+(\\.\\d{1,2})$","{name}\u8BF7\u8F93\u51652\u4F4D\u4EE5\u5185\u7684\u5C0F\u6570"],illegalLetter:["^[^`{}[!(+~@#%^&*)|\\\\:;''><?/=_]+$","{name}\u542B\u6709\u975E\u6CD5\u5B57\u7B26,\u8BF7\u68C0\u67E5"],onlyLetter:["^[a-zA-Z]+$","{name}\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD"],noSpecialCaracters:["^[0-9a-zA-Z]+$","{name}\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD\u6216\u6570\u5B57"],password:["^(?![A-Za-z]+$)(?![a-z\\W]+$)(?![A-Z\\W]+$)(?![0-9\\W]+$)[a-zA-Z0-9\\W]{8,16}$","{name}\u683C\u5F0F\u9519\u8BEF\uFF0C8-16\u4E2A\u5B57\u7B26\uFF0C\u9700\u5305\u542B\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u7279\u6B8A\u7B26\u53F7\u4E2D\u7684\u4EFB\u610F\u4E24\u9879"]}
572,rule(e,t,n,r){var i=[];if(!n)return i;var l=n.split(",");return l.forEach(u=>{u=="required"&&!r?i.push({required:!0,message:e+"\u5FC5\u586B",trigger:t}):i.push({validator:(f,v,h)=>{if(u!=""){if(v==null&&(v=""),r&&u=="required"){var g=this.verify[u];if(!new RegExp(g[0]).test(v)){h(new Error(g[1].replace("{name}",e)));return}}else if(v!="")if(u.indexOf("[")==-1){var g=this.verify[u];switch(u){case"idcard":if(this.checkIdCard(v)){h(new Error(g[0].replace("{name}",e)));return}break;default:if(!new RegExp(g[0]).test(v)){h(new Error(g[1].replace("{name}",e)));return}break}}else{var y=u.substr(0,u.indexOf("[")),w=u.indexOf("[")+1,C=u.substr(w,u.length-w-1);switch(y){case"minSize":if(v.length<parseInt(C)){h(new Error(this.verify[y][0].replace("{name}",e).replace("{0}",C)));return}break;case"maxSize":if(v.length>parseInt(C)){h(new Error(this.verify[y][0].replace("{name}",e).replace("{0}",C)));return}break;case"min":if(parseFloat(v)<parseFloat(C)){h(new Error(this.verify[y][0].replace("{name}",e).replace("{0}",C)));return}break;case"max":if(parseFloat(v)>parseFloat(C)){h(new Error(this.verify[y][0].replace("{name}",e).replace("{0}",C)));return}break;case"func":arguments[parseInt(C)+3](f,v,h);return}}}h()},trigger:t})}),i},validate(e,t,n,r){for(var i=!0,l=this.rule(t,null,n,!0),u=0;u<l.length&&(l[u].validator(null,r,f=>{f&&(e.$message.error(f.message),i=!1)}),!!i);u++);return i},checkIdCard(e){if(e=="")return!1;var t=e.toUpperCase();if(!/(^\d{15}$)|(^\d{17}([0-9]|X)$)/.test(t))return!0;var n,r;if(n=t.length,n==15){r=new RegExp(/^(\d{6})(\d{2})(\d{2})(\d{2})(\d{3})$/);var i=t.match(r),l=new Date("19"+i[2]+"/"+i[3]+"/"+i[4]),u;if(u=l.getYear()==Number(i[2])&&l.getMonth()+1==Number(i[3])&&l.getDate()==Number(i[4]),u){var f=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),v=new Array("1","0","X","9","8","7","6","5","4","3","2"),h=0,g;for(t=t.substr(0,6)+"19"+t.substr(6,t.length-6),g=0;g<17;g++)h+=t.substr(g,1)*f[g];t+=v[h%11]}else return!0}if(n==18){r=new RegExp(/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/);var i=t.match(r),l=new Date(i[2]+"/"+i[3]+"/"+i[4]),u;if(u=l.getFullYear()==Number(i[2])&&l.getMonth()+1==Number(i[3])&&l.getDate()==Number(i[4]),u){var y,f=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2),v=new Array("1","0","X","9","8","7","6","5","4","3","2"),h=0,g;for(g=0;g<17;g++)h+=t.substr(g,1)*f[g];if(y=v[h%11],y!=t.substr(17,1))return!0}else return!0}return!1}},YGt={toDate(e){return typeof e=="string"&&(e=e.replace("T"," ").replace(new RegExp("-","gm"),"/"),e.indexOf(".")!=-1&&(e=e.substr(0,e.indexOf(".")))),new Date(e)},dateFormat(e,t){let n=this;if(!e)return"";typeof e=="string"&&(e=n.toDate(e));let r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours()%12==0?12:e.getHours()%12,"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(let i in r)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,RegExp.$1.length==1?r[i]:("00"+r[i]).substr((""+r[i]).length)));return t},getIndex(e,t,n){let r=-1;if(n){let i=[];for(let l=0;l<e.length;l++)i.push(e[l][t].toString());r=i.indexOf(n.toString())}return r},getText(e,t){let n="";for(let r=0;r<e.length;r++)if(e[r].Value==t){n=e[r].Text;break}return n},combination(e,t){let n="";for(let r=0;r<e.length;r++)n!=""&&(n+=t),n+=e[r];return n},trim(e){return e.replace(/^\s+|\s+$/g,"")},isNullOrEmpty(e){return e==null||e==null||e==""||e=="null"},add(e,t){let n=this,r,i,l;try{r=e.toString().split(".")[1].length}catch{r=0}try{i=t.toString().split(".")[1].length}catch{i=0}return l=Math.pow(10,Math.max(r,i)),(n.mul(e,l)+n.mul(t,l))/l},sub(e,t){let n=this,r,i,l;try{r=e.toString().split(".")[1].length}catch{r=0}try{i=t.toString().split(".")[1].length}catch{i=0}return l=Math.pow(10,Math.max(r,i)),(n.mul(e,l)-n.mul(t,l))/l},mul(e,t){let n=0,r=e.toString(),i=t.toString();try{n+=r.split(".")[1].length}catch{}try{n+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,n)},div(e,t){let n=this,r,i,l=0,u=0;try{l=e.toString().split(".")[1].length}catch{}try{u=t.toString().split(".")[1].length}catch{}return r=Number(e.toString().replace(".","")),i=Number(t.toString().replace(".","")),n.mul(r/i,Math.pow(10,u-l))},toDecimal(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)},isNumber(e){return!isNullOrEmpty(e)&&!isNaN(e.toString())},copyStr(e){let t=document.createElement("input");t.id="copyStr",t.type="text",t.value=e,t.style="position:fixed; top:0; left:0; z-index:99999",document.body.appendChild(t),t=document.getElementById("copyStr"),t.select(),document.execCommand("Copy"),t.remove(),wA.success("\u590D\u5236\u6210\u529F")},formatTimeAgo(e){const n=Date.now()-e,r=Math.floor(n/1e3),i=Math.floor(r/60),l=Math.floor(i/60),u=
572Math.floor(l/24),f=Math.floor(u/7);if(r<60)return"\u521A\u521A\u53D1\u5E03";if(i<5)return`${i}\u5206\u949F\u524D\u53D1\u5E03`;if(l<1)return`${i}\u5206\u949F\u524D\u53D1\u5E03`;if(l<24)return`${l}\u5C0F\u65F6\u524D\u53D1\u5E03`;if(u<2)return"\u6628\u5929\u53D1\u5E03";if(u<3)return"\u524D\u5929\u53D1\u5E03";if(u<7)return`${u}\u5929\u524D\u53D1\u5E03`;if(f===1)return"\u4E00\u5468\u524D\u53D1\u5E03";{const v=new Date(e),h=v.getFullYear(),g=("0"+(v.getMonth()+1)).slice(-2),y=("0"+v.getDate()).slice(-2);return`${h}-${g}-${y}\u53D1\u5E03`}},daysUntil(e){const t=new Date,n=new Date(e);if(isNaN(n.getTime()))throw new Error("Invalid date string");const r=n.getTime()-t.getTime(),i=1e3*60*60*24;return Math.abs(Math.round(r/i))},getCurrentFormattedDate(){const e=new Date,t=e.getFullYear(),n=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2);return`${t}-${n}-${r}`},getEditorDirectoryData(e,t){let n=[];if(e==1){const i=/<h([1-6]).*?>(.*?)<\/h\1>/g;let l;for(;(l=i.exec(t))!==null;){const u=parseInt(l[1]),f=l[2].trim().replace(/<[^>]*>/g,"");f!=" "&&n.push({level:u,title:f})}}else if(e==2){const i=t.split(` 573`),l=/^(#{1,6})\s+(?!.*\n\s*#\s)(.*)$/gm;let u,f=!1;for(const v of i)if(v.indexOf("```")==0&&(f=!f),!f&&(u=l.exec(v))!==null){const h=u[1].length,g=u[0].replace(/^(#{1,6})\s+/,"");n.push({level:h,title:g})}}var r=6;return n.forEach(i=>{i.level<r&&(r=i.level)}),n.forEach(i=>{i.level=i.level-r+1}),n},getDayOfWeek(e){const n=new Date(e).getDay();return["\u5468\u5929","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][n]}},qGt={opePrompt(e){return"\u60A8\u786E\u5B9A\u8981"+e+"\u5F53\u524D\u6570\u636E\u5417\uFF1F"},batchOpe(e,t,n,r,u,f){var u="",f="";switch(n){case"\u5BC6\u7801\u91CD\u7F6E":u="\u8BF7\u9009\u62E9\u8981\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\u64CD\u4F5C\u7684\u6570\u636E",f="\u60A8\u786E\u5B9A\u8981\u5BF9\u9009\u4E2D\u6570\u636E\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\u64CD\u4F5C\u5417\uFF1F";break;default:u="\u8BF7\u9009\u62E9\u8981"+n+"\u7684\u6570\u636E",f="\u60A8\u786E\u5B9A\u8981"+n+"\u9009\u4E2D\u6570\u636E\u5417\uFF1F";break}if(r==null){if(e.selectedId.length==0){e.$message.warning(u);return}r=e.selectedId.join(","),e.$confirm(f).then(()=>{e.$ajax.prompt(t,{id:r},{1:v=>{e.$message.success(v.msg),e.loadListData()}})})}else e.$ajax.prompt(t,{id:r},{1:v=>{e.$message.success(v.msg),e.loadListData()}})},sortChange(e,t){e.form.customOrder=t.order!=null?t.prop+" "+(t.order=="ascending"?"asc":"desc"):"",e.loadListData({pageIndex:1})},cellClick(e,t,n,r,i){if(r.labelClassName=="edit"&&i.querySelector("input")==null){var l=n[r.property]!=null?n[r.property]:"",u=document.createElement("input");u.type="text",u.onblur=()=>{u.value!=l?e.$form.validate(e,r.label,r.className,u.value)?e.$ajax.prompt(t,{field:r.property,value:u.value},{1:f=>{e.$message.success(f.msg),n[r.property]=u.value,u.remove()},"-1":f=>{e.$message.error(f.msg),u.focus()}}):u.focus():u.remove()},u.onkeydown=f=>{f.keyCode==13&&u.blur()},u.value=l,u.style="position: absolute; top: 2px; bottom: 2px; width: calc(100% - 22px); border: 1px solid #409eff; border-radius: 5px; padding: 0 10px; font-size: 14px; white-space: pre-wrap; word-break: break-all;",i.appendChild(u),u.focus()}},exportToExcel(e,t,i,r){var i=JSON.parse(JSON.stringify(i));i.pageIndex=1,i.pageSize=99999999,e.$ajax.prompt("/admin/home/exportToExcel",{excelName:r||e.$route.query.pageTitle,url:t,formData:JSON.stringify(i)},{1:l=>{e.$message.success(l.msg),e.$store.commit("exportCount",parseInt(e.$store.getters.exportCount)+1),e.$store.commit("isExportShow",!0),setTimeout(()=>{e.$store.commit("isExportShow",!1)},1500)}},!0)}},XGt="/assets/default.c81dca99.png",Kc=j1e(Hxe);for(var _de in $se)Kc.component(_de,$se[_de]);Kc.component("imageUpload",r7t);Kc.component("fileUpload",c7t);Kc.component("muchImageUpload",x7t);Kc.component("muchFileUpload",L7t);Kc.component("editor",ekt);Kc.component("mdEditor",iUt);Kc.component("mdPreview",uUt);Kc.component("essay",WUt);Kc.component("memberNav",tjt);Kc.component("creatorCenterNav",Tjt);Kc.component("growNav",zjt);Kc.component("detailOpa",UWt);Kc.component("editorHeader",bGt);Kc.component("verify",WGt);Kc.config.globalProperties.$ajax=GGt;Kc.config.globalProperties.$form=KGt;Kc.config.globalProperties.$helper=YGt;Kc.config.globalProperties.$list=qGt;Kc.config.globalProperties.$userImg=XGt;
573Kc.config.globalProperties.$getActiveIcon=function(e){return e?activeImg:noActiveImg};Kc.use(oSe).use(Tz).use(YAt,{locale:qAt}).mount("#app");Kc._context.components.ElDialog.props.closeOnClickModal.default=!1;export{obe as A,fU as B,Pr as C,ibe as D,lbe as E,Ur as F,ube as G,cbe as H,fbe as I,X7t as J,Z7t as K,Ti as L,T7 as M,abe as N,Q9e as O,tv as _,ce as a,gt as b,Ie as c,ea as d,mi as e,La as f,on as g,yn as h,lo as i,mb as j,jWt as k,WWt as l,GWt as m,He as n,Ce as o,pb as p,KWt as q,Kr as r,YWt as s,Zn as t,qWt as u,UA as v,Dt as w,XWt as x,$A as y,Do as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.