177 lines
3.5 MiB
Java
177 lines
3.5 MiB
Java
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/BdcTabCard-10nVGgnd.js","js/vue-vendor-C7Zq48Yl.js","js/Bar-DlBXxN7D.js","js/useECharts-9qzd7Dce.js","js/useTimeout-DDl4l82I.js","js/antd-vue-vendor-BPnV8VqP.js","js/vxe-table-vendor-B88kchpX.js","js/echarts-6xk1er_c.js","js/Gauge-B_IiN0XO.js","js/QuickNav-C7cYGgXh.js","assets/BdcTabCard-D0UFllQS.css","js/ChartGroupCard-4qj20-W3.js","js/Trend-BVH9fbZv.js","assets/Trend-Cy9UAkYQ.css","js/SingleLine-Bu7dNANj.js","js/data-BpJ37qIE.js","assets/ChartGroupCard-DM1nVDlb.css","js/GrowCard-C0wOUDb4.js","js/index-BfbkCWnM.js","js/SaleTabCard-Bl0WIO90.js","js/RankList-CJZYiRKv.js","assets/RankList-BVMis4IL.css","assets/SaleTabCard-F6FErXxy.css","js/SalesProductPie-CrXOSzng.js","js/SiteAnalysis-7YBdhp-z.js","js/VisitAnalysis-DWgRf6Yc.js","js/props-BGjQktHt.js","js/VisitAnalysisBar-DyXromGL.js","js/VisitRadar-BbzsiCbB.js","js/VisitSource-vU9yriCM.js","js/IndexBdc-CslPkWB5.js","assets/IndexBdc-Bk6InkMo.css","js/IndexChart-CLq-fiMk.js","js/LineMulti-CtYwss5s.js","assets/IndexChart-CsmBtbgH.css","js/IndexDef-0is2TiPJ.js","js/IndexTask-DKnijHC3.js","js/JEllipsis-DqRFTSm0.js","assets/IndexTask-C-QOK_WH.css","js/index-D-KK_hT6.js","js/index-Nxn771ca.js","assets/index-wB2RZJ-K.css","js/index-CQgYPL7q.js","js/AiChat-iustuOgW.js","js/slide-QWIorwJ5.js","js/ailogo-D9r5yA-q.js","assets/slide-DfN75aDU.css","js/chat-DuCSnM5H.js","js/chatMessage-CDt25ZTi.js","js/chatText-C4gWoDxb.js","js/style-B73oiFPg.js","assets/style-Rzt_XZTO.css","js/ImageViewer-CG7dKb6F.js","assets/ImageViewer-DX2JWtvG.css","js/JeecgToolExec-CmPLPOlm.js","assets/JeecgToolExec-Cqq_urn8.css","js/ChartRender-CBSgK0U5.js","js/Pie-Css2jUUJ.js","js/BarAndLine-TnM25Vnx.js","assets/ChartRender-BytF9BB_.css","js/knowledge-CcZcIqwT.js","assets/chatText-Cw2fUoRq.css","js/ThinkText-C0AjwXgL.js","assets/ThinkText-B0aPyF-2.css","js/index-Dg4HCEvo.js","assets/index-CxrinrEC.css","js/CardTemplate-DbIZYbq2.js","assets/CardTemplate-Cg-QpEXU.css","assets/chatMessage-DTkOfSeJ.css","js/presetQuestion-Dc2H1JYo.js","assets/presetQuestion-Bj0MoEmg.css","assets/chat-BOHki1J0.css","js/ConversationSettingsModal-C9dYR5vb.js","assets/ConversationSettingsModal-COu87fGd.css","assets/AiChat-FVbOYp-s.css","assets/index-0qLTG0n5.css","js/DynamicInfo-km9E2lj_.js","js/data-BJoU8O08.js","js/ProjectCard-BsafwPIb.js","js/QuickNav-CqbprqYo.js","js/SaleRadar-CRQ1FJRu.js","js/WorkbenchHeader-02NGHwBK.js","js/header-OZa5fSDc.js","js/index-Cd45qT1u.js","js/index-C57gqG5N.js","js/useContentHeight-BUFNkYs_.js","js/useWindowSizeFn-PRZSD86C.js","js/useContentViewHeight-BO9bTdue.js","js/usePageContext-l-f4bNz7.js","js/injectionKey-DPVn4AgL.js","assets/index-CvR6pXj1.css","js/index-B2VydZIT.js","js/three.module-C62V74CF.js","js/OrbitControls-CJGLS2vR.js","assets/index-D9hfEu0e.css","js/Line-B13R7ecv.js","js/data-A0kLGLbM.js","js/Map-C_nEXlJS.js","js/Pie-CZerFH-W.js","js/SaleRadar-Dcq5-8i4.js","js/Baidu-CAYdeJNC.js","js/useScript-DHPKH1A9.js","js/Gaode-C67vHHiw.js","js/Google-Dvh-u3E_.js","js/index-Co2ejqr0.js","js/htmlmixed-NhwyF9-q.js","js/vue-CgbRSACy.js","assets/vue-DyVx2_Fd.css","assets/index-DgyavQJq.css","js/index-w3WjcqFN.js","js/index-CuZu99Xg.js","js/index-Di-j2gt4.js","js/BasicForm-BJnSRkIE.js","js/componentMap-BBZeqR-K.js","js/useFormItem-BdW6EoZe.js","js/index-Du0A3ksf.js","js/BasicModal-0sAdFEk_.js","js/ModalHeader-keHdAHWH.js","js/index-DeEq83Ov.js","assets/index-DTCEk8S9.css","assets/ModalHeader-CLCbovMP.css","js/index-pxs5MULf.js","js/index-BgYCgfME.js","js/index-f8O7TghW.js","js/useIntersectionObserver-BMxdTqP3.js","assets/index-zj-Vfn3Q.css","assets/BasicModal-ByeTDAzn.css","assets/index-CUOTvden.css","js/download-UE0L9Rfp.js","js/base64Conver-24EVOS6V.js","js/index-CIBZG4nR.js","assets/index-BJ3DcgNL.css","js/index-BhQEwnQQ.js","js/useCountdown-DqnNWBp6.js","js/useFormItemSingle-BbRhswfn.js","assets/index-BB9COjV3.css","js/JSelectUser-B71zikzw.js","js/props-DAezUTeZ.js","js/JSelectBiz-CnEaVMUF.js","assets/JSelectBiz-CbWtJeuk.css","assets/JSelectUser-CJgL3jkG.css","js/JAddInput-D6qcyZjQ.js","js/areaDataUtil-CbYCy3Ig.js","js/index-CNkz_PUv.js","js
|
|||
|
|
var phe=Object.defineProperty,hhe=Object.defineProperties;var ghe=Object.getOwnPropertyDescriptors;var ej=Object.getOwnPropertySymbols;var fue=Object.prototype.hasOwnProperty,mue=Object.prototype.propertyIsEnumerable;var KC=(e,s)=>(s=Symbol[e])?s:Symbol.for("Symbol."+e),vhe=e=>{throw TypeError(e)};var kse=(e,s,i)=>s in e?phe(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i,$e=(e,s)=>{for(var i in s||(s={}))fue.call(s,i)&&kse(e,i,s[i]);if(ej)for(var i of ej(s))mue.call(s,i)&&kse(e,i,s[i]);return e},gn=(e,s)=>hhe(e,ghe(s));var C2=(e,s)=>{var i={};for(var c in e)fue.call(e,c)&&s.indexOf(c)<0&&(i[c]=e[c]);if(e!=null&&ej)for(var c of ej(e))s.indexOf(c)<0&&mue.call(e,c)&&(i[c]=e[c]);return i};var M1=(e,s,i)=>kse(e,typeof s!="symbol"?s+"":s,i);var ao=(e,s,i)=>new Promise((c,d)=>{var f=_=>{try{v(i.next(_))}catch(w){d(w)}},h=_=>{try{v(i.throw(_))}catch(w){d(w)}},v=_=>_.done?c(_.value):Promise.resolve(_.value).then(f,h);v((i=i.apply(e,s)).next())}),mb=function(e,s){this[0]=e,this[1]=s},Vse=(e,s,i)=>{var c=(h,v,_,w)=>{try{var E=i[h](v),T=(v=E.value)instanceof mb,M=E.done;Promise.resolve(T?v[0]:v).then(L=>T?c(h==="return"?h:"next",v[1]?{done:L.done,value:L.value}:L,_,w):_({value:L,done:M})).catch(L=>c("throw",L,_,w))}catch(L){w(L)}},d=h=>f[h]=v=>new Promise((_,w)=>c(h,v,_,w)),f={};return i=i.apply(e,s),f[KC("asyncIterator")]=()=>f,d("next"),d("throw"),d("return"),f},Ise=e=>{var s=e[KC("asyncIterator")],i=!1,c,d={};return s==null?(s=e[KC("iterator")](),c=f=>d[f]=h=>s[f](h)):(s=s.call(e),c=f=>d[f]=h=>{if(i){if(i=!1,f==="throw")throw h;return h}return i=!0,{done:!1,value:new mb(new Promise(v=>{var _=s[f](h);_ instanceof Object||vhe("Object expected"),v(_)}),1)}}),d[KC("iterator")]=()=>d,c("next"),"throw"in s?c("throw"):d.throw=f=>{throw f},"return"in s&&c("return"),d},pue=(e,s,i)=>(s=e[KC("asyncIterator")])?s.call(e):(e=e[KC("iterator")](),s={},i=(c,d)=>(d=e[c])&&(s[c]=f=>new Promise((h,v,_)=>(f=d.call(e,f),_=f.done,Promise.resolve(f.value).then(w=>h({value:w,done:_}),v)))),i("next"),i("return"),s);import{u as fn,ai as bhe,c as Zn,aj as m3e,J as A2,w as En,ak as gk,al as p3e,f as Tt,H as Gb,am as h3e,M as g3e,N as v3e,I as Lie,e as be,r as Ao,n as mn,z as yhe,g as Tk,an as b3e,ao as _he,ap as y3e,l as D,aq as Dk,d as Cn,ar as da,as as Wo,at as Ma,au as ea,q as kb,av as l1,B as SE,aw as _3e,p as jr,s as xhe,h as Mk,ax as whe,ay as aHe,D as Che,j as Yd,o as Rr,b as Wa,az as iHe,F as Gd,O as lE,a as cHe,aA as lHe,L as Ehe,aB as sy,ah as Ps,aC as vr,ag as gs,k as Xo,aD as zE,aE as Ak,aF as hs,A as kie,aG as nu,E as V2,m as Vie,aH as C5,y as hue,P as _W,Q as Iie,G as v5,aI as She,aJ as x3e,aK as w3e,aL as The,aM as Dhe,R as C3e}from"./vue-vendor-C7Zq48Yl.js";import{d as c0,a as Xd,g as Rie,c as NL,o as Zb,s as Rse,p as gue,I as vue,C as Mhe,b as E3e,M as D7,e as Nie,f as S3e,h as ou,H as T3e,Y as D3e,i as M3e,u as Ahe,S as A3e,T as O3e,D as Fie,j as Sj,P as xW,k as Ohe,r as Phe,t as Lhe,l as khe,m as bue,n as Bie,q as Vhe,v as Tae,U as P3e,B as Hie,w as Ihe,A as Rhe,x as Nhe,y as Fhe,z as Bhe,E as L3e,F as Hhe,R as $he,G as zhe,J as jhe,L as Uhe,K as Whe,N as qhe,O as Ghe,Q as Zhe,V as Khe,W as Yhe,X as Xhe,Z as Jhe,_ as Qhe,$ as e7e,a0 as t7e,a1 as n7e,a2 as o7e,a3 as s7e,a4 as r7e,a5 as a7e,a6 as i7e,a7 as c7e,a8 as l7e,a9 as u7e,aa as d7e,ab as f7e,ac as m7e,ad as p7e,ae as h7e,af as g7e,ag as v7e,ah as k3e,ai as V3e,aj as b7e,ak as y7e,al as I3e,am as _7e}from"./antd-vue-vendor-BPnV8VqP.js";import{r as x7e,V as uE,X as q,a as Un,l as $ie,s as Ok,b as R3e,c as us,d as Pn,g as Qn,e as Ve,u as er,D as N3e,f as jE,p as TE,h as Gn,i as It,G as cr,j as zie,k as vk,m as Va,v as F3e,n as B3e,o as jie,q as H3e,t as $3e,w as z3e,x as w7e,y as C7e,z as E7e,A as S7e,B as T7e,C as D7e,E as M7e,F as A7e,H as O7e,I as P7e,J as L7e,K as k7e,L as V7e,M as I7e,N as R7e,O as N7e,P as F7e,Q as B7e,R as H7e,S as $7e}from"./vxe-table-vendor-B88kchpX.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new M
|
|||
|
|
* vite-plugin-qiankun.js v1.0.14
|
|||
|
|
* (c) 2021-2022 Teng Mao Qing
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/var wue;function qge(){if(wue)return YC;wue=1,Object.defineProperty(YC,"__esModule",{value:!0});var e=typeof window!="undefined"?window.proxy||window:{},s=function(i){e!=null&&e.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),e.qiankunName&&(window.moudleQiankunAppLifeCycles[e.qiankunName]=i))};return YC.default=s,YC.qiankunWindow=e,YC.renderWithQiankun=s,YC}var Qie=qge();function o8e(){return!!Qie.qiankunWindow.__POWERED_BY_QIANKUN__}function Gge(){return o8e()?Qie.qiankunWindow:window}const Zge={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BUILD_COMPRESS:"gzip",VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE:"false",VITE_GLOB_API_URL:"/jeecg-boot",VITE_GLOB_API_URL_PREFIX:"",VITE_GLOB_APP_CAS_BASE_URL:"http://cas.test.com:8443/cas",VITE_GLOB_APP_OPEN_QIANKUN:"true",VITE_GLOB_APP_OPEN_SSO:"false",VITE_GLOB_APP_SHORT_NAME:"MES管理平台",VITE_GLOB_APP_TITLE:"MES管理平台",VITE_GLOB_DOMAIN_URL:"http://127.0.0.1:8080/jeecg-boot",VITE_GLOB_ONLINE_DOCUMENT_VERSION:"wps",VITE_GLOB_ONLINE_VIEW_URL:"http://fileview.jeecg.com/onlinePreview",VITE_PORT:"3100",VITE_PUBLIC_PATH:"/",VITE_USE_MOCK:"false"};function ece(){const{VITE_GLOB_APP_SHORT_NAME:e}=Lk();return`${e}__${s8e()}`.toUpperCase()}function tce(){return`${ece()}${`__${Uge.version}`}__`.toUpperCase()}function Lk(){const e=Wge(Zge),i=Gge()[e],{VITE_GLOB_APP_TITLE:c,VITE_GLOB_API_URL:d,VITE_USE_MOCK:f,VITE_GLOB_APP_SHORT_NAME:h,VITE_GLOB_API_URL_PREFIX:v,VITE_GLOB_APP_OPEN_SSO:_,VITE_GLOB_APP_OPEN_QIANKUN:w,VITE_GLOB_APP_CAS_BASE_URL:E,VITE_GLOB_DOMAIN_URL:T,VITE_GLOB_ONLINE_VIEW_URL:M,VITE_GLOB_HIDE_LAYOUT_TYPES:L,VITE_GLOB_RUN_PLATFORM:P,VITE_GLOB_QIANKUN_MICRO_APP_NAME:I,VITE_GLOB_QIANKUN_MICRO_APP_ENTRY:R,VITE_GLOB_ONLINE_DOCUMENT_VERSION:H}=i;return{VITE_GLOB_APP_TITLE:c,VITE_GLOB_API_URL:d,VITE_USE_MOCK:f,VITE_GLOB_APP_SHORT_NAME:h,VITE_GLOB_API_URL_PREFIX:v,VITE_GLOB_APP_OPEN_SSO:_,VITE_GLOB_APP_OPEN_QIANKUN:w,VITE_GLOB_APP_CAS_BASE_URL:E,VITE_GLOB_DOMAIN_URL:T,VITE_GLOB_ONLINE_VIEW_URL:M,VITE_GLOB_HIDE_LAYOUT_TYPES:L,VITE_GLOB_RUN_PLATFORM:P,VITE_GLOB_QIANKUN_MICRO_APP_NAME:I,VITE_GLOB_QIANKUN_MICRO_APP_ENTRY:R,VITE_GLOB_ONLINE_DOCUMENT_VERSION:H}}const Kge="development",Yge="production";function s8e(){return"production"}function Xge(){return!1}function WU(){return!0}function Tj(){const{VITE_GLOB_HIDE_LAYOUT_TYPES:e}=Lk();return typeof e!="string"?[]:e.split(",")}function Jge(){const{VITE_GLOB_ONLINE_DOCUMENT_VERSION:e}=Lk();return typeof e!="string"?"wps":e}const Qge=Object.freeze(Object.defineProperty({__proto__:null,devMode:Kge,getAppEnvConfig:Lk,getCommonStoragePrefix:ece,getEnv:s8e,getHideLayoutTypes:Tj,getOnlineDocumentVersion:Jge,getStorageShortName:tce,isDevMode:Xge,isProdMode:WU,prodMode:Yge},Symbol.toStringTag,{value:"Module"})),k2=()=>{const{VITE_GLOB_APP_TITLE:e,VITE_GLOB_API_URL:s,VITE_GLOB_APP_SHORT_NAME:i,VITE_GLOB_API_URL_PREFIX:c,VITE_GLOB_APP_CAS_BASE_URL:d,VITE_GLOB_APP_OPEN_SSO:f,VITE_GLOB_APP_OPEN_QIANKUN:h,VITE_GLOB_DOMAIN_URL:v,VITE_GLOB_ONLINE_VIEW_URL:_,VITE_GLOB_RUN_PLATFORM:w,VITE_GLOB_QIANKUN_MICRO_APP_NAME:E,VITE_GLOB_QIANKUN_MICRO_APP_ENTRY:T}=Lk(),M=i.replace(/_/g," "),L={title:e,domainUrl:v,apiUrl:s,shortName:i,shortTitle:M,openSso:f,openQianKun:h,casBaseUrl:d,urlPrefix:c,uploadUrl:v,viewUrl:_,useNewTaskModal:!0,isElectronPlatform:w==="electron",isQiankunMicro:E!=null&&E!=="",qiankunMicroAppEntry:T};window._CONFIG||(window._CONFIG={});let P=v;return!/^http(s)?/.test(P)&&!/^(\/\/)?(.*\.)?.+\..+/.test(P)&&(P.startsWith("/")||(P="/"+P),P=window.location.origin+P),window._CONFIG.domianURL=P,L},eve=Object.freeze(Object.defineProperty({__proto__:null,useGlobSetting:k2},Symbol.toStringTag,{value:"Module"}));var vc=(e=>(e.BASE_LOGIN="/login",e.BASE_HOME="/dashboard/analysis",e.ERROR_PAGE="/exception",e.ERROR_LOG_PAGE="/error-log/list",e.OAUTH2_LOGIN_PAGE_PATH="/oauth2-app/login",e.SYS_FILES_PATH="/file/share",e.TOKEN_LOGIN="/tokenLogin",e))(vc||{});const vE="Redirect",tve="ParentLayout",nve="PageNotFound",qU="PageNotFound404",ove=()=>O(()=>import("./Exception-DA6dBr8g.js"),__vite
|
|||
|
|
* pinia v2.1.7
|
|||
|
|
* (c) 2023 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let r8e;const SW=e=>r8e=e;const a8e=Symbol();function Mae(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var of;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(of||(of={}));const sve=typeof window!="undefined",FL=!1,Cue=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function rve(e,{autoBom:s=!1}={}){return s&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function nce(e,s,i){const c=new XMLHttpRequest;c.open("GET",e),c.responseType="blob",c.onload=function(){l8e(c.response,s,i)},c.onerror=function(){},c.send()}function i8e(e){const s=new XMLHttpRequest;s.open("HEAD",e,!1);try{s.send()}catch(i){}return s.status>=200&&s.status<=299}function Dj(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(s){const i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(i)}}const Mj=typeof navigator=="object"?navigator:{userAgent:""},c8e=/Macintosh/.test(Mj.userAgent)&&/AppleWebKit/.test(Mj.userAgent)&&!/Safari/.test(Mj.userAgent),l8e=sve?typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype&&!c8e?ave:"msSaveOrOpenBlob"in Mj?ive:cve:()=>{};function ave(e,s="download",i){const c=document.createElement("a");c.download=s,c.rel="noopener",typeof e=="string"?(c.href=e,c.origin!==location.origin?i8e(c.href)?nce(e,s,i):(c.target="_blank",Dj(c)):Dj(c)):(c.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(c.href)},4e4),setTimeout(function(){Dj(c)},0))}function ive(e,s="download",i){if(typeof e=="string")if(i8e(e))nce(e,s,i);else{const c=document.createElement("a");c.href=e,c.target="_blank",setTimeout(function(){Dj(c)})}else navigator.msSaveOrOpenBlob(rve(e,i),s)}function cve(e,s,i,c){if(c=c||open("","_blank"),c&&(c.document.title=c.document.body.innerText="downloading..."),typeof e=="string")return nce(e,s,i);const d=e.type==="application/octet-stream",f=/constructor/i.test(String(Cue.HTMLElement))||"safari"in Cue,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||d&&f||c8e)&&typeof FileReader!="undefined"){const v=new FileReader;v.onloadend=function(){let _=v.result;if(typeof _!="string")throw c=null,new Error("Wrong reader.result type");_=h?_:_.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=_:location.assign(_),c=null},v.readAsDataURL(e)}else{const v=URL.createObjectURL(e);c?c.location.assign(v):location.href=v,c=null,setTimeout(function(){URL.revokeObjectURL(v)},4e4)}}function eu(e,s){const i="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"&&__VUE_DEVTOOLS_TOAST__(i,s)}function oce(e){return"_a"in e&&"install"in e}function u8e(){if(!("clipboard"in navigator))return eu("Your browser doesn't support the Clipboard API","error"),!0}function d8e(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(eu('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}function lve(e){return ao(this,null,function*(){if(!u8e())try{yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),eu("Global state copied to clipboard.")}catch(s){if(d8e(s))return;eu("Failed to serialize the state. Check the console for more details.","error")}})}function uve(e){return ao(this,null,function*(){if(!u8e())try{f8e(e,JSON.parse(yield navigator.clipboard.readText())),eu("Global state pasted from clipboard.")}catch(s){if(d8e(s))return;eu("Failed to deserialize the state from clipboard. Check the console for more details.","error")}})}function dve(e){return ao(this,null,function*(){try{l8e(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(s){eu("Failed to export the state as JSON. Check the console for more details.","error")}})}
|
|||
|
|
${h}
|
|||
|
|
Only state can be modified.`);h[0]="$state",dE=!1,c.set(f,h,c.state.value),dE=!0}})})}function _ve(e,s){Aj.includes(GU(s.$id))||Aj.push(GU(s.$id)),m3e({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Aj,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},i=>{const c=typeof i.now=="function"?i.now.bind(i):Date.now;s.$onAction(({after:h,onError:v,name:_,args:w})=>{const E=p8e++;i.addTimelineEvent({layerId:_b,event:{time:c(),title:"🛫 "+_,subtitle:"start",data:{store:s8(s.$id),action:s8(_),args:w},groupId:E}}),h(T=>{v7=void 0,i.addTimelineEvent({layerId:_b,event:{time:c(),title:"🛬 "+_,subtitle:"end",data:{store:s8(s.$id),action:s8(_),args:w,result:T},groupId:E}})}),v(T=>{v7=void 0,i.addTimelineEvent({layerId:_b,event:{time:c(),logType:"error",title:"💥 "+_,subtitle:"end",data:{store:s8(s.$id),action:s8(_),args:w,error:T},groupId:E}})})},!0),s._customProperties.forEach(h=>{En(()=>fn(s[h]),(v,_)=>{i.notifyComponentUpdate(),i.sendInspectorState(a0),dE&&i.addTimelineEvent({layerId:_b,event:{time:c(),title:"Change",subtitle:h,data:{newValue:v,oldValue:_},groupId:v7}})},{deep:!0})}),s.$subscribe(({events:h,type:v},_)=>{if(i.notifyComponentUpdate(),i.sendInspectorState(a0),!dE)return;const w={time:c(),title:vve(v),data:bve({store:s8(s.$id)},gve(h)),groupId:v7};v===of.patchFunction?w.subtitle="⤵️":v===of.patchObject?w.subtitle="🧩":h&&!Array.isArray(h)&&(w.subtitle=h.type),h&&(w.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:h}}),i.addTimelineEvent({layerId:_b,event:w})},{detached:!0,flush:"sync"});const d=s._hotUpdate;s._hotUpdate=gk(h=>{d(h),i.addTimelineEvent({layerId:_b,event:{time:c(),title:"🔥 "+s.$id,subtitle:"HMR update",data:{store:s8(s.$id),info:s8("HMR update")}}}),i.notifyComponentUpdate(),i.sendInspectorTree(a0),i.sendInspectorState(a0)});const{$dispose:f}=s;s.$dispose=()=>{f(),i.notifyComponentUpdate(),i.sendInspectorTree(a0),i.sendInspectorState(a0),i.getSettings().logStoreChanges&&eu(`Disposed "${s.$id}" store 🗑`)},i.notifyComponentUpdate(),i.sendInspectorTree(a0),i.sendInspectorState(a0),i.getSettings().logStoreChanges&&eu(`"${s.$id}" store installed 🆕`)})}let p8e=0,v7;function Eue(e,s,i){const c=s.reduce((d,f)=>(d[f]=A2(e)[f],d),{});for(const d in c)e[d]=function(){const f=p8e,h=i?new Proxy(e,{get(..._){return v7=f,Reflect.get(..._)},set(..._){return v7=f,Reflect.set(..._)}}):e;v7=f;const v=c[d].apply(h,arguments);return v7=void 0,v}}function xve({app:e,store:s,options:i}){if(s.$id.startsWith("__hot:"))return;s._isOptionsAPI=!!i.state,Eue(s,Object.keys(i.actions),s._isOptionsAPI);const c=s._hotUpdate;A2(s)._hotUpdate=function(d){c.apply(this,arguments),Eue(s,Object.keys(d._hmrPayload.actions),!!s._isOptionsAPI)},_ve(e,s)}function wve(){const e=p3e(!0),s=e.run(()=>Tt({}));let i=[],c=[];const d=gk({install(f){SW(d),jd||(d._a=f,f.provide(a8e,d),f.config.globalProperties.$pinia=d,FL&&yve(f,d),c.forEach(h=>i.push(h)),c=[])},use(f){return!this._a&&!jd?c.push(f):i.push(f),this},_p:i,_a:null,_e:e,_s:new Map,state:s});return FL&&typeof Proxy!="undefined"&&d.use(xve),d}const h8e=()=>{};function Sue(e,s,i,c=h8e){e.push(s);const d=()=>{const f=e.indexOf(s);f>-1&&(e.splice(f,1),c())};return!i&&g3e()&&v3e(d),d}function XC(e,...s){e.slice().forEach(i=>{i(...s)})}const Cve=e=>e();function Oae(e,s){e instanceof Map&&s instanceof Map&&s.forEach((i,c)=>e.set(c,i)),e instanceof Set&&s instanceof Set&&s.forEach(e.add,e);for(const i in s){if(!s.hasOwnProperty(i))continue;const c=s[i],d=e[i];Mae(d)&&Mae(c)&&e.hasOwnProperty(i)&&!Gb(c)&&!h3e(c)?e[i]=Oae(d,c):e[i]=c}return e}const Eve=Symbol(),Sve=new WeakMap;function Tve(e){return jd?!Sve.has(e):!Mae(e)||!e.hasOwnProperty(Eve)}const{assign:n8}=Object;function Dve(e){return!!(Gb(e)&&e.effect)}function Mve(e,s,i,c){const{state:d,actions:f,getters:h}=s,v=i.state.value[e];let _;function w(){v||(jd?$P(i.state.value,e,d?d():{}):i.state.value[e]=d?d():{});cons
|
|||
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|||
|
|
|
|||
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|||
|
|
|
|||
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|||
|
|
- 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.
|
|||
|
|
|
|||
|
|
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.
|
|||
|
|
*/return(function(c){var d=i,f=d.lib,h=f.WordArray,v=f.Hasher,_=d.algo,w=h.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]),E=h.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]),T=h.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]),M=h.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]),L=h.create([0,1518500249,1859775393,2400959708,2840853838]),P=h.create([1352829926,1548603684,1836072691,2053994217,0]),I=_.RIPEMD160=v.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Z,U){for(var Q=0;Q<16;Q++){var me=U+Q,oe=Z[me];Z[me]=(oe<<8|oe>>>24)&16711935|(oe<<24|oe>>>8)&4278255360}var ie=this._hash.words,ae=L.words,Ie=P.words,Me=w.words,qe=E.words,$=T.words,ge=M.words,re,Le,Te,le,Pe,We,Ce,ze,De,Oe;We=re=ie[0],Ce=Le=ie[1],ze=Te=ie[2],De=le=ie[3],Oe=Pe=ie[4];for(var G,Q=0;Q<80;Q+=1)G=re+Z[U+Me[Q]]|0,Q<16?G+=R(Le,Te,le)+ae[0]:Q<32?G+=H(Le,Te,le)+ae[1]:Q<48?G+=W(Le,Te,le)+ae[2]:Q<64?G+=V(Le,Te,le)+ae[3]:G+=B(Le,Te,le)+ae[4],G=G|0,G=J(G,$[Q]),G=G+Pe|0,re=Pe,Pe=le,le=J(Te,10),Te=Le,Le=G,G=We+Z[U+qe[Q]]|0,Q<16?G+=B(Ce,ze,De)+Ie[0]:Q<32?G+=V(Ce,ze,De)+Ie[1]:Q<48?G+=W(Ce,ze,De)+Ie[2]:Q<64?G+=H(Ce,ze,De)+Ie[3]:G+=R(Ce,ze,De)+Ie[4],G=G|0,G=J(G,ge[Q]),G=G+Oe|0,We=Oe,Oe=De,De=J(ze,10),ze=Ce,Ce=G;G=ie[1]+Te+De|0,ie[1]=ie[2]+le+Oe|0,ie[2]=ie[3]+Pe+We|0,ie[3]=ie[4]+re+Ce|0,ie[4]=ie[0]+Le+ze|0,ie[0]=G},_doFinalize:function(){var Z=this._data,U=Z.words,Q=this._nDataBytes*8,me=Z.sigBytes*8;U[me>>>5]|=128<<24-me%32,U[(me+64>>>9<<4)+14]=(Q<<8|Q>>>24)&16711935|(Q<<24|Q>>>8)&4278255360,Z.sigBytes=(U.length+1)*4,this._process();for(var oe=this._hash,ie=oe.words,ae=0;ae<5;ae++){var Ie=ie[ae];ie[ae]=(Ie<<8|Ie>>>24)&16711935|(Ie<<24|Ie>>>8)&4278255360}return oe},clone:function(){var Z=v.clone.call(this);return Z._hash=this._hash.clone(),Z}});function R(Z,U,Q){return Z^U^Q}function H(Z,U,Q){return Z&U|~Z&Q}function W(Z,U,Q){return(Z|~U)^Q}function V(Z,U,Q){return Z&Q|U&~Q}function B(Z,U,Q){return Z^(U|~Q)}function J(Z,U){return Z<<U|Z>>>32-U}d.RIPEMD160=v._createHelper(I),d.HmacRIPEMD160=v._createHmacHelper(I)})(Math),i.RIPEMD160})})(lL,lL.exports)),lL.exports}var uL={exports:{}},v9e=uL.exports,Kue;function b9e(){return Kue||(Kue=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),ice(),rce())})(v9e,function(i){return(function(){var c=i,d=c.lib,f=d.Base,h=d.WordArray,v=c.algo,_=v.SHA256,w=v.HMAC,E=v.PBKDF2=f.extend({cfg:f.extend({keySize:128/32,hasher:_,iterations:25e4}),init:function(T){this.cfg=this.cfg.extend(T)},compute:function(T,M){for(var L=this.cfg,P=w.create(L.hasher,T),I=h.create(),R=h.create([1]),H=I.words,W=R.words,V=L.keySize,B=L.iterations;H.length<V;){var J=P.update(M).finalize(R);P.reset();for(var Z=J.words,U=Z.length,Q=J,me=1;me<B;me++){Q=P.finalize(Q),P.reset();for(var oe=Q.words,ie=0;ie<U;ie++)Z[ie]^=oe[ie]}I.concat(J),W[0]++}return I.sigBytes=V*4,I}});c.PBKDF2=function(T,M,L){return E.create(L).compute(T,M)}})(),i.PBKDF2})})(uL,uL.exports)),uL.exports}var dL={exports:{}},y9e=dL.exports,Yue;function _9e(){return Yue||(Yue=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(y9e,function(i){return i.mode.CFB=(function(){var c=i.lib.BlockCipherMode.extend();c.Encryptor=c.extend({processBlock:function(f,h){var v=this._cipher,_=v.blockSize;d.call(this,f,h,_,v),this._prevBlock=f.slice(h,h+_)}}),c.Decryptor=c.extend({processBlock:function(f,h){var v=this._cipher,_=v.blockSize,w=f.slice(h,h+_);d.call(this,f,h,_,v),this._prevBlock=w}});function d(
|
|||
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|||
|
|
* derived from CryptoJS.mode.CTR
|
|||
|
|
* Jan Hruby jhruby.web@gmail.com
|
|||
|
|
*/return i.mode.CTRGladman=(function(){var c=i.lib.BlockCipherMode.extend();function d(v){if((v>>24&255)===255){var _=v>>16&255,w=v>>8&255,E=v&255;_===255?(_=0,w===255?(w=0,E===255?E=0:++E):++w):++_,v=0,v+=_<<16,v+=w<<8,v+=E}else v+=1<<24;return v}function f(v){return(v[0]=d(v[0]))===0&&(v[1]=d(v[1])),v}var h=c.Encryptor=c.extend({processBlock:function(v,_){var w=this._cipher,E=w.blockSize,T=this._iv,M=this._counter;T&&(M=this._counter=T.slice(0),this._iv=void 0),f(M);var L=M.slice(0);w.encryptBlock(L,0);for(var P=0;P<E;P++)v[_+P]^=L[P]}});return c.Decryptor=h,c})(),i.mode.CTRGladman})})(mL,mL.exports)),mL.exports}var pL={exports:{}},S9e=pL.exports,Que;function T9e(){return Que||(Que=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(S9e,function(i){return i.mode.OFB=(function(){var c=i.lib.BlockCipherMode.extend(),d=c.Encryptor=c.extend({processBlock:function(f,h){var v=this._cipher,_=v.blockSize,w=this._iv,E=this._keystream;w&&(E=this._keystream=w.slice(0),this._iv=void 0),v.encryptBlock(E,0);for(var T=0;T<_;T++)f[h+T]^=E[T]}});return c.Decryptor=d,c})(),i.mode.OFB})})(pL,pL.exports)),pL.exports}var hL={exports:{}},D9e=hL.exports,e0e;function M9e(){return e0e||(e0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(D9e,function(i){return i.pad.AnsiX923={pad:function(c,d){var f=c.sigBytes,h=d*4,v=h-f%h,_=f+v-1;c.clamp(),c.words[_>>>2]|=v<<24-_%4*8,c.sigBytes+=v},unpad:function(c){var d=c.words[c.sigBytes-1>>>2]&255;c.sigBytes-=d}},i.pad.Ansix923})})(hL,hL.exports)),hL.exports}var gL={exports:{}},A9e=gL.exports,t0e;function O9e(){return t0e||(t0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(A9e,function(i){return i.pad.Iso10126={pad:function(c,d){var f=d*4,h=f-c.sigBytes%f;c.concat(i.lib.WordArray.random(h-1)).concat(i.lib.WordArray.create([h<<24],1))},unpad:function(c){var d=c.words[c.sigBytes-1>>>2]&255;c.sigBytes-=d}},i.pad.Iso10126})})(gL,gL.exports)),gL.exports}var vL={exports:{}},P9e=vL.exports,n0e;function L9e(){return n0e||(n0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(P9e,function(i){return i.pad.Iso97971={pad:function(c,d){c.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(c,d)},unpad:function(c){i.pad.ZeroPadding.unpad(c),c.sigBytes--}},i.pad.Iso97971})})(vL,vL.exports)),vL.exports}var bL={exports:{}},k9e=bL.exports,o0e;function V9e(){return o0e||(o0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(k9e,function(i){return i.pad.ZeroPadding={pad:function(c,d){var f=d*4;c.clamp(),c.sigBytes+=f-(c.sigBytes%f||f)},unpad:function(c){for(var d=c.words,f=c.sigBytes-1,f=c.sigBytes-1;f>=0;f--)if(d[f>>>2]>>>24-f%4*8&255){c.sigBytes=f+1;break}}},i.pad.ZeroPadding})})(bL,bL.exports)),bL.exports}var yL={exports:{}},I9e=yL.exports,s0e;function R9e(){return s0e||(s0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(I9e,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})})(yL,yL.exports)),yL.exports}var _L={exports:{}},N9e=_L.exports,r0e;function F9e(){return r0e||(r0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),L1())})(N9e,function(i){return(function(c){var d=i,f=d.lib,h=f.CipherParams,v=d.enc,_=v.Hex,w=d.format,E=w.Hex={stringify:function(T){return T.ciphertext.toString(_)},parse:function(T){var M=_.parse(T);return h.create({ciphertext:M})}}})(),i.format.Hex})})(_L,_L.exports)),_L.exports}var xL={exports:{}},B9e=xL.exports,a0e;function H9e(){return a0e||(a0e=1,(function(e,s){(function(i,c,d){e.exports=s=c(Aa(),M7(),A7(),O7(),L1())})(B9e,function(i){return(function(){var c=i,d=c.lib,f=d.WordArray,h=d.BlockCipher,v=c.algo,_=[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],w=[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],E=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],T=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,18
|
|||
|
|
* shared v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function hbe(e,s){}const m0e={};function gbe(e){m0e[e]||(m0e[e]=!0,void 0)}const L8e=typeof window!="undefined";let k8e,V8e;{const e=L8e&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(k8e=s=>{e.mark(s)},V8e=(s,i,c)=>{e.measure(s,i,c),e.clearMarks(i),e.clearMarks(c)})}const vbe=/\{([0-9a-zA-Z]+)\}/g;function bbe(e,...s){return s.length===1&&Xb(s[0])&&(s=s[0]),(!s||!s.hasOwnProperty)&&(s={}),e.replace(vbe,(i,c)=>s.hasOwnProperty(c)?s[c]:"")}const ybe=(e,s=!1)=>s?Symbol.for(e):Symbol(e),_be=(e,s,i)=>I8e({l:e,k:s,s:i}),I8e=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),xbe=e=>typeof e=="number"&&isFinite(e),wbe=e=>hce(e)==="[object Date]",Cbe=e=>hce(e)==="[object RegExp]",Ebe=e=>gce(e)&&Object.keys(e).length===0,Sbe=Object.assign,Tbe=Object.create,fce=(e=null)=>Tbe(e);let p0e;const Dbe=()=>p0e||(p0e=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:fce());function Mbe(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function h0e(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Abe(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(c,d,f)=>`${d}="${h0e(f)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(c,d,f)=>`${d}='${h0e(f)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(c=>{e=e.replace(c,"$1javascript:")}),e}const Obe=Object.prototype.hasOwnProperty;function Pbe(e,s){return Obe.call(e,s)}const mce=Array.isArray,Vae=e=>typeof e=="function",Lbe=e=>typeof e=="string",kbe=e=>typeof e=="boolean",Vbe=e=>typeof e=="symbol",Xb=e=>e!==null&&typeof e=="object",Ibe=e=>Xb(e)&&Vae(e.then)&&Vae(e.catch),pce=Object.prototype.toString,hce=e=>pce.call(e),gce=e=>{if(!Xb(e))return!1;const s=Object.getPrototypeOf(e);return s===null||s.constructor===Object},Rbe=e=>e==null?"":mce(e)||gce(e)&&e.toString===pce?JSON.stringify(e,null,2):String(e);function Nbe(e,s=""){return e.reduce((i,c,d)=>d===0?i+c:i+s+c,"")}const g0e=2;function Fbe(e,s=0,i=e.length){const c=e.split(/\r?\n/);let d=0;const f=[];for(let h=0;h<c.length;h++)if(d+=c[h].length+1,d>=s){for(let v=h-g0e;v<=h+g0e||i>d;v++){if(v<0||v>=c.length)continue;const _=v+1;f.push(`${_}${" ".repeat(3-String(_).length)}| ${c[v]}`);const w=c[v].length;if(v===h){const E=s-(d-w)+1,T=Math.max(1,i>d?w-E:i-s);f.push(" | "+" ".repeat(E)+"^".repeat(T))}else if(v>h){if(i>d){const E=Math.max(Math.min(i-d,w),1);f.push(" | "+"^".repeat(E))}d+=w+1}}break}return f.join(`
|
|||
|
|
`)}function Bbe(e){let s=e;return()=>++s}function Hbe(){const e=new Map;return{events:e,on(i,c){const d=e.get(i);d&&d.push(c)||e.set(i,[c])},off(i,c){const d=e.get(i);d&&d.splice(d.indexOf(c)>>>0,1)},emit(i,c){(e.get(i)||[]).slice().map(d=>d(c)),(e.get("*")||[]).slice().map(d=>d(i,c))}}}const nj=e=>!Xb(e)||mce(e);function $be(e,s){if(nj(e)||nj(s))throw new Error("Invalid value");const i=[{src:e,des:s}];for(;i.length;){const{src:c,des:d}=i.pop();Object.keys(c).forEach(f=>{f!=="__proto__"&&(Xb(c[f])&&!Xb(d[f])&&(d[f]=Array.isArray(c[f])?[]:fce()),nj(d[f])||nj(c[f])?d[f]=c[f]:i.push({src:c[f],des:d[f]}))})}}const zbe=Object.freeze(Object.defineProperty({__proto__:null,assign:Sbe,create:fce,createEmitter:Hbe,deepCopy:$be,escapeHtml:Mbe,format:bbe,friendlyJSONstringify:I8e,generateCodeFrame:Fbe,generateFormatCacheKey:_be,getGlobalThis:Dbe,hasOwn:Pbe,inBrowser:L8e,incrementer:Bbe,isArray:mce,isBoolean:kbe,isDate:wbe,isEmptyObject:Ebe,isFunction:Vae,isNumber:xbe,isObject:Xb,isPlainObject:gce,isPromise:Ibe,isRegExp:Cbe,isString:Lbe,isSymbol:Vbe,join:Nbe,makeSymbol:ybe,get mark(){return k8e},get measure(){return V8e},objectToString:pce,sanitizeTranslatedHtml:Abe,toDisplayString:Rbe,toTypeString:hce,warn:hbe,warnOnce:gbe},Symbol.toStringTag,{value:"Module"})),jbe=Rie(zbe);/*!
|
|||
|
|
* core-base v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function Ube(e,s){}const v0e={};function Wbe(e){v0e[e]||(v0e[e]=!0,void 0)}const Jb=typeof window!="undefined";let B4,Qb;{const e=Jb&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(B4=s=>{e.mark(s)},Qb=(s,i,c)=>{e.measure(s,i,c),e.clearMarks(i),e.clearMarks(c)})}const qbe=/\{([0-9a-zA-Z]+)\}/g;function OW(e,...s){return s.length===1&&P1(s[0])&&(s=s[0]),(!s||!s.hasOwnProperty)&&(s={}),e.replace(qbe,(i,c)=>s.hasOwnProperty(c)?s[c]:"")}const Gbe=(e,s,i)=>Zbe({l:e,k:s,s:i}),Zbe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),U0=e=>typeof e=="number"&&isFinite(e),Kbe=e=>N8e(e)==="[object Date]",b0e=e=>N8e(e)==="[object RegExp]",vce=e=>Hc(e)&&Object.keys(e).length===0,P7=Object.assign,Ybe=Object.create,q0=(e=null)=>Ybe(e);function y0e(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function _0e(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Xbe(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(c,d,f)=>`${d}="${_0e(f)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(c,d,f)=>`${d}='${_0e(f)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(c=>{e=e.replace(c,"$1javascript:")}),e}const Jbe=Object.prototype.hasOwnProperty;function Db(e,s){return Jbe.call(e,s)}const sf=Array.isArray,O1=e=>typeof e=="function",Ir=e=>typeof e=="string",W0=e=>typeof e=="boolean",P1=e=>e!==null&&typeof e=="object",Qbe=e=>P1(e)&&O1(e.then)&&O1(e.catch),R8e=Object.prototype.toString,N8e=e=>R8e.call(e),Hc=e=>{if(!P1(e))return!1;const s=Object.getPrototypeOf(e);return s===null||s.constructor===Object},eye=e=>e==null?"":sf(e)||Hc(e)&&e.toString===R8e?JSON.stringify(e,null,2):String(e);function bce(e,s=""){return e.reduce((i,c,d)=>d===0?i+c:i+s+c,"")}const x0e=2;function tye(e,s=0,i=e.length){const c=e.split(/\r?\n/);let d=0;const f=[];for(let h=0;h<c.length;h++)if(d+=c[h].length+1,d>=s){for(let v=h-x0e;v<=h+x0e||i>d;v++){if(v<0||v>=c.length)continue;const _=v+1;f.push(`${_}${" ".repeat(3-String(_).length)}| ${c[v]}`);const w=c[v].length;if(v===h){const E=s-(d-w)+1,T=Math.max(1,i>d?w-E:i-s);f.push(" | "+" ".repeat(E)+"^".repeat(T))}else if(v>h){if(i>d){const E=Math.max(Math.min(i-d,w),1);f.push(" | "+"^".repeat(E))}d+=w+1}}break}return f.join(`
|
|||
|
|
`)}function F8e(e){let s=e;return()=>++s}function nye(e,s,i){return{line:e,column:s,offset:i}}function XU(e,s,i){const c={start:e,end:s};return i!=null&&(c.source=i),c}const PW={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},oye={[PW.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function sye(e,s,...i){const c=OW(oye[e]||"",...i||[]),d={message:String(c),code:e};return s&&(d.location=s),d}const Dr={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},rye={[Dr.EXPECTED_TOKEN]:"Expected token: '{0}'",[Dr.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Dr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Dr.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Dr.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Dr.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Dr.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Dr.EMPTY_PLACEHOLDER]:"Empty placeholder",[Dr.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Dr.INVALID_LINKED_FORMAT]:"Invalid linked format",[Dr.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Dr.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Dr.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Dr.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Dr.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Dr.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function WE(e,s,i={}){const{domain:c,messages:d,args:f}=i,h=OW((d||rye)[e]||"",...f||[]),v=new SyntaxError(String(h));return v.code=e,s&&(v.location=s),v.domain=c,v}function aye(e){throw e}const iye=/<\/?[\w\s="/.':;#-\/]+>/,cye=e=>iye.test(e),l5=" ",lye="\r",B0=`
|
|||
|
|
`,uye="\u2028",dye="\u2029";function fye(e){const s=e;let i=0,c=1,d=1,f=0;const h=U=>s[U]===lye&&s[U+1]===B0,v=U=>s[U]===B0,_=U=>s[U]===dye,w=U=>s[U]===uye,E=U=>h(U)||v(U)||_(U)||w(U),T=()=>i,M=()=>c,L=()=>d,P=()=>f,I=U=>h(U)||_(U)||w(U)?B0:s[U],R=()=>I(i),H=()=>I(i+f);function W(){return f=0,E(i)&&(c++,d=0),h(i)&&i++,i++,d++,s[i]}function V(){return h(i+f)&&f++,f++,s[i+f]}function B(){i=0,c=1,d=1,f=0}function J(U=0){f=U}function Z(){const U=i+f;for(;U!==i;)W();f=0}return{index:T,line:M,column:L,peekOffset:P,charAt:I,currentChar:R,currentPeek:H,next:W,peek:V,reset:B,resetPeek:J,skipToPeek:Z}}const i7=void 0,mye=".",w0e="'",pye="tokenizer";function hye(e,s={}){const i=s.location!==!1,c=fye(e),d=()=>c.index(),f=()=>nye(c.line(),c.column(),c.index()),h=f(),v=d(),_={currentType:14,offset:v,startLoc:h,endLoc:h,lastType:14,lastOffset:v,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},w=()=>_,{onError:E}=s;function T(Ke,gt,Yt,...Sn){const Mt=w();if(gt.column+=Yt,gt.offset+=Yt,E){const Wt=i?XU(Mt.startLoc,gt):null,Ot=WE(Ke,Wt,{domain:pye,args:Sn});E(Ot)}}function M(Ke,gt,Yt){Ke.endLoc=f(),Ke.currentType=gt;const Sn={type:gt};return i&&(Sn.loc=XU(Ke.startLoc,Ke.endLoc)),Yt!=null&&(Sn.value=Yt),Sn}const L=Ke=>M(Ke,14);function P(Ke,gt){return Ke.currentChar()===gt?(Ke.next(),gt):(T(Dr.EXPECTED_TOKEN,f(),0,gt),"")}function I(Ke){let gt="";for(;Ke.currentPeek()===l5||Ke.currentPeek()===B0;)gt+=Ke.currentPeek(),Ke.peek();return gt}function R(Ke){const gt=I(Ke);return Ke.skipToPeek(),gt}function H(Ke){if(Ke===i7)return!1;const gt=Ke.charCodeAt(0);return gt>=97&><=122||gt>=65&><=90||gt===95}function W(Ke){if(Ke===i7)return!1;const gt=Ke.charCodeAt(0);return gt>=48&><=57}function V(Ke,gt){const{currentType:Yt}=gt;if(Yt!==2)return!1;I(Ke);const Sn=H(Ke.currentPeek());return Ke.resetPeek(),Sn}function B(Ke,gt){const{currentType:Yt}=gt;if(Yt!==2)return!1;I(Ke);const Sn=Ke.currentPeek()==="-"?Ke.peek():Ke.currentPeek(),Mt=W(Sn);return Ke.resetPeek(),Mt}function J(Ke,gt){const{currentType:Yt}=gt;if(Yt!==2)return!1;I(Ke);const Sn=Ke.currentPeek()===w0e;return Ke.resetPeek(),Sn}function Z(Ke,gt){const{currentType:Yt}=gt;if(Yt!==8)return!1;I(Ke);const Sn=Ke.currentPeek()===".";return Ke.resetPeek(),Sn}function U(Ke,gt){const{currentType:Yt}=gt;if(Yt!==9)return!1;I(Ke);const Sn=H(Ke.currentPeek());return Ke.resetPeek(),Sn}function Q(Ke,gt){const{currentType:Yt}=gt;if(!(Yt===8||Yt===12))return!1;I(Ke);const Sn=Ke.currentPeek()===":";return Ke.resetPeek(),Sn}function me(Ke,gt){const{currentType:Yt}=gt;if(Yt!==10)return!1;const Sn=()=>{const Wt=Ke.currentPeek();return Wt==="{"?H(Ke.peek()):Wt==="@"||Wt==="%"||Wt==="|"||Wt===":"||Wt==="."||Wt===l5||!Wt?!1:Wt===B0?(Ke.peek(),Sn()):ae(Ke,!1)},Mt=Sn();return Ke.resetPeek(),Mt}function oe(Ke){I(Ke);const gt=Ke.currentPeek()==="|";return Ke.resetPeek(),gt}function ie(Ke){const gt=I(Ke),Yt=Ke.currentPeek()==="%"&&Ke.peek()==="{";return Ke.resetPeek(),{isModulo:Yt,hasSpace:gt.length>0}}function ae(Ke,gt=!0){const Yt=(Mt=!1,Wt="",Ot=!1)=>{const pt=Ke.currentPeek();return pt==="{"?Wt==="%"?!1:Mt:pt==="@"||!pt?Wt==="%"?!0:Mt:pt==="%"?(Ke.peek(),Yt(Mt,"%",!0)):pt==="|"?Wt==="%"||Ot?!0:!(Wt===l5||Wt===B0):pt===l5?(Ke.peek(),Yt(!0,l5,Ot)):pt===B0?(Ke.peek(),Yt(!0,B0,Ot)):!0},Sn=Yt();return gt&&Ke.resetPeek(),Sn}function Ie(Ke,gt){const Yt=Ke.currentChar();return Yt===i7?i7:gt(Yt)?(Ke.next(),Yt):null}function Me(Ke){const gt=Ke.charCodeAt(0);return gt>=97&><=122||gt>=65&><=90||gt>=48&><=57||gt===95||gt===36}function qe(Ke){return Ie(Ke,Me)}function $(Ke){const gt=Ke.charCodeAt(0);return gt>=97&><=122||gt>=65&><=90||gt>=48&><=57||gt===95||gt===36||gt===45}function ge(Ke){return Ie(Ke,$)}function re(Ke){const gt=Ke.charCodeAt(0);return gt>=48&><=57}function Le(Ke){return Ie(Ke,re)}function Te(Ke){const gt=Ke.charCodeAt(0);return gt>=48&><=57||gt>=65&><=70||gt>=97&><=102}function le(Ke){return Ie(Ke,Te)}function Pe(Ke){let gt="",Yt="";for(;gt=Le(Ke);)Yt+=gt;return Yt}function We(Ke){R(Ke);const gt=Ke.currentChar();return gt!=="%"&&T(Dr.EXPECTED_TOKEN,f(),0,gt),Ke.next(),"%"}fun
|
|||
|
|
`,h=s.needIndent?s.needIndent:i!=="arrow",v=e.helpers||[],_=Sye(e,{mode:i,filename:c,sourceMap:d,breakLineCode:f,needIndent:h});_.push(i==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),_.indent(h),v.length>0&&(_.push(`const { ${bce(v.map(T=>`${T}: _${T}`),", ")} } = ctx`),_.newline()),_.push("return "),PE(_,e),_.deindent(h),_.push("}"),delete e.helpers;const{code:w,map:E}=_.context();return{ast:e,code:w,map:E?E.toJSON():void 0}};function Pye(e,s={}){const i=P7({},s),c=!!i.jit,d=!!i.minify,f=i.optimize==null?!0:i.optimize,v=yye(i).parse(e);return c?(f&&wye(v),d&&rE(v),{ast:v,code:""}):(xye(v,i),Oye(v,i))}function C7(e){return P1(e)&&_ce(e)===0&&(Db(e,"b")||Db(e,"body"))}const B8e=["b","body"];function Lye(e){return L7(e,B8e)}const H8e=["c","cases"];function kye(e){return L7(e,H8e,[])}const $8e=["s","static"];function Vye(e){return L7(e,$8e)}const z8e=["i","items"];function Iye(e){return L7(e,z8e,[])}const j8e=["t","type"];function _ce(e){return L7(e,j8e)}const U8e=["v","value"];function oj(e,s){const i=L7(e,U8e);if(i!=null)return i;throw _k(s)}const W8e=["m","modifier"];function Rye(e){return L7(e,W8e)}const q8e=["k","key"];function Nye(e){const s=L7(e,q8e);if(s)return s;throw _k(6)}function L7(e,s,i){for(let c=0;c<s.length;c++){const d=s[c];if(Db(e,d)&&e[d]!=null)return e[d]}return i}const G8e=[...B8e,...H8e,...$8e,...z8e,...q8e,...W8e,...U8e,...j8e];function _k(e){return new Error(`unhandled node type: ${e}`)}const k7=[];k7[0]={w:[0],i:[3,0],"[":[4],o:[7]};k7[1]={w:[1],".":[2],"[":[4],o:[7]};k7[2]={w:[2],i:[3,0],0:[3,0]};k7[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};k7[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};k7[5]={"'":[4,0],o:8,l:[5,0]};k7[6]={'"':[4,0],o:8,l:[6,0]};const Fye=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Bye(e){return Fye.test(e)}function Hye(e){const s=e.charCodeAt(0),i=e.charCodeAt(e.length-1);return s===i&&(s===34||s===39)?e.slice(1,-1):e}function $ye(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zye(e){const s=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Bye(s)?Hye(s):"*"+s}function Z8e(e){const s=[];let i=-1,c=0,d=0,f,h,v,_,w,E,T;const M=[];M[0]=()=>{h===void 0?h=v:h+=v},M[1]=()=>{h!==void 0&&(s.push(h),h=void 0)},M[2]=()=>{M[0](),d++},M[3]=()=>{if(d>0)d--,c=4,M[0]();else{if(d=0,h===void 0||(h=zye(h),h===!1))return!1;M[1]()}};function L(){const P=e[i+1];if(c===5&&P==="'"||c===6&&P==='"')return i++,v="\\"+P,M[0](),!0}for(;c!==null;)if(i++,f=e[i],!(f==="\\"&&L())){if(_=$ye(f),T=k7[c],w=T[_]||T.l||8,w===8||(c=w[0],w[1]!==void 0&&(E=M[w[1]],E&&(v=f,E()===!1))))return;if(c===7)return s}}const S0e=new Map;function K8e(e,s){return P1(e)?e[s]:null}function jye(e,s){if(!P1(e))return null;let i=S0e.get(s);if(i||(i=Z8e(s),i&&S0e.set(s,i)),!i)return null;const c=i.length;let d=e,f=0;for(;f<c;){const h=i[f];if(G8e.includes(h)&&C7(d))return null;const v=d[h];if(v===void 0||O1(d))return null;d=v,f++}return d}const Uye=e=>e,Wye=e=>"",Y8e="text",qye=e=>e.length===0?"":bce(e),Gye=eye;function T0e(e,s){return e=Math.abs(e),s===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Zye(e){const s=U0(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(U0(e.named.count)||U0(e.named.n))?U0(e.named.count)?e.named.count:U0(e.named.n)?e.named.n:s:s}function Kye(e,s){s.count||(s.count=e),s.n||(s.n=e)}function X8e(e={}){const s=e.locale,i=Zye(e),c=P1(e.pluralRules)&&Ir(s)&&O1(e.pluralRules[s])?e.pluralRules[s]:T0e,d=P1(e.pluralRules)&&Ir(s)&&O1(e.pluralRules[s])?T0e:void 0,f=H=>H[c(i,H.length,d)],h=e.list||[],v=H=>h[H],_=e.named||q0();U0(e.pluralIndex)&&Kye(i,_);const w=H=>_[H];function E(H){const W=O1(e.messages)?e.messages(H):P1(e.messages)?e.messages[H]:!1;return W||(e.parent?e.parent.message(H):Wye)}const T=H=>e.modifiers?e.modifiers[H]:Uye,M=Hc(e.processor)&&O1(e.processor.normalize)?e.processor.normalize:qye,L=Hc(e.processor)&&O1(e.processor.interpolate)?e.processor.interpolate:Gye,P=Hc(e.processor)&&I
|
|||
|
|
* vue-i18n v9.14.5
|
|||
|
|
* (c) 2025 kazuya kawaguchi
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/var k0e;function O_e(){if(k0e)return E2;k0e=1;var e=jbe,s=A_e,i=x7e();const c="9.14.5",d=s.CoreWarnCodes.__EXTEND_POINT__,f=e.incrementer(d),h={FALLBACK_TO_ROOT:d,NOT_SUPPORTED_PRESERVE:f(),NOT_SUPPORTED_FORMATTER:f(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:f(),NOT_SUPPORTED_GET_CHOICE_INDEX:f(),COMPONENT_NAME_LEGACY_COMPATIBLE:f(),NOT_FOUND_PARENT_SCOPE:f(),IGNORE_OBJ_FLATTEN:f(),NOTICE_DROP_ALLOW_COMPOSITION:f(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:f()},v={[h.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[h.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[h.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[h.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[h.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[h.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[h.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[h.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[h.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[h.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function _(ue,...at){return e.format(v[ue],...at)}const w=s.CoreErrorCodes.__EXTEND_POINT__,E=e.incrementer(w),T={UNEXPECTED_RETURN_TYPE:w,INVALID_ARGUMENT:E(),MUST_BE_CALL_SETUP_TOP:E(),NOT_INSTALLED:E(),NOT_AVAILABLE_IN_LEGACY_MODE:E(),REQUIRED_VALUE:E(),INVALID_VALUE:E(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:E(),NOT_INSTALLED_WITH_PROVIDE:E(),UNEXPECTED_ERROR:E(),NOT_COMPATIBLE_LEGACY_VUE_I18N:E(),BRIDGE_SUPPORT_VUE_2_ONLY:E(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:E(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:E(),__EXTEND_POINT__:E()};function M(ue,...at){return s.createCompileError(ue,null,{messages:L,args:at})}const L={[T.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[T.INVALID_ARGUMENT]:"Invalid argument",[T.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[T.NOT_INSTALLED]:"Need to install with `app.use` function",[T.UNEXPECTED_ERROR]:"Unexpected error",[T.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[T.REQUIRED_VALUE]:"Required in value: {0}",[T.INVALID_VALUE]:"Invalid value",[T.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[T.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[T.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[T.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[T.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[T.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},P=e.makeSymbol("__translateVNode"),I=e.makeSymbol("__datetimeParts"),R=e.makeSymbol("__numberParts"),H=e.makeSymbol("__enableEmitter"),W=e.makeSymbol("__disableEmitter"),V=e.makeSymbol("__setPluralRules");e.makeSymbol("__intlifyMeta");const B=e.makeSymbol("__injectWithOption"),J=e.makeSymbol("__dispose"),Z="__VUE_I18N_BRIDGE__";function U(ue){if(!e.isObject(ue)||s.isMessageAST(ue))return ue;for(const at in ue)if(e.hasOwn(ue,at))if(!at.includes("."))e.isObject(ue[at])&&U(ue[at]);else{const Y=at.split("."),fe=Y.length-1;let pe=ue,ve=!1;for(let Ue=0;Ue<fe;Ue++){if(Y[Ue]==="__proto__")throw new Error(`unsafe key: ${Y[Ue]}`);if(Y[Ue]in pe||(pe[Y[Ue]]=e.create()),!e.isObject(pe[Y[Ue]])){e.warn(_(h.IGNORE_OBJ_FLATTEN,{key:Y[Ue]})),ve=!0;break}pe=pe[Y[Ue]]}if(ve||(s.isMessageAST(pe)?s.AST_NODE_PROPS_KEYS.includes(Y[fe])||delete ue[at]:(pe[Y[fe]]=ue[at],delete ue[at])),!s.isMessageAST(pe)){const Ue=pe[Y[fe]];e.isObject(Ue)&&U(Ue)}}return ue}function Q(ue,at){const{messages:Y,__i18n:fe,messageResolver:pe,flatJson:ve}=at,Ue=e.isPlainObject(Y)?Y:e.isArray(fe)?e.create():{[ue]:e.create()};if(e.isArray
|
|||
|
|
`).forEach(function(h){d=h.indexOf(":"),i=h.substring(0,d).trim().toLowerCase(),c=h.substring(d+1).trim(),!(!i||s[i]&&$we[i])&&(i==="set-cookie"?s[i]?s[i].push(c):s[i]=[c]:s[i]=s[i]?s[i]+", "+c:c)}),s},q0e=Symbol("internals");function OP(e){return e&&String(e).trim().toLowerCase()}function Lj(e){return e===!1||e==null?e:Jn.isArray(e)?e.map(Lj):String(e).replace(/[\r\n]+$/,"")}function jwe(e){const s=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=i.exec(e);)s[c[1]]=c[2];return s}const Uwe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Use(e,s,i,c,d){if(Jn.isFunction(c))return c.call(this,s,i);if(d&&(s=i),!!Jn.isString(s)){if(Jn.isString(c))return s.indexOf(c)!==-1;if(Jn.isRegExp(c))return c.test(s)}}function Wwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,i,c)=>i.toUpperCase()+c)}function qwe(e,s){const i=Jn.toCamelCase(" "+s);["get","set","has"].forEach(c=>{Object.defineProperty(e,c+i,{value:function(d,f,h){return this[c].call(this,s,d,f,h)},configurable:!0})})}let P2=class{constructor(s){s&&this.set(s)}set(s,i,c){const d=this;function f(v,_,w){const E=OP(_);if(!E)throw new Error("header name must be a non-empty string");const T=Jn.findKey(d,E);(!T||d[T]===void 0||w===!0||w===void 0&&d[T]!==!1)&&(d[T||_]=Lj(v))}const h=(v,_)=>Jn.forEach(v,(w,E)=>f(w,E,_));if(Jn.isPlainObject(s)||s instanceof this.constructor)h(s,i);else if(Jn.isString(s)&&(s=s.trim())&&!Uwe(s))h(zwe(s),i);else if(Jn.isObject(s)&&Jn.isIterable(s)){let v={},_,w;for(const E of s){if(!Jn.isArray(E))throw TypeError("Object iterator must return a key-value pair");v[w=E[0]]=(_=v[w])?Jn.isArray(_)?[..._,E[1]]:[_,E[1]]:E[1]}h(v,i)}else s!=null&&f(i,s,c);return this}get(s,i){if(s=OP(s),s){const c=Jn.findKey(this,s);if(c){const d=this[c];if(!i)return d;if(i===!0)return jwe(d);if(Jn.isFunction(i))return i.call(this,d,c);if(Jn.isRegExp(i))return i.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,i){if(s=OP(s),s){const c=Jn.findKey(this,s);return!!(c&&this[c]!==void 0&&(!i||Use(this,this[c],c,i)))}return!1}delete(s,i){const c=this;let d=!1;function f(h){if(h=OP(h),h){const v=Jn.findKey(c,h);v&&(!i||Use(c,c[v],v,i))&&(delete c[v],d=!0)}}return Jn.isArray(s)?s.forEach(f):f(s),d}clear(s){const i=Object.keys(this);let c=i.length,d=!1;for(;c--;){const f=i[c];(!s||Use(this,this[f],f,s,!0))&&(delete this[f],d=!0)}return d}normalize(s){const i=this,c={};return Jn.forEach(this,(d,f)=>{const h=Jn.findKey(c,f);if(h){i[h]=Lj(d),delete i[f];return}const v=s?Wwe(f):String(f).trim();v!==f&&delete i[f],i[v]=Lj(d),c[v]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const i=Object.create(null);return Jn.forEach(this,(c,d)=>{c!=null&&c!==!1&&(i[d]=s&&Jn.isArray(c)?c.join(", "):c)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,i])=>s+": "+i).join(`
|
|||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...i){const c=new this(s);return i.forEach(d=>c.set(d)),c}static accessor(s){const c=(this[q0e]=this[q0e]={accessors:{}}).accessors,d=this.prototype;function f(h){const v=OP(h);c[v]||(qwe(d,h),c[v]=!0)}return Jn.isArray(s)?s.forEach(f):f(s),this}};P2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Jn.reduceDescriptors(P2.prototype,({value:e},s)=>{let i=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(c){this[i]=c}}});Jn.freezeMethods(P2);function Wse(e,s){const i=this||Rk,c=s||i,d=P2.from(c.headers);let f=c.data;return Jn.forEach(e,function(v){f=v.call(i,f,d.normalize(),s?s.status:void 0)}),d.normalize(),f}function ofe(e){return!!(e&&e.__CANCEL__)}let Nk=class extends kr{constructor(s,i,c){super(s==null?"canceled":s,kr.ERR_CANCELED,i,c),this.name="CanceledError",this.__CANCEL__=!0}};function sfe(e,s,i){const c=i.config.validateStatus;!i.status||!c||c(i.status)?e(i):s(new kr("Request failed with status code "+i.status,[kr.ERR_BAD_REQUEST,kr.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Gwe(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function Zwe(e,s){e=e||10;const i=new Array(e),c=new Array(e);let d=0,f=0,h;return s=s!==void 0?s:1e3,function(_){const w=Date.now(),E=c[f];h||(h=w),i[d]=_,c[d]=w;let T=f,M=0;for(;T!==d;)M+=i[T++],T=T%e;if(d=(d+1)%e,d===f&&(f=(f+1)%e),w-h<s)return;const L=E&&w-E;return L?Math.round(M*1e3/L):void 0}}function Kwe(e,s){let i=0,c=1e3/s,d,f;const h=(w,E=Date.now())=>{i=E,d=null,f&&(clearTimeout(f),f=null),e(...w)};return[(...w)=>{const E=Date.now(),T=E-i;T>=c?h(w,E):(d=w,f||(f=setTimeout(()=>{f=null,h(d)},c-T)))},()=>d&&h(d)]}const QU=(e,s,i=3)=>{let c=0;const d=Zwe(50,250);return Kwe(f=>{const h=f.loaded,v=f.lengthComputable?f.total:void 0,_=h-c,w=d(_),E=h<=v;c=h;const T={loaded:h,total:v,progress:v?h/v:void 0,bytes:_,rate:w||void 0,estimated:w&&v&&E?(v-h)/w:void 0,event:f,lengthComputable:v!=null,[s?"download":"upload"]:!0};e(T)},i)},G0e=(e,s)=>{const i=e!=null;return[c=>s[0]({lengthComputable:i,total:e,loaded:c}),s[1]]},Z0e=e=>(...s)=>Jn.asap(()=>e(...s)),Ywe=l0.hasStandardBrowserEnv?((e,s)=>i=>(i=new URL(i,l0.origin),e.protocol===i.protocol&&e.host===i.host&&(s||e.port===i.port)))(new URL(l0.origin),l0.navigator&&/(msie|trident)/i.test(l0.navigator.userAgent)):()=>!0,Xwe=l0.hasStandardBrowserEnv?{write(e,s,i,c,d,f,h){if(typeof document=="undefined")return;const v=[`${e}=${encodeURIComponent(s)}`];Jn.isNumber(i)&&v.push(`expires=${new Date(i).toUTCString()}`),Jn.isString(c)&&v.push(`path=${c}`),Jn.isString(d)&&v.push(`domain=${d}`),f===!0&&v.push("secure"),Jn.isString(h)&&v.push(`SameSite=${h}`),document.cookie=v.join("; ")},read(e){if(typeof document=="undefined")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Jwe(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qwe(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}function rfe(e,s,i){let c=!Jwe(s);return e&&(c||i==!1)?Qwe(e,s):s}const K0e=e=>e instanceof P2?$e({},e):e;function ey(e,s){s=s||{};const i={};function c(w,E,T,M){return Jn.isPlainObject(w)&&Jn.isPlainObject(E)?Jn.merge.call({caseless:M},w,E):Jn.isPlainObject(E)?Jn.merge({},E):Jn.isArray(E)?E.slice():E}function d(w,E,T,M){if(Jn.isUndefined(E)){if(!Jn.isUndefined(w))return c(void 0,w,T,M)}else return c(w,E,T,M)}function f(w,E){if(!Jn.isUndefined(E))return c(void 0,E)}function h(w,E){if(Jn.isUndefined(E)){if(!Jn.isUndefined(w))return c(void 0,w)}else return c(void 0,E)}function v(w,E,T){if(T in s)return c(w,E);if(T in e)return c(void 0,w)}const _={url:f,method:f,data:f,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapt
|
|||
|
|
`+h.map(t2e).join(`
|
|||
|
|
`):" "+t2e(h[0]):"as no adapter specified";throw new kr("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return d}const cfe={getAdapter:uCe,adapters:Lce};function qse(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nk(null,e)}function n2e(e){return qse(e),e.headers=P2.from(e.headers),e.data=Wse.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cfe.getAdapter(e.adapter||Rk.adapter,e)(e).then(function(c){return qse(e),c.data=Wse.call(e,e.transformResponse,c),c.headers=P2.from(c.headers),c},function(c){return ofe(c)||(qse(e),c&&c.response&&(c.response.data=Wse.call(e,e.transformResponse,c.response),c.response.headers=P2.from(c.response.headers))),Promise.reject(c)})}const lfe="1.14.0",$W={};["object","boolean","number","function","string","symbol"].forEach((e,s)=>{$W[e]=function(c){return typeof c===e||"a"+(s<1?"n ":" ")+e}});const o2e={};$W.transitional=function(s,i,c){function d(f,h){return"[Axios v"+lfe+"] Transitional option '"+f+"'"+h+(c?". "+c:"")}return(f,h,v)=>{if(s===!1)throw new kr(d(h," has been removed"+(i?" in "+i:"")),kr.ERR_DEPRECATED);return i&&!o2e[h]&&(o2e[h]=!0),s?s(f,h,v):!0}};$W.spelling=function(s){return(i,c)=>!0};function dCe(e,s,i){if(typeof e!="object")throw new kr("options must be an object",kr.ERR_BAD_OPTION_VALUE);const c=Object.keys(e);let d=c.length;for(;d-- >0;){const f=c[d],h=s[f];if(h){const v=e[f],_=v===void 0||h(v,f,e);if(_!==!0)throw new kr("option "+f+" must be "+_,kr.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new kr("Unknown option "+f,kr.ERR_BAD_OPTION)}}const kj={assertOptions:dCe,validators:$W},Fd=kj.validators;let Rb=class{constructor(s){this.defaults=s||{},this.interceptors={request:new W0e,response:new W0e}}request(s,i){return ao(this,null,function*(){try{return yield this._request(s,i)}catch(c){if(c instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const f=d.stack?d.stack.replace(/^.+\n/,""):"";try{c.stack?f&&!String(c.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(c.stack+=`
|
|||
|
|
`+f):c.stack=f}catch(h){}}throw c}})}_request(s,i){typeof s=="string"?(i=i||{},i.url=s):i=s||{},i=ey(this.defaults,i);const{transitional:c,paramsSerializer:d,headers:f}=i;c!==void 0&&kj.assertOptions(c,{silentJSONParsing:Fd.transitional(Fd.boolean),forcedJSONParsing:Fd.transitional(Fd.boolean),clarifyTimeoutError:Fd.transitional(Fd.boolean),legacyInterceptorReqResOrdering:Fd.transitional(Fd.boolean)},!1),d!=null&&(Jn.isFunction(d)?i.paramsSerializer={serialize:d}:kj.assertOptions(d,{encode:Fd.function,serialize:Fd.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),kj.assertOptions(i,{baseUrl:Fd.spelling("baseURL"),withXsrfToken:Fd.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let h=f&&Jn.merge(f.common,f[i.method]);f&&Jn.forEach(["delete","get","head","post","put","patch","common"],P=>{delete f[P]}),i.headers=P2.concat(h,f);const v=[];let _=!0;this.interceptors.request.forEach(function(I){if(typeof I.runWhen=="function"&&I.runWhen(i)===!1)return;_=_&&I.synchronous;const R=i.transitional||Oce;R&&R.legacyInterceptorReqResOrdering?v.unshift(I.fulfilled,I.rejected):v.push(I.fulfilled,I.rejected)});const w=[];this.interceptors.response.forEach(function(I){w.push(I.fulfilled,I.rejected)});let E,T=0,M;if(!_){const P=[n2e.bind(this),void 0];for(P.unshift(...v),P.push(...w),M=P.length,E=Promise.resolve(i);T<M;)E=E.then(P[T++],P[T++]);return E}M=v.length;let L=i;for(;T<M;){const P=v[T++],I=v[T++];try{L=P(L)}catch(R){I.call(this,R);break}}try{E=n2e.call(this,L)}catch(P){return Promise.reject(P)}for(T=0,M=w.length;T<M;)E=E.then(w[T++],w[T++]);return E}getUri(s){s=ey(this.defaults,s);const i=rfe(s.baseURL,s.url,s.allowAbsoluteUrls);return tfe(i,s.params,s.paramsSerializer)}};Jn.forEach(["delete","get","head","options"],function(s){Rb.prototype[s]=function(i,c){return this.request(ey(c||{},{method:s,url:i,data:(c||{}).data}))}});Jn.forEach(["post","put","patch"],function(s){function i(c){return function(f,h,v){return this.request(ey(v||{},{method:s,headers:c?{"Content-Type":"multipart/form-data"}:{},url:f,data:h}))}}Rb.prototype[s]=i(),Rb.prototype[s+"Form"]=i(!0)});let fCe=class ufe{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(f){i=f});const c=this;this.promise.then(d=>{if(!c._listeners)return;let f=c._listeners.length;for(;f-- >0;)c._listeners[f](d);c._listeners=null}),this.promise.then=d=>{let f;const h=new Promise(v=>{c.subscribe(v),f=v}).then(d);return h.cancel=function(){c.unsubscribe(f)},h},s(function(f,h,v){c.reason||(c.reason=new Nk(f,h,v),i(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const i=this._listeners.indexOf(s);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const s=new AbortController,i=c=>{s.abort(c)};return this.subscribe(i),s.signal.unsubscribe=()=>this.unsubscribe(i),s.signal}static source(){let s;return{token:new ufe(function(d){s=d}),cancel:s}}};function mCe(e){return function(i){return e.apply(null,i)}}function pCe(e){return Jn.isObject(e)&&e.isAxiosError===!0}const zae={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,Misdirec
|
|||
|
|
`)>=0)return!1;return!0}function He(Ze,ue){var at;if(Ze.indent===" ")at=" ";else if(typeof Ze.indent=="number"&&Ze.indent>0)at=Q.call(Array(Ze.indent+1)," ");else return null;return{base:at,prev:Q.call(Array(ue+1),at)}}function ot(Ze,ue){if(Ze.length===0)return"";var at=`
|
|||
|
|
`+ue.prev+ue.base;return at+Q.call(Ze,","+at)+`
|
|||
|
|
`+ue.prev}function Ct(Ze,ue){var at=Oe(Ze),Y=[];if(at){Y.length=Ze.length;for(var fe=0;fe<Ze.length;fe++)Y[fe]=ct(Ze,fe)?ue(Ze[fe],Ze):""}var pe=typeof ae=="function"?ae(Ze):[],ve;if(Me){ve={};for(var Ue=0;Ue<pe.length;Ue++)ve["$"+pe[Ue]]=pe[Ue]}for(var st in Ze)ct(Ze,st)&&(at&&String(Number(st))===st&&st<Ze.length||Me&&ve["$"+st]instanceof Symbol||(Z.call(/[^\w$]/,st)?Y.push(ue(st,Ze)+": "+ue(Ze[st],Ze)):Y.push(st+": "+ue(Ze[st],Ze))));if(typeof ae=="function")for(var Fe=0;Fe<pe.length;Fe++)$.call(Ze,pe[Fe])&&Y.push("["+ue(pe[Fe])+"]: "+ue(Ze[pe[Fe]],Ze));return Y}return Zse}var Kse,a2e;function hCe(){if(a2e)return Kse;a2e=1;var e=zW(),s=ZE(),i=function(v,_,w){for(var E=v,T;(T=E.next)!=null;E=T)if(T.key===_)return E.next=T.next,w||(T.next=v.next,v.next=T),T},c=function(v,_){if(v){var w=i(v,_);return w&&w.value}},d=function(v,_,w){var E=i(v,_);E?E.value=w:v.next={key:_,next:v.next,value:w}},f=function(v,_){return v?!!i(v,_):!1},h=function(v,_){if(v)return i(v,_,!0)};return Kse=function(){var _,w={assert:function(E){if(!w.has(E))throw new s("Side channel does not contain "+e(E))},delete:function(E){var T=_&&_.next,M=h(_,E);return M&&T&&T===M&&(_=void 0),!!M},get:function(E){return c(_,E)},has:function(E){return f(_,E)},set:function(E,T){_||(_={next:void 0}),d(_,E,T)}};return w},Kse}var Yse,i2e;function ffe(){return i2e||(i2e=1,Yse=Object),Yse}var Xse,c2e;function gCe(){return c2e||(c2e=1,Xse=Error),Xse}var Jse,l2e;function vCe(){return l2e||(l2e=1,Jse=EvalError),Jse}var Qse,u2e;function bCe(){return u2e||(u2e=1,Qse=RangeError),Qse}var ere,d2e;function yCe(){return d2e||(d2e=1,ere=ReferenceError),ere}var tre,f2e;function _Ce(){return f2e||(f2e=1,tre=SyntaxError),tre}var nre,m2e;function xCe(){return m2e||(m2e=1,nre=URIError),nre}var ore,p2e;function wCe(){return p2e||(p2e=1,ore=Math.abs),ore}var sre,h2e;function CCe(){return h2e||(h2e=1,sre=Math.floor),sre}var rre,g2e;function ECe(){return g2e||(g2e=1,rre=Math.max),rre}var are,v2e;function SCe(){return v2e||(v2e=1,are=Math.min),are}var ire,b2e;function TCe(){return b2e||(b2e=1,ire=Math.pow),ire}var cre,y2e;function DCe(){return y2e||(y2e=1,cre=Math.round),cre}var lre,_2e;function MCe(){return _2e||(_2e=1,lre=Number.isNaN||function(s){return s!==s}),lre}var ure,x2e;function ACe(){if(x2e)return ure;x2e=1;var e=MCe();return ure=function(i){return e(i)||i===0?i:i<0?-1:1},ure}var dre,w2e;function OCe(){return w2e||(w2e=1,dre=Object.getOwnPropertyDescriptor),dre}var fre,C2e;function mfe(){if(C2e)return fre;C2e=1;var e=OCe();if(e)try{e([],"length")}catch(s){e=null}return fre=e,fre}var mre,E2e;function PCe(){if(E2e)return mre;E2e=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(s){e=!1}return mre=e,mre}var pre,S2e;function LCe(){return S2e||(S2e=1,pre=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},i=Symbol("test"),c=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var d=42;s[i]=d;for(var f in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==i||!Object.prototype.propertyIsEnumerable.call(s,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(s,i);if(v.value!==d||v.enumerable!==!0)return!1}return!0}),pre}var hre,T2e;function kCe(){if(T2e)return hre;T2e=1;var e=typeof Symbol!="undefined"&&Symbol,s=LCe();return hre=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},hre}var gre,D2e;function pfe(){return D2e||(D2e=1,gre=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),gre}var vre,M2e;function hfe(){if(M2e)return vre;M2e=1;var e=ffe();return vre=e.getPrototypeOf||null,vre}var bre,A2e;function VCe(){if(A2e)return bre;A2e=1;var e="Function.proto
|
|||
|
|
* Determine if an object is a Buffer
|
|||
|
|
*
|
|||
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|||
|
|
* @license MIT
|
|||
|
|
*/var Bre,Q2e;function cEe(){if(Q2e)return Bre;Q2e=1,Bre=function(i){return i!=null&&(e(i)||s(i)||!!i._isBuffer)};function e(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function s(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&e(i.slice(0,0))}return Bre}var qHe=Vj.exports,e4e;function lEe(){return e4e||(e4e=1,(function(){var e=iEe(),s=J2e().utf8,i=cEe(),c=J2e().bin,d=function(f,h){f.constructor==String?h&&h.encoding==="binary"?f=c.stringToBytes(f):f=s.stringToBytes(f):i(f)?f=Array.prototype.slice.call(f,0):!Array.isArray(f)&&f.constructor!==Uint8Array&&(f=f.toString());for(var v=e.bytesToWords(f),_=f.length*8,w=1732584193,E=-271733879,T=-1732584194,M=271733878,L=0;L<v.length;L++)v[L]=(v[L]<<8|v[L]>>>24)&16711935|(v[L]<<24|v[L]>>>8)&4278255360;v[_>>>5]|=128<<_%32,v[(_+64>>>9<<4)+14]=_;for(var P=d._ff,I=d._gg,R=d._hh,H=d._ii,L=0;L<v.length;L+=16){var W=w,V=E,B=T,J=M;w=P(w,E,T,M,v[L+0],7,-680876936),M=P(M,w,E,T,v[L+1],12,-389564586),T=P(T,M,w,E,v[L+2],17,606105819),E=P(E,T,M,w,v[L+3],22,-1044525330),w=P(w,E,T,M,v[L+4],7,-176418897),M=P(M,w,E,T,v[L+5],12,1200080426),T=P(T,M,w,E,v[L+6],17,-1473231341),E=P(E,T,M,w,v[L+7],22,-45705983),w=P(w,E,T,M,v[L+8],7,1770035416),M=P(M,w,E,T,v[L+9],12,-1958414417),T=P(T,M,w,E,v[L+10],17,-42063),E=P(E,T,M,w,v[L+11],22,-1990404162),w=P(w,E,T,M,v[L+12],7,1804603682),M=P(M,w,E,T,v[L+13],12,-40341101),T=P(T,M,w,E,v[L+14],17,-1502002290),E=P(E,T,M,w,v[L+15],22,1236535329),w=I(w,E,T,M,v[L+1],5,-165796510),M=I(M,w,E,T,v[L+6],9,-1069501632),T=I(T,M,w,E,v[L+11],14,643717713),E=I(E,T,M,w,v[L+0],20,-373897302),w=I(w,E,T,M,v[L+5],5,-701558691),M=I(M,w,E,T,v[L+10],9,38016083),T=I(T,M,w,E,v[L+15],14,-660478335),E=I(E,T,M,w,v[L+4],20,-405537848),w=I(w,E,T,M,v[L+9],5,568446438),M=I(M,w,E,T,v[L+14],9,-1019803690),T=I(T,M,w,E,v[L+3],14,-187363961),E=I(E,T,M,w,v[L+8],20,1163531501),w=I(w,E,T,M,v[L+13],5,-1444681467),M=I(M,w,E,T,v[L+2],9,-51403784),T=I(T,M,w,E,v[L+7],14,1735328473),E=I(E,T,M,w,v[L+12],20,-1926607734),w=R(w,E,T,M,v[L+5],4,-378558),M=R(M,w,E,T,v[L+8],11,-2022574463),T=R(T,M,w,E,v[L+11],16,1839030562),E=R(E,T,M,w,v[L+14],23,-35309556),w=R(w,E,T,M,v[L+1],4,-1530992060),M=R(M,w,E,T,v[L+4],11,1272893353),T=R(T,M,w,E,v[L+7],16,-155497632),E=R(E,T,M,w,v[L+10],23,-1094730640),w=R(w,E,T,M,v[L+13],4,681279174),M=R(M,w,E,T,v[L+0],11,-358537222),T=R(T,M,w,E,v[L+3],16,-722521979),E=R(E,T,M,w,v[L+6],23,76029189),w=R(w,E,T,M,v[L+9],4,-640364487),M=R(M,w,E,T,v[L+12],11,-421815835),T=R(T,M,w,E,v[L+15],16,530742520),E=R(E,T,M,w,v[L+2],23,-995338651),w=H(w,E,T,M,v[L+0],6,-198630844),M=H(M,w,E,T,v[L+7],10,1126891415),T=H(T,M,w,E,v[L+14],15,-1416354905),E=H(E,T,M,w,v[L+5],21,-57434055),w=H(w,E,T,M,v[L+12],6,1700485571),M=H(M,w,E,T,v[L+3],10,-1894986606),T=H(T,M,w,E,v[L+10],15,-1051523),E=H(E,T,M,w,v[L+1],21,-2054922799),w=H(w,E,T,M,v[L+8],6,1873313359),M=H(M,w,E,T,v[L+15],10,-30611744),T=H(T,M,w,E,v[L+6],15,-1560198380),E=H(E,T,M,w,v[L+13],21,1309151649),w=H(w,E,T,M,v[L+4],6,-145523070),M=H(M,w,E,T,v[L+11],10,-1120210379),T=H(T,M,w,E,v[L+2],15,718787259),E=H(E,T,M,w,v[L+9],21,-343485551),w=w+W>>>0,E=E+V>>>0,T=T+B>>>0,M=M+J>>>0}return e.endian([w,E,T,M])};d._ff=function(f,h,v,_,w,E,T){var M=f+(h&v|~h&_)+(w>>>0)+T;return(M<<E|M>>>32-E)+h},d._gg=function(f,h,v,_,w,E,T){var M=f+(h&_|v&~_)+(w>>>0)+T;return(M<<E|M>>>32-E)+h},d._hh=function(f,h,v,_,w,E,T){var M=f+(h^v^_)+(w>>>0)+T;return(M<<E|M>>>32-E)+h},d._ii=function(f,h,v,_,w,E,T){var M=f+(v^(h|~_))+(w>>>0)+T;return(M<<E|M>>>32-E)+h},d._blocksize=16,d._digestsize=16,Vj.exports=function(f,h){if(f==null)throw new Error("Illegal argument "+f);var v=e.wordsToBytes(d(f,h));return h&&h.asBytes?v:h&&h.asString?c.bytesToString(v):e.bytesToHex(v)}})()),Vj.exports}var uEe=lEe();const dEe=Xd(uEe),fEe="dd05f1c54d63749eda95f9fa6d49v442a";class Wae{static sortAsc(s){let i=new Array,c=0;for(let h in s)i[c]=h,c++;let d=i.sort(),f={};for(let h in d)f[d[h]]=s[d[h]];return f}static getSign(s,i,c){let d=this.parseQueryString(s),f=this.mergeObject(d,i);c&&(f=this.mergeObject(f,c));let h=this.sortAsc(f);return de
|
|||
|
|
* (c) Iconify
|
|||
|
|
*
|
|||
|
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|||
|
|
* files at https://github.com/iconify/iconify
|
|||
|
|
*
|
|||
|
|
* Licensed under MIT.
|
|||
|
|
*
|
|||
|
|
* @license MIT
|
|||
|
|
* @version 3.1.1
|
|||
|
|
*/const nme=Object.freeze({left:0,top:0,width:16,height:16}),nW=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),jk=Object.freeze($e($e({},nme),nW)),Qae=Object.freeze(gn($e({},jk),{body:"",hidden:!1}));function uTe(e,s){const i={};!e.hFlip!=!s.hFlip&&(i.hFlip=!0),!e.vFlip!=!s.vFlip&&(i.vFlip=!0);const c=((e.rotate||0)+(s.rotate||0))%4;return c&&(i.rotate=c),i}function p4e(e,s){const i=uTe(e,s);for(const c in Qae)c in nW?c in e&&!(c in i)&&(i[c]=nW[c]):c in s?i[c]=s[c]:c in e&&(i[c]=e[c]);return i}function dTe(e,s){const i=e.icons,c=e.aliases||Object.create(null),d=Object.create(null);function f(h){if(i[h])return d[h]=[];if(!(h in d)){d[h]=null;const v=c[h]&&c[h].parent,_=v&&f(v);_&&(d[h]=[v].concat(_))}return d[h]}return(s||Object.keys(i).concat(Object.keys(c))).forEach(f),d}function fTe(e,s,i){const c=e.icons,d=e.aliases||Object.create(null);let f={};function h(v){f=p4e(c[v]||d[v],f)}return h(s),i.forEach(h),p4e(e,f)}function ome(e,s){const i=[];if(typeof e!="object"||typeof e.icons!="object")return i;e.not_found instanceof Array&&e.not_found.forEach(d=>{s(d,null),i.push(d)});const c=dTe(e);for(const d in c){const f=c[d];f&&(s(d,fTe(e,d,f)),i.push(d))}return i}const jL=/^[a-z0-9]+(-[a-z0-9]+)*$/,YE=(e,s,i,c="")=>{const d=e.split(":");if(e.slice(0,1)==="@"){if(d.length<2||d.length>3)return null;c=d.shift().slice(1)}if(d.length>3||!d.length)return null;if(d.length>1){const v=d.pop(),_=d.pop(),w={provider:d.length>0?d[0]:c,prefix:_,name:v};return s&&!Bj(w)?null:w}const f=d[0],h=f.split("-");if(h.length>1){const v={provider:c,prefix:h.shift(),name:h.join("-")};return s&&!Bj(v)?null:v}if(i&&c===""){const v={provider:c,prefix:"",name:f};return s&&!Bj(v,i)?null:v}return null},Bj=(e,s)=>e?!!((e.provider===""||e.provider.match(jL))&&(s&&e.prefix===""||e.prefix.match(jL))&&e.name.match(jL)):!1,mTe=$e({provider:"",aliases:{},not_found:{}},nme);function Zre(e,s){for(const i in s)if(i in e&&typeof e[i]!=typeof s[i])return!1;return!0}function sme(e){if(typeof e!="object"||e===null)return null;const s=e;if(typeof s.prefix!="string"||!e.icons||typeof e.icons!="object"||!Zre(e,mTe))return null;const i=s.icons;for(const d in i){const f=i[d];if(!d.match(jL)||typeof f.body!="string"||!Zre(f,Qae))return null}const c=s.aliases||Object.create(null);for(const d in c){const f=c[d],h=f.parent;if(!d.match(jL)||typeof h!="string"||!i[h]&&!c[h]||!Zre(f,Qae))return null}return s}const oW=Object.create(null);function pTe(e,s){return{provider:e,prefix:s,icons:Object.create(null),missing:new Set}}function uf(e,s){const i=oW[e]||(oW[e]=Object.create(null));return i[s]||(i[s]=pTe(e,s))}function Xce(e,s){return sme(s)?ome(s,(i,c)=>{c?e.icons[i]=c:e.missing.add(i)}):[]}function hTe(e,s,i){try{if(typeof i.body=="string")return e.icons[s]=$e({},i),!0}catch(c){}return!1}function gTe(e,s){let i=[];return(typeof e=="string"?[e]:Object.keys(oW)).forEach(d=>{(typeof d=="string"&&typeof s=="string"?[s]:Object.keys(oW[d]||{})).forEach(h=>{const v=uf(d,h);i=i.concat(Object.keys(v.icons).map(_=>(d!==""?"@"+d+":":"")+h+":"+_))})}),i}let wk=!1;function vTe(e){return typeof e=="boolean"&&(wk=e),wk}function Uk(e){const s=typeof e=="string"?YE(e,!0,wk):e;if(s){const i=uf(s.provider,s.prefix),c=s.name;return i.icons[c]||(i.missing.has(c)?null:void 0)}}function rme(e,s){const i=YE(e,!0,wk);if(!i)return!1;const c=uf(i.provider,i.prefix);return hTe(c,i.name,s)}function ame(e,s){if(typeof e!="object")return!1;if(typeof s!="string"&&(s=e.provider||""),wk&&!s&&!e.prefix){let d=!1;return sme(e)&&(e.prefix="",ome(e,(f,h)=>{h&&rme(f,h)&&(d=!0)})),d}const i=e.prefix;if(!Bj({provider:s,prefix:i,name:"a"}))return!1;const c=uf(s,i);return!!Xce(c,e)}function bTe(e){return!!Uk(e)}function yTe(e){const s=Uk(e);return s?$e($e({},jk),s):null}const ime=Object.freeze({width:null,height:null}),cme=Object.freeze($e($e({},ime),nW)),_Te=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xTe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function eie(e,s,i){if(s===1)return e;if(i=i||100,typeof e=="number")return Math.ceil(e*s*i)/i;if(typeof e!="string")return e;const c=e.split(_Te);if(c===null||!c.length)return e;const d=[];let f=c.shift(),h=
|
|||
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*/function E4e(e){return Object.prototype.toString.call(e)==="[object Object]"}function VDe(e){var s,i;return E4e(e)===!1?!1:(s=e.constructor,s===void 0?!0:(i=s.prototype,!(E4e(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}function qL(){return qL=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c])}return e},qL.apply(this,arguments)}function Nme(e,s){if(e==null)return{};var i={};for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){if(s.indexOf(c)>=0)continue;i[c]=e[c]}return i}const IDe={silent:!1,logLevel:"warn"},RDe=["validator"],Fme=Object.prototype,Bme=Fme.toString,NDe=Fme.hasOwnProperty,Hme=/^\s*function (\w+)/;function S4e(e){var s;const i=(s=e==null?void 0:e.type)!==null&&s!==void 0?s:e;if(i){const c=i.toString().match(Hme);return c?c[1]:""}return""}const ny=VDe;function FDe(){}let i1=FDe;const IE=(e,s)=>NDe.call(e,s),BDe=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},RE=Array.isArray||function(e){return Bme.call(e)==="[object Array]"},NE=e=>Bme.call(e)==="[object Function]",aW=(e,s)=>ny(e)&&IE(e,"_vueTypes_name")&&(!s||e._vueTypes_name===s),$me=e=>ny(e)&&(IE(e,"type")||["_vueTypes_name","validator","default","required"].some(s=>IE(e,s)));function nle(e,s){return Object.defineProperty(e.bind(s),"__original",{value:e})}function dy(e,s,i=!1){let c,d=!0,f="";c=ny(e)?e:{type:e};const h=aW(c)?c._vueTypes_name+" - ":"";if($me(c)&&c.type!==null){if(c.type===void 0||c.type===!0||!c.required&&s==null)return d;RE(c.type)?(d=c.type.some(v=>dy(v,s,!0)===!0),f=c.type.map(v=>S4e(v)).join(" or ")):(f=S4e(c),d=f==="Array"?RE(s):f==="Object"?ny(s):f==="String"||f==="Number"||f==="Boolean"||f==="Function"?(function(v){if(v==null)return"";const _=v.constructor.toString().match(Hme);return _?_[1].replace(/^Async/,""):""})(s)===f:s instanceof c.type)}if(!d){const v=`${h}value "${s}" should be of type "${f}"`;return i===!1?(i1(v),!1):v}if(IE(c,"validator")&&NE(c.validator)){const v=i1,_=[];if(i1=w=>{_.push(w)},d=c.validator(s),i1=v,!d){const w=(_.length>1?"* ":"")+_.join(`
|
|||
|
|
* `);return _.length=0,i===!1?(i1(w),d):w}}return d}function H4(e,s){const i=Object.defineProperties(s,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(d){return d===void 0?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(IE(this,"default")&&delete this.default,this):NE(d)||dy(this,d,!0)===!0?(this.default=RE(d)?()=>[...d]:ny(d)?()=>Object.assign({},d):d,this):(i1(`${this._vueTypes_name} - invalid default value: "${d}"`),this)}}}),{validator:c}=i;return NE(c)&&(i.validator=nle(c,i)),i}function Zd(e,s){const i=H4(e,s);return Object.defineProperty(i,"validate",{value(c){return NE(this.validator)&&i1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|||
|
|
${JSON.stringify(this)}`),this.validator=nle(c,this),this}})}function T4e(e,s,i){const c=(function(_){const w={};return Object.getOwnPropertyNames(_).forEach(E=>{w[E]=Object.getOwnPropertyDescriptor(_,E)}),Object.defineProperties({},w)})(s);if(c._vueTypes_name=e,!ny(i))return c;const{validator:d}=i,f=Nme(i,RDe);if(NE(d)){let{validator:_}=c;_&&(_=(v=(h=_).__original)!==null&&v!==void 0?v:h),c.validator=nle(_?function(w){return _.call(this,w)&&d.call(this,w)}:d,c)}var h,v;return Object.assign(c,f)}function XW(e){return e.replace(/^(?!\s*$)/gm," ")}const HDe=()=>Zd("any",{}),$De=()=>Zd("function",{type:Function}),D4e=()=>Zd("boolean",{type:Boolean}),zDe=()=>Zd("string",{type:String}),jDe=()=>Zd("number",{type:Number}),UDe=()=>Zd("array",{type:Array}),WDe=()=>Zd("object",{type:Object}),qDe=()=>H4("integer",{type:Number,validator(e){const s=BDe(e);return s===!1&&i1(`integer - "${e}" is not an integer`),s}}),GDe=()=>H4("symbol",{validator(e){const s=typeof e=="symbol";return s===!1&&i1(`symbol - invalid value "${e}"`),s}}),ZDe=()=>Object.defineProperty({type:null,validator(e){const s=e===null;return s===!1&&i1("nullable - value should be null"),s}},"_vueTypes_name",{value:"nullable"});function KDe(e,s="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return H4(e.name||"<<anonymous function>>",{type:null,validator(i){const c=e(i);return c||i1(`${this._vueTypes_name} - ${s}`),c}})}function YDe(e){if(!RE(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const s=`oneOf - value should be one of "${e.map(c=>typeof c=="symbol"?c.toString():c).join('", "')}".`,i={validator(c){const d=e.indexOf(c)!==-1;return d||i1(s),d}};if(e.indexOf(null)===-1){const c=e.reduce((d,f)=>{if(f!=null){const h=f.constructor;d.indexOf(h)===-1&&d.push(h)}return d},[]);c.length>0&&(i.type=c)}return H4("oneOf",i)}function XDe(e){if(!RE(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let s=!1,i=!1,c=[];for(let f=0;f<e.length;f+=1){const h=e[f];if($me(h)){if(NE(h.validator)&&(s=!0),aW(h,"oneOf")&&h.type){c=c.concat(h.type);continue}if(aW(h,"nullable")){i=!0;continue}if(h.type===!0||!h.type){i1('oneOfType - invalid usage of "true" and "null" as types.');continue}c=c.concat(h.type)}else c.push(h)}c=c.filter((f,h)=>c.indexOf(f)===h);const d=i===!1&&c.length>0?c:null;return H4("oneOfType",s?{type:d,validator(f){const h=[],v=e.some(_=>{const w=dy(_,f,!0);return typeof w=="string"&&h.push(w),w===!0});return v||i1(`oneOfType - provided value does not match any of the ${h.length} passed-in validators:
|
|||
|
|
${XW(h.join(`
|
|||
|
|
`))}`),v}}:{type:d})}function JDe(e){return H4("arrayOf",{type:Array,validator(s){let i="";const c=s.every(d=>(i=dy(e,d,!0),i===!0));return c||i1(`arrayOf - value validation error:
|
|||
|
|
${XW(i)}`),c}})}function QDe(e){return H4("instanceOf",{type:e})}function eMe(e){return H4("objectOf",{type:Object,validator(s){let i="";const c=Object.keys(s).every(d=>(i=dy(e,s[d],!0),i===!0));return c||i1(`objectOf - value validation error:
|
|||
|
|
${XW(i)}`),c}})}function tMe(e){const s=Object.keys(e),i=s.filter(d=>{var f;return!((f=e[d])===null||f===void 0||!f.required)}),c=H4("shape",{type:Object,validator(d){if(!ny(d))return!1;const f=Object.keys(d);if(i.length>0&&i.some(h=>f.indexOf(h)===-1)){const h=i.filter(v=>f.indexOf(v)===-1);return i1(h.length===1?`shape - required property "${h[0]}" is not defined.`:`shape - required properties "${h.join('", "')}" are not defined.`),!1}return f.every(h=>{if(s.indexOf(h)===-1)return this._vueTypes_isLoose===!0||(i1(`shape - shape definition does not include a "${h}" property. Allowed keys: "${s.join('", "')}".`),!1);const v=dy(e[h],d[h],!0);return typeof v=="string"&&i1(`shape - "${h}" property validation error:
|
|||
|
|
${XW(v)}`),v===!0})}});return Object.defineProperty(c,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(c,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),c}const nMe=["name","validate","getter"],oMe=(e=>((e=class{static get any(){return HDe()}static get func(){return $De().def(this.defaults.func)}static get bool(){return this.defaults.bool===void 0?D4e():D4e().def(this.defaults.bool)}static get string(){return zDe().def(this.defaults.string)}static get number(){return jDe().def(this.defaults.number)}static get array(){return UDe().def(this.defaults.array)}static get object(){return WDe().def(this.defaults.object)}static get integer(){return qDe().def(this.defaults.integer)}static get symbol(){return GDe()}static get nullable(){return ZDe()}static extend(s){if(i1("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),RE(s))return s.forEach(_=>this.extend(_)),this;const{name:i,validate:c=!1,getter:d=!1}=s,f=Nme(s,nMe);if(IE(this,i))throw new TypeError(`[VueTypes error]: Type "${i}" already defined`);const{type:h}=f;if(aW(h))return delete f.type,Object.defineProperty(this,i,d?{get:()=>T4e(i,h,f)}:{value(..._){const w=T4e(i,h,f);return w.validator&&(w.validator=w.validator.bind(w,..._)),w}});let v;return v=d?{get(){const _=Object.assign({},f);return c?Zd(i,_):H4(i,_)},enumerable:!0}:{value(..._){const w=Object.assign({},f);let E;return E=c?Zd(i,w):H4(i,w),w.validator&&(E.validator=w.validator.bind(E,..._)),E},enumerable:!0},Object.defineProperty(this,i,v)}}).defaults={},e.sensibleDefaults=void 0,e.config=IDe,e.custom=KDe,e.oneOf=YDe,e.instanceOf=QDe,e.oneOfType=XDe,e.arrayOf=JDe,e.objectOf=eMe,e.shape=tMe,e.utils={validate:(s,i)=>dy(i,s,!0)===!0,toType:(s,i,c=!1)=>c?Zd(s,i):H4(s,i)},e))();function zme(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var s;return(s=class extends oMe{static get sensibleDefaults(){return qL({},this.defaults)}static set sensibleDefaults(i){this.defaults=i!==!1?qL({},i!==!0?i:e):{}}}).defaults=qL({},e),s}class w$e extends zme(){}const sMe=zme({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});class Ko extends sMe{static get style(){return Zd("style",{type:[String,Object]})}static get VNodeChild(){return Zd("VNodeChild",{type:void 0})}}const rMe=Object.freeze(Object.defineProperty({__proto__:null,propTypes:Ko},Symbol.toStringTag,{value:"Module"})),M4e="|svg",aMe=Cn({name:"Icon",components:{SvgIcon:xk},props:{icon:Ko.string,color:Ko.string,size:{type:[String,Number],default:16},spin:Ko.bool.def(!1),prefix:Ko.string.def("")},setup(e){const s=Tt(null),i=be(()=>{var v;return(v=e.icon)==null?void 0:v.endsWith(M4e)}),c=be(()=>e.icon.replace(M4e,"")),d=be(()=>`${e.prefix?e.prefix+":":""}${e.icon}`),f=()=>ao(null,null,function*(){if(fn(i))return;const v=fn(s);if(!v)return;yield mn();const _=fn(d);if(!_)return;const w=Rme.renderSVG(_,{});if(w)v.textContent="",v.appendChild(w);else{const E=document.createElement("span");E.className="iconify",E.dataset.icon=_,v.textContent="",v.appendChild(E)}}),h=be(()=>{const{size:v,color:_}=e;let w=v;return u0(v)&&(w=parseInt(v,10)),{fontSize:`${w}px`,color:_,display:"inline-flex"}});return En(()=>e.icon,f,{flush:"post"}),Rr(f),{elRef:s,getWrapStyle:h,isSvgIcon:i,getSvgIcon:c}}});function iMe(e,s,i,c,d,f){const h=Ps("SvgIcon");return e.isSvgIcon?(Wo(),vr(h,{key:0,size:e.size,name:e.getSvgIcon,class:Ma([e.$attrs.class,"anticon"]),spin:e.spin},null,8,["size","name","class","spin"])):(Wo(),da("span",{key:1,ref:"elRef",class:Ma([e.$attrs.class,"app-iconify anticon",e.spin&&"app-iconify-spin"]),style:sy(e.getWrapStyle)},null,6))}const il=jc(aMe,[["render",iMe]]),Xre=["ant-design:account-book-filled","ant-design:account-book-outlined","ant-design:account-book-twotone","ant-design:aim-outlined","ant-design:alert-filled","ant-design:alert-outlined","ant-design:alert-twotone","ant-design:alibaba-outlined","ant-design:align-center-outlined","ant-design:ali
|
|||
|
|
* @license MIT */var hOe=AL.exports,U4e;function gOe(){return U4e||(U4e=1,(function(e,s){(function(i,c){e.exports=c()})(hOe,function(){var i={};i.version="0.2.0";var c=i.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};i.configure=function(P){var I,R;for(I in P)R=P[I],R!==void 0&&P.hasOwnProperty(I)&&(c[I]=R);return this},i.status=null,i.set=function(P){var I=i.isStarted();P=d(P,c.minimum,1),i.status=P===1?null:P;var R=i.render(!I),H=R.querySelector(c.barSelector),W=c.speed,V=c.easing;return R.offsetWidth,v(function(B){c.positionUsing===""&&(c.positionUsing=i.getPositioningCSS()),_(H,h(P,W,V)),P===1?(_(R,{transition:"none",opacity:1}),R.offsetWidth,setTimeout(function(){_(R,{transition:"all "+W+"ms linear",opacity:0}),setTimeout(function(){i.remove(),B()},W)},W)):setTimeout(B,W)}),this},i.isStarted=function(){return typeof i.status=="number"},i.start=function(){i.status||i.set(0);var P=function(){setTimeout(function(){i.status&&(i.trickle(),P())},c.trickleSpeed)};return c.trickle&&P(),this},i.done=function(P){return!P&&!i.status?this:i.inc(.3+.5*Math.random()).set(1)},i.inc=function(P){var I=i.status;return I?(typeof P!="number"&&(P=(1-I)*d(Math.random()*I,.1,.95)),I=d(I+P,0,.994),i.set(I)):i.start()},i.trickle=function(){return i.inc(Math.random()*c.trickleRate)},(function(){var P=0,I=0;i.promise=function(R){return!R||R.state()==="resolved"?this:(I===0&&i.start(),P++,I++,R.always(function(){I--,I===0?(P=0,i.done()):i.set((P-I)/P)}),this)}})(),i.render=function(P){if(i.isRendered())return document.getElementById("nprogress");E(document.documentElement,"nprogress-busy");var I=document.createElement("div");I.id="nprogress",I.innerHTML=c.template;var R=I.querySelector(c.barSelector),H=P?"-100":f(i.status||0),W=document.querySelector(c.parent),V;return _(R,{transition:"all 0 linear",transform:"translate3d("+H+"%,0,0)"}),c.showSpinner||(V=I.querySelector(c.spinnerSelector),V&&L(V)),W!=document.body&&E(W,"nprogress-custom-parent"),W.appendChild(I),I},i.remove=function(){T(document.documentElement,"nprogress-busy"),T(document.querySelector(c.parent),"nprogress-custom-parent");var P=document.getElementById("nprogress");P&&L(P)},i.isRendered=function(){return!!document.getElementById("nprogress")},i.getPositioningCSS=function(){var P=document.body.style,I="WebkitTransform"in P?"Webkit":"MozTransform"in P?"Moz":"msTransform"in P?"ms":"OTransform"in P?"O":"";return I+"Perspective"in P?"translate3d":I+"Transform"in P?"translate":"margin"};function d(P,I,R){return P<I?I:P>R?R:P}function f(P){return(-1+P)*100}function h(P,I,R){var H;return c.positionUsing==="translate3d"?H={transform:"translate3d("+f(P)+"%,0,0)"}:c.positionUsing==="translate"?H={transform:"translate("+f(P)+"%,0)"}:H={"margin-left":f(P)+"%"},H.transition="all "+I+"ms "+R,H}var v=(function(){var P=[];function I(){var R=P.shift();R&&R(I)}return function(R){P.push(R),P.length==1&&I()}})(),_=(function(){var P=["Webkit","O","Moz","ms"],I={};function R(B){return B.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(J,Z){return Z.toUpperCase()})}function H(B){var J=document.body.style;if(B in J)return B;for(var Z=P.length,U=B.charAt(0).toUpperCase()+B.slice(1),Q;Z--;)if(Q=P[Z]+U,Q in J)return Q;return B}function W(B){return B=R(B),I[B]||(I[B]=H(B))}function V(B,J,Z){J=W(J),B.style[J]=Z}return function(B,J){var Z=arguments,U,Q;if(Z.length==2)for(U in J)Q=J[U],Q!==void 0&&J.hasOwnProperty(U)&&V(B,U,Q);else V(B,Z[1],Z[2])}})();function w(P,I){var R=typeof P=="string"?P:M(P);return R.indexOf(" "+I+" ")>=0}function E(P,I){var R=M(P),H=R+I;w(R,I)||(P.className=H.substring(1))}function T(P,I){var R=M(P),H;w(P,I)&&(H=R.replace(" "+I+" "," "),P.className=H.substring(1,H.length-1))}function M(P){return(" "+(P.className||"")+" ").replace(/\s+/gi," ")}function L(P){P&&P.parentNode&&P.parentNode.
|
|||
|
|
`||t==="\r",sg=(t,o)=>o<t.length&&o>=0?og(t[o]):!1,ti=(t,o=4,r=!0,l=!0)=>{const m=Wi(" ",o),b=t.replace(/\t/g,m);return Yt(b,(N,z)=>Mf(z)||z===Vn?N.pcIsSpace||N.str===""&&r||N.str.length===b.length-1&&l||sg(b,N.str.length+1)?{pcIsSpace:!1,str:N.str+Vn}:{pcIsSpace:!0,str:N.str+" "}:{pcIsSpace:og(z),str:N.str+z},{pcIsSpace:!1,str:""}).str},Ey=(t,o)=>{const r=Et.fromDom(o),l=Et.fromDom(t);return V5(l,"pre,code",le(qr,r))},ad=(t,o)=>io(t)&&hu(t.data)&&!Ey(t,o),V8=t=>Mo(t)&&t.nodeName==="A"&&!t.hasAttribute("href")&&(t.hasAttribute("name")||t.hasAttribute("id")),_0=(t,o)=>g1(t)&&!ad(t,o)||V8(t)||x0(t),x0=eg("data-mce-bookmark"),$1=eg("data-mce-bogus"),I8=uu("data-mce-bogus","all"),Af=(t,o)=>{let r=0;if(_0(t,t))return!1;{let l=t.firstChild;if(!l)return!0;const m=new Ii(l,t);do{if(o){if(I8(l)){l=m.next(!0);continue}if($1(l)){l=m.next();continue}}if($a(l)){r++,l=m.next();continue}if(_0(l,t))return!1;l=m.next()}while(l);return r<=1}},Ri=(t,o=!0)=>Af(t.dom,o),s3="data-mce-block",rg=t=>Ke(Y(t),o=>!/[A-Z]/.test(o)),r3=t=>rg(t).join(","),R8=(t,o)=>ie(o.querySelector(t))?(o.setAttribute(s3,"true"),o.getAttribute("data-mce-selected")==="inline-boundary"&&o.removeAttribute("data-mce-selected"),!0):(o.removeAttribute(s3),!1),ag=(t,o)=>{const r=r3(t.getTransparentElements()),l=r3(t.getBlockElements());return Ke(o.querySelectorAll(r),m=>R8(l,m))},a3=(t,o)=>{var r;const l=o?"lastChild":"firstChild";for(let m=t[l];m;m=m[l])if(Ri(Et.fromDom(m))){(r=m.parentNode)===null||r===void 0||r.removeChild(m);return}},Z2=(t,o)=>{const r=document.createRange(),l=t.parentNode;if(l){r.setStartBefore(t),r.setEndBefore(o);const m=r.extractContents();a3(m,!0),r.setStartAfter(o),r.setEndAfter(t);const b=r.extractContents();a3(b,!1),Ri(Et.fromDom(m))||l.insertBefore(m,t),Ri(Et.fromDom(o))||l.insertBefore(o,t),Ri(Et.fromDom(b))||l.insertBefore(b,t),l.removeChild(t)}},e1=(t,o,r)=>{const l=t.getBlockElements(),m=Et.fromDom(o),b=N=>na(N)in l,C=N=>qr(N,m);ct(L5(r),N=>{_e(N,b,C).each(z=>{const ee=hy(N,xe=>b(xe)&&!t.isValidChild(na(z),na(xe)));if(ee.length>0){const xe=x8(z);ct(ee,ye=>{_e(ye,b,C).each(Ae=>{Z2(Ae.dom,ye.dom)})}),xe.each(ye=>ag(t,ye.dom))}})})},K2=(t,o,r)=>{ct([...r,...id(t,o)?[o]:[]],l=>ct(Gc(Et.fromDom(l),l.nodeName.toLowerCase()),m=>{Sy(t,m.dom)&&v0(m)}))},o2=(t,o)=>{const r=ag(t,o);e1(t,o,r),K2(t,o,r)},ig=(t,o)=>{if(N8(t,o)){const r=r3(t.getBlockElements());R8(r,o)}},U5=(t,o,r)=>{const l=b=>qr(b,Et.fromDom(o)),m=w8(Et.fromDom(r),l);He(m,m.length-2).filter(fa).fold(()=>o2(t,o),b=>o2(t,b.dom))},Of=t=>t.hasAttribute(s3),W5=(t,o)=>Zt(t.getTransparentElements(),o),N8=(t,o)=>Mo(o)&&W5(t,o.nodeName),id=(t,o)=>N8(t,o)&&Of(o),Sy=(t,o)=>N8(t,o)&&!Of(o),Pf=(t,o)=>o.type===1&&W5(t,o.name)&&V(o.attr(s3)),Pr=Wr().browser,Yo=t=>Mt(t,fa),i3=t=>Pr.isFirefox()&&na(t)==="table"?Yo(lc(t)).filter(o=>na(o)==="caption").bind(o=>Yo(Kl(o)).map(r=>{const l=r.dom.offsetTop,m=o.dom.offsetTop,b=o.dom.offsetHeight;return l<=m?-b:0})).getOr(0):0,q5=(t,o)=>t.children&&Dt(t.children,o),G5=(t,o,r)=>{let l=0,m=0;const b=t.ownerDocument;if(r=r||t,o){if(r===t&&o.getBoundingClientRect&&wc(Et.fromDom(t),"position")==="static"){const N=o.getBoundingClientRect();return l=N.left+(b.documentElement.scrollLeft||t.scrollLeft)-b.documentElement.clientLeft,m=N.top+(b.documentElement.scrollTop||t.scrollTop)-b.documentElement.clientTop,{x:l,y:m}}let C=o;for(;C&&C!==r&&C.nodeType&&!q5(C,r);){const N=C;l+=N.offsetLeft||0,m+=N.offsetTop||0,C=N.offsetParent}for(C=o.parentNode;C&&C!==r&&C.nodeType&&!q5(C,r);)l-=C.scrollLeft||0,m-=C.scrollTop||0,C=C.parentNode;m+=i3(Et.fromDom(o))}return{x:l,y:m}},cg=(t,o={})=>{let r=0;const l={},m=Et.fromDom(t),b=g0(m),C=Qe=>{o.referrerPolicy=Qe},N=Qe=>{o.contentCssCors=Qe},z=Qe=>{Vi(E8(m),Qe)},ee=Qe=>{const ht=E8(m);ks(ht,"#"+Qe).each(Xr)},xe=Qe=>$t(l,Qe).getOrThunk(()=>({id:"mce-u"+r++,passed:[],failed:[],count:0})),ye=Qe=>new Promise((ht,jt)=>{let Xt;const Jt=zt._addCacheSuffix(Qe),hn=xe(Jt);l[Jt]=hn,hn.count++;const qn=(In,yo)=>{ct(In,ze),hn.status=yo,hn.passed=[],hn.failed=[],Xt&&(Xt.onload=null,Xt.onerror=null,Xt=null)},zo=()=>qn(hn.passed,2),Xn=()=>qn(hn.failed,
|
|||
|
|
Actual: `+Ae.join(","));if(!nn(o,bt=>Dt(Ae,bt)))throw new Error("Not all branches were specified when using match. Specified: "+Ae.join(", ")+`
|
|||
|
|
Required: `+o.join(", "));return ye[C].apply(null,z)},log:ye=>{}}}}),r}};T0.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Zy=t=>{const o=[],r=[];return ct(t,l=>{l.fold(m=>{o.push(m)},m=>{r.push(m)})}),{errors:o,values:r}},Ky=t=>t.type==="inline-command"||t.type==="inline-format",Yy=t=>t.type==="block-command"||t.type==="block-format",kg=t=>{const o=l=>_l.error({message:l,pattern:t}),r=(l,m,b)=>{if(t.format!==void 0){let C;if(Z(t.format)){if(!nn(t.format,V))return o(l+" pattern has non-string items in the `format` array");C=t.format}else if(V(t.format))C=[t.format];else return o(l+" pattern has non-string `format` parameter");return _l.value(m(C))}else return t.cmd!==void 0?V(t.cmd)?_l.value(b(t.cmd,t.value)):o(l+" pattern has non-string `cmd` parameter"):o(l+" pattern is missing both `format` and `cmd` parameters")};if(!B(t))return o("Raw pattern is not an object");if(!V(t.start))return o("Raw pattern is missing `start` parameter");if(t.end!==void 0){if(!V(t.end))return o("Inline pattern has non-string `end` parameter");if(t.start.length===0&&t.end.length===0)return o("Inline pattern has empty `start` and `end` parameters");let l=t.start,m=t.end;return m.length===0&&(m=l,l=""),r("Inline",b=>({type:"inline-format",start:l,end:m,format:b}),(b,C)=>({type:"inline-command",start:l,end:m,cmd:b,value:C}))}else return t.replacement!==void 0?V(t.replacement)?t.start.length===0?o("Replacement pattern has empty `start` parameter"):_l.value({type:"inline-command",start:"",end:t.start,cmd:"mceInsertContent",value:t.replacement}):o("Replacement pattern has non-string `replacement` parameter"):t.start.length===0?o("Block pattern has empty `start` parameter"):r("Block",l=>({type:"block-format",start:t.start,format:l[0]}),(l,m)=>({type:"block-command",start:t.start,cmd:l,value:m}))},wp=t=>Ke(t,Yy),Cp=t=>Ke(t,Ky),rV=(t,o)=>({inlinePatterns:Cp(t),blockPatterns:wp(t),dynamicPatternsLookup:o}),Xy=t=>{const o=Zy(mt(t,kg));return ct(o.errors,r=>{}),o.values},DS=t=>o=>{const r=t(o);return Xy(r)},Vg=Wr().deviceType,Ig=Vg.isTouch(),MS=oa.DOM,AS=t=>{const o=t.indexOf("=")>0?t.split(/[;,](?![^=;,]*(?:[;,]|$))/):t.split(",");return Yt(o,(r,l)=>{const m=l.split("="),b=m[0],C=m.length>1?m[1]:b;return r[va(b)]=va(C),r},{})},Jy=t=>W(t,RegExp),Po=t=>o=>o.options.get(t),Ep=t=>V(t)||B(t),po=(t,o="")=>r=>{const l=V(r);if(l)if(r.indexOf("=")!==-1){const m=AS(r);return{value:$t(m,t.id).getOr(o),valid:l}}else return{value:r,valid:l};else return{valid:!1,message:"Must be a string."}},OS=t=>{const o=t.options.register;o("id",{processor:"string",default:t.id}),o("selector",{processor:"string"}),o("target",{processor:"object"}),o("suffix",{processor:"string"}),o("cache_suffix",{processor:"string"}),o("base_url",{processor:"string"}),o("referrer_policy",{processor:"string",default:""}),o("language_load",{processor:"boolean",default:!0}),o("inline",{processor:"boolean",default:!1}),o("iframe_attrs",{processor:"object",default:{}}),o("doctype",{processor:"string",default:"<!DOCTYPE html>"}),o("document_base_url",{processor:"string",default:t.documentBaseUrl}),o("body_id",{processor:po(t,"tinymce"),default:"tinymce"}),o("body_class",{processor:po(t),default:""}),o("content_security_policy",{processor:"string",default:""}),o("br_in_pre",{processor:"boolean",default:!0}),o("forced_root_block",{processor:r=>{const l=V(r)&&lo(r);return l?{value:r,valid:l}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),o("forced_root_block_attrs",{processor:"object",default:{}}),o("newline_behavior",{processor:r=>{const l=Dt(["block","linebreak","invert","default"],r);return l?{value:r,valid:l}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),o("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),o("no_newline_selector",{processor:"string",default:""}),o("keep_styles",{processor:"boolean",default:!0}),o("end_container_on_empty_block",{processor:r=>Q(r)?{valid:!0,value:r}:V(r)?{valid:!0,value:
|
|||
|
|
\r \v`.indexOf(t)!==-1,iv=t=>!u6(t)&&!E3(t)&&!Ql(t),cv=t=>({value:ST(t)}),ST=t=>Ui(t,"#").toUpperCase(),V_=t=>{const o=t.toString(16);return(o.length===1?"0"+o:o).toUpperCase()},lv=t=>{const o=V_(t.red)+V_(t.green)+V_(t.blue);return cv(o)},lr=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,l4=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,S3=(t,o,r,l)=>({red:t,green:o,blue:r,alpha:l}),jp=(t,o,r,l)=>{const m=parseInt(t,10),b=parseInt(o,10),C=parseInt(r,10),N=parseFloat(l);return S3(m,b,C,N)},TT=t=>{if(t==="transparent")return G.some(S3(0,0,0,0));const o=lr.exec(t);if(o!==null)return G.some(jp(o[1],o[2],o[3],"1"));const r=l4.exec(t);return r!==null?G.some(jp(r[1],r[2],r[3],r[4])):G.none()},T3=t=>TT(t).map(lv).map(o=>"#"+o.value).getOr(t),Up=t=>{const o=[];if(t)for(let r=0;r<t.rangeCount;r++)o.push(t.getRangeAt(r));return o},uv=t=>pt(t,o=>{const r=Za(o);return r?[Et.fromDom(r)]:[]}),dv=t=>Up(t).length>1,fv=t=>Ke(uv(t),di),I_=t=>Gc(t,"td[data-mce-selected],th[data-mce-selected]"),DT=(t,o)=>{const r=I_(o);return r.length>0?r:fv(t)},xd=t=>DT(Up(t.selection.getSel()),Et.fromDom(t.getBody())),d6=(t,o)=>bs(t,"table",o),uV=t=>{const o=t.startContainer,r=t.startOffset;return io(o)?r===0?G.some(Et.fromDom(o)):G.none():G.from(o.childNodes[r]).map(Et.fromDom)},MT=t=>{const o=t.endContainer,r=t.endOffset;return io(o)?r===o.data.length?G.some(Et.fromDom(o)):G.none():G.from(o.childNodes[r-1]).map(Et.fromDom)},Wp=t=>Z4(t).fold(re([t]),o=>[t].concat(Wp(o))),qp=t=>Yl(t).fold(re([t]),o=>na(o)==="br"?I1(o).map(r=>[t].concat(qp(r))).getOr([]):[t].concat(qp(o))),u4=(t,o)=>Hs(uV(o),MT(o),(r,l)=>{const m=Mt(Wp(t),le(qr,r)),b=Mt(qp(t),le(qr,l));return m.isSome()&&b.isSome()}).getOr(!1),Gp=(t,o,r,l)=>{const m=r,b=new Ii(r,m),C=ut(t.schema.getMoveCaretBeforeOnEnterElements(),(z,ee)=>!Dt(["td","th","table"],ee.toLowerCase()));let N=r;do{if(io(N)&&zt.trim(N.data).length!==0){l?o.setStart(N,0):o.setEnd(N,N.data.length);return}if(C[N.nodeName]){l?o.setStartBefore(N):N.nodeName==="BR"?o.setEndBefore(N):o.setEndAfter(N);return}}while(N=l?b.next():b.prev());m.nodeName==="BODY"&&(l?o.setStart(m,0):o.setEnd(m,m.childNodes.length))},D3=t=>{const o=t.selection.getSel();return ie(o)&&o.rangeCount>0},d4=(t,o)=>{const r=xd(t);r.length>0?ct(r,l=>{const m=l.dom,b=t.dom.createRng();b.setStartBefore(m),b.setEndAfter(m),o(b,!0)}):o(t.selection.getRng(),!1)},R_=(t,o,r)=>{const l=dc(t,o);r(l),t.moveToBookmark(l)},lm=t=>Ie(t==null?void 0:t.nodeType),mv=t=>Mo(t)&&!j1(t)&&!yu(t)&&!du(t),AT=(t,o)=>{if(mv(o)&&!/^(TD|TH)$/.test(o.nodeName)){const r=t.getAttrib(o,"data-mce-selected"),l=parseInt(r,10);return!isNaN(l)&&l>0}else return!1},p2=t=>t.isContentEditable===!0,N_=(t,o,r)=>{const{selection:l,dom:m}=t,b=l.getNode(),C=Hr(b);R_(l,!0,()=>{o()}),C&&Hr(b)&&m.isChildOf(b,t.getBody())?t.selection.select(b):r(l.getStart())&&OT(m,l)},OT=(t,o)=>{var r,l;const m=o.getRng(),{startContainer:b,startOffset:C}=m,N=o.getNode();if(!AT(t,N)&&Mo(b)){const z=b.childNodes,ee=t.getRoot();let xe;if(C<z.length){const ye=z[C];xe=new Ii(ye,(r=t.getParent(ye,t.isBlock))!==null&&r!==void 0?r:ee)}else{const ye=z[z.length-1];xe=new Ii(ye,(l=t.getParent(ye,t.isBlock))!==null&&l!==void 0?l:ee),xe.next(!0)}for(let ye=xe.current();ye;ye=xe.next()){if(t.getContentEditable(ye)==="false")return;if(io(ye)&&!hv(ye)){m.setStart(ye,0),o.setRng(m);return}}}},F_=(t,o,r)=>{if(t){const l=o?"nextSibling":"previousSibling";for(t=r?t:t[l];t;t=t[l])if(Mo(t)||!hv(t))return t}},pv=(t,o)=>!!t.getTextBlockElements()[o.nodeName.toLowerCase()]||id(t,o),f6=(t,o,r)=>t.schema.isValidChild(o,r),hv=(t,o=!1)=>{if(ie(t)&&io(t)){const r=o?t.data.replace(/ /g," "):t.data;return hu(r)}else return!1},PT=t=>ie(t)&&io(t)&&t.length===0,m6=(t,o)=>{const r="[data-mce-cef-wrappable]",l=i_(t),m=Ks(l)?r:`${r},${l}`;return ml(Et.fromDom(o),m)},B_=(t,o)=>{const r=t.dom;return mv(o)&&r.getContentEditable(o)==="false"&&m6(t,o)&&r.select('[contenteditable="true"]',o).length===0},So=(t,o)=>ae(t)?t(o):(ie(o)&&(t=t.replace(/%(\w+)/g,(r,l)=>o[l]||r)),t),Bi=(t,o)=>(t=t||"",o=o||"",t=""+(t.nodeName||t),o=""+(o.nod
|
|||
|
|
]*|<br \\/>[\r
|
|||
|
|
]*)$`);return o.replace(l,"")},es=(t,o)=>{const r=t.getDoc(),l=Nu(Et.fromDom(t.getBody())),m=Et.fromTag("div",r);li(m,"data-mce-bogus","all"),P5(m,{position:"fixed",left:"-9999999px",top:"0"}),or(m,o.innerHTML),IV(m),RV(m);const b=QE(l);Vi(b,m);const C=W2(m.dom.innerText);return Xr(m),C},NV=(t,o,r)=>{let l;return o.format==="raw"?l=zt.trim(aZ(t.serializer,r.innerHTML)):o.format==="text"?l=es(t,r):o.format==="tree"?l=t.serializer.serialize(r,o):l=iZ(t,t.serializer.serialize(r,o)),o.format!=="text"&&!B5(Et.fromDom(r))&&V(l)?zt.trim(l):l},FV=(t,o)=>G.from(t.getBody()).fold(re(o.format==="tree"?new q1("body",11):""),r=>NV(t,o,r)),BV=zt.makeMap,px=t=>{const o=[];t=t||{};const r=t.indent,l=BV(t.indent_before||""),m=BV(t.indent_after||""),b=Y2.getEncodeFunc(t.entity_encoding||"raw",t.entities),C=t.element_format!=="xhtml";return{start:(N,z,ee)=>{if(r&&l[N]&&o.length>0){const xe=o[o.length-1];xe.length>0&&xe!==`
|
|||
|
|
`&&o.push(`
|
|||
|
|
`)}if(o.push("<",N),z)for(let xe=0,ye=z.length;xe<ye;xe++){const Ae=z[xe];o.push(" ",Ae.name,'="',b(Ae.value,!0),'"')}if(!ee||C?o[o.length]=">":o[o.length]=" />",ee&&r&&m[N]&&o.length>0){const xe=o[o.length-1];xe.length>0&&xe!==`
|
|||
|
|
`&&o.push(`
|
|||
|
|
`)}},end:N=>{let z;o.push("</",N,">"),r&&m[N]&&o.length>0&&(z=o[o.length-1],z.length>0&&z!==`
|
|||
|
|
`&&o.push(`
|
|||
|
|
`))},text:(N,z)=>{N.length>0&&(o[o.length]=z?N:b(N))},cdata:N=>{o.push("<![CDATA[",N,"]]>")},comment:N=>{o.push("<!--",N,"-->")},pi:(N,z)=>{z?o.push("<?",N," ",b(z),"?>"):o.push("<?",N,"?>"),r&&o.push(`
|
|||
|
|
`)},doctype:N=>{o.push("<!DOCTYPE",N,">",r?`
|
|||
|
|
`:"")},reset:()=>{o.length=0},getContent:()=>o.join("").replace(/\n$/,"")}},E6=(t={},o=C0())=>{const r=px(t);return t.validate="validate"in t?t.validate:!0,{serialize:m=>{const b=t.validate,C={3:z=>{var ee;r.text((ee=z.value)!==null&&ee!==void 0?ee:"",z.raw)},8:z=>{var ee;r.comment((ee=z.value)!==null&&ee!==void 0?ee:"")},7:z=>{r.pi(z.name,z.value)},10:z=>{var ee;r.doctype((ee=z.value)!==null&&ee!==void 0?ee:"")},4:z=>{var ee;r.cdata((ee=z.value)!==null&&ee!==void 0?ee:"")},11:z=>{let ee=z;if(ee=ee.firstChild)do N(ee);while(ee=ee.next)}};r.reset();const N=z=>{var ee;const xe=C[z.type];if(xe)xe(z);else{const ye=z.name,Ae=ye in o.getVoidElements();let it=z.attributes;if(b&&it&&it.length>1){const bt=[];bt.map={};const Qe=o.getElementRule(z.name);if(Qe){for(let ht=0,jt=Qe.attributesOrder.length;ht<jt;ht++){const Xt=Qe.attributesOrder[ht];if(Xt in it.map){const Jt=it.map[Xt];bt.map[Xt]=Jt,bt.push({name:Xt,value:Jt})}}for(let ht=0,jt=it.length;ht<jt;ht++){const Xt=it[ht].name;if(!(Xt in bt.map)){const Jt=it.map[Xt];bt.map[Xt]=Jt,bt.push({name:Xt,value:Jt})}}it=bt}}if(r.start(ye,it,Ae),!Ae){let bt=z.firstChild;if(bt){(ye==="pre"||ye==="textarea")&&bt.type===3&&((ee=bt.value)===null||ee===void 0?void 0:ee[0])===`
|
|||
|
|
`&&r.text(`
|
|||
|
|
`,!0);do N(bt);while(bt=bt.next)}r.end(ye)}}};return m.type===1&&!t.inner?N(m):m.type===3?C[3](m):C[11](m),r.getContent()}}},HV=new Set;ct(["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"],o=>{HV.add(o)});const $V=["font","text-decoration","text-emphasis"],oD=(t,o)=>Y(t.parseStyle(t.getAttrib(o,"style"))),cZ=t=>HV.has(t),hx=(t,o)=>nn(oD(t,o),r=>!cZ(r)),zV=t=>Ke(t,o=>tn($V,r=>dr(o,r))),Ble=(t,o,r)=>{const l=oD(t,o),m=oD(t,r),b=C=>{var N,z;const ee=(N=t.getStyle(o,C))!==null&&N!==void 0?N:"",xe=(z=t.getStyle(r,C))!==null&&z!==void 0?z:"";return lo(ee)&&lo(xe)&&ee!==xe};return tn(l,C=>{const N=z=>tn(z,ee=>ee===C);if(!N(m)&&N($V)){const z=zV(m);return tn(z,b)}else return b(C)})},jV=(t,o,r)=>G.from(r.container()).filter(io).exists(l=>{const m=t?0:-1;return o(l.data.charAt(r.offset()+m))}),ws=le(jV,!0,u6),sD=le(jV,!1,u6),Vs=t=>{const o=t.container();return io(o)&&(o.data.length===0||H5(o.data)&&O3.isBookmarkNode(o.parentNode))},R3=(t,o)=>r=>t6(t?0:-1,r).filter(o).isSome(),lZ=t=>gy(t)&&wc(Et.fromDom(t),"display")==="block",uZ=t=>Hr(t)&&!I5(t),dZ=R3(!0,lZ),Hle=R3(!1,lZ),gx=R3(!0,Ai),Hv=R3(!1,Ai),UV=R3(!0,Ga),fs=R3(!1,Ga),S6=R3(!0,uZ),T6=R3(!1,uZ),fZ=t=>t.slice(0,-1),$v=(t,o,r)=>cu(o,t)?fZ(w8(t,l=>r(l)||qr(l,o))):[],rD=(t,o)=>$v(t,o,De),N3=(t,o)=>[t].concat(rD(t,o)),aD=(t,o,r)=>x3(t,o,r,Vs),WV=(t,o)=>Mt(N3(Et.fromDom(o.container()),t),yi),iD=(t,o,r)=>aD(t,o.dom,r).forall(l=>WV(o,r).fold(()=>!a4(l,r,o.dom),m=>!a4(l,r,o.dom)&&cu(m,Et.fromDom(l.container())))),qV=(t,o,r)=>WV(o,r).fold(()=>aD(t,o.dom,r).forall(l=>!a4(l,r,o.dom)),l=>aD(t,l.dom,r).isNone()),GV=le(qV,!1),mZ=le(qV,!0),pZ=le(iD,!1),hZ=le(iD,!0),gZ=t=>am(t).exists(Yc),vx=(t,o,r)=>{const l=Ke(N3(Et.fromDom(r.container()),o),yi),m=ot(l).getOr(o);return bu(t,m.dom,r).filter(gZ)},bx=(t,o)=>am(o).exists(Yc)||vx(!0,t,o).isSome(),cD=(t,o)=>i4(o).exists(Yc)||vx(!1,t,o).isSome(),$s=le(vx,!1),ZV=le(vx,!0),zv=t=>Tn.isTextPosition(t)&&!t.isAtStart()&&!t.isAtEnd(),lD=(t,o)=>{const r=Ke(N3(Et.fromDom(o.container()),t),yi);return ot(r).getOr(t)},uD=(t,o)=>zv(o)?sD(o):sD(o)||kc(lD(t,o).dom,o).exists(sD),dD=(t,o)=>zv(o)?ws(o):ws(o)||tl(lD(t,o).dom,o).exists(ws),KV=t=>Dt(["pre","pre-wrap"],t),yx=t=>am(t).bind(o=>Be(o,fa)).exists(o=>KV(wc(o,"white-space"))),vZ=(t,o)=>kc(t.dom,o).isNone(),YV=(t,o)=>tl(t.dom,o).isNone(),bZ=(t,o)=>vZ(t,o)||YV(t,o)||GV(t,o)||mZ(t,o)||cD(t,o)||bx(t,o),yZ=t=>ie(t)&&Hr(t)&&C_(t),XV=(t,o)=>r=>yZ(new Ii(r,t)[o]()),_Z=(t,o)=>{const r=tl(t.dom,o).getOr(o),l=XV(t.dom,"next");return o.isAtEnd()&&(l(o.container())||l(r.container()))},xZ=(t,o)=>{const r=kc(t.dom,o).getOr(o),l=XV(t.dom,"prev");return o.isAtStart()&&(l(o.container())||l(r.container()))},JV=(t,o)=>yx(o)?!1:bZ(t,o)||uD(t,o)||dD(t,o),jv=(t,o)=>yx(o)?!1:GV(t,o)||pZ(t,o)||cD(t,o)||uD(t,o)||xZ(t,o),wZ=t=>{const o=t.container(),r=t.offset();return io(o)&&r<o.data.length?Tn(o,r+1):t},Em=(t,o)=>yx(o)?!1:mZ(t,o)||hZ(t,o)||bx(t,o)||dD(t,o)||_Z(t,o),Uv=(t,o)=>jv(t,o)||Em(t,wZ(o)),QV=(t,o)=>E3(t.charAt(o)),eI=(t,o)=>u6(t.charAt(o)),CZ=t=>{const o=t.container();return io(o)&&Ur(o.data,Vn)},EZ=t=>{const o=t.split("");return mt(o,(r,l)=>E3(r)&&l>0&&l<o.length-1&&iv(o[l-1])&&iv(o[l+1])?" ":r).join("")},tI=(t,o,r)=>{const l=o.data,m=Tn(o,0);return!r&&QV(l,0)&&!Uv(t,m)?(o.data=" "+l.slice(1),!0):r&&eI(l,0)&&jv(t,m)?(o.data=Vn+l.slice(1),!0):!1},SZ=t=>{const o=t.data,r=EZ(o);return r!==o?(t.data=r,!0):!1},nI=(t,o,r)=>{const l=o.data,m=Tn(o,l.length-1);return!r&&QV(l,l.length-1)&&!Uv(t,m)?(o.data=l.
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var IK=Object.hasOwnProperty,FR=Object.setPrototypeOf,nM=Object.isFrozen,u9=Object.getPrototypeOf,BR=Object.getOwnPropertyDescriptor,G1=Object.freeze,I0=Object.seal,RK=Object.create,HR=typeof Reflect!="undefined"&&Reflect,b4=HR.apply,d9=HR.construct;b4||(b4=function(o,r,l){return o.apply(r,l)}),G1||(G1=function(o){return o}),I0||(I0=function(o){return o}),d9||(d9=function(o,r){return l9(o,g2(r))});var $R=y4(Array.prototype.forEach),f9=y4(Array.prototype.pop),Oh=y4(Array.prototype.push),Ph=y4(String.prototype.toLowerCase),zR=y4(String.prototype.match),j3=y4(String.prototype.replace),NK=y4(String.prototype.indexOf),FK=y4(String.prototype.trim),Su=y4(RegExp.prototype.test),m9=jR(TypeError);function y4(t){return function(o){for(var r=arguments.length,l=new Array(r>1?r-1:0),m=1;m<r;m++)l[m-1]=arguments[m];return b4(t,o,l)}}function jR(t){return function(){for(var o=arguments.length,r=new Array(o),l=0;l<o;l++)r[l]=arguments[l];return d9(t,r)}}function la(t,o){FR&&FR(t,null);for(var r=o.length;r--;){var l=o[r];if(typeof l=="string"){var m=Ph(l);m!==l&&(nM(o)||(o[r]=m),l=m)}t[l]=!0}return t}function Rm(t){var o=RK(null),r;for(r in t)b4(IK,t,[r])&&(o[r]=t[r]);return o}function Gx(t,o){for(;t!==null;){var r=BR(t,o);if(r){if(r.get)return y4(r.get);if(typeof r.value=="function")return y4(r.value)}t=u9(t)}function l(m){return null}return l}var Zx=G1(["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"]),wl=G1(["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"]),oM=G1(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Kx=G1(["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"]),U3=G1(["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"]),UR=G1(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z1=G1(["#text"]),O6=G1(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","cros
|
|||
|
|
`+s1),Ds&&(s1=j3(s1,ps," "),s1=j3(s1,_r," ")),hn&&wa?hn.createHTML(s1):s1},o.setConfig=function(Zs){UC(Zs),hi=!0},o.clearConfig=function(){Nd=null,hi=!1},o.isValidAttribute=function(Zs,An,Ho){Nd||UC({});var Ms=N0(Zs),gi=N0(An);return o7(Ms,gi,Ho)},o.addHook=function(Zs,An){typeof An=="function"&&(ms[Zs]=ms[Zs]||[],Oh(ms[Zs],An))},o.removeHook=function(Zs){if(ms[Zs])return f9(ms[Zs])},o.removeHooks=function(Zs){ms[Zs]&&(ms[Zs]=[])},o.removeAllHooks=function(){ms={}},o}var ZR=cM();const KR=zt.each,Md=zt.trim,lM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],zK={ftp:21,http:80,https:443,mailto:25},jK=["img","video"],YR=(t,o)=>ie(t)?!t:ie(o)?!Dt(jK,o):!0,XR=t=>{try{return decodeURIComponent(t)}catch(o){return unescape(t)}},Lh=(t,o,r)=>{const l=XR(o).replace(/\s/g,"");return t.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(l)?!0:t.allow_html_data_urls?!1:/^data:image\//i.test(l)?YR(t.allow_svg_data_urls,r)&&/^data:image\/svg\+xml/i.test(l):/^data:/i.test(l)};class _4{static parseDataUri(o){let r;const l=decodeURIComponent(o).split(","),m=/data:([^;]+)/.exec(l[0]);return m&&(r=m[1]),{type:r,data:l[1]}}static isDomSafe(o,r,l={}){if(l.allow_script_urls)return!0;{const m=Y2.decode(o).replace(/[\s\u0000-\u001F]+/g,"");return!Lh(l,m,r)}}static getDocumentBaseUrl(o){var r;let l;return o.protocol.indexOf("http")!==0&&o.protocol!=="file:"?l=(r=o.href)!==null&&r!==void 0?r:"":l=o.protocol+"//"+o.host+o.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(l)&&(l=l.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(l)||(l+="/")),l}constructor(o,r={}){this.path="",this.directory="",o=Md(o),this.settings=r;const l=r.base_uri,m=this;if(/^([\w\-]+):([^\/]{2})/i.test(o)||/^\s*#/.test(o)){m.source=o;return}const b=o.indexOf("//")===0;if(o.indexOf("/")===0&&!b&&(o=(l&&l.protocol||"http")+"://mce_host"+o),!/^[\w\-]*:?\/\//.test(o)){const N=l?l.path:new _4(document.location.href).directory;if((l==null?void 0:l.protocol)==="")o="//mce_host"+m.toAbsPath(N,o);else{const z=/([^#?]*)([#?]?.*)/.exec(o);z&&(o=(l&&l.protocol||"http")+"://mce_host"+m.toAbsPath(N,z[1])+z[2])}}o=o.replace(/@@/g,"(mce_at)");const C=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(o);C&&KR(lM,(N,z)=>{let ee=C[z];ee&&(ee=ee.replace(/\(mce_at\)/g,"@@")),m[N]=ee}),l&&(m.protocol||(m.protocol=l.protocol),m.userInfo||(m.userInfo=l.userInfo),!m.port&&m.host==="mce_host"&&(m.port=l.port),(!m.host||m.host==="mce_host")&&(m.host=l.host),m.source=""),b&&(m.protocol="")}setPath(o){const r=/^(.*?)\/?(\w+)?$/.exec(o);r&&(this.path=r[0],this.directory=r[1],this.file=r[2]),this.source="",this.getURI()}toRelative(o){if(o==="./")return o;const r=new _4(o,{base_uri:this});if(r.host!=="mce_host"&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&r.protocol!=="")return r.getURI();const l=this.getURI(),m=r.getURI();if(l===m||l.charAt(l.length-1)==="/"&&l.substr(0,l.length-1)===m)return l;let b=this.toRelPath(this.path,r.path);return r.query&&(b+="?"+r.query),r.anchor&&(b+="#"+r.anchor),b}toAbsolute(o,r){const l=new _4(o,{base_uri:this});return l.getURI(r&&this.isSameOrigin(l))}isSameOrigin(o){if(this.host==o.host&&this.protocol==o.protocol){if(this.port==o.port)return!0;const r=this.protocol?zK[this.protocol]:null;if(r&&(this.port||r)==(o.port||r))return!0}return!1}toRelPath(o,r){let l=0,m="",b,C;const N=o.substring(0,o.lastIndexOf("/")).split("/"),z=r.split("/");if(N.length>=z.length){for(b=0,C=N.length;b<C;b++)if(b>=z.length||N[b]!==z[b]){l=b+1;break}}if(N.length<z.length){for(b=0,C=z.length;b<C;b++)if(b>=N.length||N[b]!==z[b]){l=b+1;break}}if(l===1)return r;for(b=0,C=N.length-(l-1);b<C;b++)m+="../";for(b=l-1,C=z.length;b<C;b++)b!==l-1?m+="/"+z[b]:m+=z[b];return m}toAbsPath(o,r){let l=0;const m=/\/$/.test(r)?"/":"",b=o.split("/"),C=r.split("/"),N=[];KR(b,ye=>{ye&&N.push(ye)});const z=[];for(let ye=C.length-1;y
|
|||
|
|
`).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,"");let N=l.length;for(;N--;){const z=l[N],ee=z.firstChild,xe=(b=ee==null?void 0:ee.value)!==null&&b!==void 0?b:"";if(m==="script"){const ye=z.attr("type");ye&&z.attr("type",ye==="mce-no/type"?null:ye.replace(/^mce\-/,"")),o.element_format==="xhtml"&&ee&&xe.length>0&&(ee.value=`// <![CDATA[
|
|||
|
|
`+C(xe)+`
|
|||
|
|
// ]]>`)}else o.element_format==="xhtml"&&ee&&xe.length>0&&(ee.value=`<!--
|
|||
|
|
`+C(xe)+`
|
|||
|
|
-->`)}}),t.addNodeFilter("#comment",l=>{let m=l.length;for(;m--;){const b=l[m],C=b.value;o.preserve_cdata&&(C==null?void 0:C.indexOf("[CDATA["))===0?(b.name="#cdata",b.type=4,b.value=r.decode(C.replace(/^\[CDATA\[|\]\]$/g,""))):(C==null?void 0:C.indexOf("mce:protected "))===0&&(b.name="#text",b.type=3,b.raw=!0,b.value=unescape(C).substr(14))}}),t.addNodeFilter("xml:namespace,input",(l,m)=>{let b=l.length;for(;b--;){const C=l[b];C.type===7?C.remove():C.type===1&&m==="input"&&!C.attr("type")&&C.attr("type","text")}}),t.addAttributeFilter("data-mce-type",l=>{ct(l,m=>{m.attr("data-mce-type")==="format-caret"&&(m.isEmpty(t.schema.getNonEmptyElements())?m.remove():m.unwrap())})}),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(l,m)=>{let b=l.length;for(;b--;)l[b].attr(m,null)}),o.remove_trailing_brs&&Wx(o,t,t.schema)},kM=t=>{const o=l=>(l==null?void 0:l.name)==="br",r=t.lastChild;if(o(r)){const l=r.prev;o(l)&&(r.remove(),l.remove())}},ON=(t,o,r)=>{let l;const m=t.dom;let b=o.cloneNode(!0);const C=document.implementation;if(C.createHTMLDocument){const N=C.createHTMLDocument("");zt.each(b.nodeName==="BODY"?b.childNodes:[b],z=>{N.body.appendChild(N.importNode(z,!0))}),b.nodeName!=="BODY"?b=N.body.firstChild:b=N.body,l=m.doc,m.doc=N}return VT(t,gn($e({},r),{node:b})),l&&(m.doc=l),b},PN=(t,o)=>ie(t)&&t.hasEventListeners("PreProcess")&&!o.no_events,GY=(t,o,r)=>PN(t,r)?ON(t,o,r):o,ZY=(t,o,r)=>{zt.inArray(o,r)===-1&&(t.addAttributeFilter(r,(l,m)=>{let b=l.length;for(;b--;)l[b].attr(m,null)}),o.push(r))},LN=(t,o,r)=>!o.no_events&&t?xv(t,gn($e({},o),{content:r})).content:r,kN=(t,o,r)=>{const l=W2(r.getInner?o.innerHTML:t.getOuterHTML(o));return r.selection||B5(Et.fromDom(o))?l:zt.trim(l)},VN=(t,o,r)=>{const l=r.selection?$e({forced_root_block:!1},r):r,m=t.parse(o,l);return kM(m),m},IN=(t,o,r)=>E6(t,o).serialize(r),VM=(t,o,r,l,m)=>{const b=IN(o,r,l);return LN(t,m,b)},e1e=(t,o)=>{const r=["data-mce-selected"],l=$e({entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1},t),m=o&&o.dom?o.dom:oa.DOM,b=o&&o.schema?o.schema:C0(l),C=kh(l,b);LM(C,l,m);const N=(z,ee={})=>{const xe=$e({format:"html"},ee),ye=GY(o,z,xe),Ae=kN(m,ye,xe),it=VN(C,Ae,xe);return xe.format==="tree"?it:VM(o,l,b,it,xe)};return{schema:b,addNodeFilter:C.addNodeFilter,addAttributeFilter:C.addAttributeFilter,serialize:N,addRules:b.addValidElements,setRules:b.setValidElements,addTempAttr:le(ZY,C,r),getTempAttrs:re(r),getNodeFilters:C.getNodeFilters,getAttributeFilters:C.getAttributeFilters,removeNodeFilter:C.removeNodeFilter,removeAttributeFilter:C.removeAttributeFilter}},RN=(t,o)=>{const r=e1e(t,o);return{schema:r.schema,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,serialize:r.serialize,addRules:r.addRules,setRules:r.setRules,addTempAttr:r.addTempAttr,getTempAttrs:r.getTempAttrs,getNodeFilters:r.getNodeFilters,getAttributeFilters:r.getAttributeFilters,removeNodeFilter:r.removeNodeFilter,removeAttributeFilter:r.removeAttributeFilter}},t1e="html",KY=(t,o)=>gn($e({},t),{format:o,get:!0,getInner:!0}),YY=(t,o={})=>{const r=o.format?o.format:t1e,l=KY(o,r);return g9(t,l).fold(Le,m=>{const b=x4(t,m);return cN(t,b,m)})},Od="html",n1e=(t,o)=>gn($e({format:Od},t),{set:!0,content:o}),NN=(t,o,r={})=>{const l=n1e(r,o);return gM(t,l).map(m=>{const b=PM(t,m.content,m);return vM(t,b.html,m),b.content}).getOr(o)},XY="autoresize_on_init,content_editable_state,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,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_
|
|||
|
|
|
|||
|
|
Themes:
|
|||
|
|
- mobile`:"",ee=m?`
|
|||
|
|
|
|||
|
|
Plugins:
|
|||
|
|
- ${l.join(`
|
|||
|
|
- `)}`:"",xe=b?`
|
|||
|
|
|
|||
|
|
Options:
|
|||
|
|
- ${r.join(`
|
|||
|
|
- `)}`:""}},nX=t=>Mt(IM,o=>o.name===t).fold(()=>t,o=>o.replacedWith?`${t}, replaced by ${o.replacedWith}`:t),oX=(t,o)=>{const r=QY(t),l=eX(o),m=l.length>0,b=r.length>0;if(m||b){const N=m?`
|
|||
|
|
|
|||
|
|
Plugins:
|
|||
|
|
- ${l.map(nX).join(`
|
|||
|
|
- `)}`:"",z=b?`
|
|||
|
|
|
|||
|
|
Options:
|
|||
|
|
- ${r.join(`
|
|||
|
|
- `)}`:""}},sX=(t,o)=>{tX(t,o),oX(t,o)},rw=oa.DOM,rX=t=>{rw.setStyle(t.id,"display",t.orgDisplay)},aw=t=>G.from(t).each(o=>o.destroy()),aX=t=>{const o=t;o.contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null;const r=t.selection;if(r){const l=r.dom;o.selection=r.win=r.dom=l.doc=null}},iX=t=>{const o=t.formElement;o&&(o._mceOldSubmit&&(o.submit=o._mceOldSubmit,delete o._mceOldSubmit),rw.unbind(o,"submit reset",t.formEventDelegate))},cX=t=>{if(!t.removed){const{_selectionOverrides:o,editorUpload:r}=t,l=t.getBody(),m=t.getElement();l&&t.save({is_removing:!0}),t.removed=!0,t.unbindAllNativeEvents(),t.hasHiddenInput&&ie(m==null?void 0:m.nextSibling)&&rw.remove(m.nextSibling),wv(t),t.editorManager.remove(t),!t.inline&&l&&rX(t),sa(t),rw.remove(t.getContainer()),aw(o),aw(r),t.destroy()}},o1e=(t,o)=>{const{selection:r,dom:l}=t;if(!t.destroyed){if(!o&&!t.removed){t.remove();return}o||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),aw(r),aw(l)),iX(t),aX(t),t.destroyed=!0}},cw=(()=>{const t={};return{add:(m,b)=>{t[m]=b},get:m=>t[m]?t[m]:{icons:{}},has:m=>Zt(t,m)}})(),k6=Ar.ModelManager,HN=(t,o)=>o.dom[t],$N=(t,o)=>parseInt(wc(o,t),10),lX=le(HN,"clientWidth"),uX=le(HN,"clientHeight"),Fm=le($N,"margin-top"),Bm=le($N,"margin-left"),lw=t=>t.dom.getBoundingClientRect(),uw=(t,o,r)=>{const l=lX(t),m=uX(t);return o>=0&&r>=0&&o<=l&&r<=m},Hm=(t,o,r,l)=>{const m=lw(o),b=t?m.left+o.dom.clientLeft+Bm(o):0,C=t?m.top+o.dom.clientTop+Fm(o):0,N=r-b,z=l-C;return{x:N,y:z}},$m=(t,o,r)=>{const l=Et.fromDom(t.getBody()),m=t.inline?l:_8(l),b=Hm(t.inline,m,o,r);return uw(m,b.x,b.y)},dw=t=>G.from(t).map(Et.fromDom),fw=t=>{const o=t.inline?t.getBody():t.getContentAreaContainer();return dw(o).map($2).getOr(!1)};var zN=()=>{const t=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:t,close:t,getArgs:t}};const mw=t=>{const o=[],r=()=>{const Ae=t.theme;return Ae&&Ae.getNotificationManagerImpl?Ae.getNotificationManagerImpl():zN()},l=()=>G.from(o[0]),m=(Ae,it)=>Ae.type===it.type&&Ae.text===it.text&&!Ae.progressBar&&!Ae.timeout&&!it.progressBar&&!it.timeout,b=()=>{ct(o,Ae=>{Ae.reposition()})},C=Ae=>{o.push(Ae)},N=Ae=>{Wt(o,it=>it===Ae).each(it=>{o.splice(it,1)})},z=(Ae,it=!0)=>t.removed||!fw(t)?{}:(it&&t.dispatch("BeforeOpenNotification",{notification:Ae}),Mt(o,bt=>m(r().getArgs(bt),Ae)).getOrThunk(()=>{t.editorManager.setActive(t);const bt=r().open(Ae,()=>{N(bt),b(),l().fold(()=>t.focus(),Qe=>xm(Et.fromDom(Qe.getEl())))});return C(bt),b(),t.dispatch("OpenNotification",{notification:$e({},bt)}),bt})),ee=()=>{l().each(Ae=>{r().close(Ae),N(Ae),b()})},xe=re(o);return(Ae=>{Ae.on("SkinLoaded",()=>{const it=a_(Ae);it&&z({text:it,type:"warning",timeout:0},!1),b()}),Ae.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(b)}),Ae.on("remove",()=>{ct(o.slice(),it=>{r().close(it)})})})(t),{open:z,close:ee,getNotifications:xe}},V6=Ar.PluginManager,I6=Ar.ThemeManager;var jN=()=>{const t=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:t,openUrl:t,alert:t,confirm:t,close:t}};const zm=t=>{let o=[];const r=()=>{const Qe=t.theme;return Qe&&Qe.getWindowManagerImpl?Qe.getWindowManagerImpl():jN()},l=(Qe,ht)=>(...jt)=>ht?ht.apply(Qe,jt):void 0,m=Qe=>{t.dispatch("OpenWindow",{dialog:Qe})},b=Qe=>{t.dispatch("CloseWindow",{dialog:Qe})},C=Qe=>{o.push(Qe),m(Qe)},N=Qe=>{b(Qe),o=Ke(o,ht=>ht!==Qe),o.length===0&&t.focus()},z=()=>G.from(o[o.length-1]),ee=Qe=>{t.editorManager.setActive(t),Rv(t),t.ui.show();const ht=Qe();return C(ht),ht},xe=(Qe,ht)=>ee(()=>r().open(Qe,ht,N)),ye=Qe=>ee(()=>r().openUrl(Qe,N)),Ae=(Qe,ht,jt)=>{const Xt=r();Xt.alert(Qe,l(jt||Xt,ht))},it=(Qe,ht,jt)=>{const Xt=r();Xt.confirm(Qe,l(jt||Xt,ht))},bt=()=>{z().each(Qe=>{r().close(Qe),N(Qe)})};return t.on("remove",()=>{ct(o,Qe=>{r().close(Qe)})}),{open:xe,openUrl:ye,alert:Ae,confirm:it,close:bt}},NM=(t,o)=>{t.notificationManager.open({type:"error",text:o})},w9=(t,o)=>{t._
|
|||
|
|
\r \v`.indexOf(t)!==-1,Zw=(t,o)=>t.substring(o.length),hQ=(t,o,r)=>{let l;const m=r.charAt(0);for(l=o-1;l>=0;l--){const b=t.charAt(l);if(UB(b))return G.none();if(m===b&&Ur(t,r,l,o))break}return G.some(l)},gQ=(t,o,r,l=0)=>{if(!pQ(o))return G.none();const m={text:"",offset:0},b=(N,z,ee)=>(m.text=ee+m.text,m.offset+=z,hQ(m.text,m.offset,r).getOr(z)),C=t.getParent(o.startContainer,t.isBlock)||t.getRoot();return Gw(t,o.startContainer,o.startOffset,b,C).bind(N=>{const z=o.cloneRange();if(z.setStart(N.container,N.offset),z.setEnd(o.endContainer,o.endOffset),z.collapsed)return G.none();const ee=jB(z);return ee.lastIndexOf(r)!==0||Zw(ee,r).length<l?G.none():G.some({text:Zw(ee,r),range:z,trigger:r})})},FA=(t,o,r,l=0)=>QG(Et.fromDom(o.startContainer)).fold(()=>gQ(t,o,r,l),m=>{const b=t.createRng();b.selectNode(m.dom);const C=jB(b);return G.some({range:b,text:Zw(C,r),trigger:r})}),vQ=t=>t.nodeType===Wc,bQ=t=>t.nodeType===Al,BA=t=>{if(vQ(t))return S4(t,t.data.length);{const o=t.childNodes;return o.length>0?BA(o[o.length-1]):S4(t,o.length)}},WB=(t,o)=>{const r=t.childNodes;return r.length>0&&o<r.length?WB(r[o],0):r.length>0&&bQ(t)&&r.length===o?BA(r[r.length-1]):S4(t,o)},yQ=(t,o)=>{var r;const l=(r=t.getParent(o.container,t.isBlock))!==null&&r!==void 0?r:t.getRoot();return Gw(t,o.container,o.offset,(m,b)=>b===0?-1:b,l).filter(m=>{const b=m.container.data.charAt(m.offset-1);return!UB(b)}).isSome()},_Q=t=>o=>{const r=WB(o.startContainer,o.startOffset);return!yQ(t,r)},qB=(t,o,r)=>ue(r.triggers,l=>FA(t,o,l)),GB=(t,o)=>{const r=o(),l=t.selection.getRng();return qB(t.dom,l,r).bind(m=>ZB(t,o,m))},ZB=(t,o,r,l={})=>{var m;const b=o(),N=(m=t.selection.getRng().startContainer.nodeValue)!==null&&m!==void 0?m:"",z=Ke(b.lookupByTrigger(r.trigger),xe=>r.text.length>=xe.minChars&&xe.matches.getOrThunk(()=>_Q(t.dom))(r.range,N,r.text));if(z.length===0)return G.none();const ee=Promise.all(mt(z,xe=>xe.fetch(r.text,xe.maxResults,l).then(Ae=>({matchText:r.text,items:Ae,columns:xe.columns,onAction:xe.onAction,highlightOn:xe.highlightOn}))));return G.some({lookupData:ee,context:r})};var T4;(function(t){t[t.Error=0]="Error",t[t.Value=1]="Value"})(T4||(T4={}));const HA=(t,o,r)=>t.stype===T4.Error?o(t.serror):r(t.svalue),xQ=t=>{const o=[],r=[];return ct(t,l=>{HA(l,m=>r.push(m),m=>o.push(m))}),{values:o,errors:r}},wQ=(t,o)=>t.stype===T4.Error?{stype:T4.Error,serror:o(t.serror)}:t,CQ=(t,o)=>t.stype===T4.Value?{stype:T4.Value,svalue:o(t.svalue)}:t,EQ=(t,o)=>t.stype===T4.Value?o(t.svalue):t,SQ=(t,o)=>t.stype===T4.Error?o(t.serror):t,TQ=t=>({stype:T4.Value,svalue:t}),KB=t=>({stype:T4.Error,serror:t}),ol={fromResult:t=>t.fold(KB,TQ),toResult:t=>HA(t,_l.error,_l.value),svalue:TQ,partition:xQ,serror:KB,bind:EQ,bindError:SQ,map:CQ,mapError:wQ,fold:HA},$A=t=>B(t)&&Y(t).length>100?" removed due to size":JSON.stringify(t,null,2),YB=t=>{const o=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:re("... (only showing first ten failures)")}]):t;return mt(o,r=>"Failed path: ("+r.path.join(" > ")+`)
|
|||
|
|
`+r.getErrorInfo())},j9=(t,o)=>ol.serror([{path:t,getErrorInfo:o}]),AQ=(t,o,r)=>j9(t,()=>'Could not find valid *required* value for "'+o+'" in '+$A(r)),OQ=(t,o)=>j9(t,()=>'Choice schema did not contain choice key: "'+o+'"'),PQ=(t,o,r)=>j9(t,()=>'The chosen schema: "'+r+'" did not exist in branches: '+$A(o)),XB=(t,o)=>j9(t,re(o)),LQ=(t,o,r,l)=>$t(r,l).fold(()=>PQ(t,r,l),b=>b.extract(t.concat(["branch: "+l]),o)),zA=(t,o)=>({extract:(m,b)=>$t(b,t).fold(()=>OQ(m,t),N=>LQ(m,b,o,N)),toString:()=>"chooseOn("+t+"). Possible values: "+Y(o)}),kQ=(t,o)=>o,VQ=(t,o)=>J(t)&&J(o)?U9(t,o):o,JB=t=>(...o)=>{if(o.length===0)throw new Error("Can't merge zero objects");const r={};for(let l=0;l<o.length;l++){const m=o[l];for(const b in m)Zt(m,b)&&(r[b]=t(r[b],m[b]))}return r},U9=JB(VQ),IQ=JB(kQ),QB=()=>({tag:"required",process:{}}),RQ=t=>({tag:"defaultedThunk",process:t}),eH=t=>RQ(re(t)),NQ=()=>({tag:"option",process:{}}),Dc=(t,o)=>t.length>0?ol.svalue(U9(o,IQ.apply(void 0,t))):ol.svalue(o),D4=t=>$(ol.serror,Ot)(t),FQ={consolidateObj:(t,o)=>{const r=ol.partition(t);return r.errors.length>0?D4(r.errors):Dc(r.values,o)},consolidateArr:t=>{const o=ol.partition(t);return o.errors.length>0?D4(o.errors):ol.svalue(o.values)}},BQ=(t,o,r,l)=>({tag:"field",key:t,newKey:o,presence:r,prop:l}),HQ=(t,o)=>({tag:"custom",newKey:t,instantiator:o}),tH=(t,o,r)=>{switch(t.tag){case"field":return o(t.key,t.newKey,t.presence,t.prop);case"custom":return r(t.newKey,t.instantiator)}},Kw=t=>{const o=(l,m)=>ol.bindError(t(m),b=>XB(l,b)),r=re("val");return{extract:o,toString:r}},$h=Kw(ol.svalue),g1e=(t,o,r,l)=>$t(o,r).fold(()=>AQ(t,r,o),l),nH=(t,o,r,l)=>{const m=$t(t,o).getOrThunk(()=>r(t));return l(m)},$Q=(t,o,r)=>r($t(t,o)),M4=(t,o,r,l)=>{const m=$t(t,o).map(b=>b===!0?r(t):b);return l(m)},zQ=(t,o,r,l,m)=>{const b=N=>m.extract(o.concat([l]),N),C=N=>N.fold(()=>ol.svalue(G.none()),z=>{const ee=m.extract(o.concat([l]),z);return ol.map(ee,G.some)});switch(t.tag){case"required":return g1e(o,r,l,b);case"defaultedThunk":return nH(r,l,t.process,b);case"option":return $Q(r,l,C);case"defaultedOptionThunk":return M4(r,l,t.process,C);case"mergeWithThunk":return nH(r,l,re({}),N=>{const z=U9(t.process(r),N);return b(z)})}},jQ=(t,o,r)=>{const l={},m=[];for(const b of r)tH(b,(C,N,z,ee)=>{const xe=zQ(z,t,o,C,ee);ol.fold(xe,ye=>{m.push(...ye)},ye=>{l[N]=ye})},(C,N)=>{l[C]=N(o)});return m.length>0?ol.serror(m):ol.svalue(l)},Yw=t=>({extract:(l,m)=>jQ(l,m,t),toString:()=>`obj{
|
|||
|
|
`+mt(t,m=>tH(m,(b,C,N,z)=>b+" -> "+z.toString(),(b,C)=>"state("+b+")")).join(`
|
|||
|
|
`)+"}"}),oH=t=>({extract:(l,m)=>{const b=mt(m,(C,N)=>t.extract(l.concat(["["+N+"]"]),C));return FQ.consolidateArr(b)},toString:()=>"array("+t.toString()+")"}),jA=t=>Kw(o=>t(o).fold(ol.serror,ol.svalue)),sH=(t,o,r)=>{const l=o.extract([t],r);return ol.mapError(l,m=>({input:r,errors:m}))},UQ=(t,o,r)=>ol.toResult(sH(t,o,r)),WQ=t=>`Errors:
|
|||
|
|
`+YB(t.errors).join(`
|
|||
|
|
`)+`
|
|||
|
|
|
|||
|
|
Input object: `+$A(t.input),rH=(t,o)=>zA(t,ve(o,Yw)),aH=re($h),W9=(t,o)=>Kw(r=>{const l=typeof r;return t(r)?ol.svalue(r):ol.serror(`Expected type: ${o} but got: ${l}`)}),UA=W9(Ie,"number"),zh=W9(V,"string"),WA=W9(Q,"boolean"),qA=W9(ae,"function"),q9=BQ,iH=HQ,qQ=t=>jA(o=>Dt(t,o)?_l.value(o):_l.error(`Unsupported value: "${o}", choose one of "${t.join(", ")}".`)),Xw=(t,o)=>q9(t,t,QB(),o),GA=t=>Xw(t,zh),cH=t=>Xw(t,qA),lH=(t,o)=>q9(t,t,QB(),oH(o)),ZA=(t,o)=>q9(t,t,NQ(),o),jh=t=>ZA(t,zh),GQ=t=>ZA(t,qA),ZQ=(t,o)=>q9(t,t,eH(o),aH()),Uh=(t,o,r)=>q9(t,t,eH(o),r),uH=(t,o)=>Uh(t,o,UA),KQ=(t,o)=>Uh(t,o,zh),KA=(t,o,r)=>Uh(t,o,qQ(r)),G9=(t,o)=>Uh(t,o,WA),Jw=(t,o)=>Uh(t,o,qA),dH=(t,o,r)=>Uh(t,o,oH(r)),YQ=GA("type"),XQ=cH("fetch"),YA=cH("onAction"),Qw=Jw("onSetup",()=>qe),fH=jh("text"),mH=jh("icon"),JQ=jh("tooltip"),QQ=jh("label"),v1e=G9("active",!1),b1e=G9("enabled",!0),eee=G9("primary",!1),tee=t=>ZQ("columns",t),eC=t=>KQ("type",t),nee=Yw([YQ,GA("trigger"),uH("minChars",1),tee(1),uH("maxResults",10),GQ("matches"),XQ,YA,dH("highlightOn",[],zh)]),oee=t=>UQ("Autocompleter",nee,$e({trigger:t.ch},t)),pH=[b1e,JQ,mH,fH,Qw],hH=[v1e].concat(pH),xi=[Jw("predicate",De),KA("scope","node",["node","editor"]),KA("position","selection",["node","selection","line"])],XA=pH.concat([eC("contextformbutton"),eee,YA,iH("original",Le)]),Vd=hH.concat([eC("contextformbutton"),eee,YA,iH("original",Le)]),gH=pH.concat([eC("contextformbutton")]),vH=hH.concat([eC("contextformtogglebutton")]),see=rH("type",{contextformbutton:XA,contextformtogglebutton:Vd});Yw([eC("contextform"),Jw("initValue",re("")),QQ,lH("commands",see),ZA("launch",rH("type",{contextformbutton:gH,contextformtogglebutton:vH}))].concat(xi));const tC=t=>{const o=t.ui.registry.getAll().popups,r=ve(o,C=>oee(C).fold(N=>{throw new Error(WQ(N))},Le)),l=Wn(At(r,C=>C.trigger)),m=Ut(r);return{dataset:r,triggers:l,lookupByTrigger:C=>Ke(m,N=>N.trigger===C)}},JA=(t,o)=>{const r=yg(o.load,50);t.on("keypress compositionend",l=>{l.which!==27&&r.throttle()}),t.on("keydown",l=>{const m=l.which;m===8?r.throttle():m===27&&o.cancelIfNecessary()}),t.on("remove",r.cancel)},bH=t=>{const o=Ec(),r=Yi(!1),l=o.isSet,m=()=>{l()&&(Qle(t),NT(t),r.set(!1),o.clear())},b=ee=>{l()||(zr(t,ee.range),o.set({trigger:ee.trigger,matchLength:ee.text.length}))},C=Yn(()=>tC(t)),N=ee=>o.get().map(xe=>FA(t.dom,t.selection.getRng(),xe.trigger).bind(ye=>ZB(t,C,ye,ee))).getOrThunk(()=>GB(t,C)),z=ee=>{N(ee).fold(m,xe=>{b(xe.context),xe.lookupData.then(ye=>{o.get().map(Ae=>{const it=xe.context;Ae.trigger===it.trigger&&(it.text.length-Ae.matchLength>=10?m():(o.set(gn($e({},Ae),{matchLength:it.text.length})),r.get()?Dv(t,{lookupData:ye}):(r.set(!0),pm(t,{lookupData:ye}))))})})})};t.addCommand("mceAutocompleterReload",(ee,xe)=>{const ye=B(xe)?xe.fetchOptions:{};z(ye)}),t.addCommand("mceAutocompleterClose",m),JA(t,{cancelIfNecessary:m,load:z})},QA=t=>(o,r,l={})=>{const m=o.getBody(),b={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:m,currentTarget:m,eventPhase:Event.AT_TARGET,originalTarget:m,explicitOriginalTarget:m,isTrusted:!1,srcElement:m,cancelable:!1,preventDefault:qe,inputType:r},C=Nf(new InputEvent(t));return o.dispatch(t,$e($e($e({},C),b),l))},nC=QA("input"),oC=QA("beforeinput"),ree=(t,o,r)=>{const l=r.keyCode===Vo.BACKSPACE?"deleteContentBackward":"deleteContentForward";wB([{keyCode:Vo.BACKSPACE,action:zs(VJ,t)},{keyCode:Vo.BACKSPACE,action:zs(_F,t,!1)},{keyCode:Vo.DELETE,action:zs(_F,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(Xu,t,!1)},{keyCode:Vo.DELETE,action:zs(Xu,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(bA,t,o,!1)},{keyCode:Vo.DELETE,action:zs(bA,t,o,!0)},{keyCode:Vo.BACKSPACE,action:zs(Zv,t,!1)},{keyCode:Vo.DELETE,action:zs(Zv,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(oA,t,!1)},{keyCode:Vo.DELETE,action:zs(oA,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(xA,t,!1)},{keyCode:Vo.DELETE,action:zs(xA,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(QM,t,!1)},{keyCode:Vo.DELETE,action:zs(QM,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(JM,t,!1)},{keyCode:Vo.DELETE,action:zs(JM,t,!0)},{keyCode:Vo.BACKSPACE,action:zs(nB,t,!1)},{keyCode:Vo.DELETE,act
|
|||
|
|
`;return}if(ee!=="wbr"){if(m[ee]&&(l+=" "),b[ee]){l+=" ";return}if(z.type===3&&(l+=z.value),!(z.name in o.getVoidElements())){let ye=z.firstChild;if(ye)do N(ye);while(ye=ye.next)}C[ee]&&xe.next&&(l+=`
|
|||
|
|
`,ee==="p"&&(l+=`
|
|||
|
|
`))}};return t=hC(t,[/<!\[[^\]]+\]>/g]),N(r.parse(t)),l},wO=t=>(t=hC(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,(r,l,m)=>!l&&!m?" ":Vn],/<br class="Apple-interchange-newline">/g,/<br>$/i]),t),ate=t=>{let o=0;return()=>t+o++},n$=t=>{const o=t.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return zt.hasOwn(r,o)?"image/"+r[o]:"image/"+o},ite=(t,o)=>{const r=kh({sanitize:kp(t)},t.schema);r.addNodeFilter("meta",m=>{zt.each(m,b=>{b.remove()})});const l=r.parse(o,{forced_root_block:!1,isRootContent:!0});return E6({validate:!0},t.schema).serialize(l)},o$=(t,o)=>({content:t,cancelled:o}),s$=(t,o,r)=>{const l=t.dom.create("div",{style:"display:none"},o),m=Hi(t,l,r);return o$(m.node.innerHTML,m.isDefaultPrevented())},cte=(t,o,r)=>{const l=Pi(t,o,r),m=ite(t,l.content);return t.hasEventListeners("PastePostProcess")&&!l.isDefaultPrevented()?s$(t,m,r):o$(m,l.isDefaultPrevented())},lte=(t,o,r)=>cte(t,o,r),CO=(t,o)=>(t.insertContent(o,{merge:Wg(t),paste:!0}),!0),W6=t=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(t),nb=(t,o)=>W6(o)&&tn(Jf(t),r=>qa(o.toLowerCase(),`.${r.toLowerCase()}`)),ute=(t,o,r)=>(t.undoManager.extra(()=>{r(t,o)},()=>{t.insertContent('<img src="'+o+'">')}),!0),dte=(t,o,r)=>(t.undoManager.extra(()=>{r(t,o)},()=>{t.execCommand("mceInsertLink",!1,o)}),!0),qh=(t,o,r)=>!t.selection.isCollapsed()&&W6(o)?dte(t,o,r):!1,fte=(t,o,r)=>nb(t,o)?ute(t,o,r):!1,EO=(t,o)=>{zt.each([qh,fte,CO],r=>!r(t,o,CO))},SO=(t,o,r)=>{r||!f_(t)?CO(t,o):EO(t,o)},r$=ate("mceclip"),mte=t=>{const o=bO();return tb(o,t),U6(o),o},a$=(t,o,r,l,m)=>{const b=lte(t,o,r);if(!b.cancelled){const C=b.content,N=()=>SO(t,C,l);m?oC(t,"insertFromPaste",{dataTransfer:mte(C)}).isDefaultPrevented()||(N(),nC(t,"insertFromPaste")):N()}},ob=(t,o,r,l)=>{const m=r||QH(o);a$(t,Jee(o),m,!1,l)},gC=(t,o,r)=>{const l=t.dom.encode(o).replace(/\r\n/g,`
|
|||
|
|
`),m=ti(l,m_(t)),b=tte(m,ni(t),gd(t));a$(t,b,!1,!0,r)},i$=t=>{const o={};if(t&&t.types)for(let r=0;r<t.types.length;r++){const l=t.types[r];try{o[l]=t.getData(l)}catch(m){o[l]=""}}return o},q6=(t,o)=>o in t&&t[o].length>0,c$=t=>q6(t,"text/html")||q6(t,"text/plain"),l$=(t,o)=>{const r=o.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return ie(r)?t.dom.encode(r[1]):void 0},pte=(t,o,r,l)=>{const m=r$(),b=Fg(t)&&ie(r.name),C=b?l$(t,r.name):m,N=b?r.name:void 0,z=o.create(m,r,l,C,N);return o.add(z),z},u$=(t,o)=>{QD(o.uri).each(({data:r,type:l,base64Encoded:m})=>{const b=m?r:btoa(r),C=o.file,N=t.editorUpload.blobCache,z=N.getByData(b,l),ee=z!=null?z:pte(t,N,C,b);ob(t,`<img src="${ee.blobUri()}">`,!1,!0)})},hte=t=>t.type==="paste",gte=t=>Promise.all(mt(t,o=>OR(o).then(r=>({file:o,uri:r})))),vte=t=>{const o=Jf(t);return r=>dr(r.type,"image/")&&tn(o,l=>n$(l)===r.type)},bte=(t,o)=>{const r=o.items?pt(Ze(o.items),m=>m.kind==="file"?[m.getAsFile()]:[]):[],l=o.files?Ze(o.files):[];return Ke(r.length>0?r:l,vte(t))},d$=(t,o,r)=>{const l=hte(o)?o.clipboardData:o.dataTransfer;if(vu(t)&&l){const m=bte(t,l);if(m.length>0)return o.preventDefault(),gte(m).then(b=>{r&&t.selection.setRng(r),ct(b,C=>{u$(t,C)})}),!0}return!1},vC=t=>{var o,r;return tr.os.isAndroid()&&((r=(o=t.clipboardData)===null||o===void 0?void 0:o.items)===null||r===void 0?void 0:r.length)===0},yte=t=>Vo.metaKeyPressed(t)&&t.keyCode===86||t.shiftKey&&t.keyCode===45,bC=(t,o,r,l,m)=>{let b=wO(r);const C=q6(o,pC())||QH(r),N=!C&&Qee(b),z=W6(b);(xO(b)||!b.length||N&&!z)&&(l=!0),(l||z)&&(q6(o,"text/plain")&&N?b=o["text/plain"]:b=t$(b)),!xO(b)&&(l?gC(t,b,m):ob(t,b,C,m))},_te=(t,o,r)=>{let l;const m=()=>o.getLastRng()||t.selection.getRng();t.on("keydown",b=>{yte(b)&&!b.isDefaultPrevented()&&(l=b.shiftKey&&b.keyCode===86)}),t.on("paste",b=>{if(b.isDefaultPrevented()||vC(b))return;const C=r.get()==="text"||l;l=!1;const N=i$(b.clipboardData);!c$(N)&&d$(t,b,m())||(q6(N,"text/html")?(b.preventDefault(),bC(t,N,N["text/html"],C,!0)):q6(N,"text/plain")&&q6(N,"text/uri-list")?(b.preventDefault(),bC(t,N,N["text/plain"],C,!0)):(o.create(),Hl.setEditorTimeout(t,()=>{const z=o.getHtml();o.remove(),bC(t,N,z,C,!1)},0)))})},xte=t=>{const o=m=>dr(m,"webkit-fake-url"),r=m=>dr(m,"data:"),l=m=>{var b;return((b=m.data)===null||b===void 0?void 0:b.paste)===!0};t.parser.addNodeFilter("img",(m,b,C)=>{if(!vu(t)&&l(C))for(const N of m){const z=N.attr("src");V(z)&&!N.attr("data-mce-object")&&z!==tr.transparentSrc&&(o(z)||!tT(t)&&r(z))&&N.remove()}})},wte=(t,o,r)=>{_te(t,o,r),xte(t)},Cte=(t,o)=>{o.get()==="text"?(o.set("html"),P3(t,!1)):(o.set("text"),P3(t,!0)),t.focus()},Ete=(t,o)=>{t.addCommand("mceTogglePlainTextPaste",()=>{Cte(t,o)}),t.addCommand("mceInsertClipboardContent",(r,l)=>{l.html&&ob(t,l.html,l.internal,!1),l.text&&gC(t,l.text,!1)})},Ste=(t,o,r)=>{if(t)try{return t.clearData(),t.setData("text/html",o),t.setData("text/plain",r),t.setData(pC(),o),!0}catch(l){return!1}else return!1},TO=(t,o,r,l)=>{Ste(t.clipboardData,o.html,o.text)?(t.preventDefault(),l()):r(o.html,l)},f$=t=>(o,r)=>{const{dom:l,selection:m}=t,b=l.create("div",{contenteditable:"false","data-mce-bogus":"all"}),C=l.create("div",{contenteditable:"true"},o);l.setStyles(b,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),b.appendChild(C),l.add(t.getBody(),b);const N=m.getRng();C.focus();const z=l.createRng();z.selectNodeContents(C),m.setRng(z),Hl.setEditorTimeout(t,()=>{m.setRng(N),l.remove(b),r()},0)},m$=t=>({html:Xee(t.selection.getContent({contextual:!0})),text:t.selection.getContent({format:"text"})}),Tte=t=>!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody()),p$=t=>!t.selection.isCollapsed()||Tte(t),Dte=t=>o=>{!o.isDefaultPrevented()&&p$(t)&&TO(o,m$(t),f$(t),()=>{if(tr.browser.isChromium()||tr.browser.isFirefox()){const r=t.selection.getRng();Hl.setEditorTimeout(t,()=>{t.selection.setRng(r),t.execCommand("Delete")},0)}else t.execCommand("Delete")})},Mte=t=>o=>{!o.isDefaultPrevented()&&p$(t)&&TO(o,m$(t),f$(t),qe)},Ate=t=>{t.on("cut",Dte(t)),t.on("copy",Mte(t))},DO=(t,o)=>{v
|
|||
|
|
`}),t.dom.addStyle(z)}const C=Promise.all(LC(t,l,r)).then(b).catch(b),N=FS(t);return N&&zne(t,N),C},az=t=>{const o=t.getDoc(),r=t.getBody();G_(t),Pp(t)||(o.body.spellcheck=!1,AC.setAttrib(r,"spellcheck","false")),t.quirks=rz(t),Cv(t);const l=BS(t);l!==void 0&&(r.dir=l);const m=Ug(t);m&&t.on("BeforeSetContent",b=>{zt.each(m,C=>{b.content=b.content.replace(C,N=>"<!--mce:protected "+escape(N)+"-->")})}),t.on("SetContent",()=>{t.addVisual(t.getBody())}),t.on("compositionstart compositionend",b=>{t.composing=b.type==="compositionstart"})},qne=t=>{Tu(t)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"})},QO=t=>{t.removed!==!0&&(qne(t),PC(t))},eP=t=>{const o=t.getElement();let r=t.getDoc();t.inline&&(AC.addClass(o,"mce-content-body"),t.contentDocument=r=document,t.contentWindow=window,t.bodyElement=o,t.contentAreaContainer=o);const l=t.getBody();l.disabled=!0,t.readonly=jg(t),t._editableRoot=ZS(t),!t.readonly&&t.hasEditableRoot()&&(t.inline&&AC.getStyle(l,"position",!0)==="static"&&(l.style.position="relative"),l.contentEditable="true"),l.disabled=!1,t.editorUpload=$M(t),t.schema=C0(XO(t)),t.dom=oa(r,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,update_styles:!0,root_element:t.inline?t.getBody():null,collect:t.inline,schema:t.schema,contentCssCors:IS(t),referrerPolicy:zg(t),onSetAttrib:C=>{t.dispatch("SetAttrib",C)}}),t.parser=Wne(t),t.serializer=RN(Une(t),t),t.selection=Ih(t.dom,t.getWin(),t.serializer,t),t.annotator=j_(t),t.formatter=jM(t),t.undoManager=sF(t),t._nodeChangeDispatcher=new Bee(t),t._selectionOverrides=zO(t),dB(t),qte(t),f1e(t),Tu(t)||(VO(t),ZO(t));const m=Fee(t);IJ(t,m),HJ(t),TX(t),v$(t);const b=_N(t);az(t),b.fold(()=>{Xm(t).then(()=>QO(t))},C=>{t.setProgressState(!0),Xm(t).then(()=>{C().then(N=>{t.setProgressState(!1),QO(t),TN(t)},N=>{t.notificationManager.open({type:"error",text:String(N)}),QO(t),TN(t)})})})},Gne=Oe,tP=(t,o,r)=>K7(t,o,Gne,r),Zh=oa.DOM,G6=(t,o,r,l)=>{const m=Et.fromTag("iframe");return l.each(b=>li(m,"tabindex",b)),dl(m,r),dl(m,{id:t+"_ifr",frameBorder:"0",allowTransparency:"true",title:o}),X0(m,"tox-edit-area__iframe"),m},Jm=t=>{let o=PS(t)+"<html><head>";Rg(t)!==t.documentBaseUrl&&(o+='<base href="'+t.documentBaseURI.getURI()+'" />'),o+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';const r=LS(t),l=Vl(t),m=t.translate(XS(t));return Ng(t)&&(o+='<meta http-equiv="Content-Security-Policy" content="'+Ng(t)+'" />'),o+=`</head><body id="${r}" class="mce-content-body ${l}" data-id="${t.id}" aria-label="${m}"><br></body></html>`,o},iz=(t,o)=>{const r=t.translate("Rich Text Area"),l=iu(Et.fromDom(t.getElement()),"tabindex").bind(ac),m=G6(t.id,r,Sc(t),l).dom;m.onload=()=>{m.onload=null,t.dispatch("load")},t.contentAreaContainer=o.iframeContainer,t.iframeElement=m,t.iframeHTML=Jm(t),Zh.add(o.iframeContainer,m)},Zne=t=>{const o=t.iframeElement,r=()=>{t.contentDocument=o.contentDocument,eP(t)};if(Gg(t)||tr.browser.isFirefox()){const l=t.getDoc();l.open(),l.write(t.iframeHTML),l.close(),r()}else{const l=tP(Et.fromDom(o),"load",()=>{l.unbind(),r()});o.srcdoc=t.iframeHTML}},Kne=(t,o)=>{iz(t,o),o.editorContainer&&(o.editorContainer.style.display=t.orgDisplay,t.hidden=Zh.isHidden(o.editorContainer)),t.getElement().style.display="none",Zh.setAttrib(t.id,"aria-hidden","true"),t.getElement().style.visibility=t.orgVisibility,Zne(t)},cz=oa.DOM,Yne=(t,o,r)=>{const l=V6.get(r),m=V6.urls[r]||t.documentBaseUrl.replace(/\/$/,"");if(r=zt.trim(r),l&&zt.inArray(o,r)===-1){if(t.plugins[r])return;try{const b=l(t,m)||{};t.plugins[r]=b,ae(b.init)&&(b.init(t,m),o.push(r))}catch(b){v2(t,r,b)}}},Xne=t=>t.replace(/^\-/,""),Jne=t=>{const o=[];ct(Ap(t),r=>{Yne(t,o,Xne(r))})},lz=t=>{const o=zt.trim(Hg(t)),r=t.ui.registry.getAll().icons,l=$e($e({},cw.get("default").icons),cw.get(o).icons);pe(l,(m,b)=>{Zt(r,b)||t.ui.registry.addIcon(b,m)})},Qne=t=>{const o=Il(t);if(V(o)){const r=I6.get(o);t.theme=r(t,I6.urls[o])||{},ae(t.theme.init)&&t.theme.init(t,I6.urls[o]||t.documentBaseUrl.replace(/\/$/,""))}else t.theme={}},eoe=t=>{const o=Tp(t),r=k6.get(o);t.model=r(t,k6.u
|
|||
|
|
`+u.getErrorInfo())},X4=(n,a)=>ei.serror([{path:n,getErrorInfo:a}]),Qd=(n,a,u)=>X4(n,()=>'Could not find valid *required* value for "'+a+'" in '+K7(u)),tS=(n,a)=>X4(n,()=>'Choice schema did not contain choice key: "'+a+'"'),wf=(n,a,u)=>X4(n,()=>'The chosen schema: "'+u+'" did not exist in branches: '+K7(a)),z2=(n,a)=>X4(n,()=>"There are unsupported fields: ["+a.join(", ")+"] specified"),Y7=(n,a)=>X4(n,U(a)),b0=n=>{const a=(p,y)=>ei.bindError(n(y),S=>Y7(p,S)),u=U("val");return{extract:a,toString:u}},e3=b0(ei.svalue),nS=(n,a,u,p)=>pe(a,u).fold(()=>Qd(n,u,a),p),k5=(n,a,u,p)=>{const y=pe(n,a).getOrThunk(()=>u(n));return p(y)},X7=(n,a,u)=>u(pe(n,a)),hy=(n,a,u,p)=>{const y=pe(n,a).map(S=>S===!0?u(n):S);return p(y)},J7=(n,a,u,p,y)=>{const S=j=>y.extract(a.concat([p]),j),k=j=>j.fold(()=>ei.svalue($.none()),K=>{const te=y.extract(a.concat([p]),K);return ei.map(te,$.some)});switch(n.tag){case"required":return nS(a,u,p,S);case"defaultedThunk":return k5(u,p,n.process,S);case"option":return X7(u,p,k);case"defaultedOptionThunk":return hy(u,p,n.process,k);case"mergeWithThunk":return k5(u,p,U({}),j=>{const K=ba(n.process(u),j);return S(K)})}},Gc=(n,a,u)=>{const p={},y=[];for(const S of u)T8(S,(k,j,K,te)=>{const de=J7(K,n,a,k,te);ei.fold(de,we=>{y.push(...we)},we=>{p[j]=we})},(k,j)=>{p[k]=j(a)});return y.length>0?ei.serror(y):ei.svalue(p)},V5=n=>({extract:(p,y)=>n().extract(p,y),toString:()=>n().toString()}),Ii=n=>sn(ue(n,I)),Oc=n=>{const a=ns(n),u=ft(n,(y,S)=>T8(S,k=>ba(y,{[k]:!0}),U(y)),{});return{extract:(y,S)=>{const k=M(S)?[]:Ii(S),j=Ge(k,K=>!Ue(u,K));return j.length===0?a.extract(y,S):z2(y,j)},toString:a.toString}},ns=n=>({extract:(p,y)=>Gc(p,y,n),toString:()=>`obj{
|
|||
|
|
`+De(n,y=>T8(y,(S,k,j,K)=>S+" -> "+K.toString(),(S,k)=>"state("+S+")")).join(`
|
|||
|
|
`)+"}"}),Mo=n=>({extract:(p,y)=>{const S=De(y,(k,j)=>n.extract(p.concat(["["+j+"]"]),k));return Z7.consolidateArr(S)},toString:()=>"array("+n.toString()+")"}),t3=(n,a)=>{const u=a!==void 0?a:Q;return{extract:(S,k)=>{const j=[];for(const K of n){const te=K.extract(S,k);if(te.stype===Ha.Value)return{stype:Ha.Value,svalue:u(te.svalue)};j.push(te)}return Z7.consolidateArr(j)},toString:()=>"oneOf("+De(n,S=>S.toString()).join(", ")+")"}},lu=(n,a)=>{const u=(S,k)=>Mo(b0(n)).extract(S,k);return{extract:(S,k)=>{const j=sn(k),K=u(S,j);return ei.bind(K,te=>{const de=De(te,we=>m1(we,we,Xr(),a));return ns(de).extract(S,k)})},toString:()=>"setOf("+a.toString()+")"}},Q7=(n,a)=>{const u=d1(a);return{extract:(S,k)=>u().extract(S,k),toString:()=>u().toString()}},eg=J(Mo,ns),uu=U(e3),du=(n,a)=>b0(u=>{const p=typeof u;return n(u)?ei.svalue(u):ei.serror(`Expected type: ${a} but got: ${p}`)}),I5=du(H,"number"),Ga=du(v,"string"),D8=du(M,"boolean"),Cf=du(R,"function"),io=n=>{if(Object(n)!==n)return!0;switch({}.toString.call(n).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(n).every(a=>io(n[a]));default:return!1}},oS=b0(n=>io(n)?ei.svalue(n):ei.serror("Expected value to be acceptable for sending via postMessage")),sS=(n,a,u,p)=>pe(u,p).fold(()=>wf(n,u,p),S=>S.extract(n.concat(["branch: "+p]),a)),N1=(n,a)=>({extract:(y,S)=>pe(S,n).fold(()=>tS(y,n),j=>sS(y,S,a,j)),toString:()=>"chooseOn("+n+"). Possible values: "+sn(a)}),M8=()=>Mo(e3),J4=n=>b0(a=>n(a).fold(ei.serror,ei.svalue)),$a=(n,a)=>lu(u=>ei.fromResult(n(u)),a),gy=(n,a,u)=>{const p=a.extract([n],u);return ei.mapError(p,y=>({input:u,errors:y}))},Jr=(n,a,u)=>ei.toResult(gy(n,a,u)),Hr=n=>n.fold(a=>{throw new Error(Ef(a))},Q),Zc=(n,a,u)=>Hr(Jr(n,a,u)),Ef=n=>`Errors:
|
|||
|
|
`+py(n.errors).join(`
|
|||
|
|
`)+`
|
|||
|
|
|
|||
|
|
Input object: `+K7(n.input),Ai=(n,a)=>N1(n,_t(a,ns)),n3=(n,a)=>Q7(n,a),Cc=m1,Ol=R1,j2=n=>J4(a=>Pe(n,a)?Zo.value(a):Zo.error(`Unsupported value: "${a}", choose one of "${n.join(", ")}".`)),Vn=n=>Cc(n,n,Xr(),uu()),Ql=(n,a)=>Cc(n,n,Xr(),a),vy=n=>Ql(n,I5),Zi=n=>Ql(n,Ga),Fu=(n,a)=>Cc(n,n,Xr(),j2(a)),R5=n=>Ql(n,D8),fu=n=>Ql(n,Cf),rS=(n,a)=>Cc(n,n,L5(),b0(u=>ei.serror("The field: "+n+" is forbidden. "+a))),Q4=(n,a)=>Cc(n,n,Xr(),ns(a)),by=(n,a)=>Cc(n,n,Xr(),eg(a)),F1=(n,a)=>Cc(n,n,Xr(),Mo(a)),Br=n=>Cc(n,n,L5(),uu()),Q0=(n,a)=>Cc(n,n,L5(),a),Sf=n=>Q0(n,I5),Kc=n=>Q0(n,Ga),N5=(n,a)=>Q0(n,j2(a)),ed=n=>Q0(n,Cf),U2=(n,a)=>Q0(n,Mo(a)),yi=(n,a)=>Q0(n,ns(a)),tg=(n,a)=>Q0(n,Oc(a)),ln=(n,a)=>Cc(n,n,U7(a),uu()),Yc=(n,a,u)=>Cc(n,n,U7(a),u),F5=(n,a)=>Yc(n,a,I5),B1=(n,a)=>Yc(n,a,Ga),p1=(n,a,u)=>Yc(n,a,j2(u)),Pc=(n,a)=>Yc(n,a,D8),di=(n,a)=>Yc(n,a,Cf),B5=(n,a)=>Yc(n,a,oS),A8=(n,a,u)=>Yc(n,a,Mo(u)),td=(n,a,u)=>Yc(n,a,ns(u)),ls=n=>{let a=n;return{get:()=>a,set:y=>{a=y}}},h1={generate:n=>{if(!E(n))throw new Error("cases must be an array");if(n.length===0)throw new Error("there must be at least one case");const a=[],u={};return Oe(n,(p,y)=>{const S=sn(p);if(S.length!==1)throw new Error("one and only one name per case");const k=S[0],j=p[k];if(u[k]!==void 0)throw new Error("duplicate key detected:"+k);if(k==="cata")throw new Error("cannot have a case named cata (sorry)");if(!E(j))throw new Error("case arguments must be an array");a.push(k),u[k]=(...K)=>{const te=K.length;if(te!==j.length)throw new Error("Wrong number of arguments to case "+k+". Expected "+j.length+" ("+j+"), got "+te);return{fold:(...we)=>{if(we.length!==n.length)throw new Error("Wrong number of arguments to fold. Expected "+n.length+", got "+we.length);return we[y].apply(null,K)},match:we=>{const Ee=sn(we);if(a.length!==Ee.length)throw new Error("Wrong number of arguments to match. Expected: "+a.join(",")+`
|
|||
|
|
Actual: `+Ee.join(","));if(!Ln(a,tt=>Pe(Ee,tt)))throw new Error("Not all branches were specified when using match. Specified: "+Ee.join(", ")+`
|
|||
|
|
Required: `+a.join(", "));return we[k].apply(null,K)},log:we=>{}}}}),u}};h1.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const nd=n=>{const a=[],u=[];return Oe(n,p=>{p.fold(y=>{a.push(y)},y=>{u.push(y)})}),{errors:a,values:u}},aS=(n,a)=>{const u={};return Je(n,(p,y)=>{Pe(a,y)||(u[y]=p)}),u},Xc=(n,a)=>({[n]:a}),H5=n=>{const a={};return Oe(n,u=>{a[u.key]=u.value}),a},W2=(n,a)=>aS(n,a),O8=(n,a)=>Xc(n,a),mu=n=>H5(n),od=(n,a)=>n.length===0?Zo.value(a):Zo.value(ba(a,Y4.apply(void 0,n))),q2=n=>Zo.error(mt(n)),pu=(n,a)=>{const u=nd(n);return u.errors.length>0?q2(u.errors):od(u.values,a)},e2=n=>R(n)?n:Me,yy=(n,a,u)=>{let p=n.dom;const y=e2(u);for(;p.parentNode;){p=p.parentNode;const S=Rt.fromDom(p),k=a(S);if(k.isSome())return k;if(y(S))break}return $.none()},P8=(n,a,u)=>{const p=a(n),y=e2(u);return p.orThunk(()=>y(n)?$.none():yy(n,a,y))},$5=(n,a)=>br(n.element,a.event.target),_y={can:qe,abort:Me,run:V},t2=n=>{if(!Ue(n,"can")&&!Ue(n,"abort")&&!Ue(n,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(n,null,2)+" does not have can, abort, or run!");return $e($e({},_y),n)},Tf=(n,a)=>(...u)=>vt(n,(p,y)=>p&&a(y).apply(void 0,u),!0),iS=(n,a)=>(...u)=>vt(n,(p,y)=>p||a(y).apply(void 0,u),!1),ng=n=>R(n)?{can:qe,abort:Me,run:n}:n,z5=n=>{const a=Tf(n,y=>y.can),u=iS(n,y=>y.abort);return{can:a,abort:u,run:(...y)=>{Oe(n,S=>{S.run.apply(void 0,y)})}}},Ki=U,n2=Ki("touchstart"),L8=Ki("touchmove"),o3=Ki("touchend"),xy=Ki("touchcancel"),H1=Ki("mousedown"),j5=Ki("mousemove"),Df=Ki("mouseout"),g1=Ki("mouseup"),G2=Ki("mouseover"),y0=Ki("focusin"),sd=Ki("focusout"),Bu=Ki("keydown"),wy=Ki("keyup"),rd=Ki("input"),k8=Ki("change"),hu=Ki("click"),Cy=Ki("transitioncancel"),Mf=Ki("transitionend"),og=Ki("transitionstart"),sg=Ki("selectstart"),ti=n=>U("alloy."+n),Ey={tap:ti("tap")},ad=ti("focus"),V8=ti("blur.post"),_0=ti("paste.post"),x0=ti("receive"),$1=ti("execute"),I8=ti("focus.item"),Af=Ey.tap,Ri=ti("longpress"),s3=ti("sandbox.close"),rg=ti("typeahead.cancel"),r3=ti("system.init"),R8=ti("system.touchmove"),ag=ti("system.touchend"),a3=ti("system.scroll"),Z2=ti("system.resize"),e1=ti("system.attached"),K2=ti("system.detached"),o2=ti("system.dismissRequested"),ig=ti("system.repositionRequested"),U5=ti("focusmanager.shifted"),Of=ti("slotcontainer.visibility"),W5=ti("system.external.element.scroll"),N8=ti("change.tab"),id=ti("dismiss.tab"),Sy=ti("highlight"),Pf=ti("dehighlight"),Pr=(n,a)=>{G5(n,n.element,a,{})},Yo=(n,a,u)=>{G5(n,n.element,a,u)},i3=n=>{Pr(n,$1())},q5=(n,a,u)=>{G5(n,a,u,{})},G5=(n,a,u,p)=>{const y=$e({target:a},p);n.getSystem().triggerEvent(u,a,y)},cg=(n,a,u,p)=>{const y=gn($e({},p),{target:a});n.getSystem().triggerEvent(u,a,y)},cS=(n,a,u,p)=>{n.getSystem().triggerEvent(u,a,p.event)},ma=n=>mu(n),Z5=(n,a)=>({key:n,value:t2({abort:a})}),Ty=(n,a)=>({key:n,value:t2({can:a})}),Lf=n=>({key:n,value:t2({run:(a,u)=>{u.event.prevent()}})}),Fn=(n,a)=>({key:n,value:t2({run:a})}),F8=(n,a,u)=>({key:n,value:t2({run:(p,y)=>{a.apply(void 0,[p,y].concat(u))}})}),lS=n=>a=>Fn(n,a),K5=n=>a=>({key:n,value:t2({run:(u,p)=>{$5(u,p)&&a(u,p)}})}),lg=(n,a)=>Fn(n,(u,p)=>{u.getSystem().getByUid(a).each(y=>{cS(y,y.element,n,p)})}),B8=(n,a,u)=>{const p=a.partUids[u];return lg(n,p)},H8=(n,a)=>Fn(n,(u,p)=>{const y=p.event,S=u.getSystem().getByDom(y.target).getOrThunk(()=>P8(y.target,j=>u.getSystem().getByDom(j).toOptional(),Me).getOr(u));a(u,S,p)}),s2=n=>Fn(n,(a,u)=>{u.cut()}),uS=n=>Fn(n,(a,u)=>{u.stop()}),$8=(n,a)=>K5(n)(a),Sa=K5(e1()),hl=K5(K2()),dS=K5(r3()),w0=lS($1()),kf=(n,a)=>{const p=(a||document).createElement("div");return p.innerHTML=n,Oa(Rt.fromDom(p))},c3=n=>n.dom.innerHTML,l3=(n,a)=>{const p=ii(n).dom,y=Rt.fromDom(p.createDocumentFragment()),S=kf(a,p);J0(y,S),Z4(n),Kl(n,y)},Dy=n=>{const a=Rt.fromTag("div"),u=Rt.fromDom(n.dom.cloneNode(!0));return Kl(a,u),c3(a)},My=(n,a)=>Rt.fromDom(n.dom.cloneNode(a)),ug=n=>My(n,!1),fS=n=>{if(V1(n))return"#shadow-root";{const a=ug(n);return Dy(a)}},Y5=n=>fS(n),Y2=(n,a,u)=>br(a,n.element)&&!br(a,u),X5=ma([Ty(ad(),(n,a)=>{co
|
|||
|
|
`+Y5(n().element)+" is not in context.":""),u=y=>()=>{throw new Error(a(y))},p=y=>()=>{};return{debugInfo:U("fake"),triggerEvent:p("triggerEvent"),triggerFocus:p("triggerFocus"),triggerEscape:p("triggerEscape"),broadcast:p("broadcast"),broadcastOn:p("broadcastOn"),broadcastEvent:p("broadcastEvent"),build:u("build"),buildOrPatch:u("buildOrPatch"),addToWorld:u("addToWorld"),removeFromWorld:u("removeFromWorld"),addToGui:u("addToGui"),removeFromGui:u("removeFromGui"),getByUid:u("getByUid"),getByDom:u("getByDom"),isConnected:Me}},fg=C0(),Oy=(n,a,u)=>{const p=u.toString(),y=p.indexOf(")")+1,S=p.indexOf("("),k=p.substring(S+1,y-1).split(/,\s*/);return n.toFunctionAnnotation=()=>({name:a,parameters:mg(k.slice(0,1).concat(k.slice(3)))}),n},mg=n=>De(n,a=>Lt(a,"/*")?a.substring(0,a.length-2):a),Rf=(n,a)=>{const u=n.toString(),p=u.indexOf(")")+1,y=u.indexOf("("),S=u.substring(y+1,p-1).split(/,\s*/);return n.toFunctionAnnotation=()=>({name:a,parameters:mg(S)}),n},r2=(n,a)=>{const u=a.toString(),p=u.indexOf(")")+1,y=u.indexOf("("),S=u.substring(y+1,p-1).split(/,\s*/);return n.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:mg(S.slice(1))}),n},Nf=Oo("alloy-premade"),tp=n=>(Object.defineProperty(n.element.dom,Nf,{value:n.uid,writable:!0}),O8(Nf,n)),mS=n=>ve(n.dom,Nf),Py=n=>pe(n,Nf),z8=n=>r2((a,...u)=>n(a.getApis(),a,...u),n),vl={init:()=>v1({readState:U("No State required")})},v1=n=>n,j8=(n,a)=>{const u=De(a,y=>yi(y.name(),[Vn("config"),ln("state",vl)])),p=Jr("component.behaviours",ns(u),n.behaviours).fold(y=>{throw new Error(Ef(y)+`
|
|||
|
|
Complete spec:
|
|||
|
|
`+JSON.stringify(n,null,2))},Q);return{list:a,data:_t(p,y=>{const S=y.map(k=>({config:k.config,state:k.state.init(k.config)}));return U(S)})}},Ly=n=>n.list,u3=n=>n.data,np=(n,a)=>{const u={};return Je(n,(p,y)=>{Je(p,(S,k)=>{const j=pe(u,k).getOr([]);u[k]=j.concat([a(y,S)])})}),u},$u=n=>({classes:L(n.classes)?[]:n.classes,attributes:L(n.attributes)?{}:n.attributes,styles:L(n.styles)?{}:n.styles}),pg=(n,a)=>gn($e({},n),{attributes:$e($e({},n.attributes),a.attributes),styles:$e($e({},n.styles),a.styles),classes:n.classes.concat(a.classes)}),op=(n,a,u,p)=>{const y=$e({},a);Oe(u,de=>{y[de.name()]=de.exhibit(n,p)});const S=np(y,(de,we)=>({name:de,modification:we})),k=de=>ft(de,(we,Ee)=>$e($e({},Ee.modification),we),{}),j=ft(S.classes,(de,we)=>we.modification.concat(de),[]),K=k(S.attributes),te=k(S.styles);return $u({classes:j,attributes:K,styles:te})},U8=(n,a,u,p)=>{try{const y=Sn(u,(S,k)=>{const j=S[a],K=k[a],te=p.indexOf(j),de=p.indexOf(K);if(te===-1)throw new Error("The ordering for "+n+" does not have an entry for "+j+`.
|
|||
|
|
Order specified: `+JSON.stringify(p,null,2));if(de===-1)throw new Error("The ordering for "+n+" does not have an entry for "+K+`.
|
|||
|
|
Order specified: `+JSON.stringify(p,null,2));return te<de?-1:de<te?1:0});return Zo.value(y)}catch(y){return Zo.error([y])}},hg=(n,a)=>({handler:n,purpose:a}),J2=(n,a)=>({cHandler:n,purpose:a}),ky=(n,a)=>J2(oe.apply(void 0,[n.handler].concat(a)),n.purpose),sp=n=>n.cHandler,rp=(n,a)=>({name:n,handler:a}),gg=(n,a)=>{const u={};return Oe(n,p=>{u[p.name()]=p.handlers(a)}),u},oa=(n,a,u)=>{const p=$e($e({},u),gg(a,n));return np(p,rp)},ap=(n,a,u,p)=>{const y=oa(n,u,p);return Iy(y,a)},pS=n=>{const a=ng(n);return(u,p,...y)=>{const S=[u,p].concat(y);a.abort.apply(void 0,S)?p.stop():a.can.apply(void 0,S)&&a.run.apply(void 0,S)}},Vy=(n,a)=>Zo.error(["The event ("+n+`) has more than one behaviour that listens to it.
|
|||
|
|
When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).
|
|||
|
|
The behaviours that can trigger it are: `+JSON.stringify(De(a,u=>u.name),null,2)]),W8=(n,a,u)=>{const p=a[u];return p?U8("Event: "+u,"name",n,p).map(y=>{const S=De(y,k=>k.handler);return z5(S)}):Vy(u,n)},Iy=(n,a)=>{const u=at(n,(p,y)=>(p.length===1?Zo.value(p[0].handler):W8(p,a,y)).map(k=>{const j=pS(k),K=p.length>1?Ge(a[y],te=>We(p,de=>de.name===te)).join(" > "):p[0].name;return O8(y,hg(j,K))}));return pu(u,{})},b1="alloy.base.behaviour",Yi=ns([Cc("dom","dom",Xr(),ns([Vn("tag"),ln("styles",{}),ln("classes",[]),ln("attributes",{}),Br("value"),Br("innerHtml")])),Vn("components"),Vn("uid"),ln("events",{}),ln("apis",{}),Cc("eventOrder","eventOrder",or({[$1()]:["disabling",b1,"toggling","typeaheadevents"],[ad()]:[b1,"focusing","keying"],[r3()]:[b1,"disabling","toggling","representing"],[rd()]:[b1,"representing","streaming","invalidating"],[K2()]:[b1,"representing","item-events","tooltipping"],[H1()]:["focusing",b1,"item-type-events"],[n2()]:["focusing",b1,"item-type-events"],[G2()]:["item-type-events","tooltipping"],[x0()]:["receiving","reflecting","tooltipping"]}),uu()),Br("domModification")]),vg=n=>Jr("custom.definition",Yi,n),Ry=n=>gn($e({},n.dom),{uid:n.uid,domChildren:De(n.components,a=>a.element)}),q8=n=>n.domModification.fold(()=>$u({}),$u),ip=n=>n.events,bg=(n,a)=>{const u=ci(n,a);return u===void 0||u===""?[]:u.split(" ")},kG=(n,a,u)=>{const y=bg(n,a).concat([u]);return vs(n,a,y.join(" ")),!0},cp=(n,a,u)=>{const p=Ge(bg(n,a),y=>y!==u);return p.length>0?vs(n,a,p.join(" ")):he(n,a),!1},cd=n=>n.dom.classList!==void 0,Ny=n=>bg(n,"class"),tV=(n,a)=>kG(n,"class",a),nV=(n,a)=>cp(n,"class",a),Oi=(n,a)=>{cd(n)?n.dom.classList.add(a):tV(n,a)},E0=n=>{(cd(n)?n.dom.classList:Ny(n)).length===0&&he(n,"class")},Ar=(n,a)=>{cd(n)?n.dom.classList.remove(a):nV(n,a),E0(n)},Pl=(n,a)=>cd(n)&&n.dom.classList.contains(a),a2=(n,a)=>{Oe(a,u=>{Oi(n,u)})},Ec=(n,a)=>{Oe(a,u=>{Ar(n,u)})},Q2=(n,a)=>Ln(a,u=>Pl(n,u)),yg=n=>{const a=n.dom.classList,u=new Array(a.length);for(let p=0;p<a.length;p++){const y=a.item(p);y!==null&&(u[p]=y)}return u},ld=n=>cd(n)?yg(n):Ny(n),Ll=n=>n.dom.value,z1=(n,a)=>{if(a===void 0)throw new Error("Value.set was undefined");n.dom.value=a},Ni=(n,a,u)=>cc(n,a).map(y=>{if(u.exists(k=>!br(k,y))){const k=u.map(Ja).getOr("span"),j=Rt.fromTag(k);return I1(y,j),j}else return y}),G8=(n,a,u)=>{u.fold(()=>Kl(n,a),p=>{br(p,a)||(I1(p,a),Yl(p))})},ud=(n,a,u)=>{const p=De(a,u),y=Oa(n);return Oe(y.slice(p.length),Yl),p},_g=(n,a,u,p)=>{const y=cc(n,a),S=p(u,y),k=Ni(n,a,y);return G8(n,S.element,k),S},Fy=(n,a,u)=>ud(n,a,(p,y)=>_g(n,y,p,u)),e4=(n,a)=>ud(n,a,(u,p)=>{const y=cc(n,p);return G8(n,u,y),u}),S0=(n,a)=>{const u=sn(n),p=sn(a),y=Ke(p,u),S=Ze(n,(k,j)=>!ve(a,j)||k!==a[j]).t;return{toRemove:y,toSet:S}},By=(n,a)=>{const jn=Ne(a),{class:u,style:p}=jn,y=C2(jn,["class","style"]),{toSet:S,toRemove:k}=S0(n.attributes,y),j=()=>{Oe(k,_n=>he(a,_n)),tr(a,S)},K=Hs(a),{toSet:te,toRemove:de}=S0(n.styles,K),we=()=>{Oe(de,_n=>Ts(a,_n)),uo(a,te)},Ee=ld(a),Re=Ke(Ee,n.classes),tt=Ke(n.classes,Ee),St=()=>{a2(a,tt),Ec(a,Re)},an=_n=>{l3(a,_n)},Gt=()=>{const _n=n.domChildren;e4(a,_n)},Ft=()=>{const _n=a,ro=n.value.getOrUndefined();ro!==Ll(_n)&&z1(_n,ro!=null?ro:"")};return j(),St(),we(),n.innerHtml.fold(Gt,an),Ft(),a},xg=n=>{const a=Rt.fromTag(n.tag);tr(a,n.attributes),a2(a,n.classes),uo(a,n.styles),n.innerHtml.each(p=>l3(a,p));const u=n.domChildren;return J0(a,u),n.value.each(p=>{z1(a,p)}),a},hS=(n,a)=>{try{const u=By(n,a);return $.some(u)}catch(u){return $.none()}},gS=n=>n.innerHtml.isSome()&&n.domChildren.length>0,vS=(n,a)=>{const u=y=>Ja(y)===n.tag&&!gS(n)&&!mS(y),p=a.filter(u).bind(y=>hS(n,y)).getOrThunk(()=>xg(n));return ep(p,n.uid),p},wg=n=>{const a=pe(n,"behaviours").getOr({});return ct(sn(a),u=>{const p=a[u];return I(p)?[p.me]:[]})},Ff=(n,a)=>j8(n,a),bS=n=>{const a=wg(n);return Ff(n,a)},yS=(n,a,u)=>{const p=Ry(n),y=q8(n),S={"alloy.base.modification":y},k=a.length>0?op(u,S,a,p):y;return pg(p,k)},Cg=(n,a,u)=>{const p={"alloy.base.behaviour":ip(n)};return ap(u,n.eventOrder,a,p).getOrDie()},dd=(n,a)=>{const u=()=>jn,p=ls(fg),y=Hr(vg(n)),S=bS(n),k=Ly(S),j=
|
|||
|
|
`);return Dt(a,u=>u.indexOf("alloy")>0&&!We(ES,p=>u.indexOf(p)>-1)).getOr(Tg)}else return Tg},mp={logEventCut:V,logEventStopped:V,logNoParent:V,logEventNoHandlers:V,logEventResponse:V,write:V},X8=(n,a,u)=>Y8(n,a,u),$f=U(mp),pp=U([Vn("menu"),Vn("selectedMenu")]),J8=U([Vn("item"),Vn("selectedItem")]);U(ns(J8().concat(pp())));const zy=U(ns(J8())),hp=Q4("initSize",[Vn("numColumns"),Vn("numRows")]),oV=()=>Ql("markers",zy()),i2=()=>Q4("markers",[Vn("backgroundMenu")].concat(pp()).concat(J8())),pd=n=>Q4("markers",De(n,Vn)),t1=(n,a,u)=>(Hf(),Cc(a,a,u,J4(p=>Zo.value((...y)=>p.apply(void 0,y))))),Gs=n=>t1("onHandler",n,U7(V)),y1=n=>t1("onKeyboardHandler",n,U7($.none)),Tn=n=>t1("onHandler",n,Xr()),Q8=n=>t1("onKeyboardHandler",n,Xr()),Ta=(n,a)=>Ol(n,U(a)),jy=n=>Ol(n,Q),gp=U(hp),za=(n,a,u,p,y,S,k,j=!1)=>({x:n,y:a,bubble:u,direction:p,placement:y,restriction:S,label:`${k}-${y}`,alwaysFit:j}),o4=h1.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),vp=(n,a,u,p,y,S,k,j,K)=>n.fold(a,u,p,y,S,k,j,K),Dg=(n,a,u,p)=>n.fold(a,a,p,p,a,p,u,u),Mg=(n,a,u,p)=>n.fold(a,p,a,p,u,u,a,p),bp=o4.southeast,yp=o4.southwest,hd=o4.northeast,zf=o4.northwest,Ag=o4.south,_p=o4.north,Uy=o4.east,Wy=o4.west,p3=(n,a,u,p)=>{const y=n+a;return y>p?u:y<u?p:y},bl=(n,a,u)=>Math.min(Math.max(n,a),u),sV=(n,a)=>{switch(a){case 1:return n.x;case 0:return n.x+n.width;case 2:return n.y;case 3:return n.y+n.height}},pa=(n,a)=>gt(["left","right","top","bottom"],u=>pe(a,u).map(p=>sV(n,p))),SS=(n,a,u)=>{const p=(K,te)=>a[K].map(de=>{const we=K==="top"||K==="bottom",Ee=we?u.top:u.left,tt=(K==="left"||K==="top"?Math.max:Math.min)(de,te)+Ee;return we?bl(tt,n.y,n.bottom):bl(tt,n.x,n.right)}).getOr(te),y=p("left",n.x),S=p("top",n.y),k=p("right",n.right),j=p("bottom",n.bottom);return ne(y,S,k-y,j-S)},c2="layout",Og=n=>n.x,Pg=(n,a)=>n.x+n.width/2-a.width/2,jf=(n,a)=>n.x+n.width-a.width,Uf=(n,a)=>n.y-a.height,xp=n=>n.y+n.height,qy=(n,a)=>n.y+n.height/2-a.height/2,TS=n=>n.x+n.width,Lg=(n,a)=>n.x-a.width,dc=(n,a,u)=>za(Og(n),xp(n),u.southeast(),bp(),"southeast",pa(n,{left:1,top:3}),c2),Xi=(n,a,u)=>za(jf(n,a),xp(n),u.southwest(),yp(),"southwest",pa(n,{right:0,top:3}),c2),yl=(n,a,u)=>za(Og(n),Uf(n,a),u.northeast(),hd(),"northeast",pa(n,{left:1,bottom:2}),c2),kl=(n,a,u)=>za(jf(n,a),Uf(n,a),u.northwest(),zf(),"northwest",pa(n,{right:0,bottom:2}),c2),ya=(n,a,u)=>za(Pg(n,a),Uf(n,a),u.north(),_p(),"north",pa(n,{bottom:2}),c2),Fi=(n,a,u)=>za(Pg(n,a),xp(n),u.south(),Ag(),"south",pa(n,{top:3}),c2),_l=(n,a,u)=>za(TS(n),qy(n,a),u.east(),Uy(),"east",pa(n,{left:0}),c2),Gy=(n,a,u)=>za(Lg(n,a),qy(n,a),u.west(),Wy(),"west",pa(n,{right:1}),c2),T0=()=>[dc,Xi,yl,kl,Fi,ya,_l,Gy],Zy=()=>[Xi,dc,kl,yl,Fi,ya,_l,Gy],Ky=()=>[yl,kl,dc,Xi,ya,Fi],Yy=()=>[kl,yl,Xi,dc,ya,Fi],kg=()=>[dc,Xi,yl,kl,Fi,ya],wp=()=>[Xi,dc,kl,yl,Fi,ya],Cp=(n,a)=>a.universal?n:Ge(n,u=>Pe(a.channels,u));var Xy=Object.freeze({__proto__:null,events:n=>ma([Fn(x0(),(a,u)=>{const p=n.channels,y=sn(p),S=u,k=Cp(y,S);Oe(k,j=>{const K=p[j],te=K.schema,de=Zc("channel["+j+`] data
|
|||
|
|
Receiver: `+Y5(a.element),te,S.data);K.onReceive(a,de)})})])}),DS=[Ql("channels",$a(Zo.value,Oc([Tn("onReceive"),ln("schema",uu())])))];const Vg=(n,a,u)=>w0(p=>{u(p,n,a)}),Ig=(n,a,u)=>dS((p,y)=>{u(p,n,a)}),MS=(n,a,u,p,y,S)=>{const k=Oc(n),j=yi(a,[tg("config",n)]);return Ep(k,j,a,u,p,y,S)},AS=(n,a,u,p,y,S)=>{const k=n,j=yi(a,[Q0("config",n)]);return Ep(k,j,a,u,p,y,S)},Jy=(n,a,u)=>Oy((y,...S)=>{const k=[y].concat(S);return y.config({name:U(n)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+n+". Using API: "+u)},j=>{const K=Array.prototype.slice.call(k,1);return a.apply(void 0,[y,j.config,j.state].concat(K))})},u,a),Po=n=>({key:n,value:void 0}),Ep=(n,a,u,p,y,S,k)=>{const j=we=>Ue(we,u)?we[u]():$.none(),K=_t(y,(we,Ee)=>Jy(u,we,Ee)),te=_t(S,(we,Ee)=>Rf(we,Ee)),de=gn($e($e({},te),K),{revoke:oe(Po,u),config:we=>{const Ee=Zc(u+"-config",n,we);return{key:u,value:{config:Ee,me:de,configAsRaw:d1(()=>Zc(u+"-config",n,we)),initialConfig:we,state:k}}},schema:U(a),exhibit:(we,Ee)=>At(j(we),pe(p,"exhibit"),(Re,tt)=>tt(Ee,Re.config,Re.state)).getOrThunk(()=>$u({})),name:U(u),handlers:we=>j(we).map(Ee=>pe(p,"events").getOr(()=>({}))(Ee.config,Ee.state)).getOr({})});return de},po=n=>mu(n),OS=Oc([Vn("fields"),Vn("name"),ln("active",{}),ln("apis",{}),ln("state",vl),ln("extra",{})]),Sc=n=>{const a=Zc("Creating behaviour: "+n.name,OS,n);return MS(a.fields,a.name,a.active,a.apis,a.extra,a.state)},PS=Oc([Vn("branchKey"),Vn("branches"),Vn("name"),ln("active",{}),ln("apis",{}),ln("state",vl),ln("extra",{})]),Rg=n=>{const a=Zc("Creating behaviour: "+n.name,PS,n);return AS(Ai(a.branchKey,a.branches),a.name,a.active,a.apis,a.extra,a.state)},LS=U(void 0),Vl=Sc({fields:DS,name:"receiving",active:Xy});var Qy=Object.freeze({__proto__:null,exhibit:(n,a)=>$u({classes:[],styles:a.useFixed()?{}:{position:"relative"}})});const ni=n=>n.dom.focus(),gd=n=>n.dom.blur(),e6=n=>{const a=Ht(n).dom;return n.dom===a.activeElement},l2=(n=_f())=>$.from(n.dom.activeElement).map(Rt.fromDom),zu=n=>l2(Ht(n)).filter(a=>n.dom.contains(a.dom)),Wf=(n,a)=>{const u=Ht(a),p=l2(u).bind(S=>{const k=j=>br(S,j);return k(a)?$.some(a):Hy(a,k)}),y=n(a);return p.each(S=>{l2(u).filter(k=>br(k,S)).fold(()=>{ni(S)},V)}),y},_1=(n,a,u,p,y)=>{const S=k=>k+"px";return{position:n,left:a.map(S),top:u.map(S),right:p.map(S),bottom:y.map(S)}},e_=n=>gn($e({},n),{position:$.some(n.position)}),Fg=(n,a)=>{cn(n,e_(a))},Bg=h1.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Hg=(n,a,u,p,y,S)=>{const k=a.rect,j=k.x-u,K=k.y-p,te=k.width,de=k.height,we=y-(j+te),Ee=S-(K+de),Re=$.some(j),tt=$.some(K),St=$.some(we),an=$.some(Ee),Gt=$.none();return vp(a.direction,()=>_1(n,Re,tt,Gt,Gt),()=>_1(n,Gt,tt,St,Gt),()=>_1(n,Re,Gt,Gt,an),()=>_1(n,Gt,Gt,St,an),()=>_1(n,Re,tt,Gt,Gt),()=>_1(n,Re,Gt,Gt,an),()=>_1(n,Re,tt,Gt,Gt),()=>_1(n,Gt,tt,St,Gt))},t_=(n,a)=>n.fold(()=>{const u=a.rect;return _1("absolute",$.some(u.x),$.some(u.y),$.none(),$.none())},(u,p,y,S)=>Hg("absolute",a,u,p,y,S),(u,p,y,S)=>Hg("fixed",a,u,p,y,S)),$g=(n,a)=>{const u=oe(S8,a),p=n.fold(u,u,()=>{const k=pl();return S8(a).translate(-k.left,-k.top)}),y=Ba(a),S=ko(a);return ne(p.left,p.top,y,S)},kS=(n,a)=>a.fold(()=>n.fold(so,so,ne),u=>n.fold(U(u),U(u),()=>{const p=n_(n,u.x,u.y);return ne(p.left,p.top,u.width,u.height)})),n_=(n,a,u)=>{const p=qs(a,u),y=()=>{const S=pl();return p.translate(-S.left,-S.top)};return n.fold(U(p),U(p),y)},VS=(n,a,u,p)=>n.fold(a,u,p);Bg.none;const IS=Bg.relative,zg=Bg.fixed,o_=(n,a)=>({anchorBox:n,origin:a}),RS=(n,a)=>o_(n,a),Sp="data-alloy-placement",NS=(n,a)=>{vs(n,Sp,a)},s_=n=>ke(n,Sp),FS=n=>he(n,Sp),qf=h1.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),BS=(n,a)=>{const{x:u,y:p,right:y,bottom:S}=a,{x:k,y:j,right:K,bottom:te,width:de,height:we}=n,Ee=k>=u&&k<=y,Re=j>=p&&j<=S,tt=Ee&&Re,St=K<=y&&K>=u,an=te<=S&&te>=p,Gt=St&&an,Ft=Math.min(de,k>=u?y-k:K-u),jn=Math.min(we,j>=p?S-j:te-p);return{originInBounds:tt,sizeInBounds:Gt,visibleW:Ft,visibleH:jn}},HS=(n,a)=>{const{x:u,y:p,right:y,bottom:S}=a,{x:k,y:j,width:K,heigh
|
|||
|
|
Known: [`+sn(p)+`]
|
|||
|
|
Namespace: `+n.getOr("none")+`
|
|||
|
|
Spec: `+JSON.stringify(u,null,2))},y=>y.replace()),O0=(n,a,u,p)=>gv(u)&&u.uiType===um?Zp(n,a,u,p):h6.single(!1,U(u)),Kp=(n,a,u,p)=>O0(n,a,u,p).fold((S,k)=>{const j=gv(u)?k(a,u.config,u.validated):k(a),K=pe(j,"components").getOr([]),te=ct(K,de=>Kp(n,a,de,p));return[gn($e({},j),{components:te})]},(S,k)=>{if(gv(u)){const j=k(a,u.config,u.validated);return u.validated.preprocess.getOr(Q)(j)}else return k(a)}),LT=(n,a,u,p)=>ct(u,y=>Kp(n,a,y,p)),U1=(n,a)=>{let u=!1;const p=()=>u,y=()=>{if(u)throw new Error("Trying to use the same placeholder more than once: "+n);return u=!0,a},S=()=>a.fold((k,j)=>k,(k,j)=>k);return{name:U(n),required:S,used:p,replace:y}},tc=(n,a,u,p)=>{const y=_t(p,(k,j)=>U1(j,k)),S=LT(n,a,u,y);return Je(y,k=>{if(k.used()===!1&&k.required())throw new Error("Placeholder: "+k.name()+` was not found in components list
|
|||
|
|
Namespace: `+n.getOr("none")+`
|
|||
|
|
Components: `+JSON.stringify(a.components,null,2))}),S},vv=h6.single,Yp=h6.multiple,M3=U(um),g6=h1.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),dm=ln("factory",{sketch:Q}),Xp=ln("schema",[]),Jp=Vn("name"),Qp=Cc("pname","pname",v0(n=>"<alloy."+Oo(n.name)+">"),uu()),H_=Ol("schema",()=>[Br("preprocess")]),v6=ln("defaults",U({})),f4=ln("overrides",U({})),$_=ns([dm,Xp,Jp,Qp,v6,f4]),bv=ns([dm,Xp,Jp,v6,f4]),eh=ns([dm,Xp,Jp,Qp,v6,f4]),z_=ns([dm,H_,Jp,Vn("unit"),Qp,v6,f4]),fm=n=>n.fold($.some,$.none,$.some,$.some),mm=n=>{const a=u=>u.name;return n.fold(a,a,a,a)},A3=n=>n.fold(Q,Q,Q,Q),wd=(n,a)=>u=>{const p=Zc("Converting part type",a,u);return n(p)},mc=wd(g6.required,$_),Uu=wd(g6.external,bv),xu=wd(g6.optional,eh),th=wd(g6.group,z_),Wu=U("entirety");var kT=Object.freeze({__proto__:null,required:mc,external:Uu,optional:xu,group:th,asNamedPart:fm,name:mm,asCommon:A3,original:Wu});const nh=(n,a,u,p)=>ba(a.defaults(n,u,p),u,{uid:n.partUids[a.name]},a.overrides(n,u,p)),yv=(n,a,u)=>{const p={},y={};return Oe(u,S=>{S.fold(k=>{p[k.pname]=vv(!0,(j,K,te)=>k.factory.sketch(nh(j,k,K,te)))},k=>{const j=a.parts[k.name];y[k.name]=U(k.factory.sketch(nh(a,k,j[Wu()]),j))},k=>{p[k.pname]=vv(!1,(j,K,te)=>k.factory.sketch(nh(j,k,K,te)))},k=>{p[k.pname]=Yp(!0,(j,K,te)=>{const de=j[k.name];return De(de,we=>k.factory.sketch(ba(k.defaults(j,we,te),we,k.overrides(j,we))))})})}),{internals:U(p),externals:U(y)}},_v=(n,a)=>{const u={};return Oe(a,p=>{fm(p).each(y=>{const S=j_(n,y.pname);u[y.name]=k=>{const j=Zc("Part: "+y.name+" in "+n,ns(y.schema),k);return gn($e({},S),{config:k,validated:j})}})}),u},j_=(n,a)=>({uiType:M3(),owner:n,name:a}),O3=(n,a,u)=>({uiType:M3(),owner:n,name:a,config:u,validated:{}}),U_=n=>ct(n,a=>a.fold($.none,$.some,$.none,$.none).map(u=>Q4(u.name,u.schema.concat([jy(Wu())]))).toArray()),VT=n=>De(n,mm),xv=(n,a,u)=>yv(n,a,u),wv=(n,a,u)=>tc($.some(n),a,a.components,u),sa=(n,a,u)=>{const p=a.partUids[u];return n.getSystem().getByUid(p).toOptional()},Cd=(n,a,u)=>sa(n,a,u).getOrDie("Could not find part: "+u),W_=(n,a,u)=>{const p={},y=a.partUids,S=n.getSystem();return Oe(u,k=>{p[k]=U(S.getByUid(y[k]))}),p},q_=(n,a)=>{const u=n.getSystem();return _t(a.partUids,(p,y)=>U(u.getByUid(p)))},G_=n=>sn(n.partUids),Cv=(n,a,u)=>{const p={},y=a.partUids,S=n.getSystem();return Oe(u,k=>{p[k]=U(S.getByUid(y[k]).getOrDie())}),p},Z_=(n,a)=>{const u=VT(a);return mu(De(u,p=>({key:p,value:n+"-"+p})))},Ev=n=>Cc("partUids","partUids",W7(a=>Z_(a.uid,n)),uu());var Sv=Object.freeze({__proto__:null,generate:_v,generateOne:O3,schemas:U_,names:VT,substitutes:xv,components:wv,defaultUids:Z_,defaultUidsSchema:Ev,getAllParts:q_,getAllPartNames:G_,getPart:sa,getPartOrDie:Cd,getParts:W_,getPartsOrDie:Cv});const K_=(n,a)=>(n.length>0?[Q4("parts",n)]:[]).concat([Vn("uid"),ln("dom",{}),ln("components",[]),jy("originalSpec"),ln("debug.sketcher",{})]).concat(a),Tv=(n,a,u,p,y)=>{const S=K_(p,y);return Zc(n+" [SpecSchema]",Oc(S.concat(a)),u)},IT=(n,a,u,p)=>{const y=Ed(p),S=Tv(n,a,y,[],[]);return u(S,y)},oh=(n,a,u,p,y)=>{const S=Ed(y),k=U_(u),j=Ev(u),K=Tv(n,a,S,k,[j]),te=xv(n,K,u),de=wv(n,K,te.internals());return p(K,de,S,te.externals())},RT=n=>ve(n,"uid"),Ed=n=>RT(n)?n:gn($e({},n),{uid:X2("uid")}),pm=n=>n.uid!==void 0,Dv=Oc([Vn("name"),Vn("factory"),Vn("configFields"),ln("apis",{}),ln("extraApis",{})]),NT=Oc([Vn("name"),Vn("factory"),Vn("configFields"),Vn("partFields"),ln("apis",{}),ln("extraApis",{})]),Pi=n=>{const a=Zc("Sketcher for "+n.name,Dv,n),u=S=>IT(a.name,a.configFields,a.factory,S),p=_t(a.apis,z8),y=_t(a.extraApis,(S,k)=>Rf(S,k));return $e($e({name:a.name,configFields:a.configFields,sketch:u},p),y)},Hi=n=>{const a=Zc("Sketcher for "+n.name,NT,n),u=k=>oh(a.name,a.configFields,a.partFields,a.factory,k),p=_v(a.name,a.partFields),y=_t(a.apis,z8),S=_t(a.extraApis,(k,j)=>Rf(k,j));return $e($e({name:a.name,partFields:a.partFields,configFields:a.configFields,sketch:u,parts:p},y),S)},P3=n=>vi("input")(n)&&ci(n,"type")!=="radio"||vi("textarea")(n);var Vo=Object.freeze({__proto__:null,getCurrent:(n,a,u)=>a.find(n)});const L3=[Vn("find")]
|
|||
|
|
Cannot use it for: `+Y5(te.element)+`
|
|||
|
|
The conflicting element is`+(yr(we.element)?" ":" not ")+"already in the DOM")},y=te=>{const de=u(te);Ue(a,de)&&p(te,de);const we=[te];n.registerId(we,de,te.events),a[de]=te},S=te=>{Hu(te.element).each(de=>{delete a[de],n.unregisterId(de)})};return{find:(te,de,we)=>n.find(te,de,we),filter:te=>n.filterByType(te),register:y,unregister:S,getById:te=>pe(a,te)}},x4=Pi({name:"Container",factory:n=>{const p=n.dom,{attributes:a}=p,u=C2(p,["attributes"]);return{uid:n.uid,dom:$e({tag:"div",attributes:$e({role:"presentation"},a)},u),components:n.components,behaviours:p6(n.containerBehaviours),events:n.events,domModification:n.domModification,eventOrder:n.eventOrder}},configFields:[ln("components",[]),Bi("containerBehaviours",[]),ln("events",{}),ln("domModification",{}),ln("eventOrder",{})]}),PM=n=>{const a=Gt=>Fs(n.element).fold(qe,Ft=>br(Gt,Ft)),u=BY(),p=(Gt,Ft)=>u.find(a,Gt,Ft),y=OY(n.element,{triggerEvent:(Gt,Ft)=>X8(Gt,Ft.target,jn=>IY(p,Gt,Ft,jn))}),S={debugInfo:U("real"),triggerEvent:(Gt,Ft,jn)=>{X8(Gt,Ft,_n=>SN(p,Gt,jn,Ft,_n))},triggerFocus:(Gt,Ft)=>{Hu(Gt).fold(()=>{ni(Gt)},jn=>{X8(ad(),Gt,_n=>(kY(p,ad(),{originator:Ft,kill:V,prevent:V,target:Gt},Gt,_n),!1))})},triggerEscape:(Gt,Ft)=>{S.triggerEvent("keydown",Gt.element,Ft.event)},getByUid:Gt=>St(Gt),getByDom:Gt=>an(Gt),build:Lc,buildOrPatch:t4,addToGui:Gt=>{K(Gt)},removeFromGui:Gt=>{te(Gt)},addToWorld:Gt=>{k(Gt)},removeFromWorld:Gt=>{j(Gt)},broadcast:Gt=>{Ee(Gt)},broadcastOn:(Gt,Ft)=>{Re(Gt,Ft)},broadcastEvent:(Gt,Ft)=>{tt(Gt,Ft)},isConnected:qe},k=Gt=>{Gt.connect(S),Ks(Gt.element)||(u.register(Gt),Oe(Gt.components(),k),S.triggerEvent(r3(),Gt.element,{target:Gt.element}))},j=Gt=>{Ks(Gt.element)||(Oe(Gt.components(),j),u.unregister(Gt)),Gt.disconnect()},K=Gt=>{m2(n,Gt)},te=Gt=>{ju(Gt)},de=()=>{y.unbind(),Yl(n.element)},we=Gt=>{const Ft=u.filter(x0());Oe(Ft,jn=>{const _n=jn.descHandler;sp(_n)(Gt)})},Ee=Gt=>{we({universal:!0,data:Gt})},Re=(Gt,Ft)=>{we({universal:!1,channels:Gt,data:Ft})},tt=(Gt,Ft)=>{const jn=u.filter(Gt);return VY(jn,Ft)},St=Gt=>u.getById(Gt).fold(()=>Zo.error(new Error('Could not find component with uid: "'+Gt+'" in system.')),Zo.value),an=Gt=>{const Ft=Hu(Gt).getOr("not found");return St(Ft)};return k(n),{root:n,element:n.element,destroy:de,add:K,remove:te,getByUid:St,getByDom:an,addToWorld:k,removeFromWorld:j,broadcast:Ee,broadcastOn:Re,broadcastEvent:tt}},HY=(n,a)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:De(n.items,a.interpreter)}),$Y=U([ln("prefix","form-field"),Bi("fieldBehaviours",[ar,So])]),zY=U([xu({schema:[Vn("dom")],name:"label"}),xu({factory:{sketch:n=>({uid:n.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:n.text}})},schema:[Vn("text")],name:"aria-descriptor"}),mc({factory:{sketch:n=>{const a=W2(n,["factory"]);return n.factory.sketch(a)}},schema:[Vn("factory")],name:"field"})]),TN=(n,a,u,p)=>{const y=mi(n.fieldBehaviours,[ar.config({find:j=>sa(j,n,"field")}),So.config({store:{mode:"manual",getValue:j=>ar.getCurrent(j).bind(So.getValue),setValue:(j,K)=>{ar.getCurrent(j).each(te=>{So.setValue(te,K)})}}})]),S=ma([Sa((j,K)=>{const te=W_(j,n,["label","field","aria-descriptor"]);te.field().each(de=>{const we=Oo(n.prefix);te.label().each(Ee=>{vs(Ee.element,"for",we),vs(de.element,"id",we)}),te["aria-descriptor"]().each(Ee=>{const Re=Oo(n.prefix);vs(Ee.element,"id",Re),vs(de.element,"aria-describedby",Re)})})})]),k={getField:j=>sa(j,n,"field"),getLabel:j=>sa(j,n,"label")};return{uid:n.uid,dom:n.dom,components:a,behaviours:y,events:S,apis:k}},zr=Hi({name:"FormField",configFields:$Y(),partFields:zY(),factory:TN,apis:{getField:(n,a)=>n.getField(a),getLabel:(n,a)=>n.getLabel(a)}});var jY=Object.freeze({__proto__:null,exhibit:(n,a)=>$u({attributes:mu([{key:a.tabAttr,value:"true"}])})}),DN=[ln("tabAttr","data-alloy-tabstop")];const oi=Sc({fields:DN,name:"tabstopping",active:jY});var UY=tinymce.util.Tools.resolve("tinymce.html.Entities");const y9=(n,a,u,p)=>{const y=WY(n,a,u,p);return zr.sketch(y)},MN=(n,a)=>y9(n,a,[],[]),WY=(n,a,u,p)=>({dom:AN(u),components:n.toArray().concat([a]),
|
|||
|
|
`+JSON.stringify(n));O6.setItem(DQ,JSON.stringify(n))},OQ=n=>{const a=j9();return pe(a,n).getOr([])},PQ=(n,a)=>{if(!ol(n))return;const u=j9(),p=pe(u,a).getOr([]),y=Ge(p,S=>S!==n);u[a]=[n].concat(y).slice(0,MQ),AQ(u)},XB=n=>!!n,LQ=n=>_t(w4.makeMap(n,/[, ]/),XB),zA=n=>$.from(ED(n)),kQ=n=>{const a=$.from(Mx(n)).filter(XB).map(LQ);return zA(n).fold(Me,u=>a.fold(qe,p=>sn(p).length>0?p:!1))},VQ=(n,a)=>{const u=kQ(n);return M(u)?u?zA(n):$.none():u[a]?zA(n):$.none()},JB=(n,a)=>VQ(n,a).map(u=>p=>Ic.nu(y=>{const S=(j,K)=>{if(!v(j))throw new Error("Expected value to be string");if(K!==void 0&&!_(K))throw new Error("Expected meta to be a object");y({value:j,meta:K})},k=$e({filetype:a,fieldname:p.fieldname},$.from(p.meta).getOr({}));u.call(n,S,p.value,k)})),U9=n=>$.from(n).filter(v).getOrUndefined(),IQ=n=>xI(n)?$.some({targets:KB.find(n.getBody()),anchorTop:U9(wI(n)),anchorBottom:U9(CI(n))}):$.none(),QB=n=>$.from(SD(n)),RQ=n=>({getHistory:OQ,addToHistory:PQ,getLinkInformation:()=>IQ(n),getValidationHandler:()=>QB(n),getUrlPicker:a=>JB(n,a)}),eH=(n,a,u,p)=>{const y=ls(!1),S=FB(a),k={icons:()=>a.ui.registry.getAll().icons,menuItems:()=>a.ui.registry.getAll().menuItems,translate:$l.translate,isDisabled:()=>a.mode.isReadOnly()||!a.ui.isEnabled(),getOption:a.options.get},j=RQ(a),K=pQ(a),te=RB(a),de=NB(a),we=()=>y.get(),Ee=an=>y.set(an),Re={shared:{providers:k,anchors:uQ(a,u,p,S.isPositionedAtTop),header:S},urlinput:j,styles:K,colorinput:te,dialog:de,isContextMenuOpen:we,setContextMenuState:Ee},tt=gn($e({},Re),{shared:gn($e({},Re.shared),{interpreter:an=>OA(an,{},tt),getSink:n.popup})}),St=gn($e({},Re),{shared:gn($e({},Re.shared),{interpreter:an=>OA(an,{},St),getSink:n.dialog})});return{popup:tt,dialog:St}},NQ=(n,a,u)=>{const p=(eo,bo)=>{Oe([a,...u],Do=>{Do.broadcastEvent(eo,bo)})},y=(eo,bo)=>{Oe([a,...u],Do=>{Do.broadcastOn([eo],bo)})},S=eo=>y(l4(),{target:eo.target}),k=_f(),j=Rl(k,"touchstart",S),K=Rl(k,"touchmove",eo=>p(R8(),eo)),te=Rl(k,"touchend",eo=>p(ag(),eo)),de=Rl(k,"mousedown",S),we=Rl(k,"mouseup",eo=>{eo.raw.button===0&&y(jp(),{target:eo.target})}),Ee=eo=>y(l4(),{target:Rt.fromDom(eo.target)}),Re=eo=>{eo.button===0&&y(jp(),{target:Rt.fromDom(eo.target)})},tt=()=>{Oe(n.editorManager.get(),eo=>{n!==eo&&eo.dispatch("DismissPopups",{relatedTarget:n})})},St=eo=>p(a3(),Zf(eo)),an=eo=>{y(S3(),{}),p(Z2(),Zf(eo))},Gt=Ht(Rt.fromDom(n.getElement())),Ft=h3(Gt,"scroll",eo=>{requestAnimationFrame(()=>{const bo=n.getContainer();if(bo!=null){const Xs=Nm(n,a.element).map(Uo=>[Uo.element,...Uo.others]).getOr([]);We(Xs,Uo=>br(Uo,eo.target))&&(n.dispatch("ElementScroll",{target:eo.target.dom}),p(W5(),eo))}})}),jn=()=>y(S3(),{}),_n=eo=>{eo.state&&y(l4(),{target:Rt.fromDom(n.getContainer())})},ro=eo=>{y(l4(),{target:Rt.fromDom(eo.relatedTarget.getContainer())})};n.on("PostRender",()=>{n.on("click",Ee),n.on("tap",Ee),n.on("mouseup",Re),n.on("mousedown",tt),n.on("ScrollWindow",St),n.on("ResizeWindow",an),n.on("ResizeEditor",jn),n.on("AfterProgressState",_n),n.on("DismissPopups",ro)}),n.on("remove",()=>{n.off("click",Ee),n.off("tap",Ee),n.off("mouseup",Re),n.off("mousedown",tt),n.off("ScrollWindow",St),n.off("ResizeWindow",an),n.off("ResizeEditor",jn),n.off("AfterProgressState",_n),n.off("DismissPopups",ro),de.unbind(),j.unbind(),K.unbind(),te.unbind(),we.unbind(),Ft.unbind()}),n.on("detach",()=>{Oe([a,...u],L_),Oe([a,...u],eo=>eo.destroy())})},Dc=Sv,D4=kT,h1e=U([ln("shell",!1),Vn("makeItem"),ln("setupItem",V),_u.field("listBehaviours",[ws])]),FQ=xu({name:"items",overrides:()=>({behaviours:po([ws.config({})])})}),BQ=U([FQ]),HQ=U("CustomList"),tH=(n,a,u,p)=>{const y=(j,K)=>{k(j).fold(()=>{throw new Error("Custom List was defined to not be a shell, but no item container was specified in components")},te=>{const de=ws.contents(te),we=K.length,Ee=we-de.length,Re=Ee>0?Ce(Ee,()=>n.makeItem()):[],tt=de.slice(we);Oe(tt,an=>ws.remove(te,an)),Oe(Re,an=>ws.append(te,an));const St=ws.contents(te);Oe(St,(an,Gt)=>{n.setupItem(j,an,K[Gt],Gt)})})},S=n.shell?{behaviours:[ws.config({})],components:[]}:{behaviours:[],components:a},k=j=>n.shell?$.some(j):sa(j,n,"items");r
|
|||
|
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.143 0c2.608.015 5.186 2.178 5.186 5.331 0 0 .077 3.812-.084 4.87-.361 2.41-2.164 4.074-4.65 4.496-1.453.284-2.523.49-3.212.623-.373.071-.634.122-.785.152-.184.038-.997.145-1.35.145-2.732 0-5.21-2.04-5.248-5.33 0 0 0-3.514.03-4.442.093-2.4 1.758-4.342 4.926-4.963 0 0 3.875-.752 4.036-.782.368-.07.775-.1 1.15-.1Zm1.826 2.8L5.83 3.989v2.393l-2.455.475v5.968l6.137-1.189V9.243l2.456-.476V2.8ZM5.83 6.382l3.682-.713v3.574l-3.682.713V6.382Zm27.173-1.64-.084-1.066h-2.226v9.132h2.456V7.743c-.008-1.151.998-2.064 2.149-2.072 1.15-.008 1.987.92 1.995 2.072v5.065h2.455V7.359c-.015-2.18-1.657-3.929-3.837-3.913a3.993 3.993 0 0 0-2.908 1.296Zm-6.3-4.266L29.16 0v2.387l-2.456.475V.476Zm0 3.2v9.132h2.456V3.676h-2.456Zm18.179 11.787L49.11 3.676H46.58l-1.612 4.527-.46 1.382-.384-1.382-1.611-4.527H39.98l3.3 9.132L42.15 16l2.732-.537ZM22.867 9.738c0 .752.568 1.075.921 1.075.353 0 .668-.047.998-.154l.537 1.765c-.23.154-.92.537-2.225.537-1.305 0-2.655-.997-2.686-2.686a136.877 136.877 0 0 1 0-4.374H18.8V3.676h1.612v-1.98l2.455-.476v2.456h2.302V5.9h-2.302v3.837Z"/>
|
|||
|
|
</svg>
|
|||
|
|
`;const goe=n=>n.nodeName==="BR"||!!n.getAttribute("data-mce-bogus")||n.getAttribute("data-mce-type")==="bookmark",IC=(n,a,u)=>{var p;const y=(p=a.delimiter)!==null&&p!==void 0?p:"›",S=(te,de,we)=>nl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":we,"aria-level":we+1}},components:[fi(te)],action:Ee=>{n.focus(),n.selection.select(de),n.nodeChanged()},buttonBehaviours:po([h2.button(u.isDisabled),nc()])}),k=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[fi(` ${y} `)]}),j=te=>vt(te,(de,we,Ee)=>{const Re=S(we.name,we.element,Ee);return Ee===0?de.concat([Re]):de.concat([k(),Re])},[]),K=te=>{const de=[];let we=te.length;for(;we-- >0;){const Ee=te[we];if(Ee.nodeType===1&&!goe(Ee)){const Re=Rm(n,Ee);if(Re.isDefaultPrevented()||de.push({name:Re.name,element:Ee}),Re.isPropagationStopped())break}}return de};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:po([es.config({mode:"flow",selector:"div[role=button]"}),ds.config({disabled:u.isDisabled}),nc(),oi.config({}),ws.config({}),Vs("elementPathEvents",[Sa((te,de)=>{n.shortcuts.add("alt+F11","focus statusbar elementpath",()=>es.focusIn(te)),n.on("NodeChange",we=>{const Ee=K(we.parents),Re=Ee.length>0?j(Ee):[];ws.set(te,Re)})})])]),components:[]}};var K6;(function(n){n[n.None=0]="None",n[n.Both=1]="Both",n[n.Vertical=2]="Vertical"})(K6||(K6={}));const voe=(n,a,u,p,y)=>{const S={height:xC(p+a.top,vD(n),bD(n))};return u===K6.Both&&(S.width=xC(y+a.left,Ex(n),Sx(n))),S},Sz=(n,a,u)=>{const p=Rt.fromDom(n.getContainer()),y=voe(n,a,u,xn(p),Mi(p));Je(y,(S,k)=>{H(S)&&vn(p,k,_C(S))}),Su(n)},boe=n=>{const a=TI(n);return a===!1?K6.None:a==="both"?K6.Both:K6.Vertical},RC=(n,a,u,p)=>{const S=qs(u*20,p*20);return Sz(n,S,a),$.some(!0)},yoe=(n,a)=>{const u=boe(n);if(u===K6.None)return $.none();const p=u===K6.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return $.some(Zu("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:a.translate("Resize"),"aria-label":a.translate(p)},behaviours:[Qm.config({mode:"mouse",repositionTarget:!1,onDrag:(y,S,k)=>Sz(n,k,u),blockerClass:"tox-blocker"}),es.config({mode:"special",onLeft:()=>RC(n,u,-1,0),onRight:()=>RC(n,u,1,0),onUp:()=>RC(n,u,0,-1),onDown:()=>RC(n,u,0,1)}),oi.config({}),fs.config({})]},a.icons))},Tz=(n,a)=>{const u=(p,y,S)=>ws.set(p,[fi(a.translate(["{0} "+S,y[S]]))]);return nl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:po([h2.button(a.isDisabled),nc(),oi.config({}),ws.config({}),So.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Vs("wordcount-events",[w0(p=>{const y=So.getValue(p),S=y.mode==="words"?"characters":"words";So.setValue(p,{mode:S,count:y.count}),u(p,y.count,S)}),Sa(p=>{n.on("wordCountUpdate",y=>{const{mode:S}=So.getValue(p);So.setValue(p,{mode:S,count:y.wordCount}),u(p,y.wordCount,S)})})])]),eventOrder:{[$1()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},_oe=(n,a)=>{const u=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6",rel:"noopener",target:"_blank","aria-label":$l.translate(["Powered by {0}","Tiny"])},innerHtml:hoe.trim()},behaviours:po([fs.config({})])}]}),p=()=>{const S=[];return TD(n)&&S.push(IC(n,{},a)),n.hasPlugin("wordcount")&&S.push(Tz(n,a)),Ax(n)&&S.push(u()),S.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:S}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const S=p(),k=yoe(n,a);return S.concat(k.toArray())})()}},Dz=(n,a)=>a.get().getOrDie(`UI for ${n} has not been rendered`),xoe=(n,a)=>{const u=n.inline,p=u?ene:Kte,y=Yv(n)?Wh:oH,S=tne(),k=Da(),j=Da(),K=Da(),Ee=xc().deviceType.isTouch()?["tox-platform-touch"]:[],Re=Zv(n),tt=gh(n),St=$r({dom:{tag:"div",classes:["t
|
|||
|
|
`+JSON.stringify(a,null,2)).message),getBounds:n.getDragBounds})])})}),mc({schema:[Vn("dom")],name:"title"}),mc({factory:cb,schema:[Vn("dom")],name:"close"}),mc({factory:cb,schema:[Vn("dom")],name:"body"}),xu({factory:cb,schema:[Vn("dom")],name:"footer"}),Uu({factory:{sketch:(n,a)=>gn($e({},n),{dom:a.dom,components:a.components})},schema:[ln("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),ln("components",[])],name:"blocker"})]),Eoe=(n,a,u,p)=>{const y=Da(),S=Re=>{y.set(Re);const tt=n.lazySink(Re).getOrDie(),St=p.blocker(),an=tt.getSystem().build(gn($e({},St),{components:St.components.concat([gu(Re)]),behaviours:po([fs.config({}),Vs("dialog-blocker-events",[$8(y0(),()=>{A4.isBlocked(Re)?V():es.focusIn(Re)})])])}));m2(tt,an),es.focusIn(Re)},k=Re=>{y.clear(),Fs(Re.element).each(tt=>{Re.getSystem().getByDom(tt).each(St=>{ju(St)})})},j=Re=>Cd(Re,n,"body"),K=Re=>sa(Re,n,"footer"),te=(Re,tt)=>{A4.block(Re,tt)},de=Re=>{A4.unblock(Re)},we=Oo("modal-events"),Ee=gn($e({},n.eventOrder),{[e1()]:[we].concat(n.eventOrder["alloy.system.attached"]||[])});return{uid:n.uid,dom:n.dom,components:a,apis:{show:S,hide:k,getBody:j,getFooter:K,setIdle:de,setBusy:te},eventOrder:Ee,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:mi(n.modalBehaviours,[ws.config({}),es.config({mode:"cyclic",onEnter:n.onExecute,onEscape:n.onEscape,useTabstopAt:n.useTabstopAt,firstTabstop:n.firstTabstop}),A4.config({getRoot:y.get}),Vs(we,[Sa(Re=>{woe(Re.element,Cd(Re,n,"title").element)})])])}},pc=Hi({name:"ModalDialog",configFields:Coe(),partFields:Mz(),factory:Eoe,apis:{show:(n,a)=>{n.show(a)},hide:(n,a)=>{n.hide(a)},getBody:(n,a)=>n.getBody(a),getFooter:(n,a)=>n.getFooter(a),setBusy:(n,a,u)=>{n.setBusy(a,u)},setIdle:(n,a)=>{n.setIdle(a)}}}),Soe=ns([_i,n9].concat(Vm)),Toe=D8,cP=[jD("button"),Ku,p1("align","end",["start","end"]),Hx,V0,N5("buttonType",["primary","secondary"])],Az=[...cP,Dd],lP=[Fu("type",["submit","cancel","custom"]),...Az],Doe=[Fu("type",["menu"]),$3,Ch,Ku,F1("items",Soe),...cP],Moe=[...cP,Fu("type",["togglebutton"]),Zi("tooltip"),Ku,$3,Pc("active",!1)],Aoe=Ai("type",{submit:lP,cancel:lP,custom:lP,menu:Doe,togglebutton:Moe}),Ooe=[_i,Dd,Fu("level",["info","warn","error","success"]),Fx,ln("url","")],Poe=ns(Ooe),Loe=n=>[_i,n],koe=[_i,Dd,V0,jD("button"),Ku,ZI,N5("buttonType",["primary","secondary","toolbar"]),Hx],Voe=ns(koe),Kh=[_i,n9],O4=Kh.concat([FD]),Ioe=Kh.concat([_h,V0]),Roe=ns(Ioe),Noe=D8,Foe=O4.concat([KI("auto")]),Oz=ns(Foe),Pz=eg([o9,Dd,Fx]),e5=O4.concat([B1("storageKey","default")]),Boe=ns(e5),uP=Ga,Hoe=ns(O4),$oe=Ga,zoe=Kh.concat([B1("tag","textarea"),Zi("scriptId"),Zi("scriptUrl"),B5("settings",void 0)]),joe=Kh.concat([B1("tag","textarea"),fu("init")]),Uoe=J4(n=>Jr("customeditor.old",Oc(joe),n).orThunk(()=>Jr("customeditor.new",Oc(zoe),n))),t5=Ga,qoe=ns(O4),Goe=M8(),Zoe=n=>[_i,vy("columns"),n],Koe=[_i,Zi("html"),p1("presets","presentation",["presentation","document"])],Yoe=ns(Koe),Xoe=O4.concat([Pc("border",!1),Pc("sandboxed",!0),Pc("streamContent",!1),Pc("transparent",!0)]),Joe=ns(Xoe),Qoe=Ga,fP=ns(Kh.concat([Kc("height")])),lb=ns([Zi("url"),Sf("zoom"),Sf("cachedWidth"),Sf("cachedHeight")]),mP=O4.concat([Kc("inputMode"),Kc("placeholder"),Pc("maximized",!1),V0]),NC=ns(mP),n5=Ga,FC=n=>[_i,_h,n,p1("align","start",["start","center","end"])],ese=[Dd,o9],Lz=[Dd,F1("items",n3("items",()=>pP))],pP=t3([ns(ese),ns(Lz)]),kz=O4.concat([F1("items",pP),V0]),tse=ns(kz),nse=Ga,ose=O4.concat([by("items",[Dd,o9]),F5("size",1),V0]),N1e=ns(ose),Vz=Ga,hP=O4.concat([Pc("constrain",!0),V0]),sse=ns(hP),Iz=ns([Zi("width"),Zi("height")]),rse=Kh.concat([_h,F5("min",0),F5("max",0)]),Rz=ns(rse),ase=I5,ise=[_i,F1("header",Ga),F1("cells",Mo(Ga))],cse=ns(ise),gP=O4.concat([Kc("placeholder"),Pc("maximized",!1),V0]),vP=ns(gP),lse=Ga,bP=[Fu("type",["directory","leaf"]),v4,Zi("id"),Q0("menu",_H)],Nz=ns(bP),Fz=bP.concat([F1("children",n3("children",()=>N1("type",{directory:Bz,leaf:Nz})))]),Bz=ns(Fz),use=N1("type",{directory:Bz,leaf:Nz}),o5=[_i,F1("items",use),ed("onLeafAction"),ed("onToggleExpand"),A8("defa
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pr=Object.hasOwnProperty,jo=Object.setPrototypeOf,Go=Object.isFrozen,fo=Object.getPrototypeOf,_s=Object.getOwnPropertyDescriptor,Os=Object.freeze,xr=Object.seal,Pa=Object.create,Ds=typeof Reflect!="undefined"&&Reflect,hr=Ds.apply,hi=Ds.construct;hr||(hr=function(a,u,p){return a.apply(u,p)}),Os||(Os=function(a){return a}),xr||(xr=function(a){return a}),hi||(hi=function(a,u){return Or(a,ra(u))});var ga=D1(Array.prototype.forEach),si=D1(Array.prototype.pop),Ua=D1(Array.prototype.push),wa=D1(String.prototype.toLowerCase),$i=D1(String.prototype.match),El=D1(String.prototype.replace),Sl=D1(String.prototype.indexOf),P4=D1(String.prototype.trim),wi=D1(RegExp.prototype.test),Y3=L4(TypeError);function D1(n){return function(a){for(var u=arguments.length,p=new Array(u>1?u-1:0),y=1;y<u;y++)p[y-1]=arguments[y];return hr(n,a,p)}}function L4(n){return function(){for(var a=arguments.length,u=new Array(a),p=0;p<a;p++)u[p]=arguments[p];return hi(n,u)}}function wr(n,a){jo&&jo(n,null);for(var u=a.length;u--;){var p=a[u];if(typeof p=="string"){var y=wa(p);y!==p&&(Go(a)||(a[u]=y),p=y)}n[p]=!0}return n}function Ya(n){var a=Pa(null),u;for(u in n)hr(pr,n,[u])&&(a[u]=n[u]);return a}function X1(n,a){for(;n!==null;){var u=_s(n,a);if(u){if(u.get)return D1(u.get);if(typeof u.value=="function")return D1(u.value)}n=fo(n)}function p(y){return null}return p}var _2=Os(["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"]),Au=Os(["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"]),Ou=Os(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rd=Os(["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"]),sl=Os(["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"]),X3=Os(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k4=Os(["#text"]),N0=Os(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","cros
|
|||
|
|
`+Lu),Q6&&(Lu=El(Lu,os," "),Lu=El(Lu,ir," ")),_n&&Kz?_n.createHTML(Lu):Lu},a.setConfig=function(sr){Pse(sr),SP=!0},a.clearConfig=function(){ZC=null,SP=!1},a.isValidAttribute=function(sr,kn,qo){ZC||Pse({});var Is=fb(sr),zi=fb(kn);return cue(Is,zi,qo)},a.addHook=function(sr,kn){typeof kn=="function"&&(fr[sr]=fr[sr]||[],Ua(fr[sr],kn))},a.removeHook=function(sr){if(fr[sr])return si(fr[sr])},a.removeHooks=function(sr){fr[sr]&&(fr[sr]=[])},a.removeAllHooks=function(){fr={}},a}var gr=ts();const La=n=>gr().sanitize(n),Rc=Tm.deviceType.isTouch(),Nc=(n,a)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[n,a]}),o7=(n,a)=>pc.parts.close(nl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":a.translate("Close")}},action:n,buttonBehaviours:po([oi.config({})])})),s7=()=>pc.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),wP=(n,a)=>pc.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:z6(`<p>${La(a.translate(n))}</p>`)}]}]}),qz=n=>pc.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:n}),Zs=(n,a)=>[x4.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:n}),x4.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:a})],An=n=>{const a="tox-dialog",u=a+"-wrap",p=u+"__backdrop",y=a+"__disable-scroll";return pc.sketch({lazySink:n.lazySink,onEscape:S=>(n.onEscape(S),$.some(!0)),useTabstopAt:S=>!Bh(S),firstTabstop:n.firstTabstop,dom:{tag:"div",classes:[a].concat(n.extraClasses),styles:$e({position:"relative"},n.extraStyles)},components:[n.header,n.body,...n.footer.toArray()],parts:{blocker:{dom:z6(`<div class="${u}"></div>`),components:[{dom:{tag:"div",classes:Rc?[p,p+"--opaque"]:[p]}}]}},dragBlockClass:u,modalBehaviours:po([fs.config({}),Vs("dialog-events",n.dialogEvents.concat([$8(y0(),(S,k)=>{A4.isBlocked(S)?V():es.focusIn(S)}),Fn(U5(),(S,k)=>{S.getSystem().broadcastOn([Sw],{newFocus:k.event.newFocus})})])),Vs("scroll-lock",[Sa(()=>{Oi(rr(),y)}),hl(()=>{Ar(rr(),y)})]),...n.extraBehaviours]),eventOrder:$e({[$1()]:["dialog-events"],[e1()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[K2()]:["alloy.base.behaviour","dialog-events","scroll-lock"]},n.eventOrder)})},Ho=n=>nl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":n.translate("Close"),title:n.translate("Close")}},buttonBehaviours:po([oi.config({})]),components:[Zu("close",{tag:"span",classes:["tox-icon"]},n.icons)],action:a=>{Pr(a,W3)}}),Ms=(n,a,u,p)=>{const y=S=>[fi(p.translate(S.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:$e({},u.map(S=>({id:S})).getOr({}))},components:[],behaviours:po([n0.config({channel:`${Ew}-${a}`,initialData:n,renderComponents:y})])}},gi=()=>({dom:z6('<div class="tox-dialog__draghandle"></div>')}),o0=(n,a,u,p)=>x4.sketch({dom:z6('<div class="tox-dialog__header"></div>'),components:[Ms(n,a,$.some(u),p),gi(),Ho(p)],containerBehaviours:po([Qm.config({mode:"mouse",blockerClass:"blocker",getTarget:y=>Qc(y,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),J1=(n,a,u)=>{const p=pc.parts.title(Ms(n,a,$.none(),u)),y=pc.parts.draghandle(gi()),S=pc.parts.close(Ho(u)),k=[p].concat(n.draggable?[y]:[]).concat([S]);return x4.sketch({dom:z6('<div class="tox-dialog__header"></div>'),components:k})},o1=(n,a,u)=>J1({title:u.shared.providers.translate(n),draggable:u.dialog.isDraggableModal()},a,u.shared.providers),db=(n,a,u,p)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":u.translate(n)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${p.getOr(0)}px`,position:"absolute"}},behaviours:a,components:[{dom:z6('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}),s1=(n,a,u)=>({onClose:()=>u.closeWindow(),onBlock:p=>{const y=Za(n().element,".tox-dialog__header
|
|||
|
|
Actual: `+To.join(","));if(!vt(x,Nn=>ge(To,Nn)))throw new Error("Not all branches were specified when using match. Specified: "+To.join(", ")+`
|
|||
|
|
Required: `+x.join(", "));return Kn[Se].apply(null,dt)},log:Kn=>{}}}}),A}},pd=i2.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),t1=$e({},pd),Gs=(g,x)=>g.length===0?t1.none():g.length===1?t1.only(0):x===0?t1.left(0,1):x===g.length-1?t1.right(x-1,x):x>0&&x<g.length-1?t1.middle(x-1,x,x+1):t1.none(),y1=(g,x,A,F,X)=>{const ce=g.slice(0),Se=Gs(g,x),je=V(Te(ce,V(0))),dt=To=>F.singleColumnWidth(ce[To],A),Pt=(To,xo)=>X.calcLeftEdgeDeltas(ce,To,xo,A,F.minCellWidth(),F.isRelative),on=(To,xo,Nn)=>X.calcMiddleDeltas(ce,To,xo,Nn,A,F.minCellWidth(),F.isRelative),Kn=(To,xo)=>X.calcRightEdgeDeltas(ce,To,xo,A,F.minCellWidth(),F.isRelative);return Se.fold(je,dt,Pt,on,Kn)},Tn=(g,x,A)=>{let F=0;for(let X=g;X<x;X++)F+=A[X]!==void 0?A[X]:0;return F},Q8=(g,x)=>{const A=or.justCells(g);return Te(A,F=>{const X=Tn(F.column,F.column+F.colspan,x);return{element:F.element,width:X,colspan:F.colspan}})},Ta=(g,x)=>{const A=or.justColumns(g);return Te(A,(F,X)=>({element:F.element,width:x[X],colspan:F.colspan}))},jy=(g,x)=>{const A=or.justCells(g);return Te(A,F=>{const X=Tn(F.row,F.row+F.rowspan,x);return{element:F.element,height:X,rowspan:F.rowspan}})},gp=(g,x)=>Te(g.all,(A,F)=>({element:A.element,height:x[F]})),za=g=>ze(g,(x,A)=>x+A,0),o4=(g,x)=>or.hasColumns(g)?Ta(g,x):Q8(g,x),vp=(g,x,A)=>{const F=o4(g,x);le(F,X=>{A.setElementWidth(X.element,X.width)})},Dg=(g,x,A,F,X)=>{const ce=or.fromTable(g),Se=X.getCellDelta(x),je=X.getWidths(ce,X),dt=A===ce.grid.columns-1,Pt=F.clampTableDelta(je,A,Se,X.minCellWidth(),dt),on=y1(je,A,Pt,X,F),Kn=Te(on,(To,xo)=>To+je[xo]);vp(ce,Kn,X),F.resizeTable(X.adjustTableWidth,Pt,dt)},Mg=(g,x,A,F)=>{const X=or.fromTable(g),ce=Yc(X,g,F),Se=Te(ce,(on,Kn)=>A===Kn?Math.max(x+on,p8()):on),je=jy(X,Se),dt=gp(X,Se);le(dt,on=>{$a(on.element,on.height)}),le(je,on=>{$a(on.element,on.height)});const Pt=za(Se);$a(g,Pt)},bp=(g,x,A,F,X)=>{const ce=or.generate(x),Se=F.getWidths(ce,F),je=F.pixelWidth(),{newSizes:dt,delta:Pt}=X.calcRedestributedWidths(Se,je,A.pixelDelta,F.isRelative);vp(ce,dt,F),F.adjustTableWidth(Pt)},yp=(g,x,A,F)=>{const X=or.generate(x),ce=F.getWidths(X,F);vp(X,ce,F)},hd=g=>De(g,(A,F)=>re(A,ce=>ce.column===F.column)?A:A.concat([F]),[]).sort((A,F)=>A.column-F.column),zf=qt("col"),Ag=qt("colgroup"),_p=g=>ut(g)==="tr"||Ag(g),Uy=g=>{const x=dl(g,"colspan",1),A=dl(g,"rowspan",1);return{element:g,colspan:x,rowspan:A}},Wy=(g,x=Uy)=>{const A=je=>zf(je.element)?g.col(je):g.cell(je),F=je=>Ag(je.element)?g.colgroup(je):g.row(je),X=je=>{if(_p(je))return F({element:je});{const dt=je,Pt=A(x(dt));return ce=ae.some({item:dt,replacement:Pt}),Pt}};let ce=ae.none();return{getOrInit:(je,dt)=>ce.fold(()=>X(je),Pt=>dt(je,Pt.item)?Pt.replacement:X(je))}},p3=g=>x=>{const A=[],F=(Se,je)=>G(A,dt=>je(dt.item,Se)),X=Se=>{const je=g==="td"?{scope:null}:{},dt=x.replace(Se,g,je);return A.push({item:Se,sub:dt}),dt};return{replaceOrInit:(Se,je)=>{if(_p(Se)||zf(Se))return Se;{const dt=Se;return F(dt,je).fold(()=>X(dt),Pt=>je(Se,Pt.item)?Pt.sub:X(dt))}}}},bl=g=>rn(g,"scope").map(x=>x.substr(0,3)),pa={modification:Wy,transform:p3,merging:g=>({unmerge:F=>{const X=bl(F);return X.each(ce=>et(F,"scope",ce)),()=>{const ce=g.cell({element:F,colspan:1,rowspan:1});return au(ce,"width"),au(F,"width"),X.each(Se=>et(ce,"scope",Se)),ce}},merge:F=>{const X=()=>{const ce=ko(Te(F,bl));if(ce.length===0)return ae.none();{const Se=ce[0],je=["row","col"];return re(ce,Pt=>Pt!==Se&&ge(je,Pt))?ae.none():ae.from(Se)}};return au(F[0],"width"),X().fold(()=>dn(F[0],"scope"),ce=>et(F[0],"scope",ce+"group")),V(F[0])}})},SS=["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"],c2=(g,x)=>{const A=g.property().name(x);return ge(["ol","ul"],A)},Og=(g,x)=>{const A=g.property().name(x);return ge(SS,A)},Pg=(g,x)=>ge(["br","img","hr","input"],g.property().name(x)),jf=F8(),Uf=g=>Og(jf,g),xp=g=>c2(jf,g),qy=g=>Pg(jf,g),TS=g=>{const x=qt("br"),A=dt=>vt(dt,Pt=>x(Pt)|
|
|||
|
|
`);return D("div",{style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"1.5em",maxHeight:"4.5em",width:"100%",whiteSpace:"normal"},title:c},i)}return e}function $Pe(e){if(!e)return"ant-design:file-outlined";const s=e.substring(e.lastIndexOf(".")+1).toLowerCase();return["xls","xlsx","csv"].includes(s)?"ant-design:file-excel-filled":["doc","docx"].includes(s)?"ant-design:file-word-filled":["pdf"].includes(s)?"ant-design:file-pdf-filled":["ppt","pptx"].includes(s)?"ant-design:file-ppt-filled":["txt"].includes(s)?"ant-design:file-text-filled":["md"].includes(s)?"ant-design:file-markdown-filled":"ant-design:file-unknown-filled"}function zPe(e){if(!e)return"#999";const s=e.substring(e.lastIndexOf(".")+1).toLowerCase();return["xls","xlsx","csv"].includes(s)?"#52c41a":["doc","docx"].includes(s)?"#1890ff":["pdf"].includes(s)?"#ff4d4f":["ppt","pptx"].includes(s)?"#fa8c16":["txt"].includes(s)?"#666":["md"].includes(s)?"#000":"#999"}const jPe=Object.freeze(Object.defineProperty({__proto__:null,bindMapFormSchema:OPe,calculateFileSize:VPe,checkChildrenHidden:kPe,dateFormat:DPe,filterObj:MPe,findTree:y5e,freezeDeep:lW,getAutoScrollContainer:LPe,getDepartName:HPe,getDepartPathName:C5e,getDepartPathNameByOrgCode:vie,getElectronFileUrl:CPe,getEventPath:v5e,getFileAccessHttpUrl:Bb,getFileIcon:$Pe,getFileIconColor:zPe,getHeaders:_5e,getMultiDepartPathName:BPe,getRandom:EPe,getUserInfoByExpression:x5e,listToTree:SPe,mapTableTotalSummary:TPe,pushIfNotExist:b5e,randomString:dle,replaceUserInfoByExpression:IPe,sameDay:FPe,simpleDebounce:g5e,stringIsNull:PPe,tenantSaasMessage:NPe,toTree:fle,translateTitle:w5e,triggerWindowResizeEvent:h5e,underLine2CamelCase:APe,userExitChangeLoginTenantId:RPe},Symbol.toStringTag,{value:"Module"})),UPe=Cn({name:"TinymceImageUpload",components:{Upload:P3e},props:{fullscreen:{type:Boolean},disabled:{type:Boolean,default:!1}},emits:["uploading","done","error","loading"],setup(e,{emit:s}){function i(){return _5e()}function c(){return{biz:"jeditor",jeditor:"1"}}const{domainUrl:d}=k2(),f=d+"/sys/common/upload";let h=Tt([]);const{t:v}=Wl(),{prefixCls:_}=I2("tinymce-img-upload"),w=be(()=>{const{disabled:L}=e;return{disabled:L}});let E=0;function T({file:L,fileList:P}){P=P.filter(I=>!h.value.find(({uid:H})=>H===I.uid)),E==0&&(E=P.length),L.status!="uploading"&&s("loading",E,!0),L.status!="uploading"&&P.forEach(I=>{if(I.status==="done"&&I.response.success){const R=I==null?void 0:I.name;let H=Bb(I.response.message);h.value.push(I),s("done",R,H)}})}function M(){E=0,s("loading",null,!0),setTimeout(()=>{s("loading",null,!1)},1e4)}return{prefixCls:_,handleChange:T,uploadUrl:f,getheader:i,getBizData:c,t:v,getButtonProps:w,uploadFileList:h,beforeUpload:M}}});function WPe(e,s,i,c,d,f){const h=Ps("a-button"),v=Ps("Upload");return Wo(),da("div",{class:Ma([e.prefixCls,{fullscreen:e.fullscreen}])},[Xo(v,{name:"file",multiple:"",onChange:e.handleChange,action:e.uploadUrl,showUploadList:!1,data:e.getBizData(),headers:e.getheader(),"before-upload":e.beforeUpload,accept:".jpg,.jpeg,.gif,.png,.webp"},{default:hs(()=>[Xo(h,nu({type:"primary"},$e({},e.getButtonProps)),{default:hs(()=>[v5(l1(e.t("component.upload.imgUpload")),1)]),_:1},16)]),_:1},8,["onChange","action","data","headers","before-upload"])],2)}const qPe=jc(UPe,[["render",WPe],["__scopeId","data-v-51ae91c7"]]),GPe={class:"progress-bar-rear"},ZPe={class:"value"},KPe=Cn({__name:"ProcessMask",props:{backColor:{type:[String],default:"white"},processColor:{type:String,default:"#018FFB"},show:{type:Boolean,default:!1}},setup(e,{expose:s}){She(M=>({v351aa69d:E.value,a3a67008:w.value}));const i=e,{prefixCls:c}=I2("tinymce-process-mask"),d=Tt(!1),f=Tt(0),h=Tt(0),v=be(()=>f.value>0?`${f.value}px`:"0px"),_=be(()=>`${f.value}%`),w=be(()=>i.processColor),E=be(()=>i.backColor);function T(M){!d.value&&(d.value=!0),h.value+=1,f.value=(h.value/M*100).toFixed(2),h.value==M&&(d.value=!1,h.value=0,f.value=0)}return s({calcProcess:T,showMask:d}),(M,L)=>d.value&&e.show?(Wo(),da("div",{key:0,class:Ma([fn(c)])},[ea("div",GPe,[ea
|
|||
|
|
* Sortable 1.15.7
|
|||
|
|
* @author RubaXa <trash@rubaxa.org>
|
|||
|
|
* @author owenm <owen23355@gmail.com>
|
|||
|
|
* @license MIT
|
|||
|
|
*/function xie(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,c=Array(s);i<s;i++)c[i]=e[i];return c}function cVe(e){if(Array.isArray(e))return xie(e)}function lVe(e,s,i){return(s=gVe(s))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var c in i)({}).hasOwnProperty.call(i,c)&&(e[c]=i[c])}return e},Kd.apply(null,arguments)}function uVe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dVe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pde(e,s){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),i.push.apply(i,c)}return i}function ff(e){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?Pde(Object(i),!0).forEach(function(c){lVe(e,c,i[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Pde(Object(i)).forEach(function(c){Object.defineProperty(e,c,Object.getOwnPropertyDescriptor(i,c))})}return e}function fVe(e,s){if(e==null)return{};var i,c,d=mVe(e,s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(c=0;c<f.length;c++)i=f[c],s.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(d[i]=e[i])}return d}function mVe(e,s){if(e==null)return{};var i={};for(var c in e)if({}.hasOwnProperty.call(e,c)){if(s.indexOf(c)!==-1)continue;i[c]=e[c]}return i}function pVe(e){return cVe(e)||uVe(e)||vVe(e)||dVe()}function hVe(e,s){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var c=i.call(e,s||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}function gVe(e){var s=hVe(e,"string");return typeof s=="symbol"?s:s+""}function wie(e){"@babel/helpers - typeof";return wie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},wie(e)}function vVe(e,s){if(e){if(typeof e=="string")return xie(e,s);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xie(e,s):void 0}}var bVe="1.15.7";function w5(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var T5=w5(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Gk=w5(/Edge/i),Lde=w5(/firefox/i),ZL=w5(/safari/i)&&!w5(/chrome/i)&&!w5(/android/i),hle=w5(/iP(ad|od|hone)/i),R5e=w5(/chrome/i)&&w5(/android/i),N5e={capture:!1,passive:!1};function ua(e,s,i){e.addEventListener(s,i,!T5&&N5e)}function ia(e,s,i){e.removeEventListener(s,i,!T5&&N5e)}function mW(e,s){if(s){if(s[0]===">"&&(s=s.substring(1)),e)try{if(e.matches)return e.matches(s);if(e.msMatchesSelector)return e.msMatchesSelector(s);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(s)}catch(i){return!1}return!1}}function F5e(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function M2(e,s,i,c){if(e){i=i||document;do{if(s!=null&&(s[0]===">"?e.parentNode===i&&mW(e,s):mW(e,s))||c&&e===i)return e;if(e===i)break}while(e=F5e(e))}return null}var kde=/\s+/g;function al(e,s,i){if(e&&s)if(e.classList)e.classList[i?"add":"remove"](s);else{var c=(" "+e.className+" ").replace(kde," ").replace(" "+s+" "," ");e.className=(c+(i?" "+s:"")).replace(kde," ")}}function js(e,s,i){var c=e&&e.style;if(c){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),s===void 0?i:i[s];!(s in c)&&s.indexOf("webkit")===-1&&(s="-webkit-"+s),c[s]=i+(typeof i=="string"?"":"px")}}function $b(e,s){var i="";if(typeof e=="string")i=e;else do{var c=js(e,"transform");c&&c!=="none"&&(i=c+" "+i)}while(!s&&(e=e.parentNode));var d=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return d&&new d(i)}function B5e(e,s,i){if(e){var c=e.getElementsByTagName(s),d=0,f=c.length;if(i)for(;d<f;d++)i(c[d],d);return c}return[]}function af(){var e=document.scrollingElement;return e||document.documentElement}function Mc(e,s,i,c,d){if(!(!e.getBoundingClientRect&&e!==window)){var f,h,v,_,w,E,T;if(e!==window&&e.parentNode&&e!==af()?(f=e.getBoundingClientRect(),h=f.top,v=f.left,_=f.bottom,w=f.right,E=f.height,T=f
|
|||
|
|
`)}},Z=()=>{e.autosize&&mn(()=>{const Ie=B.value,{minRows:Me,maxRows:qe}=Ie,$=w.value;if(!$)return;const ge=f5.clientHeight,re=getComputedStyle($),Le=q.toNumber(re.lineHeight),Te=q.toNumber(re.paddingTop),le=q.toNumber(re.paddingBottom),Pe=q.toNumber(re.borderTopWidth),We=q.toNumber(re.borderBottomWidth),Ce=Te+le+Pe+We,ze=(ge-Ce)/Le,De=ze&&/[0-9]/.test(""+ze)?ze:Math.floor(ze)+1;let Oe=De;De<Me?Oe=Me:De>qe&&(Oe=qe),$.style.height=`${Oe*Le+Ce}px`})},U=Ie=>{const Me=v.inputValue;T.dispatchEvent(Ie.type,{value:Me},Ie)},Q=(Ie,Me)=>{v.inputValue=Ie,i("update:modelValue",Ie),q.toValueString(e.modelValue)!==Ie&&(M.dispatchEvent("change",{value:Ie},Me),c&&d&&c.triggerItemEvent(Me,d.itemConfig.field,Ie))},me=Ie=>{const{immediate:Me}=e,$=Ie.target.value;v.inputValue=$,Me&&Q($,Ie),T.dispatchEvent("input",{value:$},Ie),Z()},oe=Ie=>{const{immediate:Me}=e;Me?U(Ie):Q(v.inputValue,Ie)},ie=Ie=>{const{immediate:Me}=e,{inputValue:qe}=v;Me||Q(qe,Ie),T.dispatchEvent("blur",{value:qe},Ie)};M={dispatchEvent(Ie,Me,qe){i(Ie,us(qe,{$textarea:T},Me))},focus(){return w.value.focus(),mn()},blur(){return w.value.blur(),mn()}},Object.assign(T,M),En(()=>e.modelValue,Ie=>{v.inputValue=Ie,J()}),En(B,()=>{J(),Z()}),mn(()=>{const{autosize:Ie}=e;Ie&&(J(),Z())});const ae=()=>{const{className:Ie,resize:Me,autosize:qe,showWordCount:$,countMethod:ge,rows:re,cols:Le}=e,{inputValue:Te}=v,le=h.value,Pe=P.value,We=V.value,Ce=W.value,ze=I.value,De=L.value,Oe=R.value,G=H.value;return De?D("div",{ref:_,class:["vxe-textarea--readonly",Ie]},Te):D("div",{ref:_,class:["vxe-textarea",Ie,{[`size--${le}`]:le,"is--autosize":qe,"is--count":$,"is--disabled":Pe,"is--rows":!q.eqNull(re),"is--cols":!q.eqNull(Le)}],spellcheck:!1},[D("textarea",{ref:w,class:"vxe-textarea--inner",value:Te,name:e.name,placeholder:Oe,maxlength:G,readonly:ze,disabled:Pe,rows:re,cols:Le,style:Me?{resize:Me}:null,onInput:me,onChange:oe,onKeydown:U,onKeyup:U,onClick:U,onFocus:U,onBlur:ie}),$?D("span",{class:["vxe-textarea--count",{"is--error":We}]},ge?`${ge({value:Te})}`:`${Ce}${G?`/${G}`:""}`):null])};return T.renderVN=ae,T},render(){return this.renderVN()}}),hE=Cn({name:"VxeTip",props:{title:{type:[String,Number],default:()=>Ve().tip.title},content:[String,Number],status:String,icon:{type:String,default:()=>Ve().tip.icon},permissionCode:[String,Number],size:{type:String,default:()=>Ve().tip.size||Ve().size}},emits:[],setup(e,s){const{slots:i,emit:c}=s,d=q.uniqueId(),{computeSize:f}=er(e),{computePermissionInfo:h}=jE(e),v=Tt(),_=Ao({}),w={refElem:v},E={},T={xID:d,props:e,context:s,reactData:_,getRefMaps:()=>w,getComputeMaps:()=>E};Object.assign(T,{dispatchEvent:(R,H,W)=>{c(R,us(W,{$tip:T},H))}},{});const I=()=>{const{status:R,content:H,icon:W,title:V}=e,B=i.default,J=i.title,Z=i.icon,U=h.value,Q=f.value;return U.visible?D("div",{ref:v,class:["vxe-tip",{[`size--${Q}`]:Q,[`theme--${R}`]:R,"has--title":!!(J||V)}]},[Z||W?D("div",{class:"vxe-tip--icon"},Z?Ro(Z({})):[D("i",{class:W})]):Pn(T),D("div",{class:"vxe-tip--body"},[J||V?D("div",{class:"vxe-tip--title"},J?Ro(J({})):q.toValueString(V)):Pn(T),D("div",{class:"vxe-tip--content"},B?Ro(B({})):q.toValueString(H))])]):Pn(T)};return T.renderVN=I,T},render(){return this.renderVN()}});function Yk(e,s){const c=Object.assign({},s).isSubOption,d=Tt(""),f=Tt([]),h=()=>{const{renderParams:H}=e,{widget:W}=H,V=W.options.options||[];V.push({value:It("vxe.formDesign.widgetProp.dataSource.defValue",[V.length+1])}),W.options.options=[...V]},v=/^(\s|\t)+/,_=H=>v.test(H),w=()=>{const{renderParams:H}=e,{widget:W}=H,V=W.options.options||[],B=[];V.forEach((J,Z)=>{const{options:U}=J;U&&U.length&&B.push(Z)}),f.value=B},E=(H,W)=>{f.value.includes(W)?f.value=f.value.filter(V=>V!==W):f.value.push(W)},T=(H,W)=>{const{renderParams:V}=e,{widget:B}=V,{options:J}=B;W?W.options&&(W.options=W.options.filter(Z=>Z!==H)):J.options=J.options.filter(Z=>Z!==H)},M=()=>{const{renderParams:H}=e,{widget:W}=H,V=[],B=d.value.split(`
|
|||
|
|
`);let J=null;c?B.forEach((Z,U)=>{const Q=B[U+1],me=Z.trim();if(!me)return;const oe={value:me};if(J){if(_(Z)){J.options.push(oe);return}J=null,V.push(oe)}else V.push(oe);Q&&_(Q)&&(J=Object.assign(oe,{options:[]}))}):B.forEach(Z=>{V.push({value:Z.trim()})}),W.options.options=V,w()},L=()=>{var H;const{renderParams:W}=e,{widget:V}=W,B=[];(H=V.options.options)===null||H===void 0||H.forEach(J=>{var Z;B.push(J.value),(Z=J.options)===null||Z===void 0||Z.forEach(U=>{B.push(` ${U.value}`)})}),d.value=B.join(`
|
|||
|
|
`),Un.modal.open({title:`${V.title} - ${It("vxe.formDesign.widgetProp.dataSource.batchEditOption")}`,width:500,height:"50vh ",resize:!0,showFooter:!0,showCancelButton:!0,showConfirmButton:!0,confirmButtonText:It("vxe.formDesign.widgetProp.dataSource.buildOption"),onConfirm:M,slots:{default(){return D("div",{class:"vxe-form-design--widget-form-item-data-source-popup"},[D(hE,{status:"primary",title:"",content:It(`vxe.formDesign.widgetProp.dataSource.${c?"batchEditSubTip":"batchEditTip"}`)}),D(wE,{resize:"none",modelValue:d.value,"onUpdate:modelValue"(J){d.value=J}})])}}})},P=(H,W,V,B,J,Z,U)=>D("div",{class:["vxe-form-design--widget-form-item-data-source-option",{"is--first":Z,"is--last":U}]},[D("div",{class:"vxe-form-design--widget-expand-btn"},!W&&J?[D("i",{class:V?Qn().FORM_DESIGN_WIDGET_OPTION_EXPAND_CLOSE:Qn().FORM_DESIGN_WIDGET_OPTION_EXPAND_OPEN,onClick(){E(H,B)}})]:[]),D("input",{class:"vxe-default-input",value:H.value,onInput(me){H.value=me.target.value}}),D(Kr,{status:"danger",mode:"text",icon:Qn().FORM_DESIGN_WIDGET_DELETE,onClick(){T(H,W)}})]),I=()=>{const{renderParams:H}=e,{widget:W}=H,{options:V}=W,B=V.options,J=[];return B&&B.forEach((Z,U)=>{const{options:Q}=Z,me=f.value.includes(U);Q&&Q.length?(J.push(P(Z,null,me,U,!0,U===0,U===B.length-1)),me&&J.push(D("div",{class:"vxe-form-design--widget-form-item-data-source-sub-option"},Q.map(oe=>P(oe,Z,me,0,!1,!1,!1))))):J.push(P(Z,null,me,U,!1,U===0,U===B.length-1))}),J};En(()=>e.renderParams.widget,()=>{w()}),Rr(()=>{w()});const R=()=>[D("div",{},[D(Kr,{status:"primary",mode:"text",content:It("vxe.formDesign.widgetProp.dataSource.addOption"),onClick:h}),D(Kr,{status:"primary",mode:"text",content:It("vxe.formDesign.widgetProp.dataSource.batchEditOption"),onClick:L})]),D("div",{class:"vxe-form-design--widget-form-item-data-source-wrapper"},I())];return{renderDataSourceFormItem(){return D(No,{title:It("vxe.formDesign.widgetProp.dataSource.name"),field:"options"},{default(){return R()}})},renderDataSourceFormItemContent:R}}const kRe=e=>It(`vxe.formDesign.widget.component.${e}`),k1=e=>kRe(e.name),t3e=()=>({title:k1,icon:"vxe-icon-text",group:"layout",options:{color:"",align:"",bold:!1,fontSize:""}}),VRe=()=>q.range(12,27).map(e=>({label:`${e}px`,value:`${e}px`})),IRe=()=>[{label:It("vxe.formDesign.widgetProp.textProp.alignLeft"),value:""},{label:It("vxe.formDesign.widgetProp.textProp.alignCenter"),value:"center"},{label:It("vxe.formDesign.widgetProp.textProp.alignRight"),value:"right"}],RRe=()=>[{label:It("vxe.formDesign.widgetProp.textProp.fontNormal"),value:!1},{label:It("vxe.formDesign.widgetProp.textProp.fontBold"),value:!0}],n3e=Cn({props:{renderOpts:{type:Object,default:()=>({})},renderParams:{type:Object,default:()=>({})}},emits:[],setup(e){const{computeKebabCaseName:s}=Ca(e),i=Tt(IRe()),c=Tt(RRe()),d=Tt(VRe());return()=>{const{renderParams:f}=e,{widget:h}=f,v=s.value;return D(ai,{class:["vxe-form-design--widget-render-form-wrapper",`widget-${v}`],vertical:!0,span:24,titleBold:!0,titleOverflow:!0,data:h.options},{default(){return[D(No,{title:It("vxe.formDesign.widgetProp.textProp.name")},{default(){return D(Na,{modelValue:h.title,"onUpdate:modelValue"(_){h.title=_}})}}),D(No,{title:It("vxe.formDesign.widgetProp.textProp.boldTitle"),field:"bold",itemRender:{name:"VxeRadioGroup",options:c.value}}),D(No,{title:It("vxe.formDesign.widgetProp.textProp.alignTitle"),field:"align",itemRender:{name:"VxeRadioGroup",options:i.value}}),D(No,{title:It("vxe.formDesign.widgetProp.textProp.sizeTitle"),field:"fontSize",itemRender:{name:"VxeSelect",options:d.value}})]}})}}}),o3e=Cn({props:{renderOpts:{type:Object,default:()=>({})},renderParams:{type:Object,default:()=>({})}},emits:[],setup(e){const{computeKebabCaseName:s}=Ca(e);return()=>{const{renderParams:i}=e,{widget:c}=i,{options:d}=c,f=s.value;return D(No,{class:["vxe-form-design--widget-render-form-item",`widget-${f}`],align:d.align},{default(){return D("div",{style:{fontSize:d.fontSize,fontWeight:d.bold?"bold":""}},c.title)}})}}}),NRe=e=>{const{$formDesign:s}=e,i=2;return{title:k1,group:"layout",icon:"vxe-icon-row-col",option
|