github-actions[bot] commited on
Commit
1c8d1ca
·
1 Parent(s): 9877120

Update from GitHub Actions

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .output/nitro.json +1 -1
  2. .output/public/assets/@agoose77-R9PiO-3G.js +1 -0
  3. .output/public/assets/@babel-D5ZMb8W9.js +1 -0
  4. .output/public/assets/@braintree-DgpeZQRe.js +1 -0
  5. .output/public/assets/@dicebear-JcnEMRoc.js +0 -0
  6. .output/public/assets/@intlify-CLGVtpI2.js +135 -0
  7. .output/public/assets/@material-C_XhzpVg.js +237 -0
  8. .output/public/assets/@mozilla-BD532_dh.js +385 -0
  9. .output/public/assets/@popperjs-B4tvfKWZ.js +28 -0
  10. .output/public/assets/@traptitech-BPk2gen6.js +1 -0
  11. .output/public/assets/@vue-DsZlmJIP.js +0 -0
  12. .output/public/assets/@vueuse-CdWUKi2M.js +3 -0
  13. .output/public/assets/@wdns-Ct47UQBJ.js +0 -0
  14. .output/public/assets/ChatInput.vue_vue_type_style_index_0_lang-DUr-4UKr.js +1 -0
  15. .output/public/assets/CodeBlocks-MBU6g1QI.css +1 -0
  16. .output/public/assets/CodeBlocks.vue_vue_type_style_index_0_lang-CvrmorfG.js +1 -0
  17. .output/public/assets/FrameContent-bNpFlz6q.js +1 -0
  18. .output/public/assets/about-CugW5a8w.js +1 -0
  19. .output/public/assets/avatar.vue_vue_type_script_setup_true_lang-wHec3jdP.js +1 -0
  20. .output/public/assets/bezier-easing-7-TbLOHs.js +1 -0
  21. .output/public/assets/changelog-C40lRUaA.js +1 -0
  22. .output/public/assets/chat-C2WiXM6d.js +1 -0
  23. .output/public/assets/chat-DTe6v-O7.css +1 -0
  24. .output/public/assets/chroma-js-C-7CTB41.js +79 -0
  25. .output/public/assets/content-D7oV9sgD.js +3 -0
  26. .output/public/assets/core-js-pure-ZQ_YVJtv.js +99 -0
  27. .output/public/assets/cose-base-kQthUiMK.js +46 -0
  28. .output/public/assets/cytoscape-D84qPEQv.js +0 -0
  29. .output/public/assets/cytoscape-cose-bilkent-CoOmxuE9.js +74 -0
  30. .output/public/assets/d3-BW2GlWy8.js +1 -0
  31. .output/public/assets/d3-array-B0evfIyH.js +1 -0
  32. .output/public/assets/d3-axis-pCwzqJ1S.js +1 -0
  33. .output/public/assets/d3-brush-CAg10rWz.js +1 -0
  34. .output/public/assets/d3-chord-l0sNRNKZ.js +1 -0
  35. .output/public/assets/d3-color-D5ULnJIe.js +5 -0
  36. .output/public/assets/d3-contour-l0sNRNKZ.js +1 -0
  37. .output/public/assets/d3-delaunay-l0sNRNKZ.js +1 -0
  38. .output/public/assets/d3-dispatch-Chq_f_hl.js +1 -0
  39. .output/public/assets/d3-drag-l0sNRNKZ.js +1 -0
  40. .output/public/assets/d3-dsv-l0sNRNKZ.js +1 -0
  41. .output/public/assets/d3-ease-Cx6bG2vu.js +1 -0
  42. .output/public/assets/d3-fetch-XwboCDHR.js +1 -0
  43. .output/public/assets/d3-force-l0sNRNKZ.js +1 -0
  44. .output/public/assets/d3-format-C0lSXcPg.js +1 -0
  45. .output/public/assets/d3-geo-l0sNRNKZ.js +1 -0
  46. .output/public/assets/d3-hierarchy-l0sNRNKZ.js +1 -0
  47. .output/public/assets/d3-interpolate-Ct9kki6l.js +1 -0
  48. .output/public/assets/d3-path-QSrLXsQ3.js +2 -0
  49. .output/public/assets/d3-polygon-l0sNRNKZ.js +1 -0
  50. .output/public/assets/d3-quadtree-l0sNRNKZ.js +1 -0
.output/nitro.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "date": "2025-03-03T16:13:41.796Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
 
1
  {
2
+ "date": "2025-03-04T10:42:01.030Z",
3
  "preset": "node-server",
4
  "framework": {
5
  "name": "nitro",
.output/public/assets/@agoose77-R9PiO-3G.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{m as e}from"./mermaid-DPhN_ogz.js";import"./dayjs-DOPU4UI6.js";import"./@braintree-DgpeZQRe.js";import"./d3-transition-swcnLnsT.js";import"./d3-zoom-D4Vc87xO.js";import"./dompurify-B5jhUdWW.js";import"./dagre-d3-es-CoKyXJoG.js";function t(t,r){e.initialize(Object.assign({securityLevel:"loose"},r));let i=t.renderer.rules.fence;t.renderer.rules.fence=function(t,r,n,m,s){let d=t[r],o=d.info.trim(),a=o?function(e){return e.split(/\s+/g)[0]}(o):"";if(-1===["mermaid","{mermaid}"].indexOf(a))return void 0!==i?i(t,r,n,m,s):"";let l="",c=[];const u=document.createElement("div");document.body.appendChild(u);try{const t="mermaid-container";e.mermaidAPI.render(t,d.content,(e=>{let r=document.getElementById(t);null!==r&&c.push(["style",`max-width:${r.style.maxWidth};max-height:${r.style.maxHeight}`]),l=e}),u)}catch(p){return`<div class="alert alert-danger">${p}</div>`}finally{u.remove()}return c.push(["src",`data:image/svg+xml,${encodeURIComponent(l)}`]),`<img ${s.renderAttrs({attrs:c})}>`}}export{t as m};
.output/public/assets/@babel-D5ZMb8W9.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{r as t,a as n,b as r,c as e,d as a,e as o,f as s,g as c,h as i,i as u,j as l,k as f,l as v,m as p,n as d,o as b,p as y,q as h,s as g,t as m}from"./core-js-pure-ZQ_YVJtv.js";var w,j,O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function I(t){if(t.__esModule)return t;var n=t.default;if("function"==typeof n){var r=function t(){return this instanceof t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){var e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,e.get?e:{enumerable:!0,get:function(){return t[n]}})})),r}const T=_(j?w:(j=1,w=t()));function k(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}var E,M;const P=_(M?E:(M=1,E=n()));var S,A;const q=_(A?S:(A=1,S=r()));var x,C;const D=_(C?x:(C=1,x=e()));var R,U;const $=_(U?R:(U=1,R=a()));function z(t,n){var r;if(t){if("string"==typeof t)return k(t,n);var e=$(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?D(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?k(t,n):void 0}}function B(t){return function(t){if(T(t))return k(t)}(t)||function(t){if(void 0!==P&&null!=q(t)||null!=t["@@iterator"])return D(t)}(t)||z(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var G,H;const J=_(H?G:(H=1,G=o()));function K(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),J(t,e.key,e)}}function L(t,n,r){return n&&K(t.prototype,n),r&&K(t,r),J(t,"prototype",{writable:!1}),t}function N(t,n,r){return n in t?J(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var Q,V;const W=_(V?Q:(V=1,Q=s()));var X,Y;const Z=_(Y?X:(Y=1,X=c()));var tt,nt;const rt=_(nt?tt:(nt=1,tt=i()));var et,at;const ot=_(at?et:(at=1,et=u()));var st,ct;const it=_(ct?st:(ct=1,st=l()));var ut,lt;const ft=_(lt?ut:(lt=1,ut=f()));var vt,pt;const dt=_(pt?vt:(pt=1,vt=v()));var bt,yt;const ht=_(yt?bt:(yt=1,bt=p()));var gt,mt;const wt=_(mt?gt:(mt=1,gt=d()));var jt,Ot;const _t=_(Ot?jt:(Ot=1,jt=b()));var It,Tt;const kt=_(Tt?It:(Tt=1,It=y()));var Et,Mt;const Pt=_(Mt?Et:(Mt=1,Et=h()));var St,At;const qt=_(At?St:(At=1,St=g()));function xt(t,n){return function(t){if(T(t))return t}(t)||function(t,n){var r=null==t?null:void 0!==P&&q(t)||t["@@iterator"];if(null!=r){var e,a,o=[],s=!0,c=!1;try{for(r=r.call(t);!(s=(e=r.next()).done)&&(o.push(e.value),!n||o.length!==n);s=!0);}catch(i){c=!0,a=i}finally{try{s||null==r.return||r.return()}finally{if(c)throw a}}return o}}(t,n)||z(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ct,Dt;const Rt=_(Dt?Ct:(Dt=1,Ct=m()));export{qt as M,L as _,I as a,Z as b,O as c,F as d,wt as e,B as f,_ as g,it as h,rt as i,_t as j,xt as k,kt as l,dt as m,Rt as n,W as o,ft as p,N as q,q as s,ot as u,ht as v,Pt as x};
.output/public/assets/@braintree-DgpeZQRe.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var r,e={};var t=(r||(r=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitizeUrl=r.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,t=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|&colon;)/gim,u=[".","/"];r.BLANK_URL="about:blank",r.sanitizeUrl=function(c){if(!c)return r.BLANK_URL;var o,f=(o=c,o.replace(n,"").replace(t,(function(r,e){return String.fromCharCode(e)}))).replace(i,"").replace(n,"").trim();if(!f)return r.BLANK_URL;if(function(r){return u.indexOf(r[0])>-1}(f))return f;var l=f.match(a);if(!l)return f;var v=l[0];return e.test(v)?r.BLANK_URL:f}}(e)),e);export{t as d};
.output/public/assets/@dicebear-JcnEMRoc.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/@intlify-CLGVtpI2.js ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * shared v11.1.1
3
+ * (c) 2025 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */
6
+ const e="undefined"!=typeof window,t=(e,t=!1)=>t?Symbol.for(e):Symbol(e),n=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),r=e=>"number"==typeof e&&isFinite(e),o=e=>"[object RegExp]"===_(e),s=e=>v(e)&&0===Object.keys(e).length,c=Object.assign,a=Object.create,l=(e=null)=>a(e);let u;const i=()=>u||(u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:l());function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const d=Object.prototype.hasOwnProperty;function m(e,t){return d.call(e,t)}const p=Array.isArray,h=e=>"function"==typeof e,k=e=>"string"==typeof e,y=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,g=Object.prototype.toString,_=e=>g.call(e),v=e=>"[object Object]"===_(e);function L(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function x(e,t){}const w=e=>!b(e)||p(e);function C(e,t){if(w(e)||w(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(b(e[r])&&!b(t[r])&&(t[r]=Array.isArray(e[r])?[]:l()),w(t[r])||w(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}
7
+ /*!
8
+ * message-compiler v11.1.1
9
+ * (c) 2025 kazuya kawaguchi
10
+ * Released under the MIT License.
11
+ */function T(e,t,n){return{start:e,end:t}}const O=1,P=2,S=3,F=4,I=5,N=6,$=7,W=8,E=9,D=10,M=11,R=12,A=13,j=14;function z(e,t,n={}){const{domain:r,messages:o,args:s}=n,c=new SyntaxError(String(e));return c.code=e,t&&(c.location=t),c.domain=r,c}function H(e){throw e}const J=" ",K="\n",V=String.fromCharCode(8232),Y=String.fromCharCode(8233);function U(e){const t=e;let n=0,r=1,o=1,s=0;const c=e=>"\r"===t[e]&&t[e+1]===K,a=e=>t[e]===Y,l=e=>t[e]===V,u=e=>c(e)||(e=>t[e]===K)(e)||a(e)||l(e),i=e=>c(e)||a(e)||l(e)?K:t[e];function f(){return s=0,u(n)&&(r++,o=0),c(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>s,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+s),next:f,peek:function(){return c(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,r=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)f();s=0}}}const G=void 0;function Z(e,t={}){const n=!1!==t.location,r=U(e),o=()=>r.index(),s=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},c=s(),a=o(),l={currentType:13,offset:a,startLoc:c,endLoc:c,lastType:13,lastOffset:a,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:i}=t;function f(e,t,r,...o){const s=u();if(t.column+=r,t.offset+=r,i){const r=z(e,n?T(s.startLoc,t):null,{domain:"tokenizer",args:o});i(r)}}function d(e,t,r){e.endLoc=s(),e.currentType=t;const o={type:t};return n&&(o.loc=T(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const m=e=>d(e,13
12
+ /* TokenTypes.EOF */);function p(e,t){return e.currentChar()===t?(e.next(),t):(f(O,s(),0,t),"")}function h(e){let t="";for(;e.currentPeek()===J||e.currentPeek()===K;)t+=e.currentPeek(),e.peek();return t}function k(e){const t=h(e);return e.skipToPeek(),t}function y(e){if(e===G)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||// a-z
13
+ t>=65&&t<=90||// A-Z
14
+ 95===t}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r=function(e){if(e===G)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function g(e){h(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,r="")=>{const o=e.currentPeek();return"{"===o?t:"@"!==o&&o?"|"===o?!(r===J||r===K):o===J?(e.peek(),n(!0,J)):o!==K||(e.peek(),n(!0,K)):t},r=n();return t&&e.resetPeek(),r}function v(e,t){const n=e.currentChar();return n===G?G:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||// a-z
15
+ t>=65&&t<=90||// A-Z
16
+ t>=48&&t<=57||// 0-9
17
+ 95===t||// _
18
+ 36===t}function x(e){return v(e,L)}function w(e){const t=e.charCodeAt(0);return t>=97&&t<=122||// a-z
19
+ t>=65&&t<=90||// A-Z
20
+ t>=48&&t<=57||// 0-9
21
+ 95===t||// _
22
+ 36===t||// $
23
+ 45===t}function C(e){return v(e,w)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function R(e){return v(e,M)}function A(e){const t=e.charCodeAt(0);return t>=48&&t<=57||// 0-9
24
+ t>=65&&t<=70||// A-F
25
+ t>=97&&t<=102}function j(e){return v(e,A)}function H(e){let t="",n="";for(;t=R(e);)n+=t;return n}function V(e){return"'"!==e&&e!==K}function Y(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return Z(e,t,4);case"U":return Z(e,t,6);default:return f(F,s(),0,t),""}}function Z(e,t,n){p(e,t);let r="";for(let o=0;o<n;o++){const n=j(e);if(!n){f(I,s(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function q(e){return"{"!==e&&"}"!==e&&e!==J&&e!==K}function B(e){k(e);const t=p(e,"|"
26
+ /* TokenChars.Pipe */);return k(e),t}function Q(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&f(E,s(),0),e.next(),n=d(t,2,"{"
27
+ /* TokenChars.BraceLeft */),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(W,s(),0),e.next(),n=d(t,3,"}"
28
+ /* TokenChars.BraceRight */),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f($,s(),0),n=X(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,o=!0,c=!0;if(g(e))return t.braceNest>0&&f($,s(),0),n=d(t,1,B(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return f($,s(),0),t.braceNest=0,ee(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r=y(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,4,function(e){k(e);let t="",n="";for(;t=C(e);)n+=t;return e.currentChar()===G&&f($,s(),0),n}(e)),k(e),n;if(o=b(e,t))return n=d(t,5,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${H(e)}`):t+=H(e),e.currentChar()===G&&f($,s(),0),t}(e)),k(e),n;if(c=function(e,t){const{currentType:n}=t;if(2!==n)return!1;h(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=d(t,6,function(e){k(e),p(e,"'");let t="",n="";for(;t=v(e,V);)n+="\\"===t?Y(e):t;const r=e.currentChar();return r===K||r===G?(f(S,s(),0),r===K&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!o&&!c)return n=d(t,12,function(e){k(e);let t="",n="";for(;t=v(e,q);)n+=t;return n}(e)),f(P,s(),0,n.value),k(e),n;break}}return n}function X(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||o!==K&&o!==J||f(D,s(),0),o){case"@":return e.next(),r=d(t,7,"@"
29
+ /* TokenChars.LinkedAlias */),t.inLinked=!0,r;case".":return k(e),e.next(),d(t,8,"."
30
+ /* TokenChars.LinkedDot */);case":":return k(e),e.next(),d(t,9,":"
31
+ /* TokenChars.LinkedDelimiter */);default:return g(e)?(r=d(t,1,B(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;h(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;h(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),X(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;h(e);const r=y(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),d(t,11,function(e){let t="",n="";for(;t=x(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===J||!t)&&(t===K?(e.peek(),r()):_(e,!1))},o=r();return e.resetPeek(),o}(e,t)?(k(e),"{"===o?Q(e,t)||r:d(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===J?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&f(D,s(),0),t.braceNest=0,t.inLinked=!1,ee(e,t))}}function ee(e,t){let n={type:13
32
+ /* TokenTypes.EOF */};if(t.braceNest>0)return Q(e,t)||m(t);if(t.inLinked)return X(e,t)||m(t);switch(e.currentChar()){case"{":return Q(e,t)||m(t);case"}":return f(N,s(),0),e.next(),d(t,3,"}"
33
+ /* TokenChars.BraceRight */);case"@":return X(e,t)||m(t);default:if(g(e))return n=d(t,1,B(e)),t.braceNest=0,t.inLinked=!1,n;if(_(e))return d(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===J||n===K)if(_(e))t+=n,e.next();else{if(g(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:c}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=c,l.offset=o(),l.startLoc=s(),r.currentChar()===G?d(l,13
34
+ /* TokenTypes.EOF */):ee(r,l)},currentOffset:o,currentPosition:s,context:u}}const q=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function B(e,t,n){switch(e){case"\\\\":return"\\";
35
+ // eslint-disable-next-line no-useless-escape
36
+ case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Q(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,o,s,...c){const a=e.currentPosition();if(a.offset+=s,a.column+=s,n){const e=z(r,t?T(o,a):null,{domain:"parser",args:c});n(e)}}function o(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function s(e,n,r,o){t&&(e.end=n,e.loc&&(e.loc.end=r))}function a(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,a=o(5,r,c);return a.index=parseInt(t,10),e.nextToken(),s(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,a=o(4,r,c);return a.key=t,e.nextToken(),s(a,e.currentOffset(),e.currentPosition()),a}function i(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:c}=n,a=o(9,r,c);return a.value=t.replace(q,B),e.nextToken(),s(a,e.currentOffset(),e.currentPosition()),a}function f(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let c=e.nextToken();if(8===c.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:c,lastStartLoc:a}=n,l=o(8,c,a);return 11!==t.type?(r(e,R,n.lastStartLoc,0),l.value="",s(l,c,a),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,j,n.lastStartLoc,0,X(t)),l.value=t.value||"",s(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,c=t.nextConsumeToken||e.nextToken()}switch(9!==c.type&&r(e,j,t.lastStartLoc,0,X(c)),c=e.nextToken(),2===c.type&&(c=e.nextToken()),c.type){case 10:null==c.value&&r(e,j,t.lastStartLoc,0,X(c)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}(e,c.value||"");break;case 4:null==c.value&&r(e,j,t.lastStartLoc,0,X(c)),n.key=u(e,c.value||"");break;case 5:null==c.value&&r(e,j,t.lastStartLoc,0,X(c)),n.key=l(e,c.value||"");break;case 6:null==c.value&&r(e,j,t.lastStartLoc,0,X(c)),n.key=i(e,c.value||"");break;default:{r(e,A,t.lastStartLoc,0);const a=e.context(),l=o(7,a.offset,a.startLoc);return l.value="",s(l,a.offset,a.startLoc),n.key=l,s(n,a.offset,a.startLoc),{nextConsumeToken:c,node:n}}}return s(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const o=c||e.nextToken();switch(c=null,o.type){case 0:null==o.value&&r(e,j,t.lastStartLoc,0,X(o)),n.items.push(a(e,o.value||""));break;case 5:null==o.value&&r(e,j,t.lastStartLoc,0,X(o)),n.items.push(l(e,o.value||""));break;case 4:null==o.value&&r(e,j,t.lastStartLoc,0,X(o)),n.items.push(u(e,o.value||""));break;case 6:null==o.value&&r(e,j,t.lastStartLoc,0,X(o)),n.items.push(i(e,o.value||""));break;case 7:{const t=f(e);n.items.push(t.node),c=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return s(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function m(e){const t=e.context(),{offset:n,startLoc:c}=t,a=d(e);return 13===t.currentType?a:function(e,t,n,c){const a=e.context();let l=0===c.items.length;const u=o(1,t,n);u.cases=[],u.cases.push(c);do{const t=d(e);l||(l=0===t.items.length),u.cases.push(t)}while(13!==a.currentType);return l&&r(e,M,n,0),s(u,e.currentOffset(),e.currentPosition()),u}(e,n,c,a)}return{parse:function(n){const a=Z(n,c({},e)),l=a.context(),u=o(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=m(a),e.onCacheKey&&(u.cacheKey=e.onCacheKey(n)),13!==l.currentType&&r(a,j,l.lastStartLoc,0,n[l.offset]||""),s(u,a.currentOffset(),a.currentPosition()),u}}}function X(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ee(e,t){for(let n=0;n<e.length;n++)te(e[n],t)}function te(e,t){switch(e.type){case 1:ee(e.cases,t),t.helper("plural"
37
+ /* HelperNameMap.PLURAL */);break;case 2:ee(e.items,t);break;case 6:te(e.key,t),t.helper("linked"
38
+ /* HelperNameMap.LINKED */),t.helper("type"
39
+ /* HelperNameMap.TYPE */);break;case 5:t.helper("interpolate"
40
+ /* HelperNameMap.INTERPOLATE */),t.helper("list"
41
+ /* HelperNameMap.LIST */);break;case 4:t.helper("interpolate"
42
+ /* HelperNameMap.INTERPOLATE */),t.helper("named"
43
+ /* HelperNameMap.NAMED */)}}function ne(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"
44
+ /* HelperNameMap.NORMALIZE */),e.body&&te(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function re(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=L(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function oe(e){switch(e.t=e.type,e.type){case 0:{const t=e;oe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)oe(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)oe(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;oe(t.key),t.k=t.key,delete t.key,t.modifier&&(oe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function se(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?se(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural"
45
+ /* HelperNameMap.PLURAL */)}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(se(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize"
46
+ /* HelperNameMap.NORMALIZE */)}([`),e.indent(r());const o=t.items.length;for(let s=0;s<o&&(se(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked"
47
+ /* HelperNameMap.LINKED */)}(`),se(e,t.key),t.modifier?(e.push(", "),se(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate"
48
+ /* HelperNameMap.INTERPOLATE */)}(${n("list"
49
+ /* HelperNameMap.LIST */)}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate"
50
+ /* HelperNameMap.INTERPOLATE */)}(${n("named"
51
+ /* HelperNameMap.NAMED */)}(${JSON.stringify(t.key)}))`,t)}}function ce(e,t={}){const n=c({},t),r=!!n.jit,o=!!n.minify,s=null==n.optimize||n.optimize,a=Q(n).parse(e);return r?(s&&function(e){const t=e.body;2===t.type?re(t):t.cases.forEach((e=>re(e)))}(a),o&&oe(a),{ast:a,code:""}):(ne(a,n),((e,t={})=>{const n=k(t.mode)?t.mode:"normal",r=k(t.filename)?t.filename:"message.intl";t.sourceMap;const o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],a=function(e,t){const{filename:n,breakLineCode:r,needIndent:o}=t,s=!1!==t.location,c={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};function a(e,t){c.code+=e}function l(e,t=!0){const n=t?r:"";a(o?n+" ".repeat(e):n)}return s&&e.loc&&(c.source=e.loc.source),{context:()=>c,push:a,indent:function(e=!0){const t=++c.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--c.indentLevel;e&&l(t)},newline:function(){l(c.indentLevel)},helper:e=>`_${e}`,needIndent:()=>c.needIndent}}(e,{filename:r,breakLineCode:o,needIndent:s});a.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),c.length>0&&(a.push(`const { ${L(c.map((e=>`${e}: _${e}`)),", ")} } = ctx`),a.newline()),a.push("return "),se(a,e),a.deindent(s),a.push("}"),delete e.helpers;const{code:l,map:u}=a.context();return{ast:e,code:l,map:u?u.toJSON():void 0}})(a,n))}
52
+ /*!
53
+ * core-base v11.1.1
54
+ * (c) 2025 kazuya kawaguchi
55
+ * Released under the MIT License.
56
+ */function ae(e){return t=>function(e,t){const n=(r=t,_e(r,le));var r;if(null==n)throw ve(0
57
+ /* NodeTypes.Resource */);if(1===he(n)){const t=function(e){return _e(e,ue,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,ie(e,n)]),[]))}return ie(e,n)}(t,e)}const le=["b","body"];const ue=["c","cases"];function ie(e,t){const n=function(e){return _e(e,fe)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return _e(e,de,[])}(t).reduce(((t,n)=>[...t,me(e,n)]),[]);return e.normalize(n)}}const fe=["s","static"];const de=["i","items"];function me(e,t){const n=he(t);switch(n){case 3:case 9:case 7:case 8:return ye(t,n);case 4:{const r=t;if(m(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(m(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ve(n)}case 5:{const o=t;if(m(o,"i")&&r(o.i))return e.interpolate(e.list(o.i));if(m(o,"index")&&r(o.index))return e.interpolate(e.list(o.index));throw ve(n)}case 6:{const n=t,r=function(e){return _e(e,be)}(n),o=function(e){const t=_e(e,ge);if(t)return t;throw ve(6
58
+ /* NodeTypes.Linked */)}(n);return e.linked(me(e,o),r?me(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const pe=["t","type"];function he(e){return _e(e,pe)}const ke=["v","value"];function ye(e,t){const n=_e(e,ke);if(n)return n;throw ve(t)}const be=["m","modifier"];const ge=["k","key"];function _e(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(m(e,n)&&null!=e[n])return e[n]}return n}function ve(e){return new Error(`unhandled node type: ${e}`)}const Le=e=>e;let xe=l();function we(e){return b(e)&&0===he(e)&&(m(e,"b")||m(e,"body"))}
59
+ // @__NO_SIDE_EFFECTS__
60
+ function Ce(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){!y(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||Le)(e),r=xe[n];if(r)return r;const{ast:o,detectError:s}=function(e,t={}){let n=!1;const r=t.onError||H;return t.onError=e=>{n=!0,r(e)},{...ce(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),c=ae(o);return s?c:xe[n]=c}{const t=e.cacheKey;if(t){const n=xe[t];return n||(xe[t]=ae(e))}return ae(e)}}let Te=null;function Oe(e){Te=e}const Pe=Se("function:translate");function Se(e){return t=>Te&&Te.emit(e,t)}const Fe=17,Ie=18,Ne=19,$e=21,We=22,Ee=23,De=24;function Me(e){return z(e,null,void 0)}function Re(e,t){return null!=t.locale?je(t.locale):je(e.locale)}let Ae;function je(e){if(k(e))return e;if(h(e)){if(e.resolvedOnce&&null!=Ae)return Ae;if("Function"===e.constructor.name){const n=e();if(b(t=n)&&h(t.then)&&h(t.catch))throw Me($e);return Ae=n}throw Me(We)}throw Me(Ee);var t}function ze(e,t,n){return[...new Set([n,...p(t)?t:b(t)?Object.keys(t):k(t)?[t]:[n]])]}function He(e,t,n){const r=k(n)?n:et,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let e=[n];for(;p(e);)e=Je(s,e,t);const c=p(t)||!v(t)?t:t.default?t.default:null;e=k(c)?[c]:c,p(e)&&Je(s,e,!1),o.__localeChainCache.set(r,s)}return s}function Je(e,t,n){let r=!0;for(let o=0;o<t.length&&y(r);o++){const s=t[o];k(s)&&(r=Ke(e,t[o],n))}return r}function Ke(e,t,n){let r;const o=t.split("-");do{r=Ve(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Ve(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(p(n)||v(n))&&n[o]&&(r=n[o])}return r}const Ye=[];Ye[0
61
+ /* States.BEFORE_PATH */]={w:[0
62
+ /* States.BEFORE_PATH */],i:[3,0
63
+ /* Actions.APPEND */],"[":[4
64
+ /* States.IN_SUB_PATH */],o:[7
65
+ /* States.AFTER_PATH */]},Ye[1
66
+ /* States.IN_PATH */]={w:[1
67
+ /* States.IN_PATH */],".":[2
68
+ /* States.BEFORE_IDENT */],"[":[4
69
+ /* States.IN_SUB_PATH */],o:[7
70
+ /* States.AFTER_PATH */]},Ye[2
71
+ /* States.BEFORE_IDENT */]={w:[2
72
+ /* States.BEFORE_IDENT */],i:[3,0
73
+ /* Actions.APPEND */],0:[3,0
74
+ /* Actions.APPEND */]},Ye[3
75
+ /* States.IN_IDENT */]={i:[3,0
76
+ /* Actions.APPEND */],0:[3,0
77
+ /* Actions.APPEND */],w:[1,1
78
+ /* Actions.PUSH */],".":[2,1
79
+ /* Actions.PUSH */],"[":[4,1
80
+ /* Actions.PUSH */],o:[7,1
81
+ /* Actions.PUSH */]},Ye[4
82
+ /* States.IN_SUB_PATH */]={"'":[5,0
83
+ /* Actions.APPEND */],'"':[6,0
84
+ /* Actions.APPEND */],"[":[4,2
85
+ /* Actions.INC_SUB_PATH_DEPTH */],"]":[1,3
86
+ /* Actions.PUSH_SUB_PATH */],o:8,l:[4,0
87
+ /* Actions.APPEND */]},Ye[5
88
+ /* States.IN_SINGLE_QUOTE */]={"'":[4,0
89
+ /* Actions.APPEND */],o:8,l:[5,0
90
+ /* Actions.APPEND */]},Ye[6
91
+ /* States.IN_DOUBLE_QUOTE */]={'"':[4,0
92
+ /* Actions.APPEND */],o:8,l:[6,0
93
+ /* Actions.APPEND */]};const Ue=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ge(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:
94
+ // [
95
+ case 93:
96
+ // ]
97
+ case 46:
98
+ // .
99
+ case 34:
100
+ // "
101
+ case 39:return e;case 95:
102
+ // _
103
+ case 36:
104
+ // $
105
+ case 45:return"i";case 9:
106
+ // Tab (HT)
107
+ case 10:
108
+ // Newline (LF)
109
+ case 13:
110
+ // Return (CR)
111
+ case 160:
112
+ // No-break space (NBSP)
113
+ case 65279:
114
+ // Byte Order Mark (BOM)
115
+ case 8232:
116
+ // Line Separator (LS)
117
+ case 8233:return"w"}return"i"}function Ze(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Ue.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const qe=new Map;function Be(e,t){return b(e)?e[t]:null}function Qe(e,t){if(!b(e))return null;let n=qe.get(t);if(n||(n=function(e){const t=[];let n,r,o,s,c,a,l,u=-1,i=0,f=0;const d=[];function m(){const t=e[u+1];if(5===i&&"'"===t||6===i&&'"'===t)return u++,o="\\"+t,d[0
118
+ /* Actions.APPEND */](),!0}for(d[0
119
+ /* Actions.APPEND */]=()=>{void 0===r?r=o:r+=o},d[1
120
+ /* Actions.PUSH */]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2
121
+ /* Actions.INC_SUB_PATH_DEPTH */]=()=>{d[0
122
+ /* Actions.APPEND */](),f++},d[3
123
+ /* Actions.PUSH_SUB_PATH */]=()=>{if(f>0)f--,i=4,d[0
124
+ /* Actions.APPEND */]();else{if(f=0,void 0===r)return!1;if(r=Ze(r),!1===r)return!1;d[1
125
+ /* Actions.PUSH */]()}};null!==i;)if(u++,n=e[u],"\\"!==n||!m()){if(s=Ge(n),l=Ye[i],c=l[s]||l.l||8,8===c)return;if(i=c[0],void 0!==c[1]&&(a=d[c[1]],a&&(o=n,!1===a())))return;if(7===i)return t}}(t),n&&qe.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const e=o[n[s]];if(void 0===e)return null;if(h(o))return null;o=e,s++}return o}const Xe=-1,et="en-US",tt="",nt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let rt,ot,st;function ct(e){rt=e}function at(e){ot=e}function lt(e){st=e}let ut=null;const it=/* @__NO_SIDE_EFFECTS__ */e=>{ut=e},ft=/* @__NO_SIDE_EFFECTS__ */()=>ut;let dt=null;const mt=e=>{dt=e},pt=()=>dt;let ht=0;function kt(e={}){const t=h(e.onWarn)?e.onWarn:x,n=k(e.version)?e.version:"11.1.1",r=k(e.locale)||h(e.locale)?e.locale:et,s=h(r)?et:r,a=p(e.fallbackLocale)||v(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s,u=v(e.messages)?e.messages:yt(s),i=v(e.datetimeFormats)?e.datetimeFormats:yt(s),f=v(e.numberFormats)?e.numberFormats:yt(s),d=c(l(),e.modifiers,{upper:(e,t)=>"text"===t&&k(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&k(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&k(e)?nt(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?nt(e.children):e}),m=e.pluralRules||l(),g=h(e.missing)?e.missing:null,_=!y(e.missingWarn)&&!o(e.missingWarn)||e.missingWarn,L=!y(e.fallbackWarn)&&!o(e.fallbackWarn)||e.fallbackWarn,w=!!e.fallbackFormat,C=!!e.unresolving,T=h(e.postTranslation)?e.postTranslation:null,O=v(e.processor)?e.processor:null,P=!y(e.warnHtmlMessage)||e.warnHtmlMessage,S=!!e.escapeParameter,F=h(e.messageCompiler)?e.messageCompiler:rt,I=h(e.messageResolver)?e.messageResolver:ot||Be,N=h(e.localeFallbacker)?e.localeFallbacker:st||ze,$=b(e.fallbackContext)?e.fallbackContext:void 0,W=e,E=b(W.__datetimeFormatters)?W.__datetimeFormatters:new Map,D=b(W.__numberFormatters)?W.__numberFormatters:new Map,M=b(W.__meta)?W.__meta:{};ht++;const R={version:n,cid:ht,locale:r,fallbackLocale:a,messages:u,modifiers:d,pluralRules:m,missing:g,missingWarn:_,fallbackWarn:L,fallbackFormat:w,unresolving:C,postTranslation:T,processor:O,warnHtmlMessage:P,escapeParameter:S,messageCompiler:F,messageResolver:I,localeFallbacker:N,fallbackContext:$,onWarn:t,__meta:M};return R.datetimeFormats=i,R.numberFormats=f,R.__datetimeFormatters=E,R.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Te&&Te.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(R,n,M),R}const yt=e=>({[e]:l()});function bt(e,t,n,r,o){const{missing:s,onWarn:c}=e;if(null!==s){const r=s(e,n,t,o);return k(r)?r:t}return t}function gt(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function _t(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let s=n+1;s<t.length;s++)if(r=e,o=t[s],r!==o&&r.split("-")[0]===o.split("-")[0])return!0;var r,o;return!1}function vt(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:l}=e,{__datetimeFormatters:u}=e,[i,f,d,m]=xt(...t);y(d.missingWarn)?d.missingWarn:e.missingWarn;y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Re(e,d),b=l(e,
126
+ // eslint-disable-line @typescript-eslint/no-explicit-any
127
+ o,h);if(!k(i)||""===i)return new Intl.DateTimeFormat(h,m).format(f);let g,_={},L=null;for(let s=0;s<b.length&&(g=b[s],_=n[g]||{},L=_[i],!v(L));s++)bt(e,i,g,0,"datetime format");if(!v(L)||!k(g))return r?-1:i;let x=`${g}__${i}`;s(m)||(x=`${x}__${JSON.stringify(m)}`);let w=u.get(x);return w||(w=new Intl.DateTimeFormat(g,c({},L,m)),u.set(x,w)),p?w.formatToParts(f):w.format(f)}const Lt=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function xt(...e){const[t,n,o,s]=e,c=l();let a,u=l();if(k(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Me(Ne);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch{throw Me(Ne)}}else if("[object Date]"===_(t)){if(isNaN(t.getTime()))throw Me(Ie);a=t}else{if(!r(t))throw Me(Fe);a=t}return k(n)?c.key=n:v(n)&&Object.keys(n).forEach((e=>{Lt.includes(e)?u[e]=n[e]:c[e]=n[e]})),k(o)?c.locale=o:v(o)&&(u=o),v(s)&&(u=s),[c.key||"",a,c,u]}function wt(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ct(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:a,localeFallbacker:l}=e,{__numberFormatters:u}=e,[i,f,d,m]=Ot(...t);y(d.missingWarn)?d.missingWarn:e.missingWarn;y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Re(e,d),b=l(e,
128
+ // eslint-disable-line @typescript-eslint/no-explicit-any
129
+ o,h);if(!k(i)||""===i)return new Intl.NumberFormat(h,m).format(f);let g,_={},L=null;for(let s=0;s<b.length&&(g=b[s],_=n[g]||{},L=_[i],!v(L));s++)bt(e,i,g,0,"number format");if(!v(L)||!k(g))return r?-1:i;let x=`${g}__${i}`;s(m)||(x=`${x}__${JSON.stringify(m)}`);let w=u.get(x);return w||(w=new Intl.NumberFormat(g,c({},L,m)),u.set(x,w)),p?w.formatToParts(f):w.format(f)}const Tt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ot(...e){const[t,n,o,s]=e,c=l();let a=l();if(!r(t))throw Me(Fe);const u=t;return k(n)?c.key=n:v(n)&&Object.keys(n).forEach((e=>{Tt.includes(e)?a[e]=n[e]:c[e]=n[e]})),k(o)?c.locale=o:v(o)&&(a=o),v(s)&&(a=s),[c.key||"",u,c,a]}function Pt(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const St=e=>e,Ft=e=>"",It=e=>0===e.length?"":L(e),Nt=e=>null==e?"":p(e)||v(e)&&e.toString===g?JSON.stringify(e,null,2):String(e);function $t(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Wt(e={}){const t=e.locale,n=function(e){const t=r(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(r(e.named.count)||r(e.named.n))?r(e.named.count)?e.named.count:r(e.named.n)?e.named.n:t:t}(e),o=b(e.pluralRules)&&k(t)&&h(e.pluralRules[t])?e.pluralRules[t]:$t,s=b(e.pluralRules)&&k(t)&&h(e.pluralRules[t])?$t:void 0,a=e.list||[],u=e.named||l();r(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,u);function i(t,n){const r=h(e.messages)?e.messages(t,!!n):!!b(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Ft)}const f=v(e.processor)&&h(e.processor.normalize)?e.processor.normalize:It,d=v(e.processor)&&h(e.processor.interpolate)?e.processor.interpolate:Nt,m={list:e=>a[e],named:e=>u[e],plural:e=>e[o(n,e.length,s)],linked:(t,...n)=>{const[r,o]=n;let s="text",c="";1===n.length?b(r)?(c=r.modifier||c,s=r.type||s):k(r)&&(c=r||c):2===n.length&&(k(r)&&(c=r||c),k(o)&&(s=o||s));const a=i(t,!0)(m),l=
130
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
131
+ "vnode"===s&&p(a)&&c?a[0]:a;return c?(u=c,e.modifiers?e.modifiers[u]:St)(l,s):l;var u},message:i,type:v(e.processor)&&k(e.processor.type)?e.processor.type:"text",interpolate:d,normalize:f,values:c(l(),a,u)};return m}const Et=()=>"",Dt=e=>h(e);function Mt(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:s,messageCompiler:a,fallbackLocale:u,messages:i}=e,[d,m]=jt(...t),g=y(m.missingWarn)?m.missingWarn:e.missingWarn,_=y(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,v=y(m.escapeParameter)?m.escapeParameter:e.escapeParameter,L=!!m.resolvedMessage,x=k(m.default)||y(m.default)?y(m.default)?a?d:()=>d:m.default:n?a?d:()=>d:null,w=n||null!=x&&(k(x)||h(x)),C=Re(e,m);v&&function(e){p(e.list)?e.list=e.list.map((e=>k(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{k(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(m);let[T,O,P]=L?[d,C,i[C]||l()]:Rt(e,d,C,u,_,g),S=T,F=d;if(L||k(S)||we(S)||Dt(S)||w&&(S=x,F=S),!(L||(k(S)||we(S)||Dt(S))&&k(O)))return s?-1:d;let I=!1;const N=Dt(S)?S:At(e,d,O,S,F,(()=>{I=!0}));if(I)return S;const $=function(e,t,n,o){const{modifiers:s,pluralRules:c,messageResolver:a,fallbackLocale:l,fallbackWarn:u,missingWarn:i,fallbackContext:f}=e,d=(r,o)=>{let s=a(n,r);if(null==s&&(f||o)){const[,,n]=Rt(f||e,
132
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
133
+ r,t,l,u,i);s=a(n,r)}if(k(s)||we(s)){let n=!1;const o=At(e,r,t,s,r,(()=>{n=!0}));return n?Et:o}return Dt(s)?s:Et},m={locale:t,modifiers:s,pluralRules:c,messages:d};e.processor&&(m.processor=e.processor);o.list&&(m.list=o.list);o.named&&(m.named=o.named);r(o.plural)&&(m.pluralIndex=o.plural);return m}(e,O,P,m),W=function(e,t,n){const r=t(n);return r}(0,N,Wt($)),E=o?o(W,d):W;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:k(d)?d:Dt(S)?S.key:"",locale:O||(Dt(S)?S.locale:""),format:k(S)?S:Dt(S)?S.source:"",message:E};t.meta=c({},e.__meta,ft()||{}),Pe(t)}return E}function Rt(e,t,n,r,o,s){const{messages:c,onWarn:a,messageResolver:u,localeFallbacker:i}=e,f=i(e,r,n);let d,m=l(),p=null;for(let h=0;h<f.length&&(d=f[h],m=c[d]||l(),null===(p=u(m,t))&&(p=m[t]),!(k(p)||we(p)||Dt(p)));h++)if(!_t(d,f)){const n=bt(e,
134
+ // eslint-disable-line @typescript-eslint/no-explicit-any
135
+ t,d,0,"translate");n!==t&&(p=n)}return[p,d,m]}function At(e,t,r,o,s,c){const{messageCompiler:a,warnHtmlMessage:l}=e;if(Dt(o)){const e=o;return e.locale=e.locale||r,e.key=e.key||t,e}if(null==a){const e=()=>o;return e.locale=r,e.key=t,e}const u=a(o,function(e,t,r,o,s,c){return{locale:t,key:r,warnHtmlMessage:s,onError:e=>{throw c&&c(e),e},onCacheKey:e=>((e,t,r)=>n({l:e,k:t,s:r}))(t,r,e)}}(0,r,s,0,l,c));return u.locale=r,u.key=t,u.source=o,u}function jt(...e){const[t,n,o]=e,a=l();if(!(k(t)||r(t)||Dt(t)||we(t)))throw Me(Fe);const u=r(t)?String(t):(Dt(t),t);return r(n)?a.plural=n:k(n)?a.default=n:v(n)&&!s(n)?a.named=n:p(n)&&(a.list=n),r(o)?a.plural=o:k(o)?a.default=o:v(o)&&c(a,o),[u,a]}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(i().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(i().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);export{vt as A,Ot as B,De as C,et as D,Ct as E,we as F,Dt as G,Tt as H,s as I,Lt as J,ct as K,at as L,tt as M,Xe as N,lt as O,i as P,Oe as Q,Ce as R,Qe as S,v as a,k as b,p as c,o as d,h as e,e as f,z as g,c as h,y as i,l as j,C as k,m as l,t as m,kt as n,b as o,wt as p,Pt as q,r,it as s,pt as t,gt as u,He as v,mt as w,jt as x,Mt as y,xt as z};
.output/public/assets/@material-C_XhzpVg.js ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ function t(t){return t<0?-1:0===t?0:1}function n(t,n,r){return(1-r)*t+r*n}function r(t){return(t%=360)<0&&(t+=360),t}
18
+ /**
19
+ * @license
20
+ * Copyright 2021 Google LLC
21
+ *
22
+ * Licensed under the Apache License, Version 2.0 (the "License");
23
+ * you may not use this file except in compliance with the License.
24
+ * You may obtain a copy of the License at
25
+ *
26
+ * http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software
29
+ * distributed under the License is distributed on an "AS IS" BASIS,
30
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
+ * See the License for the specific language governing permissions and
32
+ * limitations under the License.
33
+ */
34
+ const a=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],s=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],e=[95.047,100,108.883];function o(t){return t>>16&255}function h(t){return t>>8&255}function i(t){return 255&t}function c(t,n,r){const a=s,e=a[0][0]*t+a[0][1]*n+a[0][2]*r,o=a[1][0]*t+a[1][1]*n+a[1][2]*r,h=a[2][0]*t+a[2][1]*n+a[2][2]*r,i=w(e),c=w(o),u=w(h);return(255<<24|(255&i)<<16|(255&c)<<8|255&u)>>>0}function u(t){const n=(t+16)/116,r=24389/27,a=n*n*n>216/24389;return c((a?n*n*n:t/r)*e[0],(t>8?n*n*n:t/r)*e[1],(a?n*n*n:t/r)*e[2])}function M(t){const n=function(t){const n=f(o(t)),r=f(h(t)),s=f(i(t));return[(e=[n,r,s])[0]*(c=a)[0][0]+e[1]*c[0][1]+e[2]*c[0][2],e[0]*c[1][0]+e[1]*c[1][1]+e[2]*c[1][2],e[0]*c[2][0]+e[1]*c[2][1]+e[2]*c[2][2]];var e,c}(t)[1]/100;if(n<=216/24389)return 24389/27*n;return 116*Math.pow(n,1/3)-16}function l(t){return t>8?100*Math.pow((t+16)/116,3):t/(24389/27)*100}function f(t){const n=t/255;return n<=.040449936?n/12.92*100:100*Math.pow((n+.055)/1.055,2.4)}function w(t){const n=t/100;let r=0;return r=n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,a=0,s=255,(e=Math.round(255*r))<a?a:e>s?s:e;var a,s,e}
35
+ /**
36
+ * @license
37
+ * Copyright 2021 Google LLC
38
+ *
39
+ * Licensed under the Apache License, Version 2.0 (the "License");
40
+ * you may not use this file except in compliance with the License.
41
+ * You may obtain a copy of the License at
42
+ *
43
+ * http://www.apache.org/licenses/LICENSE-2.0
44
+ *
45
+ * Unless required by applicable law or agreed to in writing, software
46
+ * distributed under the License is distributed on an "AS IS" BASIS,
47
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48
+ * See the License for the specific language governing permissions and
49
+ * limitations under the License.
50
+ */
51
+ class m{
52
+ /**
53
+ * Parameters are intermediate values of the CAM16 conversion process. Their
54
+ * names are shorthand for technical color science terminology, this class
55
+ * would not benefit from documenting them individually. A brief overview
56
+ * is available in the CAM16 specification, and a complete overview requires
57
+ * a color science textbook, such as Fairchild's Color Appearance Models.
58
+ */
59
+ constructor(t,n,r,a,s,e,o,h,i,c){this.n=t,this.aw=n,this.nbb=r,this.ncb=a,this.c=s,this.nc=e,this.rgbD=o,this.fl=h,this.fLRoot=i,this.z=c}
60
+ /**
61
+ * Create ViewingConditions from a simple, physically relevant, set of
62
+ * parameters.
63
+ *
64
+ * @param whitePoint White point, measured in the XYZ color space.
65
+ * default = D65, or sunny day afternoon
66
+ * @param adaptingLuminance The luminance of the adapting field. Informally,
67
+ * how bright it is in the room where the color is viewed. Can be
68
+ * calculated from lux by multiplying lux by 0.0586. default = 11.72,
69
+ * or 200 lux.
70
+ * @param backgroundLstar The lightness of the area surrounding the color.
71
+ * measured by L* in L*a*b*. default = 50.0
72
+ * @param surround A general description of the lighting surrounding the
73
+ * color. 0 is pitch dark, like watching a movie in a theater. 1.0 is a
74
+ * dimly light room, like watching TV at home at night. 2.0 means there
75
+ * is no difference between the lighting on the color and around it.
76
+ * default = 2.0
77
+ * @param discountingIlluminant Whether the eye accounts for the tint of the
78
+ * ambient lighting, such as knowing an apple is still red in green light.
79
+ * default = false, the eye does not perform this process on
80
+ * self-luminous objects like displays.
81
+ */static make(t=function(){return e}(),r=200/Math.PI*l(50)/100,a=50,s=2,o=!1){const h=t,i=.401288*h[0]+.650173*h[1]+-.051461*h[2],c=-.250268*h[0]+1.204414*h[1]+.045854*h[2],u=-.002079*h[0]+.048952*h[1]+.953127*h[2],M=.8+s/10,f=M>=.9?n(.59,.69,10*(M-.9)):n(.525,.59,10*(M-.8));let w=o?1:M*(1-1/3.6*Math.exp((-r-42)/92));w=w>1?1:w<0?0:w;const b=M,p=[w*(100/i)+1-w,w*(100/c)+1-w,w*(100/u)+1-w],I=1/(5*r+1),g=I*I*I*I,d=1-g,C=g*r+.1*d*d*Math.cbrt(5*r),D=l(a)/t[1],q=1.48+Math.sqrt(D),L=.725/Math.pow(D,.2),T=L,j=[Math.pow(C*p[0]*i/100,.42),Math.pow(C*p[1]*c/100,.42),Math.pow(C*p[2]*u/100,.42)],U=[400*j[0]/(j[0]+27.13),400*j[1]/(j[1]+27.13),400*j[2]/(j[2]+27.13)];return new m(D,(2*U[0]+U[1]+.05*U[2])*L,L,T,f,b,p,C,Math.pow(C,.25),q)}}m.DEFAULT=m.make();
82
+ /**
83
+ * @license
84
+ * Copyright 2021 Google LLC
85
+ *
86
+ * Licensed under the Apache License, Version 2.0 (the "License");
87
+ * you may not use this file except in compliance with the License.
88
+ * You may obtain a copy of the License at
89
+ *
90
+ * http://www.apache.org/licenses/LICENSE-2.0
91
+ *
92
+ * Unless required by applicable law or agreed to in writing, software
93
+ * distributed under the License is distributed on an "AS IS" BASIS,
94
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
95
+ * See the License for the specific language governing permissions and
96
+ * limitations under the License.
97
+ */
98
+ class b{
99
+ /**
100
+ * All of the CAM16 dimensions can be calculated from 3 of the dimensions, in
101
+ * the following combinations:
102
+ * - {j or q} and {c, m, or s} and hue
103
+ * - jstar, astar, bstar
104
+ * Prefer using a static method that constructs from 3 of those dimensions.
105
+ * This constructor is intended for those methods to use to return all
106
+ * possible dimensions.
107
+ *
108
+ * @param hue
109
+ * @param chroma informally, colorfulness / color intensity. like saturation
110
+ * in HSL, except perceptually accurate.
111
+ * @param j lightness
112
+ * @param q brightness; ratio of lightness to white point's lightness
113
+ * @param m colorfulness
114
+ * @param s saturation; ratio of chroma to white point's chroma
115
+ * @param jstar CAM16-UCS J coordinate
116
+ * @param astar CAM16-UCS a coordinate
117
+ * @param bstar CAM16-UCS b coordinate
118
+ */
119
+ constructor(t,n,r,a,s,e,o,h,i){this.hue=t,this.chroma=n,this.j=r,this.q=a,this.m=s,this.s=e,this.jstar=o,this.astar=h,this.bstar=i}
120
+ /**
121
+ * CAM16 instances also have coordinates in the CAM16-UCS space, called J*,
122
+ * a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
123
+ * specification, and is used to measure distances between colors.
124
+ */distance(t){const n=this.jstar-t.jstar,r=this.astar-t.astar,a=this.bstar-t.bstar,s=Math.sqrt(n*n+r*r+a*a);return 1.41*Math.pow(s,.63)}
125
+ /**
126
+ * @param argb ARGB representation of a color.
127
+ * @return CAM16 color, assuming the color was viewed in default viewing
128
+ * conditions.
129
+ */static fromInt(t){return b.fromIntInViewingConditions(t,m.DEFAULT)}
130
+ /**
131
+ * @param argb ARGB representation of a color.
132
+ * @param viewingConditions Information about the environment where the color
133
+ * was observed.
134
+ * @return CAM16 color.
135
+ */static fromIntInViewingConditions(n,r){const a=(65280&n)>>8,s=255&n,e=f((16711680&n)>>16),o=f(a),h=f(s),i=.41233895*e+.35762064*o+.18051042*h,c=.2126*e+.7152*o+.0722*h,u=.01932141*e+.11916382*o+.95034478*h,M=.401288*i+.650173*c-.051461*u,l=-.250268*i+1.204414*c+.045854*u,w=-.002079*i+.048952*c+.953127*u,m=r.rgbD[0]*M,p=r.rgbD[1]*l,I=r.rgbD[2]*w,g=Math.pow(r.fl*Math.abs(m)/100,.42),d=Math.pow(r.fl*Math.abs(p)/100,.42),C=Math.pow(r.fl*Math.abs(I)/100,.42),D=400*t(m)*g/(g+27.13),q=400*t(p)*d/(d+27.13),L=400*t(I)*C/(C+27.13),T=(11*D+-12*q+L)/11,j=(D+q-2*L)/9,U=(20*D+20*q+21*L)/20,x=(40*D+20*q+L)/20,S=180*Math.atan2(j,T)/Math.PI,v=S<0?S+360:S>=360?S-360:S,E=v*Math.PI/180,H=x*r.nbb,P=100*Math.pow(H/r.aw,r.c*r.z),V=4/r.c*Math.sqrt(P/100)*(r.aw+4)*r.fLRoot,A=v<20.14?v+360:v,F=5e4/13*(.25*(Math.cos(A*Math.PI/180+2)+3.8))*r.nc*r.ncb*Math.sqrt(T*T+j*j)/(U+.305),J=Math.pow(F,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),R=J*Math.sqrt(P/100),k=R*r.fLRoot,z=50*Math.sqrt(J*r.c/(r.aw+4)),y=(1+100*.007)*P/(1+.007*P),B=1/.0228*Math.log(1+.0228*k),G=B*Math.cos(E),K=B*Math.sin(E);return new b(v,R,P,V,k,z,y,G,K)}
136
+ /**
137
+ * @param j CAM16 lightness
138
+ * @param c CAM16 chroma
139
+ * @param h CAM16 hue
140
+ */static fromJch(t,n,r){return b.fromJchInViewingConditions(t,n,r,m.DEFAULT)}
141
+ /**
142
+ * @param j CAM16 lightness
143
+ * @param c CAM16 chroma
144
+ * @param h CAM16 hue
145
+ * @param viewingConditions Information about the environment where the color
146
+ * was observed.
147
+ */static fromJchInViewingConditions(t,n,r,a){const s=4/a.c*Math.sqrt(t/100)*(a.aw+4)*a.fLRoot,e=n*a.fLRoot,o=n/Math.sqrt(t/100),h=50*Math.sqrt(o*a.c/(a.aw+4)),i=r*Math.PI/180,c=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*e),M=u*Math.cos(i),l=u*Math.sin(i);return new b(r,n,t,s,e,h,c,M,l)}
148
+ /**
149
+ * @param jstar CAM16-UCS lightness.
150
+ * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
151
+ * coordinate on the Y axis.
152
+ * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
153
+ * coordinate on the X axis.
154
+ */static fromUcs(t,n,r){return b.fromUcsInViewingConditions(t,n,r,m.DEFAULT)}
155
+ /**
156
+ * @param jstar CAM16-UCS lightness.
157
+ * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
158
+ * coordinate on the Y axis.
159
+ * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
160
+ * coordinate on the X axis.
161
+ * @param viewingConditions Information about the environment where the color
162
+ * was observed.
163
+ */static fromUcsInViewingConditions(t,n,r,a){const s=n,e=r,o=Math.sqrt(s*s+e*e),h=(Math.exp(.0228*o)-1)/.0228/a.fLRoot;let i=Math.atan2(e,s)*(180/Math.PI);i<0&&(i+=360);const c=t/(1-.007*(t-100));return b.fromJchInViewingConditions(c,h,i,a)}
164
+ /**
165
+ * @return ARGB representation of color, assuming the color was viewed in
166
+ * default viewing conditions, which are near-identical to the default
167
+ * viewing conditions for sRGB.
168
+ */toInt(){return this.viewed(m.DEFAULT)}
169
+ /**
170
+ * @param viewingConditions Information about the environment where the color
171
+ * will be viewed.
172
+ * @return ARGB representation of color
173
+ */viewed(n){const r=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(r/Math.pow(1.64-Math.pow(.29,n.n),.73),1/.9),s=this.hue*Math.PI/180,e=.25*(Math.cos(s+2)+3.8),o=n.aw*Math.pow(this.j/100,1/n.c/n.z),h=e*(5e4/13)*n.nc*n.ncb,i=o/n.nbb,u=Math.sin(s),M=Math.cos(s),l=23*(i+.305)*a/(23*h+11*a*M+108*a*u),f=l*M,w=l*u,m=(460*i+451*f+288*w)/1403,b=(460*i-891*f-261*w)/1403,p=(460*i-220*f-6300*w)/1403,I=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),g=t(m)*(100/n.fl)*Math.pow(I,1/.42),d=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),C=t(b)*(100/n.fl)*Math.pow(d,1/.42),D=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),q=t(p)*(100/n.fl)*Math.pow(D,1/.42),L=g/n.rgbD[0],T=C/n.rgbD[1],j=q/n.rgbD[2];return c(1.86206786*L-1.01125463*T+.14918677*j,.38752654*L+.62144744*T-.00897398*j,-.0158415*L-.03412294*T+1.04996444*j)}}
174
+ /**
175
+ * @license
176
+ * Copyright 2021 Google LLC
177
+ *
178
+ * Licensed under the Apache License, Version 2.0 (the "License");
179
+ * you may not use this file except in compliance with the License.
180
+ * You may obtain a copy of the License at
181
+ *
182
+ * http://www.apache.org/licenses/LICENSE-2.0
183
+ *
184
+ * Unless required by applicable law or agreed to in writing, software
185
+ * distributed under the License is distributed on an "AS IS" BASIS,
186
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ * See the License for the specific language governing permissions and
188
+ * limitations under the License.
189
+ */class p{constructor(t,n,r){this.internalHue=t,this.internalChroma=n,this.internalTone=r,this.setInternalState(this.toInt())}
190
+ /**
191
+ * @param hue 0 <= hue < 360; invalid values are corrected.
192
+ * @param chroma 0 <= chroma < ?; Informally, colorfulness. The color
193
+ * returned may be lower than the requested chroma. Chroma has a different
194
+ * maximum for any given hue and tone.
195
+ * @param tone 0 <= tone <= 100; invalid values are corrected.
196
+ * @return HCT representation of a color in default viewing conditions.
197
+ */static from(t,n,r){return new p(t,n,r)}
198
+ /**
199
+ * @param argb ARGB representation of a color.
200
+ * @return HCT representation of a color in default viewing conditions
201
+ */static fromInt(t){const n=b.fromInt(t),r=M(t);return new p(n.hue,n.chroma,r)}toInt(){return D(this.internalHue,this.internalChroma,this.internalTone)}
202
+ /**
203
+ * A number, in degrees, representing ex. red, orange, yellow, etc.
204
+ * Ranges from 0 <= hue < 360.
205
+ */get hue(){return this.internalHue}
206
+ /**
207
+ * @param newHue 0 <= newHue < 360; invalid values are corrected.
208
+ * Chroma may decrease because chroma has a different maximum for any given
209
+ * hue and tone.
210
+ */set hue(t){this.setInternalState(D(r(t),this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}
211
+ /**
212
+ * @param newChroma 0 <= newChroma < ?
213
+ * Chroma may decrease because chroma has a different maximum for any given
214
+ * hue and tone.
215
+ */set chroma(t){this.setInternalState(D(this.internalHue,t,this.internalTone))}
216
+ /** Lightness. Ranges from 0 to 100. */get tone(){return this.internalTone}
217
+ /**
218
+ * @param newTone 0 <= newTone <= 100; invalid valids are corrected.
219
+ * Chroma may decrease because chroma has a different maximum for any given
220
+ * hue and tone.
221
+ */set tone(t){this.setInternalState(D(this.internalHue,this.internalChroma,t))}setInternalState(t){const n=b.fromInt(t),r=M(t);this.internalHue=n.hue,this.internalChroma=n.chroma,this.internalTone=r}}const I=.4,g=1,d=.2,C=.01;function D(t,n,a){return function(t,n,a,s){if(n<1||Math.round(a)<=0||Math.round(a)>=100)return u(a);t=r(t);let e=n,o=n,h=0,i=!0,c=null;for(;Math.abs(h-e)>=I;){const n=q(t,o,a);if(i){if(null!=n)return n.viewed(s);i=!1,o=h+(e-h)/2}else null===n?e=o:(c=n,h=o),o=h+(e-h)/2}if(null===c)return u(a);return c.viewed(s)}(r(t),n,(e=100,(o=a)<(s=0)?s:o>e?e:o),m.DEFAULT);var s,e,o}function q(t,n,r){let a=0,s=100,e=0,o=1e3,h=1e3,i=null;for(;Math.abs(a-s)>C;){e=a+(s-a)/2;const c=b.fromJch(e,n,t).toInt(),u=M(c),l=Math.abs(r-u);if(l<d){const n=b.fromInt(c),r=n.distance(b.fromJch(n.j,n.chroma,t));r<=g&&r<=h&&(o=l,h=r,i=n)}if(0===o&&0===h)break;u<r?a=e:s=e}return i}
222
+ /**
223
+ * @license
224
+ * Copyright 2021 Google LLC
225
+ *
226
+ * Licensed under the Apache License, Version 2.0 (the "License");
227
+ * you may not use this file except in compliance with the License.
228
+ * You may obtain a copy of the License at
229
+ *
230
+ * http://www.apache.org/licenses/LICENSE-2.0
231
+ *
232
+ * Unless required by applicable law or agreed to in writing, software
233
+ * distributed under the License is distributed on an "AS IS" BASIS,
234
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
235
+ * See the License for the specific language governing permissions and
236
+ * limitations under the License.
237
+ */const L=t=>{const n=o(t),r=h(t),a=i(t),s=[n.toString(16),r.toString(16),a.toString(16)];for(const[e,o]of s.entries())1===o.length&&(s[e]="0"+o);return"#"+s.join("")},T=t=>{const n=3===(t=t.replace("#","")).length,r=6===t.length,a=8===t.length;if(!n&&!r&&!a)throw new Error("unexpected hex "+t);let s=0,e=0,o=0;return n?(s=j(t.slice(0,1).repeat(2)),e=j(t.slice(1,2).repeat(2)),o=j(t.slice(2,3).repeat(2))):r?(s=j(t.slice(0,2)),e=j(t.slice(2,4)),o=j(t.slice(4,6))):a&&(s=j(t.slice(2,4)),e=j(t.slice(4,6)),o=j(t.slice(6,8))),(255<<24|(255&s)<<16|(255&e)<<8|255&o)>>>0};function j(t){return parseInt(t,16)}export{p as H,T as a,L as h};
.output/public/assets/@mozilla-BD532_dh.js ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var e,t={exports:{}};var i,a,r,n={exports:{}};var s=function(){if(r)return a;r=1;var s=(e||(e=1,function(e){function t(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._allowedVideoRegex=t.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let e=function(e){if(e.nodeType==e.TEXT_NODE)return`${e.nodeName} ("${e.textContent}")`;let t=Array.from(e.attributes||[],(function(e){return`${e.name}="${e.value}"`})).join(" ");return`<${e.localName} ${t}>`};this.log=function(){if("undefined"!=typeof console)Array.from(arguments,(t=>t&&t.nodeType==this.ELEMENT_NODE?e(t):t)).unshift("Reader: (Readability)");else if("undefined"!=typeof dump){var t=Array.prototype.map.call(arguments,(function(t){return t&&t.nodeName?e(t):t})).join(" ");dump("Reader: (Readability) "+t+"\n")}}}else this.log=function(){}}t.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,
2
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
3
+ ELEMENT_NODE:1,TEXT_NODE:3,
4
+ // Max number of nodes supported by this parser. Default: 0 (no limit)
5
+ DEFAULT_MAX_ELEMS_TO_PARSE:0,
6
+ // The number of top candidates to consider when analysing how
7
+ // tight the competition is among candidates.
8
+ DEFAULT_N_TOP_CANDIDATES:5,
9
+ // Element tags to score by default.
10
+ DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),
11
+ // The default number of chars an article must have in order to return a result
12
+ DEFAULT_CHAR_THRESHOLD:500,
13
+ // All of the regular expressions in use within readability.
14
+ // Defined up here so we don't instantiate them repeatedly in loops.
15
+ REGEXPS:{
16
+ // NOTE: These two regular expressions are duplicated in
17
+ // Readability-readerable.js. Please keep both copies in sync.
18
+ unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,
19
+ // Commas as used in Latin, Sindhi, Chinese and various other scripts.
20
+ // see: https://en.wikipedia.org/wiki/Comma#Comma_variants
21
+ commas:/\u002C|\u060C|\uFE50|\uFE10|\uFE11|\u2E41|\u2E34|\u2E32|\uFF0C/g,
22
+ // See: https://schema.org/Article
23
+ jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],
24
+ // The commented out elements qualify as phrasing content but tend to be
25
+ // removed by readability when put into paragraphs, so we ignore them here.
26
+ PHRASING_ELEMS:[
27
+ // "CANVAS", "IFRAME", "SVG", "VIDEO",
28
+ "ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],
29
+ // These are the classes that readability sets itself.
30
+ CLASSES_TO_PRESERVE:["page"],
31
+ // These are the list of HTML entities that need to be escaped.
32
+ HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},
33
+ /**
34
+ * Run any post-process modifications to article content as necessary.
35
+ *
36
+ * @param Element
37
+ * @return void
38
+ **/
39
+ _postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},
40
+ /**
41
+ * Iterates over a NodeList, calls `filterFn` for each node and removes node
42
+ * if function returned `true`.
43
+ *
44
+ * If function is not passed, removes all the nodes in node list.
45
+ *
46
+ * @param NodeList nodeList The nodes to operate on
47
+ * @param Function filterFn the function to use as a filter
48
+ * @return void
49
+ */
50
+ _removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var i=e.length-1;i>=0;i--){var a=e[i],r=a.parentNode;r&&(t&&!t.call(this,a,i,e)||r.removeChild(a))}},
51
+ /**
52
+ * Iterates over a NodeList, and calls _setNodeTag for each node.
53
+ *
54
+ * @param NodeList nodeList The nodes to operate on
55
+ * @param String newTagName the new tag name to use
56
+ * @return void
57
+ */
58
+ _replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(const i of e)this._setNodeTag(i,t)},
59
+ /**
60
+ * Iterate over a NodeList, which doesn't natively fully implement the Array
61
+ * interface.
62
+ *
63
+ * For convenience, the current object context is applied to the provided
64
+ * iterate function.
65
+ *
66
+ * @param NodeList nodeList The NodeList.
67
+ * @param Function fn The iterate function.
68
+ * @return void
69
+ */
70
+ _forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},
71
+ /**
72
+ * Iterate over a NodeList, and return the first node that passes
73
+ * the supplied test function
74
+ *
75
+ * For convenience, the current object context is applied to the provided
76
+ * test function.
77
+ *
78
+ * @param NodeList nodeList The NodeList.
79
+ * @param Function fn The test function.
80
+ * @return void
81
+ */
82
+ _findNode:function(e,t){return Array.prototype.find.call(e,t,this)},
83
+ /**
84
+ * Iterate over a NodeList, return true if any of the provided iterate
85
+ * function calls returns true, false otherwise.
86
+ *
87
+ * For convenience, the current object context is applied to the
88
+ * provided iterate function.
89
+ *
90
+ * @param NodeList nodeList The NodeList.
91
+ * @param Function fn The iterate function.
92
+ * @return Boolean
93
+ */
94
+ _someNode:function(e,t){return Array.prototype.some.call(e,t,this)},
95
+ /**
96
+ * Iterate over a NodeList, return true if all of the provided iterate
97
+ * function calls return true, false otherwise.
98
+ *
99
+ * For convenience, the current object context is applied to the
100
+ * provided iterate function.
101
+ *
102
+ * @param NodeList nodeList The NodeList.
103
+ * @param Function fn The iterate function.
104
+ * @return Boolean
105
+ */
106
+ _everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},
107
+ /**
108
+ * Concat all nodelists passed as arguments.
109
+ *
110
+ * @return ...NodeList
111
+ * @return Array
112
+ */
113
+ _concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments).map((function(t){return e.call(t)}));return Array.prototype.concat.apply([],t)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map((function(t){var i=e.getElementsByTagName(t);return Array.isArray(i)?i:Array.from(i)})))},
114
+ /**
115
+ * Removes the class="" attribute from every element in the given
116
+ * subtree, except those that match CLASSES_TO_PRESERVE and
117
+ * the classesToPreserve array from the options object.
118
+ *
119
+ * @param Element
120
+ * @return void
121
+ */
122
+ _cleanClasses:function(e){var t=this._classesToPreserve,i=(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return-1!=t.indexOf(e)})).join(" ");for(i?e.setAttribute("class",i):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},
123
+ /**
124
+ * Converts each <a> and <img> uri in the given element to an absolute URI,
125
+ * ignoring #ref URIs.
126
+ *
127
+ * @param Element
128
+ * @return void
129
+ */
130
+ _fixRelativeUris:function(e){var t=this._doc.baseURI,i=this._doc.documentURI;function a(e){if(t==i&&"#"==e.charAt(0))return e;try{return new URL(e,t).href}catch(a){}return e}var r=this._getAllNodesWithTag(e,["a"]);this._forEachNode(r,(function(e){var t=e.getAttribute("href");if(t)if(0===t.indexOf("javascript:"))if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var i=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(i,e)}else{for(var r=this._doc.createElement("span");e.firstChild;)r.appendChild(e.firstChild);e.parentNode.replaceChild(r,e)}else e.setAttribute("href",a(t))}));var n=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(n,(function(e){var t=e.getAttribute("src"),i=e.getAttribute("poster"),r=e.getAttribute("srcset");if(t&&e.setAttribute("src",a(t)),i&&e.setAttribute("poster",a(i)),r){var n=r.replace(this.REGEXPS.srcsetUrl,(function(e,t,i,r){return a(t)+(i||"")+r}));e.setAttribute("srcset",n)}}))},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&(!t.id||!t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var i=t.children[0],a=0;a<t.attributes.length;a++)i.setAttribute(t.attributes[a].name,t.attributes[a].value);t.parentNode.replaceChild(i,t),t=i;continue}}t=this._getNextNode(t)}},
131
+ /**
132
+ * Get the article title as an H1.
133
+ *
134
+ * @return string
135
+ **/
136
+ _getArticleTitle:function(){var e=this._doc,t="",i="";try{"string"!=typeof(t=i=e.title.trim())&&(t=i=this._getInnerText(e.getElementsByTagName("title")[0]))}catch(h){}var a=!1;function r(e){return e.split(/\s+/).length}if(/ [\|\-\\\/>»] /.test(t))a=/ [\\\/>»] /.test(t),r(t=i.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"))<3&&(t=i.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(-1!==t.indexOf(": ")){var n=this._concatNodeLists(e.getElementsByTagName("h1"),e.getElementsByTagName("h2")),s=t.trim();this._someNode(n,(function(e){return e.textContent.trim()===s}))||(r(t=i.substring(i.lastIndexOf(":")+1))<3?t=i.substring(i.indexOf(":")+1):r(i.substr(0,i.indexOf(":")))>5&&(t=i))}else if(t.length>150||t.length<15){var l=e.getElementsByTagName("h1");1===l.length&&(t=this._getInnerText(l[0]))}var o=r(t=t.trim().replace(this.REGEXPS.normalize," "));return o<=4&&(!a||o!=r(i.replace(/[\|\-\\\/>»]+/g,""))-1)&&(t=i),t},
137
+ /**
138
+ * Prepare the HTML document for readability to scrape it.
139
+ * This includes things like stripping javascript, CSS, and handling terrible markup.
140
+ *
141
+ * @return void
142
+ **/
143
+ _prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},
144
+ /**
145
+ * Finds the next node, starting from the given node, and ignoring
146
+ * whitespace in between. If the given node is an element, the same node is
147
+ * returned.
148
+ */
149
+ _nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);)t=t.nextSibling;return t},
150
+ /**
151
+ * Replaces 2 or more successive <br> elements with a single <p>.
152
+ * Whitespace between <br> elements are ignored. For example:
153
+ * <div>foo<br>bar<br> <br><br>abc</div>
154
+ * will become:
155
+ * <div>foo<br>bar<p>abc</p></div>
156
+ */
157
+ _replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),(function(e){for(var t=e.nextSibling,i=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){i=!0;var a=t.nextSibling;t.parentNode.removeChild(t),t=a}if(i){var r=this._doc.createElement("p");for(e.parentNode.replaceChild(r,e),t=r.nextSibling;t;){if("BR"==t.tagName){var n=this._nextNode(t.nextSibling);if(n&&"BR"==n.tagName)break}if(!this._isPhrasingContent(t))break;var s=t.nextSibling;r.appendChild(t),t=s}for(;r.lastChild&&this._isWhitespace(r.lastChild);)r.removeChild(r.lastChild);"P"===r.parentNode.tagName&&this._setNodeTag(r.parentNode,"DIV")}}))},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var i=e.ownerDocument.createElement(t);e.firstChild;)i.appendChild(e.firstChild);e.parentNode.replaceChild(i,e),e.readability&&(i.readability=e.readability);for(var a=0;a<e.attributes.length;a++)try{i.setAttribute(e.attributes[a].name,e.attributes[a].value)}catch(r){}return i},
158
+ /**
159
+ * Prepare the article node for display. Clean out any inline styles,
160
+ * iframes, forms, strip extraneous <p> tags, etc.
161
+ *
162
+ * @param Element
163
+ * @return void
164
+ **/
165
+ _prepArticle:function(e){this._cleanStyles(e),this._markDataTables(e),this._fixLazyImages(e),this._cleanConditionally(e,"form"),this._cleanConditionally(e,"fieldset"),this._clean(e,"object"),this._clean(e,"embed"),this._clean(e,"footer"),this._clean(e,"link"),this._clean(e,"aside");var t=this.DEFAULT_CHAR_THRESHOLD;this._forEachNode(e.children,(function(e){this._cleanMatchedNodes(e,(function(e,i){return this.REGEXPS.shareElements.test(i)&&e.textContent.length<t}))})),this._clean(e,"iframe"),this._clean(e,"input"),this._clean(e,"textarea"),this._clean(e,"select"),this._clean(e,"button"),this._cleanHeaders(e),this._cleanConditionally(e,"table"),this._cleanConditionally(e,"ul"),this._cleanConditionally(e,"div"),this._replaceNodeTags(this._getAllNodesWithTag(e,["h1"]),"h2"),this._removeNodes(this._getAllNodesWithTag(e,["p"]),(function(e){return 0===e.getElementsByTagName("img").length+e.getElementsByTagName("embed").length+e.getElementsByTagName("object").length+e.getElementsByTagName("iframe").length&&!this._getInnerText(e,!1)})),this._forEachNode(this._getAllNodesWithTag(e,["br"]),(function(e){var t=this._nextNode(e.nextSibling);t&&"P"==t.tagName&&e.parentNode.removeChild(e)})),this._forEachNode(this._getAllNodesWithTag(e,["table"]),(function(e){var t=this._hasSingleTagInsideElement(e,"TBODY")?e.firstElementChild:e;if(this._hasSingleTagInsideElement(t,"TR")){var i=t.firstElementChild;if(this._hasSingleTagInsideElement(i,"TD")){var a=i.firstElementChild;a=this._setNodeTag(a,this._everyNode(a.childNodes,this._isPhrasingContent)?"P":"DIV"),e.parentNode.replaceChild(a,e)}}}))},
166
+ /**
167
+ * Initialize a node with the readability object. Also checks the
168
+ * className/id for special names to add to its score.
169
+ *
170
+ * @param Element
171
+ * @return void
172
+ **/
173
+ _initializeNode:function(e){switch(e.readability={contentScore:0},e.tagName){case"DIV":e.readability.contentScore+=5;break;case"PRE":case"TD":case"BLOCKQUOTE":e.readability.contentScore+=3;break;case"ADDRESS":case"OL":case"UL":case"DL":case"DD":case"DT":case"LI":case"FORM":e.readability.contentScore-=3;break;case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"TH":e.readability.contentScore-=5}e.readability.contentScore+=this._getClassWeight(e)},_removeAndGetNext:function(e){var t=this._getNextNode(e,!0);return e.parentNode.removeChild(e),t},
174
+ /**
175
+ * Traverse the DOM from node to node, starting at the node passed in.
176
+ * Pass true for the second parameter to indicate this node itself
177
+ * (and its kids) are going away, and we want the next node over.
178
+ *
179
+ * Calling this in a loop will traverse the DOM depth-first.
180
+ */
181
+ _getNextNode:function(e,t){if(!t&&e.firstElementChild)return e.firstElementChild;if(e.nextElementSibling)return e.nextElementSibling;do{e=e.parentNode}while(e&&!e.nextElementSibling);return e&&e.nextElementSibling},
182
+ // compares second text to first one
183
+ // 1 = same text, 0 = completely different text
184
+ // works the way that it splits both texts into words and then finds words that are unique in second text
185
+ // the result is given by the lower length of unique parts
186
+ _textSimilarity:function(e,t){var i=e.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean),a=t.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean);return i.length&&a.length?1-a.filter((e=>!i.includes(e))).join(" ").length/a.join(" ").length:0},_checkByline:function(e,t){if(this._articleByline)return!1;if(void 0!==e.getAttribute)var i=e.getAttribute("rel"),a=e.getAttribute("itemprop");return!(!("author"===i||a&&-1!==a.indexOf("author")||this.REGEXPS.byline.test(t))||!this._isValidByline(e.textContent)||(this._articleByline=e.textContent.trim(),0))},_getNodeAncestors:function(e,t){t=t||0;for(var i=0,a=[];e.parentNode&&(a.push(e.parentNode),!t||++i!==t);)e=e.parentNode;return a},
187
+ /***
188
+ * grabArticle - Using a variety of metrics (content score, classname, element types), find the content that is
189
+ * most likely to be the stuff a user wants to read. Then return it wrapped up in a div.
190
+ *
191
+ * @param page a document to run upon. Needs to be a full document, complete with body.
192
+ * @return Element
193
+ **/
194
+ _grabArticle:function(e){this.log("**** grabArticle ****");var t=this._doc,i=null!==e;if(!(e=e||this._doc.body))return this.log("No body found in document. Abort."),null;for(var a=e.innerHTML;;){this.log("Starting grabArticle loop");var r=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),n=[],s=this._doc.documentElement;let V=!0;for(;s;){"HTML"===s.tagName&&(this._articleLang=s.getAttribute("lang"));var l=s.className+" "+s.id;if(this._isProbablyVisible(s))if("true"!=s.getAttribute("aria-modal")||"dialog"!=s.getAttribute("role"))if(this._checkByline(s,l))s=this._removeAndGetNext(s);else if(V&&this._headerDuplicatesTitle(s))this.log("Removing header: ",s.textContent.trim(),this._articleTitle.trim()),V=!1,s=this._removeAndGetNext(s);else{if(r){if(this.REGEXPS.unlikelyCandidates.test(l)&&!this.REGEXPS.okMaybeItsACandidate.test(l)&&!this._hasAncestorTag(s,"table")&&!this._hasAncestorTag(s,"code")&&"BODY"!==s.tagName&&"A"!==s.tagName){this.log("Removing unlikely candidate - "+l),s=this._removeAndGetNext(s);continue}if(this.UNLIKELY_ROLES.includes(s.getAttribute("role"))){this.log("Removing content with role "+s.getAttribute("role")+" - "+l),s=this._removeAndGetNext(s);continue}}if("DIV"!==s.tagName&&"SECTION"!==s.tagName&&"HEADER"!==s.tagName&&"H1"!==s.tagName&&"H2"!==s.tagName&&"H3"!==s.tagName&&"H4"!==s.tagName&&"H5"!==s.tagName&&"H6"!==s.tagName||!this._isElementWithoutContent(s)){if(-1!==this.DEFAULT_TAGS_TO_SCORE.indexOf(s.tagName)&&n.push(s),"DIV"===s.tagName){for(var o=null,h=s.firstChild;h;){var c=h.nextSibling;if(this._isPhrasingContent(h))null!==o?o.appendChild(h):this._isWhitespace(h)||(o=t.createElement("p"),s.replaceChild(o,h),o.appendChild(h));else if(null!==o){for(;o.lastChild&&this._isWhitespace(o.lastChild);)o.removeChild(o.lastChild);o=null}h=c}if(this._hasSingleTagInsideElement(s,"P")&&this._getLinkDensity(s)<.25){var d=s.children[0];s.parentNode.replaceChild(d,s),s=d,n.push(s)}else this._hasChildBlockElement(s)||(s=this._setNodeTag(s,"P"),n.push(s))}s=this._getNextNode(s)}else s=this._removeAndGetNext(s)}else s=this._removeAndGetNext(s);else this.log("Removing hidden node - "+l),s=this._removeAndGetNext(s)}var g=[];this._forEachNode(n,(function(e){if(e.parentNode&&void 0!==e.parentNode.tagName){var t=this._getInnerText(e);if(!(t.length<25)){var i=this._getNodeAncestors(e,5);if(0!==i.length){var a=0;a+=1,a+=t.split(this.REGEXPS.commas).length,a+=Math.min(Math.floor(t.length/100),3),this._forEachNode(i,(function(e,t){if(e.tagName&&e.parentNode&&void 0!==e.parentNode.tagName){if(void 0===e.readability&&(this._initializeNode(e),g.push(e)),0===t)var i=1;else i=1===t?2:3*t;e.readability.contentScore+=a/i}}))}}}}));for(var u=[],m=0,_=g.length;m<_;m+=1){var f=g[m],p=f.readability.contentScore*(1-this._getLinkDensity(f));f.readability.contentScore=p,this.log("Candidate:",f,"with score "+p);for(var N=0;N<this._nbTopCandidates;N++){var E=u[N];if(!E||p>E.readability.contentScore){u.splice(N,0,f),u.length>this._nbTopCandidates&&u.pop();break}}}var b,T=u[0]||null,A=!1;if(null===T||"BODY"===T.tagName){for(T=t.createElement("DIV"),A=!0;e.firstChild;)this.log("Moving child out:",e.firstChild),T.appendChild(e.firstChild);e.appendChild(T),this._initializeNode(T)}else if(T){for(var v=[],y=1;y<u.length;y++)u[y].readability.contentScore/T.readability.contentScore>=.75&&v.push(this._getNodeAncestors(u[y]));if(v.length>=3)for(b=T.parentNode;"BODY"!==b.tagName;){for(var S=0,C=0;C<v.length&&S<3;C++)S+=Number(v[C].includes(b));if(S>=3){T=b;break}b=b.parentNode}T.readability||this._initializeNode(T),b=T.parentNode;for(var L=T.readability.contentScore,x=L/3;"BODY"!==b.tagName;)if(b.readability){var I=b.readability.contentScore;if(I<x)break;if(I>L){T=b;break}L=b.readability.contentScore,b=b.parentNode}else b=b.parentNode;for(b=T.parentNode;"BODY"!=b.tagName&&1==b.children.length;)b=(T=b).parentNode;T.readability||this._initializeNode(T)}var D=t.createElement("DIV");i&&(D.id="readability-content");for(var R=Math.max(10,.2*T.readability.contentScore),P=(b=T.parentNode).children,O=0,w=P.length;O<w;O++){var B=P[O],M=!1;if(this.log("Looking at sibling node:",B,B.readability?"with score "+B.readability.contentScore:""),this.log("Sibling has score",B.readability?B.readability.contentScore:"Unknown"),B===T)M=!0;else{var G=0;if(B.className===T.className&&""!==T.className&&(G+=.2*T.readability.contentScore),B.readability&&B.readability.contentScore+G>=R)M=!0;else if("P"===B.nodeName){var k=this._getLinkDensity(B),H=this._getInnerText(B),U=H.length;(U>80&&k<.25||U<80&&U>0&&0===k&&-1!==H.search(/\.( |$)/))&&(M=!0)}}M&&(this.log("Appending node:",B),-1===this.ALTER_TO_DIV_EXCEPTIONS.indexOf(B.nodeName)&&(this.log("Altering sibling:",B,"to div."),B=this._setNodeTag(B,"DIV")),D.appendChild(B),P=b.children,O-=1,w-=1)}if(this._debug&&this.log("Article content pre-prep: "+D.innerHTML),this._prepArticle(D),this._debug&&this.log("Article content post-prep: "+D.innerHTML),A)T.id="readability-page-1",T.className="page";else{var F=t.createElement("DIV");for(F.id="readability-page-1",F.className="page";D.firstChild;)F.appendChild(D.firstChild);D.appendChild(F)}this._debug&&this.log("Article content after paging: "+D.innerHTML);var W=!0,X=this._getInnerText(D,!0).length;if(X<this._charThreshold)if(W=!1,e.innerHTML=a,this._flagIsActive(this.FLAG_STRIP_UNLIKELYS))this._removeFlag(this.FLAG_STRIP_UNLIKELYS),this._attempts.push({articleContent:D,textLength:X});else if(this._flagIsActive(this.FLAG_WEIGHT_CLASSES))this._removeFlag(this.FLAG_WEIGHT_CLASSES),this._attempts.push({articleContent:D,textLength:X});else if(this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY))this._removeFlag(this.FLAG_CLEAN_CONDITIONALLY),this._attempts.push({articleContent:D,textLength:X});else{if(this._attempts.push({articleContent:D,textLength:X}),this._attempts.sort((function(e,t){return t.textLength-e.textLength})),!this._attempts[0].textLength)return null;D=this._attempts[0].articleContent,W=!0}if(W){var j=[b,T].concat(this._getNodeAncestors(b));return this._someNode(j,(function(e){if(!e.tagName)return!1;var t=e.getAttribute("dir");return!!t&&(this._articleDir=t,!0)})),D}}},
195
+ /**
196
+ * Check whether the input string could be a byline.
197
+ * This verifies that the input is a string, and that the length
198
+ * is less than 100 chars.
199
+ *
200
+ * @param possibleByline {string} - a string to check whether its a byline.
201
+ * @return Boolean - whether the input string is a byline.
202
+ */
203
+ _isValidByline:function(e){return("string"==typeof e||e instanceof String)&&(e=e.trim()).length>0&&e.length<100},
204
+ /**
205
+ * Converts some of the common HTML entities in string to their corresponding characters.
206
+ *
207
+ * @param str {string} - a string to unescape.
208
+ * @return string without HTML entity.
209
+ */
210
+ _unescapeHtmlEntities:function(e){if(!e)return e;var t=this.HTML_ESCAPE_MAP;return e.replace(/&(quot|amp|apos|lt|gt);/g,(function(e,i){return t[i]})).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,(function(e,t,i){var a=parseInt(t||i,t?16:10);return String.fromCharCode(a)}))},
211
+ /**
212
+ * Try to extract metadata from JSON-LD object.
213
+ * For now, only Schema.org objects of type Article or its subtypes are supported.
214
+ * @return Object with any metadata that could be extracted (possibly none)
215
+ */
216
+ _getJSONLD:function(e){var t,i=this._getAllNodesWithTag(e,["script"]);return this._forEachNode(i,(function(e){if(!t&&"application/ld+json"===e.getAttribute("type"))try{var i=e.textContent.replace(/^\s*<!\[CDATA\[|\]\]>\s*$/g,""),a=JSON.parse(i);if(!a["@context"]||!a["@context"].match(/^https?\:\/\/schema\.org$/))return;if(!a["@type"]&&Array.isArray(a["@graph"])&&(a=a["@graph"].find((function(e){return(e["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)}))),!a||!a["@type"]||!a["@type"].match(this.REGEXPS.jsonLdArticleTypes))return;if(t={},"string"==typeof a.name&&"string"==typeof a.headline&&a.name!==a.headline){var r=this._getArticleTitle(),n=this._textSimilarity(a.name,r)>.75,s=this._textSimilarity(a.headline,r)>.75;t.title=s&&!n?a.headline:a.name}else"string"==typeof a.name?t.title=a.name.trim():"string"==typeof a.headline&&(t.title=a.headline.trim());return a.author&&("string"==typeof a.author.name?t.byline=a.author.name.trim():Array.isArray(a.author)&&a.author[0]&&"string"==typeof a.author[0].name&&(t.byline=a.author.filter((function(e){return e&&"string"==typeof e.name})).map((function(e){return e.name.trim()})).join(", "))),"string"==typeof a.description&&(t.excerpt=a.description.trim()),a.publisher&&"string"==typeof a.publisher.name&&(t.siteName=a.publisher.name.trim()),void("string"==typeof a.datePublished&&(t.datePublished=a.datePublished.trim()))}catch(l){this.log(l.message)}})),t||{}},
217
+ /**
218
+ * Attempts to get excerpt and byline metadata for the article.
219
+ *
220
+ * @param {Object} jsonld — object containing any metadata that
221
+ * could be extracted from JSON-LD object.
222
+ *
223
+ * @return Object with optional "excerpt" and "byline" properties
224
+ */
225
+ _getArticleMetadata:function(e){var t={},i={},a=this._doc.getElementsByTagName("meta"),r=/\s*(article|dc|dcterm|og|twitter)\s*:\s*(author|creator|description|published_time|title|site_name)\s*/gi,n=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(a,(function(e){var t=e.getAttribute("name"),a=e.getAttribute("property"),s=e.getAttribute("content");if(s){var l=null,o=null;a&&(l=a.match(r))&&(o=l[0].toLowerCase().replace(/\s/g,""),i[o]=s.trim()),!l&&t&&n.test(t)&&(o=t,s&&(o=o.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),i[o]=s.trim()))}})),t.title=e.title||i["dc:title"]||i["dcterm:title"]||i["og:title"]||i["weibo:article:title"]||i["weibo:webpage:title"]||i.title||i["twitter:title"],t.title||(t.title=this._getArticleTitle()),t.byline=e.byline||i["dc:creator"]||i["dcterm:creator"]||i.author,t.excerpt=e.excerpt||i["dc:description"]||i["dcterm:description"]||i["og:description"]||i["weibo:article:description"]||i["weibo:webpage:description"]||i.description||i["twitter:description"],t.siteName=e.siteName||i["og:site_name"],t.publishedTime=e.datePublished||i["article:published_time"]||null,t.title=this._unescapeHtmlEntities(t.title),t.byline=this._unescapeHtmlEntities(t.byline),t.excerpt=this._unescapeHtmlEntities(t.excerpt),t.siteName=this._unescapeHtmlEntities(t.siteName),t.publishedTime=this._unescapeHtmlEntities(t.publishedTime),t},
226
+ /**
227
+ * Check if node is image, or if node contains exactly only one image
228
+ * whether as a direct child or as its descendants.
229
+ *
230
+ * @param Element
231
+ **/
232
+ _isSingleImage:function(e){return"IMG"===e.tagName||1===e.children.length&&""===e.textContent.trim()&&this._isSingleImage(e.children[0])},
233
+ /**
234
+ * Find all <noscript> that are located after <img> nodes, and which contain only one
235
+ * <img> element. Replace the first image with the image from inside the <noscript> tag,
236
+ * and remove the <noscript> tag. This improves the quality of the images we use on
237
+ * some sites (e.g. Medium).
238
+ *
239
+ * @param Element
240
+ **/
241
+ _unwrapNoscriptImages:function(e){var t=Array.from(e.getElementsByTagName("img"));this._forEachNode(t,(function(e){for(var t=0;t<e.attributes.length;t++){var i=e.attributes[t];switch(i.name){case"src":case"srcset":case"data-src":case"data-srcset":return}if(/\.(jpg|jpeg|png|webp)/i.test(i.value))return}e.parentNode.removeChild(e)}));var i=Array.from(e.getElementsByTagName("noscript"));this._forEachNode(i,(function(t){var i=e.createElement("div");if(i.innerHTML=t.innerHTML,this._isSingleImage(i)){var a=t.previousElementSibling;if(a&&this._isSingleImage(a)){var r=a;"IMG"!==r.tagName&&(r=a.getElementsByTagName("img")[0]);for(var n=i.getElementsByTagName("img")[0],s=0;s<r.attributes.length;s++){var l=r.attributes[s];if(""!==l.value&&("src"===l.name||"srcset"===l.name||/\.(jpg|jpeg|png|webp)/i.test(l.value))){if(n.getAttribute(l.name)===l.value)continue;var o=l.name;n.hasAttribute(o)&&(o="data-old-"+o),n.setAttribute(o,l.value)}}t.parentNode.replaceChild(i.firstElementChild,a)}}}))},
242
+ /**
243
+ * Removes script tags from the document.
244
+ *
245
+ * @param Element
246
+ **/
247
+ _removeScripts:function(e){this._removeNodes(this._getAllNodesWithTag(e,["script","noscript"]))},
248
+ /**
249
+ * Check if this node has only whitespace and a single element with given tag
250
+ * Returns false if the DIV node contains non-empty text nodes
251
+ * or if it contains no element with given tag or more than 1 element.
252
+ *
253
+ * @param Element
254
+ * @param string tag of child element
255
+ **/
256
+ _hasSingleTagInsideElement:function(e,t){return 1==e.children.length&&e.children[0].tagName===t&&!this._someNode(e.childNodes,(function(e){return e.nodeType===this.TEXT_NODE&&this.REGEXPS.hasContent.test(e.textContent)}))},_isElementWithoutContent:function(e){return e.nodeType===this.ELEMENT_NODE&&0==e.textContent.trim().length&&(0==e.children.length||e.children.length==e.getElementsByTagName("br").length+e.getElementsByTagName("hr").length)},
257
+ /**
258
+ * Determine whether element has any children block level elements.
259
+ *
260
+ * @param Element
261
+ */
262
+ _hasChildBlockElement:function(e){return this._someNode(e.childNodes,(function(e){return this.DIV_TO_P_ELEMS.has(e.tagName)||this._hasChildBlockElement(e)}))},
263
+ /***
264
+ * Determine if a node qualifies as phrasing content.
265
+ * https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content
266
+ **/
267
+ _isPhrasingContent:function(e){return e.nodeType===this.TEXT_NODE||-1!==this.PHRASING_ELEMS.indexOf(e.tagName)||("A"===e.tagName||"DEL"===e.tagName||"INS"===e.tagName)&&this._everyNode(e.childNodes,this._isPhrasingContent)},_isWhitespace:function(e){return e.nodeType===this.TEXT_NODE&&0===e.textContent.trim().length||e.nodeType===this.ELEMENT_NODE&&"BR"===e.tagName},
268
+ /**
269
+ * Get the inner text of a node - cross browser compatibly.
270
+ * This also strips out any excess whitespace to be found.
271
+ *
272
+ * @param Element
273
+ * @param Boolean normalizeSpaces (default: true)
274
+ * @return string
275
+ **/
276
+ _getInnerText:function(e,t){t=void 0===t||t;var i=e.textContent.trim();return t?i.replace(this.REGEXPS.normalize," "):i},
277
+ /**
278
+ * Get the number of times a string s appears in the node e.
279
+ *
280
+ * @param Element
281
+ * @param string - what to split on. Default is ","
282
+ * @return number (integer)
283
+ **/
284
+ _getCharCount:function(e,t){return t=t||",",this._getInnerText(e).split(t).length-1},
285
+ /**
286
+ * Remove the style attribute on every e and under.
287
+ * TODO: Test if getElementsByTagName(*) is faster.
288
+ *
289
+ * @param Element
290
+ * @return void
291
+ **/
292
+ _cleanStyles:function(e){if(e&&"svg"!==e.tagName.toLowerCase()){for(var t=0;t<this.PRESENTATIONAL_ATTRIBUTES.length;t++)e.removeAttribute(this.PRESENTATIONAL_ATTRIBUTES[t]);-1!==this.DEPRECATED_SIZE_ATTRIBUTE_ELEMS.indexOf(e.tagName)&&(e.removeAttribute("width"),e.removeAttribute("height"));for(var i=e.firstElementChild;null!==i;)this._cleanStyles(i),i=i.nextElementSibling}},
293
+ /**
294
+ * Get the density of links as a percentage of the content
295
+ * This is the amount of text that is inside a link divided by the total text in the node.
296
+ *
297
+ * @param Element
298
+ * @return number (float)
299
+ **/
300
+ _getLinkDensity:function(e){var t=this._getInnerText(e).length;if(0===t)return 0;var i=0;return this._forEachNode(e.getElementsByTagName("a"),(function(e){var t=e.getAttribute("href"),a=t&&this.REGEXPS.hashUrl.test(t)?.3:1;i+=this._getInnerText(e).length*a})),i/t},
301
+ /**
302
+ * Get an elements class/id weight. Uses regular expressions to tell if this
303
+ * element looks good or bad.
304
+ *
305
+ * @param Element
306
+ * @return number (Integer)
307
+ **/
308
+ _getClassWeight:function(e){if(!this._flagIsActive(this.FLAG_WEIGHT_CLASSES))return 0;var t=0;return"string"==typeof e.className&&""!==e.className&&(this.REGEXPS.negative.test(e.className)&&(t-=25),this.REGEXPS.positive.test(e.className)&&(t+=25)),"string"==typeof e.id&&""!==e.id&&(this.REGEXPS.negative.test(e.id)&&(t-=25),this.REGEXPS.positive.test(e.id)&&(t+=25)),t},
309
+ /**
310
+ * Clean a node of all elements of type "tag".
311
+ * (Unless it's a youtube/vimeo video. People love movies.)
312
+ *
313
+ * @param Element
314
+ * @param string tag to clean
315
+ * @return void
316
+ **/
317
+ _clean:function(e,t){var i=-1!==["object","embed","iframe"].indexOf(t);this._removeNodes(this._getAllNodesWithTag(e,[t]),(function(e){if(i){for(var t=0;t<e.attributes.length;t++)if(this._allowedVideoRegex.test(e.attributes[t].value))return!1;if("object"===e.tagName&&this._allowedVideoRegex.test(e.innerHTML))return!1}return!0}))},
318
+ /**
319
+ * Check if a given node has one of its ancestor tag name matching the
320
+ * provided one.
321
+ * @param HTMLElement node
322
+ * @param String tagName
323
+ * @param Number maxDepth
324
+ * @param Function filterFn a filter to invoke to determine whether this node 'counts'
325
+ * @return Boolean
326
+ */
327
+ _hasAncestorTag:function(e,t,i,a){i=i||3,t=t.toUpperCase();for(var r=0;e.parentNode;){if(i>0&&r>i)return!1;if(e.parentNode.tagName===t&&(!a||a(e.parentNode)))return!0;e=e.parentNode,r++}return!1},
328
+ /**
329
+ * Return an object indicating how many rows and columns this table has.
330
+ */
331
+ _getRowAndColumnCount:function(e){for(var t=0,i=0,a=e.getElementsByTagName("tr"),r=0;r<a.length;r++){var n=a[r].getAttribute("rowspan")||0;n&&(n=parseInt(n,10)),t+=n||1;for(var s=0,l=a[r].getElementsByTagName("td"),o=0;o<l.length;o++){var h=l[o].getAttribute("colspan")||0;h&&(h=parseInt(h,10)),s+=h||1}i=Math.max(i,s)}return{rows:t,columns:i}},
332
+ /**
333
+ * Look for 'data' (as opposed to 'layout') tables, for which we use
334
+ * similar checks as
335
+ * https://searchfox.org/mozilla-central/rev/f82d5c549f046cb64ce5602bfd894b7ae807c8f8/accessible/generic/TableAccessible.cpp#19
336
+ */
337
+ _markDataTables:function(e){for(var t=e.getElementsByTagName("table"),i=0;i<t.length;i++){var a=t[i];if("presentation"!=a.getAttribute("role"))if("0"!=a.getAttribute("datatable"))if(a.getAttribute("summary"))a._readabilityDataTable=!0;else{var r=a.getElementsByTagName("caption")[0];if(r&&r.childNodes.length>0)a._readabilityDataTable=!0;else if(["col","colgroup","tfoot","thead","th"].some((function(e){return!!a.getElementsByTagName(e)[0]})))this.log("Data table because found data-y descendant"),a._readabilityDataTable=!0;else if(a.getElementsByTagName("table")[0])a._readabilityDataTable=!1;else{var n=this._getRowAndColumnCount(a);n.rows>=10||n.columns>4?a._readabilityDataTable=!0:a._readabilityDataTable=n.rows*n.columns>10}}else a._readabilityDataTable=!1;else a._readabilityDataTable=!1}},
338
+ /* convert images and figures that have properties like data-src into images that can be loaded without JS */
339
+ _fixLazyImages:function(e){this._forEachNode(this._getAllNodesWithTag(e,["img","picture","figure"]),(function(e){if(e.src&&this.REGEXPS.b64DataUrl.test(e.src)){if("image/svg+xml"===this.REGEXPS.b64DataUrl.exec(e.src)[1])return;for(var t=!1,i=0;i<e.attributes.length;i++){var a=e.attributes[i];if("src"!==a.name&&/\.(jpg|jpeg|png|webp)/i.test(a.value)){t=!0;break}}if(t){var r=e.src.search(/base64\s*/i)+7;e.src.length-r<133&&e.removeAttribute("src")}}if(!(e.src||e.srcset&&"null"!=e.srcset)||-1!==e.className.toLowerCase().indexOf("lazy"))for(var n=0;n<e.attributes.length;n++)if("src"!==(a=e.attributes[n]).name&&"srcset"!==a.name&&"alt"!==a.name){var s=null;if(/\.(jpg|jpeg|png|webp)\s+\d/.test(a.value)?s="srcset":/^\s*\S+\.(jpg|jpeg|png|webp)\S*\s*$/.test(a.value)&&(s="src"),s)if("IMG"===e.tagName||"PICTURE"===e.tagName)e.setAttribute(s,a.value);else if("FIGURE"===e.tagName&&!this._getAllNodesWithTag(e,["img","picture"]).length){var l=this._doc.createElement("img");l.setAttribute(s,a.value),e.appendChild(l)}}}))},_getTextDensity:function(e,t){var i=this._getInnerText(e,!0).length;if(0===i)return 0;var a=0,r=this._getAllNodesWithTag(e,t);return this._forEachNode(r,(e=>a+=this._getInnerText(e,!0).length)),a/i},
340
+ /**
341
+ * Clean an element of all tags of type "tag" if they look fishy.
342
+ * "Fishy" is an algorithm based on content length, classnames, link density, number of images & embeds, etc.
343
+ *
344
+ * @return void
345
+ **/
346
+ _cleanConditionally:function(e,t){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(e,[t]),(function(e){var i=function(e){return e._readabilityDataTable},a="ul"===t||"ol"===t;if(!a){var r=0,n=this._getAllNodesWithTag(e,["ul","ol"]);this._forEachNode(n,(e=>r+=this._getInnerText(e).length)),a=r/this._getInnerText(e).length>.9}if("table"===t&&i(e))return!1;if(this._hasAncestorTag(e,"table",-1,i))return!1;if(this._hasAncestorTag(e,"code"))return!1;var s=this._getClassWeight(e);if(this.log("Cleaning Conditionally",e),s+0<0)return!0;if(this._getCharCount(e,",")<10){for(var l=e.getElementsByTagName("p").length,o=e.getElementsByTagName("img").length,h=e.getElementsByTagName("li").length-100,c=e.getElementsByTagName("input").length,d=this._getTextDensity(e,["h1","h2","h3","h4","h5","h6"]),g=0,u=this._getAllNodesWithTag(e,["object","embed","iframe"]),m=0;m<u.length;m++){for(var _=0;_<u[m].attributes.length;_++)if(this._allowedVideoRegex.test(u[m].attributes[_].value))return!1;if("object"===u[m].tagName&&this._allowedVideoRegex.test(u[m].innerHTML))return!1;g++}var f=this._getLinkDensity(e),p=this._getInnerText(e).length,N=o>1&&l/o<.5&&!this._hasAncestorTag(e,"figure")||!a&&h>l||c>Math.floor(l/3)||!a&&d<.9&&p<25&&(0===o||o>2)&&!this._hasAncestorTag(e,"figure")||!a&&s<25&&f>.2||s>=25&&f>.5||1===g&&p<75||g>1;if(a&&N){for(var E=0;E<e.children.length;E++)if(e.children[E].children.length>1)return N;if(o==e.getElementsByTagName("li").length)return!1}return N}return!1}))},
347
+ /**
348
+ * Clean out elements that match the specified conditions
349
+ *
350
+ * @param Element
351
+ * @param Function determines whether a node should be removed
352
+ * @return void
353
+ **/
354
+ _cleanMatchedNodes:function(e,t){for(var i=this._getNextNode(e,!0),a=this._getNextNode(e);a&&a!=i;)a=t.call(this,a,a.className+" "+a.id)?this._removeAndGetNext(a):this._getNextNode(a)},
355
+ /**
356
+ * Clean out spurious headers from an Element.
357
+ *
358
+ * @param Element
359
+ * @return void
360
+ **/
361
+ _cleanHeaders:function(e){let t=this._getAllNodesWithTag(e,["h1","h2"]);this._removeNodes(t,(function(e){let t=this._getClassWeight(e)<0;return t&&this.log("Removing header with low class weight:",e),t}))},
362
+ /**
363
+ * Check if this node is an H1 or H2 element whose content is mostly
364
+ * the same as the article title.
365
+ *
366
+ * @param Element the node to check.
367
+ * @return boolean indicating whether this is a title-like header.
368
+ */
369
+ _headerDuplicatesTitle:function(e){if("H1"!=e.tagName&&"H2"!=e.tagName)return!1;var t=this._getInnerText(e,!1);return this.log("Evaluating similarity of header:",t,this._articleTitle),this._textSimilarity(this._articleTitle,t)>.75},_flagIsActive:function(e){return(this._flags&e)>0},_removeFlag:function(e){this._flags=this._flags&~e},_isProbablyVisible:function(e){return(!e.style||"none"!=e.style.display)&&(!e.style||"hidden"!=e.style.visibility)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))},
370
+ /**
371
+ * Runs readability.
372
+ *
373
+ * Workflow:
374
+ * 1. Prep the document by removing script tags, css, etc.
375
+ * 2. Build readability's DOM tree.
376
+ * 3. Grab the article content from the current dom tree.
377
+ * 4. Replace the current DOM tree with the new one.
378
+ * 5. Read peacefully.
379
+ *
380
+ * @return void
381
+ **/
382
+ parse:function(){if(this._maxElemsToParse>0){var e=this._doc.getElementsByTagName("*").length;if(e>this._maxElemsToParse)throw new Error("Aborting parsing document; "+e+" elements found")}this._unwrapNoscriptImages(this._doc);var t=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var i=this._getArticleMetadata(t);this._articleTitle=i.title;var a=this._grabArticle();if(!a)return null;if(this.log("Grabbed: "+a.innerHTML),this._postProcessContent(a),!i.excerpt){var r=a.getElementsByTagName("p");r.length>0&&(i.excerpt=r[0].textContent.trim())}var n=a.textContent;return{title:this._articleTitle,byline:i.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(a),textContent:n,length:n.length,excerpt:i.excerpt,siteName:i.siteName||this._articleSiteName,publishedTime:i.publishedTime}}},e.exports=t}(t)),t.exports),l=(i||(i=1,function(){var e={
383
+ // NOTE: These two regular expressions are duplicated in
384
+ // Readability.js. Please keep both copies in sync.
385
+ unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function t(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))}n.exports=function(i,a={}){"function"==typeof a&&(a={visibilityChecker:a});var r={minScore:20,minContentLength:140,visibilityChecker:t};a=Object.assign(r,a);var n=i.querySelectorAll("p, pre, article"),s=i.querySelectorAll("div > br");if(s.length){var l=new Set(n);[].forEach.call(s,(function(e){l.add(e.parentNode)})),n=Array.from(l)}var o=0;return[].some.call(n,(function(t){if(!a.visibilityChecker(t))return!1;var i=t.className+" "+t.id;if(e.unlikelyCandidates.test(i)&&!e.okMaybeItsACandidate.test(i))return!1;if(t.matches("li p"))return!1;var r=t.textContent.trim().length;return!(r<a.minContentLength)&&(o+=Math.sqrt(r-a.minContentLength))>a.minScore}))}}()),n.exports);return a={Readability:s,isProbablyReaderable:l}}();export{s as r};
.output/public/assets/@popperjs-B4tvfKWZ.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",f="viewport",c="popper",p=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),u=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),l=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof h(e).Element||e instanceof Element}function v(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}const y={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];v(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});v(r)&&d(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function b(e){return e.split("-")[0]}var x=Math.max,w=Math.min,O=Math.round;function j(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function E(){return!/^((?!chrome|android).)*safari/i.test(j())}function D(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&v(e)&&(o=e.offsetWidth>0&&O(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&O(r.height)/e.offsetHeight||1);var a=(m(e)?h(e):window).visualViewport,s=!E()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,p=r.width/o,u=r.height/i;return{width:p,height:u,top:c,right:f+p,bottom:c+u,left:f,x:f,y:c}}function A(e){var t=D(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(e){return h(e).getComputedStyle(e)}function W(e){return["table","td","th"].indexOf(d(e))>=0}function M(e){return((m(e)?e.ownerDocument:
2
+ // $FlowFixMe[prop-missing]
3
+ e.document)||window.document).documentElement}function P(e){return"html"===d(e)?e:
4
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
5
+ // $FlowFixMe[incompatible-return]
6
+ // $FlowFixMe[prop-missing]
7
+ e.assignedSlot||// step into the shadow DOM of the parent of a slotted node
8
+ e.parentNode||(// DOM Element detected
9
+ g(e)?e.host:null)||// ShadowRoot detected
10
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
11
+ M(e)}function B(e){return v(e)&&// https://github.com/popperjs/popper-core/issues/837
12
+ "fixed"!==L(e).position?e.offsetParent:null}function H(e){for(var t=h(e),n=B(e);n&&W(n)&&"static"===L(n).position;)n=B(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===L(n).position)?t:n||function(e){var t=/firefox/i.test(j());if(/Trident/i.test(j())&&v(e)&&"fixed"===L(e).position)return null;var n=P(e);for(g(n)&&(n=n.host);v(n)&&["html","body"].indexOf(d(n))<0;){var r=L(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function R(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function T(e,t,n){return x(e,w(t,n))}function S(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function V(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function q(e){return e.split("-")[1]}var C={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N(o){var i,a=o.popper,f=o.popperRect,c=o.placement,p=o.variation,u=o.offsets,l=o.position,d=o.gpuAcceleration,m=o.adaptive,v=o.roundOffsets,g=o.isFixed,y=u.x,b=void 0===y?0:y,x=u.y,w=void 0===x?0:x,j="function"==typeof v?v({x:b,y:w}):{x:b,y:w};b=j.x,w=j.y;var E=u.hasOwnProperty("x"),D=u.hasOwnProperty("y"),A=r,k=e,W=window;if(m){var P=H(a),B="clientHeight",R="clientWidth";if(P===h(a)&&"static"!==L(P=M(a)).position&&"absolute"===l&&(B="scrollHeight",R="scrollWidth"),c===e||(c===r||c===n)&&p===s)k=t,w-=(g&&P===W&&W.visualViewport?W.visualViewport.height:
13
+ // $FlowFixMe[prop-missing]
14
+ P[B])-f.height,w*=d?1:-1;if(c===r||(c===e||c===t)&&p===s)A=n,b-=(g&&P===W&&W.visualViewport?W.visualViewport.width:
15
+ // $FlowFixMe[prop-missing]
16
+ P[R])-f.width,b*=d?1:-1}var T,S=Object.assign({position:l},m&&C),V=!0===v?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:O(n*o)/o||0,y:O(r*o)/o||0}}({x:b,y:w},h(a)):{x:b,y:w};return b=V.x,w=V.y,d?Object.assign({},S,((T={})[k]=D?"0":"",T[A]=E?"0":"",T.transform=(W.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",T)):Object.assign({},S,((i={})[k]=D?w+"px":"",i[A]=E?b+"px":"",i.transform="",i))}var I={passive:!0};var F={left:"right",right:"left",bottom:"top",top:"bottom"};function U(e){return e.replace(/left|right|bottom|top/g,(function(e){return F[e]}))}var z={start:"end",end:"start"};function _(e){return e.replace(/start|end/g,(function(e){return z[e]}))}function X(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(e){return D(M(e)).left+X(e).scrollLeft}function G(e){var t=L(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function J(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:v(e)&&G(e)?e:J(P(e))}function K(e,t){var n;void 0===t&&(t=[]);var r=J(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=h(r),a=o?[i].concat(i.visualViewport||[],G(r)?r:[]):r,s=t.concat(a);return o?s:
17
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
18
+ s.concat(K(P(a)))}function Q(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z(e,t,n){return t===f?Q(function(e,t){var n=h(e),r=M(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=E();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+Y(e),y:f}}(e,n)):m(t)?function(e,t){var n=D(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Q(function(e){var t,n=M(e),r=X(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=x(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=x(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Y(e),f=-r.scrollTop;return"rtl"===L(o||n).direction&&(s+=x(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(M(e)))}function $(e,t,n,r){var o="clippingParents"===t?function(e){var t=K(P(e)),n=["absolute","fixed"].indexOf(L(e).position)>=0&&v(e)?H(e):e;return m(n)?t.filter((function(e){return m(e)&&k(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Z(e,n,r);return t.top=x(o.top,t.top),t.right=w(o.right,t.right),t.bottom=w(o.bottom,t.bottom),t.left=x(o.left,t.left),t}),Z(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ee(o){var i,f=o.reference,c=o.element,p=o.placement,u=p?b(p):null,l=p?q(p):null,d=f.x+f.width/2-c.width/2,h=f.y+f.height/2-c.height/2;switch(u){case e:i={x:d,y:f.y-c.height};break;case t:i={x:d,y:f.y+f.height};break;case n:i={x:f.x+f.width,y:h};break;case r:i={x:f.x-c.width,y:h};break;default:i={x:f.x,y:f.y}}var m=u?R(u):null;if(null!=m){var v="y"===m?"height":"width";switch(l){case a:i[m]=i[m]-(f[v]/2-c[v]/2);break;case s:i[m]=i[m]+(f[v]/2-c[v]/2)}}return i}function te(r,o){void 0===o&&(o={});var a=o,s=a.placement,p=void 0===s?r.placement:s,u=a.strategy,l=void 0===u?r.strategy:u,d=a.boundary,h=void 0===d?"clippingParents":d,v=a.rootBoundary,g=void 0===v?f:v,y=a.elementContext,b=void 0===y?c:y,x=a.altBoundary,w=void 0!==x&&x,O=a.padding,j=void 0===O?0:O,E=S("number"!=typeof j?j:V(j,i)),A=b===c?"reference":c,k=r.rects.popper,L=r.elements[w?A:b],W=$(m(L)?L:L.contextElement||M(r.elements.popper),h,g,l),P=D(r.elements.reference),B=ee({reference:P,element:k,placement:p}),H=Q(Object.assign({},k,B)),R=b===c?H:P,T={top:W.top-R.top+E.top,bottom:R.bottom-W.bottom+E.bottom,left:W.left-R.left+E.left,right:R.right-W.right+E.right},q=r.modifiersData.offset;if(b===c&&q){var C=q[p];Object.keys(T).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";T[r]+=C[i]*o}))}return T}function ne(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function re(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}function oe(e,t,n){void 0===n&&(n=!1);var r,o,i=v(t),a=v(t)&&function(e){var t=e.getBoundingClientRect(),n=O(t.width)/e.offsetWidth||1,r=O(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=M(t),f=D(e,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==d(t)||// https://github.com/popperjs/popper-core/issues/1078
19
+ G(s))&&(c=(r=t)!==h(r)&&v(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:X(r)),v(t)?((p=D(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=Y(s))),{x:f.left+c.scrollLeft-p.x,y:f.top+c.scrollTop-p.y,width:f.width,height:f.height}}function ie(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ae={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function fe(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ae:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ae,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:m(e)?K(e):e.contextElement?K(e.contextElement):[],popper:K(t)};var a,c,d=function(e){var t=ie(e);return l.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=d.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r}),a=function(){};f.push(i||a)}})),p.update()},
20
+ // Sync update – it will always be executed, even if not necessary. This
21
+ // is useful for low frequency updates where sync behavior simplifies the
22
+ // logic.
23
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
24
+ // prefer the async Popper#update method
25
+ forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(se(t,n)){s.rects={reference:oe(t,H(n),"fixed"===s.options.strategy),popper:A(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,f=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:f,name:u,instance:p})||s)}else s.reset=!1,r=-1}}},
26
+ // Async and optimistically optimized update – it will not be executed if
27
+ // not necessary (debounced to run at most once-per-tick)
28
+ update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){u(),c=!0}};if(!se(e,t))return p;function u(){f.forEach((function(e){return e()})),f=[]}return p.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var ce=fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,I)})),s&&f.addEventListener("resize",n.update,I),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,I)})),s&&f.removeEventListener("resize",n.update,I)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ee({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:b(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,N(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,N(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},y,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,f=void 0===s?[0,0]:s,c=u.reduce((function(t,i){return t[i]=function(t,o,i){var a=b(t),s=[r,e].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:t})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*s,[r,n].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,o.rects,f),t}),{}),p=c[o.placement],l=p.x,d=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=l,o.modifiersData.popperOffsets.y+=d),o.modifiersData[a]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(s){var f=s.state,c=s.options,l=s.name;if(!f.modifiersData[l]._skip){for(var d=c.mainAxis,h=void 0===d||d,m=c.altAxis,v=void 0===m||m,g=c.fallbackPlacements,y=c.padding,x=c.boundary,w=c.rootBoundary,O=c.altBoundary,j=c.flipVariations,E=void 0===j||j,D=c.allowedAutoPlacements,A=f.options.placement,k=b(A),L=g||(k===A||!E?[U(A)]:function(e){if(b(e)===o)return[];var t=U(e);return[_(e),t,_(t)]}(A)),W=[A].concat(L).reduce((function(e,t){return e.concat(b(t)===o?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?u:c,d=q(r),h=d?f?p:p.filter((function(e){return q(e)===d})):i,m=h.filter((function(e){return l.indexOf(e)>=0}));0===m.length&&(m=h);var v=m.reduce((function(t,n){return t[n]=te(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[b(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}(f,{placement:t,boundary:x,rootBoundary:w,padding:y,flipVariations:E,allowedAutoPlacements:D}):t)}),[]),M=f.rects.reference,P=f.rects.popper,B=new Map,H=!0,R=W[0],T=0;T<W.length;T++){var S=W[T],V=b(S),C=q(S)===a,N=[e,t].indexOf(V)>=0,I=N?"width":"height",F=te(f,{placement:S,boundary:x,rootBoundary:w,altBoundary:O,padding:y}),z=N?C?n:r:C?t:e;M[I]>P[I]&&(z=U(z));var X=U(z),Y=[];if(h&&Y.push(F[V]<=0),v&&Y.push(F[z]<=0,F[X]<=0),Y.every((function(e){return e}))){R=S,H=!1;break}B.set(S,Y)}if(H)for(var G=function(e){var t=W.find((function(t){var n=B.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return R=t,"break"},J=E?3:1;J>0;J--){if("break"===G(J))break}f.placement!==R&&(f.modifiersData[l]._skip=!0,f.placement=R,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,f=o.name,c=s.mainAxis,p=void 0===c||c,u=s.altAxis,l=void 0!==u&&u,d=s.boundary,h=s.rootBoundary,m=s.altBoundary,v=s.padding,g=s.tether,y=void 0===g||g,O=s.tetherOffset,j=void 0===O?0:O,E=te(i,{boundary:d,rootBoundary:h,padding:v,altBoundary:m}),D=b(i.placement),k=q(i.placement),L=!k,W=R(D),M="x"===W?"y":"x",P=i.modifiersData.popperOffsets,B=i.rects.reference,S=i.rects.popper,V="function"==typeof j?j(Object.assign({},i.rects,{placement:i.placement})):j,C="number"==typeof V?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),N=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,I={x:0,y:0};if(P){if(p){var F,U="y"===W?e:r,z="y"===W?t:n,_="y"===W?"height":"width",X=P[W],Y=X+E[U],G=X-E[z],J=y?-S[_]/2:0,K=k===a?B[_]:S[_],Q=k===a?-S[_]:-B[_],Z=i.elements.arrow,$=y&&Z?A(Z):{width:0,height:0},ee=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ne=ee[U],re=ee[z],oe=T(0,B[_],$[_]),ie=L?B[_]/2-J-oe-ne-C.mainAxis:K-oe-ne-C.mainAxis,ae=L?-B[_]/2+J+oe+re+C.mainAxis:Q+oe+re+C.mainAxis,se=i.elements.arrow&&H(i.elements.arrow),fe=se?"y"===W?se.clientTop||0:se.clientLeft||0:0,ce=null!=(F=null==N?void 0:N[W])?F:0,pe=X+ae-ce,ue=T(y?w(Y,X+ie-ce-fe):Y,X,y?x(G,pe):G);P[W]=ue,I[W]=ue-X}if(l){var le,de="x"===W?e:r,he="x"===W?t:n,me=P[M],ve="y"===M?"height":"width",ge=me+E[de],ye=me-E[he],be=-1!==[e,r].indexOf(D),xe=null!=(le=null==N?void 0:N[M])?le:0,we=be?ge:me-B[ve]-S[ve]-xe+C.altAxis,Oe=be?me+B[ve]+S[ve]-xe-C.altAxis:ye,je=y&&be?(De=T(we,me,Ee=Oe))>Ee?Ee:De:T(y?we:ge,me,y?Oe:ye);P[M]=je,I[M]=je-me}var Ee,De;i.modifiersData[f]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,f=o.name,c=o.options,p=s.elements.arrow,u=s.modifiersData.popperOffsets,l=b(s.placement),d=R(l),h=[r,n].indexOf(l)>=0?"height":"width";if(p&&u){var m=function(e,t){return S("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:V(e,i))}(c.padding,s),v=A(p),g="y"===d?e:r,y="y"===d?t:n,x=s.rects.reference[h]+s.rects.reference[d]-u[d]-s.rects.popper[h],w=u[d]-s.rects.reference[d],O=H(p),j=O?"y"===d?O.clientHeight||0:O.clientWidth||0:0,E=x/2-w/2,D=m[g],k=j-v[h]-m[y],L=j/2-v[h]/2+E,W=T(D,L,k),M=d;s.modifiersData[f]=((a={})[M]=W,a.centerOffset=W-L,a)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&k(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=te(t,{elementContext:"reference"}),s=te(t,{altBoundary:!0}),f=ne(a,r),c=ne(s,o,i),p=re(f),u=re(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]});export{ce as c};
.output/public/assets/@traptitech-BPk2gen6.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{g as r}from"./@babel-D5ZMb8W9.js";import{r as e}from"./katex-BY7yyeOs.js";var t,n;const c=r(function(){if(n)return t;n=1;var r=e();function c(r,e){var t,n,c=r.posMax,s=!0,a=!0;return t=e>0?r.src.charCodeAt(e-1):-1,n=e+1<=c?r.src.charCodeAt(e+1):-1,(32===t||9===t||n>=48&&n<=57)&&(a=!1),32!==n&&9!==n||(s=!1),{can_open:s,can_close:a}}function s(r,e){var t,n,s,a;if("$"!==r.src[r.pos])return!1;if(!c(r,r.pos).can_open)return e||(r.pending+="$"),r.pos+=1,!0;for(n=t=r.pos+1;-1!==(n=r.src.indexOf("$",n));){for(a=n-1;"\\"===r.src[a];)a-=1;if((n-a)%2==1)break;n+=1}return-1===n?(e||(r.pending+="$"),r.pos=t,!0):n-t==0?(e||(r.pending+="$$"),r.pos=t+1,!0):c(r,n).can_close?(e||((s=r.push("math_inline","math",0)).markup="$",s.content=r.src.slice(t,n)),r.pos=n+1,!0):(e||(r.pending+="$"),r.pos=t,!0)}function a(r,e,t,n){var c,s,a,o,i,l=!1,p=r.bMarks[e]+r.tShift[e],u=r.eMarks[e];if(p+2>u)return!1;if("$$"!==r.src.slice(p,p+2))return!1;if(p+=2,c=r.src.slice(p,u),n)return!0;for("$$"===c.trim().slice(-2)&&(c=c.trim().slice(0,-2),l=!0),a=e;!l&&!(++a>=t)&&!((p=r.bMarks[a]+r.tShift[a])<(u=r.eMarks[a])&&r.tShift[a]<r.blkIndent);)"$$"===r.src.slice(p,u).trim().slice(-2)&&(o=r.src.slice(0,u).lastIndexOf("$$"),s=r.src.slice(p,o),l=!0);return r.line=a+1,(i=r.push("math_block","math",0)).block=!0,i.content=(c&&c.trim()?c+"\n":"")+r.getLines(e+1,a,r.tShift[e],!0)+(s&&s.trim()?s:""),i.map=[e,r.line],i.markup="$$",!0}function o(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}return t=function(e,t){(t=t||{}).katex&&(r=t.katex),t.blockClass||(t.blockClass="");e.inline.ruler.after("escape","math_inline",s),e.block.ruler.after("blockquote","math_block",a,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=function(e,n){return function(e){t.displayMode=!1;try{return r.renderToString(e,t)}catch(n){return t.throwOnError,`<span class='katex-error' title='${o(n.toString())}'>${o(e)}</span>`}}(e[n].content)},e.renderer.rules.math_block=function(e,n){return function(e){t.displayMode=!0;try{return`<p class="katex-block ${t.blockClass}">`+r.renderToString(e,t)+"</p>"}catch(n){return t.throwOnError,`<p class='katex-block katex-error ${t.blockClass}' title='${o(n.toString())}'>${o(e)}</p>`}}(e[n].content)+"\n"}}}());export{c as m};
.output/public/assets/@vue-DsZlmJIP.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/@vueuse-CdWUKi2M.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{w as e,n as t,r as n,t as a,a as i,c as r,g as o,h as u,i as l,o as s,b as c,d as v,s as d,e as f,f as p,u as m,j as g,k as h}from"./@vue-DsZlmJIP.js";function w(e){return!!c()&&(v(e),!0)}const y=new WeakMap,b="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const S=Object.prototype.toString,N=()=>{};const I=e=>e();function E(e=I,t={}){const{initialState:o="active"}=t,u=function(...e){if(1!==e.length)return a(...e);const t=e[0];return"function"==typeof t?n(r((()=>({get:t,set:N})))):i(t)}("active"===o);return{isActive:n(u),pause:function(){u.value=!1},resume:function(){u.value=!0},eventFilter:(...t)=>{u.value&&e(...t)}}}function O(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function A(e){return Array.isArray(e)?e:[e]}function F(t,n,a={}){const{eventFilter:i=I,...r}=a;return e(t,(o=i,u=n,function(...e){return new Promise(((t,n)=>{Promise.resolve(o((()=>u.apply(this,e)),{fn:u,thisArg:this,args:e})).then(t).catch(n)}))}),r);var o,u}function T(e,n=!0,a){o()?s(e,a):n?e():t(e)}const M=b?window:void 0,j=b?window.navigator:void 0;function V(...t){const n=[],a=()=>{n.forEach((e=>e())),n.length=0},i=p((()=>{const e=A(f(t[0])).filter((e=>null!=e));return e.every((e=>"string"!=typeof e))?e:void 0})),r=(o=([e,t,i,r])=>{if(a(),!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==i?void 0:i.length))return;const o=(u=r,"[object Object]"===S.call(u)?{...r}:r);var u;n.push(...e.flatMap((e=>t.flatMap((t=>i.map((n=>((e,t,n,a)=>(e.addEventListener(t,n,a),()=>e.removeEventListener(t,n,a)))(e,t,n,o))))))))},u={flush:"post"},e((()=>{var e,n;return[null!=(n=null==(e=i.value)?void 0:e.map((e=>function(e){var t;const n=f(e);return null!=(t=null==n?void 0:n.$el)?t:n}(e))))?n:[M].filter((e=>null!=e)),A(f(i.value?t[1]:t[0])),A(m(i.value?t[2]:t[1])),
2
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
3
+ f(i.value?t[3]:t[2])]}),o,{...u,immediate:!0}));var o,u;return w(a),()=>{r(),a()}}function k(e){const t=function(){const e=d(!1),t=o();return t&&s((()=>{e.value=!0}),t),e}();return p((()=>(t.value,Boolean(e()))))}const W=Symbol("vueuse-ssr-width");function x(){const e=u()?((...e)=>{var t;const n=e[0],a=null==(t=o())?void 0:t.proxy;if(null==a&&!u())throw new Error("injectLocal must be called in setup");return a&&y.has(a)&&n in y.get(a)?y.get(a)[n]:l(...e)})(W,null):null;return"number"==typeof e?e:void 0}function _(e,t={}){const{controls:n=!1,navigator:a=j}=t,i=k((()=>a&&"permissions"in a)),r=d(),o="string"==typeof e?{name:e}:e,u=d(),l=()=>{var e,t;u.value=null!=(t=null==(e=r.value)?void 0:e.state)?t:"prompt"};V(r,"change",l,{passive:!0});const s=function(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}((async()=>{if(i.value){if(!r.value)try{r.value=await a.permissions.query(o)}catch(e){r.value=void 0}finally{l()}return n?h(r.value):void 0}}));return s(),n?{state:u,isSupported:i,query:s}:u}function D(e={}){const{navigator:t=j,read:a=!1,source:i,copiedDuring:r=1500,legacy:o=!1}=e,u=k((()=>t&&"clipboard"in t)),l=_("clipboard-read"),s=_("clipboard-write"),c=p((()=>u.value||o)),v=d(""),m=d(!1),g=function(e,t,a={}){const{immediate:i=!0,immediateCallback:r=!1}=a,o=d(!1);let u=null;function l(){u&&(clearTimeout(u),u=null)}function s(){o.value=!1,l()}function c(...n){r&&e(),l(),o.value=!0,u=setTimeout((()=>{o.value=!1,u=null,e(...n)}),f(t))}return i&&(o.value=!0,b&&c()),w(s),{isPending:n(o),start:c,stop:s}}((()=>m.value=!1),r,{immediate:!1});function h(e){return"granted"===e||"prompt"===e}return c.value&&a&&V(["copy","cut"],(function(){let e=!(u.value&&h(l.value));if(!e)try{t.clipboard.readText().then((e=>{v.value=e}))}catch(r){e=!0}var n,a,i;e&&(v.value=null!=(i=null==(a=null==(n=null==document?void 0:document.getSelection)?void 0:n.call(document))?void 0:a.toString())?i:"")}),{passive:!0}),{isSupported:c,text:v,copied:m,copy:async function(e=f(i)){if(c.value&&null!=e){let a=!(u.value&&h(s.value));if(!a)try{await t.clipboard.writeText(e)}catch(n){a=!0}a&&function(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(e),v.value=e,m.value=!0,g.start()}}}}const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},z="__vueuse_ssr_handlers__",C=P();function P(){return z in J||(J[z]=J[z]||{}),J[z]}const H={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},L="vueuse-storage";function q(n,a,r,o={}){var u;const{flush:l="pre",deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:v=!0,mergeDefaults:m=!1,shallow:g,window:h=M,eventFilter:w,onError:y=e=>{},initOnMounted:b}=o,S=(g?d:i)(a),N=p((()=>f(n)));if(!r)try{r=function(e,t){return C[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=M)?void 0:e.localStorage}))()}catch(D){y(D)}if(!r)return S;const I=f(a),O=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(I),A=null!=(u=o.serializer)?u:H[O],{pause:j,resume:k}=function(e,t,n={}){const{eventFilter:a,initialState:i="active",...r}=n,{eventFilter:o,pause:u,resume:l,isActive:s}=E(a,{initialState:i});return{stop:F(e,t,{...r,eventFilter:o}),pause:u,resume:l,isActive:s}}(S,(()=>function(e){try{const t=r.getItem(N.value);if(null==e)W(t,null),r.removeItem(N.value);else{const n=A.write(e);t!==n&&(r.setItem(N.value,n),W(t,n))}}catch(D){y(D)}}(S.value)),{flush:l,deep:s,eventFilter:w});function W(e,t){if(h){const n={key:N.value,oldValue:e,newValue:t,storageArea:r};h.dispatchEvent(r instanceof Storage?new StorageEvent("storage",n):new CustomEvent(L,{detail:n}))}}function x(e){if(!e||e.storageArea===r)if(e&&null==e.key)S.value=I;else if(!e||e.key===N.value){j();try{(null==e?void 0:e.newValue)!==A.write(S.value)&&(S.value=function(e){const t=e?e.newValue:r.getItem(N.value);if(null==t)return v&&null!=I&&r.setItem(N.value,A.write(I)),I;if(!e&&m){const e=A.read(t);return"function"==typeof m?m(e,I):"object"!==O||Array.isArray(e)?e:{...I,...e}}return"string"!=typeof t?t:A.read(t)}(e))}catch(D){y(D)}finally{e?t(k):k()}}}function _(e){x(e.detail)}return e(N,(()=>x()),{flush:l}),h&&c&&T((()=>{r instanceof Storage?V(h,"storage",x,{passive:!0}):V(h,L,_),b&&x()})),b||x(),S}function B(e,t,n={}){const{window:a=M}=n;return q(e,t,null==a?void 0:a.localStorage,n)}function G(e={}){const{window:t=M}=e;if(!t)return i(["en"]);const n=t.navigator,a=i(n.languages);return V(t,"languagechange",(()=>{a.value=n.languages}),{passive:!0}),a}function Y(t={}){const{window:n=M,initialWidth:a=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:u=!0,type:l="inner"}=t,s=i(a),c=i(r),v=()=>{if(n)if("outer"===l)s.value=n.outerWidth,c.value=n.outerHeight;else if("visual"===l&&n.visualViewport){const{width:e,height:t,scale:a}=n.visualViewport;s.value=Math.round(e*a),c.value=Math.round(t*a)}else u?(s.value=n.innerWidth,c.value=n.innerHeight):(s.value=n.document.documentElement.clientWidth,c.value=n.document.documentElement.clientHeight)};v(),T(v);const m={passive:!0};if(V("resize",v,m),n&&"visual"===l&&n.visualViewport&&V(n.visualViewport,"resize",v,m),o){const t=function(e,t={}){const{window:n=M,ssrWidth:a=x()}=t,r=k((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia)),o=i("number"==typeof a),u=d(),l=d(!1);return g((()=>{if(o.value){o.value=!r.value;const t=f(e).split(",");l.value=t.some((e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let r=Boolean(n||i);return n&&r&&(r=a>=O(n[1])),i&&r&&(r=a<=O(i[1])),t?!r:r}))}else r.value&&(u.value=n.matchMedia(f(e)),l.value=u.value.matches)})),V(u,"change",(e=>{l.value=e.matches}),{passive:!0}),p((()=>l.value))}("(orientation: portrait)");e(t,(()=>v()))}return{width:s,height:c}}export{G as a,D as b,Y as c,B as u};
.output/public/assets/@wdns-Ct47UQBJ.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/ChatInput.vue_vue_type_style_index_0_lang-DUr-4UKr.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,K as a,w as t,a as l,v as s,z as n,y as o,R as r,F as i,ab as u,J as c,aa as p,A as v,H as f,ad as d,u as m,f as g,o as w,B as h,I as y,n as x}from"./@vue-DsZlmJIP.js";import{t as k,u as A,d as b,m as C}from"./global-8PgNYKI7.js";import{$ as P,c as z,Y as M,x as V,U as L,s as R}from"./tdesign-vue-next-Dn8RgD8J.js";import{c as U,P as B,ae as D}from"./tdesign-icons-vue-next-TRQ6L2cX.js";import{m as j}from"./mammoth-5Ncu60I4.js";import{r as N,u as T}from"./xlsx-DB6BMndo.js";import{_ as F,a as S}from"./pdfjs-dist-8WFUNQXM.js";function H(){const e=window.innerWidth<768,a=navigator.userAgent.toLowerCase(),t=["android","webos","iphone","ipad","ipod","blackberry","windows phone"].some((e=>a.includes(e))),l="ontouchstart"in window||navigator.maxTouchPoints>0,s=void 0!==window.screen.orientation;return e&&(t||l||s)}const G={key:0,class:"flex gap-2 flex-wrap"},E=["onClick"],I={class:"max-w-[160px] overflow-hidden text-ellipsis text-nowrap"},_={class:"flex gap-2"},K={class:"max-w-[120px] overflow-hidden text-ellipsis text-nowrap"},Q=["onClick"],J={class:"max-w-[160px] overflow-hidden text-ellipsis text-nowrap"},O={class:"flex gap-2"},Y={class:"max-w-[120px] overflow-hidden text-ellipsis text-nowrap"},Z={class:"whitespace-pre-wrap break-words"},q=e({__name:"FileList",props:{files:{type:Array},showCloseButton:{type:Boolean,default:!0}},setup(e){const g=e,w=a([]);t((()=>g.files.length),(()=>{w.length=g.files.length,w.fill(!1)}),{immediate:!0});const h=e=>{g.files.splice(e,1)},y=l(!1),x=l("");function k(e){if(0===e)return"0 B";const a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(2))+" "+["B","KB","MB","GB"][a]}return(a,t)=>{const l=P,g=z,A=M,b=V;return e.files.length>0?(o(),s("div",G,[(o(!0),s(i,null,u(e.files,((a,t)=>(o(),s(i,null,[a.type.startsWith("image")?(o(),c(A,{key:a.id,visible:w[t],images:[a.content||a.url],"close-on-overlay":"",onClose:e=>(e=>{w[e]=!1})(t)},{trigger:p((()=>[v("div",{class:"bg-color-page flex p-2 gap-2 rounded-lg cursor-pointer",onClick:e=>(e=>{w[e]=!0})(t)},[r(l,{src:a.content||a.url,style:{width:"40px",height:"40px"}},null,8,["src"]),v("div",null,[v("div",I,f(a.name),1),v("div",_,[v("span",K,f(a.type),1),v("span",null,f(k(a.size)),1)])]),e.showCloseButton?(o(),c(g,{key:0,theme:"primary",shape:"circle",onClick:d((e=>h(t)),["stop"]),size:"small",variant:"text"},{default:p((()=>[r(m(U),{slot:"icon"})])),_:2},1032,["onClick"])):n("",!0)],8,E)])),_:2},1032,["visible","images","onClose"])):(o(),s("div",{key:1,class:"bg-color-page flex p-2 gap-2 rounded-lg cursor-pointer",onClick:e=>(e=>{y.value=!0,x.value=e.content})(a)},[r(l,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAMAAAC4uKf/AAAA1VBMVEVHcEwgUP8kVP8lVf8oUP8IMKckVP8lU/8NL6kkVP8gUP8QMJ8NL6klVf8jU/8NL6oLMKokVP8OMKglUv8NMKkkVP8kU/8OLqskVP8OL6klU/8kVP8OLqkNL6oNMKkNL6olU/8NMKckVf8MMKckVP////8NL6nI1P8QNLR2lP8/af8yX/8xX/+6yf9Aaf/W3/9bf/+tv/+7yv+Env/x9f/k6v+ftP9oif8YQtQeS+lNdP9piv+En/8XQM/j6v8VPckhT/QSNrqgtP8eS+oTOL+Sqf+Rqf9kuMQUAAAAJHRSTlMAEHBgICDv39/PIBDv35C/ML9wYF9A0H+wz5+Pj59Q76Bgr0CdNRTaAAACCElEQVRo3u3a11ICQRAF0GVFFpAgIIggxt5ZcpJgzvr/n+STVZZMT+zZp7k/cGrSZavoIOClGHaiHKjnvHq5H5hlrwaaYYzlz0yoZgRggDF2pE1lugCGWOlQ08q2wBhjeb1zy0ZggbH8gc4eGlq/GKtqYF2wxNip+pUHa4zVVbGIAGPXrhf2FyupXckCCab2ALJAg7EThQcQUmGsJ8faZBg7dnlk/zF5J+cIMSbrZKDEZFeSFJN1Mi0m6WRiTNzJ1Jiwk8kxdpYmJuhkekzwABxgeCfbYH1M6znAXjAM62Qb7A7FkE4GJ/uIdDI4Whq3Ja0wuMW1Ojkm0Kr0GLxi51ZygAF8PH2+9TlxgmHxmMc8JsYGk2Q3AyfYaBZzs546wBYxkoQem8Zo5uTYA47dkGODNLFhmtsICWZNUrz6s6GbR73cfdPLx7HvRo95zGMe85glNvrmfTcimQyssPtVrJVkbPEpt441szHH3mPtjI2xRB/bGmNLfWxujH3pY0NjbLTStRY2V/85vasPMNyov+lksfXd6DGPecxjHiP+u1+YHOlQjSQFDnbhCmsTD58IExKP1QhT5P01WEvvyKxGoURpUA95CVLGxihTXFgQVOitCj5yWCDfxAz9MCVqFV2MbvLTKkqGNwnPrZKRTx4SLa7cVBt0JLgntYb61G14VTD+fctFnZB/WD8ijwbYDm7GXAAAAABJRU5ErkJggg==",style:{width:"40px",height:"40px"}}),v("div",null,[v("div",J,f(a.name),1),v("div",O,[v("span",Y,f(a.type),1),v("span",null,f(k(a.size)),1)])]),e.showCloseButton?(o(),c(g,{key:0,theme:"primary",shape:"circle",onClick:d((e=>h(t)),["stop"]),size:"small",variant:"text"},{default:p((()=>[r(m(U),{slot:"icon"})])),_:2},1032,["onClick"])):n("",!0)],8,Q))],64)))),256)),r(b,{visible:y.value,"onUpdate:visible":t[0]||(t[0]=e=>y.value=e),attach:"body","on-confirm":()=>y.value=!1},{body:p((()=>[v("div",Z,f(x.value),1)])),_:1},8,["visible","on-confirm"])])):n("",!0)}}}),W={class:"relative"},X=["onClick"],$={class:"flex align-middle justify-center items-center gap-2"},ee=e({__name:"ChatInput",props:{disabled:{type:Boolean,default:!1},minRows:{type:Number,default:2},maxRows:{type:Number,default:8},showUpload:{type:Boolean,default:!0},placeholder:{type:String,default:k("components.chatInput.placeholder")},autoCompleteEnabled:{type:Boolean,default:!1},tips:{type:String,default:""}},emits:["input"],setup(e,{emit:a}){F.workerSrc=new URL(""+new URL("pdf.worker.min-yatZIOMy.mjs",import.meta.url).href,import.meta.url).toString();const k=l(null),P=A();t((()=>P.isSidebarCompact),(e=>{e&&x((()=>{if(k.value){const e=k.value.$el.querySelector("textarea");e&&(e.focus(),e.blur())}}))}));const M=e,V=l(""),U=l([]),G=l(-1),E=l(""),I=a,_=()=>{const e=V.value.trim();e&&(U.value.push(e),U.value.length>50&&U.value.shift(),localStorage.setItem("chatHistory",JSON.stringify(U.value)),I("input",{content:e,files:K.value.map((e=>({content:e.content,url:e.url,id:e.raw.path,name:e.name,type:e.type,size:e.size})))}),V.value="",K.value=[],G.value=-1)},K=l([]),Q=async e=>{try{for(const a of e){const e=await O(a.raw);a.content=e,K.value.push(a)}return{status:"success",error:"",response:{url:" "}}}catch{return{status:"fail",error:"",response:{}}}};async function J(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=e=>a(e.target.result),l.onerror=e=>t(e),l.readAsArrayBuffer(e)}))}async function O(e){var a;switch(null==(a=e.name.split(".").pop())?void 0:a.toLowerCase()){case"docx":return await async function(e){const a=await J(e);return(await j.extractRawText({arrayBuffer:a})).value}(e);case"pdf":return await async function(e){const a=await J(e),t=await S(a).promise;let l="";for(let s=1;s<=t.numPages;s++){const e=await t.getPage(s);l+=(await e.getTextContent()).items.map((e=>e.str)).join(" ")+"\n"}return l}(e);case"xlsx":case"xls":return await async function(e){const a=await J(e),t=N(new Uint8Array(a),{type:"array"});let l="";return t.SheetNames.forEach((e=>{const a=t.Sheets[e],s=T.sheet_to_json(a,{header:1});l+=`Sheet: ${e}\n`,s.forEach((e=>{l+=e.join(", ")+"\n"})),l+="\n"})),l}(e);case"png":case"jpg":case"jpeg":case"gif":case"bmp":case"webp":return await async function(e){return new Promise(((a,t)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=()=>a(l.result),l.onerror=e=>t(e)}))}(e);default:return await async function(e){return new Promise(((a,t)=>{const l=new FileReader;l.onload=function(e){a(e.target.result)},l.onerror=function(e){t(e)},l.readAsText(e)}))}(e)}}const Y=b(),Z=l(!1),ee=l(0),ae=l(0),te=l(""),le=l(null),se=l(null),ne=l(null),oe=l("-150px"),re=g((()=>["@ai",...Y.enableModels.map((e=>`@${C.getModelItemTitle(e)}`))])),ie=l(!1),ue=(e,a)=>{const{e:t}=a;if(Z.value)switch(t.key){case"ArrowDown":t.preventDefault(),ee.value=(ee.value+1)%ce.value.length;break;case"ArrowUp":t.preventDefault(),ee.value=(ee.value-1+ce.value.length)%ce.value.length;break;case"Enter":t.preventDefault(),ce.value.length>0&&ve(ce.value[ee.value]);break;case"Escape":Z.value=!1}else if("Enter"===t.key){if(t.shiftKey||ie.value)return;const e=V.value.trim();if(M.autoCompleteEnabled&&e.startsWith("@")&&(re.value.includes(e)||"@"===e))return void t.preventDefault();t.preventDefault(),_()}else if("ArrowUp"===t.key||"ArrowDown"===t.key){if(t.preventDefault(),"ArrowUp"===t.key){if(0===U.value.length)return;G.value<U.value.length-1&&G.value++}else G.value>-1&&G.value--;-1===G.value?V.value=E.value:V.value=U.value[U.value.length-1-G.value]}},ce=g((()=>{if(!te.value)return re.value;const e=te.value.toLowerCase();return re.value.filter((a=>a.toLowerCase().includes(e)))}));t((()=>ce),(async()=>{if(Z.value&&se.value){await x();const e=le.value.offsetHeight;oe.value=`-${e}px`}}));const pe=(e,a)=>{const{e:t}=a,l=e;if(E.value=V.value,!M.autoCompleteEnabled)return;const s=t.target.selectionStart;if(ae.value=l.lastIndexOf("@",s-1),-1!==ae.value&&ae.value<s){const e=l.indexOf(" ",ae.value);ae.value===l.length-1||-1===e||e>=s?(te.value=l.slice(ae.value+1,s),Z.value=!0,ee.value=0):Z.value=!1}else Z.value=!1},ve=e=>{const a=V.value.slice(0,ae.value),t=V.value.slice(V.value.indexOf(" ",ae.value)+1||V.value.length);V.value=a+e+" "+t,Z.value=!1,te.value=""},fe=()=>{if(ne.value&&le.value){const e=le.value,a=ne.value,t=e.scrollTop,l=t+e.clientHeight,s=a.offsetTop,n=s+a.offsetHeight;s<t?e.scrollTop=s:n>l&&(e.scrollTop=n-e.clientHeight)}};t(ee,(()=>{x(fe)})),w((()=>{ie.value=H();const e=localStorage.getItem("chatHistory");e&&(U.value=JSON.parse(e))}));const de=async e=>{var a;const t=null==(a=e.clipboardData)?void 0:a.items;if(t)for(let l=0;l<t.length;l++){const a=t[l];if(a.type.startsWith("image/")){e.preventDefault();const t=a.getAsFile();if(t){const e={raw:t,name:`pasted_image_${Date.now()}.${t.type.split("/")[1]}`,type:t.type,size:t.size};await Q([e])}}else if("file"===a.kind){e.preventDefault();const t=a.getAsFile();if(t){const e={raw:t,name:t.name||`pasted_file_${Date.now()}`,type:t.type,size:t.size};await Q([e])}}}},me=async e=>{var a;const t=null==(a=e.dataTransfer)?void 0:a.files;if(t)for(let l=0;l<t.length;l++){const e=t[l];if(e){const a={raw:e,name:e.name,type:e.type,size:e.size};await Q([a])}}};return(a,t)=>{const l=z,g=L,w=R;return o(),s("div",W,[Z.value?(o(),s("div",{key:0,class:"autocomplete left-0 absolute z-50 w-full bg-color-container bordered p-2",ref_key:"autocompleteContainer",ref:le,style:h({top:oe.value})},[v("ul",{ref_key:"suggestionList",ref:se},[(o(!0),s(i,null,u(ce.value,((e,a)=>(o(),s("li",{key:e,onClick:a=>ve(e),class:y({selected:a===ee.value}),ref_for:!0,ref:e=>{a===ee.value&&(ne.value=e)}},f(e),11,X)))),128))],512)],4)):n("",!0),v("div",{class:"flex flex-col chat-input bg-color-container bordered rounded-lg px-1",onDragover:t[1]||(t[1]=d((()=>{}),["prevent"])),onDrop:d(me,["prevent"])},[r(q,{files:K.value,class:y(["py-2"])},null,8,["files"]),v("div",$,[e.showUpload?(o(),c(g,{key:0,theme:"custom","request-method":Q,multiple:!0,allowUploadDuplicateFile:!0},{default:p((()=>[r(l,{theme:"primary",shape:"circle",size:"large",variant:"base"},{default:p((()=>[r(m(B),{slot:"icon"})])),_:1})])),_:1})):n("",!0),r(w,{ref_key:"textareaRef",ref:k,class:"flex-1",onKeydown:ue,onChange:pe,onPaste:de,disabled:e.disabled,modelValue:V.value,"onUpdate:modelValue":t[0]||(t[0]=e=>V.value=e),placeholder:e.placeholder,name:"description",tips:e.tips,autosize:{minRows:e.minRows,maxRows:e.maxRows}},null,8,["disabled","modelValue","placeholder","tips","autosize"]),r(l,{theme:"primary",shape:"circle",onClick:_,size:"large",variant:"base"},{default:p((()=>[r(m(D),{slot:"icon"})])),_:1})])],32)])}}});export{ee as _,q as a,H as c};
.output/public/assets/CodeBlocks-MBU6g1QI.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .fav-radio .t-radio__input{margin-top:2.5px}.fav-radio .t-radio__label{overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap}.fav-radio-toolbar .t-radio__label{width:16rem}.tdesign-image-viewer-wrapper[data-v-e5aab120]{display:flex}.tdesign-image-viewer__ui-image[data-v-e5aab120]{width:100%;height:100%;display:inline-flex;position:relative;justify-content:center;align-items:center;border-radius:var(--td-radius-small);overflow:hidden}.tdesign-image-viewer__ui-image--hover[data-v-e5aab120]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:absolute;left:0;top:0;opacity:0;background-color:#0009;color:var(--td-text-color-anti);line-height:22px;transition:.2s}.tdesign-image-viewer__ui-image:hover .tdesign-image-viewer__ui-image--hover[data-v-e5aab120]{opacity:1;cursor:pointer}.tdesign-image-viewer__ui-image--img[data-v-e5aab120]{width:auto;height:auto;max-width:100%;max-height:100%;cursor:pointer;position:absolute}.tdesign-image-viewer__ui-image--footer[data-v-e5aab120]{padding:0 16px;height:56px;width:100%;line-height:56px;font-size:16px;position:absolute;bottom:0;color:var(--td-text-color-anti);background-image:linear-gradient(0deg,#0006,#0000);display:flex;box-sizing:border-box}.tdesign-image-viewer__ui-image--title[data-v-e5aab120]{flex:1}.tdesign-popup__reference[data-v-e5aab120]{margin-left:16px}.tdesign-image-viewer__ui-image--icons .tdesign-icon[data-v-e5aab120]{cursor:pointer}.tdesign-image-viewer__error[data-v-e5aab120]{background-color:var(--td-bg-color-component-disabled);border-radius:4px;color:var(--td-text-color-disabled);cursor:inherit}.tdesign-image-viewer__error--content[data-v-e5aab120]{position:absolute;height:100%;width:100%;display:flex;flex-wrap:wrap;flex-direction:column;justify-content:center;align-items:center;align-content:center;font-size:14px}.tdesign-image-viewer__base[data-v-e5aab120]{border:4px solid var(--td-bg-color-secondarycontainer);border-radius:var(--td-radius-medium)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.artifact .t-tabs__content{flex:1 1 0%}.artifact .t-tab-panel,.code-block .v-code-block--code{height:100%}.code-block pre.code-block{height:100%!important;overflow:auto}.code-block code::-webkit-scrollbar{display:none}
.output/public/assets/CodeBlocks.vue_vue_type_style_index_0_lang-CvrmorfG.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,a as t,f as a,a0 as l,a1 as n,v as s,y as o,ad as i,B as c,A as r,z as u,R as d,F as p,ab as m,aa as v,G as f,H as g,u as h,J as y,n as x,K as w,w as b,ah as _,o as k}from"./@vue-DsZlmJIP.js";import{b as C,t as j,_ as B}from"./global-8PgNYKI7.js";import{m as $}from"./markdown-CUqnJ2SQ.js";import{f as S,a as R}from"./fetch-md1mshcr.js";import{c as z,E,s as T,d as V,j as M,K as A,m as q,f as O,Y as D,Z as U,_ as L}from"./tdesign-vue-next-Dn8RgD8J.js";import{Z as P,a5 as H,c as I,ae as K,ac as Y,v as F,k as J}from"./tdesign-icons-vue-next-TRQ6L2cX.js";import{v as Z}from"./uuid-_R2nDvl_.js";import{a as G}from"./main-BD21VgCI.js";import{a as N}from"./ChatInput.vue_vue_type_style_index_0_lang-DUr-4UKr.js";import{U as W}from"./@wdns-Ct47UQBJ.js";const Q={class:"flex flex-row items-center p-2"},X={key:0,class:"flex flex-col gap-2 p-2"},ee={class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line no-scrollbar p-2"},te=["innerHTML"],ae={class:"flex flex-row justify-end gap-2"},le={key:1,class:"flex flex-col gap-2 p-2"},ne={key:0,class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line no-scrollbar p-2"},se={class:"flex flex-grow items-center gap-2 relative"},oe={key:2,class:"flex flex-col gap-2 p-2"},ie={key:0,class:"max-h-32 bg-color-page overflow-auto whitespace-pre-line no-scrollbar p-2"},ce={class:"max-h-72 no-scrollbar overflow-auto bordered p-2 shadow-sm"},re=e({__name:"ToolBar",props:{parent:Object},setup(e,{expose:w}){const b=C(),_=G(),k=e,B=t({top:"0px",left:"0px"}),D=t(!1),U=t(null),L=t(!1),Y=t(!1),F=t(""),J=t(""),N=()=>{D.value=!1,L.value=!1},W=()=>{const e=window.getSelection();navigator.clipboard.writeText(e.toString()),N(),O.success(j("components.toolBar.copySuccessMsg"))},re=()=>{navigator.clipboard.writeText(F.value),N(),O.success(j("components.toolBar.copySuccessMsg"))},ue=a((()=>b.toolBarButtons.filter((e=>e.name&&e.show)))),de=(e,t)=>{const{e:a}=t;if("Enter"===a.key){if(a.shiftKey)return;a.preventDefault(),ge()}};let pe="",me=null,ve="";const fe=()=>{je(),Y.value=!0,me=window.getSelection(),ve=me.toString()},ge=async()=>{const e=ve,t=J.value;pe=t.includes("{{text}}")?t.replace("{{text}}",e):e?e+"\r\n"+t:t,Y.value=!1,await he()};async function he(){const e=k.parent,t=U.value.getBoundingClientRect().left-e.getBoundingClientRect().left;je(),L.value=!0,x((()=>{const a=me.getRangeAt(0).getBoundingClientRect(),l=e.getBoundingClientRect(),n=U.value.getBoundingClientRect();let s=t;const o=l.width-n.width;s>o&&(s=o),s<0&&(s=0),B.value={top:a.top+e.scrollTop-l.top-52+"px",left:`${s}px`}})),await ye()}const ye=async()=>{b.assistModel?(F.value=j("components.toolBar.handing"),await S(pe,(e=>{F.value=e}))):O.error(j("components.toolBar.noAssistModel"))},xe=t(!1),we=async()=>{je(),xe.value=!0,ve=window.getSelection().toString()},be=t(""),_e=_.list,ke=async()=>{xe.value=!1;const e=ve,t={id:Z(),title:e,time:(new Date).getTime(),conversationId:"",conversationName:"",conversationAvatar:"",chats:[],notes:[ve]};if(_.add(t),O.success(j("pages.conversation.favorite_success")),b.assistModel){const a=j("pages.conversation.extract_core_conversation",{question:e,answer:""});await R(a,(e=>{t.title=e,t.title=t.title.replaceAll("###",""),t.title=t.title.trim(),_.update(t)}))}},Ce=async()=>{if(xe.value=!1,!be)return;const e=_e.find((e=>e.id==be.value));e.notes.push(ve),_.update(e),O.success(j("pages.conversation.favorite_success"))},je=()=>{L.value=!1,Y.value=!1,J.value="",xe.value=!1,be.value=""};return w({showToolbox:()=>{const e=window.getSelection();e.toString().trim()&&(D.value=!0,je(),x((()=>{const t=e.getRangeAt(0).getBoundingClientRect(),a=k.parent,l=a.getBoundingClientRect(),n=U.value.getBoundingClientRect();let s=t.left+t.width/2-n.width/2+a.scrollLeft-l.left;const o=l.width-n.width;s>o&&(s=o),s<0&&(s=0);let i=t.top+a.scrollTop-l.top-52;const c=a.scrollTop;i<c&&(i=c),B.value={top:`${i}px`,left:`${s}px`}})))},hideToolbox:N}),(e,t)=>{const a=z,x=E,w=T,b=A,_=q,k=M,C=V;return l((o(),s("div",{ref_key:"selectToolbox",ref:U,style:c(B.value),class:"z-50 absolute bg-color-container bordered rounded-xl shadow-md flex flex-col max-w-80",onMouseup:t[2]||(t[2]=i((()=>{}),["stop"])),onMousedown:t[3]||(t[3]=i((()=>{}),["stop"]))},[r("div",Q,[(o(!0),s(p,null,m(ue.value,(e=>(o(),s(p,null,[d(a,{onClick:t=>(async e=>{me=window.getSelection(),ve=me.toString(),pe=e.prompt.replace("{{text}}",ve),await he()})(e),size:"small",variant:"text"},{default:v((()=>[f(g(e.name),1)])),_:2},1032,["onClick"]),d(x,{layout:"vertical"})],64)))),256)),d(a,{size:"small",variant:"text",onClick:fe},{default:v((()=>[f(g(e.$t("components.toolBar.dialog")),1)])),_:1}),d(x,{layout:"vertical"}),d(a,{size:"small",variant:"text",onClick:we},{default:v((()=>[f(g(e.$t("components.toolBar.faviorite")),1)])),_:1}),d(x,{layout:"vertical"}),d(a,{size:"small",variant:"text",onClick:W},{default:v((()=>[f(g(e.$t("components.toolBar.copy")),1)])),_:1})]),L.value?(o(),s("div",X,[r("pre",ee," "+g(h(pe)),1),r("div",{class:"markdown-body",innerHTML:h($).render(F.value)},null,8,te),r("div",ae,[d(a,{size:"small",variant:"outline",onClick:ye},{default:v((()=>[d(h(P),{slot:"icon"})])),_:1}),d(a,{size:"small",variant:"outline",onClick:re},{default:v((()=>[d(h(H),{slot:"icon"})])),_:1}),d(a,{size:"small",variant:"outline",onClick:N},{default:v((()=>[d(h(I),{slot:"icon"})])),_:1})])])):u("",!0),Y.value?(o(),s("div",le,[h(ve).trim()?(o(),s("pre",ne," "+g(h(ve).trim()),1)):u("",!0),r("div",se,[d(w,{modelValue:J.value,"onUpdate:modelValue":t[0]||(t[0]=e=>J.value=e),onKeypress:de},null,8,["modelValue"]),d(a,{size:"small",shape:"circle",variant:"outline",onClick:ge,class:"absolute bottom-1 right-1"},{default:v((()=>[d(h(K),{slot:"icon"})])),_:1})])])):u("",!0),xe.value?(o(),s("div",oe,[h(ve).trim()?(o(),s("pre",ie," "+g(h(ve).trim()),1)):u("",!0),r("div",ce,[d(C,{modelValue:be.value,"onUpdate:modelValue":t[1]||(t[1]=e=>be.value=e)},{default:v((()=>[d(k,{gutter:[16,16]},{default:v((()=>[(o(!0),s(p,null,m(h(_e),(e=>(o(),y(_,{span:12},{default:v((()=>[d(b,{value:e.id,class:"grid grid-flow-col auto-cols-max align-middle fav-radio fav-radio-toolbar"},{default:v((()=>[f(g(e.title),1)])),_:2},1032,["value"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])]),d(a,{onClick:Ce,theme:"default",variant:"outline"},{default:v((()=>t[4]||(t[4]=[f("添加到笔记")]))),_:1}),d(a,{onClick:ke,theme:"default",variant:"outline"},{default:v((()=>t[5]||(t[5]=[f("创建新的笔记")]))),_:1})])):u("",!0)],36)),[[n,D.value]])}}}),ue={key:0,class:"markdown-body"},de={key:1},pe={class:"flex justify-end mt-2 gap-5"},me={key:2,class:"tdesign-image-viewer-wrapper flex-wrap gap-6"},ve={key:0,class:"tdesign-image-viewer__error tdesign-image-viewer__ui-image tdesign-image-viewer__base"},fe={class:"tdesign-image-viewer__error--content"},ge={class:"tdesign-image-viewer__ui-image tdesign-image-viewer__base"},he=["src","onError"],ye=["onClick"],xe={class:"absolute left-1 top-1 max-w-[75%]"},we=["title"],be=B(e({__name:"AssistantContent",props:{content:{type:Object},isEditing:{type:Boolean,default:!1}},emits:["save","cancel"],setup(e,{emit:l}){const n=w([!1,!1,!1,!1]),i=w([!1,!1,!1,!1]),c=e,k=a((()=>$.render(c.content.text))),C=a((()=>c.content.images.map((e=>e.content||e.url)))),j=l,B=t(c.content.text),S=()=>{j("save",B.value)},R=()=>{B.value=c.content.text,j("cancel")},E=(e,t)=>{},V=t(null);return b((()=>c.isEditing),(e=>{e&&(B.value=c.content.text,x((()=>{V.value.$el.querySelector("textarea").focus()})))})),(t,a)=>{const l=T,x=z,w=D;return o(),s(p,null,[e.content.text&&!e.isEditing?(o(),s("div",ue,[_([e.content.text],(()=>(o(),s("div",{innerHTML:k.value},null,8,["innerHTML"]))),a,0)])):u("",!0),e.content.text&&e.isEditing?(o(),s("div",de,[d(l,{ref_key:"textareaRef",ref:V,modelValue:B.value,"onUpdate:modelValue":a[1]||(a[1]=e=>B.value=e),autosize:{minRows:5,maxRows:20},onBlur:E},null,8,["modelValue"]),r("div",pe,[d(x,{size:"large",shape:"circle",variant:"text",onClick:R},{default:v((()=>[d(h(I),{slot:"icon"})])),_:1}),d(x,{size:"large",shape:"circle",variant:"text",onClick:S},{default:v((()=>[d(h(Y),{slot:"icon"})])),_:1})])])):u("",!0),C.value.length>0?(o(),s("div",me,[(o(!0),s(p,null,m(c.content.images,((e,t)=>(o(),s("div",{key:t,class:"min-w-44 min-h-44"},[i[t]?(o(),s("div",ve,[r("div",fe,[d(h(F),{name:"image-error",size:"2em"}),a[2]||(a[2]=r("div",null,"图片无法显示",-1))])])):(o(),y(w,{key:1,visible:n[t],images:C.value,"default-index":t,"close-on-overlay":"",onClose:e=>(e=>{n[e]=!1})(t)},{trigger:v((()=>[r("div",ge,[r("img",{alt:"test",src:e.content||e.url,class:"tdesign-image-viewer__ui-image--img",onError:e=>(e=>{i[e]=!0})(t)},null,40,he),r("div",{class:"tdesign-image-viewer__ui-image--hover",onClick:e=>(e=>{n[e]=!0})(t)},[r("span",null,[d(h(J),{size:"1.4em"}),a[3]||(a[3]=f(" 预览 "))])],8,ye),r("div",xe,[r("div",{class:"text-black bg-white bg-opacity-75 p-1 rounded-2xl text-xs truncate",title:e.model},g(e.model),9,we)])])])),_:2},1032,["visible","images","default-index","onClose"]))])))),128))])):u("",!0)],64)}}}),[["__scopeId","data-v-e5aab120"]]),_e={key:0,class:"whitespace-pre-wrap break-words"},ke={key:1},Ce={class:"flex justify-end mt-2 gap-5"},je=e({__name:"UserContent",props:{content:{type:Object},isEditing:{type:Boolean,default:!1}},emits:["save","cancel"],setup(e,{emit:l}){const n=e,i=a((()=>[...n.content.files,...n.content.images])),c=l,m=t(n.content.text),f=()=>{c("save",m.value)},y=()=>{m.value=n.content.text,c("cancel")},w=(e,t)=>{},_=t(null);return b((()=>n.isEditing),(e=>{e&&(m.value=n.content.text,x((()=>{_.value.$el.querySelector("textarea").focus()})))})),(t,a)=>{const l=T,n=z;return o(),s(p,null,[d(N,{files:i.value,showCloseButton:!1,class:"mb-2"},null,8,["files"]),e.isEditing?u("",!0):(o(),s("div",_e,g(e.content.text),1)),e.isEditing?(o(),s("div",ke,[d(l,{ref_key:"textareaRef",ref:_,modelValue:m.value,"onUpdate:modelValue":a[0]||(a[0]=e=>m.value=e),autosize:{minRows:2,maxRows:20},onBlur:w},null,8,["modelValue"]),r("div",Ce,[d(n,{size:"large",shape:"circle",variant:"text",onClick:y},{default:v((()=>[d(h(I),{slot:"icon"})])),_:1}),d(n,{size:"large",shape:"circle",variant:"text",onClick:f},{default:v((()=>[d(h(Y),{slot:"icon"})])),_:1})])])):u("",!0)],64)}}}),Be=e({__name:"CodeRenderer",props:{blocks:{type:Array,required:!0}},setup(e){const l=e,n=t(),i=a((()=>l.blocks.every((e=>e.complete))));const c=a((()=>{var e,t,a,n,s,o;if(!i.value)return"";const c=(null==(e=l.blocks.find((e=>"html"===e.language)))?void 0:e.code)||"",{head:r,body:u}=function(e){const t=e.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i),a=e.match(/<body\b[^>]*>([\s\S]*?)<\/body>/i);return{head:t?t[1].trim():"",body:a?a[1].trim():""}}(c),d=(null==(t=l.blocks.find((e=>"css"===e.language)))?void 0:t.code)||"",p=(null==(a=l.blocks.find((e=>"js"===e.language||"javascript"===e.language||"typescript"===e.language)))?void 0:a.code)||"";null==(n=l.blocks.find((e=>"typescript"===e.language)))||n.code;const m=(null==(s=l.blocks.find((e=>"jsx"===e.language)))?void 0:s.code)||"",v=(null==(o=l.blocks.find((e=>"vue"===e.language)))?void 0:o.code)||"";if(m){const e=m.match(/export default (\w+);/),t=e?e[1]:null;return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com; style-src 'unsafe-inline';">\n <style>${d}</style>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.24.6/babel.min.js"><\/script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.production.min.js"><\/script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.production.min.js"><\/script>\n ${r}\n </head>\n\n <body>\n <div id="app"></div>\n ${u}\n <script type="text/babel">\n ${function(e){const t=/import\s+(?:(\w+)\s*,?\s*)?(?:{([^}]+)})?\s+from\s+['"]react['"];?/g,a=/import\s+['"]([^'"]+\.css)['"];?/g,l=/import\s+\w+\s+from\s+['"]react-dom['"];?/g,n=/ReactDOM\.render\([^)]*\);?/g;let s,o=e,i="";const c=new Set;for(;null!==(s=t.exec(e));)s[1]&&(i=s[1].trim()),s[2]&&s[2].split(",").forEach((e=>c.add(e.trim())));o=o.replace(t,""),o=o.replace(a,""),o=o.replace(l,""),o=o.replace(n,"");let r="";r+=i?`const ${i} = window.React;\n`:"const React = window.React;\n";c.size>0&&(r+=`const { ${Array.from(c).join(", ")} } = React;\n`);return(r+o).replace(/export default \w+;\s*$/,"")}(m)}\n ReactDOM.render(<${t} />, document.getElementById('app'))\n <\/script>\n </body>\n </html>\n `}if(v){const e=v.match(/<template>([\s\S]*)<\/template>/),t=v.match(/<script\s*(setup)?[^>]*>([\s\S]*)<\/script>/),a=v.match(/<style[^>]*>([\s\S]*)<\/style>/),l=e?e[1].trim():"",n=t?t[2].trim():"",s=t&&"setup"===t[1],o=a?a[1].trim():"";let i=n;if(s)i=i.replace(/import\s+.*from\s+['"].*['"]/g,""),i=`return {\n ${i}\n }`;else{const e=i.match(/export\s+default\s*{([\s\S]*)}/);e&&(i=e[1].trim())}return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' https://unpkg.com; style-src 'unsafe-inline';">\n <script src="https://unpkg.com/vue@3/dist/vue.global.js"><\/script>\n <style>${o}</style>\n ${r}\n </head>\n <body>\n <div id="app">\n ${l}\n </div>\n ${u}\n <script>\n const { createApp, ref, reactive, computed, onMounted } = Vue;\n \n const app = createApp({\n ${s?"setup() {":""}\n ${i}\n ${s?"}":""}\n });\n \n app.mount('#app');\n <\/script>\n </body>\n </html>\n `}return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="utf-8" />\n <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'unsafe-inline'; style-src 'unsafe-inline';">\n <style>${d}</style>\n ${r}\n </head>\n <body>\n ${u}\n <script>\n ${p}\n <\/script>\n </body>\n </html>\n `}));return b(c,(e=>{n.value&&(n.value.srcdoc=e)})),k((()=>{n.value&&(n.value.srcdoc=c.value)})),(e,t)=>(o(),s("iframe",{ref_key:"iframeRef",ref:n,sandbox:"allow-scripts",style:{width:"100%",height:"100%",border:"none"}},null,512))}}),$e={class:"h-full w-full relative"},Se=e({__name:"CodeBlocks",props:{content:{type:String,required:!0},closeBtn:{type:[Function,null],default:null}},setup(e){const a=e,l=t(0),n=t([]);b((()=>a.content),(e=>{n.value=function(e){const t=/(?:^|\n)```(?:(html|css|js|javascript|typescript|jsx|vue)?\s*)\n([\s\S]*?)(?:```|$)/g;return[...e.matchAll(t)].map((e=>({language:e[1]||"javascript",code:e[2].trim(),complete:e[0].endsWith("```")})))}(a.content);var t=n.value.every((e=>e.complete));l.value=t?-1:0}),{immediate:!0});const i=()=>{a.closeBtn()};return(t,a)=>{const c=L,r=U,f=z;return o(),s("div",$e,[d(r,{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),class:"h-full overflow-auto flex flex-col artifact"},{default:v((()=>[d(c,{value:-1,label:"preview"},{default:v((()=>[d(Be,{blocks:n.value,class:"rounded-lg"},null,8,["blocks"])])),_:1}),(o(!0),s(p,null,m(n.value,((e,t)=>(o(),y(c,{value:t,label:e.language},{default:v((()=>[d(h(W),{highlightjs:"",code:e.code,lang:e.language,theme:!1,class:"code-block h-full"},null,8,["code","lang"])])),_:2},1032,["value","label"])))),256))])),_:1},8,["modelValue"]),e.closeBtn?(o(),y(f,{key:0,size:"small",variant:"outline",onClick:i,class:"absolute right-0 top-3 z-50"},{default:v((()=>[d(h(I),{slot:"icon"})])),_:1})):u("",!0)])}}});export{be as A,je as _,re as a,Se as b};
.output/public/assets/FrameContent-bNpFlz6q.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{c as e}from"./@vueuse-CdWUKi2M.js";import{d as t}from"./lodash-Cky9m9r7.js";import{p as a,u as o,_ as r}from"./global-8PgNYKI7.js";import{V as s}from"./tdesign-vue-next-Dn8RgD8J.js";import{l as n,a as l,f as u,w as i,v as m,y as d,R as p,aa as c,A as f,I as g,B as h,u as v}from"./@vue-DsZlmJIP.js";const y=["src"],w=r(n({__name:"FrameContent",props:{frameSrc:String,offset:{type:Number,default:0}},setup(r){const n=r,{width:w,height:x}=e(),_=l(!0),b=l(window.innerHeight),F=l(),I=u((()=>[`${a}-iframe-page`])),B=o(),S=u((()=>({height:`${b.value}px`}))),j=getComputedStyle(document.documentElement),H=j.getPropertyValue("--td-comp-size-xxxl"),V=j.getPropertyValue("--td-comp-size-xxl"),$=j.getPropertyValue("--td-comp-paddingTB-m");function z(){const e=v(F);if(!e)return;let t=0;const{showLayoutHeader:a,showFooter:o,showBreadcrumb:r}=B,s=a?parseFloat(H):0,l=document.querySelector(".t-breadcrumb"),u=s+(r?function(e){let t=e.clientHeight;const a=window.getComputedStyle(e);return t+=parseInt(a.marginTop,10),t+=parseInt(a.marginBottom,10),t+=parseInt(a.borderTopWidth,10),t+=parseInt(a.borderBottomWidth,10),t}(l):0)+2*parseFloat($)+(o?parseFloat(V):0)+2+n.offset;b.value=window.innerHeight-u,t=document.documentElement.clientHeight-u,e.style.height=`${t}px`}function C(){_.value=!1,z()}return i([w,x],t(z,250)),i([()=>B.showFooter,()=>B.showBreadcrumb],t(z,250)),(e,t)=>{const a=s;return d(),m("div",{class:g(I.value),style:h(S.value)},[p(a,{loading:_.value,size:"large",style:h(S.value)},{default:c((()=>[f("iframe",{ref_key:"frameRef",ref:F,src:r.frameSrc,class:g(`${I.value}__main`),onLoad:C},null,42,y)])),_:1},8,["loading","style"])],6)}}}),[["__scopeId","data-v-200260e8"]]);export{w as F};
.output/public/assets/about-CugW5a8w.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as s}from"./FrameContent-bNpFlz6q.js";import{l as t,J as o,y as i}from"./@vue-DsZlmJIP.js";import"./@vueuse-CdWUKi2M.js";import"./lodash-Cky9m9r7.js";import"./@babel-D5ZMb8W9.js";import"./core-js-pure-ZQ_YVJtv.js";import"./global-8PgNYKI7.js";import"./tdesign-vue-next-Dn8RgD8J.js";import"./tdesign-icons-vue-next-TRQ6L2cX.js";import"./lodash-es-CZ-i64-u.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vue-i18n-DniSGj9Z.js";import"./@intlify-CLGVtpI2.js";import"./pinia-jKJ-xldK.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./tvision-color-Dyv1XgcL.js";import"./chroma-js-C-7CTB41.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-7-TbLOHs.js";const r=t({__name:"about",setup:t=>(t,r)=>(i(),o(s,{frameSrc:"http://www.openseed.top/about"}))});export{r as default};
.output/public/assets/avatar.vue_vue_type_script_setup_true_lang-wHec3jdP.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{c as a,i as s,a as e,b as t,d as r,e as i,f as o,g as l,h as n,j as u,k as m,l as c}from"./@dicebear-JcnEMRoc.js";import{A as p,c as v}from"./tdesign-vue-next-Dn8RgD8J.js";import{Z as d}from"./tdesign-icons-vue-next-TRQ6L2cX.js";import{v as g}from"./uuid-_R2nDvl_.js";import{l as f,a as h,w as b,v as j,y as x,R as k,aa as _,u as w}from"./@vue-DsZlmJIP.js";const y={class:"h-[80px] w-[80px] relative"},z=f({__name:"avatar",props:{url:String},emits:["update"],setup(f,{emit:z}){const E={adventurer:c,avataaars:m,bigEars:u,bigSmile:n,bottts:l,funEmoji:o,icons:i,lorelei:r,micah:t,miniavs:e,personas:s},M=f,S=h(M.url),q=z,A=async()=>{const s=Object.keys(E),e=s[Math.floor(Math.random()*s.length)],t=a(E[e],{seed:g()});S.value=await t.toDataUri(),q("update",S.value)};return M.url||A(),b((()=>M.url),(a=>{M.url?S.value=a:A()})),(a,s)=>{const e=p,t=v;return x(),j("div",y,[k(e,{image:S.value,size:"80px"},null,8,["image"]),k(t,{shape:"circle",variant:"dashed",onClick:A,class:"absolute bottom-0 right-[-15px] z-50"},{default:_((()=>[k(w(d),{slot:"icon"})])),_:1})])}}});export{z as _};
.output/public/assets/bezier-easing-7-TbLOHs.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{g as r}from"./@babel-D5ZMb8W9.js";var n,t;const u=r(function(){if(t)return n;t=1;var r=.1,u="function"==typeof Float32Array;function e(r,n){return 1-3*n+3*r}function o(r,n){return 3*n-6*r}function f(r){return 3*r}function i(r,n,t){return((e(n,t)*r+o(n,t))*r+f(n))*r}function a(r,n,t){return 3*e(n,t)*r*r+2*o(n,t)*r+f(n)}function c(r){return r}return n=function(n,t,e,o){if(!(0<=n&&n<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");if(n===t&&e===o)return c;for(var f=u?new Float32Array(11):new Array(11),v=0;v<11;++v)f[v]=i(v*r,n,e);function b(t){for(var u=0,o=1;10!==o&&f[o]<=t;++o)u+=r;--o;var c=u+(t-f[o])/(f[o+1]-f[o])*r,v=a(c,n,e);return v>=.001?function(r,n,t,u){for(var e=0;e<4;++e){var o=a(n,t,u);if(0===o)return n;n-=(i(n,t,u)-r)/o}return n}(t,c,n,e):0===v?c:function(r,n,t,u,e){var o,f,a=0;do{(o=i(f=n+(t-n)/2,u,e)-r)>0?t=f:n=f}while(Math.abs(o)>1e-7&&++a<10);return f}(t,u,u+r,n,e)}return function(r){return 0===r?0:1===r?1:i(b(r),t,o)}}}());export{u as R};
.output/public/assets/changelog-C40lRUaA.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{F as s}from"./FrameContent-bNpFlz6q.js";import{l as t,J as o,y as i}from"./@vue-DsZlmJIP.js";import"./@vueuse-CdWUKi2M.js";import"./lodash-Cky9m9r7.js";import"./@babel-D5ZMb8W9.js";import"./core-js-pure-ZQ_YVJtv.js";import"./global-8PgNYKI7.js";import"./tdesign-vue-next-Dn8RgD8J.js";import"./tdesign-icons-vue-next-TRQ6L2cX.js";import"./lodash-es-CZ-i64-u.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./vue-i18n-DniSGj9Z.js";import"./@intlify-CLGVtpI2.js";import"./pinia-jKJ-xldK.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./tvision-color-Dyv1XgcL.js";import"./chroma-js-C-7CTB41.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-7-TbLOHs.js";const e=t({__name:"changelog",setup:t=>(t,e)=>(i(),o(s,{frameSrc:"http://www.openseed.top/changelog"}))});export{e as default};
.output/public/assets/chat-C2WiXM6d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as e,f as t,a,w as l,o,v as n,y as s,F as i,J as c,z as r,R as u,aa as d,A as v,H as p,u as m,ab as h,G as f,ac as g,ad as _,j as x,I as b,V as w,B as y,n as k}from"./@vue-DsZlmJIP.js";import{c as j,d as C,m as z,t as M,b as I,u as V,f as A,e as E}from"./global-8PgNYKI7.js";import{u as S,a as T}from"./vue-router-Be5-2oBH.js";import{c as R,_ as P}from"./ChatInput.vue_vue_type_style_index_0_lang-DUr-4UKr.js";import{_ as U}from"./avatar.vue_vue_type_script_setup_true_lang-wHec3jdP.js";import{u as O}from"./app-_ksMLlTy.js";import{p as N,q as B,r as W,T as q,c as D,s as $,t as H,u as K,O as L,A as J,v as F,w as G,n as X,D as Y,x as Z,f as Q,P as ee,l as te,y as ae,E as le,G as oe,m as ne,J as se,d as ie,j as ce,K as re}from"./tdesign-vue-next-Dn8RgD8J.js";import{V as ue,W as de,X as ve,Y as pe,Z as me,$ as he,a0 as fe,a1 as ge,a2 as _e,a3 as xe,_ as be,a4 as we,a5 as ye,a6 as ke,a7 as je,E as Ce,n as ze}from"./tdesign-icons-vue-next-TRQ6L2cX.js";import{v as Me}from"./uuid-_R2nDvl_.js";import{u as Ie,a as Ve}from"./main-BD21VgCI.js";import{g as Ae,s as Ee,c as Se,a as Te}from"./fetch-md1mshcr.js";import{_ as Re,A as Pe,a as Ue,b as Oe}from"./CodeBlocks.vue_vue_type_style_index_0_lang-CvrmorfG.js";import{d as Ne}from"./vuedraggable-K5Gqz8r2.js";import{g as Be}from"./lyihub-zLFv36Ly.js";import"./@babel-D5ZMb8W9.js";import"./core-js-pure-ZQ_YVJtv.js";import"./lodash-Cky9m9r7.js";import"./@vueuse-CdWUKi2M.js";import"./vue-i18n-DniSGj9Z.js";import"./@intlify-CLGVtpI2.js";import"./pinia-jKJ-xldK.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./tvision-color-Dyv1XgcL.js";import"./chroma-js-C-7CTB41.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-7-TbLOHs.js";import"./mammoth-5Ncu60I4.js";import"./elkjs-CmFeGg_o.js";import"./xlsx-DB6BMndo.js";import"./pdfjs-dist-8WFUNQXM.js";import"./@dicebear-JcnEMRoc.js";import"./lodash-es-CZ-i64-u.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./@wdns-Ct47UQBJ.js";import"./ua-parser-js-9pz7LJLQ.js";import"./vue-DVRmszIO.js";import"./eventsource-parser-BEY8Dpg-.js";import"./@mozilla-BD532_dh.js";import"./markdown-CUqnJ2SQ.js";import"./markdown-it-link-attributes-UnOqz_aA.js";import"./markdown-it-C8SkdHr7.js";import"./mdurl-CDXpswLz.js";import"./uc.micro-CLkLCS2f.js";import"./entities-D7HTx9ov.js";import"./linkify-it-LcVOBuC5.js";import"./punycode.js-Bmr3cAX8.js";import"./@traptitech-BPk2gen6.js";import"./katex-BY7yyeOs.js";import"./markdown-it-highlightjs-BO0M2Nwi.js";import"./highlight.js-DVyQ5Ner.js";import"./@agoose77-R9PiO-3G.js";import"./mermaid-DPhN_ogz.js";import"./dayjs-DOPU4UI6.js";import"./@braintree-DgpeZQRe.js";import"./d3-transition-swcnLnsT.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-G65jBFUY.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-D4Vc87xO.js";import"./dompurify-B5jhUdWW.js";import"./dagre-d3-es-CoKyXJoG.js";import"./d3-shape-C1TbtrGg.js";import"./d3-path-QSrLXsQ3.js";import"./d3-fetch-XwboCDHR.js";import"./khroma-Ca6ZlOUT.js";import"./ts-dedent-CttZBlkd.js";import"./stylis-Cl7w7uv3.js";import"./d3-scale-CjTvl_Qo.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-B0evfIyH.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-D74OpZq4.js";import"./d3-time-CebKitJR.js";import"./d3-axis-pCwzqJ1S.js";import"./cytoscape-D84qPEQv.js";import"./cytoscape-cose-bilkent-CoOmxuE9.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";const We={class:"flex flex-col items-center justify-center mb-[var(--td-comp-margin-xxl)] gap-3"},qe={class:"text-lg font-bold"},De={class:"flex"},$e={class:"flex flex-row justify-between gap-3 w-full"},He=e({__name:"ConversationDrawer",setup(e){const x=j(),b=t({get:()=>x.showEditorDrawer,set(e){x.showEditorDrawer=e}}),w=()=>{x.showEditorDrawer=!1},y=a(null),k=S(),I=()=>{const e=x.find(k.query.id);V.value=e.models.reduce(((e,t)=>(e[t.modelId]=t.showing,e)),{}),y.value={id:e.id,name:e.name,content:e.content,avatar:e.avatar,models:e.models.map((e=>e.modelId)),agentId:e.agentId,saveToAgent:!1,maxContextSize:e.maxContextSize,aspectRatio:e.aspectRatio}},V=a({});l((()=>{var e;return null==(e=y.value)?void 0:e.models}),(e=>{const t=Object.keys(V.value);t.forEach((t=>{e.includes(t)||delete V.value[t]})),e.forEach((e=>{t.includes(e)||(V.value[e]=!1)}))}));const A=t((()=>{if(!y.value)return!1;return Object.values(V.value).filter((e=>e)).length>=O}));l((()=>x.showEditorDrawer),(e=>{e&&I()})),C();const E=t((()=>z.availableModels.value.map((e=>({value:e.id,label:z.getModelItemTitle(e),...e}))))),T=Ie(),R=t((()=>{let e=T.find(y.value.agentId);return e=e||T.defaultAgent,e})),P=e=>{y.value.avatar=e},ee=()=>{const e=x.find(y.value.id);e.name=y.value.name,e.content=y.value.content,e.avatar=y.value.avatar,e.agentId=y.value.agentId,e.maxContextSize=y.value.maxContextSize,e.aspectRatio=y.value.aspectRatio;const t=[];e.models.forEach((e=>{y.value.models.includes(e.modelId)&&(e.showing=V.value[e.modelId],t.push(e))})),y.value.models.forEach((a=>{e.models.some((e=>e.modelId===a))||t.push({modelId:a,chats:[],startContext:0,apiAgentId:"",apiConversationId:"",apiNote:"",showing:V.value[a],status:{responseWating:!1,chating:!1,stop:!1}})})),e.models=t,y.value.saveToAgent&&(R.value.content=y.value.content),I(),Q.success(M("pages.conversation.save_conversation_success"))},te=a(!1),ae=a(""),le=()=>{if(""===ae.value.trim())return void Q.warning(M("pages.conversation.enter_agent_name"));const e=Me();T.add({id:e,name:ae.value,status:!0,content:y.value.content,avatar:y.value.avatar,onboarding:"",isDefault:!1});const t=x.find(y.value.id);y.value.agentId=e,t.agentId=e,te.value=!1,Q.success(M("pages.conversation.create_agent_success"))},oe=()=>{y.value.content=R.value.content},ne=()=>{y.value.saveToAgent=!y.value.saveToAgent};return o((()=>{x.showEditorDrawer=!1})),(e,t)=>{const a=W,l=B,o=D,x=q,k=$,j=H,C=L,I=K,S=G,T=F,O=J,Q=X,se=N,ie=Y,ce=Z;return s(),n(i,null,[y.value?(s(),c(ie,{key:0,visible:b.value,"onUpdate:visible":t[7]||(t[7]=e=>b.value=e),size:"408px",footer:!1,header:m(M)("pages.conversation.current_conversation"),"close-btn":!0,class:"",onCloseBtnClick:w},{default:d((()=>[u(se,{ref:"form",data:y.value,"label-width":100,"label-align":"top"},{default:d((()=>[v("div",We,[u(U,{ref:"avatarRef",url:y.value.avatar,onUpdate:P},null,8,["url"]),v("h1",qe,p(m(M)("pages.conversation.agent"))+": "+p(R.value.name),1)]),u(l,{label:m(M)("pages.conversation.conversation_name"),name:"name"},{default:d((()=>[u(a,{modelValue:y.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value.name=e)},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:m(M)("pages.conversation.conversation_description"),name:"content",class:"relative"},{default:d((()=>[u(x,{content:m(M)("pages.conversation.rollback_from_agent")},{default:d((()=>[u(o,{shape:"circle",variant:"text",class:"absolute z-50 right-0 top-[-32px]",onClick:oe},{default:d((()=>[u(m(ue),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(k,{modelValue:y.value.content,"onUpdate:modelValue":t[1]||(t[1]=e=>y.value.content=e),autosize:{minRows:5,maxRows:10},name:"content"},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:m(M)("pages.conversation.context_rounds"),name:"maxContextSize"},{default:d((()=>[u(j,{modelValue:y.value.maxContextSize,"onUpdate:modelValue":t[2]||(t[2]=e=>y.value.maxContextSize=e),inputNumberProps:"",showStep:"",min:0,max:30},null,8,["modelValue"])])),_:1},8,["label"]),u(l,{label:"图片宽高比",name:"aspectRatio"},{default:d((()=>[u(I,{modelValue:y.value.aspectRatio,"onUpdate:modelValue":t[3]||(t[3]=e=>y.value.aspectRatio=e)},{default:d((()=>[u(C,{value:"IMAGE_ASPECT_RATIO_SQUARE",label:"方形 (1:1)"}),u(C,{value:"IMAGE_ASPECT_RATIO_PORTRAIT",label:"竖屏 (9:16)"}),u(C,{value:"IMAGE_ASPECT_RATIO_LANDSCAPE",label:"横屏 (16:9)"}),u(C,{value:"IMAGE_ASPECT_RATIO_PORTRAIT_THREE_FOUR",label:"竖屏 (3:4)"}),u(C,{value:"IMAGE_ASPECT_RATIO_LANDSCAPE_FOUR_THREE",label:"横屏 (4:3)"})])),_:1},8,["modelValue"])])),_:1}),u(l,{label:m(M)("pages.conversation.model"),name:"models"},{default:d((()=>[u(I,{modelValue:y.value.models,"onUpdate:modelValue":t[5]||(t[5]=e=>y.value.models=e),multiple:""},{valueDisplay:d((({value:e,onClose:a})=>[(s(!0),n(i,null,h(e,((e,l)=>(s(),c(T,{key:l,closable:!0,"on-close":({e:e})=>{e.stopPropagation(),a(l)}},{default:d((()=>[u(S,{disabled:A.value&&!V.value[e.value],onClick:t[4]||(t[4]=_((()=>{}),["stop"])),class:"mr-1",size:"small",modelValue:V.value[e.value],"onUpdate:modelValue":t=>V.value[e.value]=t},null,8,["disabled","modelValue","onUpdate:modelValue"]),f(" "+p(e.label),1)])),_:2},1032,["on-close"])))),128))])),default:d((()=>[(s(!0),n(i,null,h(E.value,(e=>(s(),c(C,{key:e.value,value:e.value,label:e.label},{default:d((()=>[v("div",De,[u(O,{size:"20px",class:"mr-1"},{icon:d((()=>[(s(),c(g(m(z).icons[e.type])))])),_:2},1024),f(" "+p(e.label),1)])])),_:2},1032,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1},8,["label"]),u(l,null,{default:d((()=>[v("div",$e,[R.value.isDefault?r("",!0):(s(),c(Q,{key:0,onChange:ne},{default:d((()=>[f(p(m(M)("pages.conversation.save_to_agent")),1)])),_:1})),u(o,{theme:"primary",type:"submit",onClick:ee,class:"flex-1"},{default:d((()=>[f(p(m(M)("pages.conversation.save_conversation")),1)])),_:1})])])),_:1}),u(l,null,{default:d((()=>[u(o,{theme:"primary",type:"submit",onClick:t[6]||(t[6]=e=>te.value=!0),class:"w-full"},{default:d((()=>[f(p(m(M)("pages.conversation.save_as_new_agent")),1)])),_:1})])),_:1})])),_:1},8,["data"])])),_:1},8,["visible","header"])):r("",!0),u(ce,{visible:te.value,"onUpdate:visible":t[9]||(t[9]=e=>te.value=e),header:m(M)("pages.conversation.create_new_agent"),"on-confirm":le},{default:d((()=>[u(se,{ref:"form","label-width":100},{default:d((()=>[u(l,{label:m(M)("pages.conversation.agent_name"),name:"name"},{default:d((()=>[u(a,{modelValue:ae.value,"onUpdate:modelValue":t[8]||(t[8]=e=>ae.value=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1},512)])),_:1},8,["visible","header"])],64)}}}),Ke={class:"h-full flex flex-col chat-model-container relative"},Le={class:"cursor-pointer handle p-2 bg-color-container rounded-t-lg shadow-2xl chat-model-header z-50"},Je={class:"flex flex-wrap justify-between w-full overflow-x-hidden"},Fe={class:"flex gap-1"},Ge={class:"max-w-[120px]"},Xe={class:"model-info flex flex-col gap-2"},Ye={class:"max-h-44 overflow-auto no-scrollbar"},Ze={class:"flex gap-1 flex-wrap"},Qe={class:"flex flex-1 overflow-hidden bg-color-container rounded-b-lg shadow-md w-full"},et={class:"flex-1 relative h-full overflow-hidden"},tt={key:0,class:"flex w-full justify-end items-start flex-row-reverse gap-2 chat-item"},at=["data-index"],lt={class:"flex justify-between overflow-hidden h-[24px]"},ot={class:"flex chat-item-tools gap-2"},nt={class:"user-chat-content p-2 rounded-lg"},st={class:"w-[24px] h-[24px]"},it={key:1,class:"flex w-full flex-col gap-2 chat-item"},ct={class:"flex justify-start align-middle items-center gap-2 h-[24px]"},rt={class:"flex flex-row justify-between gap-5"},ut={class:"flex flex-col w-full"},dt=["data-index"],vt={key:0,class:"loader"},pt={key:2,class:"flex gap-5 overflow-x-auto scrollbar p-1"},mt=["onClick"],ht={class:"flex flex-row w-full"},ft={class:"w-12 h-2"},gt=["src"],_t={class:"w-44"},xt={class:"w-full text-ellipsis overflow-hidden text-nowrap"},bt={class:"text-ellipsis overflow-hidden whitespace-nowrap"},wt={class:"max-h-10 overflow-hidden mt-2"},yt={class:"h-[24px] mt-1 chat-item-tools"},kt={class:"flex justify-end gap-2"},jt={key:3,class:"flex justify-center w-full"},Ct=e({__name:"ChatColumn",props:{chatModel:{type:Object},conversation:{type:Object},fullScreenModelId:{type:String,default:""}},emits:["stop-chat","extend-model-visible","re-chat","change-size","api-setting-visible","fav-note-visible","clear-chat-context","clear-chat-history"],setup(e,{emit:l}){const o=I();S();const w=e,y=a(null),k=a(null);Ve(),C();const j=t((()=>w.chatModel.chat.chats));const V=l,A=e=>{V("re-chat",e.model.id)},E=a(-1),T=e=>{E.value=e},R=e=>{j.value[E.value].content.text=e,E.value=-1},P=()=>{E.value=-1},U=t((()=>z.getModelItemTitle(w.chatModel.model))),O=e=>{navigator.clipboard.writeText(e.content.text),Q.success(M("pages.note.noteCopySuccess"))},N=t((()=>{let e="",t="";if(w.chatModel.model.apiBase.startsWith("http"))e=w.chatModel.model.apiBase,t=w.chatModel.model.apiKey;else{let l=Ae(w.chatModel.model.apiBase||z.dict[w.chatModel.model.type].apiBase);l=l.replace("/app/","/api/"),l.includes("?")?l+="&":l+="?",l+=`model=${w.chatModel.model.id}`,l+="&",l+=`conversation=${w.conversation.id}`;const o=l.indexOf("?");e=l.substring(0,o)+"/v1/chat/completions",t="oa_"+(a=l.substring(o+1),btoa(a).split("").map((e=>{const t=e.charCodeAt(0);return String.fromCharCode(t+1)})).join(""))}var a;return{apiBase:e,apiKey:t}})),W=t((()=>w.chatModel.model.apiBase.startsWith("http")?"ApiBase":"LocalApi")),$=t((()=>w.chatModel.model.apiBase.startsWith("http")?"ApiKey":"LocalKey")),K=a(!1),L=a("");x((()=>{if(!j.value||0===j.value.length)return;const e=j.value[j.value.length-1];"assistant"===e.role&&(L.value=e.content.text)}));const G=()=>{K.value=!1};async function X(){await window.ipcRenderer.invoke("refresh-vercel-view")?Q.success("Refresh succeed"):Q.error("Refresh failed")}async function Y(){await window.ipcRenderer.invoke("refresh-coze-com-view")?Q.success("Refresh succeed"):Q.error("Refresh failed")}async function Z(){await window.ipcRenderer.invoke("refresh-coze-cn-view")?Q.success("Refresh succeed"):Q.error("Refresh failed")}async function ne(){const e=z.dict["chatgpt.com"],t=await window.ipcRenderer.invoke("login-get-token",{url:e.tokenUrl,userAgent:"",script:"",show:!1,autoClose:!0});e.playground.apiKey=t.token,Q.success("Refresh succeed")}async function se(){const e=z.dict.magai,t=await window.ipcRenderer.invoke("login-get-token",{url:e.tokenUrl,userAgent:"",script:"",show:!1,autoClose:!0});e.playground.apiKey=t.token,Q.success("Refresh succeed")}return(t,a)=>{var l,x;const w=J,C=H,I=B,S=D,Q=te,ie=ee,ce=q,re=F,ue=le,je=oe,Ce=ae;return s(),n("div",Ke,[v("div",Le,[v("div",Je,[v("div",Fe,[u(w,{size:"20px"},{icon:d((()=>[(s(),c(g(m(z).icons[e.chatModel.model.type])))])),_:1}),v("div",Ge,[u(ie,{placement:"bottom","cancel-btn":null,"confirm-btn":null},{content:d((()=>[v("div",Xe,[a[19]||(a[19]=v("p",null,"Model Info",-1)),v("p",null,[v("span",null,p(t.$t("pages.setting.model.model_name")),1),f(p(e.chatModel.model.name),1)]),v("p",null,[v("span",null,p(t.$t("pages.setting.model.model_interface")),1),f(p(e.chatModel.model.type),1)]),v("p",null,[v("span",null,p(t.$t("pages.setting.model.model_address")),1),f(p(e.chatModel.model.apiBase),1)]),u(I,{label:m(M)("pages.conversation.temperature"),name:"temperature",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(C,{modelValue:e.chatModel.model.temperature,"onUpdate:modelValue":a[0]||(a[0]=t=>e.chatModel.model.temperature=t),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),u(I,{label:m(M)("pages.conversation.maxTokens"),name:"maxTokens",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(C,{modelValue:e.chatModel.model.maxTokens,"onUpdate:modelValue":a[1]||(a[1]=t=>e.chatModel.model.maxTokens=t),inputNumberProps:"",showStep:"",min:1024,max:8192,step:128},null,8,["modelValue"])])),_:1},8,["label"]),u(I,{label:m(M)("pages.conversation.topP"),name:"topP",labelAlign:"left",labelWidth:"64px"},{default:d((()=>[u(C,{modelValue:e.chatModel.model.topP,"onUpdate:modelValue":a[2]||(a[2]=t=>e.chatModel.model.topP=t),inputNumberProps:"",showStep:"",min:0,max:1,step:.1},null,8,["modelValue"])])),_:1},8,["label"]),v("p",null,[v("span",null,p(W.value),1),f(p(N.value.apiBase),1)]),v("p",Ye,[v("span",null,p($.value),1),f(p(N.value.apiKey),1)]),v("p",null,[a[13]||(a[13]=v("span",null,"Model ",-1)),f(p(e.chatModel.model.apiModel),1)]),"vercel"===e.chatModel.model.type?(s(),c(S,{key:0,theme:"primary",onClick:X},{default:d((()=>a[14]||(a[14]=[f("refresh vercel.ai ")]))),_:1})):r("",!0),"coze.com"===e.chatModel.model.type?(s(),c(S,{key:1,theme:"primary",onClick:Y},{default:d((()=>a[15]||(a[15]=[f("refresh coze.com ")]))),_:1})):r("",!0),"coze.cn"===e.chatModel.model.type?(s(),c(S,{key:2,theme:"primary",onClick:Z},{default:d((()=>a[16]||(a[16]=[f("refresh coze.cn ")]))),_:1})):r("",!0),"chatgpt.com"===e.chatModel.model.type?(s(),c(S,{key:3,theme:"primary",onClick:ne},{default:d((()=>a[17]||(a[17]=[f("refresh chatgpt.com ")]))),_:1})):r("",!0),"magai"===e.chatModel.model.type?(s(),c(S,{key:4,theme:"primary",onClick:se},{default:d((()=>a[18]||(a[18]=[f("refresh magai.co ")]))),_:1})):r("",!0)])])),default:d((()=>[u(Q,{theme:"primary",title:U.value,class:"block w-full whitespace-nowrap text-ellipsis overflow-hidden"},{default:d((()=>[f(p(U.value),1)])),_:1},8,["title"])])),_:1})])]),v("div",Ze,[u(ce,{content:m(M)("pages.conversation.maximize_minimize")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[3]||(a[3]=_((t=>{return a=e.chatModel,void V("change-size",a.model.id);var a}),["stop"]))},{default:d((()=>[e.chatModel.chat.modelId==e.fullScreenModelId?(s(),c(m(de),{key:0,slot:"icon"})):(s(),c(m(ve),{key:1,slot:"icon"}))])),_:1})])),_:1},8,["content"]),u(ce,{content:m(M)("pages.conversation.stop_answering")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[4]||(a[4]=_((t=>{return a=e.chatModel,void V("stop-chat",a.model.id);var a}),["stop"]))},{default:d((()=>[u(m(pe),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(ce,{content:m(M)("pages.conversation.regenerate_last_conversation")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[5]||(a[5]=_((t=>A(e.chatModel)),["stop"]))},{default:d((()=>[u(m(me),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(ie,{theme:"danger",content:m(M)("pages.conversation.confirm_delete_chat_history"),placement:"top",onConfirm:a[6]||(a[6]=t=>{return a=e.chatModel,void V("clear-chat-history",a.model.id);var a})},{default:d((()=>[u(ce,{content:m(M)("pages.conversation.delete_chat_history")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(m(he),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(ie,{theme:"warning",content:m(M)("pages.conversation.confirm_clear_context"),placement:"top",onConfirm:a[7]||(a[7]=t=>{return a=e.chatModel,void V("clear-chat-context",a.model.id);var a})},{default:d((()=>[u(ce,{content:m(M)("pages.conversation.clear_context")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(m(fe),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(ce,{content:m(M)("pages.conversation.inherit_other_model_conversation")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[8]||(a[8]=_((t=>{return a=e.chatModel,void V("extend-model-visible",a.model.id);var a}),["stop"]))},{default:d((()=>[u(m(ge),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(ce,{content:m(M)("pages.conversation.api_conversation_settings")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[9]||(a[9]=_((t=>{return a=e.chatModel,void V("api-setting-visible",a.model.id);var a}),["stop"]))},{default:d((()=>[u(m(_e),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(ce,{content:m(M)("pages.conversation.toggle_artifacts")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[10]||(a[10]=_((e=>{K.value=!K.value}),["stop"]))},{default:d((()=>[u(m(xe),{slot:"icon"})])),_:1})])),_:1},8,["content"])])])]),v("div",Qe,[v("div",et,[u(Ce,{ref_key:"scrollable_chat",ref:y,"data-chat-id":e.chatModel.model.id,class:b(["flex flex-col h-full overflow-y-auto chat-container-content scrollable-chat relative",{chating:e.chatModel.chat.status.chating}]),scroll:{type:"virtual"},onMouseupPassive:null==(l=k.value)?void 0:l.showToolbox,onMousedownPassive:null==(x=k.value)?void 0:x.hideToolbox},{default:d((()=>{var t;return[(s(!0),n(i,null,h(j.value,((t,l)=>(s(),c(je,{key:l,class:"w-full"},{default:d((()=>["user"===t.role?(s(),n("div",tt,[v("div",{class:"flex flex-col gap-2 w-[calc(100%-24px-1rem)]","data-index":`${l}`},[v("div",lt,[f(p(m(o).name)+" ",1),v("div",ot,[u(ie,{theme:"danger",content:m(M)("pages.conversation.dialog_confirm_delete_record"),placement:"bottom",onConfirm:e=>(e=>{const t=j.value.findIndex((t=>t===e));-1!==t&&(j.value.splice(t,1),t<j.value.length&&"assistant"===j.value[t].role&&j.value.splice(t,1))})(t)},{default:d((()=>[u(ce,{content:m(M)("pages.conversation.button_tooltip_delete"),placement:"bottom"},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline"},{default:d((()=>[u(m(be),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),u(ce,{content:m(M)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:e=>T(l)},{default:d((()=>[u(m(we),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(ce,{content:m(M)("pages.conversation.button_tooltip_copy")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:e=>O(t)},{default:d((()=>[u(m(ye),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(ce,{content:m(M)("pages.conversation.button_tooltip_favourite"),placement:"bottom"},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a=>{return l=e.chatModel,void V("fav-note-visible",l,t);var l}},{default:d((()=>[u(m(ke),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),l===e.chatModel.chat.chats.length-2?(s(),c(ce,{key:0,content:m(M)("pages.conversation.button_tooltip_refresh")},{default:d((()=>[u(S,{size:"small",shape:"circle",variant:"outline",onClick:a[11]||(a[11]=t=>A(e.chatModel))},{default:d((()=>[u(m(me),{slot:"icon"})])),_:1})])),_:1},8,["content"])):r("",!0)])]),v("div",nt,[u(Re,{content:t.content,isEditing:E.value===l,onSave:R,onCancel:P},null,8,["content","isEditing"])])],8,at),v("div",st,[u(w,{size:"24px",image:m(o).avatar},null,8,["image"])])])):"assistant"===t.role?(s(),n("div",it,[v("div",ct,[u(w,{size:"24px",image:e.conversation.avatar},null,8,["image"]),v("div",rt,p(e.conversation.name),1)]),v("div",ut,[v("div",{"data-index":`${l}`},[e.chatModel.chat.status.responseWating&&l===e.chatModel.chat.chats.length-1?(s(),n("span",vt)):(s(),c(Pe,{key:1,content:t.content,isEditing:E.value===l,onSave:R,onCancel:P},null,8,["content","isEditing"])),t.content.webs&&t.content.webs.length>0?(s(),n("div",pt,[(s(!0),n(i,null,h(t.content.webs,(e=>(s(),n("div",{class:"bg-color-page p-2 w-60 cursor-pointer",onClick:t=>{return a=e.url,void(window.ipcRenderer?window.ipcRenderer.send("open-url",a):window.open(a));var a}},[v("div",ht,[v("div",ft,[v("img",{src:e.icon,alt:""},null,8,gt)]),v("div",_t,[v("div",xt,p(e.title),1),v("div",bt,p(e.url),1)])]),v("div",wt,p(e.excerpt),1)],8,mt)))),256))])):r("",!0)],8,dt),v("div",yt,[v("div",kt,[t.model?(s(),c(re,{key:0,class:"max-w-60 model-tag"},{default:d((()=>[f(p(t.model),1)])),_:2},1024)):r("",!0),u(ce,{content:m(M)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:d((()=>[u(S,{size:"small",variant:"outline",onClick:e=>T(l)},{default:d((()=>[u(m(we),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(ce,{content:m(M)("pages.conversation.button_tooltip_copy")},{default:d((()=>[u(S,{size:"small",variant:"outline",onClick:e=>O(t)},{default:d((()=>[u(m(ye),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),u(ce,{content:m(M)("pages.conversation.toggle_artifacts")},{default:d((()=>[u(S,{size:"small",variant:"outline",onClick:e=>{var a;"assistant"===(a=t).role&&(L.value=a.content.text,K.value=!0)}},{default:d((()=>[u(m(xe),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),l===e.chatModel.chat.chats.length-1?(s(),c(ce,{key:1,content:m(M)("pages.conversation.button_tooltip_refresh")},{default:d((()=>[u(S,{size:"small",variant:"outline",onClick:a[12]||(a[12]=t=>A(e.chatModel))},{default:d((()=>[u(m(me),{slot:"icon"})])),_:1})])),_:1},8,["content"])):r("",!0)])])])])):"verbose"===t.role?(s(),c(ue,{key:2},{default:d((()=>[f(p(t.content.text),1)])),_:2},1024)):(s(),n("div",jt,p(t.role)+" - "+p(t.content.text),1))])),_:2},1024)))),128)),u(Ue,{ref_key:"toolbar",ref:k,parent:null==(t=y.value)?void 0:t.listRef},null,8,["parent"])]})),_:1},8,["data-chat-id","class","onMouseupPassive","onMousedownPassive"]),a[20]||(a[20]=v("div",{class:"absolute z-50 bottom-0 w-full h-20 rounded-b-lg chat-model-footer pointer-events-none"},null,-1))]),K.value?(s(),n("div",{key:0,class:b([e.chatModel.chat.modelId===e.fullScreenModelId?"w-1/2":"w-full","pr-4"])},[u(Oe,{content:L.value,closeBtn:G},null,8,["content"])],2)):r("",!0)])])}}}),zt={key:0,class:"flex flex-col items-center h-full relative"},Mt={class:"w-full flex gap-2 absolute bottom-0 z-50"},It={class:"rounded-lg px-1 bg-color-container bordered flex items-center align-middle"},Vt={class:"flex flex-col justify-center items-center w-full"},At={class:"flex flex-col gap-5 w-full overflow-hidden"},Et={class:"max-h-96 no-scrollbar overflow-auto bordered p-2 shadow-sm"},St=e({name:"ListConversation",setup(e){const o=I(),U=V(),O=Ve(),$=j(),H=S();T();const K=a(null),L=a(null);let F=!1;const G=a([]),X=C(),Y=R(),te=a(!1),ae=async e=>{if(e.content)try{G.value.forEach((t=>{if(""!==Je.value&&Je.value!==t.model.id)return;const a={text:e.content,files:[],images:[],webs:[]};e.files.forEach((e=>{e.type.startsWith("image")?a.images.push({...e,model:""}):a.files.push(e)})),t.chat.chats.push({role:"user",content:a,id:"",liked:!1,model:""}),t.chat.chats.push({role:"assistant",content:{text:"",files:[],images:[],webs:[]},id:"",liked:!1,model:""})})),A.setPause(!0);const t=G.value.map(((e,t)=>{if((""===Je.value||Je.value===e.model.id)&&!0!==e.chat.status.chating)return e.chat.status.chating=!0,e.chat.status.stop=!1,e.chat.status.responseWating=!0,e})).filter((e=>e));if(0===t.length)return;await ut(0),rt();let a="";if(L.value.internet){const l=await Ee(e.content);t.map((e=>{e.chat.chats[e.chat.chats.length-1].content.webs=l.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url})))})),l.length>0&&(a=JSON.stringify(l.map((e=>({content:e.content,url:e.url})))))}const l=t.map(((e,t)=>new Promise(((l,o)=>{setTimeout((()=>{const t=Se(L.value,e,a);l(t)}),100*t)}))));await Promise.all(l)}finally{F=!1,A.setPause(!1),$.$persist()}else Q.error(M("pages.conversation.question_cannot_be_empty"))},le=async()=>{try{if(""!==Je.value)return void oe(Je.value);A.setPause(!0);const e=G.value.map(((e,t)=>{if(0===e.chat.chats.length)return;if(!0===e.chat.status.chating)return;const a=e.chat.chats[e.chat.chats.length-1];if("assistant"==a.role)return a.content.text="",a.content.files=[],a.content.images=[],a.content.webs=[],a.model="",e.chat.status.chating=!0,e.chat.status.stop=!1,e.chat.status.responseWating=!0,e;Q.error(M("pages.conversation.please_start_question_again"))})).filter((e=>e));if(0===e.length)return;await ut(0),rt();let t="";if(L.value.internet){const a=e.find((e=>e.chat.chats.length>0));if(a){const l=a.chat.chats,o=l[l.length-2];if(o){const a=await Ee(o.content.text);e.map((e=>{e.chat.chats[e.chat.chats.length-1].content.webs=a.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url})))})),a.length>0&&(t=JSON.stringify(a.map((e=>({content:e.content,url:e.url})))))}}}const a=e.map(((e,a)=>new Promise(((l,o)=>{setTimeout((()=>{const a=Se(L.value,e,t);l(a)}),100*a)}))));await Promise.all(a)}finally{F=!1,A.setPause(!1),$.$persist()}},oe=async e=>{try{const t=G.value.find((t=>t.model.id===e));if(0===t.chat.chats.length)return;A.setPause(!0);const a=t.chat.chats[t.chat.chats.length-1];if("assistant"!=a.role)return void Q.error(M("pages.conversation.please_start_question_again"));if(!0===t.chat.status.chating)return;a.content.text="",a.content.files=[],a.content.images=[],a.content.webs=[],a.model="",t.chat.status.chating=!0,t.chat.status.stop=!1,t.chat.status.responseWating=!0;let l="";if(rt(),L.value.internet){const e=await Ee(t.chat.chats[t.chat.chats.length-2].content.text);a.content.webs=e.map((e=>({title:e.title,icon:e.icon,excerpt:e.excerpt,url:e.url}))),e.length>0&&(l=JSON.stringify(e.map((e=>({content:e.content,url:e.url})))))}await Se(L.value,t,l)}finally{F=!1,A.setPause(!1),$.$persist()}},ue=async()=>{""===Je.value?(G.value.forEach((e=>{e.chat.chats.push({role:"verbose",content:{text:M("pages.conversation.context_cleared"),files:[],images:[],webs:[]},id:"",liked:!1,model:""}),e.chat.startContext=e.chat.chats.length})),Q.success(M("pages.conversation.context_cleared_success")),await ut(0)):we(Je.value)},de=()=>{$.showEditorDrawer=!0},ve=e=>{const t=G.value.find((t=>t.chat.modelId===e));t.chat.status.stop=!0,t.chat.status.responseWating=!1,t.chat.status.chating=!1},_e=()=>{""===Je.value?G.value.forEach((e=>{e.chat.status.stop=!0,e.chat.status.responseWating=!1,e.chat.status.chating=!1})):ve(Je.value)},xe=()=>{L.value.internet=!L.value.internet},be=()=>{""===Je.value?G.value.forEach((e=>{e.chat.chats=[],e.chat.startContext=0})):ye(Je.value)},we=e=>{const t=G.value.find((t=>t.chat.modelId===e)).chat;t.chats.push({role:"verbose",content:{text:M("pages.conversation.context_cleared"),files:[],images:[],webs:[]},id:"",liked:!1,model:""}),t.startContext=t.chats.length,Q.success(M("pages.conversation.context_cleared_success")),k((()=>{const t=document.querySelector(`[data-chat-id="${e}"]`);t&&t.scrollTo({top:t.scrollHeight,behavior:"smooth"})}))},ye=e=>{const t=G.value.find((t=>t.chat.modelId===e)).chat;t.chats=[],t.startContext=0},ke=a(!1),Ie=a(""),Ae=a(""),Re=e=>{ke.value=!0,Ae.value="",Ie.value=e},Pe=async()=>{if(!Ae.value)return void(ke.value=!1);const e=L.value.models.find((e=>e.modelId===Ae.value));if(Ie.value){const t=L.value.models.find((e=>e.modelId===Ie.value));t.chats=JSON.parse(JSON.stringify(e.chats)),t.startContext=0}else L.value.models.forEach((t=>{t.modelId!=Ae.value&&(t.chats=JSON.parse(JSON.stringify(e.chats)),t.startContext=0)}));ke.value=!1,await ut(0)},Ue=a(!1),Oe=a(""),We=a(""),qe=a("");let De="";const $e=e=>{Ue.value=!0,De=e;const t=L.value.models.find((e=>e.modelId===De));We.value=t.apiConversationId,Oe.value=t.apiAgentId,qe.value=t.apiNote},Ke=()=>{var e,t,a;const l=L.value.models.find((e=>e.modelId===De));l.apiConversationId=null==(e=We.value)?void 0:e.trim(),l.apiAgentId=null==(t=Oe.value)?void 0:t.trim(),l.apiNote=null==(a=qe.value)?void 0:a.trim(),Ue.value=!1};async function Le(){const e=G.value.find((e=>e.chat.modelId===De));if("lyihub"===e.model.type){const t=await Be(e.model.apiKey);We.value=t.id}else We.value=Me()}const Je=a(""),Fe=e=>{1!==G.value.length&&(""===Je.value?Je.value=e:Je.value="")},Ge=a(!1),Xe=a(""),Ye=O.list;let Ze=null,Qe=null;const et=async(e,t)=>{Ge.value=!0,Xe.value="",Ze=e,Qe=t},tt=async()=>{var e=Ze.chat.chats;const t=e.findIndex((e=>e===Qe)),a=e[t].content.text;let l="";const n=t+1;n<e.length&&"assistant"===e[n].role&&(l=e[n].content.text);const s={id:Me(),title:a,time:(new Date).getTime(),conversationId:L.value.id,conversationName:L.value.name,conversationAvatar:L.value.avatar,chats:[{...e[t],content:{...e[t].content}},{...e[n],content:{...e[n].content}}],notes:[]};if(O.add(s),Q.success(M("pages.conversation.favorite_success")),o.assistModel){const e=M("pages.conversation.extract_core_conversation",{question:a,answer:l});await Te(e,(e=>{s.title=e,s.title=s.title.replaceAll("###",""),s.title=s.title.trim(),O.update(s)}))}Ge.value=!1},at=async()=>{if(!Xe)return void(Ge.value=!1);const e=Ye.find((e=>e.id==Xe.value));var t=Ze.chat.chats;const a=t.findIndex((e=>e===Qe)),l=a+1;e.chats.push({...t[a],content:{...t[a].content}}),e.chats.push({...t[l],content:{...t[l].content}}),O.update(e),Q.success(M("pages.conversation.favorite_success")),Ge.value=!1},lt=t((()=>V().isSidebarCompact)),ot=t((()=>""!==Je.value||1===G.value.length||lt.value?12:2===G.value.length?6:3===G.value.length?4:4===G.value.length?3:5===G.value.length||6===G.value.length?4:7===G.value.length||8===G.value.length?3:12)),nt=t((()=>""!==Je.value||1===G.value.length||lt.value||2===G.value.length||3===G.value.length||4===G.value.length?"h-[calc(100%-10px)]":5===G.value.length||6===G.value.length||7===G.value.length||8===G.value.length?"h-[calc(50%-10px)]":"h-[calc(100%-10px)]")),st=t((()=>{let e="h-[calc(100vh-56px-2*var(--td-comp-paddingTB-m))]";return U.showLayoutHeader&&U.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxl)-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),U.showLayoutHeader&&!U.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]"),!U.showLayoutHeader&&U.showFooter&&(e="h-[calc(100vh-56px-var(--td-comp-size-xxl)-2*var(--td-comp-paddingTB-m))]"),[e,{"chat-container-collapsed":lt.value&&G.value.length>1&&!Je.value}]})),it=()=>{const e=G.value.map((e=>e.chat)),t=new Set(e),a=L.value.models.filter((e=>!t.has(e)));L.value.models=[...e,...a]},ct=new Map,rt=async()=>{if(!K.value)return;F=!0,await k();const e=K.value.querySelectorAll(".chating");for(;F;)await new Promise((e=>setTimeout(e,200))),e.forEach((e=>{const t=e.getAttribute("data-chat-id");if(t){if(!ct.has(t)){ct.set(t,!0);const a=()=>{const a=e.scrollHeight-e.scrollTop-e.clientHeight;a>50?ct.set(t,!1):a<10&&ct.set(t,!0)};e.onscroll=a,e.addEventListener("scroll",a)}ct.get(t)&&(null==e||e.scrollTo({top:e.scrollHeight,behavior:"instant"}))}}))};async function ut(e){if(await new Promise((t=>setTimeout(t,e))),!K.value)return;K.value.querySelectorAll(".scrollable-chat").forEach((e=>{null==e||e.scrollTo({top:e.scrollHeight,behavior:"instant"})}))}w((()=>{dt()}));const dt=()=>{(()=>{if(!K.value)return;K.value.querySelectorAll("[data-chat-id]").forEach((e=>{const t=e.getAttribute("data-chat-id");if(t){const a=e.onscroll;a&&e.removeEventListener("scroll",a),ct.delete(t)}}))})(),ct.clear()};x((()=>{L.value&&(dt(),vt())}));const vt=()=>{G.value=L.value.models.map((e=>{const t=X.find(e.modelId);if(t&&e.showing)return{model:t,chat:e,id:e.modelId}})).filter(Boolean)};l((()=>H.query.id),(async e=>{var t;if("/conversation/chat"!==H.path)return L.value=null,void dt();let a=e,l=L.value;L.value=$.find(a),Je.value="",vt();!H.query.isNew||!(null==(t=E.data)?void 0:t.content)||0===L.value.models.length||L.value.models[0].chats.length>0?await ut(l?0:500):ae(E.data)}),{immediate:!0});const pt=t((()=>L.value.internet?{color:"green"}:{}));return(e,t)=>{const a=ne,l=D,o=q,x=ee,w=se,k=J,j=re,C=ce,I=ie,V=Z,A=W,E=B,S=N;return L.value?(s(),n("div",zt,[v("div",{class:b(["w-full",st.value]),ref_key:"chatContainer",ref:K},[u(m(Ne),{tag:"t-row",modelValue:G.value,"onUpdate:modelValue":t[0]||(t[0]=e=>G.value=e),handle:".handle","component-data":{align:"top",gutter:10},onEnd:it,"item-key":"id",class:"h-full"},{item:d((({element:e})=>[(s(),c(a,{span:ot.value,key:e.model.id,class:b([nt.value,{hidden:""!==Je.value&&Je.value!==e.model.id}])},{default:d((()=>[u(Ct,{"chat-model":e,conversation:L.value,"data-index":`${e.model.id}`,"full-screen-model-id":Je.value,onStopChat:ve,onExtendModelVisible:Re,onReChat:oe,onChangeSize:Fe,onApiSettingVisible:$e,onFavNoteVisible:et,onClearChatContext:we,onClearChatHistory:ye},null,8,["chat-model","conversation","data-index","full-screen-model-id"])])),_:2},1032,["span","class"]))])),_:1},8,["modelValue"])],2),v("div",Mt,[u(P,{class:"flex-1",onInput:ae}),v("div",It,[m(Y)?(s(),c(w,{key:1,delay:0,modelValue:te.value,"onUpdate:modelValue":t[7]||(t[7]=e=>te.value=e),onOverlayClick:t[8]||(t[8]=e=>te.value=!1)},{content:d((()=>[v("div",Vt,[u(l,{size:"large",shape:"circle",variant:"text",onClick:xe},{default:d((()=>[u(m(je),{slot:"icon",style:y(pt.value)},null,8,["style"])])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:_e},{default:d((()=>[u(m(pe),{slot:"icon"})])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:le},{default:d((()=>[u(m(me),{slot:"icon"})])),_:1}),u(l,{size:"large",shape:"circle",variant:"text",onClick:t[2]||(t[2]=e=>Re(""))},{default:d((()=>[u(m(ge),{slot:"icon"})])),_:1}),u(x,{theme:"danger",content:m(M)("pages.conversation.confirm_delete_all_chat_records"),placement:"left",onConfirm:t[4]||(t[4]=()=>{be(),te.value=!1})},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[3]||(t[3]=_((()=>{}),["stop"]))},{default:d((()=>[u(m(he),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(x,{theme:"warning",content:m(M)("pages.conversation.confirm_clear_all_context"),placement:"left",onConfirm:t[6]||(t[6]=()=>{ue(),te.value=!1})},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[5]||(t[5]=_((()=>{}),["stop"]))},{default:d((()=>[u(m(fe),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(l,{size:"large",shape:"circle",variant:"text",onClick:de},{default:d((()=>[u(m(Ce),{slot:"icon"})])),_:1})])])),default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(m(ze),{slot:"icon"})])),_:1})])),_:1},8,["modelValue"])):(s(),n(i,{key:0},[u(o,{content:m(M)("pages.conversation.internet_search")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(xe,["stop"])},{default:d((()=>[u(m(je),{slot:"icon",style:y(pt.value)},null,8,["style"])])),_:1})])),_:1},8,["content"]),u(o,{content:m(M)("pages.conversation.stop_answering")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(_e,["stop"])},{default:d((()=>[u(m(pe),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(o,{content:m(M)("pages.conversation.regenerate_last_conversation")},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:_(le,["stop"])},{default:d((()=>[u(m(me),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(o,{content:m(M)("pages.conversation.inherit_other_model_conversation"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:t[1]||(t[1]=_((e=>Re("")),["stop"]))},{default:d((()=>[u(m(ge),{slot:"icon"})])),_:1})])),_:1},8,["content"]),u(x,{theme:"danger",content:m(M)("pages.conversation.confirm_delete_all_chat_records"),placement:"top",onConfirm:be},{default:d((()=>[u(o,{content:m(M)("pages.conversation.delete_all_chat_records"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(m(he),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(x,{theme:"warning",content:m(M)("pages.conversation.confirm_clear_all_context"),placement:"top",onConfirm:ue},{default:d((()=>[u(o,{content:m(M)("pages.conversation.clear_all_context"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text"},{default:d((()=>[u(m(fe),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:1},8,["content"]),u(o,{content:m(M)("pages.conversation.edit_current_conversation"),placement:"top"},{default:d((()=>[u(l,{size:"large",shape:"circle",variant:"text",onClick:de},{default:d((()=>[u(m(Ce),{slot:"icon"})])),_:1})])),_:1},8,["content"])],64))])]),u(He),u(V,{header:m(M)("pages.conversation.inherit_model_dialog"),visible:ke.value,"onUpdate:visible":t[10]||(t[10]=e=>ke.value=e),"on-confirm":Pe,class:"extend-model"},{default:d((()=>[u(I,{class:"w-full",modelValue:Ae.value,"onUpdate:modelValue":t[9]||(t[9]=e=>Ae.value=e)},{default:d((()=>[u(C,{gutter:[16,16],class:"w-full"},{default:d((()=>[(s(!0),n(i,null,h(G.value,(e=>(s(),c(a,{span:12},{default:d((()=>[u(j,{value:e.model.id,disabled:Ie.value===e.model.id},{default:d((()=>[u(k,{size:"20px",class:"mr-1"},{icon:d((()=>[(s(),c(g(m(z).icons[e.model.type])))])),_:2},1024),f(" "+p(m(z).getModelItemTitle(e.model)),1)])),_:2},1032,["value","disabled"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["header","visible"]),u(V,{header:m(M)("pages.conversation.api_conversation_settings"),visible:Ue.value,"onUpdate:visible":t[14]||(t[14]=e=>Ue.value=e),"on-confirm":Ke},{default:d((()=>[u(S,{"label-align":"top"},{default:d((()=>[u(E,{label:m(M)("pages.conversation.api_agent"),name:"apiSettingAgent"},{default:d((()=>[u(A,{modelValue:Oe.value,"onUpdate:modelValue":t[11]||(t[11]=e=>Oe.value=e)},null,8,["modelValue"])])),_:1},8,["label"]),u(E,{label:m(M)("pages.conversation.api_conversation_id"),name:"apiSettingConversation"},{default:d((()=>[u(A,{modelValue:We.value,"onUpdate:modelValue":t[12]||(t[12]=e=>We.value=e)},null,8,["modelValue"]),u(l,{class:"ml-2",onClick:Le},{default:d((()=>[f(p(m(M)("pages.conversation.api_conversation_id_random")),1)])),_:1})])),_:1},8,["label"]),u(E,{label:m(M)("pages.conversation.remarks"),name:"apiSettingNode"},{default:d((()=>[u(A,{modelValue:qe.value,"onUpdate:modelValue":t[13]||(t[13]=e=>qe.value=e)},null,8,["modelValue"])])),_:1},8,["label"])])),_:1})])),_:1},8,["header","visible"]),u(V,{header:m(M)("pages.conversation.button_tooltip_favourite"),visible:Ge.value,"onUpdate:visible":t[16]||(t[16]=e=>Ge.value=e),confirmBtn:null},{default:d((()=>[v("div",At,[v("div",Et,[u(I,{modelValue:Xe.value,"onUpdate:modelValue":t[15]||(t[15]=e=>Xe.value=e)},{default:d((()=>[u(C,{gutter:[16,16]},{default:d((()=>[(s(!0),n(i,null,h(m(Ye),(e=>(s(),c(a,{span:12},{default:d((()=>[u(j,{value:e.id,class:"grid grid-flow-col auto-cols-max fav-radio fav-radio-dialog"},{default:d((()=>[f(p(e.title),1)])),_:2},1032,["value"])])),_:2},1024)))),256))])),_:1})])),_:1},8,["modelValue"])]),u(l,{onClick:at,theme:"default",variant:"outline"},{default:d((()=>t[17]||(t[17]=[f("添加到笔记")]))),_:1}),u(l,{onClick:tt,theme:"default",variant:"outline"},{default:d((()=>t[18]||(t[18]=[f("创建新的笔记")]))),_:1})])])),_:1},8,["header","visible"])])):r("",!0)}}});export{St as default};
.output/public/assets/chat-DTe6v-O7.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .chat-container-content::-webkit-scrollbar{display:none}.chat-item:hover .chat-item-tools{visibility:visible}.chat-item-tools{visibility:hidden}.model-info p{margin:0}.model-info span{font-weight:700;display:inline-block;min-width:80px}.model-tag .t-tag--text{width:100%;overflow-x:hidden;text-overflow:ellipsis;text-wrap:nowrap}.chat-container-collapsed{overflow-x:auto}.chat-container-collapsed .t-row{flex-wrap:nowrap}.fav-radio-dialog .t-radio__label{width:24rem}
.output/public/assets/chroma-js-C-7CTB41.js ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{g as r}from"./@babel-D5ZMb8W9.js";var e,n={exports:{}};
2
+ /**
3
+ * chroma.js - JavaScript library for color conversions
4
+ *
5
+ * Copyright (c) 2011-2019, Gregor Aisch
6
+ * All rights reserved.
7
+ *
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions are met:
10
+ *
11
+ * 1. Redistributions of source code must retain the above copyright notice, this
12
+ * list of conditions and the following disclaimer.
13
+ *
14
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
15
+ * this list of conditions and the following disclaimer in the documentation
16
+ * and/or other materials provided with the distribution.
17
+ *
18
+ * 3. The name Gregor Aisch may not be used to endorse or promote products
19
+ * derived from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ *
32
+ * -------------------------------------------------------
33
+ *
34
+ * chroma.js includes colors from colorbrewer2.org, which are released under
35
+ * the following license:
36
+ *
37
+ * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
38
+ * and The Pennsylvania State University.
39
+ *
40
+ * Licensed under the Apache License, Version 2.0 (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ * http://www.apache.org/licenses/LICENSE-2.0
44
+ *
45
+ * Unless required by applicable law or agreed to in writing,
46
+ * software distributed under the License is distributed on an
47
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
48
+ * either express or implied. See the License for the specific
49
+ * language governing permissions and limitations under the License.
50
+ *
51
+ * ------------------------------------------------------
52
+ *
53
+ * Named colors are taken from X11 Color Names.
54
+ * http://www.w3.org/TR/css3-color/#svg-color
55
+ *
56
+ * @preserve
57
+ */var t=(e||(e=1,n.exports=function(){for(var r=function(r,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),r<e?e:r>n?n:r},e=function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=r(e[n],0,255)):3===n&&(e[n]=r(e[n],0,1));return e},n={},t=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];t<a.length;t+=1){var f=a[t];n["[object "+f+"]"]=f.toLowerCase()}var o=function(r){return n[Object.prototype.toString.call(r)]||"object"},u=function(r,e){return void 0===e&&(e=null),r.length>=3?Array.prototype.slice.call(r):"object"==o(r[0])&&e?e.split("").filter((function(e){return void 0!==r[0][e]})).map((function(e){return r[0][e]})):r[0]},c=function(r){if(r.length<2)return null;var e=r.length-1;return"string"==o(r[e])?r[e].toLowerCase():null},i=Math.PI,l={clip_rgb:e,limit:r,type:o,unpack:u,last:c,TWOPI:2*i,PITHIRD:i/3,DEG2RAD:i/180,RAD2DEG:180/i},h={format:{},autodetect:[]},s=l.last,d=l.clip_rgb,b=l.type,p=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=this;if("object"===b(r[0])&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];var t=s(r),a=!1;if(!t){a=!0,h.sorted||(h.autodetect=h.autodetect.sort((function(r,e){return e.p-r.p})),h.sorted=!0);for(var f=0,o=h.autodetect;f<o.length;f+=1){var u=o[f];if(t=u.test.apply(u,r))break}}if(!h.format[t])throw new Error("unknown format: "+r);var c=h.format[t].apply(null,a?r:r.slice(0,-1));n._rgb=d(c),3===n._rgb.length&&n._rgb.push(1)};p.prototype.toString=function(){return"function"==b(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var g=p,v=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(v.Color,[null].concat(r)))};v.Color=g,v.version="2.1.2";var m=v,y=l.unpack,w=Math.max,k=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=y(r,"rgb"),t=n[0],a=n[1],f=n[2],o=1-w(t/=255,w(a/=255,f/=255)),u=o<1?1/(1-o):0;return[(1-t-o)*u,(1-a-o)*u,(1-f-o)*u,o]},M=k,N=l.unpack,_=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=(r=N(r,"cmyk"))[0],t=r[1],a=r[2],f=r[3],o=r.length>4?r[4]:1;return 1===f?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-f),
58
+ // r
59
+ t>=1?0:255*(1-t)*(1-f),
60
+ // g
61
+ a>=1?0:255*(1-a)*(1-f),
62
+ // b
63
+ o]},x=_,A=l.unpack,E=l.type;g.prototype.cmyk=function(){return M(this._rgb)},m.cmyk=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["cmyk"])))},h.format.cmyk=x,h.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=A(r,"cmyk"),"array"===E(r)&&4===r.length)return"cmyk"}});var F=l.unpack,P=l.last,O=function(r){return Math.round(100*r)/100},j=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=F(r,"hsla"),t=P(r)||"lsa";return n[0]=O(n[0]||0),n[1]=O(100*n[1])+"%",n[2]=O(100*n[2])+"%","hsla"===t||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,t="hsla"):n.length=3,t+"("+n.join(",")+")"},G=j,q=l.unpack,L=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=(r=q(r,"rgba"))[0],t=r[1],a=r[2];n/=255,t/=255,a/=255;var f,o,u=Math.min(n,t,a),c=Math.max(n,t,a),i=(c+u)/2;return c===u?(f=0,o=Number.NaN):f=i<.5?(c-u)/(c+u):(c-u)/(2-c-u),n==c?o=(t-a)/(c-u):t==c?o=2+(a-n)/(c-u):a==c&&(o=4+(n-t)/(c-u)),(o*=60)<0&&(o+=360),r.length>3&&void 0!==r[3]?[o,f,i,r[3]]:[o,f,i]},R=L,B=l.unpack,C=l.last,I=Math.round,D=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=B(r,"rgba"),t=C(r)||"rgb";return"hsl"==t.substr(0,3)?G(R(n),t):(n[0]=I(n[0]),n[1]=I(n[1]),n[2]=I(n[2]),("rgba"===t||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,t="rgba"),t+"("+n.slice(0,"rgb"===t?3:4).join(",")+")")},Y=D,S=l.unpack,$=Math.round,z=function(){for(var r,e=[],n=arguments.length;n--;)e[n]=arguments[n];var t,a,f,o=(e=S(e,"hsl"))[0],u=e[1],c=e[2];if(0===u)t=a=f=255*c;else{var i=[0,0,0],l=[0,0,0],h=c<.5?c*(1+u):c+u-c*u,s=2*c-h,d=o/360;i[0]=d+1/3,i[1]=d,i[2]=d-1/3;for(var b=0;b<3;b++)i[b]<0&&(i[b]+=1),i[b]>1&&(i[b]-=1),6*i[b]<1?l[b]=s+6*(h-s)*i[b]:2*i[b]<1?l[b]=h:3*i[b]<2?l[b]=s+(h-s)*(2/3-i[b])*6:l[b]=s;t=(r=[$(255*l[0]),$(255*l[1]),$(255*l[2])])[0],a=r[1],f=r[2]}return e.length>3?[t,a,f,e[3]]:[t,a,f,1]},T=z,X=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,U=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,V=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,W=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,K=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Z=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,H=Math.round,J=function(r){var e;if(r=r.toLowerCase().trim(),h.format.named)try{return h.format.named(r)}catch(p){}if(e=r.match(X)){for(var n=e.slice(1,4),t=0;t<3;t++)n[t]=+n[t];return n[3]=1,n}if(e=r.match(U)){for(var a=e.slice(1,5),f=0;f<4;f++)a[f]=+a[f];return a}if(e=r.match(V)){for(var o=e.slice(1,4),u=0;u<3;u++)o[u]=H(2.55*o[u]);return o[3]=1,o}if(e=r.match(W)){for(var c=e.slice(1,5),i=0;i<3;i++)c[i]=H(2.55*c[i]);return c[3]=+c[3],c}if(e=r.match(K)){var l=e.slice(1,4);l[1]*=.01,l[2]*=.01;var s=T(l);return s[3]=1,s}if(e=r.match(Z)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var b=T(d);return b[3]=+e[4],b}};J.test=function(r){return X.test(r)||U.test(r)||V.test(r)||W.test(r)||K.test(r)||Z.test(r)};var Q=J,rr=l.type;g.prototype.css=function(r){return Y(this._rgb,r)},m.css=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["css"])))},h.format.css=Q,h.autodetect.push({p:5,test:function(r){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===rr(r)&&Q.test(r))return"css"}});var er=l.unpack;h.format.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=er(r,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},m.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["gl"])))},g.prototype.gl=function(){var r=this._rgb;return[r[0]/255,r[1]/255,r[2]/255,r[3]]};var nr=l.unpack,tr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,t=nr(r,"rgb"),a=t[0],f=t[1],o=t[2],u=Math.min(a,f,o),c=Math.max(a,f,o),i=c-u,l=100*i/255,h=u/(255-i)*100;return 0===i?n=Number.NaN:(a===c&&(n=(f-o)/i),f===c&&(n=2+(o-a)/i),o===c&&(n=4+(a-f)/i),(n*=60)<0&&(n+=360)),[n,l,h]},ar=tr,fr=l.unpack,or=Math.floor,ur=function(){for(var r,e,n,t,a,f,o=[],u=arguments.length;u--;)o[u]=arguments[u];var c,i,l,h=(o=fr(o,"hcg"))[0],s=o[1],d=o[2];d*=255;var b=255*s;if(0===s)c=i=l=d;else{360===h&&(h=0),h>360&&(h-=360),h<0&&(h+=360);var p=or(h/=60),g=h-p,v=d*(1-s),m=v+b*(1-g),y=v+b*g,w=v+b;switch(p){case 0:c=(r=[w,y,v])[0],i=r[1],l=r[2];break;case 1:c=(e=[m,w,v])[0],i=e[1],l=e[2];break;case 2:c=(n=[v,w,y])[0],i=n[1],l=n[2];break;case 3:c=(t=[v,m,w])[0],i=t[1],l=t[2];break;case 4:c=(a=[y,v,w])[0],i=a[1],l=a[2];break;case 5:c=(f=[w,v,m])[0],i=f[1],l=f[2]}}return[c,i,l,o.length>3?o[3]:1]},cr=ur,ir=l.unpack,lr=l.type;g.prototype.hcg=function(){return ar(this._rgb)},m.hcg=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hcg"])))},h.format.hcg=cr,h.autodetect.push({p:1,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=ir(r,"hcg"),"array"===lr(r)&&3===r.length)return"hcg"}});var hr=l.unpack,sr=l.last,dr=Math.round,br=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=hr(r,"rgba"),t=n[0],a=n[1],f=n[2],o=n[3],u=sr(r)||"auto";void 0===o&&(o=1),"auto"===u&&(u=o<1?"rgba":"rgb");var c="000000"+((t=dr(t))<<16|(a=dr(a))<<8|(f=dr(f))).toString(16);c=c.substr(c.length-6);var i="0"+dr(255*o).toString(16);switch(i=i.substr(i.length-2),u.toLowerCase()){case"rgba":return"#"+c+i;case"argb":return"#"+i+c;default:return"#"+c}},pr=br,gr=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,vr=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,mr=function(r){if(r.match(gr)){4!==r.length&&7!==r.length||(r=r.substr(1)),3===r.length&&(r=(r=r.split(""))[0]+r[0]+r[1]+r[1]+r[2]+r[2]);var e=parseInt(r,16);return[e>>16,e>>8&255,255&e,1]}if(r.match(vr)){5!==r.length&&9!==r.length||(r=r.substr(1)),4===r.length&&(r=(r=r.split(""))[0]+r[0]+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]);var n=parseInt(r,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+r)},yr=l.type;g.prototype.hex=function(r){return pr(this._rgb,r)},m.hex=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hex"])))},h.format.hex=mr,h.autodetect.push({p:4,test:function(r){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===yr(r)&&[3,4,5,6,7,8,9].indexOf(r.length)>=0)return"hex"}});var wr=l.unpack,kr=l.TWOPI,Mr=Math.min,Nr=Math.sqrt,_r=Math.acos,xr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,t=wr(r,"rgb"),a=t[0],f=t[1],o=t[2],u=Mr(a/=255,f/=255,o/=255),c=(a+f+o)/3,i=c>0?1-u/c:0;return 0===i?n=NaN:(n=(a-f+(a-o))/2,n/=Nr((a-f)*(a-f)+(a-o)*(f-o)),n=_r(n),o>f&&(n=kr-n),n/=kr),[360*n,i,c]},Ar=xr,Er=l.unpack,Fr=l.limit,Pr=l.TWOPI,Or=l.PITHIRD,jr=Math.cos,Gr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,t,a,f=(r=Er(r,"hsi"))[0],o=r[1],u=r[2];return isNaN(f)&&(f=0),isNaN(o)&&(o=0),f>360&&(f-=360),f<0&&(f+=360),(f/=360)<1/3?t=1-((a=(1-o)/3)+(n=(1+o*jr(Pr*f)/jr(Or-Pr*f))/3)):f<2/3?a=1-((n=(1-o)/3)+(t=(1+o*jr(Pr*(f-=1/3))/jr(Or-Pr*f))/3)):n=1-((t=(1-o)/3)+(a=(1+o*jr(Pr*(f-=2/3))/jr(Or-Pr*f))/3)),[255*(n=Fr(u*n*3)),255*(t=Fr(u*t*3)),255*(a=Fr(u*a*3)),r.length>3?r[3]:1]},qr=Gr,Lr=l.unpack,Rr=l.type;g.prototype.hsi=function(){return Ar(this._rgb)},m.hsi=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hsi"])))},h.format.hsi=qr,h.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Lr(r,"hsi"),"array"===Rr(r)&&3===r.length)return"hsi"}});var Br=l.unpack,Cr=l.type;g.prototype.hsl=function(){return R(this._rgb)},m.hsl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hsl"])))},h.format.hsl=T,h.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Br(r,"hsl"),"array"===Cr(r)&&3===r.length)return"hsl"}});var Ir=l.unpack,Dr=Math.min,Yr=Math.max,Sr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,t,a,f=(r=Ir(r,"rgb"))[0],o=r[1],u=r[2],c=Dr(f,o,u),i=Yr(f,o,u),l=i-c;return a=i/255,0===i?(n=Number.NaN,t=0):(t=l/i,f===i&&(n=(o-u)/l),o===i&&(n=2+(u-f)/l),u===i&&(n=4+(f-o)/l),(n*=60)<0&&(n+=360)),[n,t,a]},$r=Sr,zr=l.unpack,Tr=Math.floor,Xr=function(){for(var r,e,n,t,a,f,o=[],u=arguments.length;u--;)o[u]=arguments[u];var c,i,l,h=(o=zr(o,"hsv"))[0],s=o[1],d=o[2];if(d*=255,0===s)c=i=l=d;else{360===h&&(h=0),h>360&&(h-=360),h<0&&(h+=360);var b=Tr(h/=60),p=h-b,g=d*(1-s),v=d*(1-s*p),m=d*(1-s*(1-p));switch(b){case 0:c=(r=[d,m,g])[0],i=r[1],l=r[2];break;case 1:c=(e=[v,d,g])[0],i=e[1],l=e[2];break;case 2:c=(n=[g,d,m])[0],i=n[1],l=n[2];break;case 3:c=(t=[g,v,d])[0],i=t[1],l=t[2];break;case 4:c=(a=[m,g,d])[0],i=a[1],l=a[2];break;case 5:c=(f=[d,g,v])[0],i=f[1],l=f[2]}}return[c,i,l,o.length>3?o[3]:1]},Ur=Xr,Vr=l.unpack,Wr=l.type;g.prototype.hsv=function(){return $r(this._rgb)},m.hsv=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hsv"])))},h.format.hsv=Ur,h.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Vr(r,"hsv"),"array"===Wr(r)&&3===r.length)return"hsv"}});var Kr={
64
+ // Corresponds roughly to RGB brighter/darker
65
+ Kn:18,
66
+ // D65 standard referent
67
+ Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,
68
+ // 4 / 29
69
+ t1:.206896552,
70
+ // 6 / 29
71
+ t2:.12841855,
72
+ // 3 * t1 * t1
73
+ t3:.008856452},Zr=l.unpack,Hr=Math.pow,Jr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=Zr(r,"rgb"),t=n[0],a=n[1],f=n[2],o=ee(t,a,f),u=o[0],c=o[1],i=116*c-16;return[i<0?0:i,500*(u-c),200*(c-o[2])]},Qr=function(r){return(r/=255)<=.04045?r/12.92:Hr((r+.055)/1.055,2.4)},re=function(r){return r>Kr.t3?Hr(r,1/3):r/Kr.t2+Kr.t0},ee=function(r,e,n){return r=Qr(r),e=Qr(e),n=Qr(n),[re((.4124564*r+.3575761*e+.1804375*n)/Kr.Xn),re((.2126729*r+.7151522*e+.072175*n)/Kr.Yn),re((.0193339*r+.119192*e+.9503041*n)/Kr.Zn)]},ne=Jr,te=l.unpack,ae=Math.pow,fe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,t,a,f=(r=te(r,"lab"))[0],o=r[1],u=r[2];return t=(f+16)/116,n=isNaN(o)?t:t+o/500,a=isNaN(u)?t:t-u/200,t=Kr.Yn*ue(t),n=Kr.Xn*ue(n),a=Kr.Zn*ue(a),[oe(3.2404542*n-1.5371385*t-.4985314*a),oe(-.969266*n+1.8760108*t+.041556*a),oe(.0556434*n-.2040259*t+1.0572252*a),r.length>3?r[3]:1]},oe=function(r){return 255*(r<=.00304?12.92*r:1.055*ae(r,1/2.4)-.055)},ue=function(r){return r>Kr.t1?r*r*r:Kr.t2*(r-Kr.t0)},ce=fe,ie=l.unpack,le=l.type;g.prototype.lab=function(){return ne(this._rgb)},m.lab=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["lab"])))},h.format.lab=ce,h.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=ie(r,"lab"),"array"===le(r)&&3===r.length)return"lab"}});var he=l.unpack,se=l.RAD2DEG,de=Math.sqrt,be=Math.atan2,pe=Math.round,ge=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=he(r,"lab"),t=n[0],a=n[1],f=n[2],o=de(a*a+f*f),u=(be(f,a)*se+360)%360;return 0===pe(1e4*o)&&(u=Number.NaN),[t,o,u]},ve=ge,me=l.unpack,ye=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=me(r,"rgb"),t=n[0],a=n[1],f=n[2],o=ne(t,a,f),u=o[0],c=o[1],i=o[2];return ve(u,c,i)},we=ye,ke=l.unpack,Me=l.DEG2RAD,Ne=Math.sin,_e=Math.cos,xe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=ke(r,"lch"),t=n[0],a=n[1],f=n[2];return isNaN(f)&&(f=0),[t,_e(f*=Me)*a,Ne(f)*a]},Ae=xe,Ee=l.unpack,Fe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=(r=Ee(r,"lch"))[0],t=r[1],a=r[2],f=Ae(n,t,a),o=f[0],u=f[1],c=f[2],i=ce(o,u,c);return[i[0],i[1],i[2],r.length>3?r[3]:1]},Pe=Fe,Oe=l.unpack,je=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=Oe(r,"hcl").reverse();return Pe.apply(void 0,n)},Ge=je,qe=l.unpack,Le=l.type;g.prototype.lch=function(){return we(this._rgb)},g.prototype.hcl=function(){return we(this._rgb).reverse()},m.lch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["lch"])))},m.hcl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["hcl"])))},h.format.lch=Pe,h.format.hcl=Ge,["lch","hcl"].forEach((function(r){return h.autodetect.push({p:2,test:function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(e=qe(e,r),"array"===Le(e)&&3===e.length)return r}})}));var Re={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Be=l.type;g.prototype.name=function(){for(var r=pr(this._rgb,"rgb"),e=0,n=Object.keys(Re);e<n.length;e+=1){var t=n[e];if(Re[t]===r)return t.toLowerCase()}return r},h.format.named=function(r){if(r=r.toLowerCase(),Re[r])return mr(Re[r]);throw new Error("unknown color name: "+r)},h.autodetect.push({p:5,test:function(r){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if(!e.length&&"string"===Be(r)&&Re[r.toLowerCase()])return"named"}});var Ce=l.unpack,Ie=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=Ce(r,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},De=Ie,Ye=l.type,Se=function(r){if("number"==Ye(r)&&r>=0&&r<=16777215)return[r>>16,r>>8&255,255&r,1];throw new Error("unknown num color: "+r)},$e=l.type;g.prototype.num=function(){return De(this._rgb)},m.num=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["num"])))},h.format.num=Se,h.autodetect.push({p:5,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(1===r.length&&"number"===$e(r[0])&&r[0]>=0&&r[0]<=16777215)return"num"}});var ze=l.unpack,Te=l.type,Xe=Math.round;g.prototype.rgb=function(r){return void 0===r&&(r=!0),!1===r?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Xe)},g.prototype.rgba=function(r){return void 0===r&&(r=!0),this._rgb.slice(0,4).map((function(e,n){return n<3?!1===r?e:Xe(e):e}))},m.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["rgb"])))},h.format.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var n=ze(r,"rgba");return void 0===n[3]&&(n[3]=1),n},h.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=ze(r,"rgba"),"array"===Te(r)&&(3===r.length||4===r.length&&"number"==Te(r[3])&&r[3]>=0&&r[3]<=1))return"rgb"}});var Ue=Math.log,Ve=function(r){var e,n,t,a=r/100;return a<66?(e=255,n=-155.25485562709179-.44596950469579133*(n=a-2)+104.49216199393888*Ue(n),t=a<20?0:.8274096064007395*(t=a-10)-254.76935184120902+115.67994401066147*Ue(t)):(e=351.97690566805693+.114206453784165*(e=a-55)-40.25366309332127*Ue(e),n=325.4494125711974+.07943456536662342*(n=a-50)-28.0852963507957*Ue(n),t=255),[e,n,t,1]},We=l.unpack,Ke=Math.round,Ze=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];for(var n,t=We(r,"rgb"),a=t[0],f=t[2],o=1e3,u=4e4,c=.4;u-o>c;){var i=Ve(n=.5*(u+o));i[2]/i[0]>=f/a?u=n:o=n}return Ke(n)},He=Ze;g.prototype.temp=g.prototype.kelvin=g.prototype.temperature=function(){return He(this._rgb)},m.temp=m.kelvin=m.temperature=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(g,[null].concat(r,["temp"])))},h.format.temp=h.format.kelvin=h.format.temperature=Ve;var Je=l.type;g.prototype.alpha=function(r,e){return void 0===e&&(e=!1),void 0!==r&&"number"===Je(r)?e?(this._rgb[3]=r,this):new g([this._rgb[0],this._rgb[1],this._rgb[2],r],"rgb"):this._rgb[3]},g.prototype.clipped=function(){return this._rgb._clipped||!1},g.prototype.darken=function(r){void 0===r&&(r=1);var e=this,n=e.lab();return n[0]-=Kr.Kn*r,new g(n,"lab").alpha(e.alpha(),!0)},g.prototype.brighten=function(r){return void 0===r&&(r=1),this.darken(-r)},g.prototype.darker=g.prototype.darken,g.prototype.brighter=g.prototype.brighten,g.prototype.get=function(r){var e=r.split("."),n=e[0],t=e[1],a=this[n]();if(t){var f=n.indexOf(t);if(f>-1)return a[f];throw new Error("unknown channel "+t+" in mode "+n)}return a};var Qe=l.type,rn=Math.pow,en=1e-7,nn=20;g.prototype.luminance=function(r){if(void 0!==r&&"number"===Qe(r)){if(0===r)return new g([0,0,0,this._rgb[3]],"rgb");if(1===r)return new g([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),n="rgb",t=nn,a=function(e,f){var o=e.interpolate(f,.5,n),u=o.luminance();return Math.abs(r-u)<en||!t--?o:u>r?a(e,o):a(o,f)},f=(e>r?a(new g([0,0,0]),this):a(this,new g([255,255,255]))).rgb();return new g(f.concat([this._rgb[3]]))}return tn.apply(void 0,this._rgb.slice(0,3))};var tn=function(r,e,n){return.2126*(r=an(r))+.7152*(e=an(e))+.0722*(n=an(n))},an=function(r){return(r/=255)<=.03928?r/12.92:rn((r+.055)/1.055,2.4)},fn={},on=l.type,un=function(r,e,n){void 0===n&&(n=.5);for(var t=[],a=arguments.length-3;a-- >0;)t[a]=arguments[a+3];var f=t[0]||"lrgb";if(fn[f]||t.length||(f=Object.keys(fn)[0]),!fn[f])throw new Error("interpolation mode "+f+" is not defined");return"object"!==on(r)&&(r=new g(r)),"object"!==on(e)&&(e=new g(e)),fn[f](r,e,n).alpha(r.alpha()+n*(e.alpha()-r.alpha()))};g.prototype.mix=g.prototype.interpolate=function(r,e){void 0===e&&(e=.5);for(var n=[],t=arguments.length-2;t-- >0;)n[t]=arguments[t+2];return un.apply(void 0,[this,r,e].concat(n))},g.prototype.premultiply=function(r){void 0===r&&(r=!1);var e=this._rgb,n=e[3];return r?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new g([e[0]*n,e[1]*n,e[2]*n,n],"rgb")},g.prototype.saturate=function(r){void 0===r&&(r=1);var e=this,n=e.lch();return n[1]+=Kr.Kn*r,n[1]<0&&(n[1]=0),new g(n,"lch").alpha(e.alpha(),!0)},g.prototype.desaturate=function(r){return void 0===r&&(r=1),this.saturate(-r)};var cn=l.type;g.prototype.set=function(r,e,n){void 0===n&&(n=!1);var t=r.split("."),a=t[0],f=t[1],o=this[a]();if(f){var u=a.indexOf(f);if(u>-1){if("string"==cn(e))switch(e.charAt(0)){case"+":case"-":o[u]+=+e;break;case"*":o[u]*=+e.substr(1);break;case"/":o[u]/=+e.substr(1);break;default:o[u]=+e}else{if("number"!==cn(e))throw new Error("unsupported value for Color.set");o[u]=e}var c=new g(o,a);return n?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+f+" in mode "+a)}return o};var ln=function(r,e,n){var t=r._rgb,a=e._rgb;return new g(t[0]+n*(a[0]-t[0]),t[1]+n*(a[1]-t[1]),t[2]+n*(a[2]-t[2]),"rgb")};fn.rgb=ln;var hn=Math.sqrt,sn=Math.pow,dn=function(r,e,n){var t=r._rgb,a=t[0],f=t[1],o=t[2],u=e._rgb,c=u[0],i=u[1],l=u[2];return new g(hn(sn(a,2)*(1-n)+sn(c,2)*n),hn(sn(f,2)*(1-n)+sn(i,2)*n),hn(sn(o,2)*(1-n)+sn(l,2)*n),"rgb")};fn.lrgb=dn;var bn=function(r,e,n){var t=r.lab(),a=e.lab();return new g(t[0]+n*(a[0]-t[0]),t[1]+n*(a[1]-t[1]),t[2]+n*(a[2]-t[2]),"lab")};fn.lab=bn;var pn=function(r,e,n,t){var a,f,o,u,c,i,l,h,s,d,b,p;return"hsl"===t?(o=r.hsl(),u=e.hsl()):"hsv"===t?(o=r.hsv(),u=e.hsv()):"hcg"===t?(o=r.hcg(),u=e.hcg()):"hsi"===t?(o=r.hsi(),u=e.hsi()):"lch"!==t&&"hcl"!==t||(t="hcl",o=r.hcl(),u=e.hcl()),"h"===t.substr(0,1)&&(c=(a=o)[0],l=a[1],s=a[2],i=(f=u)[0],h=f[1],d=f[2]),isNaN(c)||isNaN(i)?isNaN(c)?isNaN(i)?p=Number.NaN:(p=i,1!=s&&0!=s||"hsv"==t||(b=h)):(p=c,1!=d&&0!=d||"hsv"==t||(b=l)):p=c+n*(i>c&&i-c>180?i-(c+360):i<c&&c-i>180?i+360-c:i-c),void 0===b&&(b=l+n*(h-l)),new g([p,b,s+n*(d-s)],t)},gn=function(r,e,n){return pn(r,e,n,"lch")};fn.lch=gn,fn.hcl=gn;var vn=function(r,e,n){var t=r.num(),a=e.num();return new g(t+n*(a-t),"num")};fn.num=vn;var mn=function(r,e,n){return pn(r,e,n,"hcg")};fn.hcg=mn;var yn=function(r,e,n){return pn(r,e,n,"hsi")};fn.hsi=yn;var wn=function(r,e,n){return pn(r,e,n,"hsl")};fn.hsl=wn;var kn=function(r,e,n){return pn(r,e,n,"hsv")};fn.hsv=kn;var Mn=l.clip_rgb,Nn=Math.pow,_n=Math.sqrt,xn=Math.PI,An=Math.cos,En=Math.sin,Fn=Math.atan2,Pn=function(r,e,n){void 0===e&&(e="lrgb"),void 0===n&&(n=null);var t=r.length;n||(n=Array.from(new Array(t)).map((function(){return 1})));var a=t/n.reduce((function(r,e){return r+e}));if(n.forEach((function(r,e){n[e]*=a})),r=r.map((function(r){return new g(r)})),"lrgb"===e)return On(r,n);for(var f=r.shift(),o=f.get(e),u=[],c=0,i=0,l=0;l<o.length;l++)if(o[l]=(o[l]||0)*n[0],u.push(isNaN(o[l])?0:n[0]),"h"===e.charAt(l)&&!isNaN(o[l])){var h=o[l]/180*xn;c+=An(h)*n[0],i+=En(h)*n[0]}var s=f.alpha()*n[0];r.forEach((function(r,t){var a=r.get(e);s+=r.alpha()*n[t+1];for(var f=0;f<o.length;f++)if(!isNaN(a[f]))if(u[f]+=n[t+1],"h"===e.charAt(f)){var l=a[f]/180*xn;c+=An(l)*n[t+1],i+=En(l)*n[t+1]}else o[f]+=a[f]*n[t+1]}));for(var d=0;d<o.length;d++)if("h"===e.charAt(d)){for(var b=Fn(i/u[d],c/u[d])/xn*180;b<0;)b+=360;for(;b>=360;)b-=360;o[d]=b}else o[d]=o[d]/u[d];return s/=t,new g(o,e).alpha(s>.99999?1:s,!0)},On=function(r,e){for(var n=r.length,t=[0,0,0,0],a=0;a<r.length;a++){var f=r[a],o=e[a]/n,u=f._rgb;t[0]+=Nn(u[0],2)*o,t[1]+=Nn(u[1],2)*o,t[2]+=Nn(u[2],2)*o,t[3]+=u[3]*o}return t[0]=_n(t[0]),t[1]=_n(t[1]),t[2]=_n(t[2]),t[3]>.9999999&&(t[3]=1),new g(Mn(t))},jn=l.type,Gn=Math.pow,qn=function(r){var e="rgb",n=m("#ccc"),t=0,a=[0,1],f=[],o=[0,0],u=!1,c=[],i=!1,l=0,h=1,s=!1,d={},b=!0,p=1,g=function(r){if((r=r||["#fff","#000"])&&"string"===jn(r)&&m.brewer&&m.brewer[r.toLowerCase()]&&(r=m.brewer[r.toLowerCase()]),"array"===jn(r)){1===r.length&&(r=[r[0],r[0]]),r=r.slice(0);for(var e=0;e<r.length;e++)r[e]=m(r[e]);f.length=0;for(var n=0;n<r.length;n++)f.push(n/(r.length-1))}return M(),c=r},v=function(r){if(null!=u){for(var e=u.length-1,n=0;n<e&&r>=u[n];)n++;return n-1}return 0},y=function(r){return r},w=function(r){return r},k=function(r,t){var a,i;if(null==t&&(t=!1),isNaN(r)||null===r)return n;i=t?r:u&&u.length>2?v(r)/(u.length-2):h!==l?(r-l)/(h-l):1,i=w(i),t||(i=y(i)),1!==p&&(i=Gn(i,p)),i=o[0]+i*(1-o[0]-o[1]),i=Math.min(1,Math.max(0,i));var s=Math.floor(1e4*i);if(b&&d[s])a=d[s];else{if("array"===jn(c))for(var g=0;g<f.length;g++){var k=f[g];if(i<=k){a=c[g];break}if(i>=k&&g===f.length-1){a=c[g];break}if(i>k&&i<f[g+1]){i=(i-k)/(f[g+1]-k),a=m.interpolate(c[g],c[g+1],i,e);break}}else"function"===jn(c)&&(a=c(i));b&&(d[s]=a)}return a},M=function(){return d={}};g(r);var N=function(r){var e=m(k(r));return i&&e[i]?e[i]():e};return N.classes=function(r){if(null!=r){if("array"===jn(r))u=r,a=[r[0],r[r.length-1]];else{var e=m.analyze(a);u=0===r?[e.min,e.max]:m.limits(e,"e",r)}return N}return u},N.domain=function(r){if(!arguments.length)return a;l=r[0],h=r[r.length-1],f=[];var e=c.length;if(r.length===e&&l!==h)for(var n=0,t=Array.from(r);n<t.length;n+=1){var o=t[n];f.push((o-l)/(h-l))}else{for(var u=0;u<e;u++)f.push(u/(e-1));if(r.length>2){var i=r.map((function(e,n){return n/(r.length-1)})),s=r.map((function(r){return(r-l)/(h-l)}));s.every((function(r,e){return i[e]===r}))||(w=function(r){if(r<=0||r>=1)return r;for(var e=0;r>=s[e+1];)e++;var n=(r-s[e])/(s[e+1]-s[e]);return i[e]+n*(i[e+1]-i[e])})}}return a=[l,h],N},N.mode=function(r){return arguments.length?(e=r,M(),N):e},N.range=function(r,e){return g(r),N},N.out=function(r){return i=r,N},N.spread=function(r){return arguments.length?(t=r,N):t},N.correctLightness=function(r){return null==r&&(r=!0),s=r,M(),y=s?function(r){for(var e=k(0,!0).lab()[0],n=k(1,!0).lab()[0],t=e>n,a=k(r,!0).lab()[0],f=e+(n-e)*r,o=a-f,u=0,c=1,i=20;Math.abs(o)>.01&&i-- >0;)t&&(o*=-1),o<0?(u=r,r+=.5*(c-r)):(c=r,r+=.5*(u-r)),a=k(r,!0).lab()[0],o=a-f;return r}:function(r){return r},N},N.padding=function(r){return null!=r?("number"===jn(r)&&(r=[r,r]),o=r,N):o},N.colors=function(e,n){arguments.length<2&&(n="hex");var t=[];if(0===arguments.length)t=c.slice(0);else if(1===e)t=[N(.5)];else if(e>1){var f=a[0],o=a[1]-f;t=Ln(0,e).map((function(r){return N(f+r/(e-1)*o)}))}else{r=[];var i=[];if(u&&u.length>2)for(var l=1,h=u.length,s=1<=h;s?l<h:l>h;s?l++:l--)i.push(.5*(u[l-1]+u[l]));else i=a;t=i.map((function(r){return N(r)}))}return m[n]&&(t=t.map((function(r){return r[n]()}))),t},N.cache=function(r){return null!=r?(b=r,N):b},N.gamma=function(r){return null!=r?(p=r,N):p},N.nodata=function(r){return null!=r?(n=m(r),N):n},N};function Ln(r,e,n){for(var t=[],a=r<e,f=e,o=r;a?o<f:o>f;a?o++:o--)t.push(o);return t}var Rn=function(r){var e,n,t,a,f,o,u;if(2===(r=r.map((function(r){return new g(r)}))).length)e=r.map((function(r){return r.lab()})),f=e[0],o=e[1],a=function(r){var e=[0,1,2].map((function(e){return f[e]+r*(o[e]-f[e])}));return new g(e,"lab")};else if(3===r.length)n=r.map((function(r){return r.lab()})),f=n[0],o=n[1],u=n[2],a=function(r){var e=[0,1,2].map((function(e){return(1-r)*(1-r)*f[e]+2*(1-r)*r*o[e]+r*r*u[e]}));return new g(e,"lab")};else if(4===r.length){var c;t=r.map((function(r){return r.lab()})),f=t[0],o=t[1],u=t[2],c=t[3],a=function(r){var e=[0,1,2].map((function(e){return(1-r)*(1-r)*(1-r)*f[e]+3*(1-r)*(1-r)*r*o[e]+3*(1-r)*r*r*u[e]+r*r*r*c[e]}));return new g(e,"lab")}}else if(5===r.length){var i=Rn(r.slice(0,3)),l=Rn(r.slice(2,5));a=function(r){return r<.5?i(2*r):l(2*(r-.5))}}return a},Bn=function(r){var e=Rn(r);return e.scale=function(){return qn(e)},e},Cn=function(r,e,n){if(!Cn[n])throw new Error("unknown blend mode "+n);return Cn[n](r,e)},In=function(r){return function(e,n){var t=m(n).rgb(),a=m(e).rgb();return m.rgb(r(t,a))}},Dn=function(r){return function(e,n){var t=[];return t[0]=r(e[0],n[0]),t[1]=r(e[1],n[1]),t[2]=r(e[2],n[2]),t}},Yn=function(r){return r},Sn=function(r,e){return r*e/255},$n=function(r,e){return r>e?e:r},zn=function(r,e){return r>e?r:e},Tn=function(r,e){return 255*(1-(1-r/255)*(1-e/255))},Xn=function(r,e){return e<128?2*r*e/255:255*(1-2*(1-r/255)*(1-e/255))},Un=function(r,e){return 255*(1-(1-e/255)/(r/255))},Vn=function(r,e){return 255===r||(r=e/255*255/(1-r/255))>255?255:r};Cn.normal=In(Dn(Yn)),Cn.multiply=In(Dn(Sn)),Cn.screen=In(Dn(Tn)),Cn.overlay=In(Dn(Xn)),Cn.darken=In(Dn($n)),Cn.lighten=In(Dn(zn)),Cn.dodge=In(Dn(Vn)),Cn.burn=In(Dn(Un));for(var Wn=Cn,Kn=l.type,Zn=l.clip_rgb,Hn=l.TWOPI,Jn=Math.pow,Qn=Math.sin,rt=Math.cos,et=function(r,e,n,t,a){void 0===r&&(r=300),void 0===e&&(e=-1.5),void 0===n&&(n=1),void 0===t&&(t=1),void 0===a&&(a=[0,1]);var f,o=0;"array"===Kn(a)?f=a[1]-a[0]:(f=0,a=[a,a]);var u=function(u){var c=Hn*((r+120)/360+e*u),i=Jn(a[0]+f*u,t),l=(0!==o?n[0]+u*o:n)*i*(1-i)/2,h=rt(c),s=Qn(c);return m(Zn([255*(i+l*(-.14861*h+1.78277*s)),255*(i+l*(-.29227*h-.90649*s)),255*(i+l*(1.97294*h)),1]))};return u.start=function(e){return null==e?r:(r=e,u)},u.rotations=function(r){return null==r?e:(e=r,u)},u.gamma=function(r){return null==r?t:(t=r,u)},u.hue=function(r){return null==r?n:("array"===Kn(n=r)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,u)},u.lightness=function(r){return null==r?a:("array"===Kn(r)?(a=r,f=r[1]-r[0]):(a=[r,r],f=0),u)},u.scale=function(){return m.scale(u)},u.hue(n),u},nt="0123456789abcdef",tt=Math.floor,at=Math.random,ft=function(){for(var r="#",e=0;e<6;e++)r+=nt.charAt(tt(16*at()));return new g(r,"hex")},ot=Math.log,ut=Math.pow,ct=Math.floor,it=Math.abs,lt=function(r,e){void 0===e&&(e=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(r)&&(r=Object.values(r)),r.forEach((function(r){e&&"object"===o(r)&&(r=r[e]),null==r||isNaN(r)||(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(r,e){return ht(n,r,e)},n},ht=function(r,e,n){void 0===e&&(e="equal"),void 0===n&&(n=7),"array"==o(r)&&(r=lt(r));var t=r.min,a=r.max,f=r.values.sort((function(r,e){return r-e}));if(1===n)return[t,a];var u=[];if("c"===e.substr(0,1)&&(u.push(t),u.push(a)),"e"===e.substr(0,1)){u.push(t);for(var c=1;c<n;c++)u.push(t+c/n*(a-t));u.push(a)}else if("l"===e.substr(0,1)){if(t<=0)throw new Error("Logarithmic scales are only possible for values > 0");var i=Math.LOG10E*ot(t),l=Math.LOG10E*ot(a);u.push(t);for(var h=1;h<n;h++)u.push(ut(10,i+h/n*(l-i)));u.push(a)}else if("q"===e.substr(0,1)){u.push(t);for(var s=1;s<n;s++){var d=(f.length-1)*s/n,b=ct(d);if(b===d)u.push(f[b]);else{var p=d-b;u.push(f[b]*(1-p)+f[b+1]*p)}}u.push(a)}else if("k"===e.substr(0,1)){var g,v=f.length,m=new Array(v),y=new Array(n),w=!0,k=0,M=null;(M=[]).push(t);for(var N=1;N<n;N++)M.push(t+N/n*(a-t));for(M.push(a);w;){for(var _=0;_<n;_++)y[_]=0;for(var x=0;x<v;x++)for(var A=f[x],E=Number.MAX_VALUE,F=void 0,P=0;P<n;P++){var O=it(M[P]-A);O<E&&(E=O,F=P),y[F]++,m[x]=F}for(var j=new Array(n),G=0;G<n;G++)j[G]=null;for(var q=0;q<v;q++)null===j[g=m[q]]?j[g]=f[q]:j[g]+=f[q];for(var L=0;L<n;L++)j[L]*=1/y[L];w=!1;for(var R=0;R<n;R++)if(j[R]!==M[R]){w=!0;break}M=j,++k>200&&(w=!1)}for(var B={},C=0;C<n;C++)B[C]=[];for(var I=0;I<v;I++)B[g=m[I]].push(f[I]);for(var D=[],Y=0;Y<n;Y++)D.push(B[Y][0]),D.push(B[Y][B[Y].length-1]);D=D.sort((function(r,e){return r-e})),u.push(D[0]);for(var S=1;S<D.length;S+=2){var $=D[S];isNaN($)||-1!==u.indexOf($)||u.push($)}}return u},st={analyze:lt,limits:ht},dt=function(r,e){r=new g(r),e=new g(e);var n=r.luminance(),t=e.luminance();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},bt=Math.sqrt,pt=Math.atan2,gt=Math.abs,vt=Math.cos,mt=Math.PI,yt=function(r,e,n,t){void 0===n&&(n=1),void 0===t&&(t=1),r=new g(r),e=new g(e);for(var a=Array.from(r.lab()),f=a[0],o=a[1],u=a[2],c=Array.from(e.lab()),i=c[0],l=c[1],h=c[2],s=bt(o*o+u*u),d=bt(l*l+h*h),b=f<16?.511:.040975*f/(1+.01765*f),p=.0638*s/(1+.0131*s)+.638,v=s<1e-6?0:180*pt(u,o)/mt;v<0;)v+=360;for(;v>=360;)v-=360;var m=v>=164&&v<=345?.56+gt(.2*vt(mt*(v+168)/180)):.36+gt(.4*vt(mt*(v+35)/180)),y=s*s*s*s,w=bt(y/(y+1900)),k=p*(w*m+1-w),M=s-d,N=o-l,_=u-h,x=(f-i)/(n*b),A=M/(t*p);return bt(x*x+A*A+(N*N+_*_-M*M)/(k*k))},wt=function(r,e,n){void 0===n&&(n="lab"),r=new g(r),e=new g(e);var t=r.get(n),a=e.get(n),f=0;for(var o in t){var u=(t[o]||0)-(a[o]||0);f+=u*u}return Math.sqrt(f)},kt=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];try{return new(Function.prototype.bind.apply(g,[null].concat(r))),!0}catch(n){return!1}},Mt={cool:function(){return qn([m.hsl(180,1,.9),m.hsl(250,.7,.4)])},hot:function(){return qn(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Nt={
74
+ // sequential
75
+ OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],
76
+ // diverging
77
+ Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],
78
+ // qualitative
79
+ Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},_t=0,xt=Object.keys(Nt);_t<xt.length;_t+=1){var At=xt[_t];Nt[At.toLowerCase()]=Nt[At]}var Et=Nt;return m.average=Pn,m.bezier=Bn,m.blend=Wn,m.cubehelix=et,m.mix=m.interpolate=un,m.random=ft,m.scale=qn,m.analyze=st.analyze,m.contrast=dt,m.deltaE=yt,m.distance=wt,m.limits=st.limits,m.valid=kt,m.scales=Mt,m.colors=Re,m.brewer=Et,m}()),n.exports);const a=r(t);export{t as c,a as l};
.output/public/assets/content-D7oV9sgD.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{_ as e,A as t,b as o,a as l}from"./CodeBlocks.vue_vue_type_style_index_0_lang-CvrmorfG.js";import{_ as a}from"./ChatInput.vue_vue_type_style_index_0_lang-DUr-4UKr.js";import{b as s,u as n,d as i,t as r,m as u}from"./global-8PgNYKI7.js";import{a as c,u as d}from"./vue-router-Be5-2oBH.js";import{m as p}from"./markdown-CUqnJ2SQ.js";import{s as m,c as v,P as f,T as j,A as g,r as x,g as h,f as y}from"./tdesign-vue-next-Dn8RgD8J.js";import{c as _,ac as b,_ as k,a4 as w,a5 as C,a3 as T,ad as z}from"./tdesign-icons-vue-next-TRQ6L2cX.js";import{l as E,f as B,a as S,w as $,v as H,y as I,z as O,A as M,R as V,aa as L,u as R,F as q,n as P,J as A,ab as D,I as F,H as N}from"./@vue-DsZlmJIP.js";import{d as J}from"./fetch-md1mshcr.js";import{a as U}from"./main-BD21VgCI.js";import"./uuid-_R2nDvl_.js";import"./@wdns-Ct47UQBJ.js";import"./ua-parser-js-9pz7LJLQ.js";import"./@babel-D5ZMb8W9.js";import"./core-js-pure-ZQ_YVJtv.js";import"./mammoth-5Ncu60I4.js";import"./elkjs-CmFeGg_o.js";import"./xlsx-DB6BMndo.js";import"./pdfjs-dist-8WFUNQXM.js";import"./lodash-Cky9m9r7.js";import"./@vueuse-CdWUKi2M.js";import"./vue-i18n-DniSGj9Z.js";import"./@intlify-CLGVtpI2.js";import"./pinia-jKJ-xldK.js";import"./pinia-plugin-persistedstate-DyrI1rJI.js";import"./destr-ClW9AvhW.js";import"./deep-pick-omit-DP_A4OSP.js";import"./tvision-color-Dyv1XgcL.js";import"./chroma-js-C-7CTB41.js";import"./@material-C_XhzpVg.js";import"./bezier-easing-7-TbLOHs.js";import"./markdown-it-link-attributes-UnOqz_aA.js";import"./markdown-it-C8SkdHr7.js";import"./mdurl-CDXpswLz.js";import"./uc.micro-CLkLCS2f.js";import"./entities-D7HTx9ov.js";import"./linkify-it-LcVOBuC5.js";import"./punycode.js-Bmr3cAX8.js";import"./@traptitech-BPk2gen6.js";import"./katex-BY7yyeOs.js";import"./markdown-it-highlightjs-BO0M2Nwi.js";import"./highlight.js-DVyQ5Ner.js";import"./@agoose77-R9PiO-3G.js";import"./mermaid-DPhN_ogz.js";import"./dayjs-DOPU4UI6.js";import"./@braintree-DgpeZQRe.js";import"./d3-transition-swcnLnsT.js";import"./d3-timer-keMr1twq.js";import"./d3-dispatch-Chq_f_hl.js";import"./d3-interpolate-Ct9kki6l.js";import"./d3-color-D5ULnJIe.js";import"./d3-selection-G65jBFUY.js";import"./d3-ease-Cx6bG2vu.js";import"./d3-zoom-D4Vc87xO.js";import"./dompurify-B5jhUdWW.js";import"./dagre-d3-es-CoKyXJoG.js";import"./lodash-es-CZ-i64-u.js";import"./d3-shape-C1TbtrGg.js";import"./d3-path-QSrLXsQ3.js";import"./d3-fetch-XwboCDHR.js";import"./khroma-Ca6ZlOUT.js";import"./ts-dedent-CttZBlkd.js";import"./stylis-Cl7w7uv3.js";import"./d3-scale-CjTvl_Qo.js";import"./internmap-B8oPgqVZ.js";import"./d3-array-B0evfIyH.js";import"./d3-format-C0lSXcPg.js";import"./d3-time-format-D74OpZq4.js";import"./d3-time-CebKitJR.js";import"./d3-axis-pCwzqJ1S.js";import"./cytoscape-D84qPEQv.js";import"./cytoscape-cose-bilkent-CoOmxuE9.js";import"./cose-base-kQthUiMK.js";import"./layout-base-DqRk0Tgc.js";import"./sortablejs-DGtSoqI-.js";import"./@popperjs-B4tvfKWZ.js";import"./eventsource-parser-BEY8Dpg-.js";import"./@mozilla-BD532_dh.js";import"./vuedraggable-K5Gqz8r2.js";import"./vue-DVRmszIO.js";const K={key:0,class:"markdown-body"},W=["innerHTML"],X={key:1},Y={class:"flex justify-end mt-2 gap-5"},Z=E({__name:"NoteContent",props:{content:{type:String},isEditing:{type:Boolean,default:!1}},emits:["save","cancel"],setup(e,{emit:t}){const o=e,l=B((()=>p.render(o.content))),a=t,s=S(o.content),n=()=>{a("save",s.value)},i=()=>{s.value=o.content,a("cancel")},r=(e,t)=>{t.e.relatedTarget||i()},u=S(null);return $((()=>o.isEditing),(e=>{e&&(s.value=o.content,P((()=>{u.value.$el.querySelector("textarea").focus()})))})),(t,o)=>{const a=m,c=v;return I(),H(q,null,[e.isEditing?O("",!0):(I(),H("div",K,[M("div",{innerHTML:l.value},null,8,W)])),e.isEditing?(I(),H("div",X,[V(a,{ref_key:"textareaRef",ref:u,modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=e=>s.value=e),autosize:{minRows:2,maxRows:20},onBlur:r},null,8,["modelValue"]),M("div",Y,[V(c,{size:"large",shape:"circle",variant:"text",onClick:i},{default:L((()=>[V(R(_),{slot:"icon"})])),_:1}),V(c,{size:"large",shape:"circle",variant:"text",onClick:n},{default:L((()=>[V(R(b),{slot:"icon"})])),_:1})])])):O("",!0)],64)}}}),G={class:"flex justify-between w-full"},Q={class:"flex-1"},ee={key:0,class:"text-xl font-bold"},te={class:"flex align-middle items-center gap-2"},oe={class:"flex flex-1 overflow-hidden"},le={class:"flex-1 relative h-full overflow-y-auto no-scrollbar flex flex-col gap-5"},ae={key:0,class:"flex w-full justify-end items-start gap-2 note-item"},se={class:"flex justify-end overflow-hidden h-[24px]"},ne={class:"bg-color-page bordered p-4 rounded-lg"},ie={class:"flex justify-end gap-2 note-item-tools"},re={class:"w-[24px] h-[24px]"},ue={key:1,class:"flex w-full justify-end items-start flex-row-reverse gap-2 note-item"},ce={class:"flex flex-col gap-2 w-[calc(100%-24px-1rem)]"},de={class:"flex justify-between overflow-hidden h-[24px]"},pe={class:"bg-color-page bordered p-4 rounded-lg"},me={class:"flex justify-end gap-2 note-item-tools"},ve={class:"w-[24px] h-[24px]"},fe={class:"flex w-full justify-end note-item items-start gap-2"},je={class:"flex justify-end overflow-hidden h-[24px]"},ge={class:"bg-color-page bordered p-4 rounded-lg"},xe={key:0,class:"loader"},he={class:"flex justify-end gap-2 note-item-tools"},ye={class:"w-[24px] h-[24px]"},_e={key:0,class:"w-1/2"},be=E({__name:"content",setup(p){var m;const _=S(null),E=S(null),K=s(),W=U();c();const X=d(),Y=S(),be=n(),ke=S(!1),we=i();$((()=>X.query.id),(e=>{if("/note/content"!==X.path)return void(Y.value=null);let t=e;Y.value=W.find(t)}),{immediate:!0});const Ce=B((()=>be.showLayoutHeader&&be.showFooter?"h-[calc(100vh-var(--td-comp-size-xxl)-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]":be.showLayoutHeader&&!be.showFooter?"h-[calc(100vh-var(--td-comp-size-xxxl)-2*var(--td-comp-paddingTB-m))]":!be.showLayoutHeader&&be.showFooter?"h-[calc(100vh-var(--td-comp-size-xxl)-2*var(--td-comp-paddingTB-m))]":"h-[calc(100vh-2*var(--td-comp-paddingTB-m))]"));let Te=null;const ze=S(!1),Ee=async e=>{var t;if(e.content)if(e.content.startsWith("@")){const{name:t,content:o}=function(e){const t=e.indexOf("@");if(-1===t)return null;let o=e.indexOf(" ",t);const l=e.indexOf("(",t),a=e.indexOf(")",t);return-1!==l&&-1!==a&&a>l?o=e.indexOf(" ",a):-1===o&&(o=e.length),{name:e.substring(t+1,o).trim(),content:e.substring(o).trim()}}(e.content),l="ai"===t?we.find(K.assistModel):we.enableModels.find((e=>u.getModelItemTitle(e)===t));let a=o;Y.value.notes.push(`# ${a}`);try{let e="";for(let t=0;t<Y.value.chats.length;t++){const o=Y.value.chats[t];"user"===o.role&&(e+=`<|im_start|>user\n${o.content}<|im_end|>\n`),"assistant"===o.role&&(e+=`<|im_start|>assistant\n${o.content}<|im_end|>\n`)}for(let t=0;t<Y.value.notes.length;t++){e+=`<|im_start|>user\n${Y.value.notes[t]}<|im_end|>`}e+=`<|im_start|>user\n${o}<|im_end|>`,Te=setInterval(Be,0),ze.value=!0,await J(l,e,(e=>{ze.value&&(ze.value=!1),Y.value.notes[Y.value.notes.length-1]=`# ${a}\n`+e}))}finally{null!==Te&&(clearInterval(Te),Te=null)}}else Y.value.notes.push(e.content),t=0,P((()=>{setTimeout((()=>{var e;null==(e=_.value)||e.scrollTo({top:_.value.scrollHeight,behavior:"smooth"})}),t)}));else y.error(r("pages.note.noteEmptyError"))},Be=async()=>{for(var e;null!==Te;)await new Promise((e=>setTimeout(e,300))),null==(e=_.value)||e.scrollTo({top:_.value.scrollHeight,behavior:"instant"})},Se=S(!1);let $e=S("");const He=()=>{Se.value=!1},Ie=S(null),Oe=S(null==(m=Y.value)?void 0:m.title),Me=(e,t)=>{t.e.relatedTarget||(ke.value=!1)},Ve=()=>{Y.value.title=Oe.value,ke.value=!1},Le=()=>{var e;Oe.value=null==(e=Y.value)?void 0:e.title,ke.value=!0,P((()=>{Ie.value.$el.querySelector("input").focus()}))},Re=S(-1),qe=e=>{Re.value=e},Pe=e=>{Y.value.chats[Re.value].content.text=e,Re.value=-1},Ae=()=>{Re.value=-1},De=S(-1),Fe=e=>{Y.value.notes[De.value]=e,De.value=-1},Ne=()=>{De.value=-1},Je=()=>{navigator.clipboard.writeText(JSON.stringify(Y.value)),y.success(r("pages.note.noteCopySuccess"))};return(s,n)=>{const i=x,u=v,c=j,d=f,p=g;return Y.value?(I(),A(R(h),{key:0,class:F(["note-page overflow-hidden flex flex-col",[Ce.value]]),"header-bordered":"",title:Y.value.title,bordered:!1},{header:L((()=>[M("div",G,[M("div",Q,[ke.value?(I(),A(i,{key:1,ref_key:"inputTitleRef",ref:Ie,type:"text",modelValue:Oe.value,"onUpdate:modelValue":n[0]||(n[0]=e=>Oe.value=e),onEnter:Ve,onBlur:Me},null,8,["modelValue"])):(I(),H("h1",ee,N(Y.value.title),1))]),M("div",te,[V(c,{content:R(r)("pages.note.noteRenameTooltip"),placement:"top"},{default:L((()=>[ke.value?(I(),A(u,{key:1,size:"small",shape:"circle",variant:"text",onClick:Ve},{default:L((()=>[V(R(b),{slot:"icon"})])),_:1})):(I(),A(u,{key:0,size:"small",shape:"circle",variant:"text",onClick:Le},{default:L((()=>[V(R(z),{slot:"icon"})])),_:1}))])),_:1},8,["content"]),V(u,{size:"small",shape:"circle",variant:"text",onClick:Je},{default:L((()=>[V(R(C),{slot:"icon"})])),_:1})])])])),content:L((()=>[M("div",{ref_key:"scrollable_chat",ref:_,class:"h-full note-content flex flex-col gap-1 relative",onMouseupPassive:n[1]||(n[1]=//@ts-ignore
2
+ (...e)=>{var t,o;return(null==(t=E.value)?void 0:t.showToolbox)&&(null==(o=E.value)?void 0:o.showToolbox(...e))}),onMousedownPassive:n[2]||(n[2]=//@ts-ignore
3
+ (...e)=>{var t,o;return(null==(t=E.value)?void 0:t.hideToolbox)&&(null==(o=E.value)?void 0:o.hideToolbox(...e))})},[M("div",oe,[M("div",le,[(I(!0),H(q,null,D(Y.value.chats,((o,l)=>(I(),H(q,null,["user"===o.role?(I(),H("div",ae,[M("div",{class:F(["flex flex-col gap-2",Re.value===l?"w-full":""])},[M("div",se,N(R(K).name),1),M("div",ne,[V(e,{content:o.content,isEditing:Re.value===l,onSave:Pe,onCancel:Ae},null,8,["content","isEditing"])]),M("div",ie,[V(d,{theme:"danger",content:R(r)("pages.note.noteDeleteConfirm"),placement:"bottom",onConfirm:e=>(e=>{const t=Y.value.chats.findIndex((t=>t===e));-1!==t&&Y.value.chats.splice(t,2)})(o)},{default:L((()=>[V(c,{content:R(r)("pages.note.noteDeleteTooltip")},{default:L((()=>[V(u,{size:"small",variant:"outline"},{default:L((()=>[V(R(k),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),V(c,{content:R(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:L((()=>[V(u,{size:"small",variant:"outline",onClick:e=>qe(l)},{default:L((()=>[V(R(w),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])],2),M("div",re,[V(p,{size:"24px",image:R(K).avatar},null,8,["image"])])])):"assistant"===o.role?(I(),H("div",ue,[M("div",ce,[M("div",de,[M("div",null,N(Y.value.conversationName),1)]),M("div",pe,[V(t,{content:o.content,isEditing:Re.value===l,onSave:Pe,onCancel:Ae},null,8,["content","isEditing"])]),M("div",me,[V(c,{content:R(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:L((()=>[V(u,{size:"small",variant:"outline",onClick:e=>qe(l)},{default:L((()=>[V(R(w),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),V(c,{content:R(r)("pages.note.noteCopyTooltip")},{default:L((()=>[V(u,{size:"small",variant:"outline",onClick:e=>{return t=o,navigator.clipboard.writeText(t.content.text),void y.success(r("pages.note.noteCopySuccess"));var t}},{default:L((()=>[V(R(C),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"]),V(c,{content:R(r)("pages.conversation.toggle_artifacts")},{default:L((()=>[V(u,{size:"small",variant:"outline",onClick:e=>{var t;"assistant"===(t=o).role&&(Se.value=!Se.value,Se.value&&($e.value=t.content.text))}},{default:L((()=>[V(R(T),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])]),M("div",ve,[V(p,{size:"24px",image:Y.value.conversationAvatar},null,8,["image"])])])):O("",!0)],64)))),256)),(I(!0),H(q,null,D(Y.value.notes,((e,t)=>(I(),H("div",fe,[M("div",{class:F(["flex flex-col gap-2 min-w-[300px]",De.value===t?"w-full":""])},[M("div",je,N(R(K).name),1),M("div",ge,[ze.value&&t===Y.value.notes.length-1?(I(),H("span",xe)):(I(),A(Z,{key:1,content:e,isEditing:De.value===t,onSave:Fe,onCancel:Ne},null,8,["content","isEditing"]))]),M("div",he,[V(d,{theme:"danger",content:R(r)("pages.note.noteDeleteConfirm"),placement:"bottom",onConfirm:e=>(e=>{Y.value.notes.splice(e,1)})(t)},{default:L((()=>[V(c,{content:R(r)("pages.note.noteDeleteTooltip")},{default:L((()=>[V(u,{size:"small",variant:"outline"},{default:L((()=>[V(R(k),{slot:"icon"})])),_:1})])),_:1},8,["content"])])),_:2},1032,["content","onConfirm"]),V(c,{content:R(r)("pages.conversation.button_tooltip_editor"),placement:"bottom"},{default:L((()=>[V(u,{size:"small",variant:"outline",onClick:e=>(e=>{De.value=e})(t)},{default:L((()=>[V(R(w),{slot:"icon"})])),_:2},1032,["onClick"])])),_:2},1032,["content"])])],2),M("div",ye,[V(p,{size:"24px",image:R(K).avatar},null,8,["image"])])])))),256))]),Se.value?(I(),H("div",_e,[V(o,{content:R($e),closeBtn:He},null,8,["content"])])):O("",!0)]),V(l,{ref_key:"toolbar",ref:E,parent:_.value},null,8,["parent"])],544)])),footer:L((()=>[V(a,{"show-upload":!1,"auto-complete-enabled":!0,placeholder:s.$t("pages.note.notePlaceholder"),onInput:Ee},null,8,["placeholder"])])),_:1},8,["class","title"])):O("",!0)}}});export{be as default};
.output/public/assets/core-js-pure-ZQ_YVJtv.js ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{c as r}from"./@babel-D5ZMb8W9.js";var t,n,e,u,i,o,f,c,a,s,v,l,p,y,h,d;function g(){if(n)return t;n=1;var e=function(r){return r&&r.Math===Math&&r};return t=// eslint-disable-next-line es/no-global-this -- safe
2
+ e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||// eslint-disable-next-line no-restricted-globals -- safe
3
+ e("object"==typeof self&&self)||e("object"==typeof r&&r)||e("object"==typeof t&&t)||// eslint-disable-next-line no-new-func -- fallback
4
+ function(){return this}()||Function("return this")()}function b(){return u?e:(u=1,e=function(r){try{return!!r()}catch(t){return!0}})}function m(){return o?i:(o=1,i=!b()((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})))}function S(){if(c)return f;c=1;var r=m(),t=Function.prototype,n=t.apply,e=t.call;return f="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),f}function w(){if(s)return a;s=1;var r=m(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return a=r?e:function(r){return function(){return n.apply(r,arguments)}},a}function O(){if(l)return v;l=1;var r=w(),t=r({}.toString),n=r("".slice);return v=function(r){return n(t(r),8,-1)}}function A(){if(y)return p;y=1;var r=O(),t=w();return p=function(n){if("Function"===r(n))return t(n)}}function j(){if(d)return h;d=1;var r="object"==typeof document&&document.all;return h=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}var E,x,P,T,k={};function I(){return x?E:(x=1,E=!b()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function F(){if(T)return P;T=1;var r=m(),t=Function.prototype.call;return P=r?t.bind(t):function(){return t.apply(t,arguments)},P}var R,L,z,C,D,M,_,N,G,W,B,K,V,U,H,J,q,Y,X,$,Q,Z,rr,tr,nr,er,ur,ir,or,fr,cr,ar,sr,vr,lr,pr,yr,hr={};function dr(){if(R)return hr;R=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return hr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,hr}function gr(){return z?L:(z=1,L=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function br(){if(D)return C;D=1;var r=w(),t=b(),n=O(),e=Object,u=r("".split);return C=t((function(){return!e("z").propertyIsEnumerable(0)}))?function(r){return"String"===n(r)?u(r,""):e(r)}:e}function mr(){return _?M:(_=1,M=function(r){return null==r})}function Sr(){if(G)return N;G=1;var r=mr(),t=TypeError;return N=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function wr(){if(B)return W;B=1;var r=br(),t=Sr();return W=function(n){return r(t(n))}}function Or(){if(V)return K;V=1;var r=j();return K=function(t){return"object"==typeof t?null!==t:r(t)}}function Ar(){return H?U:(H=1,U={})}function jr(){if(q)return J;q=1;var r=Ar(),t=g(),n=j(),e=function(r){return n(r)?r:void 0};return J=function(n,u){return arguments.length<2?e(r[n])||e(t[n]):r[n]&&r[n][u]||t[n]&&t[n][u]},J}function Er(){return X?Y:(X=1,Y=w()({}.isPrototypeOf))}function xr(){if(Q)return $;Q=1;var r=g().navigator,t=r&&r.userAgent;return $=t?String(t):""}function Pr(){if(rr)return Z;rr=1;var r,t,n=g(),e=xr(),u=n.process,i=n.Deno,o=u&&u.versions||i&&i.version,f=o&&o.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),Z=t}function Tr(){if(nr)return tr;nr=1;var r=Pr(),t=b(),n=g().String;return tr=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
5
+ !Symbol.sham&&r&&r<41}))}function kr(){return ur?er:(ur=1,er=Tr()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Ir(){if(or)return ir;or=1;var r=jr(),t=j(),n=Er(),e=Object;return ir=kr()?function(r){return"symbol"==typeof r}:function(u){var i=r("Symbol");return t(i)&&n(i.prototype,e(u))}}function Fr(){if(cr)return fr;cr=1;var r=String;return fr=function(t){try{return r(t)}catch(n){return"Object"}}}function Rr(){if(sr)return ar;sr=1;var r=j(),t=Fr(),n=TypeError;return ar=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Lr(){if(lr)return vr;lr=1;var r=Rr(),t=mr();return vr=function(n,e){var u=n[e];return t(u)?void 0:r(u)}}function zr(){if(yr)return pr;yr=1;var r=F(),t=j(),n=Or(),e=TypeError;return pr=function(u,i){var o,f;if("string"===i&&t(o=u.toString)&&!n(f=r(o,u)))return f;if(t(o=u.valueOf)&&!n(f=r(o,u)))return f;if("string"!==i&&t(o=u.toString)&&!n(f=r(o,u)))return f;throw new e("Can't convert object to primitive value")}}var Cr,Dr,Mr,_r,Nr,Gr,Wr,Br,Kr,Vr,Ur,Hr,Jr,qr,Yr,Xr,$r,Qr,Zr,rt,tt,nt,et,ut,it,ot,ft,ct,at={exports:{}};function st(){return Dr?Cr:(Dr=1,Cr=!0)}function vt(){if(_r)return Mr;_r=1;var r=g(),t=Object.defineProperty;return Mr=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(u){r[n]=e}return e}}function lt(){if(Nr)return at.exports;Nr=1;var r=st(),t=g(),n=vt(),e="__core-js_shared__",u=at.exports=t[e]||n(e,{});return(u.versions||(u.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),at.exports}function pt(){if(Wr)return Gr;Wr=1;var r=lt();return Gr=function(t,n){return r[t]||(r[t]=n||{})}}function yt(){if(Kr)return Br;Kr=1;var r=Sr(),t=Object;return Br=function(n){return t(r(n))}}function ht(){if(Ur)return Vr;Ur=1;var r=w(),t=yt(),n=r({}.hasOwnProperty);return Vr=Object.hasOwn||function(r,e){return n(t(r),e)}}function dt(){if(Jr)return Hr;Jr=1;var r=w(),t=0,n=Math.random(),e=r(1..toString);return Hr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function gt(){if(Yr)return qr;Yr=1;var r=g(),t=pt(),n=ht(),e=dt(),u=Tr(),i=kr(),o=r.Symbol,f=t("wks"),c=i?o.for||o:o&&o.withoutSetter||e;return qr=function(r){return n(f,r)||(f[r]=u&&n(o,r)?o[r]:c("Symbol."+r)),f[r]}}function bt(){if($r)return Xr;$r=1;var r=F(),t=Or(),n=Ir(),e=Lr(),u=zr(),i=TypeError,o=gt()("toPrimitive");return Xr=function(f,c){if(!t(f)||n(f))return f;var a,s=e(f,o);if(s){if(void 0===c&&(c="default"),a=r(s,f,c),!t(a)||n(a))return a;throw new i("Can't convert object to primitive value")}return void 0===c&&(c="number"),u(f,c)}}function mt(){if(Zr)return Qr;Zr=1;var r=bt(),t=Ir();return Qr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function St(){if(tt)return rt;tt=1;var r=g(),t=Or(),n=r.document,e=t(n)&&t(n.createElement);return rt=function(r){return e?n.createElement(r):{}}}function wt(){if(et)return nt;et=1;var r=I(),t=b(),n=St();return nt=!r&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Ot(){if(ut)return k;ut=1;var r=I(),t=F(),n=dr(),e=gr(),u=wr(),i=mt(),o=ht(),f=wt(),c=Object.getOwnPropertyDescriptor;return k.f=r?c:function(r,a){if(r=u(r),a=i(a),f)try{return c(r,a)}catch(s){}if(o(r,a))return e(!t(n.f,r,a),r[a])},k}function At(){if(ot)return it;ot=1;var r=b(),t=j(),n=/#|\.prototype\./,e=function(n,e){var c=i[u(n)];return c===f||c!==o&&(t(e)?r(e):!!e)},u=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},i=e.data={},o=e.NATIVE="N",f=e.POLYFILL="P";return it=e}function jt(){if(ct)return ft;ct=1;var r=A(),t=Rr(),n=m(),e=r(r.bind);return ft=function(r,u){return t(r),void 0===u?r:n?e(r,u):function(){return r.apply(u,arguments)}},ft}var Et,xt,Pt,Tt,kt,It,Ft,Rt,Lt,zt,Ct,Dt,Mt,_t,Nt,Gt,Wt,Bt,Kt,Vt,Ut,Ht,Jt={};function qt(){return xt?Et:(xt=1,Et=I()&&b()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function Yt(){if(Tt)return Pt;Tt=1;var r=Or(),t=String,n=TypeError;return Pt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Xt(){if(kt)return Jt;kt=1;var r=I(),t=wt(),n=qt(),e=Yt(),u=mt(),i=TypeError,o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return Jt.f=r?n?function(r,t,n){if(e(r),t=u(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var i=f(r,t);i&&i[s]&&(r[t]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return o(r,t,n)}:o:function(r,n,f){if(e(r),n=u(n),e(f),t)try{return o(r,n,f)}catch(c){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(r[n]=f.value),r},Jt}function $t(){if(Ft)return It;Ft=1;var r=I(),t=Xt(),n=gr();return It=r?function(r,e,u){return t.f(r,e,n(1,u))}:function(r,t,n){return r[t]=n,r}}function Qt(){if(Lt)return Rt;Lt=1;var r=g(),t=S(),n=A(),e=j(),u=Ot().f,i=At(),o=Ar(),f=jt(),c=$t(),a=ht(),s=function(r){var n=function(e,u,i){if(this instanceof n){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,u)}return new r(e,u,i)}return t(r,this,arguments)};return n.prototype=r.prototype,n};return Rt=function(t,v){var l,p,y,h,d,g,b,m,S,w=t.target,O=t.global,A=t.stat,j=t.proto,E=O?r:A?r[w]:r[w]&&r[w].prototype,x=O?o:o[w]||c(o,w,{})[w],P=x.prototype;for(h in v)p=!(l=i(O?h:w+(A?".":"#")+h,t.forced))&&E&&a(E,h),g=x[h],p&&(b=t.dontCallGetSet?(S=u(E,h))&&S.value:E[h]),d=p&&b?b:v[h],(l||j||typeof g!=typeof d)&&(m=t.bind&&p?f(d,r):t.wrap&&p?s(d):j&&e(d)?n(d):d,(t.sham||d&&d.sham||g&&g.sham)&&c(m,"sham",!0),c(x,h,m),j&&(a(o,y=w+"Prototype")||c(o,y,{}),c(o[y],h,d),t.real&&P&&(l||!P[h])&&c(P,h,d)))}}function Zt(){if(Ct)return zt;Ct=1;var r=O();return zt=Array.isArray||function(t){return"Array"===r(t)}}function rn(){return _t?Mt:(_t=1,Dt||(Dt=1,Qt()({target:"Array",stat:!0},{isArray:Zt()})),Mt=Ar().Array.isArray)}function tn(){return Gt?Nt:(Gt=1,Nt=rn())}function nn(){return Bt?Wt:(Bt=1,Wt=tn())}function en(){return Vt?Kt:(Vt=1,Kt=nn())}function un(){return Ht?Ut:(Ht=1,Ut=en())}var on,fn,cn,an,sn,vn,ln,pn,yn,hn,dn,gn,bn,mn,Sn,wn,On,An,jn,En,xn,Pn,Tn,kn,In,Fn,Rn,Ln={};function zn(){if(fn)return on;fn=1;var r=Math.ceil,t=Math.floor;return on=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}function Cn(){if(an)return cn;an=1;var r=zn();return cn=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function Dn(){if(vn)return sn;vn=1;var r=Cn(),t=Math.min;return sn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function Mn(){if(pn)return ln;pn=1;var r=Dn();return ln=function(t){return r(t.length)}}function _n(){if(hn)return yn;hn=1;var r=TypeError;return yn=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function Nn(){if(gn)return dn;gn=1;var r=I(),t=Xt(),n=gr();return dn=function(e,u,i){r?t.f(e,u,n(0,i)):e[u]=i}}function Gn(){if(mn)return bn;mn=1;var r={};return r[gt()("toStringTag")]="z",bn="[object z]"===String(r)}function Wn(){if(wn)return Sn;wn=1;var r=Gn(),t=j(),n=O(),e=gt()("toStringTag"),u=Object,i="Arguments"===n(function(){return arguments}());return Sn=r?n:function(r){var o,f,c;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(n){}}(o=u(r),e))?f:i?n(o):"Object"===(c=n(o))&&t(o.callee)?"Arguments":c}}function Bn(){if(An)return On;An=1;var r=w(),t=j(),n=lt(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),On=n.inspectSource}function Kn(){if(En)return jn;En=1;var r=w(),t=b(),n=j(),e=Wn(),u=jr(),i=Bn(),o=function(){},f=u("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=r(c.exec),s=!c.test(o),v=function(r){if(!n(r))return!1;try{return f(o,[],r),!0}catch(t){return!1}},l=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,i(r))}catch(t){return!0}};return l.sham=!0,jn=!f||t((function(){var r;return v(v.call)||!v(Object)||!v((function(){r=!0}))||r}))?l:v}function Vn(){if(Pn)return xn;Pn=1;var r=Zt(),t=Kn(),n=Or(),e=gt()("species"),u=Array;return xn=function(i){var o;return r(i)&&(o=i.constructor,(t(o)&&(o===u||r(o.prototype))||n(o)&&null===(o=o[e]))&&(o=void 0)),void 0===o?u:o}}function Un(){if(kn)return Tn;kn=1;var r=Vn();return Tn=function(t,n){return new(r(t))(0===n?0:n)}}function Hn(){if(Fn)return In;Fn=1;var r=b(),t=gt(),n=Pr(),e=t("species");return In=function(t){return n>=51||!r((function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}}function Jn(){if(Rn)return Ln;Rn=1;var r=Qt(),t=b(),n=Zt(),e=Or(),u=yt(),i=Mn(),o=_n(),f=Nn(),c=Un(),a=Hn(),s=gt(),v=Pr(),l=s("isConcatSpreadable"),p=v>=51||!t((function(){var r=[];return r[l]=!1,r.concat()[0]!==r})),y=function(r){if(!e(r))return!1;var t=r[l];return void 0!==t?!!t:n(r)};return r({target:"Array",proto:!0,arity:1,forced:!p||!a("concat")},{
6
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
7
+ concat:function(r){var t,n,e,a,s,v=u(this),l=c(v,0),p=0;for(t=-1,e=arguments.length;t<e;t++)if(y(s=-1===t?v:arguments[t]))for(a=i(s),o(p+a),n=0;n<a;n++,p++)n in s&&f(l,p,s[n]);else o(p+1),f(l,p++,s);return l.length=p,l}}),Ln}var qn,Yn,Xn={},$n={};function Qn(){if(Yn)return qn;Yn=1;var r=Wn(),t=String;return qn=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Zn,re,te,ne,ee,ue,ie,oe,fe,ce,ae,se,ve,le,pe,ye,he,de,ge,be={};function me(){if(re)return Zn;re=1;var r=Cn(),t=Math.max,n=Math.min;return Zn=function(e,u){var i=r(e);return i<0?t(i+u,0):n(i,u)}}function Se(){if(ne)return te;ne=1;var r=wr(),t=me(),n=Mn(),e=function(e){return function(u,i,o){var f=r(u),c=n(f);if(0===c)return!e&&-1;var a,s=t(o,c);if(e&&i!=i){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===i)return e||s||0;return!e&&-1}};return te={
8
+ // `Array.prototype.includes` method
9
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
10
+ includes:e(!0),
11
+ // `Array.prototype.indexOf` method
12
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
13
+ indexOf:e(!1)}}function we(){return ue?ee:(ue=1,ee={})}function Oe(){if(oe)return ie;oe=1;var r=w(),t=ht(),n=wr(),e=Se().indexOf,u=we(),i=r([].push);return ie=function(r,o){var f,c=n(r),a=0,s=[];for(f in c)!t(u,f)&&t(c,f)&&i(s,f);for(;o.length>a;)t(c,f=o[a++])&&(~e(s,f)||i(s,f));return s}}function Ae(){return ce?fe:(ce=1,fe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function je(){if(se)return ae;se=1;var r=Oe(),t=Ae();return ae=Object.keys||function(n){return r(n,t)}}function Ee(){if(ve)return be;ve=1;var r=I(),t=qt(),n=Xt(),e=Yt(),u=wr(),i=je();return be.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var o,f=u(t),c=i(t),a=c.length,s=0;a>s;)n.f(r,o=c[s++],f[o]);return r},be}function xe(){return pe?le:(pe=1,le=jr()("document","documentElement"))}function Pe(){if(he)return ye;he=1;var r=pt(),t=dt(),n=r("keys");return ye=function(r){return n[r]||(n[r]=t(r))}}function Te(){if(ge)return de;ge=1;var r,t=Yt(),n=Ee(),e=Ae(),u=we(),i=xe(),o=St(),f="prototype",c="script",a=Pe()("IE_PROTO"),s=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},l=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(s){}var t,n,u;p="undefined"!=typeof document?document.domain&&r?l(r):(n=o("iframe"),u="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(u),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):l(r);for(var a=e.length;a--;)delete p[f][e[a]];return p()};return u[a]=!0,de=Object.create||function(r,e){var u;return null!==r?(s[f]=t(r),u=new s,s[f]=null,u[a]=r):u=p(),void 0===e?u:n.f(u,e)}}var ke,Ie={};function Fe(){if(ke)return Ie;ke=1;var r=Oe(),t=Ae().concat("length","prototype");return Ie.f=Object.getOwnPropertyNames||function(n){return r(n,t)},Ie}var Re,Le,ze,Ce={};function De(){return Le?Re:(Le=1,Re=w()([].slice))}function Me(){if(ze)return Ce;ze=1;var r=O(),t=wr(),n=Fe().f,e=De(),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Ce.f=function(i){return u&&"Window"===r(i)?function(r){try{return n(r)}catch(t){return e(u)}}(i):n(t(i))},Ce}var _e,Ne,Ge,We,Be,Ke={};function Ve(){return _e||(_e=1,Ke.f=Object.getOwnPropertySymbols),Ke}function Ue(){if(Ge)return Ne;Ge=1;var r=$t();return Ne=function(t,n,e,u){return u&&u.enumerable?t[n]=e:r(t,n,e),t}}function He(){if(Be)return We;Be=1;var r=Xt();return We=function(t,n,e){return r.f(t,n,e)}}var Je,qe,Ye,Xe,$e,Qe,Ze,ru,tu,nu,eu,uu,iu,ou,fu,cu,au={};function su(){if(Je)return au;Je=1;var r=gt();return au.f=r,au}function vu(){if(Ye)return qe;Ye=1;var r=Ar(),t=ht(),n=su(),e=Xt().f;return qe=function(u){var i=r.Symbol||(r.Symbol={});t(i,u)||e(i,u,{value:n.f(u)})}}function lu(){if($e)return Xe;$e=1;var r=F(),t=jr(),n=gt(),e=Ue();return Xe=function(){var u=t("Symbol"),i=u&&u.prototype,o=i&&i.valueOf,f=n("toPrimitive");i&&!i[f]&&e(i,f,(function(t){return r(o,this)}),{arity:1})}}function pu(){if(Ze)return Qe;Ze=1;var r=Gn(),t=Wn();return Qe=r?{}.toString:function(){return"[object "+t(this)+"]"}}function yu(){if(tu)return ru;tu=1;var r=Gn(),t=Xt().f,n=$t(),e=ht(),u=pu(),i=gt()("toStringTag");return ru=function(o,f,c,a){var s=c?o:o&&o.prototype;s&&(e(s,i)||t(s,i,{configurable:!0,value:f}),a&&!r&&n(s,"toString",u))}}function hu(){if(eu)return nu;eu=1;var r=g(),t=j(),n=r.WeakMap;return nu=t(n)&&/native code/.test(String(n))}function du(){if(iu)return uu;iu=1;var r,t,n,e=hu(),u=g(),i=Or(),o=$t(),f=ht(),c=lt(),a=Pe(),s=we(),v="Object already initialized",l=u.TypeError,p=u.WeakMap;if(e||c.state){var y=c.state||(c.state=new p);y.get=y.get,y.has=y.has,y.set=y.set,r=function(r,t){if(y.has(r))throw new l(v);return t.facade=r,y.set(r,t),t},t=function(r){return y.get(r)||{}},n=function(r){return y.has(r)}}else{var h=a("state");s[h]=!0,r=function(r,t){if(f(r,h))throw new l(v);return t.facade=r,o(r,h,t),t},t=function(r){return f(r,h)?r[h]:{}},n=function(r){return f(r,h)}}return uu={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!i(n)||(e=t(n)).type!==r)throw new l("Incompatible receiver, "+r+" required");return e}}}}function gu(){if(fu)return ou;fu=1;var r=jt(),t=w(),n=br(),e=yt(),u=Mn(),i=Un(),o=t([].push),f=function(t){var f=1===t,c=2===t,a=3===t,s=4===t,v=6===t,l=7===t,p=5===t||v;return function(y,h,d,g){for(var b,m,S=e(y),w=n(S),O=u(w),A=r(h,d),j=0,E=g||i,x=f?E(y,O):c||l?E(y,0):void 0;O>j;j++)if((p||j in w)&&(m=A(b=w[j],j,S),t))if(f)x[j]=m;else if(m)switch(t){case 3:return!0;
14
+ // some
15
+ case 5:return b;
16
+ // find
17
+ case 6:return j;
18
+ // findIndex
19
+ case 2:o(x,b)}else switch(t){case 4:return!1;
20
+ // every
21
+ case 7:o(x,b)}return v?-1:a||s?s:x}};return ou={
22
+ // `Array.prototype.forEach` method
23
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
24
+ forEach:f(0),
25
+ // `Array.prototype.map` method
26
+ // https://tc39.es/ecma262/#sec-array.prototype.map
27
+ map:f(1),
28
+ // `Array.prototype.filter` method
29
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
30
+ filter:f(2),
31
+ // `Array.prototype.some` method
32
+ // https://tc39.es/ecma262/#sec-array.prototype.some
33
+ some:f(3),
34
+ // `Array.prototype.every` method
35
+ // https://tc39.es/ecma262/#sec-array.prototype.every
36
+ every:f(4),
37
+ // `Array.prototype.find` method
38
+ // https://tc39.es/ecma262/#sec-array.prototype.find
39
+ find:f(5),
40
+ // `Array.prototype.findIndex` method
41
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
42
+ findIndex:f(6),
43
+ // `Array.prototype.filterReject` method
44
+ // https://github.com/tc39/proposal-array-filtering
45
+ filterReject:f(7)}}var bu,mu,Su,wu={};function Ou(){return mu?bu:(mu=1,bu=Tr()&&!!Symbol.for&&!!Symbol.keyFor)}var Au,ju={};var Eu,xu,Pu,Tu={};function ku(){if(xu)return Eu;xu=1;var r=w(),t=Zt(),n=j(),e=O(),u=Qn(),i=r([].push);return Eu=function(r){if(n(r))return r;if(t(r)){for(var o=r.length,f=[],c=0;c<o;c++){var a=r[c];"string"==typeof a?i(f,a):"number"!=typeof a&&"Number"!==e(a)&&"String"!==e(a)||i(f,u(a))}var s=f.length,v=!0;return function(r,n){if(v)return v=!1,n;if(t(this))return n;for(var e=0;e<s;e++)if(f[e]===r)return n}}}}var Iu,Fu,Ru={};function Lu(){return Fu||(Fu=1,function(){if(cu)return $n;cu=1;var r=Qt(),t=g(),n=F(),e=w(),u=st(),i=I(),o=Tr(),f=b(),c=ht(),a=Er(),s=Yt(),v=wr(),l=mt(),p=Qn(),y=gr(),h=Te(),d=je(),m=Fe(),S=Me(),O=Ve(),A=Ot(),j=Xt(),E=Ee(),x=dr(),P=Ue(),T=He(),k=pt(),R=Pe(),L=we(),z=dt(),C=gt(),D=su(),M=vu(),_=lu(),N=yu(),G=du(),W=gu().forEach,B=R("hidden"),K="Symbol",V="prototype",U=G.set,H=G.getterFor(K),J=Object[V],q=t.Symbol,Y=q&&q[V],X=t.RangeError,$=t.TypeError,Q=t.QObject,Z=A.f,rr=j.f,tr=S.f,nr=x.f,er=e([].push),ur=k("symbols"),ir=k("op-symbols"),or=k("wks"),fr=!Q||!Q[V]||!Q[V].findChild,cr=function(r,t,n){var e=Z(J,t);e&&delete J[t],rr(r,t,n),e&&r!==J&&rr(J,t,e)},ar=i&&f((function(){return 7!==h(rr({},"a",{get:function(){return rr(this,"a",{value:7}).a}})).a}))?cr:rr,sr=function(r,t){var n=ur[r]=h(Y);return U(n,{type:K,tag:r,description:t}),i||(n.description=t),n},vr=function(r,t,n){r===J&&vr(ir,t,n),s(r);var e=l(t);return s(n),c(ur,e)?(n.enumerable?(c(r,B)&&r[B][e]&&(r[B][e]=!1),n=h(n,{enumerable:y(0,!1)})):(c(r,B)||rr(r,B,y(1,h(null))),r[B][e]=!0),ar(r,e,n)):rr(r,e,n)},lr=function(r,t){s(r);var e=v(t),u=d(e).concat(br(e));return W(u,(function(t){i&&!n(pr,e,t)||vr(r,t,e[t])})),r},pr=function(r){var t=l(r),e=n(nr,this,t);return!(this===J&&c(ur,t)&&!c(ir,t))&&(!(e||!c(this,t)||!c(ur,t)||c(this,B)&&this[B][t])||e)},yr=function(r,t){var n=v(r),e=l(t);if(n!==J||!c(ur,e)||c(ir,e)){var u=Z(n,e);return!u||!c(ur,e)||c(n,B)&&n[B][e]||(u.enumerable=!0),u}},hr=function(r){var t=tr(v(r)),n=[];return W(t,(function(r){c(ur,r)||c(L,r)||er(n,r)})),n},br=function(r){var t=r===J,n=tr(t?ir:v(r)),e=[];return W(n,(function(r){!c(ur,r)||t&&!c(J,r)||er(e,ur[r])})),e};o||(q=function(){if(a(Y,this))throw new $("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,e=z(r),u=function(r){var i=void 0===this?t:this;i===J&&n(u,ir,r),c(i,B)&&c(i[B],e)&&(i[B][e]=!1);var o=y(1,r);try{ar(i,e,o)}catch(f){if(!(f instanceof X))throw f;cr(i,e,o)}};return i&&fr&&ar(J,e,{configurable:!0,set:u}),sr(e,r)},P(Y=q[V],"toString",(function(){return H(this).tag})),P(q,"withoutSetter",(function(r){return sr(z(r),r)})),x.f=pr,j.f=vr,E.f=lr,A.f=yr,m.f=S.f=hr,O.f=br,D.f=function(r){return sr(C(r),r)},i&&(T(Y,"description",{configurable:!0,get:function(){return H(this).description}}),u||P(J,"propertyIsEnumerable",pr,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:q}),W(d(or),(function(r){M(r)})),r({target:K,stat:!0,forced:!o},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!i},{
46
+ // `Object.create` method
47
+ // https://tc39.es/ecma262/#sec-object.create
48
+ create:function(r,t){return void 0===t?h(r):lr(h(r),t)},
49
+ // `Object.defineProperty` method
50
+ // https://tc39.es/ecma262/#sec-object.defineproperty
51
+ defineProperty:vr,
52
+ // `Object.defineProperties` method
53
+ // https://tc39.es/ecma262/#sec-object.defineproperties
54
+ defineProperties:lr,
55
+ // `Object.getOwnPropertyDescriptor` method
56
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
57
+ getOwnPropertyDescriptor:yr}),r({target:"Object",stat:!0,forced:!o},{
58
+ // `Object.getOwnPropertyNames` method
59
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
60
+ getOwnPropertyNames:hr}),_(),N(q,K),L[B]=!0}(),function(){if(Su)return wu;Su=1;var r=Qt(),t=jr(),n=ht(),e=Qn(),u=pt(),i=Ou(),o=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!i},{for:function(r){var u=e(r);if(n(o,u))return o[u];var i=t("Symbol")(u);return o[u]=i,f[i]=u,i}})}(),function(){if(Au)return ju;Au=1;var r=Qt(),t=ht(),n=Ir(),e=Fr(),u=pt(),i=Ou(),o=u("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!i},{keyFor:function(r){if(!n(r))throw new TypeError(e(r)+" is not a symbol");if(t(o,r))return o[r]}})}(),function(){if(Pu)return Tu;Pu=1;var r=Qt(),t=jr(),n=S(),e=F(),u=w(),i=b(),o=j(),f=Ir(),c=De(),a=ku(),s=Tr(),v=String,l=t("JSON","stringify"),p=u(/./.exec),y=u("".charAt),h=u("".charCodeAt),d=u("".replace),g=u(1..toString),m=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,E=!s||i((function(){var r=t("Symbol")("stringify detection");return"[null]"!==l([r])||"{}"!==l({a:r})||"{}"!==l(Object(r))})),x=i((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")})),P=function(r,t){var u=c(arguments),i=a(t);if(o(i)||void 0!==r&&!f(r))return u[1]=function(r,t){if(o(i)&&(t=e(i,this,v(r),t)),!f(t))return t},n(l,null,u)},T=function(r,t,n){var e=y(n,t-1),u=y(n,t+1);return p(O,r)&&!p(A,u)||p(A,r)&&!p(O,e)?"\\u"+g(h(r,0),16):r};l&&r({target:"JSON",stat:!0,arity:3,forced:E||x},{
61
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
62
+ stringify:function(r,t,e){var u=c(arguments),i=n(E?P:l,null,u);return x&&"string"==typeof i?d(i,m,T):i}})}(),function(){if(Iu)return Ru;Iu=1;var r=Qt(),t=Tr(),n=b(),e=Ve(),u=yt();r({target:"Object",stat:!0,forced:!t||n((function(){e.f(1)}))},{getOwnPropertySymbols:function(r){var t=e.f;return t?t(u(r)):[]}})}()),Xn}var zu;var Cu;var Du;var Mu;var _u;var Nu;var Gu;var Wu;var Bu;var Ku;var Vu,Uu={};var Hu,Ju={};var qu;var Yu,Xu,$u,Qu={};function Zu(){return $u?Xu:($u=1,Jn(),Lu(),zu||(zu=1,vu()("asyncIterator")),Cu||(Cu=1,vu()("hasInstance")),Du||(Du=1,vu()("isConcatSpreadable")),Mu||(Mu=1,vu()("iterator")),_u||(_u=1,vu()("match")),Nu||(Nu=1,vu()("matchAll")),Gu||(Gu=1,vu()("replace")),Wu||(Wu=1,vu()("search")),Bu||(Bu=1,vu()("species")),Ku||(Ku=1,vu()("split")),function(){if(Vu)return Uu;Vu=1;var r=vu(),t=lu();r("toPrimitive"),t()}(),function(){if(Hu)return Ju;Hu=1;var r=jr(),t=vu(),n=yu();t("toStringTag"),n(r("Symbol"),"Symbol")}(),qu||(qu=1,vu()("unscopables")),function(){if(Yu)return Qu;Yu=1;var r=g();yu()(r.JSON,"JSON",!0)}(),Xu=Ar().Symbol)}var ri,ti,ni,ei,ui,ii,oi,fi,ci,ai,si,vi,li,pi,yi,hi,di,gi,bi,mi,Si,wi,Oi,Ai,ji,Ei,xi,Pi,Ti,ki,Ii,Fi,Ri,Li={};function zi(){return ti?ri:(ti=1,ri=function(){})}function Ci(){return ei?ni:(ei=1,ni={})}function Di(){if(ii)return ui;ii=1;var r=I(),t=ht(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,u=t(n,"name"),i=u&&"something"===function(){}.name,o=u&&(!r||r&&e(n,"name").configurable);return ui={EXISTS:u,PROPER:i,CONFIGURABLE:o}}function Mi(){return fi?oi:(fi=1,oi=!b()((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})))}function _i(){if(ai)return ci;ai=1;var r=ht(),t=j(),n=yt(),e=Pe(),u=Mi(),i=e("IE_PROTO"),o=Object,f=o.prototype;return ci=u?o.getPrototypeOf:function(e){var u=n(e);if(r(u,i))return u[i];var c=u.constructor;return t(c)&&u instanceof c?c.prototype:u instanceof o?f:null}}function Ni(){if(vi)return si;vi=1;var r,t,n,e=b(),u=j(),i=Or(),o=Te(),f=_i(),c=Ue(),a=gt(),s=st(),v=a("iterator"),l=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):l=!0),!i(r)||e((function(){var t={};return r[v].call(t)!==t}))?r={}:s&&(r=o(r)),u(r[v])||c(r,v,(function(){return this})),si={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:l}}function Gi(){if(pi)return li;pi=1;var r=Ni().IteratorPrototype,t=Te(),n=gr(),e=yu(),u=Ci(),i=function(){return this};return li=function(o,f,c,a){var s=f+" Iterator";return o.prototype=t(r,{next:n(+!a,c)}),e(o,s,!1,!0),u[s]=i,o}}function Wi(){if(hi)return yi;hi=1;var r=w(),t=Rr();return yi=function(n,e,u){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[u]))}catch(i){}}}function Bi(){if(gi)return di;gi=1;var r=Or();return di=function(t){return r(t)||null===t}}function Ki(){if(mi)return bi;mi=1;var r=Bi(),t=String,n=TypeError;return bi=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function Vi(){if(wi)return Si;wi=1;var r=Wi(),t=Or(),n=Sr(),e=Ki();return Si=Object.setPrototypeOf||("__proto__"in{}?function(){var u,i=!1,o={};try{(u=r(Object.prototype,"__proto__","set"))(o,[]),i=o instanceof Array}catch(f){}return function(r,o){return n(r),e(o),t(r)?(i?u(r,o):r.__proto__=o,r):r}}():void 0)}function Ui(){if(Ai)return Oi;Ai=1;var r=Qt(),t=F(),n=st(),e=Di(),u=j(),i=Gi(),o=_i(),f=Vi(),c=yu(),a=$t(),s=Ue(),v=gt(),l=Ci(),p=Ni(),y=e.PROPER,h=e.CONFIGURABLE,d=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=v("iterator"),m="keys",S="values",w="entries",O=function(){return this};return Oi=function(e,v,p,A,j,E,x){i(p,v,A);var P,T,k,I=function(r){if(r===j&&C)return C;if(!g&&r&&r in L)return L[r];switch(r){case m:case S:case w:return function(){return new p(this,r)}}return function(){return new p(this)}},F=v+" Iterator",R=!1,L=e.prototype,z=L[b]||L["@@iterator"]||j&&L[j],C=!g&&z||I(j),D="Array"===v&&L.entries||z;if(D&&(P=o(D.call(new e)))!==Object.prototype&&P.next&&(n||o(P)===d||(f?f(P,d):u(P[b])||s(P,b,O)),c(P,F,!0,!0),n&&(l[F]=O)),y&&j===S&&z&&z.name!==S&&(!n&&h?a(L,"name",S):(R=!0,C=function(){return t(z,this)})),j)if(T={values:I(S),keys:E?C:I(m),entries:I(w)},x)for(k in T)(g||R||!(k in L))&&s(L,k,T[k]);else r({target:v,proto:!0,forced:g||R},T);return n&&!x||L[b]===C||s(L,b,C,{name:j}),l[v]=C,T}}function Hi(){return Ei?ji:(Ei=1,ji=function(r,t){return{value:r,done:t}})}function Ji(){if(Pi)return xi;Pi=1;var r=wr(),t=zi(),n=Ci(),e=du(),u=Xt().f,i=Ui(),o=Hi(),f=st(),c=I(),a="Array Iterator",s=e.set,v=e.getterFor(a);xi=i(Array,"Array",(function(t,n){s(this,{type:a,target:r(t),
63
+ // target
64
+ index:0,
65
+ // next index
66
+ kind:n})}),(function(){var r=v(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,o(void 0,!0);switch(r.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var l=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&c&&"values"!==l.name)try{u(l,"name",{value:"values"})}catch(p){}return xi}function qi(){return ki?Ti:(ki=1,Ti={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Yi(){if(Ii)return Li;Ii=1,Ji();var r=qi(),t=g(),n=yu(),e=Ci();for(var u in r)n(t[u],u),e[u]=e.Array;return Li}function Xi(){if(Ri)return Fi;Ri=1;var r=Zu();return Yi(),Fi=r}var $i,Qi={};var Zi;var ro;var to,no,eo;function uo(){if(eo)return no;eo=1;var r=Xi();return function(){if($i)return Qi;$i=1;var r=gt(),t=Xt().f,n=r("metadata"),e=Function.prototype;void 0===e[n]&&t(e,n,{value:null})}(),Zi||(Zi=1,vu()("asyncDispose")),ro||(ro=1,vu()("dispose")),to||(to=1,vu()("metadata")),no=r}var io,oo,fo;function co(){if(oo)return io;oo=1;var r=jr(),t=w(),n=r("Symbol"),e=n.keyFor,u=t(n.prototype.valueOf);return io=n.isRegisteredSymbol||function(r){try{return void 0!==e(u(r))}catch(t){return!1}}}var ao,so,vo;function lo(){if(so)return ao;so=1;for(var r=pt(),t=jr(),n=w(),e=Ir(),u=gt(),i=t("Symbol"),o=i.isWellKnownSymbol,f=t("Object","getOwnPropertyNames"),c=n(i.prototype.valueOf),a=r("wks"),s=0,v=f(i),l=v.length;s<l;s++)try{var p=v[s];e(i[p])&&u(p)}catch(y){}return ao=function(r){if(o&&o(r))return!0;try{for(var t=c(r),n=0,e=f(a),u=e.length;n<u;n++)if(a[e[n]]==t)return!0}catch(y){}return!1}}var po;var yo;var ho;var go;var bo;var mo;var So;var wo,Oo,Ao,jo,Eo;function xo(){if(Ao)return Oo;Ao=1;var r=uo();return fo||(fo=1,Qt()({target:"Symbol",stat:!0},{isRegisteredSymbol:co()})),vo||(vo=1,Qt()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:lo()})),po||(po=1,vu()("customMatcher")),yo||(yo=1,vu()("observable")),ho||(ho=1,Qt()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:co()})),go||(go=1,Qt()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:lo()})),bo||(bo=1,vu()("matcher")),mo||(mo=1,vu()("metadataKey")),So||(So=1,vu()("patternMatch")),wo||(wo=1,vu()("replaceAll")),Oo=r}function Po(){return Eo?jo:(Eo=1,jo=xo())}var To,ko,Io,Fo,Ro,Lo,zo,Co,Do,Mo,_o,No,Go,Wo,Bo,Ko={};function Vo(){if(Io)return Ko;Io=1;var r=function(){if(ko)return To;ko=1;var r=w(),t=Cn(),n=Qn(),e=Sr(),u=r("".charAt),i=r("".charCodeAt),o=r("".slice),f=function(r){return function(f,c){var a,s,v=n(e(f)),l=t(c),p=v.length;return l<0||l>=p?r?"":void 0:(a=i(v,l))<55296||a>56319||l+1===p||(s=i(v,l+1))<56320||s>57343?r?u(v,l):a:r?o(v,l,l+2):s-56320+(a-55296<<10)+65536}};return To={
67
+ // `String.prototype.codePointAt` method
68
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
69
+ codeAt:f(!1),
70
+ // `String.prototype.at` method
71
+ // https://github.com/mathiasbynens/String.prototype.at
72
+ charAt:f(!0)}}().charAt,t=Qn(),n=du(),e=Ui(),u=Hi(),i="String Iterator",o=n.set,f=n.getterFor(i);return e(String,"String",(function(r){o(this,{type:i,string:t(r),index:0})}),(function(){var t,n=f(this),e=n.string,i=n.index;return i>=e.length?u(void 0,!0):(t=r(e,i),n.index+=t.length,u(t,!1))})),Ko}function Uo(){if(Ro)return Fo;Ro=1;var r=Wn(),t=Lr(),n=mr(),e=Ci(),u=gt()("iterator");return Fo=function(i){if(!n(i))return t(i,u)||t(i,"@@iterator")||e[r(i)]}}function Ho(){return zo?Lo:(zo=1,Ji(),Vo(),Lo=Uo())}function Jo(){if(Do)return Co;Do=1;var r=Ho();return Yi(),Co=r}function qo(){return _o?Mo:(_o=1,Mo=Jo())}function Yo(){return Go?No:(Go=1,No=qo())}function Xo(){return Bo?Wo:(Bo=1,Wo=Yo())}var $o,Qo,Zo,rf,tf,nf,ef,uf,of,ff,cf,af,sf,vf,lf,pf,yf,hf,df,gf,bf,mf,Sf,wf={};function Of(){if(Qo)return $o;Qo=1;var r=F(),t=Yt(),n=Lr();return $o=function(e,u,i){var o,f;t(e);try{if(!(o=n(e,"return"))){if("throw"===u)throw i;return i}o=r(o,e)}catch(c){f=!0,o=c}if("throw"===u)throw i;if(f)throw o;return t(o),i}}function Af(){if(rf)return Zo;rf=1;var r=Yt(),t=Of();return Zo=function(n,e,u,i){try{return i?e(r(u)[0],u[1]):e(u)}catch(o){t(n,"throw",o)}}}function jf(){if(nf)return tf;nf=1;var r=gt(),t=Ci(),n=r("iterator"),e=Array.prototype;return tf=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Ef(){if(uf)return ef;uf=1;var r=F(),t=Rr(),n=Yt(),e=Fr(),u=Uo(),i=TypeError;return ef=function(o,f){var c=arguments.length<2?u(o):f;if(t(c))return n(r(c,o));throw new i(e(o)+" is not iterable")},ef}function xf(){if(ff)return of;ff=1;var r=jt(),t=F(),n=yt(),e=Af(),u=jf(),i=Kn(),o=Mn(),f=Nn(),c=Ef(),a=Uo(),s=Array;return of=function(v){var l=n(v),p=i(this),y=arguments.length,h=y>1?arguments[1]:void 0,d=void 0!==h;d&&(h=r(h,y>2?arguments[2]:void 0));var g,b,m,S,w,O,A=a(l),j=0;if(!A||this===s&&u(A))for(g=o(l),b=p?new this(g):s(g);g>j;j++)O=d?h(l[j],j):l[j],f(b,j,O);else for(b=p?new this:[],w=(S=c(l,A)).next;!(m=t(w,S)).done;j++)O=d?e(S,h,[m.value,j],!0):m.value,f(b,j,O);return b.length=j,b},of}function Pf(){if(af)return cf;af=1;var r=gt()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,(function(){throw 2}))}catch(u){}return cf=function(n,e){try{if(!e&&!t)return!1}catch(u){return!1}var i=!1;try{var o={};o[r]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(u){}return i}}function Tf(){return lf?vf:(lf=1,Vo(),function(){if(sf)return wf;sf=1;var r=Qt(),t=xf();r({target:"Array",stat:!0,forced:!Pf()((function(r){Array.from(r)}))},{from:t})}(),vf=Ar().Array.from)}function kf(){return yf?pf:(yf=1,pf=Tf())}function If(){return df?hf:(df=1,hf=kf())}function Ff(){return bf?gf:(bf=1,gf=If())}function Rf(){return Sf?mf:(Sf=1,mf=Ff())}var Lf,zf,Cf,Df,Mf,_f,Nf,Gf,Wf,Bf,Kf,Vf,Uf,Hf,Jf,qf={};function Yf(){if(Cf)return zf;Cf=1;var r=g(),t=Ar();return zf=function(n,e){var u=t[n+"Prototype"],i=u&&u[e];if(i)return i;var o=r[n],f=o&&o.prototype;return f&&f[e]}}function Xf(){return Mf?Df:(Mf=1,function(){if(Lf)return qf;Lf=1;var r=Qt(),t=Zt(),n=Kn(),e=Or(),u=me(),i=Mn(),o=wr(),f=Nn(),c=gt(),a=Hn(),s=De(),v=a("slice"),l=c("species"),p=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(r,c){var a,v,h,d=o(this),g=i(d),b=u(r,g),m=u(void 0===c?g:c,g);if(t(d)&&(a=d.constructor,(n(a)&&(a===p||t(a.prototype))||e(a)&&null===(a=a[l]))&&(a=void 0),a===p||void 0===a))return s(d,b,m);for(v=new(void 0===a?p:a)(y(m-b,0)),h=0;b<m;b++,h++)b in d&&f(v,h,d[b]);return v.length=h,v}})}(),Df=Yf()("Array","slice"))}function $f(){if(Nf)return _f;Nf=1;var r=Er(),t=Xf(),n=Array.prototype;return _f=function(e){var u=e.slice;return e===n||r(n,e)&&u===n.slice?t:u}}function Qf(){return Wf?Gf:(Wf=1,Gf=$f())}function Zf(){return Kf?Bf:(Kf=1,Bf=Qf())}function rc(){return Uf?Vf:(Uf=1,Vf=Zf())}function tc(){return Jf?Hf:(Jf=1,Hf=rc())}var nc,ec,uc,ic,oc,fc,cc,ac,sc,vc,lc={exports:{}},pc={};function yc(){if(ec)return lc.exports;ec=1,function(){if(nc)return pc;nc=1;var r=Qt(),t=I(),n=Xt().f;r({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!t},{defineProperty:n})}();var r=Ar().Object,t=lc.exports=function(t,n,e){return r.defineProperty(t,n,e)};return r.defineProperty.sham&&(t.sham=!0),lc.exports}function hc(){return ic?uc:(ic=1,uc=yc())}function dc(){return fc?oc:(fc=1,oc=hc())}function gc(){return ac?cc:(ac=1,cc=dc())}function bc(){return vc?sc:(vc=1,sc=gc())}var mc,Sc,wc,Oc,Ac,jc,Ec,xc={};function Pc(){return wc?Sc:(wc=1,function(){if(mc)return xc;mc=1;var r=Qt(),t=gu().map;r({target:"Array",proto:!0,forced:!Hn()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}(),Sc=Yf()("Array","map"))}function Tc(){if(Ac)return Oc;Ac=1;var r=Er(),t=Pc(),n=Array.prototype;return Oc=function(e){var u=e.map;return e===n||r(n,e)&&u===n.map?t:u}}function kc(){return Ec?jc:(Ec=1,jc=Tc())}var Ic,Fc,Rc,Lc={};function zc(){return Rc?Fc:(Rc=1,function(){if(Ic)return Lc;Ic=1;var r=Qt(),t=Se().includes,n=b(),e=zi();r({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}(),Fc=Yf()("Array","includes"))}var Cc,Dc,Mc,_c,Nc,Gc,Wc,Bc,Kc,Vc,Uc,Hc,Jc,qc,Yc,Xc,$c,Qc,Zc,ra={};function ta(){if(Dc)return Cc;Dc=1;var r=Or(),t=O(),n=gt()("match");return Cc=function(e){var u;return r(e)&&(void 0!==(u=e[n])?!!u:"RegExp"===t(e))}}function na(){if(_c)return Mc;_c=1;var r=ta(),t=TypeError;return Mc=function(n){if(r(n))throw new t("The method doesn't accept regular expressions");return n}}function ea(){if(Gc)return Nc;Gc=1;var r=gt()("match");return Nc=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(u){}}return!1}}function ua(){return Kc?Bc:(Kc=1,function(){if(Wc)return ra;Wc=1;var r=Qt(),t=w(),n=na(),e=Sr(),u=Qn(),i=ea(),o=t("".indexOf);r({target:"String",proto:!0,forced:!i("includes")},{includes:function(r){return!!~o(u(e(this)),u(n(r)),arguments.length>1?arguments[1]:void 0)}})}(),Bc=Yf()("String","includes"))}function ia(){if(Uc)return Vc;Uc=1;var r=Er(),t=zc(),n=ua(),e=Array.prototype,u=String.prototype;return Vc=function(i){var o=i.includes;return i===e||r(e,i)&&o===e.includes?t:"string"==typeof i||i===u||r(u,i)&&o===u.includes?n:o}}function oa(){return Jc?Hc:(Jc=1,Hc=ia())}function fa(){return Yc?qc:(Yc=1,Jn(),qc=Yf()("Array","concat"))}function ca(){if($c)return Xc;$c=1;var r=Er(),t=fa(),n=Array.prototype;return Xc=function(e){var u=e.concat;return e===n||r(n,e)&&u===n.concat?t:u}}function aa(){return Zc?Qc:(Zc=1,Qc=ca())}var sa,va,la,pa,ya,ha,da,ga,ba,ma,Sa,wa={};function Oa(){if(va)return sa;va=1;var r=I(),t=Zt(),n=TypeError,e=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return sa=u?function(r,u){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=u}:function(r,t){return r.length=t}}function Aa(){if(pa)return la;pa=1;var r=Fr(),t=TypeError;return la=function(n,e){if(!delete n[e])throw new t("Cannot delete property "+r(e)+" of "+r(n))}}function ja(){return da?ha:(da=1,function(){if(ya)return wa;ya=1;var r=Qt(),t=yt(),n=me(),e=Cn(),u=Mn(),i=Oa(),o=_n(),f=Un(),c=Nn(),a=Aa(),s=Hn()("splice"),v=Math.max,l=Math.min;r({target:"Array",proto:!0,forced:!s},{splice:function(r,s){var p,y,h,d,g,b,m=t(this),S=u(m),w=n(r,S),O=arguments.length;for(0===O?p=y=0:1===O?(p=0,y=S-w):(p=O-2,y=l(v(e(s),0),S-w)),o(S+p-y),h=f(m,y),d=0;d<y;d++)(g=w+d)in m&&c(h,d,m[g]);if(h.length=y,p<y){for(d=w;d<S-y;d++)b=d+p,(g=d+y)in m?m[b]=m[g]:a(m,b);for(d=S;d>S-y+p;d--)a(m,d-1)}else if(p>y)for(d=S-y;d>w;d--)b=d+p-1,(g=d+y-1)in m?m[b]=m[g]:a(m,b);for(d=0;d<p;d++)m[d+w]=arguments[d+2];return i(m,S-y+p),h}})}(),ha=Yf()("Array","splice"))}function Ea(){if(ba)return ga;ba=1;var r=Er(),t=ja(),n=Array.prototype;return ga=function(e){var u=e.splice;return e===n||r(n,e)&&u===n.splice?t:u}}function xa(){return Sa?ma:(Sa=1,ma=Ea())}var Pa,Ta,ka,Ia,Fa,Ra,La,za={};function Ca(){return ka?Ta:(ka=1,function(){if(Pa)return za;Pa=1;var r=Qt(),t=gu().filter;r({target:"Array",proto:!0,forced:!Hn()("filter")},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}(),Ta=Yf()("Array","filter"))}function Da(){if(Fa)return Ia;Fa=1;var r=Er(),t=Ca(),n=Array.prototype;return Ia=function(e){var u=e.filter;return e===n||r(n,e)&&u===n.filter?t:u}}function Ma(){return La?Ra:(La=1,Ra=Da())}var _a,Na,Ga,Wa,Ba,Ka,Va,Ua,Ha,Ja,qa,Ya,Xa,$a,Qa,Za,rs,ts={};function ns(){if(Na)return _a;Na=1;var r=De(),t=Math.floor,n=function(e,u){var i=e.length;if(i<8)for(var o,f,c=1;c<i;){for(f=c,o=e[c];f&&u(e[f-1],o)>0;)e[f]=e[--f];f!==c++&&(e[f]=o)}else for(var a=t(i/2),s=n(r(e,0,a),u),v=n(r(e,a),u),l=s.length,p=v.length,y=0,h=0;y<l||h<p;)e[y+h]=y<l&&h<p?u(s[y],v[h])<=0?s[y++]:v[h++]:y<l?s[y++]:v[h++];return e};return _a=n}function es(){if(Wa)return Ga;Wa=1;var r=b();return Ga=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){return 1},1)}))}}function us(){if(Ka)return Ba;Ka=1;var r=xr().match(/firefox\/(\d+)/i);return Ba=!!r&&+r[1]}function is(){return Ua?Va:(Ua=1,Va=/MSIE|Trident/.test(xr()))}function os(){if(Ja)return Ha;Ja=1;var r=xr().match(/AppleWebKit\/(\d+)\./);return Ha=!!r&&+r[1]}function fs(){if(qa)return ts;qa=1;var r=Qt(),t=w(),n=Rr(),e=yt(),u=Mn(),i=Aa(),o=Qn(),f=b(),c=ns(),a=es(),s=us(),v=is(),l=Pr(),p=os(),y=[],h=t(y.sort),d=t(y.push),g=f((function(){y.sort(void 0)})),m=f((function(){y.sort(null)})),S=a("sort"),O=!f((function(){if(l)return l<70;if(!(s&&s>3)){if(v)return!0;if(p)return p<603;var r,t,n,e,u="";for(r=65;r<76;r++){switch(t=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(e=0;e<47;e++)y.push({k:t+e,v:n})}for(y.sort((function(r,t){return t.v-r.v})),e=0;e<y.length;e++)t=y[e].k.charAt(0),u.charAt(u.length-1)!==t&&(u+=t);return"DGBEFHACIJK"!==u}}));return r({target:"Array",proto:!0,forced:g||!m||!S||!O},{sort:function(r){void 0!==r&&n(r);var t=e(this);if(O)return void 0===r?h(t):h(t,r);var f,a,s=[],v=u(t);for(a=0;a<v;a++)a in t&&d(s,t[a]);for(c(s,function(r){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==r?+r(t,n)||0:o(t)>o(n)?1:-1}}(r)),f=u(s),a=0;a<f;)t[a]=s[a++];for(;a<v;)i(t,a++);return t}}),ts}function cs(){return Xa?Ya:(Xa=1,fs(),Ya=Yf()("Array","sort"))}function as(){if(Qa)return $a;Qa=1;var r=Er(),t=cs(),n=Array.prototype;return $a=function(e){var u=e.sort;return e===n||r(n,e)&&u===n.sort?t:u}}function ss(){return rs?Za:(rs=1,Za=as())}var vs,ls,ps,ys,hs,ds,gs,bs,ms,Ss,ws,Os,As,js,Es,xs,Ps,Ts,ks,Is,Fs,Rs={},Ls={exports:{}};function zs(){return ls?vs:(ls=1,vs=b()((function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})))}function Cs(){if(ys)return ps;ys=1;var r=b(),t=Or(),n=O(),e=zs(),u=Object.isExtensible,i=r((function(){}));return ps=i||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!u||u(r)))}:u}function Ds(){return ds?hs:(ds=1,hs=!b()((function(){return Object.isExtensible(Object.preventExtensions({}))})))}function Ms(){if(gs)return Ls.exports;gs=1;var r=Qt(),t=w(),n=we(),e=Or(),u=ht(),i=Xt().f,o=Fe(),f=Me(),c=Cs(),a=dt(),s=Ds(),v=!1,l=a("meta"),p=0,y=function(r){i(r,l,{value:{objectID:"O"+p++,
73
+ // object ID
74
+ weakData:{}}})},h=Ls.exports={enable:function(){h.enable=function(){},v=!0;var n=o.f,e=t([].splice),u={};u[l]=1,n(u).length&&(o.f=function(r){for(var t=n(r),u=0,i=t.length;u<i;u++)if(t[u]===l){e(t,u,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!u(r,l)){if(!c(r))return"F";if(!t)return"E";y(r)}return r[l].objectID},getWeakData:function(r,t){if(!u(r,l)){if(!c(r))return!0;if(!t)return!1;y(r)}return r[l].weakData},onFreeze:function(r){return s&&v&&c(r)&&!u(r,l)&&y(r),r}};return n[l]=!0,Ls.exports}function _s(){if(ms)return bs;ms=1;var r=jt(),t=F(),n=Yt(),e=Fr(),u=jf(),i=Mn(),o=Er(),f=Ef(),c=Uo(),a=Of(),s=TypeError,v=function(r,t){this.stopped=r,this.result=t},l=v.prototype;return bs=function(p,y,h){var d,g,b,m,S,w,O,A=h&&h.that,j=!(!h||!h.AS_ENTRIES),E=!(!h||!h.IS_RECORD),x=!(!h||!h.IS_ITERATOR),P=!(!h||!h.INTERRUPTED),T=r(y,A),k=function(r){return d&&a(d,"normal",r),new v(!0,r)},I=function(r){return j?(n(r),P?T(r[0],r[1],k):T(r[0],r[1])):P?T(r,k):T(r)};if(E)d=p.iterator;else if(x)d=p;else{if(!(g=c(p)))throw new s(e(p)+" is not iterable");if(u(g)){for(b=0,m=i(p);m>b;b++)if((S=I(p[b]))&&o(l,S))return S;return new v(!1)}d=f(p,g)}for(w=E?p.next:d.next;!(O=t(w,d)).done;){try{S=I(O.value)}catch(F){a(d,"throw",F)}if("object"==typeof S&&S&&o(l,S))return S}return new v(!1)}}function Ns(){if(ws)return Ss;ws=1;var r=Er(),t=TypeError;return Ss=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Gs(){if(As)return Os;As=1;var r=Qt(),t=g(),n=Ms(),e=b(),u=$t(),i=_s(),o=Ns(),f=j(),c=Or(),a=mr(),s=yu(),v=Xt().f,l=gu().forEach,p=I(),y=du(),h=y.set,d=y.getterFor;return Os=function(y,g,b){var m,S=-1!==y.indexOf("Map"),w=-1!==y.indexOf("Weak"),O=S?"set":"add",A=t[y],j=A&&A.prototype,E={};if(p&&f(A)&&(w||j.forEach&&!e((function(){(new A).entries().next()})))){var x=(m=g((function(r,t){h(o(r,x),{type:y,collection:new A}),a(t)||i(t,r[O],{that:r,AS_ENTRIES:S})}))).prototype,P=d(y);l(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(r){var t="add"===r||"set"===r;!(r in j)||w&&"clear"===r||u(x,r,(function(n,e){var u=P(this).collection;if(!t&&w&&!c(n))return"get"===r&&void 0;var i=u[r](0===n?0:n,e);return t?this:i}))})),w||v(x,"size",{configurable:!0,get:function(){return P(this).collection.size}})}else m=b.getConstructor(g,y,S,O),n.enable();return s(m,y,!1,!0),E[y]=m,r({global:!0,forced:!0},E),w||b.setStrong(m,y,S),m}}function Ws(){if(Es)return js;Es=1;var r=Ue();return js=function(t,n,e){for(var u in n)e&&e.unsafe&&t[u]?t[u]=n[u]:r(t,u,n[u],e);return t}}function Bs(){if(Ps)return xs;Ps=1;var r=jr(),t=He(),n=gt(),e=I(),u=n("species");return xs=function(n){var i=r(n);e&&i&&!i[u]&&t(i,u,{configurable:!0,get:function(){return this}})}}function Ks(){if(ks)return Ts;ks=1;var r=Te(),t=He(),n=Ws(),e=jt(),u=Ns(),i=mr(),o=_s(),f=Ui(),c=Hi(),a=Bs(),s=I(),v=Ms().fastKey,l=du(),p=l.set,y=l.getterFor;return Ts={getConstructor:function(f,c,a,l){var h=f((function(t,n){u(t,d),p(t,{type:c,index:r(null),first:null,last:null,size:0}),s||(t.size=0),i(n)||o(n,t[l],{that:t,AS_ENTRIES:a})})),d=h.prototype,g=y(c),b=function(r,t,n){var e,u,i=g(r),o=m(r,t);return o?o.value=n:(i.last=o={index:u=v(t,!0),key:t,value:n,previous:e=i.last,next:null,removed:!1},i.first||(i.first=o),e&&(e.next=o),s?i.size++:r.size++,"F"!==u&&(i.index[u]=o)),r},m=function(r,t){var n,e=g(r),u=v(t);if("F"!==u)return e.index[u];for(n=e.first;n;n=n.next)if(n.key===t)return n};return n(d,{
75
+ // `{ Map, Set }.prototype.clear()` methods
76
+ // https://tc39.es/ecma262/#sec-map.prototype.clear
77
+ // https://tc39.es/ecma262/#sec-set.prototype.clear
78
+ clear:function(){for(var t=g(this),n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;t.first=t.last=null,t.index=r(null),s?t.size=0:this.size=0},
79
+ // `{ Map, Set }.prototype.delete(key)` methods
80
+ // https://tc39.es/ecma262/#sec-map.prototype.delete
81
+ // https://tc39.es/ecma262/#sec-set.prototype.delete
82
+ delete:function(r){var t=this,n=g(t),e=m(t,r);if(e){var u=e.next,i=e.previous;delete n.index[e.index],e.removed=!0,i&&(i.next=u),u&&(u.previous=i),n.first===e&&(n.first=u),n.last===e&&(n.last=i),s?n.size--:t.size--}return!!e},
83
+ // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
84
+ // https://tc39.es/ecma262/#sec-map.prototype.foreach
85
+ // https://tc39.es/ecma262/#sec-set.prototype.foreach
86
+ forEach:function(r){for(var t,n=g(this),u=e(r,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(u(t.value,t.key,this);t&&t.removed;)t=t.previous},
87
+ // `{ Map, Set}.prototype.has(key)` methods
88
+ // https://tc39.es/ecma262/#sec-map.prototype.has
89
+ // https://tc39.es/ecma262/#sec-set.prototype.has
90
+ has:function(r){return!!m(this,r)}}),n(d,a?{
91
+ // `Map.prototype.get(key)` method
92
+ // https://tc39.es/ecma262/#sec-map.prototype.get
93
+ get:function(r){var t=m(this,r);return t&&t.value},
94
+ // `Map.prototype.set(key, value)` method
95
+ // https://tc39.es/ecma262/#sec-map.prototype.set
96
+ set:function(r,t){return b(this,0===r?0:r,t)}}:{
97
+ // `Set.prototype.add(value)` method
98
+ // https://tc39.es/ecma262/#sec-set.prototype.add
99
+ add:function(r){return b(this,r=0===r?0:r,r)}}),s&&t(d,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(r,t,n){var e=t+" Iterator",u=y(t),i=y(e);f(r,t,(function(r,t){p(this,{type:e,target:r,state:u(r),kind:t,last:null})}),(function(){for(var r=i(this),t=r.kind,n=r.last;n&&n.removed;)n=n.previous;return r.target&&(r.last=n=n?n.next:r.state.first)?c("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(r.target=null,c(void 0,!0))}),n?"entries":"values",!n,!0),a(t)}},Ts}function Vs(){return Fs||(Fs=1,Is||(Is=1,Gs()("Set",(function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}}),Ks()))),Rs}var Us,Hs,Js,qs,Ys,Xs,$s,Qs,Zs,rv,tv,nv,ev,uv,iv,ov,fv,cv,av,sv,vv,lv,pv,yv={};function hv(){if(Hs)return Us;Hs=1;var r=Fr(),t=TypeError;return Us=function(n){if("object"==typeof n&&"size"in n&&"has"in n&&"add"in n&&"delete"in n&&"keys"in n)return n;throw new t(r(n)+" is not a set")}}function dv(){return qs?Js:(qs=1,Js=function(r,t){return 1===t?function(t,n){return t[r](n)}:function(t,n,e){return t[r](n,e)}})}function gv(){if(Xs)return Ys;Xs=1;var r=jr(),t=dv(),n=r("Set"),e=n.prototype;return Ys={Set:n,add:t("add",1),has:t("has",1),remove:t("delete",1),proto:e}}function bv(){if(Qs)return $s;Qs=1;var r=F();return $s=function(t,n,e){for(var u,i,o=e?t:t.iterator,f=t.next;!(u=r(f,o)).done;)if(void 0!==(i=n(u.value)))return i}}function mv(){if(rv)return Zs;rv=1;var r=bv();return Zs=function(t,n,e){return e?r(t.keys(),n,!0):t.forEach(n)}}function Sv(){if(nv)return tv;nv=1;var r=gv(),t=mv(),n=r.Set,e=r.add;return tv=function(r){var u=new n;return t(r,(function(r){e(u,r)})),u}}function wv(){return uv?ev:(uv=1,ev=function(r){return r.size})}function Ov(){return ov?iv:(ov=1,iv=function(r){return{iterator:r,next:r.next,done:!1}})}function Av(){if(cv)return fv;cv=1;var r=Rr(),t=Yt(),n=F(),e=Cn(),u=Ov(),i="Invalid size",o=RangeError,f=TypeError,c=Math.max,a=function(t,n){this.set=t,this.size=c(n,0),this.has=r(t.has),this.keys=r(t.keys)};return a.prototype={getIterator:function(){return u(t(n(this.keys,this.set)))},includes:function(r){return n(this.has,this.set,r)}},fv=function(r){t(r);var n=+r.size;if(n!=n)throw new f(i);var u=e(n);if(u<0)throw new o(i);return new a(r,u)}}function jv(){if(sv)return av;sv=1;var r=hv(),t=gv(),n=Sv(),e=wv(),u=Av(),i=mv(),o=bv(),f=t.has,c=t.remove;return av=function(t){var a=r(this),s=u(t),v=n(a);return e(a)<=s.size?i(a,(function(r){s.includes(r)&&c(v,r)})):o(s.getIterator(),(function(r){f(a,r)&&c(v,r)})),v}}function Ev(){return lv?vv:(lv=1,vv=function(){return!1})}var xv,Pv,Tv,kv={};function Iv(){if(Pv)return xv;Pv=1;var r=hv(),t=gv(),n=wv(),e=Av(),u=mv(),i=bv(),o=t.Set,f=t.add,c=t.has;return xv=function(t){var a=r(this),s=e(t),v=new o;return n(a)>s.size?i(s.getIterator(),(function(r){c(a,r)&&f(v,r)})):u(a,(function(r){s.includes(r)&&f(v,r)})),v}}var Fv,Rv,Lv,zv={};function Cv(){if(Rv)return Fv;Rv=1;var r=hv(),t=gv().has,n=wv(),e=Av(),u=mv(),i=bv(),o=Of();return Fv=function(f){var c=r(this),a=e(f);if(n(c)<=a.size)return!1!==u(c,(function(r){if(a.includes(r))return!1}),!0);var s=a.getIterator();return!1!==i(s,(function(r){if(t(c,r))return o(s,"normal",!1)}))}}var Dv,Mv,_v,Nv={};function Gv(){if(Mv)return Dv;Mv=1;var r=hv(),t=wv(),n=mv(),e=Av();return Dv=function(u){var i=r(this),o=e(u);return!(t(i)>o.size)&&!1!==n(i,(function(r){if(!o.includes(r))return!1}),!0)}}var Wv,Bv,Kv,Vv={};function Uv(){if(Bv)return Wv;Bv=1;var r=hv(),t=gv().has,n=wv(),e=Av(),u=bv(),i=Of();return Wv=function(o){var f=r(this),c=e(o);if(n(f)<c.size)return!1;var a=c.getIterator();return!1!==u(a,(function(r){if(!t(f,r))return i(a,"normal",!1)}))}}var Hv,Jv,qv,Yv={};function Xv(){if(Jv)return Hv;Jv=1;var r=hv(),t=gv(),n=Sv(),e=Av(),u=bv(),i=t.add,o=t.has,f=t.remove;return Hv=function(t){var c=r(this),a=e(t).getIterator(),s=n(c);return u(a,(function(r){o(c,r)?f(s,r):i(s,r)})),s}}var $v,Qv,Zv,rl,tl,nl,el,ul={};function il(){if(Qv)return $v;Qv=1;var r=hv(),t=gv().add,n=Sv(),e=Av(),u=bv();return $v=function(i){var o=r(this),f=e(i).getIterator(),c=n(o);return u(f,(function(r){t(c,r)})),c}}function ol(){return tl?rl:(tl=1,Ji(),Vs(),function(){if(pv)return yv;pv=1;var r=Qt(),t=jv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("difference",(function(r){return 0===r.size}))},{difference:t})}(),function(){if(Tv)return kv;Tv=1;var r=Qt(),t=b(),n=Iv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("intersection",(function(r){return 2===r.size&&r.has(1)&&r.has(2)}))||t((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:n})}(),function(){if(Lv)return zv;Lv=1;var r=Qt(),t=Cv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("isDisjointFrom",(function(r){return!r}))},{isDisjointFrom:t})}(),function(){if(_v)return Nv;_v=1;var r=Qt(),t=Gv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("isSubsetOf",(function(r){return r}))},{isSubsetOf:t})}(),function(){if(Kv)return Vv;Kv=1;var r=Qt(),t=Uv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("isSupersetOf",(function(r){return!r}))},{isSupersetOf:t})}(),function(){if(qv)return Yv;qv=1;var r=Qt(),t=Xv();r({target:"Set",proto:!0,real:!0,forced:!Ev()("symmetricDifference")},{symmetricDifference:t})}(),function(){if(Zv)return ul;Zv=1;var r=Qt(),t=il();r({target:"Set",proto:!0,real:!0,forced:!Ev()("union")},{union:t})}(),Vo(),rl=Ar().Set)}function fl(){if(el)return nl;el=1;var r=ol();return Yi(),nl=r}var cl,al,sl,vl,ll,pl={};function yl(){return sl?al:(sl=1,function(){if(cl)return pl;cl=1;var r=Qt(),t=yt(),n=je();r({target:"Object",stat:!0,forced:b()((function(){n(1)}))},{keys:function(r){return n(t(r))}})}(),al=Ar().Object.keys)}function hl(){return ll?vl:(ll=1,vl=yl())}var dl,gl,bl,ml,Sl,wl,Ol,Al={};function jl(){if(gl)return dl;gl=1;var r=I(),t=w(),n=F(),e=b(),u=je(),i=Ve(),o=dr(),f=yt(),c=br(),a=Object.assign,s=Object.defineProperty,v=t([].concat);return dl=!a||e((function(){if(r&&1!==a({b:1},a(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[e]=7,i.split("").forEach((function(r){n[r]=r})),7!==a({},t)[e]||u(a({},n)).join("")!==i}))?function(t,e){for(var a=f(t),s=arguments.length,l=1,p=i.f,y=o.f;s>l;)for(var h,d=c(arguments[l++]),g=p?v(u(d),p(d)):u(d),b=g.length,m=0;b>m;)h=g[m++],r&&!n(y,d,h)||(a[h]=d[h]);return a}:a,dl}function El(){return Sl?ml:(Sl=1,function(){if(bl)return Al;bl=1;var r=Qt(),t=jl();r({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t})}(),ml=Ar().Object.assign)}function xl(){return Ol?wl:(Ol=1,wl=El())}var Pl,Tl,kl,Il,Fl,Rl,Ll,zl,Cl,Dl={};function Ml(){if(Tl)return Pl;Tl=1;var r=yt(),t=me(),n=Mn();return Pl=function(e){for(var u=r(this),i=n(u),o=arguments.length,f=t(o>1?arguments[1]:void 0,i),c=o>2?arguments[2]:void 0,a=void 0===c?i:t(c,i);a>f;)u[f++]=e;return u},Pl}function _l(){return Fl?Il:(Fl=1,function(){if(kl)return Dl;kl=1;var r=Qt(),t=Ml(),n=zi();r({target:"Array",proto:!0},{fill:t}),n("fill")}(),Il=Yf()("Array","fill"))}function Nl(){if(Ll)return Rl;Ll=1;var r=Er(),t=_l(),n=Array.prototype;return Rl=function(e){var u=e.fill;return e===n||r(n,e)&&u===n.fill?t:u}}function Gl(){return Cl?zl:(Cl=1,zl=Nl())}var Wl,Bl,Kl,Vl,Ul,Hl,Jl,ql={};function Yl(){return Kl?Bl:(Kl=1,function(){if(Wl)return ql;Wl=1;var r=Qt(),t=gu().find,n=zi(),e="find",u=!0;e in[]&&Array(1)[e]((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{find:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),n(e)}(),Bl=Yf()("Array","find"))}function Xl(){if(Ul)return Vl;Ul=1;var r=Er(),t=Yl(),n=Array.prototype;return Vl=function(e){var u=e.find;return e===n||r(n,e)&&u===n.find?t:u}}function $l(){return Jl?Hl:(Jl=1,Hl=Xl())}export{Po as a,Xo as b,Rf as c,tc as d,bc as e,kc as f,oa as g,kf as h,Xi as i,Qf as j,aa as k,xa as l,Ma as m,ss as n,fl as o,hl as p,xl as q,un as r,Gl as s,$l as t};
.output/public/assets/cose-base-kQthUiMK.js ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{r as t}from"./layout-base-DqRk0Tgc.js";var e,i={exports:{}};function r(){return e?i.exports:(e=1,r=function(t){
2
+ /******/
3
+ return function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={
4
+ /******/
5
+ i:r,
6
+ /******/
7
+ l:!1,
8
+ /******/
9
+ exports:{}
10
+ /******/};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{
11
+ /******/
12
+ configurable:!1,
13
+ /******/
14
+ enumerable:!0,
15
+ /******/
16
+ get:r
17
+ /******/})},i.n=function(t){var e=t&&t.__esModule?
18
+ /******/function(){return t.default}:
19
+ /******/function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([
20
+ /* 0 */
21
+ /***/
22
+ function(e,i){e.exports=t},
23
+ /* 1 */
24
+ /***/
25
+ function(t,e,i){var r=i(0).FDLayoutConstants;function o(){}for(var n in r)o[n]=r[n];o.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,o.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,o.DEFAULT_COMPONENT_SEPERATION=60,o.TILE=!0,o.TILING_PADDING_VERTICAL=10,o.TILING_PADDING_HORIZONTAL=10,o.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=o},
26
+ /* 2 */
27
+ /***/
28
+ function(t,e,i){var r=i(0).FDLayoutEdge;function o(t,e,i){r.call(this,t,e,i)}for(var n in o.prototype=Object.create(r.prototype),r)o[n]=r[n];t.exports=o},
29
+ /* 3 */
30
+ /***/
31
+ function(t,e,i){var r=i(0).LGraph;function o(t,e,i){r.call(this,t,e,i)}for(var n in o.prototype=Object.create(r.prototype),r)o[n]=r[n];t.exports=o},
32
+ /* 4 */
33
+ /***/
34
+ function(t,e,i){var r=i(0).LGraphManager;function o(t){r.call(this,t)}for(var n in o.prototype=Object.create(r.prototype),r)o[n]=r[n];t.exports=o},
35
+ /* 5 */
36
+ /***/
37
+ function(t,e,i){var r=i(0).FDLayoutNode,o=i(0).IMath;function n(t,e,i,o){r.call(this,t,e,i,o)}for(var a in n.prototype=Object.create(r.prototype),r)n[a]=r[a];n.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*o.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},n.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),o=0;o<r.length;o++)null==(i=r[o]).getChild()?(i.moveBy(t,e),i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},n.prototype.setPred1=function(t){this.pred1=t},n.prototype.getPred1=function(){return pred1},n.prototype.getPred2=function(){return pred2},n.prototype.setNext=function(t){this.next=t},n.prototype.getNext=function(){return next},n.prototype.setProcessed=function(t){this.processed=t},n.prototype.isProcessed=function(){return processed},t.exports=n},
38
+ /* 6 */
39
+ /***/
40
+ function(t,e,i){var r=i(0).FDLayout,o=i(4),n=i(3),a=i(5),s=i(2),h=i(1),d=i(0).FDLayoutConstants,g=i(0).LayoutConstants,l=i(0).Point,p=i(0).PointD,c=i(0).Layout,u=i(0).Integer,f=i(0).IGeometry,v=i(0).LGraph,T=i(0).Transform;function E(){r.call(this),this.toBeTiled={}}for(var m in E.prototype=Object.create(r.prototype),r)E[m]=r[m];E.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},E.prototype.newGraph=function(t){return new n(null,this.graphManager,t)},E.prototype.newNode=function(t){return new a(this.graphManager,t)},E.prototype.newEdge=function(t){return new s(null,null,t)},E.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=d.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=d.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=d.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},E.prototype.layout=function(){return g.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},E.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)h.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(i));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,o=t[i].id;e[o]={id:o,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},E.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===d.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},E.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],r=this.graphManager.getGraphs(),o=r.length;for(e=0;e<o;e++)(t=r[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},E.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,i=new Set;for(e=0;e<t.length;e++){var r=t[e];if(!i.has(r)){var o=r.getSource(),n=r.getTarget();if(o==n)r.getBendpoints().push(new p),r.getBendpoints().push(new p),this.createDummyNodesForBendpoints(r),i.add(r);else{var a=[];if(a=(a=a.concat(o.getEdgeListToNode(n))).concat(n.getEdgeListToNode(o)),!i.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var h=a[s];h.getBendpoints().push(new p),this.createDummyNodesForBendpoints(h)}a.forEach((function(t){i.add(t)}))}}}if(i.size==t.length)break}},E.prototype.positionNodesRadially=function(t){for(var e=new l(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,o=0,n=0,a=new p(0,0),s=0;s<t.length;s++){s%i==0&&(n=0,o=r,0!=s&&(o+=h.DEFAULT_COMPONENT_SEPERATION),r=0);var d=t[s],u=c.findCenterOfTree(d);e.x=n,e.y=o,(a=E.radialLayout(d,u,e)).y>r&&(r=Math.floor(a.y)),n=Math.floor(a.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(g.WORLD_CENTER_X-a.x/2,g.WORLD_CENTER_Y-a.y/2))},E.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(e,null,0,359,0,r);var o=v.calculateBounds(t),n=new T;n.setDeviceOrgX(o.getMinX()),n.setDeviceOrgY(o.getMinY()),n.setWorldOrgX(i.x),n.setWorldOrgY(i.y);for(var a=0;a<t.length;a++)t[a].transform(n);var s=new p(o.getMaxX(),o.getMaxY());return n.inverseTransformPoint(s)},E.branchRadialLayout=function(t,e,i,r,o,n){var a=(r-i+1)/2;a<0&&(a+=180);var s=(a+i)%360*f.TWO_PI/360,h=o*Math.cos(s),d=o*Math.sin(s);t.setCenter(h,d);var g=[],l=(g=g.concat(t.getEdges())).length;null!=e&&l--;for(var p,c=0,u=g.length,v=t.getEdgesBetween(e);v.length>1;){var T=v[0];v.splice(0,1);var m=g.indexOf(T);m>=0&&g.splice(m,1),u--,l--}p=null!=e?(g.indexOf(v[0])+1)%u:0;for(var N=Math.abs(r-i)/l,y=p;c!=l;y=++y%u){var w=g[y].getOtherEnd(t);if(w!=e){var A=(i+c*N)%360,C=(A+N)%360;E.branchRadialLayout(w,t,A,C,o+n,n),c++}}},E.maxDiagonalInTree=function(t){for(var e=u.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();r>e&&(e=r)}return e},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),o=0;o<r.length;o++){var n=(s=r[o]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=n.id&&this.getToBeTiled(n)||i.push(s)}for(o=0;o<i.length;o++){var s,h=(s=i[o]).getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(s)}Object.keys(e).forEach((function(i){if(e[i].length>1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var o=e[i][0].getParent(),n=new a(t.graphManager);n.id=r,n.paddingLeft=o.paddingLeft||0,n.paddingRight=o.paddingRight||0,n.paddingBottom=o.paddingBottom||0,n.paddingTop=o.paddingTop||0,t.idToDummyNode[r]=n;var s=t.getGraphManager().add(t.newGraph(),n),h=o.getChild();h.add(n);for(var d=0;d<e[i].length;d++){var g=e[i][d];h.remove(g),s.add(g)}}}))},E.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},E.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(i){var r=t.idToDummyNode[i];e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height}))},E.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,o=e.paddingTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,o)}},E.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(i){var r=t.idToDummyNode[i],o=r.paddingLeft,n=r.paddingTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,o,n)}))},E.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),o=0;o<r.length;o++){var n=r[o];if(this.getNodeDegree(n)>0)return this.toBeTiled[e]=!1,!1;if(null!=n.getChild()){if(!this.getToBeTiled(n))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[n.id]=!1}return this.toBeTiled[e]=!0,!0},E.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var o=e[r];o.getSource().id!==o.getTarget().id&&(i+=1)}return i},E.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var o=i[r];e+=this.getNodeDegreeWithChildren(o)}return e},E.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},E.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},E.prototype.adjustLocations=function(t,e,i,r,o){i+=o;for(var n=e+=r,a=0;a<t.rows.length;a++){var s=t.rows[a];e=n;for(var h=0,d=0;d<s.length;d++){var g=s[d];g.rect.x=e,g.rect.y=i,e+=g.rect.width+t.horizontalPadding,g.rect.height>h&&(h=g.rect.height)}i+=h+t.verticalPadding}},E.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(r){var o=e[r];i.tiledMemberPack[r]=i.tileNodes(t[r],o.paddingLeft+o.paddingRight),o.rect.width=i.tiledMemberPack[r].width,o.rect.height=i.tiledMemberPack[r].height}))},E.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,
41
+ // assume minHeight equals to minWidth
42
+ verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0}));for(var r=0;r<t.length;r++){var o=t[r];0==i.rows.length?this.insertNodeToRow(i,o,0,e):this.canAddHorizontal(i,o.rect.width,o.rect.height)?this.insertNodeToRow(i,o,this.getShortestRowIndex(i),e):this.insertNodeToRow(i,o,i.rows.length,e),this.shiftToLastRow(i)}return i},E.prototype.insertNodeToRow=function(t,e,i,r){var o=r;i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(o),t.rowHeight.push(0));var n=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(n+=t.horizontalPadding),t.rowWidth[i]=n,t.width<n&&(t.width=n);var a=e.rect.height;i>0&&(a+=t.verticalPadding);var s=0;a>t.rowHeight[i]&&(s=t.rowHeight[i],t.rowHeight[i]=a,s=t.rowHeight[i]-s),t.height+=s,t.rows[i].push(e)},E.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},E.prototype.getLongestRowIndex=function(t){for(var e=-1,i=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},E.prototype.canAddHorizontal=function(t,e,i){var r=this.getShortestRowIndex(t);if(r<0)return!0;var o=t.rowWidth[r];if(o+t.horizontalPadding+e<=t.width)return!0;var n,a,s=0;return t.rowHeight[r]<i&&r>0&&(s=i+t.verticalPadding-t.rowHeight[r]),n=t.width-o>=e+t.horizontalPadding?(t.height+s)/(o+e+t.horizontalPadding):(t.height+s)/t.width,s=i+t.verticalPadding,(a=t.width<e?(t.height+s)/e:(t.height+s)/t.width)<1&&(a=1/a),n<1&&(n=1/n),n<a},E.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],o=r[r.length-1],n=o.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>n&&e!=i){r.splice(-1,1),t.rows[i].push(o),t.rowWidth[e]=t.rowWidth[e]-n,t.rowWidth[i]=t.rowWidth[i]+n,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var a=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);e>0&&(a+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=a,t.rowHeight[i]<o.height+t.verticalPadding&&(t.rowHeight[i]=o.height+t.verticalPadding);var d=t.rowHeight[e]+t.rowHeight[i];t.height+=d-h,this.shiftToLastRow(t)}},E.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},E.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},E.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var r=this.graphManager.getAllNodes(),o=[];i=!1;for(var n=0;n<r.length;n++)1!=(t=r[n]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(o.push([t,t.getEdges()[0],t.getOwner()]),i=!0);if(1==i){for(var a=[],s=0;s<o.length;s++)1==o[s][0].getEdges().length&&(a.push(o[s]),o[s][0].getOwner().remove(o[s][0]));e.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},E.prototype.growTree=function(t){for(var e,i=t[t.length-1],r=0;r<i.length;r++)e=i[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},E.prototype.findPlaceforPrunedNode=function(t){var e,i,r=t[0],o=(i=r==t[1].source?t[1].target:t[1].source).startX,n=i.finishX,a=i.startY,s=i.finishY,h=[0,0,0,0];if(a>0)for(var g=o;g<=n;g++)h[0]+=this.grid[g][a-1].length+this.grid[g][a].length-1;if(n<this.grid.length-1)for(g=a;g<=s;g++)h[1]+=this.grid[n+1][g].length+this.grid[n][g].length-1;if(s<this.grid[0].length-1)for(g=o;g<=n;g++)h[2]+=this.grid[g][s+1].length+this.grid[g][s].length-1;if(o>0)for(g=a;g<=s;g++)h[3]+=this.grid[o-1][g].length+this.grid[o][g].length-1;for(var l,p,c=u.MAX_VALUE,f=0;f<h.length;f++)h[f]<c?(c=h[f],l=1,p=f):h[f]==c&&l++;if(3==l&&0==c)0==h[0]&&0==h[1]&&0==h[2]?e=1:0==h[0]&&0==h[1]&&0==h[3]?e=0:0==h[0]&&0==h[2]&&0==h[3]?e=3:0==h[1]&&0==h[2]&&0==h[3]&&(e=2);else if(2==l&&0==c){var v=Math.floor(2*Math.random());e=0==h[0]&&0==h[1]?0==v?0:1:0==h[0]&&0==h[2]?0==v?0:2:0==h[0]&&0==h[3]?0==v?0:3:0==h[1]&&0==h[2]?0==v?1:2:0==h[1]&&0==h[3]?0==v?1:3:0==v?2:3}else e=4==l&&0==c?v=Math.floor(4*Math.random()):p;0==e?r.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-d.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==e?r.setCenter(i.getCenterX()+i.getWidth()/2+d.DEFAULT_EDGE_LENGTH+r.getWidth()/2,i.getCenterY()):2==e?r.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+d.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(i.getCenterX()-i.getWidth()/2-d.DEFAULT_EDGE_LENGTH-r.getWidth()/2,i.getCenterY())},t.exports=E},
43
+ /* 7 */
44
+ /***/
45
+ function(t,e,i){var r={};r.layoutBase=i(0),r.CoSEConstants=i(1),r.CoSEEdge=i(2),r.CoSEGraph=i(3),r.CoSEGraphManager=i(4),r.CoSELayout=i(6),r.CoSENode=i(5),t.exports=r}
46
+ /******/])},i.exports=r(t()));var r}export{r};
.output/public/assets/cytoscape-D84qPEQv.js ADDED
The diff for this file is too large to render. See raw diff
 
.output/public/assets/cytoscape-cose-bilkent-CoOmxuE9.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{g as t}from"./@babel-D5ZMb8W9.js";import{r as n}from"./cose-base-kQthUiMK.js";var e,o,i={exports:{}};const a=t(e?i.exports:(e=1,i.exports=(o=n(),
2
+ /******/function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={
3
+ /******/
4
+ i:o,
5
+ /******/
6
+ l:!1,
7
+ /******/
8
+ exports:{}
9
+ /******/};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{
10
+ /******/
11
+ configurable:!1,
12
+ /******/
13
+ enumerable:!0,
14
+ /******/
15
+ get:o
16
+ /******/})},e.n=function(t){var n=t&&t.__esModule?
17
+ /******/function(){return t.default}:
18
+ /******/function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=1)}([
19
+ /* 0 */
20
+ /***/
21
+ function(t,n){t.exports=o},
22
+ /* 1 */
23
+ /***/
24
+ function(t,n,e){var o=e(0).layoutBase.LayoutConstants,i=e(0).layoutBase.FDLayoutConstants,a=e(0).CoSEConstants,r=e(0).CoSELayout,s=e(0).CoSENode,d=e(0).layoutBase.PointD,l=e(0).layoutBase.DimensionD,u={
25
+ // Called on `layoutready`
26
+ ready:function(){},
27
+ // Called on `layoutstop`
28
+ stop:function(){},
29
+ // 'draft', 'default' or 'proof"
30
+ // - 'draft' fast cooling rate
31
+ // - 'default' moderate cooling rate
32
+ // - "proof" slow cooling rate
33
+ quality:"default",
34
+ // include labels in node dimensions
35
+ nodeDimensionsIncludeLabels:!1,
36
+ // number of ticks per frame; higher is faster but more jerky
37
+ refresh:30,
38
+ // Whether to fit the network view after when done
39
+ fit:!0,
40
+ // Padding on fit
41
+ padding:10,
42
+ // Whether to enable incremental mode
43
+ randomize:!0,
44
+ // Node repulsion (non overlapping) multiplier
45
+ nodeRepulsion:4500,
46
+ // Ideal edge (non nested) length
47
+ idealEdgeLength:50,
48
+ // Divisor to compute edge forces
49
+ edgeElasticity:.45,
50
+ // Nesting factor (multiplier) to compute ideal edge length for nested edges
51
+ nestingFactor:.1,
52
+ // Gravity force (constant)
53
+ gravity:.25,
54
+ // Maximum number of iterations to perform
55
+ numIter:2500,
56
+ // For enabling tiling
57
+ tile:!0,
58
+ // Type of layout animation. The option set is {'during', 'end', false}
59
+ animate:"end",
60
+ // Duration for animate:end
61
+ animationDuration:500,
62
+ // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
63
+ tilingPaddingVertical:10,
64
+ // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
65
+ tilingPaddingHorizontal:10,
66
+ // Gravity range (constant) for compounds
67
+ gravityRangeCompound:1.5,
68
+ // Gravity force (constant) for compounds
69
+ gravityCompound:1,
70
+ // Gravity range (constant)
71
+ gravityRange:3.8,
72
+ // Initial cooling factor for incremental layout
73
+ initialEnergyOnIncremental:.5};function p(t){this.options=function(t,n){var e={};for(var o in t)e[o]=t[o];for(var o in n)e[o]=n[o];return e}(u,t),g(this.options)}var g=function(t){null!=t.nodeRepulsion&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?o.QUALITY=0:"proof"==t.quality?o.QUALITY=2:o.QUALITY=1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!t.randomize,a.ANIMATE=i.ANIMATE=o.ANIMATE=t.animate,a.TILE=t.tile,a.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};p.prototype.run=function(){var t,n,e=this.options;this.idToLNode={};var o=this.layout=new r,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var a=o.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),d=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),o);for(var l=0;l<d.length;l++){var u=d[l],p=this.idToLNode[u.data("source")],g=this.idToLNode[u.data("target")];p!==g&&0==p.getEdgesBetween(g).length&&(a.add(o.newEdge(),p,g).id=u.id())}var c=function(t,n){"number"==typeof t&&(t=n);var e=t.data("id"),o=i.idToLNode[e];return{x:o.getRect().getCenterX(),y:o.getRect().getCenterY()}},E=function a(){for(var r,s=function(){e.fit&&e.cy.fit(e.eles,e.padding),t||(t=!0,i.cy.one("layoutready",e.ready),i.cy.trigger({type:"layoutready",layout:i}))},d=i.options.refresh,l=0;l<d&&!r;l++)r=i.stopped||i.layout.tick();if(r)return o.checkLayoutSuccess()&&!o.isSubLayout&&o.doPostLayout(),o.tilingPostLayout&&o.tilingPostLayout(),o.isLayoutFinished=!0,i.options.eles.nodes().positions(c),s(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),n&&cancelAnimationFrame(n),void(t=!1);var u=i.layout.getPositionsData();e.eles.nodes().positions((function(t,n){if("number"==typeof t&&(t=n),!t.isParent()){for(var e=t.id(),o=u[e],i=t;null==o&&(o=u[i.data("parent")]||u["DummyCompound_"+i.data("parent")],u[e]=o,null!=(i=i.parent()[0])););return null!=o?{x:o.x,y:o.y}:{x:t.position("x"),y:t.position("y")}}})),s(),n=requestAnimationFrame(a)};return o.addListener("layoutstarted",(function(){"during"===i.options.animate&&(n=requestAnimationFrame(E))})),o.runLayout(),"during"!==this.options.animate&&(i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,c),t=!1),this},p.prototype.getTopMostNodes=function(t){for(var n={},e=0;e<t.length;e++)n[t[e].id()]=!0;return t.filter((function(t,e){"number"==typeof t&&(t=e);for(var o=t.parent()[0];null!=o;){if(n[o.id()])return!1;o=o.parent()[0]}return!0}))},p.prototype.processChildrenList=function(t,n,e){for(var o=n.length,i=0;i<o;i++){var a,r,u=n[i],p=u.children(),g=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((a=null!=u.outerWidth()&&null!=u.outerHeight()?t.add(new s(e.graphManager,new d(u.position("x")-g.w/2,u.position("y")-g.h/2),new l(parseFloat(g.w),parseFloat(g.h)))):t.add(new s(this.graphManager))).id=u.data("id"),a.paddingLeft=parseInt(u.css("padding")),a.paddingTop=parseInt(u.css("padding")),a.paddingRight=parseInt(u.css("padding")),a.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()){var c=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,E=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,y=u.css("text-halign");a.labelWidth=c,a.labelHeight=E,a.labelPos=y}this.idToLNode[u.data("id")]=a,isNaN(a.rect.x)&&(a.rect.x=0),isNaN(a.rect.y)&&(a.rect.y=0),null!=p&&p.length>0&&(r=e.getGraphManager().add(e.newGraph(),a),this.processChildrenList(r,p,e))}},p.prototype.stop=function(){return this.stopped=!0,this};var c=function(t){t("layout","cose-bilkent",p)};"undefined"!=typeof cytoscape&&c(cytoscape),t.exports=c}
74
+ /******/]))));export{a as c};
.output/public/assets/d3-BW2GlWy8.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./d3-transition-swcnLnsT.js";import"./d3-zoom-D4Vc87xO.js";
.output/public/assets/d3-array-B0evfIyH.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function t(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function n(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function r(r){let e,u,l;function f(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;u(t[e],n)<0?r=e+1:o=e}while(r<o)}return r}return 2!==r.length?(e=t,u=(n,o)=>t(r(n),o),l=(t,n)=>r(t)-n):(e=r===t||r===n?r:o,u=r,l=r),{left:f,center:function(t,n,r=0,o=t.length){const e=f(t,n,r,o-1);return e>r&&l(t[e-1],n)>-l(t[e],n)?e-1:e},right:function(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;u(t[e],n)<=0?r=e+1:o=e}while(r<o)}return r}}}function o(){return 0}const e=r(t).right;r((function(t){return null===t?NaN:+t})).center;const u=Math.sqrt(50),l=Math.sqrt(10),f=Math.sqrt(2);function i(t,n,r){const o=(n-t)/Math.max(0,r),e=Math.floor(Math.log10(o)),a=o/Math.pow(10,e),c=a>=u?10:a>=l?5:a>=f?2:1;let s,h,d;return e<0?(d=Math.pow(10,-e)/c,s=Math.round(t*d),h=Math.round(n*d),s/d<t&&++s,h/d>n&&--h,d=-d):(d=Math.pow(10,e)*c,s=Math.round(t/d),h=Math.round(n/d),s*d<t&&++s,h*d>n&&--h),h<s&&.5<=r&&r<2?i(t,n,2*r):[s,h,d]}function a(t,n,r){if(!((r=+r)>0))return[];if((t=+t)===(n=+n))return[t];const o=n<t,[e,u,l]=o?i(n,t,r):i(t,n,r);if(!(u>=e))return[];const f=u-e+1,a=new Array(f);if(o)if(l<0)for(let i=0;i<f;++i)a[i]=(u-i)/-l;else for(let i=0;i<f;++i)a[i]=(u-i)*l;else if(l<0)for(let i=0;i<f;++i)a[i]=(e+i)/-l;else for(let i=0;i<f;++i)a[i]=(e+i)*l;return a}function c(t,n,r){return i(t=+t,n=+n,r=+r)[2]}function s(t,n,r){r=+r;const o=(n=+n)<(t=+t),e=o?c(n,t,r):c(t,n,r);return(o?-1:1)*(e<0?1/-e:e)}function h(t,n){let r;if(void 0===n)for(const o of t)null!=o&&(r<o||void 0===r&&o>=o)&&(r=o);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r<e||void 0===r&&e>=e)&&(r=e)}return r}function d(t,n){let r;if(void 0===n)for(const o of t)null!=o&&(r>o||void 0===r&&o>=o)&&(r=o);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r>e||void 0===r&&e>=e)&&(r=e)}return r}export{a,e as b,c,r as d,h as e,d as m,s as t};
.output/public/assets/d3-axis-pCwzqJ1S.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function t(t){return t}var n=1e-6;function r(t){return"translate("+t+",0)"}function e(t){return"translate(0,"+t+")"}function i(t){return n=>+t(n)}function a(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function o(){return!this.__axis}function u(u,c){var l=[],s=null,f=null,d=6,m=6,h=3,g="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,p=1===u||4===u?-1:1,k=4===u||2===u?"x":"y",x=1===u||3===u?r:e;function y(r){var e=null==s?c.ticks?c.ticks.apply(c,l):c.domain():s,y=null==f?c.tickFormat?c.tickFormat.apply(c,l):t:f,A=Math.max(d,0)+h,M=c.range(),v=+M[0]+g,w=+M[M.length-1]+g,_=(c.bandwidth?a:i)(c.copy(),g),F=r.selection?r.selection():r,V=F.selectAll(".domain").data([null]),b=F.selectAll(".tick").data(e,c).order(),z=b.exit(),H=b.enter().append("g").attr("class","tick"),C=b.select("line"),S=b.select("text");V=V.merge(V.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(H),C=C.merge(H.append("line").attr("stroke","currentColor").attr(k+"2",p*d)),S=S.merge(H.append("text").attr("fill","currentColor").attr(k,p*A).attr("dy",1===u?"0em":3===u?"0.71em":"0.32em")),r!==F&&(V=V.transition(r),b=b.transition(r),C=C.transition(r),S=S.transition(r),z=z.transition(r).attr("opacity",n).attr("transform",(function(t){return isFinite(t=_(t))?x(t+g):this.getAttribute("transform")})),H.attr("opacity",n).attr("transform",(function(t){var n=this.parentNode.__axis;return x((n&&isFinite(n=n(t))?n:_(t))+g)}))),z.remove(),V.attr("d",4===u||2===u?m?"M"+p*m+","+v+"H"+g+"V"+w+"H"+p*m:"M"+g+","+v+"V"+w:m?"M"+v+","+p*m+"V"+g+"H"+w+"V"+p*m:"M"+v+","+g+"H"+w),b.attr("opacity",1).attr("transform",(function(t){return x(_(t)+g)})),C.attr(k+"2",p*d),S.attr(k,p*A).text(y),F.filter(o).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===u?"start":4===u?"end":"middle"),F.each((function(){this.__axis=_}))}return y.scale=function(t){return arguments.length?(c=t,y):c},y.ticks=function(){return l=Array.from(arguments),y},y.tickArguments=function(t){return arguments.length?(l=null==t?[]:Array.from(t),y):l.slice()},y.tickValues=function(t){return arguments.length?(s=null==t?null:Array.from(t),y):s&&s.slice()},y.tickFormat=function(t){return arguments.length?(f=t,y):f},y.tickSize=function(t){return arguments.length?(d=m=+t,y):d},y.tickSizeInner=function(t){return arguments.length?(d=+t,y):d},y.tickSizeOuter=function(t){return arguments.length?(m=+t,y):m},y.tickPadding=function(t){return arguments.length?(h=+t,y):h},y.offset=function(t){return arguments.length?(g=+t,y):g},y}function c(t){return u(1,t)}function l(t){return u(3,t)}export{l as a,c as b};
.output/public/assets/d3-brush-CAg10rWz.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./d3-transition-swcnLnsT.js";
.output/public/assets/d3-chord-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-color-D5ULnJIe.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ function t(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function e(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function r(){}var i=.7,n=1/i,a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",o=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),u=new RegExp(`^rgb\\(${h},${h},${h}\\)$`),c=new RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),g=new RegExp(`^rgba\\(${h},${h},${h},${s}\\)$`),p=new RegExp(`^hsl\\(${s},${h},${h}\\)$`),b=new RegExp(`^hsla\\(${s},${h},${h},${s}\\)$`),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function f(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function w(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=o.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?m(e):3===r?new x(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?$(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?$(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new x(e[1],e[2],e[3],1):(e=u.exec(t))?new x(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=c.exec(t))?$(e[1],e[2],e[3],e[4]):(e=g.exec(t))?$(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?E(e[1],e[2]/100,e[3]/100,1):(e=b.exec(t))?E(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?m(d[t]):"transparent"===t?new x(NaN,NaN,NaN,0):null}function m(t){return new x(t>>16&255,t>>8&255,255&t,1)}function $(t,e,r,i){return i<=0&&(t=e=r=NaN),new x(t,e,r,i)}function k(t){return t instanceof r||(t=w(t)),t?new x((t=t.rgb()).r,t.g,t.b,t.opacity):new x}function N(t,e,r,i){return 1===arguments.length?k(t):new x(t,e,r,null==i?1:i)}function x(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function v(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function M(){const t=q(this.opacity);return`${1===t?"rgb(":"rgba("}${H(this.r)}, ${H(this.g)}, ${H(this.b)}${1===t?")":`, ${t})`}`}function q(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function H(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function R(t){return((t=H(t))<16?"0":"")+t.toString(16)}function E(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new I(t,e,r,i)}function j(t){if(t instanceof I)return new I(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=w(t)),!t)return new I;if(t instanceof I)return t;var e=(t=t.rgb()).r/255,i=t.g/255,n=t.b/255,a=Math.min(e,i,n),s=Math.max(e,i,n),h=NaN,o=s-a,l=(s+a)/2;return o?(h=e===s?(i-n)/o+6*(i<n):i===s?(n-e)/o+2:(e-i)/o+4,o/=l<.5?s+a:2-s-a,h*=60):o=l>0&&l<1?0:h,new I(h,o,l,t.opacity)}function I(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function O(t){return(t=(t||0)%360)<0?t+360:t}function P(t){return Math.max(0,Math.min(1,t||0))}function S(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}t(r,w,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:f,
2
+ // Deprecated! Use color.formatHex.
3
+ formatHex:f,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return j(this).formatHsl()},formatRgb:y,toString:y}),t(x,N,e(r,{brighter(t){return t=null==t?n:Math.pow(n,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?i:Math.pow(i,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new x(H(this.r),H(this.g),H(this.b),q(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,
4
+ // Deprecated! Use color.formatHex.
5
+ formatHex:v,formatHex8:function(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:M,toString:M})),t(I,(function(t,e,r,i){return 1===arguments.length?j(t):new I(t,e,r,null==i?1:i)}),e(r,{brighter(t){return t=null==t?n:Math.pow(n,t),new I(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?i:Math.pow(i,t),new I(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new x(S(t>=240?t-240:t+120,n,i),S(t,n,i),S(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new I(O(this.h),P(this.s),P(this.l),q(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=q(this.opacity);return`${1===t?"hsl(":"hsla("}${O(this.h)}, ${100*P(this.s)}%, ${100*P(this.l)}%${1===t?")":`, ${t})`}`}}));const z=Math.PI/180,C=180/Math.PI,L=.96422,A=.82521,B=4/29,D=6/29,F=3*D*D,G=D*D*D;function J(t){if(t instanceof K)return new K(t.l,t.a,t.b,t.opacity);if(t instanceof X)return Y(t);t instanceof x||(t=k(t));var e,r,i=V(t.r),n=V(t.g),a=V(t.b),s=Q((.2225045*i+.7168786*n+.0606169*a)/1);return i===n&&n===a?e=r=s:(e=Q((.4360747*i+.3850649*n+.1430804*a)/L),r=Q((.0139322*i+.0971045*n+.7141733*a)/A)),new K(116*s-16,500*(e-s),200*(s-r),t.opacity)}function K(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}function Q(t){return t>G?Math.pow(t,1/3):t/F+B}function T(t){return t>D?t*t*t:F*(t-B)}function U(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function V(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function W(t,e,r,i){return 1===arguments.length?function(t){if(t instanceof X)return new X(t.h,t.c,t.l,t.opacity);if(t instanceof K||(t=J(t)),0===t.a&&0===t.b)return new X(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*C;return new X(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new X(t,e,r,null==i?1:i)}function X(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function Y(t){if(isNaN(t.h))return new K(t.l,0,0,t.opacity);var e=t.h*z;return new K(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t(K,(function(t,e,r,i){return 1===arguments.length?J(t):new K(t,e,r,null==i?1:i)}),e(r,{brighter(t){return new K(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new K(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new x(U(3.1338561*(e=L*T(e))-1.6168667*(t=1*T(t))-.4906146*(r=A*T(r))),U(-.9787684*e+1.9161415*t+.033454*r),U(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),t(X,W,e(r,{brighter(t){return new X(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new X(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return Y(this).rgb()}}));export{w as c,W as h,N as r};
.output/public/assets/d3-contour-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-delaunay-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-dispatch-Chq_f_hl.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var n={value:()=>{}};function r(){for(var n,r=0,e=arguments.length,o={};r<e;++r){if(!(n=arguments[r]+"")||n in o||/[\s.]/.test(n))throw new Error("illegal type: "+n);o[n]=[]}return new t(o)}function t(n){this._=n}function e(n,r){for(var t,e=0,o=n.length;e<o;++e)if((t=n[e]).name===r)return t.value}function o(r,t,e){for(var o=0,i=r.length;o<i;++o)if(r[o].name===t){r[o]=n,r=r.slice(0,o).concat(r.slice(o+1));break}return null!=e&&r.push({name:t,value:e}),r}t.prototype=r.prototype={constructor:t,on:function(n,r){var t,i,l=this._,a=(i=l,(n+"").trim().split(/^|\s+/).map((function(n){var r="",t=n.indexOf(".");if(t>=0&&(r=n.slice(t+1),n=n.slice(0,t)),n&&!i.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}}))),f=-1,u=a.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++f<u;)if(t=(n=a[f]).type)l[t]=o(l[t],n.name,r);else if(null==r)for(t in l)l[t]=o(l[t],n.name,null);return this}for(;++f<u;)if((t=(n=a[f]).type)&&(t=e(l[t],n.name)))return t},copy:function(){var n={},r=this._;for(var e in r)n[e]=r[e].slice();return new t(n)},call:function(n,r){if((t=arguments.length-2)>0)for(var t,e,o=new Array(t),i=0;i<t;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,t=(e=this._[n]).length;i<t;++i)e[i].value.apply(r,o)},apply:function(n,r,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var e=this._[n],o=0,i=e.length;o<i;++o)e[o].value.apply(r,t)}};export{r as d};
.output/public/assets/d3-drag-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-dsv-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-ease-Cx6bG2vu.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function n(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}export{n as c};
.output/public/assets/d3-fetch-XwboCDHR.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function t(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var r,e=(r="image/svg+xml",(e,n)=>function(r,e){return fetch(r,e).then(t)}(e,n).then((t=>(new DOMParser).parseFromString(t,r))));export{e as s};
.output/public/assets/d3-force-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-format-C0lSXcPg.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function t(t,i){if((n=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i(i){return(i=t(Math.abs(i)))?i[1]:NaN}var n,r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function e(t){if(!(i=r.exec(t)))throw new Error("invalid format: "+t);var i;return new a({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function a(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function o(i,n){var r=t(i,n);if(!r)return i+"";var e=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+e:e.length>a+1?e.slice(0,a+1)+"."+e.slice(a+1):e+new Array(a-e.length+2).join("0")}e.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const s={"%":(t,i)=>(100*t).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>o(100*t,i),r:o,s:function(i,r){var e=t(i,r);if(!e)return i+"";var a=e[0],o=e[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,h=a.length;return s===h?a:s>h?a+new Array(s-h+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+t(i,Math.max(0,r+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function h(t){return t}var c,l,u,f=Array.prototype.map,m=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d(t){var r,a,o=void 0===t.grouping||void 0===t.thousands?h:(r=f.call(t.grouping,Number),a=t.thousands+"",function(t,i){for(var n=t.length,e=[],o=0,s=r[0],h=0;n>0&&s>0&&(h+s+1>i&&(s=Math.max(1,i-h)),e.push(t.substring(n-=s,n+s)),!((h+=s+1)>i));)s=r[o=(o+1)%r.length];return e.reverse().join(a)}),c=void 0===t.currency?"":t.currency[0]+"",l=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",d=void 0===t.numerals?h:function(t){return function(i){return i.replace(/[0-9]/g,(function(i){return t[+i]}))}}(f.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",p=void 0===t.minus?"−":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function M(t){var i=(t=e(t)).fill,r=t.align,a=t.sign,h=t.symbol,f=t.zero,M=t.width,y=t.comma,b=t.precision,x=t.trim,w=t.type;"n"===w?(y=!0,w="g"):s[w]||(void 0===b&&(b=12),x=!0,w="g"),(f||"0"===i&&"="===r)&&(f=!0,i="0",r="=");var S="$"===h?c:"#"===h&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",k="$"===h?l:/[%p]/.test(w)?g:"",z=s[w],A=/[defgprs%]/.test(w);function N(t){var e,s,h,c=S,l=k;if("c"===w)l=z(t)+l,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:z(Math.abs(t),b),x&&(t=function(t){t:for(var i,n=t.length,r=1,e=-1;r<n;++r)switch(t[r]){case".":e=i=r;break;case"0":0===e&&(e=r),i=r;break;default:if(!+t[r])break t;e>0&&(e=0)}return e>0?t.slice(0,e)+t.slice(i+1):t}(t)),g&&0==+t&&"+"!==a&&(g=!1),c=(g?"("===a?a:p:"-"===a||"("===a?"":a)+c,l=("s"===w?m[8+n/3]:"")+l+(g&&"("===a?")":""),A)for(e=-1,s=t.length;++e<s;)if(48>(h=t.charCodeAt(e))||h>57){l=(46===h?u+t.slice(e+1):t.slice(e))+l,t=t.slice(0,e);break}}y&&!f&&(t=o(t,1/0));var N=c.length+t.length+l.length,j=N<M?new Array(M-N+1).join(i):"";switch(y&&f&&(t=o(j+t,j.length?M-l.length:1/0),j=""),r){case"<":t=c+t+l+j;break;case"=":t=c+j+t+l;break;case"^":t=j.slice(0,N=j.length>>1)+c+t+l+j.slice(N);break;default:t=j+c+t+l}return d(t)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),N.toString=function(){return t+""},N}return{format:M,formatPrefix:function(t,n){var r=M(((t=e(t)).type="f",t)),a=3*Math.max(-8,Math.min(8,Math.floor(i(n)/3))),o=Math.pow(10,-a),s=m[8+a/3];return function(t){return r(o*t)+s}}}}function g(t){return Math.max(0,-i(Math.abs(t)))}function p(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i(n)/3)))-i(Math.abs(t)))}function v(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,i(n)-i(t))+1}c=d({thousands:",",grouping:[3],currency:["$",""]}),l=c.format,u=c.formatPrefix;export{v as a,p as b,u as c,l as d,e as f,g as p};
.output/public/assets/d3-geo-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-hierarchy-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-interpolate-Ct9kki6l.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{r as n,c as t,h as r}from"./d3-color-D5ULnJIe.js";const e=n=>()=>n;function a(n,t){return function(r){return n+r*t}}function u(n){return 1==(n=+n)?o:function(t,r){return r-t?function(n,t,r){return n=Math.pow(n,r),t=Math.pow(t,r)-n,r=1/r,function(e){return Math.pow(n+e*t,r)}}(t,r,n):e(isNaN(t)?r:t)}}function o(n,t){var r=t-n;return r?a(n,r):e(isNaN(n)?t:n)}const i=function t(r){var e=u(r);function a(t,r){var a=e((t=n(t)).r,(r=n(r)).r),u=e(t.g,r.g),i=e(t.b,r.b),c=o(t.opacity,r.opacity);return function(n){return t.r=a(n),t.g=u(n),t.b=i(n),t.opacity=c(n),t+""}}return a.gamma=t,a}(1);function c(n,t){t||(t=[]);var r,e=n?Math.min(t.length,n.length):0,a=t.slice();return function(u){for(r=0;r<e;++r)a[r]=n[r]*(1-u)+t[r]*u;return a}}function s(n,t){var r,e=t?t.length:0,a=n?Math.min(e,n.length):0,u=new Array(a),o=new Array(e);for(r=0;r<a;++r)u[r]=v(n[r],t[r]);for(;r<e;++r)o[r]=t[r];return function(n){for(r=0;r<a;++r)o[r]=u[r](n);return o}}function f(n,t){var r=new Date;return n=+n,t=+t,function(e){return r.setTime(n*(1-e)+t*e),r}}function l(n,t){return n=+n,t=+t,function(r){return n*(1-r)+t*r}}function h(n,t){var r,e={},a={};for(r in null!==n&&"object"==typeof n||(n={}),null!==t&&"object"==typeof t||(t={}),t)r in n?e[r]=v(n[r],t[r]):a[r]=t[r];return function(n){for(r in e)a[r]=e[r](n);return a}}var p=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x=new RegExp(p.source,"g");function g(n,t){var r,e,a,u=p.lastIndex=x.lastIndex=0,o=-1,i=[],c=[];for(n+="",t+="";(r=p.exec(n))&&(e=x.exec(t));)(a=e.index)>u&&(a=t.slice(u,a),i[o]?i[o]+=a:i[++o]=a),(r=r[0])===(e=e[0])?i[o]?i[o]+=e:i[++o]=e:(i[++o]=null,c.push({i:o,x:l(r,e)})),u=x.lastIndex;return u<t.length&&(a=t.slice(u),i[o]?i[o]+=a:i[++o]=a),i.length<2?c[0]?function(n){return function(t){return n(t)+""}}(c[0].x):function(n){return function(){return n}}(t):(t=c.length,function(n){for(var r,e=0;e<t;++e)i[(r=c[e]).i]=r.x(n);return i.join("")})}function v(n,r){var a,u,o=typeof r;return null==r||"boolean"===o?e(r):("number"===o?l:"string"===o?(a=t(r))?(r=a,i):g:r instanceof t?i:r instanceof Date?f:(u=r,!ArrayBuffer.isView(u)||u instanceof DataView?Array.isArray(r)?s:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?h:l:c))(n,r)}function w(n,t){return n=+n,t=+t,function(r){return Math.round(n*(1-r)+t*r)}}var d,y=180/Math.PI,M={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function X(n,t,r,e,a,u){var o,i,c;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(c=n*r+t*e)&&(r-=n*c,e-=t*c),(i=Math.sqrt(r*r+e*e))&&(r/=i,e/=i,c/=i),n*e<t*r&&(n=-n,t=-t,c=-c,o=-o),{translateX:a,translateY:u,rotate:Math.atan2(t,n)*y,skewX:Math.atan(c)*y,scaleX:o,scaleY:i}}function b(n,t,r,e){function a(n){return n.length?n.pop()+" ":""}return function(u,o){var i=[],c=[];return u=n(u),o=n(o),function(n,e,a,u,o,i){if(n!==a||e!==u){var c=o.push("translate(",null,t,null,r);i.push({i:c-4,x:l(n,a)},{i:c-2,x:l(e,u)})}else(a||u)&&o.push("translate("+a+t+u+r)}(u.translateX,u.translateY,o.translateX,o.translateY,i,c),function(n,t,r,u){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),u.push({i:r.push(a(r)+"rotate(",null,e)-2,x:l(n,t)})):t&&r.push(a(r)+"rotate("+t+e)}(u.rotate,o.rotate,i,c),function(n,t,r,u){n!==t?u.push({i:r.push(a(r)+"skewX(",null,e)-2,x:l(n,t)}):t&&r.push(a(r)+"skewX("+t+e)}(u.skewX,o.skewX,i,c),function(n,t,r,e,u,o){if(n!==r||t!==e){var i=u.push(a(u)+"scale(",null,",",null,")");o.push({i:i-4,x:l(n,r)},{i:i-2,x:l(t,e)})}else 1===r&&1===e||u.push(a(u)+"scale("+r+","+e+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,i,c),u=o=null,function(n){for(var t,r=-1,e=c.length;++r<e;)i[(t=c[r]).i]=t.x(n);return i.join("")}}}var m=b((function(n){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(n+"");return t.isIdentity?M:X(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),N=b((function(n){return null==n?M:(d||(d=document.createElementNS("http://www.w3.org/2000/svg","g")),d.setAttribute("transform",n),(n=d.transform.baseVal.consolidate())?X((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):M)}),", ",")",")");const Y=(k=function(n,t){var r=t-n;return r?a(n,r>180||r<-180?r-360*Math.round(r/360):r):e(isNaN(n)?t:n)},function(n,t){var e=k((n=r(n)).h,(t=r(t)).h),a=o(n.c,t.c),u=o(n.l,t.l),i=o(n.opacity,t.opacity);return function(t){return n.h=e(t),n.c=a(t),n.l=u(t),n.opacity=i(t),n+""}});var k;export{v as a,w as b,i as c,g as d,N as e,m as f,Y as g,l as i};
.output/public/assets/d3-path-QSrLXsQ3.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const t=Math.PI,i=2*t,s=1e-6,h=i-s;function _(t){this._+=t[0];for(let i=1,s=t.length;i<s;++i)this._+=arguments[i]+t[i]}class ${constructor(t){this._x0=this._y0=// start of current subpath
2
+ this._x1=this._y1=null,this._="",this._append=null==t?_:function(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return _;const s=10**i;return function(t){this._+=t[0];for(let i=1,h=t.length;i<h;++i)this._+=Math.round(arguments[i]*s)/s+t[i]}}(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,s,h){this._append`Q${+t},${+i},${this._x1=+s},${this._y1=+h}`}bezierCurveTo(t,i,s,h,_,$){this._append`C${+t},${+i},${+s},${+h},${this._x1=+_},${this._y1=+$}`}arcTo(i,h,_,$,e){if(i=+i,h=+h,_=+_,$=+$,(e=+e)<0)throw new Error(`negative radius: ${e}`);let a=this._x1,n=this._y1,r=_-i,p=$-h,o=a-i,l=n-h,x=o*o+l*l;if(null===this._x1)this._append`M${this._x1=i},${this._y1=h}`;else if(x>s)if(Math.abs(l*r-p*o)>s&&e){let d=_-a,M=$-n,u=r*r+p*p,y=d*d+M*M,c=Math.sqrt(u),f=Math.sqrt(x),v=e*Math.tan((t-Math.acos((u+x-y)/(2*c*f)))/2),g=v/f,w=v/c;Math.abs(g-1)>s&&this._append`L${i+g*o},${h+g*l}`,this._append`A${e},${e},0,0,${+(l*d>o*M)},${this._x1=i+w*r},${this._y1=h+w*p}`}else this._append`L${this._x1=i},${this._y1=h}`;else;}arc(_,$,e,a,n,r){if(_=+_,$=+$,r=!!r,(e=+e)<0)throw new Error(`negative radius: ${e}`);let p=e*Math.cos(a),o=e*Math.sin(a),l=_+p,x=$+o,d=1^r,M=r?a-n:n-a;null===this._x1?this._append`M${l},${x}`:(Math.abs(this._x1-l)>s||Math.abs(this._y1-x)>s)&&this._append`L${l},${x}`,e&&(M<0&&(M=M%i+i),M>h?this._append`A${e},${e},0,1,${d},${_-p},${$-o}A${e},${e},0,1,${d},${this._x1=l},${this._y1=x}`:M>s&&this._append`A${e},${e},0,${+(M>=t)},${d},${this._x1=_+e*Math.cos(n)},${this._y1=$+e*Math.sin(n)}`)}rect(t,i,s,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${s=+s}v${+h}h${-s}Z`}toString(){return this._}}export{$ as P};
.output/public/assets/d3-polygon-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+
.output/public/assets/d3-quadtree-l0sNRNKZ.js ADDED
@@ -0,0 +1 @@
 
 
1
+