@testver/testver 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/testver.js +8 -1
- package/dist/index.js +1414 -793
- package/dist/py-agent/__pycache__/testver_appium.cpython-313.pyc +0 -0
- package/package.json +7 -6
- package/src/ui/static/assets/AIPanel-D09Ni3a4.js +32 -0
- package/src/ui/static/assets/AIRecordPanel-DZtUZnRe.js +40 -0
- package/src/ui/static/assets/AIStreamUI-BsxKziYG.js +9 -0
- package/src/ui/static/assets/AITestGenPage-Cg21-P1W.js +5 -0
- package/src/ui/static/assets/APITestingPage-Cdc8EZz2.js +19 -0
- package/src/ui/static/assets/AboutPage-yJLCr2_q.js +1 -0
- package/src/ui/static/assets/AdvancedPage-DB-6sJ6s.js +3 -0
- package/src/ui/static/assets/AnalyticsPage-gTPFsiLZ.js +1 -0
- package/src/ui/static/assets/AuditLogPage-DE45E_PV.js +1 -0
- package/src/ui/static/assets/ChangesSummary-C-7oi_sx.js +2 -0
- package/src/ui/static/assets/CodeMapPage-DgU6ZYBO.js +3 -0
- package/src/ui/static/assets/ConfirmDialog-DNU3qoAP.js +1 -0
- package/src/ui/static/assets/CoveragePage-BpTjgcdV.js +2 -0
- package/src/ui/static/assets/CronBuilder-DsnX-vRr.js +1 -0
- package/src/ui/static/assets/Dashboard-DRWbVyTb.js +1 -0
- package/src/ui/static/assets/DefectsPage-BtMNbq6Z.js +72 -0
- package/src/ui/static/assets/DiffViewer-DPglzjPH.js +2 -0
- package/src/ui/static/assets/EmptyState-BH_aDO0P.js +1 -0
- package/src/ui/static/assets/ExportButton-Ce_MxnM1.js +1 -0
- package/src/ui/static/assets/FileViewer-iYL0lxyY.js +18 -0
- package/src/ui/static/assets/GitPage-CQqV8JBC.js +12 -0
- package/src/ui/static/assets/ImportExportPage-DXk7Koaq.js +36 -0
- package/src/ui/static/assets/JiraPushDialog-CqftoLh8.js +1 -0
- package/src/ui/static/assets/LiveExecutionView-BD0wE8sz.js +1 -0
- package/src/ui/static/assets/ManagePage-B8iG6Q0B.js +1 -0
- package/src/ui/static/assets/MediaModal-DiSINwmh.js +1 -0
- package/src/ui/static/assets/MobileRunPicker-BNs2lZFf.js +1 -0
- package/src/ui/static/assets/MobileRunTarget-D2Nqcj10.js +6 -0
- package/src/ui/static/assets/ModuleExplorer-BmkoQrHb.js +1 -0
- package/src/ui/static/assets/OutputPage-Dcsr7cmr.js +1 -0
- package/src/ui/static/assets/PipelinesPanel-CMMXCSda.js +1 -0
- package/src/ui/static/assets/ProfilePage-ByshrcwC.js +1 -0
- package/src/ui/static/assets/ProjectExplorer-B9B___ij.js +1 -0
- package/src/ui/static/assets/RemoteFileStrip-DbPnaZ-v.js +1 -0
- package/src/ui/static/assets/ReportCard-BbNfk85h.js +2 -0
- package/src/ui/static/assets/ReportFullView-Cg1rggho.js +1 -0
- package/src/ui/static/assets/ReportsPage-CFv3OAhe.js +48 -0
- package/src/ui/static/assets/ResultsPage-B4LwZH-R.js +115 -0
- package/src/ui/static/assets/RunTargets-C7Vqd4TU.js +1 -0
- package/src/ui/static/assets/ScriptMappingPage-BrANeHv0.js +1 -0
- package/src/ui/static/assets/SearchableDevicePicker-CFJ_DUAA.js +1 -0
- package/src/ui/static/assets/SettingsPage-BwOiebKG.js +83 -0
- package/src/ui/static/assets/SharedReportView-BAbW1WOs.js +1 -0
- package/src/ui/static/assets/SourcesPage-C_QVQwiA.js +14 -0
- package/src/ui/static/assets/TestExplorerPage-BRRWtwde.js +7 -0
- package/src/ui/static/assets/TestManagementPage-Ch4PthuU.js +10 -0
- package/src/ui/static/assets/TestPlansPage-Bno2vpGd.js +5 -0
- package/src/ui/static/assets/TestverCreditsDetail-cSW0SpNx.js +1 -0
- package/src/ui/static/assets/TestverCreditsRing-CUsMGEe3.js +1 -0
- package/src/ui/static/assets/UncommittedDiffViewer-B5HSURk8.js +2 -0
- package/src/ui/static/assets/UserManagementPage-BjY3ftxf.js +10 -0
- package/src/ui/static/assets/WorkflowsPage-BUu-LjZ8.js +83 -0
- package/src/ui/static/assets/aiHandoff-vhtR29Fh.js +1 -0
- package/src/ui/static/assets/ansiToHtml-DYRzYQV1.js +1 -0
- package/src/ui/static/assets/dark-logo-DCPcGDyT.svg +1 -0
- package/src/ui/static/assets/excel-BrxuVus5.js +1 -0
- package/src/ui/static/assets/formatDate-T65-Y6Mi.js +1 -0
- package/src/ui/static/assets/formatTestName-BKd2Uqhs.js +1 -0
- package/src/ui/static/assets/hiddenLlmProviders-setxgY_B.js +1 -0
- package/src/ui/static/assets/index-B0klHYbO.css +1 -0
- package/src/ui/static/assets/index-DpQhqcHv.js +11 -0
- package/src/ui/static/assets/index-DtBWNlVD.js +47 -0
- package/src/ui/static/assets/logo-C7ltqfpq.svg +1 -0
- package/src/ui/static/assets/runSelected-WlgnZcSF.js +1 -0
- package/src/ui/static/assets/sandboxStorage-BrzaG3ny.js +1 -0
- package/src/ui/static/assets/simpleMarkdown-kWs-10D8.js +5 -0
- package/src/ui/static/assets/useChartTheme-BFz2QcND.js +1 -0
- package/src/ui/static/assets/useDebouncedValue-BsHptIvX.js +1 -0
- package/src/ui/static/assets/useFeatureFlags-DqhngqgG.js +1 -0
- package/src/ui/static/assets/useJiraConnector-TM1Rfj1s.js +1 -0
- package/src/ui/static/assets/useOwnership-eW6Egd7X.js +1 -0
- package/src/ui/static/assets/useSuites-CvtMGakZ.js +1 -0
- package/src/ui/static/assets/useTabParam-ChbOedP1.js +1 -0
- package/src/ui/static/assets/useTestExplorer-HqvURJAc.js +1 -0
- package/src/ui/static/assets/useTestLifecycle-CL7-zz0Q.js +1 -0
- package/src/ui/static/assets/useTestManagement-ZTA1_VUm.js +2 -0
- package/src/ui/static/assets/useTestResults-Bm-JyMhB.js +1 -0
- package/src/ui/static/assets/vendor-charts-DWFQlmCz.js +73 -0
- package/src/ui/static/assets/vendor-excel-BFHGVHVC.js +24 -0
- package/src/ui/static/assets/vendor-flow-BnuhLJ6X.css +1 -0
- package/src/ui/static/assets/vendor-flow-YGpC9U9I.js +23 -0
- package/src/ui/static/assets/vendor-icons-B0wLOBoh.js +1421 -0
- package/src/ui/static/assets/vendor-query-BrzmPFT3.js +1 -0
- package/src/ui/static/assets/vendor-quill-CTpA5PSA.css +7 -0
- package/src/ui/static/assets/{index-xlbWNOlh.js → vendor-quill-W-RoQfb6.js} +1 -1
- package/src/ui/static/assets/vendor-react-CTbHBddL.js +61 -0
- package/src/ui/static/assets/visibleInterval-BKsLfJZ3.js +1 -0
- package/src/ui/static/dark-logo.svg +1 -1
- package/src/ui/static/index.html +5 -2
- package/src/ui/static/logo.svg +1 -1
- package/src/ui/static/assets/dark-logo-BddlJH8z.svg +0 -1
- package/src/ui/static/assets/index-8gWK1fNb.js +0 -2250
- package/src/ui/static/assets/index-DMd4ynKJ.css +0 -7
- package/src/ui/static/assets/logo-DwQCjTm_.svg +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ve=e=>{throw TypeError(e)};var Wt=(e,t,s)=>t.has(e)||ve("Cannot "+s);var r=(e,t,s)=>(Wt(e,t,"read from private field"),s?s.call(e):t.get(e)),c=(e,t,s)=>t.has(e)?ve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),u=(e,t,s,i)=>(Wt(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),y=(e,t,s)=>(Wt(e,t,"access private method"),s);var Nt=(e,t,s,i)=>({set _(n){u(e,t,n,s)},get _(){return r(e,t,i)}});import{r as E,j as $e}from"./vendor-react-CTbHBddL.js";const ke=E.createContext(void 0),Vt=e=>{const t=E.useContext(ke);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Us=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$e.jsx(ke.Provider,{value:e,children:t})),Je={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var tt,oe,Me,Ze=(Me=class{constructor(){c(this,tt,Je);c(this,oe,!1)}setTimeoutProvider(e){u(this,tt,e)}setTimeout(e,t){return r(this,tt).setTimeout(e,t)}clearTimeout(e){r(this,tt).clearTimeout(e)}setInterval(e,t){return r(this,tt).setInterval(e,t)}clearInterval(e){r(this,tt).clearInterval(e)}},tt=new WeakMap,oe=new WeakMap,Me);const ht=new Ze;function Xe(e){setTimeout(e,0)}const Ye=typeof window>"u"||"Deno"in globalThis;function L(){}function ts(e,t){return typeof e=="function"?e(t):e}function Le(e){return typeof e=="number"&&e>=0&&e!==1/0}function _e(e,t){return Math.max(e+(t||0)-Date.now(),0)}function O(e,t){return typeof e=="function"?e(t):e}function be(e,t){const{type:s="all",exact:i,fetchStatus:n,predicate:a,queryKey:h,stale:o}=e;if(h){if(i){if(t.queryHash!==he(h,t.options))return!1}else if(!It(t.queryKey,h))return!1}if(s!=="all"){const d=t.isActive();if(s==="active"&&!d||s==="inactive"&&d)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||n&&n!==t.state.fetchStatus||a&&!a(t))}function ge(e,t){const{exact:s,status:i,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(s){if(gt(t.options.mutationKey)!==gt(a))return!1}else if(!It(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function he(e,t){return((t==null?void 0:t.queryKeyHashFn)||gt)(e)}function gt(e){return JSON.stringify(e,(t,s)=>$t(s)?Object.keys(s).sort().reduce((i,n)=>(i[n]=s[n],i),{}):s)}function It(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let i=0;i<t.length;i++)if(!It(e[i],t[i]))return!1;return!0}const s=Object.keys(t);for(const i of s)if(!It(e[i],t[i]))return!1;return!0}return!1}const es=Object.prototype.hasOwnProperty;function ce(e,t,s=0){if(e===t)return e;if(s>500)return t;const i=Se(e)&&Se(t);if(!i&&!($t(e)&&$t(t)))return t;const n=(i?e:Object.keys(e)).length,a=i?t:Object.keys(t),h=a.length,o=i?new Array(h):{};let d=0;for(let p=0;p<h;p++){const f=i?p:a[p],C=e[f],m=t[f];if(C===m){o[f]=C,(i?p<n:es.call(e,f))&&d++;continue}if(C===null||m===null||typeof C!="object"||typeof m!="object"){o[f]=m;continue}const M=ce(C,m,s+1);o[f]=M,M===C&&d++}return n===h&&d===n?e:o}function Bt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Se(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $t(e){if(!we(e))return!1;const t=Object.getPrototypeOf(e),s=t==null?void 0:t.constructor;if(s===void 0)return!0;if(typeof s!="function")return!1;const i=s.prototype;return!(!we(i)||!i.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function we(e){return Object.prototype.toString.call(e)==="[object Object]"}function ss(e){return new Promise(t=>{ht.setTimeout(t,e)})}function Jt(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ce(e,t):t}function js(e){return e}function is(e,t,s=0){const i=[...e,t];return s&&i.length>s?i.slice(1):i}function rs(e,t,s=0){const i=[t,...e];return s&&i.length>s?i.slice(0,-1):i}const le=Symbol();function He(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===le?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function de(e,t){return typeof e=="function"?e(...t):!!e}function ns(e,t,s){let i=!1,n;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??(n=t()),i||(i=!0,n.aborted?s():n.addEventListener("abort",s,{once:!0})),n)}),e}let as=()=>Ye;const fe=()=>as();var xt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ct,et,St,Qe,us=(Qe=class extends xt{constructor(){super();c(this,ct);c(this,et);c(this,St);u(this,St,t=>{if(typeof window<"u"&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){r(this,et)||this.setEventListener(r(this,St))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,et))==null||t.call(this),u(this,et,void 0))}setEventListener(t){var s;u(this,St,t),(s=r(this,et))==null||s.call(this),u(this,et,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ct)!==t&&(u(this,ct,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof r(this,ct)=="boolean"?r(this,ct):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ct=new WeakMap,et=new WeakMap,St=new WeakMap,Qe);const ye=new us,os=Xe;function hs(){let e=[],t=0,s=o=>{o()},i=o=>{o()},n=os;const a=o=>{t?e.push(o):n(()=>{s(o)})},h=()=>{const o=e;e=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{s(d)})})})};return{batch:o=>{let d;t++;try{d=o()}finally{t--,t||h()}return d},batchCalls:o=>(...d)=>{a(()=>{o(...d)})},schedule:a,setNotifyFunction:o=>{s=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{n=o}}}const Q=hs();var wt,st,Ct,Te,cs=(Te=class extends xt{constructor(){super();c(this,wt,!0);c(this,st);c(this,Ct);u(this,Ct,t=>{if(typeof window<"u"&&window.addEventListener){const s=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,st)||this.setEventListener(r(this,Ct))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,st))==null||t.call(this),u(this,st,void 0))}setEventListener(t){var s;u(this,Ct,t),(s=r(this,st))==null||s.call(this),u(this,st,t(this.setOnline.bind(this)))}setOnline(t){r(this,wt)!==t&&(u(this,wt,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return r(this,wt)}},wt=new WeakMap,st=new WeakMap,Ct=new WeakMap,Te);const zt=new cs;function ls(e){return Math.min(1e3*2**e,3e4)}function Ne(e){return(e??"online")==="online"?zt.isOnline():!0}var Zt=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ge(e){let t=!1,s=0,i,n="pending",a,h;const o=new Promise((w,b)=>{a=w,h=b});o.catch(L);const d=()=>n!=="pending",p=w=>{var b;if(!d()){const g=new Zt(w);P(g),(b=e.onCancel)==null||b.call(e,g)}},f=()=>{t=!0},C=()=>{t=!1},m=()=>ye.isFocused()&&(e.networkMode==="always"||zt.isOnline())&&e.canRun(),M=()=>Ne(e.networkMode)&&e.canRun(),_=w=>{d()||(i==null||i(),n="resolved",a(w))},P=w=>{d()||(i==null||i(),n="rejected",h(w))},A=w=>new Promise(b=>{var g;i=l=>{(d()||w())&&b(l)},(g=e.onPause)==null||g.call(e)}).then(()=>{var b;i=void 0,d()||(b=e.onContinue)==null||b.call(e)}),U=()=>{if(d())return;let w;const b=s===0?e.initialPromise:void 0;try{w=b??e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(_).catch(g=>{var R;if(d())return;const l=e.retry??(fe()?0:3),j=e.retryDelay??ls,T=typeof j=="function"?j(s,g):j,N=l===!0||typeof l=="number"&&s<l||typeof l=="function"&&l(s,g);if(t||!N){P(g);return}s++,(R=e.onFail)==null||R.call(e,s,g),ss(T).then(()=>m()?void 0:A(m)).then(()=>{t?P(g):U()})})};return{promise:o,status:()=>n,cancel:p,continue:()=>(i==null||i(),o),cancelRetry:f,continueRetry:C,canStart:M,start:()=>(M()?U():A(M).then(U),o)}}var lt,De,Be=(De=class{constructor(){c(this,lt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Le(this.gcTime)&&u(this,lt,ht.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fe()?1/0:3e5))}clearGcTimeout(){r(this,lt)!==void 0&&(ht.clearTimeout(r(this,lt)),u(this,lt,void 0))}},lt=new WeakMap,De);function ds(e){return{onFetch:(t,s)=>{var f,C,m,M,_;const i=t.options,n=(m=(C=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:C.fetchMore)==null?void 0:m.direction,a=((M=t.state.data)==null?void 0:M.pages)||[],h=((_=t.state.data)==null?void 0:_.pageParams)||[];let o={pages:[],pageParams:[]},d=0;const p=async()=>{let P=!1;const A=b=>{ns(b,()=>t.signal,()=>P=!0)},U=He(t.options,t.fetchOptions),w=async(b,g,l)=>{if(P)return Promise.reject(t.signal.reason);if(g==null&&b.pages.length)return Promise.resolve(b);const T=(()=>{const me={client:t.client,queryKey:t.queryKey,pageParam:g,direction:l?"backward":"forward",meta:t.options.meta};return A(me),me})(),N=await U(T),{maxPages:R}=t.options,q=l?rs:is;return{pages:q(b.pages,N,R),pageParams:q(b.pageParams,g,R)}};if(n&&a.length){const b=n==="backward",g=b?fs:Ce,l={pages:a,pageParams:h};o=await w(l,g(i,l),b)}else{const b=e??a.length;do{const g=d===0?h[0]===void 0?i.initialPageParam:h[0]:Ce(i,o);if(d>0&&g==null)break;o=await w(o,g),d++}while(d<b)}return o};t.options.persister?t.fetchFn=()=>{var P,A;return(A=(P=t.options).persister)==null?void 0:A.call(P,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=p}}}function Ce(e,{pages:t,pageParams:s}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,s[i],s):void 0}function fs(e,{pages:t,pageParams:s}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,s[0],s):void 0}var Ot,dt,Pt,H,ft,D,qt,yt,G,J,Ae,ys=(Ae=class extends Be{constructor(t){super();c(this,G);c(this,Ot);c(this,dt);c(this,Pt);c(this,H);c(this,ft);c(this,D);c(this,qt);c(this,yt);u(this,yt,!1),u(this,qt,t.defaultOptions),this.setOptions(t.options),this.observers=[],u(this,ft,t.client),u(this,H,r(this,ft).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,u(this,dt,Pe(this.options)),this.state=t.state??r(this,dt),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return r(this,Ot)}get promise(){var t;return(t=r(this,D))==null?void 0:t.promise}setOptions(t){if(this.options={...r(this,qt),...t},t!=null&&t._type&&u(this,Ot,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Pe(this.options);s.data!==void 0&&(this.setState(Oe(s.data,s.dataUpdatedAt)),u(this,dt,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,H).remove(this)}setData(t,s){const i=Jt(this.state.data,t,this.options);return y(this,G,J).call(this,{data:i,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),i}setState(t){y(this,G,J).call(this,{type:"setState",state:t})}cancel(t){var i,n;const s=(i=r(this,D))==null?void 0:i.promise;return(n=r(this,D))==null||n.cancel(t),s?s.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return r(this,dt)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>O(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===le||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>O(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!_e(this.state.dataUpdatedAt,t)}onFocus(){var t,s;(t=this.observers.find(i=>i.shouldFetchOnWindowFocus()))==null||t.refetch({cancelRefetch:!1}),(s=r(this,D))==null||s.continue()}onOnline(){var t,s;(t=this.observers.find(i=>i.shouldFetchOnReconnect()))==null||t.refetch({cancelRefetch:!1}),(s=r(this,D))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,H).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){const s=this.observers.indexOf(t);s!==-1&&(this.observers.splice(s,1),this.observers.length||(r(this,D)&&(r(this,yt)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?r(this,D).cancel({revert:!0}):r(this,D).cancelRetry()),this.scheduleGc()),r(this,H).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,G,J).call(this,{type:"invalidate"})}async fetch(t,s){var p,f,C,m,M,_,P,A,U,w,b,g;if(this.state.fetchStatus!=="idle"&&((p=r(this,D))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(r(this,D))return r(this,D).continueRetry(),r(this,D).promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(j=>j.options.queryFn);l&&this.setOptions(l.options)}const i=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(u(this,yt,!0),i.signal)})},a=()=>{const l=He(this.options,s),T=(()=>{const N={client:r(this,ft),queryKey:this.queryKey,meta:this.meta};return n(N),N})();return u(this,yt,!1),this.options.persister?this.options.persister(l,T,this):l(T)},o=(()=>{const l={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:r(this,ft),state:this.state,fetchFn:a};return n(l),l})();(f=r(this,Ot)==="infinite"?ds(this.options.pages):this.options.behavior)==null||f.onFetch(o,this),u(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=o.fetchOptions)==null?void 0:C.meta))&&y(this,G,J).call(this,{type:"fetch",meta:(m=o.fetchOptions)==null?void 0:m.meta});const d=u(this,D,Ge({initialPromise:s==null?void 0:s.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof Zt&&l.revert&&this.setState({...r(this,Pt),fetchStatus:"idle"}),i.abort()},onFail:(l,j)=>{y(this,G,J).call(this,{type:"failed",failureCount:l,error:j})},onPause:()=>{y(this,G,J).call(this,{type:"pause"})},onContinue:()=>{y(this,G,J).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const l=await d.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),(_=(M=r(this,H).config).onSuccess)==null||_.call(M,l,this),(A=(P=r(this,H).config).onSettled)==null||A.call(P,l,this.state.error,this),l}catch(l){if(l instanceof Zt){if(l.silent)return r(this,D).promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw y(this,G,J).call(this,{type:"error",error:l}),(w=(U=r(this,H).config).onError)==null||w.call(U,l,this),(g=(b=r(this,H).config).onSettled)==null||g.call(b,this.state.data,l,this),l}finally{r(this,D)===d&&u(this,D,void 0),this.scheduleGc()}}},Ot=new WeakMap,dt=new WeakMap,Pt=new WeakMap,H=new WeakMap,ft=new WeakMap,D=new WeakMap,qt=new WeakMap,yt=new WeakMap,G=new WeakSet,J=function(t){const s=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...ze(i.data,this.options),fetchMeta:t.meta??null};case"success":const n={...i,...Oe(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return u(this,Pt,t.manual?n:void 0),n;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=s(this.state),Q.batch(()=>{this.observers.slice().forEach(i=>{i.onQueryUpdate()}),r(this,H).notify({query:this,type:"updated",action:t})})},Ae);function ze(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Oe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Pe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,i=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var K,v,Kt,k,pt,Rt,Z,kt,Ft,Et,mt,vt,it,Mt,S,Ut,Xt,Yt,te,ee,se,ie,re,ne,Ie,ps=(Ie=class extends xt{constructor(t,s){super();c(this,S);c(this,K);c(this,v);c(this,Kt);c(this,k);c(this,pt);c(this,Rt);c(this,Z);c(this,kt);c(this,Ft);c(this,Et);c(this,mt);c(this,vt);c(this,it);c(this,Mt,new Set);this.options=s,u(this,K,t),u(this,Z,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,v).addObserver(this),Re(r(this,v),this.options)?y(this,S,Ut).call(this):this.updateResult(),y(this,S,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ae(r(this,v),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ae(r(this,v),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,S,ie).call(this),y(this,S,re).call(this),r(this,v).removeObserver(this)}setOptions(t){const s=this.options,i=r(this,v);if(this.options=r(this,K).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof O(this.options.enabled,r(this,v))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,S,ne).call(this),r(this,v).setOptions(this.options),s._defaulted&&!Bt(this.options,s)&&r(this,K).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,v),observer:this});const n=this.hasListeners();n&&Fe(r(this,v),i,this.options,s)&&y(this,S,Ut).call(this),this.updateResult(),n&&(r(this,v)!==i||O(this.options.enabled,r(this,v))!==O(s.enabled,r(this,v))||O(this.options.staleTime,r(this,v))!==O(s.staleTime,r(this,v)))&&y(this,S,Yt).call(this);const a=y(this,S,te).call(this);n&&(r(this,v)!==i||O(this.options.enabled,r(this,v))!==O(s.enabled,r(this,v))||a!==r(this,it))&&y(this,S,ee).call(this,a)}getOptimisticResult(t){const s=r(this,K).getQueryCache().build(r(this,K),t),i=this.createResult(s,t);return Bt(this.getCurrentResult(),i)||(u(this,k,i),u(this,Rt,this.options),u(this,pt,r(this,v).state)),i}getCurrentResult(){return r(this,k)}trackResult(t,s){return new Proxy(t,{get:(i,n)=>(this.trackProp(n),s==null||s(n),Reflect.get(i,n))})}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,v)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=r(this,K).defaultQueryOptions(t),i=r(this,K).getQueryCache().build(r(this,K),s);let n=()=>{},a;const h=new Promise(o=>{a=o,n=r(this,K).getQueryCache().subscribe(d=>{d.type==="updated"&&d.query.queryHash===i.queryHash&&i.state.data!==void 0&&(n(),o(this.createResult(i,s)))})});return Promise.race([i.fetch().then(()=>{const o=this.createResult(i,s);return a==null||a(o),o}).finally(()=>{n()}),h])}fetch(t){return y(this,S,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,k)))}createResult(t,s){var j;const i=r(this,v),n=this.options,a=r(this,k),h=r(this,pt),o=r(this,Rt),d=t!==i?t.state:r(this,Kt),{state:p}=t;let f={...p},C=!1,m;if(s._optimisticResults){const T=this.hasListeners(),N=!T&&Re(t,s),R=T&&Fe(t,i,s,n);(N||R)&&(f={...f,...ze(p.data,t.options)}),s._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:M,errorUpdatedAt:_,status:P}=f;m=f.data;let A=!1;if(s.placeholderData!==void 0&&m===void 0&&P==="pending"){let T;a!=null&&a.isPlaceholderData&&s.placeholderData===(o==null?void 0:o.placeholderData)?(T=a.data,A=!0):T=typeof s.placeholderData=="function"?s.placeholderData((j=r(this,Et))==null?void 0:j.state.data,r(this,Et)):s.placeholderData,T!==void 0&&(P="success",m=Jt(a==null?void 0:a.data,T,s),C=!0)}if(s.select&&m!==void 0&&!A)if(a&&m===(h==null?void 0:h.data)&&s.select===r(this,kt))m=r(this,Ft);else try{u(this,kt,s.select),m=s.select(m),m=Jt(a==null?void 0:a.data,m,s),u(this,Ft,m),u(this,Z,null)}catch(T){u(this,Z,T)}else m===void 0&&u(this,Z,null);r(this,Z)&&(M=r(this,Z),m=r(this,Ft),_=Date.now(),P="error",C=!1);const U=f.fetchStatus==="fetching",w=P==="pending",b=P==="error",g=w&&U,l=m!==void 0;return{status:P,fetchStatus:f.fetchStatus,isPending:w,isSuccess:P==="success",isError:b,isInitialLoading:g,isLoading:g,data:m,dataUpdatedAt:f.dataUpdatedAt,error:M,errorUpdatedAt:_,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:U,isRefetching:U&&!w,isLoadingError:b&&!l,isPaused:f.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:b&&l,isStale:pe(t,s),refetch:this.refetch,isEnabled:O(s.enabled,t)!==!1}}updateResult(){const t=r(this,k),s=this.createResult(r(this,v),this.options);if(u(this,pt,r(this,v).state),u(this,Rt,this.options),r(this,pt).data!==void 0&&u(this,Et,r(this,v)),Bt(s,t))return;u(this,k,s);const n=(()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,h=typeof a=="function"?a():a;if(h==="all"||!h&&!r(this,Mt).size)return!0;const o=new Set(h??r(this,Mt));return this.options.throwOnError&&o.add("error"),Object.keys(r(this,k)).some(d=>{const p=d;return r(this,k)[p]!==t[p]&&o.has(p)})})();Q.batch(()=>{n&&this.listeners.forEach(a=>{a(r(this,k))}),r(this,K).getQueryCache().notify({query:r(this,v),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,S,se).call(this)}},K=new WeakMap,v=new WeakMap,Kt=new WeakMap,k=new WeakMap,pt=new WeakMap,Rt=new WeakMap,Z=new WeakMap,kt=new WeakMap,Ft=new WeakMap,Et=new WeakMap,mt=new WeakMap,vt=new WeakMap,it=new WeakMap,Mt=new WeakMap,S=new WeakSet,Ut=function(t){y(this,S,ne).call(this);let s=r(this,v).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(L)),s},Xt=function(t){return!fe()&&O(this.options.enabled,r(this,v))!==!1&&Le(t)},Yt=function(){y(this,S,ie).call(this);const t=O(this.options.staleTime,r(this,v));if(r(this,k).isStale||!y(this,S,Xt).call(this,t))return;const s=_e(r(this,k).dataUpdatedAt,t)+1;u(this,mt,ht.setTimeout(()=>{r(this,k).isStale||this.updateResult()},s))},te=function(){return O(this.options.refetchInterval,r(this,v))??!1},ee=function(t){y(this,S,re).call(this),u(this,it,t),!(r(this,it)===0||!y(this,S,Xt).call(this,r(this,it)))&&u(this,vt,ht.setInterval(()=>{(this.options.refetchIntervalInBackground||ye.isFocused())&&y(this,S,Ut).call(this)},r(this,it)))},se=function(){y(this,S,Yt).call(this),y(this,S,ee).call(this,y(this,S,te).call(this))},ie=function(){r(this,mt)!==void 0&&(ht.clearTimeout(r(this,mt)),u(this,mt,void 0))},re=function(){r(this,vt)!==void 0&&(ht.clearInterval(r(this,vt)),u(this,vt,void 0))},ne=function(){const t=r(this,K).getQueryCache().build(r(this,K),this.options);if(t===r(this,v))return;const s=r(this,v);u(this,v,t),u(this,Kt,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Ie);function ms(e,t){return O(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&O(t.retryOnMount,e)===!1)}function Re(e,t){return ms(e,t)||e.state.data!==void 0&&ae(e,t,t.refetchOnMount)}function ae(e,t,s){if(O(t.enabled,e)!==!1&&O(t.staleTime,e)!=="static"){const i=O(s,e);return i==="always"||i!==!1&&pe(e,t)}return!1}function Fe(e,t,s,i){return(e!==t||O(i.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&pe(e,s)}function pe(e,t){return O(t.enabled,e)!==!1&&e.isStaleByTime(O(t.staleTime,e))}var Lt,z,I,bt,V,Y,xe,vs=(xe=class extends Be{constructor(t){super();c(this,V);c(this,Lt);c(this,z);c(this,I);c(this,bt);u(this,Lt,t.client),this.mutationId=t.mutationId,u(this,I,t.mutationCache),u(this,z,[]),this.state=t.state||Ve(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,z).includes(t)||(r(this,z).push(t),this.clearGcTimeout(),r(this,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){u(this,z,r(this,z).filter(s=>s!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,z).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,bt))==null?void 0:t.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){var o,d,p,f,C,m,M,_,P,A,U,w,b,g,l,j,T,N;const s=()=>{y(this,V,Y).call(this,{type:"continue"})},i={client:r(this,Lt),meta:this.options.meta,mutationKey:this.options.mutationKey},n=u(this,bt,Ge({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(R,q)=>{y(this,V,Y).call(this,{type:"failed",failureCount:R,error:q})},onPause:()=>{y(this,V,Y).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)})),a=this.state.status==="pending",h=!n.canStart();try{if(a)s();else{y(this,V,Y).call(this,{type:"pending",variables:t,isPaused:h}),r(this,I).config.onMutate&&await r(this,I).config.onMutate(t,this,i);const q=await((d=(o=this.options).onMutate)==null?void 0:d.call(o,t,i));q!==this.state.context&&y(this,V,Y).call(this,{type:"pending",context:q,variables:t,isPaused:h})}const R=await n.start();return await((f=(p=r(this,I).config).onSuccess)==null?void 0:f.call(p,R,t,this.state.context,this,i)),await((m=(C=this.options).onSuccess)==null?void 0:m.call(C,R,t,this.state.context,i)),await((_=(M=r(this,I).config).onSettled)==null?void 0:_.call(M,R,null,this.state.variables,this.state.context,this,i)),await((A=(P=this.options).onSettled)==null?void 0:A.call(P,R,null,t,this.state.context,i)),y(this,V,Y).call(this,{type:"success",data:R}),R}catch(R){try{await((w=(U=r(this,I).config).onError)==null?void 0:w.call(U,R,t,this.state.context,this,i))}catch(q){Promise.reject(q)}try{await((g=(b=this.options).onError)==null?void 0:g.call(b,R,t,this.state.context,i))}catch(q){Promise.reject(q)}try{await((j=(l=r(this,I).config).onSettled)==null?void 0:j.call(l,void 0,R,this.state.variables,this.state.context,this,i))}catch(q){Promise.reject(q)}try{await((N=(T=this.options).onSettled)==null?void 0:N.call(T,void 0,R,t,this.state.context,i))}catch(q){Promise.reject(q)}throw y(this,V,Y).call(this,{type:"error",error:R}),R}finally{r(this,bt)===n&&u(this,bt,void 0),r(this,I).runNext(this)}}},Lt=new WeakMap,z=new WeakMap,I=new WeakMap,bt=new WeakMap,V=new WeakSet,Y=function(t){const s=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Q.batch(()=>{r(this,z).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},xe);function Ve(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rt,B,_t,Ue,bs=(Ue=class extends xt{constructor(t={}){super();c(this,rt);c(this,B);c(this,_t);this.config=t,u(this,rt,new Set),u(this,B,new Map),u(this,_t,0)}build(t,s,i){const n=new vs({client:t,mutationCache:this,mutationId:++Nt(this,_t)._,options:t.defaultMutationOptions(s),state:i});return this.add(n),n}add(t){r(this,rt).add(t);const s=Gt(t);if(typeof s=="string"){const i=r(this,B).get(s);i?i.push(t):r(this,B).set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(r(this,rt).delete(t)){const s=Gt(t);if(typeof s=="string"){const i=r(this,B).get(s);if(i)if(i.length>1){const n=i.indexOf(t);n!==-1&&i.splice(n,1)}else i[0]===t&&r(this,B).delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){var i;const s=Gt(t);if(typeof s=="string"){const n=(i=r(this,B).get(s))==null?void 0:i.find(a=>a.state.status==="pending");return!n||n===t}else return!0}runNext(t){var i,n;const s=Gt(t);return typeof s=="string"?((n=(i=r(this,B).get(s))==null?void 0:i.find(a=>a!==t&&a.state.isPaused))==null?void 0:n.continue())??Promise.resolve():Promise.resolve()}clear(){Q.batch(()=>{const t=this.getAll();r(this,rt).clear(),r(this,B).clear(),t.forEach(s=>{this.notify({type:"removed",mutation:s})})})}getAll(){return Array.from(r(this,rt))}find(t){const s={exact:!0,...t};return this.getAll().find(i=>ge(s,i))}findAll(t={}){return this.getAll().filter(s=>ge(t,s))}notify(t){Q.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return Q.batch(()=>Promise.all(t.map(s=>s.continue().catch(L))))}},rt=new WeakMap,B=new WeakMap,_t=new WeakMap,Ue);function Gt(e){var t;return(t=e.options.scope)==null?void 0:t.id}var X,nt,x,Ht,$,jt,ue,je,gs=(je=class extends xt{constructor(t,s){super();c(this,$);c(this,X);c(this,nt);c(this,x);c(this,Ht);u(this,X,t),this.setOptions(s),this.bindMethods(),y(this,$,jt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const s=this.options;this.options=r(this,X).defaultMutationOptions(t),Bt(this.options,s)||r(this,X).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&>(s.mutationKey)!==gt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&r(this,x)&&(r(this,x).addObserver(this),y(this,$,jt).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,$,jt).call(this),y(this,$,ue).call(this,t)}getCurrentResult(){return r(this,nt)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),u(this,x,void 0),y(this,$,jt).call(this),y(this,$,ue).call(this)}mutate(t,s){var i;return u(this,Ht,s),(i=r(this,x))==null||i.removeObserver(this),u(this,x,r(this,X).getMutationCache().build(r(this,X),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},X=new WeakMap,nt=new WeakMap,x=new WeakMap,Ht=new WeakMap,$=new WeakSet,jt=function(){var s;const t=((s=r(this,x))==null?void 0:s.state)??Ve();u(this,nt,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ue=function(t){Q.batch(()=>{var i,n,a,h;const s=r(this,Ht);if(s&&this.hasListeners()){const o=r(this,nt).variables,d=r(this,nt).context,p={client:r(this,X),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(i=s.onSuccess)==null||i.call(s,t.data,o,d,p)}catch(f){Promise.reject(f)}try{(n=s.onSettled)==null||n.call(s,t.data,null,o,d,p)}catch(f){Promise.reject(f)}}else if((t==null?void 0:t.type)==="error"){try{(a=s.onError)==null||a.call(s,t.error,o,d,p)}catch(f){Promise.reject(f)}try{(h=s.onSettled)==null||h.call(s,void 0,t.error,o,d,p)}catch(f){Promise.reject(f)}}}this.listeners.forEach(o=>{o(r(this,nt))})})},je),W,qe,Ss=(qe=class extends xt{constructor(t={}){super();c(this,W);this.config=t,u(this,W,new Map)}build(t,s,i){const n=s.queryKey,a=s.queryHash??he(n,s);let h=this.get(a);return h||(h=new ys({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(s),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(h)),h}add(t){r(this,W).has(t.queryHash)||(r(this,W).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){r(this,W).get(t.queryHash)===t&&(t.destroy(),r(this,W).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Q.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return r(this,W).get(t)}getAll(){return[...r(this,W).values()]}find(t){const s={exact:!0,...t};return this.getAll().find(i=>be(s,i))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(i=>be(t,i)):s}notify(t){Q.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){Q.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Q.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},W=new WeakMap,qe),F,at,ut,Qt,Tt,ot,Dt,At,Ke,qs=(Ke=class{constructor(e={}){c(this,F);c(this,at);c(this,ut);c(this,Qt);c(this,Tt);c(this,ot);c(this,Dt);c(this,At);u(this,F,e.queryCache||new Ss),u(this,at,e.mutationCache||new bs),u(this,ut,e.defaultOptions||{}),u(this,Qt,new Map),u(this,Tt,new Map),u(this,ot,0)}mount(){Nt(this,ot)._++,r(this,ot)===1&&(u(this,Dt,ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),r(this,F).onFocus())})),u(this,At,zt.subscribe(async e=>{e&&(await this.resumePausedMutations(),r(this,F).onOnline())})))}unmount(){var e,t;Nt(this,ot)._--,r(this,ot)===0&&((e=r(this,Dt))==null||e.call(this),u(this,Dt,void 0),(t=r(this,At))==null||t.call(this),u(this,At,void 0))}isFetching(e){return r(this,F).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return r(this,at).findAll({...e,status:"pending"}).length}getQueryData(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=r(this,F).get(t.queryHash))==null?void 0:s.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=r(this,F).build(this,t),i=s.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(O(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return r(this,F).findAll(e).map(({queryKey:t,state:s})=>[t,s.data])}setQueryData(e,t,s){var h;const i=this.defaultQueryOptions({queryKey:e}),n=(h=r(this,F).get(i.queryHash))==null?void 0:h.state.data,a=ts(t,n);if(a!==void 0)return r(this,F).build(this,i).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return Q.batch(()=>r(this,F).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=r(this,F).get(t.queryHash))==null?void 0:s.state}removeQueries(e){const t=r(this,F);Q.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=r(this,F);return Q.batch(()=>{const i=s.findAll(e),n=new Set(i);return i.forEach(a=>{a.reset()}),this.refetchQueries({type:"active",predicate:a=>n.has(a)},t)})}cancelQueries(e,t={}){const s={revert:!0,...t},i=Q.batch(()=>r(this,F).findAll(e).map(n=>n.cancel(s)));return Promise.all(i).then(L).catch(L)}invalidateQueries(e,t={}){return Q.batch(()=>(r(this,F).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},i=Q.batch(()=>r(this,F).findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,s);return s.throwOnError||(a=a.catch(L)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(L)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=r(this,F).build(this,t),i=s.isStaleByTime(O(t.staleTime,s))?await s.fetch(t):s.state.data,n=t.select;return n?n(i):i}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=r(this,F).build(this,t);return s.isStaleByTime(O(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(L).catch(L)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(L).catch(L)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return zt.isOnline()?r(this,at).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,F)}getMutationCache(){return r(this,at)}getDefaultOptions(){return r(this,ut)}setDefaultOptions(e){u(this,ut,e)}setQueryDefaults(e,t){r(this,Qt).set(gt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...r(this,Qt).values()],s={};return t.forEach(i=>{It(e,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(e,t){r(this,Tt).set(gt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...r(this,Tt).values()],s={};return t.forEach(i=>{It(e,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...r(this,ut).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=he(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===le&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...r(this,ut).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){r(this,F).clear(),r(this,at).clear()}},F=new WeakMap,at=new WeakMap,ut=new WeakMap,Qt=new WeakMap,Tt=new WeakMap,ot=new WeakMap,Dt=new WeakMap,At=new WeakMap,Ke);const We=E.createContext(!1),ws=()=>E.useContext(We);We.Provider;function Cs(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Os=E.createContext(Cs()),Ps=()=>E.useContext(Os),Rs=(e,t,s)=>{const i=(s==null?void 0:s.state.status)==="error"&&typeof e.throwOnError=="function"?de(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||i)&&(t.isReset()||(e.retryOnMount=!1))},Fs=e=>{E.useEffect(()=>{e.clearReset()},[e])},Es=({result:e,errorResetBoundary:t,throwOnError:s,query:i,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(n&&e.data===void 0||de(s,[e.error,i])),Ms=e=>{if(e.suspense){const s=n=>n==="static"?n:Math.max(n??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...n)=>s(i(...n)):s(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Qs=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ts=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function Ds(e,t,s){const i=ws(),n=Ps(),a=Vt(s),h=a.defaultQueryOptions(e),o=a.getQueryCache().get(h.queryHash),d=e.subscribed!==!1;h._optimisticResults=i?"isRestoring":d?"optimistic":void 0,Ms(h),Rs(h,n,o),Fs(n);const[p]=E.useState(()=>new t(a,h)),f=p.getOptimisticResult(h),C=!i&&d;if(E.useSyncExternalStore(E.useCallback(m=>{const M=C?p.subscribe(Q.batchCalls(m)):L;return p.updateResult(),M},[p,C]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(h)},[h,p]),Qs(h,f))throw Ts(h,p,n);if(Es({result:f,errorResetBoundary:n,throwOnError:h.throwOnError,query:o,suspense:h.suspense}))throw f.error;return h.notifyOnChangeProps?f:p.trackResult(f)}function Ks(e,t){return Ds(e,ps,t)}function ks(e,t){const s=Vt(t);return As({filters:{...e,status:"pending"}},s).length}function Ee(e,t){return e.findAll(t.filters).map(s=>t.select?t.select(s):s.state)}function As(e={},t){const s=Vt(t).getMutationCache(),i=E.useRef(e),n=E.useRef(null);return n.current===null&&(n.current=Ee(s,e)),E.useEffect(()=>{i.current=e}),E.useSyncExternalStore(E.useCallback(a=>s.subscribe(()=>{const h=ce(n.current,Ee(s,i.current));n.current!==h&&(n.current=h,Q.schedule(a))}),[s]),()=>n.current,()=>n.current)}function Ls(e,t){const s=Vt(t),[i]=E.useState(()=>new gs(s,e));E.useEffect(()=>{i.setOptions(e)},[i,e]);const n=E.useSyncExternalStore(E.useCallback(h=>i.subscribe(Q.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=E.useCallback((...h)=>{i.mutate(h[0],h[1]).catch(L)},[i]);if(n.error&&de(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}export{qs as Q,Vt as a,ks as b,Ls as c,Us as d,js as k,Ks as u};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Quill Editor v2.0.3
|
|
3
|
+
* https://quilljs.com
|
|
4
|
+
* Copyright (c) 2017-2024, Slab
|
|
5
|
+
* Copyright (c) 2014, Jason Chen
|
|
6
|
+
* Copyright (c) 2013, salesforce.com
|
|
7
|
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ho=Object.defineProperty;var zo=(r,t,e)=>t in r?Ho(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>zo(r,typeof t!="symbol"?t+"":t,e);import{c as pe,g as Bl,R as Oe,r as qi,j as Ss}from"./index-8gWK1fNb.js";var Ml=typeof global=="object"&&global&&global.Object===Object&&global,Ko=typeof self=="object"&&self&&self.Object===Object&&self,te=Ml||Ko||Function("return this")(),ve=te.Symbol,Dl=Object.prototype,Go=Dl.hasOwnProperty,Vo=Dl.toString,_n=ve?ve.toStringTag:void 0;function Wo(r){var t=Go.call(r,_n),e=r[_n];try{r[_n]=void 0;var n=!0}catch{}var s=Vo.call(r);return n&&(t?r[_n]=e:delete r[_n]),s}var Zo=Object.prototype,Xo=Zo.toString;function Yo(r){return Xo.call(r)}var Qo="[object Null]",Jo="[object Undefined]",Ci=ve?ve.toStringTag:void 0;function hn(r){return r==null?r===void 0?Jo:Qo:Ci&&Ci in Object(r)?Wo(r):Yo(r)}function le(r){return r!=null&&typeof r=="object"}var qe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function jl(r){return r}var ta="[object AsyncFunction]",ea="[object Function]",na="[object GeneratorFunction]",ra="[object Proxy]";function hi(r){if(!Ee(r))return!1;var t=hn(r);return t==ea||t==na||t==ta||t==ra}var _s=te["__core-js_shared__"],Ii=(function(){var r=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function sa(r){return!!Ii&&Ii in r}var ia=Function.prototype,la=ia.toString;function Re(r){if(r!=null){try{return la.call(r)}catch{}try{return r+""}catch{}}return""}var oa=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,ca=Function.prototype,ua=Object.prototype,ha=ca.toString,fa=ua.hasOwnProperty,da=RegExp("^"+ha.call(fa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ga(r){if(!Ee(r)||sa(r))return!1;var t=hi(r)?da:aa;return t.test(Re(r))}function pa(r,t){return r==null?void 0:r[t]}function ke(r,t){var e=pa(r,t);return ga(e)?e:void 0}var Fs=ke(te,"WeakMap"),Ri=Object.create,ma=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Ri)return Ri(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function ba(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function ya(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var va=800,Ea=16,Aa=Date.now;function Na(r){var t=0,e=0;return function(){var n=Aa(),s=Ea-(n-e);if(e=n,s>0){if(++t>=va)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function wa(r){return function(){return r}}var Sr=(function(){try{var r=ke(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Ta=Sr?function(r,t){return Sr(r,"toString",{configurable:!0,enumerable:!1,value:wa(t),writable:!0})}:jl,xa=Na(Ta);function La(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Sa=9007199254740991,_a=/^(?:0|[1-9]\d*)$/;function $l(r,t){var e=typeof r;return t=t??Sa,!!t&&(e=="number"||e!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<t}function fi(r,t,e){t=="__proto__"&&Sr?Sr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function zn(r,t){return r===t||r!==r&&t!==t}var Oa=Object.prototype,qa=Oa.hasOwnProperty;function Pl(r,t,e){var n=r[t];(!(qa.call(r,t)&&zn(n,e))||e===void 0&&!(t in r))&&fi(r,t,e)}function Ca(r,t,e,n){var s=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=r[a]),s?fi(e,a,u):Pl(e,a,u)}return e}var ki=Math.max;function Ia(r,t,e){return t=ki(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=ki(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=e(o),ba(r,this,a)}}function Ra(r,t){return xa(Ia(r,t,jl),r+"")}var ka=9007199254740991;function Ul(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ka}function Cr(r){return r!=null&&Ul(r.length)&&!hi(r)}function Ba(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Cr(e)&&$l(t,e.length):n=="string"&&t in e)?zn(e[t],r):!1}function Ma(r){return Ra(function(t,e){var n=-1,s=e.length,i=s>1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ba(e[0],e[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=e[n];a&&r(t,a,n,i)}return t})}var Da=Object.prototype;function di(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Da;return r===e}function ja(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var $a="[object Arguments]";function Bi(r){return le(r)&&hn(r)==$a}var Fl=Object.prototype,Pa=Fl.hasOwnProperty,Ua=Fl.propertyIsEnumerable,Hs=Bi((function(){return arguments})())?Bi:function(r){return le(r)&&Pa.call(r,"callee")&&!Ua.call(r,"callee")};function Fa(){return!1}var Hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mi=Hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Mi&&Mi.exports===Hl,Di=Ha?te.Buffer:void 0,za=Di?Di.isBuffer:void 0,Dn=za||Fa,Ka="[object Arguments]",Ga="[object Array]",Va="[object Boolean]",Wa="[object Date]",Za="[object Error]",Xa="[object Function]",Ya="[object Map]",Qa="[object Number]",Ja="[object Object]",tc="[object RegExp]",ec="[object Set]",nc="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",ic="[object DataView]",lc="[object Float32Array]",oc="[object Float64Array]",ac="[object Int8Array]",cc="[object Int16Array]",uc="[object Int32Array]",hc="[object Uint8Array]",fc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",lt={};lt[lc]=lt[oc]=lt[ac]=lt[cc]=lt[uc]=lt[hc]=lt[fc]=lt[dc]=lt[gc]=!0;lt[Ka]=lt[Ga]=lt[sc]=lt[Va]=lt[ic]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=lt[Ja]=lt[tc]=lt[ec]=lt[nc]=lt[rc]=!1;function pc(r){return le(r)&&Ul(r.length)&&!!lt[hn(r)]}function gi(r){return function(t){return r(t)}}var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=zl&&typeof module=="object"&&module&&!module.nodeType&&module,mc=Rn&&Rn.exports===zl,Os=mc&&Ml.process,ln=(function(){try{var r=Rn&&Rn.require&&Rn.require("util").types;return r||Os&&Os.binding&&Os.binding("util")}catch{}})(),ji=ln&&ln.isTypedArray,pi=ji?gi(ji):pc,bc=Object.prototype,yc=bc.hasOwnProperty;function Kl(r,t){var e=qe(r),n=!e&&Hs(r),s=!e&&!n&&Dn(r),i=!e&&!n&&!s&&pi(r),o=e||n||s||i,a=o?ja(r.length,String):[],u=a.length;for(var h in r)(t||yc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||$l(h,u)))&&a.push(h);return a}function Gl(r,t){return function(e){return r(t(e))}}var vc=Gl(Object.keys,Object),Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!di(r))return vc(r);var t=[];for(var e in Object(r))Ac.call(r,e)&&e!="constructor"&&t.push(e);return t}function wc(r){return Cr(r)?Kl(r):Nc(r)}function Tc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var xc=Object.prototype,Lc=xc.hasOwnProperty;function Sc(r){if(!Ee(r))return Tc(r);var t=di(r),e=[];for(var n in r)n=="constructor"&&(t||!Lc.call(r,n))||e.push(n);return e}function Vl(r){return Cr(r)?Kl(r,!0):Sc(r)}var jn=ke(Object,"create");function _c(){this.__data__=jn?jn(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var qc="__lodash_hash_undefined__",Cc=Object.prototype,Ic=Cc.hasOwnProperty;function Rc(r){var t=this.__data__;if(jn){var e=t[r];return e===qc?void 0:e}return Ic.call(t,r)?t[r]:void 0}var kc=Object.prototype,Bc=kc.hasOwnProperty;function Mc(r){var t=this.__data__;return jn?t[r]!==void 0:Bc.call(t,r)}var Dc="__lodash_hash_undefined__";function jc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=jn&&t===void 0?Dc:t,this}function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Ce.prototype.clear=_c;Ce.prototype.delete=Oc;Ce.prototype.get=Rc;Ce.prototype.has=Mc;Ce.prototype.set=jc;function $c(){this.__data__=[],this.size=0}function Ir(r,t){for(var e=r.length;e--;)if(zn(r[e][0],t))return e;return-1}var Pc=Array.prototype,Uc=Pc.splice;function Fc(r){var t=this.__data__,e=Ir(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Uc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=Ir(t,r);return e<0?void 0:t[e][1]}function zc(r){return Ir(this.__data__,r)>-1}function Kc(r,t){var e=this.__data__,n=Ir(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}ce.prototype.clear=$c;ce.prototype.delete=Fc;ce.prototype.get=Hc;ce.prototype.has=zc;ce.prototype.set=Kc;var $n=ke(te,"Map");function Gc(){this.size=0,this.__data__={hash:new Ce,map:new($n||ce),string:new Ce}}function Vc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Rr(r,t){var e=r.__data__;return Vc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Wc(r){var t=Rr(this,r).delete(r);return this.size-=t?1:0,t}function Zc(r){return Rr(this,r).get(r)}function Xc(r){return Rr(this,r).has(r)}function Yc(r,t){var e=Rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Be(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Be.prototype.clear=Gc;Be.prototype.delete=Wc;Be.prototype.get=Zc;Be.prototype.has=Xc;Be.prototype.set=Yc;function Qc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Wl=Gl(Object.getPrototypeOf,Object),Jc="[object Object]",tu=Function.prototype,eu=Object.prototype,Zl=tu.toString,nu=eu.hasOwnProperty,ru=Zl.call(Object);function su(r){if(!le(r)||hn(r)!=Jc)return!1;var t=Wl(r);if(t===null)return!0;var e=nu.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Zl.call(e)==ru}function iu(){this.__data__=new ce,this.size=0}function lu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function ou(r){return this.__data__.get(r)}function au(r){return this.__data__.has(r)}var cu=200;function uu(r,t){var e=this.__data__;if(e instanceof ce){var n=e.__data__;if(!$n||n.length<cu-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(r,t),this.size=e.size,this}function Xt(r){var t=this.__data__=new ce(r);this.size=t.size}Xt.prototype.clear=iu;Xt.prototype.delete=lu;Xt.prototype.get=ou;Xt.prototype.has=au;Xt.prototype.set=uu;var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$i=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,hu=$i&&$i.exports===Xl,Pi=hu?te.Buffer:void 0,Ui=Pi?Pi.allocUnsafe:void 0;function Yl(r,t){if(t)return r.slice();var e=r.length,n=Ui?Ui(e):new r.constructor(e);return r.copy(n),n}function fu(r,t){for(var e=-1,n=r==null?0:r.length,s=0,i=[];++e<n;){var o=r[e];t(o,e,r)&&(i[s++]=o)}return i}function du(){return[]}var gu=Object.prototype,pu=gu.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,mu=Fi?function(r){return r==null?[]:(r=Object(r),fu(Fi(r),function(t){return pu.call(r,t)}))}:du;function bu(r,t,e){var n=t(r);return qe(r)?n:Qc(n,e(r))}function zs(r){return bu(r,wc,mu)}var Ks=ke(te,"DataView"),Gs=ke(te,"Promise"),Vs=ke(te,"Set"),Hi="[object Map]",yu="[object Object]",zi="[object Promise]",Ki="[object Set]",Gi="[object WeakMap]",Vi="[object DataView]",vu=Re(Ks),Eu=Re($n),Au=Re(Gs),Nu=Re(Vs),wu=Re(Fs),jt=hn;(Ks&&jt(new Ks(new ArrayBuffer(1)))!=Vi||$n&&jt(new $n)!=Hi||Gs&&jt(Gs.resolve())!=zi||Vs&&jt(new Vs)!=Ki||Fs&&jt(new Fs)!=Gi)&&(jt=function(r){var t=hn(r),e=t==yu?r.constructor:void 0,n=e?Re(e):"";if(n)switch(n){case vu:return Vi;case Eu:return Hi;case Au:return zi;case Nu:return Ki;case wu:return Gi}return t});var Tu=Object.prototype,xu=Tu.hasOwnProperty;function Lu(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&xu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var _r=te.Uint8Array;function mi(r){var t=new r.constructor(r.byteLength);return new _r(t).set(new _r(r)),t}function Su(r,t){var e=mi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var _u=/\w*$/;function Ou(r){var t=new r.constructor(r.source,_u.exec(r));return t.lastIndex=r.lastIndex,t}var Wi=ve?ve.prototype:void 0,Zi=Wi?Wi.valueOf:void 0;function qu(r){return Zi?Object(Zi.call(r)):{}}function Ql(r,t){var e=t?mi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Cu="[object Boolean]",Iu="[object Date]",Ru="[object Map]",ku="[object Number]",Bu="[object RegExp]",Mu="[object Set]",Du="[object String]",ju="[object Symbol]",$u="[object ArrayBuffer]",Pu="[object DataView]",Uu="[object Float32Array]",Fu="[object Float64Array]",Hu="[object Int8Array]",zu="[object Int16Array]",Ku="[object Int32Array]",Gu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Zu="[object Uint32Array]";function Xu(r,t,e){var n=r.constructor;switch(t){case $u:return mi(r);case Cu:case Iu:return new n(+r);case Pu:return Su(r);case Uu:case Fu:case Hu:case zu:case Ku:case Gu:case Vu:case Wu:case Zu:return Ql(r,e);case Ru:return new n;case ku:case Du:return new n(r);case Bu:return Ou(r);case Mu:return new n;case ju:return qu(r)}}function Jl(r){return typeof r.constructor=="function"&&!di(r)?ma(Wl(r)):{}}var Yu="[object Map]";function Qu(r){return le(r)&&jt(r)==Yu}var Xi=ln&&ln.isMap,Ju=Xi?gi(Xi):Qu,th="[object Set]";function eh(r){return le(r)&&jt(r)==th}var Yi=ln&&ln.isSet,nh=Yi?gi(Yi):eh,rh=1,to="[object Arguments]",sh="[object Array]",ih="[object Boolean]",lh="[object Date]",oh="[object Error]",eo="[object Function]",ah="[object GeneratorFunction]",ch="[object Map]",uh="[object Number]",no="[object Object]",hh="[object RegExp]",fh="[object Set]",dh="[object String]",gh="[object Symbol]",ph="[object WeakMap]",mh="[object ArrayBuffer]",bh="[object DataView]",yh="[object Float32Array]",vh="[object Float64Array]",Eh="[object Int8Array]",Ah="[object Int16Array]",Nh="[object Int32Array]",wh="[object Uint8Array]",Th="[object Uint8ClampedArray]",xh="[object Uint16Array]",Lh="[object Uint32Array]",st={};st[to]=st[sh]=st[mh]=st[bh]=st[ih]=st[lh]=st[yh]=st[vh]=st[Eh]=st[Ah]=st[Nh]=st[ch]=st[uh]=st[no]=st[hh]=st[fh]=st[dh]=st[gh]=st[wh]=st[Th]=st[xh]=st[Lh]=!0;st[oh]=st[eo]=st[ph]=!1;function Tr(r,t,e,n,s,i){var o,a=t&rh;if(o!==void 0)return o;if(!Ee(r))return r;var u=qe(r);if(u)o=Lu(r);else{var h=jt(r),p=h==eo||h==ah;if(Dn(r))return Yl(r,a);if(h==no||h==to||p&&!s)o=p?{}:Jl(r);else{if(!st[h])return s?r:{};o=Xu(r,h,a)}}i||(i=new Xt);var v=i.get(r);if(v)return v;i.set(r,o),nh(r)?r.forEach(function(y){o.add(Tr(y,t,e,y,r,i))}):Ju(r)&&r.forEach(function(y,A){o.set(A,Tr(y,t,e,A,r,i))});var f=zs,m=u?void 0:f(r);return La(m||r,function(y,A){m&&(A=y,y=r[A]),Pl(o,A,Tr(y,t,e,A,r,i))}),o}var Sh=1,_h=4;function nn(r){return Tr(r,Sh|_h)}var Oh="__lodash_hash_undefined__";function qh(r){return this.__data__.set(r,Oh),this}function Ch(r){return this.__data__.has(r)}function Or(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Be;++t<e;)this.add(r[t])}Or.prototype.add=Or.prototype.push=qh;Or.prototype.has=Ch;function Ih(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function Rh(r,t){return r.has(t)}var kh=1,Bh=2;function ro(r,t,e,n,s,i){var o=e&kh,a=r.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var h=i.get(r),p=i.get(t);if(h&&p)return h==t&&p==r;var v=-1,f=!0,m=e&Bh?new Or:void 0;for(i.set(r,t),i.set(t,r);++v<a;){var y=r[v],A=t[v];if(n)var w=o?n(A,y,v,t,r,i):n(y,A,v,r,t,i);if(w!==void 0){if(w)continue;f=!1;break}if(m){if(!Ih(t,function(x,C){if(!Rh(m,C)&&(y===x||s(y,x,e,n,i)))return m.push(C)})){f=!1;break}}else if(!(y===A||s(y,A,e,n,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function Mh(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Dh(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var jh=1,$h=2,Ph="[object Boolean]",Uh="[object Date]",Fh="[object Error]",Hh="[object Map]",zh="[object Number]",Kh="[object RegExp]",Gh="[object Set]",Vh="[object String]",Wh="[object Symbol]",Zh="[object ArrayBuffer]",Xh="[object DataView]",Qi=ve?ve.prototype:void 0,qs=Qi?Qi.valueOf:void 0;function Yh(r,t,e,n,s,i,o){switch(e){case Xh:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zh:return!(r.byteLength!=t.byteLength||!i(new _r(r),new _r(t)));case Ph:case Uh:case zh:return zn(+r,+t);case Fh:return r.name==t.name&&r.message==t.message;case Kh:case Vh:return r==t+"";case Hh:var a=Mh;case Gh:var u=n&jh;if(a||(a=Dh),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=$h,o.set(r,t);var p=ro(a(r),a(t),n,s,i,o);return o.delete(r),p;case Wh:if(qs)return qs.call(r)==qs.call(t)}return!1}var Qh=1,Jh=Object.prototype,tf=Jh.hasOwnProperty;function ef(r,t,e,n,s,i){var o=e&Qh,a=zs(r),u=a.length,h=zs(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:tf.call(t,f)))return!1}var m=i.get(r),y=i.get(t);if(m&&y)return m==t&&y==r;var A=!0;i.set(r,t),i.set(t,r);for(var w=o;++v<u;){f=a[v];var x=r[f],C=t[f];if(n)var M=o?n(C,x,f,t,r,i):n(x,C,f,r,t,i);if(!(M===void 0?x===C||s(x,C,e,n,i):M)){A=!1;break}w||(w=f=="constructor")}if(A&&!w){var z=r.constructor,U=t.constructor;z!=U&&"constructor"in r&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof U=="function"&&U instanceof U)&&(A=!1)}return i.delete(r),i.delete(t),A}var nf=1,Ji="[object Arguments]",tl="[object Array]",gr="[object Object]",rf=Object.prototype,el=rf.hasOwnProperty;function sf(r,t,e,n,s,i){var o=qe(r),a=qe(t),u=o?tl:jt(r),h=a?tl:jt(t);u=u==Ji?gr:u,h=h==Ji?gr:h;var p=u==gr,v=h==gr,f=u==h;if(f&&Dn(r)){if(!Dn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Xt),o||pi(r)?ro(r,t,e,n,s,i):Yh(r,t,u,e,n,s,i);if(!(e&nf)){var m=p&&el.call(r,"__wrapped__"),y=v&&el.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Xt),s(A,w,e,n,i)}}return f?(i||(i=new Xt),ef(r,t,e,n,s,i)):!1}function so(r,t,e,n,s){return r===t?!0:r==null||t==null||!le(r)&&!le(t)?r!==r&&t!==t:sf(r,t,e,n,so,s)}function lf(r){return function(t,e,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(e(i[u],u,i)===!1)break}return t}}var of=lf();function Ws(r,t,e){(e!==void 0&&!zn(r[t],e)||e===void 0&&!(t in r))&&fi(r,t,e)}function af(r){return le(r)&&Cr(r)}function Zs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function cf(r){return Ca(r,Vl(r))}function uf(r,t,e,n,s,i,o){var a=Zs(r,e),u=Zs(t,e),h=o.get(u);if(h){Ws(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=qe(u),m=!f&&Dn(u),y=!f&&!m&&pi(u);p=u,f||m||y?qe(a)?p=a:af(a)?p=ya(a):m?(v=!1,p=Yl(u,!0)):y?(v=!1,p=Ql(u,!0)):p=[]:su(u)||Hs(u)?(p=a,Hs(a)?p=cf(a):(!Ee(a)||hi(a))&&(p=Jl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),Ws(r,e,p)}function io(r,t,e,n,s){r!==t&&of(t,function(i,o){if(s||(s=new Xt),Ee(i))uf(r,t,o,e,io,n,s);else{var a=n?n(Zs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),Ws(r,o,a)}},Vl)}function ge(r,t){return so(r,t)}var ye=Ma(function(r,t,e){io(r,t,e)}),D=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(D||{});class Qt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=D.TYPE&D.ATTRIBUTE;this.scope=n.scope!=null?n.scope&D.LEVEL|s:D.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class rn extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const lo=class Xs{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(t,e,n){const s=this.query(e);if(s==null)throw new rn(`Unable to create ${e} blot`);const i=s,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(n),a=new i(t,o,n);return Xs.blots.set(a.domNode,a),a}find(t,e=!1){return Xs.find(t,e)}query(t,e=D.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&D.LEVEL&D.BLOCK?n=this.types.block:t&D.LEVEL&D.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&e&D.LEVEL&n.scope&&e&D.TYPE&n.scope?n:null}register(...t){return t.map(e=>{const n="blotName"in e,s="attrName"in e;if(!n&&!s)throw new rn("Invalid definition");if(n&&e.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?e.blotName:s?e.attrName:void 0;return this.types[i]=e,s?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):n&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};lo.blots=new WeakMap;let on=lo;function nl(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class hf extends Qt{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){nl(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(nl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ft=hf;function Cs(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class ff extends Qt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Cs(this.keyName)]=e,!0):!1}remove(t){t.style[Cs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Cs(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=ff;class df{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=on.find(this.domNode);if(t==null)return;const e=Qt.keys(this.domNode),n=Ft.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,D.ATTRIBUTE);o instanceof Qt&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const kr=df,oo=class{constructor(t,e){this.scroll=t,this.domNode=e,on.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new rn("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?e=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?e=document.createElement(n):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),on.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,s){const i=this.isolate(t,e);if(this.scroll.query(n,D.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,D.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(t,e,n){const s=n==null?this.scroll.create("text",e):this.scroll.create(e,n),i=this.split(t);this.parent.insertBefore(s,i||void 0)}isolate(t,e){const n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${t}`);return n.appendChild(this),n}};oo.blotName="abstract";let ao=oo;const co=class extends ao{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};co.scope=D.INLINE_BLOT;let gf=co;const Et=gf;class pf{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),s=0;for(;n;){if(n===t)return s;s+=1,n=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;n!=null;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(t<i||e&&t===i&&(s.next==null||s.next.length()!==0))return[s,t];t-=i,s=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[s,i]=this.find(t);let o=t-i;const a=this.iterator(s);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?n(u,t-o,Math.min(e,o+h-t)):n(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,n)=>(e.push(t(n)),e),[])}reduce(t,e){const n=this.iterator();let s=n();for(;s;)e=t(e,s),s=n();return e}}function rl(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(D.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const uo=class de extends ao{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,de.uiClass&&this.uiNode.classList.add(de.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=rl(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof rn)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(n,s,i)=>{n.deleteAt(s,i)})}descendant(t,e=0){const[n,s]=this.children.find(e);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,s]:n instanceof de?n.descendant(t,s):[null,-1]}descendants(t,e=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(e,n,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&s.push(o),o instanceof de&&(s=s.concat(o.descendants(t,a,i))),i-=u}),s}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===D.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof de?e.unwrap():e.remove())})}formatAt(t,e,n,s){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(t,e,n){const[s,i]=this.children.find(t);if(s)s.insertAt(i,e,n);else{const o=n==null?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(n=>{t.insertBefore(n,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[n,s]=this.children.find(t,e),i=[[this,t]];return n instanceof de?i.concat(n.path(s,e)):(n!=null&&i.push([n,s]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return n instanceof de&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(s,i,o)=>{const a=s.split(i,e);a!=null&&n.appendChild(a)}),n}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],s=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=rl(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};uo.uiClass="";let mf=uo;const Pt=mf;function bf(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const Xe=class Ye extends Pt{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ye.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ye||(n=n.wrap(Ye.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,D.INLINE);if(n==null)return;n instanceof Qt?this.attributes.attribute(n,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.formats()[n]!=null||this.scroll.query(n,D.ATTRIBUTE)?this.isolate(t,e).format(n,s):super.formatAt(t,e,n,s)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const n=this.next;n instanceof Ye&&n.prev===this&&bf(e,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,e){const n=super.wrap(t,e);return n instanceof Ye&&this.attributes.move(n),n}};Xe.allowedChildren=[Xe,Et],Xe.blotName="inline",Xe.scope=D.INLINE_BLOT,Xe.tagName="SPAN";let yf=Xe;const bi=yf,Qe=class Ys extends Pt{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ys.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){const n=this.scroll.query(t,D.BLOCK);n!=null&&(n instanceof Qt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Ys.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.scroll.query(n,D.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,D.INLINE)!=null)super.insertAt(t,e,n);else{const s=this.split(t);if(s!=null){const i=this.scroll.create(e,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Qe.blotName="block",Qe.scope=D.BLOCK_BLOT,Qe.tagName="P",Qe.allowedChildren=[bi,Qe,Et];let vf=Qe;const Pn=vf,Qs=class extends Pt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,s){super.formatAt(t,e,n,s),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Qs.blotName="container",Qs.scope=D.BLOCK_BLOT;let Ef=Qs;const Br=Ef;class Af extends Et{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,s){t===0&&e===this.length()?this.format(n,s):super.formatAt(t,e,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Lt=Af,Nf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},wf=100,Je=class extends Pt{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Nf),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=D.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,e)}formatAt(t,e,n,s){this.update(),super.formatAt(t,e,n,s)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)t.push(s.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(n.has(u.domNode)||n.set(u.domNode,[]),h&&i(u.parent))},o=u=>{n.has(u.domNode)&&(u instanceof Pt&&u.children.forEach(o),n.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=wf)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const p=this.find(h.target,!0);p!=null&&(p.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(v=>{const f=this.find(v,!1);i(f,!1),f instanceof Pt&&f.children.forEach(m=>{i(m,!1)})})):h.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)t.push(s.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],e)}),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};Je.blotName="scroll",Je.defaultChild=Pn,Je.allowedChildren=[Pn,Br],Je.scope=D.BLOCK_BLOT,Je.tagName="DIV";let Tf=Je;const yi=Tf,Js=class ho extends Et{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){n==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ho&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Js.blotName="text",Js.scope=D.INLINE_BLOT;let xf=Js;const qr=xf,Lf=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Qt,AttributorStore:kr,BlockBlot:Pn,ClassAttributor:Ft,ContainerBlot:Br,EmbedBlot:Lt,InlineBlot:bi,LeafBlot:Et,ParentBlot:Pt,Registry:on,Scope:D,ScrollBlot:yi,StyleAttributor:Ae,TextBlot:qr},Symbol.toStringTag,{value:"Module"}));var pr={exports:{}},Is,sl;function Sf(){if(sl)return Is;sl=1;var r=-1,t=1,e=0;function n(g,L,b,O,S){if(g===L)return g?[[e,g]]:[];if(b!=null){var T=Rt(g,L,b);if(T)return T}var _=a(g,L),k=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var j=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return k&&I.unshift([e,k]),j&&I.push([e,j]),C(I,S),O&&v(I),I}function s(g,L){var b;if(!g)return[[t,L]];if(!L)return[[r,g]];var O=g.length>L.length?g:L,S=g.length>L.length?L:g,T=O.indexOf(S);if(T!==-1)return b=[[t,O.substring(0,T)],[e,S],[t,O.substring(T+S.length)]],g.length>L.length&&(b[0][0]=b[2][0]=r),b;if(S.length===1)return[[r,g],[t,L]];var _=p(g,L);if(_){var k=_[0],j=_[1],I=_[2],K=_[3],F=_[4],V=n(k,I),W=n(j,K);return V.concat([[e,F]],W)}return i(g,L)}function i(g,L){for(var b=g.length,O=L.length,S=Math.ceil((b+O)/2),T=S,_=2*S,k=new Array(_),j=new Array(_),I=0;I<_;I++)k[I]=-1,j[I]=-1;k[T+1]=0,j[T+1]=0;for(var K=b-O,F=K%2!==0,V=0,W=0,P=0,it=0,ot=0;ot<S;ot++){for(var G=-ot+V;G<=ot-W;G+=2){var Q=T+G,Y;G===-ot||G!==ot&&k[Q-1]<k[Q+1]?Y=k[Q+1]:Y=k[Q-1]+1;for(var J=Y-G;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(k[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+K-G;if(et>=0&&et<_&&j[et]!==-1){var nt=b-j[et];if(Y>=nt)return o(g,L,Y,J)}}}for(var ct=-ot+P;ct<=ot-it;ct+=2){var et=T+ct,nt;ct===-ot||ct!==ot&&j[et-1]<j[et+1]?nt=j[et+1]:nt=j[et-1]+1;for(var mt=nt-ct;nt<b&&mt<O&&g.charAt(b-nt-1)===L.charAt(O-mt-1);)nt++,mt++;if(j[et]=nt,nt>b)it+=2;else if(mt>O)P+=2;else if(!F){var Q=T+K-ct;if(Q>=0&&Q<_&&k[Q]!==-1){var Y=k[Q],J=T+Y-Q;if(nt=b-nt,Y>=nt)return o(g,L,Y,J)}}}}return[[r,g],[t,L]]}function o(g,L,b,O){var S=g.substring(0,b),T=L.substring(0,O),_=g.substring(b),k=L.substring(O),j=n(S,T),I=n(_,k);return j.concat(I)}function a(g,L){if(!g||!L||g.charAt(0)!==L.charAt(0))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(T,S)==L.substring(T,S)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return M(g.charCodeAt(S-1))&&S--,S}function u(g,L){var b=g.length,O=L.length;if(b==0||O==0)return 0;b>O?g=g.substring(b-O):b<O&&(L=L.substring(0,b));var S=Math.min(b,O);if(g==L)return S;for(var T=0,_=1;;){var k=g.substring(S-_),j=L.indexOf(k);if(j==-1)return T;_+=j,(j==0||g.substring(S-_)==L.substring(0,_))&&(T=_,_++)}}function h(g,L){if(!g||!L||g.slice(-1)!==L.slice(-1))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(g.length-S,g.length-T)==L.substring(L.length-S,L.length-T)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return z(g.charCodeAt(g.length-S))&&S--,S}function p(g,L){var b=g.length>L.length?g:L,O=g.length>L.length?L:g;if(b.length<4||O.length*2<b.length)return null;function S(W,P,it){for(var ot=W.substring(it,it+Math.floor(W.length/4)),G=-1,Q="",Y,J,et,nt;(G=P.indexOf(ot,G+1))!==-1;){var ct=a(W.substring(it),P.substring(G)),mt=h(W.substring(0,it),P.substring(0,G));Q.length<mt+ct&&(Q=P.substring(G-mt,G)+P.substring(G,G+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=P.substring(0,G-mt),nt=P.substring(G+ct))}return Q.length*2>=W.length?[Y,J,et,nt,Q]:null}var T=S(b,O,Math.ceil(b.length/4)),_=S(b,O,Math.ceil(b.length/2)),k;if(!T&&!_)return null;_?T?k=T[4].length>_[4].length?T:_:k=_:k=T;var j,I,K,F;g.length>L.length?(j=k[0],I=k[1],K=k[2],F=k[3]):(K=k[0],F=k[1],j=k[2],I=k[3]);var V=k[4];return[j,I,K,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,k=0,j=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=j,k=I,j=0,I=0,S=g[T][1]):(g[T][0]==t?j+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,k)&&S.length<=Math.max(j,I)&&(g.splice(b[O-1],0,[r,S]),g[b[O-1]+1][0]=t,O--,O--,T=O>0?b[O-1]:-1,_=0,k=0,j=0,I=0,S=null,L=!0)),T++;for(L&&C(g),x(g),T=1;T<g.length;){if(g[T-1][0]==r&&g[T][0]==t){var K=g[T-1][1],F=g[T][1],V=u(K,F),W=u(F,K);V>=W?(V>=K.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=K.substring(0,K.length-V),g[T+1][1]=F.substring(V),T++):(W>=K.length/2||W>=F.length/2)&&(g.splice(T,0,[e,K.substring(0,W)]),g[T-1][0]=t,g[T-1][1]=F.substring(0,F.length-W),g[T+1][0]=r,g[T+1][1]=K.substring(W),T++),T++}T++}}var f=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,A=/\n\r?\n$/,w=/^\r?\n\r?\n/;function x(g){function L(W,P){if(!W||!P)return 6;var it=W.charAt(W.length-1),ot=P.charAt(0),G=it.match(f),Q=ot.match(f),Y=G&&it.match(m),J=Q&&ot.match(m),et=Y&&it.match(y),nt=J&&ot.match(y),ct=et&&W.match(A),mt=nt&&P.match(w);return ct||mt?5:et||nt?4:G&&!Y&&J?3:Y||J?2:G||Q?1:0}for(var b=1;b<g.length-1;){if(g[b-1][0]==e&&g[b+1][0]==e){var O=g[b-1][1],S=g[b][1],T=g[b+1][1],_=h(O,S);if(_){var k=S.substring(S.length-_);O=O.substring(0,O.length-_),S=k+S.substring(0,S.length-_),T=k+T}for(var j=O,I=S,K=T,F=L(O,S)+L(S,T);S.charAt(0)===T.charAt(0);){O+=S.charAt(0),S=S.substring(1)+T.charAt(0),T=T.substring(1);var V=L(O,S)+L(S,T);V>=F&&(F=V,j=O,I=S,K=T)}g[b-1][1]!=j&&(j?g[b-1][1]=j:(g.splice(b-1,1),b--),g[b][1]=I,K?g[b+1][1]=K:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",k;b<g.length;){if(b<g.length-1&&!g[b][1]){g.splice(b,1);continue}switch(g[b][0]){case t:S++,_+=g[b][1],b++;break;case r:O++,T+=g[b][1],b++;break;case e:var j=b-S-O-1;if(L){if(j>=0&&rt(g[j][1])){var I=g[j][1].slice(-1);if(g[j][1]=g[j][1].slice(0,-1),T=I+T,_=I+_,!g[j][1]){g.splice(j,1),b--;var K=j-1;g[K]&&g[K][0]===t&&(S++,_=g[K][1]+_,K--),g[K]&&g[K][0]===r&&(O++,T=g[K][1]+T,K--),j=K}}if(U(g[b][1])){var I=g[b][1].charAt(0);g[b][1]=g[b][1].slice(1),T+=I,_+=I}}if(b<g.length-1&&!g[b][1]){g.splice(b,1);break}if(T.length>0||_.length>0){T.length>0&&_.length>0&&(k=a(_,T),k!==0&&(j>=0?g[j][1]+=_.substring(0,k):(g.splice(0,0,[e,_.substring(0,k)]),b++),_=_.substring(k),T=T.substring(k)),k=h(_,T),k!==0&&(g[b][1]=_.substring(_.length-k)+g[b][1],_=_.substring(0,_.length-k),T=T.substring(0,T.length-k)));var F=S+O;T.length===0&&_.length===0?(g.splice(b-F,F),b=b-F):T.length===0?(g.splice(b-F,F,[t,_]),b=b-F+1):_.length===0?(g.splice(b-F,F,[r,T]),b=b-F+1):(g.splice(b-F,F,[r,T],[t,_]),b=b-F+2)}b!==0&&g[b-1][0]===e?(g[b-1][1]+=g[b][1],g.splice(b,1)):b++,S=0,O=0,T="",_="";break}}g[g.length-1][1]===""&&g.pop();var V=!1;for(b=1;b<g.length-1;)g[b-1][0]===e&&g[b+1][0]===e&&(g[b][1].substring(g[b][1].length-g[b-1][1].length)===g[b-1][1]?(g[b][1]=g[b-1][1]+g[b][1].substring(0,g[b][1].length-g[b-1][1].length),g[b+1][1]=g[b-1][1]+g[b+1][1],g.splice(b-1,1),V=!0):g[b][1].substring(0,g[b+1][1].length)==g[b+1][1]&&(g[b-1][1]+=g[b+1][1],g[b][1]=g[b][1].substring(g[b+1][1].length)+g[b+1][1],g.splice(b+1,1),V=!0)),b++;V&&C(g,L)}function M(g){return g>=55296&&g<=56319}function z(g){return g>=56320&&g<=57343}function U(g){return z(g.charCodeAt(0))}function rt(g){return M(g.charCodeAt(g.length-1))}function at(g){for(var L=[],b=0;b<g.length;b++)g[b][1].length>0&&L.push(g[b]);return L}function ft(g,L,b,O){return rt(g)||U(O)?null:at([[e,g],[r,L],[t,b],[e,O]])}function Rt(g,L,b){var O=typeof b=="number"?{index:b,length:0}:b.oldRange,S=typeof b=="number"?null:b.newRange,T=g.length,_=L.length;if(O.length===0&&(S===null||S.length===0)){var k=O.index,j=g.slice(0,k),I=g.slice(k),K=S?S.index:null;t:{var F=k+_-T;if(K!==null&&K!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var P=Math.min(k,F),it=j.slice(0,P),ot=V.slice(0,P);if(it!==ot)break t;var G=j.slice(P),Q=V.slice(P);return ft(it,G,Q,I)}t:{if(K!==null&&K!==k)break t;var Y=k,V=L.slice(0,Y),W=L.slice(Y);if(V!==j)break t;var J=Math.min(T-Y,_-Y),et=I.slice(I.length-J),nt=W.slice(W.length-J);if(et!==nt)break t;var G=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(j,G,Q,et)}}if(O.length>0&&S&&S.length===0)t:{var it=g.slice(0,O.index),et=g.slice(O.index+O.length),P=it.length,J=et.length;if(_<P+J)break t;var ot=L.slice(0,P),nt=L.slice(_-J);if(it!==ot||et!==nt)break t;var G=g.slice(P,T-J),Q=L.slice(P,_-J);return ft(it,G,Q,et)}return null}function xt(g,L,b,O){return n(g,L,b,O,!0)}return xt.INSERT=t,xt.DELETE=r,xt.EQUAL=e,Is=xt,Is}var qn={exports:{}};qn.exports;var il;function fo(){return il||(il=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",v="[object GeneratorFunction]",f="[object Map]",m="[object Number]",y="[object Object]",A="[object Promise]",w="[object RegExp]",x="[object Set]",C="[object String]",M="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",rt="[object DataView]",at="[object Float32Array]",ft="[object Float64Array]",Rt="[object Int8Array]",xt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,k=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[Rt]=I[xt]=I[g]=I[f]=I[m]=I[y]=I[w]=I[x]=I[C]=I[M]=I[L]=I[b]=I[O]=I[S]=!0,I[h]=I[p]=I[z]=!1;var K=typeof pe=="object"&&pe&&pe.Object===Object&&pe,F=typeof self=="object"&&self&&self.Object===Object&&self,V=K||F||Function("return this")(),W=t&&!t.nodeType&&t,P=W&&!0&&r&&!r.nodeType&&r,it=P&&P.exports===W;function ot(l,c){return l.set(c[0],c[1]),l}function G(l,c){return l.add(c),l}function Q(l,c){for(var d=-1,E=l?l.length:0;++d<E&&c(l[d],d,l)!==!1;);return l}function Y(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function J(l,c,d,E){for(var H=-1,$=l?l.length:0;++H<$;)d=c(d,l[H],H,l);return d}function et(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function nt(l,c){return l==null?void 0:l[c]}function ct(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function mt(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function fn(l,c){return function(d){return l(c(d))}}function Zn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var Pr=Array.prototype,Ur=Function.prototype,$e=Object.prototype,dn=V["__core-js_shared__"],Xn=(function(){var l=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ur.toString,Kt=$e.hasOwnProperty,Pe=$e.toString,Fr=RegExp("^"+Yn.call(Kt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Ue=V.Symbol,gn=V.Uint8Array,St=fn(Object.getPrototypeOf,Object),Qn=Object.create,Jn=$e.propertyIsEnumerable,Hr=Pr.splice,pn=Object.getOwnPropertySymbols,Fe=Ne?Ne.isBuffer:void 0,tr=fn(Object.keys,Object),He=Bt(V,"DataView"),we=Bt(V,"Map"),kt=Bt(V,"Promise"),ze=Bt(V,"Set"),mn=Bt(V,"WeakMap"),Te=Bt(Object,"create"),bn=Nt(He),xe=Nt(we),yn=Nt(kt),vn=Nt(ze),En=Nt(mn),he=Ue?Ue.prototype:void 0,er=he?he.valueOf:void 0;function ee(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function zr(){this.__data__=Te?Te(null):{}}function Kr(l){return this.has(l)&&delete this.__data__[l]}function Gr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Kt.call(c,l)?c[l]:void 0}function nr(l){var c=this.__data__;return Te?c[l]!==void 0:Kt.call(c,l)}function An(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ee.prototype.clear=zr,ee.prototype.delete=Kr,ee.prototype.get=Gr,ee.prototype.has=nr,ee.prototype.set=An;function dt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=[]}function Wr(l){var c=this.__data__,d=Ge(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():Hr.call(c,d,1),!0}function Zr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Xr(l){return Ge(this.__data__,l)>-1}function Yr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__={hash:new ee,map:new(we||dt),string:new ee}}function Jr(l){return Se(this,l).delete(l)}function ts(l){return Se(this,l).get(l)}function es(l){return Se(this,l).has(l)}function ns(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){this.__data__=new dt(l)}function rs(){this.__data__=new dt}function ss(l){return this.__data__.delete(l)}function is(l){return this.__data__.get(l)}function ls(l){return this.__data__.has(l)}function os(l,c){var d=this.__data__;if(d instanceof dt){var E=d.__data__;if(!we||E.length<e-1)return E.push([l,c]),this;d=this.__data__=new bt(E)}return d.set(l,c),this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l,c){var d=xn(l)||We(l)?et(l.length,String):[],E=d.length,H=!!E;for(var $ in l)Kt.call(l,$)&&!(H&&($=="length"||As($,E)))&&d.push($);return d}function rr(l,c,d){var E=l[c];(!(Kt.call(l,c)&&ar(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function Ge(l,c){for(var d=l.length;d--;)if(ar(l[d][0],c))return d;return-1}function Gt(l,c){return l&&Tn(c,Sn(c),l)}function Nn(l,c,d,E,H,$,X){var Z;if(E&&(Z=$?E(l,H,$,X):E(l)),Z!==void 0)return Z;if(!Wt(l))return l;var ut=xn(l);if(ut){if(Z=vs(l),!c)return ms(l,Z)}else{var tt=re(l),yt=tt==p||tt==v;if(cr(l))return Ve(l,c);if(tt==y||tt==i||yt&&!$){if(ct(l))return $?l:{};if(Z=Vt(yt?{}:l),!c)return bs(l,Gt(Z,l))}else{if(!I[tt])return $?l:{};Z=Es(l,tt,Nn,c)}}X||(X=new wt);var Tt=X.get(l);if(Tt)return Tt;if(X.set(l,Z),!ut)var ht=d?ys(l):Sn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),rr(Z,gt,Nn(vt,c,d,E,gt,l,X))}),Z}function as(l){return Wt(l)?Qn(l):{}}function cs(l,c,d){var E=c(l);return xn(l)?E:Y(E,d(l))}function us(l){return Pe.call(l)}function hs(l){if(!Wt(l)||ws(l))return!1;var c=Ln(l)||ct(l)?Fr:k;return c.test(Nt(l))}function fs(l){if(!lr(l))return tr(l);var c=[];for(var d in Object(l))Kt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ve(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function wn(l){var c=new l.constructor(l.byteLength);return new gn(c).set(new gn(l)),c}function Le(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function sr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function ir(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function ds(l,c,d){var E=c?d(Zn(l),!0):Zn(l);return J(E,G,new l.constructor)}function gs(l){return er?Object(er.call(l)):{}}function ps(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ms(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Tn(l,c,d,E){d||(d={});for(var H=-1,$=c.length;++H<$;){var X=c[H],Z=void 0;rr(d,X,Z===void 0?l[X]:Z)}return d}function bs(l,c){return Tn(l,ne(l),c)}function ys(l){return cs(l,Sn,ne)}function Se(l,c){var d=l.__data__;return Ns(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Bt(l,c){var d=nt(l,c);return hs(d)?d:void 0}var ne=pn?fn(pn,Object):xs,re=us;(He&&re(new He(new ArrayBuffer(1)))!=rt||we&&re(new we)!=f||kt&&re(kt.resolve())!=A||ze&&re(new ze)!=x||mn&&re(new mn)!=z)&&(re=function(l){var c=Pe.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case bn:return rt;case xe:return f;case yn:return A;case vn:return x;case En:return z}return c});function vs(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Kt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!lr(l)?as(St(l)):{}}function Es(l,c,d,E){var H=l.constructor;switch(c){case U:return wn(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case Rt:case xt:case g:case L:case b:case O:case S:return ps(l,E);case f:return sr(l,E,d);case m:case C:return new H(l);case w:return ir(l);case x:return ds(l,E,d);case M:return gs(l)}}function As(l,c){return c=c??s,!!c&&(typeof l=="number"||j.test(l))&&l>-1&&l%1==0&&l<c}function Ns(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function ws(l){return!!Xn&&Xn in l}function lr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||$e;return l===d}function Nt(l){if(l!=null){try{return Yn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l){return Nn(l,!0,!0)}function ar(l,c){return l===c||l!==l&&c!==c}function We(l){return Ts(l)&&Kt.call(l,"callee")&&(!Jn.call(l,"callee")||Pe.call(l)==i)}var xn=Array.isArray;function Ze(l){return l!=null&&ur(l.length)&&!Ln(l)}function Ts(l){return hr(l)&&Ze(l)}var cr=Fe||Ls;function Ln(l){var c=Wt(l)?Pe.call(l):"";return c==p||c==v}function ur(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=s}function Wt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function hr(l){return!!l&&typeof l=="object"}function Sn(l){return Ze(l)?Ke(l):fs(l)}function xs(){return[]}function Ls(){return!1}r.exports=or})(qn,qn.exports)),qn.exports}var Cn={exports:{}};Cn.exports;var ll;function go(){return ll||(ll=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",v="[object Date]",f="[object Error]",m="[object Function]",y="[object GeneratorFunction]",A="[object Map]",w="[object Number]",x="[object Null]",C="[object Object]",M="[object Promise]",z="[object Proxy]",U="[object RegExp]",rt="[object Set]",at="[object String]",ft="[object Symbol]",Rt="[object Undefined]",xt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",j="[object Uint8ClampedArray]",I="[object Uint16Array]",K="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,P={};P[b]=P[O]=P[S]=P[T]=P[_]=P[k]=P[j]=P[I]=P[K]=!0,P[a]=P[u]=P[g]=P[p]=P[L]=P[v]=P[f]=P[m]=P[A]=P[w]=P[C]=P[U]=P[rt]=P[at]=P[xt]=!1;var it=typeof pe=="object"&&pe&&pe.Object===Object&&pe,ot=typeof self=="object"&&self&&self.Object===Object&&self,G=it||ot||Function("return this")(),Q=t&&!t.nodeType&&t,Y=Q&&!0&&r&&!r.nodeType&&r,J=Y&&Y.exports===Q,et=J&&it.process,nt=(function(){try{return et&&et.binding&&et.binding("util")}catch{}})(),ct=nt&&nt.isTypedArray;function mt(l,c){for(var d=-1,E=l==null?0:l.length,H=0,$=[];++d<E;){var X=l[d];c(X,d,l)&&($[H++]=X)}return $}function fn(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Zn(l,c){for(var d=-1,E=l==null?0:l.length;++d<E;)if(c(l[d],d,l))return!0;return!1}function Pr(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Ur(l){return function(c){return l(c)}}function $e(l,c){return l.has(c)}function dn(l,c){return l==null?void 0:l[c]}function Xn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Yn(l,c){return function(d){return l(c(d))}}function Kt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var Pe=Array.prototype,Fr=Function.prototype,Ne=Object.prototype,Ue=G["__core-js_shared__"],gn=Fr.toString,St=Ne.hasOwnProperty,Qn=(function(){var l=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Jn=Ne.toString,Hr=RegExp("^"+gn.call(St).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pn=J?G.Buffer:void 0,Fe=G.Symbol,tr=G.Uint8Array,He=Ne.propertyIsEnumerable,we=Pe.splice,kt=Fe?Fe.toStringTag:void 0,ze=Object.getOwnPropertySymbols,mn=pn?pn.isBuffer:void 0,Te=Yn(Object.keys,Object),bn=ne(G,"DataView"),xe=ne(G,"Map"),yn=ne(G,"Promise"),vn=ne(G,"Set"),En=ne(G,"WeakMap"),he=ne(Object,"create"),er=Nt(bn),ee=Nt(xe),zr=Nt(yn),Kr=Nt(vn),Gr=Nt(En),nr=Fe?Fe.prototype:void 0,An=nr?nr.valueOf:void 0;function dt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=he?he(null):{},this.size=0}function Wr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Zr(l){var c=this.__data__;if(he){var d=c[l];return d===n?void 0:d}return St.call(c,l)?c[l]:void 0}function Xr(l){var c=this.__data__;return he?c[l]!==void 0:St.call(c,l)}function Yr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=he&&c===void 0?n:c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__=[],this.size=0}function Jr(l){var c=this.__data__,d=Ve(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():we.call(c,d,1),--this.size,!0}function ts(l){var c=this.__data__,d=Ve(c,l);return d<0?void 0:c[d][1]}function es(l){return Ve(this.__data__,l)>-1}function ns(l,c){var d=this.__data__,E=Ve(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function rs(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function ss(l){var c=Bt(this,l).delete(l);return this.size-=c?1:0,c}function is(l){return Bt(this,l).get(l)}function ls(l){return Bt(this,l).has(l)}function os(l,c){var d=Bt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new wt;++c<d;)this.add(l[c])}function rr(l){return this.__data__.set(l,n),this}function Ge(l){return this.__data__.has(l)}Ke.prototype.add=Ke.prototype.push=rr,Ke.prototype.has=Ge;function Gt(l){var c=this.__data__=new bt(l);this.size=c.size}function Nn(){this.__data__=new bt,this.size=0}function as(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function cs(l){return this.__data__.get(l)}function us(l){return this.__data__.has(l)}function hs(l,c){var d=this.__data__;if(d instanceof bt){var E=d.__data__;if(!xe||E.length<e-1)return E.push([l,c]),this.size=++d.size,this;d=this.__data__=new wt(E)}return d.set(l,c),this.size=d.size,this}Gt.prototype.clear=Nn,Gt.prototype.delete=as,Gt.prototype.get=cs,Gt.prototype.has=us,Gt.prototype.set=hs;function fs(l,c){var d=We(l),E=!d&&ar(l),H=!d&&!E&&Ze(l),$=!d&&!E&&!H&&hr(l),X=d||E||H||$,Z=X?Pr(l.length,String):[],ut=Z.length;for(var tt in l)St.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||$&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||Es(tt,ut)))&&Z.push(tt);return Z}function Ve(l,c){for(var d=l.length;d--;)if(or(l[d][0],c))return d;return-1}function wn(l,c,d){var E=c(l);return We(l)?E:fn(E,d(l))}function Le(l){return l==null?l===void 0?Rt:x:kt&&kt in Object(l)?re(l):lr(l)}function sr(l){return Wt(l)&&Le(l)==a}function ir(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:ds(l,c,d,E,ir,H)}function ds(l,c,d,E,H,$){var X=We(l),Z=We(c),ut=X?u:Vt(l),tt=Z?u:Vt(c);ut=ut==a?C:ut,tt=tt==a?C:tt;var yt=ut==C,Tt=tt==C,ht=ut==tt;if(ht&&Ze(l)){if(!Ze(c))return!1;X=!0,yt=!1}if(ht&&!yt)return $||($=new Gt),X||hr(l)?Tn(l,c,d,E,H,$):bs(l,c,ut,d,E,H,$);if(!(d&s)){var vt=yt&&St.call(l,"__wrapped__"),gt=Tt&&St.call(c,"__wrapped__");if(vt||gt){var fe=vt?l.value():l,se=gt?c.value():c;return $||($=new Gt),H(fe,se,d,E,$)}}return ht?($||($=new Gt),ys(l,c,d,E,H,$)):!1}function gs(l){if(!ur(l)||Ns(l))return!1;var c=cr(l)?Hr:V;return c.test(Nt(l))}function ps(l){return Wt(l)&&Ln(l.length)&&!!P[Le(l)]}function ms(l){if(!ws(l))return Te(l);var c=[];for(var d in Object(l))St.call(l,d)&&d!="constructor"&&c.push(d);return c}function Tn(l,c,d,E,H,$){var X=d&s,Z=l.length,ut=c.length;if(Z!=ut&&!(X&&ut>Z))return!1;var tt=$.get(l);if(tt&&$.get(c))return tt==c;var yt=-1,Tt=!0,ht=d&i?new Ke:void 0;for($.set(l,c),$.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var fe=X?E(gt,vt,yt,c,l,$):E(vt,gt,yt,l,c,$);if(fe!==void 0){if(fe)continue;Tt=!1;break}if(ht){if(!Zn(c,function(se,_e){if(!$e(ht,_e)&&(vt===se||H(vt,se,d,E,$)))return ht.push(_e)})){Tt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,$))){Tt=!1;break}}return $.delete(l),$.delete(c),Tt}function bs(l,c,d,E,H,$,X){switch(d){case L:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case g:return!(l.byteLength!=c.byteLength||!$(new tr(l),new tr(c)));case p:case v:case w:return or(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Xn;case rt:var ut=E&s;if(Z||(Z=Kt),l.size!=c.size&&!ut)return!1;var tt=X.get(l);if(tt)return tt==c;E|=i,X.set(l,c);var yt=Tn(Z(l),Z(c),E,H,$,X);return X.delete(l),yt;case ft:if(An)return An.call(l)==An.call(c)}return!1}function ys(l,c,d,E,H,$){var X=d&s,Z=Se(l),ut=Z.length,tt=Se(c),yt=tt.length;if(ut!=yt&&!X)return!1;for(var Tt=ut;Tt--;){var ht=Z[Tt];if(!(X?ht in c:St.call(c,ht)))return!1}var vt=$.get(l);if(vt&&$.get(c))return vt==c;var gt=!0;$.set(l,c),$.set(c,l);for(var fe=X;++Tt<ut;){ht=Z[Tt];var se=l[ht],_e=c[ht];if(E)var Oi=X?E(_e,se,ht,c,l,$):E(se,_e,ht,l,c,$);if(!(Oi===void 0?se===_e||H(se,_e,d,E,$):Oi)){gt=!1;break}fe||(fe=ht=="constructor")}if(gt&&!fe){var fr=l.constructor,dr=c.constructor;fr!=dr&&"constructor"in l&&"constructor"in c&&!(typeof fr=="function"&&fr instanceof fr&&typeof dr=="function"&&dr instanceof dr)&&(gt=!1)}return $.delete(l),$.delete(c),gt}function Se(l){return wn(l,Sn,vs)}function Bt(l,c){var d=l.__data__;return As(c)?d[typeof c=="string"?"string":"hash"]:d.map}function ne(l,c){var d=dn(l,c);return gs(d)?d:void 0}function re(l){var c=St.call(l,kt),d=l[kt];try{l[kt]=void 0;var E=!0}catch{}var H=Jn.call(l);return E&&(c?l[kt]=d:delete l[kt]),H}var vs=ze?function(l){return l==null?[]:(l=Object(l),mt(ze(l),function(c){return He.call(l,c)}))}:xs,Vt=Le;(bn&&Vt(new bn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||yn&&Vt(yn.resolve())!=M||vn&&Vt(new vn)!=rt||En&&Vt(new En)!=xt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case er:return L;case ee:return A;case zr:return M;case Kr:return rt;case Gr:return xt}return c});function Es(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function As(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Ns(l){return!!Qn&&Qn in l}function ws(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function lr(l){return Jn.call(l)}function Nt(l){if(l!=null){try{return gn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l,c){return l===c||l!==l&&c!==c}var ar=sr((function(){return arguments})())?sr:function(l){return Wt(l)&&St.call(l,"callee")&&!He.call(l,"callee")},We=Array.isArray;function xn(l){return l!=null&&Ln(l.length)&&!cr(l)}var Ze=mn||Ls;function Ts(l,c){return ir(l,c)}function cr(l){if(!ur(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Ln(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ur(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var hr=ct?Ur(ct):ps;function Sn(l){return xn(l)?fs(l):ms(l)}function xs(){return[]}function Ls(){return!1}r.exports=Ts})(Cn,Cn.exports)),Cn.exports}var mr={},ol;function _f(){if(ol)return mr;ol=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=fo(),t=go();var e;return(function(n){function s(u={},h={},p=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let v=r(h);p||(v=Object.keys(v).reduce((f,m)=>(v[m]!=null&&(f[m]=v[m]),f),{}));for(const f in u)u[f]!==void 0&&h[f]===void 0&&(v[f]=u[f]);return Object.keys(v).length>0?v:void 0}n.compose=s;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const p=Object.keys(u).concat(Object.keys(h)).reduce((v,f)=>(t(u[f],h[f])||(v[f]=h[f]===void 0?null:h[f]),v),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function o(u={},h={}){u=u||{};const p=Object.keys(h).reduce((v,f)=>(h[f]!==u[f]&&u[f]!==void 0&&(v[f]=h[f]),v),{});return Object.keys(u).reduce((v,f)=>(u[f]!==h[f]&&h[f]===void 0&&(v[f]=null),v),p)}n.invert=o;function a(u,h,p=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!p)return h;const v=Object.keys(h).reduce((f,m)=>(u[m]===void 0&&(f[m]=h[m]),f),{});return Object.keys(v).length>0?v:void 0}n.transform=a})(e||(e={})),mr.default=e,mr}var br={},al;function po(){if(al)return br;al=1,Object.defineProperty(br,"__esModule",{value:!0});var r;return(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(r||(r={})),br.default=r,br}var yr={},cl;function Of(){if(cl)return yr;cl=1,Object.defineProperty(yr,"__esModule",{value:!0});const r=po();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return yr.default=t,yr}var ul;function qf(){return ul||(ul=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Sf(),n=fo(),s=go(),i=_f();t.AttributeMap=i.default;const o=po();t.Op=o.default;const a=Of();t.OpIterator=a.default;const u="\0",h=(v,f)=>{if(typeof v!="object"||v===null)throw new Error(`cannot retain a ${typeof v}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(v)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,v[m],f[m]]};class p{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const y={};return typeof f=="string"&&f.length===0?this:(y.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const y={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(f){let m=this.ops.length,y=this.ops[m-1];if(f=n(f),typeof y=="object"){if(typeof f.delete=="number"&&typeof y.delete=="number")return this.ops[m-1]={delete:y.delete+f.delete},this;if(typeof y.delete=="number"&&f.insert!=null&&(m-=1,y=this.ops[m-1],typeof y!="object"))return this.ops.unshift(f),this;if(s(f.attributes,y.attributes)){if(typeof f.insert=="string"&&typeof y.insert=="string")return this.ops[m-1]={insert:y.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof y.retain=="number")return this.ops[m-1]={retain:y.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],y=[];return this.forEach(A=>{(f(A)?m:y).push(A)}),[m,y]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const y=[],A=new a.default(this.ops);let w=0;for(;w<m&&A.hasNext();){let x;w<f?x=A.next(f-w):(x=A.next(m-w),y.push(x)),w+=o.default.length(x)}return new p(y)}compose(f){const m=new a.default(this.ops),y=new a.default(f.ops),A=[],w=y.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let C=w.retain;for(;m.peekType()==="insert"&&m.peekLength()<=C;)C-=m.peekLength(),A.push(m.next());w.retain-C>0&&y.next(w.retain-C)}const x=new p(A);for(;m.hasNext()||y.hasNext();)if(y.peekType()==="insert")x.push(y.next());else if(m.peekType()==="delete")x.push(m.next());else{const C=Math.min(m.peekLength(),y.peekLength()),M=m.next(C),z=y.next(C);if(z.retain){const U={};if(typeof M.retain=="number")U.retain=typeof z.retain=="number"?C:z.retain;else if(typeof z.retain=="number")M.retain==null?U.insert=M.insert:U.retain=M.retain;else{const at=M.retain==null?"insert":"retain",[ft,Rt,xt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(Rt,xt,at==="retain")}}const rt=i.default.compose(M.attributes,z.attributes,typeof M.retain=="number");if(rt&&(U.attributes=rt),x.push(U),!y.hasNext()&&s(x.ops[x.ops.length-1],U)){const at=new p(m.rest());return x.concat(at).chop()}}else typeof z.delete=="number"&&(typeof M.retain=="number"||typeof M.retain=="object"&&M.retain!==null)&&x.push(z)}return x.chop()}concat(f){const m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new p;const y=[this,f].map(M=>M.map(z=>{if(z.insert!=null)return typeof z.insert=="string"?z.insert:u;const U=M===f?"on":"with";throw new Error("diff() called "+U+" non-document")}).join("")),A=new p,w=e(y[0],y[1],m,!0),x=new a.default(this.ops),C=new a.default(f.ops);return w.forEach(M=>{let z=M[1].length;for(;z>0;){let U=0;switch(M[0]){case e.INSERT:U=Math.min(C.peekLength(),z),A.push(C.next(U));break;case e.DELETE:U=Math.min(z,x.peekLength()),x.next(U),A.delete(U);break;case e.EQUAL:U=Math.min(x.peekLength(),C.peekLength(),z);const rt=x.next(U),at=C.next(U);s(rt.insert,at.insert)?A.retain(U,i.default.diff(rt.attributes,at.attributes)):A.push(at).delete(U);break}z-=U}}),A.chop()}eachLine(f,m=`
|
|
1
|
+
var Ho=Object.defineProperty;var zo=(r,t,e)=>t in r?Ho(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var q=(r,t,e)=>zo(r,typeof t!="symbol"?t+"":t,e);import{c as pe,g as Bl,R as Oe,r as qi,j as Ss}from"./vendor-react-CTbHBddL.js";var Ml=typeof global=="object"&&global&&global.Object===Object&&global,Ko=typeof self=="object"&&self&&self.Object===Object&&self,te=Ml||Ko||Function("return this")(),ve=te.Symbol,Dl=Object.prototype,Go=Dl.hasOwnProperty,Vo=Dl.toString,_n=ve?ve.toStringTag:void 0;function Wo(r){var t=Go.call(r,_n),e=r[_n];try{r[_n]=void 0;var n=!0}catch{}var s=Vo.call(r);return n&&(t?r[_n]=e:delete r[_n]),s}var Zo=Object.prototype,Xo=Zo.toString;function Yo(r){return Xo.call(r)}var Qo="[object Null]",Jo="[object Undefined]",Ci=ve?ve.toStringTag:void 0;function hn(r){return r==null?r===void 0?Jo:Qo:Ci&&Ci in Object(r)?Wo(r):Yo(r)}function le(r){return r!=null&&typeof r=="object"}var qe=Array.isArray;function Ee(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function jl(r){return r}var ta="[object AsyncFunction]",ea="[object Function]",na="[object GeneratorFunction]",ra="[object Proxy]";function hi(r){if(!Ee(r))return!1;var t=hn(r);return t==ea||t==na||t==ta||t==ra}var _s=te["__core-js_shared__"],Ii=(function(){var r=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function sa(r){return!!Ii&&Ii in r}var ia=Function.prototype,la=ia.toString;function Re(r){if(r!=null){try{return la.call(r)}catch{}try{return r+""}catch{}}return""}var oa=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,ca=Function.prototype,ua=Object.prototype,ha=ca.toString,fa=ua.hasOwnProperty,da=RegExp("^"+ha.call(fa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ga(r){if(!Ee(r)||sa(r))return!1;var t=hi(r)?da:aa;return t.test(Re(r))}function pa(r,t){return r==null?void 0:r[t]}function ke(r,t){var e=pa(r,t);return ga(e)?e:void 0}var Fs=ke(te,"WeakMap"),Ri=Object.create,ma=(function(){function r(){}return function(t){if(!Ee(t))return{};if(Ri)return Ri(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function ba(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}function ya(r,t){var e=-1,n=r.length;for(t||(t=Array(n));++e<n;)t[e]=r[e];return t}var va=800,Ea=16,Aa=Date.now;function Na(r){var t=0,e=0;return function(){var n=Aa(),s=Ea-(n-e);if(e=n,s>0){if(++t>=va)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}function wa(r){return function(){return r}}var Sr=(function(){try{var r=ke(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Ta=Sr?function(r,t){return Sr(r,"toString",{configurable:!0,enumerable:!1,value:wa(t),writable:!0})}:jl,xa=Na(Ta);function La(r,t){for(var e=-1,n=r==null?0:r.length;++e<n&&t(r[e],e,r)!==!1;);return r}var Sa=9007199254740991,_a=/^(?:0|[1-9]\d*)$/;function $l(r,t){var e=typeof r;return t=t??Sa,!!t&&(e=="number"||e!="symbol"&&_a.test(r))&&r>-1&&r%1==0&&r<t}function fi(r,t,e){t=="__proto__"&&Sr?Sr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}function zn(r,t){return r===t||r!==r&&t!==t}var Oa=Object.prototype,qa=Oa.hasOwnProperty;function Pl(r,t,e){var n=r[t];(!(qa.call(r,t)&&zn(n,e))||e===void 0&&!(t in r))&&fi(r,t,e)}function Ca(r,t,e,n){var s=!e;e||(e={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=r[a]),s?fi(e,a,u):Pl(e,a,u)}return e}var ki=Math.max;function Ia(r,t,e){return t=ki(t===void 0?r.length-1:t,0),function(){for(var n=arguments,s=-1,i=ki(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=e(o),ba(r,this,a)}}function Ra(r,t){return xa(Ia(r,t,jl),r+"")}var ka=9007199254740991;function Ul(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ka}function Cr(r){return r!=null&&Ul(r.length)&&!hi(r)}function Ba(r,t,e){if(!Ee(e))return!1;var n=typeof t;return(n=="number"?Cr(e)&&$l(t,e.length):n=="string"&&t in e)?zn(e[t],r):!1}function Ma(r){return Ra(function(t,e){var n=-1,s=e.length,i=s>1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Ba(e[0],e[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=e[n];a&&r(t,a,n,i)}return t})}var Da=Object.prototype;function di(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Da;return r===e}function ja(r,t){for(var e=-1,n=Array(r);++e<r;)n[e]=t(e);return n}var $a="[object Arguments]";function Bi(r){return le(r)&&hn(r)==$a}var Fl=Object.prototype,Pa=Fl.hasOwnProperty,Ua=Fl.propertyIsEnumerable,Hs=Bi((function(){return arguments})())?Bi:function(r){return le(r)&&Pa.call(r,"callee")&&!Ua.call(r,"callee")};function Fa(){return!1}var Hl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mi=Hl&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Mi&&Mi.exports===Hl,Di=Ha?te.Buffer:void 0,za=Di?Di.isBuffer:void 0,Dn=za||Fa,Ka="[object Arguments]",Ga="[object Array]",Va="[object Boolean]",Wa="[object Date]",Za="[object Error]",Xa="[object Function]",Ya="[object Map]",Qa="[object Number]",Ja="[object Object]",tc="[object RegExp]",ec="[object Set]",nc="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",ic="[object DataView]",lc="[object Float32Array]",oc="[object Float64Array]",ac="[object Int8Array]",cc="[object Int16Array]",uc="[object Int32Array]",hc="[object Uint8Array]",fc="[object Uint8ClampedArray]",dc="[object Uint16Array]",gc="[object Uint32Array]",lt={};lt[lc]=lt[oc]=lt[ac]=lt[cc]=lt[uc]=lt[hc]=lt[fc]=lt[dc]=lt[gc]=!0;lt[Ka]=lt[Ga]=lt[sc]=lt[Va]=lt[ic]=lt[Wa]=lt[Za]=lt[Xa]=lt[Ya]=lt[Qa]=lt[Ja]=lt[tc]=lt[ec]=lt[nc]=lt[rc]=!1;function pc(r){return le(r)&&Ul(r.length)&&!!lt[hn(r)]}function gi(r){return function(t){return r(t)}}var zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=zl&&typeof module=="object"&&module&&!module.nodeType&&module,mc=Rn&&Rn.exports===zl,Os=mc&&Ml.process,ln=(function(){try{var r=Rn&&Rn.require&&Rn.require("util").types;return r||Os&&Os.binding&&Os.binding("util")}catch{}})(),ji=ln&&ln.isTypedArray,pi=ji?gi(ji):pc,bc=Object.prototype,yc=bc.hasOwnProperty;function Kl(r,t){var e=qe(r),n=!e&&Hs(r),s=!e&&!n&&Dn(r),i=!e&&!n&&!s&&pi(r),o=e||n||s||i,a=o?ja(r.length,String):[],u=a.length;for(var h in r)(t||yc.call(r,h))&&!(o&&(h=="length"||s&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||$l(h,u)))&&a.push(h);return a}function Gl(r,t){return function(e){return r(t(e))}}var vc=Gl(Object.keys,Object),Ec=Object.prototype,Ac=Ec.hasOwnProperty;function Nc(r){if(!di(r))return vc(r);var t=[];for(var e in Object(r))Ac.call(r,e)&&e!="constructor"&&t.push(e);return t}function wc(r){return Cr(r)?Kl(r):Nc(r)}function Tc(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var xc=Object.prototype,Lc=xc.hasOwnProperty;function Sc(r){if(!Ee(r))return Tc(r);var t=di(r),e=[];for(var n in r)n=="constructor"&&(t||!Lc.call(r,n))||e.push(n);return e}function Vl(r){return Cr(r)?Kl(r,!0):Sc(r)}var jn=ke(Object,"create");function _c(){this.__data__=jn?jn(null):{},this.size=0}function Oc(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var qc="__lodash_hash_undefined__",Cc=Object.prototype,Ic=Cc.hasOwnProperty;function Rc(r){var t=this.__data__;if(jn){var e=t[r];return e===qc?void 0:e}return Ic.call(t,r)?t[r]:void 0}var kc=Object.prototype,Bc=kc.hasOwnProperty;function Mc(r){var t=this.__data__;return jn?t[r]!==void 0:Bc.call(t,r)}var Dc="__lodash_hash_undefined__";function jc(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=jn&&t===void 0?Dc:t,this}function Ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Ce.prototype.clear=_c;Ce.prototype.delete=Oc;Ce.prototype.get=Rc;Ce.prototype.has=Mc;Ce.prototype.set=jc;function $c(){this.__data__=[],this.size=0}function Ir(r,t){for(var e=r.length;e--;)if(zn(r[e][0],t))return e;return-1}var Pc=Array.prototype,Uc=Pc.splice;function Fc(r){var t=this.__data__,e=Ir(t,r);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():Uc.call(t,e,1),--this.size,!0}function Hc(r){var t=this.__data__,e=Ir(t,r);return e<0?void 0:t[e][1]}function zc(r){return Ir(this.__data__,r)>-1}function Kc(r,t){var e=this.__data__,n=Ir(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this}function ce(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}ce.prototype.clear=$c;ce.prototype.delete=Fc;ce.prototype.get=Hc;ce.prototype.has=zc;ce.prototype.set=Kc;var $n=ke(te,"Map");function Gc(){this.size=0,this.__data__={hash:new Ce,map:new($n||ce),string:new Ce}}function Vc(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}function Rr(r,t){var e=r.__data__;return Vc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Wc(r){var t=Rr(this,r).delete(r);return this.size-=t?1:0,t}function Zc(r){return Rr(this,r).get(r)}function Xc(r){return Rr(this,r).has(r)}function Yc(r,t){var e=Rr(this,r),n=e.size;return e.set(r,t),this.size+=e.size==n?0:1,this}function Be(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var n=r[t];this.set(n[0],n[1])}}Be.prototype.clear=Gc;Be.prototype.delete=Wc;Be.prototype.get=Zc;Be.prototype.has=Xc;Be.prototype.set=Yc;function Qc(r,t){for(var e=-1,n=t.length,s=r.length;++e<n;)r[s+e]=t[e];return r}var Wl=Gl(Object.getPrototypeOf,Object),Jc="[object Object]",tu=Function.prototype,eu=Object.prototype,Zl=tu.toString,nu=eu.hasOwnProperty,ru=Zl.call(Object);function su(r){if(!le(r)||hn(r)!=Jc)return!1;var t=Wl(r);if(t===null)return!0;var e=nu.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Zl.call(e)==ru}function iu(){this.__data__=new ce,this.size=0}function lu(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}function ou(r){return this.__data__.get(r)}function au(r){return this.__data__.has(r)}var cu=200;function uu(r,t){var e=this.__data__;if(e instanceof ce){var n=e.__data__;if(!$n||n.length<cu-1)return n.push([r,t]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(r,t),this.size=e.size,this}function Xt(r){var t=this.__data__=new ce(r);this.size=t.size}Xt.prototype.clear=iu;Xt.prototype.delete=lu;Xt.prototype.get=ou;Xt.prototype.has=au;Xt.prototype.set=uu;var Xl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$i=Xl&&typeof module=="object"&&module&&!module.nodeType&&module,hu=$i&&$i.exports===Xl,Pi=hu?te.Buffer:void 0,Ui=Pi?Pi.allocUnsafe:void 0;function Yl(r,t){if(t)return r.slice();var e=r.length,n=Ui?Ui(e):new r.constructor(e);return r.copy(n),n}function fu(r,t){for(var e=-1,n=r==null?0:r.length,s=0,i=[];++e<n;){var o=r[e];t(o,e,r)&&(i[s++]=o)}return i}function du(){return[]}var gu=Object.prototype,pu=gu.propertyIsEnumerable,Fi=Object.getOwnPropertySymbols,mu=Fi?function(r){return r==null?[]:(r=Object(r),fu(Fi(r),function(t){return pu.call(r,t)}))}:du;function bu(r,t,e){var n=t(r);return qe(r)?n:Qc(n,e(r))}function zs(r){return bu(r,wc,mu)}var Ks=ke(te,"DataView"),Gs=ke(te,"Promise"),Vs=ke(te,"Set"),Hi="[object Map]",yu="[object Object]",zi="[object Promise]",Ki="[object Set]",Gi="[object WeakMap]",Vi="[object DataView]",vu=Re(Ks),Eu=Re($n),Au=Re(Gs),Nu=Re(Vs),wu=Re(Fs),jt=hn;(Ks&&jt(new Ks(new ArrayBuffer(1)))!=Vi||$n&&jt(new $n)!=Hi||Gs&&jt(Gs.resolve())!=zi||Vs&&jt(new Vs)!=Ki||Fs&&jt(new Fs)!=Gi)&&(jt=function(r){var t=hn(r),e=t==yu?r.constructor:void 0,n=e?Re(e):"";if(n)switch(n){case vu:return Vi;case Eu:return Hi;case Au:return zi;case Nu:return Ki;case wu:return Gi}return t});var Tu=Object.prototype,xu=Tu.hasOwnProperty;function Lu(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&xu.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var _r=te.Uint8Array;function mi(r){var t=new r.constructor(r.byteLength);return new _r(t).set(new _r(r)),t}function Su(r,t){var e=mi(r.buffer);return new r.constructor(e,r.byteOffset,r.byteLength)}var _u=/\w*$/;function Ou(r){var t=new r.constructor(r.source,_u.exec(r));return t.lastIndex=r.lastIndex,t}var Wi=ve?ve.prototype:void 0,Zi=Wi?Wi.valueOf:void 0;function qu(r){return Zi?Object(Zi.call(r)):{}}function Ql(r,t){var e=t?mi(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var Cu="[object Boolean]",Iu="[object Date]",Ru="[object Map]",ku="[object Number]",Bu="[object RegExp]",Mu="[object Set]",Du="[object String]",ju="[object Symbol]",$u="[object ArrayBuffer]",Pu="[object DataView]",Uu="[object Float32Array]",Fu="[object Float64Array]",Hu="[object Int8Array]",zu="[object Int16Array]",Ku="[object Int32Array]",Gu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Zu="[object Uint32Array]";function Xu(r,t,e){var n=r.constructor;switch(t){case $u:return mi(r);case Cu:case Iu:return new n(+r);case Pu:return Su(r);case Uu:case Fu:case Hu:case zu:case Ku:case Gu:case Vu:case Wu:case Zu:return Ql(r,e);case Ru:return new n;case ku:case Du:return new n(r);case Bu:return Ou(r);case Mu:return new n;case ju:return qu(r)}}function Jl(r){return typeof r.constructor=="function"&&!di(r)?ma(Wl(r)):{}}var Yu="[object Map]";function Qu(r){return le(r)&&jt(r)==Yu}var Xi=ln&&ln.isMap,Ju=Xi?gi(Xi):Qu,th="[object Set]";function eh(r){return le(r)&&jt(r)==th}var Yi=ln&&ln.isSet,nh=Yi?gi(Yi):eh,rh=1,to="[object Arguments]",sh="[object Array]",ih="[object Boolean]",lh="[object Date]",oh="[object Error]",eo="[object Function]",ah="[object GeneratorFunction]",ch="[object Map]",uh="[object Number]",no="[object Object]",hh="[object RegExp]",fh="[object Set]",dh="[object String]",gh="[object Symbol]",ph="[object WeakMap]",mh="[object ArrayBuffer]",bh="[object DataView]",yh="[object Float32Array]",vh="[object Float64Array]",Eh="[object Int8Array]",Ah="[object Int16Array]",Nh="[object Int32Array]",wh="[object Uint8Array]",Th="[object Uint8ClampedArray]",xh="[object Uint16Array]",Lh="[object Uint32Array]",st={};st[to]=st[sh]=st[mh]=st[bh]=st[ih]=st[lh]=st[yh]=st[vh]=st[Eh]=st[Ah]=st[Nh]=st[ch]=st[uh]=st[no]=st[hh]=st[fh]=st[dh]=st[gh]=st[wh]=st[Th]=st[xh]=st[Lh]=!0;st[oh]=st[eo]=st[ph]=!1;function Tr(r,t,e,n,s,i){var o,a=t&rh;if(o!==void 0)return o;if(!Ee(r))return r;var u=qe(r);if(u)o=Lu(r);else{var h=jt(r),p=h==eo||h==ah;if(Dn(r))return Yl(r,a);if(h==no||h==to||p&&!s)o=p?{}:Jl(r);else{if(!st[h])return s?r:{};o=Xu(r,h,a)}}i||(i=new Xt);var v=i.get(r);if(v)return v;i.set(r,o),nh(r)?r.forEach(function(y){o.add(Tr(y,t,e,y,r,i))}):Ju(r)&&r.forEach(function(y,A){o.set(A,Tr(y,t,e,A,r,i))});var f=zs,m=u?void 0:f(r);return La(m||r,function(y,A){m&&(A=y,y=r[A]),Pl(o,A,Tr(y,t,e,A,r,i))}),o}var Sh=1,_h=4;function nn(r){return Tr(r,Sh|_h)}var Oh="__lodash_hash_undefined__";function qh(r){return this.__data__.set(r,Oh),this}function Ch(r){return this.__data__.has(r)}function Or(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Be;++t<e;)this.add(r[t])}Or.prototype.add=Or.prototype.push=qh;Or.prototype.has=Ch;function Ih(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function Rh(r,t){return r.has(t)}var kh=1,Bh=2;function ro(r,t,e,n,s,i){var o=e&kh,a=r.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var h=i.get(r),p=i.get(t);if(h&&p)return h==t&&p==r;var v=-1,f=!0,m=e&Bh?new Or:void 0;for(i.set(r,t),i.set(t,r);++v<a;){var y=r[v],A=t[v];if(n)var w=o?n(A,y,v,t,r,i):n(y,A,v,r,t,i);if(w!==void 0){if(w)continue;f=!1;break}if(m){if(!Ih(t,function(x,C){if(!Rh(m,C)&&(y===x||s(y,x,e,n,i)))return m.push(C)})){f=!1;break}}else if(!(y===A||s(y,A,e,n,i))){f=!1;break}}return i.delete(r),i.delete(t),f}function Mh(r){var t=-1,e=Array(r.size);return r.forEach(function(n,s){e[++t]=[s,n]}),e}function Dh(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var jh=1,$h=2,Ph="[object Boolean]",Uh="[object Date]",Fh="[object Error]",Hh="[object Map]",zh="[object Number]",Kh="[object RegExp]",Gh="[object Set]",Vh="[object String]",Wh="[object Symbol]",Zh="[object ArrayBuffer]",Xh="[object DataView]",Qi=ve?ve.prototype:void 0,qs=Qi?Qi.valueOf:void 0;function Yh(r,t,e,n,s,i,o){switch(e){case Xh:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zh:return!(r.byteLength!=t.byteLength||!i(new _r(r),new _r(t)));case Ph:case Uh:case zh:return zn(+r,+t);case Fh:return r.name==t.name&&r.message==t.message;case Kh:case Vh:return r==t+"";case Hh:var a=Mh;case Gh:var u=n&jh;if(a||(a=Dh),r.size!=t.size&&!u)return!1;var h=o.get(r);if(h)return h==t;n|=$h,o.set(r,t);var p=ro(a(r),a(t),n,s,i,o);return o.delete(r),p;case Wh:if(qs)return qs.call(r)==qs.call(t)}return!1}var Qh=1,Jh=Object.prototype,tf=Jh.hasOwnProperty;function ef(r,t,e,n,s,i){var o=e&Qh,a=zs(r),u=a.length,h=zs(t),p=h.length;if(u!=p&&!o)return!1;for(var v=u;v--;){var f=a[v];if(!(o?f in t:tf.call(t,f)))return!1}var m=i.get(r),y=i.get(t);if(m&&y)return m==t&&y==r;var A=!0;i.set(r,t),i.set(t,r);for(var w=o;++v<u;){f=a[v];var x=r[f],C=t[f];if(n)var M=o?n(C,x,f,t,r,i):n(x,C,f,r,t,i);if(!(M===void 0?x===C||s(x,C,e,n,i):M)){A=!1;break}w||(w=f=="constructor")}if(A&&!w){var z=r.constructor,U=t.constructor;z!=U&&"constructor"in r&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof U=="function"&&U instanceof U)&&(A=!1)}return i.delete(r),i.delete(t),A}var nf=1,Ji="[object Arguments]",tl="[object Array]",gr="[object Object]",rf=Object.prototype,el=rf.hasOwnProperty;function sf(r,t,e,n,s,i){var o=qe(r),a=qe(t),u=o?tl:jt(r),h=a?tl:jt(t);u=u==Ji?gr:u,h=h==Ji?gr:h;var p=u==gr,v=h==gr,f=u==h;if(f&&Dn(r)){if(!Dn(t))return!1;o=!0,p=!1}if(f&&!p)return i||(i=new Xt),o||pi(r)?ro(r,t,e,n,s,i):Yh(r,t,u,e,n,s,i);if(!(e&nf)){var m=p&&el.call(r,"__wrapped__"),y=v&&el.call(t,"__wrapped__");if(m||y){var A=m?r.value():r,w=y?t.value():t;return i||(i=new Xt),s(A,w,e,n,i)}}return f?(i||(i=new Xt),ef(r,t,e,n,s,i)):!1}function so(r,t,e,n,s){return r===t?!0:r==null||t==null||!le(r)&&!le(t)?r!==r&&t!==t:sf(r,t,e,n,so,s)}function lf(r){return function(t,e,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(e(i[u],u,i)===!1)break}return t}}var of=lf();function Ws(r,t,e){(e!==void 0&&!zn(r[t],e)||e===void 0&&!(t in r))&&fi(r,t,e)}function af(r){return le(r)&&Cr(r)}function Zs(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function cf(r){return Ca(r,Vl(r))}function uf(r,t,e,n,s,i,o){var a=Zs(r,e),u=Zs(t,e),h=o.get(u);if(h){Ws(r,e,h);return}var p=i?i(a,u,e+"",r,t,o):void 0,v=p===void 0;if(v){var f=qe(u),m=!f&&Dn(u),y=!f&&!m&&pi(u);p=u,f||m||y?qe(a)?p=a:af(a)?p=ya(a):m?(v=!1,p=Yl(u,!0)):y?(v=!1,p=Ql(u,!0)):p=[]:su(u)||Hs(u)?(p=a,Hs(a)?p=cf(a):(!Ee(a)||hi(a))&&(p=Jl(u))):v=!1}v&&(o.set(u,p),s(p,u,n,i,o),o.delete(u)),Ws(r,e,p)}function io(r,t,e,n,s){r!==t&&of(t,function(i,o){if(s||(s=new Xt),Ee(i))uf(r,t,o,e,io,n,s);else{var a=n?n(Zs(r,o),i,o+"",r,t,s):void 0;a===void 0&&(a=i),Ws(r,o,a)}},Vl)}function ge(r,t){return so(r,t)}var ye=Ma(function(r,t,e){io(r,t,e)}),D=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(D||{});class Qt{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const s=D.TYPE&D.ATTRIBUTE;this.scope=n.scope!=null?n.scope&D.LEVEL|s:D.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class rn extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const lo=class Xs{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(t,e,n){const s=this.query(e);if(s==null)throw new rn(`Unable to create ${e} blot`);const i=s,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(n),a=new i(t,o,n);return Xs.blots.set(a.domNode,a),a}find(t,e=!1){return Xs.find(t,e)}query(t,e=D.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&D.LEVEL&D.BLOCK?n=this.types.block:t&D.LEVEL&D.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&e&D.LEVEL&n.scope&&e&D.TYPE&n.scope?n:null}register(...t){return t.map(e=>{const n="blotName"in e,s="attrName"in e;if(!n&&!s)throw new rn("Invalid definition");if(n&&e.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?e.blotName:s?e.attrName:void 0;return this.types[i]=e,s?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):n&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};lo.blots=new WeakMap;let on=lo;function nl(r,t){return(r.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class hf extends Qt{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){nl(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(nl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ft=hf;function Cs(r){const t=r.split("-"),e=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+e}class ff extends Qt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Cs(this.keyName)]=e,!0):!1}remove(t){t.style[Cs(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Cs(this.keyName)];return this.canAdd(t,e)?e:""}}const Ae=ff;class df{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=on.find(this.domNode);if(t==null)return;const e=Qt.keys(this.domNode),n=Ft.keys(this.domNode),s=Ae.keys(this.domNode);e.concat(n).concat(s).forEach(i=>{const o=t.scroll.query(i,D.ATTRIBUTE);o instanceof Qt&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const kr=df,oo=class{constructor(t,e){this.scroll=t,this.domNode=e,on.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new rn("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?e=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?e=document.createElement(n):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),on.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,s){const i=this.isolate(t,e);if(this.scroll.query(n,D.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,D.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(t,e,n){const s=n==null?this.scroll.create("text",e):this.scroll.create(e,n),i=this.split(t);this.parent.insertBefore(s,i||void 0)}isolate(t,e){const n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${t}`);return n.appendChild(this),n}};oo.blotName="abstract";let ao=oo;const co=class extends ao{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};co.scope=D.INLINE_BLOT;let gf=co;const Et=gf;class pf{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),s=0;for(;n;){if(n===t)return s;s+=1,n=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;n!=null;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(t<i||e&&t===i&&(s.next==null||s.next.length()!==0))return[s,t];t-=i,s=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[s,i]=this.find(t);let o=t-i;const a=this.iterator(s);let u=a();for(;u&&o<t+e;){const h=u.length();t>o?n(u,t-o,Math.min(e,o+h-t)):n(u,0,Math.min(h,t+e-o)),o+=h,u=a()}}map(t){return this.reduce((e,n)=>(e.push(t(n)),e),[])}reduce(t,e){const n=this.iterator();let s=n();for(;s;)e=t(e,s),s=n();return e}}function rl(r,t){const e=t.find(r);if(e)return e;try{return t.create(r)}catch{const n=t.create(D.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const uo=class de extends ao{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,de.uiClass&&this.uiNode.classList.add(de.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new pf,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=rl(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof rn)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(n,s,i)=>{n.deleteAt(s,i)})}descendant(t,e=0){const[n,s]=this.children.find(e);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,s]:n instanceof de?n.descendant(t,s):[null,-1]}descendants(t,e=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(e,n,(o,a,u)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&s.push(o),o instanceof de&&(s=s.concat(o.descendants(t,a,i))),i-=u}),s}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===D.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof de?e.unwrap():e.remove())})}formatAt(t,e,n,s){this.children.forEachAt(t,e,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(t,e,n){const[s,i]=this.children.find(t);if(s)s.insertAt(i,e,n);else{const o=n==null?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(n=>{t.insertBefore(n,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[n,s]=this.children.find(t,e),i=[[this,t]];return n instanceof de?i.concat(n.path(s,e)):(n!=null&&i.push([n,s]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return n instanceof de&&this.moveChildren(n),super.replaceWith(n)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(s,i,o)=>{const a=s.split(i,e);a!=null&&n.appendChild(a)}),n}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],s=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=rl(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};uo.uiClass="";let mf=uo;const Pt=mf;function bf(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const e in r)if(r[e]!==t[e])return!1;return!0}const Xe=class Ye extends Pt{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ye.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(n=>{n instanceof Ye||(n=n.wrap(Ye.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(t,D.INLINE);if(n==null)return;n instanceof Qt?this.attributes.attribute(n,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.formats()[n]!=null||this.scroll.query(n,D.ATTRIBUTE)?this.isolate(t,e).format(n,s):super.formatAt(t,e,n,s)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const n=this.next;n instanceof Ye&&n.prev===this&&bf(e,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,e){const n=super.wrap(t,e);return n instanceof Ye&&this.attributes.move(n),n}};Xe.allowedChildren=[Xe,Et],Xe.blotName="inline",Xe.scope=D.INLINE_BLOT,Xe.tagName="SPAN";let yf=Xe;const bi=yf,Qe=class Ys extends Pt{static create(t){return super.create(t)}static formats(t,e){const n=e.query(Ys.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new kr(this.domNode)}format(t,e){const n=this.scroll.query(t,D.BLOCK);n!=null&&(n instanceof Qt?this.attributes.attribute(n,e):t===this.statics.blotName&&!e?this.replaceWith(Ys.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,s){this.scroll.query(n,D.BLOCK)!=null?this.format(n,s):super.formatAt(t,e,n,s)}insertAt(t,e,n){if(n==null||this.scroll.query(e,D.INLINE)!=null)super.insertAt(t,e,n);else{const s=this.split(t);if(s!=null){const i=this.scroll.create(e,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Qe.blotName="block",Qe.scope=D.BLOCK_BLOT,Qe.tagName="P",Qe.allowedChildren=[bi,Qe,Et];let vf=Qe;const Pn=vf,Qs=class extends Pt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,s){super.formatAt(t,e,n,s),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Qs.blotName="container",Qs.scope=D.BLOCK_BLOT;let Ef=Qs;const Br=Ef;class Af extends Et{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,s){t===0&&e===this.length()?this.format(n,s):super.formatAt(t,e,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Lt=Af,Nf={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},wf=100,Je=class extends Pt{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Nf),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=D.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,e)}formatAt(t,e,n,s){this.update(),super.formatAt(t,e,n,s)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)t.push(s.pop());const i=(u,h=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(n.has(u.domNode)||n.set(u.domNode,[]),h&&i(u.parent))},o=u=>{n.has(u.domNode)&&(u instanceof Pt&&u.children.forEach(o),n.delete(u.domNode),u.optimize(e))};let a=t;for(let u=0;a.length>0;u+=1){if(u>=wf)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(h=>{const p=this.find(h.target,!0);p!=null&&(p.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(v=>{const f=this.find(v,!1);i(f,!1),f instanceof Pt&&f.children.forEach(m=>{i(m,!1)})})):h.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)t.push(s.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],e)}),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};Je.blotName="scroll",Je.defaultChild=Pn,Je.allowedChildren=[Pn,Br],Je.scope=D.BLOCK_BLOT,Je.tagName="DIV";let Tf=Je;const yi=Tf,Js=class ho extends Et{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){n==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof ho&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Js.blotName="text",Js.scope=D.INLINE_BLOT;let xf=Js;const qr=xf,Lf=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Qt,AttributorStore:kr,BlockBlot:Pn,ClassAttributor:Ft,ContainerBlot:Br,EmbedBlot:Lt,InlineBlot:bi,LeafBlot:Et,ParentBlot:Pt,Registry:on,Scope:D,ScrollBlot:yi,StyleAttributor:Ae,TextBlot:qr},Symbol.toStringTag,{value:"Module"}));var pr={exports:{}},Is,sl;function Sf(){if(sl)return Is;sl=1;var r=-1,t=1,e=0;function n(g,L,b,O,S){if(g===L)return g?[[e,g]]:[];if(b!=null){var T=Rt(g,L,b);if(T)return T}var _=a(g,L),k=g.substring(0,_);g=g.substring(_),L=L.substring(_),_=h(g,L);var j=g.substring(g.length-_);g=g.substring(0,g.length-_),L=L.substring(0,L.length-_);var I=s(g,L);return k&&I.unshift([e,k]),j&&I.push([e,j]),C(I,S),O&&v(I),I}function s(g,L){var b;if(!g)return[[t,L]];if(!L)return[[r,g]];var O=g.length>L.length?g:L,S=g.length>L.length?L:g,T=O.indexOf(S);if(T!==-1)return b=[[t,O.substring(0,T)],[e,S],[t,O.substring(T+S.length)]],g.length>L.length&&(b[0][0]=b[2][0]=r),b;if(S.length===1)return[[r,g],[t,L]];var _=p(g,L);if(_){var k=_[0],j=_[1],I=_[2],K=_[3],F=_[4],V=n(k,I),W=n(j,K);return V.concat([[e,F]],W)}return i(g,L)}function i(g,L){for(var b=g.length,O=L.length,S=Math.ceil((b+O)/2),T=S,_=2*S,k=new Array(_),j=new Array(_),I=0;I<_;I++)k[I]=-1,j[I]=-1;k[T+1]=0,j[T+1]=0;for(var K=b-O,F=K%2!==0,V=0,W=0,P=0,it=0,ot=0;ot<S;ot++){for(var G=-ot+V;G<=ot-W;G+=2){var Q=T+G,Y;G===-ot||G!==ot&&k[Q-1]<k[Q+1]?Y=k[Q+1]:Y=k[Q-1]+1;for(var J=Y-G;Y<b&&J<O&&g.charAt(Y)===L.charAt(J);)Y++,J++;if(k[Q]=Y,Y>b)W+=2;else if(J>O)V+=2;else if(F){var et=T+K-G;if(et>=0&&et<_&&j[et]!==-1){var nt=b-j[et];if(Y>=nt)return o(g,L,Y,J)}}}for(var ct=-ot+P;ct<=ot-it;ct+=2){var et=T+ct,nt;ct===-ot||ct!==ot&&j[et-1]<j[et+1]?nt=j[et+1]:nt=j[et-1]+1;for(var mt=nt-ct;nt<b&&mt<O&&g.charAt(b-nt-1)===L.charAt(O-mt-1);)nt++,mt++;if(j[et]=nt,nt>b)it+=2;else if(mt>O)P+=2;else if(!F){var Q=T+K-ct;if(Q>=0&&Q<_&&k[Q]!==-1){var Y=k[Q],J=T+Y-Q;if(nt=b-nt,Y>=nt)return o(g,L,Y,J)}}}}return[[r,g],[t,L]]}function o(g,L,b,O){var S=g.substring(0,b),T=L.substring(0,O),_=g.substring(b),k=L.substring(O),j=n(S,T),I=n(_,k);return j.concat(I)}function a(g,L){if(!g||!L||g.charAt(0)!==L.charAt(0))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(T,S)==L.substring(T,S)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return M(g.charCodeAt(S-1))&&S--,S}function u(g,L){var b=g.length,O=L.length;if(b==0||O==0)return 0;b>O?g=g.substring(b-O):b<O&&(L=L.substring(0,b));var S=Math.min(b,O);if(g==L)return S;for(var T=0,_=1;;){var k=g.substring(S-_),j=L.indexOf(k);if(j==-1)return T;_+=j,(j==0||g.substring(S-_)==L.substring(0,_))&&(T=_,_++)}}function h(g,L){if(!g||!L||g.slice(-1)!==L.slice(-1))return 0;for(var b=0,O=Math.min(g.length,L.length),S=O,T=0;b<S;)g.substring(g.length-S,g.length-T)==L.substring(L.length-S,L.length-T)?(b=S,T=b):O=S,S=Math.floor((O-b)/2+b);return z(g.charCodeAt(g.length-S))&&S--,S}function p(g,L){var b=g.length>L.length?g:L,O=g.length>L.length?L:g;if(b.length<4||O.length*2<b.length)return null;function S(W,P,it){for(var ot=W.substring(it,it+Math.floor(W.length/4)),G=-1,Q="",Y,J,et,nt;(G=P.indexOf(ot,G+1))!==-1;){var ct=a(W.substring(it),P.substring(G)),mt=h(W.substring(0,it),P.substring(0,G));Q.length<mt+ct&&(Q=P.substring(G-mt,G)+P.substring(G,G+ct),Y=W.substring(0,it-mt),J=W.substring(it+ct),et=P.substring(0,G-mt),nt=P.substring(G+ct))}return Q.length*2>=W.length?[Y,J,et,nt,Q]:null}var T=S(b,O,Math.ceil(b.length/4)),_=S(b,O,Math.ceil(b.length/2)),k;if(!T&&!_)return null;_?T?k=T[4].length>_[4].length?T:_:k=_:k=T;var j,I,K,F;g.length>L.length?(j=k[0],I=k[1],K=k[2],F=k[3]):(K=k[0],F=k[1],j=k[2],I=k[3]);var V=k[4];return[j,I,K,F,V]}function v(g){for(var L=!1,b=[],O=0,S=null,T=0,_=0,k=0,j=0,I=0;T<g.length;)g[T][0]==e?(b[O++]=T,_=j,k=I,j=0,I=0,S=g[T][1]):(g[T][0]==t?j+=g[T][1].length:I+=g[T][1].length,S&&S.length<=Math.max(_,k)&&S.length<=Math.max(j,I)&&(g.splice(b[O-1],0,[r,S]),g[b[O-1]+1][0]=t,O--,O--,T=O>0?b[O-1]:-1,_=0,k=0,j=0,I=0,S=null,L=!0)),T++;for(L&&C(g),x(g),T=1;T<g.length;){if(g[T-1][0]==r&&g[T][0]==t){var K=g[T-1][1],F=g[T][1],V=u(K,F),W=u(F,K);V>=W?(V>=K.length/2||V>=F.length/2)&&(g.splice(T,0,[e,F.substring(0,V)]),g[T-1][1]=K.substring(0,K.length-V),g[T+1][1]=F.substring(V),T++):(W>=K.length/2||W>=F.length/2)&&(g.splice(T,0,[e,K.substring(0,W)]),g[T-1][0]=t,g[T-1][1]=F.substring(0,F.length-W),g[T+1][0]=r,g[T+1][1]=K.substring(W),T++),T++}T++}}var f=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,A=/\n\r?\n$/,w=/^\r?\n\r?\n/;function x(g){function L(W,P){if(!W||!P)return 6;var it=W.charAt(W.length-1),ot=P.charAt(0),G=it.match(f),Q=ot.match(f),Y=G&&it.match(m),J=Q&&ot.match(m),et=Y&&it.match(y),nt=J&&ot.match(y),ct=et&&W.match(A),mt=nt&&P.match(w);return ct||mt?5:et||nt?4:G&&!Y&&J?3:Y||J?2:G||Q?1:0}for(var b=1;b<g.length-1;){if(g[b-1][0]==e&&g[b+1][0]==e){var O=g[b-1][1],S=g[b][1],T=g[b+1][1],_=h(O,S);if(_){var k=S.substring(S.length-_);O=O.substring(0,O.length-_),S=k+S.substring(0,S.length-_),T=k+T}for(var j=O,I=S,K=T,F=L(O,S)+L(S,T);S.charAt(0)===T.charAt(0);){O+=S.charAt(0),S=S.substring(1)+T.charAt(0),T=T.substring(1);var V=L(O,S)+L(S,T);V>=F&&(F=V,j=O,I=S,K=T)}g[b-1][1]!=j&&(j?g[b-1][1]=j:(g.splice(b-1,1),b--),g[b][1]=I,K?g[b+1][1]=K:(g.splice(b+1,1),b--))}b++}}function C(g,L){g.push([e,""]);for(var b=0,O=0,S=0,T="",_="",k;b<g.length;){if(b<g.length-1&&!g[b][1]){g.splice(b,1);continue}switch(g[b][0]){case t:S++,_+=g[b][1],b++;break;case r:O++,T+=g[b][1],b++;break;case e:var j=b-S-O-1;if(L){if(j>=0&&rt(g[j][1])){var I=g[j][1].slice(-1);if(g[j][1]=g[j][1].slice(0,-1),T=I+T,_=I+_,!g[j][1]){g.splice(j,1),b--;var K=j-1;g[K]&&g[K][0]===t&&(S++,_=g[K][1]+_,K--),g[K]&&g[K][0]===r&&(O++,T=g[K][1]+T,K--),j=K}}if(U(g[b][1])){var I=g[b][1].charAt(0);g[b][1]=g[b][1].slice(1),T+=I,_+=I}}if(b<g.length-1&&!g[b][1]){g.splice(b,1);break}if(T.length>0||_.length>0){T.length>0&&_.length>0&&(k=a(_,T),k!==0&&(j>=0?g[j][1]+=_.substring(0,k):(g.splice(0,0,[e,_.substring(0,k)]),b++),_=_.substring(k),T=T.substring(k)),k=h(_,T),k!==0&&(g[b][1]=_.substring(_.length-k)+g[b][1],_=_.substring(0,_.length-k),T=T.substring(0,T.length-k)));var F=S+O;T.length===0&&_.length===0?(g.splice(b-F,F),b=b-F):T.length===0?(g.splice(b-F,F,[t,_]),b=b-F+1):_.length===0?(g.splice(b-F,F,[r,T]),b=b-F+1):(g.splice(b-F,F,[r,T],[t,_]),b=b-F+2)}b!==0&&g[b-1][0]===e?(g[b-1][1]+=g[b][1],g.splice(b,1)):b++,S=0,O=0,T="",_="";break}}g[g.length-1][1]===""&&g.pop();var V=!1;for(b=1;b<g.length-1;)g[b-1][0]===e&&g[b+1][0]===e&&(g[b][1].substring(g[b][1].length-g[b-1][1].length)===g[b-1][1]?(g[b][1]=g[b-1][1]+g[b][1].substring(0,g[b][1].length-g[b-1][1].length),g[b+1][1]=g[b-1][1]+g[b+1][1],g.splice(b-1,1),V=!0):g[b][1].substring(0,g[b+1][1].length)==g[b+1][1]&&(g[b-1][1]+=g[b+1][1],g[b][1]=g[b][1].substring(g[b+1][1].length)+g[b+1][1],g.splice(b+1,1),V=!0)),b++;V&&C(g,L)}function M(g){return g>=55296&&g<=56319}function z(g){return g>=56320&&g<=57343}function U(g){return z(g.charCodeAt(0))}function rt(g){return M(g.charCodeAt(g.length-1))}function at(g){for(var L=[],b=0;b<g.length;b++)g[b][1].length>0&&L.push(g[b]);return L}function ft(g,L,b,O){return rt(g)||U(O)?null:at([[e,g],[r,L],[t,b],[e,O]])}function Rt(g,L,b){var O=typeof b=="number"?{index:b,length:0}:b.oldRange,S=typeof b=="number"?null:b.newRange,T=g.length,_=L.length;if(O.length===0&&(S===null||S.length===0)){var k=O.index,j=g.slice(0,k),I=g.slice(k),K=S?S.index:null;t:{var F=k+_-T;if(K!==null&&K!==F||F<0||F>_)break t;var V=L.slice(0,F),W=L.slice(F);if(W!==I)break t;var P=Math.min(k,F),it=j.slice(0,P),ot=V.slice(0,P);if(it!==ot)break t;var G=j.slice(P),Q=V.slice(P);return ft(it,G,Q,I)}t:{if(K!==null&&K!==k)break t;var Y=k,V=L.slice(0,Y),W=L.slice(Y);if(V!==j)break t;var J=Math.min(T-Y,_-Y),et=I.slice(I.length-J),nt=W.slice(W.length-J);if(et!==nt)break t;var G=I.slice(0,I.length-J),Q=W.slice(0,W.length-J);return ft(j,G,Q,et)}}if(O.length>0&&S&&S.length===0)t:{var it=g.slice(0,O.index),et=g.slice(O.index+O.length),P=it.length,J=et.length;if(_<P+J)break t;var ot=L.slice(0,P),nt=L.slice(_-J);if(it!==ot||et!==nt)break t;var G=g.slice(P,T-J),Q=L.slice(P,_-J);return ft(it,G,Q,et)}return null}function xt(g,L,b,O){return n(g,L,b,O,!0)}return xt.INSERT=t,xt.DELETE=r,xt.EQUAL=e,Is=xt,Is}var qn={exports:{}};qn.exports;var il;function fo(){return il||(il=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",v="[object GeneratorFunction]",f="[object Map]",m="[object Number]",y="[object Object]",A="[object Promise]",w="[object RegExp]",x="[object Set]",C="[object String]",M="[object Symbol]",z="[object WeakMap]",U="[object ArrayBuffer]",rt="[object DataView]",at="[object Float32Array]",ft="[object Float64Array]",Rt="[object Int8Array]",xt="[object Int16Array]",g="[object Int32Array]",L="[object Uint8Array]",b="[object Uint8ClampedArray]",O="[object Uint16Array]",S="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,k=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[o]=I[U]=I[rt]=I[a]=I[u]=I[at]=I[ft]=I[Rt]=I[xt]=I[g]=I[f]=I[m]=I[y]=I[w]=I[x]=I[C]=I[M]=I[L]=I[b]=I[O]=I[S]=!0,I[h]=I[p]=I[z]=!1;var K=typeof pe=="object"&&pe&&pe.Object===Object&&pe,F=typeof self=="object"&&self&&self.Object===Object&&self,V=K||F||Function("return this")(),W=t&&!t.nodeType&&t,P=W&&!0&&r&&!r.nodeType&&r,it=P&&P.exports===W;function ot(l,c){return l.set(c[0],c[1]),l}function G(l,c){return l.add(c),l}function Q(l,c){for(var d=-1,E=l?l.length:0;++d<E&&c(l[d],d,l)!==!1;);return l}function Y(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function J(l,c,d,E){for(var H=-1,$=l?l.length:0;++H<$;)d=c(d,l[H],H,l);return d}function et(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function nt(l,c){return l==null?void 0:l[c]}function ct(l){var c=!1;if(l!=null&&typeof l.toString!="function")try{c=!!(l+"")}catch{}return c}function mt(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function fn(l,c){return function(d){return l(c(d))}}function Zn(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var Pr=Array.prototype,Ur=Function.prototype,$e=Object.prototype,dn=V["__core-js_shared__"],Xn=(function(){var l=/[^.]+$/.exec(dn&&dn.keys&&dn.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yn=Ur.toString,Kt=$e.hasOwnProperty,Pe=$e.toString,Fr=RegExp("^"+Yn.call(Kt).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=it?V.Buffer:void 0,Ue=V.Symbol,gn=V.Uint8Array,St=fn(Object.getPrototypeOf,Object),Qn=Object.create,Jn=$e.propertyIsEnumerable,Hr=Pr.splice,pn=Object.getOwnPropertySymbols,Fe=Ne?Ne.isBuffer:void 0,tr=fn(Object.keys,Object),He=Bt(V,"DataView"),we=Bt(V,"Map"),kt=Bt(V,"Promise"),ze=Bt(V,"Set"),mn=Bt(V,"WeakMap"),Te=Bt(Object,"create"),bn=Nt(He),xe=Nt(we),yn=Nt(kt),vn=Nt(ze),En=Nt(mn),he=Ue?Ue.prototype:void 0,er=he?he.valueOf:void 0;function ee(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function zr(){this.__data__=Te?Te(null):{}}function Kr(l){return this.has(l)&&delete this.__data__[l]}function Gr(l){var c=this.__data__;if(Te){var d=c[l];return d===n?void 0:d}return Kt.call(c,l)?c[l]:void 0}function nr(l){var c=this.__data__;return Te?c[l]!==void 0:Kt.call(c,l)}function An(l,c){var d=this.__data__;return d[l]=Te&&c===void 0?n:c,this}ee.prototype.clear=zr,ee.prototype.delete=Kr,ee.prototype.get=Gr,ee.prototype.has=nr,ee.prototype.set=An;function dt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=[]}function Wr(l){var c=this.__data__,d=Ge(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():Hr.call(c,d,1),!0}function Zr(l){var c=this.__data__,d=Ge(c,l);return d<0?void 0:c[d][1]}function Xr(l){return Ge(this.__data__,l)>-1}function Yr(l,c){var d=this.__data__,E=Ge(d,l);return E<0?d.push([l,c]):d[E][1]=c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l?l.length:0;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__={hash:new ee,map:new(we||dt),string:new ee}}function Jr(l){return Se(this,l).delete(l)}function ts(l){return Se(this,l).get(l)}function es(l){return Se(this,l).has(l)}function ns(l,c){return Se(this,l).set(l,c),this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){this.__data__=new dt(l)}function rs(){this.__data__=new dt}function ss(l){return this.__data__.delete(l)}function is(l){return this.__data__.get(l)}function ls(l){return this.__data__.has(l)}function os(l,c){var d=this.__data__;if(d instanceof dt){var E=d.__data__;if(!we||E.length<e-1)return E.push([l,c]),this;d=this.__data__=new bt(E)}return d.set(l,c),this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l,c){var d=xn(l)||We(l)?et(l.length,String):[],E=d.length,H=!!E;for(var $ in l)Kt.call(l,$)&&!(H&&($=="length"||As($,E)))&&d.push($);return d}function rr(l,c,d){var E=l[c];(!(Kt.call(l,c)&&ar(E,d))||d===void 0&&!(c in l))&&(l[c]=d)}function Ge(l,c){for(var d=l.length;d--;)if(ar(l[d][0],c))return d;return-1}function Gt(l,c){return l&&Tn(c,Sn(c),l)}function Nn(l,c,d,E,H,$,X){var Z;if(E&&(Z=$?E(l,H,$,X):E(l)),Z!==void 0)return Z;if(!Wt(l))return l;var ut=xn(l);if(ut){if(Z=vs(l),!c)return ms(l,Z)}else{var tt=re(l),yt=tt==p||tt==v;if(cr(l))return Ve(l,c);if(tt==y||tt==i||yt&&!$){if(ct(l))return $?l:{};if(Z=Vt(yt?{}:l),!c)return bs(l,Gt(Z,l))}else{if(!I[tt])return $?l:{};Z=Es(l,tt,Nn,c)}}X||(X=new wt);var Tt=X.get(l);if(Tt)return Tt;if(X.set(l,Z),!ut)var ht=d?ys(l):Sn(l);return Q(ht||l,function(vt,gt){ht&&(gt=vt,vt=l[gt]),rr(Z,gt,Nn(vt,c,d,E,gt,l,X))}),Z}function as(l){return Wt(l)?Qn(l):{}}function cs(l,c,d){var E=c(l);return xn(l)?E:Y(E,d(l))}function us(l){return Pe.call(l)}function hs(l){if(!Wt(l)||ws(l))return!1;var c=Ln(l)||ct(l)?Fr:k;return c.test(Nt(l))}function fs(l){if(!lr(l))return tr(l);var c=[];for(var d in Object(l))Kt.call(l,d)&&d!="constructor"&&c.push(d);return c}function Ve(l,c){if(c)return l.slice();var d=new l.constructor(l.length);return l.copy(d),d}function wn(l){var c=new l.constructor(l.byteLength);return new gn(c).set(new gn(l)),c}function Le(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}function sr(l,c,d){var E=c?d(mt(l),!0):mt(l);return J(E,ot,new l.constructor)}function ir(l){var c=new l.constructor(l.source,_.exec(l));return c.lastIndex=l.lastIndex,c}function ds(l,c,d){var E=c?d(Zn(l),!0):Zn(l);return J(E,G,new l.constructor)}function gs(l){return er?Object(er.call(l)):{}}function ps(l,c){var d=c?wn(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}function ms(l,c){var d=-1,E=l.length;for(c||(c=Array(E));++d<E;)c[d]=l[d];return c}function Tn(l,c,d,E){d||(d={});for(var H=-1,$=c.length;++H<$;){var X=c[H],Z=void 0;rr(d,X,Z===void 0?l[X]:Z)}return d}function bs(l,c){return Tn(l,ne(l),c)}function ys(l){return cs(l,Sn,ne)}function Se(l,c){var d=l.__data__;return Ns(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Bt(l,c){var d=nt(l,c);return hs(d)?d:void 0}var ne=pn?fn(pn,Object):xs,re=us;(He&&re(new He(new ArrayBuffer(1)))!=rt||we&&re(new we)!=f||kt&&re(kt.resolve())!=A||ze&&re(new ze)!=x||mn&&re(new mn)!=z)&&(re=function(l){var c=Pe.call(l),d=c==y?l.constructor:void 0,E=d?Nt(d):void 0;if(E)switch(E){case bn:return rt;case xe:return f;case yn:return A;case vn:return x;case En:return z}return c});function vs(l){var c=l.length,d=l.constructor(c);return c&&typeof l[0]=="string"&&Kt.call(l,"index")&&(d.index=l.index,d.input=l.input),d}function Vt(l){return typeof l.constructor=="function"&&!lr(l)?as(St(l)):{}}function Es(l,c,d,E){var H=l.constructor;switch(c){case U:return wn(l);case a:case u:return new H(+l);case rt:return Le(l,E);case at:case ft:case Rt:case xt:case g:case L:case b:case O:case S:return ps(l,E);case f:return sr(l,E,d);case m:case C:return new H(l);case w:return ir(l);case x:return ds(l,E,d);case M:return gs(l)}}function As(l,c){return c=c??s,!!c&&(typeof l=="number"||j.test(l))&&l>-1&&l%1==0&&l<c}function Ns(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function ws(l){return!!Xn&&Xn in l}function lr(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||$e;return l===d}function Nt(l){if(l!=null){try{return Yn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l){return Nn(l,!0,!0)}function ar(l,c){return l===c||l!==l&&c!==c}function We(l){return Ts(l)&&Kt.call(l,"callee")&&(!Jn.call(l,"callee")||Pe.call(l)==i)}var xn=Array.isArray;function Ze(l){return l!=null&&ur(l.length)&&!Ln(l)}function Ts(l){return hr(l)&&Ze(l)}var cr=Fe||Ls;function Ln(l){var c=Wt(l)?Pe.call(l):"";return c==p||c==v}function ur(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=s}function Wt(l){var c=typeof l;return!!l&&(c=="object"||c=="function")}function hr(l){return!!l&&typeof l=="object"}function Sn(l){return Ze(l)?Ke(l):fs(l)}function xs(){return[]}function Ls(){return!1}r.exports=or})(qn,qn.exports)),qn.exports}var Cn={exports:{}};Cn.exports;var ll;function go(){return ll||(ll=1,(function(r,t){var e=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",v="[object Date]",f="[object Error]",m="[object Function]",y="[object GeneratorFunction]",A="[object Map]",w="[object Number]",x="[object Null]",C="[object Object]",M="[object Promise]",z="[object Proxy]",U="[object RegExp]",rt="[object Set]",at="[object String]",ft="[object Symbol]",Rt="[object Undefined]",xt="[object WeakMap]",g="[object ArrayBuffer]",L="[object DataView]",b="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",j="[object Uint8ClampedArray]",I="[object Uint16Array]",K="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,P={};P[b]=P[O]=P[S]=P[T]=P[_]=P[k]=P[j]=P[I]=P[K]=!0,P[a]=P[u]=P[g]=P[p]=P[L]=P[v]=P[f]=P[m]=P[A]=P[w]=P[C]=P[U]=P[rt]=P[at]=P[xt]=!1;var it=typeof pe=="object"&&pe&&pe.Object===Object&&pe,ot=typeof self=="object"&&self&&self.Object===Object&&self,G=it||ot||Function("return this")(),Q=t&&!t.nodeType&&t,Y=Q&&!0&&r&&!r.nodeType&&r,J=Y&&Y.exports===Q,et=J&&it.process,nt=(function(){try{return et&&et.binding&&et.binding("util")}catch{}})(),ct=nt&&nt.isTypedArray;function mt(l,c){for(var d=-1,E=l==null?0:l.length,H=0,$=[];++d<E;){var X=l[d];c(X,d,l)&&($[H++]=X)}return $}function fn(l,c){for(var d=-1,E=c.length,H=l.length;++d<E;)l[H+d]=c[d];return l}function Zn(l,c){for(var d=-1,E=l==null?0:l.length;++d<E;)if(c(l[d],d,l))return!0;return!1}function Pr(l,c){for(var d=-1,E=Array(l);++d<l;)E[d]=c(d);return E}function Ur(l){return function(c){return l(c)}}function $e(l,c){return l.has(c)}function dn(l,c){return l==null?void 0:l[c]}function Xn(l){var c=-1,d=Array(l.size);return l.forEach(function(E,H){d[++c]=[H,E]}),d}function Yn(l,c){return function(d){return l(c(d))}}function Kt(l){var c=-1,d=Array(l.size);return l.forEach(function(E){d[++c]=E}),d}var Pe=Array.prototype,Fr=Function.prototype,Ne=Object.prototype,Ue=G["__core-js_shared__"],gn=Fr.toString,St=Ne.hasOwnProperty,Qn=(function(){var l=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Jn=Ne.toString,Hr=RegExp("^"+gn.call(St).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pn=J?G.Buffer:void 0,Fe=G.Symbol,tr=G.Uint8Array,He=Ne.propertyIsEnumerable,we=Pe.splice,kt=Fe?Fe.toStringTag:void 0,ze=Object.getOwnPropertySymbols,mn=pn?pn.isBuffer:void 0,Te=Yn(Object.keys,Object),bn=ne(G,"DataView"),xe=ne(G,"Map"),yn=ne(G,"Promise"),vn=ne(G,"Set"),En=ne(G,"WeakMap"),he=ne(Object,"create"),er=Nt(bn),ee=Nt(xe),zr=Nt(yn),Kr=Nt(vn),Gr=Nt(En),nr=Fe?Fe.prototype:void 0,An=nr?nr.valueOf:void 0;function dt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Vr(){this.__data__=he?he(null):{},this.size=0}function Wr(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function Zr(l){var c=this.__data__;if(he){var d=c[l];return d===n?void 0:d}return St.call(c,l)?c[l]:void 0}function Xr(l){var c=this.__data__;return he?c[l]!==void 0:St.call(c,l)}function Yr(l,c){var d=this.__data__;return this.size+=this.has(l)?0:1,d[l]=he&&c===void 0?n:c,this}dt.prototype.clear=Vr,dt.prototype.delete=Wr,dt.prototype.get=Zr,dt.prototype.has=Xr,dt.prototype.set=Yr;function bt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function Qr(){this.__data__=[],this.size=0}function Jr(l){var c=this.__data__,d=Ve(c,l);if(d<0)return!1;var E=c.length-1;return d==E?c.pop():we.call(c,d,1),--this.size,!0}function ts(l){var c=this.__data__,d=Ve(c,l);return d<0?void 0:c[d][1]}function es(l){return Ve(this.__data__,l)>-1}function ns(l,c){var d=this.__data__,E=Ve(d,l);return E<0?(++this.size,d.push([l,c])):d[E][1]=c,this}bt.prototype.clear=Qr,bt.prototype.delete=Jr,bt.prototype.get=ts,bt.prototype.has=es,bt.prototype.set=ns;function wt(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var E=l[c];this.set(E[0],E[1])}}function rs(){this.size=0,this.__data__={hash:new dt,map:new(xe||bt),string:new dt}}function ss(l){var c=Bt(this,l).delete(l);return this.size-=c?1:0,c}function is(l){return Bt(this,l).get(l)}function ls(l){return Bt(this,l).has(l)}function os(l,c){var d=Bt(this,l),E=d.size;return d.set(l,c),this.size+=d.size==E?0:1,this}wt.prototype.clear=rs,wt.prototype.delete=ss,wt.prototype.get=is,wt.prototype.has=ls,wt.prototype.set=os;function Ke(l){var c=-1,d=l==null?0:l.length;for(this.__data__=new wt;++c<d;)this.add(l[c])}function rr(l){return this.__data__.set(l,n),this}function Ge(l){return this.__data__.has(l)}Ke.prototype.add=Ke.prototype.push=rr,Ke.prototype.has=Ge;function Gt(l){var c=this.__data__=new bt(l);this.size=c.size}function Nn(){this.__data__=new bt,this.size=0}function as(l){var c=this.__data__,d=c.delete(l);return this.size=c.size,d}function cs(l){return this.__data__.get(l)}function us(l){return this.__data__.has(l)}function hs(l,c){var d=this.__data__;if(d instanceof bt){var E=d.__data__;if(!xe||E.length<e-1)return E.push([l,c]),this.size=++d.size,this;d=this.__data__=new wt(E)}return d.set(l,c),this.size=d.size,this}Gt.prototype.clear=Nn,Gt.prototype.delete=as,Gt.prototype.get=cs,Gt.prototype.has=us,Gt.prototype.set=hs;function fs(l,c){var d=We(l),E=!d&&ar(l),H=!d&&!E&&Ze(l),$=!d&&!E&&!H&&hr(l),X=d||E||H||$,Z=X?Pr(l.length,String):[],ut=Z.length;for(var tt in l)St.call(l,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||$&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||Es(tt,ut)))&&Z.push(tt);return Z}function Ve(l,c){for(var d=l.length;d--;)if(or(l[d][0],c))return d;return-1}function wn(l,c,d){var E=c(l);return We(l)?E:fn(E,d(l))}function Le(l){return l==null?l===void 0?Rt:x:kt&&kt in Object(l)?re(l):lr(l)}function sr(l){return Wt(l)&&Le(l)==a}function ir(l,c,d,E,H){return l===c?!0:l==null||c==null||!Wt(l)&&!Wt(c)?l!==l&&c!==c:ds(l,c,d,E,ir,H)}function ds(l,c,d,E,H,$){var X=We(l),Z=We(c),ut=X?u:Vt(l),tt=Z?u:Vt(c);ut=ut==a?C:ut,tt=tt==a?C:tt;var yt=ut==C,Tt=tt==C,ht=ut==tt;if(ht&&Ze(l)){if(!Ze(c))return!1;X=!0,yt=!1}if(ht&&!yt)return $||($=new Gt),X||hr(l)?Tn(l,c,d,E,H,$):bs(l,c,ut,d,E,H,$);if(!(d&s)){var vt=yt&&St.call(l,"__wrapped__"),gt=Tt&&St.call(c,"__wrapped__");if(vt||gt){var fe=vt?l.value():l,se=gt?c.value():c;return $||($=new Gt),H(fe,se,d,E,$)}}return ht?($||($=new Gt),ys(l,c,d,E,H,$)):!1}function gs(l){if(!ur(l)||Ns(l))return!1;var c=cr(l)?Hr:V;return c.test(Nt(l))}function ps(l){return Wt(l)&&Ln(l.length)&&!!P[Le(l)]}function ms(l){if(!ws(l))return Te(l);var c=[];for(var d in Object(l))St.call(l,d)&&d!="constructor"&&c.push(d);return c}function Tn(l,c,d,E,H,$){var X=d&s,Z=l.length,ut=c.length;if(Z!=ut&&!(X&&ut>Z))return!1;var tt=$.get(l);if(tt&&$.get(c))return tt==c;var yt=-1,Tt=!0,ht=d&i?new Ke:void 0;for($.set(l,c),$.set(c,l);++yt<Z;){var vt=l[yt],gt=c[yt];if(E)var fe=X?E(gt,vt,yt,c,l,$):E(vt,gt,yt,l,c,$);if(fe!==void 0){if(fe)continue;Tt=!1;break}if(ht){if(!Zn(c,function(se,_e){if(!$e(ht,_e)&&(vt===se||H(vt,se,d,E,$)))return ht.push(_e)})){Tt=!1;break}}else if(!(vt===gt||H(vt,gt,d,E,$))){Tt=!1;break}}return $.delete(l),$.delete(c),Tt}function bs(l,c,d,E,H,$,X){switch(d){case L:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case g:return!(l.byteLength!=c.byteLength||!$(new tr(l),new tr(c)));case p:case v:case w:return or(+l,+c);case f:return l.name==c.name&&l.message==c.message;case U:case at:return l==c+"";case A:var Z=Xn;case rt:var ut=E&s;if(Z||(Z=Kt),l.size!=c.size&&!ut)return!1;var tt=X.get(l);if(tt)return tt==c;E|=i,X.set(l,c);var yt=Tn(Z(l),Z(c),E,H,$,X);return X.delete(l),yt;case ft:if(An)return An.call(l)==An.call(c)}return!1}function ys(l,c,d,E,H,$){var X=d&s,Z=Se(l),ut=Z.length,tt=Se(c),yt=tt.length;if(ut!=yt&&!X)return!1;for(var Tt=ut;Tt--;){var ht=Z[Tt];if(!(X?ht in c:St.call(c,ht)))return!1}var vt=$.get(l);if(vt&&$.get(c))return vt==c;var gt=!0;$.set(l,c),$.set(c,l);for(var fe=X;++Tt<ut;){ht=Z[Tt];var se=l[ht],_e=c[ht];if(E)var Oi=X?E(_e,se,ht,c,l,$):E(se,_e,ht,l,c,$);if(!(Oi===void 0?se===_e||H(se,_e,d,E,$):Oi)){gt=!1;break}fe||(fe=ht=="constructor")}if(gt&&!fe){var fr=l.constructor,dr=c.constructor;fr!=dr&&"constructor"in l&&"constructor"in c&&!(typeof fr=="function"&&fr instanceof fr&&typeof dr=="function"&&dr instanceof dr)&&(gt=!1)}return $.delete(l),$.delete(c),gt}function Se(l){return wn(l,Sn,vs)}function Bt(l,c){var d=l.__data__;return As(c)?d[typeof c=="string"?"string":"hash"]:d.map}function ne(l,c){var d=dn(l,c);return gs(d)?d:void 0}function re(l){var c=St.call(l,kt),d=l[kt];try{l[kt]=void 0;var E=!0}catch{}var H=Jn.call(l);return E&&(c?l[kt]=d:delete l[kt]),H}var vs=ze?function(l){return l==null?[]:(l=Object(l),mt(ze(l),function(c){return He.call(l,c)}))}:xs,Vt=Le;(bn&&Vt(new bn(new ArrayBuffer(1)))!=L||xe&&Vt(new xe)!=A||yn&&Vt(yn.resolve())!=M||vn&&Vt(new vn)!=rt||En&&Vt(new En)!=xt)&&(Vt=function(l){var c=Le(l),d=c==C?l.constructor:void 0,E=d?Nt(d):"";if(E)switch(E){case er:return L;case ee:return A;case zr:return M;case Kr:return rt;case Gr:return xt}return c});function Es(l,c){return c=c??o,!!c&&(typeof l=="number"||W.test(l))&&l>-1&&l%1==0&&l<c}function As(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function Ns(l){return!!Qn&&Qn in l}function ws(l){var c=l&&l.constructor,d=typeof c=="function"&&c.prototype||Ne;return l===d}function lr(l){return Jn.call(l)}function Nt(l){if(l!=null){try{return gn.call(l)}catch{}try{return l+""}catch{}}return""}function or(l,c){return l===c||l!==l&&c!==c}var ar=sr((function(){return arguments})())?sr:function(l){return Wt(l)&&St.call(l,"callee")&&!He.call(l,"callee")},We=Array.isArray;function xn(l){return l!=null&&Ln(l.length)&&!cr(l)}var Ze=mn||Ls;function Ts(l,c){return ir(l,c)}function cr(l){if(!ur(l))return!1;var c=Le(l);return c==m||c==y||c==h||c==z}function Ln(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=o}function ur(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function Wt(l){return l!=null&&typeof l=="object"}var hr=ct?Ur(ct):ps;function Sn(l){return xn(l)?fs(l):ms(l)}function xs(){return[]}function Ls(){return!1}r.exports=Ts})(Cn,Cn.exports)),Cn.exports}var mr={},ol;function _f(){if(ol)return mr;ol=1,Object.defineProperty(mr,"__esModule",{value:!0});const r=fo(),t=go();var e;return(function(n){function s(u={},h={},p=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let v=r(h);p||(v=Object.keys(v).reduce((f,m)=>(v[m]!=null&&(f[m]=v[m]),f),{}));for(const f in u)u[f]!==void 0&&h[f]===void 0&&(v[f]=u[f]);return Object.keys(v).length>0?v:void 0}n.compose=s;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const p=Object.keys(u).concat(Object.keys(h)).reduce((v,f)=>(t(u[f],h[f])||(v[f]=h[f]===void 0?null:h[f]),v),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function o(u={},h={}){u=u||{};const p=Object.keys(h).reduce((v,f)=>(h[f]!==u[f]&&u[f]!==void 0&&(v[f]=h[f]),v),{});return Object.keys(u).reduce((v,f)=>(u[f]!==h[f]&&h[f]===void 0&&(v[f]=null),v),p)}n.invert=o;function a(u,h,p=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!p)return h;const v=Object.keys(h).reduce((f,m)=>(u[m]===void 0&&(f[m]=h[m]),f),{});return Object.keys(v).length>0?v:void 0}n.transform=a})(e||(e={})),mr.default=e,mr}var br={},al;function po(){if(al)return br;al=1,Object.defineProperty(br,"__esModule",{value:!0});var r;return(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(r||(r={})),br.default=r,br}var yr={},cl;function Of(){if(cl)return yr;cl=1,Object.defineProperty(yr,"__esModule",{value:!0});const r=po();class t{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return yr.default=t,yr}var ul;function qf(){return ul||(ul=1,(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Sf(),n=fo(),s=go(),i=_f();t.AttributeMap=i.default;const o=po();t.Op=o.default;const a=Of();t.OpIterator=a.default;const u="\0",h=(v,f)=>{if(typeof v!="object"||v===null)throw new Error(`cannot retain a ${typeof v}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(v)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,v[m],f[m]]};class p{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const y={};return typeof f=="string"&&f.length===0?this:(y.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const y={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(f){let m=this.ops.length,y=this.ops[m-1];if(f=n(f),typeof y=="object"){if(typeof f.delete=="number"&&typeof y.delete=="number")return this.ops[m-1]={delete:y.delete+f.delete},this;if(typeof y.delete=="number"&&f.insert!=null&&(m-=1,y=this.ops[m-1],typeof y!="object"))return this.ops.unshift(f),this;if(s(f.attributes,y.attributes)){if(typeof f.insert=="string"&&typeof y.insert=="string")return this.ops[m-1]={insert:y.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof y.retain=="number")return this.ops[m-1]={retain:y.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],y=[];return this.forEach(A=>{(f(A)?m:y).push(A)}),[m,y]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+o.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+o.default.length(m),0)}slice(f=0,m=1/0){const y=[],A=new a.default(this.ops);let w=0;for(;w<m&&A.hasNext();){let x;w<f?x=A.next(f-w):(x=A.next(m-w),y.push(x)),w+=o.default.length(x)}return new p(y)}compose(f){const m=new a.default(this.ops),y=new a.default(f.ops),A=[],w=y.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let C=w.retain;for(;m.peekType()==="insert"&&m.peekLength()<=C;)C-=m.peekLength(),A.push(m.next());w.retain-C>0&&y.next(w.retain-C)}const x=new p(A);for(;m.hasNext()||y.hasNext();)if(y.peekType()==="insert")x.push(y.next());else if(m.peekType()==="delete")x.push(m.next());else{const C=Math.min(m.peekLength(),y.peekLength()),M=m.next(C),z=y.next(C);if(z.retain){const U={};if(typeof M.retain=="number")U.retain=typeof z.retain=="number"?C:z.retain;else if(typeof z.retain=="number")M.retain==null?U.insert=M.insert:U.retain=M.retain;else{const at=M.retain==null?"insert":"retain",[ft,Rt,xt]=h(M[at],z.retain),g=p.getHandler(ft);U[at]={[ft]:g.compose(Rt,xt,at==="retain")}}const rt=i.default.compose(M.attributes,z.attributes,typeof M.retain=="number");if(rt&&(U.attributes=rt),x.push(U),!y.hasNext()&&s(x.ops[x.ops.length-1],U)){const at=new p(m.rest());return x.concat(at).chop()}}else typeof z.delete=="number"&&(typeof M.retain=="number"||typeof M.retain=="object"&&M.retain!==null)&&x.push(z)}return x.chop()}concat(f){const m=new p(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new p;const y=[this,f].map(M=>M.map(z=>{if(z.insert!=null)return typeof z.insert=="string"?z.insert:u;const U=M===f?"on":"with";throw new Error("diff() called "+U+" non-document")}).join("")),A=new p,w=e(y[0],y[1],m,!0),x=new a.default(this.ops),C=new a.default(f.ops);return w.forEach(M=>{let z=M[1].length;for(;z>0;){let U=0;switch(M[0]){case e.INSERT:U=Math.min(C.peekLength(),z),A.push(C.next(U));break;case e.DELETE:U=Math.min(z,x.peekLength()),x.next(U),A.delete(U);break;case e.EQUAL:U=Math.min(x.peekLength(),C.peekLength(),z);const rt=x.next(U),at=C.next(U);s(rt.insert,at.insert)?A.retain(U,i.default.diff(rt.attributes,at.attributes)):A.push(at).delete(U);break}z-=U}}),A.chop()}eachLine(f,m=`
|
|
2
2
|
`){const y=new a.default(this.ops);let A=new p,w=0;for(;y.hasNext();){if(y.peekType()!=="insert")return;const x=y.peek(),C=o.default.length(x)-y.peekLength(),M=typeof x.insert=="string"?x.insert.indexOf(m,C)-C:-1;if(M<0)A.push(y.next());else if(M>0)A.push(y.next(M));else{if(f(A,y.next(1).attributes||{},w)===!1)return;w+=1,A=new p}}A.length()>0&&f(A,{},w)}invert(f){const m=new p;return this.reduce((y,A)=>{if(A.insert)m.delete(o.default.length(A));else{if(typeof A.retain=="number"&&A.attributes==null)return m.retain(A.retain),y+A.retain;if(A.delete||typeof A.retain=="number"){const w=A.delete||A.retain;return f.slice(y,y+w).forEach(C=>{A.delete?m.push(C):A.retain&&A.attributes&&m.retain(o.default.length(C),i.default.invert(A.attributes,C.attributes))}),y+w}else if(typeof A.retain=="object"&&A.retain!==null){const w=f.slice(y,y+1),x=new a.default(w.ops).next(),[C,M,z]=h(A.retain,x.insert),U=p.getHandler(C);return m.retain({[C]:U.invert(M,z)},i.default.invert(A.attributes,x.attributes)),y+1}}return y},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const y=f,A=new a.default(this.ops),w=new a.default(y.ops),x=new p;for(;A.hasNext()||w.hasNext();)if(A.peekType()==="insert"&&(m||w.peekType()!=="insert"))x.retain(o.default.length(A.next()));else if(w.peekType()==="insert")x.push(w.next());else{const C=Math.min(A.peekLength(),w.peekLength()),M=A.next(C),z=w.next(C);if(M.delete)continue;if(z.delete)x.push(z);else{const U=M.retain,rt=z.retain;let at=typeof rt=="object"&&rt!==null?rt:C;if(typeof U=="object"&&U!==null&&typeof rt=="object"&&rt!==null){const ft=Object.keys(U)[0];if(ft===Object.keys(rt)[0]){const Rt=p.getHandler(ft);Rt&&(at={[ft]:Rt.transform(U[ft],rt[ft],m)})}}x.retain(at,i.default.transform(M.attributes,z.attributes,m))}}return x.chop()}transformPosition(f,m=!1){m=!!m;const y=new a.default(this.ops);let A=0;for(;y.hasNext()&&A<=f;){const w=y.peekLength(),x=y.peekType();if(y.next(),x==="delete"){f-=Math.min(w,f-A);continue}else x==="insert"&&(A<f||!m)&&(f+=w);A+=w}return f}}p.Op=o.default,p.OpIterator=a.default,p.AttributeMap=i.default,p.handlers={},t.default=p,r.exports=p,r.exports.default=p})(pr,pr.exports)),pr.exports}var It=qf();const B=Bl(It);class Ht extends Lt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ht.blotName="break";Ht.tagName="BR";let Ut=class extends qr{};const Cf={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mr(r){return r.replace(/[&<>"']/g,t=>Cf[t])}const Zt=class Zt extends bi{static compare(t,e){const n=Zt.order.indexOf(t),s=Zt.order.indexOf(e);return n>=0||s>=0?n-s:t===e?0:t<e?-1:1}formatAt(t,e,n,s){if(Zt.compare(this.statics.blotName,n)<0&&this.scroll.query(n,D.BLOT)){const i=this.isolate(t,e);s&&i.wrap(n,s)}else super.formatAt(t,e,n,s)}optimize(t){if(super.optimize(t),this.parent instanceof Zt&&Zt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};q(Zt,"allowedChildren",[Zt,Ht,Lt,Ut]),q(Zt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Jt=Zt;const hl=1;class pt extends Pn{constructor(){super(...arguments);q(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=mo(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,s,i){n<=0||(this.scroll.query(s,D.BLOCK)?e+n===this.length()&&this.format(s,i):super.formatAt(e,Math.min(n,this.length()-e-1),s,i),this.cache={})}insertAt(e,n,s){if(s!=null){super.insertAt(e,n,s),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
|
3
3
|
`),o=i.shift();o.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((u,h)=>(a=a.split(u,!0),a.insertAt(0,h),h.length),e+o.length)}insertBefore(e,n){const{head:s}=this.children;super.insertBefore(e,n),s instanceof Ht&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+hl),this.cache.length}moveChildren(e,n){super.moveChildren(e,n),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(e===0||e>=this.length()-hl)){const i=this.clone();return e===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const s=super.split(e,n);return this.cache={},s}}pt.blotName="block";pt.tagName="P";pt.defaultChild=Ht;pt.allowedChildren=[Ht,Jt,Lt,Ut];class Ct extends Lt{attach(){super.attach(),this.attributes=new kr(this.domNode)}delta(){return new B().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const n=this.scroll.query(t,D.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,e)}formatAt(t,e,n,s){this.format(n,s)}insertAt(t,e,n){if(n!=null){super.insertAt(t,e,n);return}const s=e.split(`
|
|
4
4
|
`),i=s.pop(),o=s.map(u=>{const h=this.scroll.create(pt.blotName);return h.insertAt(0,u),h}),a=this.split(t);o.forEach(u=>{this.parent.insertBefore(u,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}Ct.scope=D.BLOCK_BLOT;function mo(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Et).reduce((e,n)=>n.length()===0?e:e.insert(n.value(),Ot(n,{},t)),new B).insert(`
|