showai-reader 0.9.0 → 0.10.0-reader.jkemdwbx

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/chunks/CardGrid-2L7SI3GT.js +2 -0
  3. package/chunks/CommandReference-MABH4WNR.js +3 -0
  4. package/chunks/{ComparisonMatrix-SYFIP5WP.js → ComparisonMatrix-4VID3SKW.js} +1 -1
  5. package/chunks/EventTimeline-RPUO3ANI.js +2 -0
  6. package/chunks/{ExperimentTracker-HOUNXCEC.js → ExperimentTracker-I7FMOSAT.js} +1 -1
  7. package/chunks/{ExternalDiagram-3BONLRGZ.js → ExternalDiagram-4RVTAMN7.js} +7924 -4810
  8. package/chunks/Flowchart-DJDRE6J4.js +12 -0
  9. package/chunks/{G2Chart-GQH7Q6PL.js → G2Chart-GKX2KBAE.js} +2 -2
  10. package/chunks/LayerDiagram-XRFOBN5D.js +2 -0
  11. package/chunks/{Mindmap-UMIFB7CR.js → Mindmap-EIHQYYIM.js} +2 -2
  12. package/chunks/RichTextEditor-ZAIWG23D.js +155 -0
  13. package/chunks/Roadmap-2PZUUITP.js +2 -0
  14. package/chunks/{Scene3D-J7TCRL6V.js → Scene3D-VUYXLU66.js} +2 -2
  15. package/chunks/SequenceDiagram-SKWUSADO.js +2 -0
  16. package/chunks/{StatusTree-MDKGDYK5.js → StatusTree-M32T5DZK.js} +1 -1
  17. package/chunks/StepGuide-H3CX2NOQ.js +1 -0
  18. package/chunks/StructureBrowser-TRZVSHJZ.js +3 -0
  19. package/chunks/Waterfall-FRJWHEW4.js +2 -0
  20. package/chunks/{chunk-MPVTJQTD.js → chunk-2CPNXVIL.js} +2 -2
  21. package/chunks/{chunk-YSVZKKKM.js → chunk-2XAH6DED.js} +1 -1
  22. package/chunks/chunk-2ZVZOWPH.js +333 -0
  23. package/chunks/chunk-3RZMLHCB.js +1 -0
  24. package/chunks/chunk-3YAYFUS4.js +21 -0
  25. package/chunks/{chunk-4QSHXFHM.js.LEGAL.txt → chunk-3YAYFUS4.js.LEGAL.txt} +24 -8
  26. package/chunks/chunk-AIBH6MTQ.js +1 -0
  27. package/chunks/chunk-AO3QGOYX.js +1 -0
  28. package/chunks/chunk-BJ2PXDYC.js +1 -0
  29. package/chunks/chunk-GLP5VV7P.js +1 -0
  30. package/chunks/{chunk-LAAA5HWB.js → chunk-HIORXCFE.js} +1 -1
  31. package/chunks/chunk-IB47MJKL.js +2 -0
  32. package/chunks/chunk-JXKAISUX.js +1 -0
  33. package/chunks/chunk-MGSP3OGB.js +9 -0
  34. package/chunks/{chunk-SWLYSV5D.js → chunk-NLDO4KEP.js} +1 -1
  35. package/chunks/chunk-QHZRUC47.js +1 -0
  36. package/chunks/chunk-R2O3ZCKW.js +4 -0
  37. package/chunks/chunk-ZYTSII4S.js +1 -0
  38. package/index.js +1 -1
  39. package/manifest.json +6 -5
  40. package/package.json +1 -1
  41. package/reader-JKEMDWBX.js +46 -0
  42. package/chunks/Flowchart-72CIZ5IT.js +0 -10
  43. package/chunks/RichTextEditor-YMFOBGOU.js +0 -155
  44. package/chunks/chunk-4QSHXFHM.js +0 -21
  45. package/chunks/chunk-6WHB3GS2.js +0 -2
  46. package/chunks/chunk-CEJFAFXK.js +0 -326
  47. package/chunks/chunk-M3KEZP5Z.js +0 -1
  48. package/chunks/chunk-QSELZI5S.js +0 -1
  49. package/reader-N3YKYCK3.js +0 -40
  50. /package/chunks/{Flowchart-72CIZ5IT.js.LEGAL.txt → Flowchart-DJDRE6J4.js.LEGAL.txt} +0 -0
  51. /package/chunks/{G2Chart-GQH7Q6PL.js.LEGAL.txt → G2Chart-GKX2KBAE.js.LEGAL.txt} +0 -0
  52. /package/chunks/{Scene3D-J7TCRL6V.js.LEGAL.txt → Scene3D-VUYXLU66.js.LEGAL.txt} +0 -0
  53. /package/chunks/{chunk-MPVTJQTD.js.LEGAL.txt → chunk-2CPNXVIL.js.LEGAL.txt} +0 -0
  54. /package/{reader-N3YKYCK3.js.LEGAL.txt → reader-JKEMDWBX.js.LEGAL.txt} +0 -0
@@ -0,0 +1 @@
1
+ var r=e=>{throw new Error(e)},y=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function m(e,s,n=400){(typeof e!="string"||!e.trim())&&r(`${s} must be non-empty text.`),e.length>n&&r(`${s} must be at most ${n} characters.`)}function u(e,s,n){e!==void 0&&m(e,s,n)}function h(e,s){(typeof e!="number"||!Number.isFinite(e))&&r(`${s} must be a finite number.`)}function $(e,s,n,i=0){return(!Array.isArray(e)||e.length<i||e.length>n)&&r(`${s} must be an array of ${i} to ${n} items.`),e.forEach((o,d)=>{y(o)||r(`${s}[${d}] must be an object.`)}),e}function w(e,s){let n=new Set;return e.forEach((i,o)=>{m(i.id,`${s}[${o}].id`,60),n.has(i.id)&&r(`${s} contains duplicate id ${i.id}.`),n.add(i.id)}),n}function D(e,s){e!==void 0&&!/^#[0-9a-fA-F]{6}$/.test(e)&&r(`${s} must be a six-digit hex color.`)}function g(e,s,n){s.includes(e)||r(`${n} must be one of ${s.join(", ")}.`)}var v=864e5;function c(e){let s=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e??"");if(!s)return Number.NaN;let[n,i,o]=s.slice(1).map(Number),d=Date.UTC(n,i-1,o),a=new Date(d);return a.getUTCFullYear()===n&&a.getUTCMonth()===i-1&&a.getUTCDate()===o?d/v:Number.NaN}function A(e){return new Date(e*v).toISOString().slice(0,10)}function b(e,s){return Number.isNaN(c(e))&&r(`${s} must be a calendar date written YYYY-MM-DD.`),c(e)}var F=["done","active","todo","blocked"],M=[{id:"done",label:"\u5DF2\u5B8C\u6210",tone:"done"},{id:"active",label:"\u8FDB\u884C\u4E2D",tone:"active"},{id:"todo",label:"\u672A\u5F00\u59CB",tone:"todo"},{id:"blocked",label:"\u53D7\u963B",tone:"blocked"}],E=400;function T(e){return c(e.end)-c(e.start)+1}function I(e){if(e.start&&e.end)return{start:c(e.start),end:c(e.end)};let s=[...e.items.flatMap(n=>[c(n.start),c(n.end)]),...(e.milestones??[]).map(n=>c(n.date)),...e.deadline?[c(e.deadline.date)]:[]];return{start:e.start?c(e.start):Math.min(...s),end:e.end?c(e.end):Math.max(...s)}}function W(e){let s=new Map((e.statuses??M).map(i=>[i.id,i.tone])),n={};for(let i of e.items){let o=i.owner??"",d=n[o]??={scheduled:0,open:0,items:0},a=T(i);d.scheduled+=a,d.items+=1,s.get(i.status)!=="done"&&(d.open+=a*(1-(i.progress??0)))}return n}function j(e){u(e.description,"description",400);for(let t of["start","end","today"])e[t]!==void 0&&b(e[t],t);e.start!==void 0&&e.end!==void 0&&c(e.end)<c(e.start)&&r("end must be on or after start."),e.groupBy!==void 0&&g(e.groupBy,["lane","owner"],"groupBy");let s=new Set;if(e.owners!==void 0){$(e.owners,"owners",8,1);for(let t of w(e.owners,"owners"))s.add(t);e.owners.forEach((t,l)=>{m(t.label,`owners[${l}].label`,40),D(t.color,`owners[${l}].color`)})}let n=w($(e.lanes,"lanes",12,1),"lanes");e.lanes.forEach((t,l)=>{m(t.label,`lanes[${l}].label`,40),u(t.summary,`lanes[${l}].summary`,120)}),e.statuses!==void 0&&($(e.statuses,"statuses",6,1),w(e.statuses,"statuses"),e.statuses.forEach((t,l)=>{m(t.label,`statuses[${l}].label`,30),g(t.tone,F,`statuses[${l}].tone`)}));let i=new Set((e.statuses??M).map(t=>t.id)),o=w($(e.items,"items",80,1),"items");e.items.forEach((t,l)=>{let f=`items[${l}]`;m(t.title,`${f}.title`,80),n.has(t.lane)||r(`${f}.lane ${t.lane} does not match a lane id.`),t.owner!==void 0&&!s.has(t.owner)&&r(`${f}.owner ${t.owner} does not match an owner id.`),i.has(t.status)||r(`${f}.status ${t.status} is not a defined status.`);let S=b(t.start,`${f}.start`);b(t.end,`${f}.end`)<S&&r(`${f}.end must be on or after ${f}.start.`),t.progress!==void 0&&(h(t.progress,`${f}.progress`),(t.progress<0||t.progress>1)&&r(`${f}.progress must be between 0 and 1.`)),u(t.detail,`${f}.detail`,600),u(t.doneWhen,`${f}.doneWhen`,240),u(t.basis,`${f}.basis`,300),t.tags!==void 0&&((!Array.isArray(t.tags)||t.tags.length>12)&&r(`${f}.tags must be an array of at most 12 labels.`),t.tags.forEach((p,k)=>m(p,`${f}.tags[${k}]`,30))),t.depends!==void 0&&((!Array.isArray(t.depends)||t.depends.length>12)&&r(`${f}.depends must be an array of at most 12 item ids.`),t.depends.forEach((p,k)=>{let x=`${f}.depends[${k}]`;o.has(p)||r(`${x} ${p} does not match an item id.`),p===t.id&&r(`${x} points to the item itself.`)}),new Set(t.depends).size!==t.depends.length&&r(`${f}.depends lists the same item twice.`))}),O(e.items),e.milestones!==void 0&&($(e.milestones,"milestones",12),e.milestones.forEach((t,l)=>{b(t.date,`milestones[${l}].date`),m(t.label,`milestones[${l}].label`,30)})),e.deadline!==void 0&&(y(e.deadline)||r("deadline must be an object."),b(e.deadline.date,"deadline.date"),u(e.deadline.label,"deadline.label",40)),e.initialItem!==void 0&&!o.has(e.initialItem)&&r(`initialItem ${e.initialItem} does not match an item id.`);let d=I(e);d.end-d.start+1>E&&r(`The roadmap spans more than ${E} days.`);let a=(t,l)=>{let f=c(t);(f<d.start||f>d.end)&&r(`${l} ${t} is outside the roadmap from ${A(d.start)} to ${A(d.end)}.`)};e.items.forEach((t,l)=>{a(t.start,`items[${l}].start`),a(t.end,`items[${l}].end`)}),(e.milestones??[]).forEach((t,l)=>a(t.date,`milestones[${l}].date`)),e.deadline&&a(e.deadline.date,"deadline.date")}function O(e){let s=new Map(e.map(o=>[o.id,o])),n=new Map,i=(o,d)=>{if(n.get(o)!=="done"){n.get(o)==="visiting"&&r(`items.depends form a cycle: ${[...d.slice(d.indexOf(o)),o].join(" \u2192 ")}.`),n.set(o,"visiting");for(let a of s.get(o).depends??[])i(a,[...d,o]);n.set(o,"done")}};for(let o of e)i(o.id,[])}var U=["total","up","down"];function N(e){let s=0,n=[];return{spans:e.map((o,d)=>{if(o.kind==="total")return d>0&&o.value!==s&&n.push({id:o.id,stated:o.value,computed:s}),s=o.value,[Math.min(0,s),Math.max(0,s)];let a=s;return s+=o.kind==="up"?o.value:-o.value,[Math.min(a,s),Math.max(a,s)]}),end:s,mismatches:n}}function _(e){let s=e.format??{},n=.5*(s.divisor??1)/10**(s.decimals??0);return N(e.steps).mismatches.filter(i=>Math.abs(i.stated-i.computed)>n)}function Y(e){if(u(e.eyebrow,"eyebrow",160),u(e.narrative,"narrative",400),u(e.axisNote,"axisNote",200),e.upIsGood!==void 0&&typeof e.upIsGood!="boolean"&&r("upIsGood must be true or false."),e.headlines!==void 0&&($(e.headlines,"headlines",5),e.headlines.forEach((n,i)=>{m(n.label,`headlines[${i}].label`,40),m(n.value,`headlines[${i}].value`,24),u(n.detail,`headlines[${i}].detail`,80),n.tone!==void 0&&g(n.tone,["up","down","neutral"],`headlines[${i}].tone`)})),e.format!==void 0){let n=e.format;y(n)||r("format must be an object.");for(let[i,o]of[["prefix",6],["suffix",10]])n[i]!==void 0&&(typeof n[i]!="string"||n[i].length>o)&&r(`format.${i} must be text of at most ${o} characters.`);n.divisor!==void 0&&(h(n.divisor,"format.divisor"),n.divisor<=0&&r("format.divisor must be greater than 0.")),n.decimals!==void 0&&(!Number.isInteger(n.decimals)||n.decimals<0||n.decimals>4)&&r("format.decimals must be an integer from 0 to 4.")}let s=w($(e.steps,"steps",16,2),"steps");if(e.steps.forEach((n,i)=>{let o=`steps[${i}]`;if(m(n.label,`${o}.label`,24),g(n.kind,U,`${o}.kind`),h(n.value,`${o}.value`),n.kind!=="total"&&n.value<0&&r(`${o}.value must be a positive magnitude; use kind down for decreases.`),n.breakdown!==void 0){let d=n.breakdown;y(d)||r(`${o}.breakdown must be an object.`),u(d.title,`${o}.breakdown.title`,80),u(d.note,`${o}.breakdown.note`,300),$(d.items,`${o}.breakdown.items`,12),d.items.forEach((a,t)=>{m(a.label,`${o}.breakdown.items[${t}].label`,60),h(a.value,`${o}.breakdown.items[${t}].value`)})}}),e.initialStep!==void 0&&!s.has(e.initialStep)&&r(`initialStep ${e.initialStep} does not match a step id.`),e.axisFloor!==void 0){h(e.axisFloor,"axisFloor");let{spans:n}=N(e.steps);e.steps.forEach((i,o)=>{let[d,a]=n[o];(i.kind==="total"?a<=e.axisFloor:d<e.axisFloor)&&r(`axisFloor ${e.axisFloor} cuts steps[${o}] (${i.label}); lower it below ${i.kind==="total"?a:d}.`)})}}function B(e,s){return y(s)||r("Component data must be an object."),u(s.title,"title",120),e==="roadmap"?j(s):e==="waterfall"?Y(s):r(`Unknown plan component ${e}.`),s}export{c as a,M as b,T as c,I as d,W as e,N as f,_ as g,B as h};
@@ -0,0 +1,21 @@
1
+ import{a as b,c as N,f as Va,h as $a,i as Ya}from"./chunk-DUIGVKKG.js";var xt=b(l=>{"use strict";var Xa=Symbol.for("react.transitional.element"),Zu=Symbol.for("react.portal"),Ju=Symbol.for("react.fragment"),Qu=Symbol.for("react.strict_mode"),$u=Symbol.for("react.profiler"),Yu=Symbol.for("react.consumer"),ed=Symbol.for("react.context"),ad=Symbol.for("react.forward_ref"),td=Symbol.for("react.suspense"),od=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),ud=Symbol.for("react.activity"),dd=Symbol.for("react.view_transition"),ut=Symbol.iterator;function ld(e){return e===null||typeof e!="object"?null:(e=ut&&e[ut]||e["@@iterator"],typeof e=="function"?e:null)}var ft={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,ct={};function O(e,a,o){this.props=e,this.context=a,this.refs=ct,this.updater=o||ft}O.prototype.isReactComponent={};O.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nt(){}nt.prototype=O.prototype;function ja(e,a,o){this.props=e,this.context=a,this.refs=ct,this.updater=o||ft}var Ka=ja.prototype=new nt;Ka.constructor=ja;it(Ka,O.prototype);Ka.isPureReactComponent=!0;var dt=Array.isArray;function Na(){}var f={H:null,A:null,T:null,S:null},pt=Object.prototype.hasOwnProperty;function Za(e,a,o){var u=o.ref;return{$$typeof:Xa,type:e,key:a,ref:u!==void 0?u:null,props:o}}function rd(e,a){return Za(e.type,a,e.props)}function Ja(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xa}function sd(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return a[o]})}var lt=/\/+/g;function Wa(e,a){return typeof e=="object"&&e!==null&&e.key!=null?sd(""+e.key):a.toString(36)}function fd(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Na,Na):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function H(e,a,o,u,d){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xa:case Zu:s=!0;break;case st:return s=e._init,H(s(e._payload),a,o,u,d)}}if(s)return d=d(e),s=u===""?"."+Wa(e,0):u,dt(d)?(o="",s!=null&&(o=s.replace(lt,"$&/")+"/"),H(d,a,o,"",function(v){return v})):d!=null&&(Ja(d)&&(d=rd(d,o+(d.key==null||e&&e.key===d.key?"":(""+d.key).replace(lt,"$&/")+"/")+s)),a.push(d)),1;s=0;var c=u===""?".":u+":";if(dt(e))for(var i=0;i<e.length;i++)u=e[i],r=c+Wa(u,i),s+=H(u,a,o,r,d);else if(i=ld(e),typeof i=="function")for(e=i.call(e),i=0;!(u=e.next()).done;)u=u.value,r=c+Wa(u,i++),s+=H(u,a,o,r,d);else if(r==="object"){if(typeof e.then=="function")return H(fd(e),a,o,u,d);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return s}function X(e,a,o){if(e==null)return e;var u=[],d=0;return H(e,u,"","",function(r){return a.call(o,r,d++)}),u}function id(e){if(e._status===-1){var a=e._result,o=a();o.then(function(u){(e._status===0||e._status===-1)&&(e._status=1,e._result=u,o.status===void 0&&(o.status="fulfilled",o.value=u))},function(u){(e._status===0||e._status===-1)&&(e._status=2,e._result=u,o.status===void 0&&(o.status="rejected",o.reason=u))}),e._status===-1&&(e._status=0,e._result=o)}if(e._status===1)return e._result.default;throw e._result}var rt=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function mt(e){var a=f.T,o={};o.types=a!==null?a.types:null,f.T=o;try{var u=e(),d=f.S;d!==null&&d(o,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(Na,rt)}catch(r){rt(r)}finally{a!==null&&o.types!==null&&(a.types=o.types),f.T=a}}function Lt(e){var a=f.T;if(a!==null){var o=a.types;o===null?a.types=[e]:o.indexOf(e)===-1&&o.push(e)}else mt(Lt.bind(null,e))}var cd={map:X,forEach:function(e,a,o){X(e,function(){a.apply(this,arguments)},o)},count:function(e){var a=0;return X(e,function(){a++}),a},toArray:function(e){return X(e,function(a){return a})||[]},only:function(e){if(!Ja(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};l.Activity=ud;l.Children=cd;l.Component=O;l.Fragment=Ju;l.Profiler=$u;l.PureComponent=ja;l.StrictMode=Qu;l.Suspense=td;l.ViewTransition=dd;l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;l.__COMPILER_RUNTIME={__proto__:null,c:function(e){return f.H.useMemoCache(e)}};l.addTransitionType=Lt;l.cache=function(e){return function(){return e.apply(null,arguments)}};l.cacheSignal=function(){return null};l.cloneElement=function(e,a,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=it({},e.props),d=e.key;if(a!=null)for(r in a.key!==void 0&&(d=""+a.key),a)!pt.call(a,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&a.ref===void 0||(u[r]=a[r]);var r=arguments.length-2;if(r===1)u.children=o;else if(1<r){for(var s=Array(r),c=0;c<r;c++)s[c]=arguments[c+2];u.children=s}return Za(e.type,d,u)};l.createContext=function(e){return e={$$typeof:ed,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Yu,_context:e},e};l.createElement=function(e,a,o){var u,d={},r=null;if(a!=null)for(u in a.key!==void 0&&(r=""+a.key),a)pt.call(a,u)&&u!=="key"&&u!=="__self"&&u!=="__source"&&(d[u]=a[u]);var s=arguments.length-2;if(s===1)d.children=o;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];d.children=c}if(e&&e.defaultProps)for(u in s=e.defaultProps,s)d[u]===void 0&&(d[u]=s[u]);return Za(e,r,d)};l.createRef=function(){return{current:null}};l.forwardRef=function(e){return{$$typeof:ad,render:e}};l.isValidElement=Ja;l.lazy=function(e){return{$$typeof:st,_payload:{_status:-1,_result:e},_init:id}};l.memo=function(e,a){return{$$typeof:od,type:e,compare:a===void 0?null:a}};l.startTransition=mt;l.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};l.use=function(e){return f.H.use(e)};l.useActionState=function(e,a,o){return f.H.useActionState(e,a,o)};l.useCallback=function(e,a){return f.H.useCallback(e,a)};l.useContext=function(e){return f.H.useContext(e)};l.useDebugValue=function(){};l.useDeferredValue=function(e,a){return f.H.useDeferredValue(e,a)};l.useEffect=function(e,a){return f.H.useEffect(e,a)};l.useEffectEvent=function(e){return f.H.useEffectEvent(e)};l.useId=function(){return f.H.useId()};l.useImperativeHandle=function(e,a,o){return f.H.useImperativeHandle(e,a,o)};l.useInsertionEffect=function(e,a){return f.H.useInsertionEffect(e,a)};l.useLayoutEffect=function(e,a){return f.H.useLayoutEffect(e,a)};l.useMemo=function(e,a){return f.H.useMemo(e,a)};l.useOptimistic=function(e,a){return f.H.useOptimistic(e,a)};l.useReducer=function(e,a,o){return f.H.useReducer(e,a,o)};l.useRef=function(e){return f.H.useRef(e)};l.useState=function(e){return f.H.useState(e)};l.useSyncExternalStore=function(e,a,o){return f.H.useSyncExternalStore(e,a,o)};l.useTransition=function(){return f.H.useTransition()};l.version="19.3.0"});var U=b((Dd,It)=>{"use strict";It.exports=xt()});var vu=b(Oa=>{"use strict";var pd=Symbol.for("react.transitional.element"),md=Symbol.for("react.fragment");function Ru(e,a,o){var u=null;if(o!==void 0&&(u=""+o),a.key!==void 0&&(u=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:pd,type:e,key:u,ref:a!==void 0?a:null,props:o}}Oa.Fragment=md;Oa.jsx=Ru;Oa.jsxs=Ru});var Ld=b((Qn,qu)=>{"use strict";qu.exports=vu()});var Ou=b(n=>{"use strict";var xd=U();function Hu(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(){}var p={d:{f:C,r:function(){throw Error(Hu(522))},D:C,C,L:C,m:C,X:C,S:C,M:C},p:0,findDOMNode:null},Id=Symbol.for("react.portal"),hd=Symbol.for("react.recoverable"),bu=Symbol.for("react.optimistic_key");function Cd(e,a,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Id,key:u==null?null:u===bu?bu:""+u,children:e,containerInfo:a,implementation:o}}var V=xd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ua(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p;n.browser=function(e){return{$$typeof:hd,_reason:e}};n.createPortal=function(e,a){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(Hu(299));return Cd(e,a,null,o)};n.flushSync=function(e){var a=V.T,o=p.p;try{if(V.T=null,p.p=2,e)return e()}finally{V.T=a,p.p=o,p.d.f()}};n.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,p.d.C(e,a))};n.prefetchDNS=function(e){typeof e=="string"&&p.d.D(e)};n.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var o=a.as,u=Ua(o,a.crossOrigin),d=typeof a.integrity=="string"?a.integrity:void 0,r=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;o==="style"?p.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:u,integrity:d,fetchPriority:r}):o==="script"&&p.d.X(e,{crossOrigin:u,integrity:d,fetchPriority:r,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};n.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var o=Ua(a.as,a.crossOrigin);p.d.M(e,{crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0})}}else a==null&&p.d.M(e)};n.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var o=a.as,u=Ua(o,a.crossOrigin);p.d.L(e,o,{crossOrigin:u,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};n.preloadModule=function(e,a){if(typeof e=="string")if(a){var o=Ua(a.as,a.crossOrigin);p.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0})}else p.d.m(e)};n.requestFormReset=function(e){p.d.r(e)};n.unstable_batchedUpdates=function(e,a){return e(a)};n.useFormState=function(e,a,o){return V.H.useFormState(e,a,o)};n.useFormStatus=function(){return V.H.useHostTransitionStatus()};n.version="19.3.0"});var gd=b((Yn,zu)=>{"use strict";function Uu(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uu)}catch(e){console.error(e)}}Uu(),zu.exports=Ou()});function et(e){return e.replace(/@charset[^;]+;/g,"").replaceAll(":root",":scope").replace(/(?<![\w-])(?:html|body)(?=[,{])/g,":scope")}var Ku=`.portable-document { max-width: none; padding: 24px 0 12px; }
2
+ .portable-title { padding-right: 96px; font-size: 28px; margin-bottom: 24px; }
3
+ .portable-options { display: none; }
4
+ .portable-app { min-height: 0; }
5
+ .portable-app:has(> .container-workspace > .container-main > .container-page.is-root),
6
+ .portable-app > .container-workspace:has(> .container-main > .container-page.is-root) {
7
+ height: auto;
8
+ }
9
+ .portable-app > .container-workspace > .container-main:has(> .container-page.is-root) {
10
+ flex: none;
11
+ }
12
+ .portable-app > .container-workspace > .container-main > .container-page.is-root {
13
+ height: auto;
14
+ overflow: visible;
15
+ overscroll-behavior: auto;
16
+ scrollbar-gutter: auto;
17
+ }`;function at(e,a){return`@scope (#${e}) {
18
+ ${a}
19
+ ${Ku}
20
+ }`}var tt=[],Ga=new Set;function ot({root:e,scoped:a},o){let u=e.ownerDocument.createElement("style");u.dataset.showaiReaderStyle=e.id,u.textContent=a?at(e.id,et(o)):o,(a?e:e.ownerDocument.head).append(u)}function wd(e){tt.push(e);for(let a of Ga)ot(a,e)}function Pd(e,{scoped:a=!0}={}){let o={root:e,scoped:a};Ga.add(o);for(let u of tt)ot(o,u);return()=>{Ga.delete(o),e.ownerDocument.querySelectorAll(`style[data-showai-reader-style="${e.id}"]`).forEach(u=>u.remove())}}var j=N(U(),1);var ht=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Ct(e,a,o=[]){if(a==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:ht(e),size:24,node:a,...o.length>0?{aliases:o}:{}}}var gt=e=>{let a="",o=!1;for(let u of e){if(u==="-"||u==="_"||u<=" "){o=a.length>0;continue}a.length===0?a+=u.toLowerCase():a+=o?u.toUpperCase():u,o=!1}return a};var St=e=>{let a=gt(e);return a.charAt(0).toUpperCase()+a.slice(1)};var E=N(U(),1);var _=(...e)=>e.filter((a,o,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===o).join(" ").trim();var x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Qa(e){return e!=null}function kt(e,a={}){let o=a.attributeNames??{},u=m=>o[m]??m,d=e.size??e.width??x.width,r=e.size??e.height??x.height,s=e.aliases?.filter(m=>typeof m=="string"&&m.trim()!=="").map(m=>`lucide-${m}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...s],i=a.className?.split(" ").filter(Boolean)??[],v=a.includeDefaultClasses===!1?_(...i):_("lucide",...c,...i),_a=a.absoluteStrokeWidth?Number(a.strokeWidth??x["stroke-width"])*Number(e.size??e.width??x.width)/Number(a.size??a.width??x.width):a.strokeWidth??x["stroke-width"];return["svg",{...Object.entries(x).reduce((m,[g,q])=>(m[u(g)]=q,m),{}),..."color"in a&&a.color&&{[u("stroke")]:a.color},..."size"in a&&Qa(a.size)&&{[u("width")]:a.size,[u("height")]:a.size},..."width"in a&&Qa(a.width)&&{[u("width")]:a.width},..."height"in a&&Qa(a.height)&&{[u("height")]:a.height},[u("stroke-width")]:_a,...v&&{[u("class")]:v},[u("viewBox")]:`0 0 ${d} ${r}`,...a.hasA11yProp===!1?{[u("aria-hidden")]:"true"}:{},..."attributes"in a&&a.attributes},e.node.map(m=>{let[g,q,G]=m,W=a.nonScalingStroke?{[u("vector-effect")]:"non-scaling-stroke",...q}:q;return G?[g,W,G]:[g,W]})]}function yt(e,a={}){return kt(e,{...a,attributeNames:{...a.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var wt=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};var z=N(U(),1);var nd=(0,z.createContext)({});var Pt=()=>(0,z.useContext)(nd);var Mt=(0,E.forwardRef)(({color:e,size:a,width:o,height:u,strokeWidth:d,absoluteStrokeWidth:r,nonScalingStroke:s,className:c="",children:i,iconNode:v=[],icon:_a={node:v,aliases:[],size:24},...Ea},m)=>{let{size:g=24,strokeWidth:q=2,absoluteStrokeWidth:G=!1,nonScalingStroke:W=!1,color:_u="currentColor",className:Eu=""}=Pt()??{},Vu=!!i||wt(Ea),[Gu,Wu,Nu=[]]=yt(_a,{color:e??_u,width:o??a??g,height:u??a??g,strokeWidth:d??q,absoluteStrokeWidth:r??G,nonScalingStroke:s??W,className:_(Eu,c),hasA11yProp:Vu,attributes:Ea});return(0,E.createElement)(Gu,{ref:m,...Wu},[...Nu.map(([Xu,ju])=>(0,E.createElement)(Xu,ju)),...Array.isArray(i)?i:[i]])});function t(e,a=[],o=[]){let u=typeof e=="string"?Ct(e,a,o):e,d=(0,j.forwardRef)(({className:r,...s},c)=>(0,j.createElement)(Mt,{ref:c,icon:u,className:r,...s}));return u.name&&(d.displayName=St(u.name)),d}var At={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};At.node;var K=t(At);var Dt={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Dt.node;var Z=t(Dt);var Bt={name:"chart-column",size:24,node:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],aliases:["bar-chart-3"]};Bt.node;var S=t(Bt);var Tt={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Tt.node;var J=t(Tt);var Ft={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Ft.node;var Q=t(Ft);var Rt={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Rt.node;var $=t(Rt);var vt={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};vt.node;var Y=t(vt);var qt={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};qt.node;var I=t(qt);var bt={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};bt.node;var ee=t(bt);var Ht={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};Ht.node;var ae=t(Ht);var Ot={name:"expand",size:24,node:[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]};Ot.node;var te=t(Ot);var Ut={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};Ut.node;var oe=t(Ut);var zt={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};zt.node;var ue=t(zt);var _t={name:"heading-1",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]};_t.node;var de=t(_t);var Et={name:"heading-2",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]};Et.node;var le=t(Et);var Vt={name:"heading-3",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]};Vt.node;var re=t(Vt);var Gt={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};Gt.node;var se=t(Gt);var Wt={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};Wt.node;var fe=t(Wt);var Nt={name:"list-ordered",size:24,node:[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]};Nt.node;var ie=t(Nt);var Xt={name:"list-tree",size:24,node:[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]};Xt.node;var ce=t(Xt);var jt={name:"list",size:24,node:[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]};jt.node;var ne=t(jt);var Kt={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};Kt.node;var pe=t(Kt);var Zt={name:"message-square-quote",size:24,node:[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]]};Zt.node;var me=t(Zt);var Jt={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};Jt.node;var Le=t(Jt);var Qt={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};Qt.node;var xe=t(Qt);var $t={name:"panel-top",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]};$t.node;var Ie=t($t);var Yt={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Yt.node;var he=t(Yt);var eo={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};eo.node;var Ce=t(eo);var ao={name:"quote",size:24,node:[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]};ao.node;var ge=t(ao);var to={name:"redo-2",size:24,node:[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]};to.node;var Se=t(to);var oo={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};oo.node;var ke=t(oo);var uo={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};uo.node;var k=t(uo);var lo={name:"square-check-big",size:24,node:[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-square"]};lo.node;var y=t(lo);var ro={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};ro.node;var ye=t(ro);var so={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};so.node;var we=t(so);var fo={name:"text-align-center",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],aliases:["align-center"]};fo.node;var w=t(fo);var io={name:"text-align-end",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],aliases:["align-right"]};io.node;var P=t(io);var co={name:"text-align-start",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],aliases:["text","align-left"]};co.node;var L=t(co);var no={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};no.node;var M=t(no);var po={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};po.node;var Pe=t(po);var mo={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};mo.node;var Me=t(mo);var Lo={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};Lo.node;var Ae=t(Lo);var xo={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};xo.node;var De=t(xo);var Io={name:"align-center-horizontal",size:24,node:[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]]};Io.node;var Be=t(Io);var ho={name:"align-center-vertical",size:24,node:[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]};ho.node;var Te=t(ho);var Co={name:"align-end-horizontal",size:24,node:[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]};Co.node;var Fe=t(Co);var go={name:"align-end-vertical",size:24,node:[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]};go.node;var Re=t(go);var So={name:"align-horizontal-distribute-center",size:24,node:[["rect",{width:"6",height:"14",x:"4",y:"5",rx:"2",key:"1wwnby"}],["rect",{width:"6",height:"10",x:"14",y:"7",rx:"2",key:"1fe6j6"}],["path",{d:"M17 22v-5",key:"4b6g73"}],["path",{d:"M17 7V2",key:"hnrr36"}],["path",{d:"M7 22v-3",key:"1r4jpn"}],["path",{d:"M7 5V2",key:"liy1u9"}]]};So.node;var ve=t(So);var ko={name:"align-start-horizontal",size:24,node:[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]};ko.node;var qe=t(ko);var yo={name:"align-start-vertical",size:24,node:[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]};yo.node;var be=t(yo);var wo={name:"align-vertical-distribute-center",size:24,node:[["path",{d:"M22 17h-3",key:"1lwga1"}],["path",{d:"M22 7h-5",key:"o2endc"}],["path",{d:"M5 17H2",key:"1gx9xc"}],["path",{d:"M7 7H2",key:"6bq26l"}],["rect",{x:"5",y:"14",width:"14",height:"6",rx:"2",key:"1qrzuf"}],["rect",{x:"7",y:"4",width:"10",height:"6",rx:"2",key:"we8e9z"}]]};wo.node;var He=t(wo);var Po={name:"arrow-down-right",size:24,node:[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]};Po.node;var Oe=t(Po);var Mo={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Mo.node;var Ue=t(Mo);var Ao={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Ao.node;var ze=t(Ao);var Do={name:"bold",size:24,node:[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]};Do.node;var _e=t(Do);var Bo={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};Bo.node;var Ee=t(Bo);var To={name:"bookmark-plus",size:24,node:[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};To.node;var Ve=t(To);var Fo={name:"bookmark",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};Fo.node;var Ge=t(Fo);var Ro={name:"bring-to-front",size:24,node:[["rect",{x:"8",y:"8",width:"8",height:"8",rx:"2",key:"yj20xf"}],["path",{d:"M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2",key:"1ltk23"}],["path",{d:"M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2",key:"1q24h9"}]]};Ro.node;var We=t(Ro);var vo={name:"chart-no-axes-combined",size:24,node:[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14.639V21",key:"1s85h0"}],["path",{d:"M20 10.656V21",key:"q45596"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18.463V21",key:"1otddq"}],["path",{d:"M8 14.656V21",key:"1t2idw"}]]};vo.node;var Ne=t(vo);var qo={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};qo.node;var Xe=t(qo);var bo={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};bo.node;var je=t(bo);var Ho={name:"clipboard",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]};Ho.node;var Ke=t(Ho);var Oo={name:"code",size:24,node:[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]};Oo.node;var Ze=t(Oo);var Uo={name:"columns-3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],aliases:["panels-left-right"]};Uo.node;var A=t(Uo);var zo={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};zo.node;var Je=t(zo);var _o={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};_o.node;var D=t(_o);var Eo={name:"eraser",size:24,node:[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]};Eo.node;var Qe=t(Eo);var Vo={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};Vo.node;var B=t(Vo);var Go={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};Go.node;var $e=t(Go);var Wo={name:"flask-conical",size:24,node:[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]};Wo.node;var Ye=t(Wo);var No={name:"focus",size:24,node:[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]};No.node;var ea=t(No);var Xo={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};Xo.node;var aa=t(Xo);var jo={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};jo.node;var ta=t(jo);var Ko={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};Ko.node;var T=t(Ko);var Zo={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};Zo.node;var oa=t(Zo);var Jo={name:"grip-horizontal",size:24,node:[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]};Jo.node;var ua=t(Jo);var Qo={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};Qo.node;var da=t(Qo);var $o={name:"highlighter",size:24,node:[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]};$o.node;var la=t($o);var Yo={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};Yo.node;var ra=t(Yo);var eu={name:"italic",size:24,node:[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]};eu.node;var sa=t(eu);var au={name:"lasso",size:24,node:[["path",{d:"M3.704 14.467a10 8 0 1 1 3.115 2.375",key:"wxgc5m"}],["path",{d:"M7 22a5 5 0 0 1-2-3.994",key:"1xp6a4"}],["circle",{cx:"5",cy:"16",r:"2",key:"18csp3"}]]};au.node;var fa=t(au);var tu={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};tu.node;var ia=t(tu);var ou={name:"layout-list",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]};ou.node;var ca=t(ou);var uu={name:"lock-keyhole-open",size:24,node:[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]],aliases:["unlock-keyhole"]};uu.node;var h=t(uu);var du={name:"lock-keyhole",size:24,node:[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]};du.node;var na=t(du);var lu={name:"map",size:24,node:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]};lu.node;var pa=t(lu);var ru={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};ru.node;var ma=t(ru);var su={name:"mouse-pointer-2",size:24,node:[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]};su.node;var La=t(su);var fu={name:"music-2",size:24,node:[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]};fu.node;var xa=t(fu);var iu={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};iu.node;var Ia=t(iu);var cu={name:"pin",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]};cu.node;var ha=t(cu);var nu={name:"printer",size:24,node:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]};nu.node;var Ca=t(nu);var pu={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};pu.node;var ga=t(pu);var mu={name:"ruler",size:24,node:[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]};mu.node;var Sa=t(mu);var Lu={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};Lu.node;var ka=t(Lu);var xu={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};xu.node;var ya=t(xu);var Iu={name:"send-to-back",size:24,node:[["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}],["path",{d:"M7 14v1a2 2 0 0 0 2 2h1",key:"pao6x6"}],["path",{d:"M14 7h1a2 2 0 0 1 2 2v1",key:"19tdru"}]]};Iu.node;var wa=t(Iu);var hu={name:"settings-2",size:24,node:[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]};hu.node;var Pa=t(hu);var Cu={name:"square-dashed",size:24,node:[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],aliases:["box-select"]};Cu.node;var F=t(Cu);var gu={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};gu.node;var Ma=t(gu);var Su={name:"strikethrough",size:24,node:[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]};Su.node;var Aa=t(Su);var ku={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};ku.node;var Da=t(ku);var yu={name:"table-cells-merge",size:24,node:[["path",{d:"M12 21v-6",key:"lihzve"}],["path",{d:"M12 9V3",key:"da5inc"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};yu.node;var Ba=t(yu);var wu={name:"table-columns-split",size:24,node:[["path",{d:"M14 14v2",key:"w2a1xv"}],["path",{d:"M14 20v2",key:"1lq872"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M14 8v2",key:"i67w9a"}],["path",{d:"M2 15h8",key:"82wtch"}],["path",{d:"M2 3h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2",key:"up0l64"}],["path",{d:"M2 9h8",key:"yelfik"}],["path",{d:"M22 15h-4",key:"1es58f"}],["path",{d:"M22 3h-2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h2",key:"pdjoqf"}],["path",{d:"M22 9h-4",key:"1luja7"}],["path",{d:"M5 3v18",key:"14hmio"}]]};wu.node;var Ta=t(wu);var Pu={name:"table-cells-split",size:24,node:[["path",{d:"M12 15V9",key:"8c7uyn"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};Pu.node;var Fa=t(Pu);var Mu={name:"table-properties",size:24,node:[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]};Mu.node;var Ra=t(Mu);var Au={name:"table-rows-split",size:24,node:[["path",{d:"M14 10h2",key:"1lstlu"}],["path",{d:"M15 22v-8",key:"1fwwgm"}],["path",{d:"M15 2v4",key:"1044rn"}],["path",{d:"M2 10h2",key:"1r8dkt"}],["path",{d:"M20 10h2",key:"1ug425"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"M3 22v-6a2 2 135 0 1 2-2h14a2 2 45 0 1 2 2v6",key:"ibqhof"}],["path",{d:"M3 2v2a2 2 45 0 0 2 2h14a2 2 135 0 0 2-2V2",key:"1uenja"}],["path",{d:"M8 10h2",key:"66od0"}],["path",{d:"M9 22v-8",key:"fmnu31"}],["path",{d:"M9 2v4",key:"j1yeou"}]]};Au.node;var va=t(Au);var Du={name:"text-align-justify",size:24,node:[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],aliases:["align-justify"]};Du.node;var R=t(Du);var Bu={name:"underline",size:24,node:[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]};Bu.node;var qa=t(Bu);var Tu={name:"ungroup",size:24,node:[["rect",{x:"11",y:"14",width:"10",height:"7",rx:"2",key:"nfm8rk"}],["rect",{x:"3",y:"3",width:"10",height:"7",rx:"2",key:"1ljebb"}]]};Tu.node;var ba=t(Tu);var Fu={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};Fu.node;var Ha=t(Fu);var za=N(U(),1);function Sd(){return(0,za.useSyncExternalStore)($a,Va,Va)}function tp(e){let a=Sd();return(0,za.useMemo)(()=>Ya(e),[e,a])}export{wd as a,Pd as b,U as c,Be as d,Te as e,Fe as f,Re as g,ve as h,qe as i,be as j,He as k,Oe as l,K as m,Ue as n,ze as o,Z as p,_e as q,Ee as r,Ve as s,Ge as t,We as u,S as v,Ne as w,J as x,Q as y,$ as z,Y as A,Xe as B,je as C,Ke as D,I as E,Ze as F,A as G,ee as H,Je as I,ae as J,D as K,Qe as L,te as M,oe as N,B as O,$e as P,Ye as Q,ea as R,aa as S,ta as T,T as U,oa as V,ua as W,ue as X,da as Y,de as Z,le as _,re as $,la as aa,se as ba,ra as ca,sa as da,fa as ea,ia as fa,ca as ga,fe as ha,ie as ia,ce as ja,ne as ka,h as la,na as ma,pa as na,pe as oa,me as pa,Le as qa,ma as ra,La as sa,xa as ta,xe as ua,Ie as va,Ia as wa,ha as xa,he as ya,Ce as za,Ca as Aa,ga as Ba,ge as Ca,Se as Da,ke as Ea,Sa as Fa,ka as Ga,ya as Ha,wa as Ia,Pa as Ja,k as Ka,y as La,F as Ma,ye as Na,Ma as Oa,Aa as Pa,Da as Qa,we as Ra,Ba as Sa,Ta,Fa as Ua,Ra as Va,va as Wa,w as Xa,P as Ya,R as Za,L as _a,M as $a,Pe as ab,qa as bb,Me as cb,ba as db,Ae as eb,Ha as fb,De as gb,Ld as hb,gd as ib,Sd as jb,tp as kb};
21
+ /*! For license information please see chunk-3YAYFUS4.js.LEGAL.txt */
@@ -47,13 +47,12 @@ lucide-react/dist/esm/Icon.mjs:
47
47
  lucide-react/dist/esm/createLucideIcon.mjs:
48
48
  lucide-react/dist/esm/icons/arrow-down.mjs:
49
49
  lucide-react/dist/esm/icons/arrow-up.mjs:
50
- lucide-react/dist/esm/icons/bold.mjs:
51
50
  lucide-react/dist/esm/icons/chart-column.mjs:
52
51
  lucide-react/dist/esm/icons/check.mjs:
53
52
  lucide-react/dist/esm/icons/chevron-down.mjs:
54
53
  lucide-react/dist/esm/icons/chevron-right.mjs:
54
+ lucide-react/dist/esm/icons/chevron-left.mjs:
55
55
  lucide-react/dist/esm/icons/code-xml.mjs:
56
- lucide-react/dist/esm/icons/code.mjs:
57
56
  lucide-react/dist/esm/icons/copy.mjs:
58
57
  lucide-react/dist/esm/icons/download.mjs:
59
58
  lucide-react/dist/esm/icons/expand.mjs:
@@ -62,9 +61,7 @@ lucide-react/dist/esm/icons/grip-vertical.mjs:
62
61
  lucide-react/dist/esm/icons/heading-1.mjs:
63
62
  lucide-react/dist/esm/icons/heading-2.mjs:
64
63
  lucide-react/dist/esm/icons/heading-3.mjs:
65
- lucide-react/dist/esm/icons/highlighter.mjs:
66
64
  lucide-react/dist/esm/icons/image-plus.mjs:
67
- lucide-react/dist/esm/icons/italic.mjs:
68
65
  lucide-react/dist/esm/icons/link-2.mjs:
69
66
  lucide-react/dist/esm/icons/list-ordered.mjs:
70
67
  lucide-react/dist/esm/icons/list-tree.mjs:
@@ -79,28 +76,39 @@ lucide-react/dist/esm/icons/plus.mjs:
79
76
  lucide-react/dist/esm/icons/quote.mjs:
80
77
  lucide-react/dist/esm/icons/redo-2.mjs:
81
78
  lucide-react/dist/esm/icons/rotate-ccw.mjs:
79
+ lucide-react/dist/esm/icons/sparkles.mjs:
82
80
  lucide-react/dist/esm/icons/square-check-big.mjs:
83
81
  lucide-react/dist/esm/icons/square.mjs:
84
- lucide-react/dist/esm/icons/strikethrough.mjs:
85
82
  lucide-react/dist/esm/icons/table-2.mjs:
86
83
  lucide-react/dist/esm/icons/text-align-center.mjs:
87
84
  lucide-react/dist/esm/icons/text-align-end.mjs:
88
85
  lucide-react/dist/esm/icons/text-align-start.mjs:
89
86
  lucide-react/dist/esm/icons/trash.mjs:
90
87
  lucide-react/dist/esm/icons/type.mjs:
91
- lucide-react/dist/esm/icons/underline.mjs:
92
88
  lucide-react/dist/esm/icons/undo-2.mjs:
93
89
  lucide-react/dist/esm/icons/upload.mjs:
94
90
  lucide-react/dist/esm/icons/x.mjs:
91
+ lucide-react/dist/esm/icons/align-center-horizontal.mjs:
92
+ lucide-react/dist/esm/icons/align-center-vertical.mjs:
93
+ lucide-react/dist/esm/icons/align-end-horizontal.mjs:
94
+ lucide-react/dist/esm/icons/align-end-vertical.mjs:
95
+ lucide-react/dist/esm/icons/align-horizontal-distribute-center.mjs:
96
+ lucide-react/dist/esm/icons/align-start-horizontal.mjs:
97
+ lucide-react/dist/esm/icons/align-start-vertical.mjs:
98
+ lucide-react/dist/esm/icons/align-vertical-distribute-center.mjs:
95
99
  lucide-react/dist/esm/icons/arrow-down-right.mjs:
96
100
  lucide-react/dist/esm/icons/arrow-left.mjs:
97
101
  lucide-react/dist/esm/icons/arrow-up-right.mjs:
102
+ lucide-react/dist/esm/icons/bold.mjs:
98
103
  lucide-react/dist/esm/icons/book-open.mjs:
99
104
  lucide-react/dist/esm/icons/bookmark-plus.mjs:
100
105
  lucide-react/dist/esm/icons/bookmark.mjs:
106
+ lucide-react/dist/esm/icons/bring-to-front.mjs:
101
107
  lucide-react/dist/esm/icons/chart-no-axes-combined.mjs:
102
- lucide-react/dist/esm/icons/chevron-left.mjs:
108
+ lucide-react/dist/esm/icons/chevron-up.mjs:
103
109
  lucide-react/dist/esm/icons/circle.mjs:
110
+ lucide-react/dist/esm/icons/clipboard.mjs:
111
+ lucide-react/dist/esm/icons/code.mjs:
104
112
  lucide-react/dist/esm/icons/columns-3.mjs:
105
113
  lucide-react/dist/esm/icons/database.mjs:
106
114
  lucide-react/dist/esm/icons/ellipsis.mjs:
@@ -115,31 +123,39 @@ lucide-react/dist/esm/icons/funnel.mjs:
115
123
  lucide-react/dist/esm/icons/gauge.mjs:
116
124
  lucide-react/dist/esm/icons/grip-horizontal.mjs:
117
125
  lucide-react/dist/esm/icons/hand.mjs:
126
+ lucide-react/dist/esm/icons/highlighter.mjs:
118
127
  lucide-react/dist/esm/icons/images.mjs:
128
+ lucide-react/dist/esm/icons/italic.mjs:
119
129
  lucide-react/dist/esm/icons/lasso.mjs:
120
130
  lucide-react/dist/esm/icons/layout-dashboard.mjs:
121
131
  lucide-react/dist/esm/icons/layout-list.mjs:
122
132
  lucide-react/dist/esm/icons/lock-keyhole-open.mjs:
123
133
  lucide-react/dist/esm/icons/lock-keyhole.mjs:
134
+ lucide-react/dist/esm/icons/map.mjs:
124
135
  lucide-react/dist/esm/icons/moon.mjs:
125
136
  lucide-react/dist/esm/icons/mouse-pointer-2.mjs:
126
137
  lucide-react/dist/esm/icons/music-2.mjs:
127
- lucide-react/dist/esm/icons/panels-top-left.mjs:
128
138
  lucide-react/dist/esm/icons/pencil.mjs:
129
139
  lucide-react/dist/esm/icons/pin.mjs:
130
140
  lucide-react/dist/esm/icons/printer.mjs:
131
141
  lucide-react/dist/esm/icons/puzzle.mjs:
132
142
  lucide-react/dist/esm/icons/ruler.mjs:
143
+ lucide-react/dist/esm/icons/scissors.mjs:
133
144
  lucide-react/dist/esm/icons/search.mjs:
145
+ lucide-react/dist/esm/icons/send-to-back.mjs:
134
146
  lucide-react/dist/esm/icons/settings-2.mjs:
135
147
  lucide-react/dist/esm/icons/square-dashed.mjs:
136
148
  lucide-react/dist/esm/icons/star.mjs:
149
+ lucide-react/dist/esm/icons/strikethrough.mjs:
137
150
  lucide-react/dist/esm/icons/sun.mjs:
138
151
  lucide-react/dist/esm/icons/table-cells-merge.mjs:
139
152
  lucide-react/dist/esm/icons/table-columns-split.mjs:
140
153
  lucide-react/dist/esm/icons/table-cells-split.mjs:
141
154
  lucide-react/dist/esm/icons/table-properties.mjs:
142
155
  lucide-react/dist/esm/icons/table-rows-split.mjs:
156
+ lucide-react/dist/esm/icons/text-align-justify.mjs:
157
+ lucide-react/dist/esm/icons/underline.mjs:
158
+ lucide-react/dist/esm/icons/ungroup.mjs:
143
159
  lucide-react/dist/esm/icons/video.mjs:
144
160
  lucide-react/dist/esm/lucide-react.mjs:
145
161
  /**
@@ -0,0 +1 @@
1
+ var r=n=>{throw new Error(n)},b=n=>!!n&&typeof n=="object"&&!Array.isArray(n);function c(n,t){(typeof n!="string"||!n.trim())&&r(`${t} must be non-empty text.`)}function a(n,t){n!==void 0&&c(n,t)}function $(n,t,e,s=0){return(!Array.isArray(n)||n.length<s||n.length>e)&&r(`${t} must be an array of ${s} to ${e} items.`),n.forEach((o,i)=>{b(o)||r(`${t}[${i}] must be an object.`)}),n}function d(n,t,e){c(t,e),n.has(t)&&r(`${e} duplicates id ${t}.`),n.add(t)}function y(n,t){n!==void 0&&!u.includes(n)&&r(`${t} must be one of ${u.join(", ")}.`)}var u=["accent","teal","orange","violet","rose","slate"],x=["accent","teal","violet","orange","rose","slate"],m=["call","reply","note"],p={actors:8,steps:40},h={layers:8,modules:12};function g(n){a(n.description,"description");let t=new Set;$(n.actors,"actors",p.actors,1).forEach((e,s)=>{let o=`actors[${s}]`;d(t,e.id,`${o}.id`),c(e.label,`${o}.label`),a(e.sub,`${o}.sub`),a(e.icon,`${o}.icon`),e.icon!==void 0&&Array.from(e.icon).length>8&&r(`${o}.icon must be a single emoji or short symbol.`),y(e.tone,`${o}.tone`)}),$(n.steps,"steps",p.steps,1).forEach((e,s)=>{let o=`steps[${s}]`;for(let i of["from","to"])c(e[i],`${o}.${i}`),t.has(e[i])||r(`${o}.${i} ${e[i]} does not match an actor id.`);c(e.label,`${o}.label`),a(e.detail,`${o}.detail`),e.kind!==void 0&&!m.includes(e.kind)&&r(`${o}.kind must be one of ${m.join(", ")}.`)})}function S(n){a(n.caption,"caption");let t=new Set,e=new Set;$(n.layers,"layers",h.layers,1).forEach((s,o)=>{let i=`layers[${o}]`;d(t,s.id,`${i}.id`),c(s.name,`${i}.name`),a(s.sub,`${i}.sub`),y(s.tone,`${i}.tone`),$(s.modules,`${i}.modules`,h.modules).forEach((f,E)=>{let l=`${i}.modules[${E}]`;d(e,f.id,`${l}.id`),c(f.name,`${l}.name`),a(f.path,`${l}.path`),a(f.detail,`${l}.detail`)})}),n.initial!==void 0&&(c(n.initial,"initial"),e.has(n.initial)||r(`initial ${n.initial} does not match a module id.`))}function A(n,t){return b(t)||r("Component data must be an object."),a(t.title,"title"),n==="sequence-diagram"?g(t):n==="layer-diagram"?S(t):r(`Unknown diagram component ${n}.`),t}function j(n){return typeof n!="string"?[]:n.split(/\n+/).map(t=>t.trim()).filter(Boolean)}export{u as a,x as b,A as c,j as d};
@@ -0,0 +1 @@
1
+ import{d as p}from"./chunk-BJ2PXDYC.js";var r=t=>{throw new Error(t)},h=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function l(t,i,o){(typeof t!="string"||!t.trim())&&r(`${i} must be non-empty text.`),t.length>o&&r(`${i} must be at most ${o} characters.`)}function a(t,i,o){t!==void 0&&l(t,i,o)}function g(t,i){(typeof t!="string"||!t.trim())&&r(`${i} must be non-empty code.`),t.length>8e3&&r(`${i} must be at most 8000 characters.`)}function b(t,i,o,e,f=!1){(typeof t!="number"||!Number.isFinite(t)||(f?t<=o:t<o)||t>e)&&r(`${i} must be a number ${f?"above":"of at least"} ${o} and at most ${e}.`)}function y(t,i,o,e){(!Number.isInteger(t)||t<o||t>e)&&r(`${i} must be an integer from ${o} to ${e}.`)}function m(t,i,o,e=0){return(!Array.isArray(t)||t.length<e||t.length>o)&&r(`${i} must be an array of ${e} to ${o} items.`),t.forEach((f,n)=>{h(f)||r(`${i}[${n}] must be an object.`)}),t}function u(t,i,o){for(let e of Object.keys(t))i.includes(e)||r(`${o}.${e} is not a known field.`)}var w=["list","focus"],S=["active","wait"],x=["id","title","short","badge","body","code","lang","variants","note","result","cue","wait","timer","segments"];function E(t){a(t.description,"description",600),t.layout!==void 0&&!w.includes(t.layout)&&r(`layout must be one of ${w.join(", ")}.`),t.start!==void 0&&y(t.start,"start",0,999);let i=m(t.steps,"steps",40,1);t.initialStep!==void 0&&y(t.initialStep,"initialStep",0,i.length-1);let o=new Set;i.forEach((e,f)=>{let n=`steps[${f}]`;u(e,x,n),e.id!==void 0&&(l(e.id,`${n}.id`,64),o.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),o.add(e.id)),l(e.title,`${n}.title`,160),a(e.short,`${n}.short`,24),a(e.badge,`${n}.badge`,24),a(e.body,`${n}.body`,3e3);for(let s of["note","result","cue","wait"])a(e[s],`${n}.${s}`,600);if(a(e.lang,`${n}.lang`,24),e.code!==void 0&&g(e.code,`${n}.code`),e.variants!==void 0){e.code!==void 0&&r(`${n} uses either code or variants, not both.`);let s=new Set;m(e.variants,`${n}.variants`,6,1).forEach((c,d)=>{let $=`${n}.variants[${d}]`;u(c,["label","code","lang"],$),l(c.label,`${$}.label`,32),s.has(c.label)&&r(`${$}.label duplicates ${c.label}.`),s.add(c.label),g(c.code,`${$}.code`),a(c.lang,`${$}.lang`,24)})}e.timer!==void 0&&(h(e.timer)||r(`${n}.timer must be an object.`),u(e.timer,["minutes","label"],`${n}.timer`),b(e.timer.minutes,`${n}.timer.minutes`,0,1440,!0),a(e.timer.label,`${n}.timer.label`,40)),e.segments!==void 0&&m(e.segments,`${n}.segments`,8,1).forEach((s,c)=>{let d=`${n}.segments[${c}]`;u(s,["start","minutes","kind"],d),b(s.start,`${d}.start`,0,1e4),b(s.minutes,`${d}.minutes`,0,1e4,!0),S.includes(s.kind)||r(`${d}.kind must be one of ${S.join(", ")}.`)})})}function k(t){a(t.description,"description",600),a(t.placeholder,"placeholder",60),a(t.program,"program",40),t.program!==void 0&&/\s/.test(t.program)&&r("program must be a single word.");let i=new Set;m(t.groups,"groups",16,1).forEach((e,f)=>{let n=`groups[${f}]`;u(e,["id","label"],n),l(e.id,`${n}.id`,64),i.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),i.add(e.id),l(e.label,`${n}.label`,24)});let o=new Set;m(t.commands,"commands",300,1).forEach((e,f)=>{let n=`commands[${f}]`;if(u(e,["id","group","command","summary","detail","params","examples"],n),e.id!==void 0&&(l(e.id,`${n}.id`,64),o.has(e.id)&&r(`${n}.id duplicates ${e.id}.`),o.add(e.id)),l(e.group,`${n}.group`,64),i.has(e.group)||r(`${n}.group ${e.group} does not match a group id.`),l(e.command,`${n}.command`,240),l(e.summary,`${n}.summary`,240),a(e.detail,`${n}.detail`,3e3),e.params!==void 0){let s=new Set;m(e.params,`${n}.params`,40,1).forEach((c,d)=>{let $=`${n}.params[${d}]`;u(c,["name","meaning"],$),l(c.name,`${$}.name`,80),s.has(c.name)&&r(`${$}.name duplicates ${c.name}.`),s.add(c.name),l(c.meaning,`${$}.meaning`,400)})}e.examples!==void 0&&m(e.examples,`${n}.examples`,6,1).forEach((s,c)=>{let d=`${n}.examples[${c}]`;u(s,["label","code"],d),a(s.label,`${d}.label`,40),g(s.code,`${d}.code`)})})}function T(t,i){return h(i)||r("Component data must be an object."),a(i.title,"title",120),t==="step-guide"?E(i):t==="command-reference"?k(i):r(`Unknown doc reference component ${t}.`),i}function A(t){let i=0,o=0,e=0;for(let f of t)for(let n of f.segments??[])n.kind==="active"?i+=n.minutes:o+=n.minutes,e=Math.max(e,n.start+n.minutes);return{active:i,wait:o,total:e}}function C(t){if(!(t>0))return[];let i=[5,10,15,30,60,120,240,480].find(e=>t/e<=8)??Math.ceil(t/8/60)*60,o=[];for(let e=0;e<=t;e+=i)o.push(e);return o}function O(t){return[...new Set(t.toLowerCase().split(/\s+/).filter(Boolean))]}function L(t,i){let o=[t.command,p(t.summary),...(t.params??[]).map(e=>`${e.name} ${e.meaning}`)].map(e=>e.toLowerCase());return i.every(e=>o.some(f=>f.includes(e)))}function M(t,i){let o=t.toLowerCase(),e=[];for(let n of i)for(let s=o.indexOf(n);s>=0;s=o.indexOf(n,s+n.length))e.push([s,s+n.length]);e.sort((n,s)=>n[0]-s[0]);let f=[];for(let n of e){let s=f[f.length-1];s&&n[0]<=s[1]?s[1]=Math.max(s[1],n[1]):f.push([n[0],n[1]])}return f}export{T as a,A as b,C as c,O as d,L as e,M as f};
@@ -0,0 +1 @@
1
+ import{hb as u}from"./chunk-3YAYFUS4.js";import{c}from"./chunk-DUIGVKKG.js";var x=/\*\*(.+?)\*\*|`([^`]+)`|\[([^\]]+)\]\(([^)\s]+)\)/g;function l(t){return typeof t!="string"||!t.trim()||/[\s\u0000-\u001f]/.test(t)?!1:/^(https?:\/\/[^/]|mailto:)/i.test(t)?!0:!/^[a-z][a-z0-9+.-]*:/i.test(t)&&!t.startsWith("//")}var d=t=>/^https?:\/\//i.test(t);function s(t){let r=[],i=new RegExp(x.source,"g"),n=0,e;for(;e=i.exec(t);)e.index>n&&r.push({type:"text",text:t.slice(n,e.index)}),e[1]!==void 0?r.push({type:"strong",children:s(e[1])}):e[2]!==void 0?r.push({type:"code",text:e[2]}):r.push({type:"link",href:e[4],children:s(e[3])}),n=i.lastIndex;return n<t.length&&r.push({type:"text",text:t.slice(n)}),r}var y=t=>t.replace(x,(r,i,n,e)=>i??n??e);function I(t){let r=[],i=n=>{for(let e of n)e.type==="link"&&!l(e.href)&&r.push(e.href),e.children&&i(e.children)};return i(s(t)),r}var p=c(u(),1);function a(t,r,i,n){return t.map((e,h)=>{let o=`${i}.${h}`;if(e.type==="text")return n?n(e.text,o):e.text;if(e.type==="code")return(0,p.jsx)("code",{children:n?n(e.text,o):e.text},o);if(e.type==="strong")return(0,p.jsx)("strong",{children:a(e.children,r,o,n)},o);let f=a(e.children,!1,o,n);return!r||!l(e.href)?(0,p.jsx)("span",{children:f},o):d(e.href)?(0,p.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:f},o):(0,p.jsx)("a",{href:e.href,children:f},o)})}function N({source:t,links:r=!0,mark:i}){return(0,p.jsx)(p.Fragment,{children:a(s(t),r,"i",i)})}export{l as a,d as b,s as c,y as d,I as e,N as f};
@@ -0,0 +1 @@
1
+ var b=new Set(["request","skill","decision","reference","query","result"]),E=new Set(["__proto__","prototype","constructor"]),y=["ok","warn","bad","idle","active"],p=new Set(y);function s(e,n,o=!1,t=1e4){if(!(e===void 0&&!o)&&(typeof e!="string"||e.length>t||o&&!e.trim()))throw new Error(`${n} must be ${o?"non-empty ":""}text.`)}function l(e,n,o){if(!Array.isArray(e)||e.length>o)throw new Error(`${n} must contain at most ${o} items.`);let t=new Set;for(let r of e){if(!r||typeof r!="object"||Array.isArray(r))throw new Error(`${n} requires objects.`);if(s(r.id,`${n}.id`,!0,200),E.has(r.id)||t.has(r.id))throw new Error(`${n} requires unique, non-reserved IDs.`);t.add(r.id)}return t}function A(e){if(s(e.title,"flowchart.title"),s(e.description,"flowchart.description"),e.height!==void 0&&(!Number.isFinite(e.height)||e.height<360||e.height>1200))throw new Error("Flowchart height must be between 360 and 1200.");l(e.flows,"flowchart.flows",20);for(let n of e.flows){if(s(n.label,"flow.label",!0,200),s(n.description,"flow.description"),n.direction!==void 0&&!["TB","LR"].includes(n.direction))throw new Error("Flow direction must be TB or LR.");let o=l(n.nodes,"flow.nodes",200);l(n.edges,"flow.edges",400);for(let t of n.nodes){s(t.label,"node.label",!0,200),s(t.subtitle,"node.subtitle",!1,300),s(t.detail,"node.detail");for(let r of["sourceSide","targetSide"])if(t[r]!==void 0&&!["top","bottom","left","right"].includes(t[r]))throw new Error(`${r} must be a valid connection side.`);if(t.kind!==void 0&&!b.has(t.kind))throw new Error("Unsupported flow node kind.");for(let r of["commands","references"])if(t[r]!==void 0){if(!Array.isArray(t[r])||t[r].length>30)throw new Error(`${r} must have at most 30 entries.`);t[r].forEach(d=>s(d,r,!0,3e3))}if(t.position&&(!Number.isFinite(t.position.x)||!Number.isFinite(t.position.y)))throw new Error("Node positions must be finite.")}for(let t of n.edges){if(!o.has(t.source)||!o.has(t.target))throw new Error(`Flow edge ${t.id} references a missing node.`);s(t.label,"edge.label",!1,300)}S(n,`flowchart.flows[${e.flows.indexOf(n)}]`)}return e}function $(e,n){if(!e||typeof e!="object"||Array.isArray(e))throw new Error(`${n} must be an object.`)}function S(e,n){let o=new Set(e.nodes.map(r=>r.id)),t=new Map(e.edges.map(r=>[r.id,r]));if(e.journeys!==void 0){let r=l(e.journeys,`${n}.journeys`,12);if(e.journeys.forEach((d,a)=>{let f=`${n}.journeys[${a}]`;if(s(d.label,`${f}.label`,!0,200),s(d.summary,`${f}.summary`,!1,1e3),!Array.isArray(d.steps)||!d.steps.length||d.steps.length>60)throw new Error(`${f}.steps must contain 1 to 60 steps.`);d.steps.forEach((i,h)=>{let c=`${f}.steps[${h}]`;if($(i,c),!o.has(i.node))throw new Error(`${c}.node references a missing node.`);if(s(i.title,`${c}.title`,!0,200),s(i.text,`${c}.text`,!0,3e3),i.edge===void 0)return;let u=t.get(i.edge);if(!u)throw new Error(`${c}.edge references a missing edge.`);if(u.source!==i.node&&u.target!==i.node)throw new Error(`${c}.edge must connect to node ${i.node}.`)})}),e.initialJourney!==void 0&&!r.has(e.initialJourney))throw new Error(`${n}.initialJourney references a missing journey.`)}else if(e.initialJourney!==void 0)throw new Error(`${n}.initialJourney requires journeys.`);if(e.stages!==void 0){let r=l(e.stages,`${n}.stages`,30);if(e.stages.forEach((d,a)=>{let f=`${n}.stages[${a}]`;s(d.label,`${f}.label`,!0,200),s(d.summary,`${f}.summary`,!1,3e3);for(let[i,h,c]of[["nodes",o,"note"],["edges",t,"label"]]){if(d[i]===void 0)continue;$(d[i],`${f}.${i}`);let u=Object.entries(d[i]);if(u.length>(i==="nodes"?200:400))throw new Error(`${f}.${i} has too many entries.`);for(let[m,g]of u){let w=`${f}.${i}.${m}`;if(!h.has(m))throw new Error(`${w} references a missing ${i==="nodes"?"node":"edge"}.`);if($(g,w),!p.has(g.state))throw new Error(`${w}.state must be one of ${y.join(", ")}.`);s(g[c],`${w}.${c}`,!1,300)}}}),e.initialStage!==void 0&&!r.has(e.initialStage))throw new Error(`${n}.initialStage references a missing stage.`)}else if(e.initialStage!==void 0)throw new Error(`${n}.initialStage requires stages.`)}function j(e,n){return n.steps.map((o,t)=>{if(o.edge!==void 0)return o.edge;let r=n.steps[t-1]?.node;return r===void 0||r===o.node?void 0:(e.edges.find(a=>a.source===r&&a.target===o.node)??e.edges.find(a=>a.source===o.node&&a.target===r))?.id})}export{A as a,j as b};
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-WDYURK6F.js";import{Ta as E,Wa as K,a as y,aa as x,ba as L,c as $}from"./chunk-4QSHXFHM.js";import{c as f,i as S}from"./chunk-DUIGVKKG.js";var i=f($(),1);y(`.viewport-lock-button{position:absolute;top:8px;right:8px;z-index:30;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--sb-line, var(--line, #e9ece5));border-radius:6px;background:var(--sb-surface, var(--paper, #fff));color:var(--sb-muted, var(--muted, #92968f));cursor:pointer}.viewport-lock-button[aria-pressed=false]{color:var(--accent, #120a8f)}.viewport-lock-button:hover{background:var(--sb-hover, var(--hover, #f0f2ed))}.viewport-lock-button:focus-visible{outline:2px solid var(--accent, #120a8f);outline-offset:2px}.viewport-lock-error{display:none;position:absolute;top:100%;right:0;width:220px;padding:8px;background:var(--paper, #fff);color:var(--text, #343a35);font-size:11px}.viewport-lock-button:hover .viewport-lock-error,.viewport-lock-button:focus-visible .viewport-lock-error{display:block}[data-viewport-locked=true]>.surface-scroll{touch-action:pan-y;overscroll-behavior:auto}.sf-block[data-viewport-locked=true] .react-flow__pane,.sf-block[data-viewport-locked=true] .react-flow__node{touch-action:pan-y;cursor:auto}.sb-header:has(~.viewport-lock-button){right:42px}.sb-header.has-caption:has(~.viewport-lock-button){right:auto;padding-right:42px}.sb-header.has-caption:has(~.viewport-lock-button)>.sb-actions{right:42px}.sb-g2-chart:has(>.viewport-lock-button)>.sb-g2-toolbar{padding-right:42px}@media print{.viewport-lock-button{display:none!important}}
1
+ import{a as h}from"./chunk-WDYURK6F.js";import{a as y,c as $,hb as E,kb as K,la as x,ma as L}from"./chunk-3YAYFUS4.js";import{c as f,i as S}from"./chunk-DUIGVKKG.js";var i=f($(),1);y(`.viewport-lock-button{position:absolute;top:8px;right:8px;z-index:30;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--sb-line, var(--line, #e9ece5));border-radius:6px;background:var(--sb-surface, var(--paper, #fff));color:var(--sb-muted, var(--muted, #92968f));cursor:pointer}.viewport-lock-button[aria-pressed=false]{color:var(--accent, #120a8f)}.viewport-lock-button:hover{background:var(--sb-hover, var(--hover, #f0f2ed))}.viewport-lock-button:focus-visible{outline:2px solid var(--accent, #120a8f);outline-offset:2px}.viewport-lock-error{display:none;position:absolute;top:100%;right:0;width:220px;padding:8px;background:var(--paper, #fff);color:var(--text, #343a35);font-size:11px}.viewport-lock-button:hover .viewport-lock-error,.viewport-lock-button:focus-visible .viewport-lock-error{display:block}[data-viewport-locked=true]>.surface-scroll{touch-action:pan-y;overscroll-behavior:auto}.sf-block[data-viewport-locked=true] .react-flow__pane,.sf-block[data-viewport-locked=true] .react-flow__node{touch-action:pan-y;cursor:auto}.sb-header:has(~.viewport-lock-button){right:42px}.sb-header.has-caption:has(~.viewport-lock-button){right:auto;padding-right:42px}.sb-header.has-caption:has(~.viewport-lock-button)>.sb-actions{right:42px}.sb-g2-chart:has(>.viewport-lock-button)>.sb-g2-toolbar{padding-right:42px}@media print{.viewport-lock-button{display:none!important}}
2
2
  `);var l=f(E(),1),M=S(h);function z(e,n){let r=e.closest("[data-block-id], [data-surface-id]");return`showai.viewport-lock.v1:${r?.getAttribute("data-block-id")||r?.getAttribute("data-surface-id")||location.pathname}:${n}`}function V(e){return localStorage.getItem(e)!=="unlocked"}function _(e,n){localStorage.setItem(e,n?"locked":"unlocked")}function O(e,n){let r=(0,i.useRef)(null),c=(0,i.useRef)(""),p=(0,i.useRef)(null),[s,d]=(0,i.useState)(!0),[D,g]=(0,i.useState)("");return(0,i.useLayoutEffect)(()=>{let o=r.current,T=[...(o.closest("[data-block-id], [data-surface-id]")||o.ownerDocument.body).querySelectorAll(`[data-viewport-lock-scope="${e}"]`)],w=`${e}:${T.indexOf(o)}`;c.current=n||z(o,w);let b=o.ownerDocument.getElementById("showai-component-data"),u=b?JSON.parse(b.textContent||"{}").channel:void 0;if(u&&window.parent!==window){p.current={channel:u,scope:w};let k=t=>{t.source!==parent||t.data?.channel!==u||t.data?.type!=="showai:viewport-lock-state"||t.data.scope!==w||(typeof t.data.locked=="boolean"&&d(t.data.locked),g(t.data.error||""))},m=t=>{if(o.dataset.viewportLocked==="true"){for(let a=t.target instanceof Element?t.target:null;a&&a!==o;a=a.parentElement){let Y=getComputedStyle(a);if(/auto|scroll/.test(Y.overflowY)&&(t.deltaY>0&&a.scrollTop+a.clientHeight<a.scrollHeight-1||t.deltaY<0&&a.scrollTop>0))return}t.preventDefault(),t.stopPropagation(),parent.postMessage({channel:u,type:"showai:reading-wheel",deltaX:t.deltaX,deltaY:t.deltaY,deltaMode:t.deltaMode,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey},"*")}};return window.addEventListener("message",k),o.addEventListener("wheel",m,{capture:!0,passive:!1}),parent.postMessage({channel:u,type:"showai:viewport-lock-get",scope:w},"*"),()=>{window.removeEventListener("message",k),o.removeEventListener("wheel",m,!0)}}try{d(V(c.current))}catch(k){g(M("viewportLock.readFailed",{error:String(k)}))}},[e,n]),{ref:r,locked:s,toggle:()=>{let o=!s;if(p.current){parent.postMessage({...p.current,type:"showai:viewport-lock-set",locked:o},"*");return}try{_(c.current,o),g("")}catch(v){g(M("viewportLock.saveFailed",{error:String(v)}))}d(o)},error:D}}function X({locked:e,toggle:n,error:r="",label:c,unlockDescription:p}){let s=K(h),d=s(e?"viewportLock.unlock":"viewportLock.lock",{target:c});return(0,l.jsxs)("button",{type:"button",className:"viewport-lock-button","data-surface-ui":!0,"aria-label":d,"aria-pressed":e,title:r||(e?s("viewportLock.unlockTitle",{target:c,description:p??s("viewportLock.unlockDescription")}):s("viewportLock.lockTitle",{target:c})),onClick:n,children:[e?(0,l.jsx)(L,{size:16}):(0,l.jsx)(x,{size:16}),r&&(0,l.jsx)("span",{className:"viewport-lock-error",role:"alert",children:r})]})}export{z as a,V as b,_ as c,O as d,X as e};
@@ -0,0 +1,2 @@
1
+ import{a as g,c as C,hb as x,ib as H,kb as w}from"./chunk-3YAYFUS4.js";import{c as l,d as v}from"./chunk-DUIGVKKG.js";g(`.editor-tool{display:inline-flex;align-items:center;justify-content:center;width:28px;height:29px;padding:0;flex-shrink:0;color:var(--muted);border:0;border-radius:4px;background:transparent}.editor-tool svg{stroke-width:1.65}.editor-tool:hover,.editor-tool.is-active{color:var(--accent);background:var(--editor-soft)}.editor-tool:disabled{opacity:.32}.editor-bubble{--editor-line: var(--line, #e8ece5);--editor-soft: var(--accent-soft, #edf2e9);position:fixed;z-index:80;display:flex;align-items:center;gap:2px;padding:5px;border:1px solid var(--line, #e8ece5);border-radius:6px;background:var(--paper, #fff);color:var(--text, #343a35);font-family:var(--font-ui, system-ui, sans-serif);font-size:12px;font-weight:400;line-height:1.2;letter-spacing:normal;box-shadow:0 5px 20px #2434291c;animation:editor-menu-appear .13s ease;max-width:calc(100vw - 16px);overflow-x:auto}@keyframes editor-menu-appear{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.editor-bubble{animation:none!important;transition:none!important}}@media print{.editor-bubble{display:none!important}}
2
+ `);var i=l(C(),1),h=l(H(),1);var y=v("editor",{"zh-CN":{selectionToolbar:"\u9009\u4E2D\u6587\u5B57\u683C\u5F0F"},en:{selectionToolbar:"Selected text formatting"}});var k=l(x(),1);function O({id:M,anchor:n,anchorElement:t,children:L,onEscape:E,label:T,keyboardScope:z,viewportTop:d=8,className:b}){let R=w(y),u=(0,i.useRef)(null),[D,S]=(0,i.useState)(n);return(0,i.useLayoutEffect)(()=>{let e=u.current,r=()=>{let{width:o,height:c}=e.getBoundingClientRect(),a=t?.isConnected?t.getBoundingClientRect():null,s=a?{left:(a.left+a.right)/2,top:a.top,bottom:a.bottom}:n,m={left:Math.max(8,Math.min(s.left-o/2,window.innerWidth-o-8)),top:Math.max(d,Math.min(s.top-c-8>=d?s.top-c-8:(s.bottom??s.top)+8,window.innerHeight-c-8))};S(f=>f.left===m.left&&f.top===m.top?f:m)};r();let p=new ResizeObserver(r);if(p.observe(e),t)for(let o=t;o;o=o.parentElement)p.observe(o);return window.addEventListener("resize",r),t&&window.addEventListener("scroll",r,!0),()=>{p.disconnect(),window.removeEventListener("resize",r),t&&window.removeEventListener("scroll",r,!0)}},[n.left,n.top,n.bottom,t,d]),(0,h.createPortal)((0,k.jsx)("div",{ref:u,id:M,className:`editor-bubble${b?` ${b}`:""}`,"data-editor-menu-trigger":"selection","data-editor-keyboard-scope":z,role:"toolbar","aria-label":T??R("selectionToolbar"),style:D,onMouseDown:e=>{e.target.closest("input,select,textarea")||e.preventDefault()},onKeyDown:e=>{e.key==="Escape"&&(e.preventDefault(),E())},children:L}),document.body)}export{O as a};
@@ -0,0 +1 @@
1
+ var o=e=>{throw new Error(e)},E=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function c(e,n){(typeof e!="string"||!e.trim())&&o(`${n} must be non-empty text.`)}function d(e,n){e!==void 0&&c(e,n)}function b(e,n){(typeof e!="number"||!Number.isFinite(e))&&o(`${n} must be a finite number.`)}function $(e,n,i,u=0){return(!Array.isArray(e)||e.length<u||e.length>i)&&o(`${n} must be an array of ${u} to ${i} items.`),e.forEach((r,a)=>{E(r)||o(`${n}[${a}] must be an object.`)}),e}function g(e,n){e!==void 0&&!/^#[0-9a-fA-F]{6}$/.test(e)&&o(`${n} must be a six-digit hex color.`)}function N(e,n){e!==void 0&&typeof e!="boolean"&&o(`${n} must be true or false.`)}function h(e,n){e!==void 0&&!T.includes(e)&&o(`${n} must be one of ${T.join(", ")}.`)}var T=["neutral","info","good","warn","bad","accent"],k=["number","clock","date"],x={points:500,series:3,phases:12,kinds:8,events:80,summary:6},v=/^([01]\d|2[0-3]):[0-5]\d$/,D=/^\d{4}-\d{2}-\d{2}$/,S=864e5;function A(e){let[n,i,u]=e.split("-").map(Number),r=Date.UTC(n,i-1,u),a=new Date(r);return a.getUTCFullYear()===n&&a.getUTCMonth()===i-1&&a.getUTCDate()===u?r:NaN}function y(e,n,i){(!Number.isInteger(e)||e<0||e>=i)&&o(`${n} must be a point index from 0 to ${i-1}.`)}function C(e){if(E(e)||o("axis must be an object."),k.includes(e.type)||o(`axis.type must be one of ${k.join(", ")}.`),d(e.label,"axis.label"),e.step!==void 0&&(b(e.step,"axis.step"),e.step<=0&&o("axis.step must be greater than 0."),e.type!=="number"&&!Number.isInteger(e.step)&&o(`axis.step must be a whole number of ${e.type==="clock"?"minutes":"days"}.`)),e.type==="number"){e.start!==void 0&&b(e.start,"axis.start");for(let n of["prefix","unit"])e[n]!==void 0&&(typeof e[n]!="string"||!e[n].trim())&&o(`axis.${n} must be non-empty text.`)}else e.type==="clock"?(typeof e.start!="string"||!v.test(e.start))&&o("axis.start must be a 24-hour time like 13:50 for a clock axis."):(typeof e.start!="string"||!D.test(e.start)||Number.isNaN(A(e.start)))&&o("axis.start must be a date like 2026-10-18 for a date axis.");if(e.count!==void 0){let{points:n}=x;(!Number.isInteger(e.count)||e.count<2||e.count>n)&&o(`axis.count must be a whole number from 2 to ${n}.`)}}function I(e){return e.axis.count??e.series?.[0]?.values.length??0}function _(e){E(e)||o("Component data must be an object."),d(e.title,"title"),d(e.description,"description"),d(e.note,"note"),C(e.axis);let n=x,i=$(e.series??[],"series",n.series),u=new Set;i.forEach((t,f)=>{let s=`series[${f}]`;c(t.id,`${s}.id`),u.has(t.id)&&o(`series contains duplicate id ${t.id}.`),u.add(t.id),c(t.label,`${s}.label`),d(t.unit,`${s}.unit`),h(t.tone,`${s}.tone`),g(t.color,`${s}.color`),N(t.area,`${s}.area`),N(t.dashed,`${s}.dashed`),t.axis!==void 0&&!["left","right"].includes(t.axis)&&o(`${s}.axis must be left or right.`),t.min!==void 0&&b(t.min,`${s}.min`),t.max!==void 0&&b(t.max,`${s}.max`),t.min!==void 0&&t.max!==void 0&&t.min>=t.max&&o(`${s}.min must be below ${s}.max.`),Array.isArray(t.values)||o(`${s}.values must be an array of numbers.`),t.values.forEach((l,w)=>{l!==null&&b(l,`${s}.values[${w}]`)}),t.values.some(l=>l!==null)||o(`${s}.values needs at least one number.`)}),e.axis.count===void 0&&i.length===0&&o("axis.count is required when there are no series.");let r=I(e);(r<2||r>n.points)&&o(`The axis must have 2 to ${n.points} points.`),i.forEach((t,f)=>{t.values.length!==r&&o(`series[${f}].values must have ${r} values, one per axis point.`)}),$(e.phases??[],"phases",n.phases).forEach((t,f)=>{let s=`phases[${f}]`;c(t.label,`${s}.label`),h(t.tone,`${s}.tone`),y(t.from,`${s}.from`,r),y(t.to,`${s}.to`,r),t.to<=t.from&&o(`${s}.to must be after ${s}.from.`);let l=e.phases[f-1];l&&t.from<l.to&&o(`${s} overlaps the previous phase; phases must be in order.`)});let a=$(e.kinds??[],"kinds",n.kinds),m=new Set;a.forEach((t,f)=>{c(t.id,`kinds[${f}].id`),m.has(t.id)&&o(`kinds contains duplicate id ${t.id}.`),m.add(t.id),c(t.label,`kinds[${f}].label`),h(t.tone,`kinds[${f}].tone`),g(t.color,`kinds[${f}].color`)});let p=$(e.events,"events",n.events);return p.forEach((t,f)=>{let s=`events[${f}]`;y(t.at,`${s}.at`,r),f>0&&t.at<p[f-1].at&&o(`${s}.at is before the previous event; list events in time order.`),c(t.title,`${s}.title`),d(t.detail,`${s}.detail`),t.kind!==void 0&&!m.has(t.kind)&&o(`${s}.kind ${t.kind} is not a defined kind.`)}),$(e.summary??[],"summary",n.summary).forEach((t,f)=>{c(t.label,`summary[${f}].label`),c(t.value,`summary[${f}].value`),h(t.tone,`summary[${f}].tone`)}),e.initialAt!==void 0&&y(e.initialAt,"initialAt",r),e}function j(e,n){let i=-1;return e.forEach((u,r)=>{u.at<=n&&(i=r)}),i}function F(e,n){let i=-1;return(e??[]).forEach((u,r)=>{u.from<=n&&n<=u.to&&(i=r)}),i}function L(e){return e.initialAt??e.events[0]?.at??I(e)-1}function M(e,n,i="en"){let u=e.step??1;if(e.type==="clock"){let[m,p]=e.start.split(":").map(Number),t=((m*60+p+n*u)%1440+1440)%1440;return`${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}if(e.type==="date")return new Intl.DateTimeFormat(i,{month:"numeric",day:"numeric",timeZone:"UTC"}).format(new Date(A(e.start)+n*u*S));let r=(e.start??0)+n*u,a=new Intl.NumberFormat(i,{maximumFractionDigits:3}).format(r);return`${e.prefix??""}${a}${e.unit??""}`}export{I as a,_ as b,j as c,F as d,L as e,M as f};