paul-ai-assistant 1.0.6 → 1.0.8

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 (130) hide show
  1. package/dist/1.async.js +1 -1
  2. package/dist/1387.async.js +1 -1
  3. package/dist/1424.async.js +258 -0
  4. package/dist/1481.async.js +1 -1
  5. package/dist/1548.async.js +1 -1
  6. package/dist/1805.async.js +1150 -0
  7. package/dist/1815.async.js +2 -2
  8. package/dist/1819.async.js +1 -1
  9. package/dist/1851.async.js +1 -1
  10. package/dist/2369.async.js +263 -0
  11. package/dist/2491.async.js +2 -2
  12. package/dist/2678.async.js +1 -1
  13. package/dist/2856.async.js +1 -1
  14. package/dist/295.async.js +1 -1
  15. package/dist/3098.async.js +1 -1
  16. package/dist/3138.async.js +1 -1
  17. package/dist/34.async.js +6 -6
  18. package/dist/3472.async.js +1 -1
  19. package/dist/3614.async.js +1 -1
  20. package/dist/3959.async.js +1 -1
  21. package/dist/404.html +0 -1
  22. package/dist/4445.async.js +18 -0
  23. package/dist/4484.async.js +1 -1
  24. package/dist/4498.async.js +1 -1
  25. package/dist/4911.async.js +1 -1
  26. package/dist/4927.async.js +1 -1
  27. package/dist/5067.async.js +1 -1
  28. package/dist/5588.async.js +1 -1
  29. package/dist/5754.async.js +1 -1
  30. package/dist/6355.async.js +4 -4
  31. package/dist/6662.async.js +1 -1
  32. package/dist/6680.async.js +13 -13
  33. package/dist/6690.async.js +5 -5
  34. package/dist/6949.async.js +1 -0
  35. package/dist/7267.async.js +3 -3
  36. package/dist/7329.async.js +1 -1
  37. package/dist/7718.async.js +6 -6
  38. package/dist/7762.async.js +1 -1
  39. package/dist/7787.async.js +5 -5
  40. package/dist/7929.async.js +1 -1
  41. package/dist/804.async.js +1 -0
  42. package/dist/8164.async.js +1 -1
  43. package/dist/834.async.js +1 -1
  44. package/dist/8456.async.js +1 -1
  45. package/dist/8542.async.js +1 -1
  46. package/dist/8749.async.js +1 -1
  47. package/dist/8914.async.js +10 -10
  48. package/dist/9570.async.js +1 -1
  49. package/dist/components/llm-trace-v2/index.html +0 -1
  50. package/dist/components/llm-trace-v3/index.html +0 -1
  51. package/dist/components/llm-trace-v3-advanced/index.html +0 -1
  52. package/dist/components/llm-trace-v3-examples/index.html +0 -1
  53. package/dist/components/llm-trace-v3-visual-demos/index.html +0 -1
  54. package/dist/demos.async.js +9 -383
  55. package/dist/demos__index.md.async.js +1 -1
  56. package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -1
  57. package/dist/demos__toolChatType__index.md.async.js +6 -1
  58. package/dist/docs/index.html +0 -1
  59. package/dist/docs__components__llm-trace-v2.md.async.js +1 -1
  60. package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -1
  61. package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -1
  62. package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -1
  63. package/dist/docs__components__llm-trace-v3.md.async.js +1 -1
  64. package/dist/docs__docs__index.md.async.js +1 -1
  65. package/dist/docs__index.md.async.js +1 -1
  66. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -1
  67. package/dist/index.html +0 -1
  68. package/dist/markdown-latex-mermaid/index.html +0 -1
  69. package/dist/meta__demos.async.js +16538 -4968
  70. package/dist/meta__docs.async.js +28 -29
  71. package/dist/nm__dumi__dist__client__pages__404.async.js +2 -2
  72. package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +1 -1
  73. package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -1
  74. package/dist/preload_helper.js +1 -1
  75. package/dist/tool-chat-type/index.html +0 -1
  76. package/dist/umi.js +63 -63
  77. package/dist/~demos/:id/index.html +0 -1
  78. package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +0 -1
  79. package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +0 -1
  80. package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +0 -1
  81. package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +0 -1
  82. package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +0 -1
  83. package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +0 -1
  84. package/dist/~demos/{demos-customer-service-typewriter-demo-customer-service-demo → demos-tool-chat-type-demo-default-demo}/index.html +0 -1
  85. package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +0 -1
  86. package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +0 -1
  87. package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +0 -1
  88. package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +0 -1
  89. package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +0 -1
  90. package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +0 -1
  91. package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +0 -1
  92. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +0 -1
  93. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +0 -1
  94. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +0 -1
  95. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +0 -1
  96. package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +0 -1
  97. package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +0 -1
  98. package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +0 -1
  99. package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +0 -1
  100. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +0 -1
  101. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +0 -1
  102. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +0 -1
  103. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +0 -1
  104. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +0 -1
  105. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +0 -1
  106. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +0 -1
  107. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +0 -1
  108. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +0 -1
  109. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +0 -1
  110. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +0 -1
  111. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +0 -1
  112. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +0 -1
  113. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +1 -1
  114. package/es/context/index.js +175 -42
  115. package/es/hooks/index.js +1 -0
  116. package/es/hooks/useAutoSend.js +95 -0
  117. package/es/index.js +8 -1
  118. package/es/service/conversation.js +74 -0
  119. package/es/service/index.js +1 -0
  120. package/es/utils/apushAssistant.js +21 -12
  121. package/package.json +3 -1
  122. package/dist/1013.async.js +0 -1
  123. package/dist/123.async.js +0 -258
  124. package/dist/6254.async.js +0 -30286
  125. package/dist/7084.async.js +0 -247
  126. package/dist/9725.async.js +0 -18
  127. package/dist/customer-service-typewriter/index.html +0 -44
  128. package/dist/demos__customerServiceTypewriter__index.md.async.js +0 -2
  129. package/dist/~demos/demos-customer-service-typewriter-demo-smart-scroll-demo/index.html +0 -44
  130. package/es/utils/im.js +0 -386
@@ -0,0 +1,18 @@
1
+ "use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[4445],{64217:function(pt,Ne,C){C.d(Ne,{Z:function(){return ve}});var xe=C(1413),Re=`accept acceptCharset accessKey action allowFullScreen allowTransparency
2
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
3
+ charSet checked classID className colSpan cols content contentEditable contextMenu
4
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
5
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
6
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
7
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
8
+ mediaGroup method min minLength multiple muted name noValidate nonce open
9
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
10
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
11
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
12
+ summary tabIndex target title type useMap value width wmode wrap`,H=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
13
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
14
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
15
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
16
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
17
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
18
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,L="".concat(Re," ").concat(H).split(/[\s\n]+/),D="aria-",Fe="data-";function we(ne,te){return ne.indexOf(te)===0}function ve(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y;te===!1?Y={aria:!0,data:!0,attr:!0}:te===!0?Y={aria:!0}:Y=(0,xe.Z)({},te);var t={};return Object.keys(ne).forEach(function(Q){(Y.aria&&(Q==="role"||we(Q,D))||Y.data&&we(Q,Fe)||Y.attr&&L.includes(Q))&&(t[Q]=ne[Q])}),t}},87718:function(pt,Ne,C){C.d(Ne,{Z:function(){return jt}});var xe=C(87462),Re=C(71002),H=C(1413),L=C(4942),D=C(97685),Fe=C(91),we=C(93967),ve=C.n(we),ne=C(48555),te=C(56790),Y=C(8410),t=C(1024),Q=C(30314),Qe=t.forwardRef(function(e,s){var n=e.height,a=e.offsetY,f=e.offsetX,d=e.children,c=e.prefixCls,o=e.onInnerResize,M=e.innerProps,h=e.rtl,R=e.extra,i={},S={display:"flex",flexDirection:"column"};return a!==void 0&&(i={height:n,position:"relative",overflow:"hidden"},S=(0,H.Z)((0,H.Z)({},S),{},(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({transform:"translateY(".concat(a,"px)")},h?"marginRight":"marginLeft",-f),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:i},t.createElement(ne.Z,{onResize:function(g){var v=g.offsetHeight;v&&o&&o()}},t.createElement("div",(0,xe.Z)({style:S,className:ve()((0,L.Z)({},"".concat(c,"-holder-inner"),c)),ref:s},M),d,R)))});Qe.displayName="Filler";var Mt=Qe;function bt(e){var s=e.children,n=e.setRef,a=t.useCallback(function(f){n(f)},[]);return t.cloneElement(s,{ref:a})}function yt(e,s,n,a,f,d,c,o){var M=o.getKey;return e.slice(s,n+1).map(function(h,R){var i=s+R,S=c(h,i,{style:{width:a},offsetX:f}),l=M(h);return t.createElement(bt,{key:l,setRef:function(v){return d(h,v)}},S)})}function or(e,s,n,a){var f=n-e,d=s-n,c=Math.min(f,d)*2;if(a<=c){var o=Math.floor(a/2);return a%2?n+o+1:n-o}return f>d?n-(a-d):n+(a-f)}function Et(e,s,n){var a=e.length,f=s.length,d,c;if(a===0&&f===0)return null;a<f?(d=e,c=s):(d=s,c=e);var o={__EMPTY_ITEM__:!0};function M(g){return g!==void 0?n(g):o}for(var h=null,R=Math.abs(a-f)!==1,i=0;i<c.length;i+=1){var S=M(d[i]),l=M(c[i]);if(S!==l){h=i,R=R||S!==M(c[i+1]);break}}return h===null?null:{index:h,multiple:R}}function Zt(e,s,n){var a=t.useState(e),f=(0,D.Z)(a,2),d=f[0],c=f[1],o=t.useState(null),M=(0,D.Z)(o,2),h=M[0],R=M[1];return t.useEffect(function(){var i=Et(d||[],e||[],s);(i==null?void 0:i.index)!==void 0&&(n==null||n(i.index),R(e[i.index])),c(e)},[e]),[h]}var K=C(75164),xt=(typeof navigator=="undefined"?"undefined":(0,Re.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),_e=xt,qe=function(e,s,n,a){var f=(0,t.useRef)(!1),d=(0,t.useRef)(null);function c(){clearTimeout(d.current),f.current=!0,d.current=setTimeout(function(){f.current=!1},50)}var o=(0,t.useRef)({top:e,bottom:s,left:n,right:a});return o.current.top=e,o.current.bottom=s,o.current.left=n,o.current.right=a,function(M,h){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=M?h<0&&o.current.left||h>0&&o.current.right:h<0&&o.current.top||h>0&&o.current.bottom;return R&&i?(clearTimeout(d.current),f.current=!1):(!i||f.current)&&c(),!f.current&&i}};function wt(e,s,n,a,f,d,c){var o=(0,t.useRef)(0),M=(0,t.useRef)(null),h=(0,t.useRef)(null),R=(0,t.useRef)(!1),i=qe(s,n,a,f);function S(m,E){if(K.Z.cancel(M.current),!i(!1,E)){var Z=m;if(!Z._virtualHandled)Z._virtualHandled=!0;else return;o.current+=E,h.current=E,_e||Z.preventDefault(),M.current=(0,K.Z)(function(){var B=R.current?10:1;c(o.current*B,!1),o.current=0})}}function l(m,E){c(E,!0),_e||m.preventDefault()}var g=(0,t.useRef)(null),v=(0,t.useRef)(null);function b(m){if(e){K.Z.cancel(v.current),v.current=(0,K.Z)(function(){g.current=null},2);var E=m.deltaX,Z=m.deltaY,B=m.shiftKey,N=E,x=Z;(g.current==="sx"||!g.current&&B&&Z&&!E)&&(N=Z,x=0,g.current="sx");var F=Math.abs(N),k=Math.abs(x);g.current===null&&(g.current=d&&F>k?"x":"y"),g.current==="y"?S(m,x):l(m,N)}}function y(m){e&&(R.current=m.detail===h.current)}return[b,y]}function Ct(e,s,n,a){var f=t.useMemo(function(){return[new Map,[]]},[e,n.id,a]),d=(0,D.Z)(f,2),c=d[0],o=d[1],M=function(R){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,S=c.get(R),l=c.get(i);if(S===void 0||l===void 0)for(var g=e.length,v=o.length;v<g;v+=1){var b,y=e[v],m=s(y);c.set(m,v);var E=(b=n.get(m))!==null&&b!==void 0?b:a;if(o[v]=(o[v-1]||0)+E,m===R&&(S=v),m===i&&(l=v),S!==void 0&&l!==void 0)break}return{top:o[S-1]||0,bottom:o[l]}};return M}var Lt=C(15671),Dt=C(43144),Tt=function(){function e(){(0,Lt.Z)(this,e),(0,L.Z)(this,"maps",void 0),(0,L.Z)(this,"id",0),(0,L.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Dt.Z)(e,[{key:"set",value:function(n,a){this.diffRecords.set(n,this.maps[n]),this.maps[n]=a,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}(),Pt=Tt;function et(e){var s=parseFloat(e);return isNaN(s)?0:s}function zt(e,s,n){var a=t.useState(0),f=(0,D.Z)(a,2),d=f[0],c=f[1],o=(0,t.useRef)(new Map),M=(0,t.useRef)(new Pt),h=(0,t.useRef)(0);function R(){h.current+=1}function i(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;R();var g=function(){var y=!1;o.current.forEach(function(m,E){if(m&&m.offsetParent){var Z=m.offsetHeight,B=getComputedStyle(m),N=B.marginTop,x=B.marginBottom,F=et(N),k=et(x),U=Z+F+k;M.current.get(E)!==U&&(M.current.set(E,U),y=!0)}}),y&&c(function(m){return m+1})};if(l)g();else{h.current+=1;var v=h.current;Promise.resolve().then(function(){v===h.current&&g()})}}function S(l,g){var v=e(l),b=o.current.get(v);g?(o.current.set(v,g),i()):o.current.delete(v),!b!=!g&&(g?s==null||s(l):n==null||n(l))}return(0,t.useEffect)(function(){return R},[]),[S,i,M.current,d]}var tt=14/15;function Ot(e,s,n){var a=(0,t.useRef)(!1),f=(0,t.useRef)(0),d=(0,t.useRef)(0),c=(0,t.useRef)(null),o=(0,t.useRef)(null),M,h=function(l){if(a.current){var g=Math.ceil(l.touches[0].pageX),v=Math.ceil(l.touches[0].pageY),b=f.current-g,y=d.current-v,m=Math.abs(b)>Math.abs(y);m?f.current=g:d.current=v;var E=n(m,m?b:y,!1,l);E&&l.preventDefault(),clearInterval(o.current),E&&(o.current=setInterval(function(){m?b*=tt:y*=tt;var Z=Math.floor(m?b:y);(!n(m,Z,!0)||Math.abs(Z)<=.1)&&clearInterval(o.current)},16))}},R=function(){a.current=!1,M()},i=function(l){M(),l.touches.length===1&&!a.current&&(a.current=!0,f.current=Math.ceil(l.touches[0].pageX),d.current=Math.ceil(l.touches[0].pageY),c.current=l.target,c.current.addEventListener("touchmove",h,{passive:!1}),c.current.addEventListener("touchend",R,{passive:!0}))};M=function(){c.current&&(c.current.removeEventListener("touchmove",h),c.current.removeEventListener("touchend",R))},(0,Y.Z)(function(){return e&&s.current.addEventListener("touchstart",i,{passive:!0}),function(){var S;(S=s.current)===null||S===void 0||S.removeEventListener("touchstart",i),M(),clearInterval(o.current)}},[e])}function rt(e){return Math.floor(Math.pow(e,.5))}function $e(e,s){var n="touches"in e?e.touches[0]:e;return n[s?"pageX":"pageY"]-window[s?"scrollX":"scrollY"]}function Ht(e,s,n){t.useEffect(function(){var a=s.current;if(e&&a){var f=!1,d,c,o=function(){K.Z.cancel(d)},M=function S(){o(),d=(0,K.Z)(function(){n(c),S()})},h=function(){f=!1,o()},R=function(l){if(!(l.target.draggable||l.button!==0)){var g=l;g._virtualHandled||(g._virtualHandled=!0,f=!0)}},i=function(l){if(f){var g=$e(l,!1),v=a.getBoundingClientRect(),b=v.top,y=v.bottom;if(g<=b){var m=b-g;c=-rt(m),M()}else if(g>=y){var E=g-y;c=rt(E),M()}else o()}};return a.addEventListener("mousedown",R),a.ownerDocument.addEventListener("mouseup",h),a.ownerDocument.addEventListener("mousemove",i),a.ownerDocument.addEventListener("dragend",h),function(){a.removeEventListener("mousedown",R),a.ownerDocument.removeEventListener("mouseup",h),a.ownerDocument.removeEventListener("mousemove",i),a.ownerDocument.removeEventListener("dragend",h),o()}}},[e])}var It=10;function Bt(e,s,n,a,f,d,c,o){var M=t.useRef(),h=t.useState(null),R=(0,D.Z)(h,2),i=R[0],S=R[1];return(0,Y.Z)(function(){if(i&&i.times<It){if(!e.current){S(function(le){return(0,H.Z)({},le)});return}d();var l=i.targetAlign,g=i.originAlign,v=i.index,b=i.offset,y=e.current.clientHeight,m=!1,E=l,Z=null;if(y){for(var B=l||g,N=0,x=0,F=0,k=Math.min(s.length-1,v),U=0;U<=k;U+=1){var W=f(s[U]);x=N;var re=n.get(W);F=x+(re===void 0?a:re),N=F}for(var G=B==="top"?b:y-b,ae=k;ae>=0;ae-=1){var oe=f(s[ae]),I=n.get(oe);if(I===void 0){m=!0;break}if(G-=I,G<=0)break}switch(B){case"top":Z=x-b;break;case"bottom":Z=F-y+b;break;default:{var ie=e.current.scrollTop,$=ie+y;x<ie?E="top":F>$&&(E="bottom")}}Z!==null&&c(Z),Z!==i.lastTop&&(m=!0)}m&&S((0,H.Z)((0,H.Z)({},i),{},{times:i.times+1,targetAlign:E,lastTop:Z}))}},[i,e.current]),function(l){if(l==null){o();return}if(K.Z.cancel(M.current),typeof l=="number")c(l);else if(l&&(0,Re.Z)(l)==="object"){var g,v=l.align;"index"in l?g=l.index:g=s.findIndex(function(m){return f(m)===l.key});var b=l.offset,y=b===void 0?0:b;S({times:0,index:g,offset:y,originAlign:v})}}}var Nt=t.forwardRef(function(e,s){var n=e.prefixCls,a=e.rtl,f=e.scrollOffset,d=e.scrollRange,c=e.onStartMove,o=e.onStopMove,M=e.onScroll,h=e.horizontal,R=e.spinSize,i=e.containerSize,S=e.style,l=e.thumbStyle,g=e.showScrollBar,v=t.useState(!1),b=(0,D.Z)(v,2),y=b[0],m=b[1],E=t.useState(null),Z=(0,D.Z)(E,2),B=Z[0],N=Z[1],x=t.useState(null),F=(0,D.Z)(x,2),k=F[0],U=F[1],W=!a,re=t.useRef(),G=t.useRef(),ae=t.useState(g),oe=(0,D.Z)(ae,2),I=oe[0],ie=oe[1],$=t.useRef(),le=function(){g===!0||g===!1||(clearTimeout($.current),ie(!0),$.current=setTimeout(function(){ie(!1)},3e3))},A=d-i||0,j=i-R||0,de=t.useMemo(function(){if(f===0||A===0)return 0;var X=f/A;return X*j},[f,A,j]),T=function(P){P.stopPropagation(),P.preventDefault()},J=t.useRef({top:de,dragging:y,pageY:B,startTop:k});J.current={top:de,dragging:y,pageY:B,startTop:k};var he=function(P){m(!0),N($e(P,h)),U(J.current.top),c(),P.stopPropagation(),P.preventDefault()};t.useEffect(function(){var X=function(be){be.preventDefault()},P=re.current,z=G.current;return P.addEventListener("touchstart",X,{passive:!1}),z.addEventListener("touchstart",he,{passive:!1}),function(){P.removeEventListener("touchstart",X),z.removeEventListener("touchstart",he)}},[]);var pe=t.useRef();pe.current=A;var Ce=t.useRef();Ce.current=j,t.useEffect(function(){if(y){var X,P=function(be){var ge=J.current,We=ge.dragging,Le=ge.pageY,De=ge.startTop;K.Z.cancel(X);var ye=re.current.getBoundingClientRect(),Xe=i/(h?ye.width:ye.height);if(We){var q=($e(be,h)-Le)*Xe,me=De;!W&&h?me-=q:me+=q;var Te=pe.current,Pe=Ce.current,Ye=Pe?me/Pe:0,se=Math.ceil(Ye*Te);se=Math.max(se,0),se=Math.min(se,Te),X=(0,K.Z)(function(){M(se,h)})}},z=function(){m(!1),o()};return window.addEventListener("mousemove",P,{passive:!0}),window.addEventListener("touchmove",P,{passive:!0}),window.addEventListener("mouseup",z,{passive:!0}),window.addEventListener("touchend",z,{passive:!0}),function(){window.removeEventListener("mousemove",P),window.removeEventListener("touchmove",P),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),K.Z.cancel(X)}}},[y]),t.useEffect(function(){return le(),function(){clearTimeout($.current)}},[f]),t.useImperativeHandle(s,function(){return{delayHidden:le}});var _="".concat(n,"-scrollbar"),V={position:"absolute",visibility:I?null:"hidden"},Me={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return h?(Object.assign(V,{height:8,left:0,right:0,bottom:0}),Object.assign(Me,(0,L.Z)({height:"100%",width:R},W?"left":"right",de))):(Object.assign(V,(0,L.Z)({width:8,top:0,bottom:0},W?"right":"left",0)),Object.assign(Me,{width:"100%",height:R,top:de})),t.createElement("div",{ref:re,className:ve()(_,(0,L.Z)((0,L.Z)((0,L.Z)({},"".concat(_,"-horizontal"),h),"".concat(_,"-vertical"),!h),"".concat(_,"-visible"),I)),style:(0,H.Z)((0,H.Z)({},V),S),onMouseDown:T,onMouseMove:le},t.createElement("div",{ref:G,className:ve()("".concat(_,"-thumb"),(0,L.Z)({},"".concat(_,"-thumb-moving"),y)),style:(0,H.Z)((0,H.Z)({},Me),l),onMouseDown:he}))}),nt=Nt,Ft=20;function at(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/s*e;return isNaN(n)&&(n=0),n=Math.max(n,Ft),Math.floor(n)}var $t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Wt=[],Xt={overflowY:"auto",overflowAnchor:"none"};function Yt(e,s){var n=e.prefixCls,a=n===void 0?"rc-virtual-list":n,f=e.className,d=e.height,c=e.itemHeight,o=e.fullHeight,M=o===void 0?!0:o,h=e.style,R=e.data,i=e.children,S=e.itemKey,l=e.virtual,g=e.direction,v=e.scrollWidth,b=e.component,y=b===void 0?"div":b,m=e.onScroll,E=e.onVirtualScroll,Z=e.onVisibleChange,B=e.innerProps,N=e.extraRender,x=e.styles,F=e.showScrollBar,k=F===void 0?"optional":F,U=(0,Fe.Z)(e,$t),W=t.useCallback(function(u){return typeof S=="function"?S(u):u==null?void 0:u[S]},[S]),re=zt(W,null,null),G=(0,D.Z)(re,4),ae=G[0],oe=G[1],I=G[2],ie=G[3],$=!!(l!==!1&&d&&c),le=t.useMemo(function(){return Object.values(I.maps).reduce(function(u,r){return u+r},0)},[I.id,I.maps]),A=$&&R&&(Math.max(c*R.length,le)>d||!!v),j=g==="rtl",de=ve()(a,(0,L.Z)({},"".concat(a,"-rtl"),j),f),T=R||Wt,J=(0,t.useRef)(),he=(0,t.useRef)(),pe=(0,t.useRef)(),Ce=(0,t.useState)(0),_=(0,D.Z)(Ce,2),V=_[0],Me=_[1],X=(0,t.useState)(0),P=(0,D.Z)(X,2),z=P[0],ue=P[1],be=(0,t.useState)(!1),ge=(0,D.Z)(be,2),We=ge[0],Le=ge[1],De=function(){Le(!0)},ye=function(){Le(!1)},Xe={getKey:W};function q(u){Me(function(r){var p;typeof u=="function"?p=u(r):p=u;var w=Jt(p);return J.current.scrollTop=w,w})}var me=(0,t.useRef)({start:0,end:T.length}),Te=(0,t.useRef)(),Pe=Zt(T,W),Ye=(0,D.Z)(Pe,1),se=Ye[0];Te.current=se;var ze=t.useMemo(function(){if(!$)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!A){var u;return{scrollHeight:((u=he.current)===null||u===void 0?void 0:u.offsetHeight)||0,start:0,end:T.length-1,offset:void 0}}for(var r=0,p,w,O,Be=T.length,fe=0;fe<Be;fe+=1){var Ge=T[fe],ar=W(Ge),Rt=I.get(ar),Je=r+(Rt===void 0?c:Rt);Je>=V&&p===void 0&&(p=fe,w=r),Je>V+d&&O===void 0&&(O=fe),r=Je}return p===void 0&&(p=0,w=0,O=Math.ceil(d/c)),O===void 0&&(O=T.length-1),O=Math.min(O+1,T.length-1),{scrollHeight:r,start:p,end:O,offset:w}},[A,$,V,T,ie,d]),ce=ze.scrollHeight,Se=ze.start,Ee=ze.end,it=ze.offset;me.current.start=Se,me.current.end=Ee,t.useLayoutEffect(function(){var u=I.getRecord();if(u.size===1){var r=Array.from(u.keys())[0],p=u.get(r),w=T[Se];if(w&&p===void 0){var O=W(w);if(O===r){var Be=I.get(r),fe=Be-c;q(function(Ge){return Ge+fe})}}}I.resetRecord()},[ce]);var Vt=t.useState({width:0,height:d}),lt=(0,D.Z)(Vt,2),ee=lt[0],At=lt[1],Kt=function(r){At({width:r.offsetWidth,height:r.offsetHeight})},ut=(0,t.useRef)(),st=(0,t.useRef)(),Ut=t.useMemo(function(){return at(ee.width,v)},[ee.width,v]),Gt=t.useMemo(function(){return at(ee.height,ce)},[ee.height,ce]),ke=ce-d,je=(0,t.useRef)(ke);je.current=ke;function Jt(u){var r=u;return Number.isNaN(je.current)||(r=Math.min(r,je.current)),r=Math.max(r,0),r}var Oe=V<=0,He=V>=ke,ct=z<=0,ft=z>=v,Qt=qe(Oe,He,ct,ft),Ve=function(){return{x:j?-z:z,y:V}},Ae=(0,t.useRef)(Ve()),Ie=(0,te.zX)(function(u){if(E){var r=(0,H.Z)((0,H.Z)({},Ve()),u);(Ae.current.x!==r.x||Ae.current.y!==r.y)&&(E(r),Ae.current=r)}});function vt(u,r){var p=u;r?((0,Q.flushSync)(function(){ue(p)}),Ie()):q(p)}function _t(u){var r=u.currentTarget.scrollTop;r!==V&&q(r),m==null||m(u),Ie()}var Ke=function(r){var p=r,w=v?v-ee.width:0;return p=Math.max(p,0),p=Math.min(p,w),p},qt=(0,te.zX)(function(u,r){r?((0,Q.flushSync)(function(){ue(function(p){var w=p+(j?-u:u);return Ke(w)})}),Ie()):q(function(p){var w=p+u;return w})}),er=wt($,Oe,He,ct,ft,!!v,qt),dt=(0,D.Z)(er,2),Ue=dt[0],ht=dt[1];Ot($,J,function(u,r,p,w){var O=w;return Qt(u,r,p)?!1:!O||!O._virtualHandled?(O&&(O._virtualHandled=!0),Ue({preventDefault:function(){},deltaX:u?r:0,deltaY:u?0:r}),!0):!1}),Ht(A,J,function(u){q(function(r){return r+u})}),(0,Y.Z)(function(){function u(p){var w=Oe&&p.detail<0,O=He&&p.detail>0;$&&!w&&!O&&p.preventDefault()}var r=J.current;return r.addEventListener("wheel",Ue,{passive:!1}),r.addEventListener("DOMMouseScroll",ht,{passive:!0}),r.addEventListener("MozMousePixelScroll",u,{passive:!1}),function(){r.removeEventListener("wheel",Ue),r.removeEventListener("DOMMouseScroll",ht),r.removeEventListener("MozMousePixelScroll",u)}},[$,Oe,He]),(0,Y.Z)(function(){if(v){var u=Ke(z);ue(u),Ie({x:u})}},[ee.width,v]);var gt=function(){var r,p;(r=ut.current)===null||r===void 0||r.delayHidden(),(p=st.current)===null||p===void 0||p.delayHidden()},mt=Bt(J,T,I,c,W,function(){return oe(!0)},q,gt);t.useImperativeHandle(s,function(){return{nativeElement:pe.current,getScrollInfo:Ve,scrollTo:function(r){function p(w){return w&&(0,Re.Z)(w)==="object"&&("left"in w||"top"in w)}p(r)?(r.left!==void 0&&ue(Ke(r.left)),mt(r.top)):mt(r)}}}),(0,Y.Z)(function(){if(Z){var u=T.slice(Se,Ee+1);Z(u,T)}},[Se,Ee,T]);var tr=Ct(T,W,I,c),rr=N==null?void 0:N({start:Se,end:Ee,virtual:A,offsetX:z,offsetY:it,rtl:j,getSize:tr}),nr=yt(T,Se,Ee,v,z,ae,i,Xe),Ze=null;d&&(Ze=(0,H.Z)((0,L.Z)({},M?"height":"maxHeight",d),Xt),$&&(Ze.overflowY="hidden",v&&(Ze.overflowX="hidden"),We&&(Ze.pointerEvents="none")));var St={};return j&&(St.dir="rtl"),t.createElement("div",(0,xe.Z)({ref:pe,style:(0,H.Z)((0,H.Z)({},h),{},{position:"relative"}),className:de},St,U),t.createElement(ne.Z,{onResize:Kt},t.createElement(y,{className:"".concat(a,"-holder"),style:Ze,ref:J,onScroll:_t,onMouseEnter:gt},t.createElement(Mt,{prefixCls:a,height:ce,offsetX:z,offsetY:it,scrollWidth:v,onInnerResize:oe,ref:he,innerProps:B,rtl:j,extra:rr},nr))),A&&ce>d&&t.createElement(nt,{ref:ut,prefixCls:a,scrollOffset:V,scrollRange:ce,rtl:j,onScroll:vt,onStartMove:De,onStopMove:ye,spinSize:Gt,containerSize:ee.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:k}),A&&v>ee.width&&t.createElement(nt,{ref:st,prefixCls:a,scrollOffset:z,scrollRange:v,rtl:j,onScroll:vt,onStartMove:De,onStopMove:ye,spinSize:Ut,containerSize:ee.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:k}))}var ot=t.forwardRef(Yt);ot.displayName="List";var kt=ot,jt=kt}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[4484],{74484:function(ce,bt,U){var X,Z,O;U.d(bt,{diagram:function(){return le}});var T=U(99970),k=U(35096),G=U(989),St=U(64599),K=U.n(St);function ft(t,n){var o;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;u!=null&&(o>u||o===void 0&&u>=u)&&(o=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=n(s,++p,t))!=null&&(o>s||o===void 0&&s>=s)&&(o=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function wt(t){return t.target.depth}function Lt(t){return t.depth}function Et(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function Wt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,wt)-1:0}function rt(t,n){var o=0;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;(u=+u)&&(o+=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=+n(s,++p,t))&&(o+=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function dt(t,n){var o;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;u!=null&&(o<u||o===void 0&&u>=u)&&(o=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=n(s,++p,t))!=null&&(o<s||o===void 0&&s>=s)&&(o=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function J(t){return function(){return t}}function pt(t,n){return q(t.source,n.source)||t.index-n.index}function gt(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function st(t){return t.value}function At(t){return t.index}function Tt(t){return t.nodes}function Mt(t){return t.links}function kt(t,n){const o=t.get(n);if(!o)throw new Error("missing: "+n);return o}function mt({nodes:t}){for(const n of t){let o=n.y0,h=o;for(const d of n.sourceLinks)d.y0=o+d.width/2,o+=d.width;for(const d of n.targetLinks)d.y1=h+d.width/2,h+=d.width}}function Nt(){let t=0,n=0,o=1,h=1,d=24,u=8,p,y=At,r=yt,s,l,x=Tt,v=Mt,g=6;function _(){const e={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return W(e),E(e),A(e),P(e),z(e),mt(e),e}_.update=function(e){return mt(e),e},_.nodeId=function(e){return arguments.length?(y=typeof e=="function"?e:J(e),_):y},_.nodeAlign=function(e){return arguments.length?(r=typeof e=="function"?e:J(e),_):r},_.nodeSort=function(e){return arguments.length?(s=e,_):s},_.nodeWidth=function(e){return arguments.length?(d=+e,_):d},_.nodePadding=function(e){return arguments.length?(u=p=+e,_):u},_.nodes=function(e){return arguments.length?(x=typeof e=="function"?e:J(e),_):x},_.links=function(e){return arguments.length?(v=typeof e=="function"?e:J(e),_):v},_.linkSort=function(e){return arguments.length?(l=e,_):l},_.size=function(e){return arguments.length?(t=n=0,o=+e[0],h=+e[1],_):[o-t,h-n]},_.extent=function(e){return arguments.length?(t=+e[0][0],o=+e[1][0],n=+e[0][1],h=+e[1][1],_):[[t,n],[o,h]]},_.iterations=function(e){return arguments.length?(g=+e,_):g};function W({nodes:e,links:c}){for(const[i,a]of e.entries())a.index=i,a.sourceLinks=[],a.targetLinks=[];const f=new Map(e.map((i,a)=>[y(i,a,e),i]));for(const[i,a]of c.entries()){a.index=i;let{source:m,target:b}=a;typeof m!="object"&&(m=a.source=kt(f,m)),typeof b!="object"&&(b=a.target=kt(f,b)),m.sourceLinks.push(a),b.targetLinks.push(a)}if(l!=null)for(const{sourceLinks:i,targetLinks:a}of e)i.sort(l),a.sort(l)}function E({nodes:e}){for(const c of e)c.value=c.fixedValue===void 0?Math.max(rt(c.sourceLinks,st),rt(c.targetLinks,st)):c.fixedValue}function A({nodes:e}){const c=e.length;let f=new Set(e),i=new Set,a=0;for(;f.size;){for(const m of f){m.depth=a;for(const{target:b}of m.sourceLinks)i.add(b)}if(++a>c)throw new Error("circular link");f=i,i=new Set}}function P({nodes:e}){const c=e.length;let f=new Set(e),i=new Set,a=0;for(;f.size;){for(const m of f){m.height=a;for(const{source:b}of m.targetLinks)i.add(b)}if(++a>c)throw new Error("circular link");f=i,i=new Set}}function j({nodes:e}){const c=dt(e,a=>a.depth)+1,f=(o-t-d)/(c-1),i=new Array(c);for(const a of e){const m=Math.max(0,Math.min(c-1,Math.floor(r.call(null,a,c))));a.layer=m,a.x0=t+m*f,a.x1=a.x0+d,i[m]?i[m].push(a):i[m]=[a]}if(s)for(const a of i)a.sort(s);return i}function R(e){const c=ft(e,f=>(h-n-(f.length-1)*p)/rt(f,st));for(const f of e){let i=n;for(const a of f){a.y0=i,a.y1=i+a.value*c,i=a.y1+p;for(const m of a.sourceLinks)m.width=m.value*c}i=(h-i+p)/(f.length+1);for(let a=0;a<f.length;++a){const m=f[a];m.y0+=i*(a+1),m.y1+=i*(a+1)}H(f)}}function z(e){const c=j(e);p=Math.min(u,(h-n)/(dt(c,f=>f.length)-1)),R(c);for(let f=0;f<g;++f){const i=Math.pow(.99,f),a=Math.max(1-i,(f+1)/g);M(c,i,a),S(c,i,a)}}function S(e,c,f){for(let i=1,a=e.length;i<a;++i){const m=e[i];for(const b of m){let B=0,I=0;for(const{source:L,value:ht}of b.targetLinks){let Q=ht*(b.layer-L.layer);B+=w(L,b)*Q,I+=Q}if(!(I>0))continue;let D=(B/I-b.y0)*c;b.y0+=D,b.y1+=D,Y(b)}s===void 0&&m.sort(q),C(m,f)}}function M(e,c,f){for(let i=e.length,a=i-2;a>=0;--a){const m=e[a];for(const b of m){let B=0,I=0;for(const{target:L,value:ht}of b.sourceLinks){let Q=ht*(L.layer-b.layer);B+=$(b,L)*Q,I+=Q}if(!(I>0))continue;let D=(B/I-b.y0)*c;b.y0+=D,b.y1+=D,Y(b)}s===void 0&&m.sort(q),C(m,f)}}function C(e,c){const f=e.length>>1,i=e[f];V(e,i.y0-p,f-1,c),N(e,i.y1+p,f+1,c),V(e,h,e.length-1,c),N(e,n,0,c)}function N(e,c,f,i){for(;f<e.length;++f){const a=e[f],m=(c-a.y0)*i;m>1e-6&&(a.y0+=m,a.y1+=m),c=a.y1+p}}function V(e,c,f,i){for(;f>=0;--f){const a=e[f],m=(a.y1-c)*i;m>1e-6&&(a.y0-=m,a.y1-=m),c=a.y0-p}}function Y({sourceLinks:e,targetLinks:c}){if(l===void 0){for(const{source:{sourceLinks:f}}of c)f.sort(gt);for(const{target:{targetLinks:f}}of e)f.sort(pt)}}function H(e){if(l===void 0)for(const{sourceLinks:c,targetLinks:f}of e)c.sort(gt),f.sort(pt)}function w(e,c){let f=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:i,width:a}of e.sourceLinks){if(i===c)break;f+=a+p}for(const{source:i,width:a}of c.targetLinks){if(i===e)break;f-=a}return f}function $(e,c){let f=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:i,width:a}of c.targetLinks){if(i===e)break;f+=a+p}for(const{target:i,width:a}of e.sourceLinks){if(i===c)break;f-=a}return f}return _}var ot=Math.PI,at=2*ot,F=1e-6,It=at-F;function lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xt(){return new lt}lt.prototype=xt.prototype={constructor:lt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,o,h){this._+="Q"+ +t+","+ +n+","+(this._x1=+o)+","+(this._y1=+h)},bezierCurveTo:function(t,n,o,h,d,u){this._+="C"+ +t+","+ +n+","+ +o+","+ +h+","+(this._x1=+d)+","+(this._y1=+u)},arcTo:function(t,n,o,h,d){t=+t,n=+n,o=+o,h=+h,d=+d;var u=this._x1,p=this._y1,y=o-t,r=h-n,s=u-t,l=p-n,x=s*s+l*l;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(x>F)if(!(Math.abs(l*y-r*s)>F)||!d)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var v=o-u,g=h-p,_=y*y+r*r,W=v*v+g*g,E=Math.sqrt(_),A=Math.sqrt(x),P=d*Math.tan((ot-Math.acos((_+x-W)/(2*E*A)))/2),j=P/A,R=P/E;Math.abs(j-1)>F&&(this._+="L"+(t+j*s)+","+(n+j*l)),this._+="A"+d+","+d+",0,0,"+ +(l*v>s*g)+","+(this._x1=t+R*y)+","+(this._y1=n+R*r)}},arc:function(t,n,o,h,d,u){t=+t,n=+n,o=+o,u=!!u;var p=o*Math.cos(h),y=o*Math.sin(h),r=t+p,s=n+y,l=1^u,x=u?h-d:d-h;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+r+","+s:(Math.abs(this._x1-r)>F||Math.abs(this._y1-s)>F)&&(this._+="L"+r+","+s),o&&(x<0&&(x=x%at+at),x>It?this._+="A"+o+","+o+",0,1,"+l+","+(t-p)+","+(n-y)+"A"+o+","+o+",0,1,"+l+","+(this._x1=r)+","+(this._y1=s):x>F&&(this._+="A"+o+","+o+",0,"+ +(x>=ot)+","+l+","+(this._x1=t+o*Math.cos(d))+","+(this._y1=n+o*Math.sin(d))))},rect:function(t,n,o,h){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +o+"v"+ +h+"h"+-o+"Z"},toString:function(){return this._}};var Pt=xt,Ct=Array.prototype.slice;function vt(t){return function(){return t}}function Ot(t){return t[0]}function zt(t){return t[1]}function Dt(t){return t.source}function jt(t){return t.target}function ct(t){var n=Dt,o=jt,h=Ot,d=zt,u=null;function p(){var y,r=Ct.call(arguments),s=n.apply(this,r),l=o.apply(this,r);if(u||(u=y=Pt()),t(u,+h.apply(this,(r[0]=s,r)),+d.apply(this,r),+h.apply(this,(r[0]=l,r)),+d.apply(this,r)),y)return u=null,y+""||null}return p.source=function(y){return arguments.length?(n=y,p):n},p.target=function(y){return arguments.length?(o=y,p):o},p.x=function(y){return arguments.length?(h=typeof y=="function"?y:vt(+y),p):h},p.y=function(y){return arguments.length?(d=typeof y=="function"?y:vt(+y),p):d},p.context=function(y){return arguments.length?(u=y==null?null:y,p):u},p}function Rt(t,n,o,h,d){t.moveTo(n,o),t.bezierCurveTo(n=(n+h)/2,o,n,d,h,d)}function $t(t,n,o,h,d){t.moveTo(n,o),t.bezierCurveTo(n,o=(o+d)/2,h,o,h,d)}function Bt(t,n,o,h,d){var u=pointRadial(n,o),p=pointRadial(n,o=(o+d)/2),y=pointRadial(h,o),r=pointRadial(h,d);t.moveTo(u[0],u[1]),t.bezierCurveTo(p[0],p[1],y[0],y[1],r[0],r[1])}function Ft(){return ct(Rt)}function ue(){return ct($t)}function he(){var t=ct(Bt);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function Vt(t){return[t.source.x1,t.y0]}function Yt(t){return[t.target.x0,t.y1]}function Ht(){return Ft().source(Vt).target(Yt)}var ut=function(){var t=(0,k.eW)(function(y,r,s,l){for(s=s||{},l=y.length;l--;s[y[l]]=r);return s},"o"),n=[1,9],o=[1,10],h=[1,5,10,12],d={trace:(0,k.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,k.eW)(function(r,s,l,x,v,g,_){var W=g.length-1;switch(v){case 7:const E=x.findOrCreateNode(g[W-4].trim().replaceAll('""','"')),A=x.findOrCreateNode(g[W-2].trim().replaceAll('""','"')),P=parseFloat(g[W].trim());x.addLink(E,A,P);break;case 8:case 9:case 11:this.$=g[W];break;case 10:this.$=g[W-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:o},{1:[2,6],7:11,10:[1,12]},t(o,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(h,[2,8]),t(h,[2,9]),{19:[1,16]},t(h,[2,11]),{1:[2,1]},{1:[2,5]},t(o,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:o},{15:18,16:7,17:8,18:n,20:o},{18:[1,19]},t(o,[2,3]),{12:[1,20]},t(h,[2,10]),{15:21,16:7,17:8,18:n,20:o},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,k.eW)(function(r,s){if(s.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=s,l}},"parseError"),parse:(0,k.eW)(function(r){var s=this,l=[0],x=[],v=[null],g=[],_=this.table,W="",E=0,A=0,P=0,j=2,R=1,z=g.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var C in this.yy)Object.prototype.hasOwnProperty.call(this.yy,C)&&(M.yy[C]=this.yy[C]);S.setInput(r,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc=="undefined"&&(S.yylloc={});var N=S.yylloc;g.push(N);var V=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(L){l.length=l.length-2*L,v.length=v.length-L,g.length=g.length-L}(0,k.eW)(Y,"popStack");function H(){var L;return L=x.pop()||S.lex()||R,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=s.symbols_[L]||L),L}(0,k.eW)(H,"lex");for(var w,$,e,c,f,i,a={},m,b,B,I;;){if(e=l[l.length-1],this.defaultActions[e]?c=this.defaultActions[e]:((w===null||typeof w=="undefined")&&(w=H()),c=_[e]&&_[e][w]),typeof c=="undefined"||!c.length||!c[0]){var D="";I=[];for(m in _[e])this.terminals_[m]&&m>j&&I.push("'"+this.terminals_[m]+"'");S.showPosition?D="Parse error on line "+(E+1)+`:
1
+ "use strict";(self.webpackChunkpaul_ai_assistant=self.webpackChunkpaul_ai_assistant||[]).push([[4484],{74484:function(ce,bt,U){var X,Z,O;U.d(bt,{diagram:function(){return le}});var T=U(99970),k=U(35096),G=U(989),St=U(64599),K=U.n(St);function ft(t,n){var o;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;u!=null&&(o>u||o===void 0&&u>=u)&&(o=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=n(s,++p,t))!=null&&(o>s||o===void 0&&s>=s)&&(o=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function wt(t){return t.target.depth}function Lt(t){return t.depth}function Et(t,n){return n-1-t.height}function yt(t,n){return t.sourceLinks.length?t.depth:n-1}function Wt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ft(t.sourceLinks,wt)-1:0}function rt(t,n){var o=0;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;(u=+u)&&(o+=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=+n(s,++p,t))&&(o+=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function dt(t,n){var o;if(n===void 0){var h=K()(t),d;try{for(h.s();!(d=h.n()).done;){var u=d.value;u!=null&&(o<u||o===void 0&&u>=u)&&(o=u)}}catch(l){h.e(l)}finally{h.f()}}else{var p=-1,y=K()(t),r;try{for(y.s();!(r=y.n()).done;){var s=r.value;(s=n(s,++p,t))!=null&&(o<s||o===void 0&&s>=s)&&(o=s)}}catch(l){y.e(l)}finally{y.f()}}return o}function J(t){return function(){return t}}function pt(t,n){return q(t.source,n.source)||t.index-n.index}function gt(t,n){return q(t.target,n.target)||t.index-n.index}function q(t,n){return t.y0-n.y0}function st(t){return t.value}function At(t){return t.index}function Tt(t){return t.nodes}function Mt(t){return t.links}function kt(t,n){const o=t.get(n);if(!o)throw new Error("missing: "+n);return o}function mt({nodes:t}){for(const n of t){let o=n.y0,h=o;for(const d of n.sourceLinks)d.y0=o+d.width/2,o+=d.width;for(const d of n.targetLinks)d.y1=h+d.width/2,h+=d.width}}function Nt(){let t=0,n=0,o=1,h=1,d=24,u=8,p,y=At,r=yt,s,l,x=Tt,v=Mt,g=6;function _(){const e={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return W(e),E(e),A(e),P(e),z(e),mt(e),e}_.update=function(e){return mt(e),e},_.nodeId=function(e){return arguments.length?(y=typeof e=="function"?e:J(e),_):y},_.nodeAlign=function(e){return arguments.length?(r=typeof e=="function"?e:J(e),_):r},_.nodeSort=function(e){return arguments.length?(s=e,_):s},_.nodeWidth=function(e){return arguments.length?(d=+e,_):d},_.nodePadding=function(e){return arguments.length?(u=p=+e,_):u},_.nodes=function(e){return arguments.length?(x=typeof e=="function"?e:J(e),_):x},_.links=function(e){return arguments.length?(v=typeof e=="function"?e:J(e),_):v},_.linkSort=function(e){return arguments.length?(l=e,_):l},_.size=function(e){return arguments.length?(t=n=0,o=+e[0],h=+e[1],_):[o-t,h-n]},_.extent=function(e){return arguments.length?(t=+e[0][0],o=+e[1][0],n=+e[0][1],h=+e[1][1],_):[[t,n],[o,h]]},_.iterations=function(e){return arguments.length?(g=+e,_):g};function W({nodes:e,links:c}){for(const[i,a]of e.entries())a.index=i,a.sourceLinks=[],a.targetLinks=[];const f=new Map(e.map((i,a)=>[y(i,a,e),i]));for(const[i,a]of c.entries()){a.index=i;let{source:m,target:b}=a;typeof m!="object"&&(m=a.source=kt(f,m)),typeof b!="object"&&(b=a.target=kt(f,b)),m.sourceLinks.push(a),b.targetLinks.push(a)}if(l!=null)for(const{sourceLinks:i,targetLinks:a}of e)i.sort(l),a.sort(l)}function E({nodes:e}){for(const c of e)c.value=c.fixedValue===void 0?Math.max(rt(c.sourceLinks,st),rt(c.targetLinks,st)):c.fixedValue}function A({nodes:e}){const c=e.length;let f=new Set(e),i=new Set,a=0;for(;f.size;){for(const m of f){m.depth=a;for(const{target:b}of m.sourceLinks)i.add(b)}if(++a>c)throw new Error("circular link");f=i,i=new Set}}function P({nodes:e}){const c=e.length;let f=new Set(e),i=new Set,a=0;for(;f.size;){for(const m of f){m.height=a;for(const{source:b}of m.targetLinks)i.add(b)}if(++a>c)throw new Error("circular link");f=i,i=new Set}}function j({nodes:e}){const c=dt(e,a=>a.depth)+1,f=(o-t-d)/(c-1),i=new Array(c);for(const a of e){const m=Math.max(0,Math.min(c-1,Math.floor(r.call(null,a,c))));a.layer=m,a.x0=t+m*f,a.x1=a.x0+d,i[m]?i[m].push(a):i[m]=[a]}if(s)for(const a of i)a.sort(s);return i}function R(e){const c=ft(e,f=>(h-n-(f.length-1)*p)/rt(f,st));for(const f of e){let i=n;for(const a of f){a.y0=i,a.y1=i+a.value*c,i=a.y1+p;for(const m of a.sourceLinks)m.width=m.value*c}i=(h-i+p)/(f.length+1);for(let a=0;a<f.length;++a){const m=f[a];m.y0+=i*(a+1),m.y1+=i*(a+1)}H(f)}}function z(e){const c=j(e);p=Math.min(u,(h-n)/(dt(c,f=>f.length)-1)),R(c);for(let f=0;f<g;++f){const i=Math.pow(.99,f),a=Math.max(1-i,(f+1)/g);M(c,i,a),S(c,i,a)}}function S(e,c,f){for(let i=1,a=e.length;i<a;++i){const m=e[i];for(const b of m){let B=0,I=0;for(const{source:L,value:ht}of b.targetLinks){let Q=ht*(b.layer-L.layer);B+=w(L,b)*Q,I+=Q}if(!(I>0))continue;let D=(B/I-b.y0)*c;b.y0+=D,b.y1+=D,Y(b)}s===void 0&&m.sort(q),C(m,f)}}function M(e,c,f){for(let i=e.length,a=i-2;a>=0;--a){const m=e[a];for(const b of m){let B=0,I=0;for(const{target:L,value:ht}of b.sourceLinks){let Q=ht*(L.layer-b.layer);B+=$(b,L)*Q,I+=Q}if(!(I>0))continue;let D=(B/I-b.y0)*c;b.y0+=D,b.y1+=D,Y(b)}s===void 0&&m.sort(q),C(m,f)}}function C(e,c){const f=e.length>>1,i=e[f];V(e,i.y0-p,f-1,c),N(e,i.y1+p,f+1,c),V(e,h,e.length-1,c),N(e,n,0,c)}function N(e,c,f,i){for(;f<e.length;++f){const a=e[f],m=(c-a.y0)*i;m>1e-6&&(a.y0+=m,a.y1+=m),c=a.y1+p}}function V(e,c,f,i){for(;f>=0;--f){const a=e[f],m=(a.y1-c)*i;m>1e-6&&(a.y0-=m,a.y1-=m),c=a.y0-p}}function Y({sourceLinks:e,targetLinks:c}){if(l===void 0){for(const{source:{sourceLinks:f}}of c)f.sort(gt);for(const{target:{targetLinks:f}}of e)f.sort(pt)}}function H(e){if(l===void 0)for(const{sourceLinks:c,targetLinks:f}of e)c.sort(gt),f.sort(pt)}function w(e,c){let f=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:i,width:a}of e.sourceLinks){if(i===c)break;f+=a+p}for(const{source:i,width:a}of c.targetLinks){if(i===e)break;f-=a}return f}function $(e,c){let f=c.y0-(c.targetLinks.length-1)*p/2;for(const{source:i,width:a}of c.targetLinks){if(i===e)break;f+=a+p}for(const{target:i,width:a}of e.sourceLinks){if(i===c)break;f-=a}return f}return _}var ot=Math.PI,at=2*ot,F=1e-6,It=at-F;function lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xt(){return new lt}lt.prototype=xt.prototype={constructor:lt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,o,h){this._+="Q"+ +t+","+ +n+","+(this._x1=+o)+","+(this._y1=+h)},bezierCurveTo:function(t,n,o,h,d,u){this._+="C"+ +t+","+ +n+","+ +o+","+ +h+","+(this._x1=+d)+","+(this._y1=+u)},arcTo:function(t,n,o,h,d){t=+t,n=+n,o=+o,h=+h,d=+d;var u=this._x1,p=this._y1,y=o-t,r=h-n,s=u-t,l=p-n,x=s*s+l*l;if(d<0)throw new Error("negative radius: "+d);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(x>F)if(!(Math.abs(l*y-r*s)>F)||!d)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var v=o-u,g=h-p,_=y*y+r*r,W=v*v+g*g,E=Math.sqrt(_),A=Math.sqrt(x),P=d*Math.tan((ot-Math.acos((_+x-W)/(2*E*A)))/2),j=P/A,R=P/E;Math.abs(j-1)>F&&(this._+="L"+(t+j*s)+","+(n+j*l)),this._+="A"+d+","+d+",0,0,"+ +(l*v>s*g)+","+(this._x1=t+R*y)+","+(this._y1=n+R*r)}},arc:function(t,n,o,h,d,u){t=+t,n=+n,o=+o,u=!!u;var p=o*Math.cos(h),y=o*Math.sin(h),r=t+p,s=n+y,l=1^u,x=u?h-d:d-h;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+r+","+s:(Math.abs(this._x1-r)>F||Math.abs(this._y1-s)>F)&&(this._+="L"+r+","+s),o&&(x<0&&(x=x%at+at),x>It?this._+="A"+o+","+o+",0,1,"+l+","+(t-p)+","+(n-y)+"A"+o+","+o+",0,1,"+l+","+(this._x1=r)+","+(this._y1=s):x>F&&(this._+="A"+o+","+o+",0,"+ +(x>=ot)+","+l+","+(this._x1=t+o*Math.cos(d))+","+(this._y1=n+o*Math.sin(d))))},rect:function(t,n,o,h){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +o+"v"+ +h+"h"+-o+"Z"},toString:function(){return this._}};var Pt=xt,Ct=Array.prototype.slice;function vt(t){return function(){return t}}function Ot(t){return t[0]}function zt(t){return t[1]}function Dt(t){return t.source}function jt(t){return t.target}function ct(t){var n=Dt,o=jt,h=Ot,d=zt,u=null;function p(){var y,r=Ct.call(arguments),s=n.apply(this,r),l=o.apply(this,r);if(u||(u=y=Pt()),t(u,+h.apply(this,(r[0]=s,r)),+d.apply(this,r),+h.apply(this,(r[0]=l,r)),+d.apply(this,r)),y)return u=null,y+""||null}return p.source=function(y){return arguments.length?(n=y,p):n},p.target=function(y){return arguments.length?(o=y,p):o},p.x=function(y){return arguments.length?(h=typeof y=="function"?y:vt(+y),p):h},p.y=function(y){return arguments.length?(d=typeof y=="function"?y:vt(+y),p):d},p.context=function(y){return arguments.length?(u=y==null?null:y,p):u},p}function Rt(t,n,o,h,d){t.moveTo(n,o),t.bezierCurveTo(n=(n+h)/2,o,n,d,h,d)}function $t(t,n,o,h,d){t.moveTo(n,o),t.bezierCurveTo(n,o=(o+d)/2,h,o,h,d)}function Bt(t,n,o,h,d){var u=pointRadial(n,o),p=pointRadial(n,o=(o+d)/2),y=pointRadial(h,o),r=pointRadial(h,d);t.moveTo(u[0],u[1]),t.bezierCurveTo(p[0],p[1],y[0],y[1],r[0],r[1])}function Ft(){return ct(Rt)}function ue(){return ct($t)}function he(){var t=ct(Bt);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function Vt(t){return[t.source.x1,t.y0]}function Yt(t){return[t.target.x0,t.y1]}function Ht(){return Ft().source(Vt).target(Yt)}var ut=function(){var t=(0,k.eW)(function(y,r,s,l){for(s=s||{},l=y.length;l--;s[y[l]]=r);return s},"o"),n=[1,9],o=[1,10],h=[1,5,10,12],d={trace:(0,k.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,k.eW)(function(r,s,l,x,v,g,_){var W=g.length-1;switch(v){case 7:const E=x.findOrCreateNode(g[W-4].trim().replaceAll('""','"')),A=x.findOrCreateNode(g[W-2].trim().replaceAll('""','"')),P=parseFloat(g[W].trim());x.addLink(E,A,P);break;case 8:case 9:case 11:this.$=g[W];break;case 10:this.$=g[W-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:o},{1:[2,6],7:11,10:[1,12]},t(o,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(h,[2,8]),t(h,[2,9]),{19:[1,16]},t(h,[2,11]),{1:[2,1]},{1:[2,5]},t(o,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:o},{15:18,16:7,17:8,18:n,20:o},{18:[1,19]},t(o,[2,3]),{12:[1,20]},t(h,[2,10]),{15:21,16:7,17:8,18:n,20:o},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,k.eW)(function(r,s){if(s.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=s,l}},"parseError"),parse:(0,k.eW)(function(r){var s=this,l=[0],x=[],v=[null],g=[],_=this.table,W="",E=0,A=0,P=0,j=2,R=1,z=g.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var C in this.yy)Object.prototype.hasOwnProperty.call(this.yy,C)&&(M.yy[C]=this.yy[C]);S.setInput(r,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc=="undefined"&&(S.yylloc={});var N=S.yylloc;g.push(N);var V=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(L){l.length=l.length-2*L,v.length=v.length-L,g.length=g.length-L}(0,k.eW)(Y,"popStack");function H(){var L;return L=x.pop()||S.lex()||R,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=s.symbols_[L]||L),L}(0,k.eW)(H,"lex");for(var w,$,e,c,f,i,a={},m,b,B,I;;){if(e=l[l.length-1],this.defaultActions[e]?c=this.defaultActions[e]:((w===null||typeof w=="undefined")&&(w=H()),c=_[e]&&_[e][w]),typeof c=="undefined"||!c.length||!c[0]){var D="";I=[];for(m in _[e])this.terminals_[m]&&m>j&&I.push("'"+this.terminals_[m]+"'");S.showPosition?D="Parse error on line "+(E+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+I.join(", ")+", got '"+(this.terminals_[w]||w)+"'":D="Parse error on line "+(E+1)+": Unexpected "+(w==R?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(D,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:N,expected:I})}if(c[0]instanceof Array&&c.length>1)throw new Error("Parse Error: multiple actions possible at state: "+e+", token: "+w);switch(c[0]){case 1:l.push(w),v.push(S.yytext),g.push(S.yylloc),l.push(c[1]),w=null,$?(w=$,$=null):(A=S.yyleng,W=S.yytext,E=S.yylineno,N=S.yylloc,P>0&&P--);break;case 2:if(b=this.productions_[c[1]][1],a.$=v[v.length-b],a._$={first_line:g[g.length-(b||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(b||1)].first_column,last_column:g[g.length-1].last_column},V&&(a._$.range=[g[g.length-(b||1)].range[0],g[g.length-1].range[1]]),i=this.performAction.apply(a,[W,A,E,M.yy,c[1],v,g].concat(z)),typeof i!="undefined")return i;b&&(l=l.slice(0,-1*b*2),v=v.slice(0,-1*b),g=g.slice(0,-1*b)),l.push(this.productions_[c[1]][0]),v.push(a.$),g.push(a._$),B=_[l[l.length-2]][l[l.length-1]],l.push(B);break;case 3:return!0}}return!0},"parse")},u=function(){var y={EOF:1,parseError:(0,k.eW)(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:(0,k.eW)(function(r,s){return this.yy=s||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,k.eW)(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var s=r.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:(0,k.eW)(function(r){var s=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===x.length?this.yylloc.first_column:0)+x[x.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:(0,k.eW)(function(){return this._more=!0,this},"more"),reject:(0,k.eW)(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:(0,k.eW)(function(r){this.unput(this.match.slice(r))},"less"),pastInput:(0,k.eW)(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,k.eW)(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,k.eW)(function(){var r=this.pastInput(),s=new Array(r.length+1).join("-");return r+this.upcomingInput()+`