@acusti/uikit-docs 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +4 -8
- package/.storybook/manager.ts +1 -1
- package/.storybook/preview.ts +1 -1
- package/CHANGELOG.md +19 -0
- package/dist/assets/CSSValueInput-BgAgo3f9.css +1 -0
- package/dist/assets/CSSValueInput-BoZriUnh.js +1 -0
- package/dist/assets/CSSValueInput.stories-D1VcYZJ0.js +113 -0
- package/dist/assets/Color-AVL7NMMY-BeW0C7pE.js +1 -0
- package/dist/assets/DatePicker-l5oaNCVE.css +1 -0
- package/dist/assets/DatePicker.stories-BSWV31FV.js +244 -0
- package/dist/assets/DocsRenderer-PQXLIZUC-D92GwNti.js +2 -0
- package/dist/assets/Dropdown-D5cyjefk.css +1 -0
- package/dist/assets/Dropdown-DUP_ybXe.js +84 -0
- package/dist/assets/Dropdown.stories-2Wtw1otE.js +336 -0
- package/dist/assets/InputText-Tkbh5amB.css +1 -0
- package/dist/assets/InputText.stories-BYt2Aj0_.js +90 -0
- package/dist/assets/Introduction-nSE2hjmb.js +183 -0
- package/dist/assets/MonthCalendar.stories-IJrL6wIl.js +169 -0
- package/dist/assets/accessibility-W_h2acOZ.png +0 -0
- package/dist/assets/addon-library-BWUCAmyN.png +0 -0
- package/dist/assets/blocks-Du178fXa.js +658 -0
- package/dist/assets/client-B2qWCcIR.js +25 -0
- package/dist/assets/clsx-hXifHU8N.js +9 -0
- package/dist/assets/context-C0qIqeS4.png +0 -0
- package/dist/assets/docs---vsFbMi.png +0 -0
- package/dist/assets/figma-plugin-CH2hELiO.png +0 -0
- package/dist/assets/iframe-ByGa_ItU.js +1102 -0
- package/dist/assets/index-BRXcJgsA.js +1 -0
- package/dist/assets/index-BVajFqaV.js +1 -0
- package/dist/assets/index-DwJ-mRZ2.js +9 -0
- package/dist/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/dist/assets/react-18-djOrgGe8.js +1 -0
- package/dist/assets/share-DGA-UcQf.png +0 -0
- package/dist/assets/styling-Bk6zjRzU.png +0 -0
- package/dist/assets/testing-cbzR9l9r.png +0 -0
- package/dist/assets/theming-D6WJLNoW.png +0 -0
- package/dist/assets/useIsOutOfBounds--pZPDsvJ.css +1 -0
- package/dist/assets/useIsOutOfBounds.stories-e48KZd_G.js +105 -0
- package/dist/assets/useKeyboardEvents-BH4Zd7d3.css +1 -0
- package/dist/assets/useKeyboardEvents.stories-CJbDuGfk.js +3 -0
- package/dist/favicon.svg +1 -0
- package/dist/iframe.html +685 -0
- package/dist/index.html +152 -0
- package/dist/index.json +1 -0
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/project.json +1 -0
- package/dist/sb-addons/docs-1/manager-bundle.js +151 -0
- package/dist/sb-addons/storybook-2/manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +188 -0
- package/dist/sb-common-assets/favicon.svg +1 -0
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-module-info.js +797 -0
- package/dist/sb-manager/globals-runtime.js +72053 -0
- package/dist/sb-manager/globals.js +34 -0
- package/dist/sb-manager/runtime.js +13001 -0
- package/package.json +14 -10
- package/stories/CSSValueInput.stories.tsx +3 -3
- package/stories/DatePicker.stories.tsx +3 -3
- package/stories/Dropdown.stories.tsx +2 -2
- package/stories/InputText.css +12 -1
- package/stories/InputText.stories.tsx +29 -6
- package/stories/Introduction.mdx +1 -1
- package/stories/MonthCalendar.stories.ts +1 -1
- package/stories/useIsOutOfBounds.css +1 -1
- package/stories/useIsOutOfBounds.stories.tsx +8 -5
- package/stories/useKeyboardEvents.stories.tsx +1 -1
- package/tsconfig.json +13 -1
- package/tsconfig.tsbuildinfo +1 -0
- package/stories/Button.stories.ts +0 -50
- package/stories/Button.tsx +0 -48
- package/stories/Header.stories.ts +0 -27
- package/stories/Header.tsx +0 -66
- package/stories/Page.stories.ts +0 -29
- package/stories/Page.tsx +0 -91
- package/stories/button.css +0 -30
- package/stories/header.css +0 -32
- package/stories/page.css +0 -69
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Color-AVL7NMMY-BeW0C7pE.js","./iframe-ByGa_ItU.js","./jsx-runtime-D_zvdyIk.js","./index-DwJ-mRZ2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as h,g as Dy,e as f,R as Jd,h as Au,_ as Qd,T as Ko}from"./iframe-ByGa_ItU.js";import{j as L}from"./jsx-runtime-D_zvdyIk.js";import{r as Fy}from"./index-DwJ-mRZ2.js";var ky=Object.create,zl=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,Oy=Object.getOwnPropertyNames,_y=Object.getPrototypeOf,Ry=Object.prototype.hasOwnProperty,dt=(e,t)=>zl(e,"name",{value:t,configurable:!0}),Ty=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Py=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Oy(t))!Ry.call(e,a)&&a!==r&&zl(e,a,{get:()=>t[a],enumerable:!(n=Ay(t,a))||n.enumerable});return e},By=(e,t,r)=>(r=e!=null?ky(_y(e)):{},Py(zl(r,"default",{value:e,enumerable:!0}),e)),Iy=Ty(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,o){return dt(function i(l,s,u){var d,m,c,g=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),g!=b||(d=n(l),m=n(s),d.length!=m.length||d.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(g.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),m=s.entries();do if(!i((c=d.next()).value,m.next().value,u))return!1;while(!c.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(c=0;c<l.length;c++)if((c in l||c in s)&&(c in l!=c in s||!i(l[c],s[c],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}},"n")(a,o,[])}}()});function $y(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,a)=>`${r} ${n}${a}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}dt($y,"toStartCaseStr");var Ou=By(Iy()),ep=dt(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),Ny=dt((e,t)=>{let{exists:r,eq:n,neq:a,truthy:o}=e;if(ep([r,n,a,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,Ou.isEqual)(t,n);if(typeof a<"u")return!(0,Ou.isEqual)(t,a);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof o>"u"||o?!!t:!t},"testValue"),Ly=dt((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(ep([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let o=n?t[n]:r[a];return Ny(e.if,o)},"includeConditionalArg");function jy(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Preview"}dt(jy,"isPreview");function My(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Meta"}dt(My,"isMeta");function zy(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Story"}dt(zy,"isStory");var tp=dt(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize");function $i(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}dt($i,"matches");function Hy(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||$i(e,t))&&(!r||!$i(e,r))}dt(Hy,"isExportStory");function Uy(e,t,{signal:r,edges:n}={}){let a,o=null,i=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{o!==null&&(e.apply(a,o),a=void 0,o=null)},u=()=>{l&&s(),g()},d=null,m=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,u()},t)},c=()=>{d!==null&&(clearTimeout(d),d=null)},g=()=>{c(),a=void 0,o=null},b=()=>{c(),s()},y=function(...v){if(r!=null&&r.aborted)return;a=this,o=v;let x=d==null;m(),i&&x&&s()};return y.schedule=m,y.cancel=g,y.flush=b,r==null||r.addEventListener("abort",g,{once:!0}),y}function G_(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:a=!1,trailing:o=!0,maxWait:i}=r,l=Array(2);a&&(l[0]="leading"),o&&(l[1]="trailing");let s,u=null,d=Uy(function(...g){s=e.apply(this,g),u=null},t,{signal:n,edges:l}),m=function(...g){if(i!=null){if(u===null)u=Date.now();else if(Date.now()-u>=i)return s=e.apply(this,g),u=Date.now(),d.cancel(),d.schedule(),s}return d.apply(this,g),s},c=()=>(d.flush(),s);return m.cancel=d.cancel,m.flush=c,m}function rp(e){return typeof e=="symbol"||e instanceof Symbol}function Wy(e){return rp(e)?NaN:Number(e)}function qy(e){return e?(e=Wy(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Vy(e){let t=qy(e),r=t%1;return r?t-r:t}function Gy(e){return Array.from(new Set(e))}function Ky(e){return e==null||typeof e!="object"&&typeof e!="function"}function np(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ap(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Yy(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Xy="[object RegExp]",op="[object String]",ip="[object Number]",lp="[object Boolean]",sp="[object Arguments]",Zy="[object Symbol]",Jy="[object Date]",Qy="[object Map]",e1="[object Set]",t1="[object Array]",r1="[object ArrayBuffer]",n1="[object Object]",a1="[object DataView]",o1="[object Uint8Array]",i1="[object Uint8ClampedArray]",l1="[object Uint16Array]",s1="[object Uint32Array]",u1="[object Int8Array]",c1="[object Int16Array]",d1="[object Int32Array]",p1="[object Float32Array]",f1="[object Float64Array]";function m1(e,t){return Mr(e,void 0,e,new Map,t)}function Mr(e,t,r,n=new Map,a=void 0){let o=a==null?void 0:a(e,t,r,n);if(o!=null)return o;if(Ky(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Mr(e[l],l,r,n,a);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,Mr(s,l,r,n,a));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(Mr(l,void 0,r,n,a));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(np(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Mr(e[l],l,r,n,a);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),ur(i,e,r,n,a),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),ur(i,e,r,n,a),i}if(e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),ur(i,e,r,n,a),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,ur(i,e,r,n,a),i}if(typeof e=="object"&&g1(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),ur(i,e,r,n,a),i}return e}function ur(e,t,r=e,n,a){let o=[...Object.keys(t),...ap(t)];for(let i=0;i<o.length;i++){let l=o[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Mr(t[l],l,r,n,a))}}function g1(e){switch(Yy(e)){case sp:case t1:case r1:case a1:case lp:case Jy:case p1:case f1:case u1:case c1:case d1:case Qy:case ip:case n1:case Xy:case e1:case op:case Zy:case o1:case i1:case l1:case s1:return!0;default:return!1}}function h1(e){return Number.isSafeInteger(e)&&e>=0}function Hl(e){return e!=null&&typeof e!="function"&&h1(e.length)}function b1(e,t){return m1(e,(r,n,a,o)=>{if(typeof e=="object")switch(Object.prototype.toString.call(e)){case ip:case op:case lp:{let i=new e.constructor(e==null?void 0:e.valueOf());return ur(i,e),i}case sp:{let i={};return ur(i,e),i.length=e.length,i[Symbol.iterator]=e[Symbol.iterator],i}default:return}})}function y1(e){return b1(e)}function v1(e,t,r=1){if(t==null&&(t=e,e=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),a=new Array(n);for(let o=0;o<n;o++)a[o]=e+o*r;return a}function x1(e){return Hl(e)?Gy(Array.from(e)):[]}function E1(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function w1(e){let t=e==null?void 0:e.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}function C1(e){return np(e)}function S1(e,t){if(e=Vy(e),e<1||!Number.isSafeInteger(e))return[];let r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function D1(e){if(e==null)return[];switch(typeof e){case"object":case"function":return Hl(e)?k1(e):w1(e)?F1(e):ja(e);default:return ja(Object(e))}}function ja(e){let t=[];for(let r in e)t.push(r);return t}function F1(e){return ja(e).filter(t=>t!=="constructor")}function k1(e){let t=S1(e.length,n=>`${n}`),r=new Set(t);return E1(e)&&(r.add("offset"),r.add("parent")),C1(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),[...t,...ja(e).filter(n=>!r.has(n))]}function A1(e){let t=[];for(;e;)t.push(...ap(e)),e=Object.getPrototypeOf(e);return t}function O1(e,t){if(e==null)return{};let r={};if(t==null)return e;let n=Hl(e)?v1(0,e.length):[...D1(e),...A1(e)];for(let a=0;a<n.length;a++){let o=rp(n[a])?n[a]:n[a].toString(),i=e[o];t(i,o,e)&&(r[o]=i)}return r}var pt=e=>`control-${e.replace(/\s+/g,"-")}`,io=e=>`set-${e.replace(/\s+/g,"-")}`,_1=Object.create,up=Object.defineProperty,R1=Object.getOwnPropertyDescriptor,cp=Object.getOwnPropertyNames,T1=Object.getPrototypeOf,P1=Object.prototype.hasOwnProperty,da=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),B1=(e,t)=>function(){return t||(0,e[cp(e)[0]])((t={exports:{}}).exports,t),t.exports},I1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cp(t))!P1.call(e,a)&&a!==r&&up(e,a,{get:()=>t[a],enumerable:!(n=R1(t,a))||n.enumerable});return e},$1=(e,t,r)=>(r=e!=null?_1(T1(e)):{},I1(!e||!e.__esModule?up(r,"default",{value:e,enumerable:!0}):r,e)),N1=Object.create,Ul=Object.defineProperty,L1=Object.getOwnPropertyDescriptor,j1=Object.getOwnPropertyNames,M1=Object.getPrototypeOf,z1=Object.prototype.hasOwnProperty,R=(e,t)=>Ul(e,"name",{value:t,configurable:!0}),pa=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),lo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),H1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of j1(t))!z1.call(e,a)&&a!==r&&Ul(e,a,{get:()=>t[a],enumerable:!(n=L1(t,a))||n.enumerable});return e},Wl=(e,t,r)=>(r=e!=null?N1(M1(e)):{},H1(t||!e||!e.__esModule?Ul(r,"default",{value:e,enumerable:!0}):r,e)),U1=lo(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function E($){return typeof $=="string"||typeof $=="function"||$===a||$===d||$===i||$===o||$===c||$===g||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===b||$.$$typeof===l||$.$$typeof===s||$.$$typeof===m||$.$$typeof===x||$.$$typeof===C||$.$$typeof===w||$.$$typeof===v)}R(E,"isValidElementType");function S($){if(typeof $=="object"&&$!==null){var se=$.$$typeof;switch(se){case r:var de=$.type;switch(de){case u:case d:case a:case i:case o:case c:return de;default:var Ie=de&&de.$$typeof;switch(Ie){case s:case m:case y:case b:case l:return Ie;default:return se}}case n:return se}}}R(S,"typeOf");var D=u,F=d,k=s,T=l,A=r,_=m,B=a,I=y,z=b,N=n,M=i,U=o,K=c,W=!1;function q($){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q($)||S($)===u}R(q,"isAsyncMode");function Q($){return S($)===d}R(Q,"isConcurrentMode");function oe($){return S($)===s}R(oe,"isContextConsumer");function ae($){return S($)===l}R(ae,"isContextProvider");function Z($){return typeof $=="object"&&$!==null&&$.$$typeof===r}R(Z,"isElement");function j($){return S($)===m}R(j,"isForwardRef");function J($){return S($)===a}R(J,"isFragment");function ee($){return S($)===y}R(ee,"isLazy");function ue($){return S($)===b}R(ue,"isMemo");function ie($){return S($)===n}R(ie,"isPortal");function Ze($){return S($)===i}R(Ze,"isProfiler");function te($){return S($)===o}R(te,"isStrictMode");function le($){return S($)===c}R(le,"isSuspense"),e.AsyncMode=D,e.ConcurrentMode=F,e.ContextConsumer=k,e.ContextProvider=T,e.Element=A,e.ForwardRef=_,e.Fragment=B,e.Lazy=I,e.Memo=z,e.Portal=N,e.Profiler=M,e.StrictMode=U,e.Suspense=K,e.isAsyncMode=q,e.isConcurrentMode=Q,e.isContextConsumer=oe,e.isContextProvider=ae,e.isElement=Z,e.isForwardRef=j,e.isFragment=J,e.isLazy=ee,e.isMemo=ue,e.isPortal=ie,e.isProfiler=Ze,e.isStrictMode=te,e.isSuspense=le,e.isValidElementType=E,e.typeOf=S})()}),W1=lo((e,t)=>{t.exports=U1()}),dp=lo((e,t)=>{var r=W1(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=o,l[r.Memo]=i;function s(v){return r.isMemo(v)?i:l[v.$$typeof]||n}R(s,"getStatics");var u=Object.defineProperty,d=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,b=Object.prototype;function y(v,x,C){if(typeof x!="string"){if(b){var w=g(x);w&&w!==b&&y(v,w,C)}var E=d(x);m&&(E=E.concat(m(x)));for(var S=s(v),D=s(x),F=0;F<E.length;++F){var k=E[F];if(!a[k]&&!(C&&C[k])&&!(D&&D[k])&&!(S&&S[k])){var T=c(x,k);try{u(v,k,T)}catch{}}}}return v}R(y,"hoistNonReactStatics"),t.exports=y}),q1=lo((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return R(function r(n,a,o){function i(u,d){if(!a[u]){if(!n[u]){var m=typeof pa=="function"&&pa;if(!d&&m)return m(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var g=a[u]={exports:{}};n[u][0].call(g.exports,function(b){var y=n[u][1][b];return i(y||b)},g,g.exports,r,n,a,o)}return a[u].exports}R(i,"s");for(var l=typeof pa=="function"&&pa,s=0;s<o.length;s++)i(o[s]);return i},"e")({1:[function(r,n,a){n.exports=function(o){if(typeof Map!="function"||o){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}R(o,"Similar"),o.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},o.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},o.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=o},{}],3:[function(r,n,a){var o=r("map-or-similar");n.exports=function(u){var d=new o(!1),m=[];return function(c){var g=R(function(){var b=d,y,v,x=arguments.length-1,C=Array(x+1),w=!0,E;if((g.numArgs||g.numArgs===0)&&g.numArgs!==x+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<x;E++){if(C[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}w=!1,y=new o(!1),b.set(arguments[E],y),b=y}return w&&(b.has(arguments[x])?v=b.get(arguments[x]):w=!1),w||(v=c.apply(null,arguments),b.set(arguments[x],v)),u>0&&(C[x]={cacheItem:b,arg:arguments[x]},w?i(m,C):m.push(C),m.length>u&&l(m.shift())),g.wasMemoized=w,g.numArgs=x+1,v},"memoizerific");return g.limit=u,g.wasMemoized=!1,g.cache=d,g.lru=m,g}};function i(u,d){var m=u.length,c=d.length,g,b,y;for(b=0;b<m;b++){for(g=!0,y=0;y<c;y++)if(!s(u[b][y].arg,d[y].arg)){g=!1;break}if(g)break}u.push(u.splice(b,1)[0])}R(i,"moveToMostRecentLru");function l(u){var d=u.length,m=u[d-1],c,g;for(m.cacheItem.delete(m.arg),g=d-2;g>=0&&(m=u[g],c=m.cacheItem.get(m.arg),!c||!c.size);g--)m.cacheItem.delete(m.arg)}R(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}R(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(null,arguments)}R(De,"_extends");function pp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}R(pp,"sheetForTag");function fp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}R(fp,"createStyleElement");var V1=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}R(e,"StyleSheet");var t=e.prototype;return t.hydrate=R(function(r){r.forEach(this._insertTag)},"hydrate"),t.insert=R(function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fp(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=pp(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},"insert"),t.flush=R(function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},"flush"),e}(),Oe="-ms-",Ma="-moz-",ne="-webkit-",mp="comm",ql="rule",Vl="decl",G1="@import",gp="@keyframes",K1="@layer",Y1=Math.abs,so=String.fromCharCode,X1=Object.assign;function hp(e,t){return Se(e,0)^45?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}R(hp,"hash");function Gl(e){return e.trim()}R(Gl,"trim");function bp(e,t){return(e=t.exec(e))?e[0]:e}R(bp,"match");function re(e,t,r){return e.replace(t,r)}R(re,"replace");function za(e,t){return e.indexOf(t)}R(za,"indexof");function Se(e,t){return e.charCodeAt(t)|0}R(Se,"charat");function Yr(e,t,r){return e.slice(t,r)}R(Yr,"substr");function lt(e){return e.length}R(lt,"strlen");function uo(e){return e.length}R(uo,"sizeof");function Pn(e,t){return t.push(e),e}R(Pn,"append");function yp(e,t){return e.map(t).join("")}R(yp,"combine");var co=1,Xr=1,vp=0,je=0,ve=0,pn="";function ea(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:co,column:Xr,length:i,return:""}}R(ea,"node");function $r(e,t){return X1(ea("",null,null,"",null,null,0),e,{length:-e.length},t)}R($r,"copy");function xp(){return ve}R(xp,"char");function Ep(){return ve=je>0?Se(pn,--je):0,Xr--,ve===10&&(Xr=1,co--),ve}R(Ep,"prev");function Le(){return ve=je<vp?Se(pn,je++):0,Xr++,ve===10&&(Xr=1,co++),ve}R(Le,"next");function st(){return Se(pn,je)}R(st,"peek");function Ln(){return je}R(Ln,"caret");function fn(e,t){return Yr(pn,e,t)}R(fn,"slice");function Zr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}R(Zr,"token");function Kl(e){return co=Xr=1,vp=lt(pn=e),je=0,[]}R(Kl,"alloc");function Yl(e){return pn="",e}R(Yl,"dealloc");function jn(e){return Gl(fn(je-1,Ha(e===91?e+2:e===40?e+1:e)))}R(jn,"delimit");function wp(e){for(;(ve=st())&&ve<33;)Le();return Zr(e)>2||Zr(ve)>3?"":" "}R(wp,"whitespace");function Cp(e,t){for(;--t&&Le()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return fn(e,Ln()+(t<6&&st()==32&&Le()==32))}R(Cp,"escaping");function Ha(e){for(;Le();)switch(ve){case e:return je;case 34:case 39:e!==34&&e!==39&&Ha(ve);break;case 40:e===41&&Ha(e);break;case 92:Le();break}return je}R(Ha,"delimiter");function Sp(e,t){for(;Le()&&e+ve!==57&&!(e+ve===84&&st()===47););return"/*"+fn(t,je-1)+"*"+so(e===47?e:Le())}R(Sp,"commenter");function Dp(e){for(;!Zr(st());)Le();return fn(e,je)}R(Dp,"identifier");function Fp(e){return Yl(Mn("",null,null,null,[""],e=Kl(e),0,[0],e))}R(Fp,"compile");function Mn(e,t,r,n,a,o,i,l,s){for(var u=0,d=0,m=i,c=0,g=0,b=0,y=1,v=1,x=1,C=0,w="",E=a,S=o,D=n,F=w;v;)switch(b=C,C=Le()){case 40:if(b!=108&&Se(F,m-1)==58){za(F+=re(jn(C),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:F+=jn(C);break;case 9:case 10:case 13:case 32:F+=wp(b);break;case 92:F+=Cp(Ln()-1,7);continue;case 47:switch(st()){case 42:case 47:Pn(kp(Sp(Le(),Ln()),t,r),s);break;default:F+="/"}break;case 123*y:l[u++]=lt(F)*x;case 125*y:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+d:x==-1&&(F=re(F,/\f/g,"")),g>0&<(F)-m&&Pn(g>32?Li(F+";",n,r,m-1):Li(re(F," ","")+";",n,r,m-2),s);break;case 59:F+=";";default:if(Pn(D=Ni(F,t,r,u,d,a,l,w,E=[],S=[],m),o),C===123)if(d===0)Mn(F,t,D,D,E,o,m,l,S);else switch(c===99&&Se(F,3)===110?100:c){case 100:case 108:case 109:case 115:Mn(e,D,D,n&&Pn(Ni(e,D,D,0,0,a,l,w,a,E=[],m),S),a,S,m,l,n?E:S);break;default:Mn(F,D,D,D,[""],S,0,l,S)}}u=d=g=0,y=x=1,w=F="",m=i;break;case 58:m=1+lt(F),g=b;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&Ep()==125)continue}switch(F+=so(C),C*y){case 38:x=d>0?1:(F+="\f",-1);break;case 44:l[u++]=(lt(F)-1)*x,x=1;break;case 64:st()===45&&(F+=jn(Le())),c=st(),d=m=lt(w=F+=Dp(Ln())),C++;break;case 45:b===45&<(F)==2&&(y=0)}}return o}R(Mn,"parse");function Ni(e,t,r,n,a,o,i,l,s,u,d){for(var m=a-1,c=a===0?o:[""],g=uo(c),b=0,y=0,v=0;b<n;++b)for(var x=0,C=Yr(e,m+1,m=Y1(y=i[b])),w=e;x<g;++x)(w=Gl(y>0?c[x]+" "+C:re(C,/&\f/g,c[x])))&&(s[v++]=w);return ea(e,t,r,a===0?ql:l,s,u,d)}R(Ni,"ruleset");function kp(e,t,r){return ea(e,t,r,mp,so(xp()),Yr(e,2,-2),0)}R(kp,"comment");function Li(e,t,r,n){return ea(e,t,r,Vl,Yr(e,0,n),Yr(e,n+1,-1),n)}R(Li,"declaration");function fr(e,t){for(var r="",n=uo(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}R(fr,"serialize");function Ap(e,t,r,n){switch(e.type){case K1:if(e.children.length)break;case G1:case Vl:return e.return=e.return||e.value;case mp:return"";case gp:return e.return=e.value+"{"+fr(e.children,n)+"}";case ql:e.value=e.props.join(",")}return lt(r=fr(e.children,n))?e.return=e.value+"{"+r+"}":""}R(Ap,"stringify");function Op(e){var t=uo(e);return function(r,n,a,o){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,o)||"";return i}}R(Op,"middleware");function _p(e){return function(t){t.root||(t=t.return)&&e(t)}}R(_p,"rulesheet");var _u=R(function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},"weakMemoize");function Xl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}R(Xl,"memoize");var Z1=R(function(e,t,r){for(var n=0,a=0;n=a,a=st(),n===38&&a===12&&(t[r]=1),!Zr(a);)Le();return fn(e,je)},"identifierWithPointTracking"),J1=R(function(e,t){var r=-1,n=44;do switch(Zr(n)){case 0:n===38&&st()===12&&(t[r]=1),e[r]+=Z1(je-1,t,r);break;case 2:e[r]+=jn(n);break;case 4:if(n===44){e[++r]=st()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=so(n)}while(n=Le());return e},"toRules"),Q1=R(function(e,t){return Yl(J1(Kl(e),t))},"getRules"),Ru=new WeakMap,ev=R(function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ru.get(r))&&!n){Ru.set(e,!0);for(var a=[],o=Q1(t,a),i=r.props,l=0,s=0;l<o.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=a[l]?o[l].replace(/&\f/g,i[u]):i[u]+" "+o[l]}}},"compat"),tv=R(function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},"removeLabel");function Zl(e,t){switch(hp(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Ma+e+Oe+e+e;case 6828:case 4268:return ne+e+Oe+e+e;case 6165:return ne+e+Oe+"flex-"+e+e;case 5187:return ne+e+re(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Oe+"flex-$1$2")+e;case 5443:return ne+e+Oe+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return ne+e+Oe+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Oe+re(e,"shrink","negative")+e;case 5292:return ne+e+Oe+re(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+re(e,"-grow","")+ne+e+Oe+re(e,"grow","positive")+e;case 4554:return ne+re(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lt(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Ma+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Zl(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Se(e,t+1)!==115)break;case 6444:switch(Se(e,lt(e)-3-(~za(e,"!important")&&10))){case 107:return re(e,":",":"+ne)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Se(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Se(e,t+11)){case 114:return ne+e+Oe+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Oe+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Oe+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Oe+e+e}return e}R(Zl,"prefix");var rv=R(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Vl:e.return=Zl(e.value,e.length);break;case gp:return fr([$r(e,{value:re(e.value,"@","@"+ne)})],n);case ql:if(e.length)return yp(e.props,function(a){switch(bp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fr([$r(e,{props:[re(a,/:(read-\w+)/,":"+Ma+"$1")]})],n);case"::placeholder":return fr([$r(e,{props:[re(a,/:(plac\w+)/,":"+ne+"input-$1")]}),$r(e,{props:[re(a,/:(plac\w+)/,":"+Ma+"$1")]}),$r(e,{props:[re(a,/:(plac\w+)/,Oe+"input-$1")]})],n)}return""})}},"prefixer"),nv=[rv],av=R(function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=e.stylisPlugins||nv,a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)a[y[v]]=!0;i.push(b)});var l,s=[ev,tv];{var u,d=[Ap,_p(function(b){u.insert(b)})],m=Op(s.concat(n,d)),c=R(function(b){return fr(Fp(b),m)},"stylis");l=R(function(b,y,v,x){u=v,c(b?b+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)},"insert")}var g={key:t,sheet:new V1({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return g.sheet.hydrate(i),g},"createCache"),ov=Wl(dp()),iv=R(function(e,t){return(0,ov.default)(e,t)},"hoistNonReactStatics"),lv=!0;function po(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}R(po,"getRegisteredStyles");var Jl=R(function(e,t,r){var n=e.key+"-"+t.name;(r===!1||lv===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},"registerStyles"),Rp=R(function(e,t,r){Jl(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var a=t;do e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}},"insertStyles");function Tp(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}R(Tp,"murmur2");var sv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uv=/[A-Z]|^ms/g,cv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pp=R(function(e){return e.charCodeAt(1)===45},"isCustomProperty"),Tu=R(function(e){return e!=null&&typeof e!="boolean"},"isProcessableValue"),Yo=Xl(function(e){return Pp(e)?e:e.replace(uv,"-$&").toLowerCase()}),Pu=R(function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(cv,function(r,n,a){return xt={name:n,styles:a,next:xt},n})}return sv[e]!==1&&!Pp(e)&&typeof t=="number"&&t!==0?t+"px":t},"processStyleValue");function Jr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return xt={name:a.name,styles:a.styles,next:xt},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)xt={name:i.name,styles:i.styles,next:xt},i=i.next;var l=o.styles+";";return l}return Bp(e,t,r)}case"function":{if(e!==void 0){var s=xt,u=r(e);return xt=s,Jr(e,t,u)}break}}var d=r;if(t==null)return d;var m=t[d];return m!==void 0?m:d}R(Jr,"handleInterpolation");function Bp(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Jr(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=o+"{"+t[l]+"}":Tu(l)&&(n+=Yo(o)+":"+Pu(o,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Tu(i[s])&&(n+=Yo(o)+":"+Pu(o,i[s])+";");else{var u=Jr(e,t,i);switch(o){case"animation":case"animationName":{n+=Yo(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}R(Bp,"createStringFromObject");var Bu=/label:\s*([^\s;{]+)\s*(;|$)/g,xt;function fo(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";xt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=Jr(r,t,o);else{var i=o;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=Jr(r,t,e[l]),n){var s=o;a+=s[l]}Bu.lastIndex=0;for(var u="",d;(d=Bu.exec(a))!==null;)u+="-"+d[1];var m=Tp(a)+u;return{name:m,styles:a,next:xt}}R(fo,"serializeStyles");var dv=R(function(e){return e()},"syncFallback"),pv=h.useInsertionEffect?h.useInsertionEffect:!1,Ip=pv||dv,$p=h.createContext(typeof HTMLElement<"u"?av({key:"css"}):null);$p.Provider;var Np=R(function(e){return h.forwardRef(function(t,r){var n=h.useContext($p);return e(t,n,r)})},"withEmotionCache"),Qr=h.createContext({}),Lp=R(function(){return h.useContext(Qr)},"useTheme"),fv=R(function(e,t){if(typeof t=="function"){var r=t(e);return r}return De({},e,t)},"getTheme"),mv=_u(function(e){return _u(function(t){return fv(e,t)})}),jp=R(function(e){var t=h.useContext(Qr);return e.theme!==t&&(t=mv(t)(e.theme)),h.createElement(Qr.Provider,{value:t},e.children)},"ThemeProvider");function gv(e){var t=e.displayName||e.name||"Component",r=h.forwardRef(R(function(n,a){var o=h.useContext(Qr);return h.createElement(e,De({theme:o,ref:a},n))},"render"));return r.displayName="WithTheme("+t+")",iv(r,e)}R(gv,"withTheme");var Ql={}.hasOwnProperty,ji="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hv=R(function(e,t){var r={};for(var n in t)Ql.call(t,n)&&(r[n]=t[n]);return r[ji]=e,r},"createEmotionProps"),bv=R(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Jl(t,r,n),Ip(function(){return Rp(t,r,n)}),null},"Insertion"),yv=Np(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[ji],o=[n],i="";typeof e.className=="string"?i=po(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var l=fo(o,void 0,h.useContext(Qr));i+=t.key+"-"+l.name;var s={};for(var u in e)Ql.call(e,u)&&u!=="css"&&u!==ji&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),h.createElement(h.Fragment,null,h.createElement(bv,{cache:t,serialized:l,isStringTag:typeof a=="string"}),h.createElement(a,s))}),vv=yv;Wl(dp());var Iu=R(function(e,t){var r=arguments;if(t==null||!Ql.call(t,"css"))return h.createElement.apply(void 0,r);var n=r.length,a=new Array(n);a[0]=vv,a[1]=hv(e,t);for(var o=2;o<n;o++)a[o]=r[o];return h.createElement.apply(null,a)},"jsx");(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Iu||(Iu={}));function mo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return fo(t)}R(mo,"css");function ft(){var e=mo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:R(function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"},"toString")}}R(ft,"keyframes");function xv(e,t,r){var n=[],a=po(e,n,r);return n.length<2?r:a+t(n)}R(xv,"merge");var Ev=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,es=Xl(function(e){return Ev.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wv=es,Cv=R(function(e){return e!=="theme"},"testOmitPropsOnComponent"),$u=R(function(e){return typeof e=="string"&&e.charCodeAt(0)>96?wv:Cv},"getDefaultShouldForwardProp"),Nu=R(function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},"composeShouldForwardProps"),Sv=R(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Jl(t,r,n),Ip(function(){return Rp(t,r,n)}),null},"Insertion"),Dv=R(function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var l=Nu(t,r,n),s=l||$u(a),u=!s("as");return function(){var d=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)m.push.apply(m,d);else{var c=d[0];m.push(c[0]);for(var g=d.length,b=1;b<g;b++)m.push(d[b],c[b])}var y=Np(function(v,x,C){var w=u&&v.as||a,E="",S=[],D=v;if(v.theme==null){D={};for(var F in v)D[F]=v[F];D.theme=h.useContext(Qr)}typeof v.className=="string"?E=po(x.registered,S,v.className):v.className!=null&&(E=v.className+" ");var k=fo(m.concat(S),x.registered,D);E+=x.key+"-"+k.name,i!==void 0&&(E+=" "+i);var T=u&&l===void 0?$u(w):s,A={};for(var _ in v)u&&_==="as"||T(_)&&(A[_]=v[_]);return A.className=E,C&&(A.ref=C),h.createElement(h.Fragment,null,h.createElement(Sv,{cache:x,serialized:k,isStringTag:typeof w=="string"}),h.createElement(w,A))});return y.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=m,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:R(function(){return"."+i},"value")}),y.withComponent=function(v,x){var C=e(v,De({},r,x,{shouldForwardProp:Nu(y,x,!0)}));return C.apply(void 0,m)},y}},"createStyled"),Fv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],O=Dv.bind(null);Fv.forEach(function(e){O[e]=O(e)});function Mp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}R(Mp,"_assertThisInitialized");function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},en(e,t)}R(en,"_setPrototypeOf");function zp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,en(e,t)}R(zp,"_inheritsLoose");function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ua(e)}R(Ua,"_getPrototypeOf");function Hp(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}R(Hp,"_isNativeFunction");function ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ts=R(function(){return!!e},"_isNativeReflectConstruct"))()}R(ts,"_isNativeReflectConstruct");function Up(e,t,r){if(ts())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&en(a,r.prototype),a}R(Up,"_construct");function Wa(e){var t=typeof Map=="function"?new Map:void 0;return Wa=R(function(r){if(r===null||!Hp(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Up(r,arguments,Ua(this).constructor)}return R(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),en(n,r)},"_wrapNativeSuper"),Wa(e)}R(Wa,"_wrapNativeSuper");var kv={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
3
|
+
|
|
4
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
5
|
+
|
|
6
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
7
|
+
|
|
8
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
9
|
+
|
|
10
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
11
|
+
|
|
12
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
13
|
+
|
|
14
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
15
|
+
|
|
16
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
17
|
+
|
|
18
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
19
|
+
|
|
20
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
21
|
+
|
|
22
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
23
|
+
|
|
24
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
25
|
+
|
|
26
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
27
|
+
|
|
28
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
29
|
+
|
|
30
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
31
|
+
|
|
32
|
+
`,16:`You must provide a template to this method.
|
|
33
|
+
|
|
34
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
35
|
+
|
|
36
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
37
|
+
|
|
38
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
39
|
+
|
|
40
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
41
|
+
|
|
42
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
43
|
+
|
|
44
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
45
|
+
|
|
46
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
47
|
+
|
|
48
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
49
|
+
|
|
50
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
51
|
+
|
|
52
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
53
|
+
|
|
54
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
55
|
+
|
|
56
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
57
|
+
|
|
58
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
59
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
60
|
+
|
|
61
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
62
|
+
|
|
63
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
64
|
+
|
|
65
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
66
|
+
|
|
67
|
+
`,36:`Property must be a string value.
|
|
68
|
+
|
|
69
|
+
`,37:`Syntax Error at %s.
|
|
70
|
+
|
|
71
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
72
|
+
|
|
73
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
74
|
+
|
|
75
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
76
|
+
|
|
77
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
78
|
+
|
|
79
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
80
|
+
|
|
81
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
82
|
+
|
|
83
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
84
|
+
|
|
85
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
86
|
+
|
|
87
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
88
|
+
|
|
89
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
90
|
+
|
|
91
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
92
|
+
|
|
93
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
94
|
+
|
|
95
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
96
|
+
|
|
97
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
98
|
+
|
|
99
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
100
|
+
|
|
101
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
102
|
+
|
|
103
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
104
|
+
|
|
105
|
+
`,55:`fontFace expects a name of a font-family.
|
|
106
|
+
|
|
107
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
108
|
+
|
|
109
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
110
|
+
|
|
111
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
112
|
+
|
|
113
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
114
|
+
|
|
115
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
116
|
+
|
|
117
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
118
|
+
|
|
119
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
120
|
+
|
|
121
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
122
|
+
|
|
123
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
124
|
+
|
|
125
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
126
|
+
|
|
127
|
+
`,67:`You must provide a template to this method.
|
|
128
|
+
|
|
129
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
130
|
+
|
|
131
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
132
|
+
|
|
133
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
134
|
+
|
|
135
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
136
|
+
|
|
137
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
138
|
+
|
|
139
|
+
`,73:`Please provide a valid CSS variable.
|
|
140
|
+
|
|
141
|
+
`,74:`CSS variable not found and no default was provided.
|
|
142
|
+
|
|
143
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
144
|
+
|
|
145
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
146
|
+
|
|
147
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
148
|
+
|
|
149
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
150
|
+
`};function Wp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=[],o;for(o=1;o<t.length;o+=1)a.push(t[o]);return a.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}R(Wp,"format");var $e=function(e){zp(t,e);function t(r){for(var n,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return n=e.call(this,Wp.apply(void 0,[kv[r]].concat(o)))||this,Mp(n)}return R(t,"PolishedError"),t}(Wa(Error));function Mi(e,t){return e.substr(-t.length)===t}R(Mi,"endsWith");var Av=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function zi(e){if(typeof e!="string")return e;var t=e.match(Av);return t?parseFloat(e):e}R(zi,"stripUnit");var Ov=R(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,a=r;if(typeof t=="string"){if(!Mi(t,"px"))throw new $e(69,e,t);n=zi(t)}if(typeof r=="string"){if(!Mi(r,"px"))throw new $e(70,e,r);a=zi(r)}if(typeof n=="string")throw new $e(71,t,e);if(typeof a=="string")throw new $e(72,r,e);return""+n/a+e}},"pxtoFactory"),qp=Ov;qp("em");qp("rem");function ka(e){return Math.round(e*255)}R(ka,"colorToInt");function Vp(e,t,r){return ka(e)+","+ka(t)+","+ka(r)}R(Vp,"convertToInt");function tn(e,t,r,n){if(n===void 0&&(n=Vp),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),l=0,s=0,u=0;a>=0&&a<1?(l=o,s=i):a>=1&&a<2?(l=i,s=o):a>=2&&a<3?(s=o,u=i):a>=3&&a<4?(s=i,u=o):a>=4&&a<5?(l=i,u=o):a>=5&&a<6&&(l=o,u=i);var d=r-o/2,m=l+d,c=s+d,g=u+d;return n(m,c,g)}R(tn,"hslToRgb");var Lu={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",rebeccapurple:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Gp(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Lu[t]?"#"+Lu[t]:e}R(Gp,"nameToHex");var _v=/^#[a-fA-F0-9]{6}$/,Rv=/^#[a-fA-F0-9]{8}$/,Tv=/^#[a-fA-F0-9]{3}$/,Pv=/^#[a-fA-F0-9]{4}$/,Xo=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Bv=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Iv=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,$v=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function br(e){if(typeof e!="string")throw new $e(3);var t=Gp(e);if(t.match(_v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Rv)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Tv))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Pv)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Xo.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=Bv.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=Iv.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+tn(l,s,u)+")",m=Xo.exec(d);if(!m)throw new $e(4,t,d);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var c=$v.exec(t.substring(0,50));if(c){var g=parseInt(""+c[1],10),b=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,v="rgb("+tn(g,b,y)+")",x=Xo.exec(v);if(!x)throw new $e(4,t,v);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new $e(5)}R(br,"parseToRgb");function Kp(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=a-o,u=i>.5?s/(2-a-o):s/(a+o);switch(a){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}R(Kp,"rgbToHsl");function Tt(e){return Kp(br(e))}R(Tt,"parseToHsl");var Nv=R(function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},"reduceHexValue"),Hi=Nv;function Wt(e){var t=e.toString(16);return t.length===1?"0"+t:t}R(Wt,"numberToHex");function Aa(e){return Wt(Math.round(e*255))}R(Aa,"colorToHex");function Yp(e,t,r){return Hi("#"+Aa(e)+Aa(t)+Aa(r))}R(Yp,"convertToHex");function Vn(e,t,r){return tn(e,t,r,Yp)}R(Vn,"hslToHex");function Xp(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Vn(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Vn(e.hue,e.saturation,e.lightness);throw new $e(1)}R(Xp,"hsl");function Zp(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Vn(e,t,r):"rgba("+tn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Vn(e.hue,e.saturation,e.lightness):"rgba("+tn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new $e(2)}R(Zp,"hsla");function qa(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Hi("#"+Wt(e)+Wt(t)+Wt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Hi("#"+Wt(e.red)+Wt(e.green)+Wt(e.blue));throw new $e(6)}R(qa,"rgb");function yr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=br(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?qa(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?qa(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new $e(7)}R(yr,"rgba");var Lv=R(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),jv=R(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),Mv=R(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),zv=R(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function Pt(e){if(typeof e!="object")throw new $e(8);if(jv(e))return yr(e);if(Lv(e))return qa(e);if(zv(e))return Zp(e);if(Mv(e))return Xp(e);throw new $e(8)}R(Pt,"toColorString");function rs(e,t,r){return R(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):rs(e,t,n)},"fn")}R(rs,"curried");function He(e){return rs(e,e.length,[])}R(He,"curry");function Jp(e,t){if(t==="transparent")return t;var r=Tt(t);return Pt(De({},r,{hue:r.hue+parseFloat(e)}))}R(Jp,"adjustHue");He(Jp);function Dr(e,t,r){return Math.max(e,Math.min(t,r))}R(Dr,"guard");function Qp(e,t){if(t==="transparent")return t;var r=Tt(t);return Pt(De({},r,{lightness:Dr(0,1,r.lightness-parseFloat(e))}))}R(Qp,"darken");var Hv=He(Qp),Uv=Hv;function ef(e,t){if(t==="transparent")return t;var r=Tt(t);return Pt(De({},r,{saturation:Dr(0,1,r.saturation-parseFloat(e))}))}R(ef,"desaturate");He(ef);function tf(e,t){if(t==="transparent")return t;var r=Tt(t);return Pt(De({},r,{lightness:Dr(0,1,r.lightness+parseFloat(e))}))}R(tf,"lighten");var Wv=He(tf),qv=Wv;function rf(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=br(t),a=De({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=br(r),i=De({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),l=a.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,m=(u/d+1)/2,c=1-m,g={red:Math.floor(a.red*m+i.red*c),green:Math.floor(a.green*m+i.green*c),blue:Math.floor(a.blue*m+i.blue*c),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return yr(g)}R(rf,"mix");var Vv=He(rf),nf=Vv;function af(e,t){if(t==="transparent")return t;var r=br(t),n=typeof r.alpha=="number"?r.alpha:1,a=De({},r,{alpha:Dr(0,1,(n*100+parseFloat(e)*100)/100)});return yr(a)}R(af,"opacify");var Gv=He(af),Kv=Gv;function of(e,t){if(t==="transparent")return t;var r=Tt(t);return Pt(De({},r,{saturation:Dr(0,1,r.saturation+parseFloat(e))}))}R(of,"saturate");He(of);function lf(e,t){return t==="transparent"?t:Pt(De({},Tt(t),{hue:parseFloat(e)}))}R(lf,"setHue");He(lf);function sf(e,t){return t==="transparent"?t:Pt(De({},Tt(t),{lightness:parseFloat(e)}))}R(sf,"setLightness");He(sf);function uf(e,t){return t==="transparent"?t:Pt(De({},Tt(t),{saturation:parseFloat(e)}))}R(uf,"setSaturation");He(uf);function cf(e,t){return t==="transparent"?t:nf(parseFloat(e),"rgb(0, 0, 0)",t)}R(cf,"shade");He(cf);function df(e,t){return t==="transparent"?t:nf(parseFloat(e),"rgb(255, 255, 255)",t)}R(df,"tint");He(df);function pf(e,t){if(t==="transparent")return t;var r=br(t),n=typeof r.alpha=="number"?r.alpha:1,a=De({},r,{alpha:Dr(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return yr(a)}R(pf,"transparentize");var Yv=He(pf),Xv=Yv,H={secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},qt={app:"#F6F9FC",gridCellSize:10,hoverable:Xv(.9,H.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Ct={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},ff=Wl(q1(),1),Zv=(0,ff.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,ff.default)(1)(({color:e,background:t,typography:r})=>{let n=Zv({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1}}});var Jv={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:H.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Ct.fonts.base,fontCode:Ct.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:H.mediumdark,barHoverColor:H.secondary,barSelectedColor:H.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:H.lightest,inputBorderRadius:4},Qv=Jv,ex={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:qt.app,appContentBg:H.lightest,appPreviewBg:H.lightest,appBorderColor:H.border,appBorderRadius:4,fontBase:Ct.fonts.base,fontCode:Ct.fonts.mono,textColor:H.darkest,textInverseColor:H.lightest,textMutedColor:H.dark,barTextColor:H.mediumdark,barHoverColor:H.secondary,barSelectedColor:H.secondary,barBg:H.lightest,buttonBg:qt.app,buttonBorder:H.medium,booleanBg:H.mediumlight,booleanSelectedBg:H.lightest,inputBg:H.lightest,inputBorder:H.border,inputTextColor:H.darkest,inputBorderRadius:4},Va=ex;const{logger:tx}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:rx}=__STORYBOOK_MODULE_GLOBAL__;var{window:Zo}=rx,nx=R(e=>({color:e}),"mkColor"),ax=R(e=>typeof e!="string"?(tx.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),ox=R(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),ix=R((e,t)=>e==="darken"?yr(`${Uv(1,t)}`,.95):e==="lighten"?yr(`${qv(1,t)}`,.95):t,"applyPolished"),mf=R(e=>t=>{if(!ax(t)||!ox(t))return t;try{return ix(e,t)}catch{return t}},"colorFactory"),Sn=mf("lighten");mf("darken");var gf=R(()=>!Zo||!Zo.matchMedia?"light":Zo.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),Ui={light:Va,dark:Qv,normal:Va};gf();var lx={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},sx=ft`
|
|
151
|
+
from {
|
|
152
|
+
transform: rotate(0deg);
|
|
153
|
+
}
|
|
154
|
+
to {
|
|
155
|
+
transform: rotate(360deg);
|
|
156
|
+
}
|
|
157
|
+
`,hf=ft`
|
|
158
|
+
0%, 100% { opacity: 1; }
|
|
159
|
+
50% { opacity: .4; }
|
|
160
|
+
`,ux=ft`
|
|
161
|
+
0% { transform: translateY(1px); }
|
|
162
|
+
25% { transform: translateY(0px); }
|
|
163
|
+
50% { transform: translateY(-3px); }
|
|
164
|
+
100% { transform: translateY(1px); }
|
|
165
|
+
`,cx=ft`
|
|
166
|
+
0%, 100% { transform:translate3d(0,0,0); }
|
|
167
|
+
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
168
|
+
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
169
|
+
`,dx=mo`
|
|
170
|
+
animation: ${hf} 1.5s ease-in-out infinite;
|
|
171
|
+
color: transparent;
|
|
172
|
+
cursor: progress;
|
|
173
|
+
`,px=mo`
|
|
174
|
+
transition: all 150ms ease-out;
|
|
175
|
+
transform: translate3d(0, 0, 0);
|
|
176
|
+
|
|
177
|
+
&:hover {
|
|
178
|
+
transform: translate3d(0, -2px, 0);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:active {
|
|
182
|
+
transform: translate3d(0, 0, 0);
|
|
183
|
+
}
|
|
184
|
+
`,fx={rotate360:sx,glow:hf,float:ux,jiggle:cx,inlineGlow:dx,hoverable:px},mx={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},gx={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},hx=R(e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:nx(n)}),{}),"convertColors"),bx=R(({colors:e,mono:t})=>{let r=hx(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},"create"),yx={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},vx={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},xx=R(e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:H.tertiary,ancillary:H.ancillary,orange:H.orange,gold:H.gold,green:H.green,seafoam:H.seafoam,purple:H.purple,ultraviolet:H.ultraviolet,lightest:H.lightest,lighter:H.lighter,light:H.light,mediumlight:H.mediumlight,medium:H.medium,mediumdark:H.mediumdark,dark:H.dark,darker:H.darker,darkest:H.darkest,border:H.border,positive:H.positive,negative:H.negative,warning:H.warning,critical:H.critical,defaultText:e.textColor||H.darkest,inverseText:e.textInverseColor||H.lightest,positiveText:H.positiveText,negativeText:H.negativeText,warningText:H.warningText}),"createColors"),Wi=R((e=Ui[gf()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:a,appContentBg:o,appPreviewBg:i,appBorderColor:l,appBorderRadius:s,fontBase:u,fontCode:d,textColor:m,textInverseColor:c,barTextColor:g,barHoverColor:b,barSelectedColor:y,barBg:v,buttonBg:x,buttonBorder:C,booleanBg:w,booleanSelectedBg:E,inputBg:S,inputBorder:D,inputTextColor:F,inputBorderRadius:k,brandTitle:T,brandUrl:A,brandImage:_,brandTarget:B,gridCellSize:I,...z}=e;return{...z,base:t,color:xx(e),background:{app:a,bar:v,content:o,preview:i,gridCellSize:I||qt.gridCellSize,hoverable:qt.hoverable,positive:qt.positive,negative:qt.negative,warning:qt.warning,critical:qt.critical},typography:{fonts:{base:u,mono:d},weight:Ct.weight,size:Ct.size},animation:fx,easing:lx,input:{background:S,border:D,borderRadius:k,color:F},button:{background:x||S,border:C||D},boolean:{background:w||D,selectedBackground:E||S},layoutMargin:10,appBorderColor:l,appBorderRadius:s,barTextColor:g,barHoverColor:b||n,barSelectedColor:y||n,barBg:v,brand:{title:T,url:A,image:_||(T?null:void 0),target:B},code:bx({colors:t==="light"?yx:vx,mono:d}),addonActionsTheme:{...t==="light"?gx:mx,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ct.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:m,ARROW_COLOR:Kv(.2,l),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ct.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},"convert");const{logger:Ex}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wx=R(e=>Object.keys(e).length===0,"isEmpty"),Jo=R(e=>e!=null&&typeof e=="object","isObject"),Cx=R((e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),"hasOwnProperty"),Sx=R(()=>Object.create(null),"makeObjectWithoutPrototype"),bf=R((e,t)=>e===t||!Jo(e)||!Jo(t)?{}:Object.keys(e).reduce((r,n)=>{if(Cx(t,n)){let a=bf(e[n],t[n]);return Jo(a)&&wx(a)||(r[n]=a),r}return r[n]=void 0,r},Sx()),"deletedDiff"),Dx=bf;function yf(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var m,c;return(c=(m=d.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&c!==void 0?c:0})):l},[]);if(a.length){var o=new RegExp(`
|
|
185
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
186
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=l;typeof l=="string"&&l.includes(`
|
|
187
|
+
`)&&(m=String(l).split(`
|
|
188
|
+
`).map(function(c,g){return g===0?c:""+d+c}).join(`
|
|
189
|
+
`)),i+=m+n[s+1]}),i}R(yf,"dedent");var Fx=R(e=>{if(!e)return Wi(Va);let t=Dx(Va,e);return Object.keys(t).length&&Ex.warn(yf`
|
|
190
|
+
Your theme is missing properties, you should update your theme!
|
|
191
|
+
|
|
192
|
+
theme-data missing:
|
|
193
|
+
`,t),Wi(e)},"ensure"),qi="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",go=Fy();const vf=Dy(go);var kx=Object.create,ho=Object.defineProperty,Ax=Object.getOwnPropertyDescriptor,Ox=Object.getOwnPropertyNames,_x=Object.getPrototypeOf,Rx=Object.prototype.hasOwnProperty,p=(e,t)=>ho(e,"name",{value:t,configurable:!0}),fa=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),P=(e,t)=>()=>(e&&(t=e(e=0)),t),G=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ta=(e,t)=>{for(var r in t)ho(e,r,{get:t[r],enumerable:!0})},Tx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ox(t))!Rx.call(e,a)&&a!==r&&ho(e,a,{get:()=>t[a],enumerable:!(n=Ax(t,a))||n.enumerable});return e},Fe=(e,t,r)=>(r=e!=null?kx(_x(e)):{},Tx(t||!e||!e.__esModule?ho(r,"default",{value:e,enumerable:!0}):r,e));function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(null,arguments)}var bo=P(()=>{p(fe,"_extends")});function xf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Px=P(()=>{p(xf,"_assertThisInitialized")});function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},rn(e,t)}var ns=P(()=>{p(rn,"_setPrototypeOf")});function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ga(e)}var Bx=P(()=>{p(Ga,"_getPrototypeOf")}),yo=G((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return p(function r(n,a,o){function i(u,d){if(!a[u]){if(!n[u]){var m=typeof fa=="function"&&fa;if(!d&&m)return m(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var g=a[u]={exports:{}};n[u][0].call(g.exports,function(b){var y=n[u][1][b];return i(y||b)},g,g.exports,r,n,a,o)}return a[u].exports}p(i,"s");for(var l=typeof fa=="function"&&fa,s=0;s<o.length;s++)i(o[s]);return i},"e")({1:[function(r,n,a){n.exports=function(o){if(typeof Map!="function"||o){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}p(o,"Similar"),o.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},o.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},o.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=o},{}],3:[function(r,n,a){var o=r("map-or-similar");n.exports=function(u){var d=new o(!1),m=[];return function(c){var g=p(function(){var b=d,y,v,x=arguments.length-1,C=Array(x+1),w=!0,E;if((g.numArgs||g.numArgs===0)&&g.numArgs!==x+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<x;E++){if(C[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}w=!1,y=new o(!1),b.set(arguments[E],y),b=y}return w&&(b.has(arguments[x])?v=b.get(arguments[x]):w=!1),w||(v=c.apply(null,arguments),b.set(arguments[x],v)),u>0&&(C[x]={cacheItem:b,arg:arguments[x]},w?i(m,C):m.push(C),m.length>u&&l(m.shift())),g.wasMemoized=w,g.numArgs=x+1,v},"memoizerific");return g.limit=u,g.wasMemoized=!1,g.cache=d,g.lru=m,g}};function i(u,d){var m=u.length,c=d.length,g,b,y;for(b=0;b<m;b++){for(g=!0,y=0;y<c;y++)if(!s(u[b][y].arg,d[y].arg)){g=!1;break}if(g)break}u.push(u.splice(b,1)[0])}p(i,"moveToMostRecentLru");function l(u){var d=u.length,m=u[d-1],c,g;for(m.cacheItem.delete(m.arg),g=d-2;g>=0&&(m=u[g],c=m.cacheItem.get(m.arg),!c||!c.size);g--)m.cacheItem.delete(m.arg)}p(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}p(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function vo(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var as=P(()=>{p(vo,"_objectWithoutPropertiesLoose")});function Ef(e,t){if(e==null)return{};var r,n,a=vo(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Ix=P(()=>{as(),p(Ef,"_objectWithoutProperties")});function Ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var wf=P(()=>{p(Ka,"_arrayLikeToArray")});function Cf(e){if(Array.isArray(e))return Ka(e)}var $x=P(()=>{wf(),p(Cf,"_arrayWithoutHoles")});function Sf(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}var Nx=P(()=>{p(Sf,"_iterableToArray")});function Df(e,t){if(e){if(typeof e=="string")return Ka(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ka(e,t):void 0}}var Lx=P(()=>{wf(),p(Df,"_unsupportedIterableToArray")});function Ff(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
194
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jx=P(()=>{p(Ff,"_nonIterableSpread")});function Ya(e){return Cf(e)||Sf(e)||Df(e)||Ff()}var Mx=P(()=>{$x(),Nx(),Lx(),jx(),p(Ya,"_toConsumableArray")});function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}var kf=P(()=>{p(nn,"_typeof")});function Af(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zx=P(()=>{kf(),p(Af,"toPrimitive")});function Of(e){var t=Af(e,"string");return nn(t)=="symbol"?t:t+""}var Hx=P(()=>{kf(),zx(),p(Of,"toPropertyKey")});function os(e,t,r){return(t=Of(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _f=P(()=>{Hx(),p(os,"_defineProperty")});function Vi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(r),!0).forEach(function(n){os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rf(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}function Tf(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Oa[t]||(Oa[t]=Rf(e)),Oa[t]}function Pf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(o){return o!=="token"}),a=Tf(n);return a.reduce(function(o,i){return dr(dr({},o),r[i])},t)}function Gi(e){return e.join(" ")}function Bf(e,t){var r=0;return function(n){return r+=1,n.map(function(a,o){return xo({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function xo(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,o=e.useInlineStyles,i=e.key,l=t.properties,s=t.type,u=t.tagName,d=t.value;if(s==="text")return d;if(u){var m=Bf(r,o),c;if(!o)c=dr(dr({},l),{},{className:Gi(l.className)});else{var g=Object.keys(r).reduce(function(x,C){return C.split(".").forEach(function(w){x.includes(w)||x.push(w)}),x},[]),b=l.className&&l.className.includes("token")?["token"]:[],y=l.className&&b.concat(l.className.filter(function(x){return!g.includes(x)}));c=dr(dr({},l),{},{className:Gi(y)||void 0,style:Pf(l.className,Object.assign({},l.style,a),r)})}var v=m(t.children);return f.createElement(u,fe({key:i},c),v)}}var Oa,If=P(()=>{bo(),_f(),p(Vi,"ownKeys"),p(dr,"_objectSpread"),p(Rf,"powerSetPermutations"),Oa={},p(Tf,"getClassNameCombinations"),p(Pf,"createStyleObject"),p(Gi,"createClassNameString"),p(Bf,"createChildren"),p(xo,"createElement")}),$f,Ux=P(()=>{$f=p(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},"default")});function Ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ki(Object(r),!0).forEach(function(n){os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nf(e){return e.match(Vf)}function Lf(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(a,o){var i=o+r;return f.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(i):n},"".concat(i,`
|
|
195
|
+
`))})}function jf(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,a=n===void 0?{float:"left",paddingRight:"10px"}:n,o=e.numberStyle,i=o===void 0?{}:o,l=e.startingLineNumber;return f.createElement("code",{style:Object.assign({},r,a)},Lf({lines:t.replace(/\n$/,"").split(`
|
|
196
|
+
`),style:i,startingLineNumber:l}))}function Mf(e){return"".concat(e.toString().length,".25em")}function is(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function ls(e,t,r){var n={display:"inline-block",minWidth:Mf(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,o=Rt(Rt({},n),a);return o}function zn(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,l=i===void 0?{}:i,s=e.className,u=s===void 0?[]:s,d=e.showLineNumbers,m=e.wrapLongLines,c=e.wrapLines,g=c===void 0?!1:c,b=g?Rt({},typeof l=="function"?l(r):l):{};if(b.className=b.className?[].concat(Ya(b.className.trim().split(/\s+/)),Ya(u)):u,r&&o){var y=ls(n,r,a);t.unshift(is(r,y))}return m&d&&(b.style=Rt({display:"flex"},b.style)),{type:"element",tagName:"span",properties:b,children:t}}function ss(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var a=e[n];if(a.type==="text")r.push(zn({children:[a],className:Ya(new Set(t))}));else if(a.children){var o=t.concat(a.properties.className);ss(a.children,o).forEach(function(i){return r.push(i)})}}return r}function zf(e,t,r,n,a,o,i,l,s){var u,d=ss(e.value),m=[],c=-1,g=0;function b(S,D){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return zn({children:S,lineNumber:D,lineNumberStyle:l,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:F,showLineNumbers:n,wrapLongLines:s,wrapLines:t})}p(b,"createWrappedLine");function y(S,D){if(n&&D&&a){var F=ls(l,D,i);S.unshift(is(D,F))}return S}p(y,"createUnwrappedLine");function v(S,D){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||F.length>0?b(S,D,F):y(S,D)}p(v,"createLine");for(var x=p(function(){var S=d[g],D=S.children[0].value,F=Nf(D);if(F){var k=D.split(`
|
|
197
|
+
`);k.forEach(function(T,A){var _=n&&m.length+o,B={type:"text",value:"".concat(T,`
|
|
198
|
+
`)};if(A===0){var I=d.slice(c+1,g).concat(zn({children:[B],className:S.properties.className})),z=v(I,_);m.push(z)}else if(A===k.length-1){var N=d[g+1]&&d[g+1].children&&d[g+1].children[0],M={type:"text",value:"".concat(T)};if(N){var U=zn({children:[M],className:S.properties.className});d.splice(g+1,0,U)}else{var K=[M],W=v(K,_,S.properties.className);m.push(W)}}else{var q=[B],Q=v(q,_,S.properties.className);m.push(Q)}}),c=g}g++},"_loop");g<d.length;)x();if(c!==d.length-1){var C=d.slice(c+1,d.length);if(C&&C.length){var w=n&&m.length+o,E=v(C,w);m.push(E)}}return t?m:(u=[]).concat.apply(u,m)}function Hf(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(a,o){return xo({node:a,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(o)})})}function us(e){return e&&typeof e.highlightAuto<"u"}function Uf(e){var t=e.astGenerator,r=e.language,n=e.code,a=e.defaultCodeValue;if(us(t)){var o=$f(t,r);return r==="text"?{value:a,language:"text"}:o?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:a}}catch{return{value:a}}}function Wf(e,t){return p(function(r){var n=r.language,a=r.children,o=r.style,i=o===void 0?t:o,l=r.customStyle,s=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:n?"language-".concat(n):void 0,style:Rt(Rt({},i['code[class*="language-"]']),i['code[class*="language-'.concat(n,'"]')])}:u,m=r.useInlineStyles,c=m===void 0?!0:m,g=r.showLineNumbers,b=g===void 0?!1:g,y=r.showInlineLineNumbers,v=y===void 0?!0:y,x=r.startingLineNumber,C=x===void 0?1:x,w=r.lineNumberContainerStyle,E=r.lineNumberStyle,S=E===void 0?{}:E,D=r.wrapLines,F=r.wrapLongLines,k=F===void 0?!1:F,T=r.lineProps,A=T===void 0?{}:T,_=r.renderer,B=r.PreTag,I=B===void 0?"pre":B,z=r.CodeTag,N=z===void 0?"code":z,M=r.code,U=M===void 0?(Array.isArray(a)?a[0]:a)||"":M,K=r.astGenerator,W=Ef(r,qf);K=K||e;var q=b?f.createElement(jf,{containerStyle:w,codeStyle:d.style||{},numberStyle:S,startingLineNumber:C,codeString:U}):null,Q=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},oe=us(K)?"hljs":"prismjs",ae=c?Object.assign({},W,{style:Object.assign({},Q,s)}):Object.assign({},W,{className:W.className?"".concat(oe," ").concat(W.className):oe,style:Object.assign({},s)});if(k?d.style=Rt({whiteSpace:"pre-wrap"},d.style):d.style=Rt({whiteSpace:"pre"},d.style),!K)return f.createElement(I,ae,q,f.createElement(N,d,U));(D===void 0&&_||k)&&(D=!0),_=_||Hf;var Z=[{type:"text",value:U}],j=Uf({astGenerator:K,language:n,code:U,defaultCodeValue:Z});j.language===null&&(j.value=Z);var J=j.value.length;J===1&&j.value[0].type==="text"&&(J=j.value[0].value.split(`
|
|
199
|
+
`).length);var ee=J+C,ue=zf(j,D,A,b,v,C,ee,S,k);return f.createElement(I,ae,f.createElement(N,d,!v&&q,_({rows:ue,stylesheet:i,useInlineStyles:c})))},"SyntaxHighlighter")}var qf,Vf,Wx=P(()=>{Ix(),Mx(),_f(),If(),Ux(),qf=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],p(Ki,"ownKeys"),p(Rt,"_objectSpread"),Vf=/\n/g,p(Nf,"getNewLines"),p(Lf,"getAllLineNumbers"),p(jf,"AllLineNumbers"),p(Mf,"getEmWidthOfNumber"),p(is,"getInlineLineNumber"),p(ls,"assembleLineNumberStyles"),p(zn,"createLineElement"),p(ss,"flattenCodeTree"),p(zf,"processLines"),p(Hf,"defaultRenderer"),p(us,"isHighlightJs"),p(Uf,"getCodeTree"),p(Wf,"default")}),qx=G((e,t)=>{t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var a={},o=0;o<arguments.length;o++){var i=arguments[o];for(var l in i)r.call(i,l)&&(a[l]=i[l])}return a}p(n,"extend")}),Gf=G((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(a,o,i){this.property=a,this.normal=o,i&&(this.space=i)}p(n,"Schema")}),Vx=G((e,t)=>{var r=qx(),n=Gf();t.exports=a;function a(o){for(var i=o.length,l=[],s=[],u=-1,d,m;++u<i;)d=o[u],l.push(d.property),s.push(d.normal),m=d.space;return new n(r.apply(null,l),r.apply(null,s),m)}p(a,"merge")}),cs=G((e,t)=>{t.exports=r;function r(n){return n.toLowerCase()}p(r,"normalize")}),Kf=G((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1;function n(a,o){this.property=a,this.attribute=o}p(n,"Info")}),ds=G(e=>{var t=0;e.boolean=r(),e.booleanish=r(),e.overloadedBoolean=r(),e.number=r(),e.spaceSeparated=r(),e.commaSeparated=r(),e.commaOrSpaceSeparated=r();function r(){return Math.pow(2,++t)}p(r,"increment")}),Yf=G((e,t)=>{var r=Kf(),n=ds();t.exports=i,i.prototype=new r,i.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function i(s,u,d,m){var c=-1,g;for(l(this,"space",m),r.call(this,s,u);++c<o;)g=a[c],l(this,g,(d&n[g])===n[g])}p(i,"DefinedInfo");function l(s,u,d){d&&(s[u]=d)}p(l,"mark")}),ra=G((e,t)=>{var r=cs(),n=Gf(),a=Yf();t.exports=o;function o(i){var l=i.space,s=i.mustUseProperty||[],u=i.attributes||{},d=i.properties,m=i.transform,c={},g={},b,y;for(b in d)y=new a(b,m(u,b),d[b],l),s.indexOf(b)!==-1&&(y.mustUseProperty=!0),c[b]=y,g[r(b)]=b,g[r(y.attribute)]=b;return new n(c,g,l)}p(o,"create")}),Gx=G((e,t)=>{var r=ra();t.exports=r({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(a,o){return"xlink:"+o.slice(5).toLowerCase()}p(n,"xlinkTransform")}),Kx=G((e,t)=>{var r=ra();t.exports=r({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(a,o){return"xml:"+o.slice(3).toLowerCase()}p(n,"xmlTransform")}),Yx=G((e,t)=>{t.exports=r;function r(n,a){return a in n?n[a]:a}p(r,"caseSensitiveTransform")}),Xf=G((e,t)=>{var r=Yx();t.exports=n;function n(a,o){return r(a,o.toLowerCase())}p(n,"caseInsensitiveTransform")}),Xx=G((e,t)=>{var r=ra(),n=Xf();t.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}})}),Zx=G((e,t)=>{var r=ds(),n=ra(),a=r.booleanish,o=r.number,i=r.spaceSeparated;t.exports=n({transform:l,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:a,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:i,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:i,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}});function l(s,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()}p(l,"ariaTransform")}),Jx=G((e,t)=>{var r=ds(),n=ra(),a=Xf(),o=r.boolean,i=r.overloadedBoolean,l=r.booleanish,s=r.number,u=r.spaceSeparated,d=r.commaSeparated;t.exports=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:i,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:s,hidden:o,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:s,security:null,unselectable:null}})}),Qx=G((e,t)=>{var r=Vx(),n=Gx(),a=Kx(),o=Xx(),i=Zx(),l=Jx();t.exports=r([a,n,o,i,l])}),eE=G((e,t)=>{var r=cs(),n=Yf(),a=Kf(),o="data";t.exports=u;var i=/^data[-\w.:]+$/i,l=/-[a-z]/g,s=/[A-Z]/g;function u(b,y){var v=r(y),x=y,C=a;return v in b.normal?b.property[b.normal[v]]:(v.length>4&&v.slice(0,4)===o&&i.test(y)&&(y.charAt(4)==="-"?x=d(y):y=m(y),C=n),new C(x,y))}p(u,"find");function d(b){var y=b.slice(5).replace(l,g);return o+y.charAt(0).toUpperCase()+y.slice(1)}p(d,"datasetToProperty");function m(b){var y=b.slice(4);return l.test(y)?b:(y=y.replace(s,c),y.charAt(0)!=="-"&&(y="-"+y),o+y)}p(m,"datasetToAttribute");function c(b){return"-"+b.toLowerCase()}p(c,"kebab");function g(b){return b.charAt(1).toUpperCase()}p(g,"camelcase")}),tE=G((e,t)=>{t.exports=n;var r=/[#.]/g;function n(a,o){for(var i=a||"",l=o||"div",s={},u=0,d,m,c;u<i.length;)r.lastIndex=u,c=r.exec(i),d=i.slice(u,c?c.index:i.length),d&&(m?m==="#"?s.id=d:s.className?s.className.push(d):s.className=[d]:l=d,u+=d.length),c&&(m=c[0],u++);return{type:"element",tagName:l,properties:s,children:[]}}p(n,"parse")}),rE=G(e=>{e.parse=a,e.stringify=o;var t="",r=" ",n=/[ \t\n\r\f]+/g;function a(i){var l=String(i||t).trim();return l===t?[]:l.split(n)}p(a,"parse");function o(i){return i.join(r).trim()}p(o,"stringify")}),nE=G(e=>{e.parse=a,e.stringify=o;var t=",",r=" ",n="";function a(i){for(var l=[],s=String(i||n),u=s.indexOf(t),d=0,m=!1,c;!m;)u===-1&&(u=s.length,m=!0),c=s.slice(d,u).trim(),(c||!m)&&l.push(c),d=u+1,u=s.indexOf(t,d);return l}p(a,"parse");function o(i,l){var s=l||{},u=s.padLeft===!1?n:r,d=s.padRight?r:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(d+t+u).trim()}p(o,"stringify")}),aE=G((e,t)=>{var r=eE(),n=cs(),a=tE(),o=rE().parse,i=nE().parse;t.exports=s;var l={}.hasOwnProperty;function s(v,x,C){var w=C?y(C):null;return E;function E(D,F){var k=a(D,x),T=Array.prototype.slice.call(arguments,2),A=k.tagName.toLowerCase(),_;if(k.tagName=w&&l.call(w,A)?w[A]:A,F&&u(F,k)&&(T.unshift(F),F=null),F)for(_ in F)S(k.properties,_,F[_]);return m(k.children,T),k.tagName==="template"&&(k.content={type:"root",children:k.children},k.children=[]),k}function S(D,F,k){var T,A,_;k==null||k!==k||(T=r(v,F),A=T.property,_=k,typeof _=="string"&&(T.spaceSeparated?_=o(_):T.commaSeparated?_=i(_):T.commaOrSpaceSeparated&&(_=o(i(_).join(" ")))),A==="style"&&typeof k!="string"&&(_=b(_)),A==="className"&&D.className&&(_=D.className.concat(_)),D[A]=c(T,A,_))}}p(s,"factory");function u(v,x){return typeof v=="string"||"length"in v||d(x.tagName,v)}p(u,"isChildren");function d(v,x){var C=x.type;return v==="input"||!C||typeof C!="string"?!1:typeof x.children=="object"&&"length"in x.children?!0:(C=C.toLowerCase(),v==="button"?C!=="menu"&&C!=="submit"&&C!=="reset"&&C!=="button":"value"in x)}p(d,"isNode");function m(v,x){var C,w;if(typeof x=="string"||typeof x=="number"){v.push({type:"text",value:String(x)});return}if(typeof x=="object"&&"length"in x){for(C=-1,w=x.length;++C<w;)m(v,x[C]);return}if(typeof x!="object"||!("type"in x))throw new Error("Expected node, nodes, or string, got `"+x+"`");v.push(x)}p(m,"addChild");function c(v,x,C){var w,E,S;if(typeof C!="object"||!("length"in C))return g(v,x,C);for(E=C.length,w=-1,S=[];++w<E;)S[w]=g(v,x,C[w]);return S}p(c,"parsePrimitives");function g(v,x,C){var w=C;return v.number||v.positiveNumber?!isNaN(w)&&w!==""&&(w=Number(w)):(v.boolean||v.overloadedBoolean)&&typeof w=="string"&&(w===""||n(C)===n(x))&&(w=!0),w}p(g,"parsePrimitive");function b(v){var x=[],C;for(C in v)x.push([C,v[C]].join(": "));return x.join("; ")}p(b,"style");function y(v){for(var x=v.length,C=-1,w={},E;++C<x;)E=v[C],w[E.toLowerCase()]=E;return w}p(y,"createAdjustMap")}),oE=G((e,t)=>{var r=Qx(),n=aE(),a=n(r,"div");a.displayName="html",t.exports=a}),iE=G((e,t)=>{t.exports=oE()}),lE=G((e,t)=>{t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),sE=G((e,t)=>{t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),Zf=G((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}p(r,"decimal")}),uE=G((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}p(r,"hexadecimal")}),cE=G((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}p(r,"alphabetical")}),dE=G((e,t)=>{var r=cE(),n=Zf();t.exports=a;function a(o){return r(o)||n(o)}p(a,"alphanumerical")}),pE=G((e,t)=>{var r,n=59;t.exports=a;function a(o){var i="&"+o+";",l;return r=r||document.createElement("i"),r.innerHTML=i,l=r.textContent,l.charCodeAt(l.length-1)===n&&o!=="semi"||l===i?!1:l}p(a,"decodeEntity")}),fE=G((e,t)=>{var r=lE(),n=sE(),a=Zf(),o=uE(),i=dE(),l=pE();t.exports=Q;var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,m={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},c=9,g=10,b=12,y=32,v=38,x=59,C=60,w=61,E=35,S=88,D=120,F=65533,k="named",T="hexadecimal",A="decimal",_={};_[T]=16,_[A]=10;var B={};B[k]=i,B[A]=a,B[T]=o;var I=1,z=2,N=3,M=4,U=5,K=6,W=7,q={};q[I]="Named character references must be terminated by a semicolon",q[z]="Numeric character references must be terminated by a semicolon",q[N]="Named character references cannot be empty",q[M]="Numeric character references cannot be empty",q[U]="Named character references must be known",q[K]="Numeric character references cannot be disallowed",q[W]="Numeric character references cannot be outside the permissible Unicode range";function Q(j,J){var ee={},ue,ie;J||(J={});for(ie in m)ue=J[ie],ee[ie]=ue??m[ie];return(ee.position.indent||ee.position.start)&&(ee.indent=ee.position.indent||[],ee.position=ee.position.start),oe(j,ee)}p(Q,"parseEntities");function oe(j,J){var ee=J.additional,ue=J.nonTerminated,ie=J.text,Ze=J.reference,te=J.warning,le=J.textContext,$=J.referenceContext,se=J.warningContext,de=J.position,Ie=J.indent||[],ge=j.length,_e=0,jt=-1,he=de.column||1,We=de.line||1,be="",tt=[],Re,rt,ht,ke,nt,we,ye,bt,ua,Vo,nr,En,ar,kt,Su,wn,ca,yt,Ce;for(typeof ee=="string"&&(ee=ee.charCodeAt(0)),wn=Cn(),bt=te?Sy:d,_e--,ge++;++_e<ge;)if(nt===g&&(he=Ie[jt]||1),nt=j.charCodeAt(_e),nt===v){if(ye=j.charCodeAt(_e+1),ye===c||ye===g||ye===b||ye===y||ye===v||ye===C||ye!==ye||ee&&ye===ee){be+=u(nt),he++;continue}for(ar=_e+1,En=ar,Ce=ar,ye===E?(Ce=++En,ye=j.charCodeAt(Ce),ye===S||ye===D?(kt=T,Ce=++En):kt=A):kt=k,Re="",nr="",ke="",Su=B[kt],Ce--;++Ce<ge&&(ye=j.charCodeAt(Ce),!!Su(ye));)ke+=u(ye),kt===k&&s.call(r,ke)&&(Re=ke,nr=r[ke]);ht=j.charCodeAt(Ce)===x,ht&&(Ce++,rt=kt===k?l(ke):!1,rt&&(Re=ke,nr=rt)),yt=1+Ce-ar,!ht&&!ue||(ke?kt===k?(ht&&!nr?bt(U,1):(Re!==ke&&(Ce=En+Re.length,yt=1+Ce-En,ht=!1),ht||(ua=Re?I:N,J.attribute?(ye=j.charCodeAt(Ce),ye===w?(bt(ua,yt),nr=null):i(ye)?nr=null:bt(ua,yt)):bt(ua,yt))),we=nr):(ht||bt(z,yt),we=parseInt(ke,_[kt]),ae(we)?(bt(W,yt),we=u(F)):we in n?(bt(K,yt),we=n[we]):(Vo="",Z(we)&&bt(K,yt),we>65535&&(we-=65536,Vo+=u(we>>>10|55296),we=56320|we&1023),we=Vo+u(we))):kt!==k&&bt(M,yt)),we?(Du(),wn=Cn(),_e=Ce-1,he+=Ce-ar+1,tt.push(we),ca=Cn(),ca.offset++,Ze&&Ze.call($,we,{start:wn,end:ca},j.slice(ar-1,Ce)),wn=ca):(ke=j.slice(ar-1,Ce),be+=ke,he+=ke.length,_e=Ce-1)}else nt===10&&(We++,jt++,he=0),nt===nt?(be+=u(nt),he++):Du();return tt.join("");function Cn(){return{line:We,column:he,offset:_e+(de.offset||0)}}function Sy(Fu,ku){var Go=Cn();Go.column+=ku,Go.offset+=ku,te.call(se,q[Fu],Go,Fu)}function Du(){be&&(tt.push(be),ie&&ie.call(le,be,{start:wn,end:Cn()}),be="")}}p(oe,"parse");function ae(j){return j>=55296&&j<=57343||j>1114111}p(ae,"prohibited");function Z(j){return j>=1&&j<=8||j===11||j>=13&&j<=31||j>=127&&j<=159||j>=64976&&j<=65007||(j&65535)===65535||(j&65535)===65534}p(Z,"disallowed")}),mE=G((e,t)=>{var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(a){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,l={},s={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:p(function w(E){return E instanceof u?new u(E.type,w(E.content),E.alias):Array.isArray(E)?E.map(w):E.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},"encode"),type:p(function(w){return Object.prototype.toString.call(w).slice(8,-1)},"type"),objId:p(function(w){return w.__id||Object.defineProperty(w,"__id",{value:++i}),w.__id},"objId"),clone:p(function w(E,S){S=S||{};var D,F;switch(s.util.type(E)){case"Object":if(F=s.util.objId(E),S[F])return S[F];D={},S[F]=D;for(var k in E)E.hasOwnProperty(k)&&(D[k]=w(E[k],S));return D;case"Array":return F=s.util.objId(E),S[F]?S[F]:(D=[],S[F]=D,E.forEach(function(T,A){D[A]=w(T,S)}),D);default:return E}},"deepClone"),getLanguage:p(function(w){for(;w;){var E=o.exec(w.className);if(E)return E[1].toLowerCase();w=w.parentElement}return"none"},"getLanguage"),setLanguage:p(function(w,E){w.className=w.className.replace(RegExp(o,"gi"),""),w.classList.add("language-"+E)},"setLanguage"),currentScript:p(function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(D){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(D.stack)||[])[1];if(w){var E=document.getElementsByTagName("script");for(var S in E)if(E[S].src==w)return E[S]}return null}},"currentScript"),isActive:p(function(w,E,S){for(var D="no-"+E;w;){var F=w.classList;if(F.contains(E))return!0;if(F.contains(D))return!1;w=w.parentElement}return!!S},"isActive")},languages:{plain:l,plaintext:l,text:l,txt:l,extend:p(function(w,E){var S=s.util.clone(s.languages[w]);for(var D in E)S[D]=E[D];return S},"extend"),insertBefore:p(function(w,E,S,D){D=D||s.languages;var F=D[w],k={};for(var T in F)if(F.hasOwnProperty(T)){if(T==E)for(var A in S)S.hasOwnProperty(A)&&(k[A]=S[A]);S.hasOwnProperty(T)||(k[T]=F[T])}var _=D[w];return D[w]=k,s.languages.DFS(s.languages,function(B,I){I===_&&B!=w&&(this[B]=k)}),k},"insertBefore"),DFS:p(function w(E,S,D,F){F=F||{};var k=s.util.objId;for(var T in E)if(E.hasOwnProperty(T)){S.call(E,T,E[T],D||T);var A=E[T],_=s.util.type(A);_==="Object"&&!F[k(A)]?(F[k(A)]=!0,w(A,S,null,F)):_==="Array"&&!F[k(A)]&&(F[k(A)]=!0,w(A,S,T,F))}},"DFS")},plugins:{},highlightAll:p(function(w,E){s.highlightAllUnder(document,w,E)},"highlightAll"),highlightAllUnder:p(function(w,E,S){var D={callback:S,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",D),D.elements=Array.prototype.slice.apply(D.container.querySelectorAll(D.selector)),s.hooks.run("before-all-elements-highlight",D);for(var F=0,k;k=D.elements[F++];)s.highlightElement(k,E===!0,D.callback)},"highlightAllUnder"),highlightElement:p(function(w,E,S){var D=s.util.getLanguage(w),F=s.languages[D];s.util.setLanguage(w,D);var k=w.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,D);var T=w.textContent,A={element:w,language:D,grammar:F,code:T};function _(I){A.highlightedCode=I,s.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,s.hooks.run("after-highlight",A),s.hooks.run("complete",A),S&&S.call(A.element)}if(p(_,"insertHighlightedCode"),s.hooks.run("before-sanity-check",A),k=A.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!A.code){s.hooks.run("complete",A),S&&S.call(A.element);return}if(s.hooks.run("before-highlight",A),!A.grammar){_(s.util.encode(A.code));return}if(E&&a.Worker){var B=new Worker(s.filename);B.onmessage=function(I){_(I.data)},B.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else _(s.highlight(A.code,A.grammar,A.language))},"highlightElement"),highlight:p(function(w,E,S){var D={code:w,grammar:E,language:S};if(s.hooks.run("before-tokenize",D),!D.grammar)throw new Error('The language "'+D.language+'" has no grammar.');return D.tokens=s.tokenize(D.code,D.grammar),s.hooks.run("after-tokenize",D),u.stringify(s.util.encode(D.tokens),D.language)},"highlight"),tokenize:p(function(w,E){var S=E.rest;if(S){for(var D in S)E[D]=S[D];delete E.rest}var F=new c;return g(F,F.head,w),m(w,F,E,F.head,0),y(F)},"tokenize"),hooks:{all:{},add:p(function(w,E){var S=s.hooks.all;S[w]=S[w]||[],S[w].push(E)},"add"),run:p(function(w,E){var S=s.hooks.all[w];if(!(!S||!S.length))for(var D=0,F;F=S[D++];)F(E)},"run")},Token:u};a.Prism=s;function u(w,E,S,D){this.type=w,this.content=E,this.alias=S,this.length=(D||"").length|0}p(u,"Token"),u.stringify=p(function w(E,S){if(typeof E=="string")return E;if(Array.isArray(E)){var D="";return E.forEach(function(_){D+=w(_,S)}),D}var F={type:E.type,content:w(E.content,S),tag:"span",classes:["token",E.type],attributes:{},language:S},k=E.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(F.classes,k):F.classes.push(k)),s.hooks.run("wrap",F);var T="";for(var A in F.attributes)T+=" "+A+'="'+(F.attributes[A]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+T+">"+F.content+"</"+F.tag+">"},"stringify");function d(w,E,S,D){w.lastIndex=E;var F=w.exec(S);if(F&&D&&F[1]){var k=F[1].length;F.index+=k,F[0]=F[0].slice(k)}return F}p(d,"matchPattern");function m(w,E,S,D,F,k){for(var T in S)if(!(!S.hasOwnProperty(T)||!S[T])){var A=S[T];A=Array.isArray(A)?A:[A];for(var _=0;_<A.length;++_){if(k&&k.cause==T+","+_)return;var B=A[_],I=B.inside,z=!!B.lookbehind,N=!!B.greedy,M=B.alias;if(N&&!B.pattern.global){var U=B.pattern.toString().match(/[imsuy]*$/)[0];B.pattern=RegExp(B.pattern.source,U+"g")}for(var K=B.pattern||B,W=D.next,q=F;W!==E.tail&&!(k&&q>=k.reach);q+=W.value.length,W=W.next){var Q=W.value;if(E.length>w.length)return;if(!(Q instanceof u)){var oe=1,ae;if(N){if(ae=d(K,q,w,z),!ae||ae.index>=w.length)break;var ee=ae.index,Z=ae.index+ae[0].length,j=q;for(j+=W.value.length;ee>=j;)W=W.next,j+=W.value.length;if(j-=W.value.length,q=j,W.value instanceof u)continue;for(var J=W;J!==E.tail&&(j<Z||typeof J.value=="string");J=J.next)oe++,j+=J.value.length;oe--,Q=w.slice(q,j),ae.index-=q}else if(ae=d(K,0,Q,z),!ae)continue;var ee=ae.index,ue=ae[0],ie=Q.slice(0,ee),Ze=Q.slice(ee+ue.length),te=q+Q.length;k&&te>k.reach&&(k.reach=te);var le=W.prev;ie&&(le=g(E,le,ie),q+=ie.length),b(E,le,oe);var $=new u(T,I?s.tokenize(ue,I):ue,M,ue);if(W=g(E,le,$),Ze&&g(E,W,Ze),oe>1){var se={cause:T+","+_,reach:te};m(w,E,S,W.prev,q,se),k&&se.reach>k.reach&&(k.reach=se.reach)}}}}}}p(m,"matchGrammar");function c(){var w={value:null,prev:null,next:null},E={value:null,prev:w,next:null};w.next=E,this.head=w,this.tail=E,this.length=0}p(c,"LinkedList");function g(w,E,S){var D=E.next,F={value:S,prev:E,next:D};return E.next=F,D.prev=F,w.length++,F}p(g,"addAfter");function b(w,E,S){for(var D=E.next,F=0;F<S&&D!==w.tail;F++)D=D.next;E.next=D,D.prev=E,w.length-=F}p(b,"removeRange");function y(w){for(var E=[],S=w.head.next;S!==w.tail;)E.push(S.value),S=S.next;return E}if(p(y,"toArray"),!a.document)return a.addEventListener&&(s.disableWorkerMessageHandler||a.addEventListener("message",function(w){var E=JSON.parse(w.data),S=E.language,D=E.code,F=E.immediateClose;a.postMessage(s.highlight(D,s.languages[S],S)),F&&a.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function x(){s.manual||s.highlightAll()}if(p(x,"highlightAutomaticallyCallback"),!s.manual){var C=document.readyState;C==="loading"||C==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return s}(r);typeof t<"u"&&t.exports&&(t.exports=n),typeof global<"u"&&(global.Prism=n)}),Jf=G((e,t)=>{t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:p(function(a,o){var i={};i["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var s={};s[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",s)},"addInlined")}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:p(function(a,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})},"value")}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}p(r,"markup")}),Qf=G((e,t)=>{t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(a){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var i=a.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}p(r,"css")}),gE=G((e,t)=>{t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}p(r,"clike")}),hE=G((e,t)=>{t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}p(r,"javascript")}),bE=G((e,t)=>{var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},n=F();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var a=iE(),o=fE(),i=mE(),l=Jf(),s=Qf(),u=gE(),d=hE();n();var m={}.hasOwnProperty;function c(){}p(c,"Refractor"),c.prototype=i;var g=new c;t.exports=g,g.highlight=v,g.register=b,g.alias=y,g.registered=x,g.listLanguages=C,b(l),b(s),b(u),b(d),g.util.encode=S,g.Token.stringify=w;function b(k){if(typeof k!="function"||!k.displayName)throw new Error("Expected `function` for `grammar`, got `"+k+"`");g.languages[k.displayName]===void 0&&k(g)}p(b,"register");function y(k,T){var A=g.languages,_=k,B,I,z,N;T&&(_={},_[k]=T);for(B in _)for(I=_[B],I=typeof I=="string"?[I]:I,z=I.length,N=-1;++N<z;)A[I[N]]=A[B]}p(y,"alias");function v(k,T){var A=i.highlight,_;if(typeof k!="string")throw new Error("Expected `string` for `value`, got `"+k+"`");if(g.util.type(T)==="Object")_=T,T=null;else{if(typeof T!="string")throw new Error("Expected `string` for `name`, got `"+T+"`");if(m.call(g.languages,T))_=g.languages[T];else throw new Error("Unknown language: `"+T+"` is not registered")}return A.call(this,k,_,T)}p(v,"highlight");function x(k){if(typeof k!="string")throw new Error("Expected `string` for `language`, got `"+k+"`");return m.call(g.languages,k)}p(x,"registered");function C(){var k=g.languages,T=[],A;for(A in k)m.call(k,A)&&typeof k[A]=="object"&&T.push(A);return T}p(C,"listLanguages");function w(k,T,A){var _;return typeof k=="string"?{type:"text",value:k}:g.util.type(k)==="Array"?E(k,T):(_={type:k.type,content:g.Token.stringify(k.content,T,A),tag:"span",classes:["token",k.type],attributes:{},language:T,parent:A},k.alias&&(_.classes=_.classes.concat(k.alias)),g.hooks.run("wrap",_),a(_.tag+"."+_.classes.join("."),D(_.attributes),_.content))}p(w,"stringify");function E(k,T){for(var A=[],_=k.length,B=-1,I;++B<_;)I=k[B],I!==""&&I!==null&&I!==void 0&&A.push(I);for(B=-1,_=A.length;++B<_;)I=A[B],A[B]=g.Token.stringify(I,T,A);return A}p(E,"stringifyAll");function S(k){return k}p(S,"encode");function D(k){var T;for(T in k)k[T]=o(k[T]);return k}p(D,"attributes");function F(){var k="Prism"in r,T=k?r.Prism:void 0;return A;function A(){k?r.Prism=T:delete r.Prism,k=void 0,T=void 0}}p(F,"capture")}),ma,ga,_a,yE=P(()=>{Wx(),ma=Fe(bE()),ga=Wf(ma.default,{}),ga.registerLanguage=function(e,t){return ma.default.register(t)},ga.alias=function(e,t){return ma.default.alias(e,t)},_a=ga}),vE=P(()=>{If()}),xE=G((e,t)=>{t.exports=r,r.displayName="bash",r.aliases=["shell"];function r(n){(function(a){var o="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:i,environment:{pattern:RegExp("\\$"+o),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+o),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+o),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+o),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=a.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=l.variable[1].inside,d=0;d<s.length;d++)u[s[d]]=a.languages.bash[s[d]];a.languages.shell=a.languages.bash})(n)}p(r,"bash")}),ju,em,EE=P(()=>{ju=Fe(xE()),em=ju.default}),Mu,tm,wE=P(()=>{Mu=Fe(Qf()),tm=Mu.default}),CE=G((e,t)=>{t.exports=r,r.displayName="graphql",r.aliases=[];function r(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",p(function(a){if(a.language!=="graphql")return;var o=a.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function l(C){return o[i+C]}p(l,"getToken");function s(C,w){w=w||0;for(var E=0;E<C.length;E++){var S=l(E+w);if(!S||S.type!==C[E])return!1}return!0}p(s,"isTokenType");function u(C,w){for(var E=1,S=i;S<o.length;S++){var D=o[S],F=D.content;if(D.type==="punctuation"&&typeof F=="string"){if(C.test(F))E++;else if(w.test(F)&&(E--,E===0))return S}}return-1}p(u,"findClosingBracket");function d(C,w){var E=C.alias;E?Array.isArray(E)||(C.alias=E=[E]):C.alias=E=[],E.push(w)}for(p(d,"addAlias");i<o.length;){var m=o[i++];if(m.type==="keyword"&&m.content==="mutation"){var c=[];if(s(["definition-mutation","punctuation"])&&l(1).content==="("){i+=2;var g=u(/^\($/,/^\)$/);if(g===-1)continue;for(;i<g;i++){var b=l(0);b.type==="variable"&&(d(b,"variable-input"),c.push(b.content))}i=g+1}if(s(["punctuation","property-query"])&&l(0).content==="{"&&(i++,d(l(0),"property-mutation"),c.length>0)){var y=u(/^\{$/,/^\}$/);if(y===-1)continue;for(var v=i;v<y;v++){var x=o[v];x.type==="variable"&&c.indexOf(x.content)>=0&&d(x,"variable-input")}}}}},"afterTokenizeGraphql"))}p(r,"graphql")}),zu,rm,SE=P(()=>{zu=Fe(CE()),rm=zu.default}),DE=G((e,t)=>{t.exports=r,r.displayName="jsExtras",r.aliases=[];function r(n){(function(a){a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function o(m,c){return RegExp(m.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}p(o,"withId"),a.languages.insertBefore("javascript","keyword",{imports:{pattern:o(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:o(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:o(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],l=0;l<i.length;l++){var s=i[l],u=a.languages.javascript[s];a.util.type(u)==="RegExp"&&(u=a.languages.javascript[s]={pattern:u});var d=u.inside||{};u.inside=d,d["maybe-class-name"]=/^[A-Z][\s\S]*/}})(n)}p(r,"jsExtras")}),Hu,nm,FE=P(()=>{Hu=Fe(DE()),nm=Hu.default}),kE=G((e,t)=>{t.exports=r,r.displayName="json",r.aliases=["webmanifest"];function r(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}p(r,"json")}),Uu,am,AE=P(()=>{Uu=Fe(kE()),am=Uu.default}),om=G((e,t)=>{t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(a){var o=a.util.clone(a.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,l=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(c,g){return c=c.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return l}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,g)}p(u,"re"),s=u(s).source,a.languages.jsx=a.languages.extend("markup",o),a.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=o.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var d=p(function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(d).join(""):""},"stringifyToken"),m=p(function(c){for(var g=[],b=0;b<c.length;b++){var y=c[b],v=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===d(y.content[0].content[1])&&g.pop():y.content[y.content.length-1].content==="/>"||g.push({tagName:d(y.content[0].content[1]),openedBraces:0}):g.length>0&&y.type==="punctuation"&&y.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?g[g.length-1].openedBraces--:v=!0),(v||typeof y=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var x=d(y);b<c.length-1&&(typeof c[b+1]=="string"||c[b+1].type==="plain-text")&&(x+=d(c[b+1]),c.splice(b+1,1)),b>0&&(typeof c[b-1]=="string"||c[b-1].type==="plain-text")&&(x=d(c[b-1])+x,c.splice(b-1,1),b--),c[b]=new a.Token("plain-text",x,null,x)}y.content&&typeof y.content!="string"&&m(y.content)}},"walkTokens");a.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||m(c.tokens)})})(n)}p(r,"jsx")}),Wu,im,OE=P(()=>{Wu=Fe(om()),im=Wu.default}),_E=G((e,t)=>{t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(a){var o=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(b){return b=b.replace(/<inner>/g,function(){return o}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+b+")")}p(i,"createInline");var l=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return l}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(l),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(l),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(b){["url","bold","italic","strike","code-snippet"].forEach(function(y){b!==y&&(a.languages.markdown[b].inside.content.inside[y]=a.languages.markdown[y])})}),a.hooks.add("after-tokenize",function(b){if(b.language!=="markdown"&&b.language!=="md")return;function y(v){if(!(!v||typeof v=="string"))for(var x=0,C=v.length;x<C;x++){var w=v[x];if(w.type!=="code"){y(w.content);continue}var E=w.content[1],S=w.content[3];if(E&&S&&E.type==="code-language"&&S.type==="code-block"&&typeof E.content=="string"){var D=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");D=(/[a-z][\w-]*/i.exec(D)||[""])[0].toLowerCase();var F="language-"+D;S.alias?typeof S.alias=="string"?S.alias=[S.alias,F]:S.alias.push(F):S.alias=[F]}}}p(y,"walkTokens"),y(b.tokens)}),a.hooks.add("wrap",function(b){if(b.type==="code-block"){for(var y="",v=0,x=b.classes.length;v<x;v++){var C=b.classes[v],w=/language-(.+)/.exec(C);if(w){y=w[1];break}}var E=a.languages[y];if(E)b.content=a.highlight(g(b.content.value),E,y);else if(y&&y!=="none"&&a.plugins.autoloader){var S="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);b.attributes.id=S,a.plugins.autoloader.loadLanguages(y,function(){var D=document.getElementById(S);D&&(D.innerHTML=a.highlight(D.textContent,a.languages[y],y))})}}});var d=RegExp(a.languages.markup.tag.pattern.source,"gi"),m={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function g(b){var y=b.replace(d,"");return y=y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,x){if(x=x.toLowerCase(),x[0]==="#"){var C;return x[1]==="x"?C=parseInt(x.slice(2),16):C=Number(x.slice(1)),c(C)}else{var w=m[x];return w||v}}),y}p(g,"textContent"),a.languages.md=a.languages.markdown})(n)}p(r,"markdown")}),qu,lm,RE=P(()=>{qu=Fe(_E()),lm=qu.default}),Vu,sm,TE=P(()=>{Vu=Fe(Jf()),sm=Vu.default}),um=G((e,t)=>{t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var o=a.languages.extend("typescript",{});delete o["class-name"],a.languages.typescript["class-name"].inside=o,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:o}}}}),a.languages.ts=a.languages.typescript})(n)}p(r,"typescript")}),PE=G((e,t)=>{var r=om(),n=um();t.exports=a,a.displayName="tsx",a.aliases=[];function a(o){o.register(r),o.register(n),function(i){var l=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",l),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0}(o)}p(a,"tsx")}),Gu,cm,BE=P(()=>{Gu=Fe(PE()),cm=Gu.default}),Ku,dm,IE=P(()=>{Ku=Fe(um()),dm=Ku.default}),$E=G((e,t)=>{t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(a){var o=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+i.source+"(?:[ ]+"+o.source+")?|"+o.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function d(m,c){c=(c||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return m});return RegExp(g,c)}p(d,"createValuePattern"),a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(u),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:o,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(n)}p(r,"yaml")}),Yu,pm,NE=P(()=>{Yu=Fe($E()),pm=Yu.default}),Xu,Qo,Eo,fm=P(()=>{Xu=O.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Qo=O.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}),Qo.displayName="ActionButton",Eo=p(({actionItems:e,...t})=>f.createElement(Xu,{...t},e.map(({title:r,className:n,onClick:a,disabled:o},i)=>f.createElement(Qo,{key:i,className:n,onClick:a,disabled:!!o},r))),"ActionBar")});function mm(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ps(...e){return t=>e.forEach(r=>mm(r,t))}function Vt(...e){return h.useCallback(ps(...e),e)}var fs=P(()=>{p(mm,"setRef"),p(ps,"composeRefs"),p(Vt,"useComposedRefs")});function Zu(e){return h.isValidElement(e)&&e.type===gm}function Ju(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...i)=>{o(...i),a(...i)}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}function Qu(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yi,ha,gm,LE=P(()=>{fs(),Yi=h.forwardRef((e,t)=>{let{children:r,...n}=e,a=h.Children.toArray(r),o=a.find(Zu);if(o){let i=o.props.children,l=a.map(s=>s===o?h.Children.count(i)>1?h.Children.only(null):h.isValidElement(i)?i.props.children:null:s);return L.jsx(ha,{...n,ref:t,children:h.isValidElement(i)?h.cloneElement(i,void 0,l):null})}return L.jsx(ha,{...n,ref:t,children:r})}),Yi.displayName="Slot",ha=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){let a=Qu(r);return h.cloneElement(r,{...Ju(n,r.props),ref:t?ps(t,a):a})}return h.Children.count(r)>1?h.Children.only(null):null}),ha.displayName="SlotClone",gm=p(({children:e})=>L.jsx(L.Fragment,{children:e}),"Slottable"),p(Zu,"isSlottable"),p(Ju,"mergeProps"),p(Qu,"getElementRef")}),ec,Nr,jE=P(()=>{LE(),ec=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nr=ec.reduce((e,t)=>{let r=h.forwardRef((n,a)=>{let{asChild:o,...i}=n,l=o?Yi:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{})}),Xa,hm=P(()=>{Xa=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{}});function bm(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}function tc(e){let[t,r]=h.useState(),n=h.useRef({}),a=h.useRef(e),o=h.useRef("none"),i=e?"mounted":"unmounted",[l,s]=bm(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=Bn(n.current);o.current=l==="mounted"?u:"none"},[l]),Xa(()=>{let u=n.current,d=a.current;if(d!==e){let m=o.current,c=Bn(u);e?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&m!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Xa(()=>{if(t){let u=p(m=>{let c=Bn(n.current).includes(m.animationName);m.target===t&&c&&go.flushSync(()=>s("ANIMATION_END"))},"handleAnimationEnd"),d=p(m=>{m.target===t&&(o.current=Bn(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Bn(e){return(e==null?void 0:e.animationName)||"none"}function rc(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var zr,ME=P(()=>{"use client";fs(),hm(),p(bm,"useStateMachine"),zr=p(e=>{let{present:t,children:r}=e,n=tc(t),a=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),o=Vt(n.ref,rc(a));return typeof r=="function"||n.isPresent?h.cloneElement(a,{ref:o}):null},"Presence"),zr.displayName="Presence",p(tc,"usePresence"),p(Bn,"getAnimationName"),p(rc,"getElementRef")});function ym(e,t=[]){let r=[];function n(o,i){let l=h.createContext(i),s=r.length;r=[...r,i];function u(m){let{scope:c,children:g,...b}=m,y=(c==null?void 0:c[e][s])||l,v=h.useMemo(()=>b,Object.values(b));return L.jsx(y.Provider,{value:v,children:g})}p(u,"Provider");function d(m,c){let g=(c==null?void 0:c[e][s])||l,b=h.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return p(d,"useContext2"),u.displayName=o+"Provider",[u,d]}p(n,"createContext3");let a=p(()=>{let o=r.map(i=>h.createContext(i));return p(function(i){let l=(i==null?void 0:i[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return a.scopeName=e,[n,vm(a,...t)]}function vm(...e){let t=e[0];if(e.length===1)return t;let r=p(()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return p(function(a){let o=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(a)[`__scope${s}`];return{...i,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}var zE=P(()=>{p(ym,"createContextScope"),p(vm,"composeContextScopes")});function Kt(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var HE=P(()=>{p(Kt,"useCallbackRef")});function xm(e){let t=h.useContext(Em);return e||t||"ltr"}var Em,UE=P(()=>{Em=h.createContext(void 0),p(xm,"useDirection")});function wm(e,[t,r]){return Math.min(r,Math.max(t,e))}var WE=P(()=>{p(wm,"clamp")});function Ht(e,t,{checkForDefaultPrevented:r=!0}={}){return p(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}var qE=P(()=>{p(Ht,"composeEventHandlers")});function nc(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}function Dn(e){return e?parseInt(e,10):0}function Xi(e,t){let r=e/t;return isNaN(r)?0:r}function Hn(e){let t=Xi(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function ac(e,t,r,n="ltr"){let a=Hn(r),o=a/2,i=t||o,l=a-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,d=r.content-r.viewport,m=n==="ltr"?[0,d]:[d*-1,0];return ms([s,u],m)(e)}function ei(e,t,r="ltr"){let n=Hn(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,l=o-n,s=r==="ltr"?[0,i]:[i*-1,0],u=wm(e,s);return ms([0,i],[0,l])(u)}function ms(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ti(e,t){return e>0&&e<t}function Fn(e,t){let r=Kt(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function or(e,t){let r=Kt(t);Xa(()=>{let n=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}function oc(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let a=h.Children.only(n);return h.cloneElement(a,{children:typeof t=="function"?t(a.props.children):t})}var ba,ri,VE,ic,qe,ni,ai,oi,at,ii,lc,sc,li,ya,uc,cc,dc,si,ui,kn,ci,pc,va,di,fc,mc,Cm,Sm,Dm,Fm,km,GE=P(()=>{"use client";jE(),ME(),zE(),fs(),HE(),UE(),hm(),WE(),qE(),p(nc,"useStateMachine"),ba="ScrollArea",[ri,VE]=ym(ba),[ic,qe]=ri(ba),ni=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:o=600,...i}=e,[l,s]=h.useState(null),[u,d]=h.useState(null),[m,c]=h.useState(null),[g,b]=h.useState(null),[y,v]=h.useState(null),[x,C]=h.useState(0),[w,E]=h.useState(0),[S,D]=h.useState(!1),[F,k]=h.useState(!1),T=Vt(t,_=>s(_)),A=xm(a);return L.jsx(ic,{scope:r,type:n,dir:A,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:m,onContentChange:c,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:S,onScrollbarXEnabledChange:D,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:F,onScrollbarYEnabledChange:k,onCornerWidthChange:C,onCornerHeightChange:E,children:L.jsx(Nr.div,{dir:A,...i,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})}),ni.displayName=ba,ai="ScrollAreaViewport",oi=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:a,nonce:o,...i}=e,l=qe(ai,r),s=h.useRef(null),u=Vt(t,s,l.onViewportChange);return L.jsxs(L.Fragment,{children:[L.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
200
|
+
[data-radix-scroll-area-viewport] {
|
|
201
|
+
scrollbar-width: none;
|
|
202
|
+
-ms-overflow-style: none;
|
|
203
|
+
-webkit-overflow-scrolling: touch;
|
|
204
|
+
}
|
|
205
|
+
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
206
|
+
display: none;
|
|
207
|
+
}
|
|
208
|
+
:where([data-radix-scroll-area-viewport]) {
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-direction: column;
|
|
211
|
+
align-items: stretch;
|
|
212
|
+
}
|
|
213
|
+
:where([data-radix-scroll-area-content]) {
|
|
214
|
+
flex-grow: 1;
|
|
215
|
+
}
|
|
216
|
+
`},nonce:o}),L.jsx(Nr.div,{"data-radix-scroll-area-viewport":"",...i,asChild:a,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:oc({asChild:a,children:n},d=>L.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:d}))})]})}),oi.displayName=ai,at="ScrollAreaScrollbar",ii=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(at,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,l=e.orientation==="horizontal";return h.useEffect(()=>(l?o(!0):i(!0),()=>{l?o(!1):i(!1)}),[l,o,i]),a.type==="hover"?L.jsx(lc,{...n,ref:t,forceMount:r}):a.type==="scroll"?L.jsx(sc,{...n,ref:t,forceMount:r}):a.type==="auto"?L.jsx(li,{...n,ref:t,forceMount:r}):a.type==="always"?L.jsx(ya,{...n,ref:t}):null}),ii.displayName=at,lc=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(at,e.__scopeScrollArea),[o,i]=h.useState(!1);return h.useEffect(()=>{let l=a.scrollArea,s=0;if(l){let u=p(()=>{window.clearTimeout(s),i(!0)},"handlePointerEnter"),d=p(()=>{s=window.setTimeout(()=>i(!1),a.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),L.jsx(zr,{present:r||o,children:L.jsx(li,{"data-state":o?"visible":"hidden",...n,ref:t})})}),sc=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(at,e.__scopeScrollArea),o=e.orientation==="horizontal",i=Fn(()=>s("SCROLL_END"),100),[l,s]=nc("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay,s]),h.useEffect(()=>{let u=a.viewport,d=o?"scrollLeft":"scrollTop";if(u){let m=u[d],c=p(()=>{let g=u[d];m!==g&&(s("SCROLL"),i()),m=g},"handleScroll");return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[a.viewport,o,s,i]),L.jsx(zr,{present:r||l!=="hidden",children:L.jsx(ya,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Ht(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Ht(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),li=h.forwardRef((e,t)=>{let r=qe(at,e.__scopeScrollArea),{forceMount:n,...a}=e,[o,i]=h.useState(!1),l=e.orientation==="horizontal",s=Fn(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:d)}},10);return or(r.viewport,s),or(r.content,s),L.jsx(zr,{present:n||o,children:L.jsx(ya,{"data-state":o?"visible":"hidden",...a,ref:t})})}),ya=h.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,a=qe(at,e.__scopeScrollArea),o=h.useRef(null),i=h.useRef(0),[l,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Xi(l.viewport,l.content),d={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p(c=>o.current=c,"onThumbChange"),onThumbPointerUp:p(()=>i.current=0,"onThumbPointerUp"),onThumbPointerDown:p(c=>i.current=c,"onThumbPointerDown")};function m(c,g){return ac(c,i.current,l,g)}return p(m,"getScrollPosition"),r==="horizontal"?L.jsx(uc,{...d,ref:t,onThumbPositionChange:p(()=>{if(a.viewport&&o.current){let c=a.viewport.scrollLeft,g=ei(c,l,a.dir);o.current.style.transform=`translate3d(${g}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:p(c=>{a.viewport&&(a.viewport.scrollLeft=c)},"onWheelScroll"),onDragScroll:p(c=>{a.viewport&&(a.viewport.scrollLeft=m(c,a.dir))},"onDragScroll")}):r==="vertical"?L.jsx(cc,{...d,ref:t,onThumbPositionChange:p(()=>{if(a.viewport&&o.current){let c=a.viewport.scrollTop,g=ei(c,l);o.current.style.transform=`translate3d(0, ${g}px, 0)`}},"onThumbPositionChange"),onWheelScroll:p(c=>{a.viewport&&(a.viewport.scrollTop=c)},"onWheelScroll"),onDragScroll:p(c=>{a.viewport&&(a.viewport.scrollTop=m(c))},"onDragScroll")}):null}),uc=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,o=qe(at,e.__scopeScrollArea),[i,l]=h.useState(),s=h.useRef(null),u=Vt(t,s,o.onScrollbarXChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),L.jsx(ui,{"data-orientation":"horizontal",...a,ref:u,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Hn(r)+"px",...e.style},onThumbPointerDown:p(d=>e.onThumbPointerDown(d.x),"onThumbPointerDown"),onDragScroll:p(d=>e.onDragScroll(d.x),"onDragScroll"),onWheelScroll:p((d,m)=>{if(o.viewport){let c=o.viewport.scrollLeft+d.deltaX;e.onWheelScroll(c),ti(c,m)&&d.preventDefault()}},"onWheelScroll"),onResize:p(()=>{s.current&&o.viewport&&i&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Dn(i.paddingLeft),paddingEnd:Dn(i.paddingRight)}})},"onResize")})}),cc=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,o=qe(at,e.__scopeScrollArea),[i,l]=h.useState(),s=h.useRef(null),u=Vt(t,s,o.onScrollbarYChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),L.jsx(ui,{"data-orientation":"vertical",...a,ref:u,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Hn(r)+"px",...e.style},onThumbPointerDown:p(d=>e.onThumbPointerDown(d.y),"onThumbPointerDown"),onDragScroll:p(d=>e.onDragScroll(d.y),"onDragScroll"),onWheelScroll:p((d,m)=>{if(o.viewport){let c=o.viewport.scrollTop+d.deltaY;e.onWheelScroll(c),ti(c,m)&&d.preventDefault()}},"onWheelScroll"),onResize:p(()=>{s.current&&o.viewport&&i&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Dn(i.paddingTop),paddingEnd:Dn(i.paddingBottom)}})},"onResize")})}),[dc,si]=ri(at),ui=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:d,onResize:m,...c}=e,g=qe(at,r),[b,y]=h.useState(null),v=Vt(t,T=>y(T)),x=h.useRef(null),C=h.useRef(""),w=g.viewport,E=n.content-n.viewport,S=Kt(d),D=Kt(s),F=Fn(m,10);function k(T){if(x.current){let A=T.clientX-x.current.left,_=T.clientY-x.current.top;u({x:A,y:_})}}return p(k,"handleDragScroll"),h.useEffect(()=>{let T=p(A=>{let _=A.target;b!=null&&b.contains(_)&&S(A,E)},"handleWheel");return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[w,b,E,S]),h.useEffect(D,[n,D]),or(b,F),or(g.content,F),L.jsx(dc,{scope:r,scrollbar:b,hasThumb:a,onThumbChange:Kt(o),onThumbPointerUp:Kt(i),onThumbPositionChange:D,onThumbPointerDown:Kt(l),children:L.jsx(Nr.div,{...c,ref:v,style:{position:"absolute",...c.style},onPointerDown:Ht(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),x.current=b.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),k(T))}),onPointerMove:Ht(e.onPointerMove,k),onPointerUp:Ht(e.onPointerUp,T=>{let A=T.target;A.hasPointerCapture(T.pointerId)&&A.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=C.current,g.viewport&&(g.viewport.style.scrollBehavior=""),x.current=null})})})}),kn="ScrollAreaThumb",ci=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=si(kn,e.__scopeScrollArea);return L.jsx(zr,{present:r||a.hasThumb,children:L.jsx(pc,{ref:t,...n})})}),pc=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,o=qe(kn,r),i=si(kn,r),{onThumbPositionChange:l}=i,s=Vt(t,m=>i.onThumbChange(m)),u=h.useRef(),d=Fn(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{let m=o.viewport;if(m){let c=p(()=>{if(d(),!u.current){let g=mc(m,l);u.current=g,l()}},"handleScroll");return l(),m.addEventListener("scroll",c),()=>m.removeEventListener("scroll",c)}},[o.viewport,d,l]),L.jsx(Nr.div,{"data-state":i.hasThumb?"visible":"hidden",...a,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Ht(e.onPointerDownCapture,m=>{let c=m.target.getBoundingClientRect(),g=m.clientX-c.left,b=m.clientY-c.top;i.onThumbPointerDown({x:g,y:b})}),onPointerUp:Ht(e.onPointerUp,i.onThumbPointerUp)})}),ci.displayName=kn,va="ScrollAreaCorner",di=h.forwardRef((e,t)=>{let r=qe(va,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?L.jsx(fc,{...e,ref:t}):null}),di.displayName=va,fc=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=qe(va,r),[o,i]=h.useState(0),[l,s]=h.useState(0),u=!!(o&&l);return or(a.scrollbarX,()=>{var m;let d=((m=a.scrollbarX)==null?void 0:m.offsetHeight)||0;a.onCornerHeightChange(d),s(d)}),or(a.scrollbarY,()=>{var m;let d=((m=a.scrollbarY)==null?void 0:m.offsetWidth)||0;a.onCornerWidthChange(d),i(d)}),u?L.jsx(Nr.div,{...n,ref:t,style:{width:o,height:l,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null}),p(Dn,"toInt"),p(Xi,"getThumbRatio"),p(Hn,"getThumbSize"),p(ac,"getScrollPositionFromPointer"),p(ei,"getThumbOffsetFromScroll"),p(ms,"linearScale"),p(ti,"isScrollingWithinScrollbarBounds"),mc=p((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return p(function a(){let o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,l=r.top!==o.top;(i||l)&&t(),r=o,n=window.requestAnimationFrame(a)},"loop")(),()=>window.cancelAnimationFrame(n)},"addUnlinkedScrollListener"),p(Fn,"useDebounceCallback"),p(or,"useResizeObserver"),p(oc,"getSubtree"),Cm=ni,Sm=oi,Dm=ii,Fm=ci,km=di}),gc,hc,pi,fi,Gn,gs=P(()=>{GE(),gc=O(Cm)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),hc=O(Sm)({width:"100%",height:"100%"}),pi=O(Dm)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),fi=O(Fm)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Gn=h.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,className:o},i)=>f.createElement(gc,{scrollbarsize:a,offset:n,className:o},f.createElement(hc,{ref:i},e),t&&f.createElement(pi,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},f.createElement(fi,null)),r&&f.createElement(pi,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},f.createElement(fi,null)),t&&r&&f.createElement(km,null))),Gn.displayName="ScrollArea"}),hs={};ta(hs,{SyntaxHighlighter:()=>Un,createCopyToClipboardFunction:()=>Za,default:()=>Am,supportedLanguages:()=>Zi});const{logger:KE}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:YE}=__STORYBOOK_MODULE_GLOBAL__;function Za(){return In!=null&&In.clipboard?e=>In.clipboard.writeText(e):async e=>{let t=Lr.createElement("TEXTAREA"),r=Lr.activeElement;t.value=e,Lr.body.appendChild(t),t.select(),Lr.execCommand("copy"),Lr.body.removeChild(t),r.focus()}}var bc,In,Lr,yc,Zi,vc,xc,Ec,wc,Cc,Sc,Dc,mi,Fc,kc,Un,Am,wo=P(()=>{bc=Fe(yo(),1),vE(),EE(),wE(),SE(),FE(),AE(),OE(),RE(),TE(),BE(),IE(),NE(),yE(),fm(),gs(),{navigator:In,document:Lr,window:yc}=YE,Zi={jsextra:nm,jsx:im,json:am,yml:pm,md:lm,bash:em,css:tm,html:sm,tsx:cm,typescript:dm,graphql:rm},Object.entries(Zi).forEach(([e,t])=>{_a.registerLanguage(e,t)}),vc=(0,bc.default)(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),xc=Za(),p(Za,"createCopyToClipboardFunction"),Ec=O.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),wc=p(({children:e,className:t})=>f.createElement(Gn,{horizontal:!0,vertical:!0,className:t},e),"UnstyledScroller"),Cc=O(wc)({position:"relative"},({theme:e})=>vc(e)),Sc=O.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),Dc=O.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),mi=p(e=>{let t=[...e.children],r=t[0],n=r.children[0].value,a={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=a,{...e,children:t}},"processLineNumber"),Fc=p(({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,a)=>xo({node:mi(n),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`})),"defaultRenderer"),kc=p((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(a=>mi(a)),...n}):Fc:e,"wrapRenderer"),Un=p(({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:a=!1,format:o=!0,formatter:i=void 0,className:l=void 0,showLineNumbers:s=!1,...u})=>{if(typeof e!="string"||!e.trim())return null;let[d,m]=h.useState("");h.useEffect(()=>{i?i(o,e).then(m):m(e.trim())},[e,o,i]);let[c,g]=h.useState(!1),b=h.useCallback(v=>{v.preventDefault(),xc(d).then(()=>{g(!0),yc.setTimeout(()=>g(!1),1500)}).catch(KE.error)},[d]),y=kc(u.renderer,s);return f.createElement(Ec,{bordered:n,padded:a,showLineNumbers:s,className:l},f.createElement(Cc,null,f.createElement(_a,{padded:a||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:Sc,CodeTag:Dc,lineNumberContainerStyle:{},...u,renderer:y},d)),r?f.createElement(Eo,{actionItems:[{title:c?"Copied":"Copy",onClick:b}]}):null)},"SyntaxHighlighter"),Un.registerLanguage=(...e)=>_a.registerLanguage(...e),Am=Un});function Om(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var m,c;return(c=(m=d.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&c!==void 0?c:0})):l},[]);if(a.length){var o=new RegExp(`
|
|
217
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
218
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=l;typeof l=="string"&&l.includes(`
|
|
219
|
+
`)&&(m=String(l).split(`
|
|
220
|
+
`).map(function(c,g){return g===0?c:""+d+c}).join(`
|
|
221
|
+
`)),i+=m+n[s+1]}),i}var XE=P(()=>{p(Om,"dedent")}),_m={};ta(_m,{formatter:()=>Rm});var Ac,Rm,ZE=P(()=>{Ac=Fe(yo(),1),XE(),Rm=(0,Ac.default)(2)(async(e,t)=>e===!1?t:Om(t))}),Ji,Qi,JE=P(()=>{Ji=p(function(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t},{})},"fromEntries"),Qi=typeof window<"u"&&window.document&&window.document.createElement?h.useLayoutEffect:h.useEffect}),Pe,Ke,Ye,Be,Ja,Ur,mr,Wr,Tm,bs,jr,Pm,el,ys,Oc,_c,Rc,Tc,Pc,Bc,Ic,$c,Nc,Bm,Qe=P(()=>{Pe="top",Ke="bottom",Ye="right",Be="left",Ja="auto",Ur=[Pe,Ke,Ye,Be],mr="start",Wr="end",Tm="clippingParents",bs="viewport",jr="popper",Pm="reference",el=Ur.reduce(function(e,t){return e.concat([t+"-"+mr,t+"-"+Wr])},[]),ys=[].concat(Ur,[Ja]).reduce(function(e,t){return e.concat([t,t+"-"+mr,t+"-"+Wr])},[]),Oc="beforeRead",_c="read",Rc="afterRead",Tc="beforeMain",Pc="main",Bc="afterMain",Ic="beforeWrite",$c="write",Nc="afterWrite",Bm=[Oc,_c,Rc,Tc,Pc,Bc,Ic,$c,Nc]});function ct(e){return e?(e.nodeName||"").toLowerCase():null}var Fr=P(()=>{p(ct,"getNodeName")});function Me(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Ft=P(()=>{p(Me,"getWindow")});function Zt(e){var t=Me(e).Element;return e instanceof t||e instanceof Element}function Ge(e){var t=Me(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Co(e){if(typeof ShadowRoot>"u")return!1;var t=Me(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var et=P(()=>{Ft(),p(Zt,"isElement"),p(Ge,"isHTMLElement"),p(Co,"isShadowRoot")});function Lc(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ge(o)||!ct(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function jc(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(s,u){return s[u]="",s},{});!Ge(a)||!ct(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}var Im,QE=P(()=>{Fr(),et(),p(Lc,"applyStyles"),p(jc,"effect"),Im={name:"applyStyles",enabled:!0,phase:"write",fn:Lc,effect:jc,requires:["computeStyles"]}});function ut(e){return e.split("-")[0]}var kr=P(()=>{p(ut,"getBasePlacement")}),Yt,Kn,vr,Ar=P(()=>{Yt=Math.max,Kn=Math.min,vr=Math.round});function Qa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}var $m=P(()=>{p(Qa,"getUAString")});function vs(){return!/^((?!chrome|android).)*safari/i.test(Qa())}var Nm=P(()=>{$m(),p(vs,"isLayoutViewport")});function xr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ge(e)&&(a=e.offsetWidth>0&&vr(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vr(n.height)/e.offsetHeight||1);var i=Zt(e)?Me(e):window,l=i.visualViewport,s=!vs()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/a,d=(n.top+(s&&l?l.offsetTop:0))/o,m=n.width/a,c=n.height/o;return{width:m,height:c,top:d,right:u+m,bottom:d+c,left:u,x:u,y:d}}var na=P(()=>{et(),Ar(),Ft(),Nm(),p(xr,"getBoundingClientRect")});function So(e){var t=xr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var xs=P(()=>{na(),p(So,"getLayoutRect")});function Es(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Co(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var Lm=P(()=>{et(),p(Es,"contains")});function Dt(e){return Me(e).getComputedStyle(e)}var aa=P(()=>{Ft(),p(Dt,"getComputedStyle")});function jm(e){return["table","td","th"].indexOf(ct(e))>=0}var ew=P(()=>{Fr(),p(jm,"isTableElement")});function Bt(e){return((Zt(e)?e.ownerDocument:e.document)||window.document).documentElement}var Jt=P(()=>{et(),p(Bt,"getDocumentElement")});function oa(e){return ct(e)==="html"?e:e.assignedSlot||e.parentNode||(Co(e)?e.host:null)||Bt(e)}var Do=P(()=>{Fr(),Jt(),et(),p(oa,"getParentNode")});function tl(e){return!Ge(e)||Dt(e).position==="fixed"?null:e.offsetParent}function Mm(e){var t=/firefox/i.test(Qa()),r=/Trident/i.test(Qa());if(r&&Ge(e)){var n=Dt(e);if(n.position==="fixed")return null}var a=oa(e);for(Co(a)&&(a=a.host);Ge(a)&&["html","body"].indexOf(ct(a))<0;){var o=Dt(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function mn(e){for(var t=Me(e),r=tl(e);r&&jm(r)&&Dt(r).position==="static";)r=tl(r);return r&&(ct(r)==="html"||ct(r)==="body"&&Dt(r).position==="static")?t:r||Mm(e)||t}var ia=P(()=>{Ft(),Fr(),aa(),et(),ew(),Do(),$m(),p(tl,"getTrueOffsetParent"),p(Mm,"getContainingBlock"),p(mn,"getOffsetParent")});function Fo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var ws=P(()=>{p(Fo,"getMainAxisFromPlacement")});function qr(e,t,r){return Yt(e,Kn(t,r))}function zm(e,t,r){var n=qr(e,t,r);return n>r?r:n}var Hm=P(()=>{Ar(),p(qr,"within"),p(zm,"withinMaxClamp")});function Cs(){return{top:0,right:0,bottom:0,left:0}}var Um=P(()=>{p(Cs,"getFreshSideObject")});function Ss(e){return Object.assign({},Cs(),e)}var Wm=P(()=>{Um(),p(Ss,"mergePaddingObject")});function Ds(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var qm=P(()=>{p(Ds,"expandToHashMap")});function Mc(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,l=ut(r.placement),s=Fo(l),u=[Be,Ye].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!i)){var m=Vm(a.padding,r),c=So(o),g=s==="y"?Pe:Be,b=s==="y"?Ke:Ye,y=r.rects.reference[d]+r.rects.reference[s]-i[s]-r.rects.popper[d],v=i[s]-r.rects.reference[s],x=mn(o),C=x?s==="y"?x.clientHeight||0:x.clientWidth||0:0,w=y/2-v/2,E=m[g],S=C-c[d]-m[b],D=C/2-c[d]/2+w,F=qr(E,D,S),k=s;r.modifiersData[n]=(t={},t[k]=F,t.centerOffset=F-D,t)}}function zc(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Es(t.elements.popper,a)&&(t.elements.arrow=a))}var Vm,Gm,tw=P(()=>{kr(),xs(),Lm(),ia(),ws(),Hm(),Wm(),qm(),Qe(),Vm=p(function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ss(typeof e!="number"?e:Ds(e,Ur))},"toPaddingObject"),p(Mc,"arrow"),p(zc,"effect"),Gm={name:"arrow",enabled:!0,phase:"main",fn:Mc,effect:zc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}});function Er(e){return e.split("-")[1]}var la=P(()=>{p(Er,"getVariation")});function Km(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:vr(r*a)/a||0,y:vr(n*a)/a||0}}function rl(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,c=i.x,g=c===void 0?0:c,b=i.y,y=b===void 0?0:b,v=typeof d=="function"?d({x:g,y}):{x:g,y};g=v.x,y=v.y;var x=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),w=Be,E=Pe,S=window;if(u){var D=mn(r),F="clientHeight",k="clientWidth";if(D===Me(r)&&(D=Bt(r),Dt(D).position!=="static"&&l==="absolute"&&(F="scrollHeight",k="scrollWidth")),D=D,a===Pe||(a===Be||a===Ye)&&o===Wr){E=Ke;var T=m&&D===S&&S.visualViewport?S.visualViewport.height:D[F];y-=T-n.height,y*=s?1:-1}if(a===Be||(a===Pe||a===Ke)&&o===Wr){w=Ye;var A=m&&D===S&&S.visualViewport?S.visualViewport.width:D[k];g-=A-n.width,g*=s?1:-1}}var _=Object.assign({position:l},u&&Ym),B=d===!0?Km({x:g,y},Me(r)):{x:g,y};if(g=B.x,y=B.y,s){var I;return Object.assign({},_,(I={},I[E]=C?"0":"",I[w]=x?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",I))}return Object.assign({},_,(t={},t[E]=C?y+"px":"",t[w]=x?g+"px":"",t.transform="",t))}function Hc(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,l=r.roundOffsets,s=l===void 0?!0:l,u={placement:ut(t.placement),variation:Er(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ym,Xm,rw=P(()=>{Qe(),ia(),Ft(),Jt(),aa(),kr(),la(),Ar(),Ym={top:"auto",right:"auto",bottom:"auto",left:"auto"},p(Km,"roundOffsetsByDPR"),p(rl,"mapToStyles"),p(Hc,"computeStyles"),Xm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hc,data:{}}});function Uc(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,s=Me(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",r.update,$n)}),l&&s.addEventListener("resize",r.update,$n),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",r.update,$n)}),l&&s.removeEventListener("resize",r.update,$n)}}var $n,Zm,nw=P(()=>{Ft(),$n={passive:!0},p(Uc,"effect"),Zm={name:"eventListeners",enabled:!0,phase:"write",fn:p(function(){},"fn"),effect:Uc,data:{}}});function Wn(e){return e.replace(/left|right|bottom|top/g,function(t){return Jm[t]})}var Jm,aw=P(()=>{Jm={left:"right",right:"left",bottom:"top",top:"bottom"},p(Wn,"getOppositePlacement")});function nl(e){return e.replace(/start|end/g,function(t){return Qm[t]})}var Qm,ow=P(()=>{Qm={start:"end",end:"start"},p(nl,"getOppositeVariationPlacement")});function ko(e){var t=Me(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}var Fs=P(()=>{Ft(),p(ko,"getWindowScroll")});function Ao(e){return xr(Bt(e)).left+ko(e).scrollLeft}var ks=P(()=>{na(),Jt(),Fs(),p(Ao,"getWindowScrollBarX")});function eg(e,t){var r=Me(e),n=Bt(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var u=vs();(u||!u&&t==="fixed")&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+Ao(e),y:s}}var iw=P(()=>{Ft(),Jt(),ks(),Nm(),p(eg,"getViewportRect")});function tg(e){var t,r=Bt(e),n=ko(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Yt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Yt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+Ao(e),s=-n.scrollTop;return Dt(a||r).direction==="rtl"&&(l+=Yt(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}var lw=P(()=>{Jt(),aa(),ks(),Fs(),Ar(),p(tg,"getDocumentRect")});function Oo(e){var t=Dt(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}var As=P(()=>{aa(),p(Oo,"isScrollParent")});function Os(e){return["html","body","#document"].indexOf(ct(e))>=0?e.ownerDocument.body:Ge(e)&&Oo(e)?e:Os(oa(e))}var sw=P(()=>{Do(),As(),Fr(),et(),p(Os,"getScrollParent")});function Vr(e,t){var r;t===void 0&&(t=[]);var n=Os(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Me(n),i=a?[o].concat(o.visualViewport||[],Oo(n)?n:[]):n,l=t.concat(i);return a?l:l.concat(Vr(oa(i)))}var rg=P(()=>{sw(),Do(),Ft(),As(),p(Vr,"listScrollParents")});function eo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var ng=P(()=>{p(eo,"rectToClientRect")});function ag(e,t){var r=xr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function al(e,t,r){return t===bs?eo(eg(e,r)):Zt(t)?ag(t,r):eo(tg(Bt(e)))}function og(e){var t=Vr(oa(e)),r=["absolute","fixed"].indexOf(Dt(e).position)>=0,n=r&&Ge(e)?mn(e):e;return Zt(n)?t.filter(function(a){return Zt(a)&&Es(a,n)&&ct(a)!=="body"}):[]}function ig(e,t,r,n){var a=t==="clippingParents"?og(e):[].concat(t),o=[].concat(a,[r]),i=o[0],l=o.reduce(function(s,u){var d=al(e,u,n);return s.top=Yt(d.top,s.top),s.right=Kn(d.right,s.right),s.bottom=Kn(d.bottom,s.bottom),s.left=Yt(d.left,s.left),s},al(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var uw=P(()=>{Qe(),iw(),lw(),rg(),ia(),Jt(),aa(),et(),na(),Do(),Lm(),Fr(),ng(),Ar(),p(ag,"getInnerBoundingClientRect"),p(al,"getClientRectFromMixedType"),p(og,"getClippingParents"),p(ig,"getClippingRect")});function _s(e){var t=e.reference,r=e.element,n=e.placement,a=n?ut(n):null,o=n?Er(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(a){case Pe:s={x:i,y:t.y-r.height};break;case Ke:s={x:i,y:t.y+t.height};break;case Ye:s={x:t.x+t.width,y:l};break;case Be:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?Fo(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case mr:s[u]=s[u]-(t[d]/2-r[d]/2);break;case Wr:s[u]=s[u]+(t[d]/2-r[d]/2);break}}return s}var lg=P(()=>{kr(),la(),ws(),Qe(),p(_s,"computeOffsets")});function an(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,l=r.boundary,s=l===void 0?Tm:l,u=r.rootBoundary,d=u===void 0?bs:u,m=r.elementContext,c=m===void 0?jr:m,g=r.altBoundary,b=g===void 0?!1:g,y=r.padding,v=y===void 0?0:y,x=Ss(typeof v!="number"?v:Ds(v,Ur)),C=c===jr?Pm:jr,w=e.rects.popper,E=e.elements[b?C:c],S=ig(Zt(E)?E:E.contextElement||Bt(e.elements.popper),s,d,i),D=xr(e.elements.reference),F=_s({reference:D,element:w,placement:a}),k=eo(Object.assign({},w,F)),T=c===jr?k:D,A={top:S.top-T.top+x.top,bottom:T.bottom-S.bottom+x.bottom,left:S.left-T.left+x.left,right:T.right-S.right+x.right},_=e.modifiersData.offset;if(c===jr&&_){var B=_[a];Object.keys(A).forEach(function(I){var z=[Ye,Ke].indexOf(I)>=0?1:-1,N=[Pe,Ke].indexOf(I)>=0?"y":"x";A[I]+=B[N]*z})}return A}var _o=P(()=>{uw(),Jt(),na(),lg(),ng(),Qe(),et(),Wm(),qm(),p(an,"detectOverflow")});function sg(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?ys:s,d=Er(n),m=d?l?el:el.filter(function(b){return Er(b)===d}):Ur,c=m.filter(function(b){return u.indexOf(b)>=0});c.length===0&&(c=m);var g=c.reduce(function(b,y){return b[y]=an(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ut(y)],b},{});return Object.keys(g).sort(function(b,y){return g[b]-g[y]})}var cw=P(()=>{la(),Qe(),_o(),kr(),p(sg,"computeAutoPlacement")});function ug(e){if(ut(e)===Ja)return[];var t=Wn(e);return[nl(e),t,nl(t)]}function Wc(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!0:i,s=r.fallbackPlacements,u=r.padding,d=r.boundary,m=r.rootBoundary,c=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,y=r.allowedAutoPlacements,v=t.options.placement,x=ut(v),C=x===v,w=s||(C||!b?[Wn(v)]:ug(v)),E=[v].concat(w).reduce(function(Z,j){return Z.concat(ut(j)===Ja?sg(t,{placement:j,boundary:d,rootBoundary:m,padding:u,flipVariations:b,allowedAutoPlacements:y}):j)},[]),S=t.rects.reference,D=t.rects.popper,F=new Map,k=!0,T=E[0],A=0;A<E.length;A++){var _=E[A],B=ut(_),I=Er(_)===mr,z=[Pe,Ke].indexOf(B)>=0,N=z?"width":"height",M=an(t,{placement:_,boundary:d,rootBoundary:m,altBoundary:c,padding:u}),U=z?I?Ye:Be:I?Ke:Pe;S[N]>D[N]&&(U=Wn(U));var K=Wn(U),W=[];if(o&&W.push(M[B]<=0),l&&W.push(M[U]<=0,M[K]<=0),W.every(function(Z){return Z})){T=_,k=!1;break}F.set(_,W)}if(k)for(var q=b?3:1,Q=p(function(Z){var j=E.find(function(J){var ee=F.get(J);if(ee)return ee.slice(0,Z).every(function(ue){return ue})});if(j)return T=j,"break"},"_loop"),oe=q;oe>0;oe--){var ae=Q(oe);if(ae==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var cg,dw=P(()=>{aw(),kr(),ow(),_o(),cw(),Qe(),la(),p(ug,"getExpandedFallbackPlacements"),p(Wc,"flip"),cg={name:"flip",enabled:!0,phase:"main",fn:Wc,requiresIfExists:["offset"],data:{_skip:!1}}});function ol(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function il(e){return[Pe,Ye,Ke,Be].some(function(t){return e[t]>=0})}function qc(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=an(t,{elementContext:"reference"}),l=an(t,{altBoundary:!0}),s=ol(i,n),u=ol(l,a,o),d=il(s),m=il(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}var dg,pw=P(()=>{Qe(),_o(),p(ol,"getSideOffsets"),p(il,"isAnySideFullyClipped"),p(qc,"hide"),dg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qc}});function pg(e,t,r){var n=ut(e),a=[Be,Pe].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Be,Ye].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function Vc(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=ys.reduce(function(d,m){return d[m]=pg(m,t.rects,o),d},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}var fg,fw=P(()=>{kr(),Qe(),p(pg,"distanceAndSkiddingToXY"),p(Vc,"offset"),fg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vc}});function Gc(e){var t=e.state,r=e.name;t.modifiersData[r]=_s({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var mg,mw=P(()=>{lg(),p(Gc,"popperOffsets"),mg={name:"popperOffsets",enabled:!0,phase:"read",fn:Gc,data:{}}});function gg(e){return e==="x"?"y":"x"}var gw=P(()=>{p(gg,"getAltAxis")});function Kc(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!1:i,s=r.boundary,u=r.rootBoundary,d=r.altBoundary,m=r.padding,c=r.tether,g=c===void 0?!0:c,b=r.tetherOffset,y=b===void 0?0:b,v=an(t,{boundary:s,rootBoundary:u,padding:m,altBoundary:d}),x=ut(t.placement),C=Er(t.placement),w=!C,E=Fo(x),S=gg(E),D=t.modifiersData.popperOffsets,F=t.rects.reference,k=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(D){if(o){var I,z=E==="y"?Pe:Be,N=E==="y"?Ke:Ye,M=E==="y"?"height":"width",U=D[E],K=U+v[z],W=U-v[N],q=g?-k[M]/2:0,Q=C===mr?F[M]:k[M],oe=C===mr?-k[M]:-F[M],ae=t.elements.arrow,Z=g&&ae?So(ae):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cs(),J=j[z],ee=j[N],ue=qr(0,F[M],Z[M]),ie=w?F[M]/2-q-ue-J-A.mainAxis:Q-ue-J-A.mainAxis,Ze=w?-F[M]/2+q+ue+ee+A.mainAxis:oe+ue+ee+A.mainAxis,te=t.elements.arrow&&mn(t.elements.arrow),le=te?E==="y"?te.clientTop||0:te.clientLeft||0:0,$=(I=_==null?void 0:_[E])!=null?I:0,se=U+ie-$-le,de=U+Ze-$,Ie=qr(g?Kn(K,se):K,U,g?Yt(W,de):W);D[E]=Ie,B[E]=Ie-U}if(l){var ge,_e=E==="x"?Pe:Be,jt=E==="x"?Ke:Ye,he=D[S],We=S==="y"?"height":"width",be=he+v[_e],tt=he-v[jt],Re=[Pe,Be].indexOf(x)!==-1,rt=(ge=_==null?void 0:_[S])!=null?ge:0,ht=Re?be:he-F[We]-k[We]-rt+A.altAxis,ke=Re?he+F[We]+k[We]-rt-A.altAxis:tt,nt=g&&Re?zm(ht,he,ke):qr(g?ht:be,he,g?ke:tt);D[S]=nt,B[S]=nt-he}t.modifiersData[n]=B}}var hg,hw=P(()=>{Qe(),kr(),ws(),gw(),Hm(),xs(),ia(),_o(),la(),Um(),Ar(),p(Kc,"preventOverflow"),hg={name:"preventOverflow",enabled:!0,phase:"main",fn:Kc,requiresIfExists:["offset"]}}),bg=P(()=>{});function yg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var bw=P(()=>{p(yg,"getHTMLElementScroll")});function vg(e){return e===Me(e)||!Ge(e)?ko(e):yg(e)}var yw=P(()=>{Fs(),Ft(),et(),bw(),p(vg,"getNodeScroll")});function xg(e){var t=e.getBoundingClientRect(),r=vr(t.width)/e.offsetWidth||1,n=vr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Eg(e,t,r){r===void 0&&(r=!1);var n=Ge(t),a=Ge(t)&&xg(t),o=Bt(t),i=xr(e,a,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((ct(t)!=="body"||Oo(o))&&(l=vg(t)),Ge(t)?(s=xr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Ao(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}var vw=P(()=>{na(),yw(),Fr(),et(),ks(),Jt(),As(),Ar(),p(xg,"isElementScaled"),p(Eg,"getCompositeRect")});function wg(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&a(s)}}),n.push(o)}return p(a,"sort"),e.forEach(function(o){r.has(o.name)||a(o)}),n}function Cg(e){var t=wg(e);return Bm.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}var xw=P(()=>{Qe(),p(wg,"order"),p(Cg,"orderModifiers")});function Sg(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var Ew=P(()=>{p(Sg,"debounce")});function Dg(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var ww=P(()=>{p(Dg,"mergeByName")});function ll(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Fg(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?sl:a;return p(function(i,l,s){s===void 0&&(s=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},sl,o),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],m=!1,c={state:u,setOptions:p(function(y){var v=typeof y=="function"?y(u.options):y;b(),u.options=Object.assign({},o,u.options,v),u.scrollParents={reference:Zt(i)?Vr(i):i.contextElement?Vr(i.contextElement):[],popper:Vr(l)};var x=Cg(Dg([].concat(n,u.options.modifiers)));return u.orderedModifiers=x.filter(function(C){return C.enabled}),g(),c.update()},"setOptions"),forceUpdate:p(function(){if(!m){var y=u.elements,v=y.reference,x=y.popper;if(ll(v,x)){u.rects={reference:Eg(v,mn(x),u.options.strategy==="fixed"),popper:So(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],E=w.fn,S=w.options,D=S===void 0?{}:S,F=w.name;typeof E=="function"&&(u=E({state:u,options:D,name:F,instance:c})||u)}}}},"forceUpdate"),update:Sg(function(){return new Promise(function(y){c.forceUpdate(),y(u)})}),destroy:p(function(){b(),m=!0},"destroy")};if(!ll(i,l))return c;c.setOptions(s).then(function(y){!m&&s.onFirstUpdate&&s.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var v=y.name,x=y.options,C=x===void 0?{}:x,w=y.effect;if(typeof w=="function"){var E=w({state:u,name:v,instance:c,options:C}),S=p(function(){},"noopFn");d.push(E||S)}})}p(g,"runModifierEffects");function b(){d.forEach(function(y){return y()}),d=[]}return p(b,"cleanupModifierEffects"),c},"createPopper")}var sl,Cw=P(()=>{vw(),xs(),rg(),ia(),xw(),Ew(),ww(),et(),sl={placement:"bottom",modifiers:[],strategy:"absolute"},p(ll,"areValidElements"),p(Fg,"popperGenerator")}),Yc,kg,Sw=P(()=>{Cw(),nw(),mw(),rw(),QE(),fw(),dw(),hw(),tw(),pw(),bg(),Yc=[Zm,mg,Xm,Im,fg,cg,hg,Gm,dg],kg=Fg({defaultModifiers:Yc})}),Dw=P(()=>{Qe(),bg(),Sw()}),Fw=G((e,t)=>{var r=typeof Element<"u",n=typeof Map=="function",a=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(l,s){if(l===s)return!0;if(l&&s&&typeof l=="object"&&typeof s=="object"){if(l.constructor!==s.constructor)return!1;var u,d,m;if(Array.isArray(l)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(!i(l[d],s[d]))return!1;return!0}var c;if(n&&l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;for(c=l.entries();!(d=c.next()).done;)if(!i(d.value[1],s.get(d.value[0])))return!1;return!0}if(a&&l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(s)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(l[d]!==s[d])return!1;return!0}if(l.constructor===RegExp)return l.source===s.source&&l.flags===s.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof s.valueOf=="function")return l.valueOf()===s.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof s.toString=="function")return l.toString()===s.toString();if(m=Object.keys(l),u=m.length,u!==Object.keys(s).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(s,m[d]))return!1;if(r&&l instanceof Element)return!1;for(d=u;d--!==0;)if(!((m[d]==="_owner"||m[d]==="__v"||m[d]==="__o")&&l.$$typeof)&&!i(l[m[d]],s[m[d]]))return!1;return!0}return l!==l&&s!==s}p(i,"equal"),t.exports=p(function(l,s){try{return i(l,s)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},"isEqual")}),Xc,Zc,Ag,kw=P(()=>{Dw(),Xc=Fe(Fw()),JE(),Zc=[],Ag=p(function(e,t,r){r===void 0&&(r={});var n=h.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Zc},o=h.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=o[0],l=o[1],s=h.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:p(function(m){var c=m.state,g=Object.keys(c.elements);go.flushSync(function(){l({styles:Ji(g.map(function(b){return[b,c.styles[b]||{}]})),attributes:Ji(g.map(function(b){return[b,c.attributes[b]]}))})})},"fn"),requires:["computeStyles"]}},[]),u=h.useMemo(function(){var m={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[s,{name:"applyStyles",enabled:!1}])};return(0,Xc.default)(n.current,m)?n.current||m:(n.current=m,m)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,s]),d=h.useRef();return Qi(function(){d.current&&d.current.setOptions(u)},[u]),Qi(function(){if(!(e==null||t==null)){var m=r.createPopper||kg,c=m(e,t,u);return d.current=c,function(){c.destroy(),d.current=null}}},[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},"usePopper")}),Aw=P(()=>{kw()});function Rs(e){var t=h.useRef(e);return t.current=e,h.useCallback(function(){return t.current},[])}function Og(e){var t=e.initial,r=e.value,n=e.onChange,a=n===void 0?Rg:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=h.useState(t),i=o[0],l=o[1],s=Rs(i),u=h.useCallback(function(m){var c=s(),g=typeof m=="function"?m(c):m;typeof g.persist=="function"&&g.persist(),l(g),typeof a=="function"&&a(g)},[s,a]),d=r!==void 0;return[d?r:i,d?a:u]}function ul(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:p(function(){return null},"toJSON")}}}function _g(e,t){var r,n,a;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(dl).reduce(function(N,M){var U;return fe({},N,(U={},U[M]=N[M]!==void 0?N[M]:dl[M],U))},e),i=h.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),l=fe({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||i}),s=h.useState(null),u=s[0],d=s[1],m=h.useState(null),c=m[0],g=m[1],b=Og({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),y=b[0],v=b[1],x=h.useRef();h.useEffect(function(){return function(){return clearTimeout(x.current)}},[]);var C=Ag(o.followCursor?cl:u,c,l),w=C.styles,E=C.attributes,S=vo(C,Tg),D=S.update,F=Rs({visible:y,triggerRef:u,tooltipRef:c,finalConfig:o}),k=h.useCallback(function(N){return Array.isArray(o.trigger)?o.trigger.includes(N):o.trigger===N},Array.isArray(o.trigger)?o.trigger:[o.trigger]),T=h.useCallback(function(){clearTimeout(x.current),x.current=window.setTimeout(function(){return v(!1)},o.delayHide)},[o.delayHide,v]),A=h.useCallback(function(){clearTimeout(x.current),x.current=window.setTimeout(function(){return v(!0)},o.delayShow)},[o.delayShow,v]),_=h.useCallback(function(){F().visible?T():A()},[F,T,A]);h.useEffect(function(){if(F().finalConfig.closeOnOutsideClick){var N=p(function(M){var U,K=F(),W=K.tooltipRef,q=K.triggerRef,Q=(M.composedPath==null||(U=M.composedPath())==null?void 0:U[0])||M.target;Q instanceof Node&&W!=null&&q!=null&&!W.contains(Q)&&!q.contains(Q)&&T()},"handleClickOutside");return document.addEventListener("mousedown",N),function(){return document.removeEventListener("mousedown",N)}}},[F,T]),h.useEffect(function(){if(!(u==null||!k("click")))return u.addEventListener("click",_),function(){return u.removeEventListener("click",_)}},[u,k,_]),h.useEffect(function(){if(!(u==null||!k("double-click")))return u.addEventListener("dblclick",_),function(){return u.removeEventListener("dblclick",_)}},[u,k,_]),h.useEffect(function(){if(!(u==null||!k("right-click"))){var N=p(function(M){M.preventDefault(),_()},"preventDefaultAndToggle");return u.addEventListener("contextmenu",N),function(){return u.removeEventListener("contextmenu",N)}}},[u,k,_]),h.useEffect(function(){if(!(u==null||!k("focus")))return u.addEventListener("focus",A),u.addEventListener("blur",T),function(){u.removeEventListener("focus",A),u.removeEventListener("blur",T)}},[u,k,A,T]),h.useEffect(function(){if(!(u==null||!k("hover")))return u.addEventListener("mouseenter",A),u.addEventListener("mouseleave",T),function(){u.removeEventListener("mouseenter",A),u.removeEventListener("mouseleave",T)}},[u,k,A,T]),h.useEffect(function(){if(!(c==null||!k("hover")||!F().finalConfig.interactive))return c.addEventListener("mouseenter",A),c.addEventListener("mouseleave",T),function(){c.removeEventListener("mouseenter",A),c.removeEventListener("mouseleave",T)}},[c,k,A,T,F]);var B=S==null||(r=S.state)==null||(n=r.modifiersData)==null||(a=n.hide)==null?void 0:a.isReferenceHidden;h.useEffect(function(){o.closeOnTriggerHidden&&B&&T()},[o.closeOnTriggerHidden,T,B]),h.useEffect(function(){if(!o.followCursor||u==null)return;function N(M){var U=M.clientX,K=M.clientY;cl.getBoundingClientRect=ul(U,K),D==null||D()}return p(N,"setMousePosition"),u.addEventListener("mousemove",N),function(){return u.removeEventListener("mousemove",N)}},[o.followCursor,u,D]),h.useEffect(function(){if(!(c==null||D==null||o.mutationObserverOptions==null)){var N=new MutationObserver(D);return N.observe(c,o.mutationObserverOptions),function(){return N.disconnect()}}},[o.mutationObserverOptions,c,D]);var I=p(function(N){return N===void 0&&(N={}),fe({},N,{style:fe({},N.style,w.popper)},E.popper,{"data-popper-interactive":o.interactive})},"getTooltipProps"),z=p(function(N){return N===void 0&&(N={}),fe({},N,E.arrow,{style:fe({},N.style,w.arrow),"data-popper-arrow":!0})},"getArrowProps");return fe({getArrowProps:z,getTooltipProps:I,setTooltipRef:g,setTriggerRef:d,tooltipRef:c,triggerRef:u,visible:y},S)}var Rg,Tg,cl,dl,Ow=P(()=>{as(),bo(),Aw(),p(Rs,"useGetLatest"),Rg=p(function(){},"noop"),p(Og,"useControlledState"),p(ul,"generateBoundingClientRect"),Tg=["styles","attributes"],cl={getBoundingClientRect:ul()},dl={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},p(_g,"usePopperTooltip")}),Jc,Ve,At,Qc,ed,pl,_w=P(()=>{Jc=Fe(yo(),1),Ve=(0,Jc.default)(1e3)((e,t,r,n=0)=>t.split("-")[0]===e?r:n),At=8,Qc=O.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${Ve("top",r,`${At*-1}px`,"auto")}`,top:`${Ve("bottom",r,`${At*-1}px`,"auto")}`,right:`${Ve("left",r,`${At*-1}px`,"auto")}`,left:`${Ve("right",r,`${At*-1}px`,"auto")}`,borderBottomWidth:`${Ve("top",r,"0",At)}px`,borderTopWidth:`${Ve("bottom",r,"0",At)}px`,borderRightWidth:`${Ve("left",r,"0",At)}px`,borderLeftWidth:`${Ve("right",r,"0",At)}px`,borderTopColor:Ve("top",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderBottomColor:Ve("bottom",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderLeftColor:Ve("left",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderRightColor:Ve("right",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent")})),ed=O.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,filter:`
|
|
222
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
223
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
224
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),pl=f.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:a,color:o,withArrows:i,...l},s)=>f.createElement(ed,{"data-testid":"tooltip",hasChrome:t,ref:s,...l,color:o},t&&i&&f.createElement(Qc,{placement:e,...n,color:o}),r)),pl.displayName="Tooltip"}),Ts={};ta(Ts,{WithToolTipState:()=>to,WithTooltip:()=>to,WithTooltipPure:()=>fl});const{global:Rw}=__STORYBOOK_MODULE_GLOBAL__;var An,td,rd,fl,to,Ps=P(()=>{Ow(),_w(),{document:An}=Rw,td=O.div`
|
|
225
|
+
display: inline-block;
|
|
226
|
+
cursor: ${e=>{var t;return e.trigger==="hover"||(t=e.trigger)!=null&&t.includes("hover")?"default":"pointer"}};
|
|
227
|
+
`,rd=O.g`
|
|
228
|
+
cursor: ${e=>{var t;return e.trigger==="hover"||(t=e.trigger)!=null&&t.includes("hover")?"default":"pointer"}};
|
|
229
|
+
`,fl=p(({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:a=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:o=!0,defaultVisible:i=!1,withArrows:l,offset:s,tooltip:u,children:d,closeOnTriggerHidden:m,mutationObserverOptions:c,delayHide:g=t==="hover"?200:0,visible:b,interactive:y,delayShow:v=t==="hover"?400:0,strategy:x,followCursor:C,onVisibleChange:w,...E})=>{let S=e?rd:td,{getArrowProps:D,getTooltipProps:F,setTooltipRef:k,setTriggerRef:T,visible:A,state:_}=_g({trigger:t,placement:n,defaultVisible:i,delayHide:g,interactive:y,closeOnOutsideClick:r,closeOnTriggerHidden:m,onVisibleChange:w,delayShow:v,followCursor:C,mutationObserverOptions:c,visible:b,offset:s},{modifiers:a,strategy:x}),B=A?f.createElement(pl,{placement:_==null?void 0:_.placement,ref:k,hasChrome:o,arrowProps:D(),withArrows:l,...F()},typeof u=="function"?u({onHide:p(()=>w(!1),"onHide")}):u):null;return f.createElement(f.Fragment,null,f.createElement(S,{trigger:t,ref:T,...E},d),A&&vf.createPortal(B,An.body))},"WithTooltipPure"),to=p(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=h.useState(e),o=h.useCallback(i=>{t&&t(i)===!1||a(i)},[t]);return h.useEffect(()=>{let i=p(()=>o(!1),"hide");An.addEventListener("keydown",i,!1);let l=Array.from(An.getElementsByTagName("iframe")),s=[];return l.forEach(u=>{let d=p(()=>{try{u.contentWindow.document&&(u.contentWindow.document.addEventListener("click",i),s.push(()=>{try{u.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}},"bind");d(),u.addEventListener("load",d),s.push(()=>{u.removeEventListener("load",d)})}),()=>{An.removeEventListener("keydown",i),s.forEach(u=>{u()})}}),f.createElement(fl,{...r,visible:n,onVisibleChange:o})},"WithToolTipState")}),pe=p(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames");bo();Px();ns();function Pg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rn(e,t)}p(Pg,"_inheritsLoose");Bx();ns();function Bg(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}p(Bg,"_isNativeFunction");function Bs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bs=p(function(){return!!e},"_isNativeReflectConstruct"))()}p(Bs,"_isNativeReflectConstruct");ns();function Ig(e,t,r){if(Bs())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&rn(a,r.prototype),a}p(Ig,"_construct");function ro(e){var t=typeof Map=="function"?new Map:void 0;return ro=p(function(r){if(r===null||!Bg(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Ig(r,arguments,Ga(this).constructor)}return p(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),rn(n,r)},"_wrapNativeSuper"),ro(e)}p(ro,"_wrapNativeSuper");var Tw={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
230
|
+
|
|
231
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
232
|
+
|
|
233
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
234
|
+
|
|
235
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
236
|
+
|
|
237
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
238
|
+
|
|
239
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
240
|
+
|
|
241
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
242
|
+
|
|
243
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
244
|
+
|
|
245
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
246
|
+
|
|
247
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
248
|
+
|
|
249
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
250
|
+
|
|
251
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
252
|
+
|
|
253
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
254
|
+
|
|
255
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
256
|
+
|
|
257
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
258
|
+
|
|
259
|
+
`,16:`You must provide a template to this method.
|
|
260
|
+
|
|
261
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
262
|
+
|
|
263
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
264
|
+
|
|
265
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
266
|
+
|
|
267
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
268
|
+
|
|
269
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
270
|
+
|
|
271
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
272
|
+
|
|
273
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
274
|
+
|
|
275
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
276
|
+
|
|
277
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
278
|
+
|
|
279
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
280
|
+
|
|
281
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
282
|
+
|
|
283
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
284
|
+
|
|
285
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
286
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
287
|
+
|
|
288
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
289
|
+
|
|
290
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
291
|
+
|
|
292
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
293
|
+
|
|
294
|
+
`,36:`Property must be a string value.
|
|
295
|
+
|
|
296
|
+
`,37:`Syntax Error at %s.
|
|
297
|
+
|
|
298
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
299
|
+
|
|
300
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
301
|
+
|
|
302
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
303
|
+
|
|
304
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
305
|
+
|
|
306
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
307
|
+
|
|
308
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
309
|
+
|
|
310
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
311
|
+
|
|
312
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
313
|
+
|
|
314
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
315
|
+
|
|
316
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
317
|
+
|
|
318
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
319
|
+
|
|
320
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
321
|
+
|
|
322
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
323
|
+
|
|
324
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
325
|
+
|
|
326
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
327
|
+
|
|
328
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
329
|
+
|
|
330
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
331
|
+
|
|
332
|
+
`,55:`fontFace expects a name of a font-family.
|
|
333
|
+
|
|
334
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
335
|
+
|
|
336
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
337
|
+
|
|
338
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
339
|
+
|
|
340
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
341
|
+
|
|
342
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
343
|
+
|
|
344
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
345
|
+
|
|
346
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
347
|
+
|
|
348
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
349
|
+
|
|
350
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
351
|
+
|
|
352
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
353
|
+
|
|
354
|
+
`,67:`You must provide a template to this method.
|
|
355
|
+
|
|
356
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
357
|
+
|
|
358
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
359
|
+
|
|
360
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
361
|
+
|
|
362
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
363
|
+
|
|
364
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
365
|
+
|
|
366
|
+
`,73:`Please provide a valid CSS variable.
|
|
367
|
+
|
|
368
|
+
`,74:`CSS variable not found and no default was provided.
|
|
369
|
+
|
|
370
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
371
|
+
|
|
372
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
373
|
+
|
|
374
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
375
|
+
|
|
376
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
377
|
+
`};function $g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=[],o;for(o=1;o<t.length;o+=1)a.push(t[o]);return a.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}p($g,"format");var Ne=function(e){Pg(t,e);function t(r){for(var n,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return n=e.call(this,$g.apply(void 0,[Tw[r]].concat(o)))||this,xf(n)}return p(t,"PolishedError"),t}(ro(Error));function ml(e,t){return e.substr(-t.length)===t}p(ml,"endsWith");var Pw=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function gl(e){if(typeof e!="string")return e;var t=e.match(Pw);return t?parseFloat(e):e}p(gl,"stripUnit");var Bw=p(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,a=r;if(typeof t=="string"){if(!ml(t,"px"))throw new Ne(69,e,t);n=gl(t)}if(typeof r=="string"){if(!ml(r,"px"))throw new Ne(70,e,r);a=gl(r)}if(typeof n=="string")throw new Ne(71,t,e);if(typeof a=="string")throw new Ne(72,r,e);return""+n/a+e}},"pxtoFactory"),Ng=Bw;Ng("em");Ng("rem");function Ra(e){return Math.round(e*255)}p(Ra,"colorToInt");function Lg(e,t,r){return Ra(e)+","+Ra(t)+","+Ra(r)}p(Lg,"convertToInt");function on(e,t,r,n){if(n===void 0&&(n=Lg),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),l=0,s=0,u=0;a>=0&&a<1?(l=o,s=i):a>=1&&a<2?(l=i,s=o):a>=2&&a<3?(s=o,u=i):a>=3&&a<4?(s=i,u=o):a>=4&&a<5?(l=i,u=o):a>=5&&a<6&&(l=o,u=i);var d=r-o/2,m=l+d,c=s+d,g=u+d;return n(m,c,g)}p(on,"hslToRgb");var nd={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",rebeccapurple:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function jg(e){if(typeof e!="string")return e;var t=e.toLowerCase();return nd[t]?"#"+nd[t]:e}p(jg,"nameToHex");var Iw=/^#[a-fA-F0-9]{6}$/,$w=/^#[a-fA-F0-9]{8}$/,Nw=/^#[a-fA-F0-9]{3}$/,Lw=/^#[a-fA-F0-9]{4}$/,gi=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,jw=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Mw=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,zw=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function wr(e){if(typeof e!="string")throw new Ne(3);var t=jg(e);if(t.match(Iw))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match($w)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Nw))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Lw)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=gi.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=jw.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=Mw.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+on(l,s,u)+")",m=gi.exec(d);if(!m)throw new Ne(4,t,d);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var c=zw.exec(t.substring(0,50));if(c){var g=parseInt(""+c[1],10),b=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,v="rgb("+on(g,b,y)+")",x=gi.exec(v);if(!x)throw new Ne(4,t,v);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ne(5)}p(wr,"parseToRgb");function Mg(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=a-o,u=i>.5?s/(2-a-o):s/(a+o);switch(a){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}p(Mg,"rgbToHsl");function It(e){return Mg(wr(e))}p(It,"parseToHsl");var Hw=p(function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},"reduceHexValue"),hl=Hw;function Gt(e){var t=e.toString(16);return t.length===1?"0"+t:t}p(Gt,"numberToHex");function Ta(e){return Gt(Math.round(e*255))}p(Ta,"colorToHex");function zg(e,t,r){return hl("#"+Ta(e)+Ta(t)+Ta(r))}p(zg,"convertToHex");function Yn(e,t,r){return on(e,t,r,zg)}p(Yn,"hslToHex");function Hg(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Yn(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Yn(e.hue,e.saturation,e.lightness);throw new Ne(1)}p(Hg,"hsl");function Ug(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Yn(e,t,r):"rgba("+on(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Yn(e.hue,e.saturation,e.lightness):"rgba("+on(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ne(2)}p(Ug,"hsla");function no(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return hl("#"+Gt(e)+Gt(t)+Gt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return hl("#"+Gt(e.red)+Gt(e.green)+Gt(e.blue));throw new Ne(6)}p(no,"rgb");function Cr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=wr(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?no(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?no(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ne(7)}p(Cr,"rgba");var Uw=p(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),Ww=p(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),qw=p(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),Vw=p(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function $t(e){if(typeof e!="object")throw new Ne(8);if(Ww(e))return Cr(e);if(Uw(e))return no(e);if(Vw(e))return Ug(e);if(qw(e))return Hg(e);throw new Ne(8)}p($t,"toColorString");function Is(e,t,r){return p(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Is(e,t,n)},"fn")}p(Is,"curried");function Ue(e){return Is(e,e.length,[])}p(Ue,"curry");function Wg(e,t){if(t==="transparent")return t;var r=It(t);return $t(fe({},r,{hue:r.hue+parseFloat(e)}))}p(Wg,"adjustHue");Ue(Wg);function Or(e,t,r){return Math.max(e,Math.min(t,r))}p(Or,"guard");function qg(e,t){if(t==="transparent")return t;var r=It(t);return $t(fe({},r,{lightness:Or(0,1,r.lightness-parseFloat(e))}))}p(qg,"darken");var Gw=Ue(qg),Hr=Gw;function Vg(e,t){if(t==="transparent")return t;var r=It(t);return $t(fe({},r,{saturation:Or(0,1,r.saturation-parseFloat(e))}))}p(Vg,"desaturate");Ue(Vg);function Gg(e,t){if(t==="transparent")return t;var r=It(t);return $t(fe({},r,{lightness:Or(0,1,r.lightness+parseFloat(e))}))}p(Gg,"lighten");var Kw=Ue(Gg),ad=Kw;function Kg(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=wr(t),a=fe({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=wr(r),i=fe({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),l=a.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,m=(u/d+1)/2,c=1-m,g={red:Math.floor(a.red*m+i.red*c),green:Math.floor(a.green*m+i.green*c),blue:Math.floor(a.blue*m+i.blue*c),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Cr(g)}p(Kg,"mix");var Yw=Ue(Kg),Yg=Yw;function Xg(e,t){if(t==="transparent")return t;var r=wr(t),n=typeof r.alpha=="number"?r.alpha:1,a=fe({},r,{alpha:Or(0,1,(n*100+parseFloat(e)*100)/100)});return Cr(a)}p(Xg,"opacify");Ue(Xg);function Zg(e,t){if(t==="transparent")return t;var r=It(t);return $t(fe({},r,{saturation:Or(0,1,r.saturation+parseFloat(e))}))}p(Zg,"saturate");Ue(Zg);function Jg(e,t){return t==="transparent"?t:$t(fe({},It(t),{hue:parseFloat(e)}))}p(Jg,"setHue");Ue(Jg);function Qg(e,t){return t==="transparent"?t:$t(fe({},It(t),{lightness:parseFloat(e)}))}p(Qg,"setLightness");Ue(Qg);function eh(e,t){return t==="transparent"?t:$t(fe({},It(t),{saturation:parseFloat(e)}))}p(eh,"setSaturation");Ue(eh);function th(e,t){return t==="transparent"?t:Yg(parseFloat(e),"rgb(0, 0, 0)",t)}p(th,"shade");Ue(th);function rh(e,t){return t==="transparent"?t:Yg(parseFloat(e),"rgb(255, 255, 255)",t)}p(rh,"tint");Ue(rh);function nh(e,t){if(t==="transparent")return t;var r=wr(t),n=typeof r.alpha=="number"?r.alpha:1,a=fe({},r,{alpha:Or(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Cr(a)}p(nh,"transparentize");var Xw=Ue(nh),Je=Xw,gn=p(({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),"headerCommon"),Nt=p(({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Je(.1,e.color.defaultText):Je(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),me=p(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),"withReset"),_r={margin:"16px 0"},$s=O.div(me),Zw=p(({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return f.createElement("a",{href:r,target:n,...t})},"Link"),ah=O(Zw)(me,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),oh=O.blockquote(me,_r,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}));wo();var Jw=p(e=>typeof e=="string","isReactChildString"),Qw=/[\n\r]/g,eC=O.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Nt),tC=O(Un)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Ns=p(({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=h.Children.toArray(t);return a.filter(Jw).some(o=>o.match(Qw))?f.createElement(tC,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):f.createElement(eC,{...r,className:e},a)},"Code"),ih=O.dl(me,_r,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),lh=O.div(me),sh=O.h1(me,gn,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Ls=O.h2(me,gn,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),js=O.h3(me,gn,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),uh=O.h4(me,gn,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),ch=O.h5(me,gn,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),dh=O.h6(me,gn,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),ph=O.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),fh=O.img({maxWidth:"100%"}),mh=O.li(me,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Nt({theme:e})})),rC={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},gh=O.ol(me,_r,rC,{listStyle:"decimal"}),hh=O.p(me,_r,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Nt({theme:e})})),bh=O.pre(me,_r,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),yh=O.span(me,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),vh=O.title(Nt),xh=O.table(me,_r,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),nC={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Eh=O.ul(me,_r,nC,{listStyle:"disc"}),wh={h1:p(e=>f.createElement(sh,{...pe(e,"h1")}),"h1"),h2:p(e=>f.createElement(Ls,{...pe(e,"h2")}),"h2"),h3:p(e=>f.createElement(js,{...pe(e,"h3")}),"h3"),h4:p(e=>f.createElement(uh,{...pe(e,"h4")}),"h4"),h5:p(e=>f.createElement(ch,{...pe(e,"h5")}),"h5"),h6:p(e=>f.createElement(dh,{...pe(e,"h6")}),"h6"),pre:p(e=>f.createElement(bh,{...pe(e,"pre")}),"pre"),a:p(e=>f.createElement(ah,{...pe(e,"a")}),"a"),hr:p(e=>f.createElement(ph,{...pe(e,"hr")}),"hr"),dl:p(e=>f.createElement(ih,{...pe(e,"dl")}),"dl"),blockquote:p(e=>f.createElement(oh,{...pe(e,"blockquote")}),"blockquote"),table:p(e=>f.createElement(xh,{...pe(e,"table")}),"table"),img:p(e=>f.createElement(fh,{...pe(e,"img")}),"img"),div:p(e=>f.createElement(lh,{...pe(e,"div")}),"div"),span:p(e=>f.createElement(yh,{...pe(e,"span")}),"span"),li:p(e=>f.createElement(mh,{...pe(e,"li")}),"li"),ul:p(e=>f.createElement(Eh,{...pe(e,"ul")}),"ul"),ol:p(e=>f.createElement(gh,{...pe(e,"ol")}),"ol"),p:p(e=>f.createElement(hh,{...pe(e,"p")}),"p"),code:p(e=>f.createElement(Ns,{...pe(e,"code")}),"code"),tt:p(e=>f.createElement(vh,{...pe(e,"tt")}),"tt"),resetwrapper:p(e=>f.createElement($s,{...pe(e,"resetwrapper")}),"resetwrapper")},aC=O.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Je(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Je(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.textMutedColor,background:e.base==="light"?e.background.app:e.barBg,boxShadow:`inset 0 0 0 1px ${Je(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Je(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${Je(.9,e.color.secondary)}`};default:return{}}}),oC=p(({...e})=>f.createElement(aC,{...e}),"Badge"),iC=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),lC=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),sC=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),uC=0,cC=p(e=>e.button===uC&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),dC=p((e,t)=>{cC(e)&&(e.preventDefault(),t(e))},"cancelled"),pC=O.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),fC=O.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Hr(.07,e.color.secondary),"svg path:not([fill])":{fill:Hr(.07,e.color.secondary)}},"&:active":{color:Hr(.1,e.color.secondary),"svg path:not([fill])":{fill:Hr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),gr=p(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:o=void 0,style:i=void 0,...l})=>f.createElement(fC,{...l,onClick:r&&e?s=>dC(s,r):r,className:o},f.createElement(pC,{withArrow:n,containsIcon:a},t,n&&f.createElement(sC,null))),"Link"),mC=O.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}})),hr=[],ln=null,gC=h.lazy(async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then(()=>(wo(),hs));return hr.length>0&&(hr.forEach(t=>{e.registerLanguage(...t)}),hr=[]),ln===null&&(ln=e),{default:p(t=>f.createElement(e,{...t}),"default")}}),hC=h.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then(()=>(wo(),hs)),Promise.resolve().then(()=>(ZE(),_m))]);return hr.length>0&&(hr.forEach(r=>{e.registerLanguage(...r)}),hr=[]),ln===null&&(ln=e),{default:p(r=>f.createElement(e,{...r,formatter:t}),"default")}}),Ro=p(e=>f.createElement(h.Suspense,{fallback:f.createElement("div",null)},e.format!==!1?f.createElement(hC,{...e}):f.createElement(gC,{...e})),"SyntaxHighlighter");Ro.registerLanguage=(...e)=>{if(ln!==null){ln.registerLanguage(...e);return}hr.push(e)};wo();fm();var Ch={};ta(Ch,{Close:()=>T0,Content:()=>O0,Description:()=>R0,Dialog:()=>Ws,DialogClose:()=>Qs,DialogContent:()=>Ys,DialogDescription:()=>Js,DialogOverlay:()=>Ks,DialogPortal:()=>Gs,DialogTitle:()=>Zs,DialogTrigger:()=>qs,Overlay:()=>A0,Portal:()=>k0,Root:()=>F0,Title:()=>_0,Trigger:()=>hS,WarningProvider:()=>pS,createDialogScope:()=>oS});function Gr(e,t,{checkForDefaultPrevented:r=!0}={}){return p(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}p(Gr,"composeEventHandlers");function bl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}p(bl,"setRef");function Ms(...e){return t=>{let r=!1,n=e.map(a=>{let o=bl(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a<n.length;a++){let o=n[a];typeof o=="function"?o():bl(e[a],null)}}}}p(Ms,"composeRefs");function Qt(...e){return h.useCallback(Ms(...e),e)}p(Qt,"useComposedRefs");function Sh(e,t){let r=h.createContext(t),n=p(o=>{let{children:i,...l}=o,s=h.useMemo(()=>l,Object.values(l));return L.jsx(r.Provider,{value:s,children:i})},"Provider");n.displayName=e+"Provider";function a(o){let i=h.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return p(a,"useContext2"),[n,a]}p(Sh,"createContext2");function Dh(e,t=[]){let r=[];function n(o,i){let l=h.createContext(i),s=r.length;r=[...r,i];let u=p(m=>{var x;let{scope:c,children:g,...b}=m,y=((x=c==null?void 0:c[e])==null?void 0:x[s])||l,v=h.useMemo(()=>b,Object.values(b));return L.jsx(y.Provider,{value:v,children:g})},"Provider");u.displayName=o+"Provider";function d(m,c){var y;let g=((y=c==null?void 0:c[e])==null?void 0:y[s])||l,b=h.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return p(d,"useContext2"),[u,d]}p(n,"createContext3");let a=p(()=>{let o=r.map(i=>h.createContext(i));return p(function(i){let l=(i==null?void 0:i[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return a.scopeName=e,[n,Fh(a,...t)]}p(Dh,"createContextScope");function Fh(...e){let t=e[0];if(e.length===1)return t;let r=p(()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return p(function(a){let o=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(a)[`__scope${s}`];return{...i,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}p(Fh,"composeContextScopes");var Xn=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},bC=Jd[" useId ".trim().toString()]||(()=>{}),yC=0;function Pa(e){let[t,r]=h.useState(bC());return Xn(()=>{e||r(n=>n??String(yC++))},[e]),e||(t?`radix-${t}`:"")}p(Pa,"useId");var vC=Jd[" useInsertionEffect ".trim().toString()]||Xn;function kh({prop:e,defaultProp:t,onChange:r=p(()=>{},"onChange"),caller:n}){let[a,o,i]=Ah({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:a;{let d=h.useRef(e!==void 0);h.useEffect(()=>{let m=d.current;m!==l&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}let u=h.useCallback(d=>{var m;if(l){let c=Oh(d)?d(e):d;c!==e&&((m=i.current)==null||m.call(i,c))}else o(d)},[l,e,o,i]);return[s,u]}p(kh,"useControllableState");function Ah({defaultProp:e,onChange:t}){let[r,n]=h.useState(e),a=h.useRef(r),o=h.useRef(t);return vC(()=>{o.current=t},[t]),h.useEffect(()=>{var i;a.current!==r&&((i=o.current)==null||i.call(o,r),a.current=r)},[r,a]),[r,n,o]}p(Ah,"useUncontrolledState");function Oh(e){return typeof e=="function"}p(Oh,"isFunction");function Ba(e,t,{checkForDefaultPrevented:r=!0}={}){return p(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}p(Ba,"composeEventHandlers");function To(e){let t=_h(e),r=h.forwardRef((n,a)=>{let{children:o,...i}=n,l=h.Children.toArray(o),s=l.find(Rh);if(s){let u=s.props.children,d=l.map(m=>m===s?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:m);return L.jsx(t,{...i,ref:a,children:h.isValidElement(u)?h.cloneElement(u,void 0,d):null})}return L.jsx(t,{...i,ref:a,children:o})});return r.displayName=`${e}.Slot`,r}p(To,"createSlot");var xC=To("Slot");function _h(e){let t=h.forwardRef((r,n)=>{let{children:a,...o}=r;if(h.isValidElement(a)){let i=Ph(a),l=Th(o,a.props);return a.type!==h.Fragment&&(l.ref=n?Ms(n,i):i),h.cloneElement(a,l)}return h.Children.count(a)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}p(_h,"createSlotClone");var EC=Symbol("radix.slottable");function Rh(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EC}p(Rh,"isSlottable");function Th(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...i)=>{o(...i),a(...i)}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}p(Th,"mergeProps");function Ph(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}p(Ph,"getElementRef");var wC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Lt=wC.reduce((e,t)=>{let r=To(`Primitive.${t}`),n=h.forwardRef((a,o)=>{let{asChild:i,...l}=a,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(s,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bh(e,t){e&&go.flushSync(()=>e.dispatchEvent(t))}p(Bh,"dispatchDiscreteCustomEvent");function sn(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}p(sn,"useCallbackRef");function Ih(e,t=globalThis==null?void 0:globalThis.document){let r=sn(e);h.useEffect(()=>{let n=p(a=>{a.key==="Escape"&&r(a)},"handleKeyDown");return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}p(Ih,"useEscapeKeydown");var CC="DismissableLayer",yl="dismissableLayer.update",SC="dismissableLayer.pointerDownOutside",DC="dismissableLayer.focusOutside",od,$h=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nh=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...s}=e,u=h.useContext($h),[d,m]=h.useState(null),c=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=h.useState({}),b=Qt(t,F=>m(F)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(v),C=d?y.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=x,S=Lh(F=>{let k=F.target,T=[...u.branches].some(A=>A.contains(k));!E||T||(a==null||a(F),i==null||i(F),F.defaultPrevented||(l==null||l()))},c),D=jh(F=>{let k=F.target;[...u.branches].some(T=>T.contains(k))||(o==null||o(F),i==null||i(F),F.defaultPrevented||(l==null||l()))},c);return Ih(F=>{C===u.layers.size-1&&(n==null||n(F),!F.defaultPrevented&&l&&(F.preventDefault(),l()))},c),h.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(od=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vl(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=od)}},[d,c,r,u]),h.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vl())},[d,u]),h.useEffect(()=>{let F=p(()=>g({}),"handleUpdate");return document.addEventListener(yl,F),()=>document.removeEventListener(yl,F)},[]),L.jsx(Lt.div,{...s,ref:b,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Ba(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Ba(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Ba(e.onPointerDownCapture,S.onPointerDownCapture)})});Nh.displayName=CC;var FC="DismissableLayerBranch",kC=h.forwardRef((e,t)=>{let r=h.useContext($h),n=h.useRef(null),a=Qt(t,n);return h.useEffect(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),L.jsx(Lt.div,{...e,ref:a})});kC.displayName=FC;function Lh(e,t=globalThis==null?void 0:globalThis.document){let r=sn(e),n=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{let o=p(l=>{if(l.target&&!n.current){let s=p(function(){zs(SC,r,u,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2"),u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=s,t.addEventListener("click",a.current,{once:!0})):s()}else t.removeEventListener("click",a.current);n.current=!1},"handlePointerDown"),i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:p(()=>n.current=!0,"onPointerDownCapture")}}p(Lh,"usePointerDownOutside");function jh(e,t=globalThis==null?void 0:globalThis.document){let r=sn(e),n=h.useRef(!1);return h.useEffect(()=>{let a=p(o=>{o.target&&!n.current&&zs(DC,r,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:p(()=>n.current=!0,"onFocusCapture"),onBlurCapture:p(()=>n.current=!1,"onBlurCapture")}}p(jh,"useFocusOutside");function vl(){let e=new CustomEvent(yl);document.dispatchEvent(e)}p(vl,"dispatchUpdate");function zs(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Bh(a,o):a.dispatchEvent(o)}p(zs,"handleAndDispatchCustomEvent");var hi="focusScope.autoFocusOnMount",bi="focusScope.autoFocusOnUnmount",id={bubbles:!1,cancelable:!0},AC="FocusScope",Mh=h.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,s]=h.useState(null),u=sn(a),d=sn(o),m=h.useRef(null),c=Qt(t,y=>s(y)),g=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let y=p(function(w){if(g.paused||!l)return;let E=w.target;l.contains(E)?m.current=E:_t(m.current,{select:!0})},"handleFocusIn2"),v=p(function(w){if(g.paused||!l)return;let E=w.relatedTarget;E!==null&&(l.contains(E)||_t(m.current,{select:!0}))},"handleFocusOut2"),x=p(function(w){if(document.activeElement===document.body)for(let E of w)E.removedNodes.length>0&&_t(l)},"handleMutations2");document.addEventListener("focusin",y),document.addEventListener("focusout",v);let C=new MutationObserver(x);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),C.disconnect()}}},[n,l,g.paused]),h.useEffect(()=>{if(l){ld.add(g);let y=document.activeElement;if(!l.contains(y)){let v=new CustomEvent(hi,id);l.addEventListener(hi,u),l.dispatchEvent(v),v.defaultPrevented||(zh(Vh(Hs(l)),{select:!0}),document.activeElement===y&&_t(l))}return()=>{l.removeEventListener(hi,u),setTimeout(()=>{let v=new CustomEvent(bi,id);l.addEventListener(bi,d),l.dispatchEvent(v),v.defaultPrevented||_t(y??document.body,{select:!0}),l.removeEventListener(bi,d),ld.remove(g)},0)}}},[l,u,d,g]);let b=h.useCallback(y=>{if(!r&&!n||g.paused)return;let v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(v&&x){let C=y.currentTarget,[w,E]=Hh(C);w&&E?!y.shiftKey&&x===E?(y.preventDefault(),r&&_t(w,{select:!0})):y.shiftKey&&x===w&&(y.preventDefault(),r&&_t(E,{select:!0})):x===C&&y.preventDefault()}},[r,n,g.paused]);return L.jsx(Lt.div,{tabIndex:-1,...i,ref:c,onKeyDown:b})});Mh.displayName=AC;function zh(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(_t(n,{select:t}),document.activeElement!==r)return}p(zh,"focusFirst");function Hh(e){let t=Hs(e),r=xl(t,e),n=xl(t.reverse(),e);return[r,n]}p(Hh,"getTabbableEdges");function Hs(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:p(n=>{let a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}p(Hs,"getTabbableCandidates");function xl(e,t){for(let r of e)if(!Uh(r,{upTo:t}))return r}p(xl,"findVisible");function Uh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}p(Uh,"isHidden");function Wh(e){return e instanceof HTMLInputElement&&"select"in e}p(Wh,"isSelectableInput");function _t(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Wh(e)&&t&&e.select()}}p(_t,"focus");var ld=qh();function qh(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=El(e,t),e.unshift(t)},remove(t){var r;e=El(e,t),(r=e[0])==null||r.resume()}}}p(qh,"createFocusScopesStack");function El(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}p(El,"arrayRemove");function Vh(e){return e.filter(t=>t.tagName!=="A")}p(Vh,"removeLinks");var OC="Portal",Gh=h.forwardRef((e,t)=>{var l;let{container:r,...n}=e,[a,o]=h.useState(!1);Xn(()=>o(!0),[]);let i=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?vf.createPortal(L.jsx(Lt.div,{...n,ref:t}),i):null});Gh.displayName=OC;function Kh(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}p(Kh,"useStateMachine");var Po=p(e=>{let{present:t,children:r}=e,n=Yh(t),a=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),o=Qt(n.ref,Xh(a));return typeof r=="function"||n.isPresent?h.cloneElement(a,{ref:o}):null},"Presence");Po.displayName="Presence";function Yh(e){let[t,r]=h.useState(),n=h.useRef(null),a=h.useRef(e),o=h.useRef("none"),i=e?"mounted":"unmounted",[l,s]=Kh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=Nn(n.current);o.current=l==="mounted"?u:"none"},[l]),Xn(()=>{let u=n.current,d=a.current;if(d!==e){let m=o.current,c=Nn(u);e?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&m!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),Xn(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,m=p(g=>{let b=Nn(n.current).includes(g.animationName);if(g.target===t&&b&&(s("ANIMATION_END"),!a.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),c=p(g=>{g.target===t&&(o.current=Nn(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}p(Yh,"usePresence");function Nn(e){return(e==null?void 0:e.animationName)||"none"}p(Nn,"getAnimationName");function Xh(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}p(Xh,"getElementRef");var yi=0;function Zh(){h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wl()),document.body.insertAdjacentElement("beforeend",e[1]??wl()),yi++,()=>{yi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yi--}},[])}p(Zh,"useFocusGuards");function wl(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}p(wl,"createFocusGuard");var wt=p(function(){return wt=Object.assign||p(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},"__assign"),wt.apply(this,arguments)},"__assign");function Us(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}p(Us,"__rest");function Jh(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}p(Jh,"__spreadArray");var Ia="right-scroll-bar-position",$a="width-before-scroll-bar",_C="with-scroll-bars-hidden",RC="--removed-body-scroll-bar-size";function Na(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}p(Na,"assignRef");function Qh(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}p(Qh,"useCallbackRef");var TC=typeof window<"u"?h.useLayoutEffect:h.useEffect,sd=new WeakMap;function e0(e,t){var r=Qh(t||null,function(n){return e.forEach(function(a){return Na(a,n)})});return TC(function(){var n=sd.get(r);if(n){var a=new Set(n),o=new Set(e),i=r.current;a.forEach(function(l){o.has(l)||Na(l,null)}),o.forEach(function(l){a.has(l)||Na(l,i)})}sd.set(r,e)},[e]),r}p(e0,"useMergeRefs");function t0(e){return e}p(t0,"ItoI");function r0(e,t){t===void 0&&(t=t0);var r=[],n=!1,a={read:p(function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},"read"),useMedium:p(function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},"useMedium"),assignSyncMedium:p(function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:p(function(l){return o(l)},"push"),filter:p(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:p(function(o){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(o),i=r}var s=p(function(){var d=i;i=[],d.forEach(o)},"executeQueue"),u=p(function(){return Promise.resolve().then(s)},"cycle");u(),r={push:p(function(d){i.push(d),u()},"push"),filter:p(function(d){return i=i.filter(d),r},"filter")}},"assignMedium")};return a}p(r0,"innerCreateMedium");function n0(e){e===void 0&&(e={});var t=r0(null);return t.options=wt({async:!0,ssr:!1},e),t}p(n0,"createSidecarMedium");var a0=p(function(e){var t=e.sideCar,r=Us(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return h.createElement(n,wt({},r))},"SideCar");a0.isSideCarExport=!0;function o0(e,t){return e.useMedium(t),a0}p(o0,"exportSidecar");var i0=n0(),vi=p(function(){},"nothing"),Bo=h.forwardRef(function(e,t){var r=h.useRef(null),n=h.useState({onScrollCapture:vi,onWheelCapture:vi,onTouchMoveCapture:vi}),a=n[0],o=n[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,m=e.shards,c=e.sideCar,g=e.noIsolation,b=e.inert,y=e.allowPinchZoom,v=e.as,x=v===void 0?"div":v,C=e.gapMode,w=Us(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=c,S=e0([r,t]),D=wt(wt({},w),a);return h.createElement(h.Fragment,null,d&&h.createElement(E,{sideCar:i0,removeScrollBar:u,shards:m,noIsolation:g,inert:b,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:C}),i?h.cloneElement(h.Children.only(l),wt(wt({},D),{ref:S})):h.createElement(x,wt({},D,{className:s,ref:S}),l))});Bo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bo.classNames={fullWidth:$a,zeroRight:Ia};var PC=p(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function l0(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PC();return t&&e.setAttribute("nonce",t),e}p(l0,"makeStyleTag");function s0(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}p(s0,"injectStyles");function u0(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}p(u0,"insertStyleTag");var BC=p(function(){var e=0,t=null;return{add:p(function(r){e==0&&(t=l0())&&(s0(t,r),u0(t)),e++},"add"),remove:p(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),IC=p(function(){var e=BC();return function(t,r){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),c0=p(function(){var e=IC(),t=p(function(r){var n=r.styles,a=r.dynamic;return e(n,a),null},"Sheet");return t},"styleSingleton"),$C={left:0,top:0,right:0,gap:0},xi=p(function(e){return parseInt(e||"",10)||0},"parse"),NC=p(function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[xi(r),xi(n),xi(a)]},"getOffset"),LC=p(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $C;var t=NC(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},"getGapWidth"),jC=c0(),Kr="data-scroll-locked",MC=p(function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
378
|
+
.`.concat(_C,` {
|
|
379
|
+
overflow: hidden `).concat(n,`;
|
|
380
|
+
padding-right: `).concat(l,"px ").concat(n,`;
|
|
381
|
+
}
|
|
382
|
+
body[`).concat(Kr,`] {
|
|
383
|
+
overflow: hidden `).concat(n,`;
|
|
384
|
+
overscroll-behavior: contain;
|
|
385
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
386
|
+
padding-left: `.concat(a,`px;
|
|
387
|
+
padding-top: `).concat(o,`px;
|
|
388
|
+
padding-right: `).concat(i,`px;
|
|
389
|
+
margin-left:0;
|
|
390
|
+
margin-top:0;
|
|
391
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
392
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.`).concat(Ia,` {
|
|
396
|
+
right: `).concat(l,"px ").concat(n,`;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.`).concat($a,` {
|
|
400
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.`).concat(Ia," .").concat(Ia,` {
|
|
404
|
+
right: 0 `).concat(n,`;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.`).concat($a," .").concat($a,` {
|
|
408
|
+
margin-right: 0 `).concat(n,`;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
body[`).concat(Kr,`] {
|
|
412
|
+
`).concat(RC,": ").concat(l,`px;
|
|
413
|
+
}
|
|
414
|
+
`)},"getStyles"),ud=p(function(){var e=parseInt(document.body.getAttribute(Kr)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),zC=p(function(){h.useEffect(function(){return document.body.setAttribute(Kr,(ud()+1).toString()),function(){var e=ud()-1;e<=0?document.body.removeAttribute(Kr):document.body.setAttribute(Kr,e.toString())}},[])},"useLockAttribute"),HC=p(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;zC();var o=h.useMemo(function(){return LC(a)},[a]);return h.createElement(jC,{styles:MC(o,!t,a,r?"":"!important")})},"RemoveScrollBar"),Cl=!1;if(typeof window<"u")try{On=Object.defineProperty({},"passive",{get:p(function(){return Cl=!0,!0},"get")}),window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{Cl=!1}var On,Tr=Cl?{passive:!1}:!1,UC=p(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),d0=p(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!UC(e)&&r[t]==="visible")},"elementCanBeScrolled"),WC=p(function(e){return d0(e,"overflowY")},"elementCouldBeVScrolled"),qC=p(function(e){return d0(e,"overflowX")},"elementCouldBeHScrolled"),cd=p(function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=p0(e,n);if(a){var o=f0(e,n),i=o[1],l=o[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},"locationCouldBeScrolled"),VC=p(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),GC=p(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),p0=p(function(e,t){return e==="v"?WC(t):qC(t)},"elementCouldBeScrolled"),f0=p(function(e,t){return e==="v"?VC(t):GC(t)},"getScrollVariables"),KC=p(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),YC=p(function(e,t,r,n,a){var o=KC(e,window.getComputedStyle(t).direction),i=o*n,l=r.target,s=t.contains(l),u=!1,d=i>0,m=0,c=0;do{var g=f0(e,l),b=g[0],y=g[1],v=g[2],x=y-v-o*b;(b||x)&&p0(e,l)&&(m+=x,c+=b),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(d&&(a&&Math.abs(m)<1||!a&&i>m)||!d&&(a&&Math.abs(c)<1||!a&&-i>c))&&(u=!0),u},"handleScroll"),xa=p(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),dd=p(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),pd=p(function(e){return e&&"current"in e?e.current:e},"extractRef"),XC=p(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),ZC=p(function(e){return`
|
|
415
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
416
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
417
|
+
`)},"generateStyle"),JC=0,Pr=[];function m0(e){var t=h.useRef([]),r=h.useRef([0,0]),n=h.useRef(),a=h.useState(JC++)[0],o=h.useState(c0)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=Jh([e.lockRef.current],(e.shards||[]).map(pd),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var x=xa(y),C=r.current,w="deltaX"in y?y.deltaX:C[0]-x[0],E="deltaY"in y?y.deltaY:C[1]-x[1],S,D=y.target,F=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in y&&F==="h"&&D.type==="range")return!1;var k=cd(F,D);if(!k)return!0;if(k?S=F:(S=F==="v"?"h":"v",k=cd(F,D)),!k)return!1;if(!n.current&&"changedTouches"in y&&(w||E)&&(n.current=S),!S)return!0;var T=n.current||S;return YC(T,v,y,T==="h"?w:E,!0)},[]),s=h.useCallback(function(y){var v=y;if(!(!Pr.length||Pr[Pr.length-1]!==o)){var x="deltaY"in v?dd(v):xa(v),C=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&XC(S.delta,x)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(pd).filter(Boolean).filter(function(S){return S.contains(v.target)}),E=w.length>0?l(v,w[0]):!i.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=h.useCallback(function(y,v,x,C){var w={name:y,delta:v,target:x,should:C,shadowParent:g0(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=h.useCallback(function(y){r.current=xa(y),n.current=void 0},[]),m=h.useCallback(function(y){u(y.type,dd(y),y.target,l(y,e.lockRef.current))},[]),c=h.useCallback(function(y){u(y.type,xa(y),y.target,l(y,e.lockRef.current))},[]);h.useEffect(function(){return Pr.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:c}),document.addEventListener("wheel",s,Tr),document.addEventListener("touchmove",s,Tr),document.addEventListener("touchstart",d,Tr),function(){Pr=Pr.filter(function(y){return y!==o}),document.removeEventListener("wheel",s,Tr),document.removeEventListener("touchmove",s,Tr),document.removeEventListener("touchstart",d,Tr)}},[]);var g=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(o,{styles:ZC(a)}):null,g?h.createElement(HC,{gapMode:e.gapMode}):null)}p(m0,"RemoveScrollSideCar");function g0(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}p(g0,"getOutermostShadowParent");var QC=o0(i0,m0),h0=h.forwardRef(function(e,t){return h.createElement(Bo,wt({},e,{ref:t,sideCar:QC}))});h0.classNames=Bo.classNames;var eS=h0,tS=p(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),Br=new WeakMap,Ea=new WeakMap,wa={},Ei=0,b0=p(function(e){return e&&(e.host||b0(e.parentNode))},"unwrapHost"),rS=p(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=b0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),nS=p(function(e,t,r,n){var a=rS(t,Array.isArray(e)?e:[e]);wa[r]||(wa[r]=new WeakMap);var o=wa[r],i=[],l=new Set,s=new Set(a),u=p(function(m){!m||l.has(m)||(l.add(m),u(m.parentNode))},"keep");a.forEach(u);var d=p(function(m){!m||s.has(m)||Array.prototype.forEach.call(m.children,function(c){if(l.has(c))d(c);else try{var g=c.getAttribute(n),b=g!==null&&g!=="false",y=(Br.get(c)||0)+1,v=(o.get(c)||0)+1;Br.set(c,y),o.set(c,v),i.push(c),y===1&&b&&Ea.set(c,!0),v===1&&c.setAttribute(r,"true"),b||c.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",c,x)}})},"deep");return d(t),l.clear(),Ei++,function(){i.forEach(function(m){var c=Br.get(m)-1,g=o.get(m)-1;Br.set(m,c),o.set(m,g),c||(Ea.has(m)||m.removeAttribute(n),Ea.delete(m)),g||m.removeAttribute(r)}),Ei--,Ei||(Br=new WeakMap,Br=new WeakMap,Ea=new WeakMap,wa={})}},"applyAttributeToOthers"),aS=p(function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||tS(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),nS(n,a,r,"aria-hidden")):function(){return null}},"hideOthers"),Io="Dialog",[y0,oS]=Dh(Io),[iS,mt]=y0(Io),Ws=p(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=h.useRef(null),s=h.useRef(null),[u,d]=kh({prop:n,defaultProp:a??!1,onChange:o,caller:Io});return L.jsx(iS,{scope:t,triggerRef:l,contentRef:s,contentId:Pa(),titleId:Pa(),descriptionId:Pa(),open:u,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(m=>!m),[d]),modal:i,children:r})},"Dialog");Ws.displayName=Io;var v0="DialogTrigger",qs=h.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=mt(v0,r),o=Qt(t,a.triggerRef);return L.jsx(Lt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$o(a.open),...n,ref:o,onClick:Gr(e.onClick,a.onOpenToggle)})});qs.displayName=v0;var Vs="DialogPortal",[lS,x0]=y0(Vs,{forceMount:void 0}),Gs=p(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=mt(Vs,t);return L.jsx(lS,{scope:t,forceMount:r,children:h.Children.map(n,i=>L.jsx(Po,{present:r||o.open,children:L.jsx(Gh,{asChild:!0,container:a,children:i})}))})},"DialogPortal");Gs.displayName=Vs;var ao="DialogOverlay",Ks=h.forwardRef((e,t)=>{let r=x0(ao,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=mt(ao,e.__scopeDialog);return o.modal?L.jsx(Po,{present:n||o.open,children:L.jsx(uS,{...a,ref:t})}):null});Ks.displayName=ao;var sS=To("DialogOverlay.RemoveScroll"),uS=h.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=mt(ao,r);return L.jsx(eS,{as:sS,allowPinchZoom:!0,shards:[a.contentRef],children:L.jsx(Lt.div,{"data-state":$o(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Sr="DialogContent",Ys=h.forwardRef((e,t)=>{let r=x0(Sr,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=mt(Sr,e.__scopeDialog);return L.jsx(Po,{present:n||o.open,children:o.modal?L.jsx(cS,{...a,ref:t}):L.jsx(dS,{...a,ref:t})})});Ys.displayName=Sr;var cS=h.forwardRef((e,t)=>{let r=mt(Sr,e.__scopeDialog),n=h.useRef(null),a=Qt(t,r.contentRef,n);return h.useEffect(()=>{let o=n.current;if(o)return aS(o)},[]),L.jsx(E0,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Gr(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Gr(e.onPointerDownOutside,o=>{let i=o.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&o.preventDefault()}),onFocusOutside:Gr(e.onFocusOutside,o=>o.preventDefault())})}),dS=h.forwardRef((e,t)=>{let r=mt(Sr,e.__scopeDialog),n=h.useRef(!1),a=h.useRef(!1);return L.jsx(E0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p(o=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(n.current||((l=r.triggerRef.current)==null||l.focus()),o.preventDefault()),n.current=!1,a.current=!1},"onCloseAutoFocus"),onInteractOutside:p(o=>{var l,s;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let i=o.target;(s=r.triggerRef.current)!=null&&s.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()},"onInteractOutside")})}),E0=h.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=mt(Sr,r),s=h.useRef(null),u=Qt(t,s);return Zh(),L.jsxs(L.Fragment,{children:[L.jsx(Mh,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:L.jsx(Nh,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":$o(l.open),...i,ref:u,onDismiss:p(()=>l.onOpenChange(!1),"onDismiss")})}),L.jsxs(L.Fragment,{children:[L.jsx(fS,{titleId:l.titleId}),L.jsx(gS,{contentRef:s,descriptionId:l.descriptionId})]})]})}),Xs="DialogTitle",Zs=h.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=mt(Xs,r);return L.jsx(Lt.h2,{id:a.titleId,...n,ref:t})});Zs.displayName=Xs;var w0="DialogDescription",Js=h.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=mt(w0,r);return L.jsx(Lt.p,{id:a.descriptionId,...n,ref:t})});Js.displayName=w0;var C0="DialogClose",Qs=h.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=mt(C0,r);return L.jsx(Lt.button,{type:"button",...n,ref:t,onClick:Gr(e.onClick,()=>a.onOpenChange(!1))})});Qs.displayName=C0;function $o(e){return e?"open":"closed"}p($o,"getState");var S0="DialogTitleWarning",[pS,D0]=Sh(S0,{contentName:Sr,titleName:Xs,docsSlug:"dialog"}),fS=p(({titleId:e})=>{let t=D0(S0),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
418
|
+
|
|
419
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
420
|
+
|
|
421
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},"TitleWarning"),mS="DialogDescriptionWarning",gS=p(({contentRef:e,descriptionId:t})=>{let r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D0(mS).contentName}}.`;return h.useEffect(()=>{var a;let n=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},"DescriptionWarning"),F0=Ws,hS=qs,k0=Gs,A0=Ks,O0=Ys,_0=Zs,R0=Js,T0=Qs,P0={};ta(P0,{Actions:()=>SS,CloseButton:()=>N0,Col:()=>j0,Container:()=>$0,Content:()=>xS,Description:()=>CS,Error:()=>DS,ErrorWrapper:()=>M0,Header:()=>ES,Overlay:()=>I0,Row:()=>L0,Title:()=>wS});var er=h.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:o=!1,active:i=!1,onClick:l,...s},u)=>{let d="button";e&&(d=xC);let[m,c]=h.useState(!1),g=p(b=>{l&&l(b),t!=="none"&&c(!0)},"handleClick");return h.useEffect(()=>{let b=setTimeout(()=>{m&&c(!1)},1e3);return()=>clearTimeout(b)},[m]),f.createElement(bS,{as:d,ref:u,variant:n,size:r,padding:a,disabled:o,active:i,animating:m,animation:t,onClick:g,...s})});er.displayName="Button";var bS=O("button",{shouldForwardProp:p(e=>es(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:o,animation:i="none",padding:l})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:l==="none"?0:l==="small"&&r==="small"?"0 7px":l==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Je(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Je(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Je(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Cr(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Je(.86,e.color.secondary):e.base==="light"?Hr(.02,s):ad(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Hr(.02,s):ad(.03,s)})()},"&:focus":{boxShadow:`${Cr(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:o&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Xt=h.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>f.createElement(er,{padding:e,variant:t,ref:n,...r}));Xt.displayName="IconButton";var B0=ft({from:{opacity:0},to:{opacity:1}}),yS=ft({from:{maxHeight:0},to:{}}),vS=ft({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),I0=O.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${B0} 200ms`}),$0=O.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${vS} 200ms`,"&:focus-visible":{outline:"none"}})),N0=p(e=>f.createElement(T0,{asChild:!0},f.createElement(Xt,{...e},f.createElement(lC,null))),"CloseButton"),xS=O.div({display:"flex",flexDirection:"column",margin:16,gap:16}),L0=O.div({display:"flex",justifyContent:"space-between",gap:16}),j0=O.div({display:"flex",flexDirection:"column",gap:4}),ES=p(e=>f.createElement(L0,null,f.createElement(j0,{...e}),f.createElement(N0,null)),"Header"),wS=O(_0)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),CS=O(R0)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),SS=O.div({display:"flex",flexDirection:"row-reverse",gap:8}),M0=O.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${yS} 300ms, ${B0} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),DS=p(({children:e,...t})=>f.createElement(M0,{...t},f.createElement("div",null,e)),"Error");function z0({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=p(s=>s.preventDefault(),"onInteractOutside"),className:o,container:i,...l}){return f.createElement(F0,{...l},f.createElement(k0,{container:i},f.createElement(A0,{asChild:!0},f.createElement(I0,null)),f.createElement(O0,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},f.createElement($0,{className:o,width:t,height:r},e))))}p(z0,"BaseModal");var FS=Object.assign(z0,P0,{Dialog:Ch}),kS=p(e=>typeof e=="number"?e:Number(e),"toNumber"),AS=O.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${qi}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${qi}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),OS=p(({col:e,row:t,outer:r,children:n,...a})=>{let o=kS(typeof r=="number"||!r?r:e||t);return f.createElement(AS,{col:e,row:t,outer:o,...a},n)},"Spaced"),_S=O.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),RS=O.div(),TS=O.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),PS=p(({children:e,...t})=>{let[r,n]=h.Children.toArray(e);return f.createElement(TS,{...t},f.createElement(_S,null,r),n&&f.createElement(RS,null,n))},"Placeholder");gs();function H0(e,t){var r=h.useRef(null),n=h.useRef(null);n.current=t;var a=h.useRef(null);h.useEffect(function(){o()});var o=h.useCallback(function(){var i=a.current,l=n.current,s=i||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return h.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),h.useCallback(function(i){a.current=i,o()},[o])}p(H0,"useResolvedElement");function Sl(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}p(Sl,"extractSize");function eu(e){e===void 0&&(e={});var t=e.onResize,r=h.useRef(void 0);r.current=t;var n=e.round||Math.round,a=h.useRef(),o=h.useState({width:void 0,height:void 0}),i=o[0],l=o[1],s=h.useRef(!1);h.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=h.useRef({width:void 0,height:void 0}),d=H0(h.useCallback(function(m){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(c){var g=c[0],b=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=Sl(g,b,"inlineSize"),v=Sl(g,b,"blockSize"),x=y?n(y):void 0,C=v?n(v):void 0;if(u.current.width!==x||u.current.height!==C){var w={width:x,height:C};u.current.width=x,u.current.height=C,r.current?r.current(w):s.current||l(w)}})}),a.current.instance.observe(m,{box:e.box}),function(){a.current&&a.current.instance.unobserve(m)}},[e.box,n]),e.ref);return h.useMemo(function(){return{ref:d,width:i.width,height:i.height}},[d,i.width,i.height])}p(eu,"useResizeObserver");var BS=O.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function U0({centered:e,scale:t,children:r}){let n=h.useRef(null),[a,o]=h.useState(0),i=h.useCallback(({height:l})=>{l&&o(l/t)},[t]);return h.useEffect(()=>{n.current&&o(n.current.getBoundingClientRect().height)},[t]),eu({ref:n,onResize:i}),f.createElement(BS,{centered:e,scale:t,elementHeight:a},f.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}p(U0,"ZoomElement");var W0=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:t}=this.props;this.iframe=t.current}shouldComponentUpdate(t){let{scale:r,active:n}=this.props;return r!==t.scale&&this.setIframeInnerZoom(t.scale),n!==t.active&&this.iframe.setAttribute("data-is-storybook",t.active?"true":"false"),t.children.props.src!==this.props.children.props.src}setIframeInnerZoom(t){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}catch{this.setIframeZoom(t)}}setIframeZoom(t){Object.assign(this.iframe.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}render(){let{children:t}=this.props;return f.createElement(f.Fragment,null,t)}};p(W0,"ZoomIFrame");var IS=W0,q0={Element:U0,IFrame:IS};const{global:$S}=__STORYBOOK_MODULE_GLOBAL__;var{document:NS}=$S,LS=O.strong(({theme:e})=>({color:e.color.orange})),jS=O.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),fd=O.em(({theme:e})=>({color:e.textMutedColor})),MS=/(Error): (.*)\n/,zS=/at (?:(.*) )?\(?(.+)\)?/,HS=/([^@]+)?(?:\/<)?@(.+)?/,US=/([^@]+)?@(.+)?/,V0=p(({error:e})=>{if(!e)return f.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return f.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
422
|
+
|
|
423
|
+
${t}`);let r=t.match(MS);if(!r)return f.createElement(h.Fragment,null,t);let[,n,a]=r,o=t.split(/\n/).slice(1),[,...i]=o.map(l=>{let s=l.match(zS)||l.match(HS)||l.match(US);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(NS.location.origin,"")}:null}).filter(Boolean);return f.createElement(h.Fragment,null,f.createElement("span",null,n),": ",f.createElement(LS,null,a),f.createElement("br",null),i.map((l,s)=>l!=null&&l.name?f.createElement(h.Fragment,{key:s}," ","at ",f.createElement(jS,null,l.name)," (",f.createElement(fd,null,l.location),")",f.createElement("br",null)):f.createElement(h.Fragment,{key:s}," ","at ",f.createElement(fd,null,l==null?void 0:l.location),f.createElement("br",null))))},"ErrorFormatter"),WS=O.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,margin:0,border:`1px solid ${H.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:H.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:H.mediumdark},"&:checked, &:indeterminate":{backgroundColor:H.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus":{outline:`1px solid ${H.secondary}`,outlineOffset:1}}),qS=p(e=>f.createElement(WS,{...e,type:"checkbox"}),"Checkbox"),VS=O.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),GS=O.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),KS=p(({label:e,children:t,...r})=>f.createElement(VS,{...r},e?f.createElement(GS,null,f.createElement("span",null,e)):null,t),"Field");bo();as();var YS=h.useLayoutEffect,XS=p(function(e){var t=f.useRef(e);return YS(function(){t.current=e}),t},"useLatest"),md=p(function(e,t){if(typeof e=="function"){e(t);return}e.current=t},"updateRef"),ZS=p(function(e,t){var r=f.useRef();return f.useCallback(function(n){e.current=n,r.current&&md(r.current,null),r.current=t,t&&md(t,n)},[t])},"useComposedRef"),gd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},JS=p(function(e){Object.keys(gd).forEach(function(t){e.style.setProperty(t,gd[t],"important")})},"forceHiddenStyles"),hd=JS,Te=null,bd=p(function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize},"getHeight");function G0(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Te||(Te=document.createElement("textarea"),Te.setAttribute("tabindex","-1"),Te.setAttribute("aria-hidden","true"),hd(Te)),Te.parentNode===null&&document.body.appendChild(Te);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(c){var g=c;Te.style[g]=i[g]}),hd(Te),Te.value=t;var s=bd(Te,e);Te.value=t,s=bd(Te,e),Te.value="x";var u=Te.scrollHeight-a,d=u*r;l==="border-box"&&(d=d+a+o),s=Math.max(d,s);var m=u*n;return l==="border-box"&&(m=m+a+o),s=Math.min(m,s),[s,u]}p(G0,"calculateNodeHeight");var yd=p(function(){},"noop"),QS=p(function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},"pick"),e2=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],t2=!!document.documentElement.currentStyle,r2=p(function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=QS(e2,t),n=r.boxSizing;if(n==="")return null;t2&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:o}},"getSizingData"),n2=r2;function No(e,t,r){var n=XS(r);h.useLayoutEffect(function(){var a=p(function(o){return n.current(o)},"handler");if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}p(No,"useListener");var a2=p(function(e,t){No(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},"useFormResetListener"),o2=p(function(e){No(window,"resize",e)},"useWindowResizeListener"),i2=p(function(e){No(document.fonts,"loadingdone",e)},"useFontsLoadedListener"),l2=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],s2=p(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,o=e.onChange,i=o===void 0?yd:o,l=e.onHeightChange,s=l===void 0?yd:l,u=vo(e,l2),d=u.value!==void 0,m=h.useRef(null),c=ZS(m,t),g=h.useRef(0),b=h.useRef(),y=p(function(){var x=m.current,C=r&&b.current?b.current:n2(x);if(C){b.current=C;var w=G0(C,x.value||x.placeholder||"x",a,n),E=w[0],S=w[1];g.current!==E&&(g.current=E,x.style.setProperty("height",E+"px","important"),s(E,{rowHeight:S}))}},"resizeTextarea"),v=p(function(x){d||y(),i(x)},"handleChange");return h.useLayoutEffect(y),a2(m,function(){if(!d){var x=m.current.value;requestAnimationFrame(function(){var C=m.current;C&&x!==C.value&&y()})}}),o2(y),i2(y),h.createElement("textarea",fe({},u,{onChange:v,ref:c}))},"TextareaAutosize"),u2=h.forwardRef(s2),c2={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},tu=p(({theme:e})=>({...c2,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),"styles"),ru=p(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),K0=p(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),nu=p(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},"validation"),d2=Object.assign(O(h.forwardRef(p(function({size:e,valid:t,align:r,...n},a){return f.createElement("input",{...n,ref:a})},"Input")))(tu,ru,K0,nu,{minHeight:32}),{displayName:"Input"}),p2=Object.assign(O(h.forwardRef(p(function({size:e,valid:t,align:r,...n},a){return f.createElement("select",{...n,ref:a})},"Select")))(tu,ru,nu,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),f2=Object.assign(O(h.forwardRef(p(function({size:e,valid:t,align:r,...n},a){return f.createElement(u2,{...n,ref:a})},"Textarea")))(tu,ru,K0,nu,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),hn=Object.assign(O.form({boxSizing:"border-box",width:"100%"}),{Field:KS,Input:d2,Select:p2,Textarea:f2,Button:er}),m2=h.lazy(()=>Promise.resolve().then(()=>(Ps(),Ts)).then(e=>({default:e.WithTooltip}))),g2=p(e=>f.createElement(h.Suspense,{fallback:f.createElement("div",null)},f.createElement(m2,{...e})),"WithTooltip"),h2=h.lazy(()=>Promise.resolve().then(()=>(Ps(),Ts)).then(e=>({default:e.WithTooltipPure}))),Y0=p(e=>f.createElement(h.Suspense,{fallback:f.createElement("div",null)},f.createElement(h2,{...e})),"WithTooltipPure"),b2=O.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),y2=O.span(),v2=O.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),x2=O.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),E2=O.div({padding:15,width:280,boxSizing:"border-box"}),w2=p(({title:e,desc:t,links:r})=>f.createElement(E2,null,f.createElement(x2,null,e&&f.createElement(b2,null,e),t&&f.createElement(y2,null,t)),r&&f.createElement(v2,null,r.map(({title:n,...a})=>f.createElement(gr,{...a,key:n},n)))),"TooltipMessage"),C2=O.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),S2=p(({note:e,...t})=>f.createElement(C2,{...t},e),"TooltipNote"),D2=Fe(yo(),1),F2=O(({active:e,loading:t,disabled:r,...n})=>f.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),k2=O.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),A2=O.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),O2=O.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),_2=O.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),R2=O.div(({theme:e})=>({width:"100%",border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),T2=(0,D2.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",href:r,...n&&{as:n,to:r}}})),P2=p(e=>{let{loading:t=!1,title:r=f.createElement("span",null,"Loading state"),center:n=null,right:a=null,active:o=!1,disabled:i=!1,isIndented:l=!1,href:s=void 0,onClick:u=void 0,icon:d,input:m,LinkWrapper:c=void 0,...g}=e,b={active:o,disabled:i},y=T2(e),v=d||m;return f.createElement(R2,{...g,...b,...y},f.createElement(f.Fragment,null,v&&f.createElement(_2,{...b},v),r||n?f.createElement(A2,{isIndented:l&&!v},r&&f.createElement(F2,{...b,loading:t},r),n&&f.createElement(O2,{...b},n)):null,a&&f.createElement(k2,{...b},a)))},"ListItem"),X0=P2,B2=O.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),I2=O.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),$2=p(({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:o,href:i}=r,l=h.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:a,title:o,href:i}),[t,e,n,a,o,i]);return f.createElement(X0,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},"Item"),Z0=p(({links:e,LinkWrapper:t,...r})=>{let n=Array.isArray(e[0])?e:[e],a=n.some(o=>o.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return f.createElement(B2,{...r},n.filter(o=>o.length).map((o,i)=>f.createElement(I2,{key:o.map(l=>l.id).join(`~${i}~`)},o.map(l=>"content"in l?f.createElement(h.Fragment,{key:l.id},l.content):f.createElement($2,{key:l.id,isIndented:a,LinkWrapper:t,...l})))))},"TooltipLinkList");gs();var Dl=O.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});Dl.displayName="Side";var N2=p(({children:e,className:t,scrollable:r})=>r?f.createElement(Gn,{vertical:!1,className:t},e):f.createElement("div",{className:t},e),"UnstyledBar"),au=O(N2)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});au.displayName="Bar";var L2=O.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),Lo=p(({children:e,backgroundColor:t,className:r,...n})=>{let[a,o]=h.Children.toArray(e);return f.createElement(au,{className:`sb-bar ${r}`,...n},f.createElement(L2,{bgColor:t},f.createElement(Dl,{scrollable:n.scrollable,left:!0},a),o?f.createElement(Dl,{right:!0},o):null))},"FlexBar");Lo.displayName="FlexBar";var j2=p(e=>typeof e.props.href=="string","isLink"),M2=p(e=>typeof e.props.href!="string","isButton");function J0({children:e,...t},r){let n={props:t,ref:r};if(j2(n))return f.createElement("a",{ref:n.ref,...n.props},e);if(M2(n))return f.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}p(J0,"ForwardRefFunction");var Q0=h.forwardRef(J0);Q0.displayName="ButtonOrLink";var sa=O(Q0,{shouldForwardProp:es})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});sa.displayName="TabButton";var z2=O.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),H2=O.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),U2=O.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),W2=O.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),jo=p(({title:e,description:t,footer:r})=>f.createElement(z2,null,f.createElement(H2,null,f.createElement(U2,null,e),t&&f.createElement(W2,null,t)),r),"EmptyTabContent"),eb=O.div(({active:e})=>e?{display:"block"}:{display:"none"}),q2=p(e=>h.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let o=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof o=="function"?o:({active:i})=>f.createElement(eb,{active:i,role:"tabpanel"},o)}}),"childrenToList");Ps();var V2=O.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),G2=O(sa)(({active:e,theme:t,preActive:r})=>`
|
|
424
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
425
|
+
.addon-collapsible-icon {
|
|
426
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
427
|
+
}
|
|
428
|
+
&:hover {
|
|
429
|
+
color: ${t.barHoverColor};
|
|
430
|
+
.addon-collapsible-icon {
|
|
431
|
+
color: ${t.barHoverColor};
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
`);function tb(e){let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:a=1}=eu({ref:t}),[o,i]=h.useState(e),[l,s]=h.useState([]),u=h.useRef(e),d=h.useCallback(({menuName:c,actions:g})=>{let b=l.some(({active:x})=>x),[y,v]=h.useState(!1);return f.createElement(f.Fragment,null,f.createElement(to,{interactive:!0,visible:y,onVisibleChange:v,placement:"bottom",delayHide:100,tooltip:f.createElement(Z0,{links:l.map(({title:x,id:C,color:w,active:E})=>({id:C,title:x,color:w,active:E,onClick:p(S=>{S.preventDefault(),g.onSelect(C)},"onClick")}))})},f.createElement(G2,{id:"addons-menu-button",ref:r,active:b,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},c,f.createElement(V2,{className:"addon-collapsible-icon",isActive:b||y}))),l.map(({title:x,id:C,color:w},E)=>{let S=`index-${E}`;return f.createElement(sa,{id:`tabbutton-${tp(C)??S}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:D=>{n.current.set(C,D)},className:"tabbutton",type:"button",key:C,textColor:w,role:"tab"},x)}))},[l]),m=h.useCallback(()=>{if(!t.current||!r.current)return;let{x:c,width:g}=t.current.getBoundingClientRect(),{width:b}=r.current.getBoundingClientRect(),y=l.length?c+g-b:c+g,v=[],x=0,C=e.filter(w=>{let{id:E}=w,S=n.current.get(E),{width:D=0}=(S==null?void 0:S.getBoundingClientRect())||{},F=c+x+D>y;return(!F||!S)&&v.push(w),x+=D,F});(v.length!==o.length||u.current!==e)&&(i(v),s(C),u.current=e)},[l.length,e,o]);return h.useLayoutEffect(m,[m,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:o,invisibleList:l,AddonTab:d}}p(tb,"useList");var K2="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Y2=O.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),ou=O.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});ou.displayName="TabBar";var X2=O.div({display:"block",position:"relative"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${K2}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Z2=p(({active:e,render:t,children:r})=>f.createElement(eb,{active:e},t?t():r),"TabWrapper"),rb=class extends h.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("Error rendering addon panel"),console.error(t),console.error(r.componentStack)}render(){return this.state.hasError&&this.props.active?f.createElement(jo,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}};p(rb,"TabErrorBoundary");var J2=rb,iu=h.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:o=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:d})=>{let m=h.useMemo(()=>q2(e).map((x,C)=>({...x,active:t?x.id===t:C===0})),[e,t]),{visibleList:c,tabBarRef:g,tabRefs:b,AddonTab:y}=tb(m),v=u??f.createElement(jo,{title:"Nothing found"});return!d&&m.length===0?v:f.createElement(Y2,{absolute:n,bordered:a,id:l},f.createElement(Lo,{scrollable:!1,border:!0,backgroundColor:i},f.createElement(ou,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},c.map(({title:x,id:C,active:w,color:E},S)=>{let D=`index-${S}`;return f.createElement(sa,{id:`tabbutton-${tp(C)??D}`,ref:F=>{b.current.set(C,F)},className:`tabbutton ${w?"tabbutton-active":""}`,type:"button",key:C,active:w,textColor:E,onClick:F=>{F.preventDefault(),r.onSelect(C)},role:"tab"},typeof x=="function"?f.createElement("title",null):x)}),f.createElement(y,{menuName:s,actions:r})),o),f.createElement(X2,{id:"panel-tab-content",bordered:a,absolute:n},m.length?m.map(({id:x,active:C,render:w})=>f.createElement(J2,{key:x,active:C},f.createElement(w,{active:C},null))):v))});iu.displayName="Tabs";var Fl=class extends h.Component{constructor(t){super(t),this.handlers={onSelect:p(r=>this.setState({selected:r}),"onSelect")},this.state={selected:t.initial}}render(){let{bordered:t=!1,absolute:r=!1,children:n,backgroundColor:a,menuName:o}=this.props,{selected:i}=this.state;return f.createElement(iu,{bordered:t,absolute:r,selected:i,backgroundColor:a,menuName:o,actions:this.handlers},n)}};p(Fl,"TabsState"),Fl.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var nb=Fl,lu=O.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});lu.displayName="Separator";var Q2=p(e=>e.reduce((t,r,n)=>r?f.createElement(h.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?f.createElement(lu,{key:`s-${n}`}):null,r.render()||r):t,null),"interleaveSeparators"),e5=p(e=>{let t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current},"usePrevious"),t5=p((e,t)=>{let r=e5(t);return e?t:r},"useUpdate"),r5=p(({active:e,children:t})=>f.createElement("div",{hidden:!e},t5(e,t)),"AddonPanel"),n5=p(({alt:e,...t})=>f.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?f.createElement("title",null,e):null,f.createElement("defs",null,f.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),f.createElement("mask",{id:"b",fill:"#fff"},f.createElement("use",{xlinkHref:"#a"})),f.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),f.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),"StorybookLogo"),a5=p(e=>f.createElement("svg",{viewBox:"0 0 64 64",...e},f.createElement("title",null,"Storybook icon"),f.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),f.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),f.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),"StorybookIcon"),o5=ft`
|
|
435
|
+
from {
|
|
436
|
+
transform: rotate(0deg);
|
|
437
|
+
}
|
|
438
|
+
to {
|
|
439
|
+
transform: rotate(360deg);
|
|
440
|
+
}
|
|
441
|
+
`,i5=O.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${o5} 0.7s linear infinite`,mixBlendMode:"difference"})),vd=O.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),l5=O.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:Je(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),s5=O.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),xd=O.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),u5=O(iC)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),c5=ft`
|
|
442
|
+
from { content: "..." }
|
|
443
|
+
33% { content: "." }
|
|
444
|
+
66% { content: ".." }
|
|
445
|
+
to { content: "..." }
|
|
446
|
+
`,d5=O.span({"&::after":{content:"'...'",animation:`${c5} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),ab=p(({progress:e,error:t,size:r,...n})=>{if(t)return f.createElement(vd,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},f.createElement(u5,null),f.createElement(xd,null,t.message));if(e){let{value:a,modules:o}=e,{message:i}=e;return o&&(i+=` ${o.complete} / ${o.total} modules`),f.createElement(vd,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},f.createElement(l5,null,f.createElement(s5,{style:{width:`${a*100}%`}})),f.createElement(xd,null,i,a<1&&f.createElement(d5,{key:i})))}return f.createElement(i5,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader"),wi="http://www.w3.org/2000/svg",p5=ft({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ed=O.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e})),Ci=O.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${p5} 1s linear infinite`,circle:{opacity:.25}}),f5=p(({percentage:e=void 0,running:t=!0,size:r=24,width:n=1.5,children:a=null,...o})=>typeof e=="number"?f.createElement(Ed,{size:r,...o},a,f.createElement(Ci,{size:r,width:n,xmlns:wi},f.createElement("circle",null)),t&&f.createElement(Ci,{size:r,width:n,xmlns:wi,spinner:!0},f.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)})),f.createElement(Ci,{size:r,width:n,xmlns:wi,progress:!0},f.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)}))):f.createElement(Ed,{size:r,...o},a),"ProgressSpinner");function ob(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]||"")}return t}p(ob,"parseQuery");var ib=p((e,t,r={})=>{let[n,a]=e.split("?"),o=a?{...ob(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(o).map(i=>`${i[0]}=${i[1]}`).join("&")}`},"getStoryHref"),m5=O.pre`
|
|
447
|
+
line-height: 18px;
|
|
448
|
+
padding: 11px 1rem;
|
|
449
|
+
white-space: pre-wrap;
|
|
450
|
+
background: rgba(0, 0, 0, 0.05);
|
|
451
|
+
color: ${H.darkest};
|
|
452
|
+
border-radius: 3px;
|
|
453
|
+
margin: 1rem 0;
|
|
454
|
+
width: 100%;
|
|
455
|
+
display: block;
|
|
456
|
+
overflow: hidden;
|
|
457
|
+
font-family: ${Ct.fonts.mono};
|
|
458
|
+
font-size: ${Ct.size.s2-1}px;
|
|
459
|
+
`,g5=p(({code:e,...t})=>f.createElement(m5,{id:"clipboard-code",...t},e),"ClipboardCode"),lb=wh,sb={};Object.keys(wh).forEach(e=>{sb[e]=h.forwardRef((t,r)=>h.createElement(e,{...t,ref:r}))});const h5=Object.freeze(Object.defineProperty({__proto__:null,A:ah,get ActionBar(){return Eo},AddonPanel:r5,Badge:oC,Bar:au,Blockquote:oh,Button:er,Checkbox:qS,ClipboardCode:g5,Code:Ns,DL:ih,Div:lh,DocumentWrapper:mC,EmptyTabContent:jo,ErrorFormatter:V0,FlexBar:Lo,Form:hn,H1:sh,H2:Ls,H3:js,H4:uh,H5:ch,H6:dh,HR:ph,IconButton:Xt,Img:fh,LI:mh,Link:gr,ListItem:X0,Loader:ab,Modal:FS,OL:gh,P:hh,Placeholder:PS,Pre:bh,ProgressSpinner:f5,ResetWrapper:$s,get ScrollArea(){return Gn},Separator:lu,Spaced:OS,Span:yh,StorybookIcon:a5,StorybookLogo:n5,SyntaxHighlighter:Ro,TT:vh,TabBar:ou,TabButton:sa,TabWrapper:Z2,Table:xh,Tabs:iu,TabsState:nb,TooltipLinkList:Z0,TooltipMessage:w2,TooltipNote:S2,UL:Eh,WithTooltip:g2,WithTooltipPure:Y0,Zoom:q0,codeCommon:Nt,components:lb,createCopyToClipboardFunction:Za,getStoryHref:ib,interleaveSeparators:Q2,nameSpaceClassNames:pe,resetComponents:sb,withReset:me},Symbol.toStringTag,{value:"Module"}));var b5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),y5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),v5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),x5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),E5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),h.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),w5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:e}))),kl=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),Z_=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),C5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),S5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),D5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),h.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),F5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),k5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),A5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),ub=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),O5=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e})));function _5(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var m,c;return(c=(m=d.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&c!==void 0?c:0})):l},[]);if(a.length){var o=new RegExp(`
|
|
460
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
461
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=l;typeof l=="string"&&l.includes(`
|
|
462
|
+
`)&&(m=String(l).split(`
|
|
463
|
+
`).map(function(c,g){return g===0?c:""+d+c}).join(`
|
|
464
|
+
`)),i+=m+n[s+1]}),i}const{deprecate:R5,once:T5,logger:su}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{NAVIGATE_URL:cb,STORY_ARGS_UPDATED:wd,UPDATE_STORY_ARGS:P5,RESET_STORY_ARGS:B5,GLOBALS_UPDATED:Cd}=__STORYBOOK_MODULE_CORE_EVENTS__,{filterArgTypes:Sd,composeConfigs:J_,Preview:Q_,DocsContext:e6}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:t6}=__STORYBOOK_MODULE_CHANNELS__;var I5=B1({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,a,o){function i(u,d){if(!a[u]){if(!n[u]){var m=typeof da=="function"&&da;if(!d&&m)return m(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var g=a[u]={exports:{}};n[u][0].call(g.exports,function(b){var y=n[u][1][b];return i(y||b)},g,g.exports,r,n,a,o)}return a[u].exports}for(var l=typeof da=="function"&&da,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(r,n,a){n.exports=function(o){if(typeof Map!="function"||o){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}o.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},o.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},o.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=o},{}],3:[function(r,n,a){var o=r("map-or-similar");n.exports=function(u){var d=new o(!1),m=[];return function(c){var g=function(){var b=d,y,v,x=arguments.length-1,C=Array(x+1),w=!0,E;if((g.numArgs||g.numArgs===0)&&g.numArgs!==x+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<x;E++){if(C[E]={cacheItem:b,arg:arguments[E]},b.has(arguments[E])){b=b.get(arguments[E]);continue}w=!1,y=new o(!1),b.set(arguments[E],y),b=y}return w&&(b.has(arguments[x])?v=b.get(arguments[x]):w=!1),w||(v=c.apply(null,arguments),b.set(arguments[x],v)),u>0&&(C[x]={cacheItem:b,arg:arguments[x]},w?i(m,C):m.push(C),m.length>u&&l(m.shift())),g.wasMemoized=w,g.numArgs=x+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=d,g.lru=m,g}};function i(u,d){var m=u.length,c=d.length,g,b,y;for(b=0;b<m;b++){for(g=!0,y=0;y<c;y++)if(!s(u[b][y].arg,d[y].arg)){g=!1;break}if(g)break}u.push(u.splice(b,1)[0])}function l(u){var d=u.length,m=u[d-1],c,g;for(m.cacheItem.delete(m.arg),g=d-2;g>=0&&(m=u[g],c=m.cacheItem.get(m.arg),!c||!c.size);g--)m.cacheItem.delete(m.arg)}function s(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function $5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zn(e,t){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Zn(e,t)}function N5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zn(e,t)}function Al(e){return Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Al(e)}function L5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function db(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(db=function(){return!!e})()}function j5(e,t,r){if(db())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&Zn(a,r.prototype),a}function Ol(e){var t=typeof Map=="function"?new Map:void 0;return Ol=function(r){if(r===null||!L5(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return j5(r,arguments,Al(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zn(n,r)},Ol(e)}var M5={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
465
|
+
|
|
466
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
467
|
+
|
|
468
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
469
|
+
|
|
470
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
471
|
+
|
|
472
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
473
|
+
|
|
474
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
475
|
+
|
|
476
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
477
|
+
|
|
478
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
479
|
+
|
|
480
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
481
|
+
|
|
482
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
483
|
+
|
|
484
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
485
|
+
|
|
486
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
487
|
+
|
|
488
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
489
|
+
|
|
490
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
491
|
+
|
|
492
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
493
|
+
|
|
494
|
+
`,16:`You must provide a template to this method.
|
|
495
|
+
|
|
496
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
497
|
+
|
|
498
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
499
|
+
|
|
500
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
501
|
+
|
|
502
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
503
|
+
|
|
504
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
505
|
+
|
|
506
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
507
|
+
|
|
508
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
509
|
+
|
|
510
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
511
|
+
|
|
512
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
513
|
+
|
|
514
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
515
|
+
|
|
516
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
517
|
+
|
|
518
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
519
|
+
|
|
520
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
521
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
522
|
+
|
|
523
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
524
|
+
|
|
525
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
526
|
+
|
|
527
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
528
|
+
|
|
529
|
+
`,36:`Property must be a string value.
|
|
530
|
+
|
|
531
|
+
`,37:`Syntax Error at %s.
|
|
532
|
+
|
|
533
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
534
|
+
|
|
535
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
536
|
+
|
|
537
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
538
|
+
|
|
539
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
540
|
+
|
|
541
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
542
|
+
|
|
543
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
544
|
+
|
|
545
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
546
|
+
|
|
547
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
548
|
+
|
|
549
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
550
|
+
|
|
551
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
552
|
+
|
|
553
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
554
|
+
|
|
555
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
556
|
+
|
|
557
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
558
|
+
|
|
559
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
560
|
+
|
|
561
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
562
|
+
|
|
563
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
564
|
+
|
|
565
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
566
|
+
|
|
567
|
+
`,55:`fontFace expects a name of a font-family.
|
|
568
|
+
|
|
569
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
570
|
+
|
|
571
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
572
|
+
|
|
573
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
574
|
+
|
|
575
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
576
|
+
|
|
577
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
578
|
+
|
|
579
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
580
|
+
|
|
581
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
582
|
+
|
|
583
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
584
|
+
|
|
585
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
586
|
+
|
|
587
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
588
|
+
|
|
589
|
+
`,67:`You must provide a template to this method.
|
|
590
|
+
|
|
591
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
592
|
+
|
|
593
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
594
|
+
|
|
595
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
596
|
+
|
|
597
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
598
|
+
|
|
599
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
600
|
+
|
|
601
|
+
`,73:`Please provide a valid CSS variable.
|
|
602
|
+
|
|
603
|
+
`,74:`CSS variable not found and no default was provided.
|
|
604
|
+
|
|
605
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
606
|
+
|
|
607
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
608
|
+
|
|
609
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
610
|
+
|
|
611
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
612
|
+
`};function z5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=[],o;for(o=1;o<t.length;o+=1)a.push(t[o]);return a.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}var St=function(e){N5(t,e);function t(r){for(var n,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return n=e.call(this,z5.apply(void 0,[M5[r]].concat(o)))||this,$5(n)}return t}(Ol(Error));function Si(e){return Math.round(e*255)}function H5(e,t,r){return Si(e)+","+Si(t)+","+Si(r)}function oo(e,t,r,n){if(n===void 0&&(n=H5),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),l=0,s=0,u=0;a>=0&&a<1?(l=o,s=i):a>=1&&a<2?(l=i,s=o):a>=2&&a<3?(s=o,u=i):a>=3&&a<4?(s=i,u=o):a>=4&&a<5?(l=i,u=o):a>=5&&a<6&&(l=o,u=i);var d=r-o/2,m=l+d,c=s+d,g=u+d;return n(m,c,g)}var Dd={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",rebeccapurple:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function U5(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Dd[t]?"#"+Dd[t]:e}var W5=/^#[a-fA-F0-9]{6}$/,q5=/^#[a-fA-F0-9]{8}$/,V5=/^#[a-fA-F0-9]{3}$/,G5=/^#[a-fA-F0-9]{4}$/,Di=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,K5=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Y5=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,X5=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function un(e){if(typeof e!="string")throw new St(3);var t=U5(e);if(t.match(W5))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(q5)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(V5))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(G5)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Di.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=K5.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=Y5.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+oo(l,s,u)+")",m=Di.exec(d);if(!m)throw new St(4,t,d);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var c=X5.exec(t.substring(0,50));if(c){var g=parseInt(""+c[1],10),b=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,v="rgb("+oo(g,b,y)+")",x=Di.exec(v);if(!x)throw new St(4,t,v);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new St(5)}function Z5(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=a-o,u=i>.5?s/(2-a-o):s/(a+o);switch(a){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function tr(e){return Z5(un(e))}var J5=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},_l=J5;function lr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Fi(e){return lr(Math.round(e*255))}function Q5(e,t,r){return _l("#"+Fi(e)+Fi(t)+Fi(r))}function pb(e,t,r){return oo(e,t,r,Q5)}function eD(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return pb(e.hue,e.saturation,e.lightness);throw new St(1)}function tD(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?pb(e.hue,e.saturation,e.lightness):"rgba("+oo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new St(2)}function fb(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return _l("#"+lr(e)+lr(t)+lr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return _l("#"+lr(e.red)+lr(e.green)+lr(e.blue));throw new St(6)}function Et(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=un(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?fb(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new St(7)}var rD=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},nD=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},aD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},oD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function rr(e){if(typeof e!="object")throw new St(8);if(nD(e))return Et(e);if(rD(e))return fb(e);if(oD(e))return tD(e);if(aD(e))return eD(e);throw new St(8)}function mb(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):mb(e,t,n)}}function Xe(e){return mb(e,e.length,[])}function iD(e,t){if(t==="transparent")return t;var r=tr(t);return rr(ze({},r,{hue:r.hue+parseFloat(e)}))}Xe(iD);function bn(e,t,r){return Math.max(e,Math.min(t,r))}function lD(e,t){if(t==="transparent")return t;var r=tr(t);return rr(ze({},r,{lightness:bn(0,1,r.lightness-parseFloat(e))}))}var sD=Xe(lD),vt=sD;function uD(e,t){if(t==="transparent")return t;var r=tr(t);return rr(ze({},r,{saturation:bn(0,1,r.saturation-parseFloat(e))}))}Xe(uD);function cD(e,t){if(t==="transparent")return t;var r=tr(t);return rr(ze({},r,{lightness:bn(0,1,r.lightness+parseFloat(e))}))}var dD=Xe(cD),sr=dD;function pD(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=un(t),a=ze({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=un(r),i=ze({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),l=a.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,m=(u/d+1)/2,c=1-m,g={red:Math.floor(a.red*m+i.red*c),green:Math.floor(a.green*m+i.green*c),blue:Math.floor(a.blue*m+i.blue*c),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Et(g)}var fD=Xe(pD),gb=fD;function mD(e,t){if(t==="transparent")return t;var r=un(t),n=typeof r.alpha=="number"?r.alpha:1,a=ze({},r,{alpha:bn(0,1,(n*100+parseFloat(e)*100)/100)});return Et(a)}var gD=Xe(mD),Ca=gD;function hD(e,t){if(t==="transparent")return t;var r=tr(t);return rr(ze({},r,{saturation:bn(0,1,r.saturation+parseFloat(e))}))}Xe(hD);function bD(e,t){return t==="transparent"?t:rr(ze({},tr(t),{hue:parseFloat(e)}))}Xe(bD);function yD(e,t){return t==="transparent"?t:rr(ze({},tr(t),{lightness:parseFloat(e)}))}Xe(yD);function vD(e,t){return t==="transparent"?t:rr(ze({},tr(t),{saturation:parseFloat(e)}))}Xe(vD);function xD(e,t){return t==="transparent"?t:gb(parseFloat(e),"rgb(0, 0, 0)",t)}Xe(xD);function ED(e,t){return t==="transparent"?t:gb(parseFloat(e),"rgb(255, 255, 255)",t)}Xe(ED);function wD(e,t){if(t==="transparent")return t;var r=un(t),n=typeof r.alpha=="number"?r.alpha:1,a=ze({},r,{alpha:bn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Et(a)}var CD=Xe(wD),ce=CD,SD=O.div(me,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ce(.3,e.color.defaultText),fontSize:e.typography.size.s2})),hb=e=>f.createElement(SD,{...e,className:"docblock-emptyblock sb-unstyled"}),DD=O(Ro)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),FD=O.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Sa=O.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${qi}`]:{margin:0}})),kD=()=>f.createElement(FD,null,f.createElement(Sa,null),f.createElement(Sa,{style:{width:"80%"}}),f.createElement(Sa,{style:{width:"30%"}}),f.createElement(Sa,{style:{width:"80%"}})),bb=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!0,...i})=>{let{typography:l}=Lp();if(e)return f.createElement(kD,null);if(t)return f.createElement(hb,null,t);let s=f.createElement(DD,{bordered:!0,copyable:!0,format:o,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return s;let u=a?Ui.dark:Ui.light;return f.createElement(jp,{theme:Wi({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},xe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,uu=600,AD=O.h1(me,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${uu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),OD=O.h2(me,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${uu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ce(.25,e.color.defaultText)})),_D=O.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ce(.1,e.color.defaultText):ce(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[xe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[xe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[xe("div")]:t,[xe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[xe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[xe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[xe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[xe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[xe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[xe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[xe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[xe("img")]:{maxWidth:"100%"},[xe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[xe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[xe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[xe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[xe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[xe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[xe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),RD=O.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${uu}px)`]:{}})),TD=({children:e,toc:t})=>f.createElement(RD,{className:"sbdocs sbdocs-wrapper"},t,f.createElement(_D,{className:"sbdocs sbdocs-content"},e)),Mo=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:PD}=globalThis,BD=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=PD.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return f.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},yb=h.createContext({scale:1}),{PREVIEW_URL:ID}=globalThis,$D=ID||"iframe.html",Rl=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,ND=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[a,o]=h.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:d}=e;return h.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,c=d(i,m,{showMain:()=>{},showError:({title:g,description:b})=>o(new Error(`${g} - ${b}`)),showException:g=>o(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>c())}},[s,d,i]),a?f.createElement("pre",null,f.createElement(V0,{error:a})):f.createElement(f.Fragment,null,l?f.createElement("style",null,`#${Rl(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&f.createElement(vb,null),f.createElement("div",{ref:t,id:`${Rl(e)}-inner`,"data-name":i.name}))},LD=({story:e,height:t="500px"})=>f.createElement("div",{style:{width:"100%",height:t}},f.createElement(yb.Consumer,null,({scale:r})=>f.createElement(BD,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:ib($D,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),jD=O.strong(({theme:e})=>({color:e.color.orange})),MD=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?f.createElement(jD,null,"This story mounts inside of play. Set"," ",f.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):f.createElement("div",{id:Rl(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?f.createElement(ND,{...e}):f.createElement(LD,{...e}))},vb=()=>f.createElement(ab,null),zD=O(Lo)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),HD=O.div({display:"flex",alignItems:"center",gap:4}),UD=O.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),WD=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>f.createElement(zD,{...o},f.createElement(HD,{key:"left"},e?[1,2,3].map(i=>f.createElement(UD,{key:i})):f.createElement(f.Fragment,null,f.createElement(Xt,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},f.createElement(b5,null)),f.createElement(Xt,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},f.createElement(y5,null)),f.createElement(Xt,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},f.createElement(v5,null))))),qD=O.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Fd=O(bb)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":vt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":vt(.05,e.background.content)}})),VD=O.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Mo(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),GD=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:f.createElement(Fd,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:f.createElement(Fd,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function KD(e){if(h.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var YD=O(WD)({position:"absolute",top:0,left:0,right:0,height:40}),XD=O.div({overflow:"hidden",position:"relative"}),xb=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:d=!1,...m})=>{let[c,g]=h.useState(i),{source:b,actionItem:y}=GD(a,c,g),[v,x]=h.useState(1),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=a?[y]:[],[E,S]=h.useState(l?[...l]:[]),D=[...w,...E],{window:F}=globalThis,k=h.useCallback(async A=>{let{createCopyToClipboardFunction:_}=await Qd(()=>Promise.resolve().then(()=>h5),void 0,import.meta.url);_()},[]),T=A=>{let _=F.getSelection();_&&_.type==="Range"||(A.preventDefault(),E.filter(B=>B.title==="Copied").length===0&&k((b==null?void 0:b.props.code)??"").then(()=>{S([...E,{title:"Copied",onClick:()=>{}}]),F.setTimeout(()=>S(E.filter(B=>B.title!=="Copied")),1500)}))};return f.createElement(VD,{withSource:a,withToolbar:o,...m,className:C.join(" ")},o&&f.createElement(YD,{isLoading:e,border:!0,zoom:A=>x(v*A),resetZoom:()=>x(1),storyId:KD(n),baseUrl:"./iframe.html"}),f.createElement(yb.Provider,{value:{scale:v}},f.createElement(XD,{className:"docs-story",onCopyCapture:a&&T},f.createElement(qD,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:d},f.createElement(q0.Element,{centered:u==="centered",scale:d?v:1},Array.isArray(n)?n.map((A,_)=>f.createElement("div",{key:_},A)):f.createElement("div",null,n))),f.createElement(Eo,{actionItems:D}))),a&&c&&b)};O(xb)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var ZD=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?f.createElement(Ll,{...r[0][1],...t}):f.createElement(nb,null,r.map((n,a)=>{let[o,i]=n,l=`prop_table_div_${o}`,s="div",u=a===0?t:{sort:t.sort};return f.createElement(s,{key:l,id:l,title:o},({active:d})=>d?f.createElement(Ll,{key:`prop_table_${o}`,...i,...u}):null)}))};O.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ce(.4,e.color.defaultText):ce(.6,e.color.defaultText)}));O.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});O.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});O.div(me,({theme:e})=>({...Mo(e),margin:"25px 0 40px",padding:"30px 20px"}));O.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));O.div(({theme:e})=>({color:e.base==="light"?ce(.2,e.color.defaultText):ce(.6,e.color.defaultText)}));O.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});O.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ce(.4,e.color.defaultText):ce(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));O.div({display:"flex",flexDirection:"row"});O.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));O.div(({theme:e})=>({...Mo(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));O.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});O.div({flex:1,display:"flex",flexDirection:"row"});O.div({display:"flex",alignItems:"flex-start"});O.div({flex:"0 0 30%"});O.div({flex:1});O.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ce(.4,e.color.defaultText):ce(.6,e.color.defaultText)}));O.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));O.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));O.div(({theme:e})=>({...Mo(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));O.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});O.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});function JD(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",o,i=!0,l=0;function s(A,_){let B=_.appendChild(d(A));if(A.children.length){let I=m(A.isCollapsed);A.children.forEach(z=>{s(z,I)}),B.appendChild(I)}}function u(A,_){let B=m(!1);if(_.forEach(I=>{s(I,B)}),o=A||o,o!==null)return o.firstChild&&o.removeChild(o.firstChild),_.length===0?o:o.appendChild(B)}function d(A){let _=document.createElement("li"),B=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(B.onclick=e.onClick),e.includeTitleTags&&B.setAttribute("title",A.textContent),e.includeHtml&&A.childNodes.length?t.call(A.childNodes,I=>{B.appendChild(I.cloneNode(!0))}):B.textContent=A.textContent,B.setAttribute("href",`${e.basePath}#${A.id}`),B.setAttribute("class",`${e.linkClass+a}node-name--${A.nodeName}${a}${e.extraLinkClasses}`),_.appendChild(B),_}function m(A){let _=e.orderedList?"ol":"ul",B=document.createElement(_),I=e.listClass+a+e.extraListClasses;return A&&(I=I+a+e.collapsibleClass,I=I+a+e.isCollapsedClass),B.setAttribute("class",I),B}function c(){let A=F(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=o.offsetTop),A>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=a+e.positionFixedClass):_.className=_.className.replace(a+e.positionFixedClass,"")}function g(A){let _=0;return A!==null&&(_=A.offsetTop,e.hasInnerContainers&&(_+=g(A.offsetParent))),_}function b(A,_){return A&&A.className!==_&&(A.className=_),A}function y(A,_){var M,U;e.positionFixedSelector&&c();let B=A,I=(M=_==null?void 0:_.target)!=null&&M.getAttribute?(U=_==null?void 0:_.target)==null?void 0:U.getAttribute("href"):null,z=I&&I.charAt(0)==="#"?E(I.replace("#","")):!1,N=i||z;if(_&&l<5&&l++,N&&o&&B.length>0){let K=k(B),W=o.querySelector(`.${e.activeLinkClass}`),q=K.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),Q=window.location.hash.replace("#",""),oe=q,ae=S();I&&z?oe=I.replace("#",""):Q&&Q!==q&&ae&&(E(q)||l<=2)&&(oe=Q);let Z=o.querySelector(`.${e.linkClass}[href="${e.basePath}#${oe}"]`);if(W===Z)return;let j=o.querySelectorAll(`.${e.linkClass}`);t.call(j,ie=>{b(ie,ie.className.replace(a+e.activeLinkClass,""))});let J=o.querySelectorAll(`.${e.listItemClass}`);t.call(J,ie=>{b(ie,ie.className.replace(a+e.activeListItemClass,""))}),Z&&Z.className.indexOf(e.activeLinkClass)===-1&&(Z.className+=a+e.activeLinkClass);let ee=Z==null?void 0:Z.parentNode;ee&&ee.className.indexOf(e.activeListItemClass)===-1&&(ee.className+=a+e.activeListItemClass);let ue=o.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ue,ie=>{ie.className.indexOf(e.isCollapsedClass)===-1&&(ie.className+=a+e.isCollapsedClass)}),Z!=null&&Z.nextSibling&&Z.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&b(Z.nextSibling,Z.nextSibling.className.replace(a+e.isCollapsedClass,"")),v(Z==null?void 0:Z.parentNode.parentNode)}}function v(A){return A&&A.className.indexOf(e.collapsibleClass)!==-1&&A.className.indexOf(e.isCollapsedClass)!==-1?(b(A,A.className.replace(a+e.isCollapsedClass,"")),v(A.parentNode.parentNode)):A}function x(A){let _=A.target||A.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function C(){i=!0}function w(){return i}function E(A){let _=D();return(document==null?void 0:document.getElementById(A)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function S(){let A=D(),_=A.scrollHeight>A.clientHeight,B=F()+A.clientHeight>A.offsetHeight-e.bottomModeThreshold;return _&&B}function D(){let A;return e.scrollContainer&&document.querySelector(e.scrollContainer)?A=document.querySelector(e.scrollContainer):A=document.documentElement||n,A}function F(){var A;return((A=D())==null?void 0:A.scrollTop)||0}function k(A,_=F()){let B;return r.call(A,(I,z)=>{if(g(I)>_+e.headingsOffset+10){let N=z===0?z:z-1;return B=A[N],!0}if(z===A.length-1)return B=A[A.length-1],!0}),B}function T(A){let _=F(),B=k(A,_),I=S();if((!B||_<5)&&!I)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(B&&!I){let z=`#${B.id}`;window.location.hash!==z&&window.history.pushState(null,null,z)}}return{enableTocAnimation:C,disableTocAnimation:x,render:u,updateToc:y,getCurrentlyHighlighting:w,getTopHeader:k,getScrollTop:F,updateUrlHashForHeader:T}}var QD={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function eF(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function a(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function o(u){if(!a(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let d=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),m={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:d};return e.includeHtml&&(m.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(m,u):m}function i(u,d){let m=o(u),c=m.headingLevel,g=d,b=r(g),y=b?b.headingLevel:0,v=c-y;for(;v>0&&(b=r(g),!(b&&c===b.headingLevel));)b&&b.children!==void 0&&(g=b.children),v--;return c>=e.collapseDepth&&(m.isCollapsed=!0),g.push(m),g}function l(u,d){let m=d;e.ignoreSelector&&(m=d.split(",").map(function(c){return`${c.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(m)}catch{return console.warn(`Headers not found with selector: ${m}`),null}}function s(u){return t.call(u,function(d,m){let c=o(m);return c&&i(c,d.nest),d},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function tF(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(u){!o(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||rF(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function o(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function rF(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||m},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),o=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(o):n.duration,l,s;requestAnimationFrame(function(c){l=c,u(c)});function u(c){s=c-l,window.scrollTo(0,n.easing(s,r,o,i)),s<i?requestAnimationFrame(u):d()}function d(){window.scrollTo(0,r+o),typeof n.callback=="function"&&n.callback()}function m(c,g,b,y){return c/=y/2,c<1?b/2*c*c+g:(c--,-b/2*(c*(c-2)-1)+g)}}function nF(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var Y={},ot,ki,ir,it,qn;function Eb(e){let t=!1;Y=iF(QD,e||{}),Y.scrollSmooth&&(Y.duration=Y.scrollSmoothDuration,Y.offset=Y.scrollSmoothOffset,tF(Y)),ot=JD(Y),ki=eF(Y),cu();let r=sF(Y);if(r===null)return;let n=wb(Y);if(n===null||(ir=ki.selectHeadings(r,Y.headingSelector),ir===null))return;let a=ki.nestHeadingsArray(ir).nest;if(!Y.skipRendering)ot.render(n,a);else return this;let o=!1,i=Y.scrollHandlerTimeout||Y.throttleTimeout;it=((s,u)=>lF(s,u,Y.scrollHandlerType))(s=>{var d,m,c;ot.updateToc(ir,s),!Y.disableTocScrollSync&&!o&&nF(Y),Y.enableUrlHashUpdateOnScroll&&t&&ot.getCurrentlyHighlighting()&&ot.updateUrlHashForHeader(ir);let u=((m=(d=s==null?void 0:s.target)==null?void 0:d.scrollingElement)==null?void 0:m.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(ot.updateToc(ir),(c=Y.scrollEndCallback)==null||c.call(Y,s))},i),t||(it(),t=!0),window.onhashchange=window.onscrollend=s=>{it(s)},Y.scrollContainer&&document.querySelector(Y.scrollContainer)?(document.querySelector(Y.scrollContainer).addEventListener("scroll",it,!1),document.querySelector(Y.scrollContainer).addEventListener("resize",it,!1)):(document.addEventListener("scroll",it,!1),document.addEventListener("resize",it,!1));let l=null;qn=Tl(s=>{o=!0,Y.scrollSmooth&&ot.disableTocAnimation(s),ot.updateToc(ir,s),l&&clearTimeout(l),l=setTimeout(()=>{ot.enableTocAnimation()},Y.scrollSmoothDuration),setTimeout(()=>{o=!1},Y.scrollSmoothDuration+100)},Y.throttleTimeout),Y.scrollContainer&&document.querySelector(Y.scrollContainer)?document.querySelector(Y.scrollContainer).addEventListener("click",qn,!1):document.addEventListener("click",qn,!1)}function cu(){let e=wb(Y);e!==null&&(Y.skipRendering||e&&(e.innerHTML=""),Y.scrollContainer&&document.querySelector(Y.scrollContainer)?(document.querySelector(Y.scrollContainer).removeEventListener("scroll",it,!1),document.querySelector(Y.scrollContainer).removeEventListener("resize",it,!1),ot&&document.querySelector(Y.scrollContainer).removeEventListener("click",qn,!1)):(document.removeEventListener("scroll",it,!1),document.removeEventListener("resize",it,!1),ot&&document.removeEventListener("click",qn,!1)))}function aF(e){cu(),Eb(e||Y)}var oF=Object.prototype.hasOwnProperty;function iF(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)oF.call(n,a)&&(t[a]=n[a])}return t}function Tl(e,t,r){t||(t=250);let n,a;return function(...o){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(a),a=setTimeout(()=>{n=l,e.apply(i,o)},t)):(n=l,e.apply(i,o))}}function kd(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function lF(e,t,r="auto"){switch(r){case"debounce":return kd(e,t);case"throttle":return Tl(e,t);default:return t<334?kd(e,t):Tl(e,t)}}function sF(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function wb(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var uF={destroy:cu,init:Eb,refresh:aF},Ad=uF,cF=O.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),dF=O.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),pF=O.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),fF=({headingId:e,title:t})=>typeof t=="string"||!t?f.createElement(pF,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):f.createElement("div",{id:e},t),mF=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o,channel:i,className:l})=>{h.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:m=>{if(m.preventDefault(),m.currentTarget instanceof HTMLAnchorElement){let[,c]=m.currentTarget.href.split("#");c&&i.emit(cb,`#${c}`)}},...o},d=setTimeout(()=>Ad.init(u),100);return()=>{clearTimeout(d),Ad.destroy()}},[i,t,a,n,r,o]);let s=h.useId();return f.createElement(cF,{className:l},t?null:f.createElement(dF,{"aria-labelledby":s},f.createElement(fF,{headingId:s,title:e}),f.createElement("div",{className:"toc-wrapper"})))};function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}var gF=["children","options"],V={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"},Od;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Od||(Od={}));var _d=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Rd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},hF=["style","script"],bF=["src","href","data","formAction","srcDoc","action"],yF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,vF=/mailto:/i,xF=/\n{2,}$/,Cb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,EF=/^ *> ?/gm,wF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,CF=/^ {2,}\n/,SF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Sb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Db=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,DF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,FF=/^(?:\n *)*\n/,kF=/\r\n?/g,AF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,OF=/^\[\^([^\]]+)]/,_F=/\f/g,RF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,TF=/^\s*?\[(x|\s)\]/,Fb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,kb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ab=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Pl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,PF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ob=/^<!--[\s\S]*?(?:-->)/,BF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Bl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,IF=/^\{.*\}$/,$F=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,NF=/^<([^ >]+@[^ >]+)>/,LF=/^<([^ >]+:\/[^ >]+)>/,jF=/-([a-z])?/gi,_b=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,MF=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,zF=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,HF=/^\[([^\]]*)\] ?\[([^\]]*)\]/,UF=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,WF=/\t/g,qF=/(^ *\||\| *$)/g,VF=/^ *:-+: *$/,GF=/^ *:-+ *$/,KF=/^ *-+: *$/,zo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",YF=new RegExp(`^([*_])\\1${zo}\\1\\1(?!\\1)`),XF=new RegExp(`^([*_])${zo}\\1(?!\\1)`),ZF=new RegExp(`^(==)${zo}\\1`),JF=new RegExp(`^(~~)${zo}\\1`),QF=/^\\([^0-9A-Za-z\s])/,Td=/\\([^0-9A-Za-z\s])/g,ek=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,tk=/^\n+/,rk=/^([ \t]*)/,nk=/\\([^\\])/g,ak=/(?:^|\n)( *)$/,du="(?:\\d+\\.)",pu="(?:[*+-])";function Rb(e){return"( *)("+(e===1?du:pu)+") +"}var Tb=Rb(1),Pb=Rb(2);function Bb(e){return new RegExp("^"+(e===1?Tb:Pb))}var ok=Bb(1),ik=Bb(2);function Ib(e){return new RegExp("^"+(e===1?Tb:Pb)+"[^\\n]*(?:\\n(?!\\1"+(e===1?du:pu)+" )[^\\n]*)*(\\n|$)","gm")}var lk=Ib(1),sk=Ib(2);function $b(e){let t=e===1?du:pu;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var Nb=$b(1),Lb=$b(2);function Pd(e,t){let r=t===1,n=r?Nb:Lb,a=r?lk:sk,o=r?ok:ik;return{match:cn(function(i,l){let s=ak.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),order:1,parse(i,l,s){let u=r?+i[2]:void 0,d=i[0].replace(xF,`
|
|
613
|
+
`).match(a),m=!1;return{items:d.map(function(c,g){let b=o.exec(c)[0].length,y=new RegExp("^ {1,"+b+"}","gm"),v=c.replace(y,"").replace(o,""),x=g===d.length-1,C=v.indexOf(`
|
|
614
|
+
|
|
615
|
+
`)!==-1||x&&m;m=C;let w=s.inline,E=s.list,S;s.list=!0,C?(s.inline=!1,S=Jn(v)+`
|
|
616
|
+
|
|
617
|
+
`):(s.inline=!0,S=Jn(v));let D=l(S,s);return s.inline=w,s.list=E,D}),ordered:r,start:u}},render:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type===V.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},l(u,s))}))}}var uk=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),ck=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,jb=[Cb,Sb,Db,Fb,Ab,kb,_b,Nb,Lb],dk=[...jb,/^[^\n]+(?: \n|\n{2,})/,Pl,Ob,Bl];function Jn(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function _n(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function pk(e){return KF.test(e)?"right":VF.test(e)?"center":GF.test(e)?"left":null}function Bd(e,t,r,n){let a=r.inTable;r.inTable=!0;let o=[[]],i="";function l(){if(!i)return;let s=o[o.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,d)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==d.length-1&&o.push([]):i+=s}),l(),r.inTable=a,o}function fk(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(qF,"").split("|").map(pk):[],a=e[3]?function(i,l,s){return i.trim().split(`
|
|
618
|
+
`).map(function(u){return Bd(u,l,s,!0)})}(e[3],t,r):[],o=Bd(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:n,cells:a,header:o,type:V.table}:{children:o,type:V.paragraph}}function Id(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function cn(e){return e.inline=1,e}function Mt(e){return cn(function(t,r){return r.inline?e.exec(t):null})}function zt(e){return cn(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Ot(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Rn(e){return cn(function(t){return e.exec(t)})}function mk(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
|
|
619
|
+
`).every(a=>(a+=`
|
|
620
|
+
`,!jb.some(o=>o.test(a))&&(r+=a,!!a.trim())));let n=Jn(r);return n==""?null:[r,,n]}var gk=/(javascript|vbscript|data(?!:image)):/i;function hk(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(gk.test(t))return null}catch{return null}return e}function $d(e){return e.replace(nk,"$1")}function La(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function bk(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function yk(e,t,r){let n=r.inline||!1;r.inline=!1;let a=e(t,r);return r.inline=n,a}var Ai=(e,t,r)=>({children:La(t,e[2],r)});function Oi(){return{}}function _i(){return null}function vk(...e){return e.filter(Boolean).join(" ")}function Ri(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}function xk(e="",t={}){function r(c,g,...b){let y=Ri(t.overrides,`${c}.props`,{});return t.createElement(function(v,x){let C=Ri(x,v);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Ri(x,`${v}.component`,v):v}(c,t.overrides),cr({},g,y,{className:vk(g==null?void 0:g.className,y.className)||void 0}),...b)}function n(c){c=c.replace(RF,"");let g=!1;t.forceInline?g=!0:t.forceBlock||(g=UF.test(c)===!1);let b=u(s(g?c:`${Jn(c).replace(tk,"")}
|
|
621
|
+
|
|
622
|
+
`,{inline:g}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;let y=t.wrapper||(g?"span":"div"),v;if(b.length>1||t.forceWrapper)v=b;else{if(b.length===1)return v=b[0],typeof v=="string"?r("span",{key:"outer"},v):v;v=null}return t.createElement(y,{key:"outer"},v)}function a(c,g){let b=g.match(yF);return b?b.reduce(function(y,v){let x=v.indexOf("=");if(x!==-1){let C=function(D){return D.indexOf("-")!==-1&&D.match(BF)===null&&(D=D.replace(jF,function(F,k){return k.toUpperCase()})),D}(v.slice(0,x)).trim(),w=function(D){let F=D[0];return(F==='"'||F==="'")&&D.length>=2&&D[D.length-1]===F?D.slice(1,-1):D}(v.slice(x+1).trim()),E=_d[C]||C;if(E==="ref")return y;let S=y[E]=function(D,F,k,T){return F==="style"?function(A){let _=[],B="",I=!1,z=!1,N="";if(!A)return _;for(let U=0;U<A.length;U++){let K=A[U];if(K!=='"'&&K!=="'"||I||(z?K===N&&(z=!1,N=""):(z=!0,N=K)),K==="("&&B.endsWith("url")?I=!0:K===")"&&I&&(I=!1),K!==";"||z||I)B+=K;else{let W=B.trim();if(W){let q=W.indexOf(":");if(q>0){let Q=W.slice(0,q).trim(),oe=W.slice(q+1).trim();_.push([Q,oe])}}B=""}}let M=B.trim();if(M){let U=M.indexOf(":");if(U>0){let K=M.slice(0,U).trim(),W=M.slice(U+1).trim();_.push([K,W])}}return _}(k).reduce(function(A,[_,B]){return A[_.replace(/(-[a-z])/g,I=>I[1].toUpperCase())]=T(B,D,_),A},{}):bF.indexOf(F)!==-1?T(k,D,F):(k.match(IF)&&(k=k.slice(1,k.length-1)),k==="true"||k!=="false"&&k)}(c,C,w,t.sanitizer);typeof S=="string"&&(Pl.test(S)||Bl.test(S))&&(y[E]=n(S.trim()))}else v!=="style"&&(y[_d[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||hk,t.slugify=t.slugify||_n,t.namedCodesToUnicode=t.namedCodesToUnicode?cr({},Rd,t.namedCodesToUnicode):Rd,t.createElement=t.createElement||h.createElement;let o=[],i={},l={[V.blockQuote]:{match:Ot(Cb),order:1,parse(c,g,b){let[,y,v]=c[0].replace(EF,"").match(wF);return{alert:y,children:g(v,b)}},render(c,g,b){let y={key:b.key};return c.alert&&(y.className="markdown-alert-"+t.slugify(c.alert.toLowerCase(),_n),c.children.unshift({attrs:{},children:[{type:V.text,text:c.alert}],noInnerParse:!0,type:V.htmlBlock,tag:"header"})),r("blockquote",y,g(c.children,b))}},[V.breakLine]:{match:Rn(CF),order:1,parse:Oi,render:(c,g,b)=>r("br",{key:b.key})},[V.breakThematic]:{match:Ot(SF),order:1,parse:Oi,render:(c,g,b)=>r("hr",{key:b.key})},[V.codeBlock]:{match:Ot(Db),order:0,parse:c=>({lang:void 0,text:Jn(c[0].replace(/^ {4}/gm,"")).replace(Td,"$1")}),render:(c,g,b)=>r("pre",{key:b.key},r("code",cr({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[V.codeFenced]:{match:Ot(Sb),order:0,parse:c=>({attrs:a("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:V.codeBlock})},[V.codeInline]:{match:zt(DF),order:3,parse:c=>({text:c[2].replace(Td,"$1")}),render:(c,g,b)=>r("code",{key:b.key},c.text)},[V.footnote]:{match:Ot(AF),order:0,parse:c=>(o.push({footnote:c[2],identifier:c[1]}),{}),render:_i},[V.footnoteReference]:{match:Mt(OF),order:1,parse:c=>({target:`#${t.slugify(c[1],_n)}`,text:c[1]}),render:(c,g,b)=>r("a",{key:b.key,href:t.sanitizer(c.target,"a","href")},r("sup",{key:b.key},c.text))},[V.gfmTask]:{match:Mt(TF),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,g,b)=>r("input",{checked:c.completed,key:b.key,readOnly:!0,type:"checkbox"})},[V.heading]:{match:Ot(t.enforceAtxHeadings?kb:Fb),order:1,parse:(c,g,b)=>({children:La(g,c[2],b),id:t.slugify(c[2],_n),level:c[1].length}),render:(c,g,b)=>r(`h${c.level}`,{id:c.id,key:b.key},g(c.children,b))},[V.headingSetext]:{match:Ot(Ab),order:0,parse:(c,g,b)=>({children:La(g,c[1],b),level:c[2]==="="?1:2,type:V.heading})},[V.htmlBlock]:{match:Rn(Pl),order:1,parse(c,g,b){let[,y]=c[3].match(rk),v=new RegExp(`^${y}`,"gm"),x=c[3].replace(v,""),C=(w=x,dk.some(k=>k.test(w))?yk:La);var w;let E=c[1].toLowerCase(),S=hF.indexOf(E)!==-1,D=(S?E:c[1]).trim(),F={attrs:a(D,c[2]),noInnerParse:S,tag:D};return b.inAnchor=b.inAnchor||E==="a",S?F.text=c[3]:F.children=C(g,x,b),b.inAnchor=!1,F},render:(c,g,b)=>r(c.tag,cr({key:b.key},c.attrs),c.text||(c.children?g(c.children,b):""))},[V.htmlSelfClosing]:{match:Rn(Bl),order:1,parse(c){let g=c[1].trim();return{attrs:a(g,c[2]||""),tag:g}},render:(c,g,b)=>r(c.tag,cr({},c.attrs,{key:b.key}))},[V.htmlComment]:{match:Rn(Ob),order:1,parse:()=>({}),render:_i},[V.image]:{match:zt(ck),order:1,parse:c=>({alt:c[1],target:$d(c[2]),title:c[3]}),render:(c,g,b)=>r("img",{key:b.key,alt:c.alt||void 0,title:c.title||void 0,src:t.sanitizer(c.target,"img","src")})},[V.link]:{match:Mt(uk),order:3,parse:(c,g,b)=>({children:bk(g,c[1],b),target:$d(c[2]),title:c[3]}),render:(c,g,b)=>r("a",{key:b.key,href:t.sanitizer(c.target,"a","href"),title:c.title},g(c.children,b))},[V.linkAngleBraceStyleDetector]:{match:Mt(LF),order:0,parse:c=>({children:[{text:c[1],type:V.text}],target:c[1],type:V.link})},[V.linkBareUrlDetector]:{match:cn((c,g)=>g.inAnchor||t.disableAutoLink?null:Mt($F)(c,g)),order:0,parse:c=>({children:[{text:c[1],type:V.text}],target:c[1],title:void 0,type:V.link})},[V.linkMailtoDetector]:{match:Mt(NF),order:0,parse(c){let g=c[1],b=c[1];return vF.test(b)||(b="mailto:"+b),{children:[{text:g.replace("mailto:",""),type:V.text}],target:b,type:V.link}}},[V.orderedList]:Pd(r,1),[V.unorderedList]:Pd(r,2),[V.newlineCoalescer]:{match:Ot(FF),order:3,parse:Oi,render:()=>`
|
|
623
|
+
`},[V.paragraph]:{match:cn(mk),order:3,parse:Ai,render:(c,g,b)=>r("p",{key:b.key},g(c.children,b))},[V.ref]:{match:Mt(MF),order:0,parse:c=>(i[c[1]]={target:c[2],title:c[4]},{}),render:_i},[V.refImage]:{match:zt(zF),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,g,b)=>i[c.ref]?r("img",{key:b.key,alt:c.alt,src:t.sanitizer(i[c.ref].target,"img","src"),title:i[c.ref].title}):null},[V.refLink]:{match:Mt(HF),order:0,parse:(c,g,b)=>({children:g(c[1],b),fallbackChildren:c[0],ref:c[2]}),render:(c,g,b)=>i[c.ref]?r("a",{key:b.key,href:t.sanitizer(i[c.ref].target,"a","href"),title:i[c.ref].title},g(c.children,b)):r("span",{key:b.key},c.fallbackChildren)},[V.table]:{match:Ot(_b),order:1,parse:fk,render(c,g,b){let y=c;return r("table",{key:b.key},r("thead",null,r("tr",null,y.header.map(function(v,x){return r("th",{key:x,style:Id(y,x)},g(v,b))}))),r("tbody",null,y.cells.map(function(v,x){return r("tr",{key:x},v.map(function(C,w){return r("td",{key:w,style:Id(y,w)},g(C,b))}))})))}},[V.text]:{match:Rn(ek),order:4,parse:c=>({text:c[0].replace(PF,(g,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:g)}),render:c=>c.text},[V.textBolded]:{match:zt(YF),order:2,parse:(c,g,b)=>({children:g(c[2],b)}),render:(c,g,b)=>r("strong",{key:b.key},g(c.children,b))},[V.textEmphasized]:{match:zt(XF),order:3,parse:(c,g,b)=>({children:g(c[2],b)}),render:(c,g,b)=>r("em",{key:b.key},g(c.children,b))},[V.textEscaped]:{match:zt(QF),order:1,parse:c=>({text:c[1],type:V.text})},[V.textMarked]:{match:zt(ZF),order:3,parse:Ai,render:(c,g,b)=>r("mark",{key:b.key},g(c.children,b))},[V.textStrikethroughed]:{match:zt(JF),order:3,parse:Ai,render:(c,g,b)=>r("del",{key:b.key},g(c.children,b))}};t.disableParsingRawHTML===!0&&(delete l[V.htmlBlock],delete l[V.htmlSelfClosing]);let s=function(c){let g=Object.keys(c);function b(y,v){let x,C,w=[],E="",S="";for(v.prevCapture=v.prevCapture||"";y;){let D=0;for(;D<g.length;){if(E=g[D],x=c[E],v.inline&&!x.match.inline){D++;continue}let F=x.match(y,v);if(F){S=F[0],v.prevCapture+=S,y=y.substring(S.length),C=x.parse(F,b,v),C.type==null&&(C.type=E),w.push(C);break}D++}}return v.prevCapture="",w}return g.sort(function(y,v){let x=c[y].order,C=c[v].order;return x!==C?x-C:y<v?-1:1}),function(y,v){return b(function(x){return x.replace(kF,`
|
|
624
|
+
`).replace(_F,"").replace(WF," ")}(y),v)}}(l),u=(d=function(c,g){return function(b,y,v){let x=c[b.type].render;return g?g(()=>x(b,y,v),b,y,v):x(b,y,v)}}(l,t.renderRule),function c(g,b={}){if(Array.isArray(g)){let y=b.key,v=[],x=!1;for(let C=0;C<g.length;C++){b.key=C;let w=c(g[C],b),E=typeof w=="string";E&&x?v[v.length-1]+=w:w!==null&&v.push(w),x=E}return b.key=y,v}return d(g,c,b)});var d;let m=n(e);return o.length?r("div",null,m,r("footer",{key:"footer"},o.map(function(c){return r("div",{id:t.slugify(c.identifier,_n),key:c.identifier},c.identifier,u(s(c.footnote,{inline:!0})))}))):m}var Mb=e=>{let{children:t="",options:r}=e,n=function(a,o){if(a==null)return{};var i,l,s={},u=Object.keys(a);for(l=0;l<u.length;l++)o.indexOf(i=u[l])>=0||(s[i]=a[i]);return s}(e,gF);return h.cloneElement(xk(t,r),n)},Ek=O.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ce(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Ca(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Ca(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Ca(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Ca(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),wk=e=>e==="true",Ck=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var d;let i=h.useCallback(()=>r(!1),[r]),l=!!((d=o==null?void 0:o.table)!=null&&d.readonly);if(t===void 0)return f.createElement(er,{variant:"outline",size:"medium",id:io(e),onClick:i,disabled:l},"Set boolean");let s=pt(e),u=typeof t=="string"?wk(t):t;return f.createElement(Ek,{"aria-disabled":l,htmlFor:s,"aria-label":e},f.createElement("input",{id:s,type:"checkbox",onChange:m=>r(m.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:a}),f.createElement("span",{"aria-hidden":"true"},"False"),f.createElement("span",{"aria-hidden":"true"},"True"))},Sk=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},Dk=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},Fk=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},kk=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Nd=O(hn.Input)(({readOnly:e})=>({opacity:e?.5:1})),Ak=O.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),Ok=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var b;let[i,l]=h.useState(!0),s=h.useRef(),u=h.useRef(),d=!!((b=o==null?void 0:o.table)!=null&&b.readonly);h.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?Fk(t):""),u&&u.current&&(u.current.value=t?kk(t):""))},[t]);let m=y=>{if(!y.target.value)return r();let v=Sk(y.target.value),x=new Date(t??"");x.setFullYear(v.getFullYear(),v.getMonth(),v.getDate());let C=x.getTime();C&&r(C),l(!!C)},c=y=>{if(!y.target.value)return r();let v=Dk(y.target.value),x=new Date(t??"");x.setHours(v.getHours()),x.setMinutes(v.getMinutes());let C=x.getTime();C&&r(C),l(!!C)},g=pt(e);return f.createElement(Ak,null,f.createElement(Nd,{type:"date",max:"9999-12-31",ref:s,id:`${g}-date`,name:`${g}-date`,readOnly:d,onChange:m,onFocus:n,onBlur:a}),f.createElement(Nd,{type:"time",id:`${g}-time`,name:`${g}-time`,ref:u,onChange:c,readOnly:d,onFocus:n,onBlur:a}),i?null:f.createElement("div",null,"invalid"))},_k=O.label({display:"flex"}),Rk=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},Tk=O(hn.Input)(({readOnly:e})=>({opacity:e?.5:1})),Pk=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:l,argType:s})=>{var w;let[u,d]=h.useState(typeof t=="number"?t:""),[m,c]=h.useState(!1),[g,b]=h.useState(null),y=!!((w=s==null?void 0:s.table)!=null&&w.readonly),v=h.useCallback(E=>{d(E.target.value);let S=parseFloat(E.target.value);Number.isNaN(S)?b(new Error(`'${E.target.value}' is not a number`)):(r(S),b(null))},[r,b]),x=h.useCallback(()=>{d("0"),r(0),c(!0)},[c]),C=h.useRef(null);return h.useEffect(()=>{m&&C.current&&C.current.select()},[m]),h.useEffect(()=>{let E=typeof t=="number"?t:"";u!==E&&d(E)},[t]),t===void 0?f.createElement(er,{variant:"outline",size:"medium",id:io(e),onClick:x,disabled:y},"Set number"):f.createElement(_k,null,f.createElement(Tk,{ref:C,id:pt(e),type:"number",onChange:v,size:"flex",placeholder:"Edit number...",value:u,valid:g?"error":void 0,autoFocus:m,readOnly:y,name:e,min:n,max:a,step:o,onFocus:l,onBlur:i}))},zb=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Il=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Hb=(e,t)=>e&&t&&e.map(r=>t[r]),Bk=O.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),Ik=O.span({"[aria-readonly=true] &":{opacity:.5}}),$k=O.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Ld=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var c;if(!t)return su.warn(`Checkbox with no options: ${e}`),f.createElement(f.Fragment,null,"-");let i=Il(r||[],t),[l,s]=h.useState(i),u=!!((c=o==null?void 0:o.table)!=null&&c.readonly),d=g=>{let b=g.target.value,y=[...l];y.includes(b)?y.splice(y.indexOf(b),1):y.push(b),n(Hb(y,t)),s(y)};h.useEffect(()=>{s(Il(r||[],t))},[r]);let m=pt(e);return f.createElement(Bk,{"aria-readonly":u,isInline:a},Object.keys(t).map((g,b)=>{let y=`${m}-${b}`;return f.createElement($k,{key:y,htmlFor:y},f.createElement("input",{type:"checkbox",disabled:u,id:y,name:y,value:g,onChange:d,checked:l==null?void 0:l.includes(g)}),f.createElement(Ik,null,g))}))},Nk=O.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),Lk=O.span({"[aria-readonly=true] &":{opacity:.5}}),jk=O.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),jd=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var u;if(!t)return su.warn(`Radio with no options: ${e}`),f.createElement(f.Fragment,null,"-");let i=zb(r,t),l=pt(e),s=!!((u=o==null?void 0:o.table)!=null&&u.readonly);return f.createElement(Nk,{"aria-readonly":s,isInline:a},Object.keys(t).map((d,m)=>{let c=`${l}-${m}`;return f.createElement(jk,{key:c,htmlFor:c},f.createElement("input",{type:"radio",id:c,name:l,disabled:s,value:d,onChange:g=>n(t[g.currentTarget.value]),checked:d===i}),f.createElement(Lk,null,d))}))},Mk={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Ub=O.select(Mk,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),Wb=O.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Md="Choose option...",zk=({name:e,value:t,options:r,onChange:n,argType:a})=>{var u;let o=d=>{n(r[d.currentTarget.value])},i=zb(t,r)||Md,l=pt(e),s=!!((u=a==null?void 0:a.table)!=null&&u.readonly);return f.createElement(Wb,null,f.createElement(ub,null),f.createElement(Ub,{disabled:s,id:l,value:i,onChange:o},f.createElement("option",{key:"no-selection",disabled:!0},Md),Object.keys(r).map(d=>f.createElement("option",{key:d,value:d},d))))},Hk=({name:e,value:t,options:r,onChange:n,argType:a})=>{var u;let o=d=>{let m=Array.from(d.currentTarget.options).filter(c=>c.selected).map(c=>c.value);n(Hb(m,r))},i=Il(t,r),l=pt(e),s=!!((u=a==null?void 0:a.table)!=null&&u.readonly);return f.createElement(Wb,null,f.createElement(Ub,{disabled:s,id:l,multiple:!0,value:i,onChange:o},Object.keys(r).map(d=>f.createElement("option",{key:d,value:d},d))))},zd=e=>{let{name:t,options:r}=e;return r?e.isMulti?f.createElement(Hk,{...e}):f.createElement(zk,{...e}):(su.warn(`Select with no options: ${t}`),f.createElement(f.Fragment,null,"-"))},Uk=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,Wk={check:Ld,"inline-check":Ld,radio:jd,"inline-radio":jd,select:zd,"multi-select":zd},Ir=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?Uk(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=Wk[t];if(o)return f.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},qk="Error",Vk="Object",Gk="Array",Kk="String",Yk="Number",Xk="Boolean",Zk="Date",Jk="Null",Qk="Undefined",eA="Function",tA="Symbol",qb="ADD_DELTA_TYPE",Vb="REMOVE_DELTA_TYPE",Gb="UPDATE_DELTA_TYPE",fu="value",rA="key";function pr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function Kb(e,t){let r=pr(e),n=pr(t);return(r==="Function"||n==="Function")&&n!==r}var mu=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,l={};if(!t){if(!o.value)return;l.key=o.value}l.newValue=r(!1,n,a,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,l=r&&h.cloneElement(r,{onClick:this.onSubmit}),s=n&&h.cloneElement(n,{onClick:e}),u=a(fu,o,i),d=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue}),m=null;if(!t){let c=a(rA,o,i);m=h.cloneElement(c,{placeholder:"Key",ref:this.refInputKey})}return f.createElement("span",{className:"rejt-add-value-node"},m,d,s,l)}};mu.defaultProps={onlyValue:!1,addButtonElement:f.createElement("button",null,"+"),cancelButtonElement:f.createElement("button",null,"c")};var Yb=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:Vb};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(a[a.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;(o||Promise.resolve.bind(Promise))(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:qb,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:l}=this.state,s=o[e];(a||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],o),d({type:Gb,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,l),m=o(e,t,r,n,l),c=s&&h.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:u});return f.createElement("span",{className:"rejt-collapsed"},f.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!m&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:m,addButtonElement:c,cancelButtonElement:g,editButtonElement:b,inputElementGenerator:y,textareaElementGenerator:v,minusMenuElement:x,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:S,logger:D,onSubmitValueParser:F}=this.props,{minus:k,plus:T,delimiter:A,ul:_,addForm:B}=d(e,t,r,n,m),I=u(e,t,r,n,m),z=C&&h.cloneElement(C,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T}),N=x&&h.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:k});return f.createElement("span",{className:"rejt-not-collapsed"},f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:A},"["),!a&&z,f.createElement("ul",{className:"rejt-not-collapsed-list",style:_},t.map((M,U)=>f.createElement(Ho,{key:U,name:U.toString(),data:M,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(U),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:g,editButtonElement:b,inputElementGenerator:y,textareaElementGenerator:v,minusMenuElement:x,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:S,logger:D,onSubmitValueParser:F}))),!I&&a&&f.createElement("div",{className:"rejt-add-form",style:B},f.createElement(mu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:c,cancelButtonElement:g,inputElementGenerator:y,keyPath:r,deep:n,onSubmitValueParser:F})),f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:A},"]"),!I&&N)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,o);return f.createElement("div",{className:"rejt-array-node"},f.createElement("span",{onClick:this.handleCollapseMode},f.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};Yb.defaultProps={keyPath:[],deep:0,minusMenuElement:f.createElement("span",null," - "),plusMenuElement:f.createElement("span",null," + ")};var Xb=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{Kb(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:u,editButtonElement:d,cancelButtonElement:m,textareaElementGenerator:c,minusMenuElement:g,keyPath:b}=this.props,y=u(e,i,n,a,s),v=null,x=null,C=l(e,i,n,a,s);if(r&&!C){let w=c(fu,b,a,e,i,s),E=d&&h.cloneElement(d,{onClick:this.handleEdit}),S=m&&h.cloneElement(m,{onClick:this.handleCancelEdit}),D=h.cloneElement(w,{ref:this.refInput,defaultValue:i});v=f.createElement("span",{className:"rejt-edit-form",style:y.editForm},D," ",S,E),x=null}else{v=f.createElement("span",{className:"rejt-value",style:y.value,onClick:C?void 0:this.handleEditMode},t);let w=g&&h.cloneElement(g,{onClick:o,className:"rejt-minus-menu",style:y.minus});x=C?null:w}return f.createElement("li",{className:"rejt-function-value-node",style:y.li},f.createElement("span",{className:"rejt-name",style:y.name},e," :"," "),v,x)}};Xb.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:f.createElement("button",null,"e"),cancelButtonElement:f.createElement("button",null,"c"),minusMenuElement:f.createElement("span",null," - ")};var Ho=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:m,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:S,onSubmitValueParser:D}=this.props,F=()=>!0,k=pr(e);switch(k){case qk:return f.createElement($l,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:F,dataType:k,getStyle:d,addButtonElement:m,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:S,onSubmitValueParser:D});case Vk:return f.createElement($l,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:k,getStyle:d,addButtonElement:m,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:S,onSubmitValueParser:D});case Gk:return f.createElement(Yb,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:k,getStyle:d,addButtonElement:m,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:S,onSubmitValueParser:D});case Kk:return f.createElement(Ut,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case Yk:return f.createElement(Ut,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case Xk:return f.createElement(Ut,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case Zk:return f.createElement(Ut,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:F,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case Jk:return f.createElement(Ut,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case Qk:return f.createElement(Ut,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});case eA:return f.createElement(Xb,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:u,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,textareaElementGenerator:y,minusMenuElement:v,logger:S,onSubmitValueParser:D});case tA:return f.createElement(Ut,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:F,dataType:k,getStyle:d,cancelButtonElement:c,editButtonElement:g,inputElementGenerator:b,minusMenuElement:v,logger:S,onSubmitValueParser:D});default:return null}}};Ho.defaultProps={keyPath:[],deep:0};var $l=class extends h.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;(o||Promise.resolve.bind(Promise))(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:qb,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a=[],nextDeep:o}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,a,o,i).then(()=>{let l={keyPath:a,deep:o,key:e,oldValue:i,type:Vb};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(a[a.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i=[],nextDeep:l}=this.state,s=o[e];(a||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],o),d({type:Gb,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=l(e,n,t,r,i),m=Object.getOwnPropertyNames(n),c=o(e,n,t,r,i),g=s&&h.cloneElement(s,{onClick:a,className:"rejt-minus-menu",style:u});return f.createElement("span",{className:"rejt-collapsed"},f.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",m.length," ",m.length===1?"key":"keys"),!c&&g)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:m,addButtonElement:c,cancelButtonElement:g,editButtonElement:b,inputElementGenerator:y,textareaElementGenerator:v,minusMenuElement:x,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:S,logger:D,onSubmitValueParser:F}=this.props,{minus:k,plus:T,addForm:A,ul:_,delimiter:B}=d(e,t,r,n,m),I=Object.getOwnPropertyNames(t),z=u(e,t,r,n,m),N=C&&h.cloneElement(C,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:T}),M=x&&h.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:k}),U=I.map(K=>f.createElement(Ho,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:g,editButtonElement:b,inputElementGenerator:y,textareaElementGenerator:v,minusMenuElement:x,plusMenuElement:C,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:S,logger:D,onSubmitValueParser:F}));return f.createElement("span",{className:"rejt-not-collapsed"},f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"{"),!z&&N,f.createElement("ul",{className:"rejt-not-collapsed-list",style:_},U),!z&&o&&f.createElement("div",{className:"rejt-add-form",style:A},f.createElement(mu,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:c,cancelButtonElement:g,inputElementGenerator:y,keyPath:r,deep:n,onSubmitValueParser:F})),f.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"}"),!z&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,i);return f.createElement("div",{className:"rejt-object-node"},f.createElement("span",{onClick:this.handleCollapseMode},f.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};$l.defaultProps={keyPath:[],deep:0,minusMenuElement:f.createElement("span",null," - "),plusMenuElement:f.createElement("span",null," + ")};var Ut=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,a,o,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:l}=this.state;if(!o)return;let s=n(!0,a,l,i,o.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{Kb(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:l,dataType:s,getStyle:u,editButtonElement:d,cancelButtonElement:m,inputElementGenerator:c,minusMenuElement:g,keyPath:b}=this.props,y=u(e,i,n,a,s),v=l(e,i,n,a,s),x=r&&!v,C=c(fu,b,a,e,i,s),w=d&&h.cloneElement(d,{onClick:this.handleEdit}),E=m&&h.cloneElement(m,{onClick:this.handleCancelEdit}),S=h.cloneElement(C,{ref:this.refInput,defaultValue:JSON.stringify(i)}),D=g&&h.cloneElement(g,{onClick:o,className:"rejt-minus-menu",style:y.minus});return f.createElement("li",{className:"rejt-value-node",style:y.li},f.createElement("span",{className:"rejt-name",style:y.name},e," : "),x?f.createElement("span",{className:"rejt-edit-form",style:y.editForm},S," ",E,w):f.createElement("span",{className:"rejt-value",style:y.value,onClick:v?void 0:this.handleEditMode},String(t)),!v&&!x&&D)}};Ut.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:f.createElement("button",null,"e"),cancelButtonElement:f.createElement("button",null,"c"),minusMenuElement:f.createElement("span",null," - ")};function nA(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var aA={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},oA={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},iA={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},Zb=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){var r,n;this.setState({data:t}),(n=(r=this.props).onFullyUpdate)==null||n.call(r,t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElement:u,textareaElement:d,minusMenuElement:m,plusMenuElement:c,beforeRemoveAction:g,beforeAddAction:b,beforeUpdateAction:y,logger:v,onSubmitValueParser:x,fallback:C=null}=this.props,w=pr(e),E=a;pr(a)==="Boolean"&&(E=()=>a);let S=u;u&&pr(u)!=="Function"&&(S=()=>u);let D=d;return d&&pr(d)!=="Function"&&(D=()=>d),w==="Object"||w==="Array"?f.createElement("div",{className:"rejt-tree"},f.createElement(Ho,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:E,getStyle:o??(()=>({})),addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElementGenerator:S,textareaElementGenerator:D,minusMenuElement:m,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:g,beforeAddAction:b,beforeUpdateAction:y,logger:v??{},onSubmitValueParser:x??(F=>F)})):C}};Zb.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return aA;case"Array":return oA;default:return iA}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>nA(a),inputElement:()=>f.createElement("input",null),textareaElement:()=>f.createElement("textarea",null),fallback:null};var{window:lA}=globalThis,sA=O.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Ti=O.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),uA=O(C5)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),cA=O(S5)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),Hd=O.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),dA=O(Xt)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),pA=O(hn.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),fA={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},mA=e=>{e.currentTarget.dispatchEvent(new lA.KeyboardEvent("keydown",fA))},gA=e=>{e.currentTarget.select()},hA=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Ud=({name:e,value:t,onChange:r,argType:n})=>{var w;let a=Lp(),o=h.useMemo(()=>t&&y1(t),[t]),i=o!=null,[l,s]=h.useState(!i),[u,d]=h.useState(null),m=!!((w=n==null?void 0:n.table)!=null&&w.readonly),c=h.useCallback(E=>{try{E&&r(JSON.parse(E)),d(null)}catch(S){d(S)}},[r]),[g,b]=h.useState(!1),y=h.useCallback(()=>{r({}),b(!0)},[b]),v=h.useRef(null);if(h.useEffect(()=>{g&&v.current&&v.current.select()},[g]),!i)return f.createElement(er,{disabled:m,id:io(e),onClick:y},"Set object");let x=f.createElement(pA,{ref:v,id:pt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:E=>c(E.target.value),placeholder:"Edit JSON string...",autoFocus:g,valid:u?"error":void 0,readOnly:m}),C=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return f.createElement(sA,{"aria-readonly":m},C&&f.createElement(dA,{onClick:E=>{E.preventDefault(),s(S=>!S)}},l?f.createElement(E5,null):f.createElement(x5,null),f.createElement("span",null,"RAW")),l?x:f.createElement(Zb,{readOnly:m||!C,isCollapsed:C?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:hA(a),cancelButtonElement:f.createElement(Ti,{type:"button"},"Cancel"),editButtonElement:f.createElement(Ti,{type:"submit"},"Save"),addButtonElement:f.createElement(Ti,{type:"submit",primary:!0},"Save"),plusMenuElement:f.createElement(uA,null),minusMenuElement:f.createElement(cA,null),inputElement:(E,S,D,F)=>F?f.createElement(Hd,{onFocus:gA,onBlur:mA}):f.createElement(Hd,null),fallback:x}))},bA=O.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
625
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
626
|
+
${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
627
|
+
${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
628
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
629
|
+
${sr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
630
|
+
${sr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Et(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Et(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${vt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:a?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Et(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
631
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
632
|
+
${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
633
|
+
${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
634
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
635
|
+
${sr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
636
|
+
${sr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Et(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Et(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${vt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
637
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
638
|
+
${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
639
|
+
${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
640
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
641
|
+
${sr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
642
|
+
${sr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Et(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Jb=O.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),yA=O(Jb)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),vA=O.div({display:"flex",alignItems:"center",width:"100%"});function xA(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var EA=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:l,argType:s})=>{var g;let u=b=>{r(Rk(b.target.value))},d=t!==void 0,m=h.useMemo(()=>xA(o),[o]),c=!!((g=s==null?void 0:s.table)!=null&&g.readonly);return f.createElement(vA,{"aria-readonly":c},f.createElement(Jb,null,n),f.createElement(bA,{id:pt(e),type:"range",disabled:c,onChange:u,name:e,min:n,max:a,step:o,onFocus:l,onBlur:i,value:t??n}),f.createElement(yA,{numberOFDecimalsPlaces:m,max:a},d?t.toFixed(m):"--"," / ",a))},wA=O.label({display:"flex"}),CA=O.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),SA=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var g;let l=b=>{r(b.target.value)},s=!!((g=i==null?void 0:i.table)!=null&&g.readonly),[u,d]=h.useState(!1),m=h.useCallback(()=>{r(""),d(!0)},[d]);if(t===void 0)return f.createElement(er,{variant:"outline",size:"medium",disabled:s,id:io(e),onClick:m},"Set string");let c=typeof t=="string";return f.createElement(wA,null,f.createElement(hn.Textarea,{id:pt(e),maxLength:o,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:c?void 0:"error",name:e,value:c?t:"",onFocus:n,onBlur:a}),o&&f.createElement(CA,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},DA=O(hn.Input)({padding:10});function FA(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var kA=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let o=h.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function l(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(m=>URL.createObjectURL(m));e(d),FA(n||[])}return h.useEffect(()=>{n==null&&o.current&&(o.current.value="")},[n,t]),f.createElement(DA,{ref:o,id:pt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},AA=h.lazy(()=>Qd(()=>import("./Color-AVL7NMMY-BeW0C7pE.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),OA=e=>f.createElement(h.Suspense,{fallback:f.createElement("div",null)},f.createElement(AA,{...e})),_A={array:Ud,object:Ud,boolean:Ck,color:OA,date:Ok,number:Pk,check:Ir,"inline-check":Ir,radio:Ir,"inline-radio":Ir,select:Ir,"multi-select":Ir,range:EA,text:SA,file:kA},Wd=()=>f.createElement(f.Fragment,null,"-"),RA=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var y;let{key:a,control:o}=e,[i,l]=h.useState(!1),[s,u]=h.useState({value:t});h.useEffect(()=>{i||u({value:t})},[i,t]);let d=h.useCallback(v=>(u({value:v}),r({[a]:v}),v),[r,a]),m=h.useCallback(()=>l(!1),[]),c=h.useCallback(()=>l(!0),[]);if(!o||o.disable){let v=(o==null?void 0:o.disable)!==!0&&((y=e==null?void 0:e.type)==null?void 0:y.name)!=="function";return n&&v?f.createElement(gr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):f.createElement(Wd,null)}let g={name:a,argType:e,value:s.value,onChange:d,onBlur:m,onFocus:c},b=_A[o.type]||Wd;return f.createElement(b,{...g,...o,controlType:o.type})},TA=O.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Nt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),PA=({tags:e})=>{var o,i;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:f.createElement(f.Fragment,null,f.createElement(TA,null,f.createElement("tbody",null,n&&f.createElement("tr",{key:"deprecated"},f.createElement("td",{colSpan:2},f.createElement("strong",null,"Deprecated"),": ",(o=e.deprecated)==null?void 0:o.toString())),r&&t.map(l=>f.createElement("tr",{key:l.name},f.createElement("td",null,f.createElement("code",null,l.name)),f.createElement("td",null,l.description))),a&&f.createElement("tr",{key:"returns"},f.createElement("td",null,f.createElement("code",null,"Returns")),f.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))},BA=$1(I5()),Nl=8,qd=O.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),IA=O.span(Nt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),$A=O.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),NA=O.div(Nt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),LA=O.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),jA=O(A5)({marginLeft:4}),MA=O(ub)({marginLeft:4}),zA=()=>f.createElement("span",null,"-"),Qb=({text:e,simple:t})=>f.createElement(IA,{simple:t},e),HA=(0,BA.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),UA=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return x1(t)},Vd=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Nl)),r.map(n=>f.createElement(Qb,{key:n,text:n===""?'""':n}))},WA=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=h.useState(!1),[i,l]=h.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return f.createElement(Qb,{text:s});let u=UA(s),d=u.length;return d>Nl?f.createElement(qd,{isExpanded:i},Vd(u,i),f.createElement($A,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-Nl} more...`)):f.createElement(qd,null,Vd(u))}return f.createElement(Y0,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:u=>{o(u)},tooltip:f.createElement(LA,{width:HA(n)},f.createElement(Ro,{language:"jsx",format:!1},n))},f.createElement(NA,{className:"sbdocs-expandable"},f.createElement("span",null,s),a?f.createElement(jA,null):f.createElement(MA,null)))},Pi=({value:e,initialExpandedArgs:t})=>e==null?f.createElement(zA,null):f.createElement(WA,{value:e,initialExpandedArgs:t}),qA=O.span({fontWeight:"bold"}),VA=O.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),GA=O.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Nt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),KA=O.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ce(.1,e.color.defaultText):ce(.2,e.color.defaultText),marginTop:t?4:0})),YA=O.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ce(.1,e.color.defaultText):ce(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),XA=O.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),ZA=e=>e&&{summary:typeof e=="string"?e:e.name},Da=e=>{var y;let[t,r]=h.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,d=n.table||{},m=d.type||ZA(n.type),c=d.defaultValue||n.defaultValue,g=(y=n.type)==null?void 0:y.required,b=u!=null&&u!=="";return f.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},f.createElement(XA,{expandable:i??!1},f.createElement(qA,null,s),g?f.createElement(VA,{title:"Required"},"*"):null),o?null:f.createElement("td",null,b&&f.createElement(GA,null,f.createElement(Mb,null,u)),d.jsDocTags!=null?f.createElement(f.Fragment,null,f.createElement(YA,{hasDescription:b},f.createElement(Pi,{value:m,initialExpandedArgs:l})),f.createElement(PA,{tags:d.jsDocTags})):f.createElement(KA,{hasDescription:b},f.createElement(Pi,{value:m,initialExpandedArgs:l}))),o?null:f.createElement("td",null,f.createElement(Pi,{value:c,initialExpandedArgs:l})),a?f.createElement("td",null,f.createElement(RA,{...e,isHovered:t})):null)},JA=O.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),QA=O.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),e3=O.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),t3=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:f.createElement(JA,{inAddonPanel:e},f.createElement(jo,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:f.createElement(f.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:f.createElement(QA,null,e&&f.createElement(f.Fragment,null,f.createElement(gr,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},f.createElement(w5,null)," Watch 5m video"),f.createElement(e3,null),f.createElement(gr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},f.createElement(kl,null)," Read docs")),!e&&f.createElement(gr,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},f.createElement(kl,null)," Learn how to set that up"))}))},r3=O(F5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ce(.25,e.color.defaultText):ce(.3,e.color.defaultText),border:"none",display:"inline-block"})),n3=O(k5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ce(.25,e.color.defaultText):ce(.3,e.color.defaultText),border:"none",display:"inline-block"})),a3=O.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),o3=O.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ce(.4,e.color.defaultText):ce(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),i3=O.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),l3=O.td({position:"relative"}),s3=O.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${sr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Gd=O.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Bi=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=h.useState(n),l=e==="subsection"?i3:o3,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return f.createElement(f.Fragment,null,f.createElement(s3,{title:d},f.createElement(l,{colSpan:1},f.createElement(Gd,{onClick:m=>i(!o),tabIndex:0},d),f.createElement(a3,null,o?f.createElement(r3,null):f.createElement(n3,null),t)),f.createElement(l3,{colSpan:a-1},f.createElement(Gd,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},d),o?null:u)),o?r:null)},u3=O.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Fa=O.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=O.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Ee=O.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),c3=()=>f.createElement(u3,null,f.createElement(Fa,null,f.createElement(Ae,{position:"first"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"second"},f.createElement(Ee,{width:"30%"})),f.createElement(Ae,{position:"third"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"last"},f.createElement(Ee,{width:"60%"}))),f.createElement(Fa,null,f.createElement(Ae,{position:"first"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"second"},f.createElement(Ee,{width:"80%"}),f.createElement(Ee,{width:"30%"})),f.createElement(Ae,{position:"third"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"last"},f.createElement(Ee,{width:"60%"}))),f.createElement(Fa,null,f.createElement(Ae,{position:"first"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"second"},f.createElement(Ee,{width:"80%"}),f.createElement(Ee,{width:"30%"})),f.createElement(Ae,{position:"third"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"last"},f.createElement(Ee,{width:"60%"}))),f.createElement(Fa,null,f.createElement(Ae,{position:"first"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"second"},f.createElement(Ee,{width:"80%"}),f.createElement(Ee,{width:"30%"})),f.createElement(Ae,{position:"third"},f.createElement(Ee,{width:"60%"})),f.createElement(Ae,{position:"last"},f.createElement(Ee,{width:"60%"})))),d3=O.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ce(.25,e.color.defaultText):ce(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),p3=O(Xt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),f3=O.span({display:"flex",justifyContent:"space-between"}),m3={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},g3=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:l,subcategory:s}=(i==null?void 0:i.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:o,...i});else{let d=u.subsections[s]||[];d.push({key:o,...i}),u.subsections[s]=d}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:o,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:o,...i})});let n=m3[t],a=o=>n?Object.keys(o).reduce((i,l)=>({...i,[l]:o[l].sort(n)}),{}):o;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:a(r.sections[i].subsections)}}),{})}},h3=(e,t,r)=>{try{return Ly(e,t,r)}catch(n){return T5.warn(n.message),!1}},Ll=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:l}=e;if("error"in e){let{error:C}=e;return f.createElement(hb,null,C," ",f.createElement(gr,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},f.createElement(kl,null)," Read the docs"))}if(l)return f.createElement(c3,null);let{rows:s,args:u,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},m=g3(O1(s||{},C=>{var w;return!((w=C==null?void 0:C.table)!=null&&w.disable)&&h3(C,u||{},d||{})}),i),c=m.ungrouped.length===0,g=Object.entries(m.sections).length===0,b=Object.entries(m.ungroupedSubsections).length===0;if(c&&g&&b)return f.createElement(t3,{inAddonPanel:a});let y=1;t&&(y+=1),n||(y+=2);let v=Object.keys(m.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return f.createElement($s,null,f.createElement(d3,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},f.createElement("thead",{className:"docblock-argstable-head"},f.createElement("tr",null,f.createElement("th",null,f.createElement("span",null,"Name")),n?null:f.createElement("th",null,f.createElement("span",null,"Description")),n?null:f.createElement("th",null,f.createElement("span",null,"Default")),t?f.createElement("th",null,f.createElement(f3,null,"Control"," ",!l&&r&&f.createElement(p3,{onClick:()=>r(),title:"Reset controls"},f.createElement(O5,{"aria-hidden":!0})))):null)),f.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(C=>f.createElement(Da,{key:C.key,row:C,arg:u&&u[C.key],...x})),Object.entries(m.ungroupedSubsections).map(([C,w])=>f.createElement(Bi,{key:C,label:C,level:"subsection",colSpan:y},w.map(E=>f.createElement(Da,{key:E.key,row:E,arg:u&&u[E.key],expandable:v,...x})))),Object.entries(m.sections).map(([C,w])=>f.createElement(Bi,{key:C,label:C,level:"section",colSpan:y},w.ungrouped.map(E=>f.createElement(Da,{key:E.key,row:E,arg:u&&u[E.key],...x})),Object.entries(w.subsections).map(([E,S])=>f.createElement(Bi,{key:E,label:E,level:"subsection",colSpan:y},S.map(D=>f.createElement(Da,{key:D.key,row:D,arg:u&&u[D.key],expandable:v,...x})))))))))},b3=e=>`anchor--${e}`,ey=({storyId:e,children:t})=>f.createElement("div",{id:b3(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=h.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var gt=globalThis?globalThis.__DOCS_CONTEXT__:h.createContext(null),Rr=(e,t)=>h.useContext(gt).resolveOf(e,t),y3=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),v3=e=>{if(e)return typeof e=="string"?e.includes("-")?y3(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function x3(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var E3=Object.create,ty=Object.defineProperty,w3=Object.getOwnPropertyDescriptor,ry=Object.getOwnPropertyNames,C3=Object.getPrototypeOf,S3=Object.prototype.hasOwnProperty,X=(e,t)=>function(){return t||(0,e[ry(e)[0]])((t={exports:{}}).exports,t),t.exports},D3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ry(t))!S3.call(e,a)&&a!==r&&ty(e,a,{get:()=>t[a],enumerable:!(n=w3(t,a))||n.enumerable});return e},gu=(e,t,r)=>(r=e!=null?E3(C3(e)):{},D3(!e||!e.__esModule?ty(r,"default",{value:e,enumerable:!0}):r,e)),F3=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],k3=["detail"];function A3(e){let t=F3.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of k3.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var ny=X({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),O3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),_3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),R3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),T3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),P3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),hu=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),B3=X({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),I3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),$3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),N3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),L3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),j3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),M3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),z3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),H3=X({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=z3();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),U3=X({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),bu=X({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=U3();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),W3=X({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),ay=X({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}}),oy=X({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=ay();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),iy=X({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),ly=X({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=ny();t.exports=r.getPrototypeOf||null}}),q3=X({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,o="[object Function]",i=function(u,d){for(var m=[],c=0;c<u.length;c+=1)m[c]=u[c];for(var g=0;g<d.length;g+=1)m[g+u.length]=d[g];return m},l=function(u,d){for(var m=[],c=d,g=0;c<u.length;c+=1,g+=1)m[g]=u[c];return m},s=function(u,d){for(var m="",c=0;c<u.length;c+=1)m+=u[c],c+1<u.length&&(m+=d);return m};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==o)throw new TypeError(r+d);for(var m=l(arguments,1),c,g=function(){if(this instanceof c){var C=d.apply(this,i(m,arguments));return Object(C)===C?C:this}return d.apply(u,i(m,arguments))},b=a(0,d.length-m.length),y=[],v=0;v<b;v++)y[v]="$"+v;if(c=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),d.prototype){var x=function(){};x.prototype=d.prototype,c.prototype=new x,x.prototype=null}return c}}}),Uo=X({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=q3();t.exports=Function.prototype.bind||r}}),yu=X({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),sy=X({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),V3=X({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),G3=X({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Uo(),n=sy(),a=yu(),o=V3();t.exports=o||r.call(a,n)}}),uy=X({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Uo(),n=hu(),a=yu(),o=G3();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return o(r,a,i)}}}),K3=X({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=uy(),n=bu(),a;try{a=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var o=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=o&&typeof o.get=="function"?r([o.get]):typeof l=="function"?function(s){return l(s==null?s:i(s))}:!1}}),Y3=X({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=iy(),n=ly(),a=K3();t.exports=r?function(o){return r(o)}:n?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return n(o)}:a?function(o){return a(o)}:null}}),cy=X({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Uo();t.exports=a.call(r,n)}}),X3=X({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=ny(),a=O3(),o=_3(),i=R3(),l=T3(),s=P3(),u=hu(),d=B3(),m=I3(),c=$3(),g=N3(),b=L3(),y=j3(),v=M3(),x=H3(),C=Function,w=function(te){try{return C('"use strict"; return ('+te+").constructor;")()}catch{}},E=bu(),S=W3(),D=function(){throw new u},F=E?function(){try{return arguments.callee,D}catch{try{return E(arguments,"callee").get}catch{return D}}}():D,k=oy()(),T=Y3(),A=ly(),_=iy(),B=sy(),I=yu(),z={},N=typeof Uint8Array>"u"||!T?r:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&T?T([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&T?T(T([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!T?r:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!T?r:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&T?T(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":F,"%TypedArray%":N,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":B,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":A,"%Math.abs%":m,"%Math.floor%":c,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":x,"%Reflect.getPrototypeOf%":_};if(T)try{null.error}catch(te){U=T(T(te)),M["%Error.prototype%"]=U}var U,K=function te(le){var $;if(le==="%AsyncFunction%")$=w("async function () {}");else if(le==="%GeneratorFunction%")$=w("function* () {}");else if(le==="%AsyncGeneratorFunction%")$=w("async function* () {}");else if(le==="%AsyncGenerator%"){var se=te("%AsyncGeneratorFunction%");se&&($=se.prototype)}else if(le==="%AsyncIteratorPrototype%"){var de=te("%AsyncGenerator%");de&&T&&($=T(de.prototype))}return M[le]=$,$},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q=Uo(),Q=cy(),oe=q.call(I,Array.prototype.concat),ae=q.call(B,Array.prototype.splice),Z=q.call(I,String.prototype.replace),j=q.call(I,String.prototype.slice),J=q.call(I,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,ie=function(te){var le=j(te,0,1),$=j(te,-1);if(le==="%"&&$!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if($==="%"&&le!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var se=[];return Z(te,ee,function(de,Ie,ge,_e){se[se.length]=ge?Z(_e,ue,"$1"):Ie||de}),se},Ze=function(te,le){var $=te,se;if(Q(W,$)&&(se=W[$],$="%"+se[0]+"%"),Q(M,$)){var de=M[$];if(de===z&&(de=K($)),typeof de>"u"&&!le)throw new u("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:se,name:$,value:de}}throw new s("intrinsic "+te+" does not exist!")};t.exports=function(te,le){if(typeof te!="string"||te.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof le!="boolean")throw new u('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,te)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=ie(te),se=$.length>0?$[0]:"",de=Ze("%"+se+"%",le),Ie=de.name,ge=de.value,_e=!1,jt=de.alias;jt&&(se=jt[0],ae($,oe([0,1],jt)));for(var he=1,We=!0;he<$.length;he+=1){var be=$[he],tt=j(be,0,1),Re=j(be,-1);if((tt==='"'||tt==="'"||tt==="`"||Re==='"'||Re==="'"||Re==="`")&&tt!==Re)throw new s("property names with quotes must have matching quotes");if((be==="constructor"||!We)&&(_e=!0),se+="."+be,Ie="%"+se+"%",Q(M,Ie))ge=M[Ie];else if(ge!=null){if(!(be in ge)){if(!le)throw new u("base intrinsic for "+te+" exists, but the property is not available.");return}if(E&&he+1>=$.length){var rt=E(ge,be);We=!!rt,We&&"get"in rt&&!("originalValue"in rt.get)?ge=rt.get:ge=ge[be]}else We=Q(ge,be),ge=ge[be];We&&!_e&&(M[Ie]=ge)}}return ge}}}),vu=X({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=X3(),n=uy(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(o,i){var l=r(o,!!i);return typeof l=="function"&&a(o,".prototype.")>-1?n([l]):l}}}),Z3=X({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=ay();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),dy=X({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=vu(),n=Z3()(),a=cy(),o=bu(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var b=o(g,"lastIndex"),y=b&&a(b,"value");if(!y)return!1;try{l(g,d)}catch(v){return v===s}}):(m=r("Object.prototype.toString"),c="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:m(g)===c});var l,s,u,d,m,c;t.exports=i}}),J3=X({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),Q3=X({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=vu(),n=dy(),a=r("RegExp.prototype.exec"),o=hu();t.exports=function(i){if(!n(i))throw new o("`regex` must be a RegExp");return function(l){return a(i,l)!==null}}}}),e4=X({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=vu(),n=r("Object.prototype.toString"),a=oy()(),o=Q3();a?(i=r("Symbol.prototype.toString"),l=o(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),t4=gu(dy()),r4=gu(J3()),n4=gu(e4());function a4(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var o4=typeof global=="object"&&global&&global.Object===Object&&global,i4=o4,l4=typeof self=="object"&&self&&self.Object===Object&&self,s4=i4||l4||Function("return this")(),xu=s4,u4=xu.Symbol,dn=u4,py=Object.prototype,c4=py.hasOwnProperty,d4=py.toString,Tn=dn?dn.toStringTag:void 0;function p4(e){var t=c4.call(e,Tn),r=e[Tn];try{e[Tn]=void 0;var n=!0}catch{}var a=d4.call(e);return n&&(t?e[Tn]=r:delete e[Tn]),a}var f4=p4,m4=Object.prototype,g4=m4.toString;function h4(e){return g4.call(e)}var b4=h4,y4="[object Null]",v4="[object Undefined]",Kd=dn?dn.toStringTag:void 0;function x4(e){return e==null?e===void 0?v4:y4:Kd&&Kd in Object(e)?f4(e):b4(e)}var E4=x4,Yd=dn?dn.prototype:void 0;Yd&&Yd.toString;function w4(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fy=w4,C4="[object AsyncFunction]",S4="[object Function]",D4="[object GeneratorFunction]",F4="[object Proxy]";function k4(e){if(!fy(e))return!1;var t=E4(e);return t==S4||t==D4||t==C4||t==F4}var A4=k4,O4=xu["__core-js_shared__"],Ii=O4,Xd=function(){var e=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _4(e){return!!Xd&&Xd in e}var R4=_4,T4=Function.prototype,P4=T4.toString;function B4(e){if(e!=null){try{return P4.call(e)}catch{}try{return e+""}catch{}}return""}var I4=B4,$4=/[\\^$.*+?()[\]{}|]/g,N4=/^\[object .+?Constructor\]$/,L4=Function.prototype,j4=Object.prototype,M4=L4.toString,z4=j4.hasOwnProperty,H4=RegExp("^"+M4.call(z4).replace($4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U4(e){if(!fy(e)||R4(e))return!1;var t=A4(e)?H4:N4;return t.test(I4(e))}var W4=U4;function q4(e,t){return e==null?void 0:e[t]}var V4=q4;function G4(e,t){var r=V4(e,t);return W4(r)?r:void 0}var my=G4;function K4(e,t){return e===t||e!==e&&t!==t}var Y4=K4,X4=my(Object,"create"),Qn=X4;function Z4(){this.__data__=Qn?Qn(null):{},this.size=0}var J4=Z4;function Q4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eO=Q4,tO="__lodash_hash_undefined__",rO=Object.prototype,nO=rO.hasOwnProperty;function aO(e){var t=this.__data__;if(Qn){var r=t[e];return r===tO?void 0:r}return nO.call(t,e)?t[e]:void 0}var oO=aO,iO=Object.prototype,lO=iO.hasOwnProperty;function sO(e){var t=this.__data__;return Qn?t[e]!==void 0:lO.call(t,e)}var uO=sO,cO="__lodash_hash_undefined__";function dO(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Qn&&t===void 0?cO:t,this}var pO=dO;function yn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yn.prototype.clear=J4;yn.prototype.delete=eO;yn.prototype.get=oO;yn.prototype.has=uO;yn.prototype.set=pO;var Zd=yn;function fO(){this.__data__=[],this.size=0}var mO=fO;function gO(e,t){for(var r=e.length;r--;)if(Y4(e[r][0],t))return r;return-1}var Wo=gO,hO=Array.prototype,bO=hO.splice;function yO(e){var t=this.__data__,r=Wo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bO.call(t,r,1),--this.size,!0}var vO=yO;function xO(e){var t=this.__data__,r=Wo(t,e);return r<0?void 0:t[r][1]}var EO=xO;function wO(e){return Wo(this.__data__,e)>-1}var CO=wO;function SO(e,t){var r=this.__data__,n=Wo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var DO=SO;function vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vn.prototype.clear=mO;vn.prototype.delete=vO;vn.prototype.get=EO;vn.prototype.has=CO;vn.prototype.set=DO;var FO=vn,kO=my(xu,"Map"),AO=kO;function OO(){this.size=0,this.__data__={hash:new Zd,map:new(AO||FO),string:new Zd}}var _O=OO;function RO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var TO=RO;function PO(e,t){var r=e.__data__;return TO(t)?r[typeof t=="string"?"string":"hash"]:r.map}var qo=PO;function BO(e){var t=qo(this,e).delete(e);return this.size-=t?1:0,t}var IO=BO;function $O(e){return qo(this,e).get(e)}var NO=$O;function LO(e){return qo(this,e).has(e)}var jO=LO;function MO(e,t){var r=qo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var zO=MO;function xn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xn.prototype.clear=_O;xn.prototype.delete=IO;xn.prototype.get=NO;xn.prototype.has=jO;xn.prototype.set=zO;var gy=xn,HO="Expected a function";function Eu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(HO);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Eu.Cache||gy),r}Eu.Cache=gy;var UO=Eu,WO=500;function qO(e){var t=UO(e,function(n){return r.size===WO&&r.clear(),n}),r=t.cache;return t}var VO=qO,GO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KO=/\\(\\)?/g;VO(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(GO,function(r,n,a,o){t.push(a?o.replace(KO,"$1"):n||r)}),t});var YO=a4,XO=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function hy(e){if(!YO(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=A3(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var ZO=function(e){let t,r,n,a;return function(o,i){var l;try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return XO.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,t4.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,r4.default)(i))return;if((0,n4.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((l=i==null?void 0:i.constructor)!=null&&l.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let d=t.get(i);if(!d){let m={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((c,g)=>{try{c[g]=i[g]}catch{}return c},{})};return a.push(o),n.unshift(m),t.set(i,JSON.stringify(a)),i!==m&&r.set(i,m),m}return`_duplicate_${d}`}let u=t.get(i);if(!u){let d=Array.isArray(i)?i:hy(i);return a.push(o),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${u}`}catch{return}}},JO={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},QO=(e,t={})=>{let r={...JO,...t};return JSON.stringify(hy(e),ZO(r),t.space)};function by(e){return QO(e,{maxDepth:50})}var yy=h.createContext({sources:{}}),vy="--unknown--",e_=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect(()=>{let a=(o,i=null,l=!1)=>{let{id:s,args:u=void 0,source:d,format:m}=typeof o=="string"?{id:o,source:i,format:l}:o,c=u?by(u):vy;n(g=>({...g,[s]:{...g[s],[c]:{code:d||"",format:m}}}))};return t.on(Au,a),()=>t.off(Au,a)},[]),f.createElement(yy.Provider,{value:{sources:r}},e)};function t_(e,t,r){let[n,a]=h.useState("Transforming..."),o=t?t==null?void 0:t(e,r):e;return h.useEffect(()=>{async function i(){let l=await o;l!==n&&a(l)}i()}),typeof o=="object"&&typeof o.then=="function"?n:o}var r_=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[by(t)])||(a==null?void 0:a[vy])||{code:""}},n_=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var m;let a=t.parameters??{},{__isArgsStory:o}=a,i=((m=a.docs)==null?void 0:m.source)||{},l=r||i.type||Ko.AUTO,s=l===Ko.DYNAMIC||l===Ko.AUTO&&e&&o?e:i.originalSource||"",u=n??i.transform,d=u?t_(s,u,t):s;return i.code!==void 0?i.code:d},a_=(e,t,r)=>{var g,b;let{of:n}=e,a=h.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),o=a?t.getStoryContext(a):{},i=e.__forceInitialArgs?o.initialArgs:o.unmappedArgs,l=a?r_(a.id,i,r):null,s=n_({snippet:l?l.code:"",storyContext:{...o,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((b=(g=a==null?void 0:a.parameters)==null?void 0:g.docs)==null?void 0:b.source)||{},d=e.format,m=e.language??u.language??"jsx",c=e.dark??u.dark??!1;return!e.code&&!a?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:d,language:m,dark:c}:(d=(l==null?void 0:l.format)??!0,{code:s,format:d,language:m,dark:c})};function o_(e,t){let r=i_([e],t);return r&&r[0]}function i_(e,t){let[r,n]=h.useState({});return h.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return}})}var l_=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},s_=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let l=e.height??o.height,s=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},u_=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=h.useContext(gt),r=l_(e,t),n=o_(r,t);if(!n)return f.createElement(vb,null);let a=s_(e,n,t);return a?f.createElement(MD,{...a}):null},c_=e=>{var g,b,y,v,x,C,w,E,S,D,F,k,T,A;let t=h.useContext(gt),r=h.useContext(yy),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=Rr(n||"story",["story"]),i=a_({...a,...n&&{of:n}},t,r),l=e.layout??o.parameters.layout??((b=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((v=(y=o.parameters.docs)==null?void 0:y.canvas)==null?void 0:v.withToolbar)??!1,u=e.additionalActions??((C=(x=o.parameters.docs)==null?void 0:x.canvas)==null?void 0:C.additionalActions),d=e.sourceState??((E=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:E.sourceState)??"hidden",m=e.className??((D=(S=o.parameters.docs)==null?void 0:S.canvas)==null?void 0:D.className),c=((F=e.story)==null?void 0:F.inline)??((A=(T=(k=o.parameters)==null?void 0:k.docs)==null?void 0:T.story)==null?void 0:A.inline)??!1;return f.createElement(xb,{withSource:d==="none"?void 0:i,isExpanded:d==="shown",withToolbar:s,additionalActions:u,className:m,layout:l,inline:c},f.createElement(u_,{of:n||o.moduleExport,meta:e.meta,...e.story}))},d_=(e,t)=>{let r=p_(e,t);if(!r)throw new Error("No result when story was defined");return r},p_=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=h.useState(r.args);h.useEffect(()=>{let s=u=>{u.storyId===n&&o(u.args)};return t.channel.on(wd,s),()=>t.channel.off(wd,s)},[n,t.channel]);let i=h.useCallback(s=>t.channel.emit(P5,{storyId:n,updatedArgs:s}),[n,t.channel]),l=h.useCallback(s=>t.channel.emit(B5,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,l]},f_=(e,t)=>{let r=t.getStoryContext(e),[n,a]=h.useState(r.globals);return h.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(Cd,o),()=>t.channel.off(Cd,o)},[t.channel]),[n]};function m_(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var g_=e=>{var E;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=h.useContext(gt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:l}=n,s=((E=a.docs)==null?void 0:E.controls)||{},u=e.include??s.include,d=e.exclude??s.exclude,m=e.sort??s.sort,[c,g,b]=d_(n,r),[y]=f_(n,r),v=Sd(o,u,d);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(v).length>0||Object.keys(c).length>0?f.createElement(Ll,{rows:v,sort:m,args:c,globals:y,updateArgs:g,resetArgs:b}):null;let x=v3(i)||"Story",C=Object.fromEntries(Object.entries(l||{}).map(([S,D])=>[S,{rows:Sd(m_(D,a),u,d),sort:m}])),w={[x]:{rows:v,sort:m},...C};return f.createElement(ZD,{tabs:w,sort:m,args:c,globals:y,updateArgs:g,resetArgs:b})},{document:xy}=globalThis,h_=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return f.createElement(Ns,null,t);let n=e&&e.split("-");return f.createElement(bb,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wu(e,t){e.channel.emit(cb,t)}var jl=lb.a,b_=({hash:e,children:t})=>{let r=h.useContext(gt);return f.createElement(jl,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);xy.getElementById(a)&&wu(r,e)}},t)},y_=e=>{let{href:t,target:r,children:n,...a}=e,o=h.useContext(gt);return!t||r==="_blank"||/^https?:\/\//.test(t)?f.createElement(jl,{...e}):t.startsWith("#")?f.createElement(b_,{hash:t},n):f.createElement(jl,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wu(o,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},Ey=["h1","h2","h3","h4","h5","h6"],v_=Ey.reduce((e,t)=>({...e,[t]:O(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),x_=O.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),E_=({as:e,id:t,children:r,...n})=>{let a=h.useContext(gt),o=v_[e],i=`#${t}`;return f.createElement(o,{id:t,...n},f.createElement(x_,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{xy.getElementById(t)&&wu(a,i)}},f.createElement(D5,null)),r)},Cu=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return f.createElement(E_,{as:t,id:r,...a},n);let o=t,{as:i,...l}=e;return f.createElement(o,{...pe(l,t)})},w_=Ey.reduce((e,t)=>({...e,[t]:r=>f.createElement(Cu,{as:t,...r})}),{}),C_=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(_5`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
643
|
+
This is often caused by not wrapping the child in a template string.
|
|
644
|
+
|
|
645
|
+
This is invalid:
|
|
646
|
+
<Markdown>
|
|
647
|
+
# Some heading
|
|
648
|
+
A paragraph
|
|
649
|
+
</Markdown>
|
|
650
|
+
|
|
651
|
+
Instead do:
|
|
652
|
+
<Markdown>
|
|
653
|
+
{\`
|
|
654
|
+
# Some heading
|
|
655
|
+
A paragraph
|
|
656
|
+
\`}
|
|
657
|
+
</Markdown>
|
|
658
|
+
`);return f.createElement(Mb,{...e,options:{forceBlock:!0,overrides:{code:h_,a:y_,...w_,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},S_=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(S_||{}),D_=e=>{var t,r,n,a,o,i,l,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:u,component:d}=e.preparedMeta;return((a=(n=u.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=u.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,d,{component:d,parameters:u}))||null}case"component":{let{component:u,projectAnnotations:{parameters:d}}=e;return((s=(l=d==null?void 0:d.docs)==null?void 0:l.extractComponentDescription)==null?void 0:s.call(l,u,{component:u,parameters:d}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Ml=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=Rr(t||"meta"),n=D_(r);return n?f.createElement(C_,null,n):null},{document:F_,window:k_}=globalThis,A_=({context:e,theme:t,children:r})=>{var a,o,i,l,s;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(s=(l=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:l.docs)==null?void 0:s.toc}return h.useEffect(()=>{let u;try{if(u=new URL(k_.parent.location.toString()),u.hash){let d=F_.getElementById(decodeURIComponent(u.hash.substring(1)));d&&setTimeout(()=>{x3(d)},200)}}catch{}}),f.createElement(gt.Provider,{value:e},f.createElement(e_,{channel:e.channel},f.createElement(jp,{theme:Fx(t)},f.createElement(TD,{toc:n?f.createElement(mF,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},O_=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,__=Object.hasOwnProperty,R_=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=T_(e,t===!0),a=n;for(;__.call(r.occurrences,n);)r.occurrences[a]++,n=a+"-"+r.occurrences[a];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function T_(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(O_,"").replace(/ /g,"-"))}var wy=new R_,P_=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return f.createElement(Ls,null,e);let n=wy.slug(e.toLowerCase());return f.createElement(Cu,{as:"h2",id:n,...r},e)},B_=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return f.createElement(js,null,e);let r=wy.slug(e.toLowerCase());return f.createElement(Cu,{as:"h3",id:r},e)},Cy=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var l,s;let{story:o}=Rr(e||"story",["story"]),i=((s=(l=o.parameters.docs)==null?void 0:l.canvas)==null?void 0:s.withToolbar)??r;return f.createElement(ey,{storyId:o.id},t&&f.createElement(f.Fragment,null,f.createElement(B_,null,o.name),f.createElement(Ml,{of:e})),f.createElement(c_,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},I_=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=Rr(t||"meta",["meta"]),n=h.useContext(gt).componentStoriesFromCSFFile(r)[0];return n?f.createElement(Cy,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},$_=O(P_)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),N_=({title:e="Stories",includePrimary:t=!0})=>{var l;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=h.useContext(gt),o=r(),{stories:{filter:i}={filter:void 0}}=((l=n.parameters)==null?void 0:l.docs)||{};return i&&(o=o.filter(s=>i(s,a(s)))),o.some(s=>{var u;return(u=s.tags)==null?void 0:u.includes("autodocs")})&&(o=o.filter(s=>{var u;return((u=s.tags)==null?void 0:u.includes("autodocs"))&&!s.usesMount})),t||(o=o.slice(1)),!o||o.length===0?null:f.createElement(f.Fragment,null,typeof e=="string"?f.createElement($_,null,e):e,o.map(s=>s&&f.createElement(Cy,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},L_="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",j_=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Rr(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:a,docs:o}=(n==null?void 0:n.parameters)||{};a&&R5(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${L_}`);let i=r||(o==null?void 0:o.subtitle)||a;return i?f.createElement(OD,{className:"sbdocs-subtitle sb-unstyled"},i):null},M_=/\s*\/\s*/,z_=e=>{let t=e.trim().split(M_);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},H_=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=Rr(r||"meta",["meta"]).preparedMeta}catch(o){if(t&&o instanceof Error&&!o.message.includes("did you forget to use <Meta of={} />?"))throw o}let a=t||z_((n==null?void 0:n.title)||"");return a?f.createElement(AD,{className:"sbdocs-title sb-unstyled"},a):null},U_=()=>{let e=Rr("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return f.createElement(f.Fragment,null,f.createElement(H_,null),f.createElement(j_,null),f.createElement(Ml,{of:"meta"}),r?f.createElement(Ml,{of:"story"}):null,f.createElement(I_,null),f.createElement(g_,null),r?null:f.createElement(N_,null))};function r6({context:e,docsParameter:t}){let r=t.container||A_,n=t.page||U_;return f.createElement(r,{context:e,theme:t.theme},f.createElement(n,null))}var n6=({of:e})=>{let t=h.useContext(gt);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return f.createElement(ey,{storyId:r.id})}catch{return null}};export{y_ as A,g2 as B,h_ as C,hn as D,w_ as H,Z_ as M,S2 as X,$1 as _,B1 as a,r6 as b,n6 as c,G_ as d,pt as g,O as x};
|